1 2015-10-30 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (breakpoint_in_range_p)
4 (breakpoint_location_address_range_overlap): New functions.
5 * breakpoint.h (breakpoint_in_range_p): New declaration.
6 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
7 in the scratch pad range, don't displaced step.
9 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
11 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
12 size_stack_t, size_size_t, size_iovec.
14 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
16 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
17 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
18 (amd64_x32_linux_init_abi): Fix size_termios.
20 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
22 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
24 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
26 * linux-record.c (record_linux_system_call): Fix old_select.
28 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
30 * linux-record.c (record_linux_system_call): Fix newstatat.
32 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
34 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
36 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
38 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
39 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
40 (amd64_x32_linux_init_abi): Add size_time_t.
41 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
42 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
43 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
45 * linux-record.h (struct linux_record_tdep): Add size_time_t.
46 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
48 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
50 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
52 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
54 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
55 size_dirent{,64}, add size_old_dirent.
56 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
58 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
60 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
62 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
64 * linux-record.c (record_linux_system_call): Fix handling of readdir
66 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
68 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
69 size_dirent{,64}, add size_old_dirent.
71 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
73 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
74 size_sigset_t, size_old_sigaction, size_old_sigset_t.
75 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
76 size_sigset_t, size_old_sigaction, size_old_sigset_t.
77 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
78 size_old_sigaction, size_old_sigset_t.
79 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
80 size_old_sigaction, size_old_sigset_t.
81 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
82 size_old_sigaction, size_old_sigset_t.
83 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
84 size_sigset_t, size_old_sigaction, size_old_sigset_t.
86 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
88 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
89 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
91 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
93 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
94 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
95 (amd64_x32_linux_init_abi): Remove size_siginfo.
96 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
97 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
98 * linux-record.c (record_linux_system_call): Change size_siginfo
100 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
101 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
103 2015-10-29 Pedro Alves <palves@redhat.com>
105 * mdebugread.c (add_data_symbol): New function, factored out from
107 (parse_symbol): ... here. Delete 'theclass' local.
109 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
111 * jit.c (jit_target_read_impl): Add cast.
113 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
115 * jit.c (jit_reader_load): Add cast.
117 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
119 * dwarf2read.c (partial_die_full_name): Add cast.
121 2015-10-29 Pedro Alves <palves@redhat.com>
123 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
125 2015-10-29 Pedro Alves <palves@redhat.com>
127 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
129 2015-10-29 Eli Zaretskii <eliz@gnu.org>
131 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
134 2015-10-29 Pedro Alves <palves@redhat.com>
136 * gnu-v2-abi.c (gnuv2_is_destructor_name)
137 (gnuv2_is_constructor_name): Add casts.
139 2015-10-29 Pedro Alves <palves@redhat.com>
141 * common/common-exceptions.c (exception_none): Add cast.
143 2015-10-29 Pedro Alves <palves@redhat.com>
145 * compile/compile-c-types.c (struct type_map_instance)
146 <gcc_type>: Rename to gcc_type_handle.
147 (insert_type, convert_type): Adjust.
149 2015-10-29 Pedro Alves <palves@redhat.com>
151 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
152 assume that "break" breaks out of a TRY/CATCH.
153 * python/py-framefilter.c (py_print_single_arg): Don't assume
154 "continue" breaks out of a TRY/CATCH.
155 * python/py-value.c (valpy_binop_throw): New function, factored
157 (valpy_binop): ... this.
158 (valpy_richcompare_throw): New function, factored
160 (valpy_richcompare): ... this.
161 * solib.c (solib_read_symbols): Don't assume "break" breaks out
163 * common/common-exceptions.h [USE_RAW_CXX_TRY]
164 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
166 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
168 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
169 as move along with [d]addu.
171 2015-10-28 Yao Qi <yao.qi@linaro.org>
173 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
176 2015-10-27 Pedro Alves <palves@redhat.com>
178 * common/print-utils.c (host_address_to_string): Rename to ...
179 (host_address_to_string_1): ... this.
180 * common/print-utils.h (host_address_to_string): Reimplement as
181 wrapper around host_address_to_string_1.
182 * utils.c (gdb_print_host_address): Rename to ...
183 (gdb_print_host_address_1): ... this.
184 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
185 around host_address_to_string_1.
187 2015-10-27 Pedro Alves <palves@redhat.com>
189 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
190 memory_error. Rename local 'status' to 'res'.
191 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
193 * corefile.c (read_stack, read_code, write_memory): Always pass
194 TARGET_XFER_E_IO to memory_error.
195 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
196 memory_error. Rename parameter 'status' to 'err'.
197 (dump_insns): Rename local 'status' to 'err'.
198 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
199 to 'errp'. Rename local 'status' to 'err'. Always pass
200 TARGET_XFER_E_IO to memory_error.
201 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
202 * target.c (target_read_memory, target_read_raw_memory)
203 (target_read_stack, target_read_code, target_write_memory)
204 (target_write_raw_memory): Return -1 on error instead of
206 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
207 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
209 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
211 * guile/guile-internal.h (gdbscm_with_guile): Change return
212 types to const char *.
213 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
214 (struct c_data) <func>: Likewise.
215 (struct c_data) <result>: Change type to const char *.
216 (scscm_eval_scheme_string): Change return type to
218 (scscm_source_scheme_script): Likewise.
219 (gdbscm_safe_eval_string): Change type of result variable to
220 const char * and remove cast.
221 (gdbscm_safe_source_script): Likewise.
222 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
223 Change return type to const char *.
224 (gdbscm_disasm_read_memory): Change type of status to
227 2015-10-27 Pedro Alves <palves@redhat.com>
229 * source.c (openp): New local 'last_errno'. Use it to
232 2015-10-27 Pedro Alves <palves@redhat.com>
234 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
236 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
238 * ctf.c (SET_ENUM_FIELD): New macro.
239 (ctf_read_status): Use it.
240 (ctf_read_tp): Use it.
242 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
244 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
245 scm_t_dynwind_flags casts.
246 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
247 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
248 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
250 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
252 * ax.h (ax_raw_byte): New declaration.
253 * ax-general.c (ax_raw_byte): New function.
254 (ax_simple): Use ax_raw_byte.
255 * ax-gdb.c (gen_printf): Likewise.
257 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
259 * ada-lang.h (GROW_VECT): Add cast.
261 2015-10-26 Doug Evans <xdje42@gmail.com>
263 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
265 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
267 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
269 (simple_search_memory): Cast return of memmem.
271 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
273 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
275 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
277 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
280 2015-10-26 Doug Evans <dje@google.com>
283 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
284 instead of gdbarch_dwarf2_reg_to_regnum.
285 (dwarf2_frame_cache): Ditto.
286 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
287 gdbarch_dwarf2_reg_to_regnum.
288 (get_reg_value): Ditto.
289 (dwarf2_fetch_cfa_info): Ditto.
290 (dwarf2_frame_prev_register): Ditto.
291 * dwarf2loc.c: #include "complaints.h".
292 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
293 instead of gdbarch_dwarf2_reg_to_regnum.
294 (dwarf_expr_get_reg_value): Ditto.
295 (read_pieced_value): Ditto.
296 (write_pieced_value): Ditto.
297 (dwarf2_evaluate_loc_desc_full): Ditto.
298 (dwarf_reg_to_regnum): New function.
299 (throw_bad_regnum_error): New function.
300 (dwarf_reg_to_regnum_or_error): Renamed from
301 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
302 All callers updated. Call throw_bad_regnum_error.
303 (locexpr_regname): Improve text of bad register number.
304 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
305 (dwarf_reg_to_regnum_or_error): Update prototype.
306 * dwarf2expr.c: #include "dwarf2loc.h".
307 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
308 gdbarch_dwarf2_reg_to_regnum.
309 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
310 * gdbarch.h: Regenerate.
311 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
313 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
314 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
315 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
316 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
317 Remove warning for bad register.
318 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
319 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
320 i386_svr4_reg_to_regnum. Return -1 for bad registers.
321 (i386_svr4_reg_to_regnum): New function.
322 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
323 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
324 on bad registers, return -1.
325 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
326 Remove warning for bad register.
327 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
328 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
329 Remove warning for bad register. Return -1 for bad register.
330 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
331 for bad register, return -1.
332 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
333 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
334 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
335 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
336 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
337 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
339 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
340 bad regs. Fix error result.
341 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
342 (reg_value_complaint): Update complaint text.
343 * mdebugread.c (reg_value_complaint): New function.
344 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
346 2015-10-26 Doug Evans <dje@google.com>
349 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
352 2015-10-26 Doug Evans <dje@google.com>
354 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
355 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
356 (maintenance_print_psymbols): Print address map.
358 2015-10-26 Doug Evans <dje@google.com>
360 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
362 2015-10-26 Doug Evans <dje@google.com>
364 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
365 gdbserver/linux-low.c.
366 (WSETSTOP): Simplify.
368 2015-10-26 Doug Evans <dje@google.com>
370 * linux-thread-db.c (find_new_threads_callback): Ditto.
371 (thread_db_pid_to_str): Ditto.
373 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
375 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
376 local char array to scm_mode_bits, use a cast instead.
378 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
380 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
381 result. Change type of element_block_ptr. Change allocation to
384 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
386 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
387 catch_errors call instead of NULL.
389 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
391 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
392 char pointer to scm_mode_bits.
394 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
396 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
399 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
401 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
402 "data" local variable and use it.
404 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
406 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
408 (gdbscm_lookup_symbol): Likewise.
410 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
412 * d-exp.y: Remove an obsolete comment and propagate the block
413 information to the produced expression.
415 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
417 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
419 (tui_add_content_elements): Likewise.
421 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
423 * cli/cli-setshow.c (do_set_command): Constify p.
425 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
427 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
428 (void *) cast with (gdb_byte *).
430 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
432 * proc-service.c (ps_pdread): Add cast.
434 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
436 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
439 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
441 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
442 (ia64_push_dummy_call): Remove cast and change type of "to" to
445 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
447 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
449 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
451 * observer.h (observer_${event}_notification_stub): Add cast.
453 2015-10-23 Yao Qi <yao.qi@linaro.org>
455 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
456 dsd.insn_count to zero.
458 2015-10-22 Pedro Alves <palves@redhat.com>
460 * infrun.c (stop_after_trap): Delete.
461 (clear_proceed_status, handle_signal_stop, struct
462 infcall_control_state, save_infcall_control_state)
463 (restore_infcall_control_state): Remove references to
466 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
468 * python/python.c (_initialize_python): Add cast.
470 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
472 * nto-tdep.c (nto_inferior_data): Add cast.
474 2015-10-22 Pedro Alves <palves@redhat.com>
476 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
477 windows_wait and windows_resume directly instead of
478 wait_for_inferior and resume.
480 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
482 * xtensa-tdep.h (XTREG): Add casts.
483 (XTREG_END): Likewise.
485 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
487 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
489 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
491 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
493 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
495 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
497 (supply_32bit_reg): Add cast.
498 (mips64_fill_gregset): Likewise.
500 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
503 * python/py-type.c (typy_get_composite): Allow returning a
506 2015-10-21 Keven Boell <keven.boell@intel.com>
508 * dwarf2read.c (set_die_type): Add read of
509 DW_AT_allocated and DW_AT_associated.
510 * f-typeprint.c: New include of typeprint.h
511 (f_print_type): Add check for allocated/associated
513 (f_type_print_varspec_suffix): Add check for
514 * gdbtypes.c (create_array_type_with_stride):
515 Add check for valid data location of type in
516 case allocated or associated attributes are set.
517 Length of an array should be only calculated if
518 allocated or associated is resolved as true.
519 (is_dynamic_type_internal): Add check for allocated/
521 (resolve_dynamic_array): Evaluate allocated/associated
523 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
524 <DYN_PROP_ASSOCIATED>: New enums.
525 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
526 (type_not_allocated): New function.
527 (type_not_associated): New function.
528 * valarith.c (value_subscripted_rvalue): Add check for
529 allocated/associated.
530 * valprint.c: New include of typeprint.h.
531 (valprint_check_validity): Add check for allocated/associated.
532 (value_check_printable): Add check for allocated/
534 * typeprint.h (val_print_not_allocated): New function.
535 (val_print_not_associated): New function.
536 * typeprint.c (val_print_not_allocated): New function.
537 (val_print_not_associated): New function.
539 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
541 * Makefile.in: Add arm.c/o.
542 * arch/arm.c: New file.
543 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
544 (MAKE_THUMB_ADDR): Likewise.
545 (UNMAKE_THUMB_ADDR): Likewise.
546 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
547 (IS_THUMB_ADDR): Move to arm.h.
548 (MAKE_THUMB_ADDR): Likewise.
549 (UNMAKE_THUMB_ADDR): Likewise.
550 * configure.tgt: Add arm.o to all ARM configs.
552 2015-10-21 Yao Qi <yao.qi@linaro.org>
554 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
555 Remove argument exp_vCont_s.
556 * gdb.base/range-stepping.exp: Callers updated.
557 * gdb.trace/range-stepping.exp: Likewise.
559 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
561 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
562 (nto_sniff_abi_note_section): New function.
563 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
566 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
568 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
569 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
570 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
571 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
573 (_initialize_nto_tdep): New forward declaration, new function.
574 * nto-tdep.h (struct nto_inferior_data): New struct.
575 (nto_inferior_data): New function declaration.
577 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
579 * findvar.c (address_from_register): Check REGNUM validity.
581 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
583 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
584 (init_procfs_targets): Wire new function.
586 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
588 * nto-procfs.c (sys/auxv.h): Include.
589 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
590 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
591 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
593 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
595 * nto-procfs.c (nto_procfs_path): Rename to...
596 (nodestr): ... this, and change type.
597 (nto_node): Use new variable and logic accordingly.
598 (procfs_open_1): Use new variable name. Use local buffer to construct
600 (procfs_pidlist): Use NODESTR to construct procfs path.
601 (procfs_files_info): Use NODESTR to output meaningful text.
602 (do_attach): Construct procfs using NODESTR.
603 (procfs_create_inferior): Compare pointer to NULL.
605 2015-10-19 Josh Stone <jistone@redhat.com>
607 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
608 return state, even when not actively catching syscalls at all.
609 (linux_handle_extended_wait): Mark syscall_state like an entry.
610 (wait_lwp): Set syscall_state ignored for other traps.
611 (linux_nat_filter_event): Likewise.
613 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
615 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
616 when handling 'E', 'T', 'S', 'X' and 'W' packets.
617 Do not set rs->waiting_for_stop_reply back to 1.
619 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
621 * nto-procfs.c (common/filestuff.h): Include.
622 (procfs_can_use_hw_breakpoint): Fix enum name.
623 (procfs_open_1): Fix compiler warning.
624 (procfs_pidlist): Make static.
625 (procfs_meminfo): Make static, fix type name, add missing argument.
626 (procfs_store_registers): Make static.
627 (procfs_thread_info): Remove unused function.
628 (_initialize_procfs): Forward declare.
630 2015-10-16 Yao Qi <yao.qi@arm.com>
632 * MAINTAINERS: Update my email address.
634 2015-10-15 Yao Qi <yao.qi@linaro.org>
636 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
637 Call gdbarch_breakpoint_from_pc to instruction length.
638 (aarch64_linux_remove_hw_breakpoint): Likewise.
639 * common/common-regcache.h (regcache_register_size): Declare.
640 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
641 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
642 the process is 32bit, otherwise set alignment to 4.
643 (aarch64_handle_breakpoint): Update comments.
644 * regcache.c (regcache_register_size): New function.
646 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
648 * gdbarch.sh (core_regset_section): Remove.
649 * gdbarch.h: Regenerate.
651 2015-10-14 Yao Qi <yao.qi@linaro.org>
653 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
655 (enum aarch64_memory_operand_type): New.
657 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
659 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
661 2015-10-13 Pedro Alves <palves@redhat.com>
663 * ada-lang.c (ada_enum_name): Constify local.
664 * ada-typeprint.c (print_range_bound): Constify locals.
665 * c-varobj.c (c_describe_child): Likewise.
666 * cli/cli-setshow.c (do_set_command): Likewise.
667 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
668 * dwarf2read.c (find_file_and_directory): Likewise.
669 (anonymous_struct_prefix, dwarf2_name): Likewise.
670 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
671 * go-lang.c (unpack_mangled_go_symbol): Likewise.
672 * jv-typeprint.c (java_type_print_base): Likewise.
673 * ser-tcp.c (net_open): Likewise.
674 * symfile.c (deduce_language_from_filename): Likewise.
675 * symtab.c (gdb_mangle_name): Likewise.
676 * tui/tui-io.c (tui_redisplay_readline): Likewise.
678 2015-10-13 Pedro Alves <palves@redhat.com>
680 * infrun.c (restore_execution_direction): New function.
681 (fetch_inferior_event): Use it instead of
682 make_cleanup_restore_integer.
683 (execution_direction): Change type to enum
685 * infrun.h (execution_direction): Likewise.
687 2015-10-13 Pedro Alves <palves@redhat.com>
689 * ada-lang.c (ada_value_primitive_packed_val): Constify
690 locals. Use value_contents_writeable. Remove casts.
692 2015-10-13 Pedro Alves <palves@redhat.com>
694 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
697 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
699 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
700 write_memory with write_memory_unsigned_integer.
702 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
704 * solib-dsbt.c (cmp_name): Constify arguments.
705 * solib-frv.c (cmp_name): Likewise.
706 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
707 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
708 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
709 (gdb_bfd_lookup_symbol): Likewise.
710 * solib.h (gdb_bfd_lookup_symbol): Likewise.
711 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
713 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
715 * stack.c (parse_frame_specification): Remove message parameter,
716 replace with fixed string in function body, update function
718 (frame_info): Remove message to parse_frame_specification.
719 (select_frame_command): Likewise.
721 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
723 * stack.c (parse_frame_specification): Delete.
724 (parse_frame_specification_1): Rename to
725 parse_frame_specification.
726 (frame_info): Use parse_frame_specification.
727 (select_frame_command): Likewise.
728 (return_command): Use select_frame and print_stack_frame rather
729 than frame_command and select_frame_command.
730 (func_command): Use get_current_frame rather than
731 parse_frame_specification.
733 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
735 * stack.c (func_command): Return early when there is no ARG
738 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
740 * stack.c: Include safe-ctype.h not ctype.h.
741 (parse_frame_specification): Use ISSPACE not isspace.
742 (backtrace_command): Use TOLOWER not tolower.
744 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
746 * mep-tdep.c (current_me_module): Add cast.
747 (mep_gdbarch_init): Likewise.
749 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
751 * m32c-tdep.c (m32c_move_reg_t): Replace with...
752 (m32c_write_reg_t): ...this and...
753 (m32c_read_reg_t): ...this.
754 (struct m32c_reg): Update types of read and write.
755 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
757 (m32c_banked_read): Likewise.
758 (m32c_sb_read): Likewise.
759 (m32c_part_read): Likewise.
760 (m32c_cat_read): Likewise.
761 (m32c_r3r2r1r0_read): Likewise.
762 (m32c_raw_write): Change declaration type to m32c_write_reg_t
763 and adjust definition.
764 (m32c_banked_write): Likewise.
765 (m32c_sb_write): Likewise.
766 (m32c_part_write): Likewise.
767 (m32c_cat_write): Likewise.
768 (m32c_r3r2r1r0_write): Likewise.
770 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
772 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
774 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
776 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
777 gdb_sys_no_syscall instead of -1.
779 2015-10-12 Yao Qi <yao.qi@linaro.org>
781 * NEWS: Mention the change.
783 2015-10-12 Yao Qi <yao.qi@linaro.org>
785 * arch/aarch64-insn.c (emit_load_store): Rename to ...
786 (aarch64_emit_load_store): ... it. All callers updated.
788 2015-10-12 Yao Qi <yao.qi@linaro.org>
790 * arch/aarch64-insn.c (emit_insn): Rename to ...
791 (aarch64_emit_insn): ... it. All callers updated.
793 2015-10-12 Yao Qi <yao.qi@linaro.org>
795 * aarch64-linux-tdep.c: Include arch-utils.h.
796 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
797 set_gdbarch_displaced_step_copy_insn,
798 set_gdbarch_displaced_step_fixup,
799 set_gdbarch_displaced_step_free_closure,
800 set_gdbarch_displaced_step_location,
801 and set_gdbarch_displaced_step_hw_singlestep.
802 * aarch64-tdep.c (struct displaced_step_closure): New.
803 (struct aarch64_displaced_step_data): New.
804 (aarch64_displaced_step_b): New function.
805 (aarch64_displaced_step_b_cond): Likewise.
806 (aarch64_register): Likewise.
807 (aarch64_displaced_step_cb): Likewise.
808 (aarch64_displaced_step_tb): Likewise.
809 (aarch64_displaced_step_adr): Likewise.
810 (aarch64_displaced_step_ldr_literal): Likewise.
811 (aarch64_displaced_step_others): Likewise.
812 (aarch64_displaced_step_copy_insn): Likewise.
813 (aarch64_displaced_step_fixup): Likewise.
814 (aarch64_displaced_step_hw_singlestep): Likewise.
815 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
816 (aarch64_displaced_step_copy_insn): Declare.
817 (aarch64_displaced_step_fixup): Declare.
818 (aarch64_displaced_step_hw_singlestep): Declare.
819 * arch/aarch64-insn.c (emit_insn): Moved from
820 gdbserver/linux-aarch64-low.c.
821 (emit_load_store): Likewise.
822 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
823 gdbserver/linux-aarch64-low.c.
824 (struct aarch64_register): Likewise.
825 (struct aarch64_memory_operand): Likewise.
827 (can_encode_int32): New macro.
828 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
829 (emit_tb, emit_nop): Likewise.
830 (emit_insn): Declare.
831 (emit_load_store): Declare.
833 2015-10-12 Yao Qi <yao.qi@linaro.org>
835 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
836 gdbserver/linux-aarch64-low.c.
837 (aarch64_relocate_instruction): Likewise.
838 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
839 (struct aarch64_insn_data): Moved from
840 gdbserver/linux-aarch64-low.c.
841 (struct aarch64_insn_visitor): Likewise.
842 (aarch64_relocate_instruction): Declare.
844 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
846 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
847 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
848 to the returned value.
850 2015-10-09 Joel Brobecker <brobecker@adacore.com>
852 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
853 is large enough for BIT_SIZE. Update function comment.
855 2015-10-09 Joel Brobecker <brobecker@adacore.com>
857 * ada-lang.c (ada_value_primitive_packed_val): Move
858 src_len variable to local block where used. Override
859 BIT_SIZE if bigger than size of resolved type.
861 2015-10-09 Joel Brobecker <brobecker@adacore.com>
863 * gdbtypes.h (is_scalar_type): Add extern declaration.
864 * gdbtypes.c (is_scalar_type): Make non-static.
865 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
866 to compute IS_SCALAR instead of doing it ourselves.
868 2015-10-09 Joel Brobecker <brobecker@adacore.com>
870 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
871 of case where TYPE is dynamic.
873 2015-10-09 Joel Brobecker <brobecker@adacore.com>
875 * ada-lang.c (ada_unpack_from_contents): New function,
876 extracted from ada_value_primitive_packed_val.
877 (ada_value_primitive_packed_val): Replace extracted out code
878 by call to ada_unpack_from_contents.
880 2015-10-09 Joel Brobecker <brobecker@adacore.com>
882 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
883 variable declarations.
885 2015-10-09 Joel Brobecker <brobecker@adacore.com>
887 * ada-lang.c (ada_value_primitive_packed_val): Change the type
888 of local variables src and unpacked to "gdb_type *" instead of
891 2015-10-09 Joel Brobecker <brobecker@adacore.com>
893 * ada-lang.c (ada_value_primitive_packed_val): Make the name
894 of various local variables more explicit and consistent.
895 No real code change otherwise.
897 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
899 * i386-tdep.h (struct gdbarch_tdep): Change type of
900 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
902 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
904 * cris-tdep.c (struct instruction_environment): Change type of
905 byte_order to enum bfd_endian.
907 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
909 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
910 enum gdb_syscall casts.
912 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
914 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
915 * arm-tdep.c (struct stack_item): Likewise.
916 (push_stack_item): Add gdb_byte* cast.
917 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
918 (push_stack_item): Add gdb_byte* cast.
919 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
921 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
922 (push_stack_item): Add gdb_byte* cast.
923 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
925 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
927 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
928 gdb_byte* and remove unnecessary cast.
929 (h8300h_extract_return_value): Likewise.
930 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
931 (h8300h_store_return_value): Likewise.
932 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
933 gdb_byte* and remove unnecessary cast.
934 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
936 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
937 gdb_byte* and remove unnecessary cast.
938 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
940 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
941 (mep_pseudo_cr64_read): Likewise.
942 (mep_pseudo_csr_write): Likewise.
943 (mep_pseudo_cr32_write): Likewise.
944 (mep_pseudo_cr64_write): Likewise.
945 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
946 gdb_byte* and add cast.
947 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
948 gdb_byte* and remove unnecessary cast.
949 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
951 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
953 * printcmd.c (void): Likewise.
954 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
955 gdb_byte* and add cast.
956 (infpy_write_memory): Likewise.
957 (infpy_search_memory): Likewise.
958 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
960 (regcache_raw_write_unsigned): Likewise.
961 (regcache_cooked_write_signed): Likewise.
962 (regcache_cooked_write_unsigned): Likewise.
963 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
966 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
968 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
969 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
971 2015-10-09 Eli Zaretskii <eliz@gnu.org>
973 * stack.c (print_stack_frame):
974 * utils.c (printchar): Fix typos in commentary.
976 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
978 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
979 (PostfixExpression): Support `expr.sizeof' expressions.
980 (PrimaryExpression): Support `typeof(expr)' expressions.
982 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
984 * MAINTAINERS: Update my email address.
986 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
988 * record-btrace.c (record_btrace_resume): Fix void return.
990 2015-10-07 Yao Qi <yao.qi@linaro.org>
992 * aarch64-tdep.c: Include opcode/aarch64.h.
993 (submask): Move it above.
996 (aarch64_software_single_step): Call aarch64_decode_insn.
997 Decode instruction by aarch64_inst instead of using
998 aarch64_decode_bcond and decode_masked_match.
1000 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1002 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1003 only when the file is binary.
1005 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1007 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1008 subroutine handling.
1010 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1012 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1014 2015-09-30 Doug Evans <dje@google.com>
1016 * dwarf2read.c (setup_type_unit_groups): Add comment.
1018 2015-09-30 Pedro Alves <palves@redhat.com>
1020 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1021 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1022 (x86_linux_create_target): Don't install
1023 x86_linux_always_non_stop_p.
1025 2015-09-30 Don Breazeal <donb@codesourcery.com>
1027 * remote.c (remote_parse_stop_reply): Call strprefix instead
1030 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1032 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1033 * gdbarch.h: Regenerate.
1034 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1035 struct gdbarch_tdep_info *.
1036 * mips-tdep.c (mips_gdbarch_init): Likewise.
1037 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1038 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1039 * spu-multiarch.c (spu_gdbarch): Likewise.
1041 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1043 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1044 record a NULL value.
1046 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1048 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1049 and union arguments the same as pointer arguments when determining
1052 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1054 * ft32-tdep.c: #include "opcode/ft32.h".
1055 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1056 (ft32_analyze_prologue): Use FT32_* macros.
1058 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1060 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1063 2015-09-28 Doug Evans <dje@google.com>
1065 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1067 2015-09-28 Doug Evans <dje@google.com>
1069 * common/filestuff.c (make_cleanup_close): Update comment.
1071 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1073 * btrace.c (parse_xml_btrace_block): Fix cast of
1074 xml_find_attribute's return value.
1075 * memory-map.c (memory_map_start_memory): Likewise.
1076 * solib-svr4.c (library_list_start_library): Likewise.
1077 * solib-target.c (library_list_start_segment): Likewise.
1078 (library_list_start_section): Likewise.
1079 * tracepoint.c (traceframe_info_start_memory): Likewise.
1081 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1083 * d-namespace.c (d_lookup_symbol): New arg langdef.
1084 All callers updated. Support looking up symbol as a primitive type.
1085 (lookup_module_scope): New arg langdef. All callers updated.
1086 Call d_lookup_symbol directly for simple bare symbols.
1088 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1090 * macrocmd.c (print_macro_callback): Add cast(s).
1091 * macrotab.c (macro_bcache_str): Likewise.
1092 (new_macro_definition): Likewise.
1093 * main.c (captured_main): Likewise.
1094 * maint.c (print_bfd_section_info): Likewise.
1095 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1096 (basic_type): Likewise.
1097 * memattr.c (mem_region_cmp): Likewise.
1098 * memory-map.c (memory_map_start_memory): Likewise.
1099 (memory_map_end_memory): Likewise.
1100 (memory_map_start_property): Likewise.
1101 (memory_map_end_property): Likewise.
1102 (clear_result): Likewise.
1103 * memrange.c (compare_mem_ranges): Likewise.
1104 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1105 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1106 * mi/mi-console.c (mi_console_file_delete): Likewise.
1107 (mi_console_file_fputs): Likewise.
1108 (mi_console_raw_packet): Likewise.
1109 (mi_console_file_flush): Likewise.
1110 (mi_console_set_raw): Likewise.
1111 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1112 (mi_new_thread): Likewise.
1113 (mi_thread_exit): Likewise.
1114 (mi_record_changed): Likewise.
1115 (mi_inferior_added): Likewise.
1116 (mi_inferior_appeared): Likewise.
1117 (mi_inferior_exit): Likewise.
1118 (mi_inferior_removed): Likewise.
1119 (mi_interp_data): Likewise.
1120 (mi_on_normal_stop): Likewise.
1121 (mi_traceframe_changed): Likewise.
1122 (mi_tsv_created): Likewise.
1123 (mi_tsv_deleted): Likewise.
1124 (mi_tsv_modified): Likewise.
1125 (mi_breakpoint_created): Likewise.
1126 (mi_breakpoint_deleted): Likewise.
1127 (mi_breakpoint_modified): Likewise.
1128 (mi_output_running_pid): Likewise.
1129 (mi_inferior_count): Likewise.
1130 (mi_solib_loaded): Likewise.
1131 (mi_solib_unloaded): Likewise.
1132 (mi_command_param_changed): Likewise.
1133 (mi_memory_changed): Likewise.
1134 (report_initial_inferior): Likewise.
1135 (mi_ui_out): Likewise.
1136 (mi_set_logging): Likewise.
1137 * mi/mi-main.c (collect_cores): Likewise.
1138 (print_one_inferior): Likewise.
1139 (free_vector_of_ints): Likewise.
1140 (free_splay_tree): Likewise.
1141 (mi_execute_command): Likewise.
1142 * mi/mi-out.c (mi_table_body): Likewise.
1143 (mi_table_end): Likewise.
1144 (mi_table_header): Likewise.
1145 (mi_begin): Likewise.
1147 (mi_field_int): Likewise.
1148 (mi_field_string): Likewise.
1149 (mi_field_fmt): Likewise.
1150 (mi_flush): Likewise.
1151 (mi_redirect): Likewise.
1152 (field_separator): Likewise.
1153 (mi_open): Likewise.
1154 (mi_close): Likewise.
1155 (mi_out_buffered): Likewise.
1156 (mi_out_rewind): Likewise.
1157 (mi_out_put): Likewise.
1158 (mi_version): Likewise.
1159 (mi_out_data_dtor): Likewise.
1160 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1161 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1162 * minidebug.c (lzma_open): Likewise.
1163 (lzma_pread): Likewise.
1164 (lzma_close): Likewise.
1165 (lzma_stat): Likewise.
1166 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1167 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1168 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1169 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1170 (mips_micro_frame_cache): Likewise.
1171 (mips_insn32_frame_cache): Likewise.
1172 (mips_stub_frame_cache): Likewise.
1173 (gdb_print_insn_mips): Likewise.
1174 (value_of_mips_user_reg): Likewise.
1175 (mips_gdbarch_init): Likewise.
1176 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1177 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1178 (mipsnbsd_supply_gregset): Likewise.
1179 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1180 (am33_collect_gregset_method): Likewise.
1181 (am33_collect_fpregset_method): Likewise.
1182 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1183 * moxie-tdep.c (moxie_frame_cache): Likewise.
1184 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1185 (msp430_analyze_frame_prologue): Likewise.
1186 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1187 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1188 (nios2_collect_gregset): Likewise.
1189 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1190 (nios2_stub_frame_cache): Likewise.
1191 * objc-lang.c (find_methods): Likewise.
1192 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1193 (get_objfile_pspace_data): Likewise.
1194 (get_objfile_bfd_data): Likewise.
1195 (objfile_bfd_data_free): Likewise.
1196 (add_to_objfile_sections): Likewise.
1197 (do_free_objfile_cleanup): Likewise.
1198 (resume_section_map_updates_cleanup): Likewise.
1199 * opencl-lang.c (builtin_opencl_type): Likewise.
1200 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1201 * osdata.c (osdata_start_osdata): Likewise.
1202 (osdata_start_item): Likewise.
1203 (osdata_start_column): Likewise.
1204 (osdata_end_column): Likewise.
1205 (clear_parsing_data): Likewise.
1206 (osdata_free_cleanup): Likewise.
1207 * parse.c (type_stack_cleanup): Likewise.
1208 (exp_uses_objfile_iter): Likewise.
1209 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1210 (ppc_linux_collect_gregset): Likewise.
1211 (ppu2spu_prev_arch): Likewise.
1212 (ppu2spu_this_id): Likewise.
1213 (ppu2spu_prev_register): Likewise.
1214 (ppu2spu_unwind_register): Likewise.
1215 (ppu2spu_sniffer): Likewise.
1216 (ppu2spu_dealloc_cache): Likewise.
1217 (ppc_linux_init_abi): Likewise.
1218 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1219 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1220 * progspace.c (restore_program_space): Likewise.
1221 * psymtab.c (find_pc_sect_psymtab): Likewise.
1222 (compare_psymbols): Likewise.
1223 (psymbol_bcache_full): Likewise.
1224 (allocate_psymtab): Likewise.
1225 (discard_psymtabs_upto): Likewise.
1226 * python/py-block.c (set_block): Likewise.
1227 (del_objfile_blocks): Likewise.
1228 * python/py-breakpoint.c (build_bp_list): Likewise.
1229 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1230 (build_inferior_list): Likewise.
1231 (py_free_inferior): Likewise.
1232 * python/py-objfile.c (py_free_objfile): Likewise.
1233 (objfile_to_objfile_object): Likewise.
1234 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1235 * python/py-progspace.c (py_free_pspace): Likewise.
1236 (pspace_to_pspace_object): Likewise.
1237 * python/py-symbol.c (set_symbol): Likewise.
1238 (del_objfile_symbols): Likewise.
1239 * python/py-symtab.c (set_sal): Likewise.
1240 (set_symtab): Likewise.
1241 (del_objfile_symtab): Likewise.
1242 (del_objfile_sal): Likewise.
1243 * python/py-type.c (save_objfile_types): Likewise.
1244 (set_type): Likewise.
1245 * python/py-unwind.c (pyuw_prev_register): Likewise.
1246 (pyuw_on_new_gdbarch): Likewise.
1247 * python/py-utils.c (py_decref): Likewise.
1248 (py_xdecref): Likewise.
1249 (gdb_py_generic_dict): Likewise.
1250 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1251 (gdbpy_clone_xmethod_worker_data): Likewise.
1252 (gdbpy_get_xmethod_arg_types): Likewise.
1253 (gdbpy_get_xmethod_result_type): Likewise.
1254 (gdbpy_invoke_xmethod): Likewise.
1255 * python/python.c (gdbpy_apply_type_printers): Likewise.
1256 (gdbpy_free_type_printers): Likewise.
1257 * record-btrace.c (record_btrace_disable_callback): Likewise.
1258 (bfcache_hash): Likewise.
1259 (bfcache_eq): Likewise.
1260 (btrace_get_frame_function): Likewise.
1261 (record_btrace_frame_unwind_stop_reason): Likewise.
1262 (record_btrace_frame_this_id): Likewise.
1263 (record_btrace_frame_prev_register): Likewise.
1264 (record_btrace_frame_dealloc_cache): Likewise.
1265 * record-full.c (record_full_message_wrapper): Likewise.
1266 (record_full_save_cleanups): Likewise.
1267 * regcache.c (regcache_descr): Likewise.
1268 (do_regcache_xfree): Likewise.
1269 (do_regcache_invalidate): Likewise.
1270 (do_cooked_read): Likewise.
1271 (regcache_transfer_regset): Likewise.
1272 * reggroups.c (reggroup_add): Likewise.
1273 (reggroup_next): Likewise.
1274 (reggroup_prev): Likewise.
1275 * remote-fileio.c (do_remote_fileio_request): Likewise.
1276 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1277 (do_notif_event_xfree): Likewise.
1278 * remote.c (get_remote_arch_state): Likewise.
1279 (remote_pspace_data_cleanup): Likewise.
1280 (get_remote_exec_file): Likewise.
1281 (set_pspace_remote_exec_file): Likewise.
1282 (compare_pnums): Likewise.
1283 (clear_threads_listing_context): Likewise.
1284 (remote_newthread_step): Likewise.
1285 (start_thread): Likewise.
1286 (end_thread): Likewise.
1287 (remove_child_of_pending_fork): Likewise.
1288 (remove_stop_reply_for_inferior): Likewise.
1289 (remove_stop_reply_of_remote_state): Likewise.
1290 (remote_notif_remove_once_on_match): Likewise.
1291 (stop_reply_match_ptid_and_ws): Likewise.
1292 (kill_child_of_pending_fork): Likewise.
1293 (register_remote_g_packet_guess): Likewise.
1294 (remote_read_description_p): Likewise.
1295 (remote_read_description): Likewise.
1296 (free_actions_list_cleanup_wrapper): Likewise.
1297 (remote_async_serial_handler): Likewise.
1298 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1299 (rl78_analyze_frame_prologue): Likewise.
1300 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1301 (ppc_supply_fpregset): Likewise.
1302 (ppc_supply_vsxregset): Likewise.
1303 (ppc_supply_vrregset): Likewise.
1304 (ppc_collect_gregset): Likewise.
1305 (ppc_collect_fpregset): Likewise.
1306 (ppc_collect_vsxregset): Likewise.
1307 (ppc_collect_vrregset): Likewise.
1308 (e500_move_ev_register): Likewise.
1309 (do_regcache_raw_write): Likewise.
1310 (rs6000_frame_cache): Likewise.
1311 (rs6000_epilogue_frame_cache): Likewise.
1312 (rs6000_gdbarch_init): Likewise.
1313 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1314 (rx_analyze_frame_prologue): Likewise.
1315 (rx_frame_type): Likewise.
1316 (rx_frame_sniffer_common): Likewise.
1317 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1318 (s390_frame_unwind_cache): Likewise.
1319 (s390_stub_frame_unwind_cache): Likewise.
1320 (s390_sigtramp_frame_unwind_cache): Likewise.
1321 * score-tdep.c (score_make_prologue_cache): Likewise.
1322 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1323 (sentinel_frame_prev_arch): Likewise.
1324 * ser-base.c (fd_event): Likewise.
1325 (push_event): Likewise.
1326 (ser_base_write): Likewise.
1327 * ser-pipe.c (pipe_close): Likewise.
1328 * serial.c (serial_write): Likewise.
1329 * sh-tdep.c (sh_frame_cache): Likewise.
1330 (sh_stub_this_id): Likewise.
1331 * sh64-tdep.c (sh64_frame_cache): Likewise.
1332 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1333 (library_list_start_library): Likewise.
1334 (library_list_start_list): Likewise.
1335 (solib_aix_free_library_list): Likewise.
1336 * solib-darwin.c (get_darwin_info): Likewise.
1337 * solib-dsbt.c (get_dsbt_info): Likewise.
1338 * solib-spu.c (append_ocl_sos): Likewise.
1339 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1340 (get_svr4_info): Likewise.
1341 (library_list_start_library): Likewise.
1342 (svr4_library_list_start_list): Likewise.
1343 (hash_probe_and_action): Likewise.
1344 (equal_probe_and_action): Likewise.
1345 (svr4_update_solib_event_breakpoint): Likewise.
1346 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1347 (svr4_fetch_link_map_offsets): Likewise.
1348 (svr4_have_link_map_offsets): Likewise.
1349 * solib-target.c (library_list_start_segment): Likewise.
1350 (library_list_start_section): Likewise.
1351 (library_list_start_library): Likewise.
1352 (library_list_end_library): Likewise.
1353 (library_list_start_list): Likewise.
1354 (solib_target_free_library_list): Likewise.
1355 * solib.c (solib_ops): Likewise.
1356 (set_solib_ops): Likewise.
1357 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1358 * sparc-tdep.c (sparc_frame_cache): Likewise.
1359 (sparc32_frame_cache): Likewise.
1360 (sparc32_supply_gregset): Likewise.
1361 (sparc32_collect_gregset): Likewise.
1362 (sparc32_supply_fpregset): Likewise.
1363 (sparc32_collect_fpregset): Likewise.
1364 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1365 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1366 (sparc64_collect_gregset): Likewise.
1367 (sparc64_supply_fpregset): Likewise.
1368 (sparc64_collect_fpregset): Likewise.
1369 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1370 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1371 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1372 (sparc64obsd_trapframe_cache): Likewise.
1373 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1374 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1375 * spu-multiarch.c (spu_gdbarch): Likewise.
1376 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1377 (spu2ppu_prev_arch): Likewise.
1378 (spu2ppu_this_id): Likewise.
1379 (spu2ppu_prev_register): Likewise.
1380 (spu2ppu_dealloc_cache): Likewise.
1381 (spu_dis_asm_print_address): Likewise.
1382 (gdb_print_insn_spu): Likewise.
1383 (spu_get_overlay_table): Likewise.
1384 * stabsread.c (rs6000_builtin_type): Likewise.
1385 * stack.c (do_print_variable_and_value): Likewise.
1386 * stap-probe.c (get_stap_base_address_1): Likewise.
1387 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1388 (debug_qf_find_last_source_symtab): Likewise.
1389 (debug_qf_forget_cached_source_info): Likewise.
1390 (debug_qf_map_symtabs_matching_filename): Likewise.
1391 (debug_qf_lookup_symbol): Likewise.
1392 (debug_qf_print_stats): Likewise.
1393 (debug_qf_dump): Likewise.
1394 (debug_qf_relocate): Likewise.
1395 (debug_qf_expand_symtabs_for_function): Likewise.
1396 (debug_qf_expand_all_symtabs): Likewise.
1397 (debug_qf_expand_symtabs_with_fullname): Likewise.
1398 (debug_qf_map_matching_symbols): Likewise.
1399 (debug_qf_expand_symtabs_matching): Likewise.
1400 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1401 (debug_qf_map_symbol_filenames): Likewise.
1402 (debug_sym_get_probes): Likewise.
1403 (debug_sym_new_init): Likewise.
1404 (debug_sym_init): Likewise.
1405 (debug_sym_read): Likewise.
1406 (debug_sym_read_psymbols): Likewise.
1407 (debug_sym_finish): Likewise.
1408 (debug_sym_offsets): Likewise.
1409 (debug_sym_read_linetable): Likewise.
1410 (debug_sym_relocate): Likewise.
1411 (uninstall_symfile_debug_logging): Likewise.
1412 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1413 * symfile.c (place_section): Likewise.
1414 (add_section_size_callback): Likewise.
1415 (load_progress): Likewise.
1416 (load_section_callback): Likewise.
1417 (clear_memory_write_data): Likewise.
1418 (allocate_symtab): Likewise.
1419 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1420 * symtab.c (lookup_symtab_callback): Likewise.
1421 (hash_demangled_name_entry): Likewise.
1422 (eq_demangled_name_entry): Likewise.
1423 (get_symbol_cache): Likewise.
1424 (symbol_cache_cleanup): Likewise.
1425 (set_symbol_cache_size): Likewise.
1426 (symbol_cache_flush): Likewise.
1427 (maintenance_print_symbol_cache): Likewise.
1428 (maintenance_print_symbol_cache_statistics): Likewise.
1429 (delete_filename_seen_cache): Likewise.
1430 (output_partial_symbol_filename): Likewise.
1431 (search_symbols_file_matches): Likewise.
1432 (search_symbols_name_matches): Likewise.
1433 (do_free_completion_list): Likewise.
1434 (maybe_add_partial_symtab_filename): Likewise.
1435 (get_main_info): Likewise.
1436 (main_info_cleanup): Likewise.
1437 * target-dcache.c (target_dcache_cleanup): Likewise.
1438 (target_dcache_init_p): Likewise.
1439 (target_dcache_invalidate): Likewise.
1440 (target_dcache_get): Likewise.
1441 (target_dcache_get_or_init): Likewise.
1442 * target-descriptions.c (target_find_description): Likewise.
1443 (tdesc_find_type): Likewise.
1444 (tdesc_data_cleanup): Likewise.
1445 (tdesc_find_arch_register): Likewise.
1446 (tdesc_register_name): Likewise.
1447 (tdesc_register_type): Likewise.
1448 (tdesc_register_reggroup_p): Likewise.
1449 (set_tdesc_pseudo_register_name): Likewise.
1450 (set_tdesc_pseudo_register_type): Likewise.
1451 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1452 (tdesc_use_registers): Likewise.
1453 (free_target_description): Likewise.
1454 * target-memory.c (compare_block_starting_address): Likewise.
1455 (cleanup_request_data): Likewise.
1456 (cleanup_write_requests_vector): Likewise.
1457 * target.c (open_target): Likewise.
1458 (cleanup_restore_target_terminal): Likewise.
1459 (free_memory_read_result_vector): Likewise.
1460 * thread.c (disable_thread_stack_temporaries): Likewise.
1461 (finish_thread_state_cleanup): Likewise.
1462 (do_restore_current_thread_cleanup): Likewise.
1463 (restore_current_thread_cleanup_dtor): Likewise.
1464 (set_thread_refcount): Likewise.
1465 (tp_array_compar): Likewise.
1466 (do_captured_thread_select): Likewise.
1467 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1468 (tic6x_stub_this_id): Likewise.
1469 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1470 * top.c (do_restore_instream_cleanup): Likewise.
1471 (gdb_readline_wrapper_cleanup): Likewise.
1472 (kill_or_detach): Likewise.
1473 (print_inferior_quit_action): Likewise.
1474 * tracefile-tfile.c (match_blocktype): Likewise.
1475 (build_traceframe_info): Likewise.
1476 * tracefile.c (trace_file_writer_xfree): Likewise.
1477 * tracepoint.c (memrange_cmp): Likewise.
1478 (do_collect_symbol): Likewise.
1479 (do_clear_collection_list): Likewise.
1480 (do_restore_current_traceframe_cleanup): Likewise.
1481 (restore_current_traceframe_cleanup_dtor): Likewise.
1482 (free_current_marker): Likewise.
1483 (traceframe_info_start_memory): Likewise.
1484 (traceframe_info_start_tvar): Likewise.
1485 (free_result): Likewise.
1486 * tramp-frame.c (tramp_frame_cache): Likewise.
1487 * tui/tui-file.c (tui_file_delete): Likewise.
1488 (tui_fileopen): Likewise.
1489 (tui_sfileopen): Likewise.
1490 (tui_file_isatty): Likewise.
1491 (tui_file_rewind): Likewise.
1492 (tui_file_put): Likewise.
1493 (tui_file_fputs): Likewise.
1494 (tui_file_get_strbuf): Likewise.
1495 (tui_file_adjust_strbuf): Likewise.
1496 (tui_file_flush): Likewise.
1497 * tui/tui-layout.c (make_command_window): Likewise.
1498 (make_data_window): Likewise.
1499 (show_source_disasm_command): Likewise.
1500 (show_data): Likewise.
1501 (make_source_or_disasm_window): Likewise.
1502 (show_source_or_disasm_and_command): Likewise.
1503 * tui/tui-out.c (tui_field_int): Likewise.
1504 (tui_field_string): Likewise.
1505 (tui_field_fmt): Likewise.
1506 (tui_text): Likewise.
1507 * typeprint.c (hash_typedef_field): Likewise.
1508 (eq_typedef_field): Likewise.
1509 (do_free_typedef_hash): Likewise.
1510 (copy_typedef_hash_element): Likewise.
1511 (do_free_global_table): Likewise.
1512 (find_global_typedef): Likewise.
1513 (find_typedef_in_hash): Likewise.
1514 * ui-file.c (ui_file_write_for_put): Likewise.
1515 (do_ui_file_xstrdup): Likewise.
1516 (mem_file_delete): Likewise.
1517 (mem_file_rewind): Likewise.
1518 (mem_file_put): Likewise.
1519 (mem_file_write): Likewise.
1520 (stdio_file_delete): Likewise.
1521 (stdio_file_flush): Likewise.
1522 (stdio_file_read): Likewise.
1523 (stdio_file_write): Likewise.
1524 (stdio_file_write_async_safe): Likewise.
1525 (stdio_file_fputs): Likewise.
1526 (stdio_file_isatty): Likewise.
1527 (stdio_file_fseek): Likewise.
1528 (tee_file_delete): Likewise.
1529 (tee_file_flush): Likewise.
1530 (tee_file_write): Likewise.
1531 (tee_file_fputs): Likewise.
1532 (tee_file_isatty): Likewise.
1533 * ui-out.c (do_cleanup_table_end): Likewise.
1534 (do_cleanup_end): Likewise.
1535 * user-regs.c (user_reg_add): Likewise.
1536 (user_reg_map_name_to_regnum): Likewise.
1537 (usernum_to_user_reg): Likewise.
1538 (maintenance_print_user_registers): Likewise.
1539 * utils.c (do_bfd_close_cleanup): Likewise.
1540 (do_fclose_cleanup): Likewise.
1541 (do_obstack_free): Likewise.
1542 (do_ui_file_delete): Likewise.
1543 (do_ui_out_redirect_pop): Likewise.
1544 (do_free_section_addr_info): Likewise.
1545 (restore_integer): Likewise.
1546 (do_unpush_target): Likewise.
1547 (do_htab_delete_cleanup): Likewise.
1548 (do_restore_ui_file): Likewise.
1549 (do_value_free): Likewise.
1550 (do_free_so): Likewise.
1551 (free_current_contents): Likewise.
1552 (do_regfree_cleanup): Likewise.
1553 (core_addr_hash): Likewise.
1554 (core_addr_eq): Likewise.
1555 (do_free_char_ptr_vec): Likewise.
1556 * v850-tdep.c (v850_frame_cache): Likewise.
1557 * varobj.c (do_free_variable_cleanup): Likewise.
1558 * vax-tdep.c (vax_supply_gregset): Likewise.
1559 (vax_frame_cache): Likewise.
1560 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1561 * xml-support.c (gdb_xml_body_text): Likewise.
1562 (gdb_xml_values_cleanup): Likewise.
1563 (gdb_xml_start_element): Likewise.
1564 (gdb_xml_start_element_wrapper): Likewise.
1565 (gdb_xml_end_element): Likewise.
1566 (gdb_xml_end_element_wrapper): Likewise.
1567 (gdb_xml_cleanup): Likewise.
1568 (gdb_xml_fetch_external_entity): Likewise.
1569 (gdb_xml_parse_attr_enum): Likewise.
1570 (xinclude_start_include): Likewise.
1571 (xinclude_end_include): Likewise.
1572 (xml_xinclude_default): Likewise.
1573 (xml_xinclude_start_doctype): Likewise.
1574 (xml_xinclude_end_doctype): Likewise.
1575 (xml_xinclude_cleanup): Likewise.
1576 (xml_fetch_content_from_file): Likewise.
1577 * xml-syscall.c (free_syscalls_info): Likewise.
1578 (syscall_start_syscall): Likewise.
1579 * xml-tdesc.c (tdesc_end_arch): Likewise.
1580 (tdesc_end_osabi): Likewise.
1581 (tdesc_end_compatible): Likewise.
1582 (tdesc_start_target): Likewise.
1583 (tdesc_start_feature): Likewise.
1584 (tdesc_start_reg): Likewise.
1585 (tdesc_start_union): Likewise.
1586 (tdesc_start_struct): Likewise.
1587 (tdesc_start_flags): Likewise.
1588 (tdesc_start_field): Likewise.
1589 (tdesc_start_vector): Likewise.
1590 (fetch_available_features_from_target): Likewise.
1591 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1592 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1593 (xtensa_frame_cache): Likewise.
1594 (xtensa_frame_prev_register): Likewise.
1595 (xtensa_extract_return_value): Likewise.
1597 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1599 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1600 (aarch64_make_stub_cache): Likewise.
1601 (value_of_aarch64_user_reg): Likewise.
1602 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1603 (get_ada_inferior_data): Likewise.
1604 (get_ada_pspace_data): Likewise.
1605 (ada_pspace_data_cleanup): Likewise.
1606 (ada_complete_symbol_matcher): Likewise.
1607 (ada_exc_search_name_matches): Likewise.
1608 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1609 (get_ada_tasks_inferior_data): Likewise.
1610 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1611 (splay_obstack_alloc): Likewise.
1612 (splay_obstack_free): Likewise.
1613 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1614 (alpha_linux_collect_gregset): Likewise.
1615 (alpha_linux_supply_fpregset): Likewise.
1616 (alpha_linux_collect_fpregset): Likewise.
1617 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1618 * alpha-tdep.c (alpha_lds): Likewise.
1619 (alpha_sts): Likewise.
1620 (alpha_sigtramp_frame_unwind_cache): Likewise.
1621 (alpha_heuristic_frame_unwind_cache): Likewise.
1622 (alpha_supply_int_regs): Likewise.
1623 (alpha_fill_int_regs): Likewise.
1624 (alpha_supply_fp_regs): Likewise.
1625 (alpha_fill_fp_regs): Likewise.
1626 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1627 (alphanbsd_aout_supply_gregset): Likewise.
1628 (alphanbsd_supply_gregset): Likewise.
1629 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1630 (amd64_x32_linux_init_abi): Likewise.
1631 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1632 (amd64_collect_native_gregset): Likewise.
1633 * amd64-tdep.c (amd64_frame_cache): Likewise.
1634 (amd64_sigtramp_frame_cache): Likewise.
1635 (amd64_epilogue_frame_cache): Likewise.
1636 (amd64_supply_fxsave): Likewise.
1637 (amd64_supply_xsave): Likewise.
1638 (amd64_collect_fxsave): Likewise.
1639 (amd64_collect_xsave): Likewise.
1640 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1641 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1642 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1643 (arm_linux_collect_gregset): Likewise.
1644 (arm_linux_supply_nwfpe): Likewise.
1645 (arm_linux_collect_nwfpe): Likewise.
1646 (arm_linux_supply_vfp): Likewise.
1647 (arm_linux_collect_vfp): Likewise.
1648 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1649 (arm_prologue_unwind_stop_reason): Likewise.
1650 (arm_prologue_this_id): Likewise.
1651 (arm_prologue_prev_register): Likewise.
1652 (arm_exidx_data_free): Likewise.
1653 (arm_find_exidx_entry): Likewise.
1654 (arm_stub_this_id): Likewise.
1655 (arm_m_exception_this_id): Likewise.
1656 (arm_m_exception_prev_register): Likewise.
1657 (arm_normal_frame_base): Likewise.
1658 (gdb_print_insn_arm): Likewise.
1659 (arm_objfile_data_free): Likewise.
1660 (arm_record_special_symbol): Likewise.
1661 (value_of_arm_user_reg): Likewise.
1662 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1663 (armbsd_supply_gregset): Likewise.
1664 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1665 (get_auto_load_pspace_data): Likewise.
1666 (hash_loaded_script_entry): Likewise.
1667 (eq_loaded_script_entry): Likewise.
1668 (clear_section_scripts): Likewise.
1669 (collect_matching_scripts): Likewise.
1670 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1671 (get_auxv_inferior_data): Likewise.
1672 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1673 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1674 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1675 (target_bfd_xclose): Likewise.
1676 (target_bfd_get_section_table): Likewise.
1677 * bfin-tdep.c (bfin_frame_cache): Likewise.
1678 * block.c (find_block_in_blockvector): Likewise.
1679 (call_site_for_pc): Likewise.
1680 (block_find_non_opaque_type_preferred): Likewise.
1681 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1682 (signal_catchpoint_remove_location): Likewise.
1683 (signal_catchpoint_breakpoint_hit): Likewise.
1684 (signal_catchpoint_print_one): Likewise.
1685 (signal_catchpoint_print_mention): Likewise.
1686 (signal_catchpoint_print_recreate): Likewise.
1687 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1688 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1689 (bp_location_compare_addrs): Likewise.
1690 (get_first_locp_gte_addr): Likewise.
1691 (check_tracepoint_command): Likewise.
1692 (do_map_commands_command): Likewise.
1693 (get_breakpoint_objfile_data): Likewise.
1694 (free_breakpoint_probes): Likewise.
1695 (do_captured_breakpoint_query): Likewise.
1696 (compare_breakpoints): Likewise.
1697 (bp_location_compare): Likewise.
1698 (bpstat_remove_breakpoint_callback): Likewise.
1699 (do_delete_breakpoint_cleanup): Likewise.
1700 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1701 (bsd_uthread_set_collect_uthread): Likewise.
1702 (bsd_uthread_activate): Likewise.
1703 (bsd_uthread_fetch_registers): Likewise.
1704 (bsd_uthread_store_registers): Likewise.
1705 * btrace.c (check_xml_btrace_version): Likewise.
1706 (parse_xml_btrace_block): Likewise.
1707 (parse_xml_btrace_pt_config_cpu): Likewise.
1708 (parse_xml_btrace_pt_raw): Likewise.
1709 (parse_xml_btrace_pt): Likewise.
1710 (parse_xml_btrace_conf_bts): Likewise.
1711 (parse_xml_btrace_conf_pt): Likewise.
1712 (do_btrace_data_cleanup): Likewise.
1713 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1714 * charset.c (cleanup_iconv): Likewise.
1715 (do_cleanup_iterator): Likewise.
1716 * cli-out.c (cli_uiout_dtor): Likewise.
1717 (cli_table_begin): Likewise.
1718 (cli_table_body): Likewise.
1719 (cli_table_end): Likewise.
1720 (cli_table_header): Likewise.
1721 (cli_begin): Likewise.
1722 (cli_end): Likewise.
1723 (cli_field_int): Likewise.
1724 (cli_field_skip): Likewise.
1725 (cli_field_string): Likewise.
1726 (cli_field_fmt): Likewise.
1727 (cli_spaces): Likewise.
1728 (cli_text): Likewise.
1729 (cli_message): Likewise.
1730 (cli_wrap_hint): Likewise.
1731 (cli_flush): Likewise.
1732 (cli_redirect): Likewise.
1733 (out_field_fmt): Likewise.
1734 (field_separator): Likewise.
1735 (cli_out_set_stream): Likewise.
1736 * cli/cli-cmds.c (compare_symtabs): Likewise.
1737 * cli/cli-dump.c (call_dump_func): Likewise.
1738 (restore_section_callback): Likewise.
1739 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1740 (do_restore_user_call_depth): Likewise.
1741 (do_free_command_lines_cleanup): Likewise.
1742 * coff-pe-read.c (get_section_vmas): Likewise.
1743 (pe_as16): Likewise.
1744 (pe_as32): Likewise.
1745 * coffread.c (coff_symfile_read): Likewise.
1746 * common/agent.c (agent_look_up_symbols): Likewise.
1747 * common/filestuff.c (do_close_cleanup): Likewise.
1748 * common/format.c (free_format_pieces_cleanup): Likewise.
1749 * common/vec.c (vec_o_reserve): Likewise.
1750 * compile/compile-c-support.c (print_one_macro): Likewise.
1751 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1752 (eq_symbol_error): Likewise.
1753 (del_symbol_error): Likewise.
1754 (error_symbol_once): Likewise.
1755 (gcc_convert_symbol): Likewise.
1756 (gcc_symbol_address): Likewise.
1757 (hash_symname): Likewise.
1758 (eq_symname): Likewise.
1759 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1760 (eq_type_map_instance): Likewise.
1761 (insert_type): Likewise.
1762 (convert_type): Likewise.
1763 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1764 (setup_sections): Likewise.
1765 (link_hash_table_free): Likewise.
1766 (copy_sections): Likewise.
1767 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1768 * compile/compile.c (compile_print_value): Likewise.
1769 (do_rmdir): Likewise.
1770 (cleanup_compile_instance): Likewise.
1771 (cleanup_unlink_file): Likewise.
1772 * completer.c (free_completion_tracker): Likewise.
1773 * corelow.c (add_to_spuid_list): Likewise.
1774 * cp-namespace.c (reset_directive_searched): Likewise.
1775 * cp-support.c (reset_directive_searched): Likewise.
1776 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1777 (cris_frame_unwind_cache): Likewise.
1778 * d-lang.c (builtin_d_type): Likewise.
1779 * d-namespace.c (reset_directive_searched): Likewise.
1780 * dbxread.c (dbx_free_symfile_info): Likewise.
1781 (do_free_bincl_list_cleanup): Likewise.
1782 * disasm.c (hash_dis_line_entry): Likewise.
1783 (eq_dis_line_entry): Likewise.
1784 (dis_asm_print_address): Likewise.
1785 (fprintf_disasm): Likewise.
1786 (do_ui_file_delete): Likewise.
1787 * doublest.c (convert_floatformat_to_doublest): Likewise.
1788 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1789 (dummy_frame_prev_register): Likewise.
1790 (dummy_frame_this_id): Likewise.
1791 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1792 (cache_eq): Likewise.
1793 (cache_find): Likewise.
1794 (tailcall_frame_this_id): Likewise.
1795 (dwarf2_tailcall_prev_register_first): Likewise.
1796 (tailcall_frame_prev_register): Likewise.
1797 (tailcall_frame_dealloc_cache): Likewise.
1798 (tailcall_frame_prev_arch): Likewise.
1799 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1800 (dwarf2_frame_set_init_reg): Likewise.
1801 (dwarf2_frame_init_reg): Likewise.
1802 (dwarf2_frame_set_signal_frame_p): Likewise.
1803 (dwarf2_frame_signal_frame_p): Likewise.
1804 (dwarf2_frame_set_adjust_regnum): Likewise.
1805 (dwarf2_frame_adjust_regnum): Likewise.
1806 (clear_pointer_cleanup): Likewise.
1807 (dwarf2_frame_cache): Likewise.
1808 (find_cie): Likewise.
1809 (dwarf2_frame_find_fde): Likewise.
1810 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1811 (free_dwarf_expr_context_cleanup): Likewise.
1812 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1813 (locexpr_get_frame_base): Likewise.
1814 (loclist_find_frame_base_location): Likewise.
1815 (loclist_get_frame_base): Likewise.
1816 (dwarf_expr_dwarf_call): Likewise.
1817 (dwarf_expr_get_base_type): Likewise.
1818 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1819 (dwarf_expr_get_obj_addr): Likewise.
1820 (entry_data_value_coerce_ref): Likewise.
1821 (entry_data_value_copy_closure): Likewise.
1822 (entry_data_value_free_closure): Likewise.
1823 (get_frame_address_in_block_wrapper): Likewise.
1824 (dwarf2_evaluate_property): Likewise.
1825 (dwarf2_compile_property_to_c): Likewise.
1826 (needs_frame_read_addr_from_reg): Likewise.
1827 (needs_frame_get_reg_value): Likewise.
1828 (needs_frame_frame_base): Likewise.
1829 (needs_frame_frame_cfa): Likewise.
1830 (needs_frame_tls_address): Likewise.
1831 (needs_frame_dwarf_call): Likewise.
1832 (needs_dwarf_reg_entry_value): Likewise.
1833 (get_ax_pc): Likewise.
1834 (locexpr_read_variable): Likewise.
1835 (locexpr_read_variable_at_entry): Likewise.
1836 (locexpr_read_needs_frame): Likewise.
1837 (locexpr_describe_location): Likewise.
1838 (locexpr_tracepoint_var_ref): Likewise.
1839 (locexpr_generate_c_location): Likewise.
1840 (loclist_read_variable): Likewise.
1841 (loclist_read_variable_at_entry): Likewise.
1842 (loclist_describe_location): Likewise.
1843 (loclist_tracepoint_var_ref): Likewise.
1844 (loclist_generate_c_location): Likewise.
1845 * dwarf2read.c (line_header_hash_voidp): Likewise.
1846 (line_header_eq_voidp): Likewise.
1847 (dwarf2_has_info): Likewise.
1848 (dwarf2_get_section_info): Likewise.
1849 (locate_dwz_sections): Likewise.
1850 (hash_file_name_entry): Likewise.
1851 (eq_file_name_entry): Likewise.
1852 (delete_file_name_entry): Likewise.
1853 (dw2_setup): Likewise.
1854 (dw2_get_file_names_reader): Likewise.
1855 (dw2_find_pc_sect_compunit_symtab): Likewise.
1856 (hash_signatured_type): Likewise.
1857 (eq_signatured_type): Likewise.
1858 (add_signatured_type_cu_to_table): Likewise.
1859 (create_debug_types_hash_table): Likewise.
1860 (lookup_dwo_signatured_type): Likewise.
1861 (lookup_dwp_signatured_type): Likewise.
1862 (lookup_signatured_type): Likewise.
1863 (hash_type_unit_group): Likewise.
1864 (eq_type_unit_group): Likewise.
1865 (get_type_unit_group): Likewise.
1866 (process_psymtab_comp_unit_reader): Likewise.
1867 (sort_tu_by_abbrev_offset): Likewise.
1868 (process_skeletonless_type_unit): Likewise.
1869 (psymtabs_addrmap_cleanup): Likewise.
1870 (dwarf2_read_symtab): Likewise.
1871 (psymtab_to_symtab_1): Likewise.
1872 (die_hash): Likewise.
1874 (load_full_comp_unit_reader): Likewise.
1875 (reset_die_in_process): Likewise.
1876 (free_cu_line_header): Likewise.
1877 (handle_DW_AT_stmt_list): Likewise.
1878 (hash_dwo_file): Likewise.
1879 (eq_dwo_file): Likewise.
1880 (hash_dwo_unit): Likewise.
1881 (eq_dwo_unit): Likewise.
1882 (create_dwo_cu_reader): Likewise.
1883 (create_dwo_unit_in_dwp_v1): Likewise.
1884 (create_dwo_unit_in_dwp_v2): Likewise.
1885 (lookup_dwo_unit_in_dwp): Likewise.
1886 (dwarf2_locate_dwo_sections): Likewise.
1887 (dwarf2_locate_common_dwp_sections): Likewise.
1888 (dwarf2_locate_v2_dwp_sections): Likewise.
1889 (hash_dwp_loaded_cutus): Likewise.
1890 (eq_dwp_loaded_cutus): Likewise.
1891 (lookup_dwo_cutu): Likewise.
1892 (abbrev_table_free_cleanup): Likewise.
1893 (dwarf2_free_abbrev_table): Likewise.
1894 (find_partial_die_in_comp_unit): Likewise.
1895 (free_line_header_voidp): Likewise.
1896 (follow_die_offset): Likewise.
1897 (follow_die_sig_1): Likewise.
1898 (free_heap_comp_unit): Likewise.
1899 (free_stack_comp_unit): Likewise.
1900 (dwarf2_free_objfile): Likewise.
1901 (per_cu_offset_and_type_hash): Likewise.
1902 (per_cu_offset_and_type_eq): Likewise.
1903 (get_die_type_at_offset): Likewise.
1904 (partial_die_hash): Likewise.
1905 (partial_die_eq): Likewise.
1906 (dwarf2_per_objfile_free): Likewise.
1907 (hash_strtab_entry): Likewise.
1908 (eq_strtab_entry): Likewise.
1909 (add_string): Likewise.
1910 (hash_symtab_entry): Likewise.
1911 (eq_symtab_entry): Likewise.
1912 (delete_symtab_entry): Likewise.
1913 (cleanup_mapped_symtab): Likewise.
1914 (add_indices_to_cpool): Likewise.
1915 (hash_psymtab_cu_index): Likewise.
1916 (eq_psymtab_cu_index): Likewise.
1917 (add_address_entry_worker): Likewise.
1918 (unlink_if_set): Likewise.
1919 (write_one_signatured_type): Likewise.
1920 (save_gdb_index_command): Likewise.
1921 * elfread.c (elf_symtab_read): Likewise.
1922 (elf_gnu_ifunc_cache_hash): Likewise.
1923 (elf_gnu_ifunc_cache_eq): Likewise.
1924 (elf_gnu_ifunc_record_cache): Likewise.
1925 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1926 (elf_get_probes): Likewise.
1927 (probe_key_free): Likewise.
1928 * f-lang.c (builtin_f_type): Likewise.
1929 * frame-base.c (frame_base_append_sniffer): Likewise.
1930 (frame_base_set_default): Likewise.
1931 (frame_base_find_by_frame): Likewise.
1932 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1933 (frame_unwind_append_unwinder): Likewise.
1934 (frame_unwind_find_by_frame): Likewise.
1935 * frame.c (frame_addr_hash): Likewise.
1936 (frame_addr_hash_eq): Likewise.
1937 (frame_stash_find): Likewise.
1938 (do_frame_register_read): Likewise.
1939 (unwind_to_current_frame): Likewise.
1940 (frame_cleanup_after_sniffer): Likewise.
1941 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1942 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1943 * ft32-tdep.c (ft32_frame_cache): Likewise.
1944 * gcore.c (do_bfd_delete_cleanup): Likewise.
1945 (gcore_create_callback): Likewise.
1946 * gdb_bfd.c (hash_bfd): Likewise.
1948 (gdb_bfd_open): Likewise.
1949 (free_one_bfd_section): Likewise.
1950 (gdb_bfd_ref): Likewise.
1951 (gdb_bfd_unref): Likewise.
1952 (get_section_descriptor): Likewise.
1953 (gdb_bfd_map_section): Likewise.
1954 (gdb_bfd_crc): Likewise.
1955 (gdb_bfd_mark_parent): Likewise.
1956 (gdb_bfd_record_inclusion): Likewise.
1957 (gdb_bfd_requires_relocations): Likewise.
1958 (print_one_bfd): Likewise.
1959 * gdbtypes.c (type_pair_hash): Likewise.
1960 (type_pair_eq): Likewise.
1961 (builtin_type): Likewise.
1962 (objfile_type): Likewise.
1963 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1964 (vtable_address_point_offset): Likewise.
1965 (gnuv3_get_vtable): Likewise.
1966 (hash_value_and_voffset): Likewise.
1967 (eq_value_and_voffset): Likewise.
1968 (compare_value_and_voffset): Likewise.
1969 (compute_vtable_size): Likewise.
1970 (gnuv3_get_typeid_type): Likewise.
1971 * go-lang.c (builtin_go_type): Likewise.
1972 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1973 (bkscm_eq_block_smob): Likewise.
1974 (bkscm_objfile_block_map): Likewise.
1975 (bkscm_del_objfile_blocks): Likewise.
1976 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1977 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1978 (gdbscm_disasm_print_address): Likewise.
1979 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1980 (frscm_eq_frame_smob): Likewise.
1981 (frscm_inferior_frame_map): Likewise.
1982 (frscm_del_inferior_frames): Likewise.
1983 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1984 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1985 (ofscm_objfile_smob_from_objfile): Likewise.
1986 * guile/scm-ports.c (ioscm_write): Likewise.
1987 (ioscm_file_port_delete): Likewise.
1988 (ioscm_file_port_rewind): Likewise.
1989 (ioscm_file_port_put): Likewise.
1990 (ioscm_file_port_write): Likewise.
1991 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1992 (psscm_pspace_smob_from_pspace): Likewise.
1993 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1994 (scscm_recording_unwind_handler): Likewise.
1995 (gdbscm_with_catch): Likewise.
1996 (scscm_call_0_body): Likewise.
1997 (scscm_call_1_body): Likewise.
1998 (scscm_call_2_body): Likewise.
1999 (scscm_call_3_body): Likewise.
2000 (scscm_call_4_body): Likewise.
2001 (scscm_apply_1_body): Likewise.
2002 (scscm_eval_scheme_string): Likewise.
2003 (gdbscm_safe_eval_string): Likewise.
2004 (scscm_source_scheme_script): Likewise.
2005 (gdbscm_safe_source_script): Likewise.
2006 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2007 (gdbscm_call_scm_from_stringn): Likewise.
2008 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2009 (syscm_eq_symbol_smob): Likewise.
2010 (syscm_get_symbol_map): Likewise.
2011 (syscm_del_objfile_symbols): Likewise.
2012 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2013 (stscm_eq_symtab_smob): Likewise.
2014 (stscm_objfile_symtab_map): Likewise.
2015 (stscm_del_objfile_symtabs): Likewise.
2016 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2017 (tyscm_eq_type_smob): Likewise.
2018 (tyscm_type_map): Likewise.
2019 (tyscm_copy_type_recursive): Likewise.
2020 (save_objfile_types): Likewise.
2021 * guile/scm-utils.c (extract_arg): Likewise.
2022 * h8300-tdep.c (h8300_frame_cache): Likewise.
2023 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2024 * hppa-tdep.c (compare_unwind_entries): Likewise.
2025 (find_unwind_entry): Likewise.
2026 (hppa_frame_cache): Likewise.
2027 (hppa_stub_frame_unwind_cache): Likewise.
2028 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2029 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2030 (hppaobsd_supply_fpregset): Likewise.
2031 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2032 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2033 * i386-tdep.c (i386_frame_cache): Likewise.
2034 (i386_epilogue_frame_cache): Likewise.
2035 (i386_sigtramp_frame_cache): Likewise.
2036 (i386_supply_gregset): Likewise.
2037 (i386_collect_gregset): Likewise.
2038 (i386_gdbarch_init): Likewise.
2039 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2040 (i386obsd_trapframe_cache): Likewise.
2041 * i387-tdep.c (i387_supply_fsave): Likewise.
2042 (i387_collect_fsave): Likewise.
2043 (i387_supply_fxsave): Likewise.
2044 (i387_collect_fxsave): Likewise.
2045 (i387_supply_xsave): Likewise.
2046 (i387_collect_xsave): Likewise.
2047 * ia64-tdep.c (ia64_frame_cache): Likewise.
2048 (ia64_sigtramp_frame_cache): Likewise.
2049 * infcmd.c (attach_command_continuation): Likewise.
2050 (attach_command_continuation_free_args): Likewise.
2051 * inferior.c (restore_inferior): Likewise.
2052 (delete_thread_of_inferior): Likewise.
2053 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2054 (get_inflow_inferior_data): Likewise.
2055 (inflow_inferior_exit): Likewise.
2056 * infrun.c (displaced_step_clear_cleanup): Likewise.
2057 (restore_current_uiout_cleanup): Likewise.
2058 (release_stop_context_cleanup): Likewise.
2059 (do_restore_infcall_suspend_state_cleanup): Likewise.
2060 (do_restore_infcall_control_state_cleanup): Likewise.
2061 (restore_inferior_ptid): Likewise.
2062 * inline-frame.c (block_starting_point_at): Likewise.
2063 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2064 * jit.c (get_jit_objfile_data): Likewise.
2065 (get_jit_program_space_data): Likewise.
2066 (jit_object_close_impl): Likewise.
2067 (jit_find_objf_with_entry_addr): Likewise.
2068 (jit_breakpoint_deleted): Likewise.
2069 (jit_unwind_reg_set_impl): Likewise.
2070 (jit_unwind_reg_get_impl): Likewise.
2071 (jit_dealloc_cache): Likewise.
2072 (jit_frame_sniffer): Likewise.
2073 (jit_frame_prev_register): Likewise.
2074 (jit_prepend_unwinder): Likewise.
2075 (jit_inferior_exit_hook): Likewise.
2076 (free_objfile_data): Likewise.
2077 * jv-lang.c (jv_per_objfile_free): Likewise.
2078 (get_dynamics_objfile): Likewise.
2079 (get_java_class_symtab): Likewise.
2080 (builtin_java_type): Likewise.
2081 * language.c (language_string_char_type): Likewise.
2082 (language_bool_type): Likewise.
2083 (language_lookup_primitive_type): Likewise.
2084 (language_lookup_primitive_type_as_symbol): Likewise.
2085 * linespec.c (hash_address_entry): Likewise.
2086 (eq_address_entry): Likewise.
2087 (iterate_inline_only): Likewise.
2088 (iterate_name_matcher): Likewise.
2089 (decode_line_2_compare_items): Likewise.
2090 (collect_one_symbol): Likewise.
2091 (compare_symbols): Likewise.
2092 (compare_msymbols): Likewise.
2093 (add_symtabs_to_list): Likewise.
2094 (collect_symbols): Likewise.
2095 (compare_msyms): Likewise.
2096 (add_minsym): Likewise.
2097 (cleanup_linespec_result): Likewise.
2098 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2099 * linux-nat.c (delete_lwp_cleanup): Likewise.
2100 (count_events_callback): Likewise.
2101 (select_event_lwp_callback): Likewise.
2102 (resume_stopped_resumed_lwps): Likewise.
2103 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2104 (invalidate_linux_cache_inf): Likewise.
2105 (get_linux_inferior_data): Likewise.
2106 (linux_find_memory_regions_thunk): Likewise.
2107 (linux_make_mappings_callback): Likewise.
2108 (linux_corefile_thread_callback): Likewise.
2109 (find_mapping_size): Likewise.
2110 * linux-thread-db.c (find_new_threads_callback): Likewise.
2111 * lm32-tdep.c (lm32_frame_cache): Likewise.
2112 * m2-lang.c (builtin_m2_type): Likewise.
2113 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2114 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2115 (m32r_linux_supply_gregset): Likewise.
2116 (m32r_linux_collect_gregset): Likewise.
2117 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2118 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2119 * m68k-tdep.c (m68k_frame_cache): Likewise.
2120 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2121 (m68kbsd_supply_gregset): Likewise.
2122 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2123 * m88k-tdep.c (m88k_frame_cache): Likewise.
2124 (m88k_supply_gregset): Likewise.
2126 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2128 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2129 to allocation result assignment.
2130 * ada-exp.y (write_object_renaming): Likewise.
2131 (write_ambiguous_var): Likewise.
2132 (ada_nget_field_index): Likewise.
2133 (write_var_or_type): Likewise.
2134 * ada-lang.c (ada_decode_symbol): Likewise.
2135 (ada_value_assign): Likewise.
2136 (value_pointer): Likewise.
2137 (cache_symbol): Likewise.
2138 (add_nonlocal_symbols): Likewise.
2139 (ada_name_for_lookup): Likewise.
2140 (symbol_completion_add): Likewise.
2141 (ada_to_fixed_type_1): Likewise.
2142 (ada_get_next_arg): Likewise.
2143 (defns_collected): Likewise.
2144 * ada-lex.l (processId): Likewise.
2145 (processString): Likewise.
2146 * ada-tasks.c (read_known_tasks_array): Likewise.
2147 (read_known_tasks_list): Likewise.
2148 * ada-typeprint.c (decoded_type_name): Likewise.
2149 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2150 * amd64-tdep.c (amd64_push_arguments): Likewise.
2151 (amd64_displaced_step_copy_insn): Likewise.
2152 (amd64_classify_insn_at): Likewise.
2153 (amd64_relocate_instruction): Likewise.
2154 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2155 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2156 (initialize_current_architecture): Likewise.
2157 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2158 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2159 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2160 (arm_push_dummy_call): Likewise.
2161 (extend_buffer_earlier): Likewise.
2162 (arm_adjust_breakpoint_address): Likewise.
2163 (arm_skip_stub): Likewise.
2164 * auto-load.c (filename_is_in_pattern): Likewise.
2165 (maybe_add_script_file): Likewise.
2166 (maybe_add_script_text): Likewise.
2167 (auto_load_objfile_script_1): Likewise.
2168 * auxv.c (ld_so_xfer_auxv): Likewise.
2169 * ax-general.c (new_agent_expr): Likewise.
2170 (grow_expr): Likewise.
2171 (ax_reg_mask): Likewise.
2172 * bcache.c (bcache_full): Likewise.
2173 * breakpoint.c (program_breakpoint_here_p): Likewise.
2174 * btrace.c (parse_xml_raw): Likewise.
2175 * build-id.c (build_id_to_debug_bfd): Likewise.
2176 * buildsym.c (end_symtab_with_blockvector): Likewise.
2177 * c-exp.y (string_exp): Likewise.
2178 (qualified_name): Likewise.
2179 (write_destructor_name): Likewise.
2180 (operator_stoken): Likewise.
2181 (parse_number): Likewise.
2182 (scan_macro_expansion): Likewise.
2184 (c_print_token): Likewise.
2185 * c-lang.c (c_get_string): Likewise.
2186 (emit_numeric_character): Likewise.
2187 * charset.c (wchar_iterate): Likewise.
2188 * cli/cli-cmds.c (complete_command): Likewise.
2189 (make_command): Likewise.
2190 * cli/cli-dump.c (restore_section_callback): Likewise.
2191 (restore_binary_file): Likewise.
2192 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2193 * cli/cli-script.c (execute_control_command): Likewise.
2194 * cli/cli-setshow.c (do_set_command): Likewise.
2195 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2196 (read_pe_exported_syms): Likewise.
2197 * coffread.c (coff_read_struct_type): Likewise.
2198 (coff_read_enum_type): Likewise.
2199 * common/btrace-common.c (btrace_data_append): Likewise.
2200 * common/buffer.c (buffer_grow): Likewise.
2201 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2202 * common/format.c (parse_format_string): Likewise.
2203 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2204 * common/xml-utils.c (xml_escape_text): Likewise.
2205 * compile/compile-object-load.c (copy_sections): Likewise.
2206 (compile_object_load): Likewise.
2207 * compile/compile-object-run.c (compile_object_run): Likewise.
2208 * completer.c (filename_completer): Likewise.
2209 * corefile.c (read_memory_typed_address): Likewise.
2210 (write_memory_unsigned_integer): Likewise.
2211 (write_memory_signed_integer): Likewise.
2212 (complete_set_gnutarget): Likewise.
2213 * corelow.c (get_core_register_section): Likewise.
2214 * cp-name-parser.y (d_grab): Likewise.
2215 (allocate_info): Likewise.
2216 (cp_new_demangle_parse_info): Likewise.
2217 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2218 (cp_lookup_symbol_in_namespace): Likewise.
2219 (lookup_namespace_scope): Likewise.
2220 (find_symbol_in_baseclass): Likewise.
2221 (cp_lookup_nested_symbol): Likewise.
2222 (cp_lookup_transparent_type_loop): Likewise.
2223 * cp-support.c (copy_string_to_obstack): Likewise.
2224 (make_symbol_overload_list): Likewise.
2225 (make_symbol_overload_list_namespace): Likewise.
2226 (make_symbol_overload_list_adl_namespace): Likewise.
2227 (first_component_command): Likewise.
2228 * cp-valprint.c (cp_print_value): Likewise.
2229 * ctf.c (ctf_xfer_partial): Likewise.
2230 * d-exp.y (StringExp): Likewise.
2231 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2232 (lookup_module_scope): Likewise.
2233 (find_symbol_in_baseclass): Likewise.
2234 (d_lookup_nested_symbol): Likewise.
2235 * dbxread.c (find_stab_function_addr): Likewise.
2236 (read_dbx_symtab): Likewise.
2237 (dbx_end_psymtab): Likewise.
2238 (cp_set_block_scope): Likewise.
2239 * dcache.c (dcache_alloc): Likewise.
2240 * demangle.c (_initialize_demangler): Likewise.
2241 * dicos-tdep.c (dicos_load_module_p): Likewise.
2242 * dictionary.c (dict_create_hashed_expandable): Likewise.
2243 (dict_create_linear_expandable): Likewise.
2244 (expand_hashtable): Likewise.
2245 (add_symbol_linear_expandable): Likewise.
2246 * dwarf2-frame.c (add_cie): Likewise.
2247 (add_fde): Likewise.
2248 (dwarf2_build_frame_info): Likewise.
2249 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2250 (dwarf_expr_fetch_address): Likewise.
2251 (add_piece): Likewise.
2252 (execute_stack_op): Likewise.
2253 * dwarf2loc.c (chain_candidate): Likewise.
2254 (dwarf_entry_parameter_to_value): Likewise.
2255 (read_pieced_value): Likewise.
2256 (write_pieced_value): Likewise.
2257 * dwarf2read.c (dwarf2_read_section): Likewise.
2258 (add_type_unit): Likewise.
2259 (read_comp_units_from_section): Likewise.
2260 (fixup_go_packaging): Likewise.
2261 (dwarf2_compute_name): Likewise.
2262 (dwarf2_physname): Likewise.
2263 (create_dwo_unit_in_dwp_v1): Likewise.
2264 (create_dwo_unit_in_dwp_v2): Likewise.
2265 (read_func_scope): Likewise.
2266 (read_call_site_scope): Likewise.
2267 (dwarf2_attach_fields_to_type): Likewise.
2268 (process_structure_scope): Likewise.
2269 (mark_common_block_symbol_computed): Likewise.
2270 (read_common_block): Likewise.
2271 (abbrev_table_read_table): Likewise.
2272 (guess_partial_die_structure_name): Likewise.
2273 (fixup_partial_die): Likewise.
2274 (add_file_name): Likewise.
2275 (dwarf2_const_value_data): Likewise.
2276 (dwarf2_const_value_attr): Likewise.
2277 (build_error_marker_type): Likewise.
2278 (guess_full_die_structure_name): Likewise.
2279 (anonymous_struct_prefix): Likewise.
2280 (typename_concat): Likewise.
2281 (dwarf2_canonicalize_name): Likewise.
2282 (dwarf2_name): Likewise.
2283 (write_constant_as_bytes): Likewise.
2284 (dwarf2_fetch_constant_bytes): Likewise.
2285 (copy_string): Likewise.
2286 (parse_macro_definition): Likewise.
2287 * elfread.c (elf_symfile_segments): Likewise.
2288 (elf_rel_plt_read): Likewise.
2289 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2290 (elf_gnu_ifunc_resolve_by_got): Likewise.
2291 (elf_read_minimal_symbols): Likewise.
2292 (elf_gnu_ifunc_record_cache): Likewise.
2293 * event-top.c (top_level_prompt): Likewise.
2294 (command_line_handler): Likewise.
2295 * exec.c (resize_section_table): Likewise.
2296 * expprint.c (print_subexp_standard): Likewise.
2297 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2298 * findcmd.c (parse_find_args): Likewise.
2299 * findvar.c (address_from_register): Likewise.
2300 * frame.c (get_prev_frame_always): Likewise.
2301 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2302 (get_section_descriptor): Likewise.
2303 * gdb_obstack.c (obconcat): Likewise.
2304 (obstack_strdup): Likewise.
2305 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2306 (create_set_type): Likewise.
2307 (lookup_unsigned_typename): Likewise.
2308 (lookup_signed_typename): Likewise.
2309 (resolve_dynamic_union): Likewise.
2310 (resolve_dynamic_struct): Likewise.
2311 (add_dyn_prop): Likewise.
2312 (copy_dynamic_prop_list): Likewise.
2313 (arch_flags_type): Likewise.
2314 (append_composite_type_field_raw): Likewise.
2315 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2316 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2317 * go-exp.y (string_exp): Likewise.
2318 * go-lang.c (go_demangle): Likewise.
2319 * guile/guile.c (compute_scheme_string): Likewise.
2320 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2321 (gdbscm_canonicalize_command_name): Likewise.
2322 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2323 (ioscm_init_memory_port): Likewise.
2324 (ioscm_reinit_memory_port): Likewise.
2325 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2326 (gdbscm_gc_dup_argv): Likewise.
2327 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2328 * hppa-tdep.c (internalize_unwinds): Likewise.
2329 (read_unwind_info): Likewise.
2330 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2331 (windows_core_xfer_shared_libraries): Likewise.
2332 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2333 (i386_stap_parse_special_token_triplet): Likewise.
2334 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2335 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2336 * inf-child.c (inf_child_fileio_readlink): Likewise.
2337 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2338 (inf_ptrace_store_register): Likewise.
2339 * infrun.c (follow_exec): Likewise.
2340 (displaced_step_prepare_throw): Likewise.
2341 (save_stop_context): Likewise.
2342 (save_infcall_suspend_state): Likewise.
2343 * jit.c (jit_read_descriptor): Likewise.
2344 (jit_read_code_entry): Likewise.
2345 (jit_symtab_line_mapping_add_impl): Likewise.
2346 (finalize_symtab): Likewise.
2347 (jit_unwind_reg_get_impl): Likewise.
2348 * jv-exp.y (QualifiedName): Likewise.
2349 * jv-lang.c (get_java_utf8_name): Likewise.
2350 (type_from_class): Likewise.
2351 (java_demangle_type_signature): Likewise.
2352 (java_class_name_from_physname): Likewise.
2353 * jv-typeprint.c (java_type_print_base): Likewise.
2354 * jv-valprint.c (java_value_print): Likewise.
2355 * language.c (add_language): Likewise.
2356 * linespec.c (add_sal_to_sals_basic): Likewise.
2357 (add_sal_to_sals): Likewise.
2358 (decode_objc): Likewise.
2359 (find_linespec_symbols): Likewise.
2360 * linux-fork.c (fork_save_infrun_state): Likewise.
2361 * linux-nat.c (linux_nat_detach): Likewise.
2362 (linux_nat_fileio_readlink): Likewise.
2363 * linux-record.c (record_linux_sockaddr): Likewise.
2364 (record_linux_msghdr): Likewise.
2366 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2367 (linux_collect_regset_section_cb): Likewise.
2368 (linux_get_siginfo_data): Likewise.
2369 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2370 (try_thread_db_load_from_dir): Likewise.
2371 (thread_db_load_search): Likewise.
2372 (info_auto_load_libthread_db): Likewise.
2373 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2374 (m32c_m16c_pointer_to_address): Likewise.
2375 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2376 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2377 * machoread.c (macho_check_dsym): Likewise.
2378 * macroexp.c (resize_buffer): Likewise.
2379 (gather_arguments): Likewise.
2380 (maybe_expand): Likewise.
2381 * macrotab.c (new_macro_key): Likewise.
2382 (new_source_file): Likewise.
2383 (new_macro_definition): Likewise.
2384 * mdebugread.c (parse_symbol): Likewise.
2385 (parse_type): Likewise.
2386 (parse_partial_symbols): Likewise.
2387 (psymtab_to_symtab_1): Likewise.
2388 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2389 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2390 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2391 (mi_cmd_data_read_memory_bytes): Likewise.
2392 (mi_cmd_data_write_memory_bytes): Likewise.
2393 (mi_cmd_trace_frame_collected): Likewise.
2394 * mi/mi-parse.c (mi_parse_argv): Likewise.
2395 (mi_parse): Likewise.
2396 * minidebug.c (lzma_open): Likewise.
2397 (lzma_pread): Likewise.
2398 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2399 (mips_print_fp_register): Likewise.
2400 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2401 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2402 * mt-tdep.c (mt_register_name): Likewise.
2403 (mt_registers_info): Likewise.
2404 (mt_push_dummy_call): Likewise.
2405 * namespace.c (add_using_directive): Likewise.
2406 * nat/linux-btrace.c (perf_event_read): Likewise.
2407 (linux_enable_bts): Likewise.
2408 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2409 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2410 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2411 (nto_parse_redirection): Likewise.
2412 * objc-lang.c (objc_demangle): Likewise.
2413 (find_methods): Likewise.
2414 * objfiles.c (get_objfile_bfd_data): Likewise.
2415 (set_objfile_main_name): Likewise.
2416 (allocate_objfile): Likewise.
2417 (objfile_relocate): Likewise.
2418 (update_section_map): Likewise.
2419 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2420 * p-exp.y (exp): Likewise.
2422 * p-valprint.c (pascal_object_print_value): Likewise.
2423 * parse.c (initialize_expout): Likewise.
2424 (mark_completion_tag): Likewise.
2425 (copy_name): Likewise.
2426 (parse_float): Likewise.
2427 (type_stack_reserve): Likewise.
2428 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2429 (ppu2spu_prev_register): Likewise.
2430 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2431 * printcmd.c (printf_wide_c_string): Likewise.
2432 (printf_pointer): Likewise.
2433 * probe.c (parse_probes): Likewise.
2434 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2435 (cmdpy_init): Likewise.
2436 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2437 * python/py-symtab.c (set_sal): Likewise.
2438 * python/py-unwind.c (pyuw_sniffer): Likewise.
2439 * python/python.c (python_interactive_command): Likewise.
2440 (compute_python_string): Likewise.
2441 * ravenscar-thread.c (get_running_thread_id): Likewise.
2442 * record-full.c (record_full_exec_insn): Likewise.
2443 (record_full_core_open_1): Likewise.
2444 * regcache.c (regcache_raw_read_signed): Likewise.
2445 (regcache_raw_read_unsigned): Likewise.
2446 (regcache_cooked_read_signed): Likewise.
2447 (regcache_cooked_read_unsigned): Likewise.
2448 * remote-fileio.c (remote_fileio_func_open): Likewise.
2449 (remote_fileio_func_rename): Likewise.
2450 (remote_fileio_func_unlink): Likewise.
2451 (remote_fileio_func_stat): Likewise.
2452 (remote_fileio_func_system): Likewise.
2453 * remote-mips.c (mips_xfer_memory): Likewise.
2454 (mips_load_srec): Likewise.
2455 (pmon_end_download): Likewise.
2456 * remote.c (new_remote_state): Likewise.
2457 (map_regcache_remote_table): Likewise.
2458 (remote_register_number_and_offset): Likewise.
2459 (init_remote_state): Likewise.
2460 (get_memory_packet_size): Likewise.
2461 (remote_pass_signals): Likewise.
2462 (remote_program_signals): Likewise.
2463 (remote_start_remote): Likewise.
2464 (remote_check_symbols): Likewise.
2465 (remote_query_supported): Likewise.
2466 (extended_remote_attach): Likewise.
2467 (process_g_packet): Likewise.
2468 (store_registers_using_G): Likewise.
2469 (putpkt_binary): Likewise.
2470 (read_frame): Likewise.
2471 (compare_sections_command): Likewise.
2472 (remote_hostio_pread): Likewise.
2473 (remote_hostio_readlink): Likewise.
2474 (remote_file_put): Likewise.
2475 (remote_file_get): Likewise.
2476 (remote_pid_to_exec_file): Likewise.
2477 (_initialize_remote): Likewise.
2478 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2479 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2480 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2481 (bfd_uses_spe_extensions): Likewise.
2482 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2483 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2484 * solib-dsbt.c (decode_loadmap): Likewise.
2485 (fetch_loadmap): Likewise.
2486 (scan_dyntag): Likewise.
2487 (enable_break): Likewise.
2488 (dsbt_relocate_main_executable): Likewise.
2489 * solib-frv.c (fetch_loadmap): Likewise.
2490 (enable_break2): Likewise.
2491 (frv_relocate_main_executable): Likewise.
2492 * solib-spu.c (spu_relocate_main_executable): Likewise.
2493 (spu_bfd_open): Likewise.
2494 * solib-svr4.c (lm_info_read): Likewise.
2495 (read_program_header): Likewise.
2496 (find_program_interpreter): Likewise.
2497 (scan_dyntag): Likewise.
2498 (elf_locate_base): Likewise.
2499 (open_symbol_file_object): Likewise.
2500 (read_program_headers_from_bfd): Likewise.
2501 (svr4_relocate_main_executable): Likewise.
2502 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2503 * solib.c (solib_find_1): Likewise.
2504 (exec_file_find): Likewise.
2505 (solib_find): Likewise.
2506 * source.c (openp): Likewise.
2507 (print_source_lines_base): Likewise.
2508 (forward_search_command): Likewise.
2509 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2510 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2511 (spu_get_overlay_table): Likewise.
2512 * stabsread.c (patch_block_stabs): Likewise.
2513 (define_symbol): Likewise.
2515 (read_member_functions): Likewise.
2516 (read_one_struct_field): Likewise.
2517 (read_enum_type): Likewise.
2518 (common_block_start): Likewise.
2519 * stack.c (read_frame_arg): Likewise.
2520 (backtrace_command): Likewise.
2521 * stap-probe.c (stap_parse_register_operand): Likewise.
2522 * symfile.c (syms_from_objfile_1): Likewise.
2523 (find_separate_debug_file): Likewise.
2524 (load_command): Likewise.
2525 (load_progress): Likewise.
2526 (load_section_callback): Likewise.
2527 (reread_symbols): Likewise.
2528 (add_filename_language): Likewise.
2529 (allocate_compunit_symtab): Likewise.
2530 (read_target_long_array): Likewise.
2531 (simple_read_overlay_table): Likewise.
2532 * symtab.c (symbol_set_names): Likewise.
2533 (resize_symbol_cache): Likewise.
2534 (rbreak_command): Likewise.
2535 (completion_list_add_name): Likewise.
2536 (completion_list_objc_symbol): Likewise.
2537 (add_filename_to_list): Likewise.
2538 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2539 * target-memory.c (target_write_memory_blocks): Likewise.
2540 * target.c (target_read_string): Likewise.
2541 (read_whatever_is_readable): Likewise.
2542 (target_read_alloc_1): Likewise.
2543 (simple_search_memory): Likewise.
2544 (target_fileio_read_alloc_1): Likewise.
2545 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2546 * top.c (command_line_input): Likewise.
2547 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2548 * tracefile.c (tracefile_fetch_registers): Likewise.
2549 * tracepoint.c (add_memrange): Likewise.
2550 (init_collection_list): Likewise.
2551 (add_aexpr): Likewise.
2552 (trace_dump_actions): Likewise.
2553 (parse_trace_status): Likewise.
2554 (parse_tracepoint_definition): Likewise.
2555 (parse_tsv_definition): Likewise.
2556 (parse_static_tracepoint_marker_definition): Likewise.
2557 * tui/tui-file.c (tui_sfileopen): Likewise.
2558 (tui_file_adjust_strbuf): Likewise.
2559 * tui/tui-io.c (tui_expand_tabs): Likewise.
2560 * tui/tui-source.c (tui_set_source_content): Likewise.
2561 * typeprint.c (find_global_typedef): Likewise.
2562 * ui-file.c (do_ui_file_xstrdup): Likewise.
2563 (ui_file_obsavestring): Likewise.
2564 (mem_file_write): Likewise.
2565 * utils.c (make_hex_string): Likewise.
2566 (get_regcomp_error): Likewise.
2567 (puts_filtered_tabular): Likewise.
2568 (gdb_realpath_keepfile): Likewise.
2569 (ldirname): Likewise.
2570 (gdb_bfd_errmsg): Likewise.
2571 (substitute_path_component): Likewise.
2572 * valops.c (search_struct_method): Likewise.
2573 (find_oload_champ_namespace_loop): Likewise.
2574 * valprint.c (print_decimal_chars): Likewise.
2575 (read_string): Likewise.
2576 (generic_emit_char): Likewise.
2577 * varobj.c (varobj_delete): Likewise.
2578 (varobj_value_get_print_value): Likewise.
2579 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2580 * windows-tdep.c (display_one_tib): Likewise.
2581 * xcoffread.c (read_xcoff_symtab): Likewise.
2582 (process_xcoff_symbol): Likewise.
2583 (swap_sym): Likewise.
2584 (scan_xcoff_symtab): Likewise.
2585 (xcoff_initial_scan): Likewise.
2586 * xml-support.c (gdb_xml_end_element): Likewise.
2587 (xml_process_xincludes): Likewise.
2588 (xml_fetch_content_from_file): Likewise.
2589 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2590 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2592 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2594 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2595 instead of builtin_func_ptr.
2596 (ft32_pointer_to_address): New function.
2597 (ft32_address_class_type_flags): New function.
2598 (ft32_address_class_type_flags_to_name): New function.
2599 (ft32_address_class_name_to_type_flags): New function.
2600 (ft32_gdbarch_init): Set tdep->pc_type. Call
2601 set_gdbarch_pointer_to_address,
2602 set_gdbarch_address_class_type_flags
2603 set_gdbarch_address_class_name_to_type_flags,
2604 and set_gdbarch_address_class_type_flags_to_name.
2605 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2607 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2609 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2610 value is a reference, actually dereference it in order to get
2611 the underlying value.
2613 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2615 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2617 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2619 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2620 * linespec.c (linespec_lexer_lex_string): Same.
2622 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2624 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2626 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2628 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2629 variable. Call aarch64_decode_adr instead of
2630 aarch64_decode_adrp.
2631 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2632 (aarch64_decode_adr): New function declaration.
2633 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2634 (aarch64_decode_adr): New function, factored out from
2635 aarch64_decode_adrp to decode both adr and adrp instructions.
2637 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2639 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2640 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2641 (aarch64-insn.o): New rule.
2642 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2643 (aarch64*-*-linux*): Likewise.
2644 * arch/aarch64-insn.c: New file.
2645 * arch/aarch64-insn.h: New file.
2646 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2647 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2648 arch/aarch64-insn.h.
2649 (decode_add_sub_imm): Rename to ...
2650 (aarch64_decode_add_sub_imm): ... this.
2651 (decode_adrp): Rename to ...
2652 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2653 Declare in arch/aarch64-insn.h.
2654 (decode_b): Rename to ...
2655 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2656 Declare in arch/aarch64-insn.h.
2657 (decode_bcond): Rename to ...
2658 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2659 Declare in arch/aarch64-insn.h.
2660 (decode_br): Rename to ...
2661 (aarch64_decode_br): ... this.
2662 (decode_cb): Rename to ...
2663 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2664 Declare in arch/aarch64-insn.h.
2665 (decode_eret): Rename to ...
2666 (aarch64_decode_eret): ... this.
2667 (decode_movz): Rename to ...
2668 (aarch64_decode_movz): ... this.
2669 (decode_orr_shifted_register_x): Rename to ...
2670 (aarch64_decode_orr_shifted_register_x): ... this.
2671 (decode_ret): Rename to ...
2672 (aarch64_decode_ret): ... this.
2673 (decode_stp_offset): Rename to ...
2674 (aarch64_decode_stp_offset): ... this.
2675 (decode_stp_offset_wb): Rename to ...
2676 (aarch64_decode_stp_offset_wb): ... this.
2677 (decode_stur): Rename to ...
2678 (aarch64_decode_stur): ... this.
2679 (decode_tb): Rename to ...
2680 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2681 Declare in arch/aarch64-insn.h.
2682 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2684 2015-09-20 Doug Evans <xdje42@gmail.com>
2686 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2688 2015-09-20 Doug Evans <xdje42@gmail.com>
2690 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2691 variable name that collides with a parameter.
2693 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2695 * dwarf2loc.c (locexpr_get_frame_base): Renames
2696 block_op_get_frame_base.
2697 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2698 block_op_get_frame_base by reference to locexpr_get_frame_base.
2699 (loclist_get_frame_base): New function, near identical copy of
2700 locexpr_get_frame_base.
2701 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2702 block_op_get_frame_base by reference to loclist_get_frame_base.
2704 2015-09-19 Doug Evans <xdje42@gmail.com>
2706 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2707 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2709 2015-09-18 Doug Evans <xdje42@gmail.com>
2711 * linux-thread-db.c (record_thread): Return the created thread.
2712 (thread_from_lwp): Likewise.
2713 (thread_db_get_thread_local_address): Update.
2715 2015-09-18 Doug Evans <xdje42@gmail.com>
2717 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2718 move only member demangled_name up. All uses updated.
2720 2015-09-18 Doug Evans <xdje42@gmail.com>
2722 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2723 kind of minimal symbol in the error message.
2724 * objfiles.c (objfile_flavour_name): New function.
2725 * objfiles.h (objfile_flavour_name): Declare.
2727 2015-09-18 Yao Qi <yao.qi@linaro.org>
2729 * nat/aarch64-linux.c: Include elf/common.h,
2730 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2731 (aarch64_ps_get_thread_area): New function.
2732 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2733 (aarch64_ps_get_thread_area): Declare.
2734 * aarch64-linux-nat.c (ps_get_thread_area): Call
2735 aarch64_ps_get_thread_area.
2737 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2739 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2741 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2743 * NEWS: Announce new scheduler-locking mode.
2744 * infrun.c (schedlock_replay): New.
2745 (scheduler_enums): Add schedlock_replay.
2746 (scheduler_mode): Change default to schedlock_replay.
2747 (user_visible_resume_ptid): Handle schedlock_replay.
2748 (clear_proceed_status_thread): Stop replaying if resumed thread is
2750 (schedlock_applies): Handle schedlock_replay.
2751 (_initialize_infrun): Document new scheduler-locking mode.
2752 * record-btrace.c (record_btrace_resume): Remove code to stop other
2753 threads when not replaying the resumed thread.
2755 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2757 * record-btrace.c ((record_btrace_will_replay): New.
2758 (init_record_btrace_ops): Initialize to_record_will_replay.
2759 * record-full.c ((record_full_will_replay): New.
2760 (init_record_full_ops): Initialize to_record_will_replay.
2761 * target-delegates.c: Regenerated.
2762 * target.c (target_record_will_replay): New.
2763 * target.h (struct target_ops) <to_record_will_replay>: New.
2764 (target_record_will_replay): New.
2766 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2768 * record-btrace.c (record_btrace_resume): Call
2769 target_record_stop_replaying.
2770 (record_btrace_stop_replaying_all): New.
2771 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2772 * record-full.c (record_full_stop_replaying): New.
2773 (init_record_full_ops ): Initialize to_record_stop_replaying.
2774 * target-delegates.c: Regenerated.
2775 * target.c (target_record_stop_replaying): New.
2776 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2777 (target_record_stop_replaying): New.
2779 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2781 * record-btrace.c (record_btrace_xfer_partial)
2782 (record_btrace_store_registers, record_btrace_prepare_to_store):
2783 Call record_btrace_is_replaying with inferior_ptid instead of
2785 (record_btrace_store_registers): Change error message.
2787 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2789 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2790 Update users to pass minus_one_ptid.
2791 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2792 * record.c (cmd_record_delete): Pass inferior_ptid to
2793 target_record_is_replaying.
2794 * target-delegates.c: Regenerated.
2795 * target.c (target_record_is_replaying): Add ptid argument.
2796 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2798 (target_record_is_replaying): Add ptid argument.
2800 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2802 * record-btrace.c (record_btrace_open): Remove non_stop check.
2803 * NEWS: Announce that record btrace supports non-stop mode.
2805 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2807 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2808 in the TARKET_WAITKIND_NO_HISTORY case.
2810 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2812 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2813 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2815 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2817 * record-btrace.c (get_thread_current_frame): New.
2818 (record_btrace_start_replaying): Call get_thread_current_frame.
2820 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2822 * record-btrace.c (record_btrace_resume_thread): A move request
2823 overwrites a previous move request.
2824 (record_btrace_find_resume_thread): Removed.
2825 (record_btrace_resume): Resume all requested threads.
2827 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2829 * record-btrace.c: Include vec.h.
2830 (record_btrace_find_thread_to_move): Removed.
2831 (btrace_step_no_resumed, btrace_step_again)
2832 (record_btrace_stop_replaying_at_end): New.
2833 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2834 (record_btrace_single_step_forward): Remove calls to
2835 record_btrace_stop_replaying.
2836 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2837 BTHR_RCONT. Keep threads at the end of their history moving.
2838 (record_btrace_wait): Call record_btrace_step_thread for all threads
2839 until one reports an event. Call record_btrace_stop_replaying_at_end
2840 for the eventing thread.
2842 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2844 * record-btrace.c (record_btrace_single_step_forward): Return
2845 NO_HISTORY if a step brings us to the end of the execution history.
2847 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2849 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2851 (record_btrace_single_step_forward): ... here and
2852 (record_btrace_single_step_backward): ... here.
2854 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2856 * record-btrace.c (btrace_step_spurious)
2857 (record_btrace_single_step_forward)
2858 (record_btrace_single_step_backward): New.
2859 (record_btrace_step_thread): Call record_btrace_single_step_forward
2860 and record_btrace_single_step_backward.
2862 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2864 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2865 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2867 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2869 * record-btrace.c (btrace_thread_flag_to_str)
2870 (record_btrace_cancel_resume): New.
2871 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2872 (record_btrace_resume): Print execution direction.
2873 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2874 (record_btrace_wait): Call record_btrace_cancel_resume.
2876 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2878 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2879 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2880 (record_btrace_find_thread_to_move): Also accept threads that have
2882 (btrace_step_stopped_on_request, record_btrace_stop): New.
2883 (record_btrace_step_thread): Support BTHR_STOP.
2884 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2885 (init_record_btrace_ops): Initialize to_stop.
2887 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2889 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2890 target_is_non_stop_p ().
2892 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2894 * ada-typeprint.c (print_array_type): Do not describe arrays as
2895 packed when they embed dynamic elements.
2897 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2899 * symtab.h (address_class): Document that TLS variables
2900 are handled by LOC_UNRESOLVED.
2901 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2902 * printcmd.c (address_info): Don't relocate TLS variables.
2904 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2906 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2907 (decode_adrp): Likewise.
2908 (decode_b): Likewise.
2909 (decode_bcond): Likewise.
2910 (decode_br): Likewise.
2911 (decode_cb): Likewise.
2912 (decode_eret): Likewise.
2913 (decode_movz): Likewise.
2914 (decode_orr_shifted_register_x): Likewise.
2915 (decode_ret): Likewise.
2916 (decode_stp_offset): Likewise.
2917 (decode_stp_offset_wb): Likewise.
2918 (decode_stur): Likewise.
2919 (decode_tb): Likewise.
2920 (aarch64_analyze_prologue): Likewise.
2921 (pass_in_x): Likewise.
2922 (pass_in_v): Likewise.
2923 (pass_on_stack): Likewise.
2924 (aarch64_push_dummy_call): Likewise.
2925 (aarch64_extract_return_value): Likewise.
2926 (aarch64_store_return_value): Likewise.
2927 (aarch64_return_value): Likewise.
2928 (aarch64_record_asimd_load_store): Likewise.
2929 (aarch64_record_load_store): Likewise.
2930 (aarch64_record_data_proc_simd_fp): Likewise.
2932 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2935 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2936 (ppc64_skip_trampoline_code_1): ... here.
2937 (ppc64_skip_trampoline_code): New wrapper function.
2938 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2940 2015-09-15 Yao Qi <yao.qi@linaro.org>
2942 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2944 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2945 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2946 if target_can_do_single_step returns 1.
2947 * remote.c (struct vCont_action_support) <s, S>: New fields.
2948 (PACKET_vContSupported): New enum.
2949 (remote_protocol_features): New element for vContSupported.
2950 (remote_query_supported): Append "vContSupported+".
2951 (remote_vcont_probe): Remove support_s and support_S, use
2952 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2953 vCont packet if c and C actions are not supported.
2954 (remote_can_do_single_step): New function.
2955 (init_remote_ops): Install it to to_can_do_single_step.
2956 (_initialize_remote): Call add_packet_config_cmd.
2957 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2958 (target_can_do_single_step): New macro.
2959 * target-delegates.c: Re-generated.
2961 2015-09-15 Yao Qi <yao.qi@linaro.org>
2963 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2964 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2965 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2967 (aarch64_siginfo_from_compat_siginfo): New function.
2968 * nat/aarch64-linux.h: Include signal.h.
2969 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2970 (compat_timer_t, compat_clock_t): Likewise.
2971 (struct compat_timeval): New.
2972 (union compat_sigval): New.
2973 (struct compat_siginfo): New.
2974 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2975 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2976 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2977 (cpt_si_band, cpt_si_fd): Likewise.
2979 2015-09-14 Pedro Alves <palves@redhat.com>
2981 * infrun.c (current_stop_id): New global.
2982 (get_stop_id, new_stop_id): New functions.
2983 (fetch_inferior_event): Handle normal_stop proceeding the target.
2984 (struct stop_context): New.
2985 (save_stop_context, release_stop_context_cleanup)
2986 (stop_context_changed): New functions.
2987 (normal_stop): Return true if the hook-stop changes the stop
2989 * infrun.h (get_stop_id): Declare.
2990 (normal_stop): Now returns int. Add documentation.
2992 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2994 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2995 comment. Handle packed arrays.
2997 2015-09-14 Pedro Alves <palves@redhat.com>
2999 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3000 mention of maint set/show target-non-stop.
3002 2015-09-11 Don Breazeal <donb@codesourcery.com>
3004 * NEWS: Announce new remote packets for the exec-events
3005 feature and the exec-events feature and associated commands.
3007 2015-09-11 Don Breazeal <donb@codesourcery.com>
3009 * remote.c (remote_exec_event_p): New function.
3010 (remote_insert_exec_catchpoint): New function.
3011 (remote_remove_exec_catchpoint): New function.
3012 (init_extended_remote_ops): Initialize extended_remote_ops
3013 members to_insert_exec_catchpoint and
3014 to_remove_exec_catchpoint.
3016 2015-09-11 Don Breazeal <donb@codesourcery.com>
3017 Luis Machado <lgustavo@codesourcery.com>
3019 * infrun.c (follow_exec): Use process-style ptid for
3020 exec message. Call add_inferior_with_spaces and
3022 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3023 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3024 * remote.c (remote_pspace_data): New static variable.
3025 (remote_pspace_data_cleanup): New function.
3026 (get_remote_exec_file): New function.
3027 (set_remote_exec_file_1): New function.
3028 (set_remote_exec_file): New function.
3029 (show_remote_exec_file): New function.
3030 (remote_exec_file): Delete static variable.
3031 (anonymous enum) <PACKET_exec_event_feature>: New
3032 enumeration constant.
3033 (remote_protocol_features): Add entry for exec-events feature.
3034 (remote_query_supported): Add client side of qSupported query
3035 for exec-events feature.
3036 (remote_follow_exec): New function.
3037 (remote_parse_stop_reply): Handle 'exec' stop reason.
3038 (extended_remote_run, extended_remote_create_inferior): Call
3039 get_remote_exec_file and set_remote_exec_file_1.
3040 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3042 (_initialize_remote): Call
3043 register_program_space_data_with_cleanup. Call
3044 add_packet_config_cmd for remote exec-events feature.
3045 Modify call to add_setshow_string_noescape_cmd for exec-file
3046 to use new functions set_remote_exec_file and
3047 show_remote_exec_file.
3048 * target-debug.h, target-delegates.c: Regenerated.
3049 * target.c (target_follow_exec): New function.
3050 * target.h (struct target_ops) <to_follow_exec>: New member.
3051 (target_follow_exec): Declare new function.
3053 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3055 * aarch64-tdep.c (decode_cb): Move up comment describing the
3057 (decode_tb): Fix a typo in comment above the function. Move up
3058 comment describing the encoding.
3060 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3062 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3064 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3067 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3068 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3070 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3072 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3075 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3077 * ada-lang.c (ada_search_struct_field): Constify parameters
3079 (xget_renaming_scope): Likewise.
3080 (ada_is_redundant_range_encoding): Likewise.
3081 (scan_discrim_bound): Likewise.
3082 (to_fixed_range_type): Likewise.
3084 2015-09-10 Yao Qi <yao.qi@linaro.org>
3086 * breakpoint.c (download_tracepoint_locations): New local
3087 can_download_tracepoint. Check the result of
3088 target_can_download_tracepoint and save it in
3089 can_download_tracepoint if there are tracepoints to download.
3090 * linux-nat.h (enum tribool): Move it to ...
3091 * common/common-types.h: ... here.
3093 2015-09-09 Pedro Alves <palves@redhat.com>
3095 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3096 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3098 2015-09-09 Pedro Alves <palves@redhat.com>
3100 * continuations.c (add_continuation, restore_thread_cleanup)
3101 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3102 (do_all_continuations_thread, do_all_continuations)
3103 (discard_all_continuations_thread_callback)
3104 (discard_all_continuations_thread, discard_all_continuations)
3105 (add_intermediate_continuation)
3106 (do_all_intermediate_continuations_thread_callback)
3107 (do_all_intermediate_continuations_thread)
3108 (do_all_intermediate_continuations)
3109 (discard_all_intermediate_continuations_thread_callback)
3110 (discard_all_intermediate_continuations_thread)
3111 (discard_all_intermediate_continuations): Delete.
3112 * continuations.h (add_continuation, do_all_continuations)
3113 (do_all_continuations_thread, discard_all_continuations)
3114 (discard_all_continuations_thread, add_intermediate_continuation)
3115 (do_all_intermediate_continuations)
3116 (do_all_intermediate_continuations_thread)
3117 (discard_all_intermediate_continuations)
3118 (discard_all_intermediate_continuations_thread): Delete
3120 * event-top.c (stdin_event_handler): Delete references to
3122 * gdbthread.h (struct thread_info): Delete continuations and
3123 intermediate_continuations fields.
3124 * inf-loop.c (inferior_event_handler): Remove references to
3126 * infrun.c (infrun_thread_stop_requested_callback): Remove
3127 references to continuations.
3128 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3129 * thread.c: Don't include "continuations.h".
3130 (clear_thread_inferior_resources): Remove references to
3133 2015-09-09 Pedro Alves <palves@redhat.com>
3135 * infcall.c (struct dummy_frame_context_saver): Delete.
3136 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3137 (dummy_frame_context_saver_drop)
3138 (dummy_frame_context_saver_cleanup)
3139 (dummy_frame_context_saver_get_regs)
3140 (dummy_frame_context_saver_setup): Delete.
3141 * infcall.h (dummy_frame_context_saver_drop)
3142 (dummy_frame_context_saver_cleanup)
3143 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3145 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3146 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3147 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3149 2015-09-09 Pedro Alves <palves@redhat.com>
3151 * breakpoint.c: Include "thread-fsm.h".
3152 (struct until_break_command_continuation_args): Delete.
3153 (struct until_break_fsm): New.
3154 (until_break_fsm_ops): New global.
3155 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3156 (until_break_command_continuation): Delete.
3157 (until_break_fsm_clean_up): New function.
3158 (until_break_fsm_async_reply_reason): New function.
3159 (until_break_command): Adjust to create an until_break_fsm instead
3161 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3163 * infcmd.c (struct until_next_fsm): New.
3164 (until_next_fsm_ops): New global.
3165 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3166 (until_next_continuation): Delete.
3167 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3169 (until_next_command): Adjust to create a new until_next_fsm
3170 instead of a continuation.
3172 2015-09-09 Pedro Alves <palves@redhat.com>
3174 * infcall.c: Include thread_fsm.h.
3175 (struct call_return_meta_info): New.
3176 (get_call_return_value): New function, factored out from
3177 call_function_by_hand_dummy.
3178 (struct call_thread_fsm): New.
3179 (call_thread_fsm_ops): New global.
3180 (new_call_thread_fsm, call_thread_fsm_should_stop)
3181 (call_thread_fsm_should_notify_stop): New functions.
3182 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3184 (call_function_by_hand_dummy): Create a new call_thread_fsm
3185 instance, associate it with the thread, and wait for the FSM to
3186 finish. If finished successfully, fetch the function's result
3187 value out of the FSM.
3188 * infrun.c (fetch_inferior_event): If the FSM says the stop
3189 shouldn't be notified, don't call normal_stop.
3190 (maybe_remove_breakpoints): New function, factored out from ...
3191 (normal_stop): ... here. Simplify.
3192 * infrun.h (maybe_remove_breakpoints): Declare.
3193 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3194 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3195 (thread_fsm_should_notify_stop): Declare.
3197 2015-09-09 Pedro Alves <palves@redhat.com>
3199 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3200 * breakpoint.c (handle_jit_event): Print debug output.
3201 (bpstat_what): Split event callback handling to ...
3202 (bpstat_run_callbacks): ... this new function.
3203 (momentary_bkpt_print_it): No longer handle bp_finish here.
3204 * breakpoint.h (bpstat_run_callbacks): Declare.
3205 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3206 <thread_fsm>: New field.
3207 (thread_cancel_execution_command): Declare.
3208 * infcmd.c: Include thread-fsm.h.
3209 (struct step_command_fsm): New.
3210 (step_command_fsm_ops): New global.
3211 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3212 (step_1): Adjust to use step_command_fsm_prepare and
3214 (struct step_1_continuation_args): Delete.
3215 (step_1_continuation): Delete.
3216 (step_command_fsm_should_stop): New function.
3217 (step_once): Delete.
3218 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3219 (prepare_one_step): New function, based on step_once.
3220 (until_next_command): Remove step_multi reference.
3221 (struct return_value_info): New.
3222 (print_return_value): Rename to ...
3223 (print_return_value_1): ... this. New struct return_value_info
3225 (print_return_value): Reimplement as wrapper around
3226 print_return_value_1.
3227 (struct finish_command_fsm): New.
3228 (finish_command_continuation): Delete.
3229 (finish_command_fsm_ops): New global.
3230 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3232 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3234 (finish_command_continuation_free_arg): Delete.
3235 (finish_command_fsm_async_reply_reason): New.
3236 (finish_backward, finish_forward): Change symbol parameter to a
3237 finish_command_fsm. Adjust.
3238 (finish_command): Create a finish_command_fsm. Adjust.
3239 * infrun.c: Include "thread-fsm.h".
3240 (clear_proceed_status_thread): Delete the thread's FSM.
3241 (infrun_thread_stop_requested_callback): Cancel the thread's
3243 (clean_up_just_stopped_threads_fsms): New function.
3244 (fetch_inferior_event): Handle the event_thread's should_stop
3245 method saying the command isn't done yet.
3246 (process_event_stop_test): Run breakpoint callbacks here.
3247 (print_stop_event): Rename to ...
3248 (print_stop_location): ... this.
3249 (restore_current_uiout_cleanup): New function.
3250 (print_stop_event): Reimplement.
3251 (normal_stop): No longer notify the end_stepping_range observers
3252 here handle "step N" nor "finish" here. No longer call
3253 print_stop_event here.
3254 * infrun.h (struct return_value_info): Forward declare.
3255 (print_return_value): Declare.
3256 (print_stop_event): Change prototype.
3257 * thread-fsm.c: New file.
3258 * thread-fsm.h: New file.
3259 * thread.c: Include "thread-fsm.h".
3260 (thread_cancel_execution_command): New function.
3261 (clear_thread_inferior_resources): Call it.
3262 * cli/cli-interp.c (cli_on_normal_stop): New function.
3263 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3265 * mi/mi-interp.c: Include "thread-fsm.h".
3266 (restore_current_uiout_cleanup): Delete.
3267 (mi_on_normal_stop): If the thread has an FSM associated, and it
3268 finished, ask it for the async-reply-reason to print. Always call
3269 print_stop_event here, regardless of the top-level interpreter.
3270 Check bpstat_what to tell whether an asynchronous breakpoint hit
3272 * tui/tui-interp.c (tui_on_normal_stop): New function.
3273 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3275 2015-09-09 Pedro Alves <palves@redhat.com>
3277 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3278 check whether the target can async.
3279 * inf-loop.c (inferior_event_handler): Only call target_async if
3280 the target can async.
3281 * infcall.c: Include top.h and interps.h.
3282 (run_inferior_call): For the interpreter to sync mode while
3283 running the infcall. Call wait_sync_command_done instead of
3284 wait_for_inferior plus normal_stop.
3285 * infcmd.c (prepare_execution_command): Don't check whether the
3286 target can async when running in the foreground.
3287 (step_1): Delete synchronous case handling.
3288 (step_once): Always install a continuation, even in sync mode.
3289 (until_next_command, finish_forward): Don't check whether the
3291 (attach_command_post_wait, notice_new_inferior): Always install a
3292 continuation, even in sync mode.
3293 * infrun.c (mark_infrun_async_event_handler): New function.
3294 (proceed): In sync mode, mark infrun's event source instead of
3295 waiting for events here.
3296 (fetch_inferior_event): If the target can't async, do a blocking
3298 (prepare_to_wait): In sync mode, mark infrun's event source.
3299 (infrun_async_inferior_event_handler): No longer bail out if the
3301 * infrun.h (mark_infrun_async_event_handler): New declaration.
3302 * linux-nat.c (linux_nat_wait_1): Remove calls to
3303 set_sigint_trap/clear_sigint_trap.
3304 (linux_nat_terminal_inferior): No longer check whether the target
3306 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3308 (mi_execute_command_input_handler): No longer check whether the
3309 target is async. Update and simplify comment.
3310 * target.c (default_target_wait): New function.
3311 * target.h (struct target_ops) <to_wait>: Now defaults to
3312 default_target_wait.
3313 (default_target_wait): Declare.
3314 * top.c (wait_sync_command_done): New function, factored out from
3316 (maybe_wait_sync_command_done): ... this.
3317 * top.h (wait_sync_command_done): Declare.
3318 * target-delegates.c: Regenerate.
3320 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3322 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3323 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3324 Remove include of sys/utsname.h.
3325 (linux_determine_kernel_ptr_bits): Remove.
3326 (linux_determine_kernel_start): New.
3327 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3329 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3330 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3332 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3335 2015-09-07 Pedro Alves <palves@redhat.com>
3337 * guile/guile-internal.h (as_a_scm_t_subr): New.
3338 * guile/guile.c (misc_guile_functions): Use it.
3339 * guile/scm-arch.c (arch_functions): Use it.
3340 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3342 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3343 * guile/scm-cmd.c (command_functions): Use it.
3344 * guile/scm-disasm.c (disasm_functions): Use it.
3345 * guile/scm-exception.c (exception_functions)
3346 (private_exception_functions): Use it.
3347 * guile/scm-frame.c (frame_functions)
3348 * guile/scm-gsmob.c (gsmob_functions): Use it.
3349 * guile/scm-iterator.c (iterator_functions): Use it.
3350 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3351 * guile/scm-math.c (math_functions): Use it.
3352 * guile/scm-objfile.c (objfile_functions): Use it.
3353 * guile/scm-param.c (parameter_functions): Use it.
3354 * guile/scm-ports.c (port_functions, private_port_functions): Use
3356 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3357 * guile/scm-progspace.c (pspace_functions): Use it.
3358 * guile/scm-string.c (string_functions): Use it.
3359 * guile/scm-symbol.c (symbol_functions): Use it.
3360 * guile/scm-symtab.c (symtab_functions): Use it.
3361 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3363 * guile/scm-value.c (value_functions): Use it.
3365 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3367 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3368 (tui_next_win): Likewise.
3369 (tui_prev_win): Likewise.
3370 (tui_partial_win_by_name): Likewise.
3371 (tui_init_generic_part): Likewise.
3372 (init_content_element): Likewise.
3373 (tui_del_window): Likewise.
3374 (tui_free_window): Likewise.
3375 (tui_del_data_windows): Likewise.
3376 (tui_free_data_content): Likewise.
3377 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3378 * tui/tui-regs.c (tui_show_register_group): Likewise.
3379 * tui/tui-win.c (tui_resize_all): Likewise.
3380 (tui_set_focus): Likewise.
3381 (tui_set_win_height): Likewise.
3382 (make_invisible_and_set_new_height): Likewise.
3383 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3384 * tui/tui-wingeneral.c (make_visible): Likewise.
3386 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3388 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3390 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3392 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3394 * dbxread.c (dbx_end_psymtab): Likewise.
3395 * gnu-nat.c (gnu_write_inferior): Likewise.
3396 * mdebugread.c (cross_ref): Likewise.
3397 * p-valprint.c (pascal_val_print): Likewise.
3398 * xcoffread.c (xcoff_end_psymtab): Likewise.
3400 2015-09-04 Yao Qi <yao.qi@linaro.org>
3402 * NEWS: Mention the aarch64 multi-arch debugging support.
3404 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3406 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3407 type instead of a TYPE_CODE_INT one for the string_char_type
3408 and the ada_primitive_type_char types.
3410 2015-09-03 Yao Qi <yao.qi@linaro.org>
3412 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3413 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3414 aarch64_linux_region_ok_for_watchpoint.
3415 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3417 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3420 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3422 * gdb_obstack.h (obstack_strdup): Declare.
3423 * gdb_obstack.c (obstack_strdup): Define.
3424 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3425 * gdbarch.c: Regenerate.
3426 * gdbarch.h: Regenerate.
3427 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3429 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3431 * gdbtypes.c (copy_type_recursive): Update documentation.
3433 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3435 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3438 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3440 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3442 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3444 * solib-svr4.c (solib_event_probe_action): Call
3445 get_probe_argument_count using TRY...CATCH.
3446 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3448 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3450 * probe.h (struct probe_ops) <get_probe_argument_count,
3451 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3452 the comment that the function can throw an exception.
3453 (get_probe_argument_count): Likewise.
3454 (evaluate_probe_argument): Likewise.
3455 * stap-probe.c (stap_get_opcode): Call error instead of
3457 (stap_get_expected_argument_type): Likewise. Add argument
3458 'probe'. Improve error message by mentioning the probe's name.
3459 (stap_parse_probe_arguments): Adjust call to
3460 stap_get_expected_argument_type.
3461 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3462 not zero. Call internal_error if GDB requests an argument but the
3463 probe has no arguments.
3465 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3467 * ada-lang.c (ada_resolve_function): Do not ask the user what
3468 match to use when in completion mode.
3470 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3472 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3475 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3477 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3478 call_abi using XSHAL_ABI macro.
3480 2015-08-29 Doug Evans <xdje42@gmail.com>
3482 * symtab.h (struct symbol): Tweak comment.
3484 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3486 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3487 gdbarch obstack instead of on the heap. Update commentary
3490 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3494 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3496 * NEWS: Update entry about non-8-bits addressable memory.
3498 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3501 2014-11-06 Doug Evans <xdje42@gmail.com>
3502 * solib.c (solib_global_lookup): Fetch arch from objfile,
3505 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3507 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3508 attempt to relocate a TLS variable offset.
3510 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3512 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3513 registered yet. Set inferior_ptid while calling target_read_memory.
3515 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3517 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3518 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3519 * linux-nat.c (check_stopped_by_breakpoint): Use
3520 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3522 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3524 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3525 thread was not yet discovered, use thread_from_lwp instead of
3526 calling thread_db_find_new_threads_1.
3528 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3530 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3533 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3535 * NEWS: Document support for non-8-bits addressable memory.
3537 2015-08-27 Pedro Alves <palves@redhat.com>
3539 * configure.ac: Remove AC_TYPE_SIGNAL call.
3540 * configure, config.in: Regenerate.
3542 2015-08-27 Pedro Alves <palves@redhat.com>
3544 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3545 * extension-priv.h: Include signal.h.
3546 (struct signal_handler) <handler>: Change type to sighandler_t.
3547 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3548 * inflow.c (sigint_ours, sigquit_ours): Change type to
3550 (child_terminal_inferior): Remove casts.
3551 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3552 (osig): Change type to sighandler_t.
3553 * nto-procfs.c (ofunc): Change type to sighandler_t.
3554 (procfs_wait): Remove casts.
3555 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3556 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3557 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3559 2015-08-27 Pedro Alves <palves@redhat.com>
3561 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3562 * gnulib/aclocal.m4: Renegerate.
3563 * gnulib/config.in: Renegerate.
3564 * gnulib/configure: Renegerate.
3565 * gnulib/import/Makefile.am: Update.
3566 * gnulib/import/Makefile.in: Regenerate.
3567 * gnulib/import/m4/gnulib-cache.m4: Update.
3568 * gnulib/import/m4/gnulib-comp.m4: Update.
3569 * gnulib/import/m4/signal_h.m4: New file.
3570 * gnulib/import/signal.in.h: New file.
3572 2015-08-27 Pedro Alves <palves@redhat.com>
3574 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3575 (MIN_MEMORY_PACKET_SIZE): New.
3576 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3577 (get_memory_packet_size): Adjust. No longer limit the max packet
3579 (set_memory_packet_size): Adjust, and remove dead code.
3580 (remote_check_symbols): Use xmalloc and a cleanup instead of
3582 (remote_packet_size): No longer cap the packet size.
3583 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3585 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3587 * compile/compile.c (compile_to_object): Mention language in
3590 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3592 * target.c (target_pre_inferior): Unset attach_flag.
3594 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3596 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3597 * gdbarch.c: Re-generate.
3599 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3601 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3602 function with the XNEW-family equivalent.
3603 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3604 * ada-exp.y (write_ambiguous_var): Likewise.
3605 * ada-lang.c (resolve_subexp): Likewise.
3606 (user_select_syms): Likewise.
3607 (assign_aggregate): Likewise.
3608 (ada_evaluate_subexp): Likewise.
3609 (cache_symbol): Likewise.
3610 * addrmap.c (allocate_key): Likewise.
3611 (addrmap_create_mutable): Likewise.
3612 * aix-thread.c (sync_threadlists): Likewise.
3613 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3614 (alpha_gdbarch_init): Likewise.
3615 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3616 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3617 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3618 * arm-tdep.c (push_stack_item): Likewise.
3619 (arm_displaced_step_copy_insn): Likewise.
3620 (arm_gdbarch_init): Likewise.
3621 (_initialize_arm_tdep): Likewise.
3622 * avr-tdep.c (push_stack_item): Likewise.
3623 * ax-general.c (new_agent_expr): Likewise.
3624 * block.c (block_initialize_namespace): Likewise.
3625 * breakpoint.c (alloc_counted_command_line): Likewise.
3626 (update_dprintf_command_list): Likewise.
3627 (parse_breakpoint_sals): Likewise.
3628 (decode_static_tracepoint_spec): Likewise.
3629 (until_break_command): Likewise.
3630 (clear_command): Likewise.
3631 (update_global_location_list): Likewise.
3632 (get_breakpoint_objfile_data) Likewise.
3633 * btrace.c (ftrace_new_function): Likewise.
3634 (btrace_set_insn_history): Likewise.
3635 (btrace_set_call_history): Likewise.
3636 * buildsym.c (add_symbol_to_list): Likewise.
3637 (record_pending_block): Likewise.
3638 (start_subfile): Likewise.
3639 (start_buildsym_compunit): Likewise.
3640 (push_subfile): Likewise.
3641 (end_symtab_get_static_block): Likewise.
3642 (buildsym_init): Likewise.
3643 * cli/cli-cmds.c (source_command): Likewise.
3644 * cli/cli-decode.c (add_cmd): Likewise.
3645 * cli/cli-script.c (build_command_line): Likewise.
3646 (setup_user_args): Likewise.
3647 (realloc_body_list): Likewise.
3648 (process_next_line): Likewise.
3649 (copy_command_lines): Likewise.
3650 * cli/cli-setshow.c (do_set_command): Likewise.
3651 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3652 * coffread.c (coff_locate_sections): Likewise.
3653 (coff_symtab_read): Likewise.
3654 (coff_read_struct_type): Likewise.
3655 * common/cleanups.c (make_my_cleanup2): Likewise.
3656 * common/common-exceptions.c (throw_it): Likewise.
3657 * common/filestuff.c (make_cleanup_close): Likewise.
3658 * common/format.c (parse_format_string): Likewise.
3659 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3660 * compile/compile-object-load.c (munmap_list_add): Likewise.
3661 (compile_object_load): Likewise.
3662 * compile/compile-object-run.c (compile_object_run): Likewise.
3663 * compile/compile.c (append_args): Likewise.
3664 * corefile.c (specify_exec_file_hook): Likewise.
3665 * cp-support.c (make_symbol_overload_list): Likewise.
3666 * cris-tdep.c (push_stack_item): Likewise.
3667 (cris_gdbarch_init): Likewise.
3668 * ctf.c (ctf_trace_file_writer_new): Likewise.
3669 * dbxread.c (init_header_files): Likewise.
3670 (add_new_header_file): Likewise.
3671 (init_bincl_list): Likewise.
3672 (dbx_end_psymtab): Likewise.
3673 (start_psymtab): Likewise.
3674 (dbx_end_psymtab): Likewise.
3675 * dcache.c (dcache_init): Likewise.
3676 * dictionary.c (dict_create_hashed): Likewise.
3677 (dict_create_hashed_expandable): Likewise.
3678 (dict_create_linear): Likewise.
3679 (dict_create_linear_expandable): Likewise.
3680 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3681 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3682 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3683 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3684 (decode_frame_entry_1): Likewise.
3685 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3686 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3687 * dwarf2read.c (dwarf2_has_info): Likewise.
3688 (create_signatured_type_table_from_index): Likewise.
3689 (dwarf2_read_index): Likewise.
3690 (dw2_get_file_names_reader): Likewise.
3691 (create_all_type_units): Likewise.
3692 (read_cutu_die_from_dwo): Likewise.
3693 (init_tu_and_read_dwo_dies): Likewise.
3694 (init_cutu_and_read_dies): Likewise.
3695 (create_all_comp_units): Likewise.
3696 (queue_comp_unit): Likewise.
3697 (inherit_abstract_dies): Likewise.
3698 (read_call_site_scope): Likewise.
3699 (dwarf2_add_field): Likewise.
3700 (dwarf2_add_typedef): Likewise.
3701 (dwarf2_add_member_fn): Likewise.
3702 (attr_to_dynamic_prop): Likewise.
3703 (abbrev_table_alloc_abbrev): Likewise.
3704 (abbrev_table_read_table): Likewise.
3705 (add_include_dir): Likewise.
3706 (add_file_name): Likewise.
3707 (dwarf_decode_line_header): Likewise.
3708 (dwarf2_const_value_attr): Likewise.
3709 (dwarf_alloc_block): Likewise.
3710 (parse_macro_definition): Likewise.
3711 (set_die_type): Likewise.
3712 (write_psymtabs_to_index): Likewise.
3713 (create_cus_from_index): Likewise.
3714 (dwarf2_create_include_psymtab): Likewise.
3715 (process_psymtab_comp_unit_reader): Likewise.
3716 (build_type_psymtab_dependencies): Likewise.
3717 (read_comp_units_from_section): Likewise.
3718 (compute_compunit_symtab_includes): Likewise.
3719 (create_dwo_unit_in_dwp_v1): Likewise.
3720 (create_dwo_unit_in_dwp_v2): Likewise.
3721 (read_func_scope): Likewise.
3722 (process_structure_scope): Likewise.
3723 (mark_common_block_symbol_computed): Likewise.
3724 (load_partial_dies): Likewise.
3725 (dwarf2_symbol_mark_computed): Likewise.
3726 * elfread.c (elf_symfile_segments): Likewise.
3727 (elf_read_minimal_symbols): Likewise.
3728 * environ.c (make_environ): Likewise.
3729 * eval.c (evaluate_subexp_standard): Likewise.
3730 * event-loop.c (create_file_handler): Likewise.
3731 (create_async_signal_handler): Likewise.
3732 (create_async_event_handler): Likewise.
3733 (create_timer): Likewise.
3734 * exec.c (build_section_table): Likewise.
3735 * fbsd-nat.c (fbsd_remember_child): Likewise.
3736 * fork-child.c (fork_inferior): Likewise.
3737 * frv-tdep.c (new_variant): Likewise.
3738 * gdbarch.sh (gdbarch_alloc): Likewise.
3739 (append_name): Likewise.
3740 * gdbtypes.c (rank_function): Likewise.
3741 (copy_type_recursive): Likewise.
3742 (add_dyn_prop): Likewise.
3743 * gnu-nat.c (make_proc): Likewise.
3744 (make_inf): Likewise.
3745 (gnu_write_inferior): Likewise.
3746 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3747 (build_std_type_info_type): Likewise.
3748 * guile/scm-param.c (compute_enum_list): Likewise.
3749 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3750 * guile/scm-value.c (gdbscm_value_call): Likewise.
3751 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3752 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3753 (read_unwind_info): Likewise.
3754 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3755 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3756 (call_function_by_hand_dummy): Likewise.
3757 * infcmd.c (step_once): Likewise.
3758 (finish_forward): Likewise.
3759 (attach_command): Likewise.
3760 (notice_new_inferior): Likewise.
3761 * inferior.c (add_inferior_silent): Likewise.
3762 * infrun.c (add_displaced_stepping_state): Likewise.
3763 (save_infcall_control_state): Likewise.
3764 (save_inferior_ptid): Likewise.
3765 (_initialize_infrun): Likewise.
3766 * jit.c (bfd_open_from_target_memory): Likewise.
3767 (jit_gdbarch_data_init): Likewise.
3768 * language.c (add_language): Likewise.
3769 * linespec.c (decode_line_2): Likewise.
3770 * linux-nat.c (add_to_pid_list): Likewise.
3771 (add_initial_lwp): Likewise.
3772 * linux-thread-db.c (add_thread_db_info): Likewise.
3773 (record_thread): Likewise.
3774 (info_auto_load_libthread_db): Likewise.
3775 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3777 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3778 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3779 * macrocmd.c (macro_define_command): Likewise.
3780 * macroexp.c (gather_arguments): Likewise.
3781 * macroscope.c (sal_macro_scope): Likewise.
3782 * macrotab.c (new_macro_table): Likewise.
3783 * mdebugread.c (push_parse_stack): Likewise.
3784 (parse_partial_symbols): Likewise.
3785 (parse_symbol): Likewise.
3786 (psymtab_to_symtab_1): Likewise.
3787 (new_block): Likewise.
3788 (new_psymtab): Likewise.
3789 (mdebug_build_psymtabs): Likewise.
3790 (add_pending): Likewise.
3791 (elfmdebug_build_psymtabs): Likewise.
3792 * mep-tdep.c (mep_gdbarch_init): Likewise.
3793 * mi/mi-main.c (mi_execute_command): Likewise.
3794 * mi/mi-parse.c (mi_parse_argv): Likewise.
3795 * minidebug.c (lzma_open): Likewise.
3796 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3797 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3798 * mips-tdep.c (mips_gdbarch_init): Likewise.
3799 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3800 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3801 * mt-tdep.c (mt_registers_info): Likewise.
3802 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3803 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3804 (linux_enable_pt): Likewise.
3805 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3806 (linux_xfer_osdata_processgroups): Likewise.
3807 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3808 * nto-procfs.c (procfs_meminfo): Likewise.
3809 * objc-lang.c (start_msglist): Likewise.
3810 (selectors_info): Likewise.
3811 (classes_info): Likewise.
3812 (find_methods): Likewise.
3813 * objfiles.c (allocate_objfile): Likewise.
3814 (update_section_map): Likewise.
3815 * osabi.c (gdbarch_register_osabi): Likewise.
3816 (gdbarch_register_osabi_sniffer): Likewise.
3817 * parse.c (start_arglist): Likewise.
3818 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3819 (hwdebug_insert_point): Likewise.
3820 * printcmd.c (display_command): Likewise.
3821 (ui_printf): Likewise.
3822 * procfs.c (create_procinfo): Likewise.
3823 (load_syscalls): Likewise.
3824 (proc_get_LDT_entry): Likewise.
3825 (proc_update_threads): Likewise.
3826 * prologue-value.c (make_pv_area): Likewise.
3827 (pv_area_store): Likewise.
3828 * psymtab.c (extend_psymbol_list): Likewise.
3829 (init_psymbol_list): Likewise.
3830 (allocate_psymtab): Likewise.
3831 * python/py-inferior.c (add_thread_object): Likewise.
3832 * python/py-param.c (compute_enum_values): Likewise.
3833 * python/py-value.c (valpy_call): Likewise.
3834 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3835 * python/python.c (ensure_python_env): Likewise.
3836 * record-btrace.c (record_btrace_start_replaying): Likewise.
3837 * record-full.c (record_full_reg_alloc): Likewise.
3838 (record_full_mem_alloc): Likewise.
3839 (record_full_end_alloc): Likewise.
3840 (record_full_core_xfer_partial): Likewise.
3841 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3842 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3843 * remote-notif.c (remote_notif_state_allocate): Likewise.
3844 * remote.c (demand_private_info): Likewise.
3845 (remote_notif_stop_alloc_reply): Likewise.
3846 (remote_enable_btrace): Likewise.
3847 * reverse.c (save_bookmark_command): Likewise.
3848 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3849 * rx-tdep.c (rx_gdbarch_init): Likewise.
3850 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3851 * ser-go32.c (dos_get_tty_state): Likewise.
3852 (dos_copy_tty_state): Likewise.
3853 * ser-mingw.c (ser_windows_open): Likewise.
3854 (ser_console_wait_handle): Likewise.
3855 (ser_console_get_tty_state): Likewise.
3856 (make_pipe_state): Likewise.
3857 (net_windows_open): Likewise.
3858 * ser-unix.c (hardwire_get_tty_state): Likewise.
3859 (hardwire_copy_tty_state): Likewise.
3860 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3861 * solib-dsbt.c (dsbt_current_sos): Likewise.
3862 (dsbt_relocate_main_executable): Likewise.
3863 * solib-frv.c (frv_current_sos): Likewise.
3864 (frv_relocate_main_executable): Likewise.
3865 * solib-spu.c (spu_bfd_fopen): Likewise.
3866 * solib-svr4.c (lm_info_read): Likewise.
3867 (svr4_copy_library_list): Likewise.
3868 (svr4_default_sos): Likewise.
3869 * source.c (find_source_lines): Likewise.
3870 (line_info): Likewise.
3871 (add_substitute_path_rule): Likewise.
3872 * spu-linux-nat.c (spu_bfd_open): Likewise.
3873 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3874 * stabsread.c (dbx_lookup_type): Likewise.
3875 (read_type): Likewise.
3876 (read_member_functions): Likewise.
3877 (read_struct_fields): Likewise.
3878 (read_baseclasses): Likewise.
3879 (read_args): Likewise.
3880 (_initialize_stabsread): Likewise.
3881 * stack.c (func_command): Likewise.
3882 * stap-probe.c (handle_stap_probe): Likewise.
3883 * symfile.c (addrs_section_sort): Likewise.
3884 (addr_info_make_relative): Likewise.
3885 (load_section_callback): Likewise.
3886 (add_symbol_file_command): Likewise.
3887 (init_filename_language_table): Likewise.
3888 * symtab.c (create_filename_seen_cache): Likewise.
3889 (sort_search_symbols_remove_dups): Likewise.
3890 (search_symbols): Likewise.
3891 * target.c (make_cleanup_restore_target_terminal): Likewise.
3892 * thread.c (new_thread): Likewise.
3893 (enable_thread_stack_temporaries): Likewise.
3894 (make_cleanup_restore_current_thread): Likewise.
3895 (thread_apply_all_command): Likewise.
3896 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3897 * top.c (gdb_readline_wrapper): Likewise.
3898 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3899 * tracepoint.c (trace_find_line_command): Likewise.
3900 (all_tracepoint_actions_and_cleanup): Likewise.
3901 (make_cleanup_restore_current_traceframe): Likewise.
3902 (get_uploaded_tp): Likewise.
3903 (get_uploaded_tsv): Likewise.
3904 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3905 (tui_alloc_win_info): Likewise.
3906 (tui_alloc_content): Likewise.
3907 (tui_add_content_elements): Likewise.
3908 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3909 (tui_set_disassem_content): Likewise.
3910 * ui-file.c (ui_file_new): Likewise.
3911 (stdio_file_new): Likewise.
3912 (tee_file_new): Likewise.
3913 * utils.c (make_cleanup_restore_integer): Likewise.
3914 (add_internal_problem_command): Likewise.
3915 * v850-tdep.c (v850_gdbarch_init): Likewise.
3916 * valops.c (find_oload_champ): Likewise.
3917 * value.c (allocate_value_lazy): Likewise.
3918 (record_latest_value): Likewise.
3919 (create_internalvar): Likewise.
3920 * varobj.c (install_variable): Likewise.
3921 (new_variable): Likewise.
3922 (new_root_variable): Likewise.
3924 (_initialize_varobj): Likewise.
3925 * windows-nat.c (windows_make_so): Likewise.
3926 * x86-nat.c (x86_add_process): Likewise.
3927 * xcoffread.c (arrange_linetable): Likewise.
3928 (allocate_include_entry): Likewise.
3929 (process_linenos): Likewise.
3930 (SYMBOL_DUP): Likewise.
3931 (xcoff_start_psymtab): Likewise.
3932 (xcoff_end_psymtab): Likewise.
3933 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3934 * xtensa-tdep.c (xtensa_register_type): Likewise.
3935 * gdbarch.c: Regenerate.
3936 * gdbarch.h: Regenerate.
3938 2015-08-25 Don Breazeal <donb@codesourcery.com>
3940 * infrun.c (follow_exec): Re-order operations for
3941 handling follow-exec-mode "new".
3942 (handle_inferior_event_1): Assign ecs->event_thread
3943 to the current thread.
3944 * remote.c (get_remote_arch_state): Add an assertion.
3946 2015-08-26 Pedro Alves <palves@redhat.com>
3948 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3950 2015-08-25 Pedro Alves <palves@redhat.com>
3953 * defs.h (maybe_quit): Declare.
3954 (QUIT): Now calls maybe_quit.
3955 * event-loop.c (clear_async_signal_handler)
3956 (async_signal_handler_is_marked): New functions.
3957 * event-loop.h (async_signal_handler_is_marked)
3958 (clear_async_signal_handler): New declarations.
3959 * remote.c (remote_check_pending_interrupt): New function.
3960 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3961 longer check whether the target is async. If waiting for a stop
3962 reply, and a Ctrl-C as been sent to the target, offer to
3963 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3964 Otherwise do not disconnect and throw a quit.
3965 (_initialize_remote): Install remote_check_pending_interrupt as
3966 to_check_pending_interrupt.
3967 * target.c (target_check_pending_interrupt): New function.
3968 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3970 (target_check_pending_interrupt): New declaration.
3971 * utils.c (maybe_quit): New function.
3972 * target-delegates.c: Regenerate.
3974 2015-08-25 Yao Qi <yao.qi@linaro.org>
3976 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3977 Rename local variable pid to tid, and get lwpid of lwp. Update
3980 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3982 * ada-lang.c (ada_read_var_value): Add a var_block argument
3983 and pass it to default_read_var_value.
3984 * block.c (block_static_link): New accessor.
3985 * block.h (block_static_link): Declare it.
3986 * buildsym.c (finish_block_internal): Add a static_link
3987 argument. If there is a static link, associate it to the new
3989 (finish_block): Add a static link argument and pass it to
3990 finish_block_internal.
3991 (end_symtab_get_static_block): Update calls to finish_block and
3992 to finish_block_internal.
3993 (end_symtab_with_blockvector): Update call to
3994 finish_block_internal.
3995 * buildsym.h: Forward-declare struct dynamic_prop.
3996 (struct context_stack): Add a static_link field.
3997 (finish_block): Add a static link argument.
3998 * c-exp.y: Remove an obsolete comment (evaluation of variables
3999 already start from the selected frame, and now they climb *up*
4000 the call stack) and propagate the block information to the
4001 produced expression.
4002 * d-exp.y: Likewise.
4003 * f-exp.y: Likewise.
4004 * go-exp.y: Likewise.
4005 * jv-exp.y: Likewise.
4006 * m2-exp.y: Likewise.
4007 * p-exp.y: Likewise.
4008 * coffread.c (coff_symtab_read): Update calls to finish_block.
4009 * dbxread.c (process_one_symbol): Likewise.
4010 * xcoffread.c (read_xcoff_symtab): Likewise.
4011 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4012 "sym" parameter to struct block_symbol, update its uses and pass
4013 its block to calls to read_var_value.
4014 (convert_symbol_sym): Update the calls to convert_one_symbol.
4015 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4016 call to read_var_value.
4017 * dwarf2loc.c (block_op_get_frame_base): New.
4018 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4019 get_frame_base method.
4020 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4021 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4022 instead of the selected frame in order to evaluate the
4024 (dwarf2_evaluate_property): Add a frame argument. Update call
4025 to dwarf2_locexpr_baton_eval to provide a frame in available and
4026 to handle the absence of address stack.
4027 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4028 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4030 (read_func_scope): Record any available static link description.
4031 Update call to finish_block.
4032 (read_lexical_block_scope): Update call to finish_block.
4033 * findvar.c (follow_static_link): New.
4034 (get_hosting_frame): New.
4035 (default_read_var_value): Add a var_block argument. Use
4036 get_hosting_frame to handle non-local references.
4037 (read_var_value): Add a var_block argument and pass it to the
4038 LA_READ_VAR_VALUE method.
4039 * gdbtypes.c (resolve_dynamic_range): Update calls to
4040 dwarf2_evaluate_property.
4041 (resolve_dynamic_type_internal): Likewise.
4042 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4043 read_var_value, passing it the block coming from symbol lookup.
4044 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4045 read_var_value (TODO).
4046 * infcmd.c (finish_command_continuation): Update call to
4047 read_var_value, passing it the block coming from symbol lookup.
4048 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4049 * language.h (struct language_defn): Add a var_block argument to
4050 the LA_READ_VAR_VALUE method.
4051 * objfiles.c (struct static_link_htab_entry): New.
4052 (static_link_htab_entry_hash): New.
4053 (static_link_htab_entry_eq): New.
4054 (objfile_register_static_link): New.
4055 (objfile_lookup_static_link): New.
4056 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4057 * objfiles.h: Include hashtab.h.
4058 (struct objfile): Add a static_links field.
4059 (objfile_register_static_link): New.
4060 (objfile_lookup_static_link): New.
4061 * printcmd.c (print_variable_and_value): Update call to
4063 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4064 * python/py-frame.c (frapy_read_var): Update call to
4065 read_var_value, passing it the block coming from symbol lookup.
4066 * python/py-framefilter.c (extract_sym): Add a sym_block
4067 parameter and set the pointed value to NULL (TODO).
4068 (enumerate_args): Update call to extract_sym.
4069 (enumerate_locals): Update calls to extract_sym and to
4071 * python/py-symbol.c (sympy_value): Update call to
4072 read_var_value (TODO).
4073 * stack.c (read_frame_local): Update call to read_var_value.
4074 (read_frame_arg): Likewise.
4075 (return_command): Likewise.
4076 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4078 (struct symbol): Add a block field.
4079 (SYMBOL_BLOCK): New accessor.
4080 * valops.c (value_of_variable): Remove frame/block handling and
4081 pass the block argument to read_var_value, which does this job
4083 (value_struct_elt_for_reference): Update calls to
4085 (value_of_this): Pass the block found to read_var_value.
4086 * value.h (read_var_value): Add a var_block argument.
4087 (default_read_var_value): Likewise.
4089 2015-08-25 Yao Qi <yao.qi@linaro.org>
4091 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4092 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4093 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4095 2015-08-25 Yao Qi <yao.qi@linaro.org>
4097 * Makefile.in (aarch64-liunx.o): New rule.
4098 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4099 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4100 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4101 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4103 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4104 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4105 * nat/aarch64-linux.c: New file.
4106 * nat/aarch64-linux.h: New file.
4108 2015-08-25 Yao Qi <yao.qi@linaro.org>
4110 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4111 lwp_arch_private_info and ptid_of_lwp.
4113 2015-08-25 Yao Qi <yao.qi@linaro.org>
4115 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4116 Move it to nat/aarch64-linux-hw-point.c.
4117 (debug_reg_change_callback): Likewise.
4118 (aarch64_notify_debug_reg_change): :Likewise.
4119 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4120 (aarch64_dr_update_callback_param): New.
4121 (debug_reg_change_callback): New function.
4122 (aarch64_notify_debug_reg_change): Likewise.
4123 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4124 Remove the declaration.
4126 2015-08-25 Yao Qi <yao.qi@linaro.org>
4128 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4129 Call current_lwp_ptid.
4131 2015-08-25 Yao Qi <yao.qi@linaro.org>
4133 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4136 2015-08-25 Yao Qi <yao.qi@linaro.org>
4138 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4139 ptid_get_pid rather than ptid_get_lwp.
4141 2015-08-24 Pedro Alves <palves@redhat.com>
4143 * NEWS (New commands): Mention set/show remote
4144 multiprocess-extensions-packet.
4145 * remote.c (remote_query_supported): Only tell the server to use
4146 the multiprocess extensions if the user hasn't force-disabled them
4147 with "set remote multiprocess-extensions-packet off".
4149 2015-08-24 Pedro Alves <palves@redhat.com>
4151 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4152 1029a8112290f6eee9d7878a391c49db42c999bd.
4153 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4155 * gnulib/import/Makefile.am: Update.
4156 * gnulib/import/Makefile.in: Update.
4157 * gnulib/import/alloca.in.h: Update.
4158 * gnulib/import/basename-lgpl.c: Update.
4159 * gnulib/import/canonicalize-lgpl.c: Update.
4160 * gnulib/import/config.charset: Update.
4161 * gnulib/import/dirent.in.h: Update.
4162 * gnulib/import/dirfd.c: Update.
4163 * gnulib/import/dirname-lgpl.c: Update.
4164 * gnulib/import/dirname.h: Update.
4165 * gnulib/import/dosname.h: Update.
4166 * gnulib/import/errno.in.h: Update.
4167 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4168 * gnulib/import/extra/snippet/c++defs.h: Update.
4169 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4170 * gnulib/import/extra/update-copyright: Update.
4171 * gnulib/import/float+.h: Update.
4172 * gnulib/import/float.c: Update.
4173 * gnulib/import/float.in.h: Update.
4174 * gnulib/import/fnmatch.c: Update.
4175 * gnulib/import/fnmatch.in.h: Update.
4176 * gnulib/import/fnmatch_loop.c: Update.
4177 * gnulib/import/fpucw.h: Update.
4178 * gnulib/import/frexp.c: Update.
4179 * gnulib/import/frexpl.c: Update.
4180 * gnulib/import/gettimeofday.c: Update.
4181 * gnulib/import/inttypes.in.h: Update.
4182 * gnulib/import/isnan.c: Update.
4183 * gnulib/import/isnand-nolibm.h: Update.
4184 * gnulib/import/isnand.c: Update.
4185 * gnulib/import/isnanl-nolibm.h: Update.
4186 * gnulib/import/isnanl.c: Update.
4187 * gnulib/import/itold.c: Update.
4188 * gnulib/import/localcharset.c: Update.
4189 * gnulib/import/localcharset.h: Update.
4190 * gnulib/import/lstat.c: Update.
4191 * gnulib/import/m4/00gnulib.m4: Update.
4192 * gnulib/import/m4/absolute-header.m4: Update.
4193 * gnulib/import/m4/alloca.m4: Update.
4194 * gnulib/import/m4/canonicalize.m4: Update.
4195 * gnulib/import/m4/codeset.m4: Update.
4196 * gnulib/import/m4/configmake.m4: Update.
4197 * gnulib/import/m4/dirent_h.m4: Update.
4198 * gnulib/import/m4/dirfd.m4: Update.
4199 * gnulib/import/m4/dirname.m4: Update.
4200 * gnulib/import/m4/double-slash-root.m4: Update.
4201 * gnulib/import/m4/eealloc.m4: Update.
4202 * gnulib/import/m4/errno_h.m4: Update.
4203 * gnulib/import/m4/exponentd.m4: Update.
4204 * gnulib/import/m4/exponentl.m4: Update.
4205 * gnulib/import/m4/extensions.m4: Update.
4206 * gnulib/import/m4/extern-inline.m4: Update.
4207 * gnulib/import/m4/fcntl-o.m4: Update.
4208 * gnulib/import/m4/float_h.m4: Update.
4209 * gnulib/import/m4/fnmatch.m4: Update.
4210 * gnulib/import/m4/fpieee.m4: Update.
4211 * gnulib/import/m4/frexp.m4: Update.
4212 * gnulib/import/m4/frexpl.m4: Update.
4213 * gnulib/import/m4/gettimeofday.m4: Update.
4214 * gnulib/import/m4/glibc21.m4: Update.
4215 * gnulib/import/m4/gnulib-cache.m4: Update.
4216 * gnulib/import/m4/gnulib-common.m4: Update.
4217 * gnulib/import/m4/gnulib-comp.m4: Update.
4218 * gnulib/import/m4/gnulib-tool.m4: Update.
4219 * gnulib/import/m4/include_next.m4: Update.
4220 * gnulib/import/m4/inttypes-pri.m4: Update.
4221 * gnulib/import/m4/inttypes.m4: Update.
4222 * gnulib/import/m4/isnand.m4: Update.
4223 * gnulib/import/m4/isnanl.m4: Update.
4224 * gnulib/import/m4/largefile.m4: Update.
4225 * gnulib/import/m4/localcharset.m4: Update.
4226 * gnulib/import/m4/locale-fr.m4: Update.
4227 * gnulib/import/m4/locale-ja.m4: Update.
4228 * gnulib/import/m4/locale-zh.m4: Update.
4229 * gnulib/import/m4/longlong.m4: Update.
4230 * gnulib/import/m4/lstat.m4: Update.
4231 * gnulib/import/m4/malloc.m4: Update.
4232 * gnulib/import/m4/malloca.m4: Update.
4233 * gnulib/import/m4/math_h.m4: Update.
4234 * gnulib/import/m4/mbrtowc.m4: Update.
4235 * gnulib/import/m4/mbsinit.m4: Update.
4236 * gnulib/import/m4/mbsrtowcs.m4: Update.
4237 * gnulib/import/m4/mbstate_t.m4: Update.
4238 * gnulib/import/m4/memchr.m4: Update.
4239 * gnulib/import/m4/memmem.m4: Update.
4240 * gnulib/import/m4/mmap-anon.m4: Update.
4241 * gnulib/import/m4/multiarch.m4: Update.
4242 * gnulib/import/m4/nocrash.m4: Update.
4243 * gnulib/import/m4/off_t.m4: Update.
4244 * gnulib/import/m4/pathmax.m4: Update.
4245 * gnulib/import/m4/readlink.m4: Update.
4246 * gnulib/import/m4/rename.m4: Update.
4247 * gnulib/import/m4/rmdir.m4: Update.
4248 * gnulib/import/m4/ssize_t.m4: Update.
4249 * gnulib/import/m4/stat.m4: Update.
4250 * gnulib/import/m4/stdbool.m4: Update.
4251 * gnulib/import/m4/stddef_h.m4: Update.
4252 * gnulib/import/m4/stdint.m4: Update.
4253 * gnulib/import/m4/stdio_h.m4: Update.
4254 * gnulib/import/m4/stdlib_h.m4: Update.
4255 * gnulib/import/m4/string_h.m4: Update.
4256 * gnulib/import/m4/strstr.m4: Update.
4257 * gnulib/import/m4/strtok_r.m4: Update.
4258 * gnulib/import/m4/sys_socket_h.m4: Update.
4259 * gnulib/import/m4/sys_stat_h.m4: Update.
4260 * gnulib/import/m4/sys_time_h.m4: Update.
4261 * gnulib/import/m4/sys_types_h.m4: Update.
4262 * gnulib/import/m4/time_h.m4: Update.
4263 * gnulib/import/m4/unistd_h.m4: Update.
4264 * gnulib/import/m4/warn-on-use.m4: Update.
4265 * gnulib/import/m4/wchar_h.m4: Update.
4266 * gnulib/import/m4/wchar_t.m4: Update.
4267 * gnulib/import/m4/wctype_h.m4: Update.
4268 * gnulib/import/m4/wint_t.m4: Update.
4269 * gnulib/import/malloc.c: Update.
4270 * gnulib/import/malloca.c: Update.
4271 * gnulib/import/malloca.h: Update.
4272 * gnulib/import/math.in.h: Update.
4273 * gnulib/import/mbrtowc.c: Update.
4274 * gnulib/import/mbsinit.c: Update.
4275 * gnulib/import/mbsrtowcs-impl.h: Update.
4276 * gnulib/import/mbsrtowcs-state.c: Update.
4277 * gnulib/import/mbsrtowcs.c: Update.
4278 * gnulib/import/memchr.c: Update.
4279 * gnulib/import/memmem.c: Update.
4280 * gnulib/import/pathmax.h: Update.
4281 * gnulib/import/readlink.c: Update.
4282 * gnulib/import/ref-add.sin: Update.
4283 * gnulib/import/ref-del.sin: Update.
4284 * gnulib/import/rename.c: Update.
4285 * gnulib/import/rmdir.c: Update.
4286 * gnulib/import/same-inode.h: Update.
4287 * gnulib/import/stat.c: Update.
4288 * gnulib/import/stdbool.in.h: Update.
4289 * gnulib/import/stddef.in.h: Update.
4290 * gnulib/import/stdint.in.h: Update.
4291 * gnulib/import/stdio.c: Update.
4292 * gnulib/import/stdio.in.h: Update.
4293 * gnulib/import/stdlib.in.h: Update.
4294 * gnulib/import/str-two-way.h: Update.
4295 * gnulib/import/streq.h: Update.
4296 * gnulib/import/string.in.h: Update.
4297 * gnulib/import/stripslash.c: Update.
4298 * gnulib/import/strnlen1.c: Update.
4299 * gnulib/import/strnlen1.h: Update.
4300 * gnulib/import/strstr.c: Update.
4301 * gnulib/import/strtok_r.c: Update.
4302 * gnulib/import/sys_stat.in.h: Update.
4303 * gnulib/import/sys_time.in.h: Update.
4304 * gnulib/import/sys_types.in.h: Update.
4305 * gnulib/import/time.in.h: Update.
4306 * gnulib/import/unistd.in.h: Update.
4307 * gnulib/import/verify.h: Update.
4308 * gnulib/import/wchar.in.h: Update.
4309 * gnulib/import/wctype.in.h: Update.
4310 * gnulib/import/gettimeofday.c: New file.
4311 * gnulib/import/m4/absolute-header.m4: New file.
4312 * gnulib/import/m4/gettimeofday.m4: New file.
4313 * gnulib/import/m4/sys_socket_h.m4: New file.
4314 * gnulib/import/m4/sys_time_h.m4: New file.
4315 * gnulib/import/stdio.c: Delete file.
4316 * gnulib/import/sys_time.in.h: New file.
4318 2015-08-24 Pedro Alves <palves@redhat.com>
4320 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4321 * common/gdb_sys_time.h: New file.
4322 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4323 * gdb_select.h: Likewise.
4324 * gdb_usleep.c: Likewise.
4325 * maint.c: Likewise.
4326 * mi/mi-main.c: Likewise.
4327 * mi/mi-parse.h: Likewise.
4328 * remote-fileio.c: Likewise.
4329 * remote-m32r-sdi.c: Likewise.
4330 * remote.c: Likewise.
4331 * ser-base.c: Likewise.
4332 * ser-pipe.c: Likewise.
4333 * ser-tcp.c: Likewise.
4334 * ser-unix.c: Likewise.
4335 * symfile.c: Likewise.
4336 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4337 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4338 * utils.c: Likewise.
4340 2015-08-24 Pedro Alves <palves@redhat.com>
4342 * NEWS: Mention removed support for the various ROM monitors.
4343 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4344 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4345 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4347 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4349 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4350 dsrec.o from gdb_target_obs.
4351 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4352 from gdb_target_obs.
4353 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4355 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4356 dink32-rom.o from gdb_target_obs.
4357 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4358 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4359 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4360 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4362 2015-08-21 Pedro Alves <palves@redhat.com>
4364 * frame.c (null_frame_id): Explicitly zero-initialize.
4366 2015-08-21 Tom Tromey <tromey@redhat.com>
4368 * dwarf2read.c (struct dwarf2_section_info): Rename field
4369 'asection' to 'section'.
4370 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4371 (dwarf2_locate_sections, dwarf2_locate_sections)
4372 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4373 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4374 (dwarf2_locate_v2_dwp_sections): Adjust.
4376 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4378 * top.h (gdb_in_secondary_prompt_p): Declare.
4379 * top.c (gdb_secondary_prompt_depth): Define.
4380 (gdb_in_secondary_prompt_p): Define.
4381 (gdb_readline_wrapper_cleanup): Decrement
4382 gdb_secondary_prompt_depth.
4383 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4384 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4385 are in a secondary prompt.
4387 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4389 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4392 2015-08-21 Gary Benson <gbenson@redhat.com>
4394 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4396 2015-08-21 Gary Benson <gbenson@redhat.com>
4398 * target.h (struct target_ops) <to_fileio_open>: New argument
4399 warn_if_slow. Update comment. All implementations updated.
4400 (target_fileio_open_warn_if_slow): New declaration.
4401 * target.c (target_fileio_open): Renamed as...
4402 (target_fileio_open_1): ...this. New argument warn_if_slow.
4403 Pass warn_if_slow to implementation. Update debug printing.
4404 (target_fileio_open): New function.
4405 (target_fileio_open_warn_if_slow): Likewise.
4406 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4407 target_fileio_open_warn_if_slow.
4409 2015-08-21 Gary Benson <gbenson@redhat.com>
4411 * nat/linux-namespaces.c (linux_mntns_access_fs):
4412 Do not overwrite old_chain.
4414 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4416 * arch/xtensa.h: New file.
4417 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4418 (ps_get_thread_area): New function.
4419 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4420 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4421 * xtensa-tdep.c (osabi.h): New #include.
4422 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4423 xtensa-specific hooks.
4424 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4425 member and move the structure to arch/xtensa.h.
4427 2015-08-21 Pedro Alves <palves@redhat.com>
4429 * remote.c (struct readahead_cache): New.
4430 (struct remote_state) <readahead_cache>: New field.
4431 (remote_open_1): Invalidate the cache.
4432 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4434 (remote_hostio_pwrite): Invalidate the readahead cache.
4435 (remote_hostio_pread): Rename to ...
4436 (remote_hostio_pread_vFile): ... this.
4437 (remote_hostio_pread_from_cache): New function.
4438 (remote_hostio_pread): Reimplement.
4439 (remote_hostio_close): Invalidate the readahead cache.
4441 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4444 * procfs.c: Include "filestuff.h".
4446 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4448 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4450 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4451 cur_line or curch, instead call wmove().
4452 (init_win_info) [CMD_WIN]: Likewise.
4453 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4454 instead call getcury().
4455 (tui_redisplay_readline): Don't set cur_line or curch.
4456 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4458 (tui_cont_sig): Remove call to wmove.
4459 (tui_getc): Don't read cur_line or curch, instead call getcury()
4460 or getyx(). Don't set curch.
4461 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4462 set cur_line or curch. Always move cursor to (0,0).
4464 2015-08-20 Pedro Alves <palves@redhat.com>
4466 * infrun.c (print_target_wait_results): Make extern.
4467 * infrun.h (print_target_wait_results): Declare.
4468 * remote.c (set_stop_requested_callback): Delete.
4469 (process_initial_stop_replies): New function.
4470 (remote_start_remote): Use it.
4471 (stop_reply_queue_length): New function.
4473 2015-08-20 Pedro Alves <palves@redhat.com>
4475 * dwarf2read.c (process_full_comp_unit): To tell whether
4476 start_subfile managed to deduce a language, test for
4477 language_unknown instead of language_c.
4479 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4481 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4484 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4486 * dwarf2read.c (dwarf2_string_attr): New function.
4487 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4488 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4489 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4490 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4491 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4493 2015-08-18 Doug Evans <dje@google.com>
4494 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4497 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4499 * mi/mi-out.c: #include "vec.h".
4500 (ui_filep): New type.
4501 (DEV_VEC_P (ui_filep)): New type.
4502 (struct ui_out_data) <buffer, original_buffer>: Delete.
4503 (struct ui_out_data) <streams>: New member.
4504 (mi_ui_out_impl): Add data_destroy field.
4505 (mi_field_string, mi_field_fmt): Update.
4506 (mi_flush, mi_redirect, field_separator): Update.
4507 (mi_open, mi_close): Update.
4508 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4509 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4510 (mi_out_new): Call mi_out_data_ctor.
4512 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4514 * remote.c (strprefix): New.
4515 (remote_parse_stop_reply): Use strprefix instead of strncmp
4516 to ensure exact match of keyword.
4518 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4520 * gdb_bfd.c (debug_bfd_cache): New variable.
4521 (show_bfd_cache_debug): New function.
4522 (gdb_bfd_open): Add debug logging.
4523 (gdb_bfd_ref): Likewise.
4524 (gdb_bfd_unref): Likewise.
4525 (_initialize_gdb_bfd): Add new set/show command.
4526 * NEWS: Mention new command.
4528 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4530 * gdb_bfd.c (bfd_sharing): New variable.
4531 (show_bfd_sharing): New function.
4532 (gdb_bfd_open): Check bfd_sharing variable.
4533 (_initialize_gdb_bfd): Add new set/show command.
4534 * NEWS: Mention new command.
4536 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4538 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4540 (struct gdb_bfd_cache_search): Likewise.
4541 (eq_bfd): Compare the size, inode, and device id fields.
4542 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4543 (gdb_bfd_ref): Likewise.
4544 (gdb_bfd_unref): Likewise.
4546 2015-08-18 Pedro Alves <palves@redhat.com>
4548 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4549 target implements to_always_non_stop_p, call it.
4550 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4551 (x86_linux_create_target): Install it as to_always_non_stop_p
4554 2015-08-17 Doug Evans <dje@google.com>
4556 * ui-out.c (default_ui_out_impl): Add comment.
4558 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4560 * d-exp.y (type_aggregate_p): New function.
4561 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4562 (classify_inner_name): Likewise.
4563 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4565 2015-08-15 Doug Evans <xdje42@gmail.com>
4567 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4569 (add_psymbol_to_list): Ditto.
4571 2015-08-15 Doug Evans <xdje42@gmail.com>
4573 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4574 updated. Call end_psymtab_common.
4575 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4577 (build_type_psymtabs_reader): Ditto.
4578 * psympriv.h (sort_pst_symbols): Delete.
4579 (end_psymtab_common): Declare.
4580 * psymtab.c (sort_pst_symbols): Make static.
4581 (end_psymtab_common): New function.
4582 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4584 2015-08-15 Doug Evans <xdje42@gmail.com>
4586 * defs.h (LANGUAGE_BITS): Define.
4587 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4588 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4589 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4590 (minimal_symbol_type): Add nr_minsym_types.
4591 (MINSYM_TYPE_BITS): Define.
4592 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4593 (domain_enum_tag): Add NR_DOMAINS.
4594 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4595 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4597 2015-08-15 Doug Evans <xdje42@gmail.com>
4599 * objfiles.h: Whitespace cleanup.
4600 * psympriv.h: Whitespace cleanup.
4601 * psymtab.c: Whitespace/coding convention cleanup.
4603 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4605 * inferior.c (detach_inferior_command): Don't call
4606 any_thread_of_process when pid is 0.
4607 (kill_inferior_command): Likewise.
4609 2015-08-14 Doug Evans <xdje42@gmail.com>
4612 * NEWS: Document new /s modifier for the disassemble command.
4613 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4614 (_initialize_cli_cmds): Update online docs of disassemble command.
4615 * disasm.c: #include "source.h".
4616 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4618 (dis_line_entry): New struct.
4619 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4620 (allocate_dis_line_table): New functions.
4621 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4622 (dump_insns): New arg end_pc. All callers updated.
4623 (do_mixed_source_and_assembly_deprecated): Renamed from
4624 do_mixed_source_and_assembly. All callers updated.
4625 (do_mixed_source_and_assembly): New function.
4626 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4627 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4628 DISASSEMBLY_SOURCE. All uses updated.
4629 (DISASSEMBLY_SOURCE): New macro.
4630 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4632 2015-08-14 Keith Seitz <keiths@redhat.com>
4634 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4635 `typename' to `type_name' to avoid C++ reserved word.
4637 2015-08-14 Keith Seitz <keiths@redhat.com>
4639 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4640 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4643 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4645 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4646 xstrprintf instead of malloc and sprintf.
4647 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4648 (lex_one_token): Likewise.
4650 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4652 * solib-svr4.c (read_program_header): Add base_addr argument to
4653 report the runtime address of the segment.
4654 (find_program_interpreter): Update read_program_header call to pass
4655 a NULL pointer for the new argument.
4656 (scan_dyntag): Add ptr_addr argument to report the runtime address
4658 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4659 read_program_header to get the base address of the dynamic segment.
4660 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4661 read_program_header.
4662 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4664 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4666 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4668 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4670 * d-exp.y (%union): Add voidval.
4671 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4672 name in the lexing stage.
4673 (PostfixExpression): Move symbol completion handling in grammar here
4674 from PrimaryExpression.
4675 (PrimaryExpression): Move routines to handle resolving identifier
4676 tokens in the grammar here from push_expression_name.
4677 (IdentifierExp): Remove the handling of alternating '.' and identifier
4679 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4680 (BasicType): Remove C-style typename rules.
4681 (d_type_from_name, d_module_from_name, push_variable)
4682 (push_fieldnames, push_type_name, push_module_name)
4683 (push_expression_name): Remove.
4684 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4685 (token_and_value): New type.
4686 (token_fifo, popping, name_obstack): New globals.
4687 (classify_name): New function.
4688 (classify_inner_name): Likewise.
4690 (d_parse): Initialize token_fifo, popping and name_obstack.
4692 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4694 * Makefile.in (SFILES): Add d-namespace.c.
4695 (COMMON_OBS): Add d-namespace.o.
4696 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4697 la_lookup_symbol_nonlocal callback function pointer.
4698 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4699 (d_lookup_nested_symbol): New declaration.
4700 * d-namespace.c: New file.
4702 2015-08-13 Pedro Alves <palves@redhat.com>
4704 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4705 cleanup after the decref cleanup, not before.
4707 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4709 * ada-lang.c: Include namespace.h
4710 (aux_add_nonlocal_symbols): Fix a function name in comment.
4711 (ada_add_block_renamings): New.
4712 (add_nonlocal_symbols): Add global renamings handling.
4713 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4715 (ada_add_all_symbols): ... this new function.
4716 (ada_add_block_symbols): Try to match the input name against the
4717 "using directives list", perform a recursive symbol lookup on
4718 the matched declarations.
4719 * block.h (struct block): Move the_namespace to top-level as
4720 namespace_info. Remove the language_specific field.
4721 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4722 * buildsym.h (using_directives): Rename into...
4723 (local_using_directives): ... this.
4724 (global_using_directives): New.
4725 (struct context_stack): Rename the using_directives field into
4726 local_using_directives.
4727 * buildsym.c (finish_block_internal): Deal with the proper
4728 using directives repository (local or global).
4729 (prepare_for_building): Reset local_using_directives. Assert
4730 that there is no pending global using directive.
4731 (reset_symtab_globals): Reset global_using_directives and
4732 local_using_directives.
4733 (end_symtab_get_static_block): Don't ignore symtabs that have
4734 only using directives.
4735 (push_context): Update references to local_using_directives.
4736 (buildsym_init): Do not reset using_directives.
4737 * cp-support.c: Include namespace.h.
4738 * cp-support.h (struct using_direct): Move to namespace.h.
4739 (cp_add_using_directives): Move to namespace.h.
4740 * cp-namespace.c: Include namespace.h
4741 (cp_add_using_directive): Move to namespace.c, rename it to
4742 add_using_directive, add a "using_directives" argument and use
4743 it as the pending using directives repository. All callers
4745 * dwarf2read.c (using_directives): New.
4746 (read_import_statement): Call using_directives.
4747 (read_func_scope): Update references to local_using_directives.
4748 (read_lexical_block_scope): Likewise.
4749 (read_namespace): Update the heading comment, call
4751 * namespace.h: New file.
4752 * namespace.c: New file.
4753 * Makefile.in (SFILES): Add namespace.c.
4754 (COMMON_OBS): Add namespace.o
4756 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4758 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4761 2015-08-12 Keith Seitz <keiths@redhat.com>
4763 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4764 reserved C++ keyword "explicit" to "explicit_loc".
4765 * breakpoint.c (create_overlay_event_breakpoint)
4766 (create_longjmp_master_breakpoint)
4767 (create_std_terminate_master_breakpoint)
4768 (create_exception_master_breakpoint, update_static_tracepoint):
4769 Rename reserved C++ keyword "explicit" to "explicit_loc".
4770 * completer.c (collect_explicit_location_matches)
4771 (explicit_location_completer): Rename reserved C++ keyword
4772 "explicit" to "explicit_loc".
4773 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4774 (canonicalize_linespec, create_sals_line_offset)
4775 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4776 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4777 "explicit" to "explicit_loc".
4778 * location.c (struct event_location) <explicit>: Rename to
4780 (initialize_explicit_location, new_explicit_location)
4781 (explicit_location_to_string_internal, explicit_location_to_linespec):
4782 Rename reserved C++ keyword "explicit" to "explicit_loc".
4783 * location.h (explicit_location_to_string)
4784 (explicit_location_to_linespec, initialize_explicit_location)
4785 (new_explicit_location): Rename reserved C++ keyword "explicit"
4787 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4788 keyword "explicit" to "explicit_loc".
4790 2015-08-12 Keith Seitz <keiths@redhat.com>
4792 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4793 and only call decode_line_1 when it is non-NULL.
4795 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4797 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4798 location address is not meaningful.
4799 (breakpoint_address_is_meaningful): Update comment.
4801 2015-08-11 Keith Seitz <keiths@redhat.com>
4803 * NEWS: Mention explicit locations.
4804 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4805 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4806 (_initialize_breakpoint): Update documentation for
4807 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4809 2015-08-11 Keith Seitz <keiths@redhat.com>
4811 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4812 explicit locations, options "--source", "--function",
4813 "--label", and "--line".
4815 2015-08-11 Keith Seitz <keiths@redhat.com>
4817 * completer.c: Include location.h.
4818 (enum match_type): New enum.
4819 (location_completer): Rename to ...
4820 (linespec_completer): ... this.
4821 (collect_explicit_location_matches, backup_text_ptr)
4822 (explicit_location_completer): New functions.
4823 (location_completer): "New" function; handle linespec
4824 and explicit location completions.
4825 (complete_line_internal): Remove all location completer-specific
4827 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4828 (find_toplevel_char): Export.
4829 (linespec_parse_line_offset): Export.
4830 Issue error if STRING is not numerical.
4831 (gdb_get_linespec_parser_quote_characters): New function.
4832 * linespec.h (linespec_parse_line_offset): Declare.
4833 (get_gdb_linespec_parser_quote_characters): Declare.
4834 (is_ada_operator): Declare.
4835 (find_toplevel_char): Declare.
4836 (linespec_lexer_lex_keyword): Declare.
4837 * location.c (explicit_to_event_location): New function.
4838 (explicit_location_lex_one): New function.
4839 (string_to_explicit_location): New function.
4840 (string_to_event_location): Handle explicit locations.
4841 * location.h (explicit_to_event_location): Declare.
4842 (string_to_explicit_location): Declare.
4844 2015-08-11 Keith Seitz <keiths@redhat.com>
4846 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4847 linespec into explicit location.
4848 * breakpoint.c (create_overlay_breakpoint)
4849 (create_longjmp_master_breakpoint)
4850 (create_std_terminate_master_breakpoint)
4851 (create_exception_master_breakpoint): Convert linespec into explicit
4853 (update_static_tracepoint): Convert linespec into explicit location.
4854 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4856 (struct linespec) <expression, expr_pc, source_filename>
4857 <function_name, label_name, line_offset>: Replace with ...
4858 <explicit>: ... this.
4859 <is_linespec>: New member.
4860 (PARSER_EXPLICIT): New accessor macro.
4861 (undefined_label_error): New function.
4862 (source_file_not_found_error): New function.
4863 (linespec_parse_basic): The parser result is now an explicit location.
4864 Use PARSER_EXPLICIT to access it.
4865 Use undefined_label_error.
4866 (canonicalize_linespec): Convert canonical linespec into explicit
4868 Move string representation of location to explicit_location_to_linespec
4869 and use it and explicit_location_to_string to save string
4870 representations of the canonical location.
4871 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4872 explicit location. Update all references.
4873 (convert_explicit_location_to_sals): New function.
4874 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4875 result's explicit location.
4876 (linespec_state_constructor): Initialize is_linespec.
4877 Use PARSER_EXPLICIT.
4878 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4880 (event_location_to_sals): For linespec locations, set is_linespec.
4881 Handle explicit locations.
4882 (decode_objc): 'ls' contains an explicit location now. Update all
4884 (symtabs_from_filename): Use source_file_not_found_error.
4885 * location.c (struct event_location.u) <explicit>: New member.
4886 (initialize_explicit_location): New function.
4887 (initialize_event_location): Initialize explicit locations.
4888 (new_explicit_location, get_explicit_location)
4889 (get_explicit_location_const): New functions.
4890 (explicit_to_string_internal): New function; most of contents moved
4891 from canonicalize_linespec.
4892 (explicit_location_to_string): New function.
4893 (explicit_location_to_linespec): New function.
4894 (copy_event_location, delete_event_location)
4895 (event_location_to_string_const, event_location_empty_p): Handle
4897 * location.h (enum offset_relative_sign, struct line_offset): Move
4898 here from linespec.h.
4899 (enum event_location_type): Add EXPLICIT_LOCATION.
4900 (struct explicit_location): New structure.
4901 (explicit_location_to_string): Declare.
4902 (explicit_location_to_linespec): Declare.
4903 (new_explicit_location, get_explicit_locationp
4904 (get_explicit_location_const, initialize_explicit_location): Declare.
4906 2015-08-11 Keith Seitz <keiths@redhat.com>
4908 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4909 linespec for stap probe to probe location.
4910 * breakpoint.c (create_longjmp_master_breakpoint)
4911 (create_exception_master_breakpoint): Likewise.
4912 (break_command_1): Remove local variable `arg_cp'.
4913 Check location type to set appropriate breakpoint ops methods.
4914 (trace_command): Likewise.
4915 * linespec.c (event_location_to_sals): Assert on probe locations.
4916 * location.c (EL_PROBE): Add macro definition.
4917 (new_probe_location, get_probe_location): New functions.
4918 (copy_event_location, delete_event_location, event_location_to_string)
4919 (string_to_event_location, event_location_empty_p): Handle probe
4921 * location.h (enum event_location_type): Add PROBE_LOCATION.
4922 (new_probe_location, get_probe_location): Declare.
4923 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4924 Convert linespec into probe location.
4926 2015-08-11 Keith Seitz <keiths@redhat.com>
4928 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4929 Convert linespec to address location.
4930 * linespec.c (canonicalize_linespec): Do not handle address
4932 (convert_address_location_to_sals): New function; contents moved
4934 (convert_linespc_to_sals): ... here.
4935 (parse_linespec): Remove address locations from linespec grammar.
4936 Remove handling of address locations.
4937 (linespec_lex_to_end): Remove handling of address linespecs.
4938 (event_location_to_sals): Handle ADDRESS_LOCATION.
4939 (linespec_expression_to_pc): Export.
4940 * linespec.h (linespec_expression_to_pc): Add declaration.
4941 * location.c (struct event_location.u) <address>: New member.
4942 (new_address_location, get_address_location): New functions.
4943 (copy_event_location, delete_event_location, event_location_to_string)
4944 (string_to_event_location, event_location_empty_p): Handle address
4946 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4947 (new_address_location, get_address_location): Declare.
4948 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4949 to address location.
4950 * spu-tdep.c (spu_catch_start): Likewise.
4952 2015-08-11 Keith Seitz <keiths@redhat.com>
4954 * ax-gdb.c: Include location.h.
4955 (agent_command_1) Use linespec location instead of address
4957 * break-catch-throw.c: Include location.h.
4958 (re_set_exception_catchpoint): Use linespec locations instead
4960 * breakpoint.c: Include location.h.
4961 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4962 (create_std_terminate_master_breakpoint)
4963 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4964 Use linespec location instead of address string.
4965 (print_breakpoint_location): Use locations and
4966 event_location_to_string.
4967 Print extra_string for pending locations for non-MI streams.
4968 (print_one_breakpoint_location): Use locations and
4969 event_location_to_string.
4970 (init_raw_breakpoint_without_location): Initialize b->location.
4971 (create_thread_event_breakpoint): Use linespec location instead of
4973 (init_breakpoint_sal): Likewise.
4974 Only save extra_string if it is non-NULL and not the empty string.
4975 Use event_location_to_string instead of `addr_string'.
4976 Constify `p' and `endp'.
4977 Use skip_spaces_const/skip_space_const instead of non-const versions.
4978 Copy the location into the breakpoint.
4979 If LOCATION is NULL, save the breakpoint address as a linespec location
4980 instead of an address string.
4981 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4982 event_location. All uses updated.
4983 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4984 (parse_breakpoint_sals): Use locations instead of address strings.
4985 Remove check for empty linespec with conditional.
4987 (decode_static_tracepoint_spec): Make argument const and update
4989 (create_breakpoint): Change `arg' to a struct event_location and
4991 Remove `copy_arg' and `addr_start'.
4992 If EXTRA_STRING is empty, set it to NULL.
4993 Don't populate `canonical' for pending breakpoints.
4994 Pass `extra_string' to find_condition_and_thread.
4995 Clear `extra_string' if `rest' was NULL.
4996 Do not error with "garbage after location" if setting a dprintf
4998 Copy the location into the breakpoint instead of an address string.
4999 (break_command_1): Use string_to_event_location and pass this to
5000 create_breakpoint instead of an address string.
5001 Check against `arg_cp' for a probe linespec.
5002 (dprintf_command): Use string_to_event_location and pass this to
5003 create_breakpoint instead of an address string.
5004 Throw an exception if no format string was specified.
5005 (print_recreate_ranged_breakpoint): Use event_location_to_string
5006 instead of address strings.
5007 (break_range_command, until_break_command)
5008 (init_ada_exception_breakpoint): Use locations instead
5010 (say_where): Print out extra_string for pending locations.
5011 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5013 (base_breakpoint_create_sals_from_location): Use struct event_location
5014 instead of address string.
5015 Remove `addr_start' and `copy_arg' parameters.
5016 (base_breakpoint_decode_location): Use struct event_location instead of
5018 (bkpt_re_set): Use locations instead of address strings.
5019 Use event_location_empty_p to check for unset location.
5020 (bkpt_print_recreate): Use event_location_to_string instead of
5022 Print out extra_string for pending locations.
5023 (bkpt_create_sals_from_location, bkpt_decode_location)
5024 (bkpt_probe_create_sals_from_location): Use struct event_location
5025 instead of address string.
5026 (bkpt_probe_decode_location): Use struct event_location instead of
5028 (tracepoint_print_recreate): Use event_location_to_string to
5029 recreate the tracepoint.
5030 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5031 (tracepoint_probe_create_sals_from_location)
5032 (tracepoint_probe_decode_location): Use struct event_location
5033 instead of address string.
5034 (dprintf_print_recreate): Use event_location_to_string to recreate
5036 (dprintf_re_set): Remove check for valid/missing format string.
5037 (strace_marker_create_sals_from_location)
5038 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5039 (update_static_tracepoint): Use struct event_location instead of
5041 (location_to_sals): Likewise.
5042 Pass `extra_string' to find_condition_and_thread.
5043 For newly resolved pending breakpoint locations, clear the location's
5044 string representation.
5045 Assert that the breakpoint's condition string is NULL when
5046 condition_not_parsed.
5047 (breakpoint_re_set_default, create_sals_from_location_default)
5048 (decode_location_default, trace_command, ftrace_command)
5049 (strace_command, create_tracepoint_from_upload): Use locations
5050 instead of address strings.
5051 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5052 Use struct event_location instead of address string.
5054 <decode_location>: Likewise.
5055 (struct breakpoint) <addr_string>: Change to struct event_location
5056 and rename `location'.
5057 <addr_string_range_end>: Change to struct event_location and rename
5058 `location_range_end'.
5059 (create_breakpoint): Use struct event_location instead of address
5061 * cli/cli-cmds.c: Include location.h.
5062 (edit_command, list_command): Use locations instead of address strings.
5063 * elfread.c: Include location.h.
5064 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5065 * guile/scm-breakpoint.c: Include location.h.
5066 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5067 (gdbscm_register_breakpoint): Use locations instead of address
5069 * linespec.c: Include location.h.
5070 (struct ls_parser) <stream>: Change to const char *.
5071 (PARSER_STREAM): Update.
5072 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5073 keywords must be followed by whitespace.
5074 (canonicalize_linespec): Save a linespec location into `canonical'.
5075 Save a canonical linespec into `canonical'.
5076 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5078 Update function description.
5079 (linespec_parser_new): Initialize `parser'.
5080 Update initialization of parsing stream.
5081 (event_location_to_sals): New function.
5082 (decode_line_full): Change `argptr' to a struct event_location and
5083 rename it `location'.
5084 Use locations instead of address strings.
5085 Call event_location_to_sals instead of parse_linespec.
5086 (decode_line_1): Likewise.
5087 (decode_line_with_current_source, decode_line_with_last_displayed)
5088 Use locations instead of address strings.
5089 (decode_objc): Likewise.
5090 Change `argptr' to const char * and rename `arg'.
5091 (destroy_linespec_result): Delete the linespec result's location
5092 instead of freeing the address string.
5093 * linespec.h (struct linespec_result) <addr_string>: Change to
5094 struct event_location and rename to ...
5095 <location>: ... this.
5096 (decode_line_1, decode_line_full): Change `argptr' to struct
5097 event_location. All callers updated.
5098 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5099 (mi_cmd_break_insert_1): Use locations instead of address strings.
5100 Throw an error if there was "garbage" at the end of the specified
5102 * probe.c: Include location.h.
5103 (parse_probes): Change `argptr' to struct event_location.
5104 Use event locations instead of address strings.
5105 * probe.h (parse_probes): Change `argptr' to struct event_location.
5106 * python/py-breakpoint.c: Include location.h.
5107 (bppy_get_location): Constify local variable `str'.
5108 Use event_location_to_string.
5109 (bppy_init): Use locations instead of address strings.
5110 * python/py-finishbreakpoint.c: Include location.h.
5111 (bpfinishpy_init): Remove local variable `addr_str'.
5112 Use locations instead of address strings.
5113 * python/python.c: Include location.h.
5114 (gdbpy_decode_line): Use locations instead of address strings.
5115 * remote.c: Include location.h.
5116 (remote_download_tracepoint): Use locations instead of address
5118 * spu-tdep.c: Include location.h.
5119 (spu_catch_start): Remove local variable `buf'.
5120 Use locations instead of address strings.
5121 * tracepoint.c: Include location.h.
5122 (scope_info): Use locations instead of address strings.
5123 (encode_source_string): Constify parameter `src'.
5124 * tracepoint.h (encode_source_string): Likewise.
5126 2015-08-11 Keith Seitz <keiths@redhat.com>
5128 * Makefile.in (SFILES): Add location.c.
5129 (HFILES_NO_SRCDIR): Add location.h.
5130 (COMMON_OBS): Add location.o.
5131 * linespec.c (linespec_lex_to_end): New function.
5132 * linespec.h (linespec_lex_to_end): Declare.
5133 * location.c: New file.
5134 * location.h: New file.
5136 2015-08-11 Keith Seitz <keiths@redhat.com>
5138 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5139 Renamed to create_sals_from_location.
5140 <decode_linespec>: Renamed to decode_location.
5142 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5143 (create_sals_from_location_default): ... this.
5144 (addr_string_to_sals): Renamed to ...
5145 (location_to_sals): ... this.
5146 (decode_linespec_default): Renamed to ...
5147 (decode_location_default): ... this.
5148 (base_breakpoint_create_sals_from_address): Renamed to ...
5149 (base_breakpoint_create_sals_from_location): ... this.
5150 (bkpt_create_sals_from_address): Renamed to ...
5151 (bkpt_create_sals_from_location): ... this.
5152 (bkpt_decode_linespec): Renamed to ...
5153 (bkpt_decode_location): ... this.
5154 (bkpt_probe_create_sals_from_address): Renamed to ...
5155 (bkpt_probe_create_sals_from_location): ... this.
5156 (tracepoint_create_sals_from_address): Renamed to ...
5157 (tracepoint_create_sals_from_location): ... this.
5158 (tracepoint_decode_linespec): Renamed to ...
5159 (tracepoint_decode_location): ... this.
5160 (tracepoint_probe_create_sals_from_address): Renamed to ...
5161 (tracepoint_probe_create_sals_from_location): ... this.
5162 (tracepoint_probe_decode_linespec): Renamed to ...
5163 (tracepoint_probe_decode_location): ... this.
5164 (strace_marker_create_sals_from_address): Renamed to ...
5165 (strace_marker_create_sals_from_location): ... this.
5166 (decode_linespec_default): Renamed to ...
5167 (decode_location_default): ... this.
5169 2015-08-10 Doug Evans <dje@google.com>
5170 Keith Seitz <keiths@redhat.com>
5173 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5174 make_file_symbol_completion_list and made static.
5175 (make_file_symbol_completion_list): New function.
5177 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5179 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5180 trailing new-line at end of warning message.
5181 (proceed): Add i18n marker to error messages.
5183 2015-08-07 Pedro Alves <palves@redhat.com>
5185 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5187 2015-08-07 Pedro Alves <palves@redhat.com>
5189 * s390-linux-tdep.c (is_non_branch_ril)
5190 (s390_displaced_step_copy_insn): New functions.
5191 (s390_displaced_step_fixup): Update comment.
5192 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5193 gdbarch_displaced_step_copy_insn hook.
5195 2015-08-07 Pedro Alves <palves@redhat.com>
5197 * infrun.c (displaced_step_prepare_throw): Return -1 if
5198 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5200 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5201 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5203 (ppc_displaced_step_copy_insn): New function.
5204 (ppc_displaced_step_fixup): Update comment.
5205 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5206 gdbarch_displaced_step_copy_insn hook.
5207 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5209 * gdbarch.h: Regenerate.
5211 2015-08-07 Pedro Alves <palves@redhat.com>
5213 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5215 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5216 Return false if dispaced stepping failed before.
5217 (resume): Pass the current inferior to
5218 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5219 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5220 displaced_stepping_failed flag, and fall back to an in-line
5223 2015-08-07 Pedro Alves <palves@redhat.com>
5225 * darwin-nat.c (darwin_stop): Rename to ...
5226 (darwin_interrupt): ... this.
5227 (_initialize_darwin_inferior): Adjust.
5228 * gnu-nat.c (gnu_stop): Delete.
5229 (gnu_target): Don't install gnu_stop.
5230 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5231 (inf_ptrace_interrupt): ... this.
5232 (inf_ptrace_target): Adjust.
5233 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5235 * linux-nat (linux_nat_stop): Rename to ...
5236 (linux_nat_interrupt): ... this.
5237 (linux_nat_stop): Reimplement.
5238 (linux_nat_add_target): Install linux_nat_interrupt.
5239 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5240 (nto_handle_sigint_twice): ... this.
5241 (nto_interrupt): Rename to ...
5242 (nto_handle_sigint): ... this. Call target_interrupt instead of
5244 (procfs_wait): Adjust.
5245 (procfs_stop): Rename to ...
5246 (procfs_interrupt): ... this.
5247 (init_procfs_targets): Adjust.
5248 * procfs.c (procfs_stop): Rename to ...
5249 (procfs_interrupt): ... this.
5250 (procfs_target): Adjust.
5251 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5252 (m32r_interrupt): ... this.
5253 (init_m32r_ops): Adjust.
5254 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5255 (gdbsim_interrupt_inferior): ... this.
5256 (gdbsim_stop): Rename to ...
5257 (gdbsim_interrupt): ... this.
5258 (gdbsim_cntrl_c): Adjust.
5259 (init_gdbsim_ops): Adjust.
5260 * remote.c (sync_remote_interrupt): Adjust comments.
5261 (remote_stop_as): Rename to ...
5262 (remote_interrupt_as): ... this.
5263 (remote_stop): Adjust comment.
5264 (remote_interrupt): New function.
5265 (init_remote_ops): Install remote_interrupt.
5266 * target.c (target_interrupt): New function.
5267 * target.h (struct target_ops) <to_interrupt>: New field.
5268 (target_interrupt): New declaration.
5269 * windows-nat.c (windows_stop): Rename to ...
5270 (windows_interrupt): ... this.
5271 * target-delegates.c: Regenerate.
5273 2015-08-07 Pedro Alves <palves@redhat.com>
5275 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5276 threads" as alternative to "switching back to stepped thread".
5278 2015-08-07 Pedro Alves <palves@redhat.com>
5280 * NEWS: Mention "maint set/show target-non-stop".
5281 * breakpoint.c (update_global_location_list): Check
5282 target_is_non_stop_p instead of non_stop.
5283 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5284 * infrun.c (show_can_use_displaced_stepping)
5285 (can_use_displaced_stepping_p, start_step_over_inferior):
5287 (internal_resume_ptid): New function.
5289 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5290 all-stop mode but the target is always in non-stop mode, start all
5291 the other threads that are implicitly resumed too.
5292 (for_each_just_stopped_thread, fetch_inferior_event)
5293 (adjust_pc_after_break, stop_all_threads): Check
5294 target_is_non_stop_p instead of non_stop.
5295 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5296 with the target always in non-stop mode.
5297 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5298 instead of non_stop.
5299 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5300 instead of non_stop.
5301 (keep_going_stepped_thread): Use internal_resume_ptid.
5302 (stop_waiting): If in all-stop mode, and the target is in non-stop
5303 mode, stop all threads.
5304 (keep_going_pass): Likewise, when starting a new in-line step-over
5306 * linux-nat.c (get_pending_status, select_event_lwp)
5307 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5308 target_is_non_stop_p instead of non_stop.
5309 (linux_nat_always_non_stop_p): New function.
5310 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5311 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5312 * target-delegates.c: Regenerate.
5313 * target.c (target_is_non_stop_p): New function.
5314 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5315 (maint_set_target_non_stop_command)
5316 (maint_show_target_non_stop_command): New functions.
5317 (_initilize_target): Install "maint set/show target-non-stop"
5319 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5320 (target_non_stop_enabled): New declaration.
5321 (target_is_non_stop_p): New declaration.
5323 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5325 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5326 has a pending status, return true.
5327 * gdbthread.h: Include target/waitstatus.h.
5328 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5329 stop_pc>: New fields.
5330 (struct thread_info) <resumed>: New field.
5331 (set_resumed): Declare.
5332 * infrun.c: Include "event-loop.h".
5333 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5334 (infrun_async): New function.
5335 (clear_step_over_info): Add debug output.
5336 (displaced_step_in_progress_any_inferior): New function.
5337 (displaced_step_fixup): New returns int.
5338 (start_step_over): Handle in-line step-overs too. Assert the
5339 thread is marked resumed.
5340 (resume_cleanups): Clear the thread's resumed flag.
5341 (resume): Set the thread's resumed flag. Return early if the
5342 thread has a pending status. Allow stepping a breakpoint with no
5344 (proceed): Adjust to check 'resumed' instead of 'executing'.
5345 (clear_proceed_status_thread): If the thread has a pending status,
5346 and that status is a finished step, discard the pending status.
5347 (clear_proceed_status): Don't clear step_over_info here.
5348 (random_pending_event_thread, do_target_wait): New functions.
5349 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5351 (wait_one): New function.
5352 (THREAD_STOPPED_BY): New macro.
5353 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5354 (thread_stopped_by_hw_breakpoint): New functions.
5355 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5357 (handle_inferior_event): Also call set_resumed(false) on all
5358 threads implicitly stopped by the event.
5359 (restart_threads, resumed_thread_with_pending_status): New
5361 (finish_step_over): If we were doing an in-line step-over before,
5362 and no longer are after trying to start a new step-over, restart
5363 all threads. If we have multiple threads with pending events,
5364 save the current event and go through the event loop again.
5365 (handle_signal_stop): Return early if finish_step_over returns
5367 <random signal>: If we get a signal while stepping over a
5368 breakpoint in-line in non-stop mode, restart all threads. Clear
5369 step_over_info before delivering the signal.
5370 (keep_going_stepped_thread): Use internal_error instead of
5371 gdb_assert. Mark the thread as resumed.
5372 (keep_going_pass_signal): Assert the thread isn't already resumed.
5373 If some other thread is doing an in-line step-over, defer the
5374 resume. If we just started a new in-line step-over, stop all
5375 threads. Don't clear step_over_info.
5376 (infrun_async_inferior_event_handler): New function.
5377 (_initialize_infrun): Create async event handler with
5378 infrun_async_inferior_event_handler as callback.
5379 (infrun_async): New declaration.
5380 * target.c (target_async): New function.
5381 * target.h (target_async): Declare macro and readd as function
5383 * target/waitstatus.h (enum target_stop_reason)
5384 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5385 * thread.c (new_thread): Clear the new waitstatus field.
5386 (set_resumed): New function.
5388 2015-08-07 Pedro Alves <palves@redhat.com>
5390 * infrun.c (keep_going_stepped_thread): New function, factored out
5392 (switch_back_to_stepped_thread): ... here.
5394 2015-08-07 Pedro Alves <palves@redhat.com>
5396 * infrun.c (currently_stepping): Extend intro comment.
5397 * target.h (target_resume): Extend intro comment.
5399 2015-08-07 Pedro Alves <palves@redhat.com>
5401 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5402 of inferior_ptid. If the stepped thread vanished, return 0
5403 instead of resuming here. Use reset_ecs. Print the prev_pc and
5404 the current stop_pc in log message. Clear trap_expected if the
5405 thread advanced. Don't pass currently_stepping to
5408 2015-08-07 Pedro Alves <palves@redhat.com>
5410 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5411 * infrun.c (struct execution_control_state): Move higher up in the
5413 (reset_ecs): New function.
5414 (start_step_over): Now returns int. Rewrite to use
5415 keep_going_pass_signal instead of manually starting a displaced step.
5416 (resume): Don't call set_running here. If displaced stepping
5417 can't start now, clear trap_expected.
5418 (find_thread_needs_step_over): Delete function.
5419 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5420 If the current thread needs a step over, push it in the step-over
5421 chain. Don't set insert breakpoints nor call resume directly
5422 here. Instead rewrite to use start_step_over and
5423 keep_going_pass_signal.
5424 (finish_step_over): New function.
5425 (handle_signal_stop): Call finish_step_over instead of
5427 (switch_back_to_stepped_thread): If the event thread needs another
5428 step-over do that first. Use start_step_over.
5429 (keep_going_pass_signal): New function, factored out from ...
5430 (keep_going): ... here.
5431 (_initialize_infrun): Comment moved here.
5432 * thread.c (set_running_thread): New function.
5433 (set_running, finish_thread_state): Use set_running_thread.
5435 2015-08-07 Pedro Alves <palves@redhat.com>
5437 * gdbthread.h (struct thread_info) <step_over_prev,
5438 step_over_next>: New fields.
5439 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5440 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5442 * infrun.c (struct displaced_step_request): Delete.
5443 (struct displaced_step_inferior_state) <step_request_queue>:
5445 (displaced_step_prepare): Assert that trap_expected is set. Use
5446 thread_step_over_chain_enqueue. Split starting a new displaced
5448 (start_step_over): ... this new function.
5449 (resume): Assert the thread isn't waiting for a step over already.
5450 (proceed): Assert the thread isn't waiting for a step over
5452 (infrun_thread_stop_requested): Adjust to remove threads from the
5453 embedded step-over chain.
5454 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5455 displaced_step_fixup.
5456 (handle_signal_stop): Call start_step_over after
5457 displaced_step_fixup.
5458 * infrun.h (step_over_queue_head): New declaration.
5459 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5460 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5461 (thread_step_over_chain_enqueue)
5462 (thread_step_over_chain_remove): New functions.
5463 (delete_thread_1): Remove thread from the step-over chain.
5465 2015-08-07 Pedro Alves <palves@redhat.com>
5467 * infrun.c (thread_still_needs_step_over): Rename to ...
5468 (thread_still_needs_step_over_bp): ... this.
5469 (enum step_over_what): New.
5470 (thread_still_needs_step_over): Reimplement.
5472 2015-08-07 Pedro Alves <palves@redhat.com>
5474 * remote.c (remote_wait_as): If not waiting for a stop reply,
5475 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5476 requested, don't block waiting forever.
5478 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5480 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5481 waitstatus pointers instead of an ecs. Adjust.
5482 (handle_inferior_event): Adjust caller.
5484 2015-08-07 Pedro Alves <palves@redhat.com>
5486 * infrun.c (handle_inferior_event): If we get
5487 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5488 mode, mark all threads of the exiting process as not-executing.
5489 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5490 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5491 exiting process, if inferior_ptid still points at a process.
5492 * thread.c (struct current_thread_cleanup) <next>: New field.
5493 (current_thread_cleanup_chain): New global.
5494 (restore_current_thread_ptid_changed): New function.
5495 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5496 current_thread_cleanup_chain list.
5497 (make_cleanup_restore_current_thread): Add the cleanup data to the
5498 current_thread_cleanup_chain list.
5499 (_initialize_thread): Install restore_current_thread_ptid_changed
5500 as thread_ptid_changed observer.
5502 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5504 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5505 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5506 smaller than expected.
5508 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5510 * stack.c (get_frame_language): Moved ...
5511 * frame.c (get_frame_language): ... to here.
5512 * language.h (get_frame_language): Declaration moved to frame.h.
5513 * frame.h: Add language.h include, for language enum.
5514 (get_frame_language): Declaration moved from language.h.
5515 * language.c: Add frame.h include.
5516 * top.c: Add frame.h include.
5517 * symtab.h (struct obj_section): Declare.
5518 (struct cmd_list_element): Declare.
5520 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5522 * language.c (show_language_command): Find selected frame before
5523 asking for the language of that frame.
5524 (set_language_command): Likewise.
5525 * language.h (get_frame_language): Add frame parameter.
5526 * stack.c (get_frame_language): Add frame parameter, assert
5527 parameter is not NULL, update comment and reindent.
5528 * top.c (check_frame_language_change): Pass the selected frame
5529 into get_frame_language.
5531 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5533 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5534 (pt_btrace_insn_flags): New.
5535 (ftrace_add_pt): Call pt_btrace_insn_flags.
5536 * btrace.h (btrace_insn_flag): New.
5537 (btrace_insn) <flags>: New.
5538 * record-btrace.c (btrace_insn_history): Print insn prefix.
5539 * NEWS: Announce it.
5541 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5543 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5544 * configure: Regenerate.
5546 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5548 * Makefile.in (LIBICONV): Define.
5549 (CLIBS): Add LIBICONV.
5550 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5551 * configure: Regenerate.
5553 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5554 Pedro Alves <palves@redhat.com>
5556 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5557 (arm_set_abi): Likewise.
5558 * ax-general.c (ax_print): Likewise.
5559 * c-exp.y (exp : string_exp): Likewise.
5560 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5561 (do_compile_dwarf_expr_to_c): Likewise.
5562 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5564 * dwarf2expr.c (execute_stack_op): Likewise.
5565 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5566 (disassemble_dwarf_expression): Likewise.
5567 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5568 (read_array_order): Likewise.
5569 (abbrev_table_read_table): Likewise.
5570 (read_attribute_value): Likewise.
5571 (skip_unknown_opcode): Likewise.
5572 (dwarf_decode_macro_bytes): Likewise.
5573 (dwarf_decode_macros): Likewise.
5574 * eval.c (value_f90_subarray): Likewise.
5575 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5576 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5577 * infrun.c (handle_command): Likewise.
5578 * memory-map.c (memory_map_start_memory): Likewise.
5579 * osabi.c (set_osabi): Likewise.
5580 * parse.c (operator_length_standard): Likewise.
5581 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5582 single return point.
5583 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5584 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5585 (gdbpy_lookup_global_symbol): Likewise.
5586 * record-full.c (record_full_restore): Likewise.
5587 * regcache.c (regcache_register_status): Likewise.
5588 (regcache_raw_read): Likewise.
5589 (regcache_cooked_read): Likewise.
5590 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5591 * symtab.c (initialize_ordinary_address_classes): Likewise.
5592 * target-debug.h (target_debug_print_signals): Likewise.
5593 * utils.c (do_restore_current_language): Likewise.
5595 2015-08-06 Clem Dickey <clemd@acm.org>
5598 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5600 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5602 * complaints.c (enum complaint_series): Add newlines and remove
5603 out of date comment.
5604 (struct complaints) <series>: Change type to enum
5605 complaint_series and remove out of date comment.
5606 (symfile_complaint_hook): Use equivalent enum value
5607 ISOLATED_MESSAGE instead of 0.
5609 2015-08-06 Pedro Alves <palves@redhat.com>
5611 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5614 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5616 * common/agent.c (symbol_list) <required>: Remove.
5618 2015-08-06 Pedro Alves <palves@redhat.com>
5620 * target/waitstatus.h (enum target_stop_reason)
5621 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5623 2015-08-05 Pedro Alves <palves@redhat.com>
5624 Joel Brobecker <brobecker@adacore.com>
5626 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5627 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5628 case where BS->STOP is not set.
5630 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5632 * nat/gdb_thread_db.h: Add copyright header.
5633 Protect against multiple inclusion.
5635 2015-08-05 Yao Qi <yao.qi@linaro.org>
5637 * aarch64-linux-nat.c (get_thread_id): Remove.
5638 (debug_reg_change_callback): Call ptid_get_lwp instead of
5640 (fetch_gregs_from_thread): Likewise.
5641 (store_gregs_to_thread): Likewise.
5642 (fetch_fpregs_from_thread): Likewise.
5643 (store_fpregs_to_thread): Likewise.
5644 (aarch64_linux_get_debug_reg_capacity): Likewise.
5645 * arm-linux-nat.c (get_thread_id): Remove.
5646 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5647 * xtensa-linux-nat.c (get_thread_id): Remove.
5648 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5649 * arm-linux-nat.c (get_thread_id): Remove.
5650 (GET_THREAD_ID): Remove.
5651 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5652 (store_fpregs, fetch_regs, store_regs): Likewise.
5653 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5654 (fetch_vfp_regs, store_vfp_regs): Likewise.
5655 (arm_linux_read_description): Likewise.
5656 (arm_linux_get_hwbp_cap): Likewise.
5657 * xtensa-linux-nat.c (get_thread_id): Remove.
5658 (GET_THREAD_ID): Remove.
5659 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5662 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5664 * python/py-linetable.c: Fix case of Linetable to LineTable
5665 in docstrings and code comments.
5666 * python/py-symtab.c: Same.
5668 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5670 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5672 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5675 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5678 2015-08-04 Pedro Alves <palves@redhat.com>
5680 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5681 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5682 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5683 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5684 (td_thr_validate_ftype, td_thr_get_info_ftype)
5685 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5686 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5688 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5689 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5690 local macros and use them instead of verbose_dlsym and dlsym
5693 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5695 * nios2-tdep.h: Include opcode/nios2.h here.
5696 (NIOS2_CDX_OPCODE_SIZE): New.
5697 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5698 * nios2-tdep.c: Don't include opcode/nios2.h here.
5699 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5701 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5702 (nios2_match_addi, nios2_match_orhi): Likewise.
5703 (nios2_match_stw, nios2_match_ldw): Likewise.
5704 (nios2_match_rdctl): Likewise.
5705 (nios2_match_stwm, nios2_match_ldwm): New.
5706 (nios2_match_branch): Add cases for R2 encodings.
5707 (nios2_match_jmpi, nios2_match_calli): Likewise.
5708 (nios2_match_jmpr, nios2_match_callr): Likewise.
5709 (nios2_match_break, nios2_match_trap): Likewise.
5710 (nios2_in_epilogue_p): Add R2 support.
5711 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5713 (nios2_breakpoint_from_pc): Handle R2 instructions.
5714 (nios2_get_next_pc): Likewise. Adjust call to
5715 tdep->syscall_next_pc.
5716 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5717 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5718 instruction field macros instead of literal hex values.
5719 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5720 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5721 Use size field from OP instead of assuming all instructions
5723 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5725 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5727 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5728 variable warning with some compilers.
5730 2015-08-03 Yao Qi <yao.qi@linaro.org>
5732 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5733 in comment. Replace "rw" with "type".
5734 (arm_linux_remove_watchpoint): Change type of "rw" to
5735 "enum target_hw_bp_type".
5737 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5739 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5741 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5742 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5743 * mt-tdep.c (mt_skip_prologue): Likewise.
5744 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5746 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5748 * ada-exp.y (write_object_renaming): Replace struct
5749 ada_symbol_info with struct block_symbol. Update field
5750 references accordingly.
5751 (block_lookup, select_possible_type_sym): Likewise.
5752 (find_primitive_type): Likewise. Also update call to
5753 ada_lookup_symbol to extract the symbol itself.
5754 (write_var_or_type, write_name_assoc): Likewise.
5755 * ada-lang.h (struct ada_symbol_info): Remove.
5756 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5757 struct block_symbol.
5758 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5759 (ada_lookup_symbol): Return struct block_symbol instead of a
5761 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5762 with struct block_symbol.
5763 (resolve_subexp, ada_resolve_function, sort_choices,
5764 user_select_syms, is_nonfunction, add_defn_to_vec,
5765 num_defns_collected, defns_collected,
5766 symbols_are_identical_enums, remove_extra_symbols,
5767 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5768 ada_lookup_symbol_list, ada_iterate_over_symbols,
5769 ada_lookup_encoded_symbol, get_var_value): Likewise.
5770 (ada_lookup_symbol): Return a block_symbol instead of a mere
5771 symbol. Replace struct ada_symbol_info with struct
5773 (ada_lookup_symbol_nonlocal): Likewise.
5774 (standard_lookup): Make block passing explicit through
5775 lookup_symbol_in_language.
5776 * ada-tasks.c (get_tcb_types_info): Update the calls to
5777 lookup_symbol_in_language to extract the mere symbol out of the
5779 (ada_tasks_inferior_data_sniffer): Likewise.
5780 * ax-gdb.c (gen_static_field): Likewise for the call to
5782 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5784 (gen_expr): Likewise.
5785 * c-exp.y: Likewise. Remove uses of block_found.
5786 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5787 (classify_name): Likewise. Rename the "sym" local variable to
5789 * c-valprint.c (print_unpacked_pointer): Likewise.
5790 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5791 "sym" parameter from struct symbol * to struct block_symbol.
5792 Use it to remove uses of block_found. Deal with struct
5793 block_symbol from lookup functions.
5794 (gcc_convert_symbol): Likewise. Update the call to
5796 * compile/compile-object-load.c (compile_object_load): Deal with
5797 struct block_symbol from lookup functions.
5798 * cp-namespace.c (cp_lookup_nested_symbol_1,
5799 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5800 cp_search_static_and_baseclasses,
5801 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5802 cp_lookup_symbol_imports_or_template,
5803 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5804 lookup_namespace_scope, cp_lookup_nonlocal,
5805 find_symbol_in_baseclass): Return struct block_symbol instead of
5806 mere symbols and deal with struct block_symbol from lookup
5808 * cp-support.c (inspect_type, replace_typedefs,
5809 cp_lookup_rtti_type): Deal with struct block_symbol from
5811 * cp-support.h (cp_lookup_symbol_nonlocal,
5812 cp_lookup_symbol_from_namespace,
5813 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5814 Return struct block_symbol instead of mere symbols.
5815 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5817 Deal with struct block_symbol from lookup functions. Remove
5818 uses of block_found.
5819 * eval.c (evaluate_subexp_standard): Update call to
5820 cp_lookup_symbol_namespace.
5821 * f-exp.y: Deal with struct block_symbol from lookup functions.
5822 Remove uses of block_found.
5824 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5825 lookup_enum, lookup_template_type, check_typedef): Deal with
5826 struct block_symbol from lookup functions.
5827 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5828 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5829 (gdbscm_lookup_global_symbol): Likewise.
5830 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5831 * go-exp.y: Likewise. Remove uses of block_found.
5832 (package_name_p, classify_packaged_name, classify_name):
5834 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5835 * jv-exp.y (push_variable): Likewise.
5836 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5837 * language.c (language_bool_type): Likewise.
5838 * language.h (struct language_defn): Update
5839 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5841 * linespec.c (find_label_symbols): Deal with struct block_symbol
5842 from lookup functions.
5843 * m2-exp.y: Likewise. Remove uses of block_found.
5845 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5846 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5847 * p-exp.y: Likewise. Remove uses of block_found.
5849 * p-valprint.c (pascal_val_print): Likewise.
5850 * parse.c (write_dollar_variable): Likewise. Remove uses of
5852 * parser-defs.h (struct symtoken): Turn the SYM field into a
5853 struct block_symbol.
5854 * printcmd.c (address_info): Deal with struct block_symbol from
5856 * python/py-frame.c (frapy_read_var): Likewise.
5857 * python/py-symbol.c (gdbpy_lookup_symbol,
5858 gdbpy_lookup_global_symbol): Likewise.
5859 * skip.c (skip_function_command): Likewise.
5860 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5861 block_symbol instead of a mere symbol.
5862 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5863 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5864 * solib.c (solib_global_lookup): Likewise.
5865 * solist.h (solib_global_lookup): Likewise.
5866 (struct target_so_ops): Update lookup_lib_global_symbol to
5867 return a struct block_symbol rather than a mere symbol.
5868 * source.c (select_source_symtab): Deal with struct block_symbol
5869 from lookup functions.
5870 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5872 * symfile.c (set_initial_language): Likewise.
5873 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5875 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5876 (struct symbol_cache_slot): Turn the FOUND field into a struct
5878 (block_found): Remove.
5879 (eq_symbol_entry): Update to deal with struct block_symbol in
5881 (symbol_cache_lookup): Return a struct block_symbol rather than
5883 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5884 appropriately the cache slots. Update callers.
5885 (symbol_cache_dump): Update cache slots handling to the type
5887 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5888 lookup_symbol_aux, lookup_local_symbol,
5889 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5890 lookup_symbol_in_objfile_symtabs,
5891 lookup_symbol_in_objfile_from_linkage_name,
5892 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5893 lookup_symbol_in_static_block, lookup_static_symbol,
5894 lookup_global_symbol):
5895 Return a struct block_symbol rather than a mere symbol. Deal
5896 with struct block_symbol from other lookup functions. Remove
5897 uses of block_found.
5898 (lookup_symbol_in_block): Remove uses of block_found.
5899 (struct global_sym_lookup_data): Turn the RESULT field into a
5900 struct block_symbol.
5901 (lookup_symbol_global_iterator_cb): Update references to the
5903 (search_symbols): Deal with struct block_symbol from lookup
5905 * symtab.h (struct block_symbol): New structure.
5906 (block_found): Remove.
5907 (lookup_symbol_in_language, lookup_symbol,
5908 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5909 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5910 lookup_global_symbol_from_objfile): Return a struct block_symbol
5911 rather than just a mere symbol. Update comments to remove
5912 mentions of block_found.
5913 * valops.c (find_function_in_inferior,
5914 value_struct_elt_for_reference, value_maybe_namespace_elt,
5915 value_of_this): Deal with struct block_symbol from lookup
5917 * value.c (value_static_field, value_fn_field): Likewise.
5919 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5921 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5924 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5925 Pedro Alves <palves@redhat.com>
5927 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5928 type or value instead of integer.
5929 (aarch64_linux_insert_watchpoint): Likewise.
5930 (aarch64_linux_remove_watchpoint): Likewise.
5931 * ada-lang.c (ada_op_print_tab): Likewise.
5932 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5933 (amd64_linux_syscall_record_common): Likewise.
5934 * arch-utils.c (target_byte_order_user): Likewise.
5935 (default_byte_order): Likewise.
5936 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5937 (arm_linux_get_hwbp_type): Likewise.
5938 (arm_linux_hw_watchpoint_initialize): Likewise.
5939 (arm_linux_insert_watchpoint): Likewise.
5940 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5941 (arm_linux_syscall_record): Likewise.
5942 * breakpoint.c (update_watchpoint): Likewise.
5943 (breakpoint_here_p): Likewise.
5944 (bpstat_print): Likewise.
5945 (enable_breakpoint_disp): Likewise.
5946 * c-lang.c (c_op_print_tab): Likewise.
5947 * cli/cli-decode.c (add_info_alias): Likewise.
5948 * d-lang.c (d_op_print_tab): Likewise.
5949 * eval.c (evaluate_subexp_standard): Likewise.
5950 * f-exp.y (dot_ops): Likewise.
5951 (f77_keywords): Likewise.
5952 * f-lang.c (f_op_print_tab): Likewise.
5953 * go-lang.c (go_op_print_tab): Likewise.
5954 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5955 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5956 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5957 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5958 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5959 (struct scm_from_stringn_data): Likewise.
5960 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5961 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5962 (ia64_linux_remove_watchpoint): Likewise.
5963 (ia64_linux_can_use_hw_breakpoint): Likewise.
5964 * infrun.c (print_stop_event): Likewise.
5965 * jv-lang.c (java_op_print_tab): Likewise.
5966 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5967 * linux-nat.h (struct lwp_info): Likewise.
5968 * linux-thread-db.c (enable_thread_event): Likewise.
5969 * m2-lang.c (m2_op_print_tab): Likewise.
5970 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5971 (mi_cmd_stack_list_variables): Likewise.
5972 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5973 * mi/mi-out.c (mi_table_begin): Likewise.
5974 (mi_table_header): Likewise.
5975 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5976 (mips_linux_insert_watchpoint): Likewise.
5977 (mips_linux_remove_watchpoint): Likewise.
5978 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5979 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5980 (mips_linux_watch_type_to_irw): Likewise.
5981 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5982 (procfs_insert_hw_watchpoint): Likewise.
5983 (procfs_remove_hw_watchpoint): Likewise.
5984 (procfs_hw_watchpoint): Likewise.
5985 (procfs_can_use_hw_breakpoint): Likewise.
5986 (procfs_remove_hw_watchpoint): Likewise.
5987 (procfs_insert_hw_watchpoint): Likewise.
5988 * p-lang.c (pascal_op_print_tab): Likewise.
5989 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5990 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5991 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5992 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5993 (procfs_insert_watchpoint): Likewise.
5994 (procfs_remove_watchpoint): Likewise.
5995 * psymtab.c (recursively_search_psymtabs): Likewise.
5996 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5997 (m32r_insert_watchpoint): Likewise.
5998 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5999 (mips_insert_watchpoint): Likewise.
6000 (mips_remove_watchpoint): Likewise.
6001 * remote.c (watchpoint_to_Z_packet): Likewise.
6002 (remote_insert_watchpoint): Likewise.
6003 (remote_remove_watchpoint): Likewise.
6004 (remote_check_watch_resources): Likewise.
6005 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6006 (s390_remove_watchpoint): Likewise.
6007 (s390_can_use_hw_breakpoint): Likewise.
6008 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6009 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6010 * target.h (struct target_ops): Likewise.
6011 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6012 * ui-out.c (struct ui_out_hdr): Likewise.
6013 (append_header_to_list): Likewise.
6014 (get_next_header): Likewise.
6015 (verify_field): Likewise.
6016 (ui_out_begin): Likewise.
6017 (ui_out_field_int): Likewise.
6018 (ui_out_field_fmt_int): Likewise.
6019 (ui_out_field_skip): Likewise.
6020 (ui_out_field_string): Likewise.
6021 (ui_out_field_fmt): Likewise.
6022 * varobj.c (new_variable): Likewise.
6023 * x86-nat.c (x86_insert_watchpoint): Likewise.
6024 (x86_remove_watchpoint): Likewise.
6025 (x86_can_use_hw_breakpoint): Likewise.
6026 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6027 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6028 previously anonymous enumeration type..
6029 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6031 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6032 (target_debug_print_enum_bptype): New.
6033 * target-delegates.c: Regenerate.
6035 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6037 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6038 already says and disallow non-stack memory writes in the prologue.
6040 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6042 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6043 reflect how current GCC emits stack overflow checks. Match
6044 both trap and break instructions for backward compatbility.
6045 Disallow other trap and break instructions in the prologue.
6047 2015-07-30 Pedro Alves <palves@redhat.com>
6050 * linux-nat.c (wait_lwp): Report to the core when thread group
6053 2015-07-30 Pedro Alves <palves@redhat.com>
6054 Simon Marchi <simon.marchi@ericsson.com>
6057 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6058 mark the new thread as resumed. Remove STOPPING parameter.
6059 (wait_lwp): Adjust call to linux_handle_extended_wait.
6060 (linux_nat_filter_event): Adjust call to
6061 linux_handle_extended_wait.
6062 (resume_stopped_resumed_lwps): Add debug output.
6064 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6066 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6068 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6069 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6070 gdbarch_fast_tracepoint_valid_at.
6071 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6072 * gdbarch.h: Regenerate.
6073 * gdbarch.c: Regenerate.
6074 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6075 argument. Do not set it.
6076 * remote.c (remote_download_tracepoint): Adjust call to
6077 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6078 the instruction length.
6080 2015-07-30 Yao Qi <yao.qi@linaro.org>
6082 * arm-tdep.h (enum gdb_regnum): Move it to ...
6083 * arch/arm.h: ... here. New file.
6084 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6086 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6088 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6089 Change its type to int *.
6090 (decode_br): Rename link argument to is_blr. Change its type to
6092 (decode_cb): Rename op argument to is_cbnz. Change its type to
6094 (decode_tb): Rename op argument to is_tbnz. Change its type to
6095 int *. Set is_tbnz to either 1 or 0.
6096 (aarch64_analyze_prologue): Change type of is_link to int. Add
6097 new variables is_cbnz and is_tbnz. Adjust call to
6098 aarch64_decode_cb and aarch64_decode_tb.
6100 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6102 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6104 (mips_linux_new_thread): Likewise.
6105 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6107 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6109 * top.c: Include "tui/tui.h".
6110 (undo_terminal_modifications_before_exit): New static function.
6111 (quit_force): Use it.
6113 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6115 * target.c (terminal_state): Initialize to terminal_is_ours.
6117 2015-07-29 Yao Qi <yao.qi@linaro.org>
6120 * dcache.c (dcache_read_memory_partial): Call
6121 raw_memory_xfer_partial.
6122 * target.c (raw_memory_xfer_partial): Make it non-static.
6123 * target.h (raw_memory_xfer_partial): Declare.
6125 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6127 * c-valprint.c (c_val_print_array): Consider addressable memory
6129 (c_val_print_ptr): Likewise.
6130 (c_val_print_int): Likewise.
6131 * findvar.c (read_frame_register_value): Likewise.
6132 * valarith.c (find_size_for_pointer_math): Likewise.
6133 (value_ptrdiff): Likewise.
6134 (value_subscripted_rvalue): Likewise.
6135 * valops.c (read_value_memory): Likewise (and rename variables).
6136 (value_assign): Likewise.
6137 (value_repeat): Likewise.
6138 (value_array): Likewise.
6139 (value_slice): Likewise.
6140 * valprint.c (generic_val_print_ptr): Likewise.
6141 (generic_val_print_enum): Likewise.
6142 (generic_val_print_bool): Likewise.
6143 (generic_val_print_int): Likewise.
6144 (generic_val_print_char): Likewise.
6145 (generic_val_print_float): Likewise.
6146 (generic_val_print_decfloat): Likewise.
6147 (generic_val_print_complex): Likewise.
6148 (val_print_scalar_formatted): Likewise.
6149 (val_print_array_elements): Likewise.
6150 * value.c (set_value_parent): Likewise.
6151 (value_contents_copy_raw): Likewise.
6152 (set_internalvar_component): Likewise.
6153 (value_primitive_field): Likewise.
6154 (value_fetch_lazy): Likewise.
6155 * value.h (read_value_memory): Update comment.
6157 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6159 * value.c (get_value_arch): New function.
6160 * value.h (get_value_arch): New declaration.
6162 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6164 * value.c (struct value): Update comments.
6166 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6168 * gdbtypes.c (type_length_units): New function.
6169 * gdbtypes.h (type_length_units): New declaration.
6170 (struct type) <length>: Update comment.
6172 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6174 * valprint.c (generic_val_print): Factor out complex
6175 printing code to ...
6176 (generic_val_print_complex): ... this new function.
6178 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6180 * valprint.c (generic_val_print): Factor out decfloat
6181 printing code to ...
6182 (generic_val_print_decfloat): ... this new function.
6184 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6186 * valprint.c (generic_val_print): Factor out float
6187 printing code to ...
6188 (generic_val_print_float): ... this new function.
6190 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6192 * valprint.c (generic_val_print): Factor out char
6193 printing code to ...
6194 (generic_val_print_char): ... this new function.
6196 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6198 * valprint.c (generic_val_print): Factor out integer
6199 printing code to ...
6200 (generic_val_print_int): ... this new function.
6202 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6204 * valprint.c (generic_val_print): Factor out bool
6205 printing code to ...
6206 (generic_val_print_bool): ... this new function.
6208 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6210 * valprint.c (generic_val_print): Factor out function/method
6211 printing code to ...
6212 (generic_val_print_func): ... this new function.
6214 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6216 * valprint.c (generic_val_print): Factor out flags
6217 printing code to ...
6218 (generic_val_print_flags): ... this new function.
6220 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6222 * valprint.c (generic_val_print): Factor out enum
6223 printing code to ...
6224 (generic_val_print_enum): ... this new function.
6226 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6228 * valprint.c (generic_val_print): Factor out reference
6229 printing code to ...
6230 (generic_val_print_ref): ... this new function.
6232 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6234 * valprint.c (generic_val_print): Factor out memberptr
6235 printing code to ...
6236 (generic_val_print_memberptr): ... this new function.
6238 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6240 * valprint.c (generic_val_print): Factor out pointer
6241 printing code to ...
6242 (generic_val_print_ptr): ... this new function.
6244 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6246 * valprint.c (generic_val_print): Factor out array
6247 printing code to ...
6248 (generic_val_print_array): ... this new function.
6250 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6252 * valprint.c (generic_val_print): Factor out
6253 print_unpacked_pointer code to ...
6254 (print_unpacked_pointer): ... this new function.
6256 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6258 * event-top.c (handle_sigterm): Don't inspect
6259 target_can_async_p. Always set the quit flag and always mark
6260 the async signal handler.
6262 2015-07-27 Yao Qi <yao.qi@linaro.org>
6264 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6266 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6268 * remote.c (read_ptid): Return null_ptid when no thread id
6270 (remote_current_thread): Add log warning for malformed
6272 (remote_start_remote): Add log warning when current thread
6275 2015-07-24 Pedro Alves <palves@redhat.com>
6277 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6278 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6279 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6281 2015-07-24 Pedro Alves <palves@redhat.com>
6284 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6285 is resumed, and extend the debug log.
6287 2015-07-24 Pedro Alves <palves@redhat.com>
6289 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6291 2015-07-24 Pedro Alves <palves@redhat.com>
6293 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6295 * alpha-linux-nat.c: Likewise.
6296 * amd64-linux-nat.c: Likewise.
6297 * arm-linux-nat.c: Likewise.
6298 * hppa-linux-nat.c: Likewise.
6299 * i386-linux-nat.c: Likewise.
6300 * ia64-linux-nat.c: Likewise.
6301 * linux-fork.c: Likewise.
6302 * linux-nat.c: Likewise.
6303 * m32r-linux-nat.c: Likewise.
6304 * m68klinux-nat.c: Likewise.
6305 * mips-linux-nat.c: Likewise.
6306 * nat/linux-btrace.c: Likewise.
6307 * nat/linux-ptrace.c: Likewise.
6308 * nat/linux-ptrace.h
6309 * nat/mips-linux-watch.c: Likewise.
6310 * nat/x86-linux-dregs.c: Likewise.
6311 * ppc-linux-nat.c: Likewise.
6312 * s390-linux-nat.c: Likewise.
6313 * spu-linux-nat.c: Likewise.
6314 * tilegx-linux-nat.c: Likewise.
6315 * x86-linux-nat.c: Likewise.
6316 * xtensa-linux-nat.c: Likewise.
6318 2015-07-24 Pedro Alves <palves@redhat.com>
6320 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6321 __ptrace_request as first parameter type instead of int.
6322 (PTRACE_TYPE_ARG1): Define.
6323 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6324 that casts first argument to PTRACE_TYPE_ARG1.
6325 * config.in: Regenerate.
6326 * configure: Regenerate.
6328 2015-07-24 Pedro Alves <palves@redhat.com>
6330 * gdb_ptrace.h: Move ...
6331 * nat/gdb_ptrace.h: ... here.
6332 * inf-ptrace.c: Adjust.
6334 2015-07-24 Pedro Alves <palves@redhat.com>
6336 * acinclude.m4: Include ptrace.m4.
6337 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6338 * ptrace.m4: ... to this new file.
6340 2015-07-23 Doug Evans <dje@google.com>
6342 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6343 (load_cu): Handle dummy CUs.
6344 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6345 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6347 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6349 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6350 documentation to say that it returns a list rather than
6352 (linetable_object_methods): Update the docstring of the
6353 "source_line" entry.
6355 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6357 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6358 type to the recursive call instead of the original (maybe
6359 TYPE_CODE_TYPEDEF) type.
6361 2015-07-23 Yao Qi <yao.qi@linaro.org>
6363 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6364 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6365 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6367 2015-07-21 Yao Qi <yao.qi@linaro.org>
6369 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6370 Move it to nat/aarch64-linux-hw-point.c.
6371 (aarch64_linux_child_post_startup_inferior): Update.
6372 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6374 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6377 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6379 * common/btrace-common.c (btrace_data_append): Change case label.
6381 2015-07-20 Yao Qi <yao.qi@linaro.org>
6383 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6385 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6386 "unsigned long long".
6388 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6390 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6391 to be set for SEC_ALLOC sections too.
6393 2015-07-17 Yao Qi <yao.qi@linaro.org>
6395 * Makefile.in (HFILES_NO_SRCDIR): Add
6396 nat/aarch64-linux-hw-point.h.
6397 (aarch64-linux-hw-point.o): New rule.
6398 * nat/aarch64-linux-hw-point.h: New file.
6399 * nat/aarch64-linux-hw-point.c: New file.
6400 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6401 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6402 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6403 (AARCH64_HWP_ALIGNMENT): Likewise.
6404 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6405 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6406 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6407 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6408 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6409 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6410 (struct aarch64_debug_reg_state): Likewise.
6411 (struct arch_lwp_info): Likewise.
6412 (aarch64_linux_set_debug_regs): Likewise.
6413 (aarch64_notify_debug_reg_change): Remove static.
6414 (aarch64_align_watchpoint): Likewise.
6415 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6416 (aarch64_watchpoint_length): Likewise.
6417 (aarch64_point_encode_ctrl_reg): Likewise
6418 (aarch64_point_is_aligned): Likewise.
6419 (aarch64_dr_state_insert_one_point): Likewise.
6420 (aarch64_dr_state_remove_one_point): Likewise.
6421 (aarch64_handle_breakpoint): Likewise.
6422 (aarch64_handle_aligned_watchpoint): Likewise.
6423 (aarch64_handle_unaligned_watchpoint): Likewise.
6424 (aarch64_handle_watchpoint): Likewise.
6425 * config/aarch64/linux.mh (NAT_FILE): Add
6426 aarch64-linux-hw-point.o.
6428 2015-07-17 Yao Qi <yao.qi@linaro.org>
6430 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6431 state and don't call aarch64_get_debug_reg_state. All callers
6433 (aarch64_linux_insert_hw_breakpoint): Call
6434 aarch64_get_debug_reg_state earlier.
6435 (aarch64_linux_remove_hw_breakpoint): Likewise.
6436 (aarch64_handle_aligned_watchpoint): Add argument state and
6437 don't call aarch64_get_debug_reg_state. All callers update.
6438 (aarch64_handle_unaligned_watchpoint): Likewise.
6439 (aarch64_handle_watchpoint): Add argument state.
6440 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6442 (aarch64_linux_remove_watchpoint): Likewise.
6444 2015-07-17 Yao Qi <yao.qi@linaro.org>
6446 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6448 (aarch64_handle_unaligned_watchpoint): Likewise.
6450 2015-07-17 Yao Qi <yao.qi@linaro.org>
6452 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6453 argument type's type to 'enum target_hw_bp_type'.
6454 (aarch64_dr_state_remove_one_point): Likewise.
6455 (aarch64_handle_breakpoint): Likewise.
6456 (aarch64_linux_insert_hw_breakpoint): Likewise.
6457 (aarch64_linux_remove_hw_breakpoint): Likewise.
6458 (aarch64_handle_aligned_watchpoint): Likewise.
6460 2015-07-17 Yao Qi <yao.qi@linaro.org>
6462 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6463 ptid_get_pid instead of get_thread_id.
6465 2015-07-17 Yao Qi <yao.qi@linaro.org>
6467 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6468 (add_current_inferior_and_thread): Don't initialise ptid.
6470 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6472 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6473 unavailable if invalid.
6475 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6477 Revert the previous 6 commits:
6478 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6479 Move gdb_regex* to common/
6480 Prepare linux_find_memory_regions_full & co. for move
6481 Move linux_find_memory_regions_full & co.
6482 gdbserver build-id attribute generator
6483 Validate symbol file using build-id
6485 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6486 Jan Kratochvil <jan.kratochvil@redhat.com>
6488 Validate symbol file using build-id.
6489 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6490 and 'show validate-build-id'. Add build-id attribute.
6491 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6492 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6493 * solib-frv.c (_initialize_frv_solib): Ditto.
6494 * solib-spu.c (set_spu_solib_ops): Ditto.
6495 * solib-svr4.c: Include rsp-low.h.
6496 (NOTE_GNU_BUILD_ID_NAME): New define.
6497 (svr4_validate): New function.
6498 (svr4_copy_library_list): Duplicate field build_id.
6499 (library_list_start_library): Parse 'build-id' attribute.
6500 (svr4_library_attributes): Add 'build-id' attribute.
6501 (_initialize_svr4_solib): Assign validate value.
6502 * solib-target.c (solib.h): Include.
6503 (_initialize_solib_target): Assign validate value.
6504 * solib.c (validate_build_id, show_validate_build_id): New.
6505 (solib_map_sections): Use ops->validate.
6506 (clear_so): Free build_id.
6507 (default_solib_validate): New function.
6508 (_initialize_solib): Add "validate-build-id".
6509 * solib.h (default_solib_validate): New declaration.
6510 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6511 (target_so_ops): New field 'validate'.
6513 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6514 Jan Kratochvil <jan.kratochvil@redhat.com>
6516 gdbserver build-id attribute generator.
6517 * features/library-list-svr4.dtd (library-list-svr4): New
6518 'build-id' attribute.
6520 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6521 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 Move linux_find_memory_regions_full & co.
6524 * linux-tdep.c (nat/linux-maps.h): Include.
6525 (gdb_regex.h): Remove the include.
6526 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6527 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6528 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6529 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6530 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6531 and target/target.h.
6532 (struct smaps_vmflags, read_mapping, decode_vmflags)
6533 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6534 (linux_find_memory_regions_full): Move from linux-tdep.c.
6535 * nat/linux-maps.h (read_mapping): New declaration.
6536 (linux_find_memory_region_ftype, enum filterflags): Moved from
6538 (linux_find_memory_regions_full): New declaration.
6539 * target.c (target/target-utils.h): Include.
6540 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6541 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6542 definitions to target/target-utils.c.
6543 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6544 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6546 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6547 (read_alloc): New declaration.
6548 (read_stralloc_func_ftype): New typedef.
6549 (read_stralloc): New declaration.
6550 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6552 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6553 Jan Kratochvil <jan.kratochvil@redhat.com>
6555 Prepare linux_find_memory_regions_full & co. for move.
6556 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6557 (linux_find_memory_regions_full): Change signature and prepare
6558 for moving to linux-maps.
6559 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6560 (linux_find_memory_regions_thunk): New.
6561 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6562 (linux_find_memory_regions_gdb): New.
6563 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6564 (linux_make_mappings_corefile_notes): Use
6565 linux_find_memory_regions_gdb.
6566 * target.c (read_alloc_pread_ftype): New typedef.
6567 (target_fileio_read_alloc_1_pread): New function.
6568 (read_alloc): Refactor from target_fileio_read_alloc_1.
6569 (read_stralloc_func_ftype): New typedef.
6570 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6571 (read_stralloc): Refactored from target_fileio_read_stralloc.
6572 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6574 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6576 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6578 (COMMON_OBS): Add gdb_regex.o.
6580 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6581 --without-included-regex and USE_INCLUDED_REGEX.
6582 * common/gdb_regex.c: New file from utils.c functions.
6583 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6584 file wrapping define name.
6585 * configure: Rebuilt.
6586 * configure.ac (gdb_use_included_regex, --without-included-regex)
6587 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6588 * gdb_regex.h: Move it to common/gdb_regex.h.
6589 * utils.c: Remove include gdb_regex.h.
6590 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6591 (compile_rx_or_error): Move them to common/gdb_regex.c.
6593 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6594 Jan Kratochvil <jan.kratochvil@redhat.com>
6596 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6597 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6598 common/target-utils.h.
6599 (COMMON_OBS): Add target-utils.o.
6600 (linux-maps.o, target-utils.o): New.
6601 * target/target-utils.c: New file.
6602 * target/target-utils.h: New file.
6603 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6604 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6605 * nat/linux-maps.c: New file.
6606 * nat/linux-maps.h: New file.
6608 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6609 Pedro Alves <palves@redhat.com>
6611 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6612 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6613 (perf_event_read_bts): Change the type of SIZE and READ.
6614 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6615 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6616 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6618 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6619 buffer size to UINT_MAX.
6620 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6622 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6623 <last_head>: Change type.
6624 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6625 * common/btrace-common.c (btrace_data_append): Change the type of
6627 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6630 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6632 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6633 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6635 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6636 (ada_array_length): Likewise.
6637 (find_parallel_type_by_descriptive_type): Likewise.
6638 (ada_check_typedef): Likewise.
6639 * arm-tdep.c (arm_return_in_memory): Likewise.
6640 * ax-gdb.c (gen_trace_static_fields): Likewise.
6641 (gen_struct_ref_recursive): Likewise.
6642 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6643 (variable: block COLONCOLON name): Likewise.
6644 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6645 * c-lang.c (classify_type): Likewise.
6646 * c-typeprint.c (c_print_type): Likewise.
6647 (c_print_typedef): Likewise.
6648 (c_type_print_base): Likewise.
6649 * c-valprint.c (c_val_print): Likewise.
6650 * compile/compile-c-types.c (convert_type): Likewise.
6651 * compile/compile-object-load.c (get_out_value_type): Likewise.
6652 * completer.c (add_struct_fields): Likewise.
6653 (expression_completer): Likewise.
6654 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6655 (cp_lookup_nested_symbol_1): Likewise.
6656 (cp_lookup_nested_symbol): Likewise.
6657 * cp-valprint.c (cp_print_value_fields): Likewise.
6658 (cp_print_static_field): Likewise.
6659 * d-valprint.c (d_val_print): Likewise.
6660 * eval.c (evaluate_subexp_standard): Likewise.
6661 (evaluate_subexp_for_sizeof): Likewise.
6662 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6663 * f-typeprint.c (f_type_print_base): Likewise.
6664 * f-valprint.c (f_val_print): Likewise.
6665 * gdbtypes.c (get_discrete_bounds): Likewise.
6666 (create_array_type_with_stride): Likewise.
6667 (type_name_no_tag_or_error): Likewise.
6668 (lookup_struct_elt_type): Likewise.
6669 (get_unsigned_type_max): Likewise.
6670 (internal_type_vptr_fieldno): Likewise.
6671 (set_type_vptr_fieldno): Likewise.
6672 (internal_type_vptr_basetype): Likewise.
6673 (set_type_vptr_basetype): Likewise.
6674 (get_vptr_fieldno): Likewise.
6675 (is_integral_type): Likewise.
6676 (is_scalar_type): Likewise.
6677 (is_scalar_type_recursive): Likewise.
6678 (distance_to_ancestor): Likewise.
6679 (is_unique_ancestor_worker): Likewise.
6680 (check_types_equal): Likewise.
6681 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6683 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6685 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6686 also test for language_d.
6687 (dwarf2_compute_name): Likewise.
6688 (read_func_scope): Likewise.
6689 (read_structure_type): Likewise.
6690 (new_symbol_full): Likewise.
6691 (determine_prefix): Likewise.
6692 (read_import_statement): Use dot as the separator for language_d.
6693 (typename_concat): Likewise, but don't prefix the D main function.
6695 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6697 * nat/linux-namespaces.c (setns): Rename from this ...
6698 (do_setns): ... to this. Support calling setns if it exists.
6699 (mnsh_handle_setns): Call do_setns.
6701 2015-07-13 Yao Qi <yao.qi@linaro.org>
6703 * exec.c (exec_file_attach): Add period at the end of error
6706 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6708 * tui/tui-win.c (window_name_completer): New function.
6709 (focus_completer): Call window_name_completer. All old content
6710 moved into window_name_completer.
6711 (winheight_completer): New function.
6712 (_initialize_tui_win): Rename variable. Add completer to
6713 winheight command. Update doc string on winheight.
6715 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6717 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6718 all nios2 mach variants.
6720 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6722 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6723 of target_read_memory.
6725 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6727 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6729 (parse_scrolling_args): Likewise.
6731 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6733 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6734 names in this function.
6736 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6738 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6739 (CMD_NAME): Likewise.
6740 (DATA_NAME): Likewise.
6741 (DISASSEM_NAME): Likewise.
6742 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6743 (tui_set_win_height): Likewise.
6744 (parse_scrolling_args): Likewise.
6746 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6748 * record-btrace.c (record_btrace_goto_begin)
6749 (record_btrace_goto_end, record_btrace_goto): Move call to
6750 print_stack_frame ...
6751 (record_btrace_set_replay): ... here. Set stop_pc.
6752 * record-full.c (record_full_goto_entry): Set stop_pc.
6754 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6756 * NEWS: Mention support for tracepoints on aarch64-linux.
6758 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6760 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6762 (the_low_target): Install it.
6764 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6766 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6767 * gdb.trace/collection.exp: Likewise.
6768 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6769 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6770 * gdb.trace/report.exp: Likewise.
6771 * gdb.trace/trace-break.exp: Likewise.
6772 * gdb.trace/unavailable.exp: Likewise.
6773 * gdb.trace/while-dyn.exp: Likewise.
6775 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6777 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6778 (aarch64_gen_return_address): New function.
6779 (aarch64_gdbarch_init): Hook it.
6781 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6783 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6784 swallow NOT_AVAILABLE_ERROR.
6785 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6786 available_p is not set.
6787 (aarch64_stub_frame_unwind_stop_reason): New function.
6788 (aarch64_stub_unwind): Install it.
6790 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6792 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6794 (aarch64_make_prologue_cache_1): New function, factored out from
6795 aarch64_make_prologue_cache. Do not allocate cache. Set
6797 (aarch64_make_prologue_cache): Reimplement wrapping
6798 aarch64_make_prologue_cache_1, and swallowing
6799 NOT_AVAILABLE_ERROR.
6800 (aarch64_prologue_frame_unwind_stop_reason): New function.
6801 Return UNWIND_UNAVAILABLE if available_p is not set.
6802 (aarch64_prologue_unwind): Install it.
6803 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6804 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6805 frame_id_build_unavailable_stack if available_p is not set.
6807 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6809 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6811 (aarch64_scan_prologue): Set prev_pc.
6812 (aarch64_make_prologue_cache): Set func.
6813 (aarch64_make_stub_cache): Set prev_pc.
6814 (aarch64_prologue_this_id): Remove local variables id, pc and
6815 func. Read prev_pc and func from cache.
6816 (aarch64_stub_this_id): Read prev_pc from cache.
6818 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6820 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6821 argument this_cache. Remove unused local variables reg and
6822 unwound_fp. Return early if this_cache is already set. Set
6824 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6826 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6828 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6829 New argument this_cache. Return early if this_cache is already
6830 set. Set this_cache.
6831 (aarch64_prologue_this_id): Update call to
6832 aarch64_make_prologue_cache.
6833 (aarch64_prologue_prev_register): Likewise.
6834 (aarch64_normal_frame_base): Likewise.
6836 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6838 * c-valprint.c (c_val_print): Factor out memberptr printing code
6839 from c_val_print to ...
6840 (c_val_print_memberptr): ... this new function.
6842 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6844 * c-valprint.c (c_val_print): Factor out int printing code to ...
6845 (c_val_print_int): ... this new function.
6847 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6849 * c-valprint.c (c_val_print): Factor out struct and union
6850 printing code to ...
6851 (c_val_print_struct): ... this new function ...
6852 (c_val_print_union): ... and this new function.
6854 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6856 * c-valprint.c (c_val_print): Factor out pointer printing code
6858 (c_val_print_ptr): ... this new function.
6860 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6862 * c-valprint.c (c_valprint): Factor our array printing code from
6864 (c_val_print_array): ... this new function.
6866 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6868 * c-valprint.c (c_val_print): Factor out pointer printing code
6870 (print_unpacked_pointer): ... this new function.
6872 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6874 * c-valprint.c (c_val_print): Remove an assignment to i and move
6877 2015-07-09 Yao Qi <yao.qi@linaro.org>
6879 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6880 argument ptid. Update comments. Caller update.
6882 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6884 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6887 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6889 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6891 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6893 * progspace.c (delete_program_space): Add missing spaces.
6895 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6897 * inferior.c (delete_inferior_1): Rename to ...
6898 (delete_inferior): ..., remove 'silent' parameter, delete
6899 program space when unused and remove call to prune_program_spaces.
6900 Remove the old, unused, delete_inferior.
6901 (delete_inferior_silent): Remove.
6902 (prune_inferiors): Change call from delete_inferior_1 to
6903 delete_inferior and remove 'silent' parameter. Remove call to
6904 prune_program_spaces.
6905 (remove_inferior_command): Idem.
6906 * inferior.h (delete_inferior_1): Rename to...
6907 (delete_inferior): ..., remove 'silent' parameter and remove the
6908 original delete_inferior.
6909 (delete_inferior_silent): Remove.
6910 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6911 delete_inferior_1 to delete_inferior and remove 'silent'
6913 * progspace.c (prune_program_spaces): Remove.
6914 (pspace_empty_p): Rename to...
6915 (program_space_empty_p): ... and make non-static.
6916 (delete_program_space): New.
6917 * progspace.h (prune_program_spaces): Remove declaration.
6918 (program_space_empty_p): New declaration.
6919 (delete_program_space): New declaration.
6920 * monitor.c (monitor_close): Replace call to
6921 delete_thread_silent and delete_inferior_silent with
6922 discard_all_inferiors.
6924 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6926 * defs.h (deprecated_register_changed_hook): Remove prototype.
6927 * interps.c (clear_iterpreter_hooks): Remove reference to
6928 deprecated_register_changed_hook.
6929 * top.c (deprecated_register_changed_hook): Remove prototype.
6930 * valops.c (value_assign): Remove reference to
6931 deprecated_register_changed_hook.
6932 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6933 Add comment documenting the function.
6934 (tui_register_changed_observer): Define.
6935 (tui_install_hooks): Remove reference to
6936 deprecated_register_changed_hook. Set
6937 tui_register_changed_observer.
6938 (tui_remove_hooks): Remove reference to
6939 deprecated_register_changed_hook. Unset
6940 tui_register_changed_observer.
6942 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6945 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6947 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6950 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6952 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6954 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6956 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6958 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6959 Use safe_strerror() instead of strerror().
6961 2015-07-07 Yao Qi <yao.qi@linaro.org>
6963 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6964 * features/arm-with-m-fpa-layout.c: Regenerated.
6965 * features/arm-with-m-vfp-d16.xml: Likewise.
6966 * features/arm-with-m-vfp-d16.c: Regenerated.
6967 * features/arm-with-m.xml: Likewise.
6968 * features/arm-with-m.c: Regenerated.
6969 * features/arm-with-neon.xml: Likewise.
6970 * features/arm-with-neon.c: Regenerated.
6971 * features/arm-with-vfpv2.xml: Likewise.
6972 * features/arm-with-vfpv2.c: Regenerated.
6973 * features/arm-with-vfpv3.xml: Likewise.
6974 * features/arm-with-vfpv3.c: Regenerated.
6976 2015-07-07 Yao Qi <yao.qi@linaro.org>
6978 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6980 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6982 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6983 if target is 32-bit.
6984 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6985 if target is 32-bit.
6986 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6987 if target is 32-bit.
6988 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6989 if target is 32-bit.
6990 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6991 (aarch64_linux_read_description): Return the right target
6993 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6994 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6995 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6998 2015-07-07 Yao Qi <yao.qi@linaro.org>
7000 * aarch32-linux-nat.c: New file.
7001 * aarch32-linux-nat.h: New file.
7002 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7003 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7004 aarch32_gp_regcache_supply.
7005 (store_regs): Move code to aarch32-linux-nat.c. Call
7006 aarch32_gp_regcache_collect.
7007 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7008 aarch32_vfp_regcache_supply.
7009 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7010 aarch32_vfp_regcache_collect.
7011 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7013 2015-07-07 Yao Qi <yao.qi@linaro.org>
7015 * arm-linux-nat.c (store_fpregister): Remove.
7016 (store_register): Likewise.
7017 (fetch_fpregister): Likewise.
7018 (fetch_register): Likewise.
7019 (arm_linux_store_inferior_registers): Call store_regs and
7020 store_fpregs instead.
7021 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7024 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7026 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7029 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7031 * NEWS: Create a new section for the next release branch.
7032 Rename the section of the current branch, now that it has
7035 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7037 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7038 * version.in: Bump version to 7.10.50.DATE-cvs.
7040 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7042 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7043 breakpoints in a special way.
7044 (remove_breakpoint): Likewise.
7045 (mark_breakpoints_out): Likewise.
7047 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7049 * doc/gdb.texinfo (TUI): Add comma after @xref.
7051 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7053 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7054 instead of casting the structure type.
7056 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7058 * valops.c (search_struct_field): Remove OFFSET parameter.
7059 (value_cast_structs): Adjust calls to search_struct_field.
7060 (value_struct_elt): Same.
7061 (find_overload_match): Same.
7063 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7065 * value.c (value_fetch_lazy): Update comment, change return
7067 * value.h (value_fetch_lazy): Change return value to void.
7069 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7071 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7072 (tui_win_name): Make parameter and result const.
7073 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7075 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7077 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7078 use printf_unfiltered.
7079 (set_mpx_cmd): Add missing trailing space to command string
7081 (_initialize_i386_tdep): Give the "mpx" prefix command its
7084 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7086 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7087 (enum rx_frame_type): New.
7088 (struct rx_prologue): Add new field `frame_type'.
7089 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7090 parameter in the prologue struct. Add code for recording
7091 locations of PC and PSW for fast interrupt and exception frames.
7092 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7093 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7094 (rx_frame_type): New function.
7095 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7096 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7098 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7099 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7100 RX_FRAME_TYPE_FAST_INTERRUPT.
7101 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7102 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7103 (rx_frame_unwind): Use rx_frame_sniffer instead of
7104 default_frame_sniffer.
7105 (rx_frame_unwind): New unwinder.
7106 (rx_gdbarch_init): Register new unwinder.
7108 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7110 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7111 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7112 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7114 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7116 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7118 Fix GCC false warning.
7119 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7121 2015-07-02 Yao Qi <yao.qi@linaro.org>
7123 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7124 typo in the debugging message.
7126 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7128 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7129 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7130 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7131 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7132 (btrace_maint_clear): New.
7133 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7134 (pt_print_packet, btrace_maint_decode_pt)
7135 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7136 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7137 (maint_btrace_packet_history_cmd)
7138 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7139 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7140 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7141 (maint_info_btrace_cmd, _initialize_btrace): New.
7142 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7143 (btrace_maint_packet_history, btrace_maint_info): New.
7144 (btrace_thread_info) <maint>: New.
7145 * NEWS: Announce it.
7147 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7149 * btrace.c (btrace_fetch): Append the new trace data.
7150 (btrace_clear): Clear the stored trace data.
7151 * btrace.h (btrace_thread_info) <data>: New.
7152 * common/btrace-common.h (btrace_data_clear)
7153 (btrace_data_append): New.
7154 * common/btrace-common.c (btrace_data_clear)
7155 (btrace_data_append): New.
7157 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7159 * nat/linux-btrace.c (linux_enable_bts): Check for
7160 PERF_ATTR_SIZE_VER5.
7161 Check for data_offset and data_size fields. Use them.
7163 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7165 * NEWS: Announce new commands "record btrace pt" and "record pt".
7166 Announce new options "set|show record btrace pt buffer-size".
7167 * btrace.c: Include "rsp-low.h".
7168 Include "inttypes.h".
7169 (btrace_add_pc): Add forward declaration.
7170 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7171 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7172 (btrace_compute_ftrace_pt): New.
7173 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7174 (check_xml_btrace_version): Update version check.
7175 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7176 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7177 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7178 (btrace_pt_children): New.
7179 (btrace_children): Add support for "pt".
7180 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7181 (btrace_conf_children): Add support for "pt".
7182 * btrace.h: Include "intel-pt.h".
7183 (btrace_pt_error): New.
7184 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7185 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7186 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7187 (struct btrace_config_pt): New.
7188 (struct btrace_config)<pt>: New.
7189 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7190 (struct btrace_data)<pt>: New.
7191 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7193 * features/btrace.dtd (btrace)<pt>: New.
7194 (pt, pt-config, cpu): New.
7195 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7196 (perf_event_pt_event_type, kernel_supports_pt)
7197 (linux_supports_pt): New.
7198 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7199 (linux_enable_bts): Free tinfo on error.
7200 (linux_enable_pt): New.
7201 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7202 (linux_disable_pt): New.
7203 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7204 (linux_fill_btrace_pt_config, linux_read_pt): New.
7205 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7206 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7207 (struct btrace_target_info)<pt>: New.
7208 * record-btrace.c (set_record_btrace_pt_cmdlist)
7209 (show_record_btrace_pt_cmdlist): New.
7210 (record_btrace_print_pt_conf): New.
7211 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7212 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7213 (cmd_record_btrace_pt_start): New.
7214 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7215 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7216 (_initialize_record_btrace): Add new commands.
7217 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7218 (remote_protocol_features): Add "Qbtrace:pt".
7219 Add "Qbtrace-conf:pt:size".
7220 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7221 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7222 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7223 (_initialize_remote): Add new commands.
7225 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7227 * configure.ac: check for libipt
7228 * configure: Regenerate.
7229 * config.in: Regenerate.
7230 * Makefile.in (LIBIPT): New.
7231 (CLIBS): Add $LIBIPT.
7232 * NEWS: document new configure options
7234 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7236 * compile/compile-object-load.c (compile_object_load): Replace debug
7237 message "lookup undefined ELF symbol" by 3 more specific messages.
7239 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7241 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7242 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7243 (rl78_gdbarch_init): Initialize rl78_psw_type.
7245 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7247 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7248 Update commentary. Always refresh the registers when frame
7249 information has changed.
7250 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7251 Change return type to int. Return 1 if frame information has
7252 changed, 0 otherwise.
7253 (tui_before_prompt): Update commentary.
7254 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7257 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7260 * frame.c (select_frame): Remove reference to
7261 deprecated_selected_frame_level_changed_hook.
7262 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7264 * stack.c (deprecated_selected_frame_level_changed_hook):
7266 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7268 (tui_refresh_frame_and_register_information): ... this. Bail
7269 out if there is no stack. Don't update register information
7270 unless registers_too_p is true.
7271 (tui_print_frame_info_listing_hook): Rename to ...
7272 (tui_dummy_print_frame_info_listing_hook): ... this.
7273 (tui_before_prompt): New function.
7274 (tui_normal_stop): New function.
7275 (tui_before_prompt_observer): New observer.
7276 (tui_normal_stop_observer): New observer.
7277 (tui_install_hooks): Set
7278 deprecated_print_frame_info_listing_hook to
7279 tui_dummy_print_frame_info_listing_hook. Register
7280 tui_before_prompt_observer to call tui_before_prompt and
7281 tui_normal_stop_observer to call tui_normal_stop. Remove
7282 reference to deprecated_selected_frame_level_changed_hook.
7283 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7284 and tui_normal_stop_observer. Remove reference to
7285 deprecated_selected_frame_level_changed_hook.
7287 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7290 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7291 return an int instead of void. Return whether the locator
7293 (tui_show_frame_info): If the locator info has not changed, then
7294 bail out early to avoid refreshing the windows.
7296 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7298 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7299 LOCATOR_WIN to tui_alloc_content.
7301 2015-06-30 Yao Qi <yao.qi@linaro.org>
7304 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7307 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7309 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7310 (rx_dwarf_reg_to_regnum): New function.
7311 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7314 2015-06-29 Pedro Alves <palves@redhat.com>
7317 * infcall.c (run_inferior_call): On infcall success, if the thread
7318 was marked stopped before, reset it back to stopped.
7319 * infrun.c (resume): Don't suppress the set_running calls when
7321 (normal_stop): Only discard the finish_thread_state cleanup if the
7324 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7326 * MAINTAINERS (Write After Approval): Update my email address.
7328 2015-06-26 Keith Seitz <keiths@redhat.com>
7329 Doug Evans <dje@google.com>
7332 * block.c (block_lookup_symbol): For non-function blocks,
7333 continue to search for a symbol with an exact domain match
7334 Otherwise, return any previously found "best domain" symbol.
7335 (block_lookup_symbol_primary): Likewise.
7337 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7339 * NEWS: Mention the new option "history remove-duplicates".
7340 * top.c (history_remove_duplicates): New static variable.
7341 (show_history_remove_duplicates): New static function.
7342 (gdb_add_history): Conditionally remove duplicate history
7344 (init_main): Add "history remove-duplicates" option.
7346 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7348 * tui/tui-win.c (focus_completer): New static function.
7349 (_initialize_tui_win): Set the completion function of the
7350 "focus" command to focus_completer.
7352 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7354 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7356 * symtab.c (find_function_start_sal): Likewise.
7358 2015-06-25 Gary Benson <gbenson@redhat.com>
7360 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7361 it is the empty string after trailing slashes have been stripped.
7363 2015-06-25 Gary Benson <gbenson@redhat.com>
7365 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7366 * infrun.c (follow_exec): Likewise.
7367 * remote.c (remote_filesystem_is_local): Likewise.
7368 * solib.c (solib_find_1): Likewise.
7370 2015-06-24 Keith Seitz <keiths@redhat.com>
7372 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7373 return value from lrealpath.
7375 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7377 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7379 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7381 * remote-sim.c: Include gdb_bfd.h.
7382 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7383 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7385 2015-06-24 Yao Qi <yao.qi@linaro.org>
7387 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7388 set_gdbarch_get_siginfo_type.
7389 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7390 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7391 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7392 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7393 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7395 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7396 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7397 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7398 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7400 2015-06-24 Gary Benson <gbenson@redhat.com>
7402 * common/buffer.c (stdint.h): Do not include.
7403 * common/print-utils.c (stdint.h): Likewise.
7404 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7405 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7406 * ft32-tdep.c (gdb_assert.h): Likewise.
7407 * guile/scm-utils.c (stdint.h): Likewise.
7408 * i386-linux-tdep.c (stdint.h): Likewise.
7409 * i386-tdep.c (stdint.h): Likewise.
7410 * nat/linux-btrace.c (stdint.h): Likewise.
7411 * nat/linux-btrace.h (stdint.h): Likewise.
7412 * nat/linux-ptrace.c (stdint.h): Likewise.
7413 * nat/mips-linux-watch.h (stdint.h): Likewise.
7414 * ppc-linux-nat.c (stdint.h): Likewise.
7415 * python/python-internal.h (stdint.h): Likewise.
7416 * stub-termcap.c (stdlib.h): Likewise.
7417 * target/target.h (stdint.h): Likewise.
7418 * xtensa-linux-nat.c (stdint.h): Likewise.
7420 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7422 * top.c (init_history): Look at errno after calling strtol to
7423 properly map large GDBHISTSIZE values to infinity.
7425 2015-06-23 Doug Evans <dje@google.com>
7427 * inferior.h (struct inferior_suspend_state): Delete, unused.
7428 All references deleted.
7430 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7432 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7433 (microblaze_push_dummy_call): Likewise.
7434 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7435 and set_gdbarch_push_dummy_call.
7437 2015-06-23 Yao Qi <yao.qi@linaro.org>
7439 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7440 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7441 (amd64_linux_store_inferior_registers): Likewise.
7442 * arm-linux-nat.c (fetch_fpregister): Likewise.
7443 (fetch_fpregs, store_fpregister): Likewise.
7444 (store_fpregister, store_fpregs): Likewise.
7445 (fetch_register, fetch_regs): Likewise.
7446 (store_register, store_regs): Likewise.
7447 (fetch_vfp_regs, store_vfp_regs): Likewise.
7448 (arm_linux_read_description): Check have_ptrace_getregset is
7449 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7451 * i386-linux-nat.c (fetch_xstateregs): Check
7452 have_ptrace_getregset is not TRIBOOL_TRUE.
7453 (store_xstateregs): Likewise.
7454 * linux-nat.c (have_ptrace_getregset): Change its type to
7456 * linux-nat.h (tribool): New enum.
7457 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7458 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7460 2015-06-19 Doug Evans <dje@google.com>
7462 * NEWS: Mention Sun's version of stabs is no longer supported.
7463 * elfread.c (free_elfinfo): Delete. All uses updated.
7464 (elfstab_offset_sections): Delete. All uses updated.
7465 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7466 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7468 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7469 All callers updated.
7471 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7473 * common/rsp-low.c (needs_escaping): New.
7474 (remote_escape_output): Add unit_size parameter. Refactor to
7475 support multi-byte addressable units. Rename parameters.
7476 * common/rsp-low.h (remote_escape_output): Add unit_size
7477 parameter and rename others. Update doc.
7478 * remote.c (align_for_efficient_write): New.
7479 (remote_write_bytes_aux): Add unit_size parameter and use it.
7480 Rename some variables. Update doc.
7481 (remote_xfer_partial): Get unit size and use it.
7482 (remote_read_bytes_1): Add unit_size parameter and use it.
7483 Rename some variables. Update doc.
7484 (remote_write_bytes): Same.
7485 (remote_xfer_live_readonly_partial): Same.
7486 (remote_read_bytes): Same.
7487 (remote_flash_write): Update call to remote_write_bytes_aux.
7488 (remote_write_qxfer): Update call to remote_escape_output.
7489 (remote_search_memory): Same.
7490 (remote_hostio_pwrite): Same.
7492 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7494 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7495 locations as inserted.
7496 Update and expand comment about permanent locations.
7497 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7498 Move comment to add_location_to_breakpoint.
7499 (update_global_location_list): Don't error out if a permanent
7500 breakpoint is not marked inserted.
7501 Don't error out if a non-permanent breakpoint location is inserted on
7502 top of a permanent breakpoint.
7504 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7506 * breakpoint.c (make_breakpoint_permanent): Remove unused
7508 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7510 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7513 * NEWS: Mention new GDBHISTSIZE behavior.
7514 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7515 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7517 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7519 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7520 * top.c (init_history): Read from GDBHISTSIZE instead of
7522 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7524 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7526 * top.c (gdb_safe_append_history): Do not call
7527 history_truncate_file if the history is not stifled.
7529 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7531 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7532 * syscalls/s390x-linux.xml: Likewise.
7534 2015-06-16 Michael Eager <eager@eagercon.com>
7536 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7538 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7540 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7541 target_terminal_ours_for_output() before calling
7542 tui_show_frame_info(), and restore the original terminal
7543 settings afterwards.
7545 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7547 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7549 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7551 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7553 (mi_cmd_data_write_memory_bytes): Same.
7555 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7557 * corefile.c (write_memory): Update doc.
7558 * gdbcore.h (write_memory): Same.
7560 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7562 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7563 (dump_mapping_p): Use it for parameter filterflags.
7564 (linux_find_memory_regions_full): Use it for variable filterflags.
7566 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7567 Jan Kratochvil <jan.kratochvil@redhat.com>
7569 Merge multiple hex conversions.
7570 * monitor.c: Include rsp-low.h.
7571 (fromhex): Remove definition.
7573 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7574 Jan Kratochvil <jan.kratochvil@redhat.com>
7576 Move utility functions to common/.
7577 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7578 Move defs to common/common-utils.c.
7579 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7580 (skip_to_space_const): Move decls to common/common-utils.h.
7581 * common/common-defs.h: Move include of common-types.h before
7583 * common/common-utils.c: Include host-defs.h and ctype.h.
7584 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7586 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7588 * common/common-utils.h (strtoulst): Move decl from utils.h.
7589 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7590 Move from cli/cli-utils.h.
7591 * common/host-defs.h: Include limits.h.
7592 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7593 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7594 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7595 common/common-utils.h.
7596 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7597 (strtoulst): Move to common/common-utils.c.
7598 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7600 2015-06-15 Yao Qi <yao.qi@linaro.org>
7602 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7604 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7606 * build-id.c: Don't include elf-bfd.h.
7607 (build_id_bfd_get): Use bfd_build_id.
7608 (build_id_verify): Ditto.
7609 * build-id.h: Ditto.
7610 (find_separate_debug_file_by_buildid): Ditto.
7611 * python/py-objfile.c: Don't include elf-bfd.h.
7612 (objfpy_get_build_id) Use bfd_build_id.
7613 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7614 * coffread.c: Include build-id.h.
7615 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7617 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7619 * windows-nat.c (do_windows_fetch_inferior_registers)
7620 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7621 conditional with __CYGWIN__.
7623 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7625 * completer.c: Add arch-utils.h include.
7626 (enum reg_completer_targets): New enum.
7627 (reg_or_group_completer_1): New function containing old
7628 reg_or_group_completer, add and use new parameter to control what
7629 is completed on. Use get_current_arch rather than architecture of
7630 currently selected frame.
7631 (reg_or_group_completer): Call new reg_or_group_completer_1.
7632 (reggroup_completer): Call new reg_or_group_completer_1.
7633 * completer.h (reggroup_completer): Add declaration.
7634 * tui/tui-regs.c: Add 'completer.h' include.
7635 (tui_reg_next_command): Renamed to...
7636 (tui_reg_next): ...this. Adjust parameters and return rather than
7638 (tui_reg_prev_command): Renamed to...
7639 (tui_reg_prev): ...this. Adjust parameters and return rather than
7641 (tui_reg_float_command): Delete.
7642 (tui_reg_general_command): Delete.
7643 (tui_reg_system_command): Delete.
7644 (tui_reg_command): Rewrite to perform switching of register group.
7646 (tuireglist): Remove.
7647 (tui_reggroup_completer): New function.
7648 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7649 creation of 'tui reg' command.
7650 * NEWS: Add comment about 'tui reg' changes.
7652 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7654 * target.c (target_read): Consider addressable unit size when
7655 reading from a memory object.
7656 (read_memory_robust): Same.
7657 (read_whatever_is_readable): Same.
7658 (target_write_with_progress): Consider addressable unit size
7659 when writing to a memory object.
7660 * target.h (target_read): Update documentation.
7661 (target_write): Add documentation.
7663 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7665 * arch-utils.h (default_addressable_memory_unit_size): New.
7666 * arch-utils.c (default_addressable_memory_unit_size): New.
7667 * gdbarch.sh (addressable_memory_unit_size): New.
7668 * gdbarch.h: Re-generate.
7669 * gdbarch.c: Re-generate.
7671 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7673 * target.c (target_read): Rename variables and use
7675 (target_read_with_progress): Same.
7676 (read_memory_robust): Constify parameters and rename
7678 (read_whatever_is_readable): Constify parameters,
7679 rename variables, adjust formatting.
7680 * target.h (read_memory_robust): Constify parameters.
7682 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7684 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7685 synthetic (non-AltiVec) vector types.
7686 (ppc64_sysv_abi_return_value): Likewise.
7688 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7690 PR breakpoints/16465
7691 * breakpoint.c (create_breakpoint): Save extra_string for
7692 pending breakpoints.
7694 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7696 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7697 and bt_mask to CORE_ADDR.
7699 2015-06-11 Gary Benson <gbenson@redhat.com>
7701 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7702 (mnsh_recv_message): Likewise.
7704 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7706 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7707 long long int and plongest instead of %ll.
7709 2015-06-11 Gary Benson <gbenson@redhat.com>
7711 * nat/linux-namespaces.c (gdb_wait.h): New include.
7712 (sys/wait.h): Do not include.
7714 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7716 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7717 end_sequence is true.
7719 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7722 * solib-target.c (library_list_start_list): Use explicit NULL
7725 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7727 * solib-target.c (library_list_start_list): Do not dereference
7728 variable version in its initialization. Make the VERSION check handle
7730 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7732 2015-06-10 Gary Benson <gbenson@redhat.com>
7734 * NEWS: Announce support for direct access of executable and
7735 shared library files when attaching to inferiors in containers
7736 on GNU/Linux systems.
7738 2015-06-10 Gary Benson <gbenson@redhat.com>
7740 * remote.c (struct remote_state) <fs_pid>: New field.
7741 (new_remote_state): Initialize the above.
7742 (PACKET_vFile_setfs): New enum value.
7743 (remote_hostio_set_filesystem): New function.
7744 (remote_hostio_open): Call the above.
7745 (remote_hostio_unlink): Likewise.
7746 (remote_hostio_readlink): Likewise.
7747 (_initialize_remote): Register new "set/show remote
7748 hostio-setfs-packet" command.
7749 * NEWS: Announce new vFile:setfs packet.
7751 2015-06-10 Gary Benson <gbenson@redhat.com>
7753 * linux-nat.c (nat/linux-namespaces.h): New include.
7754 (fileio.h): Likewise.
7755 (linux_nat_filesystem_is_local): New function.
7756 (linux_nat_fileio_pid_of): Likewise.
7757 (linux_nat_fileio_open): Likewise.
7758 (linux_nat_fileio_readlink): Likewise.
7759 (linux_nat_fileio_unlink): Likewise.
7760 (linux_nat_add_target): Initialize to_filesystem_is_local,
7761 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7762 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7764 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7766 2015-06-10 Gary Benson <gbenson@redhat.com>
7768 * target.h (struct inferior): New forward declaration.
7769 (struct target_ops) <to_filesystem_is_local>: Update comment.
7770 (struct target_ops) <to_fileio_open>: New argument inf.
7771 Update comment. All implementations updated.
7772 (struct target_ops) <to_fileio_unlink>: Likewise.
7773 (struct target_ops) <to_fileio_readlink>: Likewise.
7774 (target_filesystem_is_local): Update comment.
7775 (target_fileio_open): New argument inf. Update comment.
7776 (target_fileio_unlink): Likewise.
7777 (target_fileio_readlink): Likewise.
7778 (target_fileio_read_alloc): Likewise.
7779 (target_fileio_read_stralloc): Likewise.
7780 * target.c (target_fileio_open): New argument inf.
7781 Pass inf to implementation. Update debug printing.
7782 (target_fileio_unlink): Likewise.
7783 (target_fileio_readlink): Likewise.
7784 (target_fileio_read_alloc_1): New argument inf. Pass inf
7785 to target_fileio_open.
7786 (target_fileio_read_alloc): New argument inf. Pass inf to
7787 target_fileio_read_alloc_1.
7788 (target_fileio_read_stralloc): Likewise.
7789 * gdb_bfd.c (inferior.h): New include.
7790 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7791 argument with new argument "inferior". Pass inferior to
7793 (gdb_bfd_open): Supply inferior argument to
7794 gdb_bfd_iovec_fileio_open.
7795 * linux-tdep.c (linux_info_proc): Supply inf argument to
7796 relevant target_fileio calls.
7797 (linux_find_memory_regions_full): Likewise.
7798 (linux_fill_prpsinfo): Likewise.
7799 * remote.c (remote_filesystem_is_local): Supply inf
7800 argument to remote_hostio_open.
7801 (remote_file_put): Likewise.
7802 (remote_file_get): Likewise.
7803 (remote_file_delete): Supply inf argument to
7804 remote_hostio_unlink.
7806 2015-06-10 Gary Benson <gbenson@redhat.com>
7808 * inf-child.c (inf_child_fileio_open): Replace comment.
7809 (inf_child_fileio_pwrite): Likewise.
7810 (inf_child_fileio_pread): Likewise.
7811 (inf_child_fileio_fstat): Insert blank line before comment.
7812 (inf_child_fileio_close): Replace comment.
7813 (inf_child_fileio_unlink): Likewise.
7814 (inf_child_fileio_readlink): Likewise.
7815 * remote.c (remote_hostio_open): Likewise.
7816 (remote_hostio_pread): Likewise.
7817 (remote_hostio_pwrite): Likewise.
7818 (remote_hostio_close): Likewise.
7819 (remote_hostio_unlink): Likewise.
7820 (remote_hostio_readlink): Likewise.
7821 (remote_hostio_fstat): Likewise.
7822 (remote_filesystem_is_local): Likewise.
7823 * target.c (target_fileio_open): Likewise.
7824 (target_fileio_pwrite): Likewise.
7825 (target_fileio_pread): Likewise.
7826 (target_fileio_fstat): Insert blank line before comment.
7827 (target_fileio_close): Replace comment.
7828 (target_fileio_unlink): Likewise.
7829 (target_fileio_readlink): Likewise.
7830 (target_fileio_read_alloc): Likewise.
7831 (target_fileio_read_stralloc): Likewise.
7833 2015-06-10 Gary Benson <gbenson@redhat.com>
7835 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7836 (check_pid_namespace_match): Use linux_ns_same rather than
7837 linux_proc_pid_get_ns to spot PID namespace mismatches.
7838 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7839 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7841 2015-06-10 Gary Benson <gbenson@redhat.com>
7843 * configure.ac (AC_CHECK_FUNCS): Add setns.
7844 * config.in: Regenerate.
7845 * configure: Likewise.
7846 * nat/linux-namespaces.h: New file.
7847 * nat/linux-namespaces.c: Likewise.
7848 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7849 (linux-namespaces.o): New rule.
7850 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7851 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7852 * config/arm/linux.mh (NATDEPFILES): Likewise.
7853 * config/i386/linux.mh (NATDEPFILES): Likewise.
7854 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7855 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7856 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7857 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7858 * config/mips/linux.mh (NATDEPFILES): Likewise.
7859 * config/pa/linux.mh (NATDEPFILES): Likewise.
7860 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7861 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7862 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7863 * config/s390/linux.mh (NATDEPFILES): Likewise.
7864 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7865 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7866 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7867 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7869 2015-06-10 Gary Benson <gbenson@redhat.com>
7871 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7872 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7873 (make_cleanup_close): Likewise.
7874 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7875 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7876 (make_cleanup_close): Likewise.
7878 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7880 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7881 from SuspendThread().
7883 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7885 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7886 from OutputDebugString.
7888 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7889 Mircea Gherzan <mircea.gherzan@intel.com>
7891 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7892 MPX_BT_MASK_32): New macros.
7893 (i386_mpx_set_bounds): New function that implements
7894 the command "set-mpx-bound".
7895 (i386_mpx_enabled): Helper function to test MPX availability.
7896 (i386_mpx_bd_base): Helper function to calculate the base directory
7898 (i386_mpx_get_bt_entry): Helper function to access a bound
7900 (i386_mpx_print_bounds): Effectively display bound information.
7901 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7903 (_initialize_i386_tdep):
7904 Add "bound" to the commands "show mpx" and "set mpx" commands.
7905 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7906 and "show mpx" commands.
7907 * NEWS: List new commands for MPX support.
7909 2015-06-09 Gary Benson <gbenson@redhat.com>
7911 * common/fileio.h (fileio_to_host_mode): New declaration.
7912 * common/fileio.c (fileio_to_host_mode): New Function.
7913 * inf-child.c (inf_child_fileio_open): Process mode argument
7914 with fileio_to_host_mode.
7916 2015-06-09 Gary Benson <gbenson@redhat.com>
7918 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7921 2015-06-05 Gary Benson <gbenson@redhat.com>
7923 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7924 * remote.c (remote_filesystem_is_local): ...here.
7926 2015-06-04 Yao Qi <yao.qi@linaro.org>
7928 * gdbarch.c: Regenerate it.
7930 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7932 * arch-utils.c (default_infcall_munmap): New.
7933 * arch-utils.h (default_infcall_munmap): New declaration.
7934 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7935 (munmap_list_free, munmap_listp_free_cleanup): New.
7936 (struct setup_sections_data): Add field munmap_list_headp.
7937 (setup_sections): Call munmap_list_add.
7938 (compile_object_load): New variable munmap_list_head, initialize
7939 setup_sections_data.munmap_list_headp, return munmap_list_head.
7940 * compile/compile-object-load.h (struct munmap_list): New declaration.
7941 (struct compile_module): Add field munmap_list_head.
7942 (munmap_list_free): New declaration.
7943 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7945 (do_module_cleanup): Call munmap_list_free.
7946 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7947 * gdbarch.c: Regenerate.
7948 * gdbarch.h: Regenerate.
7949 * gdbarch.sh (infcall_munmap): New.
7950 * linux-tdep.c (linux_infcall_munmap): New.
7951 (linux_init_abi): Install it.
7953 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7956 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7958 2015-06-02 Yao Qi <yao.qi@linaro.org>
7960 * i386-linux-nat.c: Include linux-nat.h.
7962 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7963 Jan Kratochvil <jan.kratochvil@redhat.com>
7966 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7968 * dwarf2loc.c (chain_candidate): Likewise.
7970 2015-06-01 Yao Qi <yao.qi@linaro.org>
7972 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7973 (store_vfp_regs): Use PTRACE_SETREGSET.
7975 2015-06-01 Yao Qi <yao.qi@linaro.org>
7977 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7978 (fetch_fpregs): Likewise.
7979 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7980 (store_fpregs): Likewise.
7982 2015-06-01 Yao Qi <yao.qi@linaro.org>
7984 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7985 (fetch_regs): Likewise.
7986 (store_regs): Use PTRACE_SETREGSET.
7987 (store_register): Likewise.
7989 2015-06-01 Yao Qi <yao.qi@linaro.org>
7991 * arm-linux-nat.c (arm_linux_read_description): Check whether
7992 kernel supports PTRACE_GETREGSET.
7994 2015-06-01 Yao Qi <yao.qi@linaro.org>
7996 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7997 * linux-nat.c: ... here.
7998 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8000 * linux-nat.h: ... here.
8002 2015-06-01 Yao Qi <yao.qi@linaro.org>
8004 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8005 * i386-linux-nat.c: Likewise.
8006 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8007 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8008 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8009 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8010 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8012 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8014 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8015 compatible to what read_child and write_child return. This
8016 unbreaks that DJGPP build of GDB which was broken since v7.7.
8018 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8020 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8022 2015-05-29 Roland McGrath <mcgrathr@google.com>
8025 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8026 rather than internal_error for an unrecognized value.
8028 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8030 * xtensa-tdep.c (xtensa_pseudo_register_read)
8031 (xtensa_pseudo_register_write): Don't alias last pseudo register
8034 2015-05-28 Don Breazeal <donb@codesourcery.com>
8036 * infrun.c (follow_fork_inferior): Ensure the use of
8037 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8040 2015-05-28 Doug Evans <dje@google.com>
8042 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8044 2015-05-28 Yao Qi <yao.qi@linaro.org>
8046 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8047 (arm_linux_fetch_inferior_registers): Use
8048 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8049 (arm_linux_store_inferior_registers): Likewise.
8050 (arm_linux_read_description): Don't set
8051 arm_linux_has_wmmx_registers.
8052 * arm-tdep.c (arm_gdbarch_init): Set
8053 tdep->have_wmmx_registers according target descriptions.
8054 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8057 2015-05-28 Yao Qi <yao.qi@linaro.org>
8059 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8060 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8061 instead of arm_linux_vfp_register_count.
8062 (store_vfp_regs): Likewise.
8063 (arm_linux_fetch_inferior_registers): Likewise.
8064 (arm_linux_store_inferior_registers): Likewise.
8065 (arm_linux_read_description): Don't set
8066 arm_linux_vfp_register_count.
8067 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8069 * arm-tdep.c (arm_gdbarch_init): Add assert on
8071 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8072 field to vfp_register_count. All users updated.
8074 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8076 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8077 ELFOSABI_GNU binaries.
8079 2015-05-27 Doug Evans <dje@google.com>
8081 * dwarf2read.c (lnp_state_machine): New typedef.
8082 (lnp_reader_state): New typedef.
8083 (dwarf_record_line_1): Renamed from dwarf_record_line.
8084 All callers updated.
8085 (dwarf_record_line): New function.
8086 (init_lnp_state_machine): New function.
8087 (check_line_address): Replace p_record_line parameter with state.
8088 All callers updated.
8089 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8090 Update to record state in lnp_state_machine.
8092 2015-05-27 Doug Evans <dje@google.com>
8094 * dwarf2read.c (record_line_ftype): New typedef.
8095 (check_line_address): New function.
8096 (dwarf_decode_lines_1): Call it.
8098 2015-05-27 Doug Evans <dje@google.com>
8100 * NEWS: Mention "set debug dwarf-line".
8101 * dwarf2read.c (dwarf_line_debug): New static global.
8102 (add_include_dir): Add debug dwarf-line support.
8103 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8104 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8106 2015-05-27 Doug Evans <dje@google.com>
8108 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8109 All callers updated.
8110 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8111 * cp-support.h (cp_lookup_nested_symbol): Update.
8113 2015-05-27 Doug Evans <dje@google.com>
8116 * block.c (block_find_symbol): New function.
8117 (block_find_non_opaque_type): Ditto.
8118 (block_find_non_opaque_type_preferred): Ditto.
8119 * block.h (block_symbol_matcher_ftype): New typedef.
8120 (block_find_symbol): Declare.
8121 (block_find_non_opaque_type): Ditto.
8122 (block_find_non_opaque_type_preferred): Ditto.
8123 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8124 * psymtab.c (psym_lookup_symbol): Ditto.
8125 * symtab.c (basic_lookup_transparent_type_1): New function.
8126 (basic_lookup_transparent_type): Call it.
8128 2015-05-27 Yao Qi <yao.qi@linaro.org>
8130 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8131 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8133 2015-05-27 Yao Qi <yao.qi@linaro.org>
8135 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8137 (aarch64_record_load_store): Likewise.
8139 2015-05-26 Doug Evans <dje@google.com>
8141 PR c++/18141, c++/18417.
8142 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8145 2015-05-26 Doug Evans <dje@google.com>
8147 * NEWS: Add entries for command renamings.
8148 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8150 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8151 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8153 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8154 All callers updated. Fix spelling of DWARF in help text.
8155 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8157 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8159 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8160 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8161 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8163 (show_dwarf_always_disassemble): Renamed from
8164 show_dwarf2_always_disassemble. All callers updated.
8165 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8166 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8167 "set/show dwarf max-cache-age". Rename
8168 "set/show dwarf2 always-disassemble" to
8169 "set/show dwarf always-disassemble". Rename
8170 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8171 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8173 2015-05-26 Doug Evans <dje@google.com>
8176 * python/py-lazy-string.c (stpy_convert_to_value): Use
8177 gdbpy_gdb_memory_error not PyExc_MemoryError.
8178 (gdbpy_create_lazy_string_object): Ditto.
8180 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8182 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8184 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8186 * tui/tui-regs.c (tui_reg_prev_command): New function.
8187 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8188 * reggroups.c (reggroup_prev): New function.
8189 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8191 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8192 Yao Qi <yao.qi@linaro.org>
8194 * aarch64-linux-tdep.c: Include linux-record.h and
8196 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8197 (aarch64_syscall): New enum.
8198 (aarch64_canonicalize_syscall): New function.
8199 (aarch64_all_but_pc_registers_record): New function.
8200 (aarch64_linux_syscall_record): New function.
8201 (aarch64_linux_init_abi): Install AArch64 process record
8202 handler. Update to handle syscall recording.
8203 * aarch64-tdep.c: Include record.h and record-full.h.
8204 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8205 (struct aarch64_mem_r): Define.
8206 (aarch64_record_result): New enum.
8207 (struct insn_decode_record): Define.
8208 (insn_decode_record): New typedef.
8209 (aarch64_record_data_proc_reg): New function.
8210 (aarch64_record_data_proc_imm): New function.
8211 (aarch64_record_branch_except_sys): New function.
8212 (aarch64_record_load_store): New function.
8213 (aarch64_record_data_proc_simd_fp): New function.
8214 (aarch64_record_asimd_load_store): New function.
8215 (aarch64_record_decode_insn_handler): New function.
8216 (deallocate_reg_mem): New function.
8217 (aarch64_process_record): New function.
8218 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8220 (aarch64_process_record): New extern declaration.
8221 * configure.tgt: Add linux-record.o to gdb_target_obs.
8222 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8224 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8226 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8229 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8231 * amd64-tdep.c: Replace in_function_epilogue_p with
8232 stack_frame_destroyed_p throughout.
8233 * arch-utils.c: Ditto.
8234 * arch-utils.h: Ditto.
8235 * arm-tdep.c: Ditto.
8236 * breakpoint.c: Ditto.
8237 * gdbarch.sh: Ditto.
8238 * hppa-tdep.c: Ditto.
8239 * i386-tdep.c: Ditto.
8240 * mips-tdep.c: Ditto.
8241 * nios2-tdep.c: Ditto.
8242 * rs6000-tdep.c: Ditto.
8243 * s390-linux-tdep.c: Ditto.
8244 * score-tdep.c: Ditto.
8246 * sparc-tdep.c: Ditto.
8247 * sparc-tdep.h: Ditto.
8248 * sparc64-tdep.c: Ditto.
8249 * spu-tdep.c: Ditto.
8250 * tic6x-tdep.c: Ditto.
8251 * tilegx-tdep.c: Ditto.
8252 * xstormy16-tdep.c: Ditto.
8253 * gdbarch.c, gdbarch.h: Re-generated.
8255 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8257 * NEWS: Mention 'tui enable' and 'tui disable'.
8258 * tui/tui.c (tui_enable_command): New function.
8259 (tui_disable_command): New function.
8260 (_initialize_tui): New function.
8262 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8264 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8266 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8268 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8271 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8273 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8275 (tui_set_layout_for_display_command): ...here, before calling
8276 tui_set_layout. Only set the layout if gdb has not already
8277 entered the TUI_FAILURE state.
8279 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8281 * tui/tui-layout.c (layout_completer): New function.
8282 (_initialize_tui_layout): Set completer on layout command.
8284 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8286 * tui/tui-layout.c (tui_set_layout): Remove
8287 tui_register_display_type parameter. Remove all checking of this
8288 parameter, and reindent function. Update header comment.
8289 (tui_set_layout_for_display_command): Rename to...
8290 (tui_set_layout_by_name): ...this, and don't check for different
8291 register class types, don't pass a tui_register_display_type to
8292 tui_set_layout. Update header comment.
8293 (layout_names): Remove register set specific names.
8294 * tui/tui-layout.h (tui_set_layout): Remove
8295 tui_register_display_type parameter.
8296 * tui/tui.c (tui_rl_change_windows): Don't pass a
8297 tui_register_display_type to tui_set_layout.
8298 (tui_rl_delete_other_windows): Likewise.
8299 (tui_enable): Likewise.
8300 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8301 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8302 (TUI_GENERAL_REGS_NAME): Remove.
8303 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8304 (TUI_SPECIAL_REGS_NAME): Remove.
8305 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8306 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8307 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8308 (enum tui_register_display_type): Remove.
8309 (struct tui_layout_def): Remove regs_display_type and
8310 float_regs_display_type fields.
8311 (struct tui_data_info): Remove regs_display_type field.
8312 (tui_layout_command): Use new name for
8313 tui_set_layout_for_display_command.
8314 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8315 (tui_clear_win_detail): Don't initialise removed fields of
8317 * tui/tui-regs.c (tui_show_registers): Use new name for
8318 tui_set_layout_for_display_command.
8319 * tui/tui.h (tui_set_layout_for_display_command): Rename
8321 (tui_set_layout_by_name): ...this.
8322 * printcmd.c (display_command): Remove tui related layout call,
8325 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8327 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8328 (handle_inferior_event): New function.
8330 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8332 * ada-lang.c (to_fixed_array_type): Rename local variable
8333 typename into type_name.
8335 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8337 Fix ASAN crash for gdb.compile/compile.exp.
8338 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8340 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8343 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8344 * compile/compile-object-load.c (setup_sections, compile_object_load):
8346 * compile/compile.c (compile_to_object): Likewise.
8348 2015-05-16 Doug Evans <xdje42@gmail.com>
8350 * NEWS: Mention support for unbuffered Guile memory ports.
8351 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8352 (ioscm_lseek_address): Improve overflow calculation.
8353 (gdbscm_memory_port_fill_input): Add assert.
8354 (gdbscm_memory_port_write): Handle unbuffered ports.
8355 Handle large writes identical to Guile's fport_write.
8356 (gdbscm_memory_port_seek): Fix seeking past end check.
8357 (gdbscm_memory_port_close): Handle closing unbuffered port.
8358 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8359 (ioscm_init_memory_port): Handle unbuffered ports.
8360 (ioscm_reinit_memory_port): Ditto.
8361 (ioscm_init_memory_port): Update size calculation.
8362 (gdbscm_open_memory): Support zero sized ports.
8364 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8366 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8367 variable compiler warnings.
8369 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8371 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8373 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Phil Muldoon <pmuldoon@redhat.com>
8376 * NEWS (Changes since GDB 7.9): Add compile print.
8377 * compile/compile-c-support.c (add_code_header, add_code_footer)
8378 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8379 COMPILE_I_PRINT_VALUE_SCOPE.
8380 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8381 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8383 * compile/compile-object-load.c: Include block.h.
8384 (get_out_value_type): New function.
8385 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8386 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8388 * compile/compile-object-load.h (struct compile_module): Add fields
8389 out_value_addr and out_value_type.
8390 * compile/compile-object-run.c: Include valprint.h and compile.h.
8391 (struct do_module_cleanup): Add fields out_value_addr and
8393 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8394 COMPILE_I_PRINT_VALUE_SCOPE.
8395 (compile_object_run): Propagate out_value_addr and out_value_type.
8396 Pass OUT_VALUE_ADDR.
8397 * compile/compile.c: Include valprint.h.
8398 (compile_print_value, compile_print_command): New functions.
8399 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8400 (_initialize_compile): Update compile code help text. Install
8401 compile_print_command.
8402 * compile/compile.h (compile_print_value): New prototype.
8403 * defs.h (enum compile_i_scope_types): Add
8404 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8406 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8408 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8409 Rely on its parameter count.
8410 (compile_object_load): Replace lookup_minimal_symbol_text by
8411 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8413 * compile/compile-object-load.h (struct compile_module): Replace
8414 func_addr by func_sym.
8415 * compile/compile-object-run.c: Include block.h.
8416 (compile_object_run): Reset module variable after it is freed. Use
8417 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8419 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8421 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8422 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8423 (c_compute_program): Call generate_register_struct after typedefs.
8424 * compile/compile-loc2c.c (push, pushf_register_address)
8425 (pushf_register): Cast to GCC_UINTPTR.
8426 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8427 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8428 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8429 * compile/compile.c (_initialize_compile): Enable warnings for
8432 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 * cli/cli-script.c (execute_control_command): Update
8435 eval_compile_command caller.
8436 * compile/compile-object-load.c (compile_object_load): Add parameters
8437 scope and scope_data. Set them.
8438 * compile/compile-object-load.h (struct compile_module): Add fields
8439 scope and scope_data.
8440 (compile_object_load): Add parameters scope and scope_data.
8441 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8442 scope and scope_data.
8443 (compile_object_run): Propagate the fields scope and scope_data.
8444 * compile/compile.c (compile_file_command, compile_code_command):
8445 Update eval_compile_command callers.
8446 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8447 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8448 * defs.h (struct command_line): Add field scope_data.
8450 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 * printcmd.c (struct format_data): Move it to valprint.h.
8453 (print_command_parse_format, print_value): New functions from ...
8454 (print_command_1): ... here. Call them.
8455 * valprint.h (struct format_data): Move it here from printcmd.c.
8456 (print_command_parse_format, print_value): New declarations.
8458 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8460 * compile/compile-object-load.c (compile_object_load): Add
8461 COMPILE_DEBUG message.
8463 2015-05-15 Jerome Guitton <guitton@adacore.com>
8465 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8466 index to get element instead of enum value.
8467 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8468 of index to compute length, but enum values to compute bounds.
8469 (ada_array_length): Use enum position of index instead of enum value.
8470 (pos_atr): Move position computation to...
8471 (ada_evaluate_subexp): Use enum values to compute bounds.
8472 * gdbtypes.c (discrete_position): ...this new function.
8473 * gdbtypes.h (discrete_position): New function declaration.
8474 * valprint.c (val_print_array_elements): Call discrete_position
8475 to handle array indexed by non-contiguous enumeration types.
8477 2015-05-15 Jerome Guitton <guitton@adacore.com>
8479 * ada-lang.c (find_parallel_type_by_descriptive_type):
8480 Go through typedefs during lookup.
8481 (to_fixed_array_type): Add support for non-bit packed arrays
8482 as variable-length fields.
8484 2015-05-15 Pedro Alves <palves@redhat.com>
8485 Simon Marchi <simon.marchi@ericsson.com>
8487 * event-loop.c (gdb_notifier) <next_file_handler,
8488 next_poll_fds_index>: New fields.
8489 (get_next_file_handler_to_handle_and_advance): New function.
8490 (delete_file_handler): If deleting the next file handler to
8491 handle, advance to the next file handler.
8492 (gdb_wait_for_event): Bail early if no event fired. Poll file
8493 handlers in round-robin fashion.
8495 2015-05-15 Pedro Alves <palves@redhat.com>
8497 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8498 'private' to 'priv'.
8500 2015-05-15 Pedro Alves <palves@redhat.com>
8502 * nat/linux-nat.h: Include "target/waitstatus.h".
8504 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8506 * python/py-unwind.c (struct reg_info): Move out of ...
8507 (struct cached_frame_info): ... this scope.
8508 (pending_frame_object_type, unwind_info_object_type): Make extern.
8510 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8512 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8513 accumSize is never negative.
8515 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8517 * tui/tui-command.c: Remove include of <ctype.h>.
8518 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8520 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8522 * dwarf2read.c (die_needs_namespace): Return 1 for
8523 DW_TAG_inlined_subroutine.
8525 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8527 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8528 (regcache_cpy_no_passthrough): Make it static, add function comment.
8529 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8530 (regcache_cpy_no_passthrough): Remove declaration.
8532 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8534 * gdbthread.h (struct thread_control_state): Update comment for
8536 * infcall.c (run_inferior_call): Update comment about
8538 * infcmd.c (get_return_value): Update comment about stop_registers.
8539 (finish_forward): Update comment about proceed_to_finish.
8540 * infrun.c (stop_registers): Remove.
8541 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8542 * infrun.h (stop_registers): Remove.
8544 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8546 * infcall.c (struct dummy_frame_context_saver)
8547 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8548 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8549 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8551 (call_function_by_hand_dummy): Move discard_cleanups of
8552 inf_status_cleanup before dummy_frame_push. Call
8553 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8554 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8555 * infcall.h (struct dummy_frame_context_saver)
8556 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8557 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8559 * infcmd.c: Include infcall.h.
8560 (get_return_value): Add parameter ctx_saver, use it instead of
8562 (print_return_value): Add parameter ctx_saver, pass it.
8563 (struct finish_command_continuation_args): Add field ctx_saver.
8564 (finish_command_continuation): Update print_return_value caller.
8565 (finish_command_continuation_free_arg): Free also ctx_saver.
8566 (finish_forward): Call dummy_frame_context_saver_setup.
8567 * inferior.h (struct dummy_frame_context_saver): New declaration.
8568 (get_return_value): Add parameter ctx_saver.
8569 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8570 get_return_value caller.
8572 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8574 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8575 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8576 (remove_dummy_frame): Process dtor_list.
8577 (pop_dummy_frame): Process dtor_list.
8578 (register_dummy_frame_dtor): Maintain dtor_list.
8579 (find_dummy_frame_dtor): Handle dtor_list.
8580 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8583 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8585 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8587 (compile_object_run): Update do_module_cleanup caller.
8588 * dummy-frame.c: Include infcall.h.
8589 (struct dummy_frame): Update dtor comment.
8590 (remove_dummy_frame): Call dtor.
8591 (pop_dummy_frame): Update dtor caller.
8592 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8595 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8599 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8601 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8602 Xmethods now being able to specify a result type to that new
8605 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8607 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8608 first before resizing the window.
8609 * tui/tui.c (tui_enable): Likewise.
8611 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8613 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8614 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8615 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8616 dummy_dtor parameter.
8617 * infcall.h: Include dummy-frame.h.
8618 (call_function_by_hand_dummy_dtor_ftype): Remove.
8619 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8622 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8625 * top.c (history_size_setshow_var): Change type to signed.
8626 Initialize to -2. Update documentation.
8627 (set_readline_history_size): Define.
8628 (set_history_size_command): Use it. Remove logic for handling
8630 (init_history): Use set_readline_history_size(). Test for a
8631 value of -2 instead of 0 when determining whether to set a
8632 default history size.
8633 (init_main): Decode the argument of the "size" command as a
8634 zuinteger_unlimited.
8636 2015-05-12 Doug Evans <dje@google.com>
8638 * dwarf2read.c (struct file_entry): Tweak comments.
8639 (get_debug_line_section): Tweak comments.
8641 2015-05-12 Don Breazeal <donb@codesourcery.com>
8643 * NEWS: Announce fork support in the RSP and support
8644 for fork debugging in extended mode.
8646 2015-05-12 Don Breazeal <donb@codesourcery.com>
8648 * remote.c (remote_insert_fork_catchpoint): New function.
8649 (remote_remove_fork_catchpoint): New function.
8650 (remote_insert_vfork_catchpoint): New function.
8651 (remote_remove_vfork_catchpoint): New function.
8652 (pending_fork_parent_callback): New function.
8653 (remove_new_fork_child): New function.
8654 (remote_update_thread_list): Call remote_notif_get_pending_events
8655 and remove_new_fork_child.
8656 (extended_remote_kill): Kill fork child when killing the
8657 parent before follow_fork completes.
8658 (init_extended_remote_ops): Initialize target vector with
8659 new fork catchpoint functions.
8661 2015-05-12 Don Breazeal <donb@codesourcery.com>
8663 * remote.c (remove_vfork_event_p): New function.
8664 (remote_follow_fork): Add vfork event type to event checking.
8665 (remote_parse_stop_reply): New stop reasons "vfork" and
8666 "vforkdone" for RSP 'T' Stop Reply Packet.
8668 2015-05-12 Don Breazeal <donb@codesourcery.com>
8670 * linux-nat.c (linux_nat_ptrace_options): New function.
8671 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8672 Call linux_nat_ptrace_options and use different argument to
8673 linux_enable_event_reporting.
8674 (_initialize_linux_nat): Delete call to
8675 linux_ptrace_set_additional_flags.
8676 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8677 supported_ptrace_options.
8678 (additional_flags): Delete variable.
8679 (linux_check_ptrace_features): Use supported_ptrace_options.
8680 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8681 Likewise, and remove additional_flags check.
8682 (linux_enable_event_reporting): Change 'attached' argument to
8683 'options'. Use supported_ptrace_options.
8684 (ptrace_supports_feature): Change comment. Use
8685 supported_ptrace_options.
8686 (linux_ptrace_set_additional_flags): Delete function.
8687 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8688 Delete function prototype.
8689 * remote.c (remote_fork_event_p): New function.
8690 (remote_detach_pid): New function.
8691 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8692 if doing detach-on-fork.
8693 (remote_follow_fork): New function.
8694 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8695 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8696 (init_extended_remote_ops): Initialize to_follow_fork.
8698 2015-05-12 Don Breazeal <donb@codesourcery.com>
8700 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8701 from static to extern.
8702 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8703 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8704 * PACKET_vfork_event_feature>: New enumeration constants.
8705 (remote_protocol_features): Add table entries for new packets.
8706 (remote_query_supported): Add new feature queries to qSupported
8709 2015-05-12 Gary Benson <gbenson@redhat.com>
8711 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8712 for fake PIDs as well as real ones.
8713 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8715 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8717 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8718 * python/py-value.c (valpy_reference_value): New function.
8719 (valpy_const_value): Likewise.
8720 (value_object_methods): Add new methods.
8721 * value.c (make_cv_value): New function.
8722 * value.h (make_cv_value): Declare.
8724 2015-05-08 Yao Qi <yao@codesourcery.com>
8725 Sandra Loosemore <sandra@codesourcery.com>
8727 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8728 to 'lh->include_dirs' before accessing to it.
8729 (psymtab_include_file_name): Likewise.
8730 (dwarf_decode_lines_1): Likewise.
8731 (dwarf_decode_lines): Likewise.
8732 (file_file_name): Likewise.
8734 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8736 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8737 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8738 (nios2_linux_rt_sigreturn_init): Adjust base address of
8741 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8743 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8744 "trap 31" as the breakpoint instruction on all targets.
8746 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8748 * infcmd.c (print_return_value): Remove unused declaration.
8750 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8752 * dwarf2read.c (attr_to_dynamic_prop)
8753 <DW_AT_data_member_location>: Use read_type_die isntead of
8756 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8758 * ada-lang.c (ada_convert_actual): Add handling of formals
8759 passed inside an aligner type.
8761 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8763 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8765 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8768 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8769 Print xmethod matcher status.
8771 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8773 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8774 register in the regcache when treating the PSWM register, and vice
8777 2015-05-07 Gary Benson <gbenson@redhat.com>
8779 * linux-thread-db.c (struct thread_db_info)
8780 <td_ta_map_id2thr_p>: Remove field.
8781 (try_thread_db_load_1): Remove initialization for the above.
8783 2015-05-07 Gary Benson <gbenson@redhat.com>
8785 * linux-thread-db.c (struct thread_db_info)
8786 <td_thr_validate_p>: Remove field.
8787 (try_thread_db_load_1): Remove initialization for the above.
8789 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8791 * compile/compile-object-load.c (compile_object_load): Support
8794 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8796 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8797 const. Use new variables for the const compatibility.
8798 (eval_compile_command): Make the cmd_string parameter const.
8799 * compile/compile.h (eval_compile_command): Make the cmd_string
8802 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8804 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8806 * top.c (deprecated_init_ui_hook): Delete.
8807 (gdb_init): Remove handling of deprecated_init_ui_hook.
8808 * interps.c (clear_interpreter_hooks): Remove handling of
8809 deprecated_init_ui_hook.
8810 * main.c (captured_main): Update comment.
8812 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8814 * solib.c (_initialize_solib): Add "info dll" alias creation.
8815 * windows-nat.c (set_windows_aliases): Delete.
8816 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8818 * NEWS: Add news entry about "info dll" now being available
8821 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8823 * ada-lang.c (value_assign_to_component): Reformat and improve
8824 documentation. Remove all trailing spaces.
8826 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8828 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8829 Stop counting inlined frames as soon as an out-of-line function
8832 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8834 * dwarf2read.c (inherit_abstract_dies): Skip
8835 DW_TAG_GNU_call_site dies while inheriting children of an
8836 abstract DIE into a scope.
8837 (read_lexical_block_scope): Inherit abstract DIE's for
8840 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8842 * ada-valprint.c (val_print_packed_array_elements): Delete
8843 variable "len". Add a type-length check when comparing two
8844 consecutive elements of the array. Use the element's actual
8845 length in call to value_contents_eq.
8846 * ada-lang.c (ada_value_primitive_packed_val): Always return
8847 a value whose type has been resolved.
8849 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8851 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8852 BIT_SIZE and LEN if the size of the resolved type is smaller
8853 than BIT_SIZE * HOST_CHAR_BIT.
8855 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8857 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8858 correct address in call to value_at. Adjust call to
8859 value_address accordingly.
8861 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8863 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8866 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8868 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8869 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8871 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8872 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8873 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8874 Add handling of addr_stack->valaddr.
8875 (resolve_dynamic_type): Add "valaddr" parameter.
8876 Set pinfo.valaddr field.
8877 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8878 resolve_dynamic_type.
8879 (ada_discrete_type_low_bound): Likewise.
8880 * findvar.c (default_read_var_value): Likewise.
8881 * value.c (value_from_contents_and_address): Likewise.
8883 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8885 * gdbtypes.c (resolve_dynamic_array): Use
8886 create_array_type_with_stride instead of create_array_type.
8888 2015-04-30 DJ Delorie <dj@redhat.com>
8890 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8893 2015-04-29 Doug Evans <dje@google.com>
8896 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8897 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8898 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8899 * extension-priv.h (struct extension_language_ops)
8900 <get_xmethod_result_type>: New member.
8901 * extension.c (get_xmethod_result_type): New function.
8902 * extension.h (get_xmethod_result_type): Declare.
8903 * python/py-xmethods.c (get_result_type_method_name): New static
8905 (py_get_result_type_method_name): Ditto.
8906 (gdbpy_get_xmethod_result_type): New function.
8907 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8908 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8909 * python/python.c (python_extension_ops): Add
8910 gdbpy_get_xmethod_result_type.
8911 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8912 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8914 (value_x_unop): Ditto.
8915 * value.c (result_type_of_xmethod): New function.
8916 * value.h (result_type_of_xmethod): Declare.
8918 2015-04-29 Gary Benson <gbenson@redhat.com>
8920 * solib.c (solib_find_1): Allow fd argument to be NULL.
8921 (exec_file_find): Update comment.
8922 (solib_find): Likewise.
8923 * exec.c (exec_file_locate_attach): Use NULL as fd
8924 argument to exec_file_find to avoid having to close
8926 * infrun.c (follow_exec): Likewise.
8928 2015-04-28 Doug Evans <dje@google.com>
8931 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8932 name or __name__ attributes. Handle gdb module as first argument.
8934 2015-04-28 Doug Evans <dje@google.com>
8937 * python/py-prettyprint.c (print_children): Verify result of children
8938 iterator. Provide better error message.
8939 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8940 * python/python.c (gdbpy_print_python_errors_p): New function.
8942 2015-04-28 Doug Evans <dje@google.com>
8944 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8946 2015-04-28 Sasha Smundak <asmundak@google.com>
8948 * NEWS: Mention gdb.Type.optimized_out method.
8949 * python/py-type.c (typy_optimized_out): New function.
8951 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8953 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8955 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8957 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8958 (initialize_utils): Move call of init_page_info() to ...
8959 * top.c (gdb_init): ... here.
8961 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8963 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8964 (tui_sigwinch_handler): Still update our idea of
8965 the terminal's width and height even when TUI is not active.
8967 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8969 * utils.h (set_screen_width_and_height): Declare.
8970 * utils.c (set_screen_width_and_height): Define.
8971 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8973 2015-04-28 Gary Benson <gbenson@redhat.com>
8975 * infrun.c (solist.h): New include.
8976 (follow_exec): Use exec_file_find to prefix execd_pathname
8979 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8981 * tui/tui-source.c (tui_set_source_content): Avoid calling
8982 strcpy() when offset is 0.
8984 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8987 * tui/tui-data.c (tui_free_window): Don't free the locator
8988 window when passed an SRC_WIN or a DISASSEM_WIN.
8990 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8992 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8993 (tui_win_content): Move declaration.
8994 (struct tui_gen_win_info): Give 'content' field the
8995 type tui_win_content.
8996 * tui/tui-data.c (init_content_element): Remove redundant and
8998 (tui_add_content_elements): Remove erroneous cast.
8999 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9001 (tui_get_begin_asm_address): Likewise.
9002 * tui/tui-regs.c (tui_show_registers): Likewise.
9003 (tui_show_register_group): Likewise.
9004 (tui_display_registers_from): Likewise.
9005 (tui_check_register_values): Likewise.
9006 * tui/tui-source.c (tui_set_source_content): Likewise.
9007 (tui_set_source_content_nil): Likewise.
9008 (tui_source_is_displayed): Likewise.
9009 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9010 (tui_set_locator_fullname): Likewise.
9011 (tui_set_locator_info): Likewise.
9012 (tui_show_frame_info): Likewise.
9013 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9014 (tui_show_source_line): Likewise.
9015 (tui_horizontal_source_scroll): Likewise.
9016 (tui_update_breakpoint_info): Likewise.
9017 (tui_set_exec_info_content): Likewise.
9018 (tui_show_exec_info_content): Likewise.
9019 (tui_alloc_source_buffer): Likewise.
9020 (tui_line_is_displayed): Likewise.
9021 (tui_addr_is_displayed): Likewise.
9023 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9025 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9026 event if PL_FLAG_EXEC is set.
9027 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9028 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9029 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9030 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9031 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9033 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9035 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9036 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9037 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9038 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9039 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9040 [PT_LWPINFO] (fbsd_wait): New function.
9041 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9042 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9043 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9044 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9045 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9046 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9047 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9048 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9049 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9051 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9052 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9053 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9054 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9055 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9056 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9057 Set "to_post_attach" to "fbsd_post_attach".
9059 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9061 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9062 (fbsd_find_memory_regions): Mark static.
9063 (fbsd_nat_add_target): New function.
9064 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9065 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9066 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9067 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9068 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9069 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9071 2015-04-27 Gary Benson <gbenson@redhat.com>
9073 * objfiles.c (allocate_objfile): Do not attempt to expand name
9074 if name is a "target:" filename.
9075 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9076 to load auto-load scripts for objfiles with "target:" filenames.
9078 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9080 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9081 (enum s390_vector_abi_kind): New enum.
9082 (struct gdbarch_tdep)<vector_abi>: New field.
9083 (s390_effective_inner_type): Add parameter min_size. Stop
9084 unwrapping if the inner type is smaller than min_size.
9085 (s390_function_arg_float): Adjust call to
9086 s390_effective_inner_type.
9087 (s390_function_arg_vector): New function.
9088 (s390_function_arg_integer): Adjust comment.
9089 (struct s390_arg_state)<vr>: New field.
9090 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9091 arguments according to vector ABI when appropriate.
9092 (s390_push_dummy_call): Initialize the argument state's field
9093 'vr'. Adjust calls to s390_handle_arg.
9094 (s390_register_return_value): Handle vector return values.
9095 (s390_return_value): Apply the "register" return value convention
9096 to a vector when appropriate.
9097 (s390_gdbarch_init): Initialize tdep->vector_abi.
9098 * NEWS: Announce S390 vector ABI support.
9100 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9102 * s390-linux-tdep.c (s390_return_value_convention): Remove
9103 function. Inline its logic...
9104 (s390_return_value): ...here. Instead, move the handling of the
9105 "register" return value convention...
9106 (s390_register_return_value): ...here. New function.
9108 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9111 (is_float_singleton): Remove function. Move the "singleton" part
9113 (s390_effective_inner_type): ...here. New function.
9114 (is_float_like): Remove function. Inline its logic...
9115 (s390_function_arg_float): ...here.
9116 (is_pointer_like, is_integer_like, is_struct_like): Remove
9117 functions. Inline their logic...
9118 (s390_function_arg_integer): ...here.
9119 (s390_function_arg_pass_by_reference): Remove function.
9120 (extend_simple_arg): Remove function.
9121 (alignment_of): Remove function.
9122 (struct s390_arg_state): New structure.
9123 (s390_handle_arg): New function.
9124 (s390_push_dummy_call): Move parameter placement logic to the new
9125 function s390_handle_arg. Call it for calculating the stack area
9126 sizes first, and again for actually writing the parameters.
9128 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9130 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9131 false if the argument is zero.
9133 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9135 * ada-lang.c (template_to_static_fixed_type): Return input type
9136 when it is already fixed. Cache the input type itself when not
9137 creating a static fixed copy. Make it explicit that we never
9138 molestate the input type.
9139 * gdbtypes.c (resolve_dynamic_struct): Reset the
9140 TYPE_TARGET_TYPE field for resolved copies.
9142 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9144 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9145 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9146 (template_to_static_fixed_type): Call ada_check_typedef only
9149 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9151 * cli/cli-dump.c (srec_dump_command): Add internationalization
9153 (ihex_dump_command): Likewise.
9154 (tekhex_dump_command): Likewise.
9155 (binary_dump_command): Likewise.
9156 (binary_append_command): Likewise.
9158 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9160 * cli/cli-dump.c (verilog_cmdlist): New variable.
9161 (dump_verilog_memory): New function.
9162 (dump_verilog_value): New function.
9163 (verilog_dump_command): New function.
9164 (_initialize_cli_dump): Add new commands to support verilog dump
9166 * NEWS: Add entry for "dump verilog".
9168 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9170 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9171 descriptive type when there is none.
9173 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9175 * tui/tui-win.c (tui_async_resize_screen): Call
9176 rl_resize_terminal().
9178 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9180 * windows-nat.c (handle_output_debug_string): Don't change
9181 current_event.dwThreadId.
9182 (get_windows_debug_event): Use thread_id, rather than relying on
9183 current_event.dwThreadId being changed.
9185 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9187 * windows-nat.c (windows_continue): Report an error if
9188 ContinueDebugEvent() fails.
9190 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9192 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9194 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9196 * windows-nat.c (get_windows_debug_event): Replace retval with
9197 thread_id throughout. Update stale comment.
9199 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9201 * windows-nat.c (get_windows_debug_event): Don't use ternary
9202 conditional operator.
9204 2015-04-21 Pierre Muller <muller@sourceware.org>
9207 p-exp.y (yylex): Reorganize code to return the matched pattern
9208 for a field of this.
9210 2015-04-21 Gary Benson <gbenson@redhat.com>
9212 * common/fileio.h (fileio_to_host_openflags): New declaration.
9213 * common/fileio.c (fcntl.h): New include.
9214 (fileio_to_host_openflags): New function, factored out from...
9215 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9218 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9220 * rl78-tdep.c (RL78_SP_ADDR): Define.
9221 (opc_reg_to_gdb_regnum): New static function.
9222 (rl78_analyze_prologue): Recognize instructions forming slightly
9223 more interesting prologues.
9225 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9228 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9229 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9230 TYPE_CODE_REF types so that they are not considered as dynamic
9231 depending on the referenced type.
9232 (resolve_dynamic_type_internal): Likewise.
9234 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9237 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9238 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9239 "top_level" parameter.
9240 (resolve_dynamic_type_internal): Remove the unused "top_level"
9241 parameter. Update call to is_dynamic_type_internal.
9242 (is_dynamic_type): Update call to is_dynamic_type_internal.
9243 (resolve_dynamic_range): Update call to
9244 resolve_dynamic_type_internal.
9245 (resolve_dynamic_union): Likewise.
9246 (resolve_dynamic_struct): Likewise.
9247 (resolve_dynamic_type): Likewise.
9249 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9251 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9254 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9256 * reply_mig_hack.awk: Robustify parsing.
9258 * reply_mig_hack.awk: Don't bother to declare an intermediate
9259 function pointer variable.
9261 2015-04-17 Doug Evans <dje@google.com>
9263 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9264 to "exec_displacement" to avoid confusion with inner use of the name.
9266 2015-04-17 Pedro Alves <palves@redhat.com>
9268 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9269 if HW point of TYPE isn't supported.
9271 2015-04-17 Yao Qi <yao.qi@linaro.org>
9272 Pedro Alves <palves@redhat.com>
9274 * target.h (target_can_use_hardware_watchpoint): Update comments.
9275 Remove trailing ";".
9277 2015-04-17 Gary Benson <gbenson@redhat.com>
9279 * remote.c (remote_add_inferior): New argument try_open_exec.
9280 If nonzero, attempt to open the inferior's executable file as
9281 the main executable if no main executable is open already.
9282 All callers updated.
9283 * NEWS: Mention that GDB now supports automatic location and
9284 retrieval of executable + files from remote targets.
9286 2015-04-17 Gary Benson <gbenson@redhat.com>
9288 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9289 * remote.c (PACKET_qXfer_exec_file): Likewise.
9290 (remote_protocol_features): Register the
9291 "qXfer:exec-file:read" feature.
9292 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9293 (remote_pid_to_exec_file): New function.
9294 (init_remote_ops): Initialize to_pid_to_exec_file.
9295 (_initialize_remote): Register new "set/show remote
9296 pid-to-exec-file-packet" command.
9297 * NEWS: Announce new qXfer:exec-file:read packet.
9299 2015-04-17 Gary Benson <gbenson@redhat.com>
9301 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9303 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9304 New function, factored out from...
9305 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9307 2015-04-17 Gary Benson <gbenson@redhat.com>
9309 * exec.c (solist.h): New include.
9310 (exec_file_locate_attach): Prefix absolute executable
9311 paths with gdb_sysroot if set.
9312 * NEWS: Mention that executable paths may be prepended
9315 2015-04-17 Gary Benson <gbenson@redhat.com>
9317 * solist.h (exec_file_find): New declaration.
9318 * solib.c (solib_find_1): New function, factored out from...
9319 (solib_find): ...here.
9320 (exec_file_find): New function.
9322 2015-04-17 Gary Benson <gbenson@redhat.com>
9324 * gdbcore.h (exec_file_locate_attach): New declaration.
9325 * exec.c (exec_file_locate_attach): New function, factored
9327 * infcmd.c (attach_command_post_wait): ...here.
9329 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9331 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9333 2015-04-16 Yao Qi <yao.qi@linaro.org>
9335 * infrun.c (maybe_software_singlestep): Declare.
9336 (displaced_step_fixup): Call maybe_software_singlestep.
9338 2015-04-15 Doug Evans <dje@google.com>
9340 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9342 2015-04-15 Doug Evans <dje@google.com>
9344 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9346 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9348 * python/lib/gdb/command/unwinders.py: Add parentheses.
9350 2015-04-15 Yao Qi <yao.qi@linaro.org>
9352 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9354 2015-04-15 Yao Qi <yao.qi@linaro.org>
9356 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9358 2015-04-15 Yao Qi <yao.qi@linaro.org>
9360 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9361 dsc->insn_size instead of 4.
9363 2015-04-14 Gary Benson <gbenson@redhat.com>
9365 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9366 * minidebug.c (lzma_stat): Likewise.
9367 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9368 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9370 2015-04-13 Stan Shebs <stanshebs@google.com>
9372 * MAINTAINERS: Update my email address.
9374 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9376 * amd64-tdep.c (amd64_target_description): New function.
9377 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9378 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9379 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9380 x86 extended save area.
9381 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9382 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9383 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9384 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9385 "amd64fbsd_read_description".
9386 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9387 (amd64fbsd_supply_xstateregset): New function.
9388 (amd64fbsd_collect_xstateregset): New function.
9389 Add "amd64fbsd_xstateregset".
9390 (amd64fbsd_iterate_over_regset_sections): New function.
9391 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9392 "I386_FBSD_XSAVE_XCR0_OFFSET".
9393 Add "iterate_over_regset_sections" gdbarch method.
9394 Add "core_read_description" gdbarch method.
9395 * i386-tdep.c (i386_target_description): New function.
9396 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9397 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9398 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9399 x86 extended save area.
9400 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9401 * i386bsd-nat.h: Export i386bsd_xsave_len.
9402 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9403 (_initialize_i386fbsd_nat): Set "to_read_description" to
9404 "i386fbsd_read_description".
9405 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9406 (i386fbsd_core_read_description): New function.
9407 (i386fbsd_supply_xstateregset): New function.
9408 (i386fbsd_collect_xstateregset): New function.
9409 Add "i386fbsd_xstateregset".
9410 (i386fbsd_iterate_over_regset_sections): New function.
9411 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9412 "I386_FBSD_XSAVE_XCR0_OFFSET".
9413 Add "iterate_over_regset_sections" gdbarch method.
9414 Add "core_read_description" gdbarch method.
9415 * i386fbsd-tdep.h: New file.
9417 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9420 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9422 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9424 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9426 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9428 * defs.h (xdb_commands): Remove declaration.
9429 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9430 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9431 * infcmd.c (run_no_args_command, go_command): Remove.
9432 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9433 * infrun.c (xdb_handle_command): Remove.
9434 (_initialize_infrun): Remove xdb_commands for lz and z.
9435 * main.c (xdb_commands): Remove variable.
9436 (captured_main): Remove "xdb" from long_options.
9437 (print_gdb_help): Remove --xdb from help.
9438 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9439 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9440 * stack.c (backtrace_full_command, args_plus_locals_info)
9441 (current_frame_command): Remove.
9442 (_initialize_stack): Remove xdb_commands for t, T and l.
9443 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9444 * thread.c (_initialize_thread): Remove xdb_commands condition.
9445 * tui/tui-layout.c (tui_toggle_layout_command)
9446 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9447 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9448 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9449 (tui_scroll_regs_backward_command): Remove.
9450 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9451 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9452 (_initialize_tui_win): Remove xdb_commands for U and w.
9453 * utils.c (pagination_on_command, pagination_off_command): Remove.
9454 (initialize_utils): Remove xdb_commands for am and sm.
9456 2015-04-10 Pedro Alves <palves@redhat.com>
9458 * infrun.c (displaced_step_fixup): Switch to the event ptid
9459 earlier. If the thread stopped for a watchpoint and the
9460 target/arch has non-continuable watchpoints, cancel the displaced
9462 (resume): Don't start a displaced step if in-line step-over info
9465 2015-04-10 Pedro Alves <palves@redhat.com>
9467 * infrun.c (displaced_step_in_progress): New function.
9468 (do_target_resume): Advise target to report all signals if
9471 2015-04-10 Pedro Alves <palves@redhat.com>
9474 * infrun.c (process_event_stop_test): Don't assume a step-resume
9475 is set if tp->stepped_breakpoint is true.
9477 2015-04-10 Yao Qi <yao.qi@linaro.org>
9479 * arm-tdep.c (install_alu_reg): Update comment.
9480 (thumb_copy_alu_reg): Remove local variable rn. Update
9481 debugging message. Use r2 instead of r1 in the modified
9484 2015-04-10 Pedro Alves <palves@redhat.com>
9487 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9488 linux_displaced_step_location as gdbarch_displaced_step_location
9490 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9491 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9492 * linux-tdep.c (linux_displaced_step_location): New function,
9493 based on ppc_linux_displaced_step_location.
9494 * linux-tdep.h (linux_displaced_step_location): New declaration.
9495 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9496 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9498 (ppc_linux_init_abi): Install linux_displaced_step_location as
9499 gdbarch_displaced_step_location hook, even without Cell/B.E..
9500 (_initialize_ppc_linux_tdep): Don't install
9501 ppc_linux_inferior_created as inferior_created observer.
9502 * s390-linux-tdep.c (s390_gdbarch_init): Install
9503 linux_displaced_step_location as gdbarch_displaced_step_location
9506 2015-04-09 Gary Benson <gbenson@redhat.com>
9508 * common/common-remote-fileio.h: Rename to...
9509 * common/fileio.h: ...this. Update all references.
9510 (remote_fileio_to_fio_error): Rename to...
9511 (host_to_fileio_error): ...this.
9512 (remote_fileio_to_be): Rename to...
9513 (host_to_bigendian): ...this. Update all callers.
9514 (remote_fileio_to_fio_uint): Rename to...
9515 (host_to_fileio_uint): ...this. Update all callers.
9516 (remote_fileio_to_fio_time): Rename to...
9517 (host_to_fileio_time): ...this. Update all callers.
9518 (remote_fileio_to_fio_stat): Rename to...
9519 (host_to_fileio_stat): ...this.
9520 Update all references.
9521 * common/common-remote-fileio.c: Rename to...
9522 * common/fileio.c: ...this. Update all references.
9523 (remote_fileio_to_fio_error): Rename to...
9524 (host_to_fileio_error): ...this. Update all callers.
9525 (remote_fileio_mode_to_target): Rename to...
9526 (fileio_mode_pack): ...this. Update all callers.
9527 (remote_fileio_to_fio_mode): Rename to...
9528 (host_to_fileio_mode): ...this. Update all callers.
9529 (remote_fileio_to_fio_ulong): Rename to...
9530 (host_to_fileio_ulong): ...this. Update all callers.
9531 (remote_fileio_to_fio_stat): Rename to...
9532 (host_to_fileio_stat): ...this. Update all callers.
9534 2015-04-09 Andy Wingo <wingo@igalia.com>
9536 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9537 (frame_functions): Bind gdbscm_frame_read_register to
9538 frame-read-register.
9539 * guile/lib/gdb.scm (frame-read-register): Export.
9541 2015-04-09 Gary Benson <gbenson@redhat.com>
9543 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9545 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9546 New function, factored out the named functions below.
9547 * inf-child.c (gdb/fileio.h): Remove include.
9548 (common-remote-fileio.h): New include.
9549 (inf_child_errno_to_fileio_error): Remove function. Update
9550 all callers to use remote_fileio_to_fio_error.
9551 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9553 2015-04-09 Andy Wingo <wingo@igalia.com>
9555 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9557 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9559 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9560 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9561 * configure: Regenerated.
9563 2015-04-09 Pedro Alves <palves@redhat.com>
9565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9566 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9567 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9568 * gnulib/import/Makefile.am: Update.
9569 * gnulib/import/Makefile.in: Update.
9570 * gnulib/import/m4/gnulib-cache.m4: Update.
9571 * gnulib/import/m4/gnulib-comp.m4: Update.
9572 * gnulib/import/m4/strtok_r.m4: New file.
9573 * gnulib/import/strtok_r.c: New file.
9575 2015-04-09 Pedro Alves <palves@redhat.com>
9577 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9578 "called too early to check prototype".
9580 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9583 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9584 use a caching mechanism. Adjust comments and code to reflect
9585 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9586 (cmdpy_completer_handle_brkchars): Adjust call to
9587 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9588 (cmdpy_completer): Likewise.
9590 2015-04-08 Yao Qi <yao.qi@linaro.org>
9592 * spu-tdep.c (spu_gdbarch_init): Don't call
9593 set_gdbarch_cannot_step_breakpoint.
9595 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9597 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9599 2015-04-07 Pedro Alves <palves@redhat.com>
9601 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9602 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9603 (delete_exited_threads): New declaration.
9604 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9605 * linux-nat.c (linux_nat_update_thread_list): New function.
9606 (linux_nat_add_target): Install it.
9607 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9608 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9609 (delete_exited_threads): New function.
9611 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9613 * infrun.c (resume) <displaced stepping debug output>: Get the
9614 leader thread's regcache, not resume_ptid's.
9616 2015-04-06 Doug Evans <xdje42@gmail.com>
9618 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9620 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9621 Include symbol domain in debugging output.
9623 2015-04-06 Pedro Alves <palves@redhat.com>
9624 Bernd Edlinger <bernd.edlinger@hotmail.de>
9626 * configure.ac: Remove the mingw32-specific stub-termcap.o
9627 fallback, and instead fallback to the stub termcap on all hosts.
9628 * configure: Regenerate.
9629 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9632 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9634 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9635 "top_level" parameter.
9636 (resolve_dynamic_type_internal): Remove the unused "top_level"
9637 parameter. Update call to is_dynamic_type_internal.
9638 (is_dynamic_type): Update call to is_dynamic_type_internal.
9639 (resolve_dynamic_range): Update call to
9640 resolve_dynamic_type_internal.
9641 (resolve_dynamic_union): Likewise.
9642 (resolve_dynamic_struct): Likewise.
9643 (resolve_dynamic_type): Likewise.
9645 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9647 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9648 TYPE_CODE_REF types so that they are not considered as dynamic
9649 depending on the referenced type.
9650 (resolve_dynamic_type_internal): Likewise.
9652 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9654 * Makefile.in (top_srcdir): New.
9655 * configure: Regenerated.
9657 2015-04-02 Gary Benson <gbenson@redhat.com>
9659 * NEWS: Announce the new default sysroot of "target:".
9661 2015-04-02 Gary Benson <gbenson@redhat.com>
9663 * main.c (captured_main): Set gdb_sysroot to "target:"
9664 if not otherwise set.
9666 2015-04-02 Gary Benson <gbenson@redhat.com>
9668 * exec.c (exec_file_attach): Support "target:" filenames.
9670 2015-04-02 Gary Benson <gbenson@redhat.com>
9672 * solib.c (solib_find): Strip "target:" prefix from sysroot
9673 if accessing local files.
9675 2015-04-02 Gary Benson <gbenson@redhat.com>
9677 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9678 checks and error messages.
9680 2015-04-02 Gary Benson <gbenson@redhat.com>
9682 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9683 (remote_filename_p): Remove declaration.
9684 (remote_bfd_open): Likewise.
9685 * remote.c (remote_bfd_iovec_open): Remove function.
9686 (remote_bfd_iovec_close): Likewise.
9687 (remote_bfd_iovec_pread): Likewise.
9688 (remote_bfd_iovec_stat): Likewise.
9689 (remote_filename_p): Likewise.
9690 (remote_bfd_open): Likewise.
9691 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9692 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9693 (gdb_bfd_open_maybe_remote): Remove function.
9694 (symfile_bfd_open): Replace remote filename check with
9695 target filename check.
9696 (reread_symbols): Use gdb_bfd_open.
9697 * build-id.c (gdbcore.h): New include.
9698 (build_id_to_debug_bfd): Use gdb_bfd_open.
9699 * infcmd.c (attach_command_post_wait): Remove remote filename
9701 * solib.c (solib_find): Replace remote-specific handling with
9702 target-specific handling. Update comments where necessary.
9703 (solib_bfd_open): Replace remote-specific handling with
9704 target-specific handling.
9705 (gdb_sysroot_changed): New function.
9706 (_initialize_solib): Call the above when gdb_sysroot changes.
9707 * windows-tdep.c (gdbcore.h): New include.
9708 (windows_xfer_shared_library): Use gdb_bfd_open.
9710 2015-04-02 Gary Benson <gbenson@redhat.com>
9712 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9713 (is_target_filename): New declaration.
9714 (gdb_bfd_has_target_filename): Likewise.
9715 (gdb_bfd_open): Update documentation comment.
9716 * gdb_bfd.c (target.h): New include.
9717 (gdb/fileio.h): Likewise.
9718 (is_target_filename): New function.
9719 (gdb_bfd_has_target_filename): Likewise.
9720 (fileio_errno_to_host): Likewise.
9721 (gdb_bfd_iovec_fileio_open): Likewise.
9722 (gdb_bfd_iovec_fileio_pread): Likewise.
9723 (gdb_bfd_iovec_fileio_close): Likewise.
9724 (gdb_bfd_iovec_fileio_fstat): Likewise.
9725 (gdb_bfd_open): Use target fileio to access paths prefixed
9726 with "target:" where necessary.
9728 2015-04-02 Gary Benson <gbenson@redhat.com>
9730 * target.h (struct target_ops) <to_filesystem_is_local>:
9732 (target_filesystem_is_local): New macro.
9733 * target-delegates.c: Regenerate.
9734 * remote.c (remote_filesystem_is_local): New function.
9735 (init_remote_ops): Initialize to_filesystem_is_local.
9737 2015-04-02 Gary Benson <gbenson@redhat.com>
9739 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9740 (target_fileio_fstat): New declaration.
9741 * target.c (target_fileio_fstat): New function.
9742 * inf-child.c (inf_child_fileio_fstat): Likewise.
9743 (inf_child_target): Initialize to_fileio_fstat.
9744 * remote.c (init_remote_ops): Likewise.
9746 2015-04-01 Sasha Smundak <asmundak@google.com>
9748 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9749 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9750 (py-unwind.o): New recipe.
9751 * NEWS: mention Python frame unwinding.
9752 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9753 gdb/unwinder.py and gdb/command/unwinder.py
9754 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9756 (execute_unwinders): New function.
9757 * python/lib/gdb/command/unwinders.py: New file.
9758 * python/lib/gdb/unwinder.py: New file.
9759 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9760 (objfpy_dealloc): Decrement frame_unwinders reference count.
9761 (objfpy_initialize): Create frame_unwinders list.
9762 (objfpy_get_frame_unwinders): New function.
9763 (objfpy_set_frame_unwinders): Ditto.
9764 (objfile_getset): Add frame_unwinders attribute to Objfile.
9765 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9766 (pspy_dealloc): Decrement frame_unwinders reference count.
9767 (pspy_initialize): Create frame_unwinders list.
9768 (pspy_get_frame_unwinders): New function.
9769 (pspy_set_frame_unwinders): Ditto.
9770 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9771 * python/py-unwind.c: New file.
9772 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9773 (objpy_get_frame_unwinders): New prototype.
9774 (gdbpy_initialize_unwind): New prototype.
9775 * python/python.c (gdbpy_apply_type_printers): Call
9776 gdbpy_initialize_unwind.
9778 2015-04-01 Pedro Alves <palves@redhat.com>
9780 * infrun.c (resume): Check currently_stepping after clearing
9781 stepped_breakpoint, not before.
9783 2015-04-01 Pedro Alves <palves@redhat.com>
9785 * infrun.c (print_target_wait_results): Print all the ptid
9788 2015-04-01 Pedro Alves <palves@redhat.com>
9790 * infrun.c (keep_going): Also discard cleanups if inserting
9793 2015-04-01 Pedro Alves <palves@redhat.com>
9795 * infrun.c (wait_for_inferior): Install the
9796 finish_thread_state_cleanup cleanup across the whole function, not
9797 just around handle_inferior_event.
9799 2015-04-01 Pedro Alves <palves@redhat.com>
9801 * infrun.c (resume) <step past permanent breakpoint>: Use
9804 2015-04-01 Pedro Alves <palves@redhat.com>
9806 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9808 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9810 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9812 2015-04-01 Pedro Alves <palves@redhat.com>
9814 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9815 list if it was marked exited.
9817 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9819 * configure: Regenerated.
9821 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9822 Jan Kratochvil <jan.kratochvil@redhat.com>
9823 Oleg Nesterov <oleg@redhat.com>
9826 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9827 New enum identifying the various options of the coredump_filter
9829 (struct smaps_vmflags): New struct.
9830 (use_coredump_filter): New variable.
9831 (decode_vmflags): New function.
9832 (mapping_is_anonymous_p): Likewise.
9833 (dump_mapping_p): Likewise.
9834 (linux_find_memory_regions_full): New variables
9835 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9836 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9837 parsing of its information. Implement memory mapping filtering
9838 based on its contents.
9839 (show_use_coredump_filter): New function.
9840 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9841 * NEWS: Mention the possibility of using the
9842 '/proc/PID/coredump_filter' file when generating a corefile.
9843 Mention new command 'set use-coredump-filter'.
9845 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9847 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9848 read_memory_unsigned_integer.
9850 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9852 * Makefile.in (ZLIB): New.
9853 (ZLIBINC): Likewise.
9854 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9855 (CLIBS): Add $(ZLIB).
9856 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9858 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9859 * top.c (print_gdb_configuration): Remove --with-zlib and
9861 * config.in: Regenerated.
9862 * configure: Likewise.
9864 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9866 * NEWS: Mention info os cpus support.
9867 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9868 (struct osdata_type): Add cpus entry, reorder the entries in
9871 2015-03-31 Matthias Klose <doko@ubuntu.com>
9873 * compile/compile.c (compile_to_object): Allow triplets with or
9876 2015-03-30 Doug Evans <dje@google.com>
9879 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9880 klass in VAR_DOMAIN.
9882 2015-03-30 Gary Benson <gbenson@redhat.com>
9884 * remote.c (remote_mourn_1): Remove function. Update all callers
9885 to use remote_mourn.
9886 (extended_remote_mourn_1): Remove function. Update all callers
9887 to use extended_remote_mourn.
9888 (extended_remote_attach_1): Remove function. Update all callers
9889 to use extended_remote_attach.
9891 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9893 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9894 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9895 (ALLDEPFILES): Add ft32-tdep.c.
9896 * configure.tgt: Add FT32 entry.
9897 * ft32-tdep.c: New file, FT32 target-dependent code.
9898 * ft32-tdep.h: New file, FT32 target-dependent code.
9900 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9903 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9905 * printcmd.c (print_command_1): Move expr variable scope.
9907 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9909 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9911 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9913 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9916 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9918 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9919 exception raised while parsing the probe arguments.
9920 Force parsing to be done using the C language parser.
9921 * expression.h (parse_expression_with_language): Declare.
9922 * parse.c (parse_expression_with_language): New function.
9924 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9926 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9928 2015-03-26 Andy Wingo <wingo@igalia.com>
9931 * dwarf2read.c (struct partial_die_info): Add has_const_value
9933 (add_partial_symbol): Don't punt on symbols that have const_value
9935 (read_partial_die): Detect DW_AT_const_value.
9937 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9940 * printcmd.c (print_command_1): Move expr variable scope.
9942 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 * printcmd.c (validate_format): Make the parameter cmdname const.
9947 2015-03-26 Don Breazeal <donb@codesourcery.com>
9949 * remote.c (_initialize_remote): Update comment.
9951 2015-03-26 Pedro Alves <palves@redhat.com>
9952 Jon TURNEY <jon.turney@dronecode.org.uk>
9954 * coffread.c (coff_symfile_read): When constructing the name of an
9955 import stub symbol from import symbol for amd64, only skip the
9956 char after _imp_ if the target is underscored (like i386) and the
9957 char is indeed the target's leading char.
9959 2015-03-25 Pedro Alves <palves@redhat.com>
9961 * target.h <to_async>: Replace 'callback' and 'context' parameters
9962 with boolean 'enable' parameter.
9963 (target_async): Replace CALLBACK and CONTEXT parameters with
9964 boolean ENABLE parameter.
9965 * inf-loop.c (inferior_event_handler): Adjust.
9966 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9967 (linux_nat_resume): Adjust.
9968 (async_client_callback, async_client_context): Delete.
9969 (handle_target_event): Call inferior_event_handler directly.
9970 (linux_nat_async): Replace 'callback' and 'context' parameters
9971 with boolean 'enable' parameter. Adjust. Remove references to
9972 async_client_callback and async_client_context.
9973 (linux_nat_close): Adjust.
9974 * record-btrace.c (record_btrace_async): Replace 'callback' and
9975 'context' parameters with boolean 'enable' parameter. Adjust.
9976 (record_btrace_resume): Adjust.
9977 * record-full.c (record_full_async): Replace 'callback' and
9978 'context' parameters with boolean 'enable' parameter. Adjust.
9979 (record_full_resume, record_full_core_resume): Adjust.
9980 * remote.c (struct remote_state) <async_client_callback,
9981 async_client_context>: Delete fields.
9982 (remote_start_remote, extended_remote_attach_1, remote_resume)
9983 (extended_remote_create_inferior): Adjust.
9984 (remote_async_serial_handler): Call inferior_event_handler
9986 (remote_async): Replace 'callback' and 'context' parameters with
9987 boolean 'enable' parameter. Adjust.
9988 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9990 * target-delegates.c: Regenerate.
9992 2015-03-25 Gary Benson <gbenson@redhat.com>
9993 Pedro Alves <palves@redhat.com>
9995 * target.c (fileio_ft_t): New typedef, define object vector.
9996 (fileio_fhandles): New static variable.
9997 (is_closed_fileio_fh): New macro.
9998 (lowest_closed_fd): New static variable.
9999 (acquire_fileio_fd): New function.
10000 (release_fileio_fd): Likewise.
10001 (fileio_fd_to_fh): New macro.
10002 (target_fileio_open): Wrap the file descriptor on success.
10003 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10004 (target_fileio_pread): Likewise.
10005 (target_fileio_close): Likewise.
10007 2015-03-24 Pedro Alves <palves@redhat.com>
10009 * thread.c (thread_apply_all_command): Take exited threads into
10012 2015-03-24 Pedro Alves <palves@redhat.com>
10014 * infrun.c (resume, proceed): Mention
10015 switch_back_to_stepped_thread, not switch_back_to_stepping.
10017 2015-03-24 Pedro Alves <palves@redhat.com>
10019 * infrun.c (user_visible_resume_ptid): Rewrite going from
10020 most-locked to unlocked instead of the opposite. Move comment ...
10021 * infrun.h (user_visible_resume_ptid): ... here.
10023 2015-03-24 Pedro Alves <palves@redhat.com>
10025 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10026 to resume the event lwp. Use the lwp's ptid instead of the passed
10027 in (maybe wildcard) ptid.
10028 (stop_wait_callback): Tweak debug log output.
10029 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10031 (linux_nat_filter_event): In debug output, distinguish a
10032 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10033 before trying to resume the lwp.
10035 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10037 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10038 pointer indirection.
10039 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10040 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10042 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10044 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10045 Renames DYN_ATTR_DATA_LOCATION.
10046 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10047 DYN_ATTR_DATA_LOCATION.
10048 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10049 instead of DYN_ATTR_DATA_LOCATION.
10051 2015-03-24 Pedro Alves <palves@redhat.com>
10053 * breakpoint.c (until_break_command): Adjust call to proceed.
10054 * gdbthread.h (struct thread_control_state) <stepping_command>:
10056 * infcall.c (run_inferior_call): Adjust call to proceed.
10057 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10058 Adjust calls to proceed.
10059 (set_step_frame): Set the current thread's step_start_function
10061 (step_once): Adjust calls to proceed.
10062 (jump_command, signal_command, until_next_command)
10063 (finish_backward, finish_forward, proceed_after_attach_callback)
10064 (attach_command_post_wait): Adjust calls to proceed.
10065 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10066 (do_target_resume): New function, factored out from ...
10067 (resume): ... here. Remove 'step' parameter. Instead, check
10068 currently_stepping to determine whether the thread should be
10070 (proceed): Remove 'step' parameter and don't set the thread's
10071 step_start_function here. Adjust call to 'resume'.
10072 (handle_inferior_event): Adjust calls to 'resume'.
10073 (switch_back_to_stepped_thread): Use do_target_resume instead of
10075 (keep_going): Adjust calls to 'resume'.
10076 * infrun.h (proceed): Remove 'step' parameter.
10077 (resume): Likewise.
10078 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10080 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10082 2015-03-24 Pedro Alves <palves@redhat.com>
10084 * gdbthread.h (struct thread_control_state) <stepping_command>:
10086 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10087 the thread's stepping_command field.
10088 * infrun.c (resume): Check the thread's stepping_command flag to
10089 determine which threads should be resumed. Rename 'entry_step'
10090 local to user_step.
10091 (clear_proceed_status_thread): Clear 'stepping_command'.
10092 (schedlock_applies): Change parameter type to struct thread_info
10094 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10095 (switch_back_to_stepped_thread): Adjust calls to
10096 'schedlock_applies'.
10097 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10099 2015-03-24 Pedro Alves <palves@redhat.com>
10101 * infrun.c (step_start_function): Delete and ...
10102 * gdbthread.h (struct thread_control_state) <step_start_function>:
10103 ... now a field here.
10104 * infrun.c (clear_proceed_status_thread): Clear the thread's
10105 step_start_function.
10106 (proceed, process_event_stop_test, print_stop_event): Adjust.
10108 2015-03-24 Pedro Alves <palves@redhat.com>
10110 * infrun.c (proceed): No longer handle negative step.
10112 2015-03-24 Gary Benson <gbenson@redhat.com>
10114 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10115 (x86_linux_prepare_to_resume): Likewise.
10116 * x86-linux-nat.c (x86_linux_new_thread):
10117 Moved to nat/x86-linux.c.
10118 (x86_linux_prepare_to_resume): Likewise.
10119 * nat/x86-linux.c (x86_linux_new_thread): New function.
10120 (x86_linux_prepare_to_resume): Likewise.
10122 2015-03-24 Gary Benson <gbenson@redhat.com>
10124 * nat/x86-linux-dregs.h: New file.
10125 * nat/x86-linux-dregs.c: Likewise.
10126 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10127 (x86-linux-dregs.o): New rule.
10128 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10129 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10130 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10131 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10132 (x86_linux_dr_get): Likewise.
10133 (x86_linux_dr_set): Likewise.
10134 (x86_linux_dr_get_addr): Likewise.
10135 (x86_linux_dr_get_control): Likewise.
10136 (x86_linux_dr_get_status): Likewise.
10137 (update_debug_registers_callback): Likewise.
10138 (x86_linux_dr_set_control): Likewise.
10139 (x86_linux_dr_set_addr): Likewise.
10140 (x86_linux_update_debug_registers): Likewise.
10142 2015-03-24 Gary Benson <gbenson@redhat.com>
10144 * x86-linux-nat.c (x86_linux_update_debug_registers):
10145 New function, factored out from...
10146 (x86_linux_prepare_to_resume): ...this.
10148 2015-03-24 Gary Benson <gbenson@redhat.com>
10150 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10151 (x86_linux_dr_set): Likewise.
10152 (x86_linux_dr_get_addr): Likewise.
10153 (x86_linux_dr_get_control): Likewise.
10154 (x86_linux_dr_get_status): Likewise.
10155 (update_debug_registers_callback): Likewise.
10156 (x86_linux_dr_set_control): Likewise.
10157 (x86_linux_dr_set_addr): Likewise.
10158 (x86_linux_prepare_to_resume): Likewise.
10159 (x86_linux_new_thread): Likewise.
10161 2015-03-24 Gary Benson <gbenson@redhat.com>
10163 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10164 (x86_linux_new_thread): Rename argument.
10166 2015-03-24 Gary Benson <gbenson@redhat.com>
10168 * nat/x86-linux.h: New file.
10169 * nat/x86-linux.c: Likewise.
10170 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10171 (x86-linux.o): New rule.
10172 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10173 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10174 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10175 (lwp_set_arch_private_info): New declaration.
10176 (lwp_arch_private_info): Likewise.
10177 * linux-nat.c (lwp_set_arch_private_info): New function.
10178 (lwp_arch_private_info): Likewise.
10179 * x86-linux-nat.c: Include nat/x86-linux.h.
10180 (arch_lwp_info): Removed structure.
10181 (update_debug_registers_callback):
10182 Use lwp_set_debug_registers_changed.
10183 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10184 and lwp_set_debug_registers_changed.
10185 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10187 2015-03-24 Gary Benson <gbenson@redhat.com>
10189 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10190 (lwp_is_stopped): Likewise.
10191 (lwp_stop_reason): Likewise.
10192 * linux-nat.c (ptid_of_lwp): New function.
10193 (lwp_is_stopped): Likewise.
10194 (lwp_is_stopped_by_watchpoint): Likewise.
10195 * x86-linux-nat.c (update_debug_registers_callback):
10196 Use lwp_is_stopped.
10197 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10200 2015-03-24 Gary Benson <gbenson@redhat.com>
10202 * linux-nat.h (linux_stop_lwp): Move declaration to...
10203 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10205 2015-03-24 Gary Benson <gbenson@redhat.com>
10207 * linux-nat.h: Include nat/linux-nat.h.
10208 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10209 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10210 (iterate_over_lwps_ftype): New typedef.
10211 (iterate_over_lwps): New declaration.
10212 * linux-nat.h (iterate_over_lwps): Update comment. Use
10213 iterate_over_lwps_ftype. Update callback return value check.
10215 2015-03-24 Gary Benson <gbenson@redhat.com>
10217 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10218 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10220 2015-03-24 Gary Benson <gbenson@redhat.com>
10222 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10223 * linux-nat.c (current_lwp_ptid): New function.
10224 * x86-linux-nat.c: Include nat/linux-nat.h.
10225 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10226 (x86_linux_dr_get_control): Likewise.
10227 (x86_linux_dr_get_status): Likewise.
10228 (x86_linux_dr_set_control): Likewise.
10229 (x86_linux_dr_set_addr): Likewise.
10231 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10233 PR breakpoints/16466
10234 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10236 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10238 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10239 * ser-unix.c (hardwire_setparity): Likewise.
10241 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10243 * NEWS: Mention set/show serial parity command.
10244 * monitor.c (monitor_open): Call serial_setparity.
10245 * remote.c (remote_open_1): Likewise.
10246 * ser-base.c (ser_base_serparity): New function.
10247 * ser-base.h (ser_base_setparity): Add declaration.
10248 * ser-go32.c (dos_ops): Set "setparity" field.
10249 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10251 (ser_windows_setparity): New function.
10252 (hardwire_ops): Add ser_windows_setparity.
10253 (tty_ops): Add NULL for setparity field.
10254 (pipe_ops): Add ser_base_setparity.
10255 (tcp_ops): Likewise.
10256 * ser-pipe.c (pipe_ops): Likewise.
10257 * ser-tcp.c (tcp_ops): Likewise.
10258 * ser-unix.c (hardwire_setparity): Add declaration.
10259 (hardwire_raw): Don't reset PARENB flag.
10260 (hardwire_setparity): New function.
10261 (hardwire_ops): Add hardwire_setparity.
10262 * serial.c (serial_setparity): New function.
10263 (serial_parity): New global.
10264 (parity_none, parity_odd, parity_even, parity_enums, parity):
10265 New static globals.
10266 (set_parity): New function.
10267 (_initialize_serial): Add set/show serial parity commands.
10268 * serial.h (GDBPARITY_NONE): Define.
10269 (GDBPARITY_ODD): Define.
10270 (GDBPARITY_EVEN): Define.
10271 (serial_setparity) Add declaration.
10272 (struct serial_ops): Add setparity field.
10273 * target.h (serial_parity): Add declaration.
10275 2015-03-23 Keith Seitz <keiths@redhat.com>
10277 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10279 2015-03-23 Keith Seitz <keiths@redhat.com>
10281 * breakpoint.c (parse_breakpoint_sals): Use
10282 linespec_lexer_lex_keyword to ascertain if the user specified
10284 * linespec.c [IF_KEYWORD_INDEX]: Define.
10285 (linespec_lexer_lex_keyword): Export.
10286 (struct ls_parser) <keyword_ok>: Remove.
10287 A keyword is only a keyword if not followed by another keyword.
10288 (linespec_lexer_lex_one): Remove keyword_ok handling.
10289 Add comment explaining why the parsing stream is not advanced
10290 when a keyword is seen.
10291 (parse_linespec): Remove parser->keyword_ok.
10292 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10294 2015-03-23 Keith Seitz <keiths@redhat.com>
10297 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10298 if we find a static method with DW_AT_vtable_elem_location.
10300 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10302 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10303 before the second loop, to avoid undefined behavior. Reported by
10304 Anton Blanchard <anton@samba.org>.
10306 2015-03-20 Keven Boell <keven.boell@intel.com>
10308 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10309 data_location usage to linked list.
10310 (resolve_dynamic_type_internal): Adapt data_location to
10312 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10313 (copy_type_recursive, copy_type): Add copy of linked list.
10314 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10315 (struct dynamic_prop_list): New struct.
10316 * dwarf2read.c (set_die_type): Set data_location data.
10318 2015-03-20 Pedro Alves <palves@redhat.com>
10320 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10321 inner block and make it const.
10322 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10324 2015-03-20 Pedro Alves <palves@redhat.com>
10326 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10327 * breakpoint.h (set_breakpoint_condition): Update declaration.
10329 2015-03-20 Pedro Alves <palves@redhat.com>
10331 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10333 2015-03-20 Pedro Alves <palves@redhat.com>
10335 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10337 2015-03-20 Pedro Alves <palves@redhat.com>
10339 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10341 2015-03-20 Pedro Alves <palves@redhat.com>
10343 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10344 (nto_init_solib_absolute_prefix): Likewise.
10346 2015-03-20 Pedro Alves <palves@redhat.com>
10348 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10349 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10351 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10353 * config/djgpp/README: Remove gdb.hp.
10355 2015-03-20 Yao Qi <yao.qi@linaro.org>
10357 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10358 set_gdbarch_cannot_step_breakpoint.
10360 2015-03-19 Pedro Alves <palves@redhat.com>
10362 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10363 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10364 instead call perror_with_name.
10365 (check_ptrace_stopped_lwp_gone): New function.
10366 (linux_resume_one_lwp): Reimplement as wrapper around
10367 linux_resume_one_lwp_throw that swallows errors if the LWP is
10369 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10370 swallows errors if the LWP is gone. Use
10371 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10373 2015-03-19 Pedro Alves <palves@redhat.com>
10375 * linux-nat.c (status_callback): Return early if the LWP has no
10378 2015-03-19 Pedro Alves <palves@redhat.com>
10380 * linux-nat.c (select_event_lwp_callback): Update comment to no
10381 longer mention SIGTRAP.
10383 2015-03-18 Tristan Gingold <gingold@adacore.com>
10385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10386 redirection code to ...
10387 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10388 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10390 2015-03-18 Gary Benson <gbenson@redhat.com>
10392 (remote_protocol_features): Remove the "vFile:fstat" feature.
10393 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10395 2015-03-11 Yao Qi <yao.qi@linaro.org>
10398 * aarch64-linux-tdep.c: Include xml-syscall.h
10399 (aarch64_linux_get_syscall_number): New function.
10400 (aarch64_linux_init_abi): Call
10401 set_gdbarch_get_syscall_number.
10402 * syscalls/aarch64-linux.xml: New file.
10404 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10406 * ser-base.h (ser_base_setstopbits): Change second argument name
10407 from "rate" to "num".
10409 2015-03-17 Gary Benson <gbenson@redhat.com>
10410 Luke Allardyce <lukeallardyce@gmail.com>
10413 * common/common-remote-fileio.h (sys/stat.h): New include.
10414 (stuct stat): Remove forward declaration.
10416 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10418 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10419 before writing core register notes.
10421 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10422 Pedro Alves <palves@redhat.com>
10424 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10425 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10426 (tgoto): Wrap with extern "C".
10428 2015-03-16 Pedro Alves <palves@redhat.com>
10429 Yuanhui Zhang <asmwarrior@gmail.com>
10431 * stub-termcap.c (tputs): Change prototype.
10433 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10434 Pedro Alves <palves@redhat.com>
10436 * windows-nat.c (struct thread_info_struct): Rename to ...
10437 (struct windows_thread_info_struct): ... this.
10438 (thread_info): Rename to ...
10439 (windows_thread_info): ... this.
10442 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10443 Pedro Alves <palves@redhat.com>
10445 * NEWS: New Removed targets and native configurations.
10447 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10450 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10451 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10452 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10453 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10454 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10455 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10456 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10458 * config/ia64/hpux.mh: Remove file.
10459 * config/pa/hpux.mh: Remove file.
10460 * configure: Rebuilt.
10461 * configure.ac (dlgetmodinfo, somread.o): Remove.
10462 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10463 (ia64-*-hpux*): Remove its float format exception.
10464 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10465 * hppa-hpux-nat.c: Remove file.
10466 * hppa-hpux-tdep.c: Remove file.
10467 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10468 Move them here from hppa-tdep.h
10469 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10470 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10471 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10472 Move them to hppa-tdep.c.
10473 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10475 * ia64-hpux-nat.c: Remove file.
10476 * ia64-hpux-tdep.c: Remove file.
10477 * ia64-hpux-tdep.h: Remove file.
10478 * inf-ttrace.c: Remove file.
10479 * inf-ttrace.h: Remove file.
10480 * solib-ia64-hpux.c: Remove file.
10481 * solib-ia64-hpux.h: Remove file.
10482 * solib-pa64.c: Remove file.
10483 * solib-pa64.h: Remove file.
10484 * solib-som.c: Remove file.
10485 * solib-som.h: Remove file.
10486 * somread.c: Remove file.
10488 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10490 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10491 * config.in: Regenerate.
10492 * configure: Regenerate.
10493 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10495 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10496 enumerate memory regions if present.
10498 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10500 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10501 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10503 (i386fbsd_sigtramp_p): Likewise.
10505 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10507 * MAINTAINERS (Write After Approval): Add John Baldwin.
10509 2015-03-12 Gary Benson <gbenson@redhat.com>
10511 * solib.c (_initialize_solib): Make "set/show sysroot" use
10512 add_setshow_optional_filename_cmd so it can be restored to
10513 empty after being set.
10515 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10517 * Makefile.in (SFILES): New source break-catch-syscall.c.
10518 (COMMON_OBS): New object break-catch-syscall.o.
10519 * break-catch-syscall.c: New file.
10520 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10521 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10522 (struct syscall_catchpoint): Likewise.
10523 (dtor_catch_syscall): Likewise.
10524 (catch_syscall_inferior_data): Likewise.
10525 (struct catch_syscall_inferior_data): Likewise.
10526 (get_catch_syscall_inferior_data): Likewise.
10527 (catch_syscall_inferior_data_cleanup): Likewise.
10528 (insert_catch_syscall): Likewise.
10529 (remove_catch_syscall): Likewise.
10530 (breakpoint_hit_catch_syscall): Likewise.
10531 (print_it_catch_syscall): Likewise.
10532 (print_one_catch_syscall): Likewise.
10533 (print_mention_catch_syscall): Likewise.
10534 (print_recreate_catch_syscall): Likewise.
10535 (catch_syscall_breakpoint_ops): Likewise.
10536 (syscall_catchpoint_p): Likewise.
10537 (create_syscall_event_catchpoint): Likewise.
10538 (catch_syscall_split_args): Likewise.
10539 (catch_syscall_command_1): Likewise.
10540 (is_syscall_catchpoint_enabled): Likewise.
10541 (catch_syscall_enabled): Likewise.
10542 (catching_syscall_number): Likewise.
10543 (catch_syscall_completer): Likewise.
10544 (clear_syscall_counts): Likewise.
10545 (initialize_breakpoint_ops): Move initialization of syscall
10546 catchpoints to break-catch-syscall.c.
10547 (_initialize_breakpoint): Move code related to syscall catchpoints
10548 to break-catch-syscall.c.
10550 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10552 * breakpoint.c (breakpoint_find_if): New function.
10553 * breakpoint.h (breakpoint_find_if): New prototype.
10555 2015-03-11 Gary Benson <gbenson@redhat.com>
10557 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10558 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10559 (remote_fileio_to_host_ulong): Likewise.
10560 (remote_fileio_to_host_mode): Likewise.
10561 (remote_fileio_to_host_time): Likewise.
10562 (remote_fileio_to_host_stat): Likewise.
10563 * remote.c (PACKET_vFile_fstat): New enum value.
10564 (remote_protocol_features): Register the "vFile:fstat" feature.
10565 (remote_hostio_fstat): New function.
10566 (remote_bfd_iovec_stat): Use the above.
10567 (_initialize_remote): Register new "set/show remote
10568 hostio-fstat-packet" command.
10569 * symfile.c (separate_debug_file_exists): Update comment.
10570 * NEWS: Announce new vFile:fstat packet.
10572 2015-03-11 Gary Benson <gbenson@redhat.com>
10574 * common/common-remote-fileio.h: New file.
10575 * common/common-remote-fileio.c: Likewise.
10576 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10577 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10578 (COMMON_OBS): Add common-remote-fileio.o.
10579 (common-remote-fileio.o): New rule.
10580 * remote-fileio.h (common-remote-fileio.h): New include.
10581 * remote-fileio.c (gdb/fileio.h): Do not include.
10582 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10583 (remote_fileio_to_fio_uint): Likewise.
10584 (remote_fileio_to_fio_time): Likewise.
10585 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10586 (remote_fileio_to_fio_mode): Likewise.
10587 (remote_fileio_to_fio_ulong): Likewise.
10588 (remote_fileio_to_fio_stat): Likewise.
10590 2015-03-11 Andy Wingo <wingo@igalia.com>
10592 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10593 we were checking the cached type, not the cached dynamic type.
10595 2015-03-11 Andy Wingo <wingo@igalia.com>
10597 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10598 other strings, as these are on the GC'd heap, and will be
10599 collected along with the smob.
10601 2015-03-11 Andy Wingo <wingo@igalia.com>
10603 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10604 (objfile_functions): Bind gdbscm_objfile_progspace to
10606 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10608 2015-03-11 Andy Wingo <wingo@igalia.com>
10610 * guile/guile.c (_initialize_guile): Disable automatic
10611 finalization, if Guile offers us that possibility.
10612 * guile/guile.c (call_initialize_gdb_module):
10613 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10614 finalizers in appropriate places.
10615 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10616 scm_set_automatic_finalization_enabled.
10617 * configure: Regenerated.
10619 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10621 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10624 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10626 * s390-linux-nat.c (struct arch_lwp_info): New.
10627 (s390_fix_watch_points): Rename to...
10628 (s390_prepare_to_resume): ...this. Skip the PER info update
10629 unless the watch points have changed.
10630 (s390_refresh_per_info, s390_new_thread): New functions.
10631 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10632 s390_fix_watch_points.
10633 (s390_remove_watchpoint): Likewise.
10634 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10635 Register s390_prepare_to_resume.
10637 2015-03-09 Pedro Alves <palves@redhat.com>
10640 2015-03-07 Pedro Alves <palves@redhat.com>
10641 * common/gdb_socket.h: New file.
10642 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10644 (net_open): Use union gdb_sockaddr_u.
10646 2015-03-07 Pedro Alves <palves@redhat.com>
10648 * configure.ac (build_warnings): Move -Wmissing-prototypes
10649 -Wdeclaration-after-statement -Wmissing-parameter-type
10650 -Wold-style-declaration -Wold-style-definition to the C-specific
10652 * configure: Regenerate.
10654 2015-03-07 Pedro Alves <palves@redhat.com>
10656 * common/gdb_socket.h: New file.
10657 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10659 (net_open): Use union gdb_sockaddr_u.
10661 2015-03-07 Pedro Alves <palves@redhat.com>
10663 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10664 (exceptions_state_mc_action_iter)
10665 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10667 [__cplusplus] (try_scope_depth): New global.
10668 [__cplusplus] (exception_try_scope_entry)
10669 (exception_try_scope_exit, gdb_exception_sliced_copy)
10670 (exception_rethrow): New functions.
10671 (throw_exception): In C++ mode, throw
10672 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10673 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10674 (throw_it): In C++ mode, use try_scope_depth.
10675 * common/common-exceptions.h [!__cplusplus]
10676 (exceptions_state_mc_action_iter)
10677 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10679 [__cplusplus] (exception_try_scope_entry)
10680 (exception_try_scope_exit, exception_rethrow): Declare.
10681 [__cplusplus] (struct exception_try_scope): New struct.
10682 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10684 (struct gdb_exception_RETURN_MASK_ALL)
10685 (struct gdb_exception_RETURN_MASK_ERROR)
10686 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10688 2015-03-07 Pedro Alves <palves@redhat.com>
10690 * main.c (handle_command_errors): Remove volatile qualifier from
10693 2015-03-07 Pedro Alves <palves@redhat.com>
10695 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10697 * gdbtypes.c (safe_parse_type): Remove empty line.
10698 (types_deeply_equal):
10699 * guile/scm-frame.c (gdbscm_frame_name):
10700 * linux-thread-db.c (find_new_threads_once):
10701 * python/py-breakpoint.c (bppy_get_commands):
10702 * record-btrace.c (record_btrace_insert_breakpoint)
10703 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10704 (record_btrace_start_replaying): Adjust to avoid code between TRY
10707 2015-03-07 Pedro Alves <palves@redhat.com>
10709 * common/common-exceptions.c (struct catcher) <exception>: No
10710 longer a pointer to volatile exception. Now an exception value.
10711 <mask>: Delete field.
10712 (exceptions_state_mc_init): Remove all parameters. Adjust.
10713 (exceptions_state_mc): No longer pop the catcher here.
10714 (exceptions_state_mc_catch): New function.
10715 (throw_exception): Adjust.
10716 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10718 (exceptions_state_mc_catch): Declare.
10719 (TRY_CATCH): Rename to ...
10720 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10721 (CATCH, END_CATCH): New.
10722 All callers adjusted.
10724 2015-03-07 Tom Tromey <tromey@redhat.com>
10726 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10728 2015-03-07 Pedro Alves <palves@redhat.com>
10730 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10731 (amd64_epilogue_frame_cache): Normal exception handling code.
10732 * break-catch-throw.c (check_status_exception_catchpoint)
10733 (re_set_exception_catchpoint): Ditto.
10734 * cli/cli-interp.c (safe_execute_command):
10735 * cli/cli-script.c (script_from_file): Ditto.
10736 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10738 * compile/compile-object-run.c (compile_object_run): Ditto.
10739 * cp-abi.c (baseclass_offset): Ditto.
10740 * cp-valprint.c (cp_print_value): Ditto.
10741 * exceptions.c (catch_exceptions_with_msg):
10742 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10743 * frame.c (get_frame_address_in_block_if_available): Ditto.
10744 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10745 (i386_sigtramp_frame_cache): Ditto.
10746 * infcmd.c (post_create_inferior): Ditto.
10747 * linespec.c (parse_linespec, find_linespec_symbols):
10748 * p-valprint.c (pascal_object_print_value): Ditto.
10749 * parse.c (parse_expression_for_completion): Ditto.
10750 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10751 * remote.c (remote_get_noisy_reply): Ditto.
10752 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10753 * solib-svr4.c (solib_svr4_r_map): Ditto.
10755 2015-03-06 Gary Benson <gbenson@redhat.com>
10757 * common/common-utils.h (startswith): New inline function.
10758 All places where this logic was used updated to use the above.
10760 2015-03-05 Pedro Alves <palves@redhat.com>
10763 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10764 after reading the breakpoint's shadow memory.
10766 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10768 * hppabsd-nat.c: Remove file.
10769 * hppaobsd-nat.c: New file.
10770 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10772 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10775 2015-03-04 Pedro Alves <palves@redhat.com>
10777 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10778 (target_decr_pc_after_break): Delete declaration.
10779 * target.c (default_target_decr_pc_after_break)
10780 (target_decr_pc_after_break): Delete.
10781 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10782 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10783 * linux-thread-db.c (check_event): Likewise.
10784 * infrun.c (adjust_pc_after_break): Likewise.
10785 * darwin-nat.c (cancel_breakpoint): Likewise.
10786 * aix-thread.c (aix_thread_wait): Likewise.
10787 * target-delegates.c: Regenerate.
10789 2015-03-04 Pedro Alves <palves@redhat.com>
10791 * linux-nat.c (save_sigtrap): Check for breakpoints before
10792 checking watchpoints.
10793 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10794 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10795 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10796 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10797 (linux_nat_stopped_by_sw_breakpoint)
10798 (linux_nat_supports_stopped_by_sw_breakpoint)
10799 (linux_nat_stopped_by_hw_breakpoint)
10800 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10801 (linux_nat_wait_1): Don't re-increment the PC if relying on
10802 SIGTRAP's siginfo->si_code.
10803 (linux_nat_add_target): Install new target methods.
10804 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10805 offset if the target already adjusted the PC.
10806 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10807 (GDB_ARCH_TRAP_BRKPT): New.
10808 (TRAP_HWBKPT): Define if not already defined.
10810 2015-03-04 Pedro Alves <palves@redhat.com>
10812 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10813 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10815 <stop_reason>: New field.
10816 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10817 (packet_set_cmd_state): New function.
10818 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10820 (remote_query_supported): If not disabled with the corresponding
10821 "set remote foo-packet" command, report support for the swbreak
10822 and hwbreak features.
10823 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10825 <stop_reason>: New field.
10826 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10827 (remote_wait_as): Adjust.
10828 (remote_stopped_by_sw_breakpoint)
10829 (remote_supports_stopped_by_sw_breakpoint)
10830 (remote_stopped_by_hw_breakpoint)
10831 (remote_supports_stopped_by_hw_breakpoint): New functions.
10832 (remote_stopped_by_watchpoint): New function.
10833 (init_remote_ops): Install them.
10834 (_initialize_remote): Register new "set/show remote
10835 swbreak-feature-packet" and "set/show remote
10836 swbreak-feature-packet" commands.
10838 2015-03-04 Pedro Alves <palves@redhat.com>
10840 * btrace.h: Include target/waitstatus.h.
10841 (struct btrace_thread_info) <stop_reason>: New field.
10842 * record-btrace.c (record_btrace_step_thread): Use
10843 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10844 (record_btrace_decr_pc_after_break): Delete.
10845 (record_btrace_stopped_by_sw_breakpoint)
10846 (record_btrace_supports_stopped_by_sw_breakpoint)
10847 (record_btrace_stopped_by_hw_breakpoint)
10848 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10849 (init_record_btrace_ops): Install them.
10850 * record-full.c (record_full_hw_watchpoint): Delete and replace
10852 (record_full_stop_reason): ... this throughout.
10853 (record_full_exec_insn): Adjust.
10854 (record_full_wait_1): Adjust. No longer re-increment the PC.
10855 (record_full_wait_1): Adjust. Use
10856 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10857 (record_full_stopped_by_watchpoint): Adjust.
10858 (record_full_stopped_by_sw_breakpoint)
10859 (record_full_supports_stopped_by_sw_breakpoint)
10860 (record_full_supports_stopped_by_sw_breakpoint)
10861 (record_full_stopped_by_hw_breakpoint)
10862 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10863 (init_record_full_ops, init_record_full_core_ops): Install them.
10864 * record.c (record_check_stopped_by_breakpoint): New function.
10865 * record.h: Include target/waitstatus.h.
10866 (record_check_stopped_by_breakpoint): New declaration.
10868 2015-03-04 Pedro Alves <palves@redhat.com>
10870 enum lwp_stop_reason -> enum target_stop_reason
10871 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10872 (linux_nat_stopped_by_watchpoint, status_callback)
10873 (linux_nat_wait_1): Adjust.
10874 * linux-nat.h (enum lwp_stop_reason): Delete.
10875 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10876 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10877 * target/waitstatus.h (enum target_stop_reason): New.
10879 2015-03-04 Pedro Alves <palves@redhat.com>
10881 * breakpoint.c (need_moribund_for_location_type): New function.
10882 (bpstat_stop_status): Don't skipping checking moribund locations
10883 of breakpoint types which the target tell caused a stop.
10884 (program_breakpoint_here_p): New function, factored out from ...
10885 (bp_loc_is_permanent): ... this.
10886 (update_global_location_list): Don't create a moribund location if
10887 the target supports reporting stops of the type of the removed
10889 * breakpoint.h (program_breakpoint_here_p): New declaration.
10890 * infrun.c (adjust_pc_after_break): Return early if the target has
10891 already adjusted the PC. Add comments.
10892 (handle_signal_stop): If nothing explains a signal, and the target
10893 tells us the stop was caused by a software breakpoint, check if
10894 there's a breakpoint instruction in the memory. If so, adjust the
10895 PC before presenting the stop to the user. Otherwise, ignore the
10896 trap. If nothing explains a signal, and the target tells us the
10897 stop was caused by a hardware breakpoint, ignore the trap.
10898 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10899 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10900 to_supports_stopped_by_hw_breakpoint>: New fields.
10901 (target_stopped_by_sw_breakpoint)
10902 (target_supports_stopped_by_sw_breakpoint)
10903 (target_stopped_by_hw_breakpoint)
10904 (target_supports_stopped_by_hw_breakpoint): Define.
10905 * target-delegates.c: Regenerate.
10907 2015-03-04 Pedro Alves <palves@redhat.com>
10909 * infrun.c (follow_fork_inferior): Use the whole of the
10910 inferior_ptid and pending_follow.related_pid ptids instead of
10911 building ptids from the process components. Adjust verbose output
10912 to use target_pid_to_str.
10913 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10914 inferior_ptid and pending_follow.related_pid ptids instead of
10915 building ptids from the process components.
10917 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10919 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10920 (inf_ptrace_insert_fork_catchpoint): New function.
10921 (inf_ptrace_remove_fork_catchpoint): New function.
10922 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10924 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10926 * s390-linux-tdep.c (s390_register_name): Return empty string
10927 instead of NULL for registers that shouldn't be visible.
10929 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10931 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10932 XML file for 64-bit targets.
10934 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10936 * target.h (find_default_create_inferior): Remove declaration.
10937 (find_default_attach): Likewise.
10939 2015-03-03 Pedro Alves <palves@redhat.com>
10941 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10942 Use ptid_get_pid to get the overall process id when resuming all
10945 2015-03-03 Pedro Alves <palves@redhat.com>
10947 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10948 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10949 * inf-ptrace.c (get_ptrace_pid): New function.
10950 (inf_ptrace_resume): Use it.
10951 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10952 to the lower layer.
10954 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10956 * nat/linux-btrace.c: Include sys/utsname.h.
10957 (linux_determine_kernel_ptr_bits): New.
10958 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10959 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10962 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10964 * btrace.c (ftrace_update_function): Treat return as tailcall for
10965 "_dl_runtime_resolve".
10967 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10969 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10970 * btrace.c (ftrace_debug): Do not print the line range.
10971 (ftrace_skip_file, ftrace_update_lines): Remove.
10972 (ftrace_new_function): Remove lbegin and lend initialization.
10973 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10974 * record-btrace.c (btrace_compute_src_line_range): New.
10975 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10977 2015-03-02 Pedro Alves <palves@redhat.com>
10979 * infrun.c (follow_exec): Delete all threads of the process except
10980 the event thread. Extended comments.
10982 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10984 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10986 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10988 * utils.h: Remove <stdbool.h> #include.
10989 (producer_is_gcc): Change return type to "int".
10990 * utils.c (producer_is_gcc): Change return type to int.
10991 Return 1 instead of true, and 0 instead of false.
10992 Adjust function documentation accordingly.
10994 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10996 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10997 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10999 (s390_linux_store_inferior_registers): Likewise.
11000 (s390_get_hwcap): Remove function. Embed its logic...
11001 (s390_read_description): ...here. Yield a target description with
11002 vector registers if applicable.
11003 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11004 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11005 "features/s390x-tevx-linux64.c".
11006 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11007 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11008 for "GNU/Linux-specific registers".
11009 (s390_dwarf_reg_r0l): New enum value.
11010 (s390_dwarf_reg_to_regnum): Support vector registers.
11011 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11012 of GPR lower halves.
11013 (regnum_is_vxr_full): New function.
11014 (s390_register_name): New function.
11015 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11016 f0-f15 and v0l-v15l.
11017 (s390_pseudo_register_type): Likewise.
11018 (s390_pseudo_register_read): Likewise.
11019 (s390_pseudo_register_write): Likewise.
11020 (s390_value_from_register): Account for the fact that values are
11021 placed left-justified in vector registers.
11022 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11023 the vector reggroup and omit them from the general reggroup.
11024 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11025 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11026 (s390_iterate_over_regset_sections): Add iterations for the two
11027 new vector regsets.
11028 (s390_core_read_description): Yield a target description with
11029 vector registers if applicable.
11030 (s390_gdbarch_init): Handle target descriptions with vector
11031 registers. Add "register_name" gdbarch method.
11032 (_initialize_s390_tdep): Call new tdesc initialization functions.
11033 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11034 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11035 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11036 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11037 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11038 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11039 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11040 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11041 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11042 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11043 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11044 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11045 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11046 (S390_NUM_REGS): Adjust value.
11047 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11048 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11049 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11050 * NEWS: Announce S/390 vector register support.
11052 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11054 * features/s390-tevx-linux64.xml: New file.
11055 * features/s390-vx-linux64.xml: New file.
11056 * features/s390-vx.xml: New file.
11057 * features/s390x-tevx-linux64.xml: New file.
11058 * features/s390x-vx-linux64.xml: New file.
11059 * features/Makefile (WHICH): Add s390-vx-linux64,
11060 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11061 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11062 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11064 * features/s390-tevx-linux64.c: New generated file.
11065 * features/s390-vx-linux64.c: Likewise.
11066 * features/s390x-tevx-linux64.c: Likewise.
11067 * features/s390x-vx-linux64.c: Likewise.
11068 * regformats/s390-tevx-linux64.dat: Likewise.
11069 * regformats/s390-vx-linux64.dat: Likewise.
11070 * regformats/s390x-tevx-linux64.dat: Likewise.
11071 * regformats/s390x-vx-linux64.dat: Likewise.
11073 2015-02-28 Doug Evans <xdje42@gmail.com>
11075 * symtab.h (struct symtab) <next>: Fix comment.
11077 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11079 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11082 2015-02-27 Pedro Alves <palves@redhat.com>
11084 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11086 2015-02-27 Pedro Alves <palves@redhat.com>
11088 * common/common-exceptions.h (exception_none): Declare.
11089 * common/common-exceptions.c (exception_none): Moved from
11091 (exceptions_state_mc_init): Use exception_none.
11092 * exceptions.c (exception_none): Move to
11093 common/common-exceptions.c.
11094 * exceptions.h (exception_none): Move to
11095 common/common-exceptions.h.
11097 2015-02-27 Pedro Alves <palves@redhat.com>
11099 * main.c (catch_command_errors, catch_command_errors_const):
11100 Remove 'mask' argument. Adjust.
11101 (captured_main): Adjust callers.
11103 2015-02-27 Pedro Alves <palves@redhat.com>
11105 * python/python-internal.h: Include "extension-priv.h".
11107 2015-02-27 Pedro Alves <palves@redhat.com>
11109 * breakpoint.h (enum print_stop_action): Move further up in the
11112 2015-02-27 Pedro Alves <palves@redhat.com>
11114 * gdbarch.sh: Include regcache.h.
11115 * gdbarch.h: Regenerate.
11117 2015-02-27 Pedro Alves <palves@redhat.com>
11119 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11120 Remove duplicate const.
11121 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11124 2015-02-27 Pedro Alves <palves@redhat.com>
11126 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11127 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11128 * features/feature_to_c.sh: Tag the generated xml_builtin array
11129 with extern const in C++ mode.
11131 2015-02-27 Tom Tromey <tromey@redhat.com>
11133 * minidebug.c (struct lzma_stream): Rename to ...
11134 (struct gdb_lzma_stream): ... this.
11135 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11137 2015-02-27 Pedro Alves <palves@redhat.com>
11139 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11141 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11142 (mi_cmd_stack_list_variables): Use it.
11144 2015-02-27 Pedro Alves <palves@redhat.com>
11146 * x86-linux-nat.c (u_debugreg_offset): New function.
11147 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11149 2015-02-27 Pedro Alves <palves@redhat.com>
11151 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11153 Include break-common.h.
11155 2015-02-27 Tom Tromey <tromey@redhat.com>
11156 Pedro Alves <palves@redhat.com>
11158 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11159 local used to iterate over enums.
11160 * completer.c (signal_completer): Likewise.
11161 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11162 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11163 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11164 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11165 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11166 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11167 * tui-wingeneral.c (tui_refresh_all): Likewise.
11169 2015-02-27 Pedro Alves <palves@redhat.com>
11171 * target.h: Include "infrun.h".
11173 2015-02-27 Pedro Alves <palves@redhat.com>
11175 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11177 2015-02-27 Pedro Alves <palves@redhat.com>
11179 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11181 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11183 2015-02-27 Pedro Alves <palves@redhat.com>
11185 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11186 cli_mld_erase_entire_line, and make it extern "C".
11187 * common/common-defs.h (EXTERN_C): New.
11188 * completer.c (_rl_completion_prefix_display_length)
11189 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11190 out of gdb_display_match_list_1.
11191 (_rl_qsort_string_compare): Move declaration out of
11192 gdb_display_match_list_1, and make it extern "C".
11193 * defs.h (re_comp): Use EXTERN_C.
11194 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11195 and make it extern "C".
11196 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11197 and make it extern "C".
11198 (main): Move declaration out of maintenance_set_profile_cmd.
11199 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11202 2015-02-27 Pedro Alves <palves@redhat.com>
11204 * python/python.c (GdbMethods): Rename to ...
11205 (python_GdbMethods): ... this and make extern.
11206 (GdbModuleDef): Rename to ...
11207 (python_GdbModuleDef): ... this and make extern.
11209 2015-02-27 Pedro Alves <palves@redhat.com>
11211 * record-btrace.c (set_record_btrace_cmdlist)
11212 (show_record_btrace_cmdlist): Remove redefinitions.
11214 2015-02-27 Tom Tromey <tromey@redhat.com>
11215 Pedro Alves <palves@redhat.com>
11217 * dwarf2-frame.c (enum cfa_how_kind, struct
11218 dwarf2_frame_state_reg_info): Move out of struct
11219 dwarf2_frame_state.
11220 * dwarf2read.c (struct tu_stats): Move out of struct
11221 dwarf2_per_objfile.
11222 (struct file_entry): Move out of struct line_header.
11223 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11224 typedef_field_list): Move out of struct field_info.
11225 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11226 Move out of struct dynamic_prop.
11227 (union type_owner, union field_location, struct field, struct
11228 range_bounds, union type_specific): Move out of struct main_type.
11229 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11230 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11231 (struct call_site_target, union call_site_parameter_u, struct
11232 call_site_parameter): Move out of struct call_site.
11233 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11235 (enum srcdest_kind): Move out of struct srcdest.
11236 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11237 * prologue-value.h (enum prologue_value_kind): Move out of struct
11239 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11241 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11242 out of struct field_info.
11243 * symfile.h (struct other_sections): Move out of struct
11245 * symtab.c (struct symbol_cache_slot): Move out struct
11246 block_symbol_cache.
11247 * target-descriptions.c (enum tdesc_type_kind): Move out of
11248 typedef struct tdesc_type.
11249 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11250 struct tui_line_or_address.
11251 * value.c (enum internalvar_kind, union internalvar_data): Move
11252 out of struct internalvar.
11253 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11256 2015-02-27 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11259 Rename symbols whose names are reserved C++ keywords throughout.
11261 2015-02-27 Pedro Alves <palves@redhat.com>
11263 * Makefile.in (COMPILER): New, get it from autoconf.
11264 (COMPILE.pre, CC_LD): Use COMPILER.
11265 (CXX): Get from autoconf instead.
11266 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11267 * acinclude.m4: Include build-with-cxx.m4.
11268 * build-with-cxx.m4: New file.
11269 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11270 Disable -Werror by default if building in C++ mode.
11271 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11272 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11273 Run supported-warning-flags tests with the C++ compiler.
11274 Save/restore CXXFLAGS too.
11275 * configure: Regenerate.
11277 2015-02-27 Pedro Alves <palves@redhat.com>
11279 * libiberty.m4: New file.
11280 * acinclude.m4: Include libiberty.m4.
11281 * configure.ac: Call libiberty_INIT.
11282 * config.in, configure: Regenerate.
11284 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11286 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11287 31-bit targets, but 64-bit targets as well.
11288 (s390_gnu_triplet_regexp): New function.
11289 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11290 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11293 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11295 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11296 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11297 from CONTEXT_DEBUGGER.
11299 2015-02-26 Doug Evans <dje@google.com>
11301 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11303 (set_type_vptr_fieldno): Ditto.
11304 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11305 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11307 2015-02-26 Pedro Alves <palves@redhat.com>
11309 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11310 * complaints.c (vcomplaint): Pass argument FMT directly to
11311 printf-like functions instead of complaint->fmt.
11312 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11313 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11314 * compile/compile-loc2c.c (pushf, unary, binary): Add
11316 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11318 (BINARY): Pass string literal as format string to 'binary'.
11319 * compile/compile-object-load.c (link_callbacks_einfo): Add
11321 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11323 2015-02-26 Pedro Alves <palves@redhat.com>
11325 * windows-termcap.c: Rename to ...
11326 * stub-termcap.c: ... this. Adjust header line.
11327 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11329 * configure: Regenerate.
11330 * configure.ac: Refer to stub-termcap.o instead of
11332 * gdb_curses.h: Mention stub-termcap.c instead of
11335 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11337 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11338 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11340 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11342 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11344 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11346 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11347 bfd_canonicalize_symtab.
11349 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11351 * amd64fbsd-nat.c: Include sys/user.h.
11352 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11353 instead of KERN_PS_STRINGS to locate the signal trampoline.
11354 * i386fbsd-nat.c: Include sys/user.h.
11355 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11356 instead of KERN_PS_STRINGS to locate the signal trampoline.
11357 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11358 (amd64fbsd_sigtramp_p): New.
11359 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11360 longer set default values.
11361 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11362 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11363 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11364 (i386fbsd_freebsd4_sigtramp_start)
11365 (i386fbsd_freebsd4_sigtramp_middle)
11366 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11367 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11368 (i386fbsd_sigtramp_p): New.
11369 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11370 longer set default values.
11371 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11373 2015-02-25 John Baldwin <jhb@freebsd.org>
11375 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11376 get_frame_register instead of frame_unwind_register_unsigned.
11378 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11381 * compile/compile-c-support.c (c_compute_program): Change // comment.
11382 * compile/compile-object-load.c (setup_sections): Change // comment.
11384 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11387 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11389 2015-02-23 Pedro Alves <palves@redhat.com>
11391 * remote.c (skip_to_semicolon): New function.
11392 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11393 special case the stop reasons that look like hex numbers
11394 upfront. Instead handle real register numbers after matching
11395 all the known stop reasons.
11397 2015-02-21 Doug Evans <dje@google.com>
11399 PR c++/17976, symtab/17821
11400 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11401 is_in_anonymous. All callers updated.
11402 (find_symbol_in_baseclass): Ditto.
11403 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11404 for symbols in an anonymous namespace.
11405 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11406 DW_AT_name directly.
11407 (dwarf2_name): Convert missing namespace name to
11408 CP_ANONYMOUS_NAMESPACE_STR.
11410 2015-02-20 Pedro Alves <palves@redhat.com>
11412 * linux-nat.c (linux_handle_extended_wait): Call
11413 thread_db_notice_clone whenever a new clone LWP is detected.
11414 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11416 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11417 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11418 (linux_unstop_all_lwps): Declare.
11419 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11420 (thread_get_info_callback): Delete.
11421 (thread_from_lwp): Use td_thr_get_info and record_thread.
11422 (thread_db_attach_lwp): Delete.
11423 (thread_db_notice_clone): New function.
11424 (try_thread_db_load_1): If /proc is mounted and shows the
11425 process'es task list, walk over all LWPs and call thread_from_lwp
11426 instead of relying on td_ta_thr_iter.
11427 (attach_thread): Don't call check_thread_signals here. Split the
11428 tail part of the function (which adds the thread to the core GDB
11429 thread list) to ...
11430 (record_thread): ... this function. Call check_thread_signals
11432 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11433 call thread_from_lwp.
11434 (thread_db_update_thread_list): Rename to ...
11435 (thread_db_update_thread_list_org): ... this.
11436 (thread_db_update_thread_list): New function.
11437 (thread_db_find_thread_from_tid): Delete.
11438 (thread_db_get_ada_task_ptid): Simplify.
11439 * nat/linux-procfs.c: Include <sys/stat.h>.
11440 (linux_proc_task_list_dir_exists): New function.
11441 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11443 2015-02-20 Pedro Alves <palves@redhat.com>
11445 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11446 main LWP. Handle the case of waitpid returning 0 if we're already
11447 attached to the LWP. Don't set the LWP's last_resume_kind to
11448 resume_stop if we already knew about the LWP.
11449 (linux_nat_filter_event): Add debug logs.
11451 2015-02-20 Pedro Alves <palves@redhat.com>
11453 * target.h (forward_target_decr_pc_after_break): Delete
11456 2015-02-20 Pedro Alves <palves@redhat.com>
11459 * linux-thread-db.c (thread_get_info_callback): Return early if
11460 the thread's lwp id is -1.
11462 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11466 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11468 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11469 (dtrace_get_probes) Change type of variable 'dof'.
11471 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11473 PR breakpoints/16812
11474 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11475 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11476 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11478 2015-02-19 David Taylor <dtaylor@emc.com>
11480 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11482 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11484 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11486 (tui_putc): Don't call tui_handle_resize_during_io.
11487 (tui_getc): Likewise.
11488 (tui_mld_getc): Likewise.
11489 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11490 (tui_sigwinch_token): New static variable.
11491 (tui_initialize_win): Adjust documentation. Set
11492 tui_sigwinch_token.
11493 (tui_async_resize_screen): New asynchronous callback.
11494 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11495 invoke tui_async_resize_screen.
11497 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11499 * configure: Regenerated.
11500 * configure.ac: Use GDB_AC_TRANSFORM.
11501 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11502 * acinclude.m4: sinclude transform.m4.
11503 * transform.m4: New file.
11504 (GDB_AC_TRANSFORM): New macro.
11506 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11508 * NEWS: Announce the support for DTrace SDT probes.
11510 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11512 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11513 (amd64_dtrace_parse_probe_argument): New function.
11514 (amd64_dtrace_probe_is_enabled): Likewise.
11515 (amd64_dtrace_enable_probe): Likewise.
11516 (amd64_dtrace_disable_probe): Likewise.
11517 (amd64_linux_init_abi): Register the
11518 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11519 `gdbarch_dtrace_disable_probe' and
11520 `gdbarch_dtrace_probe_is_enabled' hooks.
11521 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11522 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11523 (amd64_dtrace_enable_probe_sequence): Likewise.
11524 (amd64_dtrace_disable_probe_sequence): Likewise.
11526 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11528 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11529 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11530 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11532 * Makefile.in (SFILES): dtrace-probe.c added.
11533 * configure: Regenerate.
11534 * dtrace-probe.c: New file.
11535 (SHT_SUNW_dof): New constant.
11536 (dtrace_probe_type): New enum.
11537 (dtrace_probe_arg): New struct.
11538 (dtrace_probe_arg_s): New typedef.
11539 (struct dtrace_probe_enabler): New struct.
11540 (dtrace_probe_enabler_s): New typedef.
11541 (dtrace_probe): New struct.
11542 (dtrace_probe_is_linespec): New function.
11543 (dtrace_dof_sect_type): New enum.
11544 (dtrace_dof_dofh_ident): Likewise.
11545 (dtrace_dof_encoding): Likewise.
11546 (DTRACE_DOF_ENCODE_LSB): Likewise.
11547 (DTRACE_DOF_ENCODE_MSB): Likewise.
11548 (dtrace_dof_hdr): New struct.
11549 (dtrace_dof_sect): Likewise.
11550 (dtrace_dof_provider): Likewise.
11551 (dtrace_dof_probe): Likewise.
11552 (DOF_UINT): New macro.
11553 (DTRACE_DOF_PTR): Likewise.
11554 (DTRACE_DOF_SECT): Likewise.
11555 (dtrace_process_dof_probe): New function.
11556 (dtrace_process_dof): Likewise.
11557 (dtrace_build_arg_exprs): Likewise.
11558 (dtrace_get_arg): Likewise.
11559 (dtrace_get_probes): Likewise.
11560 (dtrace_get_probe_argument_count): Likewise.
11561 (dtrace_can_evaluate_probe_arguments): Likewise.
11562 (dtrace_evaluate_probe_argument): Likewise.
11563 (dtrace_compile_to_ax): Likewise.
11564 (dtrace_probe_destroy): Likewise.
11565 (dtrace_gen_info_probes_table_header): Likewise.
11566 (dtrace_gen_info_probes_table_values): Likewise.
11567 (dtrace_probe_is_enabled): Likewise.
11568 (dtrace_probe_ops): New variable.
11569 (info_probes_dtrace_command): New function.
11570 (_initialize_dtrace_probe): Likewise.
11571 (dtrace_type_name): Likewise.
11573 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11575 * gdbarch.sh (dtrace_parse_probe_argument): New.
11576 (dtrace_probe_is_enabled): Likewise.
11577 (dtrace_enable_probe): Likewise.
11578 (dtrace_disable_probe): Likewise.
11579 * gdbarch.c: Regenerate.
11580 * gdbarch.h: Regenerate.
11582 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11584 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11585 stap_probe_ops for `enable_probe' and `disable_probe'.
11586 * probe.c (enable_probes_command): New function.
11587 (disable_probes_command): Likewise.
11588 (_initialize_probe): Define the cli commands `enable probe' and
11590 (parse_probe_linespec): New function.
11591 (info_probes_for_ops): Use parse_probe_linespec.
11592 * probe.h (probe_ops): New hooks `enable_probe' and
11595 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11597 * probe.c (compute_probe_arg): Moved from stap-probe.c
11598 (compile_probe_arg): Likewise.
11599 (probe_funcs): Likewise.
11600 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11601 (compile_probe_arg): Likewise.
11602 (probe_funcs): Likewise.
11604 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11606 * probe.c (print_ui_out_not_applicables): New function.
11607 (exists_probe_with_pops): Likewise.
11608 (info_probes_for_ops): Do not include column headers for probe
11609 types for which no probe has been actually found on any object.
11610 Also invoke `print_ui_out_not_applicables' in order to match the
11611 column rows with the header when probes of several types are
11613 Print the "Type" column.
11614 * probe.h (probe_ops): Added a new probe operation `type_name'.
11615 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11616 (stap_type_name): New function.
11618 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11620 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11621 (key_is_command_char): Delete.
11623 2015-02-17 Pedro Alves <palves@redhat.com>
11625 * tui/tui.c (tui_enable): Resize windows before anything
11626 might show a window.
11628 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11631 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11632 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11634 * aarch64-tdep.h (tdesc_aarch64): Declare.
11636 2015-02-12 Mark Wielaard <mjw@redhat.com>
11638 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11640 2015-02-13 Doug Evans <dje@google.com>
11642 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11643 anonymous_namespace to is_in_anonymous for consistency with the rest
11645 (cp_lookup_bare_symbol): Fix typo in comment.
11646 (cp_search_static_and_baseclasses): Ditto.
11647 (search_symbol_list): Use vertical space in comment better.
11648 (reset_directive_searched): Ditto. Fix typo.
11649 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11651 2015-02-13 Yao Qi <yao.qi@arm.com>
11653 * MAINTAINERS: Update my email address.
11655 2015-02-12 Doug Evans <dje@google.com>
11657 * symtab.c (completion_list_add_name): Fix memory leak.
11659 2015-02-12 Doug Evans <dje@google.com>
11661 * completer.c (complete_line): Remove incorrect comment.
11663 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11665 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11666 (py_print_frame): Use RETURN_MASK_ERROR.
11668 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11670 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11671 function comment. Wrap all function that can throw in cleanups.
11672 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11675 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11677 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11678 Remove the error label.
11680 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11682 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11683 with goto first, indent the former else codepath left. Put variable
11684 'elided' to a new inner block.
11686 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11688 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11690 2015-02-11 Pedro Alves <palves@redhat.com>
11692 * xcoffread.c (within_function): Delete.
11694 2015-02-11 Tom Tromey <tromey@redhat.com>
11695 Pedro Alves <palves@redhat.com>
11697 * breakpoint.c (base_breakpoint_ops): Delete.
11698 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11699 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11700 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11701 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11702 * python/py-arch.c (arch_object_type): Make extern.
11703 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11704 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11705 * python/py-cmd.c (cmdpy_object_type): Make extern.
11706 * python/py-continueevent.c (continue_event_object_type)
11707 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11708 parameter. Update all callers.
11709 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11710 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11711 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11712 * python/py-function.c (fnpy_object_type): Make extern.
11713 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11714 * python/py-infevents.c (call_pre_event_object_type)
11715 (inferior_call_post_event_object_type).
11716 (memory_changed_event_object_type): Make extern.
11717 * python/py-infthread.c (thread_object_type): Make extern.
11718 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11719 * python/py-linetable.c (linetable_entry_object_type)
11720 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11721 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11722 (clear_objfiles_event_object_type): Make extern.
11723 * python/py-objfile.c (objfile_object_type): Make extern.
11724 * python/py-param.c (parmpy_object_type): Make extern.
11725 * python/py-progspace.c (pspace_object_type): Make extern.
11726 * python/py-signalevent.c (signal_event_object_type): Make extern.
11727 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11728 * python/py-type.c (type_object_type, field_object_type)
11729 (type_iterator_object_type): Make extern.
11730 * python/python.c (python_extension_script_ops)
11731 (python_extension_ops): Make extern.
11732 * stap-probe.c (stap_probe_ops): Make extern.
11734 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11736 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11737 because the event thread is not the current thread.
11739 2015-02-11 Doug Evans <xdje42@gmail.com>
11741 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11742 been initialized yet, return NULL.
11744 2015-02-11 Doug Evans <dje@google.com>
11746 * symfile.h (new_symfile_objfile): Delete.
11747 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11748 All callers updated.
11750 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11752 * tui/tui-io.c (tui_handle_resize_during_io): Call
11753 tui_update_gdb_sizes() after resizing the screen.
11754 * tui/tui.c (tui_enable): Resize the terminal before
11755 calling tui_update_gdb_sizes().
11757 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11759 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11760 line before printing a newline.
11762 2015-02-11 Mark Wielaard <mjw@redhat.com>
11764 * utils.c (producer_is_gcc): Return true or false.
11766 2015-02-10 Mark Wielaard <mjw@redhat.com>
11768 * utils.h (producer_is_gcc): Change return type to bool. Add major
11770 * utils.c (producer_is_gcc): Likewise.
11771 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11772 * dwarf2read.c (check_producer): Likewise.
11774 2015-02-10 Pedro Alves <palves@redhat.com>
11776 * infrun.c (displaced_step_fixup): Switch to the event thread
11777 before calling gdbarch_displaced_step_fixup.
11779 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11781 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11783 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11785 * ada-varobj.c (ada_name_of_child): Constify parent.
11786 (ada_path_expr_of_child): Same.
11787 (ada_value_of_child): Same.
11788 (ada_type_of_child): Same.
11789 * c-varobj.c (c_is_path_expr_parent): Same.
11790 (c_describe_child): Same.
11791 (c_name_of_child): Same.
11792 (c_value_of_child): Same.
11793 (c_type_of_child): Same.
11794 (cplus_number_of_children): Same.
11795 (cplus_describe_child): Constify var.
11796 (cplus_name_of_child): Constify parent.
11797 (cplus_value_of_child): Same.
11798 (cplus_type_of_child): Same.
11799 * jv-varobj.c (java_name_of_child): Same.
11800 (java_value_of_child): Same.
11801 (java_type_of_child): Same.
11802 * varobj.c (value_of_child): Same.
11803 (varobj_default_is_path_expr_parent): Constify var, parent and return
11805 (varobj_get_path_expr): Constify var, modify path_expr through
11807 (install_new_value): Constify parent.
11808 (value_of_child): Constify parent.
11809 * varobj.h (struct varobj): Constify parent.
11810 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11812 (varobj_get_path_expr): Constify var.
11813 (varobj_get_path_expr_parent): Constify var and return value.
11815 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11817 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11818 (arm_prologue_this_id): Move PC and SP limit checks to
11819 arm_prologue_unwind_stop_reason.
11820 (arm_prologue_unwind) <stop_reason> : Set to
11821 arm_prologue_unwind_stop_reason.
11823 2015-02-09 Mark Wielaard <mjw@redhat.com>
11825 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11826 DW_LANG_Fortran08 as language_fortran.
11828 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11831 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11832 of pointer against char.
11834 2015-02-09 Mark Wielaard <mjw@redhat.com>
11836 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11837 (c_type_print_modifier): Likewise.
11838 * dwarf2read.c (read_tag_atomic_type): New function.
11839 (read_type_die_1): Handle DW_TAG_atomic_type.
11840 * gdbtypes.c (make_atomic_type): New function.
11841 (recursive_dump_type): Handle TYPE_ATOMIC.
11842 * gdbtypes.h (enum type_flag_values): Renumber.
11843 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11844 (TYPE_ATOMIC): New macro.
11845 (make_atomic_type): Declare.
11847 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11849 * btrace.c (ftrace_find_call): Skip gaps.
11850 (ftrace_new_function): Initialize level.
11851 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11852 (ftrace_new_switch): Update
11854 (ftrace_new_gap): New.
11855 (ftrace_update_function): Create new function after gap.
11856 (btrace_compute_ftrace_bts): Create gap on error.
11857 (btrace_stitch_bts): Update parameters. Clear trace if it
11859 (btrace_stitch_trace): Update parameters. Update callers.
11860 (btrace_clear): Reset the number of gaps.
11861 (btrace_insn_get): Return NULL if the iterator points to a gap.
11862 (btrace_insn_number): Return zero if the iterator points to a gap.
11863 (btrace_insn_end): Allow gaps at the end.
11864 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11865 (btrace_find_insn_by_number): Assert that the found iterator does
11866 not point to a gap.
11867 (btrace_call_next, btrace_call_prev): Assert that the last function
11869 * btrace.h (btrace_bts_error): New.
11870 (btrace_function): Update comment.
11871 (btrace_function) <insn, insn_offset, number>: Update comment.
11872 (btrace_function) <errcode>: New.
11873 (btrace_thread_info) <ngaps>: New.
11874 (btrace_thread_info) <replay>: Update comment.
11875 (btrace_insn_get): Update comment.
11876 * record-btrace.c (btrace_ui_out_decode_error): New.
11877 (record_btrace_info): Print number of gaps.
11878 (btrace_insn_history, btrace_call_history): Call
11879 btrace_ui_out_decode_error for gaps.
11880 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11882 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11884 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11885 * nat/linux-btrace.c: (btrace_this_cpu): New.
11886 (cpu_supports_bts): Call btrace_this_cpu.
11887 (intel_supports_bts): Add cpu parameter.
11889 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11891 * btrace.h (btrace_insn_class): New.
11892 (btrace_insn) <size, iclass>: New.
11893 * btrace.c (ftrace_find_call): Update parameters. Update users.
11894 Use instruction classification.
11895 (ftrace_new_return): Update parameters. Update users.
11896 (ftrace_update_function): Update parameters. Update users. Use
11897 instruction classification.
11898 (ftrace_update_insns): Update parameters. Update users.
11899 (ftrace_classify_insn): New.
11900 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11901 TRY_CATCH around call to gdb_insn_length.
11903 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11905 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11906 Update parameters. Update users.
11908 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11910 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11911 (btrace_conf_bts_attributes): New.
11912 (btrace_conf_children): Add attributes.
11913 * common/btrace-common.h (btrace_config_bts): New.
11914 (btrace_config)<bts>: New.
11915 (btrace_config): Update comment.
11916 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11918 * features/btrace-conf.dtd: Increment version. Add size
11919 attribute to bts element.
11920 * record-btrace.c (set_record_btrace_bts_cmdlist,
11921 show_record_btrace_bts_cmdlist): New.
11922 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11923 record_btrace_print_conf, cmd_set_record_btrace_bts,
11924 cmd_show_record_btrace_bts): New.
11925 (record_btrace_info): Call record_btrace_print_conf.
11926 (_initialize_record_btrace): Add commands.
11927 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11928 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11929 (btrace_sync_conf): Synchronize bts size.
11930 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11931 * NEWS: Announce new commands and new packets.
11933 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11935 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11936 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11937 (x86_linux_btrace_conf): New.
11938 (x86_linux_create_target): Initialize to_btrace_conf.
11939 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11940 Check format. Split into this and ...
11941 (linux_enable_bts): ... this.
11942 (linux_btrace_conf): New.
11943 (perf_event_skip_record): Renamed into ...
11944 (perf_event_skip_bts_record): ... this. Updated users.
11945 (linux_disable_btrace): Split into this and ...
11946 (linux_disable_bts): ... this.
11947 (linux_read_btrace): Check format.
11948 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11949 (linux_btrace_conf): New.
11950 (btrace_target_info)<ptid>: Moved.
11951 (btrace_target_info)<conf>: New.
11952 (btrace_target_info): Split into this and ...
11953 (btrace_tinfo_bts): ... this. Updated users.
11954 * btrace.c (btrace_enable): Update parameters.
11955 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11956 (btrace_conf_children, btrace_conf_attributes)
11957 (btrace_conf_elements): New.
11958 * btrace.h (btrace_enable): Update parameters.
11959 (btrace_conf, parse_xml_btrace_conf): New.
11960 * common/btrace-common.h (btrace_config): New.
11961 * feature/btrace-conf.dtd: New.
11962 * record-btrace.c (record_btrace_conf): New.
11963 (record_btrace_cmdlist): New.
11964 (record_btrace_enable_warn, record_btrace_open): Pass
11965 &record_btrace_conf.
11966 (record_btrace_info): Print recording format.
11967 (cmd_record_btrace_bts_start): New.
11968 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11969 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11970 Add "record bts" alias command.
11971 * remote.c (remote_state)<btrace_config>: New.
11972 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11973 (remote_protocol_features): Add qXfer:btrace-conf:read.
11974 (remote_open_1): Call remote_btrace_reset.
11975 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11976 (btrace_target_info)<conf>: New.
11977 (btrace_sync_conf, btrace_read_config): New.
11978 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11980 (remote_btrace_conf): New.
11981 (init_remote_ops): Initialize to_btrace_conf.
11982 (_initialize_remote): Add qXfer:btrace-conf packet.
11983 * target.c (target_enable_btrace): Update parameters.
11984 (target_btrace_conf): New.
11985 * target.h (target_enable_btrace): Update parameters.
11986 (target_btrace_conf): New.
11987 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11988 (target_ops)<to_enable_btrace>: Update parameters and comment.
11989 (target_ops)<to_btrace_conf>: New.
11990 * target-delegates: Regenerate.
11991 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11992 (target_debug_print_const_struct_btrace_target_info_p): New.
11993 * NEWS: Announce new command and new packet.
11995 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11997 * nat/linux-btrace.h (perf_event_buffer): New.
11998 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12000 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12001 (perf_event_buffer_size, perf_event_buffer_begin)
12002 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12004 (perf_event_new_data): New.
12006 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12008 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12009 * record-btrace.c (record_btrace_open): Remove call to
12010 target_supports_btrace.
12011 * remote.c (remote_supports_btrace): Update parameters.
12012 * target.c (target_supports_btrace): Update parameters.
12013 * target.h (to_supports_btrace, target_supports_btrace): Update
12015 * target-delegates.c: Regenerate.
12016 * target-debug.h (target_debug_print_enum_btrace_format): New.
12017 * nat/linux-btrace.c
12018 (kernel_supports_btrace): Rename into ...
12019 (kernel_supports_bts): ... this. Update users. Update warning text.
12020 (intel_supports_btrace): Rename into ...
12021 (intel_supports_bts): ... this. Update users.
12022 (cpu_supports_btrace): Rename into ...
12023 (cpu_supports_bts): ... this. Update users.
12024 (linux_supports_btrace): Update parameters. Split into this and ...
12025 (linux_supports_bts): ... this.
12026 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12028 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12030 * Makefile.in (SFILES): Add common/btrace-common.c.
12031 (COMMON_OBS): Add common/btrace-common.o.
12032 (btrace-common.o): Add build rules.
12033 * btrace.c (parse_xml_btrace): Update parameters.
12034 (parse_xml_btrace_block): Set format field.
12035 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12036 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12037 (btrace_compute_ftrace): Split into this and...
12038 (btrace_compute_ftrace_bts): ...this.
12039 (btrace_stitch_trace): Split into this and...
12040 (btrace_stitch_bts): ...this.
12041 * btrace.h (parse_xml_btrace): Update parameters.
12042 (make_cleanup_btrace_data): New.
12043 * common/btrace-common.c: New.
12044 * common/btrace-common.h: Include common-defs.h.
12045 (btrace_block_s): Update comment.
12046 (btrace_format): New.
12047 (btrace_format_string): New.
12048 (btrace_data_bts): New.
12049 (btrace_data): New.
12050 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12051 * remote.c (remote_read_btrace): Update parameters.
12052 * target.c (target_read_btrace): Update parameters.
12053 * target.h (target_read_btrace): Update parameters.
12054 (target_ops)<to_read_btrace>: Update parameters.
12055 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12056 * target-delegates.c: Regenerate.
12057 * target-debug (target_debug_print_struct_btrace_data_p): New.
12058 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12059 (linux_read_bts): ...this.
12060 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12062 2015-02-06 Doug Evans <dje@google.com>
12064 * remote-m32r-sdi.c: Include symfile.h.
12066 2015-02-06 Doug Evans <dje@google.com>
12068 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12069 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12072 2015-02-06 Pedro Alves <palves@redhat.com>
12074 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12076 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12079 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12080 (enable_count_command): Check args for NULL value.
12082 2015-02-05 Doug Evans <xdje42@gmail.com>
12084 * guile/scm-frame.c: Fix spelling errors in a comment.
12086 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12088 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12089 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12092 2015-02-04 Pedro Alves <palves@redhat.com>
12094 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12095 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12097 (resume_stopped_resumed_lwps): Don't check whether the thread is
12098 marked as executing.
12099 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12101 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12103 * regset.h (struct regset): Add flags field.
12104 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12105 * corelow.c (get_core_register_section): Add warning if the size
12106 exceeds the requested size and the regset does not have the
12107 REGSET_VARIABLE_SIZE flag set.
12108 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12110 * armbsd-tdep.c (armbsd_gregset): Likewise.
12111 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12112 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12113 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12114 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12116 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12118 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12119 For ".reg-xstate", explicitly specify the requested section size
12120 via X86_XSTATE_SIZE instead of just 0 on input and
12121 X86_XSTATE_MAX_SIZE on output.
12122 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12125 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12127 PR corefiles/17808:
12128 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12129 function type, particularly its SIZE parameter.
12130 * gdbarch.h: Regenerate.
12131 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12132 actual against required size using ">=" instead of "==".
12133 (amd64_collect_fpregset): Likewise.
12134 * i386-tdep.c (i386_supply_gregset): Likewise.
12135 (i386_collect_gregset): Likewise.
12136 (i386_supply_fpregset): Likewise.
12137 (i386_collect_fpregset): Likewise.
12138 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12139 (mips_fill_gregset_wrapper): Likewise.
12140 (mips_supply_fpregset_wrapper): Likewise.
12141 (mips_fill_fpregset_wrapper): Likewise.
12142 (mips64_supply_gregset_wrapper): Likewise.
12143 (mips64_fill_gregset_wrapper): Likewise.
12144 (mips64_supply_fpregset_wrapper): Likewise.
12145 (mips64_fill_fpregset_wrapper): Likewise.
12146 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12147 (am33_supply_fpregset_method): Likewise.
12148 (am33_collect_gregset_method): Likewise.
12149 (am33_collect_fpregset_method): Likewise.
12151 2015-02-04 Doug Evans <dje@google.com>
12152 Pedro Alves <palves@redhat.com>
12153 Eli Zaretskii <eliz@gnu.org>
12156 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12157 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12158 * tui/tui-file.c: #include tui/tui-command.h.
12159 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12160 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12161 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12163 2015-02-04 Pedro Alves <palves@redhat.com>
12165 Fix build breakage.
12166 * event-loop.c (gdb_do_one_event): Add default switch case.
12168 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12170 Filter out inferior gcc option -fpreprocessed.
12171 * compile/compile.c (filter_args): New function.
12172 (get_args): Use it.
12174 2015-02-03 Pedro Alves <palves@redhat.com>
12176 * event-loop.c: Don't declare nor define a queue type for
12178 (event_queue): Delete.
12179 (create_event, create_file_event, gdb_event_xfree)
12180 (initialize_event_loop, process_event): Delete.
12181 (gdb_do_one_event): Return as soon as one event is handled.
12182 (handle_file_event): Change prototype. Used the passed in
12183 file_handler pointer and ready_mask instead of looping over all
12185 (gdb_wait_for_event): Update the poll/select timeouts before
12186 blocking. Run event handlers directly instead of queueing events.
12187 Return as soon as one event is handled.
12188 (struct async_event_handler_data): Delete.
12189 (invoke_async_event_handler): Delete.
12190 (check_async_event_handlers): Change return type to int. Run
12191 event handlers directly instead of queueing events. Return as
12192 soon as one event is handled.
12193 (handle_timer_event): Delete.
12194 (update_wait_timeout): New function, factored out from
12196 (poll_timers): Reimplement.
12197 * event-loop.h (initialize_event_loop): Delete declaration.
12198 * top.c (gdb_init): Don't call initialize_event_loop.
12200 2015-02-03 Pedro Alves <palves@redhat.com>
12202 * event-loop.c (clear_async_event_handler): New function.
12203 * event-loop.h (clear_async_event_handler): New declaration.
12204 * record-btrace.c (record_btrace_async): New function.
12205 (init_record_btrace_ops): Install record_btrace_async.
12206 * record-full.c (record_full_async): New function.
12207 (record_full_resume): Don't mark the async event source here.
12208 (init_record_full_ops): Install record_full_async.
12209 (record_full_core_resume): Don't mark the async event source here.
12210 (init_record_full_core_ops): Install record_full_async.
12211 * remote.c (remote_async): Mark and clear the async stop reply
12212 queue event-loop token as appropriate.
12214 2015-02-03 Pedro Alves <palves@redhat.com>
12216 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12217 target_is_async_p instead of target_can_async.
12218 (linux_nat_wait): Use target_is_async_p instead of
12219 target_can_async. Don't enable async here.
12220 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12221 target_is_async_p instead of target_can_async.
12223 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12225 * varobj.h (lang_varobj_ops): Mention which return values need
12228 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12230 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12232 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12235 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12236 results found in the cache.
12238 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12241 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12242 when allocating a new one.
12244 2015-02-01 Tom Tromey <tom@tromey.com>
12246 * MAINTAINERS: Remove myself.
12248 2015-01-31 Doug Evans <xdje42@gmail.com>
12250 * dwarf2read.c (process_structure_scope): Update setting of
12251 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12252 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12253 (set_type_vptr_fieldno): New function.
12254 (internal_type_vptr_basetype): New function.
12255 (set_type_vptr_basetype): New function.
12256 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12257 TYPE_VPTR_BASETYPE.
12258 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12259 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12260 (print_cplus_stuff): ... moved here.
12261 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12262 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12264 (struct cplus_struct_type): ... here. All uses updated.
12265 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12266 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12267 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12268 * stabsread.c (read_tilde_fields): Update setting of
12269 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12271 2015-01-31 Doug Evans <xdje42@gmail.com>
12273 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12275 (cp_print_class_member): Rename local domain to self_type.
12276 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12277 domain_type to self_type.
12278 (set_die_type) <need_gnat_info>: Handle
12279 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12280 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12281 TYPE_SPECIFIC_SELF_TYPE.
12282 * gdbtypes.c (internal_type_self_type): New function.
12283 (set_type_self_type): New function.
12284 (smash_to_memberptr_type): Rename parameter domain to self_type.
12285 Update setting of TYPE_SELF_TYPE.
12286 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12287 (smash_to_method_type): Rename parameter domain to self_type.
12288 Update setting of TYPE_SELF_TYPE.
12289 (check_stub_method): Call smash_to_method_type.
12290 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12291 (copy_type_recursive): Ditto.
12292 * gdbtypes.h (enum type_specific_kind): New value
12293 TYPE_SPECIFIC_SELF_TYPE.
12294 (struct main_type) <type_specific>: New member self_type.
12295 (struct cplus_struct_type) <fn_field.type>: Update comment.
12296 (TYPE_SELF_TYPE): Rewrite.
12297 (internal_type_self_type, set_type_self_type): Declare.
12298 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12300 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12301 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12303 * stabsread.c (read_member_functions): Mark methods with
12304 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12307 2015-01-31 Doug Evans <xdje42@gmail.com>
12309 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12312 2015-01-31 Doug Evans <xdje42@gmail.com>
12314 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12315 or unions. Return zero if union.
12316 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12317 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12319 (compute_vtable_size): Assert only passed structs.
12320 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12322 2015-01-31 Doug Evans <xdje42@gmail.com>
12324 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12327 2015-01-31 Gary Benson <gbenson@redhat.com>
12328 Doug Evans <dje@google.com>
12333 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12335 * common/common-exceptions.h (enum errors)
12336 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12337 * completer.h (get_max_completions_reached_message): New declaration.
12338 (max_completions): Likewise.
12339 (completion_tracker_t): New typedef.
12340 (new_completion_tracker): New declaration.
12341 (make_cleanup_free_completion_tracker): Likewise.
12342 (maybe_add_completion_enum): New enum.
12343 (maybe_add_completion): New declaration.
12344 (throw_max_completions_reached_error): Likewise.
12345 * completer.c (max_completions): New global variable.
12346 (new_completion_tracker): New function.
12347 (free_completion_tracker): Likewise.
12348 (make_cleanup_free_completion_tracker): Likewise.
12349 (maybe_add_completions): Likewise.
12350 (throw_max_completions_reached_error): Likewise.
12351 (complete_line): Remove duplicates and limit result to max_completions
12353 (get_max_completions_reached_message): New function.
12354 (gdb_display_match_list): Handle max_completions.
12355 (_initialize_completer): New declaration and function.
12356 * symtab.c: Include completer.h.
12357 (completion_tracker): New static variable.
12358 (completion_list_add_name): Call maybe_add_completion.
12359 (default_make_symbol_completion_list_break_on_1): Renamed from
12360 default_make_symbol_completion_list_break_on. Maintain
12361 completion_tracker across calls to completion_list_add_name.
12362 (default_make_symbol_completion_list_break_on): New function.
12363 * top.c (init_main): Set rl_completion_display_matches_hook.
12364 * tui/tui-io.c: Include completer.h.
12365 (tui_old_rl_display_matches_hook): New static global.
12366 (tui_rl_display_match_list): Notify user if max-completions reached.
12367 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12368 * NEWS (New Options): Mention set/show max-completions.
12370 2015-01-31 Gary Benson <gbenson@redhat.com>
12372 * symtab.c (struct add_name_data) <code>: New field.
12374 (add_symtab_completions): New function.
12375 (symtab_expansion_callback): Likewise.
12376 (default_make_symbol_completion_list_break_on): Set datum.code.
12377 Move minimal symbol scan before calling expand_symtabs_matching.
12378 Scan known primary symtabs for externs and statics before calling
12379 expand_symtabs_matching. Pass symtab_expansion_callback as
12380 expansion_notify argument to expand_symtabs_matching. Do not scan
12381 primary symtabs for externs and statics after calling
12382 expand_symtabs_matching.
12384 2015-01-31 Gary Benson <gbenson@redhat.com>
12386 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12387 (struct quick_symbol_functions) <expand_symtabs_matching>:
12388 New argument expansion_notify. All uses updated.
12389 (expand_symtabs_matching): New argument expansion_notify.
12391 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12392 Also print expansion notify.
12393 * symtab.c (expand_symtabs_matching_via_partial): Call
12394 expansion_notify whenever a partial symbol table is expanded.
12395 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12396 expansion_notify whenever a symbol table is instantiated.
12398 2015-01-31 Doug Evans <xdje42@gmail.com>
12400 * cli-out.c: #include completer.h, readline/readline.h.
12401 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12402 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12403 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12404 * cli-out.h (cli_display_match_list): Declare.
12405 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12406 (ELLIPSIS_LEN): Ditto.
12407 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12408 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12409 (gdb_fnprint, gdb_print_filename): Ditto.
12410 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12411 (gdb_display_match_list): Ditto.
12412 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12413 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12414 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12415 (match_list_displayer): New struct.
12416 (gdb_display_match_list): Declare.
12417 * top.c (init_main): Set rl_completion_display_matches_hook.
12418 * tui/tui-io.c: #include completer.h.
12419 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12420 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12421 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12422 (tui_mld_getc, tui_mld_read_key): Ditto.
12423 (tui_rl_display_match_list): Rewrite.
12424 (tui_handle_resize_during_io): New arg for_completion. All callers
12427 2015-01-31 Doug Evans <xdje42@gmail.com>
12429 Add symbol lookup cache.
12430 * NEWS: Document new options and commands.
12431 * symtab.c (symbol_cache_key): New static global.
12432 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12433 (SYMBOL_LOOKUP_FAILED): New macro.
12434 (symbol_cache_slot_state): New enum.
12435 (block_symbol_cache): New struct.
12436 (symbol_cache): New struct.
12437 (new_symbol_cache_size, symbol_cache_size): New static globals.
12438 (hash_symbol_entry, eq_symbol_entry): New functions.
12439 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12440 (make_symbol_cache, free_symbol_cache): New functions.
12441 (get_symbol_cache, symbol_cache_cleanup): New function.
12442 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12443 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12444 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12445 (symbol_cache_flush, symbol_cache_dump): New functions.
12446 (maintenance_print_symbol_cache): New function.
12447 (maintenance_flush_symbol_cache): New function.
12448 (symbol_cache_stats): New function.
12449 (maintenance_print_symbol_cache_statistics): New function.
12450 (symtab_new_objfile_observer): New function.
12451 (symtab_free_objfile_observer): New function.
12452 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12453 (_initialize_symtab): Init symbol_cache_key. New parameter
12454 maint symbol-cache-size. New maint commands print symbol-cache,
12455 print symbol-cache-statistics, flush-symbol-cache.
12456 Install new_objfile, free_objfile observers.
12458 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12461 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12464 2015-01-31 Doug Evans <xdje42@gmail.com>
12466 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12467 * auto-load.c: #include ctype.h.
12468 (struct auto_load_pspace_info): Replace member loaded_scripts with
12469 new members loaded_script_files, loaded_script_texts.
12470 (auto_load_pspace_data_cleanup): Update.
12471 (init_loaded_scripts_info): Update.
12472 (get_auto_load_pspace_data_for_loading): Update.
12473 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12475 (maybe_add_script_text): New function.
12476 (clear_section_scripts): Update.
12477 (source_script_file, execute_script_contents): New functions.
12478 (source_section_scripts): Add support for
12479 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12480 (print_scripts): New function.
12481 (auto_load_info_scripts): Also print inlined scripts.
12482 (maybe_print_unsupported_script_warning): Renamed from
12483 unsupported_script_warning_print. All callers updated.
12484 (maybe_print_script_not_found_warning): Renamed from
12485 script_not_found_warning_print. All callers updated.
12486 * extension-priv.h (struct extension_language_script_ops): New member
12487 objfile_script_executor.
12488 * extension.c (ext_lang_objfile_script_executor): New function.
12489 * extension.h (objfile_script_executor_func): New typedef.
12490 (ext_lang_objfile_script_executor): Declare.
12491 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12492 * guile/guile.c (guile_extension_script_ops): Update.
12493 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12494 * python/python.c (python_extension_script_ops): Update.
12495 (gdbpy_execute_objfile_script): New function.
12497 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12499 * tui/tui-io.c (tui_expand_tabs): New function.
12500 (tui_puts, tui_redisplay_readline): Expand TABs into the
12501 appropriate number of spaces.
12502 * tui/tui-regs.c: Include tui-io.h.
12503 (tui_register_format): Call tui_expand_tabs to expand TABs into
12504 the appropriate number of spaces.
12505 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12507 2015-01-30 Doug Evans <dje@google.com>
12509 * NEWS: "info source" command now display producer string if present.
12510 * source.c (source_info): Print producer string if present.
12512 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12514 * varobj.c (varobj_delete): Fix comment.
12516 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12518 * varobj.c (create_child): Modify comment.
12520 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12522 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12524 (ada_name_of_variable): Same.
12525 (ada_path_expr_of_child): Same.
12526 (ada_value_of_variable): Same.
12527 (ada_value_is_changeable_p): Same.
12528 (ada_value_has_mutated): Same.
12529 * c-varobj.c (varobj_is_anonymous_child): Same.
12530 (c_is_path_expr_parent): Same.
12531 (c_number_of_children): Same.
12532 (c_name_of_variable): Same.
12533 (c_path_expr_of_child): Same.
12535 (c_value_of_variable): Same.
12536 (cplus_number_of_children): Same.
12537 (cplus_name_of_variable): Same.
12538 (cplus_path_expr_of_child): Same.
12539 (cplus_value_of_variable): Same.
12540 * jv-varobj.c (java_number_of_children): Same.
12541 (java_name_of_variable): Same.
12542 (java_path_expr_of_child): Same.
12543 (java_value_of_variable): Same.
12544 * varobj.c (number_of_children): Same.
12545 (name_of_variable): Same.
12547 (varobj_ensure_python_env): Same.
12548 (varobj_get_objname): Same.
12549 (varobj_get_expression): Same.
12550 (varobj_get_display_format): Same.
12551 (varobj_get_display_hint): Same.
12552 (varobj_has_more): Same.
12553 (varobj_get_thread_id): Same.
12554 (varobj_get_frozen): Same.
12555 (dynamic_varobj_has_child_method): Same.
12556 (varobj_get_gdb_type): Same.
12557 (is_path_expr_parent): Same.
12558 (varobj_default_is_path_expr_parent): Same.
12559 (varobj_get_language): Same.
12560 (varobj_get_attributes): Same.
12561 (varobj_is_dynamic_p): Same.
12562 (varobj_get_child_range): Same.
12563 (varobj_value_has_mutated): Same.
12564 (varobj_get_value_type): Same.
12565 (number_of_children): Same.
12566 (name_of_variable): Same.
12567 (check_scope): Same.
12568 (varobj_editable_p): Same.
12569 (varobj_value_is_changeable_p): Same.
12570 (varobj_floating_p): Same.
12571 (varobj_default_value_is_changeable_p): Same.
12573 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12575 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12576 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12578 (cplus_path_expr_of_child): Same.
12580 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12582 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12584 (mi_cmd_var_info_expression): Same.
12585 * varobj.c (varobj_get_expression): Mention in the comment that
12586 the result must by freed by the caller.
12588 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12590 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12592 (varobj_update_one): Same.
12593 * varobj.c (update_type_if_necessary): Free curr_type_str and
12595 (varobj_get_type): Specify in comment that the result needs to be
12596 freed by the caller.
12598 2015-01-29 Doug Evans <dje@google.com>
12601 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12603 2015-01-25 Mark Wielaard <mjw@redhat.com>
12605 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12606 * utils.c (producer_is_gcc_ge_4): Likewise.
12607 (producer_is_gcc): New function.
12608 * utils.h (producer_is_gcc): New declaration.
12610 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12612 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12614 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12615 parameter by "addr_stack" parameter.
12616 (resolve_dynamic_range): Replace "addr" parameter by
12617 "stack_addr" parameter. Update function documentation.
12618 Update code accordingly.
12619 (resolve_dynamic_array, resolve_dynamic_union)
12620 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12621 (resolve_dynamic_type): Update code, following the changes made
12622 to resolve_dynamic_type_internal's interface.
12623 * dwarf2loc.h (struct property_addr_info): New.
12624 (dwarf2_evaluate_property): Replace "address" parameter
12625 by "addr_stack" parameter. Adjust function documentation.
12626 (struct dwarf2_offset_baton): New.
12627 (struct dwarf2_property_baton): Update documentation of
12628 field "referenced_type" to be more general. New field
12629 "offset_info" in union data field.
12630 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12631 parameter by "addr_stack" parameter. Adjust code accordingly.
12632 Add support for PROP_ADDR_OFFSET properties.
12633 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12634 DW_AT_data_member_location attributes as well. Use case
12635 statements instead of if/else condition.
12637 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12639 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12640 Return zero if PARENT_VALUE is NULL and parent_type's
12641 range type is dynamic.
12643 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12645 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12646 nonzero if the type's subtype is dynamic.
12647 (resolve_dynamic_range): Also resolve the range's subtype.
12649 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12651 Pushed by Joel Brobecker <brobecker@adacore.com>.
12652 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12654 2015-01-27 Doug Evans <dje@google.com>
12656 * NEWS: Mention gdb.Objfile.username.
12657 * python/py-objfile.c (objfpy_get_username): New function.
12658 (objfile_getset): Add "username".
12660 2015-01-24 Mark Wielaard <mjw@redhat.com>
12662 * stack.c (return_command): Markup warning message with _.
12664 2015-01-24 Doug Evans <xdje42@gmail.com>
12666 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12668 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12670 Fix 100x slowdown regression on DWZ files.
12671 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12672 (struct line_header): Add offset and offset_in_dwz.
12673 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12674 (free_line_header_voidp): New declaration.
12675 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12677 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12678 (handle_DW_AT_stmt_list): Use line_header_hash.
12679 (free_line_header_voidp): New function.
12680 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12681 (dwarf_decode_lines): New parameter decode_mapping, use it.
12682 (dwarf2_free_objfile): Free line_header_hash.
12684 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12687 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12690 2015-01-15 Mark Wielaard <mjw@redhat.com>
12692 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12694 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12695 calling_convention an 8 bit bit field.
12696 (TYPE_NO_RETURN): New macro.
12697 * infcmd.c (finish_command): Query if function does not return
12699 * stack.c (return_command): Likewise.
12701 2015-01-23 Pedro Alves <palves@redhat.com>
12703 * linux-nat.c (linux_is_async_p): New macro.
12704 (linux_nat_is_async_p):
12705 (linux_nat_terminal_inferior): Check whether the target can async
12706 instead of whether it is already async.
12707 (linux_nat_terminal_ours): Don't check whether the target is
12709 (linux_async_pipe): Use linux_is_async_p.
12711 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12713 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12715 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12716 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12717 Sort tp_array using tp_array_compar.
12718 (_initialize_thread): Extend thread_apply_all_command help.
12720 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12722 * corelow.c (core_open): Call also thread_command.
12723 * gdbthread.h (thread_command): New prototype moved from ...
12724 * thread.c (thread_command): ... here.
12725 (thread_command): Make it global.
12727 2015-01-22 Pedro Alves <palves@redhat.com>
12729 * configure.ac [*mingw32*]: Check $curses_found instead of
12731 * configure: Regenerate.
12732 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12733 HAVE_NCURSES_NCURSES_H checks.
12735 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12737 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12738 fails with the 1st arg NULL, try again with "unknown". Don't test
12739 the "cup" capability: it isn't supported by the Windows port of
12740 ncurses, but the Windows console driver is still capable of
12743 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12745 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12747 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12749 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12750 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12751 reason that "make TAGS" is broken.
12753 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12755 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12756 and check additional store instructions.
12758 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12760 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12762 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12764 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12765 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12766 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12767 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12768 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12769 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12770 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12771 ppc_process_record_op19, ppc_process_record_op31,
12772 ppc_process_record_op59, ppc_process_record_op60,
12773 ppc_process_record_op63): Likewise.
12775 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12777 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12778 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12781 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12783 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12784 ppc_process_record_op31, ppc_process_record_op59,
12785 ppc_process_record_op60, ppc_process_record_op63,
12786 ppc_process_record): Fix -Wformat warning.
12787 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12788 Remove unused variables.
12790 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12792 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12794 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12796 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12797 CONFIG_OBS if not building with a curses library.
12798 * configure: Regenerate.
12800 * windows-termcap.c: Include defs.h. Make the whole body empty if
12801 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12802 HAVE_NCURSES_NCURSES_H is defined.
12804 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12806 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12807 from end of line to start of next line.
12809 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12811 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12812 Scan PLT stub backward for reverse debugging.
12813 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12815 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12816 Ulrich Weigand <uweigand@de.ibm.com>
12818 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12820 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12822 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12823 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12824 (ppc_linux_init_abi): Set process_record, process_record_signal.
12825 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12826 ppc_linux_record_tdep to gdbarch_tdep.
12827 (ppc_process_record): New declaration.
12828 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12829 ppc_process_record_op19, ppc_process_record_op31,
12830 ppc_process_record_op59, ppc_process_record_op60,
12831 ppc_process_record_op63, ppc_process_record): New functions.
12833 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12835 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12836 rs6000_in_function_epilogue_frame_p and add an argument
12838 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12839 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12841 (rs6000_epilogue_frame_unwind): New.
12842 (rs6000_gdbarch_init): Append epilogue unwinder.
12844 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12846 * nat/linux-personality.c: Replace "#ifndef
12847 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12848 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12851 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12853 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12855 (_initialize_tui_win) <border-kind, border-mode>:
12856 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12857 (tui_set_tab_width_command): Fix the commentary.
12859 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12861 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12863 (tui_set_tab_width_command): Delete and recreate the source and
12864 the disassembly windows, to show the effect of the changed tab
12867 * tui/tui-data.h (LINE_PREFIX): Make shorter
12868 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12869 "Thread NNNNN.XXXX" thread ID notation on Windows.
12871 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12873 Fix gcc-5 compilation.
12874 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12876 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12878 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12879 (linux-personality.o): New rule.
12880 * common/common-defs.h: Include <stdint.h>.
12881 * config/aarch64/linux.mh (NATDEPFILES): Include
12882 linux-personality.o.
12883 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12884 * config/arm/linux.mh (NATDEPFILES): Likewise.
12885 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12886 * config/i386/linux.mh (NATDEPFILES): Likewise.
12887 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12888 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12889 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12890 * config/mips/linux.mh (NATDEPFILES): Likewise.
12891 * config/pa/linux.mh (NATDEPFILES): Likewise.
12892 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12893 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12894 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12895 * config/s390/linux.mh (NATDEPFILES): Likewise.
12896 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12897 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12898 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12899 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12900 * defs.h: Remove #include <stdint.h> (moved to
12901 common/common-defs.h).
12902 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12903 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12904 nat/linux-personality.c).
12905 (linux_nat_create_inferior): Remove code to disable address space
12906 randomization (moved to nat/linux-personality.c). Create cleanup
12907 to disable address space randomization.
12908 * nat/linux-personality.c: New file.
12909 * nat/linux-personality.h: Likewise.
12911 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12913 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12914 common/posix-strerror.c.
12915 (posix-strerror.o): New rule.
12916 (mingw-strerror.o): Likewise.
12917 * common/common-utils.h (safe_strerror): Move prototype to here,
12919 * common/common.host: New file.
12920 * common/mingw-strerror.c: Likewise.
12921 * common/posix-strerror.c: Likewise.
12922 * configure: Regenerated.
12923 * configure.ac: Source common/common.host. Add variable
12924 common_host_obs to gdb_host_obs.
12925 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12926 gdb/common/posix-strerror.c when warning about the use of
12928 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12929 common/mingw-strerror.c.
12930 * posix-hdep.c (safe_strerror): Remove definition; move it to
12931 common/posix-hdep.c.
12932 * utils.h (safe_strerror): Remove prototype; move to
12933 common/common-utils.h.
12935 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12937 GDB 7.8.2 released.
12939 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12941 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12942 ___XA type if the array has already been fixed.
12944 2015-01-14 Yao Qi <yao@codesourcery.com>
12946 * Makefile.in (ppc-linux.o): New rule.
12947 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12948 * configure.ac: AC_CHECK_FUNCS(getauxval).
12949 * config.in: Re-generated.
12950 * configure: Re-generated.
12951 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12953 * nat/ppc-linux.c: New file.
12954 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12955 Call ppc64_64bit_inferior_p.
12957 2015-01-14 Yao Qi <yao@codesourcery.com>
12959 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12961 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12962 (PPC_FEATURE_HAS_DFP): Likewise.
12963 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12964 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12965 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12966 Include "nat/ppc-linux.h".
12967 * nat/ppc-linux.h: New file.
12968 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12970 2015-01-14 Pedro Alves <palves@redhat.com>
12973 * breakpoint.c: Include "interps.h".
12974 (bpstat_do_actions_1): Also check whether the interpreter is
12977 2015-01-14 Pedro Alves <palves@redhat.com>
12980 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12981 reinstall if the interpreter is sync.
12983 2015-01-13 Doug Evans <dje@google.com>
12985 * objfiles.c (objfile_filename): New function.
12986 * objfiles.h (objfile_filename): Declare it.
12987 (objfile_name): Add function comment.
12988 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12989 bfd file name (which may be realpath'd), and the original name.
12991 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12993 * NEWS: Create a new section for the next release branch.
12994 Rename the section of the current branch, now that it has
12997 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12999 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13000 * version.in: Bump version to 7.9.50.DATE-cvs.
13002 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13004 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13005 Remove trailing new-line in argument of call to warning.
13007 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13009 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13010 new-line in argument of call to "warning".
13012 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13014 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13015 in static block, then try searching for primitive types.
13017 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13019 * top.h (gdb_add_history): Declare.
13020 * top.c (command_count): New variable.
13021 (gdb_add_history): New function.
13022 (gdb_safe_append_history): New static function.
13023 (quit_force): Call it.
13024 (command_line_input): Use gdb_add_history instead of
13026 * event-top.c (command_line_handler): Likewise.
13028 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13031 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13032 <setjmp.h> #include.
13034 2015-01-11 Doug Evans <xdje42@gmail.com>
13036 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13038 2015-01-11 Doug Evans <xdje42@gmail.com>
13041 * NEWS: The "maint demangle" command is renamed as "demangle".
13042 * demangle.c: #include cli/cli-utils.h, language.h.
13043 (demangle_command): New function.
13044 (_initialize_demangle): Add new command "demangle".
13045 * maint.c (maintenance_demangle): Stub out.
13046 (_initialize_maint_cmds): Update help text for "maint demangle",
13047 and mark as deprecated.
13049 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13051 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13052 inferior_thread is a function.
13054 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13056 * Makefile.in (.y.c): Don't munge yacc's #line
13059 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13061 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13062 to prompt for input.
13063 * tui/tui-hooks.c (tui_query_hook): Remove.
13064 (tui_install_hooks): Don't set deprecated_query_hook.
13065 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13066 height calculation. Always update the command window's cur_line.
13068 2015-01-09 Pedro Alves <palves@redhat.com>
13070 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13072 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13074 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13075 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13077 (check_stopped_by_watchpoint): New function.
13078 (save_sigtrap): Reimplement.
13079 (linux_nat_stopped_by_watchpoint): Adjust.
13080 (linux_nat_lp_status_is_event): Delete.
13081 (stop_wait_callback): Only call save_sigtrap after storing the
13083 (status_callback): If the thread had been stopped for a breakpoint
13084 that has since been removed, discard the event and resume the LWP.
13085 (count_events_callback, select_event_lwp_callback): Use
13086 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13087 (cancel_breakpoint): Rename to ...
13088 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13089 stopped for a software breakpoint or hardware breakpoint.
13090 (select_event_lwp): Only give preference to the stepping LWP in
13091 all-stop mode. Adjust comments.
13092 (stop_and_resume_callback): Remove references to new_pending_p.
13093 (linux_nat_filter_event): Likewise. Leave exit events of the
13094 leader thread pending here. Handle signal short circuiting here.
13095 Only call save_sigtrap after storing the pending waitstatus.
13096 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13097 new_pending. Don't handle leaving events the caller is not
13098 interested in pending here, nor handle signal short-circuiting
13099 here. Also give equal priority to all LWPs that have had events
13100 in non-stop mode. If reporting a software breakpoint event,
13101 unadjust the LWP's PC.
13102 * linux-nat.h (enum lwp_stop_reason): New.
13103 (struct lwp_info) <stop_pc>: New field.
13104 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13105 (struct lwp_info) <stop_reason>: New field.
13106 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13108 2015-01-09 Pedro Alves <palves@redhat.com>
13110 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13111 Set the LWP's 'resumed' flag.
13113 2015-01-09 Pedro Alves <palves@redhat.com>
13115 * linux-nat.c (linux_resume_one_lwp): New function.
13116 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13117 (linux_nat_resume): Use lwp_status_pending_p and
13118 linux_resume_one_lwp.
13119 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13120 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13121 (status_callback, running_callback): Use lwp_status_pending_p.
13122 (lwp_status_pending_p): New function.
13123 (stop_and_resume_callback): Use lwp_status_pending_p.
13124 (linux_nat_filter_event): Use linux_resume_one_lwp.
13125 (linux_nat_wait_1): Always use status_callback to look for an LWP
13126 with a pending status. Use linux_resume_one_lwp.
13127 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13128 linux_resume_one_lwp.
13130 2015-01-09 Pedro Alves <palves@redhat.com>
13132 * breakpoint.c (bp_location_inserted_here_p): New function,
13133 factored out from ...
13134 (breakpoint_inserted_here_p): ... here. Use
13135 ALL_BP_LOCATIONS_AT_ADDR.
13136 (software_breakpoint_inserted_here_p): Use
13137 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13139 2014-01-09 Pedro Alves <palves@redhat.com>
13141 Skip enabling event reporting if the kernel supports
13142 PTRACE_EVENT_CLONE.
13143 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13144 (thread_db_use_events): New function.
13145 (try_thread_db_load_1): Check thread_db_use_events before enabling
13147 (update_thread_state): New function.
13148 (attach_thread): Use it. Check thread_db_use_events before
13149 enabling event reporting.
13150 (thread_db_detach): Check thread_db_use_events before disabling
13152 (find_new_threads_callback): Check thread_db_use_events before
13153 enabling event reporting. Update the thread's state if not using
13154 libthread_db events.
13156 2015-01-09 Pedro Alves <palves@redhat.com>
13158 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13159 about to wait for is > 0.
13160 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13161 the kernel thread ID is -1.
13163 2015-01-09 Pedro Alves <palves@redhat.com>
13165 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13166 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13167 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13168 ptrace option flags.
13169 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13171 * nat/linux-procfs.c: Include <dirent.h>.
13172 (linux_proc_get_int): New parameter "warn". Handle it.
13173 (linux_proc_get_tgid): Adjust.
13174 (linux_proc_get_tracerpid): Rename to ...
13175 (linux_proc_get_tracerpid_nowarn): ... this.
13176 (linux_proc_pid_get_state): New function, factored out from
13177 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13179 (linux_proc_pid_is_gone): New function.
13180 (linux_proc_pid_is_stopped): Adjust.
13181 (linux_proc_pid_is_zombie_maybe_warn)
13182 (linux_proc_pid_is_zombie_nowarn): New functions.
13183 (linux_proc_pid_is_zombie): Use
13184 linux_proc_pid_is_zombie_maybe_warn.
13185 (linux_proc_attach_tgid_threads): New function.
13186 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13187 (linux_proc_get_tracerpid): Rename to ...
13188 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13189 (linux_proc_pid_is_gone): New declaration.
13190 (linux_proc_pid_is_zombie): Update comment.
13191 (linux_proc_pid_is_zombie_nowarn): New declaration.
13192 (linux_proc_attach_lwp_func): New typedef.
13193 (linux_proc_attach_tgid_threads): New declaration.
13194 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13195 use nowarn functions.
13196 (linux_ptrace_attach_fail_reason_string): Move here from
13197 gdbserver/linux-low.c and rename.
13198 (ptrace_supports_feature): If the current ptrace options are not
13199 known yet, check them now, instead of asserting.
13200 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13203 2015-01-09 Pedro Alves <palves@redhat.com>
13205 * linux-thread-db.c (thread_db_find_new_threads_silently)
13206 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13207 (find_new_threads_once): Print debug output on gdb_stdlog.
13209 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13210 Pedro Alves <palves@redhat.com>
13212 * compile/compile.c: Include "gdb_wait.h".
13213 (do_rmdir): Check return value, and free 'zap'.
13215 2015-01-08 Pedro Alves <palves@redhat.com>
13216 Yao Qi <yao@codesourcery.com>
13218 * dwarf2loc.c (indirect_pieced_value): Don't call
13219 gdb_sign_extend. Call extract_signed_integer instead.
13220 * utils.c (gdb_sign_extend): Remove.
13221 * utils.h (gdb_sign_extend): Remove declaration.
13223 2015-01-07 Pierre Muller <muller@sourceware.org>
13226 * stabsread.c (define_symbol): Set language for C++ special symbols.
13228 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13230 * inflow.c (initial_gdb_ttystate): Tweak comment.
13232 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13234 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13235 comment documenting function.
13237 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13239 * terminal.h (set_initial_gdb_ttystate): Declare.
13240 * inflow.c (initial_gdb_ttystate): New static variable.
13241 (set_initial_gdb_ttystate): New setter.
13242 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13243 instead of our current terminal state.
13244 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13246 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13248 * guile/scm-type.c (tyscm_array_1): Add comment.
13249 * python/py-type.c (typy_array_1): Add comment.
13251 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13253 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13254 error if N2 is equal to N1 - 1.
13256 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13258 * python/py-type.c (typy_array_1): Do not raise negative-length
13259 exception if N2 is equal to N1 - 1.
13261 2015-01-03 Doug Evans <xdje42@gmail.com>
13263 * c-exp.y: Whitespace cleanup.
13264 (classify_inner_name): Remove extra ;.
13266 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13268 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13271 2015-01-02 Doug Evans <dje@google.com>
13273 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13275 2015-01-02 Doug Evans <dje@google.com>
13277 * symtab.h (struct symbol): Fix typo in comment.
13279 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13281 Update year range in copyright notice of all files.
13283 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13285 * top.c (print_gdb_version): Update copyright year to 2015.
13287 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13289 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13291 For older changes see ChangeLog-2014.
13297 version-control: never