1 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
3 * dwarf2read.c (partial_die_full_name): Add cast.
5 2015-10-29 Pedro Alves <palves@redhat.com>
7 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
9 2015-10-29 Pedro Alves <palves@redhat.com>
11 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
13 2015-10-29 Eli Zaretskii <eliz@gnu.org>
15 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
18 2015-10-29 Pedro Alves <palves@redhat.com>
20 * gnu-v2-abi.c (gnuv2_is_destructor_name)
21 (gnuv2_is_constructor_name): Add casts.
23 2015-10-29 Pedro Alves <palves@redhat.com>
25 * common/common-exceptions.c (exception_none): Add cast.
27 2015-10-29 Pedro Alves <palves@redhat.com>
29 * compile/compile-c-types.c (struct type_map_instance)
30 <gcc_type>: Rename to gcc_type_handle.
31 (insert_type, convert_type): Adjust.
33 2015-10-29 Pedro Alves <palves@redhat.com>
35 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
36 assume that "break" breaks out of a TRY/CATCH.
37 * python/py-framefilter.c (py_print_single_arg): Don't assume
38 "continue" breaks out of a TRY/CATCH.
39 * python/py-value.c (valpy_binop_throw): New function, factored
41 (valpy_binop): ... this.
42 (valpy_richcompare_throw): New function, factored
44 (valpy_richcompare): ... this.
45 * solib.c (solib_read_symbols): Don't assume "break" breaks out
47 * common/common-exceptions.h [USE_RAW_CXX_TRY]
48 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
50 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
52 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
53 as move along with [d]addu.
55 2015-10-28 Yao Qi <yao.qi@linaro.org>
57 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
60 2015-10-27 Pedro Alves <palves@redhat.com>
62 * common/print-utils.c (host_address_to_string): Rename to ...
63 (host_address_to_string_1): ... this.
64 * common/print-utils.h (host_address_to_string): Reimplement as
65 wrapper around host_address_to_string_1.
66 * utils.c (gdb_print_host_address): Rename to ...
67 (gdb_print_host_address_1): ... this.
68 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
69 around host_address_to_string_1.
71 2015-10-27 Pedro Alves <palves@redhat.com>
73 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
74 memory_error. Rename local 'status' to 'res'.
75 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
77 * corefile.c (read_stack, read_code, write_memory): Always pass
78 TARGET_XFER_E_IO to memory_error.
79 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
80 memory_error. Rename parameter 'status' to 'err'.
81 (dump_insns): Rename local 'status' to 'err'.
82 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
83 to 'errp'. Rename local 'status' to 'err'. Always pass
84 TARGET_XFER_E_IO to memory_error.
85 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
86 * target.c (target_read_memory, target_read_raw_memory)
87 (target_read_stack, target_read_code, target_write_memory)
88 (target_write_raw_memory): Return -1 on error instead of
90 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
91 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
93 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
95 * guile/guile-internal.h (gdbscm_with_guile): Change return
96 types to const char *.
97 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
98 (struct c_data) <func>: Likewise.
99 (struct c_data) <result>: Change type to const char *.
100 (scscm_eval_scheme_string): Change return type to
102 (scscm_source_scheme_script): Likewise.
103 (gdbscm_safe_eval_string): Change type of result variable to
104 const char * and remove cast.
105 (gdbscm_safe_source_script): Likewise.
106 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
107 Change return type to const char *.
108 (gdbscm_disasm_read_memory): Change type of status to
111 2015-10-27 Pedro Alves <palves@redhat.com>
113 * source.c (openp): New local 'last_errno'. Use it to
116 2015-10-27 Pedro Alves <palves@redhat.com>
118 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
120 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
122 * ctf.c (SET_ENUM_FIELD): New macro.
123 (ctf_read_status): Use it.
124 (ctf_read_tp): Use it.
126 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
128 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
129 scm_t_dynwind_flags casts.
130 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
131 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
132 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
134 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
136 * ax.h (ax_raw_byte): New declaration.
137 * ax-general.c (ax_raw_byte): New function.
138 (ax_simple): Use ax_raw_byte.
139 * ax-gdb.c (gen_printf): Likewise.
141 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
143 * ada-lang.h (GROW_VECT): Add cast.
145 2015-10-26 Doug Evans <xdje42@gmail.com>
147 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
149 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
151 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
153 (simple_search_memory): Cast return of memmem.
155 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
157 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
159 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
161 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
164 2015-10-26 Doug Evans <dje@google.com>
167 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
168 instead of gdbarch_dwarf2_reg_to_regnum.
169 (dwarf2_frame_cache): Ditto.
170 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
171 gdbarch_dwarf2_reg_to_regnum.
172 (get_reg_value): Ditto.
173 (dwarf2_fetch_cfa_info): Ditto.
174 (dwarf2_frame_prev_register): Ditto.
175 * dwarf2loc.c: #include "complaints.h".
176 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
177 instead of gdbarch_dwarf2_reg_to_regnum.
178 (dwarf_expr_get_reg_value): Ditto.
179 (read_pieced_value): Ditto.
180 (write_pieced_value): Ditto.
181 (dwarf2_evaluate_loc_desc_full): Ditto.
182 (dwarf_reg_to_regnum): New function.
183 (throw_bad_regnum_error): New function.
184 (dwarf_reg_to_regnum_or_error): Renamed from
185 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
186 All callers updated. Call throw_bad_regnum_error.
187 (locexpr_regname): Improve text of bad register number.
188 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
189 (dwarf_reg_to_regnum_or_error): Update prototype.
190 * dwarf2expr.c: #include "dwarf2loc.h".
191 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
192 gdbarch_dwarf2_reg_to_regnum.
193 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
194 * gdbarch.h: Regenerate.
195 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
197 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
198 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
199 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
200 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
201 Remove warning for bad register.
202 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
203 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
204 i386_svr4_reg_to_regnum. Return -1 for bad registers.
205 (i386_svr4_reg_to_regnum): New function.
206 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
207 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
208 on bad registers, return -1.
209 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
210 Remove warning for bad register.
211 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
212 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
213 Remove warning for bad register. Return -1 for bad register.
214 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
215 for bad register, return -1.
216 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
217 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
218 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
219 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
220 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
221 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
223 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
224 bad regs. Fix error result.
225 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
226 (reg_value_complaint): Update complaint text.
227 * mdebugread.c (reg_value_complaint): New function.
228 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
230 2015-10-26 Doug Evans <dje@google.com>
233 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
236 2015-10-26 Doug Evans <dje@google.com>
238 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
239 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
240 (maintenance_print_psymbols): Print address map.
242 2015-10-26 Doug Evans <dje@google.com>
244 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
246 2015-10-26 Doug Evans <dje@google.com>
248 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
249 gdbserver/linux-low.c.
250 (WSETSTOP): Simplify.
252 2015-10-26 Doug Evans <dje@google.com>
254 * linux-thread-db.c (find_new_threads_callback): Ditto.
255 (thread_db_pid_to_str): Ditto.
257 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
259 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
260 local char array to scm_mode_bits, use a cast instead.
262 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
264 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
265 result. Change type of element_block_ptr. Change allocation to
268 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
270 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
271 catch_errors call instead of NULL.
273 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
275 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
276 char pointer to scm_mode_bits.
278 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
280 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
283 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
285 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
286 "data" local variable and use it.
288 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
290 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
292 (gdbscm_lookup_symbol): Likewise.
294 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
296 * d-exp.y: Remove an obsolete comment and propagate the block
297 information to the produced expression.
299 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
301 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
303 (tui_add_content_elements): Likewise.
305 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
307 * cli/cli-setshow.c (do_set_command): Constify p.
309 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
311 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
312 (void *) cast with (gdb_byte *).
314 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
316 * proc-service.c (ps_pdread): Add cast.
318 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
320 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
323 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
325 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
326 (ia64_push_dummy_call): Remove cast and change type of "to" to
329 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
331 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
333 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
335 * observer.h (observer_${event}_notification_stub): Add cast.
337 2015-10-23 Yao Qi <yao.qi@linaro.org>
339 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
340 dsd.insn_count to zero.
342 2015-10-22 Pedro Alves <palves@redhat.com>
344 * infrun.c (stop_after_trap): Delete.
345 (clear_proceed_status, handle_signal_stop, struct
346 infcall_control_state, save_infcall_control_state)
347 (restore_infcall_control_state): Remove references to
350 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
352 * python/python.c (_initialize_python): Add cast.
354 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
356 * nto-tdep.c (nto_inferior_data): Add cast.
358 2015-10-22 Pedro Alves <palves@redhat.com>
360 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
361 windows_wait and windows_resume directly instead of
362 wait_for_inferior and resume.
364 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
366 * xtensa-tdep.h (XTREG): Add casts.
367 (XTREG_END): Likewise.
369 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
371 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
373 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
375 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
377 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
379 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
381 (supply_32bit_reg): Add cast.
382 (mips64_fill_gregset): Likewise.
384 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
387 * python/py-type.c (typy_get_composite): Allow returning a
390 2015-10-21 Keven Boell <keven.boell@intel.com>
392 * dwarf2read.c (set_die_type): Add read of
393 DW_AT_allocated and DW_AT_associated.
394 * f-typeprint.c: New include of typeprint.h
395 (f_print_type): Add check for allocated/associated
397 (f_type_print_varspec_suffix): Add check for
398 * gdbtypes.c (create_array_type_with_stride):
399 Add check for valid data location of type in
400 case allocated or associated attributes are set.
401 Length of an array should be only calculated if
402 allocated or associated is resolved as true.
403 (is_dynamic_type_internal): Add check for allocated/
405 (resolve_dynamic_array): Evaluate allocated/associated
407 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
408 <DYN_PROP_ASSOCIATED>: New enums.
409 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
410 (type_not_allocated): New function.
411 (type_not_associated): New function.
412 * valarith.c (value_subscripted_rvalue): Add check for
413 allocated/associated.
414 * valprint.c: New include of typeprint.h.
415 (valprint_check_validity): Add check for allocated/associated.
416 (value_check_printable): Add check for allocated/
418 * typeprint.h (val_print_not_allocated): New function.
419 (val_print_not_associated): New function.
420 * typeprint.c (val_print_not_allocated): New function.
421 (val_print_not_associated): New function.
423 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
425 * Makefile.in: Add arm.c/o.
426 * arch/arm.c: New file.
427 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
428 (MAKE_THUMB_ADDR): Likewise.
429 (UNMAKE_THUMB_ADDR): Likewise.
430 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
431 (IS_THUMB_ADDR): Move to arm.h.
432 (MAKE_THUMB_ADDR): Likewise.
433 (UNMAKE_THUMB_ADDR): Likewise.
434 * configure.tgt: Add arm.o to all ARM configs.
436 2015-10-21 Yao Qi <yao.qi@linaro.org>
438 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
439 Remove argument exp_vCont_s.
440 * gdb.base/range-stepping.exp: Callers updated.
441 * gdb.trace/range-stepping.exp: Likewise.
443 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
445 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
446 (nto_sniff_abi_note_section): New function.
447 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
450 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
452 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
453 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
454 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
455 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
457 (_initialize_nto_tdep): New forward declaration, new function.
458 * nto-tdep.h (struct nto_inferior_data): New struct.
459 (nto_inferior_data): New function declaration.
461 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
463 * findvar.c (address_from_register): Check REGNUM validity.
465 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
467 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
468 (init_procfs_targets): Wire new function.
470 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
472 * nto-procfs.c (sys/auxv.h): Include.
473 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
474 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
475 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
477 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
479 * nto-procfs.c (nto_procfs_path): Rename to...
480 (nodestr): ... this, and change type.
481 (nto_node): Use new variable and logic accordingly.
482 (procfs_open_1): Use new variable name. Use local buffer to construct
484 (procfs_pidlist): Use NODESTR to construct procfs path.
485 (procfs_files_info): Use NODESTR to output meaningful text.
486 (do_attach): Construct procfs using NODESTR.
487 (procfs_create_inferior): Compare pointer to NULL.
489 2015-10-19 Josh Stone <jistone@redhat.com>
491 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
492 return state, even when not actively catching syscalls at all.
493 (linux_handle_extended_wait): Mark syscall_state like an entry.
494 (wait_lwp): Set syscall_state ignored for other traps.
495 (linux_nat_filter_event): Likewise.
497 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
499 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
500 when handling 'E', 'T', 'S', 'X' and 'W' packets.
501 Do not set rs->waiting_for_stop_reply back to 1.
503 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
505 * nto-procfs.c (common/filestuff.h): Include.
506 (procfs_can_use_hw_breakpoint): Fix enum name.
507 (procfs_open_1): Fix compiler warning.
508 (procfs_pidlist): Make static.
509 (procfs_meminfo): Make static, fix type name, add missing argument.
510 (procfs_store_registers): Make static.
511 (procfs_thread_info): Remove unused function.
512 (_initialize_procfs): Forward declare.
514 2015-10-16 Yao Qi <yao.qi@arm.com>
516 * MAINTAINERS: Update my email address.
518 2015-10-15 Yao Qi <yao.qi@linaro.org>
520 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
521 Call gdbarch_breakpoint_from_pc to instruction length.
522 (aarch64_linux_remove_hw_breakpoint): Likewise.
523 * common/common-regcache.h (regcache_register_size): Declare.
524 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
525 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
526 the process is 32bit, otherwise set alignment to 4.
527 (aarch64_handle_breakpoint): Update comments.
528 * regcache.c (regcache_register_size): New function.
530 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
532 * gdbarch.sh (core_regset_section): Remove.
533 * gdbarch.h: Regenerate.
535 2015-10-14 Yao Qi <yao.qi@linaro.org>
537 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
539 (enum aarch64_memory_operand_type): New.
541 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
543 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
545 2015-10-13 Pedro Alves <palves@redhat.com>
547 * ada-lang.c (ada_enum_name): Constify local.
548 * ada-typeprint.c (print_range_bound): Constify locals.
549 * c-varobj.c (c_describe_child): Likewise.
550 * cli/cli-setshow.c (do_set_command): Likewise.
551 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
552 * dwarf2read.c (find_file_and_directory): Likewise.
553 (anonymous_struct_prefix, dwarf2_name): Likewise.
554 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
555 * go-lang.c (unpack_mangled_go_symbol): Likewise.
556 * jv-typeprint.c (java_type_print_base): Likewise.
557 * ser-tcp.c (net_open): Likewise.
558 * symfile.c (deduce_language_from_filename): Likewise.
559 * symtab.c (gdb_mangle_name): Likewise.
560 * tui/tui-io.c (tui_redisplay_readline): Likewise.
562 2015-10-13 Pedro Alves <palves@redhat.com>
564 * infrun.c (restore_execution_direction): New function.
565 (fetch_inferior_event): Use it instead of
566 make_cleanup_restore_integer.
567 (execution_direction): Change type to enum
569 * infrun.h (execution_direction): Likewise.
571 2015-10-13 Pedro Alves <palves@redhat.com>
573 * ada-lang.c (ada_value_primitive_packed_val): Constify
574 locals. Use value_contents_writeable. Remove casts.
576 2015-10-13 Pedro Alves <palves@redhat.com>
578 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
581 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
583 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
584 write_memory with write_memory_unsigned_integer.
586 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
588 * solib-dsbt.c (cmp_name): Constify arguments.
589 * solib-frv.c (cmp_name): Likewise.
590 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
591 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
592 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
593 (gdb_bfd_lookup_symbol): Likewise.
594 * solib.h (gdb_bfd_lookup_symbol): Likewise.
595 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
597 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
599 * stack.c (parse_frame_specification): Remove message parameter,
600 replace with fixed string in function body, update function
602 (frame_info): Remove message to parse_frame_specification.
603 (select_frame_command): Likewise.
605 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
607 * stack.c (parse_frame_specification): Delete.
608 (parse_frame_specification_1): Rename to
609 parse_frame_specification.
610 (frame_info): Use parse_frame_specification.
611 (select_frame_command): Likewise.
612 (return_command): Use select_frame and print_stack_frame rather
613 than frame_command and select_frame_command.
614 (func_command): Use get_current_frame rather than
615 parse_frame_specification.
617 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
619 * stack.c (func_command): Return early when there is no ARG
622 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
624 * stack.c: Include safe-ctype.h not ctype.h.
625 (parse_frame_specification): Use ISSPACE not isspace.
626 (backtrace_command): Use TOLOWER not tolower.
628 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
630 * mep-tdep.c (current_me_module): Add cast.
631 (mep_gdbarch_init): Likewise.
633 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
635 * m32c-tdep.c (m32c_move_reg_t): Replace with...
636 (m32c_write_reg_t): ...this and...
637 (m32c_read_reg_t): ...this.
638 (struct m32c_reg): Update types of read and write.
639 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
641 (m32c_banked_read): Likewise.
642 (m32c_sb_read): Likewise.
643 (m32c_part_read): Likewise.
644 (m32c_cat_read): Likewise.
645 (m32c_r3r2r1r0_read): Likewise.
646 (m32c_raw_write): Change declaration type to m32c_write_reg_t
647 and adjust definition.
648 (m32c_banked_write): Likewise.
649 (m32c_sb_write): Likewise.
650 (m32c_part_write): Likewise.
651 (m32c_cat_write): Likewise.
652 (m32c_r3r2r1r0_write): Likewise.
654 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
656 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
658 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
660 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
661 gdb_sys_no_syscall instead of -1.
663 2015-10-12 Yao Qi <yao.qi@linaro.org>
665 * NEWS: Mention the change.
667 2015-10-12 Yao Qi <yao.qi@linaro.org>
669 * arch/aarch64-insn.c (emit_load_store): Rename to ...
670 (aarch64_emit_load_store): ... it. All callers updated.
672 2015-10-12 Yao Qi <yao.qi@linaro.org>
674 * arch/aarch64-insn.c (emit_insn): Rename to ...
675 (aarch64_emit_insn): ... it. All callers updated.
677 2015-10-12 Yao Qi <yao.qi@linaro.org>
679 * aarch64-linux-tdep.c: Include arch-utils.h.
680 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
681 set_gdbarch_displaced_step_copy_insn,
682 set_gdbarch_displaced_step_fixup,
683 set_gdbarch_displaced_step_free_closure,
684 set_gdbarch_displaced_step_location,
685 and set_gdbarch_displaced_step_hw_singlestep.
686 * aarch64-tdep.c (struct displaced_step_closure): New.
687 (struct aarch64_displaced_step_data): New.
688 (aarch64_displaced_step_b): New function.
689 (aarch64_displaced_step_b_cond): Likewise.
690 (aarch64_register): Likewise.
691 (aarch64_displaced_step_cb): Likewise.
692 (aarch64_displaced_step_tb): Likewise.
693 (aarch64_displaced_step_adr): Likewise.
694 (aarch64_displaced_step_ldr_literal): Likewise.
695 (aarch64_displaced_step_others): Likewise.
696 (aarch64_displaced_step_copy_insn): Likewise.
697 (aarch64_displaced_step_fixup): Likewise.
698 (aarch64_displaced_step_hw_singlestep): Likewise.
699 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
700 (aarch64_displaced_step_copy_insn): Declare.
701 (aarch64_displaced_step_fixup): Declare.
702 (aarch64_displaced_step_hw_singlestep): Declare.
703 * arch/aarch64-insn.c (emit_insn): Moved from
704 gdbserver/linux-aarch64-low.c.
705 (emit_load_store): Likewise.
706 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
707 gdbserver/linux-aarch64-low.c.
708 (struct aarch64_register): Likewise.
709 (struct aarch64_memory_operand): Likewise.
711 (can_encode_int32): New macro.
712 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
713 (emit_tb, emit_nop): Likewise.
714 (emit_insn): Declare.
715 (emit_load_store): Declare.
717 2015-10-12 Yao Qi <yao.qi@linaro.org>
719 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
720 gdbserver/linux-aarch64-low.c.
721 (aarch64_relocate_instruction): Likewise.
722 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
723 (struct aarch64_insn_data): Moved from
724 gdbserver/linux-aarch64-low.c.
725 (struct aarch64_insn_visitor): Likewise.
726 (aarch64_relocate_instruction): Declare.
728 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
730 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
731 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
732 to the returned value.
734 2015-10-09 Joel Brobecker <brobecker@adacore.com>
736 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
737 is large enough for BIT_SIZE. Update function comment.
739 2015-10-09 Joel Brobecker <brobecker@adacore.com>
741 * ada-lang.c (ada_value_primitive_packed_val): Move
742 src_len variable to local block where used. Override
743 BIT_SIZE if bigger than size of resolved type.
745 2015-10-09 Joel Brobecker <brobecker@adacore.com>
747 * gdbtypes.h (is_scalar_type): Add extern declaration.
748 * gdbtypes.c (is_scalar_type): Make non-static.
749 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
750 to compute IS_SCALAR instead of doing it ourselves.
752 2015-10-09 Joel Brobecker <brobecker@adacore.com>
754 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
755 of case where TYPE is dynamic.
757 2015-10-09 Joel Brobecker <brobecker@adacore.com>
759 * ada-lang.c (ada_unpack_from_contents): New function,
760 extracted from ada_value_primitive_packed_val.
761 (ada_value_primitive_packed_val): Replace extracted out code
762 by call to ada_unpack_from_contents.
764 2015-10-09 Joel Brobecker <brobecker@adacore.com>
766 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
767 variable declarations.
769 2015-10-09 Joel Brobecker <brobecker@adacore.com>
771 * ada-lang.c (ada_value_primitive_packed_val): Change the type
772 of local variables src and unpacked to "gdb_type *" instead of
775 2015-10-09 Joel Brobecker <brobecker@adacore.com>
777 * ada-lang.c (ada_value_primitive_packed_val): Make the name
778 of various local variables more explicit and consistent.
779 No real code change otherwise.
781 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
783 * i386-tdep.h (struct gdbarch_tdep): Change type of
784 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
786 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
788 * cris-tdep.c (struct instruction_environment): Change type of
789 byte_order to enum bfd_endian.
791 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
793 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
794 enum gdb_syscall casts.
796 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
798 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
799 * arm-tdep.c (struct stack_item): Likewise.
800 (push_stack_item): Add gdb_byte* cast.
801 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
802 (push_stack_item): Add gdb_byte* cast.
803 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
805 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
806 (push_stack_item): Add gdb_byte* cast.
807 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
809 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
811 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
812 gdb_byte* and remove unnecessary cast.
813 (h8300h_extract_return_value): Likewise.
814 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
815 (h8300h_store_return_value): Likewise.
816 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
817 gdb_byte* and remove unnecessary cast.
818 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
820 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
821 gdb_byte* and remove unnecessary cast.
822 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
824 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
825 (mep_pseudo_cr64_read): Likewise.
826 (mep_pseudo_csr_write): Likewise.
827 (mep_pseudo_cr32_write): Likewise.
828 (mep_pseudo_cr64_write): Likewise.
829 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
830 gdb_byte* and add cast.
831 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
832 gdb_byte* and remove unnecessary cast.
833 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
835 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
837 * printcmd.c (void): Likewise.
838 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
839 gdb_byte* and add cast.
840 (infpy_write_memory): Likewise.
841 (infpy_search_memory): Likewise.
842 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
844 (regcache_raw_write_unsigned): Likewise.
845 (regcache_cooked_write_signed): Likewise.
846 (regcache_cooked_write_unsigned): Likewise.
847 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
850 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
852 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
853 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
855 2015-10-09 Eli Zaretskii <eliz@gnu.org>
857 * stack.c (print_stack_frame):
858 * utils.c (printchar): Fix typos in commentary.
860 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
862 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
863 (PostfixExpression): Support `expr.sizeof' expressions.
864 (PrimaryExpression): Support `typeof(expr)' expressions.
866 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
868 * MAINTAINERS: Update my email address.
870 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
872 * record-btrace.c (record_btrace_resume): Fix void return.
874 2015-10-07 Yao Qi <yao.qi@linaro.org>
876 * aarch64-tdep.c: Include opcode/aarch64.h.
877 (submask): Move it above.
880 (aarch64_software_single_step): Call aarch64_decode_insn.
881 Decode instruction by aarch64_inst instead of using
882 aarch64_decode_bcond and decode_masked_match.
884 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
886 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
887 only when the file is binary.
889 2015-10-02 James Bowman <james.bowman@ftdichip.com>
891 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
894 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
896 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
898 2015-09-30 Doug Evans <dje@google.com>
900 * dwarf2read.c (setup_type_unit_groups): Add comment.
902 2015-09-30 Pedro Alves <palves@redhat.com>
904 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
905 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
906 (x86_linux_create_target): Don't install
907 x86_linux_always_non_stop_p.
909 2015-09-30 Don Breazeal <donb@codesourcery.com>
911 * remote.c (remote_parse_stop_reply): Call strprefix instead
914 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
916 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
917 * gdbarch.h: Regenerate.
918 * i386-tdep.c (i386_gdbarch_init): Remove cast to
919 struct gdbarch_tdep_info *.
920 * mips-tdep.c (mips_gdbarch_init): Likewise.
921 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
922 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
923 * spu-multiarch.c (spu_gdbarch): Likewise.
925 2015-09-30 Kevin Buettner <kevinb@redhat.com>
927 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
930 2015-09-29 Kevin Buettner <kevinb@redhat.com>
932 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
933 and union arguments the same as pointer arguments when determining
936 2015-09-29 James Bowman <james.bowman@ftdichip.com>
938 * ft32-tdep.c: #include "opcode/ft32.h".
939 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
940 (ft32_analyze_prologue): Use FT32_* macros.
942 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
944 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
947 2015-09-28 Doug Evans <dje@google.com>
949 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
951 2015-09-28 Doug Evans <dje@google.com>
953 * common/filestuff.c (make_cleanup_close): Update comment.
955 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
957 * btrace.c (parse_xml_btrace_block): Fix cast of
958 xml_find_attribute's return value.
959 * memory-map.c (memory_map_start_memory): Likewise.
960 * solib-svr4.c (library_list_start_library): Likewise.
961 * solib-target.c (library_list_start_segment): Likewise.
962 (library_list_start_section): Likewise.
963 * tracepoint.c (traceframe_info_start_memory): Likewise.
965 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
967 * d-namespace.c (d_lookup_symbol): New arg langdef.
968 All callers updated. Support looking up symbol as a primitive type.
969 (lookup_module_scope): New arg langdef. All callers updated.
970 Call d_lookup_symbol directly for simple bare symbols.
972 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
974 * macrocmd.c (print_macro_callback): Add cast(s).
975 * macrotab.c (macro_bcache_str): Likewise.
976 (new_macro_definition): Likewise.
977 * main.c (captured_main): Likewise.
978 * maint.c (print_bfd_section_info): Likewise.
979 * mdebugread.c (mdebug_build_psymtabs): Likewise.
980 (basic_type): Likewise.
981 * memattr.c (mem_region_cmp): Likewise.
982 * memory-map.c (memory_map_start_memory): Likewise.
983 (memory_map_end_memory): Likewise.
984 (memory_map_start_property): Likewise.
985 (memory_map_end_property): Likewise.
986 (clear_result): Likewise.
987 * memrange.c (compare_mem_ranges): Likewise.
988 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
989 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
990 * mi/mi-console.c (mi_console_file_delete): Likewise.
991 (mi_console_file_fputs): Likewise.
992 (mi_console_raw_packet): Likewise.
993 (mi_console_file_flush): Likewise.
994 (mi_console_set_raw): Likewise.
995 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
996 (mi_new_thread): Likewise.
997 (mi_thread_exit): Likewise.
998 (mi_record_changed): Likewise.
999 (mi_inferior_added): Likewise.
1000 (mi_inferior_appeared): Likewise.
1001 (mi_inferior_exit): Likewise.
1002 (mi_inferior_removed): Likewise.
1003 (mi_interp_data): Likewise.
1004 (mi_on_normal_stop): Likewise.
1005 (mi_traceframe_changed): Likewise.
1006 (mi_tsv_created): Likewise.
1007 (mi_tsv_deleted): Likewise.
1008 (mi_tsv_modified): Likewise.
1009 (mi_breakpoint_created): Likewise.
1010 (mi_breakpoint_deleted): Likewise.
1011 (mi_breakpoint_modified): Likewise.
1012 (mi_output_running_pid): Likewise.
1013 (mi_inferior_count): Likewise.
1014 (mi_solib_loaded): Likewise.
1015 (mi_solib_unloaded): Likewise.
1016 (mi_command_param_changed): Likewise.
1017 (mi_memory_changed): Likewise.
1018 (report_initial_inferior): Likewise.
1019 (mi_ui_out): Likewise.
1020 (mi_set_logging): Likewise.
1021 * mi/mi-main.c (collect_cores): Likewise.
1022 (print_one_inferior): Likewise.
1023 (free_vector_of_ints): Likewise.
1024 (free_splay_tree): Likewise.
1025 (mi_execute_command): Likewise.
1026 * mi/mi-out.c (mi_table_body): Likewise.
1027 (mi_table_end): Likewise.
1028 (mi_table_header): Likewise.
1029 (mi_begin): Likewise.
1031 (mi_field_int): Likewise.
1032 (mi_field_string): Likewise.
1033 (mi_field_fmt): Likewise.
1034 (mi_flush): Likewise.
1035 (mi_redirect): Likewise.
1036 (field_separator): Likewise.
1037 (mi_open): Likewise.
1038 (mi_close): Likewise.
1039 (mi_out_buffered): Likewise.
1040 (mi_out_rewind): Likewise.
1041 (mi_out_put): Likewise.
1042 (mi_version): Likewise.
1043 (mi_out_data_dtor): Likewise.
1044 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1045 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1046 * minidebug.c (lzma_open): Likewise.
1047 (lzma_pread): Likewise.
1048 (lzma_close): Likewise.
1049 (lzma_stat): Likewise.
1050 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1051 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1052 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1053 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1054 (mips_micro_frame_cache): Likewise.
1055 (mips_insn32_frame_cache): Likewise.
1056 (mips_stub_frame_cache): Likewise.
1057 (gdb_print_insn_mips): Likewise.
1058 (value_of_mips_user_reg): Likewise.
1059 (mips_gdbarch_init): Likewise.
1060 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1061 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1062 (mipsnbsd_supply_gregset): Likewise.
1063 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1064 (am33_collect_gregset_method): Likewise.
1065 (am33_collect_fpregset_method): Likewise.
1066 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1067 * moxie-tdep.c (moxie_frame_cache): Likewise.
1068 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1069 (msp430_analyze_frame_prologue): Likewise.
1070 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1071 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1072 (nios2_collect_gregset): Likewise.
1073 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1074 (nios2_stub_frame_cache): Likewise.
1075 * objc-lang.c (find_methods): Likewise.
1076 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1077 (get_objfile_pspace_data): Likewise.
1078 (get_objfile_bfd_data): Likewise.
1079 (objfile_bfd_data_free): Likewise.
1080 (add_to_objfile_sections): Likewise.
1081 (do_free_objfile_cleanup): Likewise.
1082 (resume_section_map_updates_cleanup): Likewise.
1083 * opencl-lang.c (builtin_opencl_type): Likewise.
1084 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1085 * osdata.c (osdata_start_osdata): Likewise.
1086 (osdata_start_item): Likewise.
1087 (osdata_start_column): Likewise.
1088 (osdata_end_column): Likewise.
1089 (clear_parsing_data): Likewise.
1090 (osdata_free_cleanup): Likewise.
1091 * parse.c (type_stack_cleanup): Likewise.
1092 (exp_uses_objfile_iter): Likewise.
1093 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1094 (ppc_linux_collect_gregset): Likewise.
1095 (ppu2spu_prev_arch): Likewise.
1096 (ppu2spu_this_id): Likewise.
1097 (ppu2spu_prev_register): Likewise.
1098 (ppu2spu_unwind_register): Likewise.
1099 (ppu2spu_sniffer): Likewise.
1100 (ppu2spu_dealloc_cache): Likewise.
1101 (ppc_linux_init_abi): Likewise.
1102 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1103 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1104 * progspace.c (restore_program_space): Likewise.
1105 * psymtab.c (find_pc_sect_psymtab): Likewise.
1106 (compare_psymbols): Likewise.
1107 (psymbol_bcache_full): Likewise.
1108 (allocate_psymtab): Likewise.
1109 (discard_psymtabs_upto): Likewise.
1110 * python/py-block.c (set_block): Likewise.
1111 (del_objfile_blocks): Likewise.
1112 * python/py-breakpoint.c (build_bp_list): Likewise.
1113 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1114 (build_inferior_list): Likewise.
1115 (py_free_inferior): Likewise.
1116 * python/py-objfile.c (py_free_objfile): Likewise.
1117 (objfile_to_objfile_object): Likewise.
1118 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1119 * python/py-progspace.c (py_free_pspace): Likewise.
1120 (pspace_to_pspace_object): Likewise.
1121 * python/py-symbol.c (set_symbol): Likewise.
1122 (del_objfile_symbols): Likewise.
1123 * python/py-symtab.c (set_sal): Likewise.
1124 (set_symtab): Likewise.
1125 (del_objfile_symtab): Likewise.
1126 (del_objfile_sal): Likewise.
1127 * python/py-type.c (save_objfile_types): Likewise.
1128 (set_type): Likewise.
1129 * python/py-unwind.c (pyuw_prev_register): Likewise.
1130 (pyuw_on_new_gdbarch): Likewise.
1131 * python/py-utils.c (py_decref): Likewise.
1132 (py_xdecref): Likewise.
1133 (gdb_py_generic_dict): Likewise.
1134 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1135 (gdbpy_clone_xmethod_worker_data): Likewise.
1136 (gdbpy_get_xmethod_arg_types): Likewise.
1137 (gdbpy_get_xmethod_result_type): Likewise.
1138 (gdbpy_invoke_xmethod): Likewise.
1139 * python/python.c (gdbpy_apply_type_printers): Likewise.
1140 (gdbpy_free_type_printers): Likewise.
1141 * record-btrace.c (record_btrace_disable_callback): Likewise.
1142 (bfcache_hash): Likewise.
1143 (bfcache_eq): Likewise.
1144 (btrace_get_frame_function): Likewise.
1145 (record_btrace_frame_unwind_stop_reason): Likewise.
1146 (record_btrace_frame_this_id): Likewise.
1147 (record_btrace_frame_prev_register): Likewise.
1148 (record_btrace_frame_dealloc_cache): Likewise.
1149 * record-full.c (record_full_message_wrapper): Likewise.
1150 (record_full_save_cleanups): Likewise.
1151 * regcache.c (regcache_descr): Likewise.
1152 (do_regcache_xfree): Likewise.
1153 (do_regcache_invalidate): Likewise.
1154 (do_cooked_read): Likewise.
1155 (regcache_transfer_regset): Likewise.
1156 * reggroups.c (reggroup_add): Likewise.
1157 (reggroup_next): Likewise.
1158 (reggroup_prev): Likewise.
1159 * remote-fileio.c (do_remote_fileio_request): Likewise.
1160 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1161 (do_notif_event_xfree): Likewise.
1162 * remote.c (get_remote_arch_state): Likewise.
1163 (remote_pspace_data_cleanup): Likewise.
1164 (get_remote_exec_file): Likewise.
1165 (set_pspace_remote_exec_file): Likewise.
1166 (compare_pnums): Likewise.
1167 (clear_threads_listing_context): Likewise.
1168 (remote_newthread_step): Likewise.
1169 (start_thread): Likewise.
1170 (end_thread): Likewise.
1171 (remove_child_of_pending_fork): Likewise.
1172 (remove_stop_reply_for_inferior): Likewise.
1173 (remove_stop_reply_of_remote_state): Likewise.
1174 (remote_notif_remove_once_on_match): Likewise.
1175 (stop_reply_match_ptid_and_ws): Likewise.
1176 (kill_child_of_pending_fork): Likewise.
1177 (register_remote_g_packet_guess): Likewise.
1178 (remote_read_description_p): Likewise.
1179 (remote_read_description): Likewise.
1180 (free_actions_list_cleanup_wrapper): Likewise.
1181 (remote_async_serial_handler): Likewise.
1182 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1183 (rl78_analyze_frame_prologue): Likewise.
1184 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1185 (ppc_supply_fpregset): Likewise.
1186 (ppc_supply_vsxregset): Likewise.
1187 (ppc_supply_vrregset): Likewise.
1188 (ppc_collect_gregset): Likewise.
1189 (ppc_collect_fpregset): Likewise.
1190 (ppc_collect_vsxregset): Likewise.
1191 (ppc_collect_vrregset): Likewise.
1192 (e500_move_ev_register): Likewise.
1193 (do_regcache_raw_write): Likewise.
1194 (rs6000_frame_cache): Likewise.
1195 (rs6000_epilogue_frame_cache): Likewise.
1196 (rs6000_gdbarch_init): Likewise.
1197 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1198 (rx_analyze_frame_prologue): Likewise.
1199 (rx_frame_type): Likewise.
1200 (rx_frame_sniffer_common): Likewise.
1201 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1202 (s390_frame_unwind_cache): Likewise.
1203 (s390_stub_frame_unwind_cache): Likewise.
1204 (s390_sigtramp_frame_unwind_cache): Likewise.
1205 * score-tdep.c (score_make_prologue_cache): Likewise.
1206 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1207 (sentinel_frame_prev_arch): Likewise.
1208 * ser-base.c (fd_event): Likewise.
1209 (push_event): Likewise.
1210 (ser_base_write): Likewise.
1211 * ser-pipe.c (pipe_close): Likewise.
1212 * serial.c (serial_write): Likewise.
1213 * sh-tdep.c (sh_frame_cache): Likewise.
1214 (sh_stub_this_id): Likewise.
1215 * sh64-tdep.c (sh64_frame_cache): Likewise.
1216 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1217 (library_list_start_library): Likewise.
1218 (library_list_start_list): Likewise.
1219 (solib_aix_free_library_list): Likewise.
1220 * solib-darwin.c (get_darwin_info): Likewise.
1221 * solib-dsbt.c (get_dsbt_info): Likewise.
1222 * solib-spu.c (append_ocl_sos): Likewise.
1223 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1224 (get_svr4_info): Likewise.
1225 (library_list_start_library): Likewise.
1226 (svr4_library_list_start_list): Likewise.
1227 (hash_probe_and_action): Likewise.
1228 (equal_probe_and_action): Likewise.
1229 (svr4_update_solib_event_breakpoint): Likewise.
1230 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1231 (svr4_fetch_link_map_offsets): Likewise.
1232 (svr4_have_link_map_offsets): Likewise.
1233 * solib-target.c (library_list_start_segment): Likewise.
1234 (library_list_start_section): Likewise.
1235 (library_list_start_library): Likewise.
1236 (library_list_end_library): Likewise.
1237 (library_list_start_list): Likewise.
1238 (solib_target_free_library_list): Likewise.
1239 * solib.c (solib_ops): Likewise.
1240 (set_solib_ops): Likewise.
1241 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1242 * sparc-tdep.c (sparc_frame_cache): Likewise.
1243 (sparc32_frame_cache): Likewise.
1244 (sparc32_supply_gregset): Likewise.
1245 (sparc32_collect_gregset): Likewise.
1246 (sparc32_supply_fpregset): Likewise.
1247 (sparc32_collect_fpregset): Likewise.
1248 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1249 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1250 (sparc64_collect_gregset): Likewise.
1251 (sparc64_supply_fpregset): Likewise.
1252 (sparc64_collect_fpregset): Likewise.
1253 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1254 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1255 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1256 (sparc64obsd_trapframe_cache): Likewise.
1257 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1258 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1259 * spu-multiarch.c (spu_gdbarch): Likewise.
1260 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1261 (spu2ppu_prev_arch): Likewise.
1262 (spu2ppu_this_id): Likewise.
1263 (spu2ppu_prev_register): Likewise.
1264 (spu2ppu_dealloc_cache): Likewise.
1265 (spu_dis_asm_print_address): Likewise.
1266 (gdb_print_insn_spu): Likewise.
1267 (spu_get_overlay_table): Likewise.
1268 * stabsread.c (rs6000_builtin_type): Likewise.
1269 * stack.c (do_print_variable_and_value): Likewise.
1270 * stap-probe.c (get_stap_base_address_1): Likewise.
1271 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1272 (debug_qf_find_last_source_symtab): Likewise.
1273 (debug_qf_forget_cached_source_info): Likewise.
1274 (debug_qf_map_symtabs_matching_filename): Likewise.
1275 (debug_qf_lookup_symbol): Likewise.
1276 (debug_qf_print_stats): Likewise.
1277 (debug_qf_dump): Likewise.
1278 (debug_qf_relocate): Likewise.
1279 (debug_qf_expand_symtabs_for_function): Likewise.
1280 (debug_qf_expand_all_symtabs): Likewise.
1281 (debug_qf_expand_symtabs_with_fullname): Likewise.
1282 (debug_qf_map_matching_symbols): Likewise.
1283 (debug_qf_expand_symtabs_matching): Likewise.
1284 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1285 (debug_qf_map_symbol_filenames): Likewise.
1286 (debug_sym_get_probes): Likewise.
1287 (debug_sym_new_init): Likewise.
1288 (debug_sym_init): Likewise.
1289 (debug_sym_read): Likewise.
1290 (debug_sym_read_psymbols): Likewise.
1291 (debug_sym_finish): Likewise.
1292 (debug_sym_offsets): Likewise.
1293 (debug_sym_read_linetable): Likewise.
1294 (debug_sym_relocate): Likewise.
1295 (uninstall_symfile_debug_logging): Likewise.
1296 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1297 * symfile.c (place_section): Likewise.
1298 (add_section_size_callback): Likewise.
1299 (load_progress): Likewise.
1300 (load_section_callback): Likewise.
1301 (clear_memory_write_data): Likewise.
1302 (allocate_symtab): Likewise.
1303 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1304 * symtab.c (lookup_symtab_callback): Likewise.
1305 (hash_demangled_name_entry): Likewise.
1306 (eq_demangled_name_entry): Likewise.
1307 (get_symbol_cache): Likewise.
1308 (symbol_cache_cleanup): Likewise.
1309 (set_symbol_cache_size): Likewise.
1310 (symbol_cache_flush): Likewise.
1311 (maintenance_print_symbol_cache): Likewise.
1312 (maintenance_print_symbol_cache_statistics): Likewise.
1313 (delete_filename_seen_cache): Likewise.
1314 (output_partial_symbol_filename): Likewise.
1315 (search_symbols_file_matches): Likewise.
1316 (search_symbols_name_matches): Likewise.
1317 (do_free_completion_list): Likewise.
1318 (maybe_add_partial_symtab_filename): Likewise.
1319 (get_main_info): Likewise.
1320 (main_info_cleanup): Likewise.
1321 * target-dcache.c (target_dcache_cleanup): Likewise.
1322 (target_dcache_init_p): Likewise.
1323 (target_dcache_invalidate): Likewise.
1324 (target_dcache_get): Likewise.
1325 (target_dcache_get_or_init): Likewise.
1326 * target-descriptions.c (target_find_description): Likewise.
1327 (tdesc_find_type): Likewise.
1328 (tdesc_data_cleanup): Likewise.
1329 (tdesc_find_arch_register): Likewise.
1330 (tdesc_register_name): Likewise.
1331 (tdesc_register_type): Likewise.
1332 (tdesc_register_reggroup_p): Likewise.
1333 (set_tdesc_pseudo_register_name): Likewise.
1334 (set_tdesc_pseudo_register_type): Likewise.
1335 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1336 (tdesc_use_registers): Likewise.
1337 (free_target_description): Likewise.
1338 * target-memory.c (compare_block_starting_address): Likewise.
1339 (cleanup_request_data): Likewise.
1340 (cleanup_write_requests_vector): Likewise.
1341 * target.c (open_target): Likewise.
1342 (cleanup_restore_target_terminal): Likewise.
1343 (free_memory_read_result_vector): Likewise.
1344 * thread.c (disable_thread_stack_temporaries): Likewise.
1345 (finish_thread_state_cleanup): Likewise.
1346 (do_restore_current_thread_cleanup): Likewise.
1347 (restore_current_thread_cleanup_dtor): Likewise.
1348 (set_thread_refcount): Likewise.
1349 (tp_array_compar): Likewise.
1350 (do_captured_thread_select): Likewise.
1351 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1352 (tic6x_stub_this_id): Likewise.
1353 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1354 * top.c (do_restore_instream_cleanup): Likewise.
1355 (gdb_readline_wrapper_cleanup): Likewise.
1356 (kill_or_detach): Likewise.
1357 (print_inferior_quit_action): Likewise.
1358 * tracefile-tfile.c (match_blocktype): Likewise.
1359 (build_traceframe_info): Likewise.
1360 * tracefile.c (trace_file_writer_xfree): Likewise.
1361 * tracepoint.c (memrange_cmp): Likewise.
1362 (do_collect_symbol): Likewise.
1363 (do_clear_collection_list): Likewise.
1364 (do_restore_current_traceframe_cleanup): Likewise.
1365 (restore_current_traceframe_cleanup_dtor): Likewise.
1366 (free_current_marker): Likewise.
1367 (traceframe_info_start_memory): Likewise.
1368 (traceframe_info_start_tvar): Likewise.
1369 (free_result): Likewise.
1370 * tramp-frame.c (tramp_frame_cache): Likewise.
1371 * tui/tui-file.c (tui_file_delete): Likewise.
1372 (tui_fileopen): Likewise.
1373 (tui_sfileopen): Likewise.
1374 (tui_file_isatty): Likewise.
1375 (tui_file_rewind): Likewise.
1376 (tui_file_put): Likewise.
1377 (tui_file_fputs): Likewise.
1378 (tui_file_get_strbuf): Likewise.
1379 (tui_file_adjust_strbuf): Likewise.
1380 (tui_file_flush): Likewise.
1381 * tui/tui-layout.c (make_command_window): Likewise.
1382 (make_data_window): Likewise.
1383 (show_source_disasm_command): Likewise.
1384 (show_data): Likewise.
1385 (make_source_or_disasm_window): Likewise.
1386 (show_source_or_disasm_and_command): Likewise.
1387 * tui/tui-out.c (tui_field_int): Likewise.
1388 (tui_field_string): Likewise.
1389 (tui_field_fmt): Likewise.
1390 (tui_text): Likewise.
1391 * typeprint.c (hash_typedef_field): Likewise.
1392 (eq_typedef_field): Likewise.
1393 (do_free_typedef_hash): Likewise.
1394 (copy_typedef_hash_element): Likewise.
1395 (do_free_global_table): Likewise.
1396 (find_global_typedef): Likewise.
1397 (find_typedef_in_hash): Likewise.
1398 * ui-file.c (ui_file_write_for_put): Likewise.
1399 (do_ui_file_xstrdup): Likewise.
1400 (mem_file_delete): Likewise.
1401 (mem_file_rewind): Likewise.
1402 (mem_file_put): Likewise.
1403 (mem_file_write): Likewise.
1404 (stdio_file_delete): Likewise.
1405 (stdio_file_flush): Likewise.
1406 (stdio_file_read): Likewise.
1407 (stdio_file_write): Likewise.
1408 (stdio_file_write_async_safe): Likewise.
1409 (stdio_file_fputs): Likewise.
1410 (stdio_file_isatty): Likewise.
1411 (stdio_file_fseek): Likewise.
1412 (tee_file_delete): Likewise.
1413 (tee_file_flush): Likewise.
1414 (tee_file_write): Likewise.
1415 (tee_file_fputs): Likewise.
1416 (tee_file_isatty): Likewise.
1417 * ui-out.c (do_cleanup_table_end): Likewise.
1418 (do_cleanup_end): Likewise.
1419 * user-regs.c (user_reg_add): Likewise.
1420 (user_reg_map_name_to_regnum): Likewise.
1421 (usernum_to_user_reg): Likewise.
1422 (maintenance_print_user_registers): Likewise.
1423 * utils.c (do_bfd_close_cleanup): Likewise.
1424 (do_fclose_cleanup): Likewise.
1425 (do_obstack_free): Likewise.
1426 (do_ui_file_delete): Likewise.
1427 (do_ui_out_redirect_pop): Likewise.
1428 (do_free_section_addr_info): Likewise.
1429 (restore_integer): Likewise.
1430 (do_unpush_target): Likewise.
1431 (do_htab_delete_cleanup): Likewise.
1432 (do_restore_ui_file): Likewise.
1433 (do_value_free): Likewise.
1434 (do_free_so): Likewise.
1435 (free_current_contents): Likewise.
1436 (do_regfree_cleanup): Likewise.
1437 (core_addr_hash): Likewise.
1438 (core_addr_eq): Likewise.
1439 (do_free_char_ptr_vec): Likewise.
1440 * v850-tdep.c (v850_frame_cache): Likewise.
1441 * varobj.c (do_free_variable_cleanup): Likewise.
1442 * vax-tdep.c (vax_supply_gregset): Likewise.
1443 (vax_frame_cache): Likewise.
1444 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1445 * xml-support.c (gdb_xml_body_text): Likewise.
1446 (gdb_xml_values_cleanup): Likewise.
1447 (gdb_xml_start_element): Likewise.
1448 (gdb_xml_start_element_wrapper): Likewise.
1449 (gdb_xml_end_element): Likewise.
1450 (gdb_xml_end_element_wrapper): Likewise.
1451 (gdb_xml_cleanup): Likewise.
1452 (gdb_xml_fetch_external_entity): Likewise.
1453 (gdb_xml_parse_attr_enum): Likewise.
1454 (xinclude_start_include): Likewise.
1455 (xinclude_end_include): Likewise.
1456 (xml_xinclude_default): Likewise.
1457 (xml_xinclude_start_doctype): Likewise.
1458 (xml_xinclude_end_doctype): Likewise.
1459 (xml_xinclude_cleanup): Likewise.
1460 (xml_fetch_content_from_file): Likewise.
1461 * xml-syscall.c (free_syscalls_info): Likewise.
1462 (syscall_start_syscall): Likewise.
1463 * xml-tdesc.c (tdesc_end_arch): Likewise.
1464 (tdesc_end_osabi): Likewise.
1465 (tdesc_end_compatible): Likewise.
1466 (tdesc_start_target): Likewise.
1467 (tdesc_start_feature): Likewise.
1468 (tdesc_start_reg): Likewise.
1469 (tdesc_start_union): Likewise.
1470 (tdesc_start_struct): Likewise.
1471 (tdesc_start_flags): Likewise.
1472 (tdesc_start_field): Likewise.
1473 (tdesc_start_vector): Likewise.
1474 (fetch_available_features_from_target): Likewise.
1475 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1476 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1477 (xtensa_frame_cache): Likewise.
1478 (xtensa_frame_prev_register): Likewise.
1479 (xtensa_extract_return_value): Likewise.
1481 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1483 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1484 (aarch64_make_stub_cache): Likewise.
1485 (value_of_aarch64_user_reg): Likewise.
1486 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1487 (get_ada_inferior_data): Likewise.
1488 (get_ada_pspace_data): Likewise.
1489 (ada_pspace_data_cleanup): Likewise.
1490 (ada_complete_symbol_matcher): Likewise.
1491 (ada_exc_search_name_matches): Likewise.
1492 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1493 (get_ada_tasks_inferior_data): Likewise.
1494 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1495 (splay_obstack_alloc): Likewise.
1496 (splay_obstack_free): Likewise.
1497 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1498 (alpha_linux_collect_gregset): Likewise.
1499 (alpha_linux_supply_fpregset): Likewise.
1500 (alpha_linux_collect_fpregset): Likewise.
1501 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1502 * alpha-tdep.c (alpha_lds): Likewise.
1503 (alpha_sts): Likewise.
1504 (alpha_sigtramp_frame_unwind_cache): Likewise.
1505 (alpha_heuristic_frame_unwind_cache): Likewise.
1506 (alpha_supply_int_regs): Likewise.
1507 (alpha_fill_int_regs): Likewise.
1508 (alpha_supply_fp_regs): Likewise.
1509 (alpha_fill_fp_regs): Likewise.
1510 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1511 (alphanbsd_aout_supply_gregset): Likewise.
1512 (alphanbsd_supply_gregset): Likewise.
1513 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1514 (amd64_x32_linux_init_abi): Likewise.
1515 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1516 (amd64_collect_native_gregset): Likewise.
1517 * amd64-tdep.c (amd64_frame_cache): Likewise.
1518 (amd64_sigtramp_frame_cache): Likewise.
1519 (amd64_epilogue_frame_cache): Likewise.
1520 (amd64_supply_fxsave): Likewise.
1521 (amd64_supply_xsave): Likewise.
1522 (amd64_collect_fxsave): Likewise.
1523 (amd64_collect_xsave): Likewise.
1524 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1525 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1526 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1527 (arm_linux_collect_gregset): Likewise.
1528 (arm_linux_supply_nwfpe): Likewise.
1529 (arm_linux_collect_nwfpe): Likewise.
1530 (arm_linux_supply_vfp): Likewise.
1531 (arm_linux_collect_vfp): Likewise.
1532 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1533 (arm_prologue_unwind_stop_reason): Likewise.
1534 (arm_prologue_this_id): Likewise.
1535 (arm_prologue_prev_register): Likewise.
1536 (arm_exidx_data_free): Likewise.
1537 (arm_find_exidx_entry): Likewise.
1538 (arm_stub_this_id): Likewise.
1539 (arm_m_exception_this_id): Likewise.
1540 (arm_m_exception_prev_register): Likewise.
1541 (arm_normal_frame_base): Likewise.
1542 (gdb_print_insn_arm): Likewise.
1543 (arm_objfile_data_free): Likewise.
1544 (arm_record_special_symbol): Likewise.
1545 (value_of_arm_user_reg): Likewise.
1546 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1547 (armbsd_supply_gregset): Likewise.
1548 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1549 (get_auto_load_pspace_data): Likewise.
1550 (hash_loaded_script_entry): Likewise.
1551 (eq_loaded_script_entry): Likewise.
1552 (clear_section_scripts): Likewise.
1553 (collect_matching_scripts): Likewise.
1554 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1555 (get_auxv_inferior_data): Likewise.
1556 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1557 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1558 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1559 (target_bfd_xclose): Likewise.
1560 (target_bfd_get_section_table): Likewise.
1561 * bfin-tdep.c (bfin_frame_cache): Likewise.
1562 * block.c (find_block_in_blockvector): Likewise.
1563 (call_site_for_pc): Likewise.
1564 (block_find_non_opaque_type_preferred): Likewise.
1565 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1566 (signal_catchpoint_remove_location): Likewise.
1567 (signal_catchpoint_breakpoint_hit): Likewise.
1568 (signal_catchpoint_print_one): Likewise.
1569 (signal_catchpoint_print_mention): Likewise.
1570 (signal_catchpoint_print_recreate): Likewise.
1571 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1572 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1573 (bp_location_compare_addrs): Likewise.
1574 (get_first_locp_gte_addr): Likewise.
1575 (check_tracepoint_command): Likewise.
1576 (do_map_commands_command): Likewise.
1577 (get_breakpoint_objfile_data): Likewise.
1578 (free_breakpoint_probes): Likewise.
1579 (do_captured_breakpoint_query): Likewise.
1580 (compare_breakpoints): Likewise.
1581 (bp_location_compare): Likewise.
1582 (bpstat_remove_breakpoint_callback): Likewise.
1583 (do_delete_breakpoint_cleanup): Likewise.
1584 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1585 (bsd_uthread_set_collect_uthread): Likewise.
1586 (bsd_uthread_activate): Likewise.
1587 (bsd_uthread_fetch_registers): Likewise.
1588 (bsd_uthread_store_registers): Likewise.
1589 * btrace.c (check_xml_btrace_version): Likewise.
1590 (parse_xml_btrace_block): Likewise.
1591 (parse_xml_btrace_pt_config_cpu): Likewise.
1592 (parse_xml_btrace_pt_raw): Likewise.
1593 (parse_xml_btrace_pt): Likewise.
1594 (parse_xml_btrace_conf_bts): Likewise.
1595 (parse_xml_btrace_conf_pt): Likewise.
1596 (do_btrace_data_cleanup): Likewise.
1597 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1598 * charset.c (cleanup_iconv): Likewise.
1599 (do_cleanup_iterator): Likewise.
1600 * cli-out.c (cli_uiout_dtor): Likewise.
1601 (cli_table_begin): Likewise.
1602 (cli_table_body): Likewise.
1603 (cli_table_end): Likewise.
1604 (cli_table_header): Likewise.
1605 (cli_begin): Likewise.
1606 (cli_end): Likewise.
1607 (cli_field_int): Likewise.
1608 (cli_field_skip): Likewise.
1609 (cli_field_string): Likewise.
1610 (cli_field_fmt): Likewise.
1611 (cli_spaces): Likewise.
1612 (cli_text): Likewise.
1613 (cli_message): Likewise.
1614 (cli_wrap_hint): Likewise.
1615 (cli_flush): Likewise.
1616 (cli_redirect): Likewise.
1617 (out_field_fmt): Likewise.
1618 (field_separator): Likewise.
1619 (cli_out_set_stream): Likewise.
1620 * cli/cli-cmds.c (compare_symtabs): Likewise.
1621 * cli/cli-dump.c (call_dump_func): Likewise.
1622 (restore_section_callback): Likewise.
1623 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1624 (do_restore_user_call_depth): Likewise.
1625 (do_free_command_lines_cleanup): Likewise.
1626 * coff-pe-read.c (get_section_vmas): Likewise.
1627 (pe_as16): Likewise.
1628 (pe_as32): Likewise.
1629 * coffread.c (coff_symfile_read): Likewise.
1630 * common/agent.c (agent_look_up_symbols): Likewise.
1631 * common/filestuff.c (do_close_cleanup): Likewise.
1632 * common/format.c (free_format_pieces_cleanup): Likewise.
1633 * common/vec.c (vec_o_reserve): Likewise.
1634 * compile/compile-c-support.c (print_one_macro): Likewise.
1635 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1636 (eq_symbol_error): Likewise.
1637 (del_symbol_error): Likewise.
1638 (error_symbol_once): Likewise.
1639 (gcc_convert_symbol): Likewise.
1640 (gcc_symbol_address): Likewise.
1641 (hash_symname): Likewise.
1642 (eq_symname): Likewise.
1643 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1644 (eq_type_map_instance): Likewise.
1645 (insert_type): Likewise.
1646 (convert_type): Likewise.
1647 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1648 (setup_sections): Likewise.
1649 (link_hash_table_free): Likewise.
1650 (copy_sections): Likewise.
1651 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1652 * compile/compile.c (compile_print_value): Likewise.
1653 (do_rmdir): Likewise.
1654 (cleanup_compile_instance): Likewise.
1655 (cleanup_unlink_file): Likewise.
1656 * completer.c (free_completion_tracker): Likewise.
1657 * corelow.c (add_to_spuid_list): Likewise.
1658 * cp-namespace.c (reset_directive_searched): Likewise.
1659 * cp-support.c (reset_directive_searched): Likewise.
1660 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1661 (cris_frame_unwind_cache): Likewise.
1662 * d-lang.c (builtin_d_type): Likewise.
1663 * d-namespace.c (reset_directive_searched): Likewise.
1664 * dbxread.c (dbx_free_symfile_info): Likewise.
1665 (do_free_bincl_list_cleanup): Likewise.
1666 * disasm.c (hash_dis_line_entry): Likewise.
1667 (eq_dis_line_entry): Likewise.
1668 (dis_asm_print_address): Likewise.
1669 (fprintf_disasm): Likewise.
1670 (do_ui_file_delete): Likewise.
1671 * doublest.c (convert_floatformat_to_doublest): Likewise.
1672 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1673 (dummy_frame_prev_register): Likewise.
1674 (dummy_frame_this_id): Likewise.
1675 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1676 (cache_eq): Likewise.
1677 (cache_find): Likewise.
1678 (tailcall_frame_this_id): Likewise.
1679 (dwarf2_tailcall_prev_register_first): Likewise.
1680 (tailcall_frame_prev_register): Likewise.
1681 (tailcall_frame_dealloc_cache): Likewise.
1682 (tailcall_frame_prev_arch): Likewise.
1683 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1684 (dwarf2_frame_set_init_reg): Likewise.
1685 (dwarf2_frame_init_reg): Likewise.
1686 (dwarf2_frame_set_signal_frame_p): Likewise.
1687 (dwarf2_frame_signal_frame_p): Likewise.
1688 (dwarf2_frame_set_adjust_regnum): Likewise.
1689 (dwarf2_frame_adjust_regnum): Likewise.
1690 (clear_pointer_cleanup): Likewise.
1691 (dwarf2_frame_cache): Likewise.
1692 (find_cie): Likewise.
1693 (dwarf2_frame_find_fde): Likewise.
1694 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1695 (free_dwarf_expr_context_cleanup): Likewise.
1696 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1697 (locexpr_get_frame_base): Likewise.
1698 (loclist_find_frame_base_location): Likewise.
1699 (loclist_get_frame_base): Likewise.
1700 (dwarf_expr_dwarf_call): Likewise.
1701 (dwarf_expr_get_base_type): Likewise.
1702 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1703 (dwarf_expr_get_obj_addr): Likewise.
1704 (entry_data_value_coerce_ref): Likewise.
1705 (entry_data_value_copy_closure): Likewise.
1706 (entry_data_value_free_closure): Likewise.
1707 (get_frame_address_in_block_wrapper): Likewise.
1708 (dwarf2_evaluate_property): Likewise.
1709 (dwarf2_compile_property_to_c): Likewise.
1710 (needs_frame_read_addr_from_reg): Likewise.
1711 (needs_frame_get_reg_value): Likewise.
1712 (needs_frame_frame_base): Likewise.
1713 (needs_frame_frame_cfa): Likewise.
1714 (needs_frame_tls_address): Likewise.
1715 (needs_frame_dwarf_call): Likewise.
1716 (needs_dwarf_reg_entry_value): Likewise.
1717 (get_ax_pc): Likewise.
1718 (locexpr_read_variable): Likewise.
1719 (locexpr_read_variable_at_entry): Likewise.
1720 (locexpr_read_needs_frame): Likewise.
1721 (locexpr_describe_location): Likewise.
1722 (locexpr_tracepoint_var_ref): Likewise.
1723 (locexpr_generate_c_location): Likewise.
1724 (loclist_read_variable): Likewise.
1725 (loclist_read_variable_at_entry): Likewise.
1726 (loclist_describe_location): Likewise.
1727 (loclist_tracepoint_var_ref): Likewise.
1728 (loclist_generate_c_location): Likewise.
1729 * dwarf2read.c (line_header_hash_voidp): Likewise.
1730 (line_header_eq_voidp): Likewise.
1731 (dwarf2_has_info): Likewise.
1732 (dwarf2_get_section_info): Likewise.
1733 (locate_dwz_sections): Likewise.
1734 (hash_file_name_entry): Likewise.
1735 (eq_file_name_entry): Likewise.
1736 (delete_file_name_entry): Likewise.
1737 (dw2_setup): Likewise.
1738 (dw2_get_file_names_reader): Likewise.
1739 (dw2_find_pc_sect_compunit_symtab): Likewise.
1740 (hash_signatured_type): Likewise.
1741 (eq_signatured_type): Likewise.
1742 (add_signatured_type_cu_to_table): Likewise.
1743 (create_debug_types_hash_table): Likewise.
1744 (lookup_dwo_signatured_type): Likewise.
1745 (lookup_dwp_signatured_type): Likewise.
1746 (lookup_signatured_type): Likewise.
1747 (hash_type_unit_group): Likewise.
1748 (eq_type_unit_group): Likewise.
1749 (get_type_unit_group): Likewise.
1750 (process_psymtab_comp_unit_reader): Likewise.
1751 (sort_tu_by_abbrev_offset): Likewise.
1752 (process_skeletonless_type_unit): Likewise.
1753 (psymtabs_addrmap_cleanup): Likewise.
1754 (dwarf2_read_symtab): Likewise.
1755 (psymtab_to_symtab_1): Likewise.
1756 (die_hash): Likewise.
1758 (load_full_comp_unit_reader): Likewise.
1759 (reset_die_in_process): Likewise.
1760 (free_cu_line_header): Likewise.
1761 (handle_DW_AT_stmt_list): Likewise.
1762 (hash_dwo_file): Likewise.
1763 (eq_dwo_file): Likewise.
1764 (hash_dwo_unit): Likewise.
1765 (eq_dwo_unit): Likewise.
1766 (create_dwo_cu_reader): Likewise.
1767 (create_dwo_unit_in_dwp_v1): Likewise.
1768 (create_dwo_unit_in_dwp_v2): Likewise.
1769 (lookup_dwo_unit_in_dwp): Likewise.
1770 (dwarf2_locate_dwo_sections): Likewise.
1771 (dwarf2_locate_common_dwp_sections): Likewise.
1772 (dwarf2_locate_v2_dwp_sections): Likewise.
1773 (hash_dwp_loaded_cutus): Likewise.
1774 (eq_dwp_loaded_cutus): Likewise.
1775 (lookup_dwo_cutu): Likewise.
1776 (abbrev_table_free_cleanup): Likewise.
1777 (dwarf2_free_abbrev_table): Likewise.
1778 (find_partial_die_in_comp_unit): Likewise.
1779 (free_line_header_voidp): Likewise.
1780 (follow_die_offset): Likewise.
1781 (follow_die_sig_1): Likewise.
1782 (free_heap_comp_unit): Likewise.
1783 (free_stack_comp_unit): Likewise.
1784 (dwarf2_free_objfile): Likewise.
1785 (per_cu_offset_and_type_hash): Likewise.
1786 (per_cu_offset_and_type_eq): Likewise.
1787 (get_die_type_at_offset): Likewise.
1788 (partial_die_hash): Likewise.
1789 (partial_die_eq): Likewise.
1790 (dwarf2_per_objfile_free): Likewise.
1791 (hash_strtab_entry): Likewise.
1792 (eq_strtab_entry): Likewise.
1793 (add_string): Likewise.
1794 (hash_symtab_entry): Likewise.
1795 (eq_symtab_entry): Likewise.
1796 (delete_symtab_entry): Likewise.
1797 (cleanup_mapped_symtab): Likewise.
1798 (add_indices_to_cpool): Likewise.
1799 (hash_psymtab_cu_index): Likewise.
1800 (eq_psymtab_cu_index): Likewise.
1801 (add_address_entry_worker): Likewise.
1802 (unlink_if_set): Likewise.
1803 (write_one_signatured_type): Likewise.
1804 (save_gdb_index_command): Likewise.
1805 * elfread.c (elf_symtab_read): Likewise.
1806 (elf_gnu_ifunc_cache_hash): Likewise.
1807 (elf_gnu_ifunc_cache_eq): Likewise.
1808 (elf_gnu_ifunc_record_cache): Likewise.
1809 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1810 (elf_get_probes): Likewise.
1811 (probe_key_free): Likewise.
1812 * f-lang.c (builtin_f_type): Likewise.
1813 * frame-base.c (frame_base_append_sniffer): Likewise.
1814 (frame_base_set_default): Likewise.
1815 (frame_base_find_by_frame): Likewise.
1816 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1817 (frame_unwind_append_unwinder): Likewise.
1818 (frame_unwind_find_by_frame): Likewise.
1819 * frame.c (frame_addr_hash): Likewise.
1820 (frame_addr_hash_eq): Likewise.
1821 (frame_stash_find): Likewise.
1822 (do_frame_register_read): Likewise.
1823 (unwind_to_current_frame): Likewise.
1824 (frame_cleanup_after_sniffer): Likewise.
1825 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1826 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1827 * ft32-tdep.c (ft32_frame_cache): Likewise.
1828 * gcore.c (do_bfd_delete_cleanup): Likewise.
1829 (gcore_create_callback): Likewise.
1830 * gdb_bfd.c (hash_bfd): Likewise.
1832 (gdb_bfd_open): Likewise.
1833 (free_one_bfd_section): Likewise.
1834 (gdb_bfd_ref): Likewise.
1835 (gdb_bfd_unref): Likewise.
1836 (get_section_descriptor): Likewise.
1837 (gdb_bfd_map_section): Likewise.
1838 (gdb_bfd_crc): Likewise.
1839 (gdb_bfd_mark_parent): Likewise.
1840 (gdb_bfd_record_inclusion): Likewise.
1841 (gdb_bfd_requires_relocations): Likewise.
1842 (print_one_bfd): Likewise.
1843 * gdbtypes.c (type_pair_hash): Likewise.
1844 (type_pair_eq): Likewise.
1845 (builtin_type): Likewise.
1846 (objfile_type): Likewise.
1847 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1848 (vtable_address_point_offset): Likewise.
1849 (gnuv3_get_vtable): Likewise.
1850 (hash_value_and_voffset): Likewise.
1851 (eq_value_and_voffset): Likewise.
1852 (compare_value_and_voffset): Likewise.
1853 (compute_vtable_size): Likewise.
1854 (gnuv3_get_typeid_type): Likewise.
1855 * go-lang.c (builtin_go_type): Likewise.
1856 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1857 (bkscm_eq_block_smob): Likewise.
1858 (bkscm_objfile_block_map): Likewise.
1859 (bkscm_del_objfile_blocks): Likewise.
1860 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1861 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1862 (gdbscm_disasm_print_address): Likewise.
1863 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1864 (frscm_eq_frame_smob): Likewise.
1865 (frscm_inferior_frame_map): Likewise.
1866 (frscm_del_inferior_frames): Likewise.
1867 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1868 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1869 (ofscm_objfile_smob_from_objfile): Likewise.
1870 * guile/scm-ports.c (ioscm_write): Likewise.
1871 (ioscm_file_port_delete): Likewise.
1872 (ioscm_file_port_rewind): Likewise.
1873 (ioscm_file_port_put): Likewise.
1874 (ioscm_file_port_write): Likewise.
1875 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1876 (psscm_pspace_smob_from_pspace): Likewise.
1877 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1878 (scscm_recording_unwind_handler): Likewise.
1879 (gdbscm_with_catch): Likewise.
1880 (scscm_call_0_body): Likewise.
1881 (scscm_call_1_body): Likewise.
1882 (scscm_call_2_body): Likewise.
1883 (scscm_call_3_body): Likewise.
1884 (scscm_call_4_body): Likewise.
1885 (scscm_apply_1_body): Likewise.
1886 (scscm_eval_scheme_string): Likewise.
1887 (gdbscm_safe_eval_string): Likewise.
1888 (scscm_source_scheme_script): Likewise.
1889 (gdbscm_safe_source_script): Likewise.
1890 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1891 (gdbscm_call_scm_from_stringn): Likewise.
1892 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1893 (syscm_eq_symbol_smob): Likewise.
1894 (syscm_get_symbol_map): Likewise.
1895 (syscm_del_objfile_symbols): Likewise.
1896 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1897 (stscm_eq_symtab_smob): Likewise.
1898 (stscm_objfile_symtab_map): Likewise.
1899 (stscm_del_objfile_symtabs): Likewise.
1900 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1901 (tyscm_eq_type_smob): Likewise.
1902 (tyscm_type_map): Likewise.
1903 (tyscm_copy_type_recursive): Likewise.
1904 (save_objfile_types): Likewise.
1905 * guile/scm-utils.c (extract_arg): Likewise.
1906 * h8300-tdep.c (h8300_frame_cache): Likewise.
1907 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1908 * hppa-tdep.c (compare_unwind_entries): Likewise.
1909 (find_unwind_entry): Likewise.
1910 (hppa_frame_cache): Likewise.
1911 (hppa_stub_frame_unwind_cache): Likewise.
1912 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1913 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1914 (hppaobsd_supply_fpregset): Likewise.
1915 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1916 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1917 * i386-tdep.c (i386_frame_cache): Likewise.
1918 (i386_epilogue_frame_cache): Likewise.
1919 (i386_sigtramp_frame_cache): Likewise.
1920 (i386_supply_gregset): Likewise.
1921 (i386_collect_gregset): Likewise.
1922 (i386_gdbarch_init): Likewise.
1923 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1924 (i386obsd_trapframe_cache): Likewise.
1925 * i387-tdep.c (i387_supply_fsave): Likewise.
1926 (i387_collect_fsave): Likewise.
1927 (i387_supply_fxsave): Likewise.
1928 (i387_collect_fxsave): Likewise.
1929 (i387_supply_xsave): Likewise.
1930 (i387_collect_xsave): Likewise.
1931 * ia64-tdep.c (ia64_frame_cache): Likewise.
1932 (ia64_sigtramp_frame_cache): Likewise.
1933 * infcmd.c (attach_command_continuation): Likewise.
1934 (attach_command_continuation_free_args): Likewise.
1935 * inferior.c (restore_inferior): Likewise.
1936 (delete_thread_of_inferior): Likewise.
1937 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1938 (get_inflow_inferior_data): Likewise.
1939 (inflow_inferior_exit): Likewise.
1940 * infrun.c (displaced_step_clear_cleanup): Likewise.
1941 (restore_current_uiout_cleanup): Likewise.
1942 (release_stop_context_cleanup): Likewise.
1943 (do_restore_infcall_suspend_state_cleanup): Likewise.
1944 (do_restore_infcall_control_state_cleanup): Likewise.
1945 (restore_inferior_ptid): Likewise.
1946 * inline-frame.c (block_starting_point_at): Likewise.
1947 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1948 * jit.c (get_jit_objfile_data): Likewise.
1949 (get_jit_program_space_data): Likewise.
1950 (jit_object_close_impl): Likewise.
1951 (jit_find_objf_with_entry_addr): Likewise.
1952 (jit_breakpoint_deleted): Likewise.
1953 (jit_unwind_reg_set_impl): Likewise.
1954 (jit_unwind_reg_get_impl): Likewise.
1955 (jit_dealloc_cache): Likewise.
1956 (jit_frame_sniffer): Likewise.
1957 (jit_frame_prev_register): Likewise.
1958 (jit_prepend_unwinder): Likewise.
1959 (jit_inferior_exit_hook): Likewise.
1960 (free_objfile_data): Likewise.
1961 * jv-lang.c (jv_per_objfile_free): Likewise.
1962 (get_dynamics_objfile): Likewise.
1963 (get_java_class_symtab): Likewise.
1964 (builtin_java_type): Likewise.
1965 * language.c (language_string_char_type): Likewise.
1966 (language_bool_type): Likewise.
1967 (language_lookup_primitive_type): Likewise.
1968 (language_lookup_primitive_type_as_symbol): Likewise.
1969 * linespec.c (hash_address_entry): Likewise.
1970 (eq_address_entry): Likewise.
1971 (iterate_inline_only): Likewise.
1972 (iterate_name_matcher): Likewise.
1973 (decode_line_2_compare_items): Likewise.
1974 (collect_one_symbol): Likewise.
1975 (compare_symbols): Likewise.
1976 (compare_msymbols): Likewise.
1977 (add_symtabs_to_list): Likewise.
1978 (collect_symbols): Likewise.
1979 (compare_msyms): Likewise.
1980 (add_minsym): Likewise.
1981 (cleanup_linespec_result): Likewise.
1982 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1983 * linux-nat.c (delete_lwp_cleanup): Likewise.
1984 (count_events_callback): Likewise.
1985 (select_event_lwp_callback): Likewise.
1986 (resume_stopped_resumed_lwps): Likewise.
1987 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1988 (invalidate_linux_cache_inf): Likewise.
1989 (get_linux_inferior_data): Likewise.
1990 (linux_find_memory_regions_thunk): Likewise.
1991 (linux_make_mappings_callback): Likewise.
1992 (linux_corefile_thread_callback): Likewise.
1993 (find_mapping_size): Likewise.
1994 * linux-thread-db.c (find_new_threads_callback): Likewise.
1995 * lm32-tdep.c (lm32_frame_cache): Likewise.
1996 * m2-lang.c (builtin_m2_type): Likewise.
1997 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1998 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1999 (m32r_linux_supply_gregset): Likewise.
2000 (m32r_linux_collect_gregset): Likewise.
2001 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2002 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2003 * m68k-tdep.c (m68k_frame_cache): Likewise.
2004 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2005 (m68kbsd_supply_gregset): Likewise.
2006 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2007 * m88k-tdep.c (m88k_frame_cache): Likewise.
2008 (m88k_supply_gregset): Likewise.
2010 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2012 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2013 to allocation result assignment.
2014 * ada-exp.y (write_object_renaming): Likewise.
2015 (write_ambiguous_var): Likewise.
2016 (ada_nget_field_index): Likewise.
2017 (write_var_or_type): Likewise.
2018 * ada-lang.c (ada_decode_symbol): Likewise.
2019 (ada_value_assign): Likewise.
2020 (value_pointer): Likewise.
2021 (cache_symbol): Likewise.
2022 (add_nonlocal_symbols): Likewise.
2023 (ada_name_for_lookup): Likewise.
2024 (symbol_completion_add): Likewise.
2025 (ada_to_fixed_type_1): Likewise.
2026 (ada_get_next_arg): Likewise.
2027 (defns_collected): Likewise.
2028 * ada-lex.l (processId): Likewise.
2029 (processString): Likewise.
2030 * ada-tasks.c (read_known_tasks_array): Likewise.
2031 (read_known_tasks_list): Likewise.
2032 * ada-typeprint.c (decoded_type_name): Likewise.
2033 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2034 * amd64-tdep.c (amd64_push_arguments): Likewise.
2035 (amd64_displaced_step_copy_insn): Likewise.
2036 (amd64_classify_insn_at): Likewise.
2037 (amd64_relocate_instruction): Likewise.
2038 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2039 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2040 (initialize_current_architecture): Likewise.
2041 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2042 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2043 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2044 (arm_push_dummy_call): Likewise.
2045 (extend_buffer_earlier): Likewise.
2046 (arm_adjust_breakpoint_address): Likewise.
2047 (arm_skip_stub): Likewise.
2048 * auto-load.c (filename_is_in_pattern): Likewise.
2049 (maybe_add_script_file): Likewise.
2050 (maybe_add_script_text): Likewise.
2051 (auto_load_objfile_script_1): Likewise.
2052 * auxv.c (ld_so_xfer_auxv): Likewise.
2053 * ax-general.c (new_agent_expr): Likewise.
2054 (grow_expr): Likewise.
2055 (ax_reg_mask): Likewise.
2056 * bcache.c (bcache_full): Likewise.
2057 * breakpoint.c (program_breakpoint_here_p): Likewise.
2058 * btrace.c (parse_xml_raw): Likewise.
2059 * build-id.c (build_id_to_debug_bfd): Likewise.
2060 * buildsym.c (end_symtab_with_blockvector): Likewise.
2061 * c-exp.y (string_exp): Likewise.
2062 (qualified_name): Likewise.
2063 (write_destructor_name): Likewise.
2064 (operator_stoken): Likewise.
2065 (parse_number): Likewise.
2066 (scan_macro_expansion): Likewise.
2068 (c_print_token): Likewise.
2069 * c-lang.c (c_get_string): Likewise.
2070 (emit_numeric_character): Likewise.
2071 * charset.c (wchar_iterate): Likewise.
2072 * cli/cli-cmds.c (complete_command): Likewise.
2073 (make_command): Likewise.
2074 * cli/cli-dump.c (restore_section_callback): Likewise.
2075 (restore_binary_file): Likewise.
2076 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2077 * cli/cli-script.c (execute_control_command): Likewise.
2078 * cli/cli-setshow.c (do_set_command): Likewise.
2079 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2080 (read_pe_exported_syms): Likewise.
2081 * coffread.c (coff_read_struct_type): Likewise.
2082 (coff_read_enum_type): Likewise.
2083 * common/btrace-common.c (btrace_data_append): Likewise.
2084 * common/buffer.c (buffer_grow): Likewise.
2085 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2086 * common/format.c (parse_format_string): Likewise.
2087 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2088 * common/xml-utils.c (xml_escape_text): Likewise.
2089 * compile/compile-object-load.c (copy_sections): Likewise.
2090 (compile_object_load): Likewise.
2091 * compile/compile-object-run.c (compile_object_run): Likewise.
2092 * completer.c (filename_completer): Likewise.
2093 * corefile.c (read_memory_typed_address): Likewise.
2094 (write_memory_unsigned_integer): Likewise.
2095 (write_memory_signed_integer): Likewise.
2096 (complete_set_gnutarget): Likewise.
2097 * corelow.c (get_core_register_section): Likewise.
2098 * cp-name-parser.y (d_grab): Likewise.
2099 (allocate_info): Likewise.
2100 (cp_new_demangle_parse_info): Likewise.
2101 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2102 (cp_lookup_symbol_in_namespace): Likewise.
2103 (lookup_namespace_scope): Likewise.
2104 (find_symbol_in_baseclass): Likewise.
2105 (cp_lookup_nested_symbol): Likewise.
2106 (cp_lookup_transparent_type_loop): Likewise.
2107 * cp-support.c (copy_string_to_obstack): Likewise.
2108 (make_symbol_overload_list): Likewise.
2109 (make_symbol_overload_list_namespace): Likewise.
2110 (make_symbol_overload_list_adl_namespace): Likewise.
2111 (first_component_command): Likewise.
2112 * cp-valprint.c (cp_print_value): Likewise.
2113 * ctf.c (ctf_xfer_partial): Likewise.
2114 * d-exp.y (StringExp): Likewise.
2115 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2116 (lookup_module_scope): Likewise.
2117 (find_symbol_in_baseclass): Likewise.
2118 (d_lookup_nested_symbol): Likewise.
2119 * dbxread.c (find_stab_function_addr): Likewise.
2120 (read_dbx_symtab): Likewise.
2121 (dbx_end_psymtab): Likewise.
2122 (cp_set_block_scope): Likewise.
2123 * dcache.c (dcache_alloc): Likewise.
2124 * demangle.c (_initialize_demangler): Likewise.
2125 * dicos-tdep.c (dicos_load_module_p): Likewise.
2126 * dictionary.c (dict_create_hashed_expandable): Likewise.
2127 (dict_create_linear_expandable): Likewise.
2128 (expand_hashtable): Likewise.
2129 (add_symbol_linear_expandable): Likewise.
2130 * dwarf2-frame.c (add_cie): Likewise.
2131 (add_fde): Likewise.
2132 (dwarf2_build_frame_info): Likewise.
2133 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2134 (dwarf_expr_fetch_address): Likewise.
2135 (add_piece): Likewise.
2136 (execute_stack_op): Likewise.
2137 * dwarf2loc.c (chain_candidate): Likewise.
2138 (dwarf_entry_parameter_to_value): Likewise.
2139 (read_pieced_value): Likewise.
2140 (write_pieced_value): Likewise.
2141 * dwarf2read.c (dwarf2_read_section): Likewise.
2142 (add_type_unit): Likewise.
2143 (read_comp_units_from_section): Likewise.
2144 (fixup_go_packaging): Likewise.
2145 (dwarf2_compute_name): Likewise.
2146 (dwarf2_physname): Likewise.
2147 (create_dwo_unit_in_dwp_v1): Likewise.
2148 (create_dwo_unit_in_dwp_v2): Likewise.
2149 (read_func_scope): Likewise.
2150 (read_call_site_scope): Likewise.
2151 (dwarf2_attach_fields_to_type): Likewise.
2152 (process_structure_scope): Likewise.
2153 (mark_common_block_symbol_computed): Likewise.
2154 (read_common_block): Likewise.
2155 (abbrev_table_read_table): Likewise.
2156 (guess_partial_die_structure_name): Likewise.
2157 (fixup_partial_die): Likewise.
2158 (add_file_name): Likewise.
2159 (dwarf2_const_value_data): Likewise.
2160 (dwarf2_const_value_attr): Likewise.
2161 (build_error_marker_type): Likewise.
2162 (guess_full_die_structure_name): Likewise.
2163 (anonymous_struct_prefix): Likewise.
2164 (typename_concat): Likewise.
2165 (dwarf2_canonicalize_name): Likewise.
2166 (dwarf2_name): Likewise.
2167 (write_constant_as_bytes): Likewise.
2168 (dwarf2_fetch_constant_bytes): Likewise.
2169 (copy_string): Likewise.
2170 (parse_macro_definition): Likewise.
2171 * elfread.c (elf_symfile_segments): Likewise.
2172 (elf_rel_plt_read): Likewise.
2173 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2174 (elf_gnu_ifunc_resolve_by_got): Likewise.
2175 (elf_read_minimal_symbols): Likewise.
2176 (elf_gnu_ifunc_record_cache): Likewise.
2177 * event-top.c (top_level_prompt): Likewise.
2178 (command_line_handler): Likewise.
2179 * exec.c (resize_section_table): Likewise.
2180 * expprint.c (print_subexp_standard): Likewise.
2181 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2182 * findcmd.c (parse_find_args): Likewise.
2183 * findvar.c (address_from_register): Likewise.
2184 * frame.c (get_prev_frame_always): Likewise.
2185 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2186 (get_section_descriptor): Likewise.
2187 * gdb_obstack.c (obconcat): Likewise.
2188 (obstack_strdup): Likewise.
2189 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2190 (create_set_type): Likewise.
2191 (lookup_unsigned_typename): Likewise.
2192 (lookup_signed_typename): Likewise.
2193 (resolve_dynamic_union): Likewise.
2194 (resolve_dynamic_struct): Likewise.
2195 (add_dyn_prop): Likewise.
2196 (copy_dynamic_prop_list): Likewise.
2197 (arch_flags_type): Likewise.
2198 (append_composite_type_field_raw): Likewise.
2199 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2200 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2201 * go-exp.y (string_exp): Likewise.
2202 * go-lang.c (go_demangle): Likewise.
2203 * guile/guile.c (compute_scheme_string): Likewise.
2204 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2205 (gdbscm_canonicalize_command_name): Likewise.
2206 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2207 (ioscm_init_memory_port): Likewise.
2208 (ioscm_reinit_memory_port): Likewise.
2209 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2210 (gdbscm_gc_dup_argv): Likewise.
2211 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2212 * hppa-tdep.c (internalize_unwinds): Likewise.
2213 (read_unwind_info): Likewise.
2214 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2215 (windows_core_xfer_shared_libraries): Likewise.
2216 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2217 (i386_stap_parse_special_token_triplet): Likewise.
2218 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2219 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2220 * inf-child.c (inf_child_fileio_readlink): Likewise.
2221 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2222 (inf_ptrace_store_register): Likewise.
2223 * infrun.c (follow_exec): Likewise.
2224 (displaced_step_prepare_throw): Likewise.
2225 (save_stop_context): Likewise.
2226 (save_infcall_suspend_state): Likewise.
2227 * jit.c (jit_read_descriptor): Likewise.
2228 (jit_read_code_entry): Likewise.
2229 (jit_symtab_line_mapping_add_impl): Likewise.
2230 (finalize_symtab): Likewise.
2231 (jit_unwind_reg_get_impl): Likewise.
2232 * jv-exp.y (QualifiedName): Likewise.
2233 * jv-lang.c (get_java_utf8_name): Likewise.
2234 (type_from_class): Likewise.
2235 (java_demangle_type_signature): Likewise.
2236 (java_class_name_from_physname): Likewise.
2237 * jv-typeprint.c (java_type_print_base): Likewise.
2238 * jv-valprint.c (java_value_print): Likewise.
2239 * language.c (add_language): Likewise.
2240 * linespec.c (add_sal_to_sals_basic): Likewise.
2241 (add_sal_to_sals): Likewise.
2242 (decode_objc): Likewise.
2243 (find_linespec_symbols): Likewise.
2244 * linux-fork.c (fork_save_infrun_state): Likewise.
2245 * linux-nat.c (linux_nat_detach): Likewise.
2246 (linux_nat_fileio_readlink): Likewise.
2247 * linux-record.c (record_linux_sockaddr): Likewise.
2248 (record_linux_msghdr): Likewise.
2250 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2251 (linux_collect_regset_section_cb): Likewise.
2252 (linux_get_siginfo_data): Likewise.
2253 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2254 (try_thread_db_load_from_dir): Likewise.
2255 (thread_db_load_search): Likewise.
2256 (info_auto_load_libthread_db): Likewise.
2257 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2258 (m32c_m16c_pointer_to_address): Likewise.
2259 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2260 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2261 * machoread.c (macho_check_dsym): Likewise.
2262 * macroexp.c (resize_buffer): Likewise.
2263 (gather_arguments): Likewise.
2264 (maybe_expand): Likewise.
2265 * macrotab.c (new_macro_key): Likewise.
2266 (new_source_file): Likewise.
2267 (new_macro_definition): Likewise.
2268 * mdebugread.c (parse_symbol): Likewise.
2269 (parse_type): Likewise.
2270 (parse_partial_symbols): Likewise.
2271 (psymtab_to_symtab_1): Likewise.
2272 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2273 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2274 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2275 (mi_cmd_data_read_memory_bytes): Likewise.
2276 (mi_cmd_data_write_memory_bytes): Likewise.
2277 (mi_cmd_trace_frame_collected): Likewise.
2278 * mi/mi-parse.c (mi_parse_argv): Likewise.
2279 (mi_parse): Likewise.
2280 * minidebug.c (lzma_open): Likewise.
2281 (lzma_pread): Likewise.
2282 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2283 (mips_print_fp_register): Likewise.
2284 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2285 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2286 * mt-tdep.c (mt_register_name): Likewise.
2287 (mt_registers_info): Likewise.
2288 (mt_push_dummy_call): Likewise.
2289 * namespace.c (add_using_directive): Likewise.
2290 * nat/linux-btrace.c (perf_event_read): Likewise.
2291 (linux_enable_bts): Likewise.
2292 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2293 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2294 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2295 (nto_parse_redirection): Likewise.
2296 * objc-lang.c (objc_demangle): Likewise.
2297 (find_methods): Likewise.
2298 * objfiles.c (get_objfile_bfd_data): Likewise.
2299 (set_objfile_main_name): Likewise.
2300 (allocate_objfile): Likewise.
2301 (objfile_relocate): Likewise.
2302 (update_section_map): Likewise.
2303 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2304 * p-exp.y (exp): Likewise.
2306 * p-valprint.c (pascal_object_print_value): Likewise.
2307 * parse.c (initialize_expout): Likewise.
2308 (mark_completion_tag): Likewise.
2309 (copy_name): Likewise.
2310 (parse_float): Likewise.
2311 (type_stack_reserve): Likewise.
2312 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2313 (ppu2spu_prev_register): Likewise.
2314 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2315 * printcmd.c (printf_wide_c_string): Likewise.
2316 (printf_pointer): Likewise.
2317 * probe.c (parse_probes): Likewise.
2318 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2319 (cmdpy_init): Likewise.
2320 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2321 * python/py-symtab.c (set_sal): Likewise.
2322 * python/py-unwind.c (pyuw_sniffer): Likewise.
2323 * python/python.c (python_interactive_command): Likewise.
2324 (compute_python_string): Likewise.
2325 * ravenscar-thread.c (get_running_thread_id): Likewise.
2326 * record-full.c (record_full_exec_insn): Likewise.
2327 (record_full_core_open_1): Likewise.
2328 * regcache.c (regcache_raw_read_signed): Likewise.
2329 (regcache_raw_read_unsigned): Likewise.
2330 (regcache_cooked_read_signed): Likewise.
2331 (regcache_cooked_read_unsigned): Likewise.
2332 * remote-fileio.c (remote_fileio_func_open): Likewise.
2333 (remote_fileio_func_rename): Likewise.
2334 (remote_fileio_func_unlink): Likewise.
2335 (remote_fileio_func_stat): Likewise.
2336 (remote_fileio_func_system): Likewise.
2337 * remote-mips.c (mips_xfer_memory): Likewise.
2338 (mips_load_srec): Likewise.
2339 (pmon_end_download): Likewise.
2340 * remote.c (new_remote_state): Likewise.
2341 (map_regcache_remote_table): Likewise.
2342 (remote_register_number_and_offset): Likewise.
2343 (init_remote_state): Likewise.
2344 (get_memory_packet_size): Likewise.
2345 (remote_pass_signals): Likewise.
2346 (remote_program_signals): Likewise.
2347 (remote_start_remote): Likewise.
2348 (remote_check_symbols): Likewise.
2349 (remote_query_supported): Likewise.
2350 (extended_remote_attach): Likewise.
2351 (process_g_packet): Likewise.
2352 (store_registers_using_G): Likewise.
2353 (putpkt_binary): Likewise.
2354 (read_frame): Likewise.
2355 (compare_sections_command): Likewise.
2356 (remote_hostio_pread): Likewise.
2357 (remote_hostio_readlink): Likewise.
2358 (remote_file_put): Likewise.
2359 (remote_file_get): Likewise.
2360 (remote_pid_to_exec_file): Likewise.
2361 (_initialize_remote): Likewise.
2362 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2363 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2364 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2365 (bfd_uses_spe_extensions): Likewise.
2366 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2367 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2368 * solib-dsbt.c (decode_loadmap): Likewise.
2369 (fetch_loadmap): Likewise.
2370 (scan_dyntag): Likewise.
2371 (enable_break): Likewise.
2372 (dsbt_relocate_main_executable): Likewise.
2373 * solib-frv.c (fetch_loadmap): Likewise.
2374 (enable_break2): Likewise.
2375 (frv_relocate_main_executable): Likewise.
2376 * solib-spu.c (spu_relocate_main_executable): Likewise.
2377 (spu_bfd_open): Likewise.
2378 * solib-svr4.c (lm_info_read): Likewise.
2379 (read_program_header): Likewise.
2380 (find_program_interpreter): Likewise.
2381 (scan_dyntag): Likewise.
2382 (elf_locate_base): Likewise.
2383 (open_symbol_file_object): Likewise.
2384 (read_program_headers_from_bfd): Likewise.
2385 (svr4_relocate_main_executable): Likewise.
2386 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2387 * solib.c (solib_find_1): Likewise.
2388 (exec_file_find): Likewise.
2389 (solib_find): Likewise.
2390 * source.c (openp): Likewise.
2391 (print_source_lines_base): Likewise.
2392 (forward_search_command): Likewise.
2393 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2394 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2395 (spu_get_overlay_table): Likewise.
2396 * stabsread.c (patch_block_stabs): Likewise.
2397 (define_symbol): Likewise.
2399 (read_member_functions): Likewise.
2400 (read_one_struct_field): Likewise.
2401 (read_enum_type): Likewise.
2402 (common_block_start): Likewise.
2403 * stack.c (read_frame_arg): Likewise.
2404 (backtrace_command): Likewise.
2405 * stap-probe.c (stap_parse_register_operand): Likewise.
2406 * symfile.c (syms_from_objfile_1): Likewise.
2407 (find_separate_debug_file): Likewise.
2408 (load_command): Likewise.
2409 (load_progress): Likewise.
2410 (load_section_callback): Likewise.
2411 (reread_symbols): Likewise.
2412 (add_filename_language): Likewise.
2413 (allocate_compunit_symtab): Likewise.
2414 (read_target_long_array): Likewise.
2415 (simple_read_overlay_table): Likewise.
2416 * symtab.c (symbol_set_names): Likewise.
2417 (resize_symbol_cache): Likewise.
2418 (rbreak_command): Likewise.
2419 (completion_list_add_name): Likewise.
2420 (completion_list_objc_symbol): Likewise.
2421 (add_filename_to_list): Likewise.
2422 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2423 * target-memory.c (target_write_memory_blocks): Likewise.
2424 * target.c (target_read_string): Likewise.
2425 (read_whatever_is_readable): Likewise.
2426 (target_read_alloc_1): Likewise.
2427 (simple_search_memory): Likewise.
2428 (target_fileio_read_alloc_1): Likewise.
2429 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2430 * top.c (command_line_input): Likewise.
2431 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2432 * tracefile.c (tracefile_fetch_registers): Likewise.
2433 * tracepoint.c (add_memrange): Likewise.
2434 (init_collection_list): Likewise.
2435 (add_aexpr): Likewise.
2436 (trace_dump_actions): Likewise.
2437 (parse_trace_status): Likewise.
2438 (parse_tracepoint_definition): Likewise.
2439 (parse_tsv_definition): Likewise.
2440 (parse_static_tracepoint_marker_definition): Likewise.
2441 * tui/tui-file.c (tui_sfileopen): Likewise.
2442 (tui_file_adjust_strbuf): Likewise.
2443 * tui/tui-io.c (tui_expand_tabs): Likewise.
2444 * tui/tui-source.c (tui_set_source_content): Likewise.
2445 * typeprint.c (find_global_typedef): Likewise.
2446 * ui-file.c (do_ui_file_xstrdup): Likewise.
2447 (ui_file_obsavestring): Likewise.
2448 (mem_file_write): Likewise.
2449 * utils.c (make_hex_string): Likewise.
2450 (get_regcomp_error): Likewise.
2451 (puts_filtered_tabular): Likewise.
2452 (gdb_realpath_keepfile): Likewise.
2453 (ldirname): Likewise.
2454 (gdb_bfd_errmsg): Likewise.
2455 (substitute_path_component): Likewise.
2456 * valops.c (search_struct_method): Likewise.
2457 (find_oload_champ_namespace_loop): Likewise.
2458 * valprint.c (print_decimal_chars): Likewise.
2459 (read_string): Likewise.
2460 (generic_emit_char): Likewise.
2461 * varobj.c (varobj_delete): Likewise.
2462 (varobj_value_get_print_value): Likewise.
2463 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2464 * windows-tdep.c (display_one_tib): Likewise.
2465 * xcoffread.c (read_xcoff_symtab): Likewise.
2466 (process_xcoff_symbol): Likewise.
2467 (swap_sym): Likewise.
2468 (scan_xcoff_symtab): Likewise.
2469 (xcoff_initial_scan): Likewise.
2470 * xml-support.c (gdb_xml_end_element): Likewise.
2471 (xml_process_xincludes): Likewise.
2472 (xml_fetch_content_from_file): Likewise.
2473 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2474 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2476 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2478 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2479 instead of builtin_func_ptr.
2480 (ft32_pointer_to_address): New function.
2481 (ft32_address_class_type_flags): New function.
2482 (ft32_address_class_type_flags_to_name): New function.
2483 (ft32_address_class_name_to_type_flags): New function.
2484 (ft32_gdbarch_init): Set tdep->pc_type. Call
2485 set_gdbarch_pointer_to_address,
2486 set_gdbarch_address_class_type_flags
2487 set_gdbarch_address_class_name_to_type_flags,
2488 and set_gdbarch_address_class_type_flags_to_name.
2489 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2491 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2493 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2494 value is a reference, actually dereference it in order to get
2495 the underlying value.
2497 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2499 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2501 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2503 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2504 * linespec.c (linespec_lexer_lex_string): Same.
2506 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2508 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2510 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2512 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2513 variable. Call aarch64_decode_adr instead of
2514 aarch64_decode_adrp.
2515 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2516 (aarch64_decode_adr): New function declaration.
2517 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2518 (aarch64_decode_adr): New function, factored out from
2519 aarch64_decode_adrp to decode both adr and adrp instructions.
2521 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2523 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2524 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2525 (aarch64-insn.o): New rule.
2526 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2527 (aarch64*-*-linux*): Likewise.
2528 * arch/aarch64-insn.c: New file.
2529 * arch/aarch64-insn.h: New file.
2530 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2531 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2532 arch/aarch64-insn.h.
2533 (decode_add_sub_imm): Rename to ...
2534 (aarch64_decode_add_sub_imm): ... this.
2535 (decode_adrp): Rename to ...
2536 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2537 Declare in arch/aarch64-insn.h.
2538 (decode_b): Rename to ...
2539 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2540 Declare in arch/aarch64-insn.h.
2541 (decode_bcond): Rename to ...
2542 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2543 Declare in arch/aarch64-insn.h.
2544 (decode_br): Rename to ...
2545 (aarch64_decode_br): ... this.
2546 (decode_cb): Rename to ...
2547 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2548 Declare in arch/aarch64-insn.h.
2549 (decode_eret): Rename to ...
2550 (aarch64_decode_eret): ... this.
2551 (decode_movz): Rename to ...
2552 (aarch64_decode_movz): ... this.
2553 (decode_orr_shifted_register_x): Rename to ...
2554 (aarch64_decode_orr_shifted_register_x): ... this.
2555 (decode_ret): Rename to ...
2556 (aarch64_decode_ret): ... this.
2557 (decode_stp_offset): Rename to ...
2558 (aarch64_decode_stp_offset): ... this.
2559 (decode_stp_offset_wb): Rename to ...
2560 (aarch64_decode_stp_offset_wb): ... this.
2561 (decode_stur): Rename to ...
2562 (aarch64_decode_stur): ... this.
2563 (decode_tb): Rename to ...
2564 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2565 Declare in arch/aarch64-insn.h.
2566 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2568 2015-09-20 Doug Evans <xdje42@gmail.com>
2570 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2572 2015-09-20 Doug Evans <xdje42@gmail.com>
2574 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2575 variable name that collides with a parameter.
2577 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2579 * dwarf2loc.c (locexpr_get_frame_base): Renames
2580 block_op_get_frame_base.
2581 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2582 block_op_get_frame_base by reference to locexpr_get_frame_base.
2583 (loclist_get_frame_base): New function, near identical copy of
2584 locexpr_get_frame_base.
2585 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2586 block_op_get_frame_base by reference to loclist_get_frame_base.
2588 2015-09-19 Doug Evans <xdje42@gmail.com>
2590 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2591 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2593 2015-09-18 Doug Evans <xdje42@gmail.com>
2595 * linux-thread-db.c (record_thread): Return the created thread.
2596 (thread_from_lwp): Likewise.
2597 (thread_db_get_thread_local_address): Update.
2599 2015-09-18 Doug Evans <xdje42@gmail.com>
2601 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2602 move only member demangled_name up. All uses updated.
2604 2015-09-18 Doug Evans <xdje42@gmail.com>
2606 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2607 kind of minimal symbol in the error message.
2608 * objfiles.c (objfile_flavour_name): New function.
2609 * objfiles.h (objfile_flavour_name): Declare.
2611 2015-09-18 Yao Qi <yao.qi@linaro.org>
2613 * nat/aarch64-linux.c: Include elf/common.h,
2614 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2615 (aarch64_ps_get_thread_area): New function.
2616 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2617 (aarch64_ps_get_thread_area): Declare.
2618 * aarch64-linux-nat.c (ps_get_thread_area): Call
2619 aarch64_ps_get_thread_area.
2621 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2623 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2625 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2627 * NEWS: Announce new scheduler-locking mode.
2628 * infrun.c (schedlock_replay): New.
2629 (scheduler_enums): Add schedlock_replay.
2630 (scheduler_mode): Change default to schedlock_replay.
2631 (user_visible_resume_ptid): Handle schedlock_replay.
2632 (clear_proceed_status_thread): Stop replaying if resumed thread is
2634 (schedlock_applies): Handle schedlock_replay.
2635 (_initialize_infrun): Document new scheduler-locking mode.
2636 * record-btrace.c (record_btrace_resume): Remove code to stop other
2637 threads when not replaying the resumed thread.
2639 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2641 * record-btrace.c ((record_btrace_will_replay): New.
2642 (init_record_btrace_ops): Initialize to_record_will_replay.
2643 * record-full.c ((record_full_will_replay): New.
2644 (init_record_full_ops): Initialize to_record_will_replay.
2645 * target-delegates.c: Regenerated.
2646 * target.c (target_record_will_replay): New.
2647 * target.h (struct target_ops) <to_record_will_replay>: New.
2648 (target_record_will_replay): New.
2650 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2652 * record-btrace.c (record_btrace_resume): Call
2653 target_record_stop_replaying.
2654 (record_btrace_stop_replaying_all): New.
2655 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2656 * record-full.c (record_full_stop_replaying): New.
2657 (init_record_full_ops ): Initialize to_record_stop_replaying.
2658 * target-delegates.c: Regenerated.
2659 * target.c (target_record_stop_replaying): New.
2660 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2661 (target_record_stop_replaying): New.
2663 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2665 * record-btrace.c (record_btrace_xfer_partial)
2666 (record_btrace_store_registers, record_btrace_prepare_to_store):
2667 Call record_btrace_is_replaying with inferior_ptid instead of
2669 (record_btrace_store_registers): Change error message.
2671 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2673 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2674 Update users to pass minus_one_ptid.
2675 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2676 * record.c (cmd_record_delete): Pass inferior_ptid to
2677 target_record_is_replaying.
2678 * target-delegates.c: Regenerated.
2679 * target.c (target_record_is_replaying): Add ptid argument.
2680 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2682 (target_record_is_replaying): Add ptid argument.
2684 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2686 * record-btrace.c (record_btrace_open): Remove non_stop check.
2687 * NEWS: Announce that record btrace supports non-stop mode.
2689 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2691 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2692 in the TARKET_WAITKIND_NO_HISTORY case.
2694 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2696 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2697 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2699 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2701 * record-btrace.c (get_thread_current_frame): New.
2702 (record_btrace_start_replaying): Call get_thread_current_frame.
2704 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2706 * record-btrace.c (record_btrace_resume_thread): A move request
2707 overwrites a previous move request.
2708 (record_btrace_find_resume_thread): Removed.
2709 (record_btrace_resume): Resume all requested threads.
2711 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2713 * record-btrace.c: Include vec.h.
2714 (record_btrace_find_thread_to_move): Removed.
2715 (btrace_step_no_resumed, btrace_step_again)
2716 (record_btrace_stop_replaying_at_end): New.
2717 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2718 (record_btrace_single_step_forward): Remove calls to
2719 record_btrace_stop_replaying.
2720 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2721 BTHR_RCONT. Keep threads at the end of their history moving.
2722 (record_btrace_wait): Call record_btrace_step_thread for all threads
2723 until one reports an event. Call record_btrace_stop_replaying_at_end
2724 for the eventing thread.
2726 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2728 * record-btrace.c (record_btrace_single_step_forward): Return
2729 NO_HISTORY if a step brings us to the end of the execution history.
2731 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2733 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2735 (record_btrace_single_step_forward): ... here and
2736 (record_btrace_single_step_backward): ... here.
2738 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2740 * record-btrace.c (btrace_step_spurious)
2741 (record_btrace_single_step_forward)
2742 (record_btrace_single_step_backward): New.
2743 (record_btrace_step_thread): Call record_btrace_single_step_forward
2744 and record_btrace_single_step_backward.
2746 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2748 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2749 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2751 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2753 * record-btrace.c (btrace_thread_flag_to_str)
2754 (record_btrace_cancel_resume): New.
2755 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2756 (record_btrace_resume): Print execution direction.
2757 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2758 (record_btrace_wait): Call record_btrace_cancel_resume.
2760 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2762 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2763 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2764 (record_btrace_find_thread_to_move): Also accept threads that have
2766 (btrace_step_stopped_on_request, record_btrace_stop): New.
2767 (record_btrace_step_thread): Support BTHR_STOP.
2768 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2769 (init_record_btrace_ops): Initialize to_stop.
2771 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2773 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2774 target_is_non_stop_p ().
2776 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2778 * ada-typeprint.c (print_array_type): Do not describe arrays as
2779 packed when they embed dynamic elements.
2781 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2783 * symtab.h (address_class): Document that TLS variables
2784 are handled by LOC_UNRESOLVED.
2785 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2786 * printcmd.c (address_info): Don't relocate TLS variables.
2788 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2790 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2791 (decode_adrp): Likewise.
2792 (decode_b): Likewise.
2793 (decode_bcond): Likewise.
2794 (decode_br): Likewise.
2795 (decode_cb): Likewise.
2796 (decode_eret): Likewise.
2797 (decode_movz): Likewise.
2798 (decode_orr_shifted_register_x): Likewise.
2799 (decode_ret): Likewise.
2800 (decode_stp_offset): Likewise.
2801 (decode_stp_offset_wb): Likewise.
2802 (decode_stur): Likewise.
2803 (decode_tb): Likewise.
2804 (aarch64_analyze_prologue): Likewise.
2805 (pass_in_x): Likewise.
2806 (pass_in_v): Likewise.
2807 (pass_on_stack): Likewise.
2808 (aarch64_push_dummy_call): Likewise.
2809 (aarch64_extract_return_value): Likewise.
2810 (aarch64_store_return_value): Likewise.
2811 (aarch64_return_value): Likewise.
2812 (aarch64_record_asimd_load_store): Likewise.
2813 (aarch64_record_load_store): Likewise.
2814 (aarch64_record_data_proc_simd_fp): Likewise.
2816 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2818 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2819 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2820 (ppc64_skip_trampoline_code_1): ... here.
2821 (ppc64_skip_trampoline_code): New wrapper function.
2822 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2824 2015-09-15 Yao Qi <yao.qi@linaro.org>
2826 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2828 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2829 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2830 if target_can_do_single_step returns 1.
2831 * remote.c (struct vCont_action_support) <s, S>: New fields.
2832 (PACKET_vContSupported): New enum.
2833 (remote_protocol_features): New element for vContSupported.
2834 (remote_query_supported): Append "vContSupported+".
2835 (remote_vcont_probe): Remove support_s and support_S, use
2836 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2837 vCont packet if c and C actions are not supported.
2838 (remote_can_do_single_step): New function.
2839 (init_remote_ops): Install it to to_can_do_single_step.
2840 (_initialize_remote): Call add_packet_config_cmd.
2841 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2842 (target_can_do_single_step): New macro.
2843 * target-delegates.c: Re-generated.
2845 2015-09-15 Yao Qi <yao.qi@linaro.org>
2847 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2848 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2849 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2851 (aarch64_siginfo_from_compat_siginfo): New function.
2852 * nat/aarch64-linux.h: Include signal.h.
2853 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2854 (compat_timer_t, compat_clock_t): Likewise.
2855 (struct compat_timeval): New.
2856 (union compat_sigval): New.
2857 (struct compat_siginfo): New.
2858 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2859 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2860 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2861 (cpt_si_band, cpt_si_fd): Likewise.
2863 2015-09-14 Pedro Alves <palves@redhat.com>
2865 * infrun.c (current_stop_id): New global.
2866 (get_stop_id, new_stop_id): New functions.
2867 (fetch_inferior_event): Handle normal_stop proceeding the target.
2868 (struct stop_context): New.
2869 (save_stop_context, release_stop_context_cleanup)
2870 (stop_context_changed): New functions.
2871 (normal_stop): Return true if the hook-stop changes the stop
2873 * infrun.h (get_stop_id): Declare.
2874 (normal_stop): Now returns int. Add documentation.
2876 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2878 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2879 comment. Handle packed arrays.
2881 2015-09-14 Pedro Alves <palves@redhat.com>
2883 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2884 mention of maint set/show target-non-stop.
2886 2015-09-11 Don Breazeal <donb@codesourcery.com>
2888 * NEWS: Announce new remote packets for the exec-events
2889 feature and the exec-events feature and associated commands.
2891 2015-09-11 Don Breazeal <donb@codesourcery.com>
2893 * remote.c (remote_exec_event_p): New function.
2894 (remote_insert_exec_catchpoint): New function.
2895 (remote_remove_exec_catchpoint): New function.
2896 (init_extended_remote_ops): Initialize extended_remote_ops
2897 members to_insert_exec_catchpoint and
2898 to_remove_exec_catchpoint.
2900 2015-09-11 Don Breazeal <donb@codesourcery.com>
2901 Luis Machado <lgustavo@codesourcery.com>
2903 * infrun.c (follow_exec): Use process-style ptid for
2904 exec message. Call add_inferior_with_spaces and
2906 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2907 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2908 * remote.c (remote_pspace_data): New static variable.
2909 (remote_pspace_data_cleanup): New function.
2910 (get_remote_exec_file): New function.
2911 (set_remote_exec_file_1): New function.
2912 (set_remote_exec_file): New function.
2913 (show_remote_exec_file): New function.
2914 (remote_exec_file): Delete static variable.
2915 (anonymous enum) <PACKET_exec_event_feature>: New
2916 enumeration constant.
2917 (remote_protocol_features): Add entry for exec-events feature.
2918 (remote_query_supported): Add client side of qSupported query
2919 for exec-events feature.
2920 (remote_follow_exec): New function.
2921 (remote_parse_stop_reply): Handle 'exec' stop reason.
2922 (extended_remote_run, extended_remote_create_inferior): Call
2923 get_remote_exec_file and set_remote_exec_file_1.
2924 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2926 (_initialize_remote): Call
2927 register_program_space_data_with_cleanup. Call
2928 add_packet_config_cmd for remote exec-events feature.
2929 Modify call to add_setshow_string_noescape_cmd for exec-file
2930 to use new functions set_remote_exec_file and
2931 show_remote_exec_file.
2932 * target-debug.h, target-delegates.c: Regenerated.
2933 * target.c (target_follow_exec): New function.
2934 * target.h (struct target_ops) <to_follow_exec>: New member.
2935 (target_follow_exec): Declare new function.
2937 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2939 * aarch64-tdep.c (decode_cb): Move up comment describing the
2941 (decode_tb): Fix a typo in comment above the function. Move up
2942 comment describing the encoding.
2944 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2946 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2948 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2951 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2952 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2954 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2956 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2959 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2961 * ada-lang.c (ada_search_struct_field): Constify parameters
2963 (xget_renaming_scope): Likewise.
2964 (ada_is_redundant_range_encoding): Likewise.
2965 (scan_discrim_bound): Likewise.
2966 (to_fixed_range_type): Likewise.
2968 2015-09-10 Yao Qi <yao.qi@linaro.org>
2970 * breakpoint.c (download_tracepoint_locations): New local
2971 can_download_tracepoint. Check the result of
2972 target_can_download_tracepoint and save it in
2973 can_download_tracepoint if there are tracepoints to download.
2974 * linux-nat.h (enum tribool): Move it to ...
2975 * common/common-types.h: ... here.
2977 2015-09-09 Pedro Alves <palves@redhat.com>
2979 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2980 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2982 2015-09-09 Pedro Alves <palves@redhat.com>
2984 * continuations.c (add_continuation, restore_thread_cleanup)
2985 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2986 (do_all_continuations_thread, do_all_continuations)
2987 (discard_all_continuations_thread_callback)
2988 (discard_all_continuations_thread, discard_all_continuations)
2989 (add_intermediate_continuation)
2990 (do_all_intermediate_continuations_thread_callback)
2991 (do_all_intermediate_continuations_thread)
2992 (do_all_intermediate_continuations)
2993 (discard_all_intermediate_continuations_thread_callback)
2994 (discard_all_intermediate_continuations_thread)
2995 (discard_all_intermediate_continuations): Delete.
2996 * continuations.h (add_continuation, do_all_continuations)
2997 (do_all_continuations_thread, discard_all_continuations)
2998 (discard_all_continuations_thread, add_intermediate_continuation)
2999 (do_all_intermediate_continuations)
3000 (do_all_intermediate_continuations_thread)
3001 (discard_all_intermediate_continuations)
3002 (discard_all_intermediate_continuations_thread): Delete
3004 * event-top.c (stdin_event_handler): Delete references to
3006 * gdbthread.h (struct thread_info): Delete continuations and
3007 intermediate_continuations fields.
3008 * inf-loop.c (inferior_event_handler): Remove references to
3010 * infrun.c (infrun_thread_stop_requested_callback): Remove
3011 references to continuations.
3012 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3013 * thread.c: Don't include "continuations.h".
3014 (clear_thread_inferior_resources): Remove references to
3017 2015-09-09 Pedro Alves <palves@redhat.com>
3019 * infcall.c (struct dummy_frame_context_saver): Delete.
3020 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3021 (dummy_frame_context_saver_drop)
3022 (dummy_frame_context_saver_cleanup)
3023 (dummy_frame_context_saver_get_regs)
3024 (dummy_frame_context_saver_setup): Delete.
3025 * infcall.h (dummy_frame_context_saver_drop)
3026 (dummy_frame_context_saver_cleanup)
3027 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3029 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3030 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3031 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3033 2015-09-09 Pedro Alves <palves@redhat.com>
3035 * breakpoint.c: Include "thread-fsm.h".
3036 (struct until_break_command_continuation_args): Delete.
3037 (struct until_break_fsm): New.
3038 (until_break_fsm_ops): New global.
3039 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3040 (until_break_command_continuation): Delete.
3041 (until_break_fsm_clean_up): New function.
3042 (until_break_fsm_async_reply_reason): New function.
3043 (until_break_command): Adjust to create an until_break_fsm instead
3045 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3047 * infcmd.c (struct until_next_fsm): New.
3048 (until_next_fsm_ops): New global.
3049 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3050 (until_next_continuation): Delete.
3051 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3053 (until_next_command): Adjust to create a new until_next_fsm
3054 instead of a continuation.
3056 2015-09-09 Pedro Alves <palves@redhat.com>
3058 * infcall.c: Include thread_fsm.h.
3059 (struct call_return_meta_info): New.
3060 (get_call_return_value): New function, factored out from
3061 call_function_by_hand_dummy.
3062 (struct call_thread_fsm): New.
3063 (call_thread_fsm_ops): New global.
3064 (new_call_thread_fsm, call_thread_fsm_should_stop)
3065 (call_thread_fsm_should_notify_stop): New functions.
3066 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3068 (call_function_by_hand_dummy): Create a new call_thread_fsm
3069 instance, associate it with the thread, and wait for the FSM to
3070 finish. If finished successfully, fetch the function's result
3071 value out of the FSM.
3072 * infrun.c (fetch_inferior_event): If the FSM says the stop
3073 shouldn't be notified, don't call normal_stop.
3074 (maybe_remove_breakpoints): New function, factored out from ...
3075 (normal_stop): ... here. Simplify.
3076 * infrun.h (maybe_remove_breakpoints): Declare.
3077 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3078 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3079 (thread_fsm_should_notify_stop): Declare.
3081 2015-09-09 Pedro Alves <palves@redhat.com>
3083 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3084 * breakpoint.c (handle_jit_event): Print debug output.
3085 (bpstat_what): Split event callback handling to ...
3086 (bpstat_run_callbacks): ... this new function.
3087 (momentary_bkpt_print_it): No longer handle bp_finish here.
3088 * breakpoint.h (bpstat_run_callbacks): Declare.
3089 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3090 <thread_fsm>: New field.
3091 (thread_cancel_execution_command): Declare.
3092 * infcmd.c: Include thread-fsm.h.
3093 (struct step_command_fsm): New.
3094 (step_command_fsm_ops): New global.
3095 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3096 (step_1): Adjust to use step_command_fsm_prepare and
3098 (struct step_1_continuation_args): Delete.
3099 (step_1_continuation): Delete.
3100 (step_command_fsm_should_stop): New function.
3101 (step_once): Delete.
3102 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3103 (prepare_one_step): New function, based on step_once.
3104 (until_next_command): Remove step_multi reference.
3105 (struct return_value_info): New.
3106 (print_return_value): Rename to ...
3107 (print_return_value_1): ... this. New struct return_value_info
3109 (print_return_value): Reimplement as wrapper around
3110 print_return_value_1.
3111 (struct finish_command_fsm): New.
3112 (finish_command_continuation): Delete.
3113 (finish_command_fsm_ops): New global.
3114 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3116 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3118 (finish_command_continuation_free_arg): Delete.
3119 (finish_command_fsm_async_reply_reason): New.
3120 (finish_backward, finish_forward): Change symbol parameter to a
3121 finish_command_fsm. Adjust.
3122 (finish_command): Create a finish_command_fsm. Adjust.
3123 * infrun.c: Include "thread-fsm.h".
3124 (clear_proceed_status_thread): Delete the thread's FSM.
3125 (infrun_thread_stop_requested_callback): Cancel the thread's
3127 (clean_up_just_stopped_threads_fsms): New function.
3128 (fetch_inferior_event): Handle the event_thread's should_stop
3129 method saying the command isn't done yet.
3130 (process_event_stop_test): Run breakpoint callbacks here.
3131 (print_stop_event): Rename to ...
3132 (print_stop_location): ... this.
3133 (restore_current_uiout_cleanup): New function.
3134 (print_stop_event): Reimplement.
3135 (normal_stop): No longer notify the end_stepping_range observers
3136 here handle "step N" nor "finish" here. No longer call
3137 print_stop_event here.
3138 * infrun.h (struct return_value_info): Forward declare.
3139 (print_return_value): Declare.
3140 (print_stop_event): Change prototype.
3141 * thread-fsm.c: New file.
3142 * thread-fsm.h: New file.
3143 * thread.c: Include "thread-fsm.h".
3144 (thread_cancel_execution_command): New function.
3145 (clear_thread_inferior_resources): Call it.
3146 * cli/cli-interp.c (cli_on_normal_stop): New function.
3147 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3149 * mi/mi-interp.c: Include "thread-fsm.h".
3150 (restore_current_uiout_cleanup): Delete.
3151 (mi_on_normal_stop): If the thread has an FSM associated, and it
3152 finished, ask it for the async-reply-reason to print. Always call
3153 print_stop_event here, regardless of the top-level interpreter.
3154 Check bpstat_what to tell whether an asynchronous breakpoint hit
3156 * tui/tui-interp.c (tui_on_normal_stop): New function.
3157 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3159 2015-09-09 Pedro Alves <palves@redhat.com>
3161 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3162 check whether the target can async.
3163 * inf-loop.c (inferior_event_handler): Only call target_async if
3164 the target can async.
3165 * infcall.c: Include top.h and interps.h.
3166 (run_inferior_call): For the interpreter to sync mode while
3167 running the infcall. Call wait_sync_command_done instead of
3168 wait_for_inferior plus normal_stop.
3169 * infcmd.c (prepare_execution_command): Don't check whether the
3170 target can async when running in the foreground.
3171 (step_1): Delete synchronous case handling.
3172 (step_once): Always install a continuation, even in sync mode.
3173 (until_next_command, finish_forward): Don't check whether the
3175 (attach_command_post_wait, notice_new_inferior): Always install a
3176 continuation, even in sync mode.
3177 * infrun.c (mark_infrun_async_event_handler): New function.
3178 (proceed): In sync mode, mark infrun's event source instead of
3179 waiting for events here.
3180 (fetch_inferior_event): If the target can't async, do a blocking
3182 (prepare_to_wait): In sync mode, mark infrun's event source.
3183 (infrun_async_inferior_event_handler): No longer bail out if the
3185 * infrun.h (mark_infrun_async_event_handler): New declaration.
3186 * linux-nat.c (linux_nat_wait_1): Remove calls to
3187 set_sigint_trap/clear_sigint_trap.
3188 (linux_nat_terminal_inferior): No longer check whether the target
3190 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3192 (mi_execute_command_input_handler): No longer check whether the
3193 target is async. Update and simplify comment.
3194 * target.c (default_target_wait): New function.
3195 * target.h (struct target_ops) <to_wait>: Now defaults to
3196 default_target_wait.
3197 (default_target_wait): Declare.
3198 * top.c (wait_sync_command_done): New function, factored out from
3200 (maybe_wait_sync_command_done): ... this.
3201 * top.h (wait_sync_command_done): Declare.
3202 * target-delegates.c: Regenerate.
3204 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3206 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3207 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3208 Remove include of sys/utsname.h.
3209 (linux_determine_kernel_ptr_bits): Remove.
3210 (linux_determine_kernel_start): New.
3211 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3213 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3214 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3216 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3219 2015-09-07 Pedro Alves <palves@redhat.com>
3221 * guile/guile-internal.h (as_a_scm_t_subr): New.
3222 * guile/guile.c (misc_guile_functions): Use it.
3223 * guile/scm-arch.c (arch_functions): Use it.
3224 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3226 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3227 * guile/scm-cmd.c (command_functions): Use it.
3228 * guile/scm-disasm.c (disasm_functions): Use it.
3229 * guile/scm-exception.c (exception_functions)
3230 (private_exception_functions): Use it.
3231 * guile/scm-frame.c (frame_functions)
3232 * guile/scm-gsmob.c (gsmob_functions): Use it.
3233 * guile/scm-iterator.c (iterator_functions): Use it.
3234 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3235 * guile/scm-math.c (math_functions): Use it.
3236 * guile/scm-objfile.c (objfile_functions): Use it.
3237 * guile/scm-param.c (parameter_functions): Use it.
3238 * guile/scm-ports.c (port_functions, private_port_functions): Use
3240 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3241 * guile/scm-progspace.c (pspace_functions): Use it.
3242 * guile/scm-string.c (string_functions): Use it.
3243 * guile/scm-symbol.c (symbol_functions): Use it.
3244 * guile/scm-symtab.c (symtab_functions): Use it.
3245 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3247 * guile/scm-value.c (value_functions): Use it.
3249 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3251 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3252 (tui_next_win): Likewise.
3253 (tui_prev_win): Likewise.
3254 (tui_partial_win_by_name): Likewise.
3255 (tui_init_generic_part): Likewise.
3256 (init_content_element): Likewise.
3257 (tui_del_window): Likewise.
3258 (tui_free_window): Likewise.
3259 (tui_del_data_windows): Likewise.
3260 (tui_free_data_content): Likewise.
3261 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3262 * tui/tui-regs.c (tui_show_register_group): Likewise.
3263 * tui/tui-win.c (tui_resize_all): Likewise.
3264 (tui_set_focus): Likewise.
3265 (tui_set_win_height): Likewise.
3266 (make_invisible_and_set_new_height): Likewise.
3267 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3268 * tui/tui-wingeneral.c (make_visible): Likewise.
3270 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3272 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3274 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3276 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3278 * dbxread.c (dbx_end_psymtab): Likewise.
3279 * gnu-nat.c (gnu_write_inferior): Likewise.
3280 * mdebugread.c (cross_ref): Likewise.
3281 * p-valprint.c (pascal_val_print): Likewise.
3282 * xcoffread.c (xcoff_end_psymtab): Likewise.
3284 2015-09-04 Yao Qi <yao.qi@linaro.org>
3286 * NEWS: Mention the aarch64 multi-arch debugging support.
3288 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3290 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3291 type instead of a TYPE_CODE_INT one for the string_char_type
3292 and the ada_primitive_type_char types.
3294 2015-09-03 Yao Qi <yao.qi@linaro.org>
3296 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3297 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3298 aarch64_linux_region_ok_for_watchpoint.
3299 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3301 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3304 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3306 * gdb_obstack.h (obstack_strdup): Declare.
3307 * gdb_obstack.c (obstack_strdup): Define.
3308 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3309 * gdbarch.c: Regenerate.
3310 * gdbarch.h: Regenerate.
3311 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3313 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3315 * gdbtypes.c (copy_type_recursive): Update documentation.
3317 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3319 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3322 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3324 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3326 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3328 * solib-svr4.c (solib_event_probe_action): Call
3329 get_probe_argument_count using TRY...CATCH.
3330 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3332 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3334 * probe.h (struct probe_ops) <get_probe_argument_count,
3335 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3336 the comment that the function can throw an exception.
3337 (get_probe_argument_count): Likewise.
3338 (evaluate_probe_argument): Likewise.
3339 * stap-probe.c (stap_get_opcode): Call error instead of
3341 (stap_get_expected_argument_type): Likewise. Add argument
3342 'probe'. Improve error message by mentioning the probe's name.
3343 (stap_parse_probe_arguments): Adjust call to
3344 stap_get_expected_argument_type.
3345 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3346 not zero. Call internal_error if GDB requests an argument but the
3347 probe has no arguments.
3349 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3351 * ada-lang.c (ada_resolve_function): Do not ask the user what
3352 match to use when in completion mode.
3354 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3356 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3359 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3361 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3362 call_abi using XSHAL_ABI macro.
3364 2015-08-29 Doug Evans <xdje42@gmail.com>
3366 * symtab.h (struct symbol): Tweak comment.
3368 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3370 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3371 gdbarch obstack instead of on the heap. Update commentary
3374 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3378 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3380 * NEWS: Update entry about non-8-bits addressable memory.
3382 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3385 2014-11-06 Doug Evans <xdje42@gmail.com>
3386 * solib.c (solib_global_lookup): Fetch arch from objfile,
3389 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3391 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3392 attempt to relocate a TLS variable offset.
3394 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3396 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3397 registered yet. Set inferior_ptid while calling target_read_memory.
3399 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3401 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3402 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3403 * linux-nat.c (check_stopped_by_breakpoint): Use
3404 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3406 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3408 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3409 thread was not yet discovered, use thread_from_lwp instead of
3410 calling thread_db_find_new_threads_1.
3412 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3414 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3417 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3419 * NEWS: Document support for non-8-bits addressable memory.
3421 2015-08-27 Pedro Alves <palves@redhat.com>
3423 * configure.ac: Remove AC_TYPE_SIGNAL call.
3424 * configure, config.in: Regenerate.
3426 2015-08-27 Pedro Alves <palves@redhat.com>
3428 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3429 * extension-priv.h: Include signal.h.
3430 (struct signal_handler) <handler>: Change type to sighandler_t.
3431 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3432 * inflow.c (sigint_ours, sigquit_ours): Change type to
3434 (child_terminal_inferior): Remove casts.
3435 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3436 (osig): Change type to sighandler_t.
3437 * nto-procfs.c (ofunc): Change type to sighandler_t.
3438 (procfs_wait): Remove casts.
3439 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3440 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3441 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3443 2015-08-27 Pedro Alves <palves@redhat.com>
3445 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3446 * gnulib/aclocal.m4: Renegerate.
3447 * gnulib/config.in: Renegerate.
3448 * gnulib/configure: Renegerate.
3449 * gnulib/import/Makefile.am: Update.
3450 * gnulib/import/Makefile.in: Regenerate.
3451 * gnulib/import/m4/gnulib-cache.m4: Update.
3452 * gnulib/import/m4/gnulib-comp.m4: Update.
3453 * gnulib/import/m4/signal_h.m4: New file.
3454 * gnulib/import/signal.in.h: New file.
3456 2015-08-27 Pedro Alves <palves@redhat.com>
3458 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3459 (MIN_MEMORY_PACKET_SIZE): New.
3460 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3461 (get_memory_packet_size): Adjust. No longer limit the max packet
3463 (set_memory_packet_size): Adjust, and remove dead code.
3464 (remote_check_symbols): Use xmalloc and a cleanup instead of
3466 (remote_packet_size): No longer cap the packet size.
3467 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3469 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3471 * compile/compile.c (compile_to_object): Mention language in
3474 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3476 * target.c (target_pre_inferior): Unset attach_flag.
3478 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3480 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3481 * gdbarch.c: Re-generate.
3483 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3485 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3486 function with the XNEW-family equivalent.
3487 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3488 * ada-exp.y (write_ambiguous_var): Likewise.
3489 * ada-lang.c (resolve_subexp): Likewise.
3490 (user_select_syms): Likewise.
3491 (assign_aggregate): Likewise.
3492 (ada_evaluate_subexp): Likewise.
3493 (cache_symbol): Likewise.
3494 * addrmap.c (allocate_key): Likewise.
3495 (addrmap_create_mutable): Likewise.
3496 * aix-thread.c (sync_threadlists): Likewise.
3497 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3498 (alpha_gdbarch_init): Likewise.
3499 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3500 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3501 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3502 * arm-tdep.c (push_stack_item): Likewise.
3503 (arm_displaced_step_copy_insn): Likewise.
3504 (arm_gdbarch_init): Likewise.
3505 (_initialize_arm_tdep): Likewise.
3506 * avr-tdep.c (push_stack_item): Likewise.
3507 * ax-general.c (new_agent_expr): Likewise.
3508 * block.c (block_initialize_namespace): Likewise.
3509 * breakpoint.c (alloc_counted_command_line): Likewise.
3510 (update_dprintf_command_list): Likewise.
3511 (parse_breakpoint_sals): Likewise.
3512 (decode_static_tracepoint_spec): Likewise.
3513 (until_break_command): Likewise.
3514 (clear_command): Likewise.
3515 (update_global_location_list): Likewise.
3516 (get_breakpoint_objfile_data) Likewise.
3517 * btrace.c (ftrace_new_function): Likewise.
3518 (btrace_set_insn_history): Likewise.
3519 (btrace_set_call_history): Likewise.
3520 * buildsym.c (add_symbol_to_list): Likewise.
3521 (record_pending_block): Likewise.
3522 (start_subfile): Likewise.
3523 (start_buildsym_compunit): Likewise.
3524 (push_subfile): Likewise.
3525 (end_symtab_get_static_block): Likewise.
3526 (buildsym_init): Likewise.
3527 * cli/cli-cmds.c (source_command): Likewise.
3528 * cli/cli-decode.c (add_cmd): Likewise.
3529 * cli/cli-script.c (build_command_line): Likewise.
3530 (setup_user_args): Likewise.
3531 (realloc_body_list): Likewise.
3532 (process_next_line): Likewise.
3533 (copy_command_lines): Likewise.
3534 * cli/cli-setshow.c (do_set_command): Likewise.
3535 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3536 * coffread.c (coff_locate_sections): Likewise.
3537 (coff_symtab_read): Likewise.
3538 (coff_read_struct_type): Likewise.
3539 * common/cleanups.c (make_my_cleanup2): Likewise.
3540 * common/common-exceptions.c (throw_it): Likewise.
3541 * common/filestuff.c (make_cleanup_close): Likewise.
3542 * common/format.c (parse_format_string): Likewise.
3543 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3544 * compile/compile-object-load.c (munmap_list_add): Likewise.
3545 (compile_object_load): Likewise.
3546 * compile/compile-object-run.c (compile_object_run): Likewise.
3547 * compile/compile.c (append_args): Likewise.
3548 * corefile.c (specify_exec_file_hook): Likewise.
3549 * cp-support.c (make_symbol_overload_list): Likewise.
3550 * cris-tdep.c (push_stack_item): Likewise.
3551 (cris_gdbarch_init): Likewise.
3552 * ctf.c (ctf_trace_file_writer_new): Likewise.
3553 * dbxread.c (init_header_files): Likewise.
3554 (add_new_header_file): Likewise.
3555 (init_bincl_list): Likewise.
3556 (dbx_end_psymtab): Likewise.
3557 (start_psymtab): Likewise.
3558 (dbx_end_psymtab): Likewise.
3559 * dcache.c (dcache_init): Likewise.
3560 * dictionary.c (dict_create_hashed): Likewise.
3561 (dict_create_hashed_expandable): Likewise.
3562 (dict_create_linear): Likewise.
3563 (dict_create_linear_expandable): Likewise.
3564 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3565 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3566 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3567 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3568 (decode_frame_entry_1): Likewise.
3569 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3570 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3571 * dwarf2read.c (dwarf2_has_info): Likewise.
3572 (create_signatured_type_table_from_index): Likewise.
3573 (dwarf2_read_index): Likewise.
3574 (dw2_get_file_names_reader): Likewise.
3575 (create_all_type_units): Likewise.
3576 (read_cutu_die_from_dwo): Likewise.
3577 (init_tu_and_read_dwo_dies): Likewise.
3578 (init_cutu_and_read_dies): Likewise.
3579 (create_all_comp_units): Likewise.
3580 (queue_comp_unit): Likewise.
3581 (inherit_abstract_dies): Likewise.
3582 (read_call_site_scope): Likewise.
3583 (dwarf2_add_field): Likewise.
3584 (dwarf2_add_typedef): Likewise.
3585 (dwarf2_add_member_fn): Likewise.
3586 (attr_to_dynamic_prop): Likewise.
3587 (abbrev_table_alloc_abbrev): Likewise.
3588 (abbrev_table_read_table): Likewise.
3589 (add_include_dir): Likewise.
3590 (add_file_name): Likewise.
3591 (dwarf_decode_line_header): Likewise.
3592 (dwarf2_const_value_attr): Likewise.
3593 (dwarf_alloc_block): Likewise.
3594 (parse_macro_definition): Likewise.
3595 (set_die_type): Likewise.
3596 (write_psymtabs_to_index): Likewise.
3597 (create_cus_from_index): Likewise.
3598 (dwarf2_create_include_psymtab): Likewise.
3599 (process_psymtab_comp_unit_reader): Likewise.
3600 (build_type_psymtab_dependencies): Likewise.
3601 (read_comp_units_from_section): Likewise.
3602 (compute_compunit_symtab_includes): Likewise.
3603 (create_dwo_unit_in_dwp_v1): Likewise.
3604 (create_dwo_unit_in_dwp_v2): Likewise.
3605 (read_func_scope): Likewise.
3606 (process_structure_scope): Likewise.
3607 (mark_common_block_symbol_computed): Likewise.
3608 (load_partial_dies): Likewise.
3609 (dwarf2_symbol_mark_computed): Likewise.
3610 * elfread.c (elf_symfile_segments): Likewise.
3611 (elf_read_minimal_symbols): Likewise.
3612 * environ.c (make_environ): Likewise.
3613 * eval.c (evaluate_subexp_standard): Likewise.
3614 * event-loop.c (create_file_handler): Likewise.
3615 (create_async_signal_handler): Likewise.
3616 (create_async_event_handler): Likewise.
3617 (create_timer): Likewise.
3618 * exec.c (build_section_table): Likewise.
3619 * fbsd-nat.c (fbsd_remember_child): Likewise.
3620 * fork-child.c (fork_inferior): Likewise.
3621 * frv-tdep.c (new_variant): Likewise.
3622 * gdbarch.sh (gdbarch_alloc): Likewise.
3623 (append_name): Likewise.
3624 * gdbtypes.c (rank_function): Likewise.
3625 (copy_type_recursive): Likewise.
3626 (add_dyn_prop): Likewise.
3627 * gnu-nat.c (make_proc): Likewise.
3628 (make_inf): Likewise.
3629 (gnu_write_inferior): Likewise.
3630 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3631 (build_std_type_info_type): Likewise.
3632 * guile/scm-param.c (compute_enum_list): Likewise.
3633 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3634 * guile/scm-value.c (gdbscm_value_call): Likewise.
3635 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3636 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3637 (read_unwind_info): Likewise.
3638 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3639 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3640 (call_function_by_hand_dummy): Likewise.
3641 * infcmd.c (step_once): Likewise.
3642 (finish_forward): Likewise.
3643 (attach_command): Likewise.
3644 (notice_new_inferior): Likewise.
3645 * inferior.c (add_inferior_silent): Likewise.
3646 * infrun.c (add_displaced_stepping_state): Likewise.
3647 (save_infcall_control_state): Likewise.
3648 (save_inferior_ptid): Likewise.
3649 (_initialize_infrun): Likewise.
3650 * jit.c (bfd_open_from_target_memory): Likewise.
3651 (jit_gdbarch_data_init): Likewise.
3652 * language.c (add_language): Likewise.
3653 * linespec.c (decode_line_2): Likewise.
3654 * linux-nat.c (add_to_pid_list): Likewise.
3655 (add_initial_lwp): Likewise.
3656 * linux-thread-db.c (add_thread_db_info): Likewise.
3657 (record_thread): Likewise.
3658 (info_auto_load_libthread_db): Likewise.
3659 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3661 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3662 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3663 * macrocmd.c (macro_define_command): Likewise.
3664 * macroexp.c (gather_arguments): Likewise.
3665 * macroscope.c (sal_macro_scope): Likewise.
3666 * macrotab.c (new_macro_table): Likewise.
3667 * mdebugread.c (push_parse_stack): Likewise.
3668 (parse_partial_symbols): Likewise.
3669 (parse_symbol): Likewise.
3670 (psymtab_to_symtab_1): Likewise.
3671 (new_block): Likewise.
3672 (new_psymtab): Likewise.
3673 (mdebug_build_psymtabs): Likewise.
3674 (add_pending): Likewise.
3675 (elfmdebug_build_psymtabs): Likewise.
3676 * mep-tdep.c (mep_gdbarch_init): Likewise.
3677 * mi/mi-main.c (mi_execute_command): Likewise.
3678 * mi/mi-parse.c (mi_parse_argv): Likewise.
3679 * minidebug.c (lzma_open): Likewise.
3680 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3681 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3682 * mips-tdep.c (mips_gdbarch_init): Likewise.
3683 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3684 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3685 * mt-tdep.c (mt_registers_info): Likewise.
3686 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3687 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3688 (linux_enable_pt): Likewise.
3689 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3690 (linux_xfer_osdata_processgroups): Likewise.
3691 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3692 * nto-procfs.c (procfs_meminfo): Likewise.
3693 * objc-lang.c (start_msglist): Likewise.
3694 (selectors_info): Likewise.
3695 (classes_info): Likewise.
3696 (find_methods): Likewise.
3697 * objfiles.c (allocate_objfile): Likewise.
3698 (update_section_map): Likewise.
3699 * osabi.c (gdbarch_register_osabi): Likewise.
3700 (gdbarch_register_osabi_sniffer): Likewise.
3701 * parse.c (start_arglist): Likewise.
3702 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3703 (hwdebug_insert_point): Likewise.
3704 * printcmd.c (display_command): Likewise.
3705 (ui_printf): Likewise.
3706 * procfs.c (create_procinfo): Likewise.
3707 (load_syscalls): Likewise.
3708 (proc_get_LDT_entry): Likewise.
3709 (proc_update_threads): Likewise.
3710 * prologue-value.c (make_pv_area): Likewise.
3711 (pv_area_store): Likewise.
3712 * psymtab.c (extend_psymbol_list): Likewise.
3713 (init_psymbol_list): Likewise.
3714 (allocate_psymtab): Likewise.
3715 * python/py-inferior.c (add_thread_object): Likewise.
3716 * python/py-param.c (compute_enum_values): Likewise.
3717 * python/py-value.c (valpy_call): Likewise.
3718 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3719 * python/python.c (ensure_python_env): Likewise.
3720 * record-btrace.c (record_btrace_start_replaying): Likewise.
3721 * record-full.c (record_full_reg_alloc): Likewise.
3722 (record_full_mem_alloc): Likewise.
3723 (record_full_end_alloc): Likewise.
3724 (record_full_core_xfer_partial): Likewise.
3725 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3726 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3727 * remote-notif.c (remote_notif_state_allocate): Likewise.
3728 * remote.c (demand_private_info): Likewise.
3729 (remote_notif_stop_alloc_reply): Likewise.
3730 (remote_enable_btrace): Likewise.
3731 * reverse.c (save_bookmark_command): Likewise.
3732 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3733 * rx-tdep.c (rx_gdbarch_init): Likewise.
3734 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3735 * ser-go32.c (dos_get_tty_state): Likewise.
3736 (dos_copy_tty_state): Likewise.
3737 * ser-mingw.c (ser_windows_open): Likewise.
3738 (ser_console_wait_handle): Likewise.
3739 (ser_console_get_tty_state): Likewise.
3740 (make_pipe_state): Likewise.
3741 (net_windows_open): Likewise.
3742 * ser-unix.c (hardwire_get_tty_state): Likewise.
3743 (hardwire_copy_tty_state): Likewise.
3744 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3745 * solib-dsbt.c (dsbt_current_sos): Likewise.
3746 (dsbt_relocate_main_executable): Likewise.
3747 * solib-frv.c (frv_current_sos): Likewise.
3748 (frv_relocate_main_executable): Likewise.
3749 * solib-spu.c (spu_bfd_fopen): Likewise.
3750 * solib-svr4.c (lm_info_read): Likewise.
3751 (svr4_copy_library_list): Likewise.
3752 (svr4_default_sos): Likewise.
3753 * source.c (find_source_lines): Likewise.
3754 (line_info): Likewise.
3755 (add_substitute_path_rule): Likewise.
3756 * spu-linux-nat.c (spu_bfd_open): Likewise.
3757 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3758 * stabsread.c (dbx_lookup_type): Likewise.
3759 (read_type): Likewise.
3760 (read_member_functions): Likewise.
3761 (read_struct_fields): Likewise.
3762 (read_baseclasses): Likewise.
3763 (read_args): Likewise.
3764 (_initialize_stabsread): Likewise.
3765 * stack.c (func_command): Likewise.
3766 * stap-probe.c (handle_stap_probe): Likewise.
3767 * symfile.c (addrs_section_sort): Likewise.
3768 (addr_info_make_relative): Likewise.
3769 (load_section_callback): Likewise.
3770 (add_symbol_file_command): Likewise.
3771 (init_filename_language_table): Likewise.
3772 * symtab.c (create_filename_seen_cache): Likewise.
3773 (sort_search_symbols_remove_dups): Likewise.
3774 (search_symbols): Likewise.
3775 * target.c (make_cleanup_restore_target_terminal): Likewise.
3776 * thread.c (new_thread): Likewise.
3777 (enable_thread_stack_temporaries): Likewise.
3778 (make_cleanup_restore_current_thread): Likewise.
3779 (thread_apply_all_command): Likewise.
3780 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3781 * top.c (gdb_readline_wrapper): Likewise.
3782 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3783 * tracepoint.c (trace_find_line_command): Likewise.
3784 (all_tracepoint_actions_and_cleanup): Likewise.
3785 (make_cleanup_restore_current_traceframe): Likewise.
3786 (get_uploaded_tp): Likewise.
3787 (get_uploaded_tsv): Likewise.
3788 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3789 (tui_alloc_win_info): Likewise.
3790 (tui_alloc_content): Likewise.
3791 (tui_add_content_elements): Likewise.
3792 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3793 (tui_set_disassem_content): Likewise.
3794 * ui-file.c (ui_file_new): Likewise.
3795 (stdio_file_new): Likewise.
3796 (tee_file_new): Likewise.
3797 * utils.c (make_cleanup_restore_integer): Likewise.
3798 (add_internal_problem_command): Likewise.
3799 * v850-tdep.c (v850_gdbarch_init): Likewise.
3800 * valops.c (find_oload_champ): Likewise.
3801 * value.c (allocate_value_lazy): Likewise.
3802 (record_latest_value): Likewise.
3803 (create_internalvar): Likewise.
3804 * varobj.c (install_variable): Likewise.
3805 (new_variable): Likewise.
3806 (new_root_variable): Likewise.
3808 (_initialize_varobj): Likewise.
3809 * windows-nat.c (windows_make_so): Likewise.
3810 * x86-nat.c (x86_add_process): Likewise.
3811 * xcoffread.c (arrange_linetable): Likewise.
3812 (allocate_include_entry): Likewise.
3813 (process_linenos): Likewise.
3814 (SYMBOL_DUP): Likewise.
3815 (xcoff_start_psymtab): Likewise.
3816 (xcoff_end_psymtab): Likewise.
3817 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3818 * xtensa-tdep.c (xtensa_register_type): Likewise.
3819 * gdbarch.c: Regenerate.
3820 * gdbarch.h: Regenerate.
3822 2015-08-25 Don Breazeal <donb@codesourcery.com>
3824 * infrun.c (follow_exec): Re-order operations for
3825 handling follow-exec-mode "new".
3826 (handle_inferior_event_1): Assign ecs->event_thread
3827 to the current thread.
3828 * remote.c (get_remote_arch_state): Add an assertion.
3830 2015-08-26 Pedro Alves <palves@redhat.com>
3832 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3834 2015-08-25 Pedro Alves <palves@redhat.com>
3837 * defs.h (maybe_quit): Declare.
3838 (QUIT): Now calls maybe_quit.
3839 * event-loop.c (clear_async_signal_handler)
3840 (async_signal_handler_is_marked): New functions.
3841 * event-loop.h (async_signal_handler_is_marked)
3842 (clear_async_signal_handler): New declarations.
3843 * remote.c (remote_check_pending_interrupt): New function.
3844 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3845 longer check whether the target is async. If waiting for a stop
3846 reply, and a Ctrl-C as been sent to the target, offer to
3847 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3848 Otherwise do not disconnect and throw a quit.
3849 (_initialize_remote): Install remote_check_pending_interrupt as
3850 to_check_pending_interrupt.
3851 * target.c (target_check_pending_interrupt): New function.
3852 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3854 (target_check_pending_interrupt): New declaration.
3855 * utils.c (maybe_quit): New function.
3856 * target-delegates.c: Regenerate.
3858 2015-08-25 Yao Qi <yao.qi@linaro.org>
3860 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3861 Rename local variable pid to tid, and get lwpid of lwp. Update
3864 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3866 * ada-lang.c (ada_read_var_value): Add a var_block argument
3867 and pass it to default_read_var_value.
3868 * block.c (block_static_link): New accessor.
3869 * block.h (block_static_link): Declare it.
3870 * buildsym.c (finish_block_internal): Add a static_link
3871 argument. If there is a static link, associate it to the new
3873 (finish_block): Add a static link argument and pass it to
3874 finish_block_internal.
3875 (end_symtab_get_static_block): Update calls to finish_block and
3876 to finish_block_internal.
3877 (end_symtab_with_blockvector): Update call to
3878 finish_block_internal.
3879 * buildsym.h: Forward-declare struct dynamic_prop.
3880 (struct context_stack): Add a static_link field.
3881 (finish_block): Add a static link argument.
3882 * c-exp.y: Remove an obsolete comment (evaluation of variables
3883 already start from the selected frame, and now they climb *up*
3884 the call stack) and propagate the block information to the
3885 produced expression.
3886 * d-exp.y: Likewise.
3887 * f-exp.y: Likewise.
3888 * go-exp.y: Likewise.
3889 * jv-exp.y: Likewise.
3890 * m2-exp.y: Likewise.
3891 * p-exp.y: Likewise.
3892 * coffread.c (coff_symtab_read): Update calls to finish_block.
3893 * dbxread.c (process_one_symbol): Likewise.
3894 * xcoffread.c (read_xcoff_symtab): Likewise.
3895 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3896 "sym" parameter to struct block_symbol, update its uses and pass
3897 its block to calls to read_var_value.
3898 (convert_symbol_sym): Update the calls to convert_one_symbol.
3899 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3900 call to read_var_value.
3901 * dwarf2loc.c (block_op_get_frame_base): New.
3902 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3903 get_frame_base method.
3904 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3905 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3906 instead of the selected frame in order to evaluate the
3908 (dwarf2_evaluate_property): Add a frame argument. Update call
3909 to dwarf2_locexpr_baton_eval to provide a frame in available and
3910 to handle the absence of address stack.
3911 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3912 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3914 (read_func_scope): Record any available static link description.
3915 Update call to finish_block.
3916 (read_lexical_block_scope): Update call to finish_block.
3917 * findvar.c (follow_static_link): New.
3918 (get_hosting_frame): New.
3919 (default_read_var_value): Add a var_block argument. Use
3920 get_hosting_frame to handle non-local references.
3921 (read_var_value): Add a var_block argument and pass it to the
3922 LA_READ_VAR_VALUE method.
3923 * gdbtypes.c (resolve_dynamic_range): Update calls to
3924 dwarf2_evaluate_property.
3925 (resolve_dynamic_type_internal): Likewise.
3926 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3927 read_var_value, passing it the block coming from symbol lookup.
3928 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3929 read_var_value (TODO).
3930 * infcmd.c (finish_command_continuation): Update call to
3931 read_var_value, passing it the block coming from symbol lookup.
3932 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3933 * language.h (struct language_defn): Add a var_block argument to
3934 the LA_READ_VAR_VALUE method.
3935 * objfiles.c (struct static_link_htab_entry): New.
3936 (static_link_htab_entry_hash): New.
3937 (static_link_htab_entry_eq): New.
3938 (objfile_register_static_link): New.
3939 (objfile_lookup_static_link): New.
3940 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3941 * objfiles.h: Include hashtab.h.
3942 (struct objfile): Add a static_links field.
3943 (objfile_register_static_link): New.
3944 (objfile_lookup_static_link): New.
3945 * printcmd.c (print_variable_and_value): Update call to
3947 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3948 * python/py-frame.c (frapy_read_var): Update call to
3949 read_var_value, passing it the block coming from symbol lookup.
3950 * python/py-framefilter.c (extract_sym): Add a sym_block
3951 parameter and set the pointed value to NULL (TODO).
3952 (enumerate_args): Update call to extract_sym.
3953 (enumerate_locals): Update calls to extract_sym and to
3955 * python/py-symbol.c (sympy_value): Update call to
3956 read_var_value (TODO).
3957 * stack.c (read_frame_local): Update call to read_var_value.
3958 (read_frame_arg): Likewise.
3959 (return_command): Likewise.
3960 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3962 (struct symbol): Add a block field.
3963 (SYMBOL_BLOCK): New accessor.
3964 * valops.c (value_of_variable): Remove frame/block handling and
3965 pass the block argument to read_var_value, which does this job
3967 (value_struct_elt_for_reference): Update calls to
3969 (value_of_this): Pass the block found to read_var_value.
3970 * value.h (read_var_value): Add a var_block argument.
3971 (default_read_var_value): Likewise.
3973 2015-08-25 Yao Qi <yao.qi@linaro.org>
3975 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3976 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3977 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3979 2015-08-25 Yao Qi <yao.qi@linaro.org>
3981 * Makefile.in (aarch64-liunx.o): New rule.
3982 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3983 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3984 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3985 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3987 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3988 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3989 * nat/aarch64-linux.c: New file.
3990 * nat/aarch64-linux.h: New file.
3992 2015-08-25 Yao Qi <yao.qi@linaro.org>
3994 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3995 lwp_arch_private_info and ptid_of_lwp.
3997 2015-08-25 Yao Qi <yao.qi@linaro.org>
3999 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4000 Move it to nat/aarch64-linux-hw-point.c.
4001 (debug_reg_change_callback): Likewise.
4002 (aarch64_notify_debug_reg_change): :Likewise.
4003 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4004 (aarch64_dr_update_callback_param): New.
4005 (debug_reg_change_callback): New function.
4006 (aarch64_notify_debug_reg_change): Likewise.
4007 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4008 Remove the declaration.
4010 2015-08-25 Yao Qi <yao.qi@linaro.org>
4012 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4013 Call current_lwp_ptid.
4015 2015-08-25 Yao Qi <yao.qi@linaro.org>
4017 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4020 2015-08-25 Yao Qi <yao.qi@linaro.org>
4022 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4023 ptid_get_pid rather than ptid_get_lwp.
4025 2015-08-24 Pedro Alves <palves@redhat.com>
4027 * NEWS (New commands): Mention set/show remote
4028 multiprocess-extensions-packet.
4029 * remote.c (remote_query_supported): Only tell the server to use
4030 the multiprocess extensions if the user hasn't force-disabled them
4031 with "set remote multiprocess-extensions-packet off".
4033 2015-08-24 Pedro Alves <palves@redhat.com>
4035 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4036 1029a8112290f6eee9d7878a391c49db42c999bd.
4037 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4039 * gnulib/import/Makefile.am: Update.
4040 * gnulib/import/Makefile.in: Update.
4041 * gnulib/import/alloca.in.h: Update.
4042 * gnulib/import/basename-lgpl.c: Update.
4043 * gnulib/import/canonicalize-lgpl.c: Update.
4044 * gnulib/import/config.charset: Update.
4045 * gnulib/import/dirent.in.h: Update.
4046 * gnulib/import/dirfd.c: Update.
4047 * gnulib/import/dirname-lgpl.c: Update.
4048 * gnulib/import/dirname.h: Update.
4049 * gnulib/import/dosname.h: Update.
4050 * gnulib/import/errno.in.h: Update.
4051 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4052 * gnulib/import/extra/snippet/c++defs.h: Update.
4053 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4054 * gnulib/import/extra/update-copyright: Update.
4055 * gnulib/import/float+.h: Update.
4056 * gnulib/import/float.c: Update.
4057 * gnulib/import/float.in.h: Update.
4058 * gnulib/import/fnmatch.c: Update.
4059 * gnulib/import/fnmatch.in.h: Update.
4060 * gnulib/import/fnmatch_loop.c: Update.
4061 * gnulib/import/fpucw.h: Update.
4062 * gnulib/import/frexp.c: Update.
4063 * gnulib/import/frexpl.c: Update.
4064 * gnulib/import/gettimeofday.c: Update.
4065 * gnulib/import/inttypes.in.h: Update.
4066 * gnulib/import/isnan.c: Update.
4067 * gnulib/import/isnand-nolibm.h: Update.
4068 * gnulib/import/isnand.c: Update.
4069 * gnulib/import/isnanl-nolibm.h: Update.
4070 * gnulib/import/isnanl.c: Update.
4071 * gnulib/import/itold.c: Update.
4072 * gnulib/import/localcharset.c: Update.
4073 * gnulib/import/localcharset.h: Update.
4074 * gnulib/import/lstat.c: Update.
4075 * gnulib/import/m4/00gnulib.m4: Update.
4076 * gnulib/import/m4/absolute-header.m4: Update.
4077 * gnulib/import/m4/alloca.m4: Update.
4078 * gnulib/import/m4/canonicalize.m4: Update.
4079 * gnulib/import/m4/codeset.m4: Update.
4080 * gnulib/import/m4/configmake.m4: Update.
4081 * gnulib/import/m4/dirent_h.m4: Update.
4082 * gnulib/import/m4/dirfd.m4: Update.
4083 * gnulib/import/m4/dirname.m4: Update.
4084 * gnulib/import/m4/double-slash-root.m4: Update.
4085 * gnulib/import/m4/eealloc.m4: Update.
4086 * gnulib/import/m4/errno_h.m4: Update.
4087 * gnulib/import/m4/exponentd.m4: Update.
4088 * gnulib/import/m4/exponentl.m4: Update.
4089 * gnulib/import/m4/extensions.m4: Update.
4090 * gnulib/import/m4/extern-inline.m4: Update.
4091 * gnulib/import/m4/fcntl-o.m4: Update.
4092 * gnulib/import/m4/float_h.m4: Update.
4093 * gnulib/import/m4/fnmatch.m4: Update.
4094 * gnulib/import/m4/fpieee.m4: Update.
4095 * gnulib/import/m4/frexp.m4: Update.
4096 * gnulib/import/m4/frexpl.m4: Update.
4097 * gnulib/import/m4/gettimeofday.m4: Update.
4098 * gnulib/import/m4/glibc21.m4: Update.
4099 * gnulib/import/m4/gnulib-cache.m4: Update.
4100 * gnulib/import/m4/gnulib-common.m4: Update.
4101 * gnulib/import/m4/gnulib-comp.m4: Update.
4102 * gnulib/import/m4/gnulib-tool.m4: Update.
4103 * gnulib/import/m4/include_next.m4: Update.
4104 * gnulib/import/m4/inttypes-pri.m4: Update.
4105 * gnulib/import/m4/inttypes.m4: Update.
4106 * gnulib/import/m4/isnand.m4: Update.
4107 * gnulib/import/m4/isnanl.m4: Update.
4108 * gnulib/import/m4/largefile.m4: Update.
4109 * gnulib/import/m4/localcharset.m4: Update.
4110 * gnulib/import/m4/locale-fr.m4: Update.
4111 * gnulib/import/m4/locale-ja.m4: Update.
4112 * gnulib/import/m4/locale-zh.m4: Update.
4113 * gnulib/import/m4/longlong.m4: Update.
4114 * gnulib/import/m4/lstat.m4: Update.
4115 * gnulib/import/m4/malloc.m4: Update.
4116 * gnulib/import/m4/malloca.m4: Update.
4117 * gnulib/import/m4/math_h.m4: Update.
4118 * gnulib/import/m4/mbrtowc.m4: Update.
4119 * gnulib/import/m4/mbsinit.m4: Update.
4120 * gnulib/import/m4/mbsrtowcs.m4: Update.
4121 * gnulib/import/m4/mbstate_t.m4: Update.
4122 * gnulib/import/m4/memchr.m4: Update.
4123 * gnulib/import/m4/memmem.m4: Update.
4124 * gnulib/import/m4/mmap-anon.m4: Update.
4125 * gnulib/import/m4/multiarch.m4: Update.
4126 * gnulib/import/m4/nocrash.m4: Update.
4127 * gnulib/import/m4/off_t.m4: Update.
4128 * gnulib/import/m4/pathmax.m4: Update.
4129 * gnulib/import/m4/readlink.m4: Update.
4130 * gnulib/import/m4/rename.m4: Update.
4131 * gnulib/import/m4/rmdir.m4: Update.
4132 * gnulib/import/m4/ssize_t.m4: Update.
4133 * gnulib/import/m4/stat.m4: Update.
4134 * gnulib/import/m4/stdbool.m4: Update.
4135 * gnulib/import/m4/stddef_h.m4: Update.
4136 * gnulib/import/m4/stdint.m4: Update.
4137 * gnulib/import/m4/stdio_h.m4: Update.
4138 * gnulib/import/m4/stdlib_h.m4: Update.
4139 * gnulib/import/m4/string_h.m4: Update.
4140 * gnulib/import/m4/strstr.m4: Update.
4141 * gnulib/import/m4/strtok_r.m4: Update.
4142 * gnulib/import/m4/sys_socket_h.m4: Update.
4143 * gnulib/import/m4/sys_stat_h.m4: Update.
4144 * gnulib/import/m4/sys_time_h.m4: Update.
4145 * gnulib/import/m4/sys_types_h.m4: Update.
4146 * gnulib/import/m4/time_h.m4: Update.
4147 * gnulib/import/m4/unistd_h.m4: Update.
4148 * gnulib/import/m4/warn-on-use.m4: Update.
4149 * gnulib/import/m4/wchar_h.m4: Update.
4150 * gnulib/import/m4/wchar_t.m4: Update.
4151 * gnulib/import/m4/wctype_h.m4: Update.
4152 * gnulib/import/m4/wint_t.m4: Update.
4153 * gnulib/import/malloc.c: Update.
4154 * gnulib/import/malloca.c: Update.
4155 * gnulib/import/malloca.h: Update.
4156 * gnulib/import/math.in.h: Update.
4157 * gnulib/import/mbrtowc.c: Update.
4158 * gnulib/import/mbsinit.c: Update.
4159 * gnulib/import/mbsrtowcs-impl.h: Update.
4160 * gnulib/import/mbsrtowcs-state.c: Update.
4161 * gnulib/import/mbsrtowcs.c: Update.
4162 * gnulib/import/memchr.c: Update.
4163 * gnulib/import/memmem.c: Update.
4164 * gnulib/import/pathmax.h: Update.
4165 * gnulib/import/readlink.c: Update.
4166 * gnulib/import/ref-add.sin: Update.
4167 * gnulib/import/ref-del.sin: Update.
4168 * gnulib/import/rename.c: Update.
4169 * gnulib/import/rmdir.c: Update.
4170 * gnulib/import/same-inode.h: Update.
4171 * gnulib/import/stat.c: Update.
4172 * gnulib/import/stdbool.in.h: Update.
4173 * gnulib/import/stddef.in.h: Update.
4174 * gnulib/import/stdint.in.h: Update.
4175 * gnulib/import/stdio.c: Update.
4176 * gnulib/import/stdio.in.h: Update.
4177 * gnulib/import/stdlib.in.h: Update.
4178 * gnulib/import/str-two-way.h: Update.
4179 * gnulib/import/streq.h: Update.
4180 * gnulib/import/string.in.h: Update.
4181 * gnulib/import/stripslash.c: Update.
4182 * gnulib/import/strnlen1.c: Update.
4183 * gnulib/import/strnlen1.h: Update.
4184 * gnulib/import/strstr.c: Update.
4185 * gnulib/import/strtok_r.c: Update.
4186 * gnulib/import/sys_stat.in.h: Update.
4187 * gnulib/import/sys_time.in.h: Update.
4188 * gnulib/import/sys_types.in.h: Update.
4189 * gnulib/import/time.in.h: Update.
4190 * gnulib/import/unistd.in.h: Update.
4191 * gnulib/import/verify.h: Update.
4192 * gnulib/import/wchar.in.h: Update.
4193 * gnulib/import/wctype.in.h: Update.
4194 * gnulib/import/gettimeofday.c: New file.
4195 * gnulib/import/m4/absolute-header.m4: New file.
4196 * gnulib/import/m4/gettimeofday.m4: New file.
4197 * gnulib/import/m4/sys_socket_h.m4: New file.
4198 * gnulib/import/m4/sys_time_h.m4: New file.
4199 * gnulib/import/stdio.c: Delete file.
4200 * gnulib/import/sys_time.in.h: New file.
4202 2015-08-24 Pedro Alves <palves@redhat.com>
4204 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4205 * common/gdb_sys_time.h: New file.
4206 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4207 * gdb_select.h: Likewise.
4208 * gdb_usleep.c: Likewise.
4209 * maint.c: Likewise.
4210 * mi/mi-main.c: Likewise.
4211 * mi/mi-parse.h: Likewise.
4212 * remote-fileio.c: Likewise.
4213 * remote-m32r-sdi.c: Likewise.
4214 * remote.c: Likewise.
4215 * ser-base.c: Likewise.
4216 * ser-pipe.c: Likewise.
4217 * ser-tcp.c: Likewise.
4218 * ser-unix.c: Likewise.
4219 * symfile.c: Likewise.
4220 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4221 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4222 * utils.c: Likewise.
4224 2015-08-24 Pedro Alves <palves@redhat.com>
4226 * NEWS: Mention removed support for the various ROM monitors.
4227 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4228 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4229 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4231 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4233 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4234 dsrec.o from gdb_target_obs.
4235 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4236 from gdb_target_obs.
4237 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4239 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4240 dink32-rom.o from gdb_target_obs.
4241 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4242 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4243 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4244 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4246 2015-08-21 Pedro Alves <palves@redhat.com>
4248 * frame.c (null_frame_id): Explicitly zero-initialize.
4250 2015-08-21 Tom Tromey <tromey@redhat.com>
4252 * dwarf2read.c (struct dwarf2_section_info): Rename field
4253 'asection' to 'section'.
4254 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4255 (dwarf2_locate_sections, dwarf2_locate_sections)
4256 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4257 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4258 (dwarf2_locate_v2_dwp_sections): Adjust.
4260 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4262 * top.h (gdb_in_secondary_prompt_p): Declare.
4263 * top.c (gdb_secondary_prompt_depth): Define.
4264 (gdb_in_secondary_prompt_p): Define.
4265 (gdb_readline_wrapper_cleanup): Decrement
4266 gdb_secondary_prompt_depth.
4267 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4268 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4269 are in a secondary prompt.
4271 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4273 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4276 2015-08-21 Gary Benson <gbenson@redhat.com>
4278 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4280 2015-08-21 Gary Benson <gbenson@redhat.com>
4282 * target.h (struct target_ops) <to_fileio_open>: New argument
4283 warn_if_slow. Update comment. All implementations updated.
4284 (target_fileio_open_warn_if_slow): New declaration.
4285 * target.c (target_fileio_open): Renamed as...
4286 (target_fileio_open_1): ...this. New argument warn_if_slow.
4287 Pass warn_if_slow to implementation. Update debug printing.
4288 (target_fileio_open): New function.
4289 (target_fileio_open_warn_if_slow): Likewise.
4290 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4291 target_fileio_open_warn_if_slow.
4293 2015-08-21 Gary Benson <gbenson@redhat.com>
4295 * nat/linux-namespaces.c (linux_mntns_access_fs):
4296 Do not overwrite old_chain.
4298 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4300 * arch/xtensa.h: New file.
4301 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4302 (ps_get_thread_area): New function.
4303 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4304 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4305 * xtensa-tdep.c (osabi.h): New #include.
4306 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4307 xtensa-specific hooks.
4308 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4309 member and move the structure to arch/xtensa.h.
4311 2015-08-21 Pedro Alves <palves@redhat.com>
4313 * remote.c (struct readahead_cache): New.
4314 (struct remote_state) <readahead_cache>: New field.
4315 (remote_open_1): Invalidate the cache.
4316 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4318 (remote_hostio_pwrite): Invalidate the readahead cache.
4319 (remote_hostio_pread): Rename to ...
4320 (remote_hostio_pread_vFile): ... this.
4321 (remote_hostio_pread_from_cache): New function.
4322 (remote_hostio_pread): Reimplement.
4323 (remote_hostio_close): Invalidate the readahead cache.
4325 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4328 * procfs.c: Include "filestuff.h".
4330 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4332 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4334 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4335 cur_line or curch, instead call wmove().
4336 (init_win_info) [CMD_WIN]: Likewise.
4337 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4338 instead call getcury().
4339 (tui_redisplay_readline): Don't set cur_line or curch.
4340 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4342 (tui_cont_sig): Remove call to wmove.
4343 (tui_getc): Don't read cur_line or curch, instead call getcury()
4344 or getyx(). Don't set curch.
4345 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4346 set cur_line or curch. Always move cursor to (0,0).
4348 2015-08-20 Pedro Alves <palves@redhat.com>
4350 * infrun.c (print_target_wait_results): Make extern.
4351 * infrun.h (print_target_wait_results): Declare.
4352 * remote.c (set_stop_requested_callback): Delete.
4353 (process_initial_stop_replies): New function.
4354 (remote_start_remote): Use it.
4355 (stop_reply_queue_length): New function.
4357 2015-08-20 Pedro Alves <palves@redhat.com>
4359 * dwarf2read.c (process_full_comp_unit): To tell whether
4360 start_subfile managed to deduce a language, test for
4361 language_unknown instead of language_c.
4363 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4365 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4368 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4370 * dwarf2read.c (dwarf2_string_attr): New function.
4371 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4372 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4373 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4374 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4375 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4377 2015-08-18 Doug Evans <dje@google.com>
4378 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4381 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4383 * mi/mi-out.c: #include "vec.h".
4384 (ui_filep): New type.
4385 (DEV_VEC_P (ui_filep)): New type.
4386 (struct ui_out_data) <buffer, original_buffer>: Delete.
4387 (struct ui_out_data) <streams>: New member.
4388 (mi_ui_out_impl): Add data_destroy field.
4389 (mi_field_string, mi_field_fmt): Update.
4390 (mi_flush, mi_redirect, field_separator): Update.
4391 (mi_open, mi_close): Update.
4392 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4393 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4394 (mi_out_new): Call mi_out_data_ctor.
4396 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4398 * remote.c (strprefix): New.
4399 (remote_parse_stop_reply): Use strprefix instead of strncmp
4400 to ensure exact match of keyword.
4402 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4404 * gdb_bfd.c (debug_bfd_cache): New variable.
4405 (show_bfd_cache_debug): New function.
4406 (gdb_bfd_open): Add debug logging.
4407 (gdb_bfd_ref): Likewise.
4408 (gdb_bfd_unref): Likewise.
4409 (_initialize_gdb_bfd): Add new set/show command.
4410 * NEWS: Mention new command.
4412 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4414 * gdb_bfd.c (bfd_sharing): New variable.
4415 (show_bfd_sharing): New function.
4416 (gdb_bfd_open): Check bfd_sharing variable.
4417 (_initialize_gdb_bfd): Add new set/show command.
4418 * NEWS: Mention new command.
4420 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4422 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4424 (struct gdb_bfd_cache_search): Likewise.
4425 (eq_bfd): Compare the size, inode, and device id fields.
4426 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4427 (gdb_bfd_ref): Likewise.
4428 (gdb_bfd_unref): Likewise.
4430 2015-08-18 Pedro Alves <palves@redhat.com>
4432 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4433 target implements to_always_non_stop_p, call it.
4434 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4435 (x86_linux_create_target): Install it as to_always_non_stop_p
4438 2015-08-17 Doug Evans <dje@google.com>
4440 * ui-out.c (default_ui_out_impl): Add comment.
4442 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4444 * d-exp.y (type_aggregate_p): New function.
4445 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4446 (classify_inner_name): Likewise.
4447 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4449 2015-08-15 Doug Evans <xdje42@gmail.com>
4451 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4453 (add_psymbol_to_list): Ditto.
4455 2015-08-15 Doug Evans <xdje42@gmail.com>
4457 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4458 updated. Call end_psymtab_common.
4459 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4461 (build_type_psymtabs_reader): Ditto.
4462 * psympriv.h (sort_pst_symbols): Delete.
4463 (end_psymtab_common): Declare.
4464 * psymtab.c (sort_pst_symbols): Make static.
4465 (end_psymtab_common): New function.
4466 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4468 2015-08-15 Doug Evans <xdje42@gmail.com>
4470 * defs.h (LANGUAGE_BITS): Define.
4471 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4472 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4473 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4474 (minimal_symbol_type): Add nr_minsym_types.
4475 (MINSYM_TYPE_BITS): Define.
4476 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4477 (domain_enum_tag): Add NR_DOMAINS.
4478 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4479 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4481 2015-08-15 Doug Evans <xdje42@gmail.com>
4483 * objfiles.h: Whitespace cleanup.
4484 * psympriv.h: Whitespace cleanup.
4485 * psymtab.c: Whitespace/coding convention cleanup.
4487 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4489 * inferior.c (detach_inferior_command): Don't call
4490 any_thread_of_process when pid is 0.
4491 (kill_inferior_command): Likewise.
4493 2015-08-14 Doug Evans <xdje42@gmail.com>
4496 * NEWS: Document new /s modifier for the disassemble command.
4497 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4498 (_initialize_cli_cmds): Update online docs of disassemble command.
4499 * disasm.c: #include "source.h".
4500 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4502 (dis_line_entry): New struct.
4503 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4504 (allocate_dis_line_table): New functions.
4505 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4506 (dump_insns): New arg end_pc. All callers updated.
4507 (do_mixed_source_and_assembly_deprecated): Renamed from
4508 do_mixed_source_and_assembly. All callers updated.
4509 (do_mixed_source_and_assembly): New function.
4510 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4511 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4512 DISASSEMBLY_SOURCE. All uses updated.
4513 (DISASSEMBLY_SOURCE): New macro.
4514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4516 2015-08-14 Keith Seitz <keiths@redhat.com>
4518 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4519 `typename' to `type_name' to avoid C++ reserved word.
4521 2015-08-14 Keith Seitz <keiths@redhat.com>
4523 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4524 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4527 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4529 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4530 xstrprintf instead of malloc and sprintf.
4531 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4532 (lex_one_token): Likewise.
4534 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4536 * solib-svr4.c (read_program_header): Add base_addr argument to
4537 report the runtime address of the segment.
4538 (find_program_interpreter): Update read_program_header call to pass
4539 a NULL pointer for the new argument.
4540 (scan_dyntag): Add ptr_addr argument to report the runtime address
4542 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4543 read_program_header to get the base address of the dynamic segment.
4544 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4545 read_program_header.
4546 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4548 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4550 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4552 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4554 * d-exp.y (%union): Add voidval.
4555 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4556 name in the lexing stage.
4557 (PostfixExpression): Move symbol completion handling in grammar here
4558 from PrimaryExpression.
4559 (PrimaryExpression): Move routines to handle resolving identifier
4560 tokens in the grammar here from push_expression_name.
4561 (IdentifierExp): Remove the handling of alternating '.' and identifier
4563 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4564 (BasicType): Remove C-style typename rules.
4565 (d_type_from_name, d_module_from_name, push_variable)
4566 (push_fieldnames, push_type_name, push_module_name)
4567 (push_expression_name): Remove.
4568 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4569 (token_and_value): New type.
4570 (token_fifo, popping, name_obstack): New globals.
4571 (classify_name): New function.
4572 (classify_inner_name): Likewise.
4574 (d_parse): Initialize token_fifo, popping and name_obstack.
4576 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4578 * Makefile.in (SFILES): Add d-namespace.c.
4579 (COMMON_OBS): Add d-namespace.o.
4580 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4581 la_lookup_symbol_nonlocal callback function pointer.
4582 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4583 (d_lookup_nested_symbol): New declaration.
4584 * d-namespace.c: New file.
4586 2015-08-13 Pedro Alves <palves@redhat.com>
4588 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4589 cleanup after the decref cleanup, not before.
4591 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4593 * ada-lang.c: Include namespace.h
4594 (aux_add_nonlocal_symbols): Fix a function name in comment.
4595 (ada_add_block_renamings): New.
4596 (add_nonlocal_symbols): Add global renamings handling.
4597 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4599 (ada_add_all_symbols): ... this new function.
4600 (ada_add_block_symbols): Try to match the input name against the
4601 "using directives list", perform a recursive symbol lookup on
4602 the matched declarations.
4603 * block.h (struct block): Move the_namespace to top-level as
4604 namespace_info. Remove the language_specific field.
4605 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4606 * buildsym.h (using_directives): Rename into...
4607 (local_using_directives): ... this.
4608 (global_using_directives): New.
4609 (struct context_stack): Rename the using_directives field into
4610 local_using_directives.
4611 * buildsym.c (finish_block_internal): Deal with the proper
4612 using directives repository (local or global).
4613 (prepare_for_building): Reset local_using_directives. Assert
4614 that there is no pending global using directive.
4615 (reset_symtab_globals): Reset global_using_directives and
4616 local_using_directives.
4617 (end_symtab_get_static_block): Don't ignore symtabs that have
4618 only using directives.
4619 (push_context): Update references to local_using_directives.
4620 (buildsym_init): Do not reset using_directives.
4621 * cp-support.c: Include namespace.h.
4622 * cp-support.h (struct using_direct): Move to namespace.h.
4623 (cp_add_using_directives): Move to namespace.h.
4624 * cp-namespace.c: Include namespace.h
4625 (cp_add_using_directive): Move to namespace.c, rename it to
4626 add_using_directive, add a "using_directives" argument and use
4627 it as the pending using directives repository. All callers
4629 * dwarf2read.c (using_directives): New.
4630 (read_import_statement): Call using_directives.
4631 (read_func_scope): Update references to local_using_directives.
4632 (read_lexical_block_scope): Likewise.
4633 (read_namespace): Update the heading comment, call
4635 * namespace.h: New file.
4636 * namespace.c: New file.
4637 * Makefile.in (SFILES): Add namespace.c.
4638 (COMMON_OBS): Add namespace.o
4640 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4642 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4645 2015-08-12 Keith Seitz <keiths@redhat.com>
4647 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4648 reserved C++ keyword "explicit" to "explicit_loc".
4649 * breakpoint.c (create_overlay_event_breakpoint)
4650 (create_longjmp_master_breakpoint)
4651 (create_std_terminate_master_breakpoint)
4652 (create_exception_master_breakpoint, update_static_tracepoint):
4653 Rename reserved C++ keyword "explicit" to "explicit_loc".
4654 * completer.c (collect_explicit_location_matches)
4655 (explicit_location_completer): Rename reserved C++ keyword
4656 "explicit" to "explicit_loc".
4657 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4658 (canonicalize_linespec, create_sals_line_offset)
4659 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4660 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4661 "explicit" to "explicit_loc".
4662 * location.c (struct event_location) <explicit>: Rename to
4664 (initialize_explicit_location, new_explicit_location)
4665 (explicit_location_to_string_internal, explicit_location_to_linespec):
4666 Rename reserved C++ keyword "explicit" to "explicit_loc".
4667 * location.h (explicit_location_to_string)
4668 (explicit_location_to_linespec, initialize_explicit_location)
4669 (new_explicit_location): Rename reserved C++ keyword "explicit"
4671 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4672 keyword "explicit" to "explicit_loc".
4674 2015-08-12 Keith Seitz <keiths@redhat.com>
4676 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4677 and only call decode_line_1 when it is non-NULL.
4679 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4681 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4682 location address is not meaningful.
4683 (breakpoint_address_is_meaningful): Update comment.
4685 2015-08-11 Keith Seitz <keiths@redhat.com>
4687 * NEWS: Mention explicit locations.
4688 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4689 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4690 (_initialize_breakpoint): Update documentation for
4691 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4693 2015-08-11 Keith Seitz <keiths@redhat.com>
4695 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4696 explicit locations, options "--source", "--function",
4697 "--label", and "--line".
4699 2015-08-11 Keith Seitz <keiths@redhat.com>
4701 * completer.c: Include location.h.
4702 (enum match_type): New enum.
4703 (location_completer): Rename to ...
4704 (linespec_completer): ... this.
4705 (collect_explicit_location_matches, backup_text_ptr)
4706 (explicit_location_completer): New functions.
4707 (location_completer): "New" function; handle linespec
4708 and explicit location completions.
4709 (complete_line_internal): Remove all location completer-specific
4711 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4712 (find_toplevel_char): Export.
4713 (linespec_parse_line_offset): Export.
4714 Issue error if STRING is not numerical.
4715 (gdb_get_linespec_parser_quote_characters): New function.
4716 * linespec.h (linespec_parse_line_offset): Declare.
4717 (get_gdb_linespec_parser_quote_characters): Declare.
4718 (is_ada_operator): Declare.
4719 (find_toplevel_char): Declare.
4720 (linespec_lexer_lex_keyword): Declare.
4721 * location.c (explicit_to_event_location): New function.
4722 (explicit_location_lex_one): New function.
4723 (string_to_explicit_location): New function.
4724 (string_to_event_location): Handle explicit locations.
4725 * location.h (explicit_to_event_location): Declare.
4726 (string_to_explicit_location): Declare.
4728 2015-08-11 Keith Seitz <keiths@redhat.com>
4730 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4731 linespec into explicit location.
4732 * breakpoint.c (create_overlay_breakpoint)
4733 (create_longjmp_master_breakpoint)
4734 (create_std_terminate_master_breakpoint)
4735 (create_exception_master_breakpoint): Convert linespec into explicit
4737 (update_static_tracepoint): Convert linespec into explicit location.
4738 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4740 (struct linespec) <expression, expr_pc, source_filename>
4741 <function_name, label_name, line_offset>: Replace with ...
4742 <explicit>: ... this.
4743 <is_linespec>: New member.
4744 (PARSER_EXPLICIT): New accessor macro.
4745 (undefined_label_error): New function.
4746 (source_file_not_found_error): New function.
4747 (linespec_parse_basic): The parser result is now an explicit location.
4748 Use PARSER_EXPLICIT to access it.
4749 Use undefined_label_error.
4750 (canonicalize_linespec): Convert canonical linespec into explicit
4752 Move string representation of location to explicit_location_to_linespec
4753 and use it and explicit_location_to_string to save string
4754 representations of the canonical location.
4755 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4756 explicit location. Update all references.
4757 (convert_explicit_location_to_sals): New function.
4758 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4759 result's explicit location.
4760 (linespec_state_constructor): Initialize is_linespec.
4761 Use PARSER_EXPLICIT.
4762 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4764 (event_location_to_sals): For linespec locations, set is_linespec.
4765 Handle explicit locations.
4766 (decode_objc): 'ls' contains an explicit location now. Update all
4768 (symtabs_from_filename): Use source_file_not_found_error.
4769 * location.c (struct event_location.u) <explicit>: New member.
4770 (initialize_explicit_location): New function.
4771 (initialize_event_location): Initialize explicit locations.
4772 (new_explicit_location, get_explicit_location)
4773 (get_explicit_location_const): New functions.
4774 (explicit_to_string_internal): New function; most of contents moved
4775 from canonicalize_linespec.
4776 (explicit_location_to_string): New function.
4777 (explicit_location_to_linespec): New function.
4778 (copy_event_location, delete_event_location)
4779 (event_location_to_string_const, event_location_empty_p): Handle
4781 * location.h (enum offset_relative_sign, struct line_offset): Move
4782 here from linespec.h.
4783 (enum event_location_type): Add EXPLICIT_LOCATION.
4784 (struct explicit_location): New structure.
4785 (explicit_location_to_string): Declare.
4786 (explicit_location_to_linespec): Declare.
4787 (new_explicit_location, get_explicit_locationp
4788 (get_explicit_location_const, initialize_explicit_location): Declare.
4790 2015-08-11 Keith Seitz <keiths@redhat.com>
4792 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4793 linespec for stap probe to probe location.
4794 * breakpoint.c (create_longjmp_master_breakpoint)
4795 (create_exception_master_breakpoint): Likewise.
4796 (break_command_1): Remove local variable `arg_cp'.
4797 Check location type to set appropriate breakpoint ops methods.
4798 (trace_command): Likewise.
4799 * linespec.c (event_location_to_sals): Assert on probe locations.
4800 * location.c (EL_PROBE): Add macro definition.
4801 (new_probe_location, get_probe_location): New functions.
4802 (copy_event_location, delete_event_location, event_location_to_string)
4803 (string_to_event_location, event_location_empty_p): Handle probe
4805 * location.h (enum event_location_type): Add PROBE_LOCATION.
4806 (new_probe_location, get_probe_location): Declare.
4807 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4808 Convert linespec into probe location.
4810 2015-08-11 Keith Seitz <keiths@redhat.com>
4812 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4813 Convert linespec to address location.
4814 * linespec.c (canonicalize_linespec): Do not handle address
4816 (convert_address_location_to_sals): New function; contents moved
4818 (convert_linespc_to_sals): ... here.
4819 (parse_linespec): Remove address locations from linespec grammar.
4820 Remove handling of address locations.
4821 (linespec_lex_to_end): Remove handling of address linespecs.
4822 (event_location_to_sals): Handle ADDRESS_LOCATION.
4823 (linespec_expression_to_pc): Export.
4824 * linespec.h (linespec_expression_to_pc): Add declaration.
4825 * location.c (struct event_location.u) <address>: New member.
4826 (new_address_location, get_address_location): New functions.
4827 (copy_event_location, delete_event_location, event_location_to_string)
4828 (string_to_event_location, event_location_empty_p): Handle address
4830 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4831 (new_address_location, get_address_location): Declare.
4832 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4833 to address location.
4834 * spu-tdep.c (spu_catch_start): Likewise.
4836 2015-08-11 Keith Seitz <keiths@redhat.com>
4838 * ax-gdb.c: Include location.h.
4839 (agent_command_1) Use linespec location instead of address
4841 * break-catch-throw.c: Include location.h.
4842 (re_set_exception_catchpoint): Use linespec locations instead
4844 * breakpoint.c: Include location.h.
4845 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4846 (create_std_terminate_master_breakpoint)
4847 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4848 Use linespec location instead of address string.
4849 (print_breakpoint_location): Use locations and
4850 event_location_to_string.
4851 Print extra_string for pending locations for non-MI streams.
4852 (print_one_breakpoint_location): Use locations and
4853 event_location_to_string.
4854 (init_raw_breakpoint_without_location): Initialize b->location.
4855 (create_thread_event_breakpoint): Use linespec location instead of
4857 (init_breakpoint_sal): Likewise.
4858 Only save extra_string if it is non-NULL and not the empty string.
4859 Use event_location_to_string instead of `addr_string'.
4860 Constify `p' and `endp'.
4861 Use skip_spaces_const/skip_space_const instead of non-const versions.
4862 Copy the location into the breakpoint.
4863 If LOCATION is NULL, save the breakpoint address as a linespec location
4864 instead of an address string.
4865 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4866 event_location. All uses updated.
4867 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4868 (parse_breakpoint_sals): Use locations instead of address strings.
4869 Remove check for empty linespec with conditional.
4871 (decode_static_tracepoint_spec): Make argument const and update
4873 (create_breakpoint): Change `arg' to a struct event_location and
4875 Remove `copy_arg' and `addr_start'.
4876 If EXTRA_STRING is empty, set it to NULL.
4877 Don't populate `canonical' for pending breakpoints.
4878 Pass `extra_string' to find_condition_and_thread.
4879 Clear `extra_string' if `rest' was NULL.
4880 Do not error with "garbage after location" if setting a dprintf
4882 Copy the location into the breakpoint instead of an address string.
4883 (break_command_1): Use string_to_event_location and pass this to
4884 create_breakpoint instead of an address string.
4885 Check against `arg_cp' for a probe linespec.
4886 (dprintf_command): Use string_to_event_location and pass this to
4887 create_breakpoint instead of an address string.
4888 Throw an exception if no format string was specified.
4889 (print_recreate_ranged_breakpoint): Use event_location_to_string
4890 instead of address strings.
4891 (break_range_command, until_break_command)
4892 (init_ada_exception_breakpoint): Use locations instead
4894 (say_where): Print out extra_string for pending locations.
4895 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4897 (base_breakpoint_create_sals_from_location): Use struct event_location
4898 instead of address string.
4899 Remove `addr_start' and `copy_arg' parameters.
4900 (base_breakpoint_decode_location): Use struct event_location instead of
4902 (bkpt_re_set): Use locations instead of address strings.
4903 Use event_location_empty_p to check for unset location.
4904 (bkpt_print_recreate): Use event_location_to_string instead of
4906 Print out extra_string for pending locations.
4907 (bkpt_create_sals_from_location, bkpt_decode_location)
4908 (bkpt_probe_create_sals_from_location): Use struct event_location
4909 instead of address string.
4910 (bkpt_probe_decode_location): Use struct event_location instead of
4912 (tracepoint_print_recreate): Use event_location_to_string to
4913 recreate the tracepoint.
4914 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4915 (tracepoint_probe_create_sals_from_location)
4916 (tracepoint_probe_decode_location): Use struct event_location
4917 instead of address string.
4918 (dprintf_print_recreate): Use event_location_to_string to recreate
4920 (dprintf_re_set): Remove check for valid/missing format string.
4921 (strace_marker_create_sals_from_location)
4922 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4923 (update_static_tracepoint): Use struct event_location instead of
4925 (location_to_sals): Likewise.
4926 Pass `extra_string' to find_condition_and_thread.
4927 For newly resolved pending breakpoint locations, clear the location's
4928 string representation.
4929 Assert that the breakpoint's condition string is NULL when
4930 condition_not_parsed.
4931 (breakpoint_re_set_default, create_sals_from_location_default)
4932 (decode_location_default, trace_command, ftrace_command)
4933 (strace_command, create_tracepoint_from_upload): Use locations
4934 instead of address strings.
4935 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4936 Use struct event_location instead of address string.
4938 <decode_location>: Likewise.
4939 (struct breakpoint) <addr_string>: Change to struct event_location
4940 and rename `location'.
4941 <addr_string_range_end>: Change to struct event_location and rename
4942 `location_range_end'.
4943 (create_breakpoint): Use struct event_location instead of address
4945 * cli/cli-cmds.c: Include location.h.
4946 (edit_command, list_command): Use locations instead of address strings.
4947 * elfread.c: Include location.h.
4948 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4949 * guile/scm-breakpoint.c: Include location.h.
4950 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4951 (gdbscm_register_breakpoint): Use locations instead of address
4953 * linespec.c: Include location.h.
4954 (struct ls_parser) <stream>: Change to const char *.
4955 (PARSER_STREAM): Update.
4956 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4957 keywords must be followed by whitespace.
4958 (canonicalize_linespec): Save a linespec location into `canonical'.
4959 Save a canonical linespec into `canonical'.
4960 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4962 Update function description.
4963 (linespec_parser_new): Initialize `parser'.
4964 Update initialization of parsing stream.
4965 (event_location_to_sals): New function.
4966 (decode_line_full): Change `argptr' to a struct event_location and
4967 rename it `location'.
4968 Use locations instead of address strings.
4969 Call event_location_to_sals instead of parse_linespec.
4970 (decode_line_1): Likewise.
4971 (decode_line_with_current_source, decode_line_with_last_displayed)
4972 Use locations instead of address strings.
4973 (decode_objc): Likewise.
4974 Change `argptr' to const char * and rename `arg'.
4975 (destroy_linespec_result): Delete the linespec result's location
4976 instead of freeing the address string.
4977 * linespec.h (struct linespec_result) <addr_string>: Change to
4978 struct event_location and rename to ...
4979 <location>: ... this.
4980 (decode_line_1, decode_line_full): Change `argptr' to struct
4981 event_location. All callers updated.
4982 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4983 (mi_cmd_break_insert_1): Use locations instead of address strings.
4984 Throw an error if there was "garbage" at the end of the specified
4986 * probe.c: Include location.h.
4987 (parse_probes): Change `argptr' to struct event_location.
4988 Use event locations instead of address strings.
4989 * probe.h (parse_probes): Change `argptr' to struct event_location.
4990 * python/py-breakpoint.c: Include location.h.
4991 (bppy_get_location): Constify local variable `str'.
4992 Use event_location_to_string.
4993 (bppy_init): Use locations instead of address strings.
4994 * python/py-finishbreakpoint.c: Include location.h.
4995 (bpfinishpy_init): Remove local variable `addr_str'.
4996 Use locations instead of address strings.
4997 * python/python.c: Include location.h.
4998 (gdbpy_decode_line): Use locations instead of address strings.
4999 * remote.c: Include location.h.
5000 (remote_download_tracepoint): Use locations instead of address
5002 * spu-tdep.c: Include location.h.
5003 (spu_catch_start): Remove local variable `buf'.
5004 Use locations instead of address strings.
5005 * tracepoint.c: Include location.h.
5006 (scope_info): Use locations instead of address strings.
5007 (encode_source_string): Constify parameter `src'.
5008 * tracepoint.h (encode_source_string): Likewise.
5010 2015-08-11 Keith Seitz <keiths@redhat.com>
5012 * Makefile.in (SFILES): Add location.c.
5013 (HFILES_NO_SRCDIR): Add location.h.
5014 (COMMON_OBS): Add location.o.
5015 * linespec.c (linespec_lex_to_end): New function.
5016 * linespec.h (linespec_lex_to_end): Declare.
5017 * location.c: New file.
5018 * location.h: New file.
5020 2015-08-11 Keith Seitz <keiths@redhat.com>
5022 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5023 Renamed to create_sals_from_location.
5024 <decode_linespec>: Renamed to decode_location.
5026 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5027 (create_sals_from_location_default): ... this.
5028 (addr_string_to_sals): Renamed to ...
5029 (location_to_sals): ... this.
5030 (decode_linespec_default): Renamed to ...
5031 (decode_location_default): ... this.
5032 (base_breakpoint_create_sals_from_address): Renamed to ...
5033 (base_breakpoint_create_sals_from_location): ... this.
5034 (bkpt_create_sals_from_address): Renamed to ...
5035 (bkpt_create_sals_from_location): ... this.
5036 (bkpt_decode_linespec): Renamed to ...
5037 (bkpt_decode_location): ... this.
5038 (bkpt_probe_create_sals_from_address): Renamed to ...
5039 (bkpt_probe_create_sals_from_location): ... this.
5040 (tracepoint_create_sals_from_address): Renamed to ...
5041 (tracepoint_create_sals_from_location): ... this.
5042 (tracepoint_decode_linespec): Renamed to ...
5043 (tracepoint_decode_location): ... this.
5044 (tracepoint_probe_create_sals_from_address): Renamed to ...
5045 (tracepoint_probe_create_sals_from_location): ... this.
5046 (tracepoint_probe_decode_linespec): Renamed to ...
5047 (tracepoint_probe_decode_location): ... this.
5048 (strace_marker_create_sals_from_address): Renamed to ...
5049 (strace_marker_create_sals_from_location): ... this.
5050 (decode_linespec_default): Renamed to ...
5051 (decode_location_default): ... this.
5053 2015-08-10 Doug Evans <dje@google.com>
5054 Keith Seitz <keiths@redhat.com>
5057 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5058 make_file_symbol_completion_list and made static.
5059 (make_file_symbol_completion_list): New function.
5061 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5063 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5064 trailing new-line at end of warning message.
5065 (proceed): Add i18n marker to error messages.
5067 2015-08-07 Pedro Alves <palves@redhat.com>
5069 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5071 2015-08-07 Pedro Alves <palves@redhat.com>
5073 * s390-linux-tdep.c (is_non_branch_ril)
5074 (s390_displaced_step_copy_insn): New functions.
5075 (s390_displaced_step_fixup): Update comment.
5076 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5077 gdbarch_displaced_step_copy_insn hook.
5079 2015-08-07 Pedro Alves <palves@redhat.com>
5081 * infrun.c (displaced_step_prepare_throw): Return -1 if
5082 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5084 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5085 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5087 (ppc_displaced_step_copy_insn): New function.
5088 (ppc_displaced_step_fixup): Update comment.
5089 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5090 gdbarch_displaced_step_copy_insn hook.
5091 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5093 * gdbarch.h: Regenerate.
5095 2015-08-07 Pedro Alves <palves@redhat.com>
5097 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5099 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5100 Return false if dispaced stepping failed before.
5101 (resume): Pass the current inferior to
5102 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5103 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5104 displaced_stepping_failed flag, and fall back to an in-line
5107 2015-08-07 Pedro Alves <palves@redhat.com>
5109 * darwin-nat.c (darwin_stop): Rename to ...
5110 (darwin_interrupt): ... this.
5111 (_initialize_darwin_inferior): Adjust.
5112 * gnu-nat.c (gnu_stop): Delete.
5113 (gnu_target): Don't install gnu_stop.
5114 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5115 (inf_ptrace_interrupt): ... this.
5116 (inf_ptrace_target): Adjust.
5117 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5119 * linux-nat (linux_nat_stop): Rename to ...
5120 (linux_nat_interrupt): ... this.
5121 (linux_nat_stop): Reimplement.
5122 (linux_nat_add_target): Install linux_nat_interrupt.
5123 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5124 (nto_handle_sigint_twice): ... this.
5125 (nto_interrupt): Rename to ...
5126 (nto_handle_sigint): ... this. Call target_interrupt instead of
5128 (procfs_wait): Adjust.
5129 (procfs_stop): Rename to ...
5130 (procfs_interrupt): ... this.
5131 (init_procfs_targets): Adjust.
5132 * procfs.c (procfs_stop): Rename to ...
5133 (procfs_interrupt): ... this.
5134 (procfs_target): Adjust.
5135 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5136 (m32r_interrupt): ... this.
5137 (init_m32r_ops): Adjust.
5138 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5139 (gdbsim_interrupt_inferior): ... this.
5140 (gdbsim_stop): Rename to ...
5141 (gdbsim_interrupt): ... this.
5142 (gdbsim_cntrl_c): Adjust.
5143 (init_gdbsim_ops): Adjust.
5144 * remote.c (sync_remote_interrupt): Adjust comments.
5145 (remote_stop_as): Rename to ...
5146 (remote_interrupt_as): ... this.
5147 (remote_stop): Adjust comment.
5148 (remote_interrupt): New function.
5149 (init_remote_ops): Install remote_interrupt.
5150 * target.c (target_interrupt): New function.
5151 * target.h (struct target_ops) <to_interrupt>: New field.
5152 (target_interrupt): New declaration.
5153 * windows-nat.c (windows_stop): Rename to ...
5154 (windows_interrupt): ... this.
5155 * target-delegates.c: Regenerate.
5157 2015-08-07 Pedro Alves <palves@redhat.com>
5159 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5160 threads" as alternative to "switching back to stepped thread".
5162 2015-08-07 Pedro Alves <palves@redhat.com>
5164 * NEWS: Mention "maint set/show target-non-stop".
5165 * breakpoint.c (update_global_location_list): Check
5166 target_is_non_stop_p instead of non_stop.
5167 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5168 * infrun.c (show_can_use_displaced_stepping)
5169 (can_use_displaced_stepping_p, start_step_over_inferior):
5171 (internal_resume_ptid): New function.
5173 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5174 all-stop mode but the target is always in non-stop mode, start all
5175 the other threads that are implicitly resumed too.
5176 (for_each_just_stopped_thread, fetch_inferior_event)
5177 (adjust_pc_after_break, stop_all_threads): Check
5178 target_is_non_stop_p instead of non_stop.
5179 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5180 with the target always in non-stop mode.
5181 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5182 instead of non_stop.
5183 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5184 instead of non_stop.
5185 (keep_going_stepped_thread): Use internal_resume_ptid.
5186 (stop_waiting): If in all-stop mode, and the target is in non-stop
5187 mode, stop all threads.
5188 (keep_going_pass): Likewise, when starting a new in-line step-over
5190 * linux-nat.c (get_pending_status, select_event_lwp)
5191 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5192 target_is_non_stop_p instead of non_stop.
5193 (linux_nat_always_non_stop_p): New function.
5194 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5195 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5196 * target-delegates.c: Regenerate.
5197 * target.c (target_is_non_stop_p): New function.
5198 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5199 (maint_set_target_non_stop_command)
5200 (maint_show_target_non_stop_command): New functions.
5201 (_initilize_target): Install "maint set/show target-non-stop"
5203 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5204 (target_non_stop_enabled): New declaration.
5205 (target_is_non_stop_p): New declaration.
5207 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5209 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5210 has a pending status, return true.
5211 * gdbthread.h: Include target/waitstatus.h.
5212 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5213 stop_pc>: New fields.
5214 (struct thread_info) <resumed>: New field.
5215 (set_resumed): Declare.
5216 * infrun.c: Include "event-loop.h".
5217 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5218 (infrun_async): New function.
5219 (clear_step_over_info): Add debug output.
5220 (displaced_step_in_progress_any_inferior): New function.
5221 (displaced_step_fixup): New returns int.
5222 (start_step_over): Handle in-line step-overs too. Assert the
5223 thread is marked resumed.
5224 (resume_cleanups): Clear the thread's resumed flag.
5225 (resume): Set the thread's resumed flag. Return early if the
5226 thread has a pending status. Allow stepping a breakpoint with no
5228 (proceed): Adjust to check 'resumed' instead of 'executing'.
5229 (clear_proceed_status_thread): If the thread has a pending status,
5230 and that status is a finished step, discard the pending status.
5231 (clear_proceed_status): Don't clear step_over_info here.
5232 (random_pending_event_thread, do_target_wait): New functions.
5233 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5235 (wait_one): New function.
5236 (THREAD_STOPPED_BY): New macro.
5237 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5238 (thread_stopped_by_hw_breakpoint): New functions.
5239 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5241 (handle_inferior_event): Also call set_resumed(false) on all
5242 threads implicitly stopped by the event.
5243 (restart_threads, resumed_thread_with_pending_status): New
5245 (finish_step_over): If we were doing an in-line step-over before,
5246 and no longer are after trying to start a new step-over, restart
5247 all threads. If we have multiple threads with pending events,
5248 save the current event and go through the event loop again.
5249 (handle_signal_stop): Return early if finish_step_over returns
5251 <random signal>: If we get a signal while stepping over a
5252 breakpoint in-line in non-stop mode, restart all threads. Clear
5253 step_over_info before delivering the signal.
5254 (keep_going_stepped_thread): Use internal_error instead of
5255 gdb_assert. Mark the thread as resumed.
5256 (keep_going_pass_signal): Assert the thread isn't already resumed.
5257 If some other thread is doing an in-line step-over, defer the
5258 resume. If we just started a new in-line step-over, stop all
5259 threads. Don't clear step_over_info.
5260 (infrun_async_inferior_event_handler): New function.
5261 (_initialize_infrun): Create async event handler with
5262 infrun_async_inferior_event_handler as callback.
5263 (infrun_async): New declaration.
5264 * target.c (target_async): New function.
5265 * target.h (target_async): Declare macro and readd as function
5267 * target/waitstatus.h (enum target_stop_reason)
5268 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5269 * thread.c (new_thread): Clear the new waitstatus field.
5270 (set_resumed): New function.
5272 2015-08-07 Pedro Alves <palves@redhat.com>
5274 * infrun.c (keep_going_stepped_thread): New function, factored out
5276 (switch_back_to_stepped_thread): ... here.
5278 2015-08-07 Pedro Alves <palves@redhat.com>
5280 * infrun.c (currently_stepping): Extend intro comment.
5281 * target.h (target_resume): Extend intro comment.
5283 2015-08-07 Pedro Alves <palves@redhat.com>
5285 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5286 of inferior_ptid. If the stepped thread vanished, return 0
5287 instead of resuming here. Use reset_ecs. Print the prev_pc and
5288 the current stop_pc in log message. Clear trap_expected if the
5289 thread advanced. Don't pass currently_stepping to
5292 2015-08-07 Pedro Alves <palves@redhat.com>
5294 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5295 * infrun.c (struct execution_control_state): Move higher up in the
5297 (reset_ecs): New function.
5298 (start_step_over): Now returns int. Rewrite to use
5299 keep_going_pass_signal instead of manually starting a displaced step.
5300 (resume): Don't call set_running here. If displaced stepping
5301 can't start now, clear trap_expected.
5302 (find_thread_needs_step_over): Delete function.
5303 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5304 If the current thread needs a step over, push it in the step-over
5305 chain. Don't set insert breakpoints nor call resume directly
5306 here. Instead rewrite to use start_step_over and
5307 keep_going_pass_signal.
5308 (finish_step_over): New function.
5309 (handle_signal_stop): Call finish_step_over instead of
5311 (switch_back_to_stepped_thread): If the event thread needs another
5312 step-over do that first. Use start_step_over.
5313 (keep_going_pass_signal): New function, factored out from ...
5314 (keep_going): ... here.
5315 (_initialize_infrun): Comment moved here.
5316 * thread.c (set_running_thread): New function.
5317 (set_running, finish_thread_state): Use set_running_thread.
5319 2015-08-07 Pedro Alves <palves@redhat.com>
5321 * gdbthread.h (struct thread_info) <step_over_prev,
5322 step_over_next>: New fields.
5323 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5324 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5326 * infrun.c (struct displaced_step_request): Delete.
5327 (struct displaced_step_inferior_state) <step_request_queue>:
5329 (displaced_step_prepare): Assert that trap_expected is set. Use
5330 thread_step_over_chain_enqueue. Split starting a new displaced
5332 (start_step_over): ... this new function.
5333 (resume): Assert the thread isn't waiting for a step over already.
5334 (proceed): Assert the thread isn't waiting for a step over
5336 (infrun_thread_stop_requested): Adjust to remove threads from the
5337 embedded step-over chain.
5338 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5339 displaced_step_fixup.
5340 (handle_signal_stop): Call start_step_over after
5341 displaced_step_fixup.
5342 * infrun.h (step_over_queue_head): New declaration.
5343 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5344 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5345 (thread_step_over_chain_enqueue)
5346 (thread_step_over_chain_remove): New functions.
5347 (delete_thread_1): Remove thread from the step-over chain.
5349 2015-08-07 Pedro Alves <palves@redhat.com>
5351 * infrun.c (thread_still_needs_step_over): Rename to ...
5352 (thread_still_needs_step_over_bp): ... this.
5353 (enum step_over_what): New.
5354 (thread_still_needs_step_over): Reimplement.
5356 2015-08-07 Pedro Alves <palves@redhat.com>
5358 * remote.c (remote_wait_as): If not waiting for a stop reply,
5359 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5360 requested, don't block waiting forever.
5362 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5364 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5365 waitstatus pointers instead of an ecs. Adjust.
5366 (handle_inferior_event): Adjust caller.
5368 2015-08-07 Pedro Alves <palves@redhat.com>
5370 * infrun.c (handle_inferior_event): If we get
5371 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5372 mode, mark all threads of the exiting process as not-executing.
5373 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5374 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5375 exiting process, if inferior_ptid still points at a process.
5376 * thread.c (struct current_thread_cleanup) <next>: New field.
5377 (current_thread_cleanup_chain): New global.
5378 (restore_current_thread_ptid_changed): New function.
5379 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5380 current_thread_cleanup_chain list.
5381 (make_cleanup_restore_current_thread): Add the cleanup data to the
5382 current_thread_cleanup_chain list.
5383 (_initialize_thread): Install restore_current_thread_ptid_changed
5384 as thread_ptid_changed observer.
5386 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5388 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5389 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5390 smaller than expected.
5392 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5394 * stack.c (get_frame_language): Moved ...
5395 * frame.c (get_frame_language): ... to here.
5396 * language.h (get_frame_language): Declaration moved to frame.h.
5397 * frame.h: Add language.h include, for language enum.
5398 (get_frame_language): Declaration moved from language.h.
5399 * language.c: Add frame.h include.
5400 * top.c: Add frame.h include.
5401 * symtab.h (struct obj_section): Declare.
5402 (struct cmd_list_element): Declare.
5404 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5406 * language.c (show_language_command): Find selected frame before
5407 asking for the language of that frame.
5408 (set_language_command): Likewise.
5409 * language.h (get_frame_language): Add frame parameter.
5410 * stack.c (get_frame_language): Add frame parameter, assert
5411 parameter is not NULL, update comment and reindent.
5412 * top.c (check_frame_language_change): Pass the selected frame
5413 into get_frame_language.
5415 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5417 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5418 (pt_btrace_insn_flags): New.
5419 (ftrace_add_pt): Call pt_btrace_insn_flags.
5420 * btrace.h (btrace_insn_flag): New.
5421 (btrace_insn) <flags>: New.
5422 * record-btrace.c (btrace_insn_history): Print insn prefix.
5423 * NEWS: Announce it.
5425 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5427 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5428 * configure: Regenerate.
5430 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5432 * Makefile.in (LIBICONV): Define.
5433 (CLIBS): Add LIBICONV.
5434 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5435 * configure: Regenerate.
5437 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5438 Pedro Alves <palves@redhat.com>
5440 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5441 (arm_set_abi): Likewise.
5442 * ax-general.c (ax_print): Likewise.
5443 * c-exp.y (exp : string_exp): Likewise.
5444 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5445 (do_compile_dwarf_expr_to_c): Likewise.
5446 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5448 * dwarf2expr.c (execute_stack_op): Likewise.
5449 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5450 (disassemble_dwarf_expression): Likewise.
5451 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5452 (read_array_order): Likewise.
5453 (abbrev_table_read_table): Likewise.
5454 (read_attribute_value): Likewise.
5455 (skip_unknown_opcode): Likewise.
5456 (dwarf_decode_macro_bytes): Likewise.
5457 (dwarf_decode_macros): Likewise.
5458 * eval.c (value_f90_subarray): Likewise.
5459 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5460 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5461 * infrun.c (handle_command): Likewise.
5462 * memory-map.c (memory_map_start_memory): Likewise.
5463 * osabi.c (set_osabi): Likewise.
5464 * parse.c (operator_length_standard): Likewise.
5465 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5466 single return point.
5467 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5468 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5469 (gdbpy_lookup_global_symbol): Likewise.
5470 * record-full.c (record_full_restore): Likewise.
5471 * regcache.c (regcache_register_status): Likewise.
5472 (regcache_raw_read): Likewise.
5473 (regcache_cooked_read): Likewise.
5474 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5475 * symtab.c (initialize_ordinary_address_classes): Likewise.
5476 * target-debug.h (target_debug_print_signals): Likewise.
5477 * utils.c (do_restore_current_language): Likewise.
5479 2015-08-06 Clem Dickey <clemd@acm.org>
5482 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5484 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5486 * complaints.c (enum complaint_series): Add newlines and remove
5487 out of date comment.
5488 (struct complaints) <series>: Change type to enum
5489 complaint_series and remove out of date comment.
5490 (symfile_complaint_hook): Use equivalent enum value
5491 ISOLATED_MESSAGE instead of 0.
5493 2015-08-06 Pedro Alves <palves@redhat.com>
5495 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5498 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5500 * common/agent.c (symbol_list) <required>: Remove.
5502 2015-08-06 Pedro Alves <palves@redhat.com>
5504 * target/waitstatus.h (enum target_stop_reason)
5505 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5507 2015-08-05 Pedro Alves <palves@redhat.com>
5508 Joel Brobecker <brobecker@adacore.com>
5510 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5511 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5512 case where BS->STOP is not set.
5514 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5516 * nat/gdb_thread_db.h: Add copyright header.
5517 Protect against multiple inclusion.
5519 2015-08-05 Yao Qi <yao.qi@linaro.org>
5521 * aarch64-linux-nat.c (get_thread_id): Remove.
5522 (debug_reg_change_callback): Call ptid_get_lwp instead of
5524 (fetch_gregs_from_thread): Likewise.
5525 (store_gregs_to_thread): Likewise.
5526 (fetch_fpregs_from_thread): Likewise.
5527 (store_fpregs_to_thread): Likewise.
5528 (aarch64_linux_get_debug_reg_capacity): Likewise.
5529 * arm-linux-nat.c (get_thread_id): Remove.
5530 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5531 * xtensa-linux-nat.c (get_thread_id): Remove.
5532 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5533 * arm-linux-nat.c (get_thread_id): Remove.
5534 (GET_THREAD_ID): Remove.
5535 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5536 (store_fpregs, fetch_regs, store_regs): Likewise.
5537 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5538 (fetch_vfp_regs, store_vfp_regs): Likewise.
5539 (arm_linux_read_description): Likewise.
5540 (arm_linux_get_hwbp_cap): Likewise.
5541 * xtensa-linux-nat.c (get_thread_id): Remove.
5542 (GET_THREAD_ID): Remove.
5543 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5546 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5548 * python/py-linetable.c: Fix case of Linetable to LineTable
5549 in docstrings and code comments.
5550 * python/py-symtab.c: Same.
5552 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5556 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5562 2015-08-04 Pedro Alves <palves@redhat.com>
5564 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5565 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5566 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5567 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5568 (td_thr_validate_ftype, td_thr_get_info_ftype)
5569 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5570 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5572 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5573 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5574 local macros and use them instead of verbose_dlsym and dlsym
5577 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5579 * nios2-tdep.h: Include opcode/nios2.h here.
5580 (NIOS2_CDX_OPCODE_SIZE): New.
5581 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5582 * nios2-tdep.c: Don't include opcode/nios2.h here.
5583 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5585 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5586 (nios2_match_addi, nios2_match_orhi): Likewise.
5587 (nios2_match_stw, nios2_match_ldw): Likewise.
5588 (nios2_match_rdctl): Likewise.
5589 (nios2_match_stwm, nios2_match_ldwm): New.
5590 (nios2_match_branch): Add cases for R2 encodings.
5591 (nios2_match_jmpi, nios2_match_calli): Likewise.
5592 (nios2_match_jmpr, nios2_match_callr): Likewise.
5593 (nios2_match_break, nios2_match_trap): Likewise.
5594 (nios2_in_epilogue_p): Add R2 support.
5595 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5597 (nios2_breakpoint_from_pc): Handle R2 instructions.
5598 (nios2_get_next_pc): Likewise. Adjust call to
5599 tdep->syscall_next_pc.
5600 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5601 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5602 instruction field macros instead of literal hex values.
5603 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5604 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5605 Use size field from OP instead of assuming all instructions
5607 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5609 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5611 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5612 variable warning with some compilers.
5614 2015-08-03 Yao Qi <yao.qi@linaro.org>
5616 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5617 in comment. Replace "rw" with "type".
5618 (arm_linux_remove_watchpoint): Change type of "rw" to
5619 "enum target_hw_bp_type".
5621 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5623 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5625 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5626 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5627 * mt-tdep.c (mt_skip_prologue): Likewise.
5628 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5630 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5632 * ada-exp.y (write_object_renaming): Replace struct
5633 ada_symbol_info with struct block_symbol. Update field
5634 references accordingly.
5635 (block_lookup, select_possible_type_sym): Likewise.
5636 (find_primitive_type): Likewise. Also update call to
5637 ada_lookup_symbol to extract the symbol itself.
5638 (write_var_or_type, write_name_assoc): Likewise.
5639 * ada-lang.h (struct ada_symbol_info): Remove.
5640 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5641 struct block_symbol.
5642 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5643 (ada_lookup_symbol): Return struct block_symbol instead of a
5645 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5646 with struct block_symbol.
5647 (resolve_subexp, ada_resolve_function, sort_choices,
5648 user_select_syms, is_nonfunction, add_defn_to_vec,
5649 num_defns_collected, defns_collected,
5650 symbols_are_identical_enums, remove_extra_symbols,
5651 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5652 ada_lookup_symbol_list, ada_iterate_over_symbols,
5653 ada_lookup_encoded_symbol, get_var_value): Likewise.
5654 (ada_lookup_symbol): Return a block_symbol instead of a mere
5655 symbol. Replace struct ada_symbol_info with struct
5657 (ada_lookup_symbol_nonlocal): Likewise.
5658 (standard_lookup): Make block passing explicit through
5659 lookup_symbol_in_language.
5660 * ada-tasks.c (get_tcb_types_info): Update the calls to
5661 lookup_symbol_in_language to extract the mere symbol out of the
5663 (ada_tasks_inferior_data_sniffer): Likewise.
5664 * ax-gdb.c (gen_static_field): Likewise for the call to
5666 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5668 (gen_expr): Likewise.
5669 * c-exp.y: Likewise. Remove uses of block_found.
5670 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5671 (classify_name): Likewise. Rename the "sym" local variable to
5673 * c-valprint.c (print_unpacked_pointer): Likewise.
5674 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5675 "sym" parameter from struct symbol * to struct block_symbol.
5676 Use it to remove uses of block_found. Deal with struct
5677 block_symbol from lookup functions.
5678 (gcc_convert_symbol): Likewise. Update the call to
5680 * compile/compile-object-load.c (compile_object_load): Deal with
5681 struct block_symbol from lookup functions.
5682 * cp-namespace.c (cp_lookup_nested_symbol_1,
5683 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5684 cp_search_static_and_baseclasses,
5685 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5686 cp_lookup_symbol_imports_or_template,
5687 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5688 lookup_namespace_scope, cp_lookup_nonlocal,
5689 find_symbol_in_baseclass): Return struct block_symbol instead of
5690 mere symbols and deal with struct block_symbol from lookup
5692 * cp-support.c (inspect_type, replace_typedefs,
5693 cp_lookup_rtti_type): Deal with struct block_symbol from
5695 * cp-support.h (cp_lookup_symbol_nonlocal,
5696 cp_lookup_symbol_from_namespace,
5697 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5698 Return struct block_symbol instead of mere symbols.
5699 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5701 Deal with struct block_symbol from lookup functions. Remove
5702 uses of block_found.
5703 * eval.c (evaluate_subexp_standard): Update call to
5704 cp_lookup_symbol_namespace.
5705 * f-exp.y: Deal with struct block_symbol from lookup functions.
5706 Remove uses of block_found.
5708 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5709 lookup_enum, lookup_template_type, check_typedef): Deal with
5710 struct block_symbol from lookup functions.
5711 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5712 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5713 (gdbscm_lookup_global_symbol): Likewise.
5714 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5715 * go-exp.y: Likewise. Remove uses of block_found.
5716 (package_name_p, classify_packaged_name, classify_name):
5718 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5719 * jv-exp.y (push_variable): Likewise.
5720 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5721 * language.c (language_bool_type): Likewise.
5722 * language.h (struct language_defn): Update
5723 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5725 * linespec.c (find_label_symbols): Deal with struct block_symbol
5726 from lookup functions.
5727 * m2-exp.y: Likewise. Remove uses of block_found.
5729 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5730 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5731 * p-exp.y: Likewise. Remove uses of block_found.
5733 * p-valprint.c (pascal_val_print): Likewise.
5734 * parse.c (write_dollar_variable): Likewise. Remove uses of
5736 * parser-defs.h (struct symtoken): Turn the SYM field into a
5737 struct block_symbol.
5738 * printcmd.c (address_info): Deal with struct block_symbol from
5740 * python/py-frame.c (frapy_read_var): Likewise.
5741 * python/py-symbol.c (gdbpy_lookup_symbol,
5742 gdbpy_lookup_global_symbol): Likewise.
5743 * skip.c (skip_function_command): Likewise.
5744 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5745 block_symbol instead of a mere symbol.
5746 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5747 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5748 * solib.c (solib_global_lookup): Likewise.
5749 * solist.h (solib_global_lookup): Likewise.
5750 (struct target_so_ops): Update lookup_lib_global_symbol to
5751 return a struct block_symbol rather than a mere symbol.
5752 * source.c (select_source_symtab): Deal with struct block_symbol
5753 from lookup functions.
5754 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5756 * symfile.c (set_initial_language): Likewise.
5757 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5759 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5760 (struct symbol_cache_slot): Turn the FOUND field into a struct
5762 (block_found): Remove.
5763 (eq_symbol_entry): Update to deal with struct block_symbol in
5765 (symbol_cache_lookup): Return a struct block_symbol rather than
5767 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5768 appropriately the cache slots. Update callers.
5769 (symbol_cache_dump): Update cache slots handling to the type
5771 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5772 lookup_symbol_aux, lookup_local_symbol,
5773 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5774 lookup_symbol_in_objfile_symtabs,
5775 lookup_symbol_in_objfile_from_linkage_name,
5776 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5777 lookup_symbol_in_static_block, lookup_static_symbol,
5778 lookup_global_symbol):
5779 Return a struct block_symbol rather than a mere symbol. Deal
5780 with struct block_symbol from other lookup functions. Remove
5781 uses of block_found.
5782 (lookup_symbol_in_block): Remove uses of block_found.
5783 (struct global_sym_lookup_data): Turn the RESULT field into a
5784 struct block_symbol.
5785 (lookup_symbol_global_iterator_cb): Update references to the
5787 (search_symbols): Deal with struct block_symbol from lookup
5789 * symtab.h (struct block_symbol): New structure.
5790 (block_found): Remove.
5791 (lookup_symbol_in_language, lookup_symbol,
5792 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5793 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5794 lookup_global_symbol_from_objfile): Return a struct block_symbol
5795 rather than just a mere symbol. Update comments to remove
5796 mentions of block_found.
5797 * valops.c (find_function_in_inferior,
5798 value_struct_elt_for_reference, value_maybe_namespace_elt,
5799 value_of_this): Deal with struct block_symbol from lookup
5801 * value.c (value_static_field, value_fn_field): Likewise.
5803 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5805 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5808 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5809 Pedro Alves <palves@redhat.com>
5811 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5812 type or value instead of integer.
5813 (aarch64_linux_insert_watchpoint): Likewise.
5814 (aarch64_linux_remove_watchpoint): Likewise.
5815 * ada-lang.c (ada_op_print_tab): Likewise.
5816 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5817 (amd64_linux_syscall_record_common): Likewise.
5818 * arch-utils.c (target_byte_order_user): Likewise.
5819 (default_byte_order): Likewise.
5820 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5821 (arm_linux_get_hwbp_type): Likewise.
5822 (arm_linux_hw_watchpoint_initialize): Likewise.
5823 (arm_linux_insert_watchpoint): Likewise.
5824 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5825 (arm_linux_syscall_record): Likewise.
5826 * breakpoint.c (update_watchpoint): Likewise.
5827 (breakpoint_here_p): Likewise.
5828 (bpstat_print): Likewise.
5829 (enable_breakpoint_disp): Likewise.
5830 * c-lang.c (c_op_print_tab): Likewise.
5831 * cli/cli-decode.c (add_info_alias): Likewise.
5832 * d-lang.c (d_op_print_tab): Likewise.
5833 * eval.c (evaluate_subexp_standard): Likewise.
5834 * f-exp.y (dot_ops): Likewise.
5835 (f77_keywords): Likewise.
5836 * f-lang.c (f_op_print_tab): Likewise.
5837 * go-lang.c (go_op_print_tab): Likewise.
5838 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5839 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5840 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5841 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5842 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5843 (struct scm_from_stringn_data): Likewise.
5844 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5845 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5846 (ia64_linux_remove_watchpoint): Likewise.
5847 (ia64_linux_can_use_hw_breakpoint): Likewise.
5848 * infrun.c (print_stop_event): Likewise.
5849 * jv-lang.c (java_op_print_tab): Likewise.
5850 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5851 * linux-nat.h (struct lwp_info): Likewise.
5852 * linux-thread-db.c (enable_thread_event): Likewise.
5853 * m2-lang.c (m2_op_print_tab): Likewise.
5854 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5855 (mi_cmd_stack_list_variables): Likewise.
5856 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5857 * mi/mi-out.c (mi_table_begin): Likewise.
5858 (mi_table_header): Likewise.
5859 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5860 (mips_linux_insert_watchpoint): Likewise.
5861 (mips_linux_remove_watchpoint): Likewise.
5862 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5863 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5864 (mips_linux_watch_type_to_irw): Likewise.
5865 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5866 (procfs_insert_hw_watchpoint): Likewise.
5867 (procfs_remove_hw_watchpoint): Likewise.
5868 (procfs_hw_watchpoint): Likewise.
5869 (procfs_can_use_hw_breakpoint): Likewise.
5870 (procfs_remove_hw_watchpoint): Likewise.
5871 (procfs_insert_hw_watchpoint): Likewise.
5872 * p-lang.c (pascal_op_print_tab): Likewise.
5873 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5874 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5875 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5876 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5877 (procfs_insert_watchpoint): Likewise.
5878 (procfs_remove_watchpoint): Likewise.
5879 * psymtab.c (recursively_search_psymtabs): Likewise.
5880 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5881 (m32r_insert_watchpoint): Likewise.
5882 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5883 (mips_insert_watchpoint): Likewise.
5884 (mips_remove_watchpoint): Likewise.
5885 * remote.c (watchpoint_to_Z_packet): Likewise.
5886 (remote_insert_watchpoint): Likewise.
5887 (remote_remove_watchpoint): Likewise.
5888 (remote_check_watch_resources): Likewise.
5889 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5890 (s390_remove_watchpoint): Likewise.
5891 (s390_can_use_hw_breakpoint): Likewise.
5892 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5893 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5894 * target.h (struct target_ops): Likewise.
5895 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5896 * ui-out.c (struct ui_out_hdr): Likewise.
5897 (append_header_to_list): Likewise.
5898 (get_next_header): Likewise.
5899 (verify_field): Likewise.
5900 (ui_out_begin): Likewise.
5901 (ui_out_field_int): Likewise.
5902 (ui_out_field_fmt_int): Likewise.
5903 (ui_out_field_skip): Likewise.
5904 (ui_out_field_string): Likewise.
5905 (ui_out_field_fmt): Likewise.
5906 * varobj.c (new_variable): Likewise.
5907 * x86-nat.c (x86_insert_watchpoint): Likewise.
5908 (x86_remove_watchpoint): Likewise.
5909 (x86_can_use_hw_breakpoint): Likewise.
5910 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5911 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5912 previously anonymous enumeration type..
5913 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5915 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5916 (target_debug_print_enum_bptype): New.
5917 * target-delegates.c: Regenerate.
5919 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5921 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5922 already says and disallow non-stack memory writes in the prologue.
5924 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5926 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5927 reflect how current GCC emits stack overflow checks. Match
5928 both trap and break instructions for backward compatbility.
5929 Disallow other trap and break instructions in the prologue.
5931 2015-07-30 Pedro Alves <palves@redhat.com>
5934 * linux-nat.c (wait_lwp): Report to the core when thread group
5937 2015-07-30 Pedro Alves <palves@redhat.com>
5938 Simon Marchi <simon.marchi@ericsson.com>
5941 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5942 mark the new thread as resumed. Remove STOPPING parameter.
5943 (wait_lwp): Adjust call to linux_handle_extended_wait.
5944 (linux_nat_filter_event): Adjust call to
5945 linux_handle_extended_wait.
5946 (resume_stopped_resumed_lwps): Add debug output.
5948 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5950 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5952 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5953 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5954 gdbarch_fast_tracepoint_valid_at.
5955 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5956 * gdbarch.h: Regenerate.
5957 * gdbarch.c: Regenerate.
5958 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5959 argument. Do not set it.
5960 * remote.c (remote_download_tracepoint): Adjust call to
5961 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5962 the instruction length.
5964 2015-07-30 Yao Qi <yao.qi@linaro.org>
5966 * arm-tdep.h (enum gdb_regnum): Move it to ...
5967 * arch/arm.h: ... here. New file.
5968 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5970 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5972 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5973 Change its type to int *.
5974 (decode_br): Rename link argument to is_blr. Change its type to
5976 (decode_cb): Rename op argument to is_cbnz. Change its type to
5978 (decode_tb): Rename op argument to is_tbnz. Change its type to
5979 int *. Set is_tbnz to either 1 or 0.
5980 (aarch64_analyze_prologue): Change type of is_link to int. Add
5981 new variables is_cbnz and is_tbnz. Adjust call to
5982 aarch64_decode_cb and aarch64_decode_tb.
5984 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5986 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5988 (mips_linux_new_thread): Likewise.
5989 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5991 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5993 * top.c: Include "tui/tui.h".
5994 (undo_terminal_modifications_before_exit): New static function.
5995 (quit_force): Use it.
5997 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5999 * target.c (terminal_state): Initialize to terminal_is_ours.
6001 2015-07-29 Yao Qi <yao.qi@linaro.org>
6004 * dcache.c (dcache_read_memory_partial): Call
6005 raw_memory_xfer_partial.
6006 * target.c (raw_memory_xfer_partial): Make it non-static.
6007 * target.h (raw_memory_xfer_partial): Declare.
6009 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6011 * c-valprint.c (c_val_print_array): Consider addressable memory
6013 (c_val_print_ptr): Likewise.
6014 (c_val_print_int): Likewise.
6015 * findvar.c (read_frame_register_value): Likewise.
6016 * valarith.c (find_size_for_pointer_math): Likewise.
6017 (value_ptrdiff): Likewise.
6018 (value_subscripted_rvalue): Likewise.
6019 * valops.c (read_value_memory): Likewise (and rename variables).
6020 (value_assign): Likewise.
6021 (value_repeat): Likewise.
6022 (value_array): Likewise.
6023 (value_slice): Likewise.
6024 * valprint.c (generic_val_print_ptr): Likewise.
6025 (generic_val_print_enum): Likewise.
6026 (generic_val_print_bool): Likewise.
6027 (generic_val_print_int): Likewise.
6028 (generic_val_print_char): Likewise.
6029 (generic_val_print_float): Likewise.
6030 (generic_val_print_decfloat): Likewise.
6031 (generic_val_print_complex): Likewise.
6032 (val_print_scalar_formatted): Likewise.
6033 (val_print_array_elements): Likewise.
6034 * value.c (set_value_parent): Likewise.
6035 (value_contents_copy_raw): Likewise.
6036 (set_internalvar_component): Likewise.
6037 (value_primitive_field): Likewise.
6038 (value_fetch_lazy): Likewise.
6039 * value.h (read_value_memory): Update comment.
6041 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6043 * value.c (get_value_arch): New function.
6044 * value.h (get_value_arch): New declaration.
6046 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6048 * value.c (struct value): Update comments.
6050 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6052 * gdbtypes.c (type_length_units): New function.
6053 * gdbtypes.h (type_length_units): New declaration.
6054 (struct type) <length>: Update comment.
6056 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6058 * valprint.c (generic_val_print): Factor out complex
6059 printing code to ...
6060 (generic_val_print_complex): ... this new function.
6062 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6064 * valprint.c (generic_val_print): Factor out decfloat
6065 printing code to ...
6066 (generic_val_print_decfloat): ... this new function.
6068 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6070 * valprint.c (generic_val_print): Factor out float
6071 printing code to ...
6072 (generic_val_print_float): ... this new function.
6074 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6076 * valprint.c (generic_val_print): Factor out char
6077 printing code to ...
6078 (generic_val_print_char): ... this new function.
6080 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6082 * valprint.c (generic_val_print): Factor out integer
6083 printing code to ...
6084 (generic_val_print_int): ... this new function.
6086 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6088 * valprint.c (generic_val_print): Factor out bool
6089 printing code to ...
6090 (generic_val_print_bool): ... this new function.
6092 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6094 * valprint.c (generic_val_print): Factor out function/method
6095 printing code to ...
6096 (generic_val_print_func): ... this new function.
6098 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6100 * valprint.c (generic_val_print): Factor out flags
6101 printing code to ...
6102 (generic_val_print_flags): ... this new function.
6104 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6106 * valprint.c (generic_val_print): Factor out enum
6107 printing code to ...
6108 (generic_val_print_enum): ... this new function.
6110 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6112 * valprint.c (generic_val_print): Factor out reference
6113 printing code to ...
6114 (generic_val_print_ref): ... this new function.
6116 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6118 * valprint.c (generic_val_print): Factor out memberptr
6119 printing code to ...
6120 (generic_val_print_memberptr): ... this new function.
6122 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6124 * valprint.c (generic_val_print): Factor out pointer
6125 printing code to ...
6126 (generic_val_print_ptr): ... this new function.
6128 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6130 * valprint.c (generic_val_print): Factor out array
6131 printing code to ...
6132 (generic_val_print_array): ... this new function.
6134 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6136 * valprint.c (generic_val_print): Factor out
6137 print_unpacked_pointer code to ...
6138 (print_unpacked_pointer): ... this new function.
6140 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6142 * event-top.c (handle_sigterm): Don't inspect
6143 target_can_async_p. Always set the quit flag and always mark
6144 the async signal handler.
6146 2015-07-27 Yao Qi <yao.qi@linaro.org>
6148 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6150 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6152 * remote.c (read_ptid): Return null_ptid when no thread id
6154 (remote_current_thread): Add log warning for malformed
6156 (remote_start_remote): Add log warning when current thread
6159 2015-07-24 Pedro Alves <palves@redhat.com>
6161 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6162 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6163 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6165 2015-07-24 Pedro Alves <palves@redhat.com>
6168 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6169 is resumed, and extend the debug log.
6171 2015-07-24 Pedro Alves <palves@redhat.com>
6173 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6175 2015-07-24 Pedro Alves <palves@redhat.com>
6177 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6179 * alpha-linux-nat.c: Likewise.
6180 * amd64-linux-nat.c: Likewise.
6181 * arm-linux-nat.c: Likewise.
6182 * hppa-linux-nat.c: Likewise.
6183 * i386-linux-nat.c: Likewise.
6184 * ia64-linux-nat.c: Likewise.
6185 * linux-fork.c: Likewise.
6186 * linux-nat.c: Likewise.
6187 * m32r-linux-nat.c: Likewise.
6188 * m68klinux-nat.c: Likewise.
6189 * mips-linux-nat.c: Likewise.
6190 * nat/linux-btrace.c: Likewise.
6191 * nat/linux-ptrace.c: Likewise.
6192 * nat/linux-ptrace.h
6193 * nat/mips-linux-watch.c: Likewise.
6194 * nat/x86-linux-dregs.c: Likewise.
6195 * ppc-linux-nat.c: Likewise.
6196 * s390-linux-nat.c: Likewise.
6197 * spu-linux-nat.c: Likewise.
6198 * tilegx-linux-nat.c: Likewise.
6199 * x86-linux-nat.c: Likewise.
6200 * xtensa-linux-nat.c: Likewise.
6202 2015-07-24 Pedro Alves <palves@redhat.com>
6204 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6205 __ptrace_request as first parameter type instead of int.
6206 (PTRACE_TYPE_ARG1): Define.
6207 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6208 that casts first argument to PTRACE_TYPE_ARG1.
6209 * config.in: Regenerate.
6210 * configure: Regenerate.
6212 2015-07-24 Pedro Alves <palves@redhat.com>
6214 * gdb_ptrace.h: Move ...
6215 * nat/gdb_ptrace.h: ... here.
6216 * inf-ptrace.c: Adjust.
6218 2015-07-24 Pedro Alves <palves@redhat.com>
6220 * acinclude.m4: Include ptrace.m4.
6221 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6222 * ptrace.m4: ... to this new file.
6224 2015-07-23 Doug Evans <dje@google.com>
6226 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6227 (load_cu): Handle dummy CUs.
6228 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6229 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6231 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6233 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6234 documentation to say that it returns a list rather than
6236 (linetable_object_methods): Update the docstring of the
6237 "source_line" entry.
6239 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6241 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6242 type to the recursive call instead of the original (maybe
6243 TYPE_CODE_TYPEDEF) type.
6245 2015-07-23 Yao Qi <yao.qi@linaro.org>
6247 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6248 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6249 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6251 2015-07-21 Yao Qi <yao.qi@linaro.org>
6253 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6254 Move it to nat/aarch64-linux-hw-point.c.
6255 (aarch64_linux_child_post_startup_inferior): Update.
6256 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6258 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6261 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6263 * common/btrace-common.c (btrace_data_append): Change case label.
6265 2015-07-20 Yao Qi <yao.qi@linaro.org>
6267 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6269 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6270 "unsigned long long".
6272 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6274 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6275 to be set for SEC_ALLOC sections too.
6277 2015-07-17 Yao Qi <yao.qi@linaro.org>
6279 * Makefile.in (HFILES_NO_SRCDIR): Add
6280 nat/aarch64-linux-hw-point.h.
6281 (aarch64-linux-hw-point.o): New rule.
6282 * nat/aarch64-linux-hw-point.h: New file.
6283 * nat/aarch64-linux-hw-point.c: New file.
6284 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6285 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6286 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6287 (AARCH64_HWP_ALIGNMENT): Likewise.
6288 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6289 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6290 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6291 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6292 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6293 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6294 (struct aarch64_debug_reg_state): Likewise.
6295 (struct arch_lwp_info): Likewise.
6296 (aarch64_linux_set_debug_regs): Likewise.
6297 (aarch64_notify_debug_reg_change): Remove static.
6298 (aarch64_align_watchpoint): Likewise.
6299 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6300 (aarch64_watchpoint_length): Likewise.
6301 (aarch64_point_encode_ctrl_reg): Likewise
6302 (aarch64_point_is_aligned): Likewise.
6303 (aarch64_dr_state_insert_one_point): Likewise.
6304 (aarch64_dr_state_remove_one_point): Likewise.
6305 (aarch64_handle_breakpoint): Likewise.
6306 (aarch64_handle_aligned_watchpoint): Likewise.
6307 (aarch64_handle_unaligned_watchpoint): Likewise.
6308 (aarch64_handle_watchpoint): Likewise.
6309 * config/aarch64/linux.mh (NAT_FILE): Add
6310 aarch64-linux-hw-point.o.
6312 2015-07-17 Yao Qi <yao.qi@linaro.org>
6314 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6315 state and don't call aarch64_get_debug_reg_state. All callers
6317 (aarch64_linux_insert_hw_breakpoint): Call
6318 aarch64_get_debug_reg_state earlier.
6319 (aarch64_linux_remove_hw_breakpoint): Likewise.
6320 (aarch64_handle_aligned_watchpoint): Add argument state and
6321 don't call aarch64_get_debug_reg_state. All callers update.
6322 (aarch64_handle_unaligned_watchpoint): Likewise.
6323 (aarch64_handle_watchpoint): Add argument state.
6324 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6326 (aarch64_linux_remove_watchpoint): Likewise.
6328 2015-07-17 Yao Qi <yao.qi@linaro.org>
6330 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6332 (aarch64_handle_unaligned_watchpoint): Likewise.
6334 2015-07-17 Yao Qi <yao.qi@linaro.org>
6336 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6337 argument type's type to 'enum target_hw_bp_type'.
6338 (aarch64_dr_state_remove_one_point): Likewise.
6339 (aarch64_handle_breakpoint): Likewise.
6340 (aarch64_linux_insert_hw_breakpoint): Likewise.
6341 (aarch64_linux_remove_hw_breakpoint): Likewise.
6342 (aarch64_handle_aligned_watchpoint): Likewise.
6344 2015-07-17 Yao Qi <yao.qi@linaro.org>
6346 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6347 ptid_get_pid instead of get_thread_id.
6349 2015-07-17 Yao Qi <yao.qi@linaro.org>
6351 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6352 (add_current_inferior_and_thread): Don't initialise ptid.
6354 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6356 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6357 unavailable if invalid.
6359 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6361 Revert the previous 6 commits:
6362 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6363 Move gdb_regex* to common/
6364 Prepare linux_find_memory_regions_full & co. for move
6365 Move linux_find_memory_regions_full & co.
6366 gdbserver build-id attribute generator
6367 Validate symbol file using build-id
6369 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6370 Jan Kratochvil <jan.kratochvil@redhat.com>
6372 Validate symbol file using build-id.
6373 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6374 and 'show validate-build-id'. Add build-id attribute.
6375 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6376 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6377 * solib-frv.c (_initialize_frv_solib): Ditto.
6378 * solib-spu.c (set_spu_solib_ops): Ditto.
6379 * solib-svr4.c: Include rsp-low.h.
6380 (NOTE_GNU_BUILD_ID_NAME): New define.
6381 (svr4_validate): New function.
6382 (svr4_copy_library_list): Duplicate field build_id.
6383 (library_list_start_library): Parse 'build-id' attribute.
6384 (svr4_library_attributes): Add 'build-id' attribute.
6385 (_initialize_svr4_solib): Assign validate value.
6386 * solib-target.c (solib.h): Include.
6387 (_initialize_solib_target): Assign validate value.
6388 * solib.c (validate_build_id, show_validate_build_id): New.
6389 (solib_map_sections): Use ops->validate.
6390 (clear_so): Free build_id.
6391 (default_solib_validate): New function.
6392 (_initialize_solib): Add "validate-build-id".
6393 * solib.h (default_solib_validate): New declaration.
6394 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6395 (target_so_ops): New field 'validate'.
6397 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6398 Jan Kratochvil <jan.kratochvil@redhat.com>
6400 gdbserver build-id attribute generator.
6401 * features/library-list-svr4.dtd (library-list-svr4): New
6402 'build-id' attribute.
6404 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6405 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 Move linux_find_memory_regions_full & co.
6408 * linux-tdep.c (nat/linux-maps.h): Include.
6409 (gdb_regex.h): Remove the include.
6410 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6411 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6412 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6413 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6414 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6415 and target/target.h.
6416 (struct smaps_vmflags, read_mapping, decode_vmflags)
6417 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6418 (linux_find_memory_regions_full): Move from linux-tdep.c.
6419 * nat/linux-maps.h (read_mapping): New declaration.
6420 (linux_find_memory_region_ftype, enum filterflags): Moved from
6422 (linux_find_memory_regions_full): New declaration.
6423 * target.c (target/target-utils.h): Include.
6424 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6425 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6426 definitions to target/target-utils.c.
6427 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6428 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6430 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6431 (read_alloc): New declaration.
6432 (read_stralloc_func_ftype): New typedef.
6433 (read_stralloc): New declaration.
6434 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6436 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6437 Jan Kratochvil <jan.kratochvil@redhat.com>
6439 Prepare linux_find_memory_regions_full & co. for move.
6440 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6441 (linux_find_memory_regions_full): Change signature and prepare
6442 for moving to linux-maps.
6443 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6444 (linux_find_memory_regions_thunk): New.
6445 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6446 (linux_find_memory_regions_gdb): New.
6447 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6448 (linux_make_mappings_corefile_notes): Use
6449 linux_find_memory_regions_gdb.
6450 * target.c (read_alloc_pread_ftype): New typedef.
6451 (target_fileio_read_alloc_1_pread): New function.
6452 (read_alloc): Refactor from target_fileio_read_alloc_1.
6453 (read_stralloc_func_ftype): New typedef.
6454 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6455 (read_stralloc): Refactored from target_fileio_read_stralloc.
6456 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6458 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6460 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6462 (COMMON_OBS): Add gdb_regex.o.
6464 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6465 --without-included-regex and USE_INCLUDED_REGEX.
6466 * common/gdb_regex.c: New file from utils.c functions.
6467 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6468 file wrapping define name.
6469 * configure: Rebuilt.
6470 * configure.ac (gdb_use_included_regex, --without-included-regex)
6471 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6472 * gdb_regex.h: Move it to common/gdb_regex.h.
6473 * utils.c: Remove include gdb_regex.h.
6474 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6475 (compile_rx_or_error): Move them to common/gdb_regex.c.
6477 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6478 Jan Kratochvil <jan.kratochvil@redhat.com>
6480 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6481 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6482 common/target-utils.h.
6483 (COMMON_OBS): Add target-utils.o.
6484 (linux-maps.o, target-utils.o): New.
6485 * target/target-utils.c: New file.
6486 * target/target-utils.h: New file.
6487 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6488 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6489 * nat/linux-maps.c: New file.
6490 * nat/linux-maps.h: New file.
6492 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6493 Pedro Alves <palves@redhat.com>
6495 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6496 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6497 (perf_event_read_bts): Change the type of SIZE and READ.
6498 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6499 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6500 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6502 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6503 buffer size to UINT_MAX.
6504 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6506 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6507 <last_head>: Change type.
6508 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6509 * common/btrace-common.c (btrace_data_append): Change the type of
6511 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6514 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6516 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6517 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6519 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6520 (ada_array_length): Likewise.
6521 (find_parallel_type_by_descriptive_type): Likewise.
6522 (ada_check_typedef): Likewise.
6523 * arm-tdep.c (arm_return_in_memory): Likewise.
6524 * ax-gdb.c (gen_trace_static_fields): Likewise.
6525 (gen_struct_ref_recursive): Likewise.
6526 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6527 (variable: block COLONCOLON name): Likewise.
6528 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6529 * c-lang.c (classify_type): Likewise.
6530 * c-typeprint.c (c_print_type): Likewise.
6531 (c_print_typedef): Likewise.
6532 (c_type_print_base): Likewise.
6533 * c-valprint.c (c_val_print): Likewise.
6534 * compile/compile-c-types.c (convert_type): Likewise.
6535 * compile/compile-object-load.c (get_out_value_type): Likewise.
6536 * completer.c (add_struct_fields): Likewise.
6537 (expression_completer): Likewise.
6538 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6539 (cp_lookup_nested_symbol_1): Likewise.
6540 (cp_lookup_nested_symbol): Likewise.
6541 * cp-valprint.c (cp_print_value_fields): Likewise.
6542 (cp_print_static_field): Likewise.
6543 * d-valprint.c (d_val_print): Likewise.
6544 * eval.c (evaluate_subexp_standard): Likewise.
6545 (evaluate_subexp_for_sizeof): Likewise.
6546 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6547 * f-typeprint.c (f_type_print_base): Likewise.
6548 * f-valprint.c (f_val_print): Likewise.
6549 * gdbtypes.c (get_discrete_bounds): Likewise.
6550 (create_array_type_with_stride): Likewise.
6551 (type_name_no_tag_or_error): Likewise.
6552 (lookup_struct_elt_type): Likewise.
6553 (get_unsigned_type_max): Likewise.
6554 (internal_type_vptr_fieldno): Likewise.
6555 (set_type_vptr_fieldno): Likewise.
6556 (internal_type_vptr_basetype): Likewise.
6557 (set_type_vptr_basetype): Likewise.
6558 (get_vptr_fieldno): Likewise.
6559 (is_integral_type): Likewise.
6560 (is_scalar_type): Likewise.
6561 (is_scalar_type_recursive): Likewise.
6562 (distance_to_ancestor): Likewise.
6563 (is_unique_ancestor_worker): Likewise.
6564 (check_types_equal): Likewise.
6565 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6567 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6569 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6570 also test for language_d.
6571 (dwarf2_compute_name): Likewise.
6572 (read_func_scope): Likewise.
6573 (read_structure_type): Likewise.
6574 (new_symbol_full): Likewise.
6575 (determine_prefix): Likewise.
6576 (read_import_statement): Use dot as the separator for language_d.
6577 (typename_concat): Likewise, but don't prefix the D main function.
6579 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6581 * nat/linux-namespaces.c (setns): Rename from this ...
6582 (do_setns): ... to this. Support calling setns if it exists.
6583 (mnsh_handle_setns): Call do_setns.
6585 2015-07-13 Yao Qi <yao.qi@linaro.org>
6587 * exec.c (exec_file_attach): Add period at the end of error
6590 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6592 * tui/tui-win.c (window_name_completer): New function.
6593 (focus_completer): Call window_name_completer. All old content
6594 moved into window_name_completer.
6595 (winheight_completer): New function.
6596 (_initialize_tui_win): Rename variable. Add completer to
6597 winheight command. Update doc string on winheight.
6599 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6601 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6602 all nios2 mach variants.
6604 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6606 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6607 of target_read_memory.
6609 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6611 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6613 (parse_scrolling_args): Likewise.
6615 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6617 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6618 names in this function.
6620 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6622 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6623 (CMD_NAME): Likewise.
6624 (DATA_NAME): Likewise.
6625 (DISASSEM_NAME): Likewise.
6626 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6627 (tui_set_win_height): Likewise.
6628 (parse_scrolling_args): Likewise.
6630 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6632 * record-btrace.c (record_btrace_goto_begin)
6633 (record_btrace_goto_end, record_btrace_goto): Move call to
6634 print_stack_frame ...
6635 (record_btrace_set_replay): ... here. Set stop_pc.
6636 * record-full.c (record_full_goto_entry): Set stop_pc.
6638 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6640 * NEWS: Mention support for tracepoints on aarch64-linux.
6642 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6644 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6646 (the_low_target): Install it.
6648 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6650 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6651 * gdb.trace/collection.exp: Likewise.
6652 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6653 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6654 * gdb.trace/report.exp: Likewise.
6655 * gdb.trace/trace-break.exp: Likewise.
6656 * gdb.trace/unavailable.exp: Likewise.
6657 * gdb.trace/while-dyn.exp: Likewise.
6659 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6661 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6662 (aarch64_gen_return_address): New function.
6663 (aarch64_gdbarch_init): Hook it.
6665 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6667 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6668 swallow NOT_AVAILABLE_ERROR.
6669 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6670 available_p is not set.
6671 (aarch64_stub_frame_unwind_stop_reason): New function.
6672 (aarch64_stub_unwind): Install it.
6674 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6676 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6678 (aarch64_make_prologue_cache_1): New function, factored out from
6679 aarch64_make_prologue_cache. Do not allocate cache. Set
6681 (aarch64_make_prologue_cache): Reimplement wrapping
6682 aarch64_make_prologue_cache_1, and swallowing
6683 NOT_AVAILABLE_ERROR.
6684 (aarch64_prologue_frame_unwind_stop_reason): New function.
6685 Return UNWIND_UNAVAILABLE if available_p is not set.
6686 (aarch64_prologue_unwind): Install it.
6687 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6688 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6689 frame_id_build_unavailable_stack if available_p is not set.
6691 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6693 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6695 (aarch64_scan_prologue): Set prev_pc.
6696 (aarch64_make_prologue_cache): Set func.
6697 (aarch64_make_stub_cache): Set prev_pc.
6698 (aarch64_prologue_this_id): Remove local variables id, pc and
6699 func. Read prev_pc and func from cache.
6700 (aarch64_stub_this_id): Read prev_pc from cache.
6702 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6704 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6705 argument this_cache. Remove unused local variables reg and
6706 unwound_fp. Return early if this_cache is already set. Set
6708 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6710 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6712 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6713 New argument this_cache. Return early if this_cache is already
6714 set. Set this_cache.
6715 (aarch64_prologue_this_id): Update call to
6716 aarch64_make_prologue_cache.
6717 (aarch64_prologue_prev_register): Likewise.
6718 (aarch64_normal_frame_base): Likewise.
6720 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6722 * c-valprint.c (c_val_print): Factor out memberptr printing code
6723 from c_val_print to ...
6724 (c_val_print_memberptr): ... this new function.
6726 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6728 * c-valprint.c (c_val_print): Factor out int printing code to ...
6729 (c_val_print_int): ... this new function.
6731 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6733 * c-valprint.c (c_val_print): Factor out struct and union
6734 printing code to ...
6735 (c_val_print_struct): ... this new function ...
6736 (c_val_print_union): ... and this new function.
6738 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6740 * c-valprint.c (c_val_print): Factor out pointer printing code
6742 (c_val_print_ptr): ... this new function.
6744 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6746 * c-valprint.c (c_valprint): Factor our array printing code from
6748 (c_val_print_array): ... this new function.
6750 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6752 * c-valprint.c (c_val_print): Factor out pointer printing code
6754 (print_unpacked_pointer): ... this new function.
6756 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6758 * c-valprint.c (c_val_print): Remove an assignment to i and move
6761 2015-07-09 Yao Qi <yao.qi@linaro.org>
6763 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6764 argument ptid. Update comments. Caller update.
6766 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6768 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6771 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6773 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6775 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6777 * progspace.c (delete_program_space): Add missing spaces.
6779 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6781 * inferior.c (delete_inferior_1): Rename to ...
6782 (delete_inferior): ..., remove 'silent' parameter, delete
6783 program space when unused and remove call to prune_program_spaces.
6784 Remove the old, unused, delete_inferior.
6785 (delete_inferior_silent): Remove.
6786 (prune_inferiors): Change call from delete_inferior_1 to
6787 delete_inferior and remove 'silent' parameter. Remove call to
6788 prune_program_spaces.
6789 (remove_inferior_command): Idem.
6790 * inferior.h (delete_inferior_1): Rename to...
6791 (delete_inferior): ..., remove 'silent' parameter and remove the
6792 original delete_inferior.
6793 (delete_inferior_silent): Remove.
6794 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6795 delete_inferior_1 to delete_inferior and remove 'silent'
6797 * progspace.c (prune_program_spaces): Remove.
6798 (pspace_empty_p): Rename to...
6799 (program_space_empty_p): ... and make non-static.
6800 (delete_program_space): New.
6801 * progspace.h (prune_program_spaces): Remove declaration.
6802 (program_space_empty_p): New declaration.
6803 (delete_program_space): New declaration.
6804 * monitor.c (monitor_close): Replace call to
6805 delete_thread_silent and delete_inferior_silent with
6806 discard_all_inferiors.
6808 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6810 * defs.h (deprecated_register_changed_hook): Remove prototype.
6811 * interps.c (clear_iterpreter_hooks): Remove reference to
6812 deprecated_register_changed_hook.
6813 * top.c (deprecated_register_changed_hook): Remove prototype.
6814 * valops.c (value_assign): Remove reference to
6815 deprecated_register_changed_hook.
6816 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6817 Add comment documenting the function.
6818 (tui_register_changed_observer): Define.
6819 (tui_install_hooks): Remove reference to
6820 deprecated_register_changed_hook. Set
6821 tui_register_changed_observer.
6822 (tui_remove_hooks): Remove reference to
6823 deprecated_register_changed_hook. Unset
6824 tui_register_changed_observer.
6826 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6829 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6831 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6834 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6836 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6838 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6840 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6842 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6843 Use safe_strerror() instead of strerror().
6845 2015-07-07 Yao Qi <yao.qi@linaro.org>
6847 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6848 * features/arm-with-m-fpa-layout.c: Regenerated.
6849 * features/arm-with-m-vfp-d16.xml: Likewise.
6850 * features/arm-with-m-vfp-d16.c: Regenerated.
6851 * features/arm-with-m.xml: Likewise.
6852 * features/arm-with-m.c: Regenerated.
6853 * features/arm-with-neon.xml: Likewise.
6854 * features/arm-with-neon.c: Regenerated.
6855 * features/arm-with-vfpv2.xml: Likewise.
6856 * features/arm-with-vfpv2.c: Regenerated.
6857 * features/arm-with-vfpv3.xml: Likewise.
6858 * features/arm-with-vfpv3.c: Regenerated.
6860 2015-07-07 Yao Qi <yao.qi@linaro.org>
6862 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6864 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6866 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6867 if target is 32-bit.
6868 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6869 if target is 32-bit.
6870 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6871 if target is 32-bit.
6872 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6873 if target is 32-bit.
6874 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6875 (aarch64_linux_read_description): Return the right target
6877 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6878 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6879 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6882 2015-07-07 Yao Qi <yao.qi@linaro.org>
6884 * aarch32-linux-nat.c: New file.
6885 * aarch32-linux-nat.h: New file.
6886 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6887 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6888 aarch32_gp_regcache_supply.
6889 (store_regs): Move code to aarch32-linux-nat.c. Call
6890 aarch32_gp_regcache_collect.
6891 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6892 aarch32_vfp_regcache_supply.
6893 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6894 aarch32_vfp_regcache_collect.
6895 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6897 2015-07-07 Yao Qi <yao.qi@linaro.org>
6899 * arm-linux-nat.c (store_fpregister): Remove.
6900 (store_register): Likewise.
6901 (fetch_fpregister): Likewise.
6902 (fetch_register): Likewise.
6903 (arm_linux_store_inferior_registers): Call store_regs and
6904 store_fpregs instead.
6905 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6908 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6910 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6913 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6915 * NEWS: Create a new section for the next release branch.
6916 Rename the section of the current branch, now that it has
6919 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6921 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6922 * version.in: Bump version to 7.10.50.DATE-cvs.
6924 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6926 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6927 breakpoints in a special way.
6928 (remove_breakpoint): Likewise.
6929 (mark_breakpoints_out): Likewise.
6931 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6933 * doc/gdb.texinfo (TUI): Add comma after @xref.
6935 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6937 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6938 instead of casting the structure type.
6940 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6942 * valops.c (search_struct_field): Remove OFFSET parameter.
6943 (value_cast_structs): Adjust calls to search_struct_field.
6944 (value_struct_elt): Same.
6945 (find_overload_match): Same.
6947 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6949 * value.c (value_fetch_lazy): Update comment, change return
6951 * value.h (value_fetch_lazy): Change return value to void.
6953 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6955 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6956 (tui_win_name): Make parameter and result const.
6957 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6959 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6961 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6962 use printf_unfiltered.
6963 (set_mpx_cmd): Add missing trailing space to command string
6965 (_initialize_i386_tdep): Give the "mpx" prefix command its
6968 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6970 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6971 (enum rx_frame_type): New.
6972 (struct rx_prologue): Add new field `frame_type'.
6973 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6974 parameter in the prologue struct. Add code for recording
6975 locations of PC and PSW for fast interrupt and exception frames.
6976 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6977 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6978 (rx_frame_type): New function.
6979 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6980 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6982 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6983 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6984 RX_FRAME_TYPE_FAST_INTERRUPT.
6985 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6986 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6987 (rx_frame_unwind): Use rx_frame_sniffer instead of
6988 default_frame_sniffer.
6989 (rx_frame_unwind): New unwinder.
6990 (rx_gdbarch_init): Register new unwinder.
6992 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6994 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6995 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6996 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6998 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7000 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7002 Fix GCC false warning.
7003 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7005 2015-07-02 Yao Qi <yao.qi@linaro.org>
7007 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7008 typo in the debugging message.
7010 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7012 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7013 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7014 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7015 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7016 (btrace_maint_clear): New.
7017 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7018 (pt_print_packet, btrace_maint_decode_pt)
7019 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7020 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7021 (maint_btrace_packet_history_cmd)
7022 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7023 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7024 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7025 (maint_info_btrace_cmd, _initialize_btrace): New.
7026 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7027 (btrace_maint_packet_history, btrace_maint_info): New.
7028 (btrace_thread_info) <maint>: New.
7029 * NEWS: Announce it.
7031 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7033 * btrace.c (btrace_fetch): Append the new trace data.
7034 (btrace_clear): Clear the stored trace data.
7035 * btrace.h (btrace_thread_info) <data>: New.
7036 * common/btrace-common.h (btrace_data_clear)
7037 (btrace_data_append): New.
7038 * common/btrace-common.c (btrace_data_clear)
7039 (btrace_data_append): New.
7041 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7043 * nat/linux-btrace.c (linux_enable_bts): Check for
7044 PERF_ATTR_SIZE_VER5.
7045 Check for data_offset and data_size fields. Use them.
7047 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7049 * NEWS: Announce new commands "record btrace pt" and "record pt".
7050 Announce new options "set|show record btrace pt buffer-size".
7051 * btrace.c: Include "rsp-low.h".
7052 Include "inttypes.h".
7053 (btrace_add_pc): Add forward declaration.
7054 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7055 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7056 (btrace_compute_ftrace_pt): New.
7057 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7058 (check_xml_btrace_version): Update version check.
7059 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7060 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7061 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7062 (btrace_pt_children): New.
7063 (btrace_children): Add support for "pt".
7064 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7065 (btrace_conf_children): Add support for "pt".
7066 * btrace.h: Include "intel-pt.h".
7067 (btrace_pt_error): New.
7068 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7069 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7070 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7071 (struct btrace_config_pt): New.
7072 (struct btrace_config)<pt>: New.
7073 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7074 (struct btrace_data)<pt>: New.
7075 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7077 * features/btrace.dtd (btrace)<pt>: New.
7078 (pt, pt-config, cpu): New.
7079 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7080 (perf_event_pt_event_type, kernel_supports_pt)
7081 (linux_supports_pt): New.
7082 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7083 (linux_enable_bts): Free tinfo on error.
7084 (linux_enable_pt): New.
7085 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7086 (linux_disable_pt): New.
7087 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7088 (linux_fill_btrace_pt_config, linux_read_pt): New.
7089 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7090 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7091 (struct btrace_target_info)<pt>: New.
7092 * record-btrace.c (set_record_btrace_pt_cmdlist)
7093 (show_record_btrace_pt_cmdlist): New.
7094 (record_btrace_print_pt_conf): New.
7095 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7096 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7097 (cmd_record_btrace_pt_start): New.
7098 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7099 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7100 (_initialize_record_btrace): Add new commands.
7101 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7102 (remote_protocol_features): Add "Qbtrace:pt".
7103 Add "Qbtrace-conf:pt:size".
7104 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7105 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7106 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7107 (_initialize_remote): Add new commands.
7109 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7111 * configure.ac: check for libipt
7112 * configure: Regenerate.
7113 * config.in: Regenerate.
7114 * Makefile.in (LIBIPT): New.
7115 (CLIBS): Add $LIBIPT.
7116 * NEWS: document new configure options
7118 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7120 * compile/compile-object-load.c (compile_object_load): Replace debug
7121 message "lookup undefined ELF symbol" by 3 more specific messages.
7123 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7125 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7126 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7127 (rl78_gdbarch_init): Initialize rl78_psw_type.
7129 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7131 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7132 Update commentary. Always refresh the registers when frame
7133 information has changed.
7134 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7135 Change return type to int. Return 1 if frame information has
7136 changed, 0 otherwise.
7137 (tui_before_prompt): Update commentary.
7138 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7141 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7144 * frame.c (select_frame): Remove reference to
7145 deprecated_selected_frame_level_changed_hook.
7146 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7148 * stack.c (deprecated_selected_frame_level_changed_hook):
7150 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7152 (tui_refresh_frame_and_register_information): ... this. Bail
7153 out if there is no stack. Don't update register information
7154 unless registers_too_p is true.
7155 (tui_print_frame_info_listing_hook): Rename to ...
7156 (tui_dummy_print_frame_info_listing_hook): ... this.
7157 (tui_before_prompt): New function.
7158 (tui_normal_stop): New function.
7159 (tui_before_prompt_observer): New observer.
7160 (tui_normal_stop_observer): New observer.
7161 (tui_install_hooks): Set
7162 deprecated_print_frame_info_listing_hook to
7163 tui_dummy_print_frame_info_listing_hook. Register
7164 tui_before_prompt_observer to call tui_before_prompt and
7165 tui_normal_stop_observer to call tui_normal_stop. Remove
7166 reference to deprecated_selected_frame_level_changed_hook.
7167 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7168 and tui_normal_stop_observer. Remove reference to
7169 deprecated_selected_frame_level_changed_hook.
7171 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7174 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7175 return an int instead of void. Return whether the locator
7177 (tui_show_frame_info): If the locator info has not changed, then
7178 bail out early to avoid refreshing the windows.
7180 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7182 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7183 LOCATOR_WIN to tui_alloc_content.
7185 2015-06-30 Yao Qi <yao.qi@linaro.org>
7188 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7191 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7193 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7194 (rx_dwarf_reg_to_regnum): New function.
7195 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7198 2015-06-29 Pedro Alves <palves@redhat.com>
7201 * infcall.c (run_inferior_call): On infcall success, if the thread
7202 was marked stopped before, reset it back to stopped.
7203 * infrun.c (resume): Don't suppress the set_running calls when
7205 (normal_stop): Only discard the finish_thread_state cleanup if the
7208 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7210 * MAINTAINERS (Write After Approval): Update my email address.
7212 2015-06-26 Keith Seitz <keiths@redhat.com>
7213 Doug Evans <dje@google.com>
7216 * block.c (block_lookup_symbol): For non-function blocks,
7217 continue to search for a symbol with an exact domain match
7218 Otherwise, return any previously found "best domain" symbol.
7219 (block_lookup_symbol_primary): Likewise.
7221 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7223 * NEWS: Mention the new option "history remove-duplicates".
7224 * top.c (history_remove_duplicates): New static variable.
7225 (show_history_remove_duplicates): New static function.
7226 (gdb_add_history): Conditionally remove duplicate history
7228 (init_main): Add "history remove-duplicates" option.
7230 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7232 * tui/tui-win.c (focus_completer): New static function.
7233 (_initialize_tui_win): Set the completion function of the
7234 "focus" command to focus_completer.
7236 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7238 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7240 * symtab.c (find_function_start_sal): Likewise.
7242 2015-06-25 Gary Benson <gbenson@redhat.com>
7244 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7245 it is the empty string after trailing slashes have been stripped.
7247 2015-06-25 Gary Benson <gbenson@redhat.com>
7249 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7250 * infrun.c (follow_exec): Likewise.
7251 * remote.c (remote_filesystem_is_local): Likewise.
7252 * solib.c (solib_find_1): Likewise.
7254 2015-06-24 Keith Seitz <keiths@redhat.com>
7256 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7257 return value from lrealpath.
7259 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7261 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7263 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7265 * remote-sim.c: Include gdb_bfd.h.
7266 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7267 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7269 2015-06-24 Yao Qi <yao.qi@linaro.org>
7271 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7272 set_gdbarch_get_siginfo_type.
7273 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7274 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7275 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7276 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7277 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7278 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7279 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7280 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7281 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7282 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7284 2015-06-24 Gary Benson <gbenson@redhat.com>
7286 * common/buffer.c (stdint.h): Do not include.
7287 * common/print-utils.c (stdint.h): Likewise.
7288 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7289 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7290 * ft32-tdep.c (gdb_assert.h): Likewise.
7291 * guile/scm-utils.c (stdint.h): Likewise.
7292 * i386-linux-tdep.c (stdint.h): Likewise.
7293 * i386-tdep.c (stdint.h): Likewise.
7294 * nat/linux-btrace.c (stdint.h): Likewise.
7295 * nat/linux-btrace.h (stdint.h): Likewise.
7296 * nat/linux-ptrace.c (stdint.h): Likewise.
7297 * nat/mips-linux-watch.h (stdint.h): Likewise.
7298 * ppc-linux-nat.c (stdint.h): Likewise.
7299 * python/python-internal.h (stdint.h): Likewise.
7300 * stub-termcap.c (stdlib.h): Likewise.
7301 * target/target.h (stdint.h): Likewise.
7302 * xtensa-linux-nat.c (stdint.h): Likewise.
7304 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7306 * top.c (init_history): Look at errno after calling strtol to
7307 properly map large GDBHISTSIZE values to infinity.
7309 2015-06-23 Doug Evans <dje@google.com>
7311 * inferior.h (struct inferior_suspend_state): Delete, unused.
7312 All references deleted.
7314 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7316 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7317 (microblaze_push_dummy_call): Likewise.
7318 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7319 and set_gdbarch_push_dummy_call.
7321 2015-06-23 Yao Qi <yao.qi@linaro.org>
7323 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7324 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7325 (amd64_linux_store_inferior_registers): Likewise.
7326 * arm-linux-nat.c (fetch_fpregister): Likewise.
7327 (fetch_fpregs, store_fpregister): Likewise.
7328 (store_fpregister, store_fpregs): Likewise.
7329 (fetch_register, fetch_regs): Likewise.
7330 (store_register, store_regs): Likewise.
7331 (fetch_vfp_regs, store_vfp_regs): Likewise.
7332 (arm_linux_read_description): Check have_ptrace_getregset is
7333 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7335 * i386-linux-nat.c (fetch_xstateregs): Check
7336 have_ptrace_getregset is not TRIBOOL_TRUE.
7337 (store_xstateregs): Likewise.
7338 * linux-nat.c (have_ptrace_getregset): Change its type to
7340 * linux-nat.h (tribool): New enum.
7341 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7342 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7344 2015-06-19 Doug Evans <dje@google.com>
7346 * NEWS: Mention Sun's version of stabs is no longer supported.
7347 * elfread.c (free_elfinfo): Delete. All uses updated.
7348 (elfstab_offset_sections): Delete. All uses updated.
7349 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7350 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7352 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7353 All callers updated.
7355 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7357 * common/rsp-low.c (needs_escaping): New.
7358 (remote_escape_output): Add unit_size parameter. Refactor to
7359 support multi-byte addressable units. Rename parameters.
7360 * common/rsp-low.h (remote_escape_output): Add unit_size
7361 parameter and rename others. Update doc.
7362 * remote.c (align_for_efficient_write): New.
7363 (remote_write_bytes_aux): Add unit_size parameter and use it.
7364 Rename some variables. Update doc.
7365 (remote_xfer_partial): Get unit size and use it.
7366 (remote_read_bytes_1): Add unit_size parameter and use it.
7367 Rename some variables. Update doc.
7368 (remote_write_bytes): Same.
7369 (remote_xfer_live_readonly_partial): Same.
7370 (remote_read_bytes): Same.
7371 (remote_flash_write): Update call to remote_write_bytes_aux.
7372 (remote_write_qxfer): Update call to remote_escape_output.
7373 (remote_search_memory): Same.
7374 (remote_hostio_pwrite): Same.
7376 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7378 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7379 locations as inserted.
7380 Update and expand comment about permanent locations.
7381 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7382 Move comment to add_location_to_breakpoint.
7383 (update_global_location_list): Don't error out if a permanent
7384 breakpoint is not marked inserted.
7385 Don't error out if a non-permanent breakpoint location is inserted on
7386 top of a permanent breakpoint.
7388 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7390 * breakpoint.c (make_breakpoint_permanent): Remove unused
7392 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7394 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7397 * NEWS: Mention new GDBHISTSIZE behavior.
7398 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7399 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7401 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7403 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7404 * top.c (init_history): Read from GDBHISTSIZE instead of
7406 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7408 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7410 * top.c (gdb_safe_append_history): Do not call
7411 history_truncate_file if the history is not stifled.
7413 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7415 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7416 * syscalls/s390x-linux.xml: Likewise.
7418 2015-06-16 Michael Eager <eager@eagercon.com>
7420 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7422 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7424 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7425 target_terminal_ours_for_output() before calling
7426 tui_show_frame_info(), and restore the original terminal
7427 settings afterwards.
7429 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7431 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7433 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7435 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7437 (mi_cmd_data_write_memory_bytes): Same.
7439 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7441 * corefile.c (write_memory): Update doc.
7442 * gdbcore.h (write_memory): Same.
7444 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7447 (dump_mapping_p): Use it for parameter filterflags.
7448 (linux_find_memory_regions_full): Use it for variable filterflags.
7450 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7451 Jan Kratochvil <jan.kratochvil@redhat.com>
7453 Merge multiple hex conversions.
7454 * monitor.c: Include rsp-low.h.
7455 (fromhex): Remove definition.
7457 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7458 Jan Kratochvil <jan.kratochvil@redhat.com>
7460 Move utility functions to common/.
7461 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7462 Move defs to common/common-utils.c.
7463 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7464 (skip_to_space_const): Move decls to common/common-utils.h.
7465 * common/common-defs.h: Move include of common-types.h before
7467 * common/common-utils.c: Include host-defs.h and ctype.h.
7468 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7470 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7472 * common/common-utils.h (strtoulst): Move decl from utils.h.
7473 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7474 Move from cli/cli-utils.h.
7475 * common/host-defs.h: Include limits.h.
7476 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7477 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7478 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7479 common/common-utils.h.
7480 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7481 (strtoulst): Move to common/common-utils.c.
7482 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7484 2015-06-15 Yao Qi <yao.qi@linaro.org>
7486 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7488 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7490 * build-id.c: Don't include elf-bfd.h.
7491 (build_id_bfd_get): Use bfd_build_id.
7492 (build_id_verify): Ditto.
7493 * build-id.h: Ditto.
7494 (find_separate_debug_file_by_buildid): Ditto.
7495 * python/py-objfile.c: Don't include elf-bfd.h.
7496 (objfpy_get_build_id) Use bfd_build_id.
7497 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7498 * coffread.c: Include build-id.h.
7499 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7501 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7503 * windows-nat.c (do_windows_fetch_inferior_registers)
7504 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7505 conditional with __CYGWIN__.
7507 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7509 * completer.c: Add arch-utils.h include.
7510 (enum reg_completer_targets): New enum.
7511 (reg_or_group_completer_1): New function containing old
7512 reg_or_group_completer, add and use new parameter to control what
7513 is completed on. Use get_current_arch rather than architecture of
7514 currently selected frame.
7515 (reg_or_group_completer): Call new reg_or_group_completer_1.
7516 (reggroup_completer): Call new reg_or_group_completer_1.
7517 * completer.h (reggroup_completer): Add declaration.
7518 * tui/tui-regs.c: Add 'completer.h' include.
7519 (tui_reg_next_command): Renamed to...
7520 (tui_reg_next): ...this. Adjust parameters and return rather than
7522 (tui_reg_prev_command): Renamed to...
7523 (tui_reg_prev): ...this. Adjust parameters and return rather than
7525 (tui_reg_float_command): Delete.
7526 (tui_reg_general_command): Delete.
7527 (tui_reg_system_command): Delete.
7528 (tui_reg_command): Rewrite to perform switching of register group.
7530 (tuireglist): Remove.
7531 (tui_reggroup_completer): New function.
7532 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7533 creation of 'tui reg' command.
7534 * NEWS: Add comment about 'tui reg' changes.
7536 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7538 * target.c (target_read): Consider addressable unit size when
7539 reading from a memory object.
7540 (read_memory_robust): Same.
7541 (read_whatever_is_readable): Same.
7542 (target_write_with_progress): Consider addressable unit size
7543 when writing to a memory object.
7544 * target.h (target_read): Update documentation.
7545 (target_write): Add documentation.
7547 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7549 * arch-utils.h (default_addressable_memory_unit_size): New.
7550 * arch-utils.c (default_addressable_memory_unit_size): New.
7551 * gdbarch.sh (addressable_memory_unit_size): New.
7552 * gdbarch.h: Re-generate.
7553 * gdbarch.c: Re-generate.
7555 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7557 * target.c (target_read): Rename variables and use
7559 (target_read_with_progress): Same.
7560 (read_memory_robust): Constify parameters and rename
7562 (read_whatever_is_readable): Constify parameters,
7563 rename variables, adjust formatting.
7564 * target.h (read_memory_robust): Constify parameters.
7566 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7568 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7569 synthetic (non-AltiVec) vector types.
7570 (ppc64_sysv_abi_return_value): Likewise.
7572 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7574 PR breakpoints/16465
7575 * breakpoint.c (create_breakpoint): Save extra_string for
7576 pending breakpoints.
7578 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7580 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7581 and bt_mask to CORE_ADDR.
7583 2015-06-11 Gary Benson <gbenson@redhat.com>
7585 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7586 (mnsh_recv_message): Likewise.
7588 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7590 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7591 long long int and plongest instead of %ll.
7593 2015-06-11 Gary Benson <gbenson@redhat.com>
7595 * nat/linux-namespaces.c (gdb_wait.h): New include.
7596 (sys/wait.h): Do not include.
7598 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7600 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7601 end_sequence is true.
7603 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7606 * solib-target.c (library_list_start_list): Use explicit NULL
7609 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7611 * solib-target.c (library_list_start_list): Do not dereference
7612 variable version in its initialization. Make the VERSION check handle
7614 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7616 2015-06-10 Gary Benson <gbenson@redhat.com>
7618 * NEWS: Announce support for direct access of executable and
7619 shared library files when attaching to inferiors in containers
7620 on GNU/Linux systems.
7622 2015-06-10 Gary Benson <gbenson@redhat.com>
7624 * remote.c (struct remote_state) <fs_pid>: New field.
7625 (new_remote_state): Initialize the above.
7626 (PACKET_vFile_setfs): New enum value.
7627 (remote_hostio_set_filesystem): New function.
7628 (remote_hostio_open): Call the above.
7629 (remote_hostio_unlink): Likewise.
7630 (remote_hostio_readlink): Likewise.
7631 (_initialize_remote): Register new "set/show remote
7632 hostio-setfs-packet" command.
7633 * NEWS: Announce new vFile:setfs packet.
7635 2015-06-10 Gary Benson <gbenson@redhat.com>
7637 * linux-nat.c (nat/linux-namespaces.h): New include.
7638 (fileio.h): Likewise.
7639 (linux_nat_filesystem_is_local): New function.
7640 (linux_nat_fileio_pid_of): Likewise.
7641 (linux_nat_fileio_open): Likewise.
7642 (linux_nat_fileio_readlink): Likewise.
7643 (linux_nat_fileio_unlink): Likewise.
7644 (linux_nat_add_target): Initialize to_filesystem_is_local,
7645 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7646 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7648 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7650 2015-06-10 Gary Benson <gbenson@redhat.com>
7652 * target.h (struct inferior): New forward declaration.
7653 (struct target_ops) <to_filesystem_is_local>: Update comment.
7654 (struct target_ops) <to_fileio_open>: New argument inf.
7655 Update comment. All implementations updated.
7656 (struct target_ops) <to_fileio_unlink>: Likewise.
7657 (struct target_ops) <to_fileio_readlink>: Likewise.
7658 (target_filesystem_is_local): Update comment.
7659 (target_fileio_open): New argument inf. Update comment.
7660 (target_fileio_unlink): Likewise.
7661 (target_fileio_readlink): Likewise.
7662 (target_fileio_read_alloc): Likewise.
7663 (target_fileio_read_stralloc): Likewise.
7664 * target.c (target_fileio_open): New argument inf.
7665 Pass inf to implementation. Update debug printing.
7666 (target_fileio_unlink): Likewise.
7667 (target_fileio_readlink): Likewise.
7668 (target_fileio_read_alloc_1): New argument inf. Pass inf
7669 to target_fileio_open.
7670 (target_fileio_read_alloc): New argument inf. Pass inf to
7671 target_fileio_read_alloc_1.
7672 (target_fileio_read_stralloc): Likewise.
7673 * gdb_bfd.c (inferior.h): New include.
7674 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7675 argument with new argument "inferior". Pass inferior to
7677 (gdb_bfd_open): Supply inferior argument to
7678 gdb_bfd_iovec_fileio_open.
7679 * linux-tdep.c (linux_info_proc): Supply inf argument to
7680 relevant target_fileio calls.
7681 (linux_find_memory_regions_full): Likewise.
7682 (linux_fill_prpsinfo): Likewise.
7683 * remote.c (remote_filesystem_is_local): Supply inf
7684 argument to remote_hostio_open.
7685 (remote_file_put): Likewise.
7686 (remote_file_get): Likewise.
7687 (remote_file_delete): Supply inf argument to
7688 remote_hostio_unlink.
7690 2015-06-10 Gary Benson <gbenson@redhat.com>
7692 * inf-child.c (inf_child_fileio_open): Replace comment.
7693 (inf_child_fileio_pwrite): Likewise.
7694 (inf_child_fileio_pread): Likewise.
7695 (inf_child_fileio_fstat): Insert blank line before comment.
7696 (inf_child_fileio_close): Replace comment.
7697 (inf_child_fileio_unlink): Likewise.
7698 (inf_child_fileio_readlink): Likewise.
7699 * remote.c (remote_hostio_open): Likewise.
7700 (remote_hostio_pread): Likewise.
7701 (remote_hostio_pwrite): Likewise.
7702 (remote_hostio_close): Likewise.
7703 (remote_hostio_unlink): Likewise.
7704 (remote_hostio_readlink): Likewise.
7705 (remote_hostio_fstat): Likewise.
7706 (remote_filesystem_is_local): Likewise.
7707 * target.c (target_fileio_open): Likewise.
7708 (target_fileio_pwrite): Likewise.
7709 (target_fileio_pread): Likewise.
7710 (target_fileio_fstat): Insert blank line before comment.
7711 (target_fileio_close): Replace comment.
7712 (target_fileio_unlink): Likewise.
7713 (target_fileio_readlink): Likewise.
7714 (target_fileio_read_alloc): Likewise.
7715 (target_fileio_read_stralloc): Likewise.
7717 2015-06-10 Gary Benson <gbenson@redhat.com>
7719 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7720 (check_pid_namespace_match): Use linux_ns_same rather than
7721 linux_proc_pid_get_ns to spot PID namespace mismatches.
7722 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7723 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7725 2015-06-10 Gary Benson <gbenson@redhat.com>
7727 * configure.ac (AC_CHECK_FUNCS): Add setns.
7728 * config.in: Regenerate.
7729 * configure: Likewise.
7730 * nat/linux-namespaces.h: New file.
7731 * nat/linux-namespaces.c: Likewise.
7732 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7733 (linux-namespaces.o): New rule.
7734 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7735 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7736 * config/arm/linux.mh (NATDEPFILES): Likewise.
7737 * config/i386/linux.mh (NATDEPFILES): Likewise.
7738 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7739 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7740 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7741 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7742 * config/mips/linux.mh (NATDEPFILES): Likewise.
7743 * config/pa/linux.mh (NATDEPFILES): Likewise.
7744 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7745 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7746 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7747 * config/s390/linux.mh (NATDEPFILES): Likewise.
7748 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7749 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7750 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7751 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7753 2015-06-10 Gary Benson <gbenson@redhat.com>
7755 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7756 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7757 (make_cleanup_close): Likewise.
7758 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7759 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7760 (make_cleanup_close): Likewise.
7762 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7764 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7765 from SuspendThread().
7767 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7769 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7770 from OutputDebugString.
7772 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7773 Mircea Gherzan <mircea.gherzan@intel.com>
7775 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7776 MPX_BT_MASK_32): New macros.
7777 (i386_mpx_set_bounds): New function that implements
7778 the command "set-mpx-bound".
7779 (i386_mpx_enabled): Helper function to test MPX availability.
7780 (i386_mpx_bd_base): Helper function to calculate the base directory
7782 (i386_mpx_get_bt_entry): Helper function to access a bound
7784 (i386_mpx_print_bounds): Effectively display bound information.
7785 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7787 (_initialize_i386_tdep):
7788 Add "bound" to the commands "show mpx" and "set mpx" commands.
7789 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7790 and "show mpx" commands.
7791 * NEWS: List new commands for MPX support.
7793 2015-06-09 Gary Benson <gbenson@redhat.com>
7795 * common/fileio.h (fileio_to_host_mode): New declaration.
7796 * common/fileio.c (fileio_to_host_mode): New Function.
7797 * inf-child.c (inf_child_fileio_open): Process mode argument
7798 with fileio_to_host_mode.
7800 2015-06-09 Gary Benson <gbenson@redhat.com>
7802 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7805 2015-06-05 Gary Benson <gbenson@redhat.com>
7807 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7808 * remote.c (remote_filesystem_is_local): ...here.
7810 2015-06-04 Yao Qi <yao.qi@linaro.org>
7812 * gdbarch.c: Regenerate it.
7814 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7816 * arch-utils.c (default_infcall_munmap): New.
7817 * arch-utils.h (default_infcall_munmap): New declaration.
7818 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7819 (munmap_list_free, munmap_listp_free_cleanup): New.
7820 (struct setup_sections_data): Add field munmap_list_headp.
7821 (setup_sections): Call munmap_list_add.
7822 (compile_object_load): New variable munmap_list_head, initialize
7823 setup_sections_data.munmap_list_headp, return munmap_list_head.
7824 * compile/compile-object-load.h (struct munmap_list): New declaration.
7825 (struct compile_module): Add field munmap_list_head.
7826 (munmap_list_free): New declaration.
7827 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7829 (do_module_cleanup): Call munmap_list_free.
7830 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7831 * gdbarch.c: Regenerate.
7832 * gdbarch.h: Regenerate.
7833 * gdbarch.sh (infcall_munmap): New.
7834 * linux-tdep.c (linux_infcall_munmap): New.
7835 (linux_init_abi): Install it.
7837 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7840 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7842 2015-06-02 Yao Qi <yao.qi@linaro.org>
7844 * i386-linux-nat.c: Include linux-nat.h.
7846 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7847 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7852 * dwarf2loc.c (chain_candidate): Likewise.
7854 2015-06-01 Yao Qi <yao.qi@linaro.org>
7856 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7857 (store_vfp_regs): Use PTRACE_SETREGSET.
7859 2015-06-01 Yao Qi <yao.qi@linaro.org>
7861 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7862 (fetch_fpregs): Likewise.
7863 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7864 (store_fpregs): Likewise.
7866 2015-06-01 Yao Qi <yao.qi@linaro.org>
7868 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7869 (fetch_regs): Likewise.
7870 (store_regs): Use PTRACE_SETREGSET.
7871 (store_register): Likewise.
7873 2015-06-01 Yao Qi <yao.qi@linaro.org>
7875 * arm-linux-nat.c (arm_linux_read_description): Check whether
7876 kernel supports PTRACE_GETREGSET.
7878 2015-06-01 Yao Qi <yao.qi@linaro.org>
7880 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7881 * linux-nat.c: ... here.
7882 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7884 * linux-nat.h: ... here.
7886 2015-06-01 Yao Qi <yao.qi@linaro.org>
7888 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7889 * i386-linux-nat.c: Likewise.
7890 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7891 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7892 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7893 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7894 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7896 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7898 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7899 compatible to what read_child and write_child return. This
7900 unbreaks that DJGPP build of GDB which was broken since v7.7.
7902 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7904 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7906 2015-05-29 Roland McGrath <mcgrathr@google.com>
7909 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7910 rather than internal_error for an unrecognized value.
7912 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7914 * xtensa-tdep.c (xtensa_pseudo_register_read)
7915 (xtensa_pseudo_register_write): Don't alias last pseudo register
7918 2015-05-28 Don Breazeal <donb@codesourcery.com>
7920 * infrun.c (follow_fork_inferior): Ensure the use of
7921 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7924 2015-05-28 Doug Evans <dje@google.com>
7926 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7928 2015-05-28 Yao Qi <yao.qi@linaro.org>
7930 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7931 (arm_linux_fetch_inferior_registers): Use
7932 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7933 (arm_linux_store_inferior_registers): Likewise.
7934 (arm_linux_read_description): Don't set
7935 arm_linux_has_wmmx_registers.
7936 * arm-tdep.c (arm_gdbarch_init): Set
7937 tdep->have_wmmx_registers according target descriptions.
7938 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7941 2015-05-28 Yao Qi <yao.qi@linaro.org>
7943 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7944 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7945 instead of arm_linux_vfp_register_count.
7946 (store_vfp_regs): Likewise.
7947 (arm_linux_fetch_inferior_registers): Likewise.
7948 (arm_linux_store_inferior_registers): Likewise.
7949 (arm_linux_read_description): Don't set
7950 arm_linux_vfp_register_count.
7951 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7953 * arm-tdep.c (arm_gdbarch_init): Add assert on
7955 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7956 field to vfp_register_count. All users updated.
7958 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7960 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7961 ELFOSABI_GNU binaries.
7963 2015-05-27 Doug Evans <dje@google.com>
7965 * dwarf2read.c (lnp_state_machine): New typedef.
7966 (lnp_reader_state): New typedef.
7967 (dwarf_record_line_1): Renamed from dwarf_record_line.
7968 All callers updated.
7969 (dwarf_record_line): New function.
7970 (init_lnp_state_machine): New function.
7971 (check_line_address): Replace p_record_line parameter with state.
7972 All callers updated.
7973 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7974 Update to record state in lnp_state_machine.
7976 2015-05-27 Doug Evans <dje@google.com>
7978 * dwarf2read.c (record_line_ftype): New typedef.
7979 (check_line_address): New function.
7980 (dwarf_decode_lines_1): Call it.
7982 2015-05-27 Doug Evans <dje@google.com>
7984 * NEWS: Mention "set debug dwarf-line".
7985 * dwarf2read.c (dwarf_line_debug): New static global.
7986 (add_include_dir): Add debug dwarf-line support.
7987 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7988 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7990 2015-05-27 Doug Evans <dje@google.com>
7992 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7993 All callers updated.
7994 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7995 * cp-support.h (cp_lookup_nested_symbol): Update.
7997 2015-05-27 Doug Evans <dje@google.com>
8000 * block.c (block_find_symbol): New function.
8001 (block_find_non_opaque_type): Ditto.
8002 (block_find_non_opaque_type_preferred): Ditto.
8003 * block.h (block_symbol_matcher_ftype): New typedef.
8004 (block_find_symbol): Declare.
8005 (block_find_non_opaque_type): Ditto.
8006 (block_find_non_opaque_type_preferred): Ditto.
8007 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8008 * psymtab.c (psym_lookup_symbol): Ditto.
8009 * symtab.c (basic_lookup_transparent_type_1): New function.
8010 (basic_lookup_transparent_type): Call it.
8012 2015-05-27 Yao Qi <yao.qi@linaro.org>
8014 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8015 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8017 2015-05-27 Yao Qi <yao.qi@linaro.org>
8019 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8021 (aarch64_record_load_store): Likewise.
8023 2015-05-26 Doug Evans <dje@google.com>
8025 PR c++/18141, c++/18417.
8026 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8029 2015-05-26 Doug Evans <dje@google.com>
8031 * NEWS: Add entries for command renamings.
8032 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8034 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8035 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8037 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8038 All callers updated. Fix spelling of DWARF in help text.
8039 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8041 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8043 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8044 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8045 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8047 (show_dwarf_always_disassemble): Renamed from
8048 show_dwarf2_always_disassemble. All callers updated.
8049 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8050 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8051 "set/show dwarf max-cache-age". Rename
8052 "set/show dwarf2 always-disassemble" to
8053 "set/show dwarf always-disassemble". Rename
8054 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8055 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8057 2015-05-26 Doug Evans <dje@google.com>
8060 * python/py-lazy-string.c (stpy_convert_to_value): Use
8061 gdbpy_gdb_memory_error not PyExc_MemoryError.
8062 (gdbpy_create_lazy_string_object): Ditto.
8064 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8066 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8068 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8070 * tui/tui-regs.c (tui_reg_prev_command): New function.
8071 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8072 * reggroups.c (reggroup_prev): New function.
8073 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8075 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8076 Yao Qi <yao.qi@linaro.org>
8078 * aarch64-linux-tdep.c: Include linux-record.h and
8080 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8081 (aarch64_syscall): New enum.
8082 (aarch64_canonicalize_syscall): New function.
8083 (aarch64_all_but_pc_registers_record): New function.
8084 (aarch64_linux_syscall_record): New function.
8085 (aarch64_linux_init_abi): Install AArch64 process record
8086 handler. Update to handle syscall recording.
8087 * aarch64-tdep.c: Include record.h and record-full.h.
8088 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8089 (struct aarch64_mem_r): Define.
8090 (aarch64_record_result): New enum.
8091 (struct insn_decode_record): Define.
8092 (insn_decode_record): New typedef.
8093 (aarch64_record_data_proc_reg): New function.
8094 (aarch64_record_data_proc_imm): New function.
8095 (aarch64_record_branch_except_sys): New function.
8096 (aarch64_record_load_store): New function.
8097 (aarch64_record_data_proc_simd_fp): New function.
8098 (aarch64_record_asimd_load_store): New function.
8099 (aarch64_record_decode_insn_handler): New function.
8100 (deallocate_reg_mem): New function.
8101 (aarch64_process_record): New function.
8102 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8104 (aarch64_process_record): New extern declaration.
8105 * configure.tgt: Add linux-record.o to gdb_target_obs.
8106 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8108 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8110 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8113 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8115 * amd64-tdep.c: Replace in_function_epilogue_p with
8116 stack_frame_destroyed_p throughout.
8117 * arch-utils.c: Ditto.
8118 * arch-utils.h: Ditto.
8119 * arm-tdep.c: Ditto.
8120 * breakpoint.c: Ditto.
8121 * gdbarch.sh: Ditto.
8122 * hppa-tdep.c: Ditto.
8123 * i386-tdep.c: Ditto.
8124 * mips-tdep.c: Ditto.
8125 * nios2-tdep.c: Ditto.
8126 * rs6000-tdep.c: Ditto.
8127 * s390-linux-tdep.c: Ditto.
8128 * score-tdep.c: Ditto.
8130 * sparc-tdep.c: Ditto.
8131 * sparc-tdep.h: Ditto.
8132 * sparc64-tdep.c: Ditto.
8133 * spu-tdep.c: Ditto.
8134 * tic6x-tdep.c: Ditto.
8135 * tilegx-tdep.c: Ditto.
8136 * xstormy16-tdep.c: Ditto.
8137 * gdbarch.c, gdbarch.h: Re-generated.
8139 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8141 * NEWS: Mention 'tui enable' and 'tui disable'.
8142 * tui/tui.c (tui_enable_command): New function.
8143 (tui_disable_command): New function.
8144 (_initialize_tui): New function.
8146 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8148 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8150 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8152 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8155 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8157 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8159 (tui_set_layout_for_display_command): ...here, before calling
8160 tui_set_layout. Only set the layout if gdb has not already
8161 entered the TUI_FAILURE state.
8163 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8165 * tui/tui-layout.c (layout_completer): New function.
8166 (_initialize_tui_layout): Set completer on layout command.
8168 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8170 * tui/tui-layout.c (tui_set_layout): Remove
8171 tui_register_display_type parameter. Remove all checking of this
8172 parameter, and reindent function. Update header comment.
8173 (tui_set_layout_for_display_command): Rename to...
8174 (tui_set_layout_by_name): ...this, and don't check for different
8175 register class types, don't pass a tui_register_display_type to
8176 tui_set_layout. Update header comment.
8177 (layout_names): Remove register set specific names.
8178 * tui/tui-layout.h (tui_set_layout): Remove
8179 tui_register_display_type parameter.
8180 * tui/tui.c (tui_rl_change_windows): Don't pass a
8181 tui_register_display_type to tui_set_layout.
8182 (tui_rl_delete_other_windows): Likewise.
8183 (tui_enable): Likewise.
8184 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8185 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8186 (TUI_GENERAL_REGS_NAME): Remove.
8187 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8188 (TUI_SPECIAL_REGS_NAME): Remove.
8189 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8190 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8191 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8192 (enum tui_register_display_type): Remove.
8193 (struct tui_layout_def): Remove regs_display_type and
8194 float_regs_display_type fields.
8195 (struct tui_data_info): Remove regs_display_type field.
8196 (tui_layout_command): Use new name for
8197 tui_set_layout_for_display_command.
8198 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8199 (tui_clear_win_detail): Don't initialise removed fields of
8201 * tui/tui-regs.c (tui_show_registers): Use new name for
8202 tui_set_layout_for_display_command.
8203 * tui/tui.h (tui_set_layout_for_display_command): Rename
8205 (tui_set_layout_by_name): ...this.
8206 * printcmd.c (display_command): Remove tui related layout call,
8209 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8211 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8212 (handle_inferior_event): New function.
8214 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8216 * ada-lang.c (to_fixed_array_type): Rename local variable
8217 typename into type_name.
8219 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8221 Fix ASAN crash for gdb.compile/compile.exp.
8222 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8224 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8226 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8227 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8228 * compile/compile-object-load.c (setup_sections, compile_object_load):
8230 * compile/compile.c (compile_to_object): Likewise.
8232 2015-05-16 Doug Evans <xdje42@gmail.com>
8234 * NEWS: Mention support for unbuffered Guile memory ports.
8235 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8236 (ioscm_lseek_address): Improve overflow calculation.
8237 (gdbscm_memory_port_fill_input): Add assert.
8238 (gdbscm_memory_port_write): Handle unbuffered ports.
8239 Handle large writes identical to Guile's fport_write.
8240 (gdbscm_memory_port_seek): Fix seeking past end check.
8241 (gdbscm_memory_port_close): Handle closing unbuffered port.
8242 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8243 (ioscm_init_memory_port): Handle unbuffered ports.
8244 (ioscm_reinit_memory_port): Ditto.
8245 (ioscm_init_memory_port): Update size calculation.
8246 (gdbscm_open_memory): Support zero sized ports.
8248 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8250 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8251 variable compiler warnings.
8253 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8255 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8257 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8258 Phil Muldoon <pmuldoon@redhat.com>
8260 * NEWS (Changes since GDB 7.9): Add compile print.
8261 * compile/compile-c-support.c (add_code_header, add_code_footer)
8262 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8263 COMPILE_I_PRINT_VALUE_SCOPE.
8264 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8265 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8267 * compile/compile-object-load.c: Include block.h.
8268 (get_out_value_type): New function.
8269 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8270 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8272 * compile/compile-object-load.h (struct compile_module): Add fields
8273 out_value_addr and out_value_type.
8274 * compile/compile-object-run.c: Include valprint.h and compile.h.
8275 (struct do_module_cleanup): Add fields out_value_addr and
8277 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8278 COMPILE_I_PRINT_VALUE_SCOPE.
8279 (compile_object_run): Propagate out_value_addr and out_value_type.
8280 Pass OUT_VALUE_ADDR.
8281 * compile/compile.c: Include valprint.h.
8282 (compile_print_value, compile_print_command): New functions.
8283 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8284 (_initialize_compile): Update compile code help text. Install
8285 compile_print_command.
8286 * compile/compile.h (compile_print_value): New prototype.
8287 * defs.h (enum compile_i_scope_types): Add
8288 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8290 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8292 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8293 Rely on its parameter count.
8294 (compile_object_load): Replace lookup_minimal_symbol_text by
8295 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8297 * compile/compile-object-load.h (struct compile_module): Replace
8298 func_addr by func_sym.
8299 * compile/compile-object-run.c: Include block.h.
8300 (compile_object_run): Reset module variable after it is freed. Use
8301 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8303 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8305 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8306 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8307 (c_compute_program): Call generate_register_struct after typedefs.
8308 * compile/compile-loc2c.c (push, pushf_register_address)
8309 (pushf_register): Cast to GCC_UINTPTR.
8310 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8311 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8312 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8313 * compile/compile.c (_initialize_compile): Enable warnings for
8316 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8318 * cli/cli-script.c (execute_control_command): Update
8319 eval_compile_command caller.
8320 * compile/compile-object-load.c (compile_object_load): Add parameters
8321 scope and scope_data. Set them.
8322 * compile/compile-object-load.h (struct compile_module): Add fields
8323 scope and scope_data.
8324 (compile_object_load): Add parameters scope and scope_data.
8325 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8326 scope and scope_data.
8327 (compile_object_run): Propagate the fields scope and scope_data.
8328 * compile/compile.c (compile_file_command, compile_code_command):
8329 Update eval_compile_command callers.
8330 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8331 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8332 * defs.h (struct command_line): Add field scope_data.
8334 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8336 * printcmd.c (struct format_data): Move it to valprint.h.
8337 (print_command_parse_format, print_value): New functions from ...
8338 (print_command_1): ... here. Call them.
8339 * valprint.h (struct format_data): Move it here from printcmd.c.
8340 (print_command_parse_format, print_value): New declarations.
8342 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8344 * compile/compile-object-load.c (compile_object_load): Add
8345 COMPILE_DEBUG message.
8347 2015-05-15 Jerome Guitton <guitton@adacore.com>
8349 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8350 index to get element instead of enum value.
8351 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8352 of index to compute length, but enum values to compute bounds.
8353 (ada_array_length): Use enum position of index instead of enum value.
8354 (pos_atr): Move position computation to...
8355 (ada_evaluate_subexp): Use enum values to compute bounds.
8356 * gdbtypes.c (discrete_position): ...this new function.
8357 * gdbtypes.h (discrete_position): New function declaration.
8358 * valprint.c (val_print_array_elements): Call discrete_position
8359 to handle array indexed by non-contiguous enumeration types.
8361 2015-05-15 Jerome Guitton <guitton@adacore.com>
8363 * ada-lang.c (find_parallel_type_by_descriptive_type):
8364 Go through typedefs during lookup.
8365 (to_fixed_array_type): Add support for non-bit packed arrays
8366 as variable-length fields.
8368 2015-05-15 Pedro Alves <palves@redhat.com>
8369 Simon Marchi <simon.marchi@ericsson.com>
8371 * event-loop.c (gdb_notifier) <next_file_handler,
8372 next_poll_fds_index>: New fields.
8373 (get_next_file_handler_to_handle_and_advance): New function.
8374 (delete_file_handler): If deleting the next file handler to
8375 handle, advance to the next file handler.
8376 (gdb_wait_for_event): Bail early if no event fired. Poll file
8377 handlers in round-robin fashion.
8379 2015-05-15 Pedro Alves <palves@redhat.com>
8381 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8382 'private' to 'priv'.
8384 2015-05-15 Pedro Alves <palves@redhat.com>
8386 * nat/linux-nat.h: Include "target/waitstatus.h".
8388 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8390 * python/py-unwind.c (struct reg_info): Move out of ...
8391 (struct cached_frame_info): ... this scope.
8392 (pending_frame_object_type, unwind_info_object_type): Make extern.
8394 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8396 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8397 accumSize is never negative.
8399 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8401 * tui/tui-command.c: Remove include of <ctype.h>.
8402 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8404 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8406 * dwarf2read.c (die_needs_namespace): Return 1 for
8407 DW_TAG_inlined_subroutine.
8409 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8411 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8412 (regcache_cpy_no_passthrough): Make it static, add function comment.
8413 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8414 (regcache_cpy_no_passthrough): Remove declaration.
8416 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8418 * gdbthread.h (struct thread_control_state): Update comment for
8420 * infcall.c (run_inferior_call): Update comment about
8422 * infcmd.c (get_return_value): Update comment about stop_registers.
8423 (finish_forward): Update comment about proceed_to_finish.
8424 * infrun.c (stop_registers): Remove.
8425 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8426 * infrun.h (stop_registers): Remove.
8428 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8430 * infcall.c (struct dummy_frame_context_saver)
8431 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8432 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8433 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8435 (call_function_by_hand_dummy): Move discard_cleanups of
8436 inf_status_cleanup before dummy_frame_push. Call
8437 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8438 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8439 * infcall.h (struct dummy_frame_context_saver)
8440 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8441 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8443 * infcmd.c: Include infcall.h.
8444 (get_return_value): Add parameter ctx_saver, use it instead of
8446 (print_return_value): Add parameter ctx_saver, pass it.
8447 (struct finish_command_continuation_args): Add field ctx_saver.
8448 (finish_command_continuation): Update print_return_value caller.
8449 (finish_command_continuation_free_arg): Free also ctx_saver.
8450 (finish_forward): Call dummy_frame_context_saver_setup.
8451 * inferior.h (struct dummy_frame_context_saver): New declaration.
8452 (get_return_value): Add parameter ctx_saver.
8453 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8454 get_return_value caller.
8456 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8458 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8459 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8460 (remove_dummy_frame): Process dtor_list.
8461 (pop_dummy_frame): Process dtor_list.
8462 (register_dummy_frame_dtor): Maintain dtor_list.
8463 (find_dummy_frame_dtor): Handle dtor_list.
8464 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8467 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8469 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8471 (compile_object_run): Update do_module_cleanup caller.
8472 * dummy-frame.c: Include infcall.h.
8473 (struct dummy_frame): Update dtor comment.
8474 (remove_dummy_frame): Call dtor.
8475 (pop_dummy_frame): Update dtor caller.
8476 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8479 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8483 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8485 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8486 Xmethods now being able to specify a result type to that new
8489 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8491 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8492 first before resizing the window.
8493 * tui/tui.c (tui_enable): Likewise.
8495 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8497 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8498 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8499 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8500 dummy_dtor parameter.
8501 * infcall.h: Include dummy-frame.h.
8502 (call_function_by_hand_dummy_dtor_ftype): Remove.
8503 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8506 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8509 * top.c (history_size_setshow_var): Change type to signed.
8510 Initialize to -2. Update documentation.
8511 (set_readline_history_size): Define.
8512 (set_history_size_command): Use it. Remove logic for handling
8514 (init_history): Use set_readline_history_size(). Test for a
8515 value of -2 instead of 0 when determining whether to set a
8516 default history size.
8517 (init_main): Decode the argument of the "size" command as a
8518 zuinteger_unlimited.
8520 2015-05-12 Doug Evans <dje@google.com>
8522 * dwarf2read.c (struct file_entry): Tweak comments.
8523 (get_debug_line_section): Tweak comments.
8525 2015-05-12 Don Breazeal <donb@codesourcery.com>
8527 * NEWS: Announce fork support in the RSP and support
8528 for fork debugging in extended mode.
8530 2015-05-12 Don Breazeal <donb@codesourcery.com>
8532 * remote.c (remote_insert_fork_catchpoint): New function.
8533 (remote_remove_fork_catchpoint): New function.
8534 (remote_insert_vfork_catchpoint): New function.
8535 (remote_remove_vfork_catchpoint): New function.
8536 (pending_fork_parent_callback): New function.
8537 (remove_new_fork_child): New function.
8538 (remote_update_thread_list): Call remote_notif_get_pending_events
8539 and remove_new_fork_child.
8540 (extended_remote_kill): Kill fork child when killing the
8541 parent before follow_fork completes.
8542 (init_extended_remote_ops): Initialize target vector with
8543 new fork catchpoint functions.
8545 2015-05-12 Don Breazeal <donb@codesourcery.com>
8547 * remote.c (remove_vfork_event_p): New function.
8548 (remote_follow_fork): Add vfork event type to event checking.
8549 (remote_parse_stop_reply): New stop reasons "vfork" and
8550 "vforkdone" for RSP 'T' Stop Reply Packet.
8552 2015-05-12 Don Breazeal <donb@codesourcery.com>
8554 * linux-nat.c (linux_nat_ptrace_options): New function.
8555 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8556 Call linux_nat_ptrace_options and use different argument to
8557 linux_enable_event_reporting.
8558 (_initialize_linux_nat): Delete call to
8559 linux_ptrace_set_additional_flags.
8560 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8561 supported_ptrace_options.
8562 (additional_flags): Delete variable.
8563 (linux_check_ptrace_features): Use supported_ptrace_options.
8564 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8565 Likewise, and remove additional_flags check.
8566 (linux_enable_event_reporting): Change 'attached' argument to
8567 'options'. Use supported_ptrace_options.
8568 (ptrace_supports_feature): Change comment. Use
8569 supported_ptrace_options.
8570 (linux_ptrace_set_additional_flags): Delete function.
8571 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8572 Delete function prototype.
8573 * remote.c (remote_fork_event_p): New function.
8574 (remote_detach_pid): New function.
8575 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8576 if doing detach-on-fork.
8577 (remote_follow_fork): New function.
8578 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8579 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8580 (init_extended_remote_ops): Initialize to_follow_fork.
8582 2015-05-12 Don Breazeal <donb@codesourcery.com>
8584 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8585 from static to extern.
8586 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8587 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8588 * PACKET_vfork_event_feature>: New enumeration constants.
8589 (remote_protocol_features): Add table entries for new packets.
8590 (remote_query_supported): Add new feature queries to qSupported
8593 2015-05-12 Gary Benson <gbenson@redhat.com>
8595 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8596 for fake PIDs as well as real ones.
8597 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8599 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8601 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8602 * python/py-value.c (valpy_reference_value): New function.
8603 (valpy_const_value): Likewise.
8604 (value_object_methods): Add new methods.
8605 * value.c (make_cv_value): New function.
8606 * value.h (make_cv_value): Declare.
8608 2015-05-08 Yao Qi <yao@codesourcery.com>
8609 Sandra Loosemore <sandra@codesourcery.com>
8611 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8612 to 'lh->include_dirs' before accessing to it.
8613 (psymtab_include_file_name): Likewise.
8614 (dwarf_decode_lines_1): Likewise.
8615 (dwarf_decode_lines): Likewise.
8616 (file_file_name): Likewise.
8618 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8620 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8621 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8622 (nios2_linux_rt_sigreturn_init): Adjust base address of
8625 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8627 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8628 "trap 31" as the breakpoint instruction on all targets.
8630 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8632 * infcmd.c (print_return_value): Remove unused declaration.
8634 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8636 * dwarf2read.c (attr_to_dynamic_prop)
8637 <DW_AT_data_member_location>: Use read_type_die isntead of
8640 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8642 * ada-lang.c (ada_convert_actual): Add handling of formals
8643 passed inside an aligner type.
8645 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8647 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8649 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8652 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8653 Print xmethod matcher status.
8655 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8657 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8658 register in the regcache when treating the PSWM register, and vice
8661 2015-05-07 Gary Benson <gbenson@redhat.com>
8663 * linux-thread-db.c (struct thread_db_info)
8664 <td_ta_map_id2thr_p>: Remove field.
8665 (try_thread_db_load_1): Remove initialization for the above.
8667 2015-05-07 Gary Benson <gbenson@redhat.com>
8669 * linux-thread-db.c (struct thread_db_info)
8670 <td_thr_validate_p>: Remove field.
8671 (try_thread_db_load_1): Remove initialization for the above.
8673 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8675 * compile/compile-object-load.c (compile_object_load): Support
8678 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8680 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8681 const. Use new variables for the const compatibility.
8682 (eval_compile_command): Make the cmd_string parameter const.
8683 * compile/compile.h (eval_compile_command): Make the cmd_string
8686 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8688 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8690 * top.c (deprecated_init_ui_hook): Delete.
8691 (gdb_init): Remove handling of deprecated_init_ui_hook.
8692 * interps.c (clear_interpreter_hooks): Remove handling of
8693 deprecated_init_ui_hook.
8694 * main.c (captured_main): Update comment.
8696 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8698 * solib.c (_initialize_solib): Add "info dll" alias creation.
8699 * windows-nat.c (set_windows_aliases): Delete.
8700 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8702 * NEWS: Add news entry about "info dll" now being available
8705 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8707 * ada-lang.c (value_assign_to_component): Reformat and improve
8708 documentation. Remove all trailing spaces.
8710 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8712 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8713 Stop counting inlined frames as soon as an out-of-line function
8716 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8718 * dwarf2read.c (inherit_abstract_dies): Skip
8719 DW_TAG_GNU_call_site dies while inheriting children of an
8720 abstract DIE into a scope.
8721 (read_lexical_block_scope): Inherit abstract DIE's for
8724 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8726 * ada-valprint.c (val_print_packed_array_elements): Delete
8727 variable "len". Add a type-length check when comparing two
8728 consecutive elements of the array. Use the element's actual
8729 length in call to value_contents_eq.
8730 * ada-lang.c (ada_value_primitive_packed_val): Always return
8731 a value whose type has been resolved.
8733 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8735 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8736 BIT_SIZE and LEN if the size of the resolved type is smaller
8737 than BIT_SIZE * HOST_CHAR_BIT.
8739 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8741 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8742 correct address in call to value_at. Adjust call to
8743 value_address accordingly.
8745 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8747 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8750 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8752 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8753 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8755 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8756 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8757 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8758 Add handling of addr_stack->valaddr.
8759 (resolve_dynamic_type): Add "valaddr" parameter.
8760 Set pinfo.valaddr field.
8761 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8762 resolve_dynamic_type.
8763 (ada_discrete_type_low_bound): Likewise.
8764 * findvar.c (default_read_var_value): Likewise.
8765 * value.c (value_from_contents_and_address): Likewise.
8767 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8769 * gdbtypes.c (resolve_dynamic_array): Use
8770 create_array_type_with_stride instead of create_array_type.
8772 2015-04-30 DJ Delorie <dj@redhat.com>
8774 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8777 2015-04-29 Doug Evans <dje@google.com>
8780 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8781 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8782 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8783 * extension-priv.h (struct extension_language_ops)
8784 <get_xmethod_result_type>: New member.
8785 * extension.c (get_xmethod_result_type): New function.
8786 * extension.h (get_xmethod_result_type): Declare.
8787 * python/py-xmethods.c (get_result_type_method_name): New static
8789 (py_get_result_type_method_name): Ditto.
8790 (gdbpy_get_xmethod_result_type): New function.
8791 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8792 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8793 * python/python.c (python_extension_ops): Add
8794 gdbpy_get_xmethod_result_type.
8795 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8796 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8798 (value_x_unop): Ditto.
8799 * value.c (result_type_of_xmethod): New function.
8800 * value.h (result_type_of_xmethod): Declare.
8802 2015-04-29 Gary Benson <gbenson@redhat.com>
8804 * solib.c (solib_find_1): Allow fd argument to be NULL.
8805 (exec_file_find): Update comment.
8806 (solib_find): Likewise.
8807 * exec.c (exec_file_locate_attach): Use NULL as fd
8808 argument to exec_file_find to avoid having to close
8810 * infrun.c (follow_exec): Likewise.
8812 2015-04-28 Doug Evans <dje@google.com>
8815 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8816 name or __name__ attributes. Handle gdb module as first argument.
8818 2015-04-28 Doug Evans <dje@google.com>
8821 * python/py-prettyprint.c (print_children): Verify result of children
8822 iterator. Provide better error message.
8823 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8824 * python/python.c (gdbpy_print_python_errors_p): New function.
8826 2015-04-28 Doug Evans <dje@google.com>
8828 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8830 2015-04-28 Sasha Smundak <asmundak@google.com>
8832 * NEWS: Mention gdb.Type.optimized_out method.
8833 * python/py-type.c (typy_optimized_out): New function.
8835 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8837 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8839 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8841 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8842 (initialize_utils): Move call of init_page_info() to ...
8843 * top.c (gdb_init): ... here.
8845 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8847 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8848 (tui_sigwinch_handler): Still update our idea of
8849 the terminal's width and height even when TUI is not active.
8851 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8853 * utils.h (set_screen_width_and_height): Declare.
8854 * utils.c (set_screen_width_and_height): Define.
8855 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8857 2015-04-28 Gary Benson <gbenson@redhat.com>
8859 * infrun.c (solist.h): New include.
8860 (follow_exec): Use exec_file_find to prefix execd_pathname
8863 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8865 * tui/tui-source.c (tui_set_source_content): Avoid calling
8866 strcpy() when offset is 0.
8868 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8871 * tui/tui-data.c (tui_free_window): Don't free the locator
8872 window when passed an SRC_WIN or a DISASSEM_WIN.
8874 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8876 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8877 (tui_win_content): Move declaration.
8878 (struct tui_gen_win_info): Give 'content' field the
8879 type tui_win_content.
8880 * tui/tui-data.c (init_content_element): Remove redundant and
8882 (tui_add_content_elements): Remove erroneous cast.
8883 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8885 (tui_get_begin_asm_address): Likewise.
8886 * tui/tui-regs.c (tui_show_registers): Likewise.
8887 (tui_show_register_group): Likewise.
8888 (tui_display_registers_from): Likewise.
8889 (tui_check_register_values): Likewise.
8890 * tui/tui-source.c (tui_set_source_content): Likewise.
8891 (tui_set_source_content_nil): Likewise.
8892 (tui_source_is_displayed): Likewise.
8893 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8894 (tui_set_locator_fullname): Likewise.
8895 (tui_set_locator_info): Likewise.
8896 (tui_show_frame_info): Likewise.
8897 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8898 (tui_show_source_line): Likewise.
8899 (tui_horizontal_source_scroll): Likewise.
8900 (tui_update_breakpoint_info): Likewise.
8901 (tui_set_exec_info_content): Likewise.
8902 (tui_show_exec_info_content): Likewise.
8903 (tui_alloc_source_buffer): Likewise.
8904 (tui_line_is_displayed): Likewise.
8905 (tui_addr_is_displayed): Likewise.
8907 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8909 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8910 event if PL_FLAG_EXEC is set.
8911 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8912 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8913 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8914 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8915 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8917 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8919 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8920 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8921 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8922 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8923 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8924 [PT_LWPINFO] (fbsd_wait): New function.
8925 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8926 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8927 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8928 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8929 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8930 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8931 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8932 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8933 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8935 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8936 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8937 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8938 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8939 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8940 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8941 Set "to_post_attach" to "fbsd_post_attach".
8943 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8945 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8946 (fbsd_find_memory_regions): Mark static.
8947 (fbsd_nat_add_target): New function.
8948 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8949 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8950 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8951 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8952 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8953 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8955 2015-04-27 Gary Benson <gbenson@redhat.com>
8957 * objfiles.c (allocate_objfile): Do not attempt to expand name
8958 if name is a "target:" filename.
8959 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8960 to load auto-load scripts for objfiles with "target:" filenames.
8962 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8964 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8965 (enum s390_vector_abi_kind): New enum.
8966 (struct gdbarch_tdep)<vector_abi>: New field.
8967 (s390_effective_inner_type): Add parameter min_size. Stop
8968 unwrapping if the inner type is smaller than min_size.
8969 (s390_function_arg_float): Adjust call to
8970 s390_effective_inner_type.
8971 (s390_function_arg_vector): New function.
8972 (s390_function_arg_integer): Adjust comment.
8973 (struct s390_arg_state)<vr>: New field.
8974 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8975 arguments according to vector ABI when appropriate.
8976 (s390_push_dummy_call): Initialize the argument state's field
8977 'vr'. Adjust calls to s390_handle_arg.
8978 (s390_register_return_value): Handle vector return values.
8979 (s390_return_value): Apply the "register" return value convention
8980 to a vector when appropriate.
8981 (s390_gdbarch_init): Initialize tdep->vector_abi.
8982 * NEWS: Announce S390 vector ABI support.
8984 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8986 * s390-linux-tdep.c (s390_return_value_convention): Remove
8987 function. Inline its logic...
8988 (s390_return_value): ...here. Instead, move the handling of the
8989 "register" return value convention...
8990 (s390_register_return_value): ...here. New function.
8992 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8995 (is_float_singleton): Remove function. Move the "singleton" part
8997 (s390_effective_inner_type): ...here. New function.
8998 (is_float_like): Remove function. Inline its logic...
8999 (s390_function_arg_float): ...here.
9000 (is_pointer_like, is_integer_like, is_struct_like): Remove
9001 functions. Inline their logic...
9002 (s390_function_arg_integer): ...here.
9003 (s390_function_arg_pass_by_reference): Remove function.
9004 (extend_simple_arg): Remove function.
9005 (alignment_of): Remove function.
9006 (struct s390_arg_state): New structure.
9007 (s390_handle_arg): New function.
9008 (s390_push_dummy_call): Move parameter placement logic to the new
9009 function s390_handle_arg. Call it for calculating the stack area
9010 sizes first, and again for actually writing the parameters.
9012 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9014 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9015 false if the argument is zero.
9017 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9019 * ada-lang.c (template_to_static_fixed_type): Return input type
9020 when it is already fixed. Cache the input type itself when not
9021 creating a static fixed copy. Make it explicit that we never
9022 molestate the input type.
9023 * gdbtypes.c (resolve_dynamic_struct): Reset the
9024 TYPE_TARGET_TYPE field for resolved copies.
9026 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9028 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9029 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9030 (template_to_static_fixed_type): Call ada_check_typedef only
9033 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9035 * cli/cli-dump.c (srec_dump_command): Add internationalization
9037 (ihex_dump_command): Likewise.
9038 (tekhex_dump_command): Likewise.
9039 (binary_dump_command): Likewise.
9040 (binary_append_command): Likewise.
9042 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9044 * cli/cli-dump.c (verilog_cmdlist): New variable.
9045 (dump_verilog_memory): New function.
9046 (dump_verilog_value): New function.
9047 (verilog_dump_command): New function.
9048 (_initialize_cli_dump): Add new commands to support verilog dump
9050 * NEWS: Add entry for "dump verilog".
9052 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9054 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9055 descriptive type when there is none.
9057 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9059 * tui/tui-win.c (tui_async_resize_screen): Call
9060 rl_resize_terminal().
9062 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9064 * windows-nat.c (handle_output_debug_string): Don't change
9065 current_event.dwThreadId.
9066 (get_windows_debug_event): Use thread_id, rather than relying on
9067 current_event.dwThreadId being changed.
9069 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9071 * windows-nat.c (windows_continue): Report an error if
9072 ContinueDebugEvent() fails.
9074 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9076 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9078 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9080 * windows-nat.c (get_windows_debug_event): Replace retval with
9081 thread_id throughout. Update stale comment.
9083 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9085 * windows-nat.c (get_windows_debug_event): Don't use ternary
9086 conditional operator.
9088 2015-04-21 Pierre Muller <muller@sourceware.org>
9091 p-exp.y (yylex): Reorganize code to return the matched pattern
9092 for a field of this.
9094 2015-04-21 Gary Benson <gbenson@redhat.com>
9096 * common/fileio.h (fileio_to_host_openflags): New declaration.
9097 * common/fileio.c (fcntl.h): New include.
9098 (fileio_to_host_openflags): New function, factored out from...
9099 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9102 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9104 * rl78-tdep.c (RL78_SP_ADDR): Define.
9105 (opc_reg_to_gdb_regnum): New static function.
9106 (rl78_analyze_prologue): Recognize instructions forming slightly
9107 more interesting prologues.
9109 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9112 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9113 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9114 TYPE_CODE_REF types so that they are not considered as dynamic
9115 depending on the referenced type.
9116 (resolve_dynamic_type_internal): Likewise.
9118 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9121 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9122 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9123 "top_level" parameter.
9124 (resolve_dynamic_type_internal): Remove the unused "top_level"
9125 parameter. Update call to is_dynamic_type_internal.
9126 (is_dynamic_type): Update call to is_dynamic_type_internal.
9127 (resolve_dynamic_range): Update call to
9128 resolve_dynamic_type_internal.
9129 (resolve_dynamic_union): Likewise.
9130 (resolve_dynamic_struct): Likewise.
9131 (resolve_dynamic_type): Likewise.
9133 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9135 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9138 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9140 * reply_mig_hack.awk: Robustify parsing.
9142 * reply_mig_hack.awk: Don't bother to declare an intermediate
9143 function pointer variable.
9145 2015-04-17 Doug Evans <dje@google.com>
9147 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9148 to "exec_displacement" to avoid confusion with inner use of the name.
9150 2015-04-17 Pedro Alves <palves@redhat.com>
9152 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9153 if HW point of TYPE isn't supported.
9155 2015-04-17 Yao Qi <yao.qi@linaro.org>
9156 Pedro Alves <palves@redhat.com>
9158 * target.h (target_can_use_hardware_watchpoint): Update comments.
9159 Remove trailing ";".
9161 2015-04-17 Gary Benson <gbenson@redhat.com>
9163 * remote.c (remote_add_inferior): New argument try_open_exec.
9164 If nonzero, attempt to open the inferior's executable file as
9165 the main executable if no main executable is open already.
9166 All callers updated.
9167 * NEWS: Mention that GDB now supports automatic location and
9168 retrieval of executable + files from remote targets.
9170 2015-04-17 Gary Benson <gbenson@redhat.com>
9172 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9173 * remote.c (PACKET_qXfer_exec_file): Likewise.
9174 (remote_protocol_features): Register the
9175 "qXfer:exec-file:read" feature.
9176 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9177 (remote_pid_to_exec_file): New function.
9178 (init_remote_ops): Initialize to_pid_to_exec_file.
9179 (_initialize_remote): Register new "set/show remote
9180 pid-to-exec-file-packet" command.
9181 * NEWS: Announce new qXfer:exec-file:read packet.
9183 2015-04-17 Gary Benson <gbenson@redhat.com>
9185 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9187 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9188 New function, factored out from...
9189 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9191 2015-04-17 Gary Benson <gbenson@redhat.com>
9193 * exec.c (solist.h): New include.
9194 (exec_file_locate_attach): Prefix absolute executable
9195 paths with gdb_sysroot if set.
9196 * NEWS: Mention that executable paths may be prepended
9199 2015-04-17 Gary Benson <gbenson@redhat.com>
9201 * solist.h (exec_file_find): New declaration.
9202 * solib.c (solib_find_1): New function, factored out from...
9203 (solib_find): ...here.
9204 (exec_file_find): New function.
9206 2015-04-17 Gary Benson <gbenson@redhat.com>
9208 * gdbcore.h (exec_file_locate_attach): New declaration.
9209 * exec.c (exec_file_locate_attach): New function, factored
9211 * infcmd.c (attach_command_post_wait): ...here.
9213 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9215 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9217 2015-04-16 Yao Qi <yao.qi@linaro.org>
9219 * infrun.c (maybe_software_singlestep): Declare.
9220 (displaced_step_fixup): Call maybe_software_singlestep.
9222 2015-04-15 Doug Evans <dje@google.com>
9224 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9226 2015-04-15 Doug Evans <dje@google.com>
9228 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9230 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9232 * python/lib/gdb/command/unwinders.py: Add parentheses.
9234 2015-04-15 Yao Qi <yao.qi@linaro.org>
9236 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9238 2015-04-15 Yao Qi <yao.qi@linaro.org>
9240 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9242 2015-04-15 Yao Qi <yao.qi@linaro.org>
9244 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9245 dsc->insn_size instead of 4.
9247 2015-04-14 Gary Benson <gbenson@redhat.com>
9249 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9250 * minidebug.c (lzma_stat): Likewise.
9251 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9252 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9254 2015-04-13 Stan Shebs <stanshebs@google.com>
9256 * MAINTAINERS: Update my email address.
9258 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9260 * amd64-tdep.c (amd64_target_description): New function.
9261 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9262 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9263 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9264 x86 extended save area.
9265 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9266 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9267 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9268 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9269 "amd64fbsd_read_description".
9270 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9271 (amd64fbsd_supply_xstateregset): New function.
9272 (amd64fbsd_collect_xstateregset): New function.
9273 Add "amd64fbsd_xstateregset".
9274 (amd64fbsd_iterate_over_regset_sections): New function.
9275 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9276 "I386_FBSD_XSAVE_XCR0_OFFSET".
9277 Add "iterate_over_regset_sections" gdbarch method.
9278 Add "core_read_description" gdbarch method.
9279 * i386-tdep.c (i386_target_description): New function.
9280 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9281 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9282 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9283 x86 extended save area.
9284 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9285 * i386bsd-nat.h: Export i386bsd_xsave_len.
9286 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9287 (_initialize_i386fbsd_nat): Set "to_read_description" to
9288 "i386fbsd_read_description".
9289 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9290 (i386fbsd_core_read_description): New function.
9291 (i386fbsd_supply_xstateregset): New function.
9292 (i386fbsd_collect_xstateregset): New function.
9293 Add "i386fbsd_xstateregset".
9294 (i386fbsd_iterate_over_regset_sections): New function.
9295 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9296 "I386_FBSD_XSAVE_XCR0_OFFSET".
9297 Add "iterate_over_regset_sections" gdbarch method.
9298 Add "core_read_description" gdbarch method.
9299 * i386fbsd-tdep.h: New file.
9301 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9303 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9304 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9306 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9308 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9310 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9312 * defs.h (xdb_commands): Remove declaration.
9313 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9314 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9315 * infcmd.c (run_no_args_command, go_command): Remove.
9316 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9317 * infrun.c (xdb_handle_command): Remove.
9318 (_initialize_infrun): Remove xdb_commands for lz and z.
9319 * main.c (xdb_commands): Remove variable.
9320 (captured_main): Remove "xdb" from long_options.
9321 (print_gdb_help): Remove --xdb from help.
9322 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9323 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9324 * stack.c (backtrace_full_command, args_plus_locals_info)
9325 (current_frame_command): Remove.
9326 (_initialize_stack): Remove xdb_commands for t, T and l.
9327 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9328 * thread.c (_initialize_thread): Remove xdb_commands condition.
9329 * tui/tui-layout.c (tui_toggle_layout_command)
9330 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9331 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9332 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9333 (tui_scroll_regs_backward_command): Remove.
9334 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9335 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9336 (_initialize_tui_win): Remove xdb_commands for U and w.
9337 * utils.c (pagination_on_command, pagination_off_command): Remove.
9338 (initialize_utils): Remove xdb_commands for am and sm.
9340 2015-04-10 Pedro Alves <palves@redhat.com>
9342 * infrun.c (displaced_step_fixup): Switch to the event ptid
9343 earlier. If the thread stopped for a watchpoint and the
9344 target/arch has non-continuable watchpoints, cancel the displaced
9346 (resume): Don't start a displaced step if in-line step-over info
9349 2015-04-10 Pedro Alves <palves@redhat.com>
9351 * infrun.c (displaced_step_in_progress): New function.
9352 (do_target_resume): Advise target to report all signals if
9355 2015-04-10 Pedro Alves <palves@redhat.com>
9358 * infrun.c (process_event_stop_test): Don't assume a step-resume
9359 is set if tp->stepped_breakpoint is true.
9361 2015-04-10 Yao Qi <yao.qi@linaro.org>
9363 * arm-tdep.c (install_alu_reg): Update comment.
9364 (thumb_copy_alu_reg): Remove local variable rn. Update
9365 debugging message. Use r2 instead of r1 in the modified
9368 2015-04-10 Pedro Alves <palves@redhat.com>
9371 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9372 linux_displaced_step_location as gdbarch_displaced_step_location
9374 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9375 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9376 * linux-tdep.c (linux_displaced_step_location): New function,
9377 based on ppc_linux_displaced_step_location.
9378 * linux-tdep.h (linux_displaced_step_location): New declaration.
9379 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9380 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9382 (ppc_linux_init_abi): Install linux_displaced_step_location as
9383 gdbarch_displaced_step_location hook, even without Cell/B.E..
9384 (_initialize_ppc_linux_tdep): Don't install
9385 ppc_linux_inferior_created as inferior_created observer.
9386 * s390-linux-tdep.c (s390_gdbarch_init): Install
9387 linux_displaced_step_location as gdbarch_displaced_step_location
9390 2015-04-09 Gary Benson <gbenson@redhat.com>
9392 * common/common-remote-fileio.h: Rename to...
9393 * common/fileio.h: ...this. Update all references.
9394 (remote_fileio_to_fio_error): Rename to...
9395 (host_to_fileio_error): ...this.
9396 (remote_fileio_to_be): Rename to...
9397 (host_to_bigendian): ...this. Update all callers.
9398 (remote_fileio_to_fio_uint): Rename to...
9399 (host_to_fileio_uint): ...this. Update all callers.
9400 (remote_fileio_to_fio_time): Rename to...
9401 (host_to_fileio_time): ...this. Update all callers.
9402 (remote_fileio_to_fio_stat): Rename to...
9403 (host_to_fileio_stat): ...this.
9404 Update all references.
9405 * common/common-remote-fileio.c: Rename to...
9406 * common/fileio.c: ...this. Update all references.
9407 (remote_fileio_to_fio_error): Rename to...
9408 (host_to_fileio_error): ...this. Update all callers.
9409 (remote_fileio_mode_to_target): Rename to...
9410 (fileio_mode_pack): ...this. Update all callers.
9411 (remote_fileio_to_fio_mode): Rename to...
9412 (host_to_fileio_mode): ...this. Update all callers.
9413 (remote_fileio_to_fio_ulong): Rename to...
9414 (host_to_fileio_ulong): ...this. Update all callers.
9415 (remote_fileio_to_fio_stat): Rename to...
9416 (host_to_fileio_stat): ...this. Update all callers.
9418 2015-04-09 Andy Wingo <wingo@igalia.com>
9420 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9421 (frame_functions): Bind gdbscm_frame_read_register to
9422 frame-read-register.
9423 * guile/lib/gdb.scm (frame-read-register): Export.
9425 2015-04-09 Gary Benson <gbenson@redhat.com>
9427 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9429 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9430 New function, factored out the named functions below.
9431 * inf-child.c (gdb/fileio.h): Remove include.
9432 (common-remote-fileio.h): New include.
9433 (inf_child_errno_to_fileio_error): Remove function. Update
9434 all callers to use remote_fileio_to_fio_error.
9435 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9437 2015-04-09 Andy Wingo <wingo@igalia.com>
9439 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9441 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9443 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9444 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9445 * configure: Regenerated.
9447 2015-04-09 Pedro Alves <palves@redhat.com>
9449 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9450 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9451 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9452 * gnulib/import/Makefile.am: Update.
9453 * gnulib/import/Makefile.in: Update.
9454 * gnulib/import/m4/gnulib-cache.m4: Update.
9455 * gnulib/import/m4/gnulib-comp.m4: Update.
9456 * gnulib/import/m4/strtok_r.m4: New file.
9457 * gnulib/import/strtok_r.c: New file.
9459 2015-04-09 Pedro Alves <palves@redhat.com>
9461 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9462 "called too early to check prototype".
9464 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9467 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9468 use a caching mechanism. Adjust comments and code to reflect
9469 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9470 (cmdpy_completer_handle_brkchars): Adjust call to
9471 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9472 (cmdpy_completer): Likewise.
9474 2015-04-08 Yao Qi <yao.qi@linaro.org>
9476 * spu-tdep.c (spu_gdbarch_init): Don't call
9477 set_gdbarch_cannot_step_breakpoint.
9479 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9481 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9483 2015-04-07 Pedro Alves <palves@redhat.com>
9485 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9486 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9487 (delete_exited_threads): New declaration.
9488 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9489 * linux-nat.c (linux_nat_update_thread_list): New function.
9490 (linux_nat_add_target): Install it.
9491 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9492 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9493 (delete_exited_threads): New function.
9495 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9497 * infrun.c (resume) <displaced stepping debug output>: Get the
9498 leader thread's regcache, not resume_ptid's.
9500 2015-04-06 Doug Evans <xdje42@gmail.com>
9502 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9504 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9505 Include symbol domain in debugging output.
9507 2015-04-06 Pedro Alves <palves@redhat.com>
9508 Bernd Edlinger <bernd.edlinger@hotmail.de>
9510 * configure.ac: Remove the mingw32-specific stub-termcap.o
9511 fallback, and instead fallback to the stub termcap on all hosts.
9512 * configure: Regenerate.
9513 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9516 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9518 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9519 "top_level" parameter.
9520 (resolve_dynamic_type_internal): Remove the unused "top_level"
9521 parameter. Update call to is_dynamic_type_internal.
9522 (is_dynamic_type): Update call to is_dynamic_type_internal.
9523 (resolve_dynamic_range): Update call to
9524 resolve_dynamic_type_internal.
9525 (resolve_dynamic_union): Likewise.
9526 (resolve_dynamic_struct): Likewise.
9527 (resolve_dynamic_type): Likewise.
9529 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9531 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9532 TYPE_CODE_REF types so that they are not considered as dynamic
9533 depending on the referenced type.
9534 (resolve_dynamic_type_internal): Likewise.
9536 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9538 * Makefile.in (top_srcdir): New.
9539 * configure: Regenerated.
9541 2015-04-02 Gary Benson <gbenson@redhat.com>
9543 * NEWS: Announce the new default sysroot of "target:".
9545 2015-04-02 Gary Benson <gbenson@redhat.com>
9547 * main.c (captured_main): Set gdb_sysroot to "target:"
9548 if not otherwise set.
9550 2015-04-02 Gary Benson <gbenson@redhat.com>
9552 * exec.c (exec_file_attach): Support "target:" filenames.
9554 2015-04-02 Gary Benson <gbenson@redhat.com>
9556 * solib.c (solib_find): Strip "target:" prefix from sysroot
9557 if accessing local files.
9559 2015-04-02 Gary Benson <gbenson@redhat.com>
9561 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9562 checks and error messages.
9564 2015-04-02 Gary Benson <gbenson@redhat.com>
9566 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9567 (remote_filename_p): Remove declaration.
9568 (remote_bfd_open): Likewise.
9569 * remote.c (remote_bfd_iovec_open): Remove function.
9570 (remote_bfd_iovec_close): Likewise.
9571 (remote_bfd_iovec_pread): Likewise.
9572 (remote_bfd_iovec_stat): Likewise.
9573 (remote_filename_p): Likewise.
9574 (remote_bfd_open): Likewise.
9575 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9576 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9577 (gdb_bfd_open_maybe_remote): Remove function.
9578 (symfile_bfd_open): Replace remote filename check with
9579 target filename check.
9580 (reread_symbols): Use gdb_bfd_open.
9581 * build-id.c (gdbcore.h): New include.
9582 (build_id_to_debug_bfd): Use gdb_bfd_open.
9583 * infcmd.c (attach_command_post_wait): Remove remote filename
9585 * solib.c (solib_find): Replace remote-specific handling with
9586 target-specific handling. Update comments where necessary.
9587 (solib_bfd_open): Replace remote-specific handling with
9588 target-specific handling.
9589 (gdb_sysroot_changed): New function.
9590 (_initialize_solib): Call the above when gdb_sysroot changes.
9591 * windows-tdep.c (gdbcore.h): New include.
9592 (windows_xfer_shared_library): Use gdb_bfd_open.
9594 2015-04-02 Gary Benson <gbenson@redhat.com>
9596 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9597 (is_target_filename): New declaration.
9598 (gdb_bfd_has_target_filename): Likewise.
9599 (gdb_bfd_open): Update documentation comment.
9600 * gdb_bfd.c (target.h): New include.
9601 (gdb/fileio.h): Likewise.
9602 (is_target_filename): New function.
9603 (gdb_bfd_has_target_filename): Likewise.
9604 (fileio_errno_to_host): Likewise.
9605 (gdb_bfd_iovec_fileio_open): Likewise.
9606 (gdb_bfd_iovec_fileio_pread): Likewise.
9607 (gdb_bfd_iovec_fileio_close): Likewise.
9608 (gdb_bfd_iovec_fileio_fstat): Likewise.
9609 (gdb_bfd_open): Use target fileio to access paths prefixed
9610 with "target:" where necessary.
9612 2015-04-02 Gary Benson <gbenson@redhat.com>
9614 * target.h (struct target_ops) <to_filesystem_is_local>:
9616 (target_filesystem_is_local): New macro.
9617 * target-delegates.c: Regenerate.
9618 * remote.c (remote_filesystem_is_local): New function.
9619 (init_remote_ops): Initialize to_filesystem_is_local.
9621 2015-04-02 Gary Benson <gbenson@redhat.com>
9623 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9624 (target_fileio_fstat): New declaration.
9625 * target.c (target_fileio_fstat): New function.
9626 * inf-child.c (inf_child_fileio_fstat): Likewise.
9627 (inf_child_target): Initialize to_fileio_fstat.
9628 * remote.c (init_remote_ops): Likewise.
9630 2015-04-01 Sasha Smundak <asmundak@google.com>
9632 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9633 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9634 (py-unwind.o): New recipe.
9635 * NEWS: mention Python frame unwinding.
9636 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9637 gdb/unwinder.py and gdb/command/unwinder.py
9638 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9640 (execute_unwinders): New function.
9641 * python/lib/gdb/command/unwinders.py: New file.
9642 * python/lib/gdb/unwinder.py: New file.
9643 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9644 (objfpy_dealloc): Decrement frame_unwinders reference count.
9645 (objfpy_initialize): Create frame_unwinders list.
9646 (objfpy_get_frame_unwinders): New function.
9647 (objfpy_set_frame_unwinders): Ditto.
9648 (objfile_getset): Add frame_unwinders attribute to Objfile.
9649 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9650 (pspy_dealloc): Decrement frame_unwinders reference count.
9651 (pspy_initialize): Create frame_unwinders list.
9652 (pspy_get_frame_unwinders): New function.
9653 (pspy_set_frame_unwinders): Ditto.
9654 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9655 * python/py-unwind.c: New file.
9656 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9657 (objpy_get_frame_unwinders): New prototype.
9658 (gdbpy_initialize_unwind): New prototype.
9659 * python/python.c (gdbpy_apply_type_printers): Call
9660 gdbpy_initialize_unwind.
9662 2015-04-01 Pedro Alves <palves@redhat.com>
9664 * infrun.c (resume): Check currently_stepping after clearing
9665 stepped_breakpoint, not before.
9667 2015-04-01 Pedro Alves <palves@redhat.com>
9669 * infrun.c (print_target_wait_results): Print all the ptid
9672 2015-04-01 Pedro Alves <palves@redhat.com>
9674 * infrun.c (keep_going): Also discard cleanups if inserting
9677 2015-04-01 Pedro Alves <palves@redhat.com>
9679 * infrun.c (wait_for_inferior): Install the
9680 finish_thread_state_cleanup cleanup across the whole function, not
9681 just around handle_inferior_event.
9683 2015-04-01 Pedro Alves <palves@redhat.com>
9685 * infrun.c (resume) <step past permanent breakpoint>: Use
9688 2015-04-01 Pedro Alves <palves@redhat.com>
9690 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9692 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9694 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9696 2015-04-01 Pedro Alves <palves@redhat.com>
9698 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9699 list if it was marked exited.
9701 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9703 * configure: Regenerated.
9705 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9706 Jan Kratochvil <jan.kratochvil@redhat.com>
9707 Oleg Nesterov <oleg@redhat.com>
9710 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9711 New enum identifying the various options of the coredump_filter
9713 (struct smaps_vmflags): New struct.
9714 (use_coredump_filter): New variable.
9715 (decode_vmflags): New function.
9716 (mapping_is_anonymous_p): Likewise.
9717 (dump_mapping_p): Likewise.
9718 (linux_find_memory_regions_full): New variables
9719 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9720 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9721 parsing of its information. Implement memory mapping filtering
9722 based on its contents.
9723 (show_use_coredump_filter): New function.
9724 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9725 * NEWS: Mention the possibility of using the
9726 '/proc/PID/coredump_filter' file when generating a corefile.
9727 Mention new command 'set use-coredump-filter'.
9729 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9731 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9732 read_memory_unsigned_integer.
9734 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9736 * Makefile.in (ZLIB): New.
9737 (ZLIBINC): Likewise.
9738 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9739 (CLIBS): Add $(ZLIB).
9740 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9742 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9743 * top.c (print_gdb_configuration): Remove --with-zlib and
9745 * config.in: Regenerated.
9746 * configure: Likewise.
9748 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9750 * NEWS: Mention info os cpus support.
9751 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9752 (struct osdata_type): Add cpus entry, reorder the entries in
9755 2015-03-31 Matthias Klose <doko@ubuntu.com>
9757 * compile/compile.c (compile_to_object): Allow triplets with or
9760 2015-03-30 Doug Evans <dje@google.com>
9763 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9764 klass in VAR_DOMAIN.
9766 2015-03-30 Gary Benson <gbenson@redhat.com>
9768 * remote.c (remote_mourn_1): Remove function. Update all callers
9769 to use remote_mourn.
9770 (extended_remote_mourn_1): Remove function. Update all callers
9771 to use extended_remote_mourn.
9772 (extended_remote_attach_1): Remove function. Update all callers
9773 to use extended_remote_attach.
9775 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9777 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9778 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9779 (ALLDEPFILES): Add ft32-tdep.c.
9780 * configure.tgt: Add FT32 entry.
9781 * ft32-tdep.c: New file, FT32 target-dependent code.
9782 * ft32-tdep.h: New file, FT32 target-dependent code.
9784 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9787 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9789 * printcmd.c (print_command_1): Move expr variable scope.
9791 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9793 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9795 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9797 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9800 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9802 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9803 exception raised while parsing the probe arguments.
9804 Force parsing to be done using the C language parser.
9805 * expression.h (parse_expression_with_language): Declare.
9806 * parse.c (parse_expression_with_language): New function.
9808 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9810 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9812 2015-03-26 Andy Wingo <wingo@igalia.com>
9815 * dwarf2read.c (struct partial_die_info): Add has_const_value
9817 (add_partial_symbol): Don't punt on symbols that have const_value
9819 (read_partial_die): Detect DW_AT_const_value.
9821 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9824 * printcmd.c (print_command_1): Move expr variable scope.
9826 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9829 * printcmd.c (validate_format): Make the parameter cmdname const.
9831 2015-03-26 Don Breazeal <donb@codesourcery.com>
9833 * remote.c (_initialize_remote): Update comment.
9835 2015-03-26 Pedro Alves <palves@redhat.com>
9836 Jon TURNEY <jon.turney@dronecode.org.uk>
9838 * coffread.c (coff_symfile_read): When constructing the name of an
9839 import stub symbol from import symbol for amd64, only skip the
9840 char after _imp_ if the target is underscored (like i386) and the
9841 char is indeed the target's leading char.
9843 2015-03-25 Pedro Alves <palves@redhat.com>
9845 * target.h <to_async>: Replace 'callback' and 'context' parameters
9846 with boolean 'enable' parameter.
9847 (target_async): Replace CALLBACK and CONTEXT parameters with
9848 boolean ENABLE parameter.
9849 * inf-loop.c (inferior_event_handler): Adjust.
9850 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9851 (linux_nat_resume): Adjust.
9852 (async_client_callback, async_client_context): Delete.
9853 (handle_target_event): Call inferior_event_handler directly.
9854 (linux_nat_async): Replace 'callback' and 'context' parameters
9855 with boolean 'enable' parameter. Adjust. Remove references to
9856 async_client_callback and async_client_context.
9857 (linux_nat_close): Adjust.
9858 * record-btrace.c (record_btrace_async): Replace 'callback' and
9859 'context' parameters with boolean 'enable' parameter. Adjust.
9860 (record_btrace_resume): Adjust.
9861 * record-full.c (record_full_async): Replace 'callback' and
9862 'context' parameters with boolean 'enable' parameter. Adjust.
9863 (record_full_resume, record_full_core_resume): Adjust.
9864 * remote.c (struct remote_state) <async_client_callback,
9865 async_client_context>: Delete fields.
9866 (remote_start_remote, extended_remote_attach_1, remote_resume)
9867 (extended_remote_create_inferior): Adjust.
9868 (remote_async_serial_handler): Call inferior_event_handler
9870 (remote_async): Replace 'callback' and 'context' parameters with
9871 boolean 'enable' parameter. Adjust.
9872 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9874 * target-delegates.c: Regenerate.
9876 2015-03-25 Gary Benson <gbenson@redhat.com>
9877 Pedro Alves <palves@redhat.com>
9879 * target.c (fileio_ft_t): New typedef, define object vector.
9880 (fileio_fhandles): New static variable.
9881 (is_closed_fileio_fh): New macro.
9882 (lowest_closed_fd): New static variable.
9883 (acquire_fileio_fd): New function.
9884 (release_fileio_fd): Likewise.
9885 (fileio_fd_to_fh): New macro.
9886 (target_fileio_open): Wrap the file descriptor on success.
9887 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9888 (target_fileio_pread): Likewise.
9889 (target_fileio_close): Likewise.
9891 2015-03-24 Pedro Alves <palves@redhat.com>
9893 * thread.c (thread_apply_all_command): Take exited threads into
9896 2015-03-24 Pedro Alves <palves@redhat.com>
9898 * infrun.c (resume, proceed): Mention
9899 switch_back_to_stepped_thread, not switch_back_to_stepping.
9901 2015-03-24 Pedro Alves <palves@redhat.com>
9903 * infrun.c (user_visible_resume_ptid): Rewrite going from
9904 most-locked to unlocked instead of the opposite. Move comment ...
9905 * infrun.h (user_visible_resume_ptid): ... here.
9907 2015-03-24 Pedro Alves <palves@redhat.com>
9909 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9910 to resume the event lwp. Use the lwp's ptid instead of the passed
9911 in (maybe wildcard) ptid.
9912 (stop_wait_callback): Tweak debug log output.
9913 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9915 (linux_nat_filter_event): In debug output, distinguish a
9916 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9917 before trying to resume the lwp.
9919 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9921 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9922 pointer indirection.
9923 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9924 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9926 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9928 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9929 Renames DYN_ATTR_DATA_LOCATION.
9930 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9931 DYN_ATTR_DATA_LOCATION.
9932 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9933 instead of DYN_ATTR_DATA_LOCATION.
9935 2015-03-24 Pedro Alves <palves@redhat.com>
9937 * breakpoint.c (until_break_command): Adjust call to proceed.
9938 * gdbthread.h (struct thread_control_state) <stepping_command>:
9940 * infcall.c (run_inferior_call): Adjust call to proceed.
9941 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9942 Adjust calls to proceed.
9943 (set_step_frame): Set the current thread's step_start_function
9945 (step_once): Adjust calls to proceed.
9946 (jump_command, signal_command, until_next_command)
9947 (finish_backward, finish_forward, proceed_after_attach_callback)
9948 (attach_command_post_wait): Adjust calls to proceed.
9949 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9950 (do_target_resume): New function, factored out from ...
9951 (resume): ... here. Remove 'step' parameter. Instead, check
9952 currently_stepping to determine whether the thread should be
9954 (proceed): Remove 'step' parameter and don't set the thread's
9955 step_start_function here. Adjust call to 'resume'.
9956 (handle_inferior_event): Adjust calls to 'resume'.
9957 (switch_back_to_stepped_thread): Use do_target_resume instead of
9959 (keep_going): Adjust calls to 'resume'.
9960 * infrun.h (proceed): Remove 'step' parameter.
9962 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9964 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9966 2015-03-24 Pedro Alves <palves@redhat.com>
9968 * gdbthread.h (struct thread_control_state) <stepping_command>:
9970 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9971 the thread's stepping_command field.
9972 * infrun.c (resume): Check the thread's stepping_command flag to
9973 determine which threads should be resumed. Rename 'entry_step'
9975 (clear_proceed_status_thread): Clear 'stepping_command'.
9976 (schedlock_applies): Change parameter type to struct thread_info
9978 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9979 (switch_back_to_stepped_thread): Adjust calls to
9980 'schedlock_applies'.
9981 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9983 2015-03-24 Pedro Alves <palves@redhat.com>
9985 * infrun.c (step_start_function): Delete and ...
9986 * gdbthread.h (struct thread_control_state) <step_start_function>:
9987 ... now a field here.
9988 * infrun.c (clear_proceed_status_thread): Clear the thread's
9989 step_start_function.
9990 (proceed, process_event_stop_test, print_stop_event): Adjust.
9992 2015-03-24 Pedro Alves <palves@redhat.com>
9994 * infrun.c (proceed): No longer handle negative step.
9996 2015-03-24 Gary Benson <gbenson@redhat.com>
9998 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9999 (x86_linux_prepare_to_resume): Likewise.
10000 * x86-linux-nat.c (x86_linux_new_thread):
10001 Moved to nat/x86-linux.c.
10002 (x86_linux_prepare_to_resume): Likewise.
10003 * nat/x86-linux.c (x86_linux_new_thread): New function.
10004 (x86_linux_prepare_to_resume): Likewise.
10006 2015-03-24 Gary Benson <gbenson@redhat.com>
10008 * nat/x86-linux-dregs.h: New file.
10009 * nat/x86-linux-dregs.c: Likewise.
10010 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10011 (x86-linux-dregs.o): New rule.
10012 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10013 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10014 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10015 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10016 (x86_linux_dr_get): Likewise.
10017 (x86_linux_dr_set): Likewise.
10018 (x86_linux_dr_get_addr): Likewise.
10019 (x86_linux_dr_get_control): Likewise.
10020 (x86_linux_dr_get_status): Likewise.
10021 (update_debug_registers_callback): Likewise.
10022 (x86_linux_dr_set_control): Likewise.
10023 (x86_linux_dr_set_addr): Likewise.
10024 (x86_linux_update_debug_registers): Likewise.
10026 2015-03-24 Gary Benson <gbenson@redhat.com>
10028 * x86-linux-nat.c (x86_linux_update_debug_registers):
10029 New function, factored out from...
10030 (x86_linux_prepare_to_resume): ...this.
10032 2015-03-24 Gary Benson <gbenson@redhat.com>
10034 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10035 (x86_linux_dr_set): Likewise.
10036 (x86_linux_dr_get_addr): Likewise.
10037 (x86_linux_dr_get_control): Likewise.
10038 (x86_linux_dr_get_status): Likewise.
10039 (update_debug_registers_callback): Likewise.
10040 (x86_linux_dr_set_control): Likewise.
10041 (x86_linux_dr_set_addr): Likewise.
10042 (x86_linux_prepare_to_resume): Likewise.
10043 (x86_linux_new_thread): Likewise.
10045 2015-03-24 Gary Benson <gbenson@redhat.com>
10047 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10048 (x86_linux_new_thread): Rename argument.
10050 2015-03-24 Gary Benson <gbenson@redhat.com>
10052 * nat/x86-linux.h: New file.
10053 * nat/x86-linux.c: Likewise.
10054 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10055 (x86-linux.o): New rule.
10056 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10057 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10058 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10059 (lwp_set_arch_private_info): New declaration.
10060 (lwp_arch_private_info): Likewise.
10061 * linux-nat.c (lwp_set_arch_private_info): New function.
10062 (lwp_arch_private_info): Likewise.
10063 * x86-linux-nat.c: Include nat/x86-linux.h.
10064 (arch_lwp_info): Removed structure.
10065 (update_debug_registers_callback):
10066 Use lwp_set_debug_registers_changed.
10067 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10068 and lwp_set_debug_registers_changed.
10069 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10071 2015-03-24 Gary Benson <gbenson@redhat.com>
10073 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10074 (lwp_is_stopped): Likewise.
10075 (lwp_stop_reason): Likewise.
10076 * linux-nat.c (ptid_of_lwp): New function.
10077 (lwp_is_stopped): Likewise.
10078 (lwp_is_stopped_by_watchpoint): Likewise.
10079 * x86-linux-nat.c (update_debug_registers_callback):
10080 Use lwp_is_stopped.
10081 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10084 2015-03-24 Gary Benson <gbenson@redhat.com>
10086 * linux-nat.h (linux_stop_lwp): Move declaration to...
10087 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10089 2015-03-24 Gary Benson <gbenson@redhat.com>
10091 * linux-nat.h: Include nat/linux-nat.h.
10092 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10093 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10094 (iterate_over_lwps_ftype): New typedef.
10095 (iterate_over_lwps): New declaration.
10096 * linux-nat.h (iterate_over_lwps): Update comment. Use
10097 iterate_over_lwps_ftype. Update callback return value check.
10099 2015-03-24 Gary Benson <gbenson@redhat.com>
10101 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10102 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10104 2015-03-24 Gary Benson <gbenson@redhat.com>
10106 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10107 * linux-nat.c (current_lwp_ptid): New function.
10108 * x86-linux-nat.c: Include nat/linux-nat.h.
10109 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10110 (x86_linux_dr_get_control): Likewise.
10111 (x86_linux_dr_get_status): Likewise.
10112 (x86_linux_dr_set_control): Likewise.
10113 (x86_linux_dr_set_addr): Likewise.
10115 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10117 PR breakpoints/16466
10118 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10120 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10122 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10123 * ser-unix.c (hardwire_setparity): Likewise.
10125 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10127 * NEWS: Mention set/show serial parity command.
10128 * monitor.c (monitor_open): Call serial_setparity.
10129 * remote.c (remote_open_1): Likewise.
10130 * ser-base.c (ser_base_serparity): New function.
10131 * ser-base.h (ser_base_setparity): Add declaration.
10132 * ser-go32.c (dos_ops): Set "setparity" field.
10133 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10135 (ser_windows_setparity): New function.
10136 (hardwire_ops): Add ser_windows_setparity.
10137 (tty_ops): Add NULL for setparity field.
10138 (pipe_ops): Add ser_base_setparity.
10139 (tcp_ops): Likewise.
10140 * ser-pipe.c (pipe_ops): Likewise.
10141 * ser-tcp.c (tcp_ops): Likewise.
10142 * ser-unix.c (hardwire_setparity): Add declaration.
10143 (hardwire_raw): Don't reset PARENB flag.
10144 (hardwire_setparity): New function.
10145 (hardwire_ops): Add hardwire_setparity.
10146 * serial.c (serial_setparity): New function.
10147 (serial_parity): New global.
10148 (parity_none, parity_odd, parity_even, parity_enums, parity):
10149 New static globals.
10150 (set_parity): New function.
10151 (_initialize_serial): Add set/show serial parity commands.
10152 * serial.h (GDBPARITY_NONE): Define.
10153 (GDBPARITY_ODD): Define.
10154 (GDBPARITY_EVEN): Define.
10155 (serial_setparity) Add declaration.
10156 (struct serial_ops): Add setparity field.
10157 * target.h (serial_parity): Add declaration.
10159 2015-03-23 Keith Seitz <keiths@redhat.com>
10161 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10163 2015-03-23 Keith Seitz <keiths@redhat.com>
10165 * breakpoint.c (parse_breakpoint_sals): Use
10166 linespec_lexer_lex_keyword to ascertain if the user specified
10168 * linespec.c [IF_KEYWORD_INDEX]: Define.
10169 (linespec_lexer_lex_keyword): Export.
10170 (struct ls_parser) <keyword_ok>: Remove.
10171 A keyword is only a keyword if not followed by another keyword.
10172 (linespec_lexer_lex_one): Remove keyword_ok handling.
10173 Add comment explaining why the parsing stream is not advanced
10174 when a keyword is seen.
10175 (parse_linespec): Remove parser->keyword_ok.
10176 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10178 2015-03-23 Keith Seitz <keiths@redhat.com>
10181 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10182 if we find a static method with DW_AT_vtable_elem_location.
10184 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10186 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10187 before the second loop, to avoid undefined behavior. Reported by
10188 Anton Blanchard <anton@samba.org>.
10190 2015-03-20 Keven Boell <keven.boell@intel.com>
10192 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10193 data_location usage to linked list.
10194 (resolve_dynamic_type_internal): Adapt data_location to
10196 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10197 (copy_type_recursive, copy_type): Add copy of linked list.
10198 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10199 (struct dynamic_prop_list): New struct.
10200 * dwarf2read.c (set_die_type): Set data_location data.
10202 2015-03-20 Pedro Alves <palves@redhat.com>
10204 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10205 inner block and make it const.
10206 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10208 2015-03-20 Pedro Alves <palves@redhat.com>
10210 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10211 * breakpoint.h (set_breakpoint_condition): Update declaration.
10213 2015-03-20 Pedro Alves <palves@redhat.com>
10215 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10217 2015-03-20 Pedro Alves <palves@redhat.com>
10219 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10221 2015-03-20 Pedro Alves <palves@redhat.com>
10223 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10225 2015-03-20 Pedro Alves <palves@redhat.com>
10227 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10228 (nto_init_solib_absolute_prefix): Likewise.
10230 2015-03-20 Pedro Alves <palves@redhat.com>
10232 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10233 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10235 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10237 * config/djgpp/README: Remove gdb.hp.
10239 2015-03-20 Yao Qi <yao.qi@linaro.org>
10241 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10242 set_gdbarch_cannot_step_breakpoint.
10244 2015-03-19 Pedro Alves <palves@redhat.com>
10246 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10247 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10248 instead call perror_with_name.
10249 (check_ptrace_stopped_lwp_gone): New function.
10250 (linux_resume_one_lwp): Reimplement as wrapper around
10251 linux_resume_one_lwp_throw that swallows errors if the LWP is
10253 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10254 swallows errors if the LWP is gone. Use
10255 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10257 2015-03-19 Pedro Alves <palves@redhat.com>
10259 * linux-nat.c (status_callback): Return early if the LWP has no
10262 2015-03-19 Pedro Alves <palves@redhat.com>
10264 * linux-nat.c (select_event_lwp_callback): Update comment to no
10265 longer mention SIGTRAP.
10267 2015-03-18 Tristan Gingold <gingold@adacore.com>
10269 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10270 redirection code to ...
10271 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10272 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10274 2015-03-18 Gary Benson <gbenson@redhat.com>
10276 (remote_protocol_features): Remove the "vFile:fstat" feature.
10277 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10279 2015-03-11 Yao Qi <yao.qi@linaro.org>
10282 * aarch64-linux-tdep.c: Include xml-syscall.h
10283 (aarch64_linux_get_syscall_number): New function.
10284 (aarch64_linux_init_abi): Call
10285 set_gdbarch_get_syscall_number.
10286 * syscalls/aarch64-linux.xml: New file.
10288 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10290 * ser-base.h (ser_base_setstopbits): Change second argument name
10291 from "rate" to "num".
10293 2015-03-17 Gary Benson <gbenson@redhat.com>
10294 Luke Allardyce <lukeallardyce@gmail.com>
10297 * common/common-remote-fileio.h (sys/stat.h): New include.
10298 (stuct stat): Remove forward declaration.
10300 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10302 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10303 before writing core register notes.
10305 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10306 Pedro Alves <palves@redhat.com>
10308 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10309 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10310 (tgoto): Wrap with extern "C".
10312 2015-03-16 Pedro Alves <palves@redhat.com>
10313 Yuanhui Zhang <asmwarrior@gmail.com>
10315 * stub-termcap.c (tputs): Change prototype.
10317 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10318 Pedro Alves <palves@redhat.com>
10320 * windows-nat.c (struct thread_info_struct): Rename to ...
10321 (struct windows_thread_info_struct): ... this.
10322 (thread_info): Rename to ...
10323 (windows_thread_info): ... this.
10326 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10327 Pedro Alves <palves@redhat.com>
10329 * NEWS: New Removed targets and native configurations.
10331 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10334 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10335 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10336 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10337 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10338 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10339 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10340 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10342 * config/ia64/hpux.mh: Remove file.
10343 * config/pa/hpux.mh: Remove file.
10344 * configure: Rebuilt.
10345 * configure.ac (dlgetmodinfo, somread.o): Remove.
10346 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10347 (ia64-*-hpux*): Remove its float format exception.
10348 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10349 * hppa-hpux-nat.c: Remove file.
10350 * hppa-hpux-tdep.c: Remove file.
10351 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10352 Move them here from hppa-tdep.h
10353 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10354 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10355 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10356 Move them to hppa-tdep.c.
10357 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10359 * ia64-hpux-nat.c: Remove file.
10360 * ia64-hpux-tdep.c: Remove file.
10361 * ia64-hpux-tdep.h: Remove file.
10362 * inf-ttrace.c: Remove file.
10363 * inf-ttrace.h: Remove file.
10364 * solib-ia64-hpux.c: Remove file.
10365 * solib-ia64-hpux.h: Remove file.
10366 * solib-pa64.c: Remove file.
10367 * solib-pa64.h: Remove file.
10368 * solib-som.c: Remove file.
10369 * solib-som.h: Remove file.
10370 * somread.c: Remove file.
10372 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10374 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10375 * config.in: Regenerate.
10376 * configure: Regenerate.
10377 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10379 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10380 enumerate memory regions if present.
10382 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10384 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10385 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10387 (i386fbsd_sigtramp_p): Likewise.
10389 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10391 * MAINTAINERS (Write After Approval): Add John Baldwin.
10393 2015-03-12 Gary Benson <gbenson@redhat.com>
10395 * solib.c (_initialize_solib): Make "set/show sysroot" use
10396 add_setshow_optional_filename_cmd so it can be restored to
10397 empty after being set.
10399 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10401 * Makefile.in (SFILES): New source break-catch-syscall.c.
10402 (COMMON_OBS): New object break-catch-syscall.o.
10403 * break-catch-syscall.c: New file.
10404 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10405 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10406 (struct syscall_catchpoint): Likewise.
10407 (dtor_catch_syscall): Likewise.
10408 (catch_syscall_inferior_data): Likewise.
10409 (struct catch_syscall_inferior_data): Likewise.
10410 (get_catch_syscall_inferior_data): Likewise.
10411 (catch_syscall_inferior_data_cleanup): Likewise.
10412 (insert_catch_syscall): Likewise.
10413 (remove_catch_syscall): Likewise.
10414 (breakpoint_hit_catch_syscall): Likewise.
10415 (print_it_catch_syscall): Likewise.
10416 (print_one_catch_syscall): Likewise.
10417 (print_mention_catch_syscall): Likewise.
10418 (print_recreate_catch_syscall): Likewise.
10419 (catch_syscall_breakpoint_ops): Likewise.
10420 (syscall_catchpoint_p): Likewise.
10421 (create_syscall_event_catchpoint): Likewise.
10422 (catch_syscall_split_args): Likewise.
10423 (catch_syscall_command_1): Likewise.
10424 (is_syscall_catchpoint_enabled): Likewise.
10425 (catch_syscall_enabled): Likewise.
10426 (catching_syscall_number): Likewise.
10427 (catch_syscall_completer): Likewise.
10428 (clear_syscall_counts): Likewise.
10429 (initialize_breakpoint_ops): Move initialization of syscall
10430 catchpoints to break-catch-syscall.c.
10431 (_initialize_breakpoint): Move code related to syscall catchpoints
10432 to break-catch-syscall.c.
10434 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10436 * breakpoint.c (breakpoint_find_if): New function.
10437 * breakpoint.h (breakpoint_find_if): New prototype.
10439 2015-03-11 Gary Benson <gbenson@redhat.com>
10441 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10442 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10443 (remote_fileio_to_host_ulong): Likewise.
10444 (remote_fileio_to_host_mode): Likewise.
10445 (remote_fileio_to_host_time): Likewise.
10446 (remote_fileio_to_host_stat): Likewise.
10447 * remote.c (PACKET_vFile_fstat): New enum value.
10448 (remote_protocol_features): Register the "vFile:fstat" feature.
10449 (remote_hostio_fstat): New function.
10450 (remote_bfd_iovec_stat): Use the above.
10451 (_initialize_remote): Register new "set/show remote
10452 hostio-fstat-packet" command.
10453 * symfile.c (separate_debug_file_exists): Update comment.
10454 * NEWS: Announce new vFile:fstat packet.
10456 2015-03-11 Gary Benson <gbenson@redhat.com>
10458 * common/common-remote-fileio.h: New file.
10459 * common/common-remote-fileio.c: Likewise.
10460 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10461 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10462 (COMMON_OBS): Add common-remote-fileio.o.
10463 (common-remote-fileio.o): New rule.
10464 * remote-fileio.h (common-remote-fileio.h): New include.
10465 * remote-fileio.c (gdb/fileio.h): Do not include.
10466 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10467 (remote_fileio_to_fio_uint): Likewise.
10468 (remote_fileio_to_fio_time): Likewise.
10469 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10470 (remote_fileio_to_fio_mode): Likewise.
10471 (remote_fileio_to_fio_ulong): Likewise.
10472 (remote_fileio_to_fio_stat): Likewise.
10474 2015-03-11 Andy Wingo <wingo@igalia.com>
10476 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10477 we were checking the cached type, not the cached dynamic type.
10479 2015-03-11 Andy Wingo <wingo@igalia.com>
10481 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10482 other strings, as these are on the GC'd heap, and will be
10483 collected along with the smob.
10485 2015-03-11 Andy Wingo <wingo@igalia.com>
10487 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10488 (objfile_functions): Bind gdbscm_objfile_progspace to
10490 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10492 2015-03-11 Andy Wingo <wingo@igalia.com>
10494 * guile/guile.c (_initialize_guile): Disable automatic
10495 finalization, if Guile offers us that possibility.
10496 * guile/guile.c (call_initialize_gdb_module):
10497 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10498 finalizers in appropriate places.
10499 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10500 scm_set_automatic_finalization_enabled.
10501 * configure: Regenerated.
10503 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10505 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10508 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10510 * s390-linux-nat.c (struct arch_lwp_info): New.
10511 (s390_fix_watch_points): Rename to...
10512 (s390_prepare_to_resume): ...this. Skip the PER info update
10513 unless the watch points have changed.
10514 (s390_refresh_per_info, s390_new_thread): New functions.
10515 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10516 s390_fix_watch_points.
10517 (s390_remove_watchpoint): Likewise.
10518 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10519 Register s390_prepare_to_resume.
10521 2015-03-09 Pedro Alves <palves@redhat.com>
10524 2015-03-07 Pedro Alves <palves@redhat.com>
10525 * common/gdb_socket.h: New file.
10526 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10528 (net_open): Use union gdb_sockaddr_u.
10530 2015-03-07 Pedro Alves <palves@redhat.com>
10532 * configure.ac (build_warnings): Move -Wmissing-prototypes
10533 -Wdeclaration-after-statement -Wmissing-parameter-type
10534 -Wold-style-declaration -Wold-style-definition to the C-specific
10536 * configure: Regenerate.
10538 2015-03-07 Pedro Alves <palves@redhat.com>
10540 * common/gdb_socket.h: New file.
10541 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10543 (net_open): Use union gdb_sockaddr_u.
10545 2015-03-07 Pedro Alves <palves@redhat.com>
10547 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10548 (exceptions_state_mc_action_iter)
10549 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10551 [__cplusplus] (try_scope_depth): New global.
10552 [__cplusplus] (exception_try_scope_entry)
10553 (exception_try_scope_exit, gdb_exception_sliced_copy)
10554 (exception_rethrow): New functions.
10555 (throw_exception): In C++ mode, throw
10556 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10557 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10558 (throw_it): In C++ mode, use try_scope_depth.
10559 * common/common-exceptions.h [!__cplusplus]
10560 (exceptions_state_mc_action_iter)
10561 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10563 [__cplusplus] (exception_try_scope_entry)
10564 (exception_try_scope_exit, exception_rethrow): Declare.
10565 [__cplusplus] (struct exception_try_scope): New struct.
10566 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10568 (struct gdb_exception_RETURN_MASK_ALL)
10569 (struct gdb_exception_RETURN_MASK_ERROR)
10570 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10572 2015-03-07 Pedro Alves <palves@redhat.com>
10574 * main.c (handle_command_errors): Remove volatile qualifier from
10577 2015-03-07 Pedro Alves <palves@redhat.com>
10579 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10581 * gdbtypes.c (safe_parse_type): Remove empty line.
10582 (types_deeply_equal):
10583 * guile/scm-frame.c (gdbscm_frame_name):
10584 * linux-thread-db.c (find_new_threads_once):
10585 * python/py-breakpoint.c (bppy_get_commands):
10586 * record-btrace.c (record_btrace_insert_breakpoint)
10587 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10588 (record_btrace_start_replaying): Adjust to avoid code between TRY
10591 2015-03-07 Pedro Alves <palves@redhat.com>
10593 * common/common-exceptions.c (struct catcher) <exception>: No
10594 longer a pointer to volatile exception. Now an exception value.
10595 <mask>: Delete field.
10596 (exceptions_state_mc_init): Remove all parameters. Adjust.
10597 (exceptions_state_mc): No longer pop the catcher here.
10598 (exceptions_state_mc_catch): New function.
10599 (throw_exception): Adjust.
10600 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10602 (exceptions_state_mc_catch): Declare.
10603 (TRY_CATCH): Rename to ...
10604 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10605 (CATCH, END_CATCH): New.
10606 All callers adjusted.
10608 2015-03-07 Tom Tromey <tromey@redhat.com>
10610 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10612 2015-03-07 Pedro Alves <palves@redhat.com>
10614 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10615 (amd64_epilogue_frame_cache): Normal exception handling code.
10616 * break-catch-throw.c (check_status_exception_catchpoint)
10617 (re_set_exception_catchpoint): Ditto.
10618 * cli/cli-interp.c (safe_execute_command):
10619 * cli/cli-script.c (script_from_file): Ditto.
10620 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10622 * compile/compile-object-run.c (compile_object_run): Ditto.
10623 * cp-abi.c (baseclass_offset): Ditto.
10624 * cp-valprint.c (cp_print_value): Ditto.
10625 * exceptions.c (catch_exceptions_with_msg):
10626 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10627 * frame.c (get_frame_address_in_block_if_available): Ditto.
10628 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10629 (i386_sigtramp_frame_cache): Ditto.
10630 * infcmd.c (post_create_inferior): Ditto.
10631 * linespec.c (parse_linespec, find_linespec_symbols):
10632 * p-valprint.c (pascal_object_print_value): Ditto.
10633 * parse.c (parse_expression_for_completion): Ditto.
10634 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10635 * remote.c (remote_get_noisy_reply): Ditto.
10636 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10637 * solib-svr4.c (solib_svr4_r_map): Ditto.
10639 2015-03-06 Gary Benson <gbenson@redhat.com>
10641 * common/common-utils.h (startswith): New inline function.
10642 All places where this logic was used updated to use the above.
10644 2015-03-05 Pedro Alves <palves@redhat.com>
10647 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10648 after reading the breakpoint's shadow memory.
10650 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10652 * hppabsd-nat.c: Remove file.
10653 * hppaobsd-nat.c: New file.
10654 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10656 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10659 2015-03-04 Pedro Alves <palves@redhat.com>
10661 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10662 (target_decr_pc_after_break): Delete declaration.
10663 * target.c (default_target_decr_pc_after_break)
10664 (target_decr_pc_after_break): Delete.
10665 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10666 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10667 * linux-thread-db.c (check_event): Likewise.
10668 * infrun.c (adjust_pc_after_break): Likewise.
10669 * darwin-nat.c (cancel_breakpoint): Likewise.
10670 * aix-thread.c (aix_thread_wait): Likewise.
10671 * target-delegates.c: Regenerate.
10673 2015-03-04 Pedro Alves <palves@redhat.com>
10675 * linux-nat.c (save_sigtrap): Check for breakpoints before
10676 checking watchpoints.
10677 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10678 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10679 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10680 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10681 (linux_nat_stopped_by_sw_breakpoint)
10682 (linux_nat_supports_stopped_by_sw_breakpoint)
10683 (linux_nat_stopped_by_hw_breakpoint)
10684 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10685 (linux_nat_wait_1): Don't re-increment the PC if relying on
10686 SIGTRAP's siginfo->si_code.
10687 (linux_nat_add_target): Install new target methods.
10688 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10689 offset if the target already adjusted the PC.
10690 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10691 (GDB_ARCH_TRAP_BRKPT): New.
10692 (TRAP_HWBKPT): Define if not already defined.
10694 2015-03-04 Pedro Alves <palves@redhat.com>
10696 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10697 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10699 <stop_reason>: New field.
10700 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10701 (packet_set_cmd_state): New function.
10702 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10704 (remote_query_supported): If not disabled with the corresponding
10705 "set remote foo-packet" command, report support for the swbreak
10706 and hwbreak features.
10707 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10709 <stop_reason>: New field.
10710 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10711 (remote_wait_as): Adjust.
10712 (remote_stopped_by_sw_breakpoint)
10713 (remote_supports_stopped_by_sw_breakpoint)
10714 (remote_stopped_by_hw_breakpoint)
10715 (remote_supports_stopped_by_hw_breakpoint): New functions.
10716 (remote_stopped_by_watchpoint): New function.
10717 (init_remote_ops): Install them.
10718 (_initialize_remote): Register new "set/show remote
10719 swbreak-feature-packet" and "set/show remote
10720 swbreak-feature-packet" commands.
10722 2015-03-04 Pedro Alves <palves@redhat.com>
10724 * btrace.h: Include target/waitstatus.h.
10725 (struct btrace_thread_info) <stop_reason>: New field.
10726 * record-btrace.c (record_btrace_step_thread): Use
10727 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10728 (record_btrace_decr_pc_after_break): Delete.
10729 (record_btrace_stopped_by_sw_breakpoint)
10730 (record_btrace_supports_stopped_by_sw_breakpoint)
10731 (record_btrace_stopped_by_hw_breakpoint)
10732 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10733 (init_record_btrace_ops): Install them.
10734 * record-full.c (record_full_hw_watchpoint): Delete and replace
10736 (record_full_stop_reason): ... this throughout.
10737 (record_full_exec_insn): Adjust.
10738 (record_full_wait_1): Adjust. No longer re-increment the PC.
10739 (record_full_wait_1): Adjust. Use
10740 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10741 (record_full_stopped_by_watchpoint): Adjust.
10742 (record_full_stopped_by_sw_breakpoint)
10743 (record_full_supports_stopped_by_sw_breakpoint)
10744 (record_full_supports_stopped_by_sw_breakpoint)
10745 (record_full_stopped_by_hw_breakpoint)
10746 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10747 (init_record_full_ops, init_record_full_core_ops): Install them.
10748 * record.c (record_check_stopped_by_breakpoint): New function.
10749 * record.h: Include target/waitstatus.h.
10750 (record_check_stopped_by_breakpoint): New declaration.
10752 2015-03-04 Pedro Alves <palves@redhat.com>
10754 enum lwp_stop_reason -> enum target_stop_reason
10755 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10756 (linux_nat_stopped_by_watchpoint, status_callback)
10757 (linux_nat_wait_1): Adjust.
10758 * linux-nat.h (enum lwp_stop_reason): Delete.
10759 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10760 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10761 * target/waitstatus.h (enum target_stop_reason): New.
10763 2015-03-04 Pedro Alves <palves@redhat.com>
10765 * breakpoint.c (need_moribund_for_location_type): New function.
10766 (bpstat_stop_status): Don't skipping checking moribund locations
10767 of breakpoint types which the target tell caused a stop.
10768 (program_breakpoint_here_p): New function, factored out from ...
10769 (bp_loc_is_permanent): ... this.
10770 (update_global_location_list): Don't create a moribund location if
10771 the target supports reporting stops of the type of the removed
10773 * breakpoint.h (program_breakpoint_here_p): New declaration.
10774 * infrun.c (adjust_pc_after_break): Return early if the target has
10775 already adjusted the PC. Add comments.
10776 (handle_signal_stop): If nothing explains a signal, and the target
10777 tells us the stop was caused by a software breakpoint, check if
10778 there's a breakpoint instruction in the memory. If so, adjust the
10779 PC before presenting the stop to the user. Otherwise, ignore the
10780 trap. If nothing explains a signal, and the target tells us the
10781 stop was caused by a hardware breakpoint, ignore the trap.
10782 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10783 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10784 to_supports_stopped_by_hw_breakpoint>: New fields.
10785 (target_stopped_by_sw_breakpoint)
10786 (target_supports_stopped_by_sw_breakpoint)
10787 (target_stopped_by_hw_breakpoint)
10788 (target_supports_stopped_by_hw_breakpoint): Define.
10789 * target-delegates.c: Regenerate.
10791 2015-03-04 Pedro Alves <palves@redhat.com>
10793 * infrun.c (follow_fork_inferior): Use the whole of the
10794 inferior_ptid and pending_follow.related_pid ptids instead of
10795 building ptids from the process components. Adjust verbose output
10796 to use target_pid_to_str.
10797 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10798 inferior_ptid and pending_follow.related_pid ptids instead of
10799 building ptids from the process components.
10801 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10803 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10804 (inf_ptrace_insert_fork_catchpoint): New function.
10805 (inf_ptrace_remove_fork_catchpoint): New function.
10806 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10808 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10810 * s390-linux-tdep.c (s390_register_name): Return empty string
10811 instead of NULL for registers that shouldn't be visible.
10813 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10815 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10816 XML file for 64-bit targets.
10818 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10820 * target.h (find_default_create_inferior): Remove declaration.
10821 (find_default_attach): Likewise.
10823 2015-03-03 Pedro Alves <palves@redhat.com>
10825 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10826 Use ptid_get_pid to get the overall process id when resuming all
10829 2015-03-03 Pedro Alves <palves@redhat.com>
10831 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10832 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10833 * inf-ptrace.c (get_ptrace_pid): New function.
10834 (inf_ptrace_resume): Use it.
10835 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10836 to the lower layer.
10838 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10840 * nat/linux-btrace.c: Include sys/utsname.h.
10841 (linux_determine_kernel_ptr_bits): New.
10842 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10843 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10846 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10848 * btrace.c (ftrace_update_function): Treat return as tailcall for
10849 "_dl_runtime_resolve".
10851 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10853 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10854 * btrace.c (ftrace_debug): Do not print the line range.
10855 (ftrace_skip_file, ftrace_update_lines): Remove.
10856 (ftrace_new_function): Remove lbegin and lend initialization.
10857 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10858 * record-btrace.c (btrace_compute_src_line_range): New.
10859 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10861 2015-03-02 Pedro Alves <palves@redhat.com>
10863 * infrun.c (follow_exec): Delete all threads of the process except
10864 the event thread. Extended comments.
10866 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10868 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10870 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10872 * utils.h: Remove <stdbool.h> #include.
10873 (producer_is_gcc): Change return type to "int".
10874 * utils.c (producer_is_gcc): Change return type to int.
10875 Return 1 instead of true, and 0 instead of false.
10876 Adjust function documentation accordingly.
10878 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10880 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10881 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10883 (s390_linux_store_inferior_registers): Likewise.
10884 (s390_get_hwcap): Remove function. Embed its logic...
10885 (s390_read_description): ...here. Yield a target description with
10886 vector registers if applicable.
10887 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10888 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10889 "features/s390x-tevx-linux64.c".
10890 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10891 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10892 for "GNU/Linux-specific registers".
10893 (s390_dwarf_reg_r0l): New enum value.
10894 (s390_dwarf_reg_to_regnum): Support vector registers.
10895 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10896 of GPR lower halves.
10897 (regnum_is_vxr_full): New function.
10898 (s390_register_name): New function.
10899 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10900 f0-f15 and v0l-v15l.
10901 (s390_pseudo_register_type): Likewise.
10902 (s390_pseudo_register_read): Likewise.
10903 (s390_pseudo_register_write): Likewise.
10904 (s390_value_from_register): Account for the fact that values are
10905 placed left-justified in vector registers.
10906 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10907 the vector reggroup and omit them from the general reggroup.
10908 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10909 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10910 (s390_iterate_over_regset_sections): Add iterations for the two
10911 new vector regsets.
10912 (s390_core_read_description): Yield a target description with
10913 vector registers if applicable.
10914 (s390_gdbarch_init): Handle target descriptions with vector
10915 registers. Add "register_name" gdbarch method.
10916 (_initialize_s390_tdep): Call new tdesc initialization functions.
10917 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10918 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10919 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10920 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10921 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10922 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10923 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10924 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10925 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10926 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10927 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10928 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10929 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10930 (S390_NUM_REGS): Adjust value.
10931 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10932 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10933 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10934 * NEWS: Announce S/390 vector register support.
10936 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10938 * features/s390-tevx-linux64.xml: New file.
10939 * features/s390-vx-linux64.xml: New file.
10940 * features/s390-vx.xml: New file.
10941 * features/s390x-tevx-linux64.xml: New file.
10942 * features/s390x-vx-linux64.xml: New file.
10943 * features/Makefile (WHICH): Add s390-vx-linux64,
10944 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10945 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10946 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10948 * features/s390-tevx-linux64.c: New generated file.
10949 * features/s390-vx-linux64.c: Likewise.
10950 * features/s390x-tevx-linux64.c: Likewise.
10951 * features/s390x-vx-linux64.c: Likewise.
10952 * regformats/s390-tevx-linux64.dat: Likewise.
10953 * regformats/s390-vx-linux64.dat: Likewise.
10954 * regformats/s390x-tevx-linux64.dat: Likewise.
10955 * regformats/s390x-vx-linux64.dat: Likewise.
10957 2015-02-28 Doug Evans <xdje42@gmail.com>
10959 * symtab.h (struct symtab) <next>: Fix comment.
10961 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10963 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10966 2015-02-27 Pedro Alves <palves@redhat.com>
10968 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10970 2015-02-27 Pedro Alves <palves@redhat.com>
10972 * common/common-exceptions.h (exception_none): Declare.
10973 * common/common-exceptions.c (exception_none): Moved from
10975 (exceptions_state_mc_init): Use exception_none.
10976 * exceptions.c (exception_none): Move to
10977 common/common-exceptions.c.
10978 * exceptions.h (exception_none): Move to
10979 common/common-exceptions.h.
10981 2015-02-27 Pedro Alves <palves@redhat.com>
10983 * main.c (catch_command_errors, catch_command_errors_const):
10984 Remove 'mask' argument. Adjust.
10985 (captured_main): Adjust callers.
10987 2015-02-27 Pedro Alves <palves@redhat.com>
10989 * python/python-internal.h: Include "extension-priv.h".
10991 2015-02-27 Pedro Alves <palves@redhat.com>
10993 * breakpoint.h (enum print_stop_action): Move further up in the
10996 2015-02-27 Pedro Alves <palves@redhat.com>
10998 * gdbarch.sh: Include regcache.h.
10999 * gdbarch.h: Regenerate.
11001 2015-02-27 Pedro Alves <palves@redhat.com>
11003 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11004 Remove duplicate const.
11005 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11008 2015-02-27 Pedro Alves <palves@redhat.com>
11010 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11011 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11012 * features/feature_to_c.sh: Tag the generated xml_builtin array
11013 with extern const in C++ mode.
11015 2015-02-27 Tom Tromey <tromey@redhat.com>
11017 * minidebug.c (struct lzma_stream): Rename to ...
11018 (struct gdb_lzma_stream): ... this.
11019 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11021 2015-02-27 Pedro Alves <palves@redhat.com>
11023 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11025 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11026 (mi_cmd_stack_list_variables): Use it.
11028 2015-02-27 Pedro Alves <palves@redhat.com>
11030 * x86-linux-nat.c (u_debugreg_offset): New function.
11031 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11033 2015-02-27 Pedro Alves <palves@redhat.com>
11035 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11037 Include break-common.h.
11039 2015-02-27 Tom Tromey <tromey@redhat.com>
11040 Pedro Alves <palves@redhat.com>
11042 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11043 local used to iterate over enums.
11044 * completer.c (signal_completer): Likewise.
11045 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11046 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11047 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11048 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11049 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11050 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11051 * tui-wingeneral.c (tui_refresh_all): Likewise.
11053 2015-02-27 Pedro Alves <palves@redhat.com>
11055 * target.h: Include "infrun.h".
11057 2015-02-27 Pedro Alves <palves@redhat.com>
11059 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11061 2015-02-27 Pedro Alves <palves@redhat.com>
11063 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11065 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11067 2015-02-27 Pedro Alves <palves@redhat.com>
11069 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11070 cli_mld_erase_entire_line, and make it extern "C".
11071 * common/common-defs.h (EXTERN_C): New.
11072 * completer.c (_rl_completion_prefix_display_length)
11073 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11074 out of gdb_display_match_list_1.
11075 (_rl_qsort_string_compare): Move declaration out of
11076 gdb_display_match_list_1, and make it extern "C".
11077 * defs.h (re_comp): Use EXTERN_C.
11078 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11079 and make it extern "C".
11080 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11081 and make it extern "C".
11082 (main): Move declaration out of maintenance_set_profile_cmd.
11083 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11086 2015-02-27 Pedro Alves <palves@redhat.com>
11088 * python/python.c (GdbMethods): Rename to ...
11089 (python_GdbMethods): ... this and make extern.
11090 (GdbModuleDef): Rename to ...
11091 (python_GdbModuleDef): ... this and make extern.
11093 2015-02-27 Pedro Alves <palves@redhat.com>
11095 * record-btrace.c (set_record_btrace_cmdlist)
11096 (show_record_btrace_cmdlist): Remove redefinitions.
11098 2015-02-27 Tom Tromey <tromey@redhat.com>
11099 Pedro Alves <palves@redhat.com>
11101 * dwarf2-frame.c (enum cfa_how_kind, struct
11102 dwarf2_frame_state_reg_info): Move out of struct
11103 dwarf2_frame_state.
11104 * dwarf2read.c (struct tu_stats): Move out of struct
11105 dwarf2_per_objfile.
11106 (struct file_entry): Move out of struct line_header.
11107 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11108 typedef_field_list): Move out of struct field_info.
11109 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11110 Move out of struct dynamic_prop.
11111 (union type_owner, union field_location, struct field, struct
11112 range_bounds, union type_specific): Move out of struct main_type.
11113 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11114 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11115 (struct call_site_target, union call_site_parameter_u, struct
11116 call_site_parameter): Move out of struct call_site.
11117 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11119 (enum srcdest_kind): Move out of struct srcdest.
11120 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11121 * prologue-value.h (enum prologue_value_kind): Move out of struct
11123 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11125 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11126 out of struct field_info.
11127 * symfile.h (struct other_sections): Move out of struct
11129 * symtab.c (struct symbol_cache_slot): Move out struct
11130 block_symbol_cache.
11131 * target-descriptions.c (enum tdesc_type_kind): Move out of
11132 typedef struct tdesc_type.
11133 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11134 struct tui_line_or_address.
11135 * value.c (enum internalvar_kind, union internalvar_data): Move
11136 out of struct internalvar.
11137 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11140 2015-02-27 Tom Tromey <tromey@redhat.com>
11141 Pedro Alves <palves@redhat.com>
11143 Rename symbols whose names are reserved C++ keywords throughout.
11145 2015-02-27 Pedro Alves <palves@redhat.com>
11147 * Makefile.in (COMPILER): New, get it from autoconf.
11148 (COMPILE.pre, CC_LD): Use COMPILER.
11149 (CXX): Get from autoconf instead.
11150 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11151 * acinclude.m4: Include build-with-cxx.m4.
11152 * build-with-cxx.m4: New file.
11153 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11154 Disable -Werror by default if building in C++ mode.
11155 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11156 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11157 Run supported-warning-flags tests with the C++ compiler.
11158 Save/restore CXXFLAGS too.
11159 * configure: Regenerate.
11161 2015-02-27 Pedro Alves <palves@redhat.com>
11163 * libiberty.m4: New file.
11164 * acinclude.m4: Include libiberty.m4.
11165 * configure.ac: Call libiberty_INIT.
11166 * config.in, configure: Regenerate.
11168 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11170 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11171 31-bit targets, but 64-bit targets as well.
11172 (s390_gnu_triplet_regexp): New function.
11173 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11174 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11177 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11179 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11180 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11181 from CONTEXT_DEBUGGER.
11183 2015-02-26 Doug Evans <dje@google.com>
11185 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11187 (set_type_vptr_fieldno): Ditto.
11188 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11189 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11191 2015-02-26 Pedro Alves <palves@redhat.com>
11193 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11194 * complaints.c (vcomplaint): Pass argument FMT directly to
11195 printf-like functions instead of complaint->fmt.
11196 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11197 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11198 * compile/compile-loc2c.c (pushf, unary, binary): Add
11200 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11202 (BINARY): Pass string literal as format string to 'binary'.
11203 * compile/compile-object-load.c (link_callbacks_einfo): Add
11205 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11207 2015-02-26 Pedro Alves <palves@redhat.com>
11209 * windows-termcap.c: Rename to ...
11210 * stub-termcap.c: ... this. Adjust header line.
11211 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11213 * configure: Regenerate.
11214 * configure.ac: Refer to stub-termcap.o instead of
11216 * gdb_curses.h: Mention stub-termcap.c instead of
11219 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11221 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11222 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11224 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11226 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11228 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11230 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11231 bfd_canonicalize_symtab.
11233 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11235 * amd64fbsd-nat.c: Include sys/user.h.
11236 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11237 instead of KERN_PS_STRINGS to locate the signal trampoline.
11238 * i386fbsd-nat.c: Include sys/user.h.
11239 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11240 instead of KERN_PS_STRINGS to locate the signal trampoline.
11241 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11242 (amd64fbsd_sigtramp_p): New.
11243 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11244 longer set default values.
11245 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11246 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11247 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11248 (i386fbsd_freebsd4_sigtramp_start)
11249 (i386fbsd_freebsd4_sigtramp_middle)
11250 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11251 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11252 (i386fbsd_sigtramp_p): New.
11253 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11254 longer set default values.
11255 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11257 2015-02-25 John Baldwin <jhb@freebsd.org>
11259 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11260 get_frame_register instead of frame_unwind_register_unsigned.
11262 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11265 * compile/compile-c-support.c (c_compute_program): Change // comment.
11266 * compile/compile-object-load.c (setup_sections): Change // comment.
11268 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11271 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11273 2015-02-23 Pedro Alves <palves@redhat.com>
11275 * remote.c (skip_to_semicolon): New function.
11276 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11277 special case the stop reasons that look like hex numbers
11278 upfront. Instead handle real register numbers after matching
11279 all the known stop reasons.
11281 2015-02-21 Doug Evans <dje@google.com>
11283 PR c++/17976, symtab/17821
11284 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11285 is_in_anonymous. All callers updated.
11286 (find_symbol_in_baseclass): Ditto.
11287 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11288 for symbols in an anonymous namespace.
11289 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11290 DW_AT_name directly.
11291 (dwarf2_name): Convert missing namespace name to
11292 CP_ANONYMOUS_NAMESPACE_STR.
11294 2015-02-20 Pedro Alves <palves@redhat.com>
11296 * linux-nat.c (linux_handle_extended_wait): Call
11297 thread_db_notice_clone whenever a new clone LWP is detected.
11298 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11300 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11301 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11302 (linux_unstop_all_lwps): Declare.
11303 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11304 (thread_get_info_callback): Delete.
11305 (thread_from_lwp): Use td_thr_get_info and record_thread.
11306 (thread_db_attach_lwp): Delete.
11307 (thread_db_notice_clone): New function.
11308 (try_thread_db_load_1): If /proc is mounted and shows the
11309 process'es task list, walk over all LWPs and call thread_from_lwp
11310 instead of relying on td_ta_thr_iter.
11311 (attach_thread): Don't call check_thread_signals here. Split the
11312 tail part of the function (which adds the thread to the core GDB
11313 thread list) to ...
11314 (record_thread): ... this function. Call check_thread_signals
11316 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11317 call thread_from_lwp.
11318 (thread_db_update_thread_list): Rename to ...
11319 (thread_db_update_thread_list_org): ... this.
11320 (thread_db_update_thread_list): New function.
11321 (thread_db_find_thread_from_tid): Delete.
11322 (thread_db_get_ada_task_ptid): Simplify.
11323 * nat/linux-procfs.c: Include <sys/stat.h>.
11324 (linux_proc_task_list_dir_exists): New function.
11325 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11327 2015-02-20 Pedro Alves <palves@redhat.com>
11329 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11330 main LWP. Handle the case of waitpid returning 0 if we're already
11331 attached to the LWP. Don't set the LWP's last_resume_kind to
11332 resume_stop if we already knew about the LWP.
11333 (linux_nat_filter_event): Add debug logs.
11335 2015-02-20 Pedro Alves <palves@redhat.com>
11337 * target.h (forward_target_decr_pc_after_break): Delete
11340 2015-02-20 Pedro Alves <palves@redhat.com>
11343 * linux-thread-db.c (thread_get_info_callback): Return early if
11344 the thread's lwp id is -1.
11346 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11350 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11352 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11353 (dtrace_get_probes) Change type of variable 'dof'.
11355 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11357 PR breakpoints/16812
11358 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11359 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11360 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11362 2015-02-19 David Taylor <dtaylor@emc.com>
11364 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11366 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11368 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11370 (tui_putc): Don't call tui_handle_resize_during_io.
11371 (tui_getc): Likewise.
11372 (tui_mld_getc): Likewise.
11373 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11374 (tui_sigwinch_token): New static variable.
11375 (tui_initialize_win): Adjust documentation. Set
11376 tui_sigwinch_token.
11377 (tui_async_resize_screen): New asynchronous callback.
11378 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11379 invoke tui_async_resize_screen.
11381 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11383 * configure: Regenerated.
11384 * configure.ac: Use GDB_AC_TRANSFORM.
11385 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11386 * acinclude.m4: sinclude transform.m4.
11387 * transform.m4: New file.
11388 (GDB_AC_TRANSFORM): New macro.
11390 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11392 * NEWS: Announce the support for DTrace SDT probes.
11394 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11396 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11397 (amd64_dtrace_parse_probe_argument): New function.
11398 (amd64_dtrace_probe_is_enabled): Likewise.
11399 (amd64_dtrace_enable_probe): Likewise.
11400 (amd64_dtrace_disable_probe): Likewise.
11401 (amd64_linux_init_abi): Register the
11402 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11403 `gdbarch_dtrace_disable_probe' and
11404 `gdbarch_dtrace_probe_is_enabled' hooks.
11405 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11406 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11407 (amd64_dtrace_enable_probe_sequence): Likewise.
11408 (amd64_dtrace_disable_probe_sequence): Likewise.
11410 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11412 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11413 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11414 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11416 * Makefile.in (SFILES): dtrace-probe.c added.
11417 * configure: Regenerate.
11418 * dtrace-probe.c: New file.
11419 (SHT_SUNW_dof): New constant.
11420 (dtrace_probe_type): New enum.
11421 (dtrace_probe_arg): New struct.
11422 (dtrace_probe_arg_s): New typedef.
11423 (struct dtrace_probe_enabler): New struct.
11424 (dtrace_probe_enabler_s): New typedef.
11425 (dtrace_probe): New struct.
11426 (dtrace_probe_is_linespec): New function.
11427 (dtrace_dof_sect_type): New enum.
11428 (dtrace_dof_dofh_ident): Likewise.
11429 (dtrace_dof_encoding): Likewise.
11430 (DTRACE_DOF_ENCODE_LSB): Likewise.
11431 (DTRACE_DOF_ENCODE_MSB): Likewise.
11432 (dtrace_dof_hdr): New struct.
11433 (dtrace_dof_sect): Likewise.
11434 (dtrace_dof_provider): Likewise.
11435 (dtrace_dof_probe): Likewise.
11436 (DOF_UINT): New macro.
11437 (DTRACE_DOF_PTR): Likewise.
11438 (DTRACE_DOF_SECT): Likewise.
11439 (dtrace_process_dof_probe): New function.
11440 (dtrace_process_dof): Likewise.
11441 (dtrace_build_arg_exprs): Likewise.
11442 (dtrace_get_arg): Likewise.
11443 (dtrace_get_probes): Likewise.
11444 (dtrace_get_probe_argument_count): Likewise.
11445 (dtrace_can_evaluate_probe_arguments): Likewise.
11446 (dtrace_evaluate_probe_argument): Likewise.
11447 (dtrace_compile_to_ax): Likewise.
11448 (dtrace_probe_destroy): Likewise.
11449 (dtrace_gen_info_probes_table_header): Likewise.
11450 (dtrace_gen_info_probes_table_values): Likewise.
11451 (dtrace_probe_is_enabled): Likewise.
11452 (dtrace_probe_ops): New variable.
11453 (info_probes_dtrace_command): New function.
11454 (_initialize_dtrace_probe): Likewise.
11455 (dtrace_type_name): Likewise.
11457 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11459 * gdbarch.sh (dtrace_parse_probe_argument): New.
11460 (dtrace_probe_is_enabled): Likewise.
11461 (dtrace_enable_probe): Likewise.
11462 (dtrace_disable_probe): Likewise.
11463 * gdbarch.c: Regenerate.
11464 * gdbarch.h: Regenerate.
11466 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11468 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11469 stap_probe_ops for `enable_probe' and `disable_probe'.
11470 * probe.c (enable_probes_command): New function.
11471 (disable_probes_command): Likewise.
11472 (_initialize_probe): Define the cli commands `enable probe' and
11474 (parse_probe_linespec): New function.
11475 (info_probes_for_ops): Use parse_probe_linespec.
11476 * probe.h (probe_ops): New hooks `enable_probe' and
11479 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11481 * probe.c (compute_probe_arg): Moved from stap-probe.c
11482 (compile_probe_arg): Likewise.
11483 (probe_funcs): Likewise.
11484 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11485 (compile_probe_arg): Likewise.
11486 (probe_funcs): Likewise.
11488 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11490 * probe.c (print_ui_out_not_applicables): New function.
11491 (exists_probe_with_pops): Likewise.
11492 (info_probes_for_ops): Do not include column headers for probe
11493 types for which no probe has been actually found on any object.
11494 Also invoke `print_ui_out_not_applicables' in order to match the
11495 column rows with the header when probes of several types are
11497 Print the "Type" column.
11498 * probe.h (probe_ops): Added a new probe operation `type_name'.
11499 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11500 (stap_type_name): New function.
11502 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11504 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11505 (key_is_command_char): Delete.
11507 2015-02-17 Pedro Alves <palves@redhat.com>
11509 * tui/tui.c (tui_enable): Resize windows before anything
11510 might show a window.
11512 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11515 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11516 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11518 * aarch64-tdep.h (tdesc_aarch64): Declare.
11520 2015-02-12 Mark Wielaard <mjw@redhat.com>
11522 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11524 2015-02-13 Doug Evans <dje@google.com>
11526 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11527 anonymous_namespace to is_in_anonymous for consistency with the rest
11529 (cp_lookup_bare_symbol): Fix typo in comment.
11530 (cp_search_static_and_baseclasses): Ditto.
11531 (search_symbol_list): Use vertical space in comment better.
11532 (reset_directive_searched): Ditto. Fix typo.
11533 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11535 2015-02-13 Yao Qi <yao.qi@arm.com>
11537 * MAINTAINERS: Update my email address.
11539 2015-02-12 Doug Evans <dje@google.com>
11541 * symtab.c (completion_list_add_name): Fix memory leak.
11543 2015-02-12 Doug Evans <dje@google.com>
11545 * completer.c (complete_line): Remove incorrect comment.
11547 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11549 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11550 (py_print_frame): Use RETURN_MASK_ERROR.
11552 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11554 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11555 function comment. Wrap all function that can throw in cleanups.
11556 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11559 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11561 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11562 Remove the error label.
11564 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11566 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11567 with goto first, indent the former else codepath left. Put variable
11568 'elided' to a new inner block.
11570 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11572 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11574 2015-02-11 Pedro Alves <palves@redhat.com>
11576 * xcoffread.c (within_function): Delete.
11578 2015-02-11 Tom Tromey <tromey@redhat.com>
11579 Pedro Alves <palves@redhat.com>
11581 * breakpoint.c (base_breakpoint_ops): Delete.
11582 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11583 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11584 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11585 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11586 * python/py-arch.c (arch_object_type): Make extern.
11587 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11588 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11589 * python/py-cmd.c (cmdpy_object_type): Make extern.
11590 * python/py-continueevent.c (continue_event_object_type)
11591 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11592 parameter. Update all callers.
11593 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11594 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11595 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11596 * python/py-function.c (fnpy_object_type): Make extern.
11597 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11598 * python/py-infevents.c (call_pre_event_object_type)
11599 (inferior_call_post_event_object_type).
11600 (memory_changed_event_object_type): Make extern.
11601 * python/py-infthread.c (thread_object_type): Make extern.
11602 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11603 * python/py-linetable.c (linetable_entry_object_type)
11604 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11605 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11606 (clear_objfiles_event_object_type): Make extern.
11607 * python/py-objfile.c (objfile_object_type): Make extern.
11608 * python/py-param.c (parmpy_object_type): Make extern.
11609 * python/py-progspace.c (pspace_object_type): Make extern.
11610 * python/py-signalevent.c (signal_event_object_type): Make extern.
11611 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11612 * python/py-type.c (type_object_type, field_object_type)
11613 (type_iterator_object_type): Make extern.
11614 * python/python.c (python_extension_script_ops)
11615 (python_extension_ops): Make extern.
11616 * stap-probe.c (stap_probe_ops): Make extern.
11618 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11620 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11621 because the event thread is not the current thread.
11623 2015-02-11 Doug Evans <xdje42@gmail.com>
11625 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11626 been initialized yet, return NULL.
11628 2015-02-11 Doug Evans <dje@google.com>
11630 * symfile.h (new_symfile_objfile): Delete.
11631 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11632 All callers updated.
11634 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11636 * tui/tui-io.c (tui_handle_resize_during_io): Call
11637 tui_update_gdb_sizes() after resizing the screen.
11638 * tui/tui.c (tui_enable): Resize the terminal before
11639 calling tui_update_gdb_sizes().
11641 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11643 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11644 line before printing a newline.
11646 2015-02-11 Mark Wielaard <mjw@redhat.com>
11648 * utils.c (producer_is_gcc): Return true or false.
11650 2015-02-10 Mark Wielaard <mjw@redhat.com>
11652 * utils.h (producer_is_gcc): Change return type to bool. Add major
11654 * utils.c (producer_is_gcc): Likewise.
11655 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11656 * dwarf2read.c (check_producer): Likewise.
11658 2015-02-10 Pedro Alves <palves@redhat.com>
11660 * infrun.c (displaced_step_fixup): Switch to the event thread
11661 before calling gdbarch_displaced_step_fixup.
11663 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11665 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11667 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11669 * ada-varobj.c (ada_name_of_child): Constify parent.
11670 (ada_path_expr_of_child): Same.
11671 (ada_value_of_child): Same.
11672 (ada_type_of_child): Same.
11673 * c-varobj.c (c_is_path_expr_parent): Same.
11674 (c_describe_child): Same.
11675 (c_name_of_child): Same.
11676 (c_value_of_child): Same.
11677 (c_type_of_child): Same.
11678 (cplus_number_of_children): Same.
11679 (cplus_describe_child): Constify var.
11680 (cplus_name_of_child): Constify parent.
11681 (cplus_value_of_child): Same.
11682 (cplus_type_of_child): Same.
11683 * jv-varobj.c (java_name_of_child): Same.
11684 (java_value_of_child): Same.
11685 (java_type_of_child): Same.
11686 * varobj.c (value_of_child): Same.
11687 (varobj_default_is_path_expr_parent): Constify var, parent and return
11689 (varobj_get_path_expr): Constify var, modify path_expr through
11691 (install_new_value): Constify parent.
11692 (value_of_child): Constify parent.
11693 * varobj.h (struct varobj): Constify parent.
11694 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11696 (varobj_get_path_expr): Constify var.
11697 (varobj_get_path_expr_parent): Constify var and return value.
11699 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11701 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11702 (arm_prologue_this_id): Move PC and SP limit checks to
11703 arm_prologue_unwind_stop_reason.
11704 (arm_prologue_unwind) <stop_reason> : Set to
11705 arm_prologue_unwind_stop_reason.
11707 2015-02-09 Mark Wielaard <mjw@redhat.com>
11709 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11710 DW_LANG_Fortran08 as language_fortran.
11712 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11715 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11716 of pointer against char.
11718 2015-02-09 Mark Wielaard <mjw@redhat.com>
11720 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11721 (c_type_print_modifier): Likewise.
11722 * dwarf2read.c (read_tag_atomic_type): New function.
11723 (read_type_die_1): Handle DW_TAG_atomic_type.
11724 * gdbtypes.c (make_atomic_type): New function.
11725 (recursive_dump_type): Handle TYPE_ATOMIC.
11726 * gdbtypes.h (enum type_flag_values): Renumber.
11727 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11728 (TYPE_ATOMIC): New macro.
11729 (make_atomic_type): Declare.
11731 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11733 * btrace.c (ftrace_find_call): Skip gaps.
11734 (ftrace_new_function): Initialize level.
11735 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11736 (ftrace_new_switch): Update
11738 (ftrace_new_gap): New.
11739 (ftrace_update_function): Create new function after gap.
11740 (btrace_compute_ftrace_bts): Create gap on error.
11741 (btrace_stitch_bts): Update parameters. Clear trace if it
11743 (btrace_stitch_trace): Update parameters. Update callers.
11744 (btrace_clear): Reset the number of gaps.
11745 (btrace_insn_get): Return NULL if the iterator points to a gap.
11746 (btrace_insn_number): Return zero if the iterator points to a gap.
11747 (btrace_insn_end): Allow gaps at the end.
11748 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11749 (btrace_find_insn_by_number): Assert that the found iterator does
11750 not point to a gap.
11751 (btrace_call_next, btrace_call_prev): Assert that the last function
11753 * btrace.h (btrace_bts_error): New.
11754 (btrace_function): Update comment.
11755 (btrace_function) <insn, insn_offset, number>: Update comment.
11756 (btrace_function) <errcode>: New.
11757 (btrace_thread_info) <ngaps>: New.
11758 (btrace_thread_info) <replay>: Update comment.
11759 (btrace_insn_get): Update comment.
11760 * record-btrace.c (btrace_ui_out_decode_error): New.
11761 (record_btrace_info): Print number of gaps.
11762 (btrace_insn_history, btrace_call_history): Call
11763 btrace_ui_out_decode_error for gaps.
11764 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11766 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11768 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11769 * nat/linux-btrace.c: (btrace_this_cpu): New.
11770 (cpu_supports_bts): Call btrace_this_cpu.
11771 (intel_supports_bts): Add cpu parameter.
11773 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11775 * btrace.h (btrace_insn_class): New.
11776 (btrace_insn) <size, iclass>: New.
11777 * btrace.c (ftrace_find_call): Update parameters. Update users.
11778 Use instruction classification.
11779 (ftrace_new_return): Update parameters. Update users.
11780 (ftrace_update_function): Update parameters. Update users. Use
11781 instruction classification.
11782 (ftrace_update_insns): Update parameters. Update users.
11783 (ftrace_classify_insn): New.
11784 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11785 TRY_CATCH around call to gdb_insn_length.
11787 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11789 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11790 Update parameters. Update users.
11792 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11794 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11795 (btrace_conf_bts_attributes): New.
11796 (btrace_conf_children): Add attributes.
11797 * common/btrace-common.h (btrace_config_bts): New.
11798 (btrace_config)<bts>: New.
11799 (btrace_config): Update comment.
11800 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11802 * features/btrace-conf.dtd: Increment version. Add size
11803 attribute to bts element.
11804 * record-btrace.c (set_record_btrace_bts_cmdlist,
11805 show_record_btrace_bts_cmdlist): New.
11806 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11807 record_btrace_print_conf, cmd_set_record_btrace_bts,
11808 cmd_show_record_btrace_bts): New.
11809 (record_btrace_info): Call record_btrace_print_conf.
11810 (_initialize_record_btrace): Add commands.
11811 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11812 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11813 (btrace_sync_conf): Synchronize bts size.
11814 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11815 * NEWS: Announce new commands and new packets.
11817 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11819 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11820 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11821 (x86_linux_btrace_conf): New.
11822 (x86_linux_create_target): Initialize to_btrace_conf.
11823 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11824 Check format. Split into this and ...
11825 (linux_enable_bts): ... this.
11826 (linux_btrace_conf): New.
11827 (perf_event_skip_record): Renamed into ...
11828 (perf_event_skip_bts_record): ... this. Updated users.
11829 (linux_disable_btrace): Split into this and ...
11830 (linux_disable_bts): ... this.
11831 (linux_read_btrace): Check format.
11832 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11833 (linux_btrace_conf): New.
11834 (btrace_target_info)<ptid>: Moved.
11835 (btrace_target_info)<conf>: New.
11836 (btrace_target_info): Split into this and ...
11837 (btrace_tinfo_bts): ... this. Updated users.
11838 * btrace.c (btrace_enable): Update parameters.
11839 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11840 (btrace_conf_children, btrace_conf_attributes)
11841 (btrace_conf_elements): New.
11842 * btrace.h (btrace_enable): Update parameters.
11843 (btrace_conf, parse_xml_btrace_conf): New.
11844 * common/btrace-common.h (btrace_config): New.
11845 * feature/btrace-conf.dtd: New.
11846 * record-btrace.c (record_btrace_conf): New.
11847 (record_btrace_cmdlist): New.
11848 (record_btrace_enable_warn, record_btrace_open): Pass
11849 &record_btrace_conf.
11850 (record_btrace_info): Print recording format.
11851 (cmd_record_btrace_bts_start): New.
11852 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11853 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11854 Add "record bts" alias command.
11855 * remote.c (remote_state)<btrace_config>: New.
11856 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11857 (remote_protocol_features): Add qXfer:btrace-conf:read.
11858 (remote_open_1): Call remote_btrace_reset.
11859 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11860 (btrace_target_info)<conf>: New.
11861 (btrace_sync_conf, btrace_read_config): New.
11862 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11864 (remote_btrace_conf): New.
11865 (init_remote_ops): Initialize to_btrace_conf.
11866 (_initialize_remote): Add qXfer:btrace-conf packet.
11867 * target.c (target_enable_btrace): Update parameters.
11868 (target_btrace_conf): New.
11869 * target.h (target_enable_btrace): Update parameters.
11870 (target_btrace_conf): New.
11871 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11872 (target_ops)<to_enable_btrace>: Update parameters and comment.
11873 (target_ops)<to_btrace_conf>: New.
11874 * target-delegates: Regenerate.
11875 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11876 (target_debug_print_const_struct_btrace_target_info_p): New.
11877 * NEWS: Announce new command and new packet.
11879 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11881 * nat/linux-btrace.h (perf_event_buffer): New.
11882 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11884 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11885 (perf_event_buffer_size, perf_event_buffer_begin)
11886 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11888 (perf_event_new_data): New.
11890 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11892 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11893 * record-btrace.c (record_btrace_open): Remove call to
11894 target_supports_btrace.
11895 * remote.c (remote_supports_btrace): Update parameters.
11896 * target.c (target_supports_btrace): Update parameters.
11897 * target.h (to_supports_btrace, target_supports_btrace): Update
11899 * target-delegates.c: Regenerate.
11900 * target-debug.h (target_debug_print_enum_btrace_format): New.
11901 * nat/linux-btrace.c
11902 (kernel_supports_btrace): Rename into ...
11903 (kernel_supports_bts): ... this. Update users. Update warning text.
11904 (intel_supports_btrace): Rename into ...
11905 (intel_supports_bts): ... this. Update users.
11906 (cpu_supports_btrace): Rename into ...
11907 (cpu_supports_bts): ... this. Update users.
11908 (linux_supports_btrace): Update parameters. Split into this and ...
11909 (linux_supports_bts): ... this.
11910 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11912 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11914 * Makefile.in (SFILES): Add common/btrace-common.c.
11915 (COMMON_OBS): Add common/btrace-common.o.
11916 (btrace-common.o): Add build rules.
11917 * btrace.c (parse_xml_btrace): Update parameters.
11918 (parse_xml_btrace_block): Set format field.
11919 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11920 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11921 (btrace_compute_ftrace): Split into this and...
11922 (btrace_compute_ftrace_bts): ...this.
11923 (btrace_stitch_trace): Split into this and...
11924 (btrace_stitch_bts): ...this.
11925 * btrace.h (parse_xml_btrace): Update parameters.
11926 (make_cleanup_btrace_data): New.
11927 * common/btrace-common.c: New.
11928 * common/btrace-common.h: Include common-defs.h.
11929 (btrace_block_s): Update comment.
11930 (btrace_format): New.
11931 (btrace_format_string): New.
11932 (btrace_data_bts): New.
11933 (btrace_data): New.
11934 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11935 * remote.c (remote_read_btrace): Update parameters.
11936 * target.c (target_read_btrace): Update parameters.
11937 * target.h (target_read_btrace): Update parameters.
11938 (target_ops)<to_read_btrace>: Update parameters.
11939 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11940 * target-delegates.c: Regenerate.
11941 * target-debug (target_debug_print_struct_btrace_data_p): New.
11942 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11943 (linux_read_bts): ...this.
11944 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11946 2015-02-06 Doug Evans <dje@google.com>
11948 * remote-m32r-sdi.c: Include symfile.h.
11950 2015-02-06 Doug Evans <dje@google.com>
11952 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11953 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11956 2015-02-06 Pedro Alves <palves@redhat.com>
11958 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11960 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11963 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11964 (enable_count_command): Check args for NULL value.
11966 2015-02-05 Doug Evans <xdje42@gmail.com>
11968 * guile/scm-frame.c: Fix spelling errors in a comment.
11970 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11972 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11973 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11976 2015-02-04 Pedro Alves <palves@redhat.com>
11978 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11979 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11981 (resume_stopped_resumed_lwps): Don't check whether the thread is
11982 marked as executing.
11983 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11985 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11987 * regset.h (struct regset): Add flags field.
11988 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11989 * corelow.c (get_core_register_section): Add warning if the size
11990 exceeds the requested size and the regset does not have the
11991 REGSET_VARIABLE_SIZE flag set.
11992 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11994 * armbsd-tdep.c (armbsd_gregset): Likewise.
11995 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11996 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11997 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11998 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12000 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12002 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12003 For ".reg-xstate", explicitly specify the requested section size
12004 via X86_XSTATE_SIZE instead of just 0 on input and
12005 X86_XSTATE_MAX_SIZE on output.
12006 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12009 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12011 PR corefiles/17808:
12012 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12013 function type, particularly its SIZE parameter.
12014 * gdbarch.h: Regenerate.
12015 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12016 actual against required size using ">=" instead of "==".
12017 (amd64_collect_fpregset): Likewise.
12018 * i386-tdep.c (i386_supply_gregset): Likewise.
12019 (i386_collect_gregset): Likewise.
12020 (i386_supply_fpregset): Likewise.
12021 (i386_collect_fpregset): Likewise.
12022 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12023 (mips_fill_gregset_wrapper): Likewise.
12024 (mips_supply_fpregset_wrapper): Likewise.
12025 (mips_fill_fpregset_wrapper): Likewise.
12026 (mips64_supply_gregset_wrapper): Likewise.
12027 (mips64_fill_gregset_wrapper): Likewise.
12028 (mips64_supply_fpregset_wrapper): Likewise.
12029 (mips64_fill_fpregset_wrapper): Likewise.
12030 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12031 (am33_supply_fpregset_method): Likewise.
12032 (am33_collect_gregset_method): Likewise.
12033 (am33_collect_fpregset_method): Likewise.
12035 2015-02-04 Doug Evans <dje@google.com>
12036 Pedro Alves <palves@redhat.com>
12037 Eli Zaretskii <eliz@gnu.org>
12040 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12041 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12042 * tui/tui-file.c: #include tui/tui-command.h.
12043 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12044 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12045 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12047 2015-02-04 Pedro Alves <palves@redhat.com>
12049 Fix build breakage.
12050 * event-loop.c (gdb_do_one_event): Add default switch case.
12052 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12054 Filter out inferior gcc option -fpreprocessed.
12055 * compile/compile.c (filter_args): New function.
12056 (get_args): Use it.
12058 2015-02-03 Pedro Alves <palves@redhat.com>
12060 * event-loop.c: Don't declare nor define a queue type for
12062 (event_queue): Delete.
12063 (create_event, create_file_event, gdb_event_xfree)
12064 (initialize_event_loop, process_event): Delete.
12065 (gdb_do_one_event): Return as soon as one event is handled.
12066 (handle_file_event): Change prototype. Used the passed in
12067 file_handler pointer and ready_mask instead of looping over all
12069 (gdb_wait_for_event): Update the poll/select timeouts before
12070 blocking. Run event handlers directly instead of queueing events.
12071 Return as soon as one event is handled.
12072 (struct async_event_handler_data): Delete.
12073 (invoke_async_event_handler): Delete.
12074 (check_async_event_handlers): Change return type to int. Run
12075 event handlers directly instead of queueing events. Return as
12076 soon as one event is handled.
12077 (handle_timer_event): Delete.
12078 (update_wait_timeout): New function, factored out from
12080 (poll_timers): Reimplement.
12081 * event-loop.h (initialize_event_loop): Delete declaration.
12082 * top.c (gdb_init): Don't call initialize_event_loop.
12084 2015-02-03 Pedro Alves <palves@redhat.com>
12086 * event-loop.c (clear_async_event_handler): New function.
12087 * event-loop.h (clear_async_event_handler): New declaration.
12088 * record-btrace.c (record_btrace_async): New function.
12089 (init_record_btrace_ops): Install record_btrace_async.
12090 * record-full.c (record_full_async): New function.
12091 (record_full_resume): Don't mark the async event source here.
12092 (init_record_full_ops): Install record_full_async.
12093 (record_full_core_resume): Don't mark the async event source here.
12094 (init_record_full_core_ops): Install record_full_async.
12095 * remote.c (remote_async): Mark and clear the async stop reply
12096 queue event-loop token as appropriate.
12098 2015-02-03 Pedro Alves <palves@redhat.com>
12100 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12101 target_is_async_p instead of target_can_async.
12102 (linux_nat_wait): Use target_is_async_p instead of
12103 target_can_async. Don't enable async here.
12104 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12105 target_is_async_p instead of target_can_async.
12107 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12109 * varobj.h (lang_varobj_ops): Mention which return values need
12112 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12114 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12116 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12119 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12120 results found in the cache.
12122 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12125 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12126 when allocating a new one.
12128 2015-02-01 Tom Tromey <tom@tromey.com>
12130 * MAINTAINERS: Remove myself.
12132 2015-01-31 Doug Evans <xdje42@gmail.com>
12134 * dwarf2read.c (process_structure_scope): Update setting of
12135 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12136 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12137 (set_type_vptr_fieldno): New function.
12138 (internal_type_vptr_basetype): New function.
12139 (set_type_vptr_basetype): New function.
12140 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12141 TYPE_VPTR_BASETYPE.
12142 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12143 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12144 (print_cplus_stuff): ... moved here.
12145 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12146 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12148 (struct cplus_struct_type): ... here. All uses updated.
12149 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12150 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12151 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12152 * stabsread.c (read_tilde_fields): Update setting of
12153 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12155 2015-01-31 Doug Evans <xdje42@gmail.com>
12157 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12159 (cp_print_class_member): Rename local domain to self_type.
12160 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12161 domain_type to self_type.
12162 (set_die_type) <need_gnat_info>: Handle
12163 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12164 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12165 TYPE_SPECIFIC_SELF_TYPE.
12166 * gdbtypes.c (internal_type_self_type): New function.
12167 (set_type_self_type): New function.
12168 (smash_to_memberptr_type): Rename parameter domain to self_type.
12169 Update setting of TYPE_SELF_TYPE.
12170 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12171 (smash_to_method_type): Rename parameter domain to self_type.
12172 Update setting of TYPE_SELF_TYPE.
12173 (check_stub_method): Call smash_to_method_type.
12174 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12175 (copy_type_recursive): Ditto.
12176 * gdbtypes.h (enum type_specific_kind): New value
12177 TYPE_SPECIFIC_SELF_TYPE.
12178 (struct main_type) <type_specific>: New member self_type.
12179 (struct cplus_struct_type) <fn_field.type>: Update comment.
12180 (TYPE_SELF_TYPE): Rewrite.
12181 (internal_type_self_type, set_type_self_type): Declare.
12182 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12184 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12185 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12187 * stabsread.c (read_member_functions): Mark methods with
12188 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12191 2015-01-31 Doug Evans <xdje42@gmail.com>
12193 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12196 2015-01-31 Doug Evans <xdje42@gmail.com>
12198 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12199 or unions. Return zero if union.
12200 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12201 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12203 (compute_vtable_size): Assert only passed structs.
12204 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12206 2015-01-31 Doug Evans <xdje42@gmail.com>
12208 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12211 2015-01-31 Gary Benson <gbenson@redhat.com>
12212 Doug Evans <dje@google.com>
12217 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12219 * common/common-exceptions.h (enum errors)
12220 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12221 * completer.h (get_max_completions_reached_message): New declaration.
12222 (max_completions): Likewise.
12223 (completion_tracker_t): New typedef.
12224 (new_completion_tracker): New declaration.
12225 (make_cleanup_free_completion_tracker): Likewise.
12226 (maybe_add_completion_enum): New enum.
12227 (maybe_add_completion): New declaration.
12228 (throw_max_completions_reached_error): Likewise.
12229 * completer.c (max_completions): New global variable.
12230 (new_completion_tracker): New function.
12231 (free_completion_tracker): Likewise.
12232 (make_cleanup_free_completion_tracker): Likewise.
12233 (maybe_add_completions): Likewise.
12234 (throw_max_completions_reached_error): Likewise.
12235 (complete_line): Remove duplicates and limit result to max_completions
12237 (get_max_completions_reached_message): New function.
12238 (gdb_display_match_list): Handle max_completions.
12239 (_initialize_completer): New declaration and function.
12240 * symtab.c: Include completer.h.
12241 (completion_tracker): New static variable.
12242 (completion_list_add_name): Call maybe_add_completion.
12243 (default_make_symbol_completion_list_break_on_1): Renamed from
12244 default_make_symbol_completion_list_break_on. Maintain
12245 completion_tracker across calls to completion_list_add_name.
12246 (default_make_symbol_completion_list_break_on): New function.
12247 * top.c (init_main): Set rl_completion_display_matches_hook.
12248 * tui/tui-io.c: Include completer.h.
12249 (tui_old_rl_display_matches_hook): New static global.
12250 (tui_rl_display_match_list): Notify user if max-completions reached.
12251 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12252 * NEWS (New Options): Mention set/show max-completions.
12254 2015-01-31 Gary Benson <gbenson@redhat.com>
12256 * symtab.c (struct add_name_data) <code>: New field.
12258 (add_symtab_completions): New function.
12259 (symtab_expansion_callback): Likewise.
12260 (default_make_symbol_completion_list_break_on): Set datum.code.
12261 Move minimal symbol scan before calling expand_symtabs_matching.
12262 Scan known primary symtabs for externs and statics before calling
12263 expand_symtabs_matching. Pass symtab_expansion_callback as
12264 expansion_notify argument to expand_symtabs_matching. Do not scan
12265 primary symtabs for externs and statics after calling
12266 expand_symtabs_matching.
12268 2015-01-31 Gary Benson <gbenson@redhat.com>
12270 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12271 (struct quick_symbol_functions) <expand_symtabs_matching>:
12272 New argument expansion_notify. All uses updated.
12273 (expand_symtabs_matching): New argument expansion_notify.
12275 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12276 Also print expansion notify.
12277 * symtab.c (expand_symtabs_matching_via_partial): Call
12278 expansion_notify whenever a partial symbol table is expanded.
12279 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12280 expansion_notify whenever a symbol table is instantiated.
12282 2015-01-31 Doug Evans <xdje42@gmail.com>
12284 * cli-out.c: #include completer.h, readline/readline.h.
12285 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12286 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12287 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12288 * cli-out.h (cli_display_match_list): Declare.
12289 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12290 (ELLIPSIS_LEN): Ditto.
12291 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12292 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12293 (gdb_fnprint, gdb_print_filename): Ditto.
12294 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12295 (gdb_display_match_list): Ditto.
12296 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12297 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12298 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12299 (match_list_displayer): New struct.
12300 (gdb_display_match_list): Declare.
12301 * top.c (init_main): Set rl_completion_display_matches_hook.
12302 * tui/tui-io.c: #include completer.h.
12303 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12304 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12305 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12306 (tui_mld_getc, tui_mld_read_key): Ditto.
12307 (tui_rl_display_match_list): Rewrite.
12308 (tui_handle_resize_during_io): New arg for_completion. All callers
12311 2015-01-31 Doug Evans <xdje42@gmail.com>
12313 Add symbol lookup cache.
12314 * NEWS: Document new options and commands.
12315 * symtab.c (symbol_cache_key): New static global.
12316 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12317 (SYMBOL_LOOKUP_FAILED): New macro.
12318 (symbol_cache_slot_state): New enum.
12319 (block_symbol_cache): New struct.
12320 (symbol_cache): New struct.
12321 (new_symbol_cache_size, symbol_cache_size): New static globals.
12322 (hash_symbol_entry, eq_symbol_entry): New functions.
12323 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12324 (make_symbol_cache, free_symbol_cache): New functions.
12325 (get_symbol_cache, symbol_cache_cleanup): New function.
12326 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12327 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12328 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12329 (symbol_cache_flush, symbol_cache_dump): New functions.
12330 (maintenance_print_symbol_cache): New function.
12331 (maintenance_flush_symbol_cache): New function.
12332 (symbol_cache_stats): New function.
12333 (maintenance_print_symbol_cache_statistics): New function.
12334 (symtab_new_objfile_observer): New function.
12335 (symtab_free_objfile_observer): New function.
12336 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12337 (_initialize_symtab): Init symbol_cache_key. New parameter
12338 maint symbol-cache-size. New maint commands print symbol-cache,
12339 print symbol-cache-statistics, flush-symbol-cache.
12340 Install new_objfile, free_objfile observers.
12342 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12345 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12348 2015-01-31 Doug Evans <xdje42@gmail.com>
12350 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12351 * auto-load.c: #include ctype.h.
12352 (struct auto_load_pspace_info): Replace member loaded_scripts with
12353 new members loaded_script_files, loaded_script_texts.
12354 (auto_load_pspace_data_cleanup): Update.
12355 (init_loaded_scripts_info): Update.
12356 (get_auto_load_pspace_data_for_loading): Update.
12357 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12359 (maybe_add_script_text): New function.
12360 (clear_section_scripts): Update.
12361 (source_script_file, execute_script_contents): New functions.
12362 (source_section_scripts): Add support for
12363 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12364 (print_scripts): New function.
12365 (auto_load_info_scripts): Also print inlined scripts.
12366 (maybe_print_unsupported_script_warning): Renamed from
12367 unsupported_script_warning_print. All callers updated.
12368 (maybe_print_script_not_found_warning): Renamed from
12369 script_not_found_warning_print. All callers updated.
12370 * extension-priv.h (struct extension_language_script_ops): New member
12371 objfile_script_executor.
12372 * extension.c (ext_lang_objfile_script_executor): New function.
12373 * extension.h (objfile_script_executor_func): New typedef.
12374 (ext_lang_objfile_script_executor): Declare.
12375 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12376 * guile/guile.c (guile_extension_script_ops): Update.
12377 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12378 * python/python.c (python_extension_script_ops): Update.
12379 (gdbpy_execute_objfile_script): New function.
12381 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12383 * tui/tui-io.c (tui_expand_tabs): New function.
12384 (tui_puts, tui_redisplay_readline): Expand TABs into the
12385 appropriate number of spaces.
12386 * tui/tui-regs.c: Include tui-io.h.
12387 (tui_register_format): Call tui_expand_tabs to expand TABs into
12388 the appropriate number of spaces.
12389 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12391 2015-01-30 Doug Evans <dje@google.com>
12393 * NEWS: "info source" command now display producer string if present.
12394 * source.c (source_info): Print producer string if present.
12396 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12398 * varobj.c (varobj_delete): Fix comment.
12400 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12402 * varobj.c (create_child): Modify comment.
12404 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12406 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12408 (ada_name_of_variable): Same.
12409 (ada_path_expr_of_child): Same.
12410 (ada_value_of_variable): Same.
12411 (ada_value_is_changeable_p): Same.
12412 (ada_value_has_mutated): Same.
12413 * c-varobj.c (varobj_is_anonymous_child): Same.
12414 (c_is_path_expr_parent): Same.
12415 (c_number_of_children): Same.
12416 (c_name_of_variable): Same.
12417 (c_path_expr_of_child): Same.
12419 (c_value_of_variable): Same.
12420 (cplus_number_of_children): Same.
12421 (cplus_name_of_variable): Same.
12422 (cplus_path_expr_of_child): Same.
12423 (cplus_value_of_variable): Same.
12424 * jv-varobj.c (java_number_of_children): Same.
12425 (java_name_of_variable): Same.
12426 (java_path_expr_of_child): Same.
12427 (java_value_of_variable): Same.
12428 * varobj.c (number_of_children): Same.
12429 (name_of_variable): Same.
12431 (varobj_ensure_python_env): Same.
12432 (varobj_get_objname): Same.
12433 (varobj_get_expression): Same.
12434 (varobj_get_display_format): Same.
12435 (varobj_get_display_hint): Same.
12436 (varobj_has_more): Same.
12437 (varobj_get_thread_id): Same.
12438 (varobj_get_frozen): Same.
12439 (dynamic_varobj_has_child_method): Same.
12440 (varobj_get_gdb_type): Same.
12441 (is_path_expr_parent): Same.
12442 (varobj_default_is_path_expr_parent): Same.
12443 (varobj_get_language): Same.
12444 (varobj_get_attributes): Same.
12445 (varobj_is_dynamic_p): Same.
12446 (varobj_get_child_range): Same.
12447 (varobj_value_has_mutated): Same.
12448 (varobj_get_value_type): Same.
12449 (number_of_children): Same.
12450 (name_of_variable): Same.
12451 (check_scope): Same.
12452 (varobj_editable_p): Same.
12453 (varobj_value_is_changeable_p): Same.
12454 (varobj_floating_p): Same.
12455 (varobj_default_value_is_changeable_p): Same.
12457 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12459 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12460 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12462 (cplus_path_expr_of_child): Same.
12464 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12466 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12468 (mi_cmd_var_info_expression): Same.
12469 * varobj.c (varobj_get_expression): Mention in the comment that
12470 the result must by freed by the caller.
12472 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12474 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12476 (varobj_update_one): Same.
12477 * varobj.c (update_type_if_necessary): Free curr_type_str and
12479 (varobj_get_type): Specify in comment that the result needs to be
12480 freed by the caller.
12482 2015-01-29 Doug Evans <dje@google.com>
12485 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12487 2015-01-25 Mark Wielaard <mjw@redhat.com>
12489 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12490 * utils.c (producer_is_gcc_ge_4): Likewise.
12491 (producer_is_gcc): New function.
12492 * utils.h (producer_is_gcc): New declaration.
12494 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12496 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12498 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12499 parameter by "addr_stack" parameter.
12500 (resolve_dynamic_range): Replace "addr" parameter by
12501 "stack_addr" parameter. Update function documentation.
12502 Update code accordingly.
12503 (resolve_dynamic_array, resolve_dynamic_union)
12504 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12505 (resolve_dynamic_type): Update code, following the changes made
12506 to resolve_dynamic_type_internal's interface.
12507 * dwarf2loc.h (struct property_addr_info): New.
12508 (dwarf2_evaluate_property): Replace "address" parameter
12509 by "addr_stack" parameter. Adjust function documentation.
12510 (struct dwarf2_offset_baton): New.
12511 (struct dwarf2_property_baton): Update documentation of
12512 field "referenced_type" to be more general. New field
12513 "offset_info" in union data field.
12514 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12515 parameter by "addr_stack" parameter. Adjust code accordingly.
12516 Add support for PROP_ADDR_OFFSET properties.
12517 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12518 DW_AT_data_member_location attributes as well. Use case
12519 statements instead of if/else condition.
12521 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12523 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12524 Return zero if PARENT_VALUE is NULL and parent_type's
12525 range type is dynamic.
12527 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12529 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12530 nonzero if the type's subtype is dynamic.
12531 (resolve_dynamic_range): Also resolve the range's subtype.
12533 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12535 Pushed by Joel Brobecker <brobecker@adacore.com>.
12536 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12538 2015-01-27 Doug Evans <dje@google.com>
12540 * NEWS: Mention gdb.Objfile.username.
12541 * python/py-objfile.c (objfpy_get_username): New function.
12542 (objfile_getset): Add "username".
12544 2015-01-24 Mark Wielaard <mjw@redhat.com>
12546 * stack.c (return_command): Markup warning message with _.
12548 2015-01-24 Doug Evans <xdje42@gmail.com>
12550 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12552 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12554 Fix 100x slowdown regression on DWZ files.
12555 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12556 (struct line_header): Add offset and offset_in_dwz.
12557 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12558 (free_line_header_voidp): New declaration.
12559 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12561 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12562 (handle_DW_AT_stmt_list): Use line_header_hash.
12563 (free_line_header_voidp): New function.
12564 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12565 (dwarf_decode_lines): New parameter decode_mapping, use it.
12566 (dwarf2_free_objfile): Free line_header_hash.
12568 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12571 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12574 2015-01-15 Mark Wielaard <mjw@redhat.com>
12576 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12578 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12579 calling_convention an 8 bit bit field.
12580 (TYPE_NO_RETURN): New macro.
12581 * infcmd.c (finish_command): Query if function does not return
12583 * stack.c (return_command): Likewise.
12585 2015-01-23 Pedro Alves <palves@redhat.com>
12587 * linux-nat.c (linux_is_async_p): New macro.
12588 (linux_nat_is_async_p):
12589 (linux_nat_terminal_inferior): Check whether the target can async
12590 instead of whether it is already async.
12591 (linux_nat_terminal_ours): Don't check whether the target is
12593 (linux_async_pipe): Use linux_is_async_p.
12595 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12597 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12599 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12600 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12601 Sort tp_array using tp_array_compar.
12602 (_initialize_thread): Extend thread_apply_all_command help.
12604 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12606 * corelow.c (core_open): Call also thread_command.
12607 * gdbthread.h (thread_command): New prototype moved from ...
12608 * thread.c (thread_command): ... here.
12609 (thread_command): Make it global.
12611 2015-01-22 Pedro Alves <palves@redhat.com>
12613 * configure.ac [*mingw32*]: Check $curses_found instead of
12615 * configure: Regenerate.
12616 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12617 HAVE_NCURSES_NCURSES_H checks.
12619 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12621 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12622 fails with the 1st arg NULL, try again with "unknown". Don't test
12623 the "cup" capability: it isn't supported by the Windows port of
12624 ncurses, but the Windows console driver is still capable of
12627 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12629 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12631 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12633 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12634 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12635 reason that "make TAGS" is broken.
12637 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12639 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12640 and check additional store instructions.
12642 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12644 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12646 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12648 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12649 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12650 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12651 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12652 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12653 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12654 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12655 ppc_process_record_op19, ppc_process_record_op31,
12656 ppc_process_record_op59, ppc_process_record_op60,
12657 ppc_process_record_op63): Likewise.
12659 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12661 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12662 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12665 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12667 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12668 ppc_process_record_op31, ppc_process_record_op59,
12669 ppc_process_record_op60, ppc_process_record_op63,
12670 ppc_process_record): Fix -Wformat warning.
12671 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12672 Remove unused variables.
12674 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12676 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12678 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12680 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12681 CONFIG_OBS if not building with a curses library.
12682 * configure: Regenerate.
12684 * windows-termcap.c: Include defs.h. Make the whole body empty if
12685 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12686 HAVE_NCURSES_NCURSES_H is defined.
12688 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12690 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12691 from end of line to start of next line.
12693 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12695 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12696 Scan PLT stub backward for reverse debugging.
12697 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12699 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12700 Ulrich Weigand <uweigand@de.ibm.com>
12702 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12704 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12706 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12707 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12708 (ppc_linux_init_abi): Set process_record, process_record_signal.
12709 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12710 ppc_linux_record_tdep to gdbarch_tdep.
12711 (ppc_process_record): New declaration.
12712 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12713 ppc_process_record_op19, ppc_process_record_op31,
12714 ppc_process_record_op59, ppc_process_record_op60,
12715 ppc_process_record_op63, ppc_process_record): New functions.
12717 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12719 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12720 rs6000_in_function_epilogue_frame_p and add an argument
12722 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12723 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12725 (rs6000_epilogue_frame_unwind): New.
12726 (rs6000_gdbarch_init): Append epilogue unwinder.
12728 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12730 * nat/linux-personality.c: Replace "#ifndef
12731 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12732 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12735 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12737 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12739 (_initialize_tui_win) <border-kind, border-mode>:
12740 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12741 (tui_set_tab_width_command): Fix the commentary.
12743 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12745 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12747 (tui_set_tab_width_command): Delete and recreate the source and
12748 the disassembly windows, to show the effect of the changed tab
12751 * tui/tui-data.h (LINE_PREFIX): Make shorter
12752 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12753 "Thread NNNNN.XXXX" thread ID notation on Windows.
12755 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12757 Fix gcc-5 compilation.
12758 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12760 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12762 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12763 (linux-personality.o): New rule.
12764 * common/common-defs.h: Include <stdint.h>.
12765 * config/aarch64/linux.mh (NATDEPFILES): Include
12766 linux-personality.o.
12767 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12768 * config/arm/linux.mh (NATDEPFILES): Likewise.
12769 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12770 * config/i386/linux.mh (NATDEPFILES): Likewise.
12771 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12772 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12773 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12774 * config/mips/linux.mh (NATDEPFILES): Likewise.
12775 * config/pa/linux.mh (NATDEPFILES): Likewise.
12776 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12777 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12778 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12779 * config/s390/linux.mh (NATDEPFILES): Likewise.
12780 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12781 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12782 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12783 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12784 * defs.h: Remove #include <stdint.h> (moved to
12785 common/common-defs.h).
12786 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12787 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12788 nat/linux-personality.c).
12789 (linux_nat_create_inferior): Remove code to disable address space
12790 randomization (moved to nat/linux-personality.c). Create cleanup
12791 to disable address space randomization.
12792 * nat/linux-personality.c: New file.
12793 * nat/linux-personality.h: Likewise.
12795 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12797 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12798 common/posix-strerror.c.
12799 (posix-strerror.o): New rule.
12800 (mingw-strerror.o): Likewise.
12801 * common/common-utils.h (safe_strerror): Move prototype to here,
12803 * common/common.host: New file.
12804 * common/mingw-strerror.c: Likewise.
12805 * common/posix-strerror.c: Likewise.
12806 * configure: Regenerated.
12807 * configure.ac: Source common/common.host. Add variable
12808 common_host_obs to gdb_host_obs.
12809 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12810 gdb/common/posix-strerror.c when warning about the use of
12812 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12813 common/mingw-strerror.c.
12814 * posix-hdep.c (safe_strerror): Remove definition; move it to
12815 common/posix-hdep.c.
12816 * utils.h (safe_strerror): Remove prototype; move to
12817 common/common-utils.h.
12819 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12821 GDB 7.8.2 released.
12823 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12825 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12826 ___XA type if the array has already been fixed.
12828 2015-01-14 Yao Qi <yao@codesourcery.com>
12830 * Makefile.in (ppc-linux.o): New rule.
12831 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12832 * configure.ac: AC_CHECK_FUNCS(getauxval).
12833 * config.in: Re-generated.
12834 * configure: Re-generated.
12835 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12837 * nat/ppc-linux.c: New file.
12838 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12839 Call ppc64_64bit_inferior_p.
12841 2015-01-14 Yao Qi <yao@codesourcery.com>
12843 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12845 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12846 (PPC_FEATURE_HAS_DFP): Likewise.
12847 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12848 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12849 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12850 Include "nat/ppc-linux.h".
12851 * nat/ppc-linux.h: New file.
12852 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12854 2015-01-14 Pedro Alves <palves@redhat.com>
12857 * breakpoint.c: Include "interps.h".
12858 (bpstat_do_actions_1): Also check whether the interpreter is
12861 2015-01-14 Pedro Alves <palves@redhat.com>
12864 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12865 reinstall if the interpreter is sync.
12867 2015-01-13 Doug Evans <dje@google.com>
12869 * objfiles.c (objfile_filename): New function.
12870 * objfiles.h (objfile_filename): Declare it.
12871 (objfile_name): Add function comment.
12872 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12873 bfd file name (which may be realpath'd), and the original name.
12875 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12877 * NEWS: Create a new section for the next release branch.
12878 Rename the section of the current branch, now that it has
12881 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12883 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12884 * version.in: Bump version to 7.9.50.DATE-cvs.
12886 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12888 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12889 Remove trailing new-line in argument of call to warning.
12891 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12893 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12894 new-line in argument of call to "warning".
12896 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12898 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12899 in static block, then try searching for primitive types.
12901 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12903 * top.h (gdb_add_history): Declare.
12904 * top.c (command_count): New variable.
12905 (gdb_add_history): New function.
12906 (gdb_safe_append_history): New static function.
12907 (quit_force): Call it.
12908 (command_line_input): Use gdb_add_history instead of
12910 * event-top.c (command_line_handler): Likewise.
12912 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12915 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12916 <setjmp.h> #include.
12918 2015-01-11 Doug Evans <xdje42@gmail.com>
12920 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12922 2015-01-11 Doug Evans <xdje42@gmail.com>
12925 * NEWS: The "maint demangle" command is renamed as "demangle".
12926 * demangle.c: #include cli/cli-utils.h, language.h.
12927 (demangle_command): New function.
12928 (_initialize_demangle): Add new command "demangle".
12929 * maint.c (maintenance_demangle): Stub out.
12930 (_initialize_maint_cmds): Update help text for "maint demangle",
12931 and mark as deprecated.
12933 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12935 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12936 inferior_thread is a function.
12938 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12940 * Makefile.in (.y.c): Don't munge yacc's #line
12943 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12945 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12946 to prompt for input.
12947 * tui/tui-hooks.c (tui_query_hook): Remove.
12948 (tui_install_hooks): Don't set deprecated_query_hook.
12949 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12950 height calculation. Always update the command window's cur_line.
12952 2015-01-09 Pedro Alves <palves@redhat.com>
12954 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12956 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12958 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12959 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12961 (check_stopped_by_watchpoint): New function.
12962 (save_sigtrap): Reimplement.
12963 (linux_nat_stopped_by_watchpoint): Adjust.
12964 (linux_nat_lp_status_is_event): Delete.
12965 (stop_wait_callback): Only call save_sigtrap after storing the
12967 (status_callback): If the thread had been stopped for a breakpoint
12968 that has since been removed, discard the event and resume the LWP.
12969 (count_events_callback, select_event_lwp_callback): Use
12970 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12971 (cancel_breakpoint): Rename to ...
12972 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12973 stopped for a software breakpoint or hardware breakpoint.
12974 (select_event_lwp): Only give preference to the stepping LWP in
12975 all-stop mode. Adjust comments.
12976 (stop_and_resume_callback): Remove references to new_pending_p.
12977 (linux_nat_filter_event): Likewise. Leave exit events of the
12978 leader thread pending here. Handle signal short circuiting here.
12979 Only call save_sigtrap after storing the pending waitstatus.
12980 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12981 new_pending. Don't handle leaving events the caller is not
12982 interested in pending here, nor handle signal short-circuiting
12983 here. Also give equal priority to all LWPs that have had events
12984 in non-stop mode. If reporting a software breakpoint event,
12985 unadjust the LWP's PC.
12986 * linux-nat.h (enum lwp_stop_reason): New.
12987 (struct lwp_info) <stop_pc>: New field.
12988 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12989 (struct lwp_info) <stop_reason>: New field.
12990 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12992 2015-01-09 Pedro Alves <palves@redhat.com>
12994 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12995 Set the LWP's 'resumed' flag.
12997 2015-01-09 Pedro Alves <palves@redhat.com>
12999 * linux-nat.c (linux_resume_one_lwp): New function.
13000 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13001 (linux_nat_resume): Use lwp_status_pending_p and
13002 linux_resume_one_lwp.
13003 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13004 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13005 (status_callback, running_callback): Use lwp_status_pending_p.
13006 (lwp_status_pending_p): New function.
13007 (stop_and_resume_callback): Use lwp_status_pending_p.
13008 (linux_nat_filter_event): Use linux_resume_one_lwp.
13009 (linux_nat_wait_1): Always use status_callback to look for an LWP
13010 with a pending status. Use linux_resume_one_lwp.
13011 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13012 linux_resume_one_lwp.
13014 2015-01-09 Pedro Alves <palves@redhat.com>
13016 * breakpoint.c (bp_location_inserted_here_p): New function,
13017 factored out from ...
13018 (breakpoint_inserted_here_p): ... here. Use
13019 ALL_BP_LOCATIONS_AT_ADDR.
13020 (software_breakpoint_inserted_here_p): Use
13021 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13023 2014-01-09 Pedro Alves <palves@redhat.com>
13025 Skip enabling event reporting if the kernel supports
13026 PTRACE_EVENT_CLONE.
13027 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13028 (thread_db_use_events): New function.
13029 (try_thread_db_load_1): Check thread_db_use_events before enabling
13031 (update_thread_state): New function.
13032 (attach_thread): Use it. Check thread_db_use_events before
13033 enabling event reporting.
13034 (thread_db_detach): Check thread_db_use_events before disabling
13036 (find_new_threads_callback): Check thread_db_use_events before
13037 enabling event reporting. Update the thread's state if not using
13038 libthread_db events.
13040 2015-01-09 Pedro Alves <palves@redhat.com>
13042 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13043 about to wait for is > 0.
13044 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13045 the kernel thread ID is -1.
13047 2015-01-09 Pedro Alves <palves@redhat.com>
13049 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13050 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13051 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13052 ptrace option flags.
13053 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13055 * nat/linux-procfs.c: Include <dirent.h>.
13056 (linux_proc_get_int): New parameter "warn". Handle it.
13057 (linux_proc_get_tgid): Adjust.
13058 (linux_proc_get_tracerpid): Rename to ...
13059 (linux_proc_get_tracerpid_nowarn): ... this.
13060 (linux_proc_pid_get_state): New function, factored out from
13061 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13063 (linux_proc_pid_is_gone): New function.
13064 (linux_proc_pid_is_stopped): Adjust.
13065 (linux_proc_pid_is_zombie_maybe_warn)
13066 (linux_proc_pid_is_zombie_nowarn): New functions.
13067 (linux_proc_pid_is_zombie): Use
13068 linux_proc_pid_is_zombie_maybe_warn.
13069 (linux_proc_attach_tgid_threads): New function.
13070 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13071 (linux_proc_get_tracerpid): Rename to ...
13072 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13073 (linux_proc_pid_is_gone): New declaration.
13074 (linux_proc_pid_is_zombie): Update comment.
13075 (linux_proc_pid_is_zombie_nowarn): New declaration.
13076 (linux_proc_attach_lwp_func): New typedef.
13077 (linux_proc_attach_tgid_threads): New declaration.
13078 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13079 use nowarn functions.
13080 (linux_ptrace_attach_fail_reason_string): Move here from
13081 gdbserver/linux-low.c and rename.
13082 (ptrace_supports_feature): If the current ptrace options are not
13083 known yet, check them now, instead of asserting.
13084 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13087 2015-01-09 Pedro Alves <palves@redhat.com>
13089 * linux-thread-db.c (thread_db_find_new_threads_silently)
13090 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13091 (find_new_threads_once): Print debug output on gdb_stdlog.
13093 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13094 Pedro Alves <palves@redhat.com>
13096 * compile/compile.c: Include "gdb_wait.h".
13097 (do_rmdir): Check return value, and free 'zap'.
13099 2015-01-08 Pedro Alves <palves@redhat.com>
13100 Yao Qi <yao@codesourcery.com>
13102 * dwarf2loc.c (indirect_pieced_value): Don't call
13103 gdb_sign_extend. Call extract_signed_integer instead.
13104 * utils.c (gdb_sign_extend): Remove.
13105 * utils.h (gdb_sign_extend): Remove declaration.
13107 2015-01-07 Pierre Muller <muller@sourceware.org>
13110 * stabsread.c (define_symbol): Set language for C++ special symbols.
13112 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13114 * inflow.c (initial_gdb_ttystate): Tweak comment.
13116 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13118 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13119 comment documenting function.
13121 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13123 * terminal.h (set_initial_gdb_ttystate): Declare.
13124 * inflow.c (initial_gdb_ttystate): New static variable.
13125 (set_initial_gdb_ttystate): New setter.
13126 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13127 instead of our current terminal state.
13128 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13130 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13132 * guile/scm-type.c (tyscm_array_1): Add comment.
13133 * python/py-type.c (typy_array_1): Add comment.
13135 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13137 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13138 error if N2 is equal to N1 - 1.
13140 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13142 * python/py-type.c (typy_array_1): Do not raise negative-length
13143 exception if N2 is equal to N1 - 1.
13145 2015-01-03 Doug Evans <xdje42@gmail.com>
13147 * c-exp.y: Whitespace cleanup.
13148 (classify_inner_name): Remove extra ;.
13150 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13152 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13155 2015-01-02 Doug Evans <dje@google.com>
13157 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13159 2015-01-02 Doug Evans <dje@google.com>
13161 * symtab.h (struct symbol): Fix typo in comment.
13163 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13165 Update year range in copyright notice of all files.
13167 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13169 * top.c (print_gdb_version): Update copyright year to 2015.
13171 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13173 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13175 For older changes see ChangeLog-2014.
13181 version-control: never