1 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3 * ctf.c (SET_ENUM_FIELD): New macro.
4 (ctf_read_status): Use it.
7 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
9 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
10 scm_t_dynwind_flags casts.
11 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
12 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
13 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
15 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
17 * ax.h (ax_raw_byte): New declaration.
18 * ax-general.c (ax_raw_byte): New function.
19 (ax_simple): Use ax_raw_byte.
20 * ax-gdb.c (gen_printf): Likewise.
22 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
24 * ada-lang.h (GROW_VECT): Add cast.
26 2015-10-26 Doug Evans <xdje42@gmail.com>
28 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
30 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
32 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
34 (simple_search_memory): Cast return of memmem.
36 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
38 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
40 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
42 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
45 2015-10-26 Doug Evans <dje@google.com>
48 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
49 instead of gdbarch_dwarf2_reg_to_regnum.
50 (dwarf2_frame_cache): Ditto.
51 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
52 gdbarch_dwarf2_reg_to_regnum.
53 (get_reg_value): Ditto.
54 (dwarf2_fetch_cfa_info): Ditto.
55 (dwarf2_frame_prev_register): Ditto.
56 * dwarf2loc.c: #include "complaints.h".
57 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
58 instead of gdbarch_dwarf2_reg_to_regnum.
59 (dwarf_expr_get_reg_value): Ditto.
60 (read_pieced_value): Ditto.
61 (write_pieced_value): Ditto.
62 (dwarf2_evaluate_loc_desc_full): Ditto.
63 (dwarf_reg_to_regnum): New function.
64 (throw_bad_regnum_error): New function.
65 (dwarf_reg_to_regnum_or_error): Renamed from
66 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
67 All callers updated. Call throw_bad_regnum_error.
68 (locexpr_regname): Improve text of bad register number.
69 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
70 (dwarf_reg_to_regnum_or_error): Update prototype.
71 * dwarf2expr.c: #include "dwarf2loc.h".
72 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
73 gdbarch_dwarf2_reg_to_regnum.
74 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
75 * gdbarch.h: Regenerate.
76 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
78 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
79 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
80 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
81 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
82 Remove warning for bad register.
83 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
84 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
85 i386_svr4_reg_to_regnum. Return -1 for bad registers.
86 (i386_svr4_reg_to_regnum): New function.
87 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
88 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
89 on bad registers, return -1.
90 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
91 Remove warning for bad register.
92 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
93 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
94 Remove warning for bad register. Return -1 for bad register.
95 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
96 for bad register, return -1.
97 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
98 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
99 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
100 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
101 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
102 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
104 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
105 bad regs. Fix error result.
106 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
107 (reg_value_complaint): Update complaint text.
108 * mdebugread.c (reg_value_complaint): New function.
109 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
111 2015-10-26 Doug Evans <dje@google.com>
114 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
117 2015-10-26 Doug Evans <dje@google.com>
119 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
120 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
121 (maintenance_print_psymbols): Print address map.
123 2015-10-26 Doug Evans <dje@google.com>
125 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
127 2015-10-26 Doug Evans <dje@google.com>
129 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
130 gdbserver/linux-low.c.
131 (WSETSTOP): Simplify.
133 2015-10-26 Doug Evans <dje@google.com>
135 * linux-thread-db.c (find_new_threads_callback): Ditto.
136 (thread_db_pid_to_str): Ditto.
138 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
140 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
141 local char array to scm_mode_bits, use a cast instead.
143 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
145 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
146 result. Change type of element_block_ptr. Change allocation to
149 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
151 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
152 catch_errors call instead of NULL.
154 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
156 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
157 char pointer to scm_mode_bits.
159 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
161 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
164 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
166 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
167 "data" local variable and use it.
169 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
171 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
173 (gdbscm_lookup_symbol): Likewise.
175 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
177 * d-exp.y: Remove an obsolete comment and propagate the block
178 information to the produced expression.
180 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
182 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
184 (tui_add_content_elements): Likewise.
186 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
188 * cli/cli-setshow.c (do_set_command): Constify p.
190 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
192 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
193 (void *) cast with (gdb_byte *).
195 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
197 * proc-service.c (ps_pdread): Add cast.
199 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
201 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
204 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
206 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
207 (ia64_push_dummy_call): Remove cast and change type of "to" to
210 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
212 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
214 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
216 * observer.h (observer_${event}_notification_stub): Add cast.
218 2015-10-23 Yao Qi <yao.qi@linaro.org>
220 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
221 dsd.insn_count to zero.
223 2015-10-22 Pedro Alves <palves@redhat.com>
225 * infrun.c (stop_after_trap): Delete.
226 (clear_proceed_status, handle_signal_stop, struct
227 infcall_control_state, save_infcall_control_state)
228 (restore_infcall_control_state): Remove references to
231 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
233 * python/python.c (_initialize_python): Add cast.
235 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
237 * nto-tdep.c (nto_inferior_data): Add cast.
239 2015-10-22 Pedro Alves <palves@redhat.com>
241 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
242 windows_wait and windows_resume directly instead of
243 wait_for_inferior and resume.
245 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
247 * xtensa-tdep.h (XTREG): Add casts.
248 (XTREG_END): Likewise.
250 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
252 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
254 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
256 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
258 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
260 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
262 (supply_32bit_reg): Add cast.
263 (mips64_fill_gregset): Likewise.
265 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
268 * python/py-type.c (typy_get_composite): Allow returning a
271 2015-10-21 Keven Boell <keven.boell@intel.com>
273 * dwarf2read.c (set_die_type): Add read of
274 DW_AT_allocated and DW_AT_associated.
275 * f-typeprint.c: New include of typeprint.h
276 (f_print_type): Add check for allocated/associated
278 (f_type_print_varspec_suffix): Add check for
279 * gdbtypes.c (create_array_type_with_stride):
280 Add check for valid data location of type in
281 case allocated or associated attributes are set.
282 Length of an array should be only calculated if
283 allocated or associated is resolved as true.
284 (is_dynamic_type_internal): Add check for allocated/
286 (resolve_dynamic_array): Evaluate allocated/associated
288 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
289 <DYN_PROP_ASSOCIATED>: New enums.
290 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
291 (type_not_allocated): New function.
292 (type_not_associated): New function.
293 * valarith.c (value_subscripted_rvalue): Add check for
294 allocated/associated.
295 * valprint.c: New include of typeprint.h.
296 (valprint_check_validity): Add check for allocated/associated.
297 (value_check_printable): Add check for allocated/
299 * typeprint.h (val_print_not_allocated): New function.
300 (val_print_not_associated): New function.
301 * typeprint.c (val_print_not_allocated): New function.
302 (val_print_not_associated): New function.
304 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
306 * Makefile.in: Add arm.c/o.
307 * arch/arm.c: New file.
308 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
309 (MAKE_THUMB_ADDR): Likewise.
310 (UNMAKE_THUMB_ADDR): Likewise.
311 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
312 (IS_THUMB_ADDR): Move to arm.h.
313 (MAKE_THUMB_ADDR): Likewise.
314 (UNMAKE_THUMB_ADDR): Likewise.
315 * configure.tgt: Add arm.o to all ARM configs.
317 2015-10-21 Yao Qi <yao.qi@linaro.org>
319 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
320 Remove argument exp_vCont_s.
321 * gdb.base/range-stepping.exp: Callers updated.
322 * gdb.trace/range-stepping.exp: Likewise.
324 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
326 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
327 (nto_sniff_abi_note_section): New function.
328 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
331 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
333 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
334 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
335 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
336 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
338 (_initialize_nto_tdep): New forward declaration, new function.
339 * nto-tdep.h (struct nto_inferior_data): New struct.
340 (nto_inferior_data): New function declaration.
342 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
344 * findvar.c (address_from_register): Check REGNUM validity.
346 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
348 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
349 (init_procfs_targets): Wire new function.
351 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
353 * nto-procfs.c (sys/auxv.h): Include.
354 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
355 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
356 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
358 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
360 * nto-procfs.c (nto_procfs_path): Rename to...
361 (nodestr): ... this, and change type.
362 (nto_node): Use new variable and logic accordingly.
363 (procfs_open_1): Use new variable name. Use local buffer to construct
365 (procfs_pidlist): Use NODESTR to construct procfs path.
366 (procfs_files_info): Use NODESTR to output meaningful text.
367 (do_attach): Construct procfs using NODESTR.
368 (procfs_create_inferior): Compare pointer to NULL.
370 2015-10-19 Josh Stone <jistone@redhat.com>
372 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
373 return state, even when not actively catching syscalls at all.
374 (linux_handle_extended_wait): Mark syscall_state like an entry.
375 (wait_lwp): Set syscall_state ignored for other traps.
376 (linux_nat_filter_event): Likewise.
378 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
380 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
381 when handling 'E', 'T', 'S', 'X' and 'W' packets.
382 Do not set rs->waiting_for_stop_reply back to 1.
384 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
386 * nto-procfs.c (common/filestuff.h): Include.
387 (procfs_can_use_hw_breakpoint): Fix enum name.
388 (procfs_open_1): Fix compiler warning.
389 (procfs_pidlist): Make static.
390 (procfs_meminfo): Make static, fix type name, add missing argument.
391 (procfs_store_registers): Make static.
392 (procfs_thread_info): Remove unused function.
393 (_initialize_procfs): Forward declare.
395 2015-10-16 Yao Qi <yao.qi@arm.com>
397 * MAINTAINERS: Update my email address.
399 2015-10-15 Yao Qi <yao.qi@linaro.org>
401 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
402 Call gdbarch_breakpoint_from_pc to instruction length.
403 (aarch64_linux_remove_hw_breakpoint): Likewise.
404 * common/common-regcache.h (regcache_register_size): Declare.
405 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
406 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
407 the process is 32bit, otherwise set alignment to 4.
408 (aarch64_handle_breakpoint): Update comments.
409 * regcache.c (regcache_register_size): New function.
411 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
413 * gdbarch.sh (core_regset_section): Remove.
414 * gdbarch.h: Regenerate.
416 2015-10-14 Yao Qi <yao.qi@linaro.org>
418 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
420 (enum aarch64_memory_operand_type): New.
422 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
424 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
426 2015-10-13 Pedro Alves <palves@redhat.com>
428 * ada-lang.c (ada_enum_name): Constify local.
429 * ada-typeprint.c (print_range_bound): Constify locals.
430 * c-varobj.c (c_describe_child): Likewise.
431 * cli/cli-setshow.c (do_set_command): Likewise.
432 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
433 * dwarf2read.c (find_file_and_directory): Likewise.
434 (anonymous_struct_prefix, dwarf2_name): Likewise.
435 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
436 * go-lang.c (unpack_mangled_go_symbol): Likewise.
437 * jv-typeprint.c (java_type_print_base): Likewise.
438 * ser-tcp.c (net_open): Likewise.
439 * symfile.c (deduce_language_from_filename): Likewise.
440 * symtab.c (gdb_mangle_name): Likewise.
441 * tui/tui-io.c (tui_redisplay_readline): Likewise.
443 2015-10-13 Pedro Alves <palves@redhat.com>
445 * infrun.c (restore_execution_direction): New function.
446 (fetch_inferior_event): Use it instead of
447 make_cleanup_restore_integer.
448 (execution_direction): Change type to enum
450 * infrun.h (execution_direction): Likewise.
452 2015-10-13 Pedro Alves <palves@redhat.com>
454 * ada-lang.c (ada_value_primitive_packed_val): Constify
455 locals. Use value_contents_writeable. Remove casts.
457 2015-10-13 Pedro Alves <palves@redhat.com>
459 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
462 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
464 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
465 write_memory with write_memory_unsigned_integer.
467 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
469 * solib-dsbt.c (cmp_name): Constify arguments.
470 * solib-frv.c (cmp_name): Likewise.
471 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
472 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
473 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
474 (gdb_bfd_lookup_symbol): Likewise.
475 * solib.h (gdb_bfd_lookup_symbol): Likewise.
476 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
478 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
480 * stack.c (parse_frame_specification): Remove message parameter,
481 replace with fixed string in function body, update function
483 (frame_info): Remove message to parse_frame_specification.
484 (select_frame_command): Likewise.
486 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
488 * stack.c (parse_frame_specification): Delete.
489 (parse_frame_specification_1): Rename to
490 parse_frame_specification.
491 (frame_info): Use parse_frame_specification.
492 (select_frame_command): Likewise.
493 (return_command): Use select_frame and print_stack_frame rather
494 than frame_command and select_frame_command.
495 (func_command): Use get_current_frame rather than
496 parse_frame_specification.
498 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
500 * stack.c (func_command): Return early when there is no ARG
503 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
505 * stack.c: Include safe-ctype.h not ctype.h.
506 (parse_frame_specification): Use ISSPACE not isspace.
507 (backtrace_command): Use TOLOWER not tolower.
509 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
511 * mep-tdep.c (current_me_module): Add cast.
512 (mep_gdbarch_init): Likewise.
514 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
516 * m32c-tdep.c (m32c_move_reg_t): Replace with...
517 (m32c_write_reg_t): ...this and...
518 (m32c_read_reg_t): ...this.
519 (struct m32c_reg): Update types of read and write.
520 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
522 (m32c_banked_read): Likewise.
523 (m32c_sb_read): Likewise.
524 (m32c_part_read): Likewise.
525 (m32c_cat_read): Likewise.
526 (m32c_r3r2r1r0_read): Likewise.
527 (m32c_raw_write): Change declaration type to m32c_write_reg_t
528 and adjust definition.
529 (m32c_banked_write): Likewise.
530 (m32c_sb_write): Likewise.
531 (m32c_part_write): Likewise.
532 (m32c_cat_write): Likewise.
533 (m32c_r3r2r1r0_write): Likewise.
535 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
537 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
539 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
541 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
542 gdb_sys_no_syscall instead of -1.
544 2015-10-12 Yao Qi <yao.qi@linaro.org>
546 * NEWS: Mention the change.
548 2015-10-12 Yao Qi <yao.qi@linaro.org>
550 * arch/aarch64-insn.c (emit_load_store): Rename to ...
551 (aarch64_emit_load_store): ... it. All callers updated.
553 2015-10-12 Yao Qi <yao.qi@linaro.org>
555 * arch/aarch64-insn.c (emit_insn): Rename to ...
556 (aarch64_emit_insn): ... it. All callers updated.
558 2015-10-12 Yao Qi <yao.qi@linaro.org>
560 * aarch64-linux-tdep.c: Include arch-utils.h.
561 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
562 set_gdbarch_displaced_step_copy_insn,
563 set_gdbarch_displaced_step_fixup,
564 set_gdbarch_displaced_step_free_closure,
565 set_gdbarch_displaced_step_location,
566 and set_gdbarch_displaced_step_hw_singlestep.
567 * aarch64-tdep.c (struct displaced_step_closure): New.
568 (struct aarch64_displaced_step_data): New.
569 (aarch64_displaced_step_b): New function.
570 (aarch64_displaced_step_b_cond): Likewise.
571 (aarch64_register): Likewise.
572 (aarch64_displaced_step_cb): Likewise.
573 (aarch64_displaced_step_tb): Likewise.
574 (aarch64_displaced_step_adr): Likewise.
575 (aarch64_displaced_step_ldr_literal): Likewise.
576 (aarch64_displaced_step_others): Likewise.
577 (aarch64_displaced_step_copy_insn): Likewise.
578 (aarch64_displaced_step_fixup): Likewise.
579 (aarch64_displaced_step_hw_singlestep): Likewise.
580 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
581 (aarch64_displaced_step_copy_insn): Declare.
582 (aarch64_displaced_step_fixup): Declare.
583 (aarch64_displaced_step_hw_singlestep): Declare.
584 * arch/aarch64-insn.c (emit_insn): Moved from
585 gdbserver/linux-aarch64-low.c.
586 (emit_load_store): Likewise.
587 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
588 gdbserver/linux-aarch64-low.c.
589 (struct aarch64_register): Likewise.
590 (struct aarch64_memory_operand): Likewise.
592 (can_encode_int32): New macro.
593 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
594 (emit_tb, emit_nop): Likewise.
595 (emit_insn): Declare.
596 (emit_load_store): Declare.
598 2015-10-12 Yao Qi <yao.qi@linaro.org>
600 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
601 gdbserver/linux-aarch64-low.c.
602 (aarch64_relocate_instruction): Likewise.
603 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
604 (struct aarch64_insn_data): Moved from
605 gdbserver/linux-aarch64-low.c.
606 (struct aarch64_insn_visitor): Likewise.
607 (aarch64_relocate_instruction): Declare.
609 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
611 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
612 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
613 to the returned value.
615 2015-10-09 Joel Brobecker <brobecker@adacore.com>
617 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
618 is large enough for BIT_SIZE. Update function comment.
620 2015-10-09 Joel Brobecker <brobecker@adacore.com>
622 * ada-lang.c (ada_value_primitive_packed_val): Move
623 src_len variable to local block where used. Override
624 BIT_SIZE if bigger than size of resolved type.
626 2015-10-09 Joel Brobecker <brobecker@adacore.com>
628 * gdbtypes.h (is_scalar_type): Add extern declaration.
629 * gdbtypes.c (is_scalar_type): Make non-static.
630 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
631 to compute IS_SCALAR instead of doing it ourselves.
633 2015-10-09 Joel Brobecker <brobecker@adacore.com>
635 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
636 of case where TYPE is dynamic.
638 2015-10-09 Joel Brobecker <brobecker@adacore.com>
640 * ada-lang.c (ada_unpack_from_contents): New function,
641 extracted from ada_value_primitive_packed_val.
642 (ada_value_primitive_packed_val): Replace extracted out code
643 by call to ada_unpack_from_contents.
645 2015-10-09 Joel Brobecker <brobecker@adacore.com>
647 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
648 variable declarations.
650 2015-10-09 Joel Brobecker <brobecker@adacore.com>
652 * ada-lang.c (ada_value_primitive_packed_val): Change the type
653 of local variables src and unpacked to "gdb_type *" instead of
656 2015-10-09 Joel Brobecker <brobecker@adacore.com>
658 * ada-lang.c (ada_value_primitive_packed_val): Make the name
659 of various local variables more explicit and consistent.
660 No real code change otherwise.
662 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
664 * i386-tdep.h (struct gdbarch_tdep): Change type of
665 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
667 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
669 * cris-tdep.c (struct instruction_environment): Change type of
670 byte_order to enum bfd_endian.
672 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
674 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
675 enum gdb_syscall casts.
677 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
679 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
680 * arm-tdep.c (struct stack_item): Likewise.
681 (push_stack_item): Add gdb_byte* cast.
682 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
683 (push_stack_item): Add gdb_byte* cast.
684 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
686 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
687 (push_stack_item): Add gdb_byte* cast.
688 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
690 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
692 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
693 gdb_byte* and remove unnecessary cast.
694 (h8300h_extract_return_value): Likewise.
695 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
696 (h8300h_store_return_value): Likewise.
697 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
698 gdb_byte* and remove unnecessary cast.
699 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
701 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
702 gdb_byte* and remove unnecessary cast.
703 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
705 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
706 (mep_pseudo_cr64_read): Likewise.
707 (mep_pseudo_csr_write): Likewise.
708 (mep_pseudo_cr32_write): Likewise.
709 (mep_pseudo_cr64_write): Likewise.
710 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
711 gdb_byte* and add cast.
712 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
713 gdb_byte* and remove unnecessary cast.
714 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
716 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
718 * printcmd.c (void): Likewise.
719 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
720 gdb_byte* and add cast.
721 (infpy_write_memory): Likewise.
722 (infpy_search_memory): Likewise.
723 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
725 (regcache_raw_write_unsigned): Likewise.
726 (regcache_cooked_write_signed): Likewise.
727 (regcache_cooked_write_unsigned): Likewise.
728 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
731 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
733 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
734 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
736 2015-10-09 Eli Zaretskii <eliz@gnu.org>
738 * stack.c (print_stack_frame):
739 * utils.c (printchar): Fix typos in commentary.
741 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
743 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
744 (PostfixExpression): Support `expr.sizeof' expressions.
745 (PrimaryExpression): Support `typeof(expr)' expressions.
747 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
749 * MAINTAINERS: Update my email address.
751 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
753 * record-btrace.c (record_btrace_resume): Fix void return.
755 2015-10-07 Yao Qi <yao.qi@linaro.org>
757 * aarch64-tdep.c: Include opcode/aarch64.h.
758 (submask): Move it above.
761 (aarch64_software_single_step): Call aarch64_decode_insn.
762 Decode instruction by aarch64_inst instead of using
763 aarch64_decode_bcond and decode_masked_match.
765 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
767 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
768 only when the file is binary.
770 2015-10-02 James Bowman <james.bowman@ftdichip.com>
772 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
775 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
777 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
779 2015-09-30 Doug Evans <dje@google.com>
781 * dwarf2read.c (setup_type_unit_groups): Add comment.
783 2015-09-30 Pedro Alves <palves@redhat.com>
785 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
786 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
787 (x86_linux_create_target): Don't install
788 x86_linux_always_non_stop_p.
790 2015-09-30 Don Breazeal <donb@codesourcery.com>
792 * remote.c (remote_parse_stop_reply): Call strprefix instead
795 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
797 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
798 * gdbarch.h: Regenerate.
799 * i386-tdep.c (i386_gdbarch_init): Remove cast to
800 struct gdbarch_tdep_info *.
801 * mips-tdep.c (mips_gdbarch_init): Likewise.
802 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
803 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
804 * spu-multiarch.c (spu_gdbarch): Likewise.
806 2015-09-30 Kevin Buettner <kevinb@redhat.com>
808 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
811 2015-09-29 Kevin Buettner <kevinb@redhat.com>
813 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
814 and union arguments the same as pointer arguments when determining
817 2015-09-29 James Bowman <james.bowman@ftdichip.com>
819 * ft32-tdep.c: #include "opcode/ft32.h".
820 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
821 (ft32_analyze_prologue): Use FT32_* macros.
823 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
825 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
828 2015-09-28 Doug Evans <dje@google.com>
830 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
832 2015-09-28 Doug Evans <dje@google.com>
834 * common/filestuff.c (make_cleanup_close): Update comment.
836 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
838 * btrace.c (parse_xml_btrace_block): Fix cast of
839 xml_find_attribute's return value.
840 * memory-map.c (memory_map_start_memory): Likewise.
841 * solib-svr4.c (library_list_start_library): Likewise.
842 * solib-target.c (library_list_start_segment): Likewise.
843 (library_list_start_section): Likewise.
844 * tracepoint.c (traceframe_info_start_memory): Likewise.
846 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
848 * d-namespace.c (d_lookup_symbol): New arg langdef.
849 All callers updated. Support looking up symbol as a primitive type.
850 (lookup_module_scope): New arg langdef. All callers updated.
851 Call d_lookup_symbol directly for simple bare symbols.
853 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
855 * macrocmd.c (print_macro_callback): Add cast(s).
856 * macrotab.c (macro_bcache_str): Likewise.
857 (new_macro_definition): Likewise.
858 * main.c (captured_main): Likewise.
859 * maint.c (print_bfd_section_info): Likewise.
860 * mdebugread.c (mdebug_build_psymtabs): Likewise.
861 (basic_type): Likewise.
862 * memattr.c (mem_region_cmp): Likewise.
863 * memory-map.c (memory_map_start_memory): Likewise.
864 (memory_map_end_memory): Likewise.
865 (memory_map_start_property): Likewise.
866 (memory_map_end_property): Likewise.
867 (clear_result): Likewise.
868 * memrange.c (compare_mem_ranges): Likewise.
869 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
870 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
871 * mi/mi-console.c (mi_console_file_delete): Likewise.
872 (mi_console_file_fputs): Likewise.
873 (mi_console_raw_packet): Likewise.
874 (mi_console_file_flush): Likewise.
875 (mi_console_set_raw): Likewise.
876 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
877 (mi_new_thread): Likewise.
878 (mi_thread_exit): Likewise.
879 (mi_record_changed): Likewise.
880 (mi_inferior_added): Likewise.
881 (mi_inferior_appeared): Likewise.
882 (mi_inferior_exit): Likewise.
883 (mi_inferior_removed): Likewise.
884 (mi_interp_data): Likewise.
885 (mi_on_normal_stop): Likewise.
886 (mi_traceframe_changed): Likewise.
887 (mi_tsv_created): Likewise.
888 (mi_tsv_deleted): Likewise.
889 (mi_tsv_modified): Likewise.
890 (mi_breakpoint_created): Likewise.
891 (mi_breakpoint_deleted): Likewise.
892 (mi_breakpoint_modified): Likewise.
893 (mi_output_running_pid): Likewise.
894 (mi_inferior_count): Likewise.
895 (mi_solib_loaded): Likewise.
896 (mi_solib_unloaded): Likewise.
897 (mi_command_param_changed): Likewise.
898 (mi_memory_changed): Likewise.
899 (report_initial_inferior): Likewise.
900 (mi_ui_out): Likewise.
901 (mi_set_logging): Likewise.
902 * mi/mi-main.c (collect_cores): Likewise.
903 (print_one_inferior): Likewise.
904 (free_vector_of_ints): Likewise.
905 (free_splay_tree): Likewise.
906 (mi_execute_command): Likewise.
907 * mi/mi-out.c (mi_table_body): Likewise.
908 (mi_table_end): Likewise.
909 (mi_table_header): Likewise.
910 (mi_begin): Likewise.
912 (mi_field_int): Likewise.
913 (mi_field_string): Likewise.
914 (mi_field_fmt): Likewise.
915 (mi_flush): Likewise.
916 (mi_redirect): Likewise.
917 (field_separator): Likewise.
919 (mi_close): Likewise.
920 (mi_out_buffered): Likewise.
921 (mi_out_rewind): Likewise.
922 (mi_out_put): Likewise.
923 (mi_version): Likewise.
924 (mi_out_data_dtor): Likewise.
925 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
926 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
927 * minidebug.c (lzma_open): Likewise.
928 (lzma_pread): Likewise.
929 (lzma_close): Likewise.
930 (lzma_stat): Likewise.
931 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
932 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
933 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
934 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
935 (mips_micro_frame_cache): Likewise.
936 (mips_insn32_frame_cache): Likewise.
937 (mips_stub_frame_cache): Likewise.
938 (gdb_print_insn_mips): Likewise.
939 (value_of_mips_user_reg): Likewise.
940 (mips_gdbarch_init): Likewise.
941 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
942 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
943 (mipsnbsd_supply_gregset): Likewise.
944 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
945 (am33_collect_gregset_method): Likewise.
946 (am33_collect_fpregset_method): Likewise.
947 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
948 * moxie-tdep.c (moxie_frame_cache): Likewise.
949 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
950 (msp430_analyze_frame_prologue): Likewise.
951 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
952 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
953 (nios2_collect_gregset): Likewise.
954 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
955 (nios2_stub_frame_cache): Likewise.
956 * objc-lang.c (find_methods): Likewise.
957 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
958 (get_objfile_pspace_data): Likewise.
959 (get_objfile_bfd_data): Likewise.
960 (objfile_bfd_data_free): Likewise.
961 (add_to_objfile_sections): Likewise.
962 (do_free_objfile_cleanup): Likewise.
963 (resume_section_map_updates_cleanup): Likewise.
964 * opencl-lang.c (builtin_opencl_type): Likewise.
965 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
966 * osdata.c (osdata_start_osdata): Likewise.
967 (osdata_start_item): Likewise.
968 (osdata_start_column): Likewise.
969 (osdata_end_column): Likewise.
970 (clear_parsing_data): Likewise.
971 (osdata_free_cleanup): Likewise.
972 * parse.c (type_stack_cleanup): Likewise.
973 (exp_uses_objfile_iter): Likewise.
974 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
975 (ppc_linux_collect_gregset): Likewise.
976 (ppu2spu_prev_arch): Likewise.
977 (ppu2spu_this_id): Likewise.
978 (ppu2spu_prev_register): Likewise.
979 (ppu2spu_unwind_register): Likewise.
980 (ppu2spu_sniffer): Likewise.
981 (ppu2spu_dealloc_cache): Likewise.
982 (ppc_linux_init_abi): Likewise.
983 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
984 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
985 * progspace.c (restore_program_space): Likewise.
986 * psymtab.c (find_pc_sect_psymtab): Likewise.
987 (compare_psymbols): Likewise.
988 (psymbol_bcache_full): Likewise.
989 (allocate_psymtab): Likewise.
990 (discard_psymtabs_upto): Likewise.
991 * python/py-block.c (set_block): Likewise.
992 (del_objfile_blocks): Likewise.
993 * python/py-breakpoint.c (build_bp_list): Likewise.
994 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
995 (build_inferior_list): Likewise.
996 (py_free_inferior): Likewise.
997 * python/py-objfile.c (py_free_objfile): Likewise.
998 (objfile_to_objfile_object): Likewise.
999 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1000 * python/py-progspace.c (py_free_pspace): Likewise.
1001 (pspace_to_pspace_object): Likewise.
1002 * python/py-symbol.c (set_symbol): Likewise.
1003 (del_objfile_symbols): Likewise.
1004 * python/py-symtab.c (set_sal): Likewise.
1005 (set_symtab): Likewise.
1006 (del_objfile_symtab): Likewise.
1007 (del_objfile_sal): Likewise.
1008 * python/py-type.c (save_objfile_types): Likewise.
1009 (set_type): Likewise.
1010 * python/py-unwind.c (pyuw_prev_register): Likewise.
1011 (pyuw_on_new_gdbarch): Likewise.
1012 * python/py-utils.c (py_decref): Likewise.
1013 (py_xdecref): Likewise.
1014 (gdb_py_generic_dict): Likewise.
1015 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1016 (gdbpy_clone_xmethod_worker_data): Likewise.
1017 (gdbpy_get_xmethod_arg_types): Likewise.
1018 (gdbpy_get_xmethod_result_type): Likewise.
1019 (gdbpy_invoke_xmethod): Likewise.
1020 * python/python.c (gdbpy_apply_type_printers): Likewise.
1021 (gdbpy_free_type_printers): Likewise.
1022 * record-btrace.c (record_btrace_disable_callback): Likewise.
1023 (bfcache_hash): Likewise.
1024 (bfcache_eq): Likewise.
1025 (btrace_get_frame_function): Likewise.
1026 (record_btrace_frame_unwind_stop_reason): Likewise.
1027 (record_btrace_frame_this_id): Likewise.
1028 (record_btrace_frame_prev_register): Likewise.
1029 (record_btrace_frame_dealloc_cache): Likewise.
1030 * record-full.c (record_full_message_wrapper): Likewise.
1031 (record_full_save_cleanups): Likewise.
1032 * regcache.c (regcache_descr): Likewise.
1033 (do_regcache_xfree): Likewise.
1034 (do_regcache_invalidate): Likewise.
1035 (do_cooked_read): Likewise.
1036 (regcache_transfer_regset): Likewise.
1037 * reggroups.c (reggroup_add): Likewise.
1038 (reggroup_next): Likewise.
1039 (reggroup_prev): Likewise.
1040 * remote-fileio.c (do_remote_fileio_request): Likewise.
1041 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1042 (do_notif_event_xfree): Likewise.
1043 * remote.c (get_remote_arch_state): Likewise.
1044 (remote_pspace_data_cleanup): Likewise.
1045 (get_remote_exec_file): Likewise.
1046 (set_pspace_remote_exec_file): Likewise.
1047 (compare_pnums): Likewise.
1048 (clear_threads_listing_context): Likewise.
1049 (remote_newthread_step): Likewise.
1050 (start_thread): Likewise.
1051 (end_thread): Likewise.
1052 (remove_child_of_pending_fork): Likewise.
1053 (remove_stop_reply_for_inferior): Likewise.
1054 (remove_stop_reply_of_remote_state): Likewise.
1055 (remote_notif_remove_once_on_match): Likewise.
1056 (stop_reply_match_ptid_and_ws): Likewise.
1057 (kill_child_of_pending_fork): Likewise.
1058 (register_remote_g_packet_guess): Likewise.
1059 (remote_read_description_p): Likewise.
1060 (remote_read_description): Likewise.
1061 (free_actions_list_cleanup_wrapper): Likewise.
1062 (remote_async_serial_handler): Likewise.
1063 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1064 (rl78_analyze_frame_prologue): Likewise.
1065 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1066 (ppc_supply_fpregset): Likewise.
1067 (ppc_supply_vsxregset): Likewise.
1068 (ppc_supply_vrregset): Likewise.
1069 (ppc_collect_gregset): Likewise.
1070 (ppc_collect_fpregset): Likewise.
1071 (ppc_collect_vsxregset): Likewise.
1072 (ppc_collect_vrregset): Likewise.
1073 (e500_move_ev_register): Likewise.
1074 (do_regcache_raw_write): Likewise.
1075 (rs6000_frame_cache): Likewise.
1076 (rs6000_epilogue_frame_cache): Likewise.
1077 (rs6000_gdbarch_init): Likewise.
1078 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1079 (rx_analyze_frame_prologue): Likewise.
1080 (rx_frame_type): Likewise.
1081 (rx_frame_sniffer_common): Likewise.
1082 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1083 (s390_frame_unwind_cache): Likewise.
1084 (s390_stub_frame_unwind_cache): Likewise.
1085 (s390_sigtramp_frame_unwind_cache): Likewise.
1086 * score-tdep.c (score_make_prologue_cache): Likewise.
1087 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1088 (sentinel_frame_prev_arch): Likewise.
1089 * ser-base.c (fd_event): Likewise.
1090 (push_event): Likewise.
1091 (ser_base_write): Likewise.
1092 * ser-pipe.c (pipe_close): Likewise.
1093 * serial.c (serial_write): Likewise.
1094 * sh-tdep.c (sh_frame_cache): Likewise.
1095 (sh_stub_this_id): Likewise.
1096 * sh64-tdep.c (sh64_frame_cache): Likewise.
1097 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1098 (library_list_start_library): Likewise.
1099 (library_list_start_list): Likewise.
1100 (solib_aix_free_library_list): Likewise.
1101 * solib-darwin.c (get_darwin_info): Likewise.
1102 * solib-dsbt.c (get_dsbt_info): Likewise.
1103 * solib-spu.c (append_ocl_sos): Likewise.
1104 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1105 (get_svr4_info): Likewise.
1106 (library_list_start_library): Likewise.
1107 (svr4_library_list_start_list): Likewise.
1108 (hash_probe_and_action): Likewise.
1109 (equal_probe_and_action): Likewise.
1110 (svr4_update_solib_event_breakpoint): Likewise.
1111 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1112 (svr4_fetch_link_map_offsets): Likewise.
1113 (svr4_have_link_map_offsets): Likewise.
1114 * solib-target.c (library_list_start_segment): Likewise.
1115 (library_list_start_section): Likewise.
1116 (library_list_start_library): Likewise.
1117 (library_list_end_library): Likewise.
1118 (library_list_start_list): Likewise.
1119 (solib_target_free_library_list): Likewise.
1120 * solib.c (solib_ops): Likewise.
1121 (set_solib_ops): Likewise.
1122 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1123 * sparc-tdep.c (sparc_frame_cache): Likewise.
1124 (sparc32_frame_cache): Likewise.
1125 (sparc32_supply_gregset): Likewise.
1126 (sparc32_collect_gregset): Likewise.
1127 (sparc32_supply_fpregset): Likewise.
1128 (sparc32_collect_fpregset): Likewise.
1129 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1130 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1131 (sparc64_collect_gregset): Likewise.
1132 (sparc64_supply_fpregset): Likewise.
1133 (sparc64_collect_fpregset): Likewise.
1134 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1135 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1136 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1137 (sparc64obsd_trapframe_cache): Likewise.
1138 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1139 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1140 * spu-multiarch.c (spu_gdbarch): Likewise.
1141 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1142 (spu2ppu_prev_arch): Likewise.
1143 (spu2ppu_this_id): Likewise.
1144 (spu2ppu_prev_register): Likewise.
1145 (spu2ppu_dealloc_cache): Likewise.
1146 (spu_dis_asm_print_address): Likewise.
1147 (gdb_print_insn_spu): Likewise.
1148 (spu_get_overlay_table): Likewise.
1149 * stabsread.c (rs6000_builtin_type): Likewise.
1150 * stack.c (do_print_variable_and_value): Likewise.
1151 * stap-probe.c (get_stap_base_address_1): Likewise.
1152 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1153 (debug_qf_find_last_source_symtab): Likewise.
1154 (debug_qf_forget_cached_source_info): Likewise.
1155 (debug_qf_map_symtabs_matching_filename): Likewise.
1156 (debug_qf_lookup_symbol): Likewise.
1157 (debug_qf_print_stats): Likewise.
1158 (debug_qf_dump): Likewise.
1159 (debug_qf_relocate): Likewise.
1160 (debug_qf_expand_symtabs_for_function): Likewise.
1161 (debug_qf_expand_all_symtabs): Likewise.
1162 (debug_qf_expand_symtabs_with_fullname): Likewise.
1163 (debug_qf_map_matching_symbols): Likewise.
1164 (debug_qf_expand_symtabs_matching): Likewise.
1165 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1166 (debug_qf_map_symbol_filenames): Likewise.
1167 (debug_sym_get_probes): Likewise.
1168 (debug_sym_new_init): Likewise.
1169 (debug_sym_init): Likewise.
1170 (debug_sym_read): Likewise.
1171 (debug_sym_read_psymbols): Likewise.
1172 (debug_sym_finish): Likewise.
1173 (debug_sym_offsets): Likewise.
1174 (debug_sym_read_linetable): Likewise.
1175 (debug_sym_relocate): Likewise.
1176 (uninstall_symfile_debug_logging): Likewise.
1177 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1178 * symfile.c (place_section): Likewise.
1179 (add_section_size_callback): Likewise.
1180 (load_progress): Likewise.
1181 (load_section_callback): Likewise.
1182 (clear_memory_write_data): Likewise.
1183 (allocate_symtab): Likewise.
1184 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1185 * symtab.c (lookup_symtab_callback): Likewise.
1186 (hash_demangled_name_entry): Likewise.
1187 (eq_demangled_name_entry): Likewise.
1188 (get_symbol_cache): Likewise.
1189 (symbol_cache_cleanup): Likewise.
1190 (set_symbol_cache_size): Likewise.
1191 (symbol_cache_flush): Likewise.
1192 (maintenance_print_symbol_cache): Likewise.
1193 (maintenance_print_symbol_cache_statistics): Likewise.
1194 (delete_filename_seen_cache): Likewise.
1195 (output_partial_symbol_filename): Likewise.
1196 (search_symbols_file_matches): Likewise.
1197 (search_symbols_name_matches): Likewise.
1198 (do_free_completion_list): Likewise.
1199 (maybe_add_partial_symtab_filename): Likewise.
1200 (get_main_info): Likewise.
1201 (main_info_cleanup): Likewise.
1202 * target-dcache.c (target_dcache_cleanup): Likewise.
1203 (target_dcache_init_p): Likewise.
1204 (target_dcache_invalidate): Likewise.
1205 (target_dcache_get): Likewise.
1206 (target_dcache_get_or_init): Likewise.
1207 * target-descriptions.c (target_find_description): Likewise.
1208 (tdesc_find_type): Likewise.
1209 (tdesc_data_cleanup): Likewise.
1210 (tdesc_find_arch_register): Likewise.
1211 (tdesc_register_name): Likewise.
1212 (tdesc_register_type): Likewise.
1213 (tdesc_register_reggroup_p): Likewise.
1214 (set_tdesc_pseudo_register_name): Likewise.
1215 (set_tdesc_pseudo_register_type): Likewise.
1216 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1217 (tdesc_use_registers): Likewise.
1218 (free_target_description): Likewise.
1219 * target-memory.c (compare_block_starting_address): Likewise.
1220 (cleanup_request_data): Likewise.
1221 (cleanup_write_requests_vector): Likewise.
1222 * target.c (open_target): Likewise.
1223 (cleanup_restore_target_terminal): Likewise.
1224 (free_memory_read_result_vector): Likewise.
1225 * thread.c (disable_thread_stack_temporaries): Likewise.
1226 (finish_thread_state_cleanup): Likewise.
1227 (do_restore_current_thread_cleanup): Likewise.
1228 (restore_current_thread_cleanup_dtor): Likewise.
1229 (set_thread_refcount): Likewise.
1230 (tp_array_compar): Likewise.
1231 (do_captured_thread_select): Likewise.
1232 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1233 (tic6x_stub_this_id): Likewise.
1234 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1235 * top.c (do_restore_instream_cleanup): Likewise.
1236 (gdb_readline_wrapper_cleanup): Likewise.
1237 (kill_or_detach): Likewise.
1238 (print_inferior_quit_action): Likewise.
1239 * tracefile-tfile.c (match_blocktype): Likewise.
1240 (build_traceframe_info): Likewise.
1241 * tracefile.c (trace_file_writer_xfree): Likewise.
1242 * tracepoint.c (memrange_cmp): Likewise.
1243 (do_collect_symbol): Likewise.
1244 (do_clear_collection_list): Likewise.
1245 (do_restore_current_traceframe_cleanup): Likewise.
1246 (restore_current_traceframe_cleanup_dtor): Likewise.
1247 (free_current_marker): Likewise.
1248 (traceframe_info_start_memory): Likewise.
1249 (traceframe_info_start_tvar): Likewise.
1250 (free_result): Likewise.
1251 * tramp-frame.c (tramp_frame_cache): Likewise.
1252 * tui/tui-file.c (tui_file_delete): Likewise.
1253 (tui_fileopen): Likewise.
1254 (tui_sfileopen): Likewise.
1255 (tui_file_isatty): Likewise.
1256 (tui_file_rewind): Likewise.
1257 (tui_file_put): Likewise.
1258 (tui_file_fputs): Likewise.
1259 (tui_file_get_strbuf): Likewise.
1260 (tui_file_adjust_strbuf): Likewise.
1261 (tui_file_flush): Likewise.
1262 * tui/tui-layout.c (make_command_window): Likewise.
1263 (make_data_window): Likewise.
1264 (show_source_disasm_command): Likewise.
1265 (show_data): Likewise.
1266 (make_source_or_disasm_window): Likewise.
1267 (show_source_or_disasm_and_command): Likewise.
1268 * tui/tui-out.c (tui_field_int): Likewise.
1269 (tui_field_string): Likewise.
1270 (tui_field_fmt): Likewise.
1271 (tui_text): Likewise.
1272 * typeprint.c (hash_typedef_field): Likewise.
1273 (eq_typedef_field): Likewise.
1274 (do_free_typedef_hash): Likewise.
1275 (copy_typedef_hash_element): Likewise.
1276 (do_free_global_table): Likewise.
1277 (find_global_typedef): Likewise.
1278 (find_typedef_in_hash): Likewise.
1279 * ui-file.c (ui_file_write_for_put): Likewise.
1280 (do_ui_file_xstrdup): Likewise.
1281 (mem_file_delete): Likewise.
1282 (mem_file_rewind): Likewise.
1283 (mem_file_put): Likewise.
1284 (mem_file_write): Likewise.
1285 (stdio_file_delete): Likewise.
1286 (stdio_file_flush): Likewise.
1287 (stdio_file_read): Likewise.
1288 (stdio_file_write): Likewise.
1289 (stdio_file_write_async_safe): Likewise.
1290 (stdio_file_fputs): Likewise.
1291 (stdio_file_isatty): Likewise.
1292 (stdio_file_fseek): Likewise.
1293 (tee_file_delete): Likewise.
1294 (tee_file_flush): Likewise.
1295 (tee_file_write): Likewise.
1296 (tee_file_fputs): Likewise.
1297 (tee_file_isatty): Likewise.
1298 * ui-out.c (do_cleanup_table_end): Likewise.
1299 (do_cleanup_end): Likewise.
1300 * user-regs.c (user_reg_add): Likewise.
1301 (user_reg_map_name_to_regnum): Likewise.
1302 (usernum_to_user_reg): Likewise.
1303 (maintenance_print_user_registers): Likewise.
1304 * utils.c (do_bfd_close_cleanup): Likewise.
1305 (do_fclose_cleanup): Likewise.
1306 (do_obstack_free): Likewise.
1307 (do_ui_file_delete): Likewise.
1308 (do_ui_out_redirect_pop): Likewise.
1309 (do_free_section_addr_info): Likewise.
1310 (restore_integer): Likewise.
1311 (do_unpush_target): Likewise.
1312 (do_htab_delete_cleanup): Likewise.
1313 (do_restore_ui_file): Likewise.
1314 (do_value_free): Likewise.
1315 (do_free_so): Likewise.
1316 (free_current_contents): Likewise.
1317 (do_regfree_cleanup): Likewise.
1318 (core_addr_hash): Likewise.
1319 (core_addr_eq): Likewise.
1320 (do_free_char_ptr_vec): Likewise.
1321 * v850-tdep.c (v850_frame_cache): Likewise.
1322 * varobj.c (do_free_variable_cleanup): Likewise.
1323 * vax-tdep.c (vax_supply_gregset): Likewise.
1324 (vax_frame_cache): Likewise.
1325 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1326 * xml-support.c (gdb_xml_body_text): Likewise.
1327 (gdb_xml_values_cleanup): Likewise.
1328 (gdb_xml_start_element): Likewise.
1329 (gdb_xml_start_element_wrapper): Likewise.
1330 (gdb_xml_end_element): Likewise.
1331 (gdb_xml_end_element_wrapper): Likewise.
1332 (gdb_xml_cleanup): Likewise.
1333 (gdb_xml_fetch_external_entity): Likewise.
1334 (gdb_xml_parse_attr_enum): Likewise.
1335 (xinclude_start_include): Likewise.
1336 (xinclude_end_include): Likewise.
1337 (xml_xinclude_default): Likewise.
1338 (xml_xinclude_start_doctype): Likewise.
1339 (xml_xinclude_end_doctype): Likewise.
1340 (xml_xinclude_cleanup): Likewise.
1341 (xml_fetch_content_from_file): Likewise.
1342 * xml-syscall.c (free_syscalls_info): Likewise.
1343 (syscall_start_syscall): Likewise.
1344 * xml-tdesc.c (tdesc_end_arch): Likewise.
1345 (tdesc_end_osabi): Likewise.
1346 (tdesc_end_compatible): Likewise.
1347 (tdesc_start_target): Likewise.
1348 (tdesc_start_feature): Likewise.
1349 (tdesc_start_reg): Likewise.
1350 (tdesc_start_union): Likewise.
1351 (tdesc_start_struct): Likewise.
1352 (tdesc_start_flags): Likewise.
1353 (tdesc_start_field): Likewise.
1354 (tdesc_start_vector): Likewise.
1355 (fetch_available_features_from_target): Likewise.
1356 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1357 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1358 (xtensa_frame_cache): Likewise.
1359 (xtensa_frame_prev_register): Likewise.
1360 (xtensa_extract_return_value): Likewise.
1362 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1364 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1365 (aarch64_make_stub_cache): Likewise.
1366 (value_of_aarch64_user_reg): Likewise.
1367 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1368 (get_ada_inferior_data): Likewise.
1369 (get_ada_pspace_data): Likewise.
1370 (ada_pspace_data_cleanup): Likewise.
1371 (ada_complete_symbol_matcher): Likewise.
1372 (ada_exc_search_name_matches): Likewise.
1373 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1374 (get_ada_tasks_inferior_data): Likewise.
1375 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1376 (splay_obstack_alloc): Likewise.
1377 (splay_obstack_free): Likewise.
1378 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1379 (alpha_linux_collect_gregset): Likewise.
1380 (alpha_linux_supply_fpregset): Likewise.
1381 (alpha_linux_collect_fpregset): Likewise.
1382 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1383 * alpha-tdep.c (alpha_lds): Likewise.
1384 (alpha_sts): Likewise.
1385 (alpha_sigtramp_frame_unwind_cache): Likewise.
1386 (alpha_heuristic_frame_unwind_cache): Likewise.
1387 (alpha_supply_int_regs): Likewise.
1388 (alpha_fill_int_regs): Likewise.
1389 (alpha_supply_fp_regs): Likewise.
1390 (alpha_fill_fp_regs): Likewise.
1391 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1392 (alphanbsd_aout_supply_gregset): Likewise.
1393 (alphanbsd_supply_gregset): Likewise.
1394 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1395 (amd64_x32_linux_init_abi): Likewise.
1396 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1397 (amd64_collect_native_gregset): Likewise.
1398 * amd64-tdep.c (amd64_frame_cache): Likewise.
1399 (amd64_sigtramp_frame_cache): Likewise.
1400 (amd64_epilogue_frame_cache): Likewise.
1401 (amd64_supply_fxsave): Likewise.
1402 (amd64_supply_xsave): Likewise.
1403 (amd64_collect_fxsave): Likewise.
1404 (amd64_collect_xsave): Likewise.
1405 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1406 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1407 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1408 (arm_linux_collect_gregset): Likewise.
1409 (arm_linux_supply_nwfpe): Likewise.
1410 (arm_linux_collect_nwfpe): Likewise.
1411 (arm_linux_supply_vfp): Likewise.
1412 (arm_linux_collect_vfp): Likewise.
1413 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1414 (arm_prologue_unwind_stop_reason): Likewise.
1415 (arm_prologue_this_id): Likewise.
1416 (arm_prologue_prev_register): Likewise.
1417 (arm_exidx_data_free): Likewise.
1418 (arm_find_exidx_entry): Likewise.
1419 (arm_stub_this_id): Likewise.
1420 (arm_m_exception_this_id): Likewise.
1421 (arm_m_exception_prev_register): Likewise.
1422 (arm_normal_frame_base): Likewise.
1423 (gdb_print_insn_arm): Likewise.
1424 (arm_objfile_data_free): Likewise.
1425 (arm_record_special_symbol): Likewise.
1426 (value_of_arm_user_reg): Likewise.
1427 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1428 (armbsd_supply_gregset): Likewise.
1429 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1430 (get_auto_load_pspace_data): Likewise.
1431 (hash_loaded_script_entry): Likewise.
1432 (eq_loaded_script_entry): Likewise.
1433 (clear_section_scripts): Likewise.
1434 (collect_matching_scripts): Likewise.
1435 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1436 (get_auxv_inferior_data): Likewise.
1437 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1438 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1439 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1440 (target_bfd_xclose): Likewise.
1441 (target_bfd_get_section_table): Likewise.
1442 * bfin-tdep.c (bfin_frame_cache): Likewise.
1443 * block.c (find_block_in_blockvector): Likewise.
1444 (call_site_for_pc): Likewise.
1445 (block_find_non_opaque_type_preferred): Likewise.
1446 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1447 (signal_catchpoint_remove_location): Likewise.
1448 (signal_catchpoint_breakpoint_hit): Likewise.
1449 (signal_catchpoint_print_one): Likewise.
1450 (signal_catchpoint_print_mention): Likewise.
1451 (signal_catchpoint_print_recreate): Likewise.
1452 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1453 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1454 (bp_location_compare_addrs): Likewise.
1455 (get_first_locp_gte_addr): Likewise.
1456 (check_tracepoint_command): Likewise.
1457 (do_map_commands_command): Likewise.
1458 (get_breakpoint_objfile_data): Likewise.
1459 (free_breakpoint_probes): Likewise.
1460 (do_captured_breakpoint_query): Likewise.
1461 (compare_breakpoints): Likewise.
1462 (bp_location_compare): Likewise.
1463 (bpstat_remove_breakpoint_callback): Likewise.
1464 (do_delete_breakpoint_cleanup): Likewise.
1465 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1466 (bsd_uthread_set_collect_uthread): Likewise.
1467 (bsd_uthread_activate): Likewise.
1468 (bsd_uthread_fetch_registers): Likewise.
1469 (bsd_uthread_store_registers): Likewise.
1470 * btrace.c (check_xml_btrace_version): Likewise.
1471 (parse_xml_btrace_block): Likewise.
1472 (parse_xml_btrace_pt_config_cpu): Likewise.
1473 (parse_xml_btrace_pt_raw): Likewise.
1474 (parse_xml_btrace_pt): Likewise.
1475 (parse_xml_btrace_conf_bts): Likewise.
1476 (parse_xml_btrace_conf_pt): Likewise.
1477 (do_btrace_data_cleanup): Likewise.
1478 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1479 * charset.c (cleanup_iconv): Likewise.
1480 (do_cleanup_iterator): Likewise.
1481 * cli-out.c (cli_uiout_dtor): Likewise.
1482 (cli_table_begin): Likewise.
1483 (cli_table_body): Likewise.
1484 (cli_table_end): Likewise.
1485 (cli_table_header): Likewise.
1486 (cli_begin): Likewise.
1487 (cli_end): Likewise.
1488 (cli_field_int): Likewise.
1489 (cli_field_skip): Likewise.
1490 (cli_field_string): Likewise.
1491 (cli_field_fmt): Likewise.
1492 (cli_spaces): Likewise.
1493 (cli_text): Likewise.
1494 (cli_message): Likewise.
1495 (cli_wrap_hint): Likewise.
1496 (cli_flush): Likewise.
1497 (cli_redirect): Likewise.
1498 (out_field_fmt): Likewise.
1499 (field_separator): Likewise.
1500 (cli_out_set_stream): Likewise.
1501 * cli/cli-cmds.c (compare_symtabs): Likewise.
1502 * cli/cli-dump.c (call_dump_func): Likewise.
1503 (restore_section_callback): Likewise.
1504 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1505 (do_restore_user_call_depth): Likewise.
1506 (do_free_command_lines_cleanup): Likewise.
1507 * coff-pe-read.c (get_section_vmas): Likewise.
1508 (pe_as16): Likewise.
1509 (pe_as32): Likewise.
1510 * coffread.c (coff_symfile_read): Likewise.
1511 * common/agent.c (agent_look_up_symbols): Likewise.
1512 * common/filestuff.c (do_close_cleanup): Likewise.
1513 * common/format.c (free_format_pieces_cleanup): Likewise.
1514 * common/vec.c (vec_o_reserve): Likewise.
1515 * compile/compile-c-support.c (print_one_macro): Likewise.
1516 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1517 (eq_symbol_error): Likewise.
1518 (del_symbol_error): Likewise.
1519 (error_symbol_once): Likewise.
1520 (gcc_convert_symbol): Likewise.
1521 (gcc_symbol_address): Likewise.
1522 (hash_symname): Likewise.
1523 (eq_symname): Likewise.
1524 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1525 (eq_type_map_instance): Likewise.
1526 (insert_type): Likewise.
1527 (convert_type): Likewise.
1528 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1529 (setup_sections): Likewise.
1530 (link_hash_table_free): Likewise.
1531 (copy_sections): Likewise.
1532 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1533 * compile/compile.c (compile_print_value): Likewise.
1534 (do_rmdir): Likewise.
1535 (cleanup_compile_instance): Likewise.
1536 (cleanup_unlink_file): Likewise.
1537 * completer.c (free_completion_tracker): Likewise.
1538 * corelow.c (add_to_spuid_list): Likewise.
1539 * cp-namespace.c (reset_directive_searched): Likewise.
1540 * cp-support.c (reset_directive_searched): Likewise.
1541 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1542 (cris_frame_unwind_cache): Likewise.
1543 * d-lang.c (builtin_d_type): Likewise.
1544 * d-namespace.c (reset_directive_searched): Likewise.
1545 * dbxread.c (dbx_free_symfile_info): Likewise.
1546 (do_free_bincl_list_cleanup): Likewise.
1547 * disasm.c (hash_dis_line_entry): Likewise.
1548 (eq_dis_line_entry): Likewise.
1549 (dis_asm_print_address): Likewise.
1550 (fprintf_disasm): Likewise.
1551 (do_ui_file_delete): Likewise.
1552 * doublest.c (convert_floatformat_to_doublest): Likewise.
1553 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1554 (dummy_frame_prev_register): Likewise.
1555 (dummy_frame_this_id): Likewise.
1556 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1557 (cache_eq): Likewise.
1558 (cache_find): Likewise.
1559 (tailcall_frame_this_id): Likewise.
1560 (dwarf2_tailcall_prev_register_first): Likewise.
1561 (tailcall_frame_prev_register): Likewise.
1562 (tailcall_frame_dealloc_cache): Likewise.
1563 (tailcall_frame_prev_arch): Likewise.
1564 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1565 (dwarf2_frame_set_init_reg): Likewise.
1566 (dwarf2_frame_init_reg): Likewise.
1567 (dwarf2_frame_set_signal_frame_p): Likewise.
1568 (dwarf2_frame_signal_frame_p): Likewise.
1569 (dwarf2_frame_set_adjust_regnum): Likewise.
1570 (dwarf2_frame_adjust_regnum): Likewise.
1571 (clear_pointer_cleanup): Likewise.
1572 (dwarf2_frame_cache): Likewise.
1573 (find_cie): Likewise.
1574 (dwarf2_frame_find_fde): Likewise.
1575 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1576 (free_dwarf_expr_context_cleanup): Likewise.
1577 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1578 (locexpr_get_frame_base): Likewise.
1579 (loclist_find_frame_base_location): Likewise.
1580 (loclist_get_frame_base): Likewise.
1581 (dwarf_expr_dwarf_call): Likewise.
1582 (dwarf_expr_get_base_type): Likewise.
1583 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1584 (dwarf_expr_get_obj_addr): Likewise.
1585 (entry_data_value_coerce_ref): Likewise.
1586 (entry_data_value_copy_closure): Likewise.
1587 (entry_data_value_free_closure): Likewise.
1588 (get_frame_address_in_block_wrapper): Likewise.
1589 (dwarf2_evaluate_property): Likewise.
1590 (dwarf2_compile_property_to_c): Likewise.
1591 (needs_frame_read_addr_from_reg): Likewise.
1592 (needs_frame_get_reg_value): Likewise.
1593 (needs_frame_frame_base): Likewise.
1594 (needs_frame_frame_cfa): Likewise.
1595 (needs_frame_tls_address): Likewise.
1596 (needs_frame_dwarf_call): Likewise.
1597 (needs_dwarf_reg_entry_value): Likewise.
1598 (get_ax_pc): Likewise.
1599 (locexpr_read_variable): Likewise.
1600 (locexpr_read_variable_at_entry): Likewise.
1601 (locexpr_read_needs_frame): Likewise.
1602 (locexpr_describe_location): Likewise.
1603 (locexpr_tracepoint_var_ref): Likewise.
1604 (locexpr_generate_c_location): Likewise.
1605 (loclist_read_variable): Likewise.
1606 (loclist_read_variable_at_entry): Likewise.
1607 (loclist_describe_location): Likewise.
1608 (loclist_tracepoint_var_ref): Likewise.
1609 (loclist_generate_c_location): Likewise.
1610 * dwarf2read.c (line_header_hash_voidp): Likewise.
1611 (line_header_eq_voidp): Likewise.
1612 (dwarf2_has_info): Likewise.
1613 (dwarf2_get_section_info): Likewise.
1614 (locate_dwz_sections): Likewise.
1615 (hash_file_name_entry): Likewise.
1616 (eq_file_name_entry): Likewise.
1617 (delete_file_name_entry): Likewise.
1618 (dw2_setup): Likewise.
1619 (dw2_get_file_names_reader): Likewise.
1620 (dw2_find_pc_sect_compunit_symtab): Likewise.
1621 (hash_signatured_type): Likewise.
1622 (eq_signatured_type): Likewise.
1623 (add_signatured_type_cu_to_table): Likewise.
1624 (create_debug_types_hash_table): Likewise.
1625 (lookup_dwo_signatured_type): Likewise.
1626 (lookup_dwp_signatured_type): Likewise.
1627 (lookup_signatured_type): Likewise.
1628 (hash_type_unit_group): Likewise.
1629 (eq_type_unit_group): Likewise.
1630 (get_type_unit_group): Likewise.
1631 (process_psymtab_comp_unit_reader): Likewise.
1632 (sort_tu_by_abbrev_offset): Likewise.
1633 (process_skeletonless_type_unit): Likewise.
1634 (psymtabs_addrmap_cleanup): Likewise.
1635 (dwarf2_read_symtab): Likewise.
1636 (psymtab_to_symtab_1): Likewise.
1637 (die_hash): Likewise.
1639 (load_full_comp_unit_reader): Likewise.
1640 (reset_die_in_process): Likewise.
1641 (free_cu_line_header): Likewise.
1642 (handle_DW_AT_stmt_list): Likewise.
1643 (hash_dwo_file): Likewise.
1644 (eq_dwo_file): Likewise.
1645 (hash_dwo_unit): Likewise.
1646 (eq_dwo_unit): Likewise.
1647 (create_dwo_cu_reader): Likewise.
1648 (create_dwo_unit_in_dwp_v1): Likewise.
1649 (create_dwo_unit_in_dwp_v2): Likewise.
1650 (lookup_dwo_unit_in_dwp): Likewise.
1651 (dwarf2_locate_dwo_sections): Likewise.
1652 (dwarf2_locate_common_dwp_sections): Likewise.
1653 (dwarf2_locate_v2_dwp_sections): Likewise.
1654 (hash_dwp_loaded_cutus): Likewise.
1655 (eq_dwp_loaded_cutus): Likewise.
1656 (lookup_dwo_cutu): Likewise.
1657 (abbrev_table_free_cleanup): Likewise.
1658 (dwarf2_free_abbrev_table): Likewise.
1659 (find_partial_die_in_comp_unit): Likewise.
1660 (free_line_header_voidp): Likewise.
1661 (follow_die_offset): Likewise.
1662 (follow_die_sig_1): Likewise.
1663 (free_heap_comp_unit): Likewise.
1664 (free_stack_comp_unit): Likewise.
1665 (dwarf2_free_objfile): Likewise.
1666 (per_cu_offset_and_type_hash): Likewise.
1667 (per_cu_offset_and_type_eq): Likewise.
1668 (get_die_type_at_offset): Likewise.
1669 (partial_die_hash): Likewise.
1670 (partial_die_eq): Likewise.
1671 (dwarf2_per_objfile_free): Likewise.
1672 (hash_strtab_entry): Likewise.
1673 (eq_strtab_entry): Likewise.
1674 (add_string): Likewise.
1675 (hash_symtab_entry): Likewise.
1676 (eq_symtab_entry): Likewise.
1677 (delete_symtab_entry): Likewise.
1678 (cleanup_mapped_symtab): Likewise.
1679 (add_indices_to_cpool): Likewise.
1680 (hash_psymtab_cu_index): Likewise.
1681 (eq_psymtab_cu_index): Likewise.
1682 (add_address_entry_worker): Likewise.
1683 (unlink_if_set): Likewise.
1684 (write_one_signatured_type): Likewise.
1685 (save_gdb_index_command): Likewise.
1686 * elfread.c (elf_symtab_read): Likewise.
1687 (elf_gnu_ifunc_cache_hash): Likewise.
1688 (elf_gnu_ifunc_cache_eq): Likewise.
1689 (elf_gnu_ifunc_record_cache): Likewise.
1690 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1691 (elf_get_probes): Likewise.
1692 (probe_key_free): Likewise.
1693 * f-lang.c (builtin_f_type): Likewise.
1694 * frame-base.c (frame_base_append_sniffer): Likewise.
1695 (frame_base_set_default): Likewise.
1696 (frame_base_find_by_frame): Likewise.
1697 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1698 (frame_unwind_append_unwinder): Likewise.
1699 (frame_unwind_find_by_frame): Likewise.
1700 * frame.c (frame_addr_hash): Likewise.
1701 (frame_addr_hash_eq): Likewise.
1702 (frame_stash_find): Likewise.
1703 (do_frame_register_read): Likewise.
1704 (unwind_to_current_frame): Likewise.
1705 (frame_cleanup_after_sniffer): Likewise.
1706 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1707 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1708 * ft32-tdep.c (ft32_frame_cache): Likewise.
1709 * gcore.c (do_bfd_delete_cleanup): Likewise.
1710 (gcore_create_callback): Likewise.
1711 * gdb_bfd.c (hash_bfd): Likewise.
1713 (gdb_bfd_open): Likewise.
1714 (free_one_bfd_section): Likewise.
1715 (gdb_bfd_ref): Likewise.
1716 (gdb_bfd_unref): Likewise.
1717 (get_section_descriptor): Likewise.
1718 (gdb_bfd_map_section): Likewise.
1719 (gdb_bfd_crc): Likewise.
1720 (gdb_bfd_mark_parent): Likewise.
1721 (gdb_bfd_record_inclusion): Likewise.
1722 (gdb_bfd_requires_relocations): Likewise.
1723 (print_one_bfd): Likewise.
1724 * gdbtypes.c (type_pair_hash): Likewise.
1725 (type_pair_eq): Likewise.
1726 (builtin_type): Likewise.
1727 (objfile_type): Likewise.
1728 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1729 (vtable_address_point_offset): Likewise.
1730 (gnuv3_get_vtable): Likewise.
1731 (hash_value_and_voffset): Likewise.
1732 (eq_value_and_voffset): Likewise.
1733 (compare_value_and_voffset): Likewise.
1734 (compute_vtable_size): Likewise.
1735 (gnuv3_get_typeid_type): Likewise.
1736 * go-lang.c (builtin_go_type): Likewise.
1737 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1738 (bkscm_eq_block_smob): Likewise.
1739 (bkscm_objfile_block_map): Likewise.
1740 (bkscm_del_objfile_blocks): Likewise.
1741 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1742 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1743 (gdbscm_disasm_print_address): Likewise.
1744 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1745 (frscm_eq_frame_smob): Likewise.
1746 (frscm_inferior_frame_map): Likewise.
1747 (frscm_del_inferior_frames): Likewise.
1748 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1749 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1750 (ofscm_objfile_smob_from_objfile): Likewise.
1751 * guile/scm-ports.c (ioscm_write): Likewise.
1752 (ioscm_file_port_delete): Likewise.
1753 (ioscm_file_port_rewind): Likewise.
1754 (ioscm_file_port_put): Likewise.
1755 (ioscm_file_port_write): Likewise.
1756 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1757 (psscm_pspace_smob_from_pspace): Likewise.
1758 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1759 (scscm_recording_unwind_handler): Likewise.
1760 (gdbscm_with_catch): Likewise.
1761 (scscm_call_0_body): Likewise.
1762 (scscm_call_1_body): Likewise.
1763 (scscm_call_2_body): Likewise.
1764 (scscm_call_3_body): Likewise.
1765 (scscm_call_4_body): Likewise.
1766 (scscm_apply_1_body): Likewise.
1767 (scscm_eval_scheme_string): Likewise.
1768 (gdbscm_safe_eval_string): Likewise.
1769 (scscm_source_scheme_script): Likewise.
1770 (gdbscm_safe_source_script): Likewise.
1771 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1772 (gdbscm_call_scm_from_stringn): Likewise.
1773 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1774 (syscm_eq_symbol_smob): Likewise.
1775 (syscm_get_symbol_map): Likewise.
1776 (syscm_del_objfile_symbols): Likewise.
1777 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1778 (stscm_eq_symtab_smob): Likewise.
1779 (stscm_objfile_symtab_map): Likewise.
1780 (stscm_del_objfile_symtabs): Likewise.
1781 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1782 (tyscm_eq_type_smob): Likewise.
1783 (tyscm_type_map): Likewise.
1784 (tyscm_copy_type_recursive): Likewise.
1785 (save_objfile_types): Likewise.
1786 * guile/scm-utils.c (extract_arg): Likewise.
1787 * h8300-tdep.c (h8300_frame_cache): Likewise.
1788 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1789 * hppa-tdep.c (compare_unwind_entries): Likewise.
1790 (find_unwind_entry): Likewise.
1791 (hppa_frame_cache): Likewise.
1792 (hppa_stub_frame_unwind_cache): Likewise.
1793 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1794 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1795 (hppaobsd_supply_fpregset): Likewise.
1796 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1797 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1798 * i386-tdep.c (i386_frame_cache): Likewise.
1799 (i386_epilogue_frame_cache): Likewise.
1800 (i386_sigtramp_frame_cache): Likewise.
1801 (i386_supply_gregset): Likewise.
1802 (i386_collect_gregset): Likewise.
1803 (i386_gdbarch_init): Likewise.
1804 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1805 (i386obsd_trapframe_cache): Likewise.
1806 * i387-tdep.c (i387_supply_fsave): Likewise.
1807 (i387_collect_fsave): Likewise.
1808 (i387_supply_fxsave): Likewise.
1809 (i387_collect_fxsave): Likewise.
1810 (i387_supply_xsave): Likewise.
1811 (i387_collect_xsave): Likewise.
1812 * ia64-tdep.c (ia64_frame_cache): Likewise.
1813 (ia64_sigtramp_frame_cache): Likewise.
1814 * infcmd.c (attach_command_continuation): Likewise.
1815 (attach_command_continuation_free_args): Likewise.
1816 * inferior.c (restore_inferior): Likewise.
1817 (delete_thread_of_inferior): Likewise.
1818 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1819 (get_inflow_inferior_data): Likewise.
1820 (inflow_inferior_exit): Likewise.
1821 * infrun.c (displaced_step_clear_cleanup): Likewise.
1822 (restore_current_uiout_cleanup): Likewise.
1823 (release_stop_context_cleanup): Likewise.
1824 (do_restore_infcall_suspend_state_cleanup): Likewise.
1825 (do_restore_infcall_control_state_cleanup): Likewise.
1826 (restore_inferior_ptid): Likewise.
1827 * inline-frame.c (block_starting_point_at): Likewise.
1828 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1829 * jit.c (get_jit_objfile_data): Likewise.
1830 (get_jit_program_space_data): Likewise.
1831 (jit_object_close_impl): Likewise.
1832 (jit_find_objf_with_entry_addr): Likewise.
1833 (jit_breakpoint_deleted): Likewise.
1834 (jit_unwind_reg_set_impl): Likewise.
1835 (jit_unwind_reg_get_impl): Likewise.
1836 (jit_dealloc_cache): Likewise.
1837 (jit_frame_sniffer): Likewise.
1838 (jit_frame_prev_register): Likewise.
1839 (jit_prepend_unwinder): Likewise.
1840 (jit_inferior_exit_hook): Likewise.
1841 (free_objfile_data): Likewise.
1842 * jv-lang.c (jv_per_objfile_free): Likewise.
1843 (get_dynamics_objfile): Likewise.
1844 (get_java_class_symtab): Likewise.
1845 (builtin_java_type): Likewise.
1846 * language.c (language_string_char_type): Likewise.
1847 (language_bool_type): Likewise.
1848 (language_lookup_primitive_type): Likewise.
1849 (language_lookup_primitive_type_as_symbol): Likewise.
1850 * linespec.c (hash_address_entry): Likewise.
1851 (eq_address_entry): Likewise.
1852 (iterate_inline_only): Likewise.
1853 (iterate_name_matcher): Likewise.
1854 (decode_line_2_compare_items): Likewise.
1855 (collect_one_symbol): Likewise.
1856 (compare_symbols): Likewise.
1857 (compare_msymbols): Likewise.
1858 (add_symtabs_to_list): Likewise.
1859 (collect_symbols): Likewise.
1860 (compare_msyms): Likewise.
1861 (add_minsym): Likewise.
1862 (cleanup_linespec_result): Likewise.
1863 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1864 * linux-nat.c (delete_lwp_cleanup): Likewise.
1865 (count_events_callback): Likewise.
1866 (select_event_lwp_callback): Likewise.
1867 (resume_stopped_resumed_lwps): Likewise.
1868 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1869 (invalidate_linux_cache_inf): Likewise.
1870 (get_linux_inferior_data): Likewise.
1871 (linux_find_memory_regions_thunk): Likewise.
1872 (linux_make_mappings_callback): Likewise.
1873 (linux_corefile_thread_callback): Likewise.
1874 (find_mapping_size): Likewise.
1875 * linux-thread-db.c (find_new_threads_callback): Likewise.
1876 * lm32-tdep.c (lm32_frame_cache): Likewise.
1877 * m2-lang.c (builtin_m2_type): Likewise.
1878 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1879 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1880 (m32r_linux_supply_gregset): Likewise.
1881 (m32r_linux_collect_gregset): Likewise.
1882 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1883 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1884 * m68k-tdep.c (m68k_frame_cache): Likewise.
1885 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1886 (m68kbsd_supply_gregset): Likewise.
1887 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1888 * m88k-tdep.c (m88k_frame_cache): Likewise.
1889 (m88k_supply_gregset): Likewise.
1891 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1893 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1894 to allocation result assignment.
1895 * ada-exp.y (write_object_renaming): Likewise.
1896 (write_ambiguous_var): Likewise.
1897 (ada_nget_field_index): Likewise.
1898 (write_var_or_type): Likewise.
1899 * ada-lang.c (ada_decode_symbol): Likewise.
1900 (ada_value_assign): Likewise.
1901 (value_pointer): Likewise.
1902 (cache_symbol): Likewise.
1903 (add_nonlocal_symbols): Likewise.
1904 (ada_name_for_lookup): Likewise.
1905 (symbol_completion_add): Likewise.
1906 (ada_to_fixed_type_1): Likewise.
1907 (ada_get_next_arg): Likewise.
1908 (defns_collected): Likewise.
1909 * ada-lex.l (processId): Likewise.
1910 (processString): Likewise.
1911 * ada-tasks.c (read_known_tasks_array): Likewise.
1912 (read_known_tasks_list): Likewise.
1913 * ada-typeprint.c (decoded_type_name): Likewise.
1914 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1915 * amd64-tdep.c (amd64_push_arguments): Likewise.
1916 (amd64_displaced_step_copy_insn): Likewise.
1917 (amd64_classify_insn_at): Likewise.
1918 (amd64_relocate_instruction): Likewise.
1919 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1920 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1921 (initialize_current_architecture): Likewise.
1922 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1923 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1924 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1925 (arm_push_dummy_call): Likewise.
1926 (extend_buffer_earlier): Likewise.
1927 (arm_adjust_breakpoint_address): Likewise.
1928 (arm_skip_stub): Likewise.
1929 * auto-load.c (filename_is_in_pattern): Likewise.
1930 (maybe_add_script_file): Likewise.
1931 (maybe_add_script_text): Likewise.
1932 (auto_load_objfile_script_1): Likewise.
1933 * auxv.c (ld_so_xfer_auxv): Likewise.
1934 * ax-general.c (new_agent_expr): Likewise.
1935 (grow_expr): Likewise.
1936 (ax_reg_mask): Likewise.
1937 * bcache.c (bcache_full): Likewise.
1938 * breakpoint.c (program_breakpoint_here_p): Likewise.
1939 * btrace.c (parse_xml_raw): Likewise.
1940 * build-id.c (build_id_to_debug_bfd): Likewise.
1941 * buildsym.c (end_symtab_with_blockvector): Likewise.
1942 * c-exp.y (string_exp): Likewise.
1943 (qualified_name): Likewise.
1944 (write_destructor_name): Likewise.
1945 (operator_stoken): Likewise.
1946 (parse_number): Likewise.
1947 (scan_macro_expansion): Likewise.
1949 (c_print_token): Likewise.
1950 * c-lang.c (c_get_string): Likewise.
1951 (emit_numeric_character): Likewise.
1952 * charset.c (wchar_iterate): Likewise.
1953 * cli/cli-cmds.c (complete_command): Likewise.
1954 (make_command): Likewise.
1955 * cli/cli-dump.c (restore_section_callback): Likewise.
1956 (restore_binary_file): Likewise.
1957 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1958 * cli/cli-script.c (execute_control_command): Likewise.
1959 * cli/cli-setshow.c (do_set_command): Likewise.
1960 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1961 (read_pe_exported_syms): Likewise.
1962 * coffread.c (coff_read_struct_type): Likewise.
1963 (coff_read_enum_type): Likewise.
1964 * common/btrace-common.c (btrace_data_append): Likewise.
1965 * common/buffer.c (buffer_grow): Likewise.
1966 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1967 * common/format.c (parse_format_string): Likewise.
1968 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1969 * common/xml-utils.c (xml_escape_text): Likewise.
1970 * compile/compile-object-load.c (copy_sections): Likewise.
1971 (compile_object_load): Likewise.
1972 * compile/compile-object-run.c (compile_object_run): Likewise.
1973 * completer.c (filename_completer): Likewise.
1974 * corefile.c (read_memory_typed_address): Likewise.
1975 (write_memory_unsigned_integer): Likewise.
1976 (write_memory_signed_integer): Likewise.
1977 (complete_set_gnutarget): Likewise.
1978 * corelow.c (get_core_register_section): Likewise.
1979 * cp-name-parser.y (d_grab): Likewise.
1980 (allocate_info): Likewise.
1981 (cp_new_demangle_parse_info): Likewise.
1982 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1983 (cp_lookup_symbol_in_namespace): Likewise.
1984 (lookup_namespace_scope): Likewise.
1985 (find_symbol_in_baseclass): Likewise.
1986 (cp_lookup_nested_symbol): Likewise.
1987 (cp_lookup_transparent_type_loop): Likewise.
1988 * cp-support.c (copy_string_to_obstack): Likewise.
1989 (make_symbol_overload_list): Likewise.
1990 (make_symbol_overload_list_namespace): Likewise.
1991 (make_symbol_overload_list_adl_namespace): Likewise.
1992 (first_component_command): Likewise.
1993 * cp-valprint.c (cp_print_value): Likewise.
1994 * ctf.c (ctf_xfer_partial): Likewise.
1995 * d-exp.y (StringExp): Likewise.
1996 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1997 (lookup_module_scope): Likewise.
1998 (find_symbol_in_baseclass): Likewise.
1999 (d_lookup_nested_symbol): Likewise.
2000 * dbxread.c (find_stab_function_addr): Likewise.
2001 (read_dbx_symtab): Likewise.
2002 (dbx_end_psymtab): Likewise.
2003 (cp_set_block_scope): Likewise.
2004 * dcache.c (dcache_alloc): Likewise.
2005 * demangle.c (_initialize_demangler): Likewise.
2006 * dicos-tdep.c (dicos_load_module_p): Likewise.
2007 * dictionary.c (dict_create_hashed_expandable): Likewise.
2008 (dict_create_linear_expandable): Likewise.
2009 (expand_hashtable): Likewise.
2010 (add_symbol_linear_expandable): Likewise.
2011 * dwarf2-frame.c (add_cie): Likewise.
2012 (add_fde): Likewise.
2013 (dwarf2_build_frame_info): Likewise.
2014 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2015 (dwarf_expr_fetch_address): Likewise.
2016 (add_piece): Likewise.
2017 (execute_stack_op): Likewise.
2018 * dwarf2loc.c (chain_candidate): Likewise.
2019 (dwarf_entry_parameter_to_value): Likewise.
2020 (read_pieced_value): Likewise.
2021 (write_pieced_value): Likewise.
2022 * dwarf2read.c (dwarf2_read_section): Likewise.
2023 (add_type_unit): Likewise.
2024 (read_comp_units_from_section): Likewise.
2025 (fixup_go_packaging): Likewise.
2026 (dwarf2_compute_name): Likewise.
2027 (dwarf2_physname): Likewise.
2028 (create_dwo_unit_in_dwp_v1): Likewise.
2029 (create_dwo_unit_in_dwp_v2): Likewise.
2030 (read_func_scope): Likewise.
2031 (read_call_site_scope): Likewise.
2032 (dwarf2_attach_fields_to_type): Likewise.
2033 (process_structure_scope): Likewise.
2034 (mark_common_block_symbol_computed): Likewise.
2035 (read_common_block): Likewise.
2036 (abbrev_table_read_table): Likewise.
2037 (guess_partial_die_structure_name): Likewise.
2038 (fixup_partial_die): Likewise.
2039 (add_file_name): Likewise.
2040 (dwarf2_const_value_data): Likewise.
2041 (dwarf2_const_value_attr): Likewise.
2042 (build_error_marker_type): Likewise.
2043 (guess_full_die_structure_name): Likewise.
2044 (anonymous_struct_prefix): Likewise.
2045 (typename_concat): Likewise.
2046 (dwarf2_canonicalize_name): Likewise.
2047 (dwarf2_name): Likewise.
2048 (write_constant_as_bytes): Likewise.
2049 (dwarf2_fetch_constant_bytes): Likewise.
2050 (copy_string): Likewise.
2051 (parse_macro_definition): Likewise.
2052 * elfread.c (elf_symfile_segments): Likewise.
2053 (elf_rel_plt_read): Likewise.
2054 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2055 (elf_gnu_ifunc_resolve_by_got): Likewise.
2056 (elf_read_minimal_symbols): Likewise.
2057 (elf_gnu_ifunc_record_cache): Likewise.
2058 * event-top.c (top_level_prompt): Likewise.
2059 (command_line_handler): Likewise.
2060 * exec.c (resize_section_table): Likewise.
2061 * expprint.c (print_subexp_standard): Likewise.
2062 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2063 * findcmd.c (parse_find_args): Likewise.
2064 * findvar.c (address_from_register): Likewise.
2065 * frame.c (get_prev_frame_always): Likewise.
2066 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2067 (get_section_descriptor): Likewise.
2068 * gdb_obstack.c (obconcat): Likewise.
2069 (obstack_strdup): Likewise.
2070 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2071 (create_set_type): Likewise.
2072 (lookup_unsigned_typename): Likewise.
2073 (lookup_signed_typename): Likewise.
2074 (resolve_dynamic_union): Likewise.
2075 (resolve_dynamic_struct): Likewise.
2076 (add_dyn_prop): Likewise.
2077 (copy_dynamic_prop_list): Likewise.
2078 (arch_flags_type): Likewise.
2079 (append_composite_type_field_raw): Likewise.
2080 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2081 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2082 * go-exp.y (string_exp): Likewise.
2083 * go-lang.c (go_demangle): Likewise.
2084 * guile/guile.c (compute_scheme_string): Likewise.
2085 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2086 (gdbscm_canonicalize_command_name): Likewise.
2087 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2088 (ioscm_init_memory_port): Likewise.
2089 (ioscm_reinit_memory_port): Likewise.
2090 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2091 (gdbscm_gc_dup_argv): Likewise.
2092 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2093 * hppa-tdep.c (internalize_unwinds): Likewise.
2094 (read_unwind_info): Likewise.
2095 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2096 (windows_core_xfer_shared_libraries): Likewise.
2097 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2098 (i386_stap_parse_special_token_triplet): Likewise.
2099 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2100 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2101 * inf-child.c (inf_child_fileio_readlink): Likewise.
2102 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2103 (inf_ptrace_store_register): Likewise.
2104 * infrun.c (follow_exec): Likewise.
2105 (displaced_step_prepare_throw): Likewise.
2106 (save_stop_context): Likewise.
2107 (save_infcall_suspend_state): Likewise.
2108 * jit.c (jit_read_descriptor): Likewise.
2109 (jit_read_code_entry): Likewise.
2110 (jit_symtab_line_mapping_add_impl): Likewise.
2111 (finalize_symtab): Likewise.
2112 (jit_unwind_reg_get_impl): Likewise.
2113 * jv-exp.y (QualifiedName): Likewise.
2114 * jv-lang.c (get_java_utf8_name): Likewise.
2115 (type_from_class): Likewise.
2116 (java_demangle_type_signature): Likewise.
2117 (java_class_name_from_physname): Likewise.
2118 * jv-typeprint.c (java_type_print_base): Likewise.
2119 * jv-valprint.c (java_value_print): Likewise.
2120 * language.c (add_language): Likewise.
2121 * linespec.c (add_sal_to_sals_basic): Likewise.
2122 (add_sal_to_sals): Likewise.
2123 (decode_objc): Likewise.
2124 (find_linespec_symbols): Likewise.
2125 * linux-fork.c (fork_save_infrun_state): Likewise.
2126 * linux-nat.c (linux_nat_detach): Likewise.
2127 (linux_nat_fileio_readlink): Likewise.
2128 * linux-record.c (record_linux_sockaddr): Likewise.
2129 (record_linux_msghdr): Likewise.
2131 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2132 (linux_collect_regset_section_cb): Likewise.
2133 (linux_get_siginfo_data): Likewise.
2134 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2135 (try_thread_db_load_from_dir): Likewise.
2136 (thread_db_load_search): Likewise.
2137 (info_auto_load_libthread_db): Likewise.
2138 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2139 (m32c_m16c_pointer_to_address): Likewise.
2140 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2141 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2142 * machoread.c (macho_check_dsym): Likewise.
2143 * macroexp.c (resize_buffer): Likewise.
2144 (gather_arguments): Likewise.
2145 (maybe_expand): Likewise.
2146 * macrotab.c (new_macro_key): Likewise.
2147 (new_source_file): Likewise.
2148 (new_macro_definition): Likewise.
2149 * mdebugread.c (parse_symbol): Likewise.
2150 (parse_type): Likewise.
2151 (parse_partial_symbols): Likewise.
2152 (psymtab_to_symtab_1): Likewise.
2153 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2154 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2155 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2156 (mi_cmd_data_read_memory_bytes): Likewise.
2157 (mi_cmd_data_write_memory_bytes): Likewise.
2158 (mi_cmd_trace_frame_collected): Likewise.
2159 * mi/mi-parse.c (mi_parse_argv): Likewise.
2160 (mi_parse): Likewise.
2161 * minidebug.c (lzma_open): Likewise.
2162 (lzma_pread): Likewise.
2163 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2164 (mips_print_fp_register): Likewise.
2165 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2166 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2167 * mt-tdep.c (mt_register_name): Likewise.
2168 (mt_registers_info): Likewise.
2169 (mt_push_dummy_call): Likewise.
2170 * namespace.c (add_using_directive): Likewise.
2171 * nat/linux-btrace.c (perf_event_read): Likewise.
2172 (linux_enable_bts): Likewise.
2173 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2174 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2175 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2176 (nto_parse_redirection): Likewise.
2177 * objc-lang.c (objc_demangle): Likewise.
2178 (find_methods): Likewise.
2179 * objfiles.c (get_objfile_bfd_data): Likewise.
2180 (set_objfile_main_name): Likewise.
2181 (allocate_objfile): Likewise.
2182 (objfile_relocate): Likewise.
2183 (update_section_map): Likewise.
2184 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2185 * p-exp.y (exp): Likewise.
2187 * p-valprint.c (pascal_object_print_value): Likewise.
2188 * parse.c (initialize_expout): Likewise.
2189 (mark_completion_tag): Likewise.
2190 (copy_name): Likewise.
2191 (parse_float): Likewise.
2192 (type_stack_reserve): Likewise.
2193 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2194 (ppu2spu_prev_register): Likewise.
2195 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2196 * printcmd.c (printf_wide_c_string): Likewise.
2197 (printf_pointer): Likewise.
2198 * probe.c (parse_probes): Likewise.
2199 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2200 (cmdpy_init): Likewise.
2201 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2202 * python/py-symtab.c (set_sal): Likewise.
2203 * python/py-unwind.c (pyuw_sniffer): Likewise.
2204 * python/python.c (python_interactive_command): Likewise.
2205 (compute_python_string): Likewise.
2206 * ravenscar-thread.c (get_running_thread_id): Likewise.
2207 * record-full.c (record_full_exec_insn): Likewise.
2208 (record_full_core_open_1): Likewise.
2209 * regcache.c (regcache_raw_read_signed): Likewise.
2210 (regcache_raw_read_unsigned): Likewise.
2211 (regcache_cooked_read_signed): Likewise.
2212 (regcache_cooked_read_unsigned): Likewise.
2213 * remote-fileio.c (remote_fileio_func_open): Likewise.
2214 (remote_fileio_func_rename): Likewise.
2215 (remote_fileio_func_unlink): Likewise.
2216 (remote_fileio_func_stat): Likewise.
2217 (remote_fileio_func_system): Likewise.
2218 * remote-mips.c (mips_xfer_memory): Likewise.
2219 (mips_load_srec): Likewise.
2220 (pmon_end_download): Likewise.
2221 * remote.c (new_remote_state): Likewise.
2222 (map_regcache_remote_table): Likewise.
2223 (remote_register_number_and_offset): Likewise.
2224 (init_remote_state): Likewise.
2225 (get_memory_packet_size): Likewise.
2226 (remote_pass_signals): Likewise.
2227 (remote_program_signals): Likewise.
2228 (remote_start_remote): Likewise.
2229 (remote_check_symbols): Likewise.
2230 (remote_query_supported): Likewise.
2231 (extended_remote_attach): Likewise.
2232 (process_g_packet): Likewise.
2233 (store_registers_using_G): Likewise.
2234 (putpkt_binary): Likewise.
2235 (read_frame): Likewise.
2236 (compare_sections_command): Likewise.
2237 (remote_hostio_pread): Likewise.
2238 (remote_hostio_readlink): Likewise.
2239 (remote_file_put): Likewise.
2240 (remote_file_get): Likewise.
2241 (remote_pid_to_exec_file): Likewise.
2242 (_initialize_remote): Likewise.
2243 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2244 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2245 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2246 (bfd_uses_spe_extensions): Likewise.
2247 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2248 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2249 * solib-dsbt.c (decode_loadmap): Likewise.
2250 (fetch_loadmap): Likewise.
2251 (scan_dyntag): Likewise.
2252 (enable_break): Likewise.
2253 (dsbt_relocate_main_executable): Likewise.
2254 * solib-frv.c (fetch_loadmap): Likewise.
2255 (enable_break2): Likewise.
2256 (frv_relocate_main_executable): Likewise.
2257 * solib-spu.c (spu_relocate_main_executable): Likewise.
2258 (spu_bfd_open): Likewise.
2259 * solib-svr4.c (lm_info_read): Likewise.
2260 (read_program_header): Likewise.
2261 (find_program_interpreter): Likewise.
2262 (scan_dyntag): Likewise.
2263 (elf_locate_base): Likewise.
2264 (open_symbol_file_object): Likewise.
2265 (read_program_headers_from_bfd): Likewise.
2266 (svr4_relocate_main_executable): Likewise.
2267 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2268 * solib.c (solib_find_1): Likewise.
2269 (exec_file_find): Likewise.
2270 (solib_find): Likewise.
2271 * source.c (openp): Likewise.
2272 (print_source_lines_base): Likewise.
2273 (forward_search_command): Likewise.
2274 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2275 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2276 (spu_get_overlay_table): Likewise.
2277 * stabsread.c (patch_block_stabs): Likewise.
2278 (define_symbol): Likewise.
2280 (read_member_functions): Likewise.
2281 (read_one_struct_field): Likewise.
2282 (read_enum_type): Likewise.
2283 (common_block_start): Likewise.
2284 * stack.c (read_frame_arg): Likewise.
2285 (backtrace_command): Likewise.
2286 * stap-probe.c (stap_parse_register_operand): Likewise.
2287 * symfile.c (syms_from_objfile_1): Likewise.
2288 (find_separate_debug_file): Likewise.
2289 (load_command): Likewise.
2290 (load_progress): Likewise.
2291 (load_section_callback): Likewise.
2292 (reread_symbols): Likewise.
2293 (add_filename_language): Likewise.
2294 (allocate_compunit_symtab): Likewise.
2295 (read_target_long_array): Likewise.
2296 (simple_read_overlay_table): Likewise.
2297 * symtab.c (symbol_set_names): Likewise.
2298 (resize_symbol_cache): Likewise.
2299 (rbreak_command): Likewise.
2300 (completion_list_add_name): Likewise.
2301 (completion_list_objc_symbol): Likewise.
2302 (add_filename_to_list): Likewise.
2303 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2304 * target-memory.c (target_write_memory_blocks): Likewise.
2305 * target.c (target_read_string): Likewise.
2306 (read_whatever_is_readable): Likewise.
2307 (target_read_alloc_1): Likewise.
2308 (simple_search_memory): Likewise.
2309 (target_fileio_read_alloc_1): Likewise.
2310 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2311 * top.c (command_line_input): Likewise.
2312 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2313 * tracefile.c (tracefile_fetch_registers): Likewise.
2314 * tracepoint.c (add_memrange): Likewise.
2315 (init_collection_list): Likewise.
2316 (add_aexpr): Likewise.
2317 (trace_dump_actions): Likewise.
2318 (parse_trace_status): Likewise.
2319 (parse_tracepoint_definition): Likewise.
2320 (parse_tsv_definition): Likewise.
2321 (parse_static_tracepoint_marker_definition): Likewise.
2322 * tui/tui-file.c (tui_sfileopen): Likewise.
2323 (tui_file_adjust_strbuf): Likewise.
2324 * tui/tui-io.c (tui_expand_tabs): Likewise.
2325 * tui/tui-source.c (tui_set_source_content): Likewise.
2326 * typeprint.c (find_global_typedef): Likewise.
2327 * ui-file.c (do_ui_file_xstrdup): Likewise.
2328 (ui_file_obsavestring): Likewise.
2329 (mem_file_write): Likewise.
2330 * utils.c (make_hex_string): Likewise.
2331 (get_regcomp_error): Likewise.
2332 (puts_filtered_tabular): Likewise.
2333 (gdb_realpath_keepfile): Likewise.
2334 (ldirname): Likewise.
2335 (gdb_bfd_errmsg): Likewise.
2336 (substitute_path_component): Likewise.
2337 * valops.c (search_struct_method): Likewise.
2338 (find_oload_champ_namespace_loop): Likewise.
2339 * valprint.c (print_decimal_chars): Likewise.
2340 (read_string): Likewise.
2341 (generic_emit_char): Likewise.
2342 * varobj.c (varobj_delete): Likewise.
2343 (varobj_value_get_print_value): Likewise.
2344 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2345 * windows-tdep.c (display_one_tib): Likewise.
2346 * xcoffread.c (read_xcoff_symtab): Likewise.
2347 (process_xcoff_symbol): Likewise.
2348 (swap_sym): Likewise.
2349 (scan_xcoff_symtab): Likewise.
2350 (xcoff_initial_scan): Likewise.
2351 * xml-support.c (gdb_xml_end_element): Likewise.
2352 (xml_process_xincludes): Likewise.
2353 (xml_fetch_content_from_file): Likewise.
2354 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2355 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2357 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2359 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2360 instead of builtin_func_ptr.
2361 (ft32_pointer_to_address): New function.
2362 (ft32_address_class_type_flags): New function.
2363 (ft32_address_class_type_flags_to_name): New function.
2364 (ft32_address_class_name_to_type_flags): New function.
2365 (ft32_gdbarch_init): Set tdep->pc_type. Call
2366 set_gdbarch_pointer_to_address,
2367 set_gdbarch_address_class_type_flags
2368 set_gdbarch_address_class_name_to_type_flags,
2369 and set_gdbarch_address_class_type_flags_to_name.
2370 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2372 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2374 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2375 value is a reference, actually dereference it in order to get
2376 the underlying value.
2378 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2380 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2382 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2384 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2385 * linespec.c (linespec_lexer_lex_string): Same.
2387 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2389 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2391 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2393 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2394 variable. Call aarch64_decode_adr instead of
2395 aarch64_decode_adrp.
2396 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2397 (aarch64_decode_adr): New function declaration.
2398 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2399 (aarch64_decode_adr): New function, factored out from
2400 aarch64_decode_adrp to decode both adr and adrp instructions.
2402 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2404 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2405 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2406 (aarch64-insn.o): New rule.
2407 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2408 (aarch64*-*-linux*): Likewise.
2409 * arch/aarch64-insn.c: New file.
2410 * arch/aarch64-insn.h: New file.
2411 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2412 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2413 arch/aarch64-insn.h.
2414 (decode_add_sub_imm): Rename to ...
2415 (aarch64_decode_add_sub_imm): ... this.
2416 (decode_adrp): Rename to ...
2417 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2418 Declare in arch/aarch64-insn.h.
2419 (decode_b): Rename to ...
2420 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2421 Declare in arch/aarch64-insn.h.
2422 (decode_bcond): Rename to ...
2423 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2424 Declare in arch/aarch64-insn.h.
2425 (decode_br): Rename to ...
2426 (aarch64_decode_br): ... this.
2427 (decode_cb): Rename to ...
2428 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2429 Declare in arch/aarch64-insn.h.
2430 (decode_eret): Rename to ...
2431 (aarch64_decode_eret): ... this.
2432 (decode_movz): Rename to ...
2433 (aarch64_decode_movz): ... this.
2434 (decode_orr_shifted_register_x): Rename to ...
2435 (aarch64_decode_orr_shifted_register_x): ... this.
2436 (decode_ret): Rename to ...
2437 (aarch64_decode_ret): ... this.
2438 (decode_stp_offset): Rename to ...
2439 (aarch64_decode_stp_offset): ... this.
2440 (decode_stp_offset_wb): Rename to ...
2441 (aarch64_decode_stp_offset_wb): ... this.
2442 (decode_stur): Rename to ...
2443 (aarch64_decode_stur): ... this.
2444 (decode_tb): Rename to ...
2445 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2446 Declare in arch/aarch64-insn.h.
2447 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2449 2015-09-20 Doug Evans <xdje42@gmail.com>
2451 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2453 2015-09-20 Doug Evans <xdje42@gmail.com>
2455 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2456 variable name that collides with a parameter.
2458 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2460 * dwarf2loc.c (locexpr_get_frame_base): Renames
2461 block_op_get_frame_base.
2462 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2463 block_op_get_frame_base by reference to locexpr_get_frame_base.
2464 (loclist_get_frame_base): New function, near identical copy of
2465 locexpr_get_frame_base.
2466 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2467 block_op_get_frame_base by reference to loclist_get_frame_base.
2469 2015-09-19 Doug Evans <xdje42@gmail.com>
2471 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2472 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2474 2015-09-18 Doug Evans <xdje42@gmail.com>
2476 * linux-thread-db.c (record_thread): Return the created thread.
2477 (thread_from_lwp): Likewise.
2478 (thread_db_get_thread_local_address): Update.
2480 2015-09-18 Doug Evans <xdje42@gmail.com>
2482 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2483 move only member demangled_name up. All uses updated.
2485 2015-09-18 Doug Evans <xdje42@gmail.com>
2487 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2488 kind of minimal symbol in the error message.
2489 * objfiles.c (objfile_flavour_name): New function.
2490 * objfiles.h (objfile_flavour_name): Declare.
2492 2015-09-18 Yao Qi <yao.qi@linaro.org>
2494 * nat/aarch64-linux.c: Include elf/common.h,
2495 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2496 (aarch64_ps_get_thread_area): New function.
2497 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2498 (aarch64_ps_get_thread_area): Declare.
2499 * aarch64-linux-nat.c (ps_get_thread_area): Call
2500 aarch64_ps_get_thread_area.
2502 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2504 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2506 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2508 * NEWS: Announce new scheduler-locking mode.
2509 * infrun.c (schedlock_replay): New.
2510 (scheduler_enums): Add schedlock_replay.
2511 (scheduler_mode): Change default to schedlock_replay.
2512 (user_visible_resume_ptid): Handle schedlock_replay.
2513 (clear_proceed_status_thread): Stop replaying if resumed thread is
2515 (schedlock_applies): Handle schedlock_replay.
2516 (_initialize_infrun): Document new scheduler-locking mode.
2517 * record-btrace.c (record_btrace_resume): Remove code to stop other
2518 threads when not replaying the resumed thread.
2520 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2522 * record-btrace.c ((record_btrace_will_replay): New.
2523 (init_record_btrace_ops): Initialize to_record_will_replay.
2524 * record-full.c ((record_full_will_replay): New.
2525 (init_record_full_ops): Initialize to_record_will_replay.
2526 * target-delegates.c: Regenerated.
2527 * target.c (target_record_will_replay): New.
2528 * target.h (struct target_ops) <to_record_will_replay>: New.
2529 (target_record_will_replay): New.
2531 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2533 * record-btrace.c (record_btrace_resume): Call
2534 target_record_stop_replaying.
2535 (record_btrace_stop_replaying_all): New.
2536 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2537 * record-full.c (record_full_stop_replaying): New.
2538 (init_record_full_ops ): Initialize to_record_stop_replaying.
2539 * target-delegates.c: Regenerated.
2540 * target.c (target_record_stop_replaying): New.
2541 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2542 (target_record_stop_replaying): New.
2544 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2546 * record-btrace.c (record_btrace_xfer_partial)
2547 (record_btrace_store_registers, record_btrace_prepare_to_store):
2548 Call record_btrace_is_replaying with inferior_ptid instead of
2550 (record_btrace_store_registers): Change error message.
2552 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2554 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2555 Update users to pass minus_one_ptid.
2556 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2557 * record.c (cmd_record_delete): Pass inferior_ptid to
2558 target_record_is_replaying.
2559 * target-delegates.c: Regenerated.
2560 * target.c (target_record_is_replaying): Add ptid argument.
2561 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2563 (target_record_is_replaying): Add ptid argument.
2565 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2567 * record-btrace.c (record_btrace_open): Remove non_stop check.
2568 * NEWS: Announce that record btrace supports non-stop mode.
2570 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2572 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2573 in the TARKET_WAITKIND_NO_HISTORY case.
2575 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2577 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2578 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2580 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2582 * record-btrace.c (get_thread_current_frame): New.
2583 (record_btrace_start_replaying): Call get_thread_current_frame.
2585 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2587 * record-btrace.c (record_btrace_resume_thread): A move request
2588 overwrites a previous move request.
2589 (record_btrace_find_resume_thread): Removed.
2590 (record_btrace_resume): Resume all requested threads.
2592 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2594 * record-btrace.c: Include vec.h.
2595 (record_btrace_find_thread_to_move): Removed.
2596 (btrace_step_no_resumed, btrace_step_again)
2597 (record_btrace_stop_replaying_at_end): New.
2598 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2599 (record_btrace_single_step_forward): Remove calls to
2600 record_btrace_stop_replaying.
2601 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2602 BTHR_RCONT. Keep threads at the end of their history moving.
2603 (record_btrace_wait): Call record_btrace_step_thread for all threads
2604 until one reports an event. Call record_btrace_stop_replaying_at_end
2605 for the eventing thread.
2607 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2609 * record-btrace.c (record_btrace_single_step_forward): Return
2610 NO_HISTORY if a step brings us to the end of the execution history.
2612 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2614 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2616 (record_btrace_single_step_forward): ... here and
2617 (record_btrace_single_step_backward): ... here.
2619 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2621 * record-btrace.c (btrace_step_spurious)
2622 (record_btrace_single_step_forward)
2623 (record_btrace_single_step_backward): New.
2624 (record_btrace_step_thread): Call record_btrace_single_step_forward
2625 and record_btrace_single_step_backward.
2627 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2629 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2630 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2632 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2634 * record-btrace.c (btrace_thread_flag_to_str)
2635 (record_btrace_cancel_resume): New.
2636 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2637 (record_btrace_resume): Print execution direction.
2638 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2639 (record_btrace_wait): Call record_btrace_cancel_resume.
2641 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2643 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2644 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2645 (record_btrace_find_thread_to_move): Also accept threads that have
2647 (btrace_step_stopped_on_request, record_btrace_stop): New.
2648 (record_btrace_step_thread): Support BTHR_STOP.
2649 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2650 (init_record_btrace_ops): Initialize to_stop.
2652 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2654 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2655 target_is_non_stop_p ().
2657 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2659 * ada-typeprint.c (print_array_type): Do not describe arrays as
2660 packed when they embed dynamic elements.
2662 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2664 * symtab.h (address_class): Document that TLS variables
2665 are handled by LOC_UNRESOLVED.
2666 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2667 * printcmd.c (address_info): Don't relocate TLS variables.
2669 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2671 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2672 (decode_adrp): Likewise.
2673 (decode_b): Likewise.
2674 (decode_bcond): Likewise.
2675 (decode_br): Likewise.
2676 (decode_cb): Likewise.
2677 (decode_eret): Likewise.
2678 (decode_movz): Likewise.
2679 (decode_orr_shifted_register_x): Likewise.
2680 (decode_ret): Likewise.
2681 (decode_stp_offset): Likewise.
2682 (decode_stp_offset_wb): Likewise.
2683 (decode_stur): Likewise.
2684 (decode_tb): Likewise.
2685 (aarch64_analyze_prologue): Likewise.
2686 (pass_in_x): Likewise.
2687 (pass_in_v): Likewise.
2688 (pass_on_stack): Likewise.
2689 (aarch64_push_dummy_call): Likewise.
2690 (aarch64_extract_return_value): Likewise.
2691 (aarch64_store_return_value): Likewise.
2692 (aarch64_return_value): Likewise.
2693 (aarch64_record_asimd_load_store): Likewise.
2694 (aarch64_record_load_store): Likewise.
2695 (aarch64_record_data_proc_simd_fp): Likewise.
2697 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2699 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2700 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2701 (ppc64_skip_trampoline_code_1): ... here.
2702 (ppc64_skip_trampoline_code): New wrapper function.
2703 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2705 2015-09-15 Yao Qi <yao.qi@linaro.org>
2707 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2709 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2710 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2711 if target_can_do_single_step returns 1.
2712 * remote.c (struct vCont_action_support) <s, S>: New fields.
2713 (PACKET_vContSupported): New enum.
2714 (remote_protocol_features): New element for vContSupported.
2715 (remote_query_supported): Append "vContSupported+".
2716 (remote_vcont_probe): Remove support_s and support_S, use
2717 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2718 vCont packet if c and C actions are not supported.
2719 (remote_can_do_single_step): New function.
2720 (init_remote_ops): Install it to to_can_do_single_step.
2721 (_initialize_remote): Call add_packet_config_cmd.
2722 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2723 (target_can_do_single_step): New macro.
2724 * target-delegates.c: Re-generated.
2726 2015-09-15 Yao Qi <yao.qi@linaro.org>
2728 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2729 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2730 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2732 (aarch64_siginfo_from_compat_siginfo): New function.
2733 * nat/aarch64-linux.h: Include signal.h.
2734 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2735 (compat_timer_t, compat_clock_t): Likewise.
2736 (struct compat_timeval): New.
2737 (union compat_sigval): New.
2738 (struct compat_siginfo): New.
2739 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2740 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2741 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2742 (cpt_si_band, cpt_si_fd): Likewise.
2744 2015-09-14 Pedro Alves <palves@redhat.com>
2746 * infrun.c (current_stop_id): New global.
2747 (get_stop_id, new_stop_id): New functions.
2748 (fetch_inferior_event): Handle normal_stop proceeding the target.
2749 (struct stop_context): New.
2750 (save_stop_context, release_stop_context_cleanup)
2751 (stop_context_changed): New functions.
2752 (normal_stop): Return true if the hook-stop changes the stop
2754 * infrun.h (get_stop_id): Declare.
2755 (normal_stop): Now returns int. Add documentation.
2757 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2759 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2760 comment. Handle packed arrays.
2762 2015-09-14 Pedro Alves <palves@redhat.com>
2764 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2765 mention of maint set/show target-non-stop.
2767 2015-09-11 Don Breazeal <donb@codesourcery.com>
2769 * NEWS: Announce new remote packets for the exec-events
2770 feature and the exec-events feature and associated commands.
2772 2015-09-11 Don Breazeal <donb@codesourcery.com>
2774 * remote.c (remote_exec_event_p): New function.
2775 (remote_insert_exec_catchpoint): New function.
2776 (remote_remove_exec_catchpoint): New function.
2777 (init_extended_remote_ops): Initialize extended_remote_ops
2778 members to_insert_exec_catchpoint and
2779 to_remove_exec_catchpoint.
2781 2015-09-11 Don Breazeal <donb@codesourcery.com>
2782 Luis Machado <lgustavo@codesourcery.com>
2784 * infrun.c (follow_exec): Use process-style ptid for
2785 exec message. Call add_inferior_with_spaces and
2787 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2788 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2789 * remote.c (remote_pspace_data): New static variable.
2790 (remote_pspace_data_cleanup): New function.
2791 (get_remote_exec_file): New function.
2792 (set_remote_exec_file_1): New function.
2793 (set_remote_exec_file): New function.
2794 (show_remote_exec_file): New function.
2795 (remote_exec_file): Delete static variable.
2796 (anonymous enum) <PACKET_exec_event_feature>: New
2797 enumeration constant.
2798 (remote_protocol_features): Add entry for exec-events feature.
2799 (remote_query_supported): Add client side of qSupported query
2800 for exec-events feature.
2801 (remote_follow_exec): New function.
2802 (remote_parse_stop_reply): Handle 'exec' stop reason.
2803 (extended_remote_run, extended_remote_create_inferior): Call
2804 get_remote_exec_file and set_remote_exec_file_1.
2805 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2807 (_initialize_remote): Call
2808 register_program_space_data_with_cleanup. Call
2809 add_packet_config_cmd for remote exec-events feature.
2810 Modify call to add_setshow_string_noescape_cmd for exec-file
2811 to use new functions set_remote_exec_file and
2812 show_remote_exec_file.
2813 * target-debug.h, target-delegates.c: Regenerated.
2814 * target.c (target_follow_exec): New function.
2815 * target.h (struct target_ops) <to_follow_exec>: New member.
2816 (target_follow_exec): Declare new function.
2818 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2820 * aarch64-tdep.c (decode_cb): Move up comment describing the
2822 (decode_tb): Fix a typo in comment above the function. Move up
2823 comment describing the encoding.
2825 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2827 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2829 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2832 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2833 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2835 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2837 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2840 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2842 * ada-lang.c (ada_search_struct_field): Constify parameters
2844 (xget_renaming_scope): Likewise.
2845 (ada_is_redundant_range_encoding): Likewise.
2846 (scan_discrim_bound): Likewise.
2847 (to_fixed_range_type): Likewise.
2849 2015-09-10 Yao Qi <yao.qi@linaro.org>
2851 * breakpoint.c (download_tracepoint_locations): New local
2852 can_download_tracepoint. Check the result of
2853 target_can_download_tracepoint and save it in
2854 can_download_tracepoint if there are tracepoints to download.
2855 * linux-nat.h (enum tribool): Move it to ...
2856 * common/common-types.h: ... here.
2858 2015-09-09 Pedro Alves <palves@redhat.com>
2860 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2861 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2863 2015-09-09 Pedro Alves <palves@redhat.com>
2865 * continuations.c (add_continuation, restore_thread_cleanup)
2866 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2867 (do_all_continuations_thread, do_all_continuations)
2868 (discard_all_continuations_thread_callback)
2869 (discard_all_continuations_thread, discard_all_continuations)
2870 (add_intermediate_continuation)
2871 (do_all_intermediate_continuations_thread_callback)
2872 (do_all_intermediate_continuations_thread)
2873 (do_all_intermediate_continuations)
2874 (discard_all_intermediate_continuations_thread_callback)
2875 (discard_all_intermediate_continuations_thread)
2876 (discard_all_intermediate_continuations): Delete.
2877 * continuations.h (add_continuation, do_all_continuations)
2878 (do_all_continuations_thread, discard_all_continuations)
2879 (discard_all_continuations_thread, add_intermediate_continuation)
2880 (do_all_intermediate_continuations)
2881 (do_all_intermediate_continuations_thread)
2882 (discard_all_intermediate_continuations)
2883 (discard_all_intermediate_continuations_thread): Delete
2885 * event-top.c (stdin_event_handler): Delete references to
2887 * gdbthread.h (struct thread_info): Delete continuations and
2888 intermediate_continuations fields.
2889 * inf-loop.c (inferior_event_handler): Remove references to
2891 * infrun.c (infrun_thread_stop_requested_callback): Remove
2892 references to continuations.
2893 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2894 * thread.c: Don't include "continuations.h".
2895 (clear_thread_inferior_resources): Remove references to
2898 2015-09-09 Pedro Alves <palves@redhat.com>
2900 * infcall.c (struct dummy_frame_context_saver): Delete.
2901 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2902 (dummy_frame_context_saver_drop)
2903 (dummy_frame_context_saver_cleanup)
2904 (dummy_frame_context_saver_get_regs)
2905 (dummy_frame_context_saver_setup): Delete.
2906 * infcall.h (dummy_frame_context_saver_drop)
2907 (dummy_frame_context_saver_cleanup)
2908 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2910 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2911 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2912 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2914 2015-09-09 Pedro Alves <palves@redhat.com>
2916 * breakpoint.c: Include "thread-fsm.h".
2917 (struct until_break_command_continuation_args): Delete.
2918 (struct until_break_fsm): New.
2919 (until_break_fsm_ops): New global.
2920 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2921 (until_break_command_continuation): Delete.
2922 (until_break_fsm_clean_up): New function.
2923 (until_break_fsm_async_reply_reason): New function.
2924 (until_break_command): Adjust to create an until_break_fsm instead
2926 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2928 * infcmd.c (struct until_next_fsm): New.
2929 (until_next_fsm_ops): New global.
2930 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2931 (until_next_continuation): Delete.
2932 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2934 (until_next_command): Adjust to create a new until_next_fsm
2935 instead of a continuation.
2937 2015-09-09 Pedro Alves <palves@redhat.com>
2939 * infcall.c: Include thread_fsm.h.
2940 (struct call_return_meta_info): New.
2941 (get_call_return_value): New function, factored out from
2942 call_function_by_hand_dummy.
2943 (struct call_thread_fsm): New.
2944 (call_thread_fsm_ops): New global.
2945 (new_call_thread_fsm, call_thread_fsm_should_stop)
2946 (call_thread_fsm_should_notify_stop): New functions.
2947 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2949 (call_function_by_hand_dummy): Create a new call_thread_fsm
2950 instance, associate it with the thread, and wait for the FSM to
2951 finish. If finished successfully, fetch the function's result
2952 value out of the FSM.
2953 * infrun.c (fetch_inferior_event): If the FSM says the stop
2954 shouldn't be notified, don't call normal_stop.
2955 (maybe_remove_breakpoints): New function, factored out from ...
2956 (normal_stop): ... here. Simplify.
2957 * infrun.h (maybe_remove_breakpoints): Declare.
2958 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2959 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2960 (thread_fsm_should_notify_stop): Declare.
2962 2015-09-09 Pedro Alves <palves@redhat.com>
2964 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2965 * breakpoint.c (handle_jit_event): Print debug output.
2966 (bpstat_what): Split event callback handling to ...
2967 (bpstat_run_callbacks): ... this new function.
2968 (momentary_bkpt_print_it): No longer handle bp_finish here.
2969 * breakpoint.h (bpstat_run_callbacks): Declare.
2970 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2971 <thread_fsm>: New field.
2972 (thread_cancel_execution_command): Declare.
2973 * infcmd.c: Include thread-fsm.h.
2974 (struct step_command_fsm): New.
2975 (step_command_fsm_ops): New global.
2976 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2977 (step_1): Adjust to use step_command_fsm_prepare and
2979 (struct step_1_continuation_args): Delete.
2980 (step_1_continuation): Delete.
2981 (step_command_fsm_should_stop): New function.
2982 (step_once): Delete.
2983 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2984 (prepare_one_step): New function, based on step_once.
2985 (until_next_command): Remove step_multi reference.
2986 (struct return_value_info): New.
2987 (print_return_value): Rename to ...
2988 (print_return_value_1): ... this. New struct return_value_info
2990 (print_return_value): Reimplement as wrapper around
2991 print_return_value_1.
2992 (struct finish_command_fsm): New.
2993 (finish_command_continuation): Delete.
2994 (finish_command_fsm_ops): New global.
2995 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2997 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2999 (finish_command_continuation_free_arg): Delete.
3000 (finish_command_fsm_async_reply_reason): New.
3001 (finish_backward, finish_forward): Change symbol parameter to a
3002 finish_command_fsm. Adjust.
3003 (finish_command): Create a finish_command_fsm. Adjust.
3004 * infrun.c: Include "thread-fsm.h".
3005 (clear_proceed_status_thread): Delete the thread's FSM.
3006 (infrun_thread_stop_requested_callback): Cancel the thread's
3008 (clean_up_just_stopped_threads_fsms): New function.
3009 (fetch_inferior_event): Handle the event_thread's should_stop
3010 method saying the command isn't done yet.
3011 (process_event_stop_test): Run breakpoint callbacks here.
3012 (print_stop_event): Rename to ...
3013 (print_stop_location): ... this.
3014 (restore_current_uiout_cleanup): New function.
3015 (print_stop_event): Reimplement.
3016 (normal_stop): No longer notify the end_stepping_range observers
3017 here handle "step N" nor "finish" here. No longer call
3018 print_stop_event here.
3019 * infrun.h (struct return_value_info): Forward declare.
3020 (print_return_value): Declare.
3021 (print_stop_event): Change prototype.
3022 * thread-fsm.c: New file.
3023 * thread-fsm.h: New file.
3024 * thread.c: Include "thread-fsm.h".
3025 (thread_cancel_execution_command): New function.
3026 (clear_thread_inferior_resources): Call it.
3027 * cli/cli-interp.c (cli_on_normal_stop): New function.
3028 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3030 * mi/mi-interp.c: Include "thread-fsm.h".
3031 (restore_current_uiout_cleanup): Delete.
3032 (mi_on_normal_stop): If the thread has an FSM associated, and it
3033 finished, ask it for the async-reply-reason to print. Always call
3034 print_stop_event here, regardless of the top-level interpreter.
3035 Check bpstat_what to tell whether an asynchronous breakpoint hit
3037 * tui/tui-interp.c (tui_on_normal_stop): New function.
3038 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3040 2015-09-09 Pedro Alves <palves@redhat.com>
3042 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3043 check whether the target can async.
3044 * inf-loop.c (inferior_event_handler): Only call target_async if
3045 the target can async.
3046 * infcall.c: Include top.h and interps.h.
3047 (run_inferior_call): For the interpreter to sync mode while
3048 running the infcall. Call wait_sync_command_done instead of
3049 wait_for_inferior plus normal_stop.
3050 * infcmd.c (prepare_execution_command): Don't check whether the
3051 target can async when running in the foreground.
3052 (step_1): Delete synchronous case handling.
3053 (step_once): Always install a continuation, even in sync mode.
3054 (until_next_command, finish_forward): Don't check whether the
3056 (attach_command_post_wait, notice_new_inferior): Always install a
3057 continuation, even in sync mode.
3058 * infrun.c (mark_infrun_async_event_handler): New function.
3059 (proceed): In sync mode, mark infrun's event source instead of
3060 waiting for events here.
3061 (fetch_inferior_event): If the target can't async, do a blocking
3063 (prepare_to_wait): In sync mode, mark infrun's event source.
3064 (infrun_async_inferior_event_handler): No longer bail out if the
3066 * infrun.h (mark_infrun_async_event_handler): New declaration.
3067 * linux-nat.c (linux_nat_wait_1): Remove calls to
3068 set_sigint_trap/clear_sigint_trap.
3069 (linux_nat_terminal_inferior): No longer check whether the target
3071 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3073 (mi_execute_command_input_handler): No longer check whether the
3074 target is async. Update and simplify comment.
3075 * target.c (default_target_wait): New function.
3076 * target.h (struct target_ops) <to_wait>: Now defaults to
3077 default_target_wait.
3078 (default_target_wait): Declare.
3079 * top.c (wait_sync_command_done): New function, factored out from
3081 (maybe_wait_sync_command_done): ... this.
3082 * top.h (wait_sync_command_done): Declare.
3083 * target-delegates.c: Regenerate.
3085 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3087 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3088 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3089 Remove include of sys/utsname.h.
3090 (linux_determine_kernel_ptr_bits): Remove.
3091 (linux_determine_kernel_start): New.
3092 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3094 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3095 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3097 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3100 2015-09-07 Pedro Alves <palves@redhat.com>
3102 * guile/guile-internal.h (as_a_scm_t_subr): New.
3103 * guile/guile.c (misc_guile_functions): Use it.
3104 * guile/scm-arch.c (arch_functions): Use it.
3105 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3107 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3108 * guile/scm-cmd.c (command_functions): Use it.
3109 * guile/scm-disasm.c (disasm_functions): Use it.
3110 * guile/scm-exception.c (exception_functions)
3111 (private_exception_functions): Use it.
3112 * guile/scm-frame.c (frame_functions)
3113 * guile/scm-gsmob.c (gsmob_functions): Use it.
3114 * guile/scm-iterator.c (iterator_functions): Use it.
3115 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3116 * guile/scm-math.c (math_functions): Use it.
3117 * guile/scm-objfile.c (objfile_functions): Use it.
3118 * guile/scm-param.c (parameter_functions): Use it.
3119 * guile/scm-ports.c (port_functions, private_port_functions): Use
3121 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3122 * guile/scm-progspace.c (pspace_functions): Use it.
3123 * guile/scm-string.c (string_functions): Use it.
3124 * guile/scm-symbol.c (symbol_functions): Use it.
3125 * guile/scm-symtab.c (symtab_functions): Use it.
3126 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3128 * guile/scm-value.c (value_functions): Use it.
3130 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3132 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3133 (tui_next_win): Likewise.
3134 (tui_prev_win): Likewise.
3135 (tui_partial_win_by_name): Likewise.
3136 (tui_init_generic_part): Likewise.
3137 (init_content_element): Likewise.
3138 (tui_del_window): Likewise.
3139 (tui_free_window): Likewise.
3140 (tui_del_data_windows): Likewise.
3141 (tui_free_data_content): Likewise.
3142 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3143 * tui/tui-regs.c (tui_show_register_group): Likewise.
3144 * tui/tui-win.c (tui_resize_all): Likewise.
3145 (tui_set_focus): Likewise.
3146 (tui_set_win_height): Likewise.
3147 (make_invisible_and_set_new_height): Likewise.
3148 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3149 * tui/tui-wingeneral.c (make_visible): Likewise.
3151 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3153 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3155 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3157 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3159 * dbxread.c (dbx_end_psymtab): Likewise.
3160 * gnu-nat.c (gnu_write_inferior): Likewise.
3161 * mdebugread.c (cross_ref): Likewise.
3162 * p-valprint.c (pascal_val_print): Likewise.
3163 * xcoffread.c (xcoff_end_psymtab): Likewise.
3165 2015-09-04 Yao Qi <yao.qi@linaro.org>
3167 * NEWS: Mention the aarch64 multi-arch debugging support.
3169 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3171 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3172 type instead of a TYPE_CODE_INT one for the string_char_type
3173 and the ada_primitive_type_char types.
3175 2015-09-03 Yao Qi <yao.qi@linaro.org>
3177 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3178 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3179 aarch64_linux_region_ok_for_watchpoint.
3180 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3182 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3185 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3187 * gdb_obstack.h (obstack_strdup): Declare.
3188 * gdb_obstack.c (obstack_strdup): Define.
3189 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3190 * gdbarch.c: Regenerate.
3191 * gdbarch.h: Regenerate.
3192 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3194 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3196 * gdbtypes.c (copy_type_recursive): Update documentation.
3198 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3200 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3203 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3205 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3207 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3209 * solib-svr4.c (solib_event_probe_action): Call
3210 get_probe_argument_count using TRY...CATCH.
3211 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3213 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3215 * probe.h (struct probe_ops) <get_probe_argument_count,
3216 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3217 the comment that the function can throw an exception.
3218 (get_probe_argument_count): Likewise.
3219 (evaluate_probe_argument): Likewise.
3220 * stap-probe.c (stap_get_opcode): Call error instead of
3222 (stap_get_expected_argument_type): Likewise. Add argument
3223 'probe'. Improve error message by mentioning the probe's name.
3224 (stap_parse_probe_arguments): Adjust call to
3225 stap_get_expected_argument_type.
3226 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3227 not zero. Call internal_error if GDB requests an argument but the
3228 probe has no arguments.
3230 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3232 * ada-lang.c (ada_resolve_function): Do not ask the user what
3233 match to use when in completion mode.
3235 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3237 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3240 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3242 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3243 call_abi using XSHAL_ABI macro.
3245 2015-08-29 Doug Evans <xdje42@gmail.com>
3247 * symtab.h (struct symbol): Tweak comment.
3249 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3251 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3252 gdbarch obstack instead of on the heap. Update commentary
3255 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3259 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3261 * NEWS: Update entry about non-8-bits addressable memory.
3263 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3266 2014-11-06 Doug Evans <xdje42@gmail.com>
3267 * solib.c (solib_global_lookup): Fetch arch from objfile,
3270 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3272 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3273 attempt to relocate a TLS variable offset.
3275 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3277 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3278 registered yet. Set inferior_ptid while calling target_read_memory.
3280 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3282 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3283 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3284 * linux-nat.c (check_stopped_by_breakpoint): Use
3285 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3287 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3289 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3290 thread was not yet discovered, use thread_from_lwp instead of
3291 calling thread_db_find_new_threads_1.
3293 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3295 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3298 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3300 * NEWS: Document support for non-8-bits addressable memory.
3302 2015-08-27 Pedro Alves <palves@redhat.com>
3304 * configure.ac: Remove AC_TYPE_SIGNAL call.
3305 * configure, config.in: Regenerate.
3307 2015-08-27 Pedro Alves <palves@redhat.com>
3309 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3310 * extension-priv.h: Include signal.h.
3311 (struct signal_handler) <handler>: Change type to sighandler_t.
3312 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3313 * inflow.c (sigint_ours, sigquit_ours): Change type to
3315 (child_terminal_inferior): Remove casts.
3316 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3317 (osig): Change type to sighandler_t.
3318 * nto-procfs.c (ofunc): Change type to sighandler_t.
3319 (procfs_wait): Remove casts.
3320 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3321 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3322 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3324 2015-08-27 Pedro Alves <palves@redhat.com>
3326 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3327 * gnulib/aclocal.m4: Renegerate.
3328 * gnulib/config.in: Renegerate.
3329 * gnulib/configure: Renegerate.
3330 * gnulib/import/Makefile.am: Update.
3331 * gnulib/import/Makefile.in: Regenerate.
3332 * gnulib/import/m4/gnulib-cache.m4: Update.
3333 * gnulib/import/m4/gnulib-comp.m4: Update.
3334 * gnulib/import/m4/signal_h.m4: New file.
3335 * gnulib/import/signal.in.h: New file.
3337 2015-08-27 Pedro Alves <palves@redhat.com>
3339 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3340 (MIN_MEMORY_PACKET_SIZE): New.
3341 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3342 (get_memory_packet_size): Adjust. No longer limit the max packet
3344 (set_memory_packet_size): Adjust, and remove dead code.
3345 (remote_check_symbols): Use xmalloc and a cleanup instead of
3347 (remote_packet_size): No longer cap the packet size.
3348 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3350 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3352 * compile/compile.c (compile_to_object): Mention language in
3355 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3357 * target.c (target_pre_inferior): Unset attach_flag.
3359 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3361 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3362 * gdbarch.c: Re-generate.
3364 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3366 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3367 function with the XNEW-family equivalent.
3368 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3369 * ada-exp.y (write_ambiguous_var): Likewise.
3370 * ada-lang.c (resolve_subexp): Likewise.
3371 (user_select_syms): Likewise.
3372 (assign_aggregate): Likewise.
3373 (ada_evaluate_subexp): Likewise.
3374 (cache_symbol): Likewise.
3375 * addrmap.c (allocate_key): Likewise.
3376 (addrmap_create_mutable): Likewise.
3377 * aix-thread.c (sync_threadlists): Likewise.
3378 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3379 (alpha_gdbarch_init): Likewise.
3380 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3381 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3382 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3383 * arm-tdep.c (push_stack_item): Likewise.
3384 (arm_displaced_step_copy_insn): Likewise.
3385 (arm_gdbarch_init): Likewise.
3386 (_initialize_arm_tdep): Likewise.
3387 * avr-tdep.c (push_stack_item): Likewise.
3388 * ax-general.c (new_agent_expr): Likewise.
3389 * block.c (block_initialize_namespace): Likewise.
3390 * breakpoint.c (alloc_counted_command_line): Likewise.
3391 (update_dprintf_command_list): Likewise.
3392 (parse_breakpoint_sals): Likewise.
3393 (decode_static_tracepoint_spec): Likewise.
3394 (until_break_command): Likewise.
3395 (clear_command): Likewise.
3396 (update_global_location_list): Likewise.
3397 (get_breakpoint_objfile_data) Likewise.
3398 * btrace.c (ftrace_new_function): Likewise.
3399 (btrace_set_insn_history): Likewise.
3400 (btrace_set_call_history): Likewise.
3401 * buildsym.c (add_symbol_to_list): Likewise.
3402 (record_pending_block): Likewise.
3403 (start_subfile): Likewise.
3404 (start_buildsym_compunit): Likewise.
3405 (push_subfile): Likewise.
3406 (end_symtab_get_static_block): Likewise.
3407 (buildsym_init): Likewise.
3408 * cli/cli-cmds.c (source_command): Likewise.
3409 * cli/cli-decode.c (add_cmd): Likewise.
3410 * cli/cli-script.c (build_command_line): Likewise.
3411 (setup_user_args): Likewise.
3412 (realloc_body_list): Likewise.
3413 (process_next_line): Likewise.
3414 (copy_command_lines): Likewise.
3415 * cli/cli-setshow.c (do_set_command): Likewise.
3416 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3417 * coffread.c (coff_locate_sections): Likewise.
3418 (coff_symtab_read): Likewise.
3419 (coff_read_struct_type): Likewise.
3420 * common/cleanups.c (make_my_cleanup2): Likewise.
3421 * common/common-exceptions.c (throw_it): Likewise.
3422 * common/filestuff.c (make_cleanup_close): Likewise.
3423 * common/format.c (parse_format_string): Likewise.
3424 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3425 * compile/compile-object-load.c (munmap_list_add): Likewise.
3426 (compile_object_load): Likewise.
3427 * compile/compile-object-run.c (compile_object_run): Likewise.
3428 * compile/compile.c (append_args): Likewise.
3429 * corefile.c (specify_exec_file_hook): Likewise.
3430 * cp-support.c (make_symbol_overload_list): Likewise.
3431 * cris-tdep.c (push_stack_item): Likewise.
3432 (cris_gdbarch_init): Likewise.
3433 * ctf.c (ctf_trace_file_writer_new): Likewise.
3434 * dbxread.c (init_header_files): Likewise.
3435 (add_new_header_file): Likewise.
3436 (init_bincl_list): Likewise.
3437 (dbx_end_psymtab): Likewise.
3438 (start_psymtab): Likewise.
3439 (dbx_end_psymtab): Likewise.
3440 * dcache.c (dcache_init): Likewise.
3441 * dictionary.c (dict_create_hashed): Likewise.
3442 (dict_create_hashed_expandable): Likewise.
3443 (dict_create_linear): Likewise.
3444 (dict_create_linear_expandable): Likewise.
3445 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3446 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3447 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3448 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3449 (decode_frame_entry_1): Likewise.
3450 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3451 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3452 * dwarf2read.c (dwarf2_has_info): Likewise.
3453 (create_signatured_type_table_from_index): Likewise.
3454 (dwarf2_read_index): Likewise.
3455 (dw2_get_file_names_reader): Likewise.
3456 (create_all_type_units): Likewise.
3457 (read_cutu_die_from_dwo): Likewise.
3458 (init_tu_and_read_dwo_dies): Likewise.
3459 (init_cutu_and_read_dies): Likewise.
3460 (create_all_comp_units): Likewise.
3461 (queue_comp_unit): Likewise.
3462 (inherit_abstract_dies): Likewise.
3463 (read_call_site_scope): Likewise.
3464 (dwarf2_add_field): Likewise.
3465 (dwarf2_add_typedef): Likewise.
3466 (dwarf2_add_member_fn): Likewise.
3467 (attr_to_dynamic_prop): Likewise.
3468 (abbrev_table_alloc_abbrev): Likewise.
3469 (abbrev_table_read_table): Likewise.
3470 (add_include_dir): Likewise.
3471 (add_file_name): Likewise.
3472 (dwarf_decode_line_header): Likewise.
3473 (dwarf2_const_value_attr): Likewise.
3474 (dwarf_alloc_block): Likewise.
3475 (parse_macro_definition): Likewise.
3476 (set_die_type): Likewise.
3477 (write_psymtabs_to_index): Likewise.
3478 (create_cus_from_index): Likewise.
3479 (dwarf2_create_include_psymtab): Likewise.
3480 (process_psymtab_comp_unit_reader): Likewise.
3481 (build_type_psymtab_dependencies): Likewise.
3482 (read_comp_units_from_section): Likewise.
3483 (compute_compunit_symtab_includes): Likewise.
3484 (create_dwo_unit_in_dwp_v1): Likewise.
3485 (create_dwo_unit_in_dwp_v2): Likewise.
3486 (read_func_scope): Likewise.
3487 (process_structure_scope): Likewise.
3488 (mark_common_block_symbol_computed): Likewise.
3489 (load_partial_dies): Likewise.
3490 (dwarf2_symbol_mark_computed): Likewise.
3491 * elfread.c (elf_symfile_segments): Likewise.
3492 (elf_read_minimal_symbols): Likewise.
3493 * environ.c (make_environ): Likewise.
3494 * eval.c (evaluate_subexp_standard): Likewise.
3495 * event-loop.c (create_file_handler): Likewise.
3496 (create_async_signal_handler): Likewise.
3497 (create_async_event_handler): Likewise.
3498 (create_timer): Likewise.
3499 * exec.c (build_section_table): Likewise.
3500 * fbsd-nat.c (fbsd_remember_child): Likewise.
3501 * fork-child.c (fork_inferior): Likewise.
3502 * frv-tdep.c (new_variant): Likewise.
3503 * gdbarch.sh (gdbarch_alloc): Likewise.
3504 (append_name): Likewise.
3505 * gdbtypes.c (rank_function): Likewise.
3506 (copy_type_recursive): Likewise.
3507 (add_dyn_prop): Likewise.
3508 * gnu-nat.c (make_proc): Likewise.
3509 (make_inf): Likewise.
3510 (gnu_write_inferior): Likewise.
3511 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3512 (build_std_type_info_type): Likewise.
3513 * guile/scm-param.c (compute_enum_list): Likewise.
3514 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3515 * guile/scm-value.c (gdbscm_value_call): Likewise.
3516 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3517 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3518 (read_unwind_info): Likewise.
3519 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3520 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3521 (call_function_by_hand_dummy): Likewise.
3522 * infcmd.c (step_once): Likewise.
3523 (finish_forward): Likewise.
3524 (attach_command): Likewise.
3525 (notice_new_inferior): Likewise.
3526 * inferior.c (add_inferior_silent): Likewise.
3527 * infrun.c (add_displaced_stepping_state): Likewise.
3528 (save_infcall_control_state): Likewise.
3529 (save_inferior_ptid): Likewise.
3530 (_initialize_infrun): Likewise.
3531 * jit.c (bfd_open_from_target_memory): Likewise.
3532 (jit_gdbarch_data_init): Likewise.
3533 * language.c (add_language): Likewise.
3534 * linespec.c (decode_line_2): Likewise.
3535 * linux-nat.c (add_to_pid_list): Likewise.
3536 (add_initial_lwp): Likewise.
3537 * linux-thread-db.c (add_thread_db_info): Likewise.
3538 (record_thread): Likewise.
3539 (info_auto_load_libthread_db): Likewise.
3540 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3542 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3543 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3544 * macrocmd.c (macro_define_command): Likewise.
3545 * macroexp.c (gather_arguments): Likewise.
3546 * macroscope.c (sal_macro_scope): Likewise.
3547 * macrotab.c (new_macro_table): Likewise.
3548 * mdebugread.c (push_parse_stack): Likewise.
3549 (parse_partial_symbols): Likewise.
3550 (parse_symbol): Likewise.
3551 (psymtab_to_symtab_1): Likewise.
3552 (new_block): Likewise.
3553 (new_psymtab): Likewise.
3554 (mdebug_build_psymtabs): Likewise.
3555 (add_pending): Likewise.
3556 (elfmdebug_build_psymtabs): Likewise.
3557 * mep-tdep.c (mep_gdbarch_init): Likewise.
3558 * mi/mi-main.c (mi_execute_command): Likewise.
3559 * mi/mi-parse.c (mi_parse_argv): Likewise.
3560 * minidebug.c (lzma_open): Likewise.
3561 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3562 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3563 * mips-tdep.c (mips_gdbarch_init): Likewise.
3564 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3565 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3566 * mt-tdep.c (mt_registers_info): Likewise.
3567 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3568 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3569 (linux_enable_pt): Likewise.
3570 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3571 (linux_xfer_osdata_processgroups): Likewise.
3572 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3573 * nto-procfs.c (procfs_meminfo): Likewise.
3574 * objc-lang.c (start_msglist): Likewise.
3575 (selectors_info): Likewise.
3576 (classes_info): Likewise.
3577 (find_methods): Likewise.
3578 * objfiles.c (allocate_objfile): Likewise.
3579 (update_section_map): Likewise.
3580 * osabi.c (gdbarch_register_osabi): Likewise.
3581 (gdbarch_register_osabi_sniffer): Likewise.
3582 * parse.c (start_arglist): Likewise.
3583 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3584 (hwdebug_insert_point): Likewise.
3585 * printcmd.c (display_command): Likewise.
3586 (ui_printf): Likewise.
3587 * procfs.c (create_procinfo): Likewise.
3588 (load_syscalls): Likewise.
3589 (proc_get_LDT_entry): Likewise.
3590 (proc_update_threads): Likewise.
3591 * prologue-value.c (make_pv_area): Likewise.
3592 (pv_area_store): Likewise.
3593 * psymtab.c (extend_psymbol_list): Likewise.
3594 (init_psymbol_list): Likewise.
3595 (allocate_psymtab): Likewise.
3596 * python/py-inferior.c (add_thread_object): Likewise.
3597 * python/py-param.c (compute_enum_values): Likewise.
3598 * python/py-value.c (valpy_call): Likewise.
3599 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3600 * python/python.c (ensure_python_env): Likewise.
3601 * record-btrace.c (record_btrace_start_replaying): Likewise.
3602 * record-full.c (record_full_reg_alloc): Likewise.
3603 (record_full_mem_alloc): Likewise.
3604 (record_full_end_alloc): Likewise.
3605 (record_full_core_xfer_partial): Likewise.
3606 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3607 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3608 * remote-notif.c (remote_notif_state_allocate): Likewise.
3609 * remote.c (demand_private_info): Likewise.
3610 (remote_notif_stop_alloc_reply): Likewise.
3611 (remote_enable_btrace): Likewise.
3612 * reverse.c (save_bookmark_command): Likewise.
3613 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3614 * rx-tdep.c (rx_gdbarch_init): Likewise.
3615 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3616 * ser-go32.c (dos_get_tty_state): Likewise.
3617 (dos_copy_tty_state): Likewise.
3618 * ser-mingw.c (ser_windows_open): Likewise.
3619 (ser_console_wait_handle): Likewise.
3620 (ser_console_get_tty_state): Likewise.
3621 (make_pipe_state): Likewise.
3622 (net_windows_open): Likewise.
3623 * ser-unix.c (hardwire_get_tty_state): Likewise.
3624 (hardwire_copy_tty_state): Likewise.
3625 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3626 * solib-dsbt.c (dsbt_current_sos): Likewise.
3627 (dsbt_relocate_main_executable): Likewise.
3628 * solib-frv.c (frv_current_sos): Likewise.
3629 (frv_relocate_main_executable): Likewise.
3630 * solib-spu.c (spu_bfd_fopen): Likewise.
3631 * solib-svr4.c (lm_info_read): Likewise.
3632 (svr4_copy_library_list): Likewise.
3633 (svr4_default_sos): Likewise.
3634 * source.c (find_source_lines): Likewise.
3635 (line_info): Likewise.
3636 (add_substitute_path_rule): Likewise.
3637 * spu-linux-nat.c (spu_bfd_open): Likewise.
3638 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3639 * stabsread.c (dbx_lookup_type): Likewise.
3640 (read_type): Likewise.
3641 (read_member_functions): Likewise.
3642 (read_struct_fields): Likewise.
3643 (read_baseclasses): Likewise.
3644 (read_args): Likewise.
3645 (_initialize_stabsread): Likewise.
3646 * stack.c (func_command): Likewise.
3647 * stap-probe.c (handle_stap_probe): Likewise.
3648 * symfile.c (addrs_section_sort): Likewise.
3649 (addr_info_make_relative): Likewise.
3650 (load_section_callback): Likewise.
3651 (add_symbol_file_command): Likewise.
3652 (init_filename_language_table): Likewise.
3653 * symtab.c (create_filename_seen_cache): Likewise.
3654 (sort_search_symbols_remove_dups): Likewise.
3655 (search_symbols): Likewise.
3656 * target.c (make_cleanup_restore_target_terminal): Likewise.
3657 * thread.c (new_thread): Likewise.
3658 (enable_thread_stack_temporaries): Likewise.
3659 (make_cleanup_restore_current_thread): Likewise.
3660 (thread_apply_all_command): Likewise.
3661 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3662 * top.c (gdb_readline_wrapper): Likewise.
3663 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3664 * tracepoint.c (trace_find_line_command): Likewise.
3665 (all_tracepoint_actions_and_cleanup): Likewise.
3666 (make_cleanup_restore_current_traceframe): Likewise.
3667 (get_uploaded_tp): Likewise.
3668 (get_uploaded_tsv): Likewise.
3669 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3670 (tui_alloc_win_info): Likewise.
3671 (tui_alloc_content): Likewise.
3672 (tui_add_content_elements): Likewise.
3673 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3674 (tui_set_disassem_content): Likewise.
3675 * ui-file.c (ui_file_new): Likewise.
3676 (stdio_file_new): Likewise.
3677 (tee_file_new): Likewise.
3678 * utils.c (make_cleanup_restore_integer): Likewise.
3679 (add_internal_problem_command): Likewise.
3680 * v850-tdep.c (v850_gdbarch_init): Likewise.
3681 * valops.c (find_oload_champ): Likewise.
3682 * value.c (allocate_value_lazy): Likewise.
3683 (record_latest_value): Likewise.
3684 (create_internalvar): Likewise.
3685 * varobj.c (install_variable): Likewise.
3686 (new_variable): Likewise.
3687 (new_root_variable): Likewise.
3689 (_initialize_varobj): Likewise.
3690 * windows-nat.c (windows_make_so): Likewise.
3691 * x86-nat.c (x86_add_process): Likewise.
3692 * xcoffread.c (arrange_linetable): Likewise.
3693 (allocate_include_entry): Likewise.
3694 (process_linenos): Likewise.
3695 (SYMBOL_DUP): Likewise.
3696 (xcoff_start_psymtab): Likewise.
3697 (xcoff_end_psymtab): Likewise.
3698 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3699 * xtensa-tdep.c (xtensa_register_type): Likewise.
3700 * gdbarch.c: Regenerate.
3701 * gdbarch.h: Regenerate.
3703 2015-08-25 Don Breazeal <donb@codesourcery.com>
3705 * infrun.c (follow_exec): Re-order operations for
3706 handling follow-exec-mode "new".
3707 (handle_inferior_event_1): Assign ecs->event_thread
3708 to the current thread.
3709 * remote.c (get_remote_arch_state): Add an assertion.
3711 2015-08-26 Pedro Alves <palves@redhat.com>
3713 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3715 2015-08-25 Pedro Alves <palves@redhat.com>
3718 * defs.h (maybe_quit): Declare.
3719 (QUIT): Now calls maybe_quit.
3720 * event-loop.c (clear_async_signal_handler)
3721 (async_signal_handler_is_marked): New functions.
3722 * event-loop.h (async_signal_handler_is_marked)
3723 (clear_async_signal_handler): New declarations.
3724 * remote.c (remote_check_pending_interrupt): New function.
3725 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3726 longer check whether the target is async. If waiting for a stop
3727 reply, and a Ctrl-C as been sent to the target, offer to
3728 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3729 Otherwise do not disconnect and throw a quit.
3730 (_initialize_remote): Install remote_check_pending_interrupt as
3731 to_check_pending_interrupt.
3732 * target.c (target_check_pending_interrupt): New function.
3733 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3735 (target_check_pending_interrupt): New declaration.
3736 * utils.c (maybe_quit): New function.
3737 * target-delegates.c: Regenerate.
3739 2015-08-25 Yao Qi <yao.qi@linaro.org>
3741 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3742 Rename local variable pid to tid, and get lwpid of lwp. Update
3745 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3747 * ada-lang.c (ada_read_var_value): Add a var_block argument
3748 and pass it to default_read_var_value.
3749 * block.c (block_static_link): New accessor.
3750 * block.h (block_static_link): Declare it.
3751 * buildsym.c (finish_block_internal): Add a static_link
3752 argument. If there is a static link, associate it to the new
3754 (finish_block): Add a static link argument and pass it to
3755 finish_block_internal.
3756 (end_symtab_get_static_block): Update calls to finish_block and
3757 to finish_block_internal.
3758 (end_symtab_with_blockvector): Update call to
3759 finish_block_internal.
3760 * buildsym.h: Forward-declare struct dynamic_prop.
3761 (struct context_stack): Add a static_link field.
3762 (finish_block): Add a static link argument.
3763 * c-exp.y: Remove an obsolete comment (evaluation of variables
3764 already start from the selected frame, and now they climb *up*
3765 the call stack) and propagate the block information to the
3766 produced expression.
3767 * d-exp.y: Likewise.
3768 * f-exp.y: Likewise.
3769 * go-exp.y: Likewise.
3770 * jv-exp.y: Likewise.
3771 * m2-exp.y: Likewise.
3772 * p-exp.y: Likewise.
3773 * coffread.c (coff_symtab_read): Update calls to finish_block.
3774 * dbxread.c (process_one_symbol): Likewise.
3775 * xcoffread.c (read_xcoff_symtab): Likewise.
3776 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3777 "sym" parameter to struct block_symbol, update its uses and pass
3778 its block to calls to read_var_value.
3779 (convert_symbol_sym): Update the calls to convert_one_symbol.
3780 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3781 call to read_var_value.
3782 * dwarf2loc.c (block_op_get_frame_base): New.
3783 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3784 get_frame_base method.
3785 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3786 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3787 instead of the selected frame in order to evaluate the
3789 (dwarf2_evaluate_property): Add a frame argument. Update call
3790 to dwarf2_locexpr_baton_eval to provide a frame in available and
3791 to handle the absence of address stack.
3792 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3793 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3795 (read_func_scope): Record any available static link description.
3796 Update call to finish_block.
3797 (read_lexical_block_scope): Update call to finish_block.
3798 * findvar.c (follow_static_link): New.
3799 (get_hosting_frame): New.
3800 (default_read_var_value): Add a var_block argument. Use
3801 get_hosting_frame to handle non-local references.
3802 (read_var_value): Add a var_block argument and pass it to the
3803 LA_READ_VAR_VALUE method.
3804 * gdbtypes.c (resolve_dynamic_range): Update calls to
3805 dwarf2_evaluate_property.
3806 (resolve_dynamic_type_internal): Likewise.
3807 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3808 read_var_value, passing it the block coming from symbol lookup.
3809 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3810 read_var_value (TODO).
3811 * infcmd.c (finish_command_continuation): Update call to
3812 read_var_value, passing it the block coming from symbol lookup.
3813 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3814 * language.h (struct language_defn): Add a var_block argument to
3815 the LA_READ_VAR_VALUE method.
3816 * objfiles.c (struct static_link_htab_entry): New.
3817 (static_link_htab_entry_hash): New.
3818 (static_link_htab_entry_eq): New.
3819 (objfile_register_static_link): New.
3820 (objfile_lookup_static_link): New.
3821 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3822 * objfiles.h: Include hashtab.h.
3823 (struct objfile): Add a static_links field.
3824 (objfile_register_static_link): New.
3825 (objfile_lookup_static_link): New.
3826 * printcmd.c (print_variable_and_value): Update call to
3828 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3829 * python/py-frame.c (frapy_read_var): Update call to
3830 read_var_value, passing it the block coming from symbol lookup.
3831 * python/py-framefilter.c (extract_sym): Add a sym_block
3832 parameter and set the pointed value to NULL (TODO).
3833 (enumerate_args): Update call to extract_sym.
3834 (enumerate_locals): Update calls to extract_sym and to
3836 * python/py-symbol.c (sympy_value): Update call to
3837 read_var_value (TODO).
3838 * stack.c (read_frame_local): Update call to read_var_value.
3839 (read_frame_arg): Likewise.
3840 (return_command): Likewise.
3841 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3843 (struct symbol): Add a block field.
3844 (SYMBOL_BLOCK): New accessor.
3845 * valops.c (value_of_variable): Remove frame/block handling and
3846 pass the block argument to read_var_value, which does this job
3848 (value_struct_elt_for_reference): Update calls to
3850 (value_of_this): Pass the block found to read_var_value.
3851 * value.h (read_var_value): Add a var_block argument.
3852 (default_read_var_value): Likewise.
3854 2015-08-25 Yao Qi <yao.qi@linaro.org>
3856 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3857 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3858 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3860 2015-08-25 Yao Qi <yao.qi@linaro.org>
3862 * Makefile.in (aarch64-liunx.o): New rule.
3863 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3864 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3865 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3866 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3868 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3869 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3870 * nat/aarch64-linux.c: New file.
3871 * nat/aarch64-linux.h: New file.
3873 2015-08-25 Yao Qi <yao.qi@linaro.org>
3875 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3876 lwp_arch_private_info and ptid_of_lwp.
3878 2015-08-25 Yao Qi <yao.qi@linaro.org>
3880 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3881 Move it to nat/aarch64-linux-hw-point.c.
3882 (debug_reg_change_callback): Likewise.
3883 (aarch64_notify_debug_reg_change): :Likewise.
3884 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3885 (aarch64_dr_update_callback_param): New.
3886 (debug_reg_change_callback): New function.
3887 (aarch64_notify_debug_reg_change): Likewise.
3888 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3889 Remove the declaration.
3891 2015-08-25 Yao Qi <yao.qi@linaro.org>
3893 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3894 Call current_lwp_ptid.
3896 2015-08-25 Yao Qi <yao.qi@linaro.org>
3898 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3901 2015-08-25 Yao Qi <yao.qi@linaro.org>
3903 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3904 ptid_get_pid rather than ptid_get_lwp.
3906 2015-08-24 Pedro Alves <palves@redhat.com>
3908 * NEWS (New commands): Mention set/show remote
3909 multiprocess-extensions-packet.
3910 * remote.c (remote_query_supported): Only tell the server to use
3911 the multiprocess extensions if the user hasn't force-disabled them
3912 with "set remote multiprocess-extensions-packet off".
3914 2015-08-24 Pedro Alves <palves@redhat.com>
3916 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3917 1029a8112290f6eee9d7878a391c49db42c999bd.
3918 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3920 * gnulib/import/Makefile.am: Update.
3921 * gnulib/import/Makefile.in: Update.
3922 * gnulib/import/alloca.in.h: Update.
3923 * gnulib/import/basename-lgpl.c: Update.
3924 * gnulib/import/canonicalize-lgpl.c: Update.
3925 * gnulib/import/config.charset: Update.
3926 * gnulib/import/dirent.in.h: Update.
3927 * gnulib/import/dirfd.c: Update.
3928 * gnulib/import/dirname-lgpl.c: Update.
3929 * gnulib/import/dirname.h: Update.
3930 * gnulib/import/dosname.h: Update.
3931 * gnulib/import/errno.in.h: Update.
3932 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3933 * gnulib/import/extra/snippet/c++defs.h: Update.
3934 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3935 * gnulib/import/extra/update-copyright: Update.
3936 * gnulib/import/float+.h: Update.
3937 * gnulib/import/float.c: Update.
3938 * gnulib/import/float.in.h: Update.
3939 * gnulib/import/fnmatch.c: Update.
3940 * gnulib/import/fnmatch.in.h: Update.
3941 * gnulib/import/fnmatch_loop.c: Update.
3942 * gnulib/import/fpucw.h: Update.
3943 * gnulib/import/frexp.c: Update.
3944 * gnulib/import/frexpl.c: Update.
3945 * gnulib/import/gettimeofday.c: Update.
3946 * gnulib/import/inttypes.in.h: Update.
3947 * gnulib/import/isnan.c: Update.
3948 * gnulib/import/isnand-nolibm.h: Update.
3949 * gnulib/import/isnand.c: Update.
3950 * gnulib/import/isnanl-nolibm.h: Update.
3951 * gnulib/import/isnanl.c: Update.
3952 * gnulib/import/itold.c: Update.
3953 * gnulib/import/localcharset.c: Update.
3954 * gnulib/import/localcharset.h: Update.
3955 * gnulib/import/lstat.c: Update.
3956 * gnulib/import/m4/00gnulib.m4: Update.
3957 * gnulib/import/m4/absolute-header.m4: Update.
3958 * gnulib/import/m4/alloca.m4: Update.
3959 * gnulib/import/m4/canonicalize.m4: Update.
3960 * gnulib/import/m4/codeset.m4: Update.
3961 * gnulib/import/m4/configmake.m4: Update.
3962 * gnulib/import/m4/dirent_h.m4: Update.
3963 * gnulib/import/m4/dirfd.m4: Update.
3964 * gnulib/import/m4/dirname.m4: Update.
3965 * gnulib/import/m4/double-slash-root.m4: Update.
3966 * gnulib/import/m4/eealloc.m4: Update.
3967 * gnulib/import/m4/errno_h.m4: Update.
3968 * gnulib/import/m4/exponentd.m4: Update.
3969 * gnulib/import/m4/exponentl.m4: Update.
3970 * gnulib/import/m4/extensions.m4: Update.
3971 * gnulib/import/m4/extern-inline.m4: Update.
3972 * gnulib/import/m4/fcntl-o.m4: Update.
3973 * gnulib/import/m4/float_h.m4: Update.
3974 * gnulib/import/m4/fnmatch.m4: Update.
3975 * gnulib/import/m4/fpieee.m4: Update.
3976 * gnulib/import/m4/frexp.m4: Update.
3977 * gnulib/import/m4/frexpl.m4: Update.
3978 * gnulib/import/m4/gettimeofday.m4: Update.
3979 * gnulib/import/m4/glibc21.m4: Update.
3980 * gnulib/import/m4/gnulib-cache.m4: Update.
3981 * gnulib/import/m4/gnulib-common.m4: Update.
3982 * gnulib/import/m4/gnulib-comp.m4: Update.
3983 * gnulib/import/m4/gnulib-tool.m4: Update.
3984 * gnulib/import/m4/include_next.m4: Update.
3985 * gnulib/import/m4/inttypes-pri.m4: Update.
3986 * gnulib/import/m4/inttypes.m4: Update.
3987 * gnulib/import/m4/isnand.m4: Update.
3988 * gnulib/import/m4/isnanl.m4: Update.
3989 * gnulib/import/m4/largefile.m4: Update.
3990 * gnulib/import/m4/localcharset.m4: Update.
3991 * gnulib/import/m4/locale-fr.m4: Update.
3992 * gnulib/import/m4/locale-ja.m4: Update.
3993 * gnulib/import/m4/locale-zh.m4: Update.
3994 * gnulib/import/m4/longlong.m4: Update.
3995 * gnulib/import/m4/lstat.m4: Update.
3996 * gnulib/import/m4/malloc.m4: Update.
3997 * gnulib/import/m4/malloca.m4: Update.
3998 * gnulib/import/m4/math_h.m4: Update.
3999 * gnulib/import/m4/mbrtowc.m4: Update.
4000 * gnulib/import/m4/mbsinit.m4: Update.
4001 * gnulib/import/m4/mbsrtowcs.m4: Update.
4002 * gnulib/import/m4/mbstate_t.m4: Update.
4003 * gnulib/import/m4/memchr.m4: Update.
4004 * gnulib/import/m4/memmem.m4: Update.
4005 * gnulib/import/m4/mmap-anon.m4: Update.
4006 * gnulib/import/m4/multiarch.m4: Update.
4007 * gnulib/import/m4/nocrash.m4: Update.
4008 * gnulib/import/m4/off_t.m4: Update.
4009 * gnulib/import/m4/pathmax.m4: Update.
4010 * gnulib/import/m4/readlink.m4: Update.
4011 * gnulib/import/m4/rename.m4: Update.
4012 * gnulib/import/m4/rmdir.m4: Update.
4013 * gnulib/import/m4/ssize_t.m4: Update.
4014 * gnulib/import/m4/stat.m4: Update.
4015 * gnulib/import/m4/stdbool.m4: Update.
4016 * gnulib/import/m4/stddef_h.m4: Update.
4017 * gnulib/import/m4/stdint.m4: Update.
4018 * gnulib/import/m4/stdio_h.m4: Update.
4019 * gnulib/import/m4/stdlib_h.m4: Update.
4020 * gnulib/import/m4/string_h.m4: Update.
4021 * gnulib/import/m4/strstr.m4: Update.
4022 * gnulib/import/m4/strtok_r.m4: Update.
4023 * gnulib/import/m4/sys_socket_h.m4: Update.
4024 * gnulib/import/m4/sys_stat_h.m4: Update.
4025 * gnulib/import/m4/sys_time_h.m4: Update.
4026 * gnulib/import/m4/sys_types_h.m4: Update.
4027 * gnulib/import/m4/time_h.m4: Update.
4028 * gnulib/import/m4/unistd_h.m4: Update.
4029 * gnulib/import/m4/warn-on-use.m4: Update.
4030 * gnulib/import/m4/wchar_h.m4: Update.
4031 * gnulib/import/m4/wchar_t.m4: Update.
4032 * gnulib/import/m4/wctype_h.m4: Update.
4033 * gnulib/import/m4/wint_t.m4: Update.
4034 * gnulib/import/malloc.c: Update.
4035 * gnulib/import/malloca.c: Update.
4036 * gnulib/import/malloca.h: Update.
4037 * gnulib/import/math.in.h: Update.
4038 * gnulib/import/mbrtowc.c: Update.
4039 * gnulib/import/mbsinit.c: Update.
4040 * gnulib/import/mbsrtowcs-impl.h: Update.
4041 * gnulib/import/mbsrtowcs-state.c: Update.
4042 * gnulib/import/mbsrtowcs.c: Update.
4043 * gnulib/import/memchr.c: Update.
4044 * gnulib/import/memmem.c: Update.
4045 * gnulib/import/pathmax.h: Update.
4046 * gnulib/import/readlink.c: Update.
4047 * gnulib/import/ref-add.sin: Update.
4048 * gnulib/import/ref-del.sin: Update.
4049 * gnulib/import/rename.c: Update.
4050 * gnulib/import/rmdir.c: Update.
4051 * gnulib/import/same-inode.h: Update.
4052 * gnulib/import/stat.c: Update.
4053 * gnulib/import/stdbool.in.h: Update.
4054 * gnulib/import/stddef.in.h: Update.
4055 * gnulib/import/stdint.in.h: Update.
4056 * gnulib/import/stdio.c: Update.
4057 * gnulib/import/stdio.in.h: Update.
4058 * gnulib/import/stdlib.in.h: Update.
4059 * gnulib/import/str-two-way.h: Update.
4060 * gnulib/import/streq.h: Update.
4061 * gnulib/import/string.in.h: Update.
4062 * gnulib/import/stripslash.c: Update.
4063 * gnulib/import/strnlen1.c: Update.
4064 * gnulib/import/strnlen1.h: Update.
4065 * gnulib/import/strstr.c: Update.
4066 * gnulib/import/strtok_r.c: Update.
4067 * gnulib/import/sys_stat.in.h: Update.
4068 * gnulib/import/sys_time.in.h: Update.
4069 * gnulib/import/sys_types.in.h: Update.
4070 * gnulib/import/time.in.h: Update.
4071 * gnulib/import/unistd.in.h: Update.
4072 * gnulib/import/verify.h: Update.
4073 * gnulib/import/wchar.in.h: Update.
4074 * gnulib/import/wctype.in.h: Update.
4075 * gnulib/import/gettimeofday.c: New file.
4076 * gnulib/import/m4/absolute-header.m4: New file.
4077 * gnulib/import/m4/gettimeofday.m4: New file.
4078 * gnulib/import/m4/sys_socket_h.m4: New file.
4079 * gnulib/import/m4/sys_time_h.m4: New file.
4080 * gnulib/import/stdio.c: Delete file.
4081 * gnulib/import/sys_time.in.h: New file.
4083 2015-08-24 Pedro Alves <palves@redhat.com>
4085 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4086 * common/gdb_sys_time.h: New file.
4087 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4088 * gdb_select.h: Likewise.
4089 * gdb_usleep.c: Likewise.
4090 * maint.c: Likewise.
4091 * mi/mi-main.c: Likewise.
4092 * mi/mi-parse.h: Likewise.
4093 * remote-fileio.c: Likewise.
4094 * remote-m32r-sdi.c: Likewise.
4095 * remote.c: Likewise.
4096 * ser-base.c: Likewise.
4097 * ser-pipe.c: Likewise.
4098 * ser-tcp.c: Likewise.
4099 * ser-unix.c: Likewise.
4100 * symfile.c: Likewise.
4101 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4102 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4103 * utils.c: Likewise.
4105 2015-08-24 Pedro Alves <palves@redhat.com>
4107 * NEWS: Mention removed support for the various ROM monitors.
4108 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4109 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4110 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4112 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4114 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4115 dsrec.o from gdb_target_obs.
4116 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4117 from gdb_target_obs.
4118 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4120 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4121 dink32-rom.o from gdb_target_obs.
4122 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4123 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4124 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4125 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4127 2015-08-21 Pedro Alves <palves@redhat.com>
4129 * frame.c (null_frame_id): Explicitly zero-initialize.
4131 2015-08-21 Tom Tromey <tromey@redhat.com>
4133 * dwarf2read.c (struct dwarf2_section_info): Rename field
4134 'asection' to 'section'.
4135 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4136 (dwarf2_locate_sections, dwarf2_locate_sections)
4137 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4138 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4139 (dwarf2_locate_v2_dwp_sections): Adjust.
4141 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4143 * top.h (gdb_in_secondary_prompt_p): Declare.
4144 * top.c (gdb_secondary_prompt_depth): Define.
4145 (gdb_in_secondary_prompt_p): Define.
4146 (gdb_readline_wrapper_cleanup): Decrement
4147 gdb_secondary_prompt_depth.
4148 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4149 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4150 are in a secondary prompt.
4152 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4154 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4157 2015-08-21 Gary Benson <gbenson@redhat.com>
4159 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4161 2015-08-21 Gary Benson <gbenson@redhat.com>
4163 * target.h (struct target_ops) <to_fileio_open>: New argument
4164 warn_if_slow. Update comment. All implementations updated.
4165 (target_fileio_open_warn_if_slow): New declaration.
4166 * target.c (target_fileio_open): Renamed as...
4167 (target_fileio_open_1): ...this. New argument warn_if_slow.
4168 Pass warn_if_slow to implementation. Update debug printing.
4169 (target_fileio_open): New function.
4170 (target_fileio_open_warn_if_slow): Likewise.
4171 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4172 target_fileio_open_warn_if_slow.
4174 2015-08-21 Gary Benson <gbenson@redhat.com>
4176 * nat/linux-namespaces.c (linux_mntns_access_fs):
4177 Do not overwrite old_chain.
4179 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4181 * arch/xtensa.h: New file.
4182 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4183 (ps_get_thread_area): New function.
4184 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4185 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4186 * xtensa-tdep.c (osabi.h): New #include.
4187 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4188 xtensa-specific hooks.
4189 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4190 member and move the structure to arch/xtensa.h.
4192 2015-08-21 Pedro Alves <palves@redhat.com>
4194 * remote.c (struct readahead_cache): New.
4195 (struct remote_state) <readahead_cache>: New field.
4196 (remote_open_1): Invalidate the cache.
4197 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4199 (remote_hostio_pwrite): Invalidate the readahead cache.
4200 (remote_hostio_pread): Rename to ...
4201 (remote_hostio_pread_vFile): ... this.
4202 (remote_hostio_pread_from_cache): New function.
4203 (remote_hostio_pread): Reimplement.
4204 (remote_hostio_close): Invalidate the readahead cache.
4206 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4209 * procfs.c: Include "filestuff.h".
4211 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4213 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4215 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4216 cur_line or curch, instead call wmove().
4217 (init_win_info) [CMD_WIN]: Likewise.
4218 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4219 instead call getcury().
4220 (tui_redisplay_readline): Don't set cur_line or curch.
4221 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4223 (tui_cont_sig): Remove call to wmove.
4224 (tui_getc): Don't read cur_line or curch, instead call getcury()
4225 or getyx(). Don't set curch.
4226 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4227 set cur_line or curch. Always move cursor to (0,0).
4229 2015-08-20 Pedro Alves <palves@redhat.com>
4231 * infrun.c (print_target_wait_results): Make extern.
4232 * infrun.h (print_target_wait_results): Declare.
4233 * remote.c (set_stop_requested_callback): Delete.
4234 (process_initial_stop_replies): New function.
4235 (remote_start_remote): Use it.
4236 (stop_reply_queue_length): New function.
4238 2015-08-20 Pedro Alves <palves@redhat.com>
4240 * dwarf2read.c (process_full_comp_unit): To tell whether
4241 start_subfile managed to deduce a language, test for
4242 language_unknown instead of language_c.
4244 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4246 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4249 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4251 * dwarf2read.c (dwarf2_string_attr): New function.
4252 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4253 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4254 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4255 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4256 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4258 2015-08-18 Doug Evans <dje@google.com>
4259 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4262 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4264 * mi/mi-out.c: #include "vec.h".
4265 (ui_filep): New type.
4266 (DEV_VEC_P (ui_filep)): New type.
4267 (struct ui_out_data) <buffer, original_buffer>: Delete.
4268 (struct ui_out_data) <streams>: New member.
4269 (mi_ui_out_impl): Add data_destroy field.
4270 (mi_field_string, mi_field_fmt): Update.
4271 (mi_flush, mi_redirect, field_separator): Update.
4272 (mi_open, mi_close): Update.
4273 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4274 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4275 (mi_out_new): Call mi_out_data_ctor.
4277 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4279 * remote.c (strprefix): New.
4280 (remote_parse_stop_reply): Use strprefix instead of strncmp
4281 to ensure exact match of keyword.
4283 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4285 * gdb_bfd.c (debug_bfd_cache): New variable.
4286 (show_bfd_cache_debug): New function.
4287 (gdb_bfd_open): Add debug logging.
4288 (gdb_bfd_ref): Likewise.
4289 (gdb_bfd_unref): Likewise.
4290 (_initialize_gdb_bfd): Add new set/show command.
4291 * NEWS: Mention new command.
4293 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4295 * gdb_bfd.c (bfd_sharing): New variable.
4296 (show_bfd_sharing): New function.
4297 (gdb_bfd_open): Check bfd_sharing variable.
4298 (_initialize_gdb_bfd): Add new set/show command.
4299 * NEWS: Mention new command.
4301 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4303 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4305 (struct gdb_bfd_cache_search): Likewise.
4306 (eq_bfd): Compare the size, inode, and device id fields.
4307 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4308 (gdb_bfd_ref): Likewise.
4309 (gdb_bfd_unref): Likewise.
4311 2015-08-18 Pedro Alves <palves@redhat.com>
4313 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4314 target implements to_always_non_stop_p, call it.
4315 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4316 (x86_linux_create_target): Install it as to_always_non_stop_p
4319 2015-08-17 Doug Evans <dje@google.com>
4321 * ui-out.c (default_ui_out_impl): Add comment.
4323 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4325 * d-exp.y (type_aggregate_p): New function.
4326 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4327 (classify_inner_name): Likewise.
4328 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4330 2015-08-15 Doug Evans <xdje42@gmail.com>
4332 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4334 (add_psymbol_to_list): Ditto.
4336 2015-08-15 Doug Evans <xdje42@gmail.com>
4338 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4339 updated. Call end_psymtab_common.
4340 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4342 (build_type_psymtabs_reader): Ditto.
4343 * psympriv.h (sort_pst_symbols): Delete.
4344 (end_psymtab_common): Declare.
4345 * psymtab.c (sort_pst_symbols): Make static.
4346 (end_psymtab_common): New function.
4347 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4349 2015-08-15 Doug Evans <xdje42@gmail.com>
4351 * defs.h (LANGUAGE_BITS): Define.
4352 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4353 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4354 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4355 (minimal_symbol_type): Add nr_minsym_types.
4356 (MINSYM_TYPE_BITS): Define.
4357 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4358 (domain_enum_tag): Add NR_DOMAINS.
4359 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4360 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4362 2015-08-15 Doug Evans <xdje42@gmail.com>
4364 * objfiles.h: Whitespace cleanup.
4365 * psympriv.h: Whitespace cleanup.
4366 * psymtab.c: Whitespace/coding convention cleanup.
4368 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4370 * inferior.c (detach_inferior_command): Don't call
4371 any_thread_of_process when pid is 0.
4372 (kill_inferior_command): Likewise.
4374 2015-08-14 Doug Evans <xdje42@gmail.com>
4377 * NEWS: Document new /s modifier for the disassemble command.
4378 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4379 (_initialize_cli_cmds): Update online docs of disassemble command.
4380 * disasm.c: #include "source.h".
4381 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4383 (dis_line_entry): New struct.
4384 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4385 (allocate_dis_line_table): New functions.
4386 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4387 (dump_insns): New arg end_pc. All callers updated.
4388 (do_mixed_source_and_assembly_deprecated): Renamed from
4389 do_mixed_source_and_assembly. All callers updated.
4390 (do_mixed_source_and_assembly): New function.
4391 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4392 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4393 DISASSEMBLY_SOURCE. All uses updated.
4394 (DISASSEMBLY_SOURCE): New macro.
4395 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4397 2015-08-14 Keith Seitz <keiths@redhat.com>
4399 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4400 `typename' to `type_name' to avoid C++ reserved word.
4402 2015-08-14 Keith Seitz <keiths@redhat.com>
4404 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4405 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4408 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4410 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4411 xstrprintf instead of malloc and sprintf.
4412 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4413 (lex_one_token): Likewise.
4415 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4417 * solib-svr4.c (read_program_header): Add base_addr argument to
4418 report the runtime address of the segment.
4419 (find_program_interpreter): Update read_program_header call to pass
4420 a NULL pointer for the new argument.
4421 (scan_dyntag): Add ptr_addr argument to report the runtime address
4423 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4424 read_program_header to get the base address of the dynamic segment.
4425 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4426 read_program_header.
4427 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4429 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4431 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4433 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4435 * d-exp.y (%union): Add voidval.
4436 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4437 name in the lexing stage.
4438 (PostfixExpression): Move symbol completion handling in grammar here
4439 from PrimaryExpression.
4440 (PrimaryExpression): Move routines to handle resolving identifier
4441 tokens in the grammar here from push_expression_name.
4442 (IdentifierExp): Remove the handling of alternating '.' and identifier
4444 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4445 (BasicType): Remove C-style typename rules.
4446 (d_type_from_name, d_module_from_name, push_variable)
4447 (push_fieldnames, push_type_name, push_module_name)
4448 (push_expression_name): Remove.
4449 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4450 (token_and_value): New type.
4451 (token_fifo, popping, name_obstack): New globals.
4452 (classify_name): New function.
4453 (classify_inner_name): Likewise.
4455 (d_parse): Initialize token_fifo, popping and name_obstack.
4457 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4459 * Makefile.in (SFILES): Add d-namespace.c.
4460 (COMMON_OBS): Add d-namespace.o.
4461 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4462 la_lookup_symbol_nonlocal callback function pointer.
4463 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4464 (d_lookup_nested_symbol): New declaration.
4465 * d-namespace.c: New file.
4467 2015-08-13 Pedro Alves <palves@redhat.com>
4469 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4470 cleanup after the decref cleanup, not before.
4472 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4474 * ada-lang.c: Include namespace.h
4475 (aux_add_nonlocal_symbols): Fix a function name in comment.
4476 (ada_add_block_renamings): New.
4477 (add_nonlocal_symbols): Add global renamings handling.
4478 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4480 (ada_add_all_symbols): ... this new function.
4481 (ada_add_block_symbols): Try to match the input name against the
4482 "using directives list", perform a recursive symbol lookup on
4483 the matched declarations.
4484 * block.h (struct block): Move the_namespace to top-level as
4485 namespace_info. Remove the language_specific field.
4486 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4487 * buildsym.h (using_directives): Rename into...
4488 (local_using_directives): ... this.
4489 (global_using_directives): New.
4490 (struct context_stack): Rename the using_directives field into
4491 local_using_directives.
4492 * buildsym.c (finish_block_internal): Deal with the proper
4493 using directives repository (local or global).
4494 (prepare_for_building): Reset local_using_directives. Assert
4495 that there is no pending global using directive.
4496 (reset_symtab_globals): Reset global_using_directives and
4497 local_using_directives.
4498 (end_symtab_get_static_block): Don't ignore symtabs that have
4499 only using directives.
4500 (push_context): Update references to local_using_directives.
4501 (buildsym_init): Do not reset using_directives.
4502 * cp-support.c: Include namespace.h.
4503 * cp-support.h (struct using_direct): Move to namespace.h.
4504 (cp_add_using_directives): Move to namespace.h.
4505 * cp-namespace.c: Include namespace.h
4506 (cp_add_using_directive): Move to namespace.c, rename it to
4507 add_using_directive, add a "using_directives" argument and use
4508 it as the pending using directives repository. All callers
4510 * dwarf2read.c (using_directives): New.
4511 (read_import_statement): Call using_directives.
4512 (read_func_scope): Update references to local_using_directives.
4513 (read_lexical_block_scope): Likewise.
4514 (read_namespace): Update the heading comment, call
4516 * namespace.h: New file.
4517 * namespace.c: New file.
4518 * Makefile.in (SFILES): Add namespace.c.
4519 (COMMON_OBS): Add namespace.o
4521 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4523 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4526 2015-08-12 Keith Seitz <keiths@redhat.com>
4528 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4529 reserved C++ keyword "explicit" to "explicit_loc".
4530 * breakpoint.c (create_overlay_event_breakpoint)
4531 (create_longjmp_master_breakpoint)
4532 (create_std_terminate_master_breakpoint)
4533 (create_exception_master_breakpoint, update_static_tracepoint):
4534 Rename reserved C++ keyword "explicit" to "explicit_loc".
4535 * completer.c (collect_explicit_location_matches)
4536 (explicit_location_completer): Rename reserved C++ keyword
4537 "explicit" to "explicit_loc".
4538 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4539 (canonicalize_linespec, create_sals_line_offset)
4540 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4541 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4542 "explicit" to "explicit_loc".
4543 * location.c (struct event_location) <explicit>: Rename to
4545 (initialize_explicit_location, new_explicit_location)
4546 (explicit_location_to_string_internal, explicit_location_to_linespec):
4547 Rename reserved C++ keyword "explicit" to "explicit_loc".
4548 * location.h (explicit_location_to_string)
4549 (explicit_location_to_linespec, initialize_explicit_location)
4550 (new_explicit_location): Rename reserved C++ keyword "explicit"
4552 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4553 keyword "explicit" to "explicit_loc".
4555 2015-08-12 Keith Seitz <keiths@redhat.com>
4557 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4558 and only call decode_line_1 when it is non-NULL.
4560 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4562 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4563 location address is not meaningful.
4564 (breakpoint_address_is_meaningful): Update comment.
4566 2015-08-11 Keith Seitz <keiths@redhat.com>
4568 * NEWS: Mention explicit locations.
4569 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4570 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4571 (_initialize_breakpoint): Update documentation for
4572 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4574 2015-08-11 Keith Seitz <keiths@redhat.com>
4576 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4577 explicit locations, options "--source", "--function",
4578 "--label", and "--line".
4580 2015-08-11 Keith Seitz <keiths@redhat.com>
4582 * completer.c: Include location.h.
4583 (enum match_type): New enum.
4584 (location_completer): Rename to ...
4585 (linespec_completer): ... this.
4586 (collect_explicit_location_matches, backup_text_ptr)
4587 (explicit_location_completer): New functions.
4588 (location_completer): "New" function; handle linespec
4589 and explicit location completions.
4590 (complete_line_internal): Remove all location completer-specific
4592 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4593 (find_toplevel_char): Export.
4594 (linespec_parse_line_offset): Export.
4595 Issue error if STRING is not numerical.
4596 (gdb_get_linespec_parser_quote_characters): New function.
4597 * linespec.h (linespec_parse_line_offset): Declare.
4598 (get_gdb_linespec_parser_quote_characters): Declare.
4599 (is_ada_operator): Declare.
4600 (find_toplevel_char): Declare.
4601 (linespec_lexer_lex_keyword): Declare.
4602 * location.c (explicit_to_event_location): New function.
4603 (explicit_location_lex_one): New function.
4604 (string_to_explicit_location): New function.
4605 (string_to_event_location): Handle explicit locations.
4606 * location.h (explicit_to_event_location): Declare.
4607 (string_to_explicit_location): Declare.
4609 2015-08-11 Keith Seitz <keiths@redhat.com>
4611 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4612 linespec into explicit location.
4613 * breakpoint.c (create_overlay_breakpoint)
4614 (create_longjmp_master_breakpoint)
4615 (create_std_terminate_master_breakpoint)
4616 (create_exception_master_breakpoint): Convert linespec into explicit
4618 (update_static_tracepoint): Convert linespec into explicit location.
4619 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4621 (struct linespec) <expression, expr_pc, source_filename>
4622 <function_name, label_name, line_offset>: Replace with ...
4623 <explicit>: ... this.
4624 <is_linespec>: New member.
4625 (PARSER_EXPLICIT): New accessor macro.
4626 (undefined_label_error): New function.
4627 (source_file_not_found_error): New function.
4628 (linespec_parse_basic): The parser result is now an explicit location.
4629 Use PARSER_EXPLICIT to access it.
4630 Use undefined_label_error.
4631 (canonicalize_linespec): Convert canonical linespec into explicit
4633 Move string representation of location to explicit_location_to_linespec
4634 and use it and explicit_location_to_string to save string
4635 representations of the canonical location.
4636 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4637 explicit location. Update all references.
4638 (convert_explicit_location_to_sals): New function.
4639 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4640 result's explicit location.
4641 (linespec_state_constructor): Initialize is_linespec.
4642 Use PARSER_EXPLICIT.
4643 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4645 (event_location_to_sals): For linespec locations, set is_linespec.
4646 Handle explicit locations.
4647 (decode_objc): 'ls' contains an explicit location now. Update all
4649 (symtabs_from_filename): Use source_file_not_found_error.
4650 * location.c (struct event_location.u) <explicit>: New member.
4651 (initialize_explicit_location): New function.
4652 (initialize_event_location): Initialize explicit locations.
4653 (new_explicit_location, get_explicit_location)
4654 (get_explicit_location_const): New functions.
4655 (explicit_to_string_internal): New function; most of contents moved
4656 from canonicalize_linespec.
4657 (explicit_location_to_string): New function.
4658 (explicit_location_to_linespec): New function.
4659 (copy_event_location, delete_event_location)
4660 (event_location_to_string_const, event_location_empty_p): Handle
4662 * location.h (enum offset_relative_sign, struct line_offset): Move
4663 here from linespec.h.
4664 (enum event_location_type): Add EXPLICIT_LOCATION.
4665 (struct explicit_location): New structure.
4666 (explicit_location_to_string): Declare.
4667 (explicit_location_to_linespec): Declare.
4668 (new_explicit_location, get_explicit_locationp
4669 (get_explicit_location_const, initialize_explicit_location): Declare.
4671 2015-08-11 Keith Seitz <keiths@redhat.com>
4673 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4674 linespec for stap probe to probe location.
4675 * breakpoint.c (create_longjmp_master_breakpoint)
4676 (create_exception_master_breakpoint): Likewise.
4677 (break_command_1): Remove local variable `arg_cp'.
4678 Check location type to set appropriate breakpoint ops methods.
4679 (trace_command): Likewise.
4680 * linespec.c (event_location_to_sals): Assert on probe locations.
4681 * location.c (EL_PROBE): Add macro definition.
4682 (new_probe_location, get_probe_location): New functions.
4683 (copy_event_location, delete_event_location, event_location_to_string)
4684 (string_to_event_location, event_location_empty_p): Handle probe
4686 * location.h (enum event_location_type): Add PROBE_LOCATION.
4687 (new_probe_location, get_probe_location): Declare.
4688 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4689 Convert linespec into probe location.
4691 2015-08-11 Keith Seitz <keiths@redhat.com>
4693 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4694 Convert linespec to address location.
4695 * linespec.c (canonicalize_linespec): Do not handle address
4697 (convert_address_location_to_sals): New function; contents moved
4699 (convert_linespc_to_sals): ... here.
4700 (parse_linespec): Remove address locations from linespec grammar.
4701 Remove handling of address locations.
4702 (linespec_lex_to_end): Remove handling of address linespecs.
4703 (event_location_to_sals): Handle ADDRESS_LOCATION.
4704 (linespec_expression_to_pc): Export.
4705 * linespec.h (linespec_expression_to_pc): Add declaration.
4706 * location.c (struct event_location.u) <address>: New member.
4707 (new_address_location, get_address_location): New functions.
4708 (copy_event_location, delete_event_location, event_location_to_string)
4709 (string_to_event_location, event_location_empty_p): Handle address
4711 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4712 (new_address_location, get_address_location): Declare.
4713 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4714 to address location.
4715 * spu-tdep.c (spu_catch_start): Likewise.
4717 2015-08-11 Keith Seitz <keiths@redhat.com>
4719 * ax-gdb.c: Include location.h.
4720 (agent_command_1) Use linespec location instead of address
4722 * break-catch-throw.c: Include location.h.
4723 (re_set_exception_catchpoint): Use linespec locations instead
4725 * breakpoint.c: Include location.h.
4726 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4727 (create_std_terminate_master_breakpoint)
4728 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4729 Use linespec location instead of address string.
4730 (print_breakpoint_location): Use locations and
4731 event_location_to_string.
4732 Print extra_string for pending locations for non-MI streams.
4733 (print_one_breakpoint_location): Use locations and
4734 event_location_to_string.
4735 (init_raw_breakpoint_without_location): Initialize b->location.
4736 (create_thread_event_breakpoint): Use linespec location instead of
4738 (init_breakpoint_sal): Likewise.
4739 Only save extra_string if it is non-NULL and not the empty string.
4740 Use event_location_to_string instead of `addr_string'.
4741 Constify `p' and `endp'.
4742 Use skip_spaces_const/skip_space_const instead of non-const versions.
4743 Copy the location into the breakpoint.
4744 If LOCATION is NULL, save the breakpoint address as a linespec location
4745 instead of an address string.
4746 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4747 event_location. All uses updated.
4748 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4749 (parse_breakpoint_sals): Use locations instead of address strings.
4750 Remove check for empty linespec with conditional.
4752 (decode_static_tracepoint_spec): Make argument const and update
4754 (create_breakpoint): Change `arg' to a struct event_location and
4756 Remove `copy_arg' and `addr_start'.
4757 If EXTRA_STRING is empty, set it to NULL.
4758 Don't populate `canonical' for pending breakpoints.
4759 Pass `extra_string' to find_condition_and_thread.
4760 Clear `extra_string' if `rest' was NULL.
4761 Do not error with "garbage after location" if setting a dprintf
4763 Copy the location into the breakpoint instead of an address string.
4764 (break_command_1): Use string_to_event_location and pass this to
4765 create_breakpoint instead of an address string.
4766 Check against `arg_cp' for a probe linespec.
4767 (dprintf_command): Use string_to_event_location and pass this to
4768 create_breakpoint instead of an address string.
4769 Throw an exception if no format string was specified.
4770 (print_recreate_ranged_breakpoint): Use event_location_to_string
4771 instead of address strings.
4772 (break_range_command, until_break_command)
4773 (init_ada_exception_breakpoint): Use locations instead
4775 (say_where): Print out extra_string for pending locations.
4776 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4778 (base_breakpoint_create_sals_from_location): Use struct event_location
4779 instead of address string.
4780 Remove `addr_start' and `copy_arg' parameters.
4781 (base_breakpoint_decode_location): Use struct event_location instead of
4783 (bkpt_re_set): Use locations instead of address strings.
4784 Use event_location_empty_p to check for unset location.
4785 (bkpt_print_recreate): Use event_location_to_string instead of
4787 Print out extra_string for pending locations.
4788 (bkpt_create_sals_from_location, bkpt_decode_location)
4789 (bkpt_probe_create_sals_from_location): Use struct event_location
4790 instead of address string.
4791 (bkpt_probe_decode_location): Use struct event_location instead of
4793 (tracepoint_print_recreate): Use event_location_to_string to
4794 recreate the tracepoint.
4795 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4796 (tracepoint_probe_create_sals_from_location)
4797 (tracepoint_probe_decode_location): Use struct event_location
4798 instead of address string.
4799 (dprintf_print_recreate): Use event_location_to_string to recreate
4801 (dprintf_re_set): Remove check for valid/missing format string.
4802 (strace_marker_create_sals_from_location)
4803 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4804 (update_static_tracepoint): Use struct event_location instead of
4806 (location_to_sals): Likewise.
4807 Pass `extra_string' to find_condition_and_thread.
4808 For newly resolved pending breakpoint locations, clear the location's
4809 string representation.
4810 Assert that the breakpoint's condition string is NULL when
4811 condition_not_parsed.
4812 (breakpoint_re_set_default, create_sals_from_location_default)
4813 (decode_location_default, trace_command, ftrace_command)
4814 (strace_command, create_tracepoint_from_upload): Use locations
4815 instead of address strings.
4816 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4817 Use struct event_location instead of address string.
4819 <decode_location>: Likewise.
4820 (struct breakpoint) <addr_string>: Change to struct event_location
4821 and rename `location'.
4822 <addr_string_range_end>: Change to struct event_location and rename
4823 `location_range_end'.
4824 (create_breakpoint): Use struct event_location instead of address
4826 * cli/cli-cmds.c: Include location.h.
4827 (edit_command, list_command): Use locations instead of address strings.
4828 * elfread.c: Include location.h.
4829 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4830 * guile/scm-breakpoint.c: Include location.h.
4831 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4832 (gdbscm_register_breakpoint): Use locations instead of address
4834 * linespec.c: Include location.h.
4835 (struct ls_parser) <stream>: Change to const char *.
4836 (PARSER_STREAM): Update.
4837 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4838 keywords must be followed by whitespace.
4839 (canonicalize_linespec): Save a linespec location into `canonical'.
4840 Save a canonical linespec into `canonical'.
4841 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4843 Update function description.
4844 (linespec_parser_new): Initialize `parser'.
4845 Update initialization of parsing stream.
4846 (event_location_to_sals): New function.
4847 (decode_line_full): Change `argptr' to a struct event_location and
4848 rename it `location'.
4849 Use locations instead of address strings.
4850 Call event_location_to_sals instead of parse_linespec.
4851 (decode_line_1): Likewise.
4852 (decode_line_with_current_source, decode_line_with_last_displayed)
4853 Use locations instead of address strings.
4854 (decode_objc): Likewise.
4855 Change `argptr' to const char * and rename `arg'.
4856 (destroy_linespec_result): Delete the linespec result's location
4857 instead of freeing the address string.
4858 * linespec.h (struct linespec_result) <addr_string>: Change to
4859 struct event_location and rename to ...
4860 <location>: ... this.
4861 (decode_line_1, decode_line_full): Change `argptr' to struct
4862 event_location. All callers updated.
4863 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4864 (mi_cmd_break_insert_1): Use locations instead of address strings.
4865 Throw an error if there was "garbage" at the end of the specified
4867 * probe.c: Include location.h.
4868 (parse_probes): Change `argptr' to struct event_location.
4869 Use event locations instead of address strings.
4870 * probe.h (parse_probes): Change `argptr' to struct event_location.
4871 * python/py-breakpoint.c: Include location.h.
4872 (bppy_get_location): Constify local variable `str'.
4873 Use event_location_to_string.
4874 (bppy_init): Use locations instead of address strings.
4875 * python/py-finishbreakpoint.c: Include location.h.
4876 (bpfinishpy_init): Remove local variable `addr_str'.
4877 Use locations instead of address strings.
4878 * python/python.c: Include location.h.
4879 (gdbpy_decode_line): Use locations instead of address strings.
4880 * remote.c: Include location.h.
4881 (remote_download_tracepoint): Use locations instead of address
4883 * spu-tdep.c: Include location.h.
4884 (spu_catch_start): Remove local variable `buf'.
4885 Use locations instead of address strings.
4886 * tracepoint.c: Include location.h.
4887 (scope_info): Use locations instead of address strings.
4888 (encode_source_string): Constify parameter `src'.
4889 * tracepoint.h (encode_source_string): Likewise.
4891 2015-08-11 Keith Seitz <keiths@redhat.com>
4893 * Makefile.in (SFILES): Add location.c.
4894 (HFILES_NO_SRCDIR): Add location.h.
4895 (COMMON_OBS): Add location.o.
4896 * linespec.c (linespec_lex_to_end): New function.
4897 * linespec.h (linespec_lex_to_end): Declare.
4898 * location.c: New file.
4899 * location.h: New file.
4901 2015-08-11 Keith Seitz <keiths@redhat.com>
4903 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4904 Renamed to create_sals_from_location.
4905 <decode_linespec>: Renamed to decode_location.
4907 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4908 (create_sals_from_location_default): ... this.
4909 (addr_string_to_sals): Renamed to ...
4910 (location_to_sals): ... this.
4911 (decode_linespec_default): Renamed to ...
4912 (decode_location_default): ... this.
4913 (base_breakpoint_create_sals_from_address): Renamed to ...
4914 (base_breakpoint_create_sals_from_location): ... this.
4915 (bkpt_create_sals_from_address): Renamed to ...
4916 (bkpt_create_sals_from_location): ... this.
4917 (bkpt_decode_linespec): Renamed to ...
4918 (bkpt_decode_location): ... this.
4919 (bkpt_probe_create_sals_from_address): Renamed to ...
4920 (bkpt_probe_create_sals_from_location): ... this.
4921 (tracepoint_create_sals_from_address): Renamed to ...
4922 (tracepoint_create_sals_from_location): ... this.
4923 (tracepoint_decode_linespec): Renamed to ...
4924 (tracepoint_decode_location): ... this.
4925 (tracepoint_probe_create_sals_from_address): Renamed to ...
4926 (tracepoint_probe_create_sals_from_location): ... this.
4927 (tracepoint_probe_decode_linespec): Renamed to ...
4928 (tracepoint_probe_decode_location): ... this.
4929 (strace_marker_create_sals_from_address): Renamed to ...
4930 (strace_marker_create_sals_from_location): ... this.
4931 (decode_linespec_default): Renamed to ...
4932 (decode_location_default): ... this.
4934 2015-08-10 Doug Evans <dje@google.com>
4935 Keith Seitz <keiths@redhat.com>
4938 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4939 make_file_symbol_completion_list and made static.
4940 (make_file_symbol_completion_list): New function.
4942 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4944 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4945 trailing new-line at end of warning message.
4946 (proceed): Add i18n marker to error messages.
4948 2015-08-07 Pedro Alves <palves@redhat.com>
4950 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4952 2015-08-07 Pedro Alves <palves@redhat.com>
4954 * s390-linux-tdep.c (is_non_branch_ril)
4955 (s390_displaced_step_copy_insn): New functions.
4956 (s390_displaced_step_fixup): Update comment.
4957 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4958 gdbarch_displaced_step_copy_insn hook.
4960 2015-08-07 Pedro Alves <palves@redhat.com>
4962 * infrun.c (displaced_step_prepare_throw): Return -1 if
4963 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4965 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4966 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4968 (ppc_displaced_step_copy_insn): New function.
4969 (ppc_displaced_step_fixup): Update comment.
4970 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4971 gdbarch_displaced_step_copy_insn hook.
4972 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4974 * gdbarch.h: Regenerate.
4976 2015-08-07 Pedro Alves <palves@redhat.com>
4978 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4980 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4981 Return false if dispaced stepping failed before.
4982 (resume): Pass the current inferior to
4983 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4984 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4985 displaced_stepping_failed flag, and fall back to an in-line
4988 2015-08-07 Pedro Alves <palves@redhat.com>
4990 * darwin-nat.c (darwin_stop): Rename to ...
4991 (darwin_interrupt): ... this.
4992 (_initialize_darwin_inferior): Adjust.
4993 * gnu-nat.c (gnu_stop): Delete.
4994 (gnu_target): Don't install gnu_stop.
4995 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4996 (inf_ptrace_interrupt): ... this.
4997 (inf_ptrace_target): Adjust.
4998 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5000 * linux-nat (linux_nat_stop): Rename to ...
5001 (linux_nat_interrupt): ... this.
5002 (linux_nat_stop): Reimplement.
5003 (linux_nat_add_target): Install linux_nat_interrupt.
5004 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5005 (nto_handle_sigint_twice): ... this.
5006 (nto_interrupt): Rename to ...
5007 (nto_handle_sigint): ... this. Call target_interrupt instead of
5009 (procfs_wait): Adjust.
5010 (procfs_stop): Rename to ...
5011 (procfs_interrupt): ... this.
5012 (init_procfs_targets): Adjust.
5013 * procfs.c (procfs_stop): Rename to ...
5014 (procfs_interrupt): ... this.
5015 (procfs_target): Adjust.
5016 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5017 (m32r_interrupt): ... this.
5018 (init_m32r_ops): Adjust.
5019 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5020 (gdbsim_interrupt_inferior): ... this.
5021 (gdbsim_stop): Rename to ...
5022 (gdbsim_interrupt): ... this.
5023 (gdbsim_cntrl_c): Adjust.
5024 (init_gdbsim_ops): Adjust.
5025 * remote.c (sync_remote_interrupt): Adjust comments.
5026 (remote_stop_as): Rename to ...
5027 (remote_interrupt_as): ... this.
5028 (remote_stop): Adjust comment.
5029 (remote_interrupt): New function.
5030 (init_remote_ops): Install remote_interrupt.
5031 * target.c (target_interrupt): New function.
5032 * target.h (struct target_ops) <to_interrupt>: New field.
5033 (target_interrupt): New declaration.
5034 * windows-nat.c (windows_stop): Rename to ...
5035 (windows_interrupt): ... this.
5036 * target-delegates.c: Regenerate.
5038 2015-08-07 Pedro Alves <palves@redhat.com>
5040 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5041 threads" as alternative to "switching back to stepped thread".
5043 2015-08-07 Pedro Alves <palves@redhat.com>
5045 * NEWS: Mention "maint set/show target-non-stop".
5046 * breakpoint.c (update_global_location_list): Check
5047 target_is_non_stop_p instead of non_stop.
5048 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5049 * infrun.c (show_can_use_displaced_stepping)
5050 (can_use_displaced_stepping_p, start_step_over_inferior):
5052 (internal_resume_ptid): New function.
5054 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5055 all-stop mode but the target is always in non-stop mode, start all
5056 the other threads that are implicitly resumed too.
5057 (for_each_just_stopped_thread, fetch_inferior_event)
5058 (adjust_pc_after_break, stop_all_threads): Check
5059 target_is_non_stop_p instead of non_stop.
5060 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5061 with the target always in non-stop mode.
5062 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5063 instead of non_stop.
5064 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5065 instead of non_stop.
5066 (keep_going_stepped_thread): Use internal_resume_ptid.
5067 (stop_waiting): If in all-stop mode, and the target is in non-stop
5068 mode, stop all threads.
5069 (keep_going_pass): Likewise, when starting a new in-line step-over
5071 * linux-nat.c (get_pending_status, select_event_lwp)
5072 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5073 target_is_non_stop_p instead of non_stop.
5074 (linux_nat_always_non_stop_p): New function.
5075 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5076 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5077 * target-delegates.c: Regenerate.
5078 * target.c (target_is_non_stop_p): New function.
5079 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5080 (maint_set_target_non_stop_command)
5081 (maint_show_target_non_stop_command): New functions.
5082 (_initilize_target): Install "maint set/show target-non-stop"
5084 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5085 (target_non_stop_enabled): New declaration.
5086 (target_is_non_stop_p): New declaration.
5088 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5090 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5091 has a pending status, return true.
5092 * gdbthread.h: Include target/waitstatus.h.
5093 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5094 stop_pc>: New fields.
5095 (struct thread_info) <resumed>: New field.
5096 (set_resumed): Declare.
5097 * infrun.c: Include "event-loop.h".
5098 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5099 (infrun_async): New function.
5100 (clear_step_over_info): Add debug output.
5101 (displaced_step_in_progress_any_inferior): New function.
5102 (displaced_step_fixup): New returns int.
5103 (start_step_over): Handle in-line step-overs too. Assert the
5104 thread is marked resumed.
5105 (resume_cleanups): Clear the thread's resumed flag.
5106 (resume): Set the thread's resumed flag. Return early if the
5107 thread has a pending status. Allow stepping a breakpoint with no
5109 (proceed): Adjust to check 'resumed' instead of 'executing'.
5110 (clear_proceed_status_thread): If the thread has a pending status,
5111 and that status is a finished step, discard the pending status.
5112 (clear_proceed_status): Don't clear step_over_info here.
5113 (random_pending_event_thread, do_target_wait): New functions.
5114 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5116 (wait_one): New function.
5117 (THREAD_STOPPED_BY): New macro.
5118 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5119 (thread_stopped_by_hw_breakpoint): New functions.
5120 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5122 (handle_inferior_event): Also call set_resumed(false) on all
5123 threads implicitly stopped by the event.
5124 (restart_threads, resumed_thread_with_pending_status): New
5126 (finish_step_over): If we were doing an in-line step-over before,
5127 and no longer are after trying to start a new step-over, restart
5128 all threads. If we have multiple threads with pending events,
5129 save the current event and go through the event loop again.
5130 (handle_signal_stop): Return early if finish_step_over returns
5132 <random signal>: If we get a signal while stepping over a
5133 breakpoint in-line in non-stop mode, restart all threads. Clear
5134 step_over_info before delivering the signal.
5135 (keep_going_stepped_thread): Use internal_error instead of
5136 gdb_assert. Mark the thread as resumed.
5137 (keep_going_pass_signal): Assert the thread isn't already resumed.
5138 If some other thread is doing an in-line step-over, defer the
5139 resume. If we just started a new in-line step-over, stop all
5140 threads. Don't clear step_over_info.
5141 (infrun_async_inferior_event_handler): New function.
5142 (_initialize_infrun): Create async event handler with
5143 infrun_async_inferior_event_handler as callback.
5144 (infrun_async): New declaration.
5145 * target.c (target_async): New function.
5146 * target.h (target_async): Declare macro and readd as function
5148 * target/waitstatus.h (enum target_stop_reason)
5149 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5150 * thread.c (new_thread): Clear the new waitstatus field.
5151 (set_resumed): New function.
5153 2015-08-07 Pedro Alves <palves@redhat.com>
5155 * infrun.c (keep_going_stepped_thread): New function, factored out
5157 (switch_back_to_stepped_thread): ... here.
5159 2015-08-07 Pedro Alves <palves@redhat.com>
5161 * infrun.c (currently_stepping): Extend intro comment.
5162 * target.h (target_resume): Extend intro comment.
5164 2015-08-07 Pedro Alves <palves@redhat.com>
5166 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5167 of inferior_ptid. If the stepped thread vanished, return 0
5168 instead of resuming here. Use reset_ecs. Print the prev_pc and
5169 the current stop_pc in log message. Clear trap_expected if the
5170 thread advanced. Don't pass currently_stepping to
5173 2015-08-07 Pedro Alves <palves@redhat.com>
5175 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5176 * infrun.c (struct execution_control_state): Move higher up in the
5178 (reset_ecs): New function.
5179 (start_step_over): Now returns int. Rewrite to use
5180 keep_going_pass_signal instead of manually starting a displaced step.
5181 (resume): Don't call set_running here. If displaced stepping
5182 can't start now, clear trap_expected.
5183 (find_thread_needs_step_over): Delete function.
5184 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5185 If the current thread needs a step over, push it in the step-over
5186 chain. Don't set insert breakpoints nor call resume directly
5187 here. Instead rewrite to use start_step_over and
5188 keep_going_pass_signal.
5189 (finish_step_over): New function.
5190 (handle_signal_stop): Call finish_step_over instead of
5192 (switch_back_to_stepped_thread): If the event thread needs another
5193 step-over do that first. Use start_step_over.
5194 (keep_going_pass_signal): New function, factored out from ...
5195 (keep_going): ... here.
5196 (_initialize_infrun): Comment moved here.
5197 * thread.c (set_running_thread): New function.
5198 (set_running, finish_thread_state): Use set_running_thread.
5200 2015-08-07 Pedro Alves <palves@redhat.com>
5202 * gdbthread.h (struct thread_info) <step_over_prev,
5203 step_over_next>: New fields.
5204 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5205 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5207 * infrun.c (struct displaced_step_request): Delete.
5208 (struct displaced_step_inferior_state) <step_request_queue>:
5210 (displaced_step_prepare): Assert that trap_expected is set. Use
5211 thread_step_over_chain_enqueue. Split starting a new displaced
5213 (start_step_over): ... this new function.
5214 (resume): Assert the thread isn't waiting for a step over already.
5215 (proceed): Assert the thread isn't waiting for a step over
5217 (infrun_thread_stop_requested): Adjust to remove threads from the
5218 embedded step-over chain.
5219 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5220 displaced_step_fixup.
5221 (handle_signal_stop): Call start_step_over after
5222 displaced_step_fixup.
5223 * infrun.h (step_over_queue_head): New declaration.
5224 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5225 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5226 (thread_step_over_chain_enqueue)
5227 (thread_step_over_chain_remove): New functions.
5228 (delete_thread_1): Remove thread from the step-over chain.
5230 2015-08-07 Pedro Alves <palves@redhat.com>
5232 * infrun.c (thread_still_needs_step_over): Rename to ...
5233 (thread_still_needs_step_over_bp): ... this.
5234 (enum step_over_what): New.
5235 (thread_still_needs_step_over): Reimplement.
5237 2015-08-07 Pedro Alves <palves@redhat.com>
5239 * remote.c (remote_wait_as): If not waiting for a stop reply,
5240 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5241 requested, don't block waiting forever.
5243 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5245 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5246 waitstatus pointers instead of an ecs. Adjust.
5247 (handle_inferior_event): Adjust caller.
5249 2015-08-07 Pedro Alves <palves@redhat.com>
5251 * infrun.c (handle_inferior_event): If we get
5252 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5253 mode, mark all threads of the exiting process as not-executing.
5254 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5255 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5256 exiting process, if inferior_ptid still points at a process.
5257 * thread.c (struct current_thread_cleanup) <next>: New field.
5258 (current_thread_cleanup_chain): New global.
5259 (restore_current_thread_ptid_changed): New function.
5260 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5261 current_thread_cleanup_chain list.
5262 (make_cleanup_restore_current_thread): Add the cleanup data to the
5263 current_thread_cleanup_chain list.
5264 (_initialize_thread): Install restore_current_thread_ptid_changed
5265 as thread_ptid_changed observer.
5267 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5269 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5270 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5271 smaller than expected.
5273 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5275 * stack.c (get_frame_language): Moved ...
5276 * frame.c (get_frame_language): ... to here.
5277 * language.h (get_frame_language): Declaration moved to frame.h.
5278 * frame.h: Add language.h include, for language enum.
5279 (get_frame_language): Declaration moved from language.h.
5280 * language.c: Add frame.h include.
5281 * top.c: Add frame.h include.
5282 * symtab.h (struct obj_section): Declare.
5283 (struct cmd_list_element): Declare.
5285 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * language.c (show_language_command): Find selected frame before
5288 asking for the language of that frame.
5289 (set_language_command): Likewise.
5290 * language.h (get_frame_language): Add frame parameter.
5291 * stack.c (get_frame_language): Add frame parameter, assert
5292 parameter is not NULL, update comment and reindent.
5293 * top.c (check_frame_language_change): Pass the selected frame
5294 into get_frame_language.
5296 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5298 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5299 (pt_btrace_insn_flags): New.
5300 (ftrace_add_pt): Call pt_btrace_insn_flags.
5301 * btrace.h (btrace_insn_flag): New.
5302 (btrace_insn) <flags>: New.
5303 * record-btrace.c (btrace_insn_history): Print insn prefix.
5304 * NEWS: Announce it.
5306 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5308 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5309 * configure: Regenerate.
5311 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5313 * Makefile.in (LIBICONV): Define.
5314 (CLIBS): Add LIBICONV.
5315 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5316 * configure: Regenerate.
5318 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5319 Pedro Alves <palves@redhat.com>
5321 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5322 (arm_set_abi): Likewise.
5323 * ax-general.c (ax_print): Likewise.
5324 * c-exp.y (exp : string_exp): Likewise.
5325 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5326 (do_compile_dwarf_expr_to_c): Likewise.
5327 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5329 * dwarf2expr.c (execute_stack_op): Likewise.
5330 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5331 (disassemble_dwarf_expression): Likewise.
5332 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5333 (read_array_order): Likewise.
5334 (abbrev_table_read_table): Likewise.
5335 (read_attribute_value): Likewise.
5336 (skip_unknown_opcode): Likewise.
5337 (dwarf_decode_macro_bytes): Likewise.
5338 (dwarf_decode_macros): Likewise.
5339 * eval.c (value_f90_subarray): Likewise.
5340 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5341 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5342 * infrun.c (handle_command): Likewise.
5343 * memory-map.c (memory_map_start_memory): Likewise.
5344 * osabi.c (set_osabi): Likewise.
5345 * parse.c (operator_length_standard): Likewise.
5346 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5347 single return point.
5348 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5349 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5350 (gdbpy_lookup_global_symbol): Likewise.
5351 * record-full.c (record_full_restore): Likewise.
5352 * regcache.c (regcache_register_status): Likewise.
5353 (regcache_raw_read): Likewise.
5354 (regcache_cooked_read): Likewise.
5355 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5356 * symtab.c (initialize_ordinary_address_classes): Likewise.
5357 * target-debug.h (target_debug_print_signals): Likewise.
5358 * utils.c (do_restore_current_language): Likewise.
5360 2015-08-06 Clem Dickey <clemd@acm.org>
5363 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5365 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5367 * complaints.c (enum complaint_series): Add newlines and remove
5368 out of date comment.
5369 (struct complaints) <series>: Change type to enum
5370 complaint_series and remove out of date comment.
5371 (symfile_complaint_hook): Use equivalent enum value
5372 ISOLATED_MESSAGE instead of 0.
5374 2015-08-06 Pedro Alves <palves@redhat.com>
5376 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5379 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5381 * common/agent.c (symbol_list) <required>: Remove.
5383 2015-08-06 Pedro Alves <palves@redhat.com>
5385 * target/waitstatus.h (enum target_stop_reason)
5386 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5388 2015-08-05 Pedro Alves <palves@redhat.com>
5389 Joel Brobecker <brobecker@adacore.com>
5391 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5392 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5393 case where BS->STOP is not set.
5395 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5397 * nat/gdb_thread_db.h: Add copyright header.
5398 Protect against multiple inclusion.
5400 2015-08-05 Yao Qi <yao.qi@linaro.org>
5402 * aarch64-linux-nat.c (get_thread_id): Remove.
5403 (debug_reg_change_callback): Call ptid_get_lwp instead of
5405 (fetch_gregs_from_thread): Likewise.
5406 (store_gregs_to_thread): Likewise.
5407 (fetch_fpregs_from_thread): Likewise.
5408 (store_fpregs_to_thread): Likewise.
5409 (aarch64_linux_get_debug_reg_capacity): Likewise.
5410 * arm-linux-nat.c (get_thread_id): Remove.
5411 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5412 * xtensa-linux-nat.c (get_thread_id): Remove.
5413 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5414 * arm-linux-nat.c (get_thread_id): Remove.
5415 (GET_THREAD_ID): Remove.
5416 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5417 (store_fpregs, fetch_regs, store_regs): Likewise.
5418 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5419 (fetch_vfp_regs, store_vfp_regs): Likewise.
5420 (arm_linux_read_description): Likewise.
5421 (arm_linux_get_hwbp_cap): Likewise.
5422 * xtensa-linux-nat.c (get_thread_id): Remove.
5423 (GET_THREAD_ID): Remove.
5424 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5427 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5429 * python/py-linetable.c: Fix case of Linetable to LineTable
5430 in docstrings and code comments.
5431 * python/py-symtab.c: Same.
5433 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5435 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5437 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5440 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5443 2015-08-04 Pedro Alves <palves@redhat.com>
5445 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5446 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5447 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5448 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5449 (td_thr_validate_ftype, td_thr_get_info_ftype)
5450 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5451 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5453 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5454 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5455 local macros and use them instead of verbose_dlsym and dlsym
5458 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5460 * nios2-tdep.h: Include opcode/nios2.h here.
5461 (NIOS2_CDX_OPCODE_SIZE): New.
5462 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5463 * nios2-tdep.c: Don't include opcode/nios2.h here.
5464 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5466 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5467 (nios2_match_addi, nios2_match_orhi): Likewise.
5468 (nios2_match_stw, nios2_match_ldw): Likewise.
5469 (nios2_match_rdctl): Likewise.
5470 (nios2_match_stwm, nios2_match_ldwm): New.
5471 (nios2_match_branch): Add cases for R2 encodings.
5472 (nios2_match_jmpi, nios2_match_calli): Likewise.
5473 (nios2_match_jmpr, nios2_match_callr): Likewise.
5474 (nios2_match_break, nios2_match_trap): Likewise.
5475 (nios2_in_epilogue_p): Add R2 support.
5476 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5478 (nios2_breakpoint_from_pc): Handle R2 instructions.
5479 (nios2_get_next_pc): Likewise. Adjust call to
5480 tdep->syscall_next_pc.
5481 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5482 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5483 instruction field macros instead of literal hex values.
5484 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5485 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5486 Use size field from OP instead of assuming all instructions
5488 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5490 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5492 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5493 variable warning with some compilers.
5495 2015-08-03 Yao Qi <yao.qi@linaro.org>
5497 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5498 in comment. Replace "rw" with "type".
5499 (arm_linux_remove_watchpoint): Change type of "rw" to
5500 "enum target_hw_bp_type".
5502 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5504 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5506 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5507 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5508 * mt-tdep.c (mt_skip_prologue): Likewise.
5509 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5511 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5513 * ada-exp.y (write_object_renaming): Replace struct
5514 ada_symbol_info with struct block_symbol. Update field
5515 references accordingly.
5516 (block_lookup, select_possible_type_sym): Likewise.
5517 (find_primitive_type): Likewise. Also update call to
5518 ada_lookup_symbol to extract the symbol itself.
5519 (write_var_or_type, write_name_assoc): Likewise.
5520 * ada-lang.h (struct ada_symbol_info): Remove.
5521 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5522 struct block_symbol.
5523 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5524 (ada_lookup_symbol): Return struct block_symbol instead of a
5526 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5527 with struct block_symbol.
5528 (resolve_subexp, ada_resolve_function, sort_choices,
5529 user_select_syms, is_nonfunction, add_defn_to_vec,
5530 num_defns_collected, defns_collected,
5531 symbols_are_identical_enums, remove_extra_symbols,
5532 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5533 ada_lookup_symbol_list, ada_iterate_over_symbols,
5534 ada_lookup_encoded_symbol, get_var_value): Likewise.
5535 (ada_lookup_symbol): Return a block_symbol instead of a mere
5536 symbol. Replace struct ada_symbol_info with struct
5538 (ada_lookup_symbol_nonlocal): Likewise.
5539 (standard_lookup): Make block passing explicit through
5540 lookup_symbol_in_language.
5541 * ada-tasks.c (get_tcb_types_info): Update the calls to
5542 lookup_symbol_in_language to extract the mere symbol out of the
5544 (ada_tasks_inferior_data_sniffer): Likewise.
5545 * ax-gdb.c (gen_static_field): Likewise for the call to
5547 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5549 (gen_expr): Likewise.
5550 * c-exp.y: Likewise. Remove uses of block_found.
5551 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5552 (classify_name): Likewise. Rename the "sym" local variable to
5554 * c-valprint.c (print_unpacked_pointer): Likewise.
5555 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5556 "sym" parameter from struct symbol * to struct block_symbol.
5557 Use it to remove uses of block_found. Deal with struct
5558 block_symbol from lookup functions.
5559 (gcc_convert_symbol): Likewise. Update the call to
5561 * compile/compile-object-load.c (compile_object_load): Deal with
5562 struct block_symbol from lookup functions.
5563 * cp-namespace.c (cp_lookup_nested_symbol_1,
5564 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5565 cp_search_static_and_baseclasses,
5566 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5567 cp_lookup_symbol_imports_or_template,
5568 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5569 lookup_namespace_scope, cp_lookup_nonlocal,
5570 find_symbol_in_baseclass): Return struct block_symbol instead of
5571 mere symbols and deal with struct block_symbol from lookup
5573 * cp-support.c (inspect_type, replace_typedefs,
5574 cp_lookup_rtti_type): Deal with struct block_symbol from
5576 * cp-support.h (cp_lookup_symbol_nonlocal,
5577 cp_lookup_symbol_from_namespace,
5578 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5579 Return struct block_symbol instead of mere symbols.
5580 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5582 Deal with struct block_symbol from lookup functions. Remove
5583 uses of block_found.
5584 * eval.c (evaluate_subexp_standard): Update call to
5585 cp_lookup_symbol_namespace.
5586 * f-exp.y: Deal with struct block_symbol from lookup functions.
5587 Remove uses of block_found.
5589 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5590 lookup_enum, lookup_template_type, check_typedef): Deal with
5591 struct block_symbol from lookup functions.
5592 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5593 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5594 (gdbscm_lookup_global_symbol): Likewise.
5595 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5596 * go-exp.y: Likewise. Remove uses of block_found.
5597 (package_name_p, classify_packaged_name, classify_name):
5599 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5600 * jv-exp.y (push_variable): Likewise.
5601 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5602 * language.c (language_bool_type): Likewise.
5603 * language.h (struct language_defn): Update
5604 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5606 * linespec.c (find_label_symbols): Deal with struct block_symbol
5607 from lookup functions.
5608 * m2-exp.y: Likewise. Remove uses of block_found.
5610 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5611 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5612 * p-exp.y: Likewise. Remove uses of block_found.
5614 * p-valprint.c (pascal_val_print): Likewise.
5615 * parse.c (write_dollar_variable): Likewise. Remove uses of
5617 * parser-defs.h (struct symtoken): Turn the SYM field into a
5618 struct block_symbol.
5619 * printcmd.c (address_info): Deal with struct block_symbol from
5621 * python/py-frame.c (frapy_read_var): Likewise.
5622 * python/py-symbol.c (gdbpy_lookup_symbol,
5623 gdbpy_lookup_global_symbol): Likewise.
5624 * skip.c (skip_function_command): Likewise.
5625 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5626 block_symbol instead of a mere symbol.
5627 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5628 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5629 * solib.c (solib_global_lookup): Likewise.
5630 * solist.h (solib_global_lookup): Likewise.
5631 (struct target_so_ops): Update lookup_lib_global_symbol to
5632 return a struct block_symbol rather than a mere symbol.
5633 * source.c (select_source_symtab): Deal with struct block_symbol
5634 from lookup functions.
5635 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5637 * symfile.c (set_initial_language): Likewise.
5638 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5640 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5641 (struct symbol_cache_slot): Turn the FOUND field into a struct
5643 (block_found): Remove.
5644 (eq_symbol_entry): Update to deal with struct block_symbol in
5646 (symbol_cache_lookup): Return a struct block_symbol rather than
5648 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5649 appropriately the cache slots. Update callers.
5650 (symbol_cache_dump): Update cache slots handling to the type
5652 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5653 lookup_symbol_aux, lookup_local_symbol,
5654 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5655 lookup_symbol_in_objfile_symtabs,
5656 lookup_symbol_in_objfile_from_linkage_name,
5657 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5658 lookup_symbol_in_static_block, lookup_static_symbol,
5659 lookup_global_symbol):
5660 Return a struct block_symbol rather than a mere symbol. Deal
5661 with struct block_symbol from other lookup functions. Remove
5662 uses of block_found.
5663 (lookup_symbol_in_block): Remove uses of block_found.
5664 (struct global_sym_lookup_data): Turn the RESULT field into a
5665 struct block_symbol.
5666 (lookup_symbol_global_iterator_cb): Update references to the
5668 (search_symbols): Deal with struct block_symbol from lookup
5670 * symtab.h (struct block_symbol): New structure.
5671 (block_found): Remove.
5672 (lookup_symbol_in_language, lookup_symbol,
5673 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5674 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5675 lookup_global_symbol_from_objfile): Return a struct block_symbol
5676 rather than just a mere symbol. Update comments to remove
5677 mentions of block_found.
5678 * valops.c (find_function_in_inferior,
5679 value_struct_elt_for_reference, value_maybe_namespace_elt,
5680 value_of_this): Deal with struct block_symbol from lookup
5682 * value.c (value_static_field, value_fn_field): Likewise.
5684 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5686 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5689 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5690 Pedro Alves <palves@redhat.com>
5692 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5693 type or value instead of integer.
5694 (aarch64_linux_insert_watchpoint): Likewise.
5695 (aarch64_linux_remove_watchpoint): Likewise.
5696 * ada-lang.c (ada_op_print_tab): Likewise.
5697 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5698 (amd64_linux_syscall_record_common): Likewise.
5699 * arch-utils.c (target_byte_order_user): Likewise.
5700 (default_byte_order): Likewise.
5701 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5702 (arm_linux_get_hwbp_type): Likewise.
5703 (arm_linux_hw_watchpoint_initialize): Likewise.
5704 (arm_linux_insert_watchpoint): Likewise.
5705 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5706 (arm_linux_syscall_record): Likewise.
5707 * breakpoint.c (update_watchpoint): Likewise.
5708 (breakpoint_here_p): Likewise.
5709 (bpstat_print): Likewise.
5710 (enable_breakpoint_disp): Likewise.
5711 * c-lang.c (c_op_print_tab): Likewise.
5712 * cli/cli-decode.c (add_info_alias): Likewise.
5713 * d-lang.c (d_op_print_tab): Likewise.
5714 * eval.c (evaluate_subexp_standard): Likewise.
5715 * f-exp.y (dot_ops): Likewise.
5716 (f77_keywords): Likewise.
5717 * f-lang.c (f_op_print_tab): Likewise.
5718 * go-lang.c (go_op_print_tab): Likewise.
5719 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5720 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5721 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5722 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5723 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5724 (struct scm_from_stringn_data): Likewise.
5725 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5726 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5727 (ia64_linux_remove_watchpoint): Likewise.
5728 (ia64_linux_can_use_hw_breakpoint): Likewise.
5729 * infrun.c (print_stop_event): Likewise.
5730 * jv-lang.c (java_op_print_tab): Likewise.
5731 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5732 * linux-nat.h (struct lwp_info): Likewise.
5733 * linux-thread-db.c (enable_thread_event): Likewise.
5734 * m2-lang.c (m2_op_print_tab): Likewise.
5735 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5736 (mi_cmd_stack_list_variables): Likewise.
5737 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5738 * mi/mi-out.c (mi_table_begin): Likewise.
5739 (mi_table_header): Likewise.
5740 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5741 (mips_linux_insert_watchpoint): Likewise.
5742 (mips_linux_remove_watchpoint): Likewise.
5743 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5744 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5745 (mips_linux_watch_type_to_irw): Likewise.
5746 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5747 (procfs_insert_hw_watchpoint): Likewise.
5748 (procfs_remove_hw_watchpoint): Likewise.
5749 (procfs_hw_watchpoint): Likewise.
5750 (procfs_can_use_hw_breakpoint): Likewise.
5751 (procfs_remove_hw_watchpoint): Likewise.
5752 (procfs_insert_hw_watchpoint): Likewise.
5753 * p-lang.c (pascal_op_print_tab): Likewise.
5754 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5755 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5756 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5757 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5758 (procfs_insert_watchpoint): Likewise.
5759 (procfs_remove_watchpoint): Likewise.
5760 * psymtab.c (recursively_search_psymtabs): Likewise.
5761 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5762 (m32r_insert_watchpoint): Likewise.
5763 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5764 (mips_insert_watchpoint): Likewise.
5765 (mips_remove_watchpoint): Likewise.
5766 * remote.c (watchpoint_to_Z_packet): Likewise.
5767 (remote_insert_watchpoint): Likewise.
5768 (remote_remove_watchpoint): Likewise.
5769 (remote_check_watch_resources): Likewise.
5770 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5771 (s390_remove_watchpoint): Likewise.
5772 (s390_can_use_hw_breakpoint): Likewise.
5773 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5774 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5775 * target.h (struct target_ops): Likewise.
5776 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5777 * ui-out.c (struct ui_out_hdr): Likewise.
5778 (append_header_to_list): Likewise.
5779 (get_next_header): Likewise.
5780 (verify_field): Likewise.
5781 (ui_out_begin): Likewise.
5782 (ui_out_field_int): Likewise.
5783 (ui_out_field_fmt_int): Likewise.
5784 (ui_out_field_skip): Likewise.
5785 (ui_out_field_string): Likewise.
5786 (ui_out_field_fmt): Likewise.
5787 * varobj.c (new_variable): Likewise.
5788 * x86-nat.c (x86_insert_watchpoint): Likewise.
5789 (x86_remove_watchpoint): Likewise.
5790 (x86_can_use_hw_breakpoint): Likewise.
5791 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5792 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5793 previously anonymous enumeration type..
5794 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5796 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5797 (target_debug_print_enum_bptype): New.
5798 * target-delegates.c: Regenerate.
5800 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5802 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5803 already says and disallow non-stack memory writes in the prologue.
5805 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5807 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5808 reflect how current GCC emits stack overflow checks. Match
5809 both trap and break instructions for backward compatbility.
5810 Disallow other trap and break instructions in the prologue.
5812 2015-07-30 Pedro Alves <palves@redhat.com>
5815 * linux-nat.c (wait_lwp): Report to the core when thread group
5818 2015-07-30 Pedro Alves <palves@redhat.com>
5819 Simon Marchi <simon.marchi@ericsson.com>
5822 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5823 mark the new thread as resumed. Remove STOPPING parameter.
5824 (wait_lwp): Adjust call to linux_handle_extended_wait.
5825 (linux_nat_filter_event): Adjust call to
5826 linux_handle_extended_wait.
5827 (resume_stopped_resumed_lwps): Add debug output.
5829 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5831 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5833 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5834 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5835 gdbarch_fast_tracepoint_valid_at.
5836 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5837 * gdbarch.h: Regenerate.
5838 * gdbarch.c: Regenerate.
5839 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5840 argument. Do not set it.
5841 * remote.c (remote_download_tracepoint): Adjust call to
5842 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5843 the instruction length.
5845 2015-07-30 Yao Qi <yao.qi@linaro.org>
5847 * arm-tdep.h (enum gdb_regnum): Move it to ...
5848 * arch/arm.h: ... here. New file.
5849 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5851 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5853 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5854 Change its type to int *.
5855 (decode_br): Rename link argument to is_blr. Change its type to
5857 (decode_cb): Rename op argument to is_cbnz. Change its type to
5859 (decode_tb): Rename op argument to is_tbnz. Change its type to
5860 int *. Set is_tbnz to either 1 or 0.
5861 (aarch64_analyze_prologue): Change type of is_link to int. Add
5862 new variables is_cbnz and is_tbnz. Adjust call to
5863 aarch64_decode_cb and aarch64_decode_tb.
5865 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5867 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5869 (mips_linux_new_thread): Likewise.
5870 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5872 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5874 * top.c: Include "tui/tui.h".
5875 (undo_terminal_modifications_before_exit): New static function.
5876 (quit_force): Use it.
5878 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5880 * target.c (terminal_state): Initialize to terminal_is_ours.
5882 2015-07-29 Yao Qi <yao.qi@linaro.org>
5885 * dcache.c (dcache_read_memory_partial): Call
5886 raw_memory_xfer_partial.
5887 * target.c (raw_memory_xfer_partial): Make it non-static.
5888 * target.h (raw_memory_xfer_partial): Declare.
5890 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5892 * c-valprint.c (c_val_print_array): Consider addressable memory
5894 (c_val_print_ptr): Likewise.
5895 (c_val_print_int): Likewise.
5896 * findvar.c (read_frame_register_value): Likewise.
5897 * valarith.c (find_size_for_pointer_math): Likewise.
5898 (value_ptrdiff): Likewise.
5899 (value_subscripted_rvalue): Likewise.
5900 * valops.c (read_value_memory): Likewise (and rename variables).
5901 (value_assign): Likewise.
5902 (value_repeat): Likewise.
5903 (value_array): Likewise.
5904 (value_slice): Likewise.
5905 * valprint.c (generic_val_print_ptr): Likewise.
5906 (generic_val_print_enum): Likewise.
5907 (generic_val_print_bool): Likewise.
5908 (generic_val_print_int): Likewise.
5909 (generic_val_print_char): Likewise.
5910 (generic_val_print_float): Likewise.
5911 (generic_val_print_decfloat): Likewise.
5912 (generic_val_print_complex): Likewise.
5913 (val_print_scalar_formatted): Likewise.
5914 (val_print_array_elements): Likewise.
5915 * value.c (set_value_parent): Likewise.
5916 (value_contents_copy_raw): Likewise.
5917 (set_internalvar_component): Likewise.
5918 (value_primitive_field): Likewise.
5919 (value_fetch_lazy): Likewise.
5920 * value.h (read_value_memory): Update comment.
5922 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5924 * value.c (get_value_arch): New function.
5925 * value.h (get_value_arch): New declaration.
5927 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5929 * value.c (struct value): Update comments.
5931 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5933 * gdbtypes.c (type_length_units): New function.
5934 * gdbtypes.h (type_length_units): New declaration.
5935 (struct type) <length>: Update comment.
5937 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5939 * valprint.c (generic_val_print): Factor out complex
5940 printing code to ...
5941 (generic_val_print_complex): ... this new function.
5943 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5945 * valprint.c (generic_val_print): Factor out decfloat
5946 printing code to ...
5947 (generic_val_print_decfloat): ... this new function.
5949 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5951 * valprint.c (generic_val_print): Factor out float
5952 printing code to ...
5953 (generic_val_print_float): ... this new function.
5955 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5957 * valprint.c (generic_val_print): Factor out char
5958 printing code to ...
5959 (generic_val_print_char): ... this new function.
5961 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5963 * valprint.c (generic_val_print): Factor out integer
5964 printing code to ...
5965 (generic_val_print_int): ... this new function.
5967 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5969 * valprint.c (generic_val_print): Factor out bool
5970 printing code to ...
5971 (generic_val_print_bool): ... this new function.
5973 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5975 * valprint.c (generic_val_print): Factor out function/method
5976 printing code to ...
5977 (generic_val_print_func): ... this new function.
5979 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5981 * valprint.c (generic_val_print): Factor out flags
5982 printing code to ...
5983 (generic_val_print_flags): ... this new function.
5985 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5987 * valprint.c (generic_val_print): Factor out enum
5988 printing code to ...
5989 (generic_val_print_enum): ... this new function.
5991 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5993 * valprint.c (generic_val_print): Factor out reference
5994 printing code to ...
5995 (generic_val_print_ref): ... this new function.
5997 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5999 * valprint.c (generic_val_print): Factor out memberptr
6000 printing code to ...
6001 (generic_val_print_memberptr): ... this new function.
6003 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6005 * valprint.c (generic_val_print): Factor out pointer
6006 printing code to ...
6007 (generic_val_print_ptr): ... this new function.
6009 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6011 * valprint.c (generic_val_print): Factor out array
6012 printing code to ...
6013 (generic_val_print_array): ... this new function.
6015 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6017 * valprint.c (generic_val_print): Factor out
6018 print_unpacked_pointer code to ...
6019 (print_unpacked_pointer): ... this new function.
6021 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6023 * event-top.c (handle_sigterm): Don't inspect
6024 target_can_async_p. Always set the quit flag and always mark
6025 the async signal handler.
6027 2015-07-27 Yao Qi <yao.qi@linaro.org>
6029 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6031 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6033 * remote.c (read_ptid): Return null_ptid when no thread id
6035 (remote_current_thread): Add log warning for malformed
6037 (remote_start_remote): Add log warning when current thread
6040 2015-07-24 Pedro Alves <palves@redhat.com>
6042 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6043 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6044 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6046 2015-07-24 Pedro Alves <palves@redhat.com>
6049 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6050 is resumed, and extend the debug log.
6052 2015-07-24 Pedro Alves <palves@redhat.com>
6054 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6056 2015-07-24 Pedro Alves <palves@redhat.com>
6058 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6060 * alpha-linux-nat.c: Likewise.
6061 * amd64-linux-nat.c: Likewise.
6062 * arm-linux-nat.c: Likewise.
6063 * hppa-linux-nat.c: Likewise.
6064 * i386-linux-nat.c: Likewise.
6065 * ia64-linux-nat.c: Likewise.
6066 * linux-fork.c: Likewise.
6067 * linux-nat.c: Likewise.
6068 * m32r-linux-nat.c: Likewise.
6069 * m68klinux-nat.c: Likewise.
6070 * mips-linux-nat.c: Likewise.
6071 * nat/linux-btrace.c: Likewise.
6072 * nat/linux-ptrace.c: Likewise.
6073 * nat/linux-ptrace.h
6074 * nat/mips-linux-watch.c: Likewise.
6075 * nat/x86-linux-dregs.c: Likewise.
6076 * ppc-linux-nat.c: Likewise.
6077 * s390-linux-nat.c: Likewise.
6078 * spu-linux-nat.c: Likewise.
6079 * tilegx-linux-nat.c: Likewise.
6080 * x86-linux-nat.c: Likewise.
6081 * xtensa-linux-nat.c: Likewise.
6083 2015-07-24 Pedro Alves <palves@redhat.com>
6085 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6086 __ptrace_request as first parameter type instead of int.
6087 (PTRACE_TYPE_ARG1): Define.
6088 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6089 that casts first argument to PTRACE_TYPE_ARG1.
6090 * config.in: Regenerate.
6091 * configure: Regenerate.
6093 2015-07-24 Pedro Alves <palves@redhat.com>
6095 * gdb_ptrace.h: Move ...
6096 * nat/gdb_ptrace.h: ... here.
6097 * inf-ptrace.c: Adjust.
6099 2015-07-24 Pedro Alves <palves@redhat.com>
6101 * acinclude.m4: Include ptrace.m4.
6102 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6103 * ptrace.m4: ... to this new file.
6105 2015-07-23 Doug Evans <dje@google.com>
6107 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6108 (load_cu): Handle dummy CUs.
6109 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6110 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6112 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6114 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6115 documentation to say that it returns a list rather than
6117 (linetable_object_methods): Update the docstring of the
6118 "source_line" entry.
6120 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6122 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6123 type to the recursive call instead of the original (maybe
6124 TYPE_CODE_TYPEDEF) type.
6126 2015-07-23 Yao Qi <yao.qi@linaro.org>
6128 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6129 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6130 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6132 2015-07-21 Yao Qi <yao.qi@linaro.org>
6134 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6135 Move it to nat/aarch64-linux-hw-point.c.
6136 (aarch64_linux_child_post_startup_inferior): Update.
6137 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6139 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6142 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6144 * common/btrace-common.c (btrace_data_append): Change case label.
6146 2015-07-20 Yao Qi <yao.qi@linaro.org>
6148 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6150 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6151 "unsigned long long".
6153 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6155 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6156 to be set for SEC_ALLOC sections too.
6158 2015-07-17 Yao Qi <yao.qi@linaro.org>
6160 * Makefile.in (HFILES_NO_SRCDIR): Add
6161 nat/aarch64-linux-hw-point.h.
6162 (aarch64-linux-hw-point.o): New rule.
6163 * nat/aarch64-linux-hw-point.h: New file.
6164 * nat/aarch64-linux-hw-point.c: New file.
6165 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6166 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6167 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6168 (AARCH64_HWP_ALIGNMENT): Likewise.
6169 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6170 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6171 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6172 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6173 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6174 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6175 (struct aarch64_debug_reg_state): Likewise.
6176 (struct arch_lwp_info): Likewise.
6177 (aarch64_linux_set_debug_regs): Likewise.
6178 (aarch64_notify_debug_reg_change): Remove static.
6179 (aarch64_align_watchpoint): Likewise.
6180 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6181 (aarch64_watchpoint_length): Likewise.
6182 (aarch64_point_encode_ctrl_reg): Likewise
6183 (aarch64_point_is_aligned): Likewise.
6184 (aarch64_dr_state_insert_one_point): Likewise.
6185 (aarch64_dr_state_remove_one_point): Likewise.
6186 (aarch64_handle_breakpoint): Likewise.
6187 (aarch64_handle_aligned_watchpoint): Likewise.
6188 (aarch64_handle_unaligned_watchpoint): Likewise.
6189 (aarch64_handle_watchpoint): Likewise.
6190 * config/aarch64/linux.mh (NAT_FILE): Add
6191 aarch64-linux-hw-point.o.
6193 2015-07-17 Yao Qi <yao.qi@linaro.org>
6195 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6196 state and don't call aarch64_get_debug_reg_state. All callers
6198 (aarch64_linux_insert_hw_breakpoint): Call
6199 aarch64_get_debug_reg_state earlier.
6200 (aarch64_linux_remove_hw_breakpoint): Likewise.
6201 (aarch64_handle_aligned_watchpoint): Add argument state and
6202 don't call aarch64_get_debug_reg_state. All callers update.
6203 (aarch64_handle_unaligned_watchpoint): Likewise.
6204 (aarch64_handle_watchpoint): Add argument state.
6205 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6207 (aarch64_linux_remove_watchpoint): Likewise.
6209 2015-07-17 Yao Qi <yao.qi@linaro.org>
6211 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6213 (aarch64_handle_unaligned_watchpoint): Likewise.
6215 2015-07-17 Yao Qi <yao.qi@linaro.org>
6217 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6218 argument type's type to 'enum target_hw_bp_type'.
6219 (aarch64_dr_state_remove_one_point): Likewise.
6220 (aarch64_handle_breakpoint): Likewise.
6221 (aarch64_linux_insert_hw_breakpoint): Likewise.
6222 (aarch64_linux_remove_hw_breakpoint): Likewise.
6223 (aarch64_handle_aligned_watchpoint): Likewise.
6225 2015-07-17 Yao Qi <yao.qi@linaro.org>
6227 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6228 ptid_get_pid instead of get_thread_id.
6230 2015-07-17 Yao Qi <yao.qi@linaro.org>
6232 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6233 (add_current_inferior_and_thread): Don't initialise ptid.
6235 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6237 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6238 unavailable if invalid.
6240 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6242 Revert the previous 6 commits:
6243 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6244 Move gdb_regex* to common/
6245 Prepare linux_find_memory_regions_full & co. for move
6246 Move linux_find_memory_regions_full & co.
6247 gdbserver build-id attribute generator
6248 Validate symbol file using build-id
6250 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6251 Jan Kratochvil <jan.kratochvil@redhat.com>
6253 Validate symbol file using build-id.
6254 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6255 and 'show validate-build-id'. Add build-id attribute.
6256 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6257 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6258 * solib-frv.c (_initialize_frv_solib): Ditto.
6259 * solib-spu.c (set_spu_solib_ops): Ditto.
6260 * solib-svr4.c: Include rsp-low.h.
6261 (NOTE_GNU_BUILD_ID_NAME): New define.
6262 (svr4_validate): New function.
6263 (svr4_copy_library_list): Duplicate field build_id.
6264 (library_list_start_library): Parse 'build-id' attribute.
6265 (svr4_library_attributes): Add 'build-id' attribute.
6266 (_initialize_svr4_solib): Assign validate value.
6267 * solib-target.c (solib.h): Include.
6268 (_initialize_solib_target): Assign validate value.
6269 * solib.c (validate_build_id, show_validate_build_id): New.
6270 (solib_map_sections): Use ops->validate.
6271 (clear_so): Free build_id.
6272 (default_solib_validate): New function.
6273 (_initialize_solib): Add "validate-build-id".
6274 * solib.h (default_solib_validate): New declaration.
6275 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6276 (target_so_ops): New field 'validate'.
6278 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6279 Jan Kratochvil <jan.kratochvil@redhat.com>
6281 gdbserver build-id attribute generator.
6282 * features/library-list-svr4.dtd (library-list-svr4): New
6283 'build-id' attribute.
6285 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6286 Jan Kratochvil <jan.kratochvil@redhat.com>
6288 Move linux_find_memory_regions_full & co.
6289 * linux-tdep.c (nat/linux-maps.h): Include.
6290 (gdb_regex.h): Remove the include.
6291 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6292 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6293 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6294 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6295 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6296 and target/target.h.
6297 (struct smaps_vmflags, read_mapping, decode_vmflags)
6298 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6299 (linux_find_memory_regions_full): Move from linux-tdep.c.
6300 * nat/linux-maps.h (read_mapping): New declaration.
6301 (linux_find_memory_region_ftype, enum filterflags): Moved from
6303 (linux_find_memory_regions_full): New declaration.
6304 * target.c (target/target-utils.h): Include.
6305 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6306 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6307 definitions to target/target-utils.c.
6308 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6309 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6311 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6312 (read_alloc): New declaration.
6313 (read_stralloc_func_ftype): New typedef.
6314 (read_stralloc): New declaration.
6315 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6317 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6318 Jan Kratochvil <jan.kratochvil@redhat.com>
6320 Prepare linux_find_memory_regions_full & co. for move.
6321 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6322 (linux_find_memory_regions_full): Change signature and prepare
6323 for moving to linux-maps.
6324 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6325 (linux_find_memory_regions_thunk): New.
6326 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6327 (linux_find_memory_regions_gdb): New.
6328 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6329 (linux_make_mappings_corefile_notes): Use
6330 linux_find_memory_regions_gdb.
6331 * target.c (read_alloc_pread_ftype): New typedef.
6332 (target_fileio_read_alloc_1_pread): New function.
6333 (read_alloc): Refactor from target_fileio_read_alloc_1.
6334 (read_stralloc_func_ftype): New typedef.
6335 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6336 (read_stralloc): Refactored from target_fileio_read_stralloc.
6337 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6339 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6341 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6343 (COMMON_OBS): Add gdb_regex.o.
6345 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6346 --without-included-regex and USE_INCLUDED_REGEX.
6347 * common/gdb_regex.c: New file from utils.c functions.
6348 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6349 file wrapping define name.
6350 * configure: Rebuilt.
6351 * configure.ac (gdb_use_included_regex, --without-included-regex)
6352 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6353 * gdb_regex.h: Move it to common/gdb_regex.h.
6354 * utils.c: Remove include gdb_regex.h.
6355 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6356 (compile_rx_or_error): Move them to common/gdb_regex.c.
6358 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6359 Jan Kratochvil <jan.kratochvil@redhat.com>
6361 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6362 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6363 common/target-utils.h.
6364 (COMMON_OBS): Add target-utils.o.
6365 (linux-maps.o, target-utils.o): New.
6366 * target/target-utils.c: New file.
6367 * target/target-utils.h: New file.
6368 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6369 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6370 * nat/linux-maps.c: New file.
6371 * nat/linux-maps.h: New file.
6373 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6374 Pedro Alves <palves@redhat.com>
6376 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6377 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6378 (perf_event_read_bts): Change the type of SIZE and READ.
6379 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6380 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6381 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6383 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6384 buffer size to UINT_MAX.
6385 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6387 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6388 <last_head>: Change type.
6389 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6390 * common/btrace-common.c (btrace_data_append): Change the type of
6392 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6395 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6397 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6398 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6400 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6401 (ada_array_length): Likewise.
6402 (find_parallel_type_by_descriptive_type): Likewise.
6403 (ada_check_typedef): Likewise.
6404 * arm-tdep.c (arm_return_in_memory): Likewise.
6405 * ax-gdb.c (gen_trace_static_fields): Likewise.
6406 (gen_struct_ref_recursive): Likewise.
6407 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6408 (variable: block COLONCOLON name): Likewise.
6409 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6410 * c-lang.c (classify_type): Likewise.
6411 * c-typeprint.c (c_print_type): Likewise.
6412 (c_print_typedef): Likewise.
6413 (c_type_print_base): Likewise.
6414 * c-valprint.c (c_val_print): Likewise.
6415 * compile/compile-c-types.c (convert_type): Likewise.
6416 * compile/compile-object-load.c (get_out_value_type): Likewise.
6417 * completer.c (add_struct_fields): Likewise.
6418 (expression_completer): Likewise.
6419 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6420 (cp_lookup_nested_symbol_1): Likewise.
6421 (cp_lookup_nested_symbol): Likewise.
6422 * cp-valprint.c (cp_print_value_fields): Likewise.
6423 (cp_print_static_field): Likewise.
6424 * d-valprint.c (d_val_print): Likewise.
6425 * eval.c (evaluate_subexp_standard): Likewise.
6426 (evaluate_subexp_for_sizeof): Likewise.
6427 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6428 * f-typeprint.c (f_type_print_base): Likewise.
6429 * f-valprint.c (f_val_print): Likewise.
6430 * gdbtypes.c (get_discrete_bounds): Likewise.
6431 (create_array_type_with_stride): Likewise.
6432 (type_name_no_tag_or_error): Likewise.
6433 (lookup_struct_elt_type): Likewise.
6434 (get_unsigned_type_max): Likewise.
6435 (internal_type_vptr_fieldno): Likewise.
6436 (set_type_vptr_fieldno): Likewise.
6437 (internal_type_vptr_basetype): Likewise.
6438 (set_type_vptr_basetype): Likewise.
6439 (get_vptr_fieldno): Likewise.
6440 (is_integral_type): Likewise.
6441 (is_scalar_type): Likewise.
6442 (is_scalar_type_recursive): Likewise.
6443 (distance_to_ancestor): Likewise.
6444 (is_unique_ancestor_worker): Likewise.
6445 (check_types_equal): Likewise.
6446 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6448 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6450 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6451 also test for language_d.
6452 (dwarf2_compute_name): Likewise.
6453 (read_func_scope): Likewise.
6454 (read_structure_type): Likewise.
6455 (new_symbol_full): Likewise.
6456 (determine_prefix): Likewise.
6457 (read_import_statement): Use dot as the separator for language_d.
6458 (typename_concat): Likewise, but don't prefix the D main function.
6460 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6462 * nat/linux-namespaces.c (setns): Rename from this ...
6463 (do_setns): ... to this. Support calling setns if it exists.
6464 (mnsh_handle_setns): Call do_setns.
6466 2015-07-13 Yao Qi <yao.qi@linaro.org>
6468 * exec.c (exec_file_attach): Add period at the end of error
6471 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6473 * tui/tui-win.c (window_name_completer): New function.
6474 (focus_completer): Call window_name_completer. All old content
6475 moved into window_name_completer.
6476 (winheight_completer): New function.
6477 (_initialize_tui_win): Rename variable. Add completer to
6478 winheight command. Update doc string on winheight.
6480 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6482 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6483 all nios2 mach variants.
6485 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6487 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6488 of target_read_memory.
6490 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6492 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6494 (parse_scrolling_args): Likewise.
6496 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6498 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6499 names in this function.
6501 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6503 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6504 (CMD_NAME): Likewise.
6505 (DATA_NAME): Likewise.
6506 (DISASSEM_NAME): Likewise.
6507 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6508 (tui_set_win_height): Likewise.
6509 (parse_scrolling_args): Likewise.
6511 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6513 * record-btrace.c (record_btrace_goto_begin)
6514 (record_btrace_goto_end, record_btrace_goto): Move call to
6515 print_stack_frame ...
6516 (record_btrace_set_replay): ... here. Set stop_pc.
6517 * record-full.c (record_full_goto_entry): Set stop_pc.
6519 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6521 * NEWS: Mention support for tracepoints on aarch64-linux.
6523 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6525 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6527 (the_low_target): Install it.
6529 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6531 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6532 * gdb.trace/collection.exp: Likewise.
6533 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6534 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6535 * gdb.trace/report.exp: Likewise.
6536 * gdb.trace/trace-break.exp: Likewise.
6537 * gdb.trace/unavailable.exp: Likewise.
6538 * gdb.trace/while-dyn.exp: Likewise.
6540 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6542 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6543 (aarch64_gen_return_address): New function.
6544 (aarch64_gdbarch_init): Hook it.
6546 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6548 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6549 swallow NOT_AVAILABLE_ERROR.
6550 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6551 available_p is not set.
6552 (aarch64_stub_frame_unwind_stop_reason): New function.
6553 (aarch64_stub_unwind): Install it.
6555 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6557 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6559 (aarch64_make_prologue_cache_1): New function, factored out from
6560 aarch64_make_prologue_cache. Do not allocate cache. Set
6562 (aarch64_make_prologue_cache): Reimplement wrapping
6563 aarch64_make_prologue_cache_1, and swallowing
6564 NOT_AVAILABLE_ERROR.
6565 (aarch64_prologue_frame_unwind_stop_reason): New function.
6566 Return UNWIND_UNAVAILABLE if available_p is not set.
6567 (aarch64_prologue_unwind): Install it.
6568 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6569 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6570 frame_id_build_unavailable_stack if available_p is not set.
6572 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6574 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6576 (aarch64_scan_prologue): Set prev_pc.
6577 (aarch64_make_prologue_cache): Set func.
6578 (aarch64_make_stub_cache): Set prev_pc.
6579 (aarch64_prologue_this_id): Remove local variables id, pc and
6580 func. Read prev_pc and func from cache.
6581 (aarch64_stub_this_id): Read prev_pc from cache.
6583 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6585 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6586 argument this_cache. Remove unused local variables reg and
6587 unwound_fp. Return early if this_cache is already set. Set
6589 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6591 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6593 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6594 New argument this_cache. Return early if this_cache is already
6595 set. Set this_cache.
6596 (aarch64_prologue_this_id): Update call to
6597 aarch64_make_prologue_cache.
6598 (aarch64_prologue_prev_register): Likewise.
6599 (aarch64_normal_frame_base): Likewise.
6601 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6603 * c-valprint.c (c_val_print): Factor out memberptr printing code
6604 from c_val_print to ...
6605 (c_val_print_memberptr): ... this new function.
6607 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6609 * c-valprint.c (c_val_print): Factor out int printing code to ...
6610 (c_val_print_int): ... this new function.
6612 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6614 * c-valprint.c (c_val_print): Factor out struct and union
6615 printing code to ...
6616 (c_val_print_struct): ... this new function ...
6617 (c_val_print_union): ... and this new function.
6619 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6621 * c-valprint.c (c_val_print): Factor out pointer printing code
6623 (c_val_print_ptr): ... this new function.
6625 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6627 * c-valprint.c (c_valprint): Factor our array printing code from
6629 (c_val_print_array): ... this new function.
6631 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6633 * c-valprint.c (c_val_print): Factor out pointer printing code
6635 (print_unpacked_pointer): ... this new function.
6637 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6639 * c-valprint.c (c_val_print): Remove an assignment to i and move
6642 2015-07-09 Yao Qi <yao.qi@linaro.org>
6644 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6645 argument ptid. Update comments. Caller update.
6647 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6649 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6652 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6654 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6656 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6658 * progspace.c (delete_program_space): Add missing spaces.
6660 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6662 * inferior.c (delete_inferior_1): Rename to ...
6663 (delete_inferior): ..., remove 'silent' parameter, delete
6664 program space when unused and remove call to prune_program_spaces.
6665 Remove the old, unused, delete_inferior.
6666 (delete_inferior_silent): Remove.
6667 (prune_inferiors): Change call from delete_inferior_1 to
6668 delete_inferior and remove 'silent' parameter. Remove call to
6669 prune_program_spaces.
6670 (remove_inferior_command): Idem.
6671 * inferior.h (delete_inferior_1): Rename to...
6672 (delete_inferior): ..., remove 'silent' parameter and remove the
6673 original delete_inferior.
6674 (delete_inferior_silent): Remove.
6675 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6676 delete_inferior_1 to delete_inferior and remove 'silent'
6678 * progspace.c (prune_program_spaces): Remove.
6679 (pspace_empty_p): Rename to...
6680 (program_space_empty_p): ... and make non-static.
6681 (delete_program_space): New.
6682 * progspace.h (prune_program_spaces): Remove declaration.
6683 (program_space_empty_p): New declaration.
6684 (delete_program_space): New declaration.
6685 * monitor.c (monitor_close): Replace call to
6686 delete_thread_silent and delete_inferior_silent with
6687 discard_all_inferiors.
6689 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6691 * defs.h (deprecated_register_changed_hook): Remove prototype.
6692 * interps.c (clear_iterpreter_hooks): Remove reference to
6693 deprecated_register_changed_hook.
6694 * top.c (deprecated_register_changed_hook): Remove prototype.
6695 * valops.c (value_assign): Remove reference to
6696 deprecated_register_changed_hook.
6697 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6698 Add comment documenting the function.
6699 (tui_register_changed_observer): Define.
6700 (tui_install_hooks): Remove reference to
6701 deprecated_register_changed_hook. Set
6702 tui_register_changed_observer.
6703 (tui_remove_hooks): Remove reference to
6704 deprecated_register_changed_hook. Unset
6705 tui_register_changed_observer.
6707 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6710 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6712 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6715 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6717 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6719 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6721 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6723 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6724 Use safe_strerror() instead of strerror().
6726 2015-07-07 Yao Qi <yao.qi@linaro.org>
6728 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6729 * features/arm-with-m-fpa-layout.c: Regenerated.
6730 * features/arm-with-m-vfp-d16.xml: Likewise.
6731 * features/arm-with-m-vfp-d16.c: Regenerated.
6732 * features/arm-with-m.xml: Likewise.
6733 * features/arm-with-m.c: Regenerated.
6734 * features/arm-with-neon.xml: Likewise.
6735 * features/arm-with-neon.c: Regenerated.
6736 * features/arm-with-vfpv2.xml: Likewise.
6737 * features/arm-with-vfpv2.c: Regenerated.
6738 * features/arm-with-vfpv3.xml: Likewise.
6739 * features/arm-with-vfpv3.c: Regenerated.
6741 2015-07-07 Yao Qi <yao.qi@linaro.org>
6743 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6745 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6747 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6748 if target is 32-bit.
6749 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6750 if target is 32-bit.
6751 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6752 if target is 32-bit.
6753 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6754 if target is 32-bit.
6755 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6756 (aarch64_linux_read_description): Return the right target
6758 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6759 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6760 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6763 2015-07-07 Yao Qi <yao.qi@linaro.org>
6765 * aarch32-linux-nat.c: New file.
6766 * aarch32-linux-nat.h: New file.
6767 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6768 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6769 aarch32_gp_regcache_supply.
6770 (store_regs): Move code to aarch32-linux-nat.c. Call
6771 aarch32_gp_regcache_collect.
6772 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6773 aarch32_vfp_regcache_supply.
6774 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6775 aarch32_vfp_regcache_collect.
6776 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6778 2015-07-07 Yao Qi <yao.qi@linaro.org>
6780 * arm-linux-nat.c (store_fpregister): Remove.
6781 (store_register): Likewise.
6782 (fetch_fpregister): Likewise.
6783 (fetch_register): Likewise.
6784 (arm_linux_store_inferior_registers): Call store_regs and
6785 store_fpregs instead.
6786 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6789 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6791 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6794 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6796 * NEWS: Create a new section for the next release branch.
6797 Rename the section of the current branch, now that it has
6800 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6802 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6803 * version.in: Bump version to 7.10.50.DATE-cvs.
6805 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6807 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6808 breakpoints in a special way.
6809 (remove_breakpoint): Likewise.
6810 (mark_breakpoints_out): Likewise.
6812 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6814 * doc/gdb.texinfo (TUI): Add comma after @xref.
6816 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6818 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6819 instead of casting the structure type.
6821 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6823 * valops.c (search_struct_field): Remove OFFSET parameter.
6824 (value_cast_structs): Adjust calls to search_struct_field.
6825 (value_struct_elt): Same.
6826 (find_overload_match): Same.
6828 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6830 * value.c (value_fetch_lazy): Update comment, change return
6832 * value.h (value_fetch_lazy): Change return value to void.
6834 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6836 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6837 (tui_win_name): Make parameter and result const.
6838 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6840 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6842 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6843 use printf_unfiltered.
6844 (set_mpx_cmd): Add missing trailing space to command string
6846 (_initialize_i386_tdep): Give the "mpx" prefix command its
6849 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6851 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6852 (enum rx_frame_type): New.
6853 (struct rx_prologue): Add new field `frame_type'.
6854 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6855 parameter in the prologue struct. Add code for recording
6856 locations of PC and PSW for fast interrupt and exception frames.
6857 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6858 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6859 (rx_frame_type): New function.
6860 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6861 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6863 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6864 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6865 RX_FRAME_TYPE_FAST_INTERRUPT.
6866 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6867 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6868 (rx_frame_unwind): Use rx_frame_sniffer instead of
6869 default_frame_sniffer.
6870 (rx_frame_unwind): New unwinder.
6871 (rx_gdbarch_init): Register new unwinder.
6873 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6875 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6876 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6877 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6879 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6881 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6883 Fix GCC false warning.
6884 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6886 2015-07-02 Yao Qi <yao.qi@linaro.org>
6888 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6889 typo in the debugging message.
6891 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6893 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6894 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6895 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6896 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6897 (btrace_maint_clear): New.
6898 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6899 (pt_print_packet, btrace_maint_decode_pt)
6900 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6901 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6902 (maint_btrace_packet_history_cmd)
6903 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6904 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6905 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6906 (maint_info_btrace_cmd, _initialize_btrace): New.
6907 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6908 (btrace_maint_packet_history, btrace_maint_info): New.
6909 (btrace_thread_info) <maint>: New.
6910 * NEWS: Announce it.
6912 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6914 * btrace.c (btrace_fetch): Append the new trace data.
6915 (btrace_clear): Clear the stored trace data.
6916 * btrace.h (btrace_thread_info) <data>: New.
6917 * common/btrace-common.h (btrace_data_clear)
6918 (btrace_data_append): New.
6919 * common/btrace-common.c (btrace_data_clear)
6920 (btrace_data_append): New.
6922 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6924 * nat/linux-btrace.c (linux_enable_bts): Check for
6925 PERF_ATTR_SIZE_VER5.
6926 Check for data_offset and data_size fields. Use them.
6928 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6930 * NEWS: Announce new commands "record btrace pt" and "record pt".
6931 Announce new options "set|show record btrace pt buffer-size".
6932 * btrace.c: Include "rsp-low.h".
6933 Include "inttypes.h".
6934 (btrace_add_pc): Add forward declaration.
6935 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6936 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6937 (btrace_compute_ftrace_pt): New.
6938 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6939 (check_xml_btrace_version): Update version check.
6940 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6941 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6942 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6943 (btrace_pt_children): New.
6944 (btrace_children): Add support for "pt".
6945 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6946 (btrace_conf_children): Add support for "pt".
6947 * btrace.h: Include "intel-pt.h".
6948 (btrace_pt_error): New.
6949 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6950 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6951 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6952 (struct btrace_config_pt): New.
6953 (struct btrace_config)<pt>: New.
6954 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6955 (struct btrace_data)<pt>: New.
6956 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6958 * features/btrace.dtd (btrace)<pt>: New.
6959 (pt, pt-config, cpu): New.
6960 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6961 (perf_event_pt_event_type, kernel_supports_pt)
6962 (linux_supports_pt): New.
6963 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6964 (linux_enable_bts): Free tinfo on error.
6965 (linux_enable_pt): New.
6966 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6967 (linux_disable_pt): New.
6968 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6969 (linux_fill_btrace_pt_config, linux_read_pt): New.
6970 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6971 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6972 (struct btrace_target_info)<pt>: New.
6973 * record-btrace.c (set_record_btrace_pt_cmdlist)
6974 (show_record_btrace_pt_cmdlist): New.
6975 (record_btrace_print_pt_conf): New.
6976 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6977 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6978 (cmd_record_btrace_pt_start): New.
6979 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6980 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6981 (_initialize_record_btrace): Add new commands.
6982 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6983 (remote_protocol_features): Add "Qbtrace:pt".
6984 Add "Qbtrace-conf:pt:size".
6985 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6986 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6987 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6988 (_initialize_remote): Add new commands.
6990 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6992 * configure.ac: check for libipt
6993 * configure: Regenerate.
6994 * config.in: Regenerate.
6995 * Makefile.in (LIBIPT): New.
6996 (CLIBS): Add $LIBIPT.
6997 * NEWS: document new configure options
6999 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7001 * compile/compile-object-load.c (compile_object_load): Replace debug
7002 message "lookup undefined ELF symbol" by 3 more specific messages.
7004 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7006 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7007 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7008 (rl78_gdbarch_init): Initialize rl78_psw_type.
7010 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7012 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7013 Update commentary. Always refresh the registers when frame
7014 information has changed.
7015 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7016 Change return type to int. Return 1 if frame information has
7017 changed, 0 otherwise.
7018 (tui_before_prompt): Update commentary.
7019 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7022 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7025 * frame.c (select_frame): Remove reference to
7026 deprecated_selected_frame_level_changed_hook.
7027 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7029 * stack.c (deprecated_selected_frame_level_changed_hook):
7031 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7033 (tui_refresh_frame_and_register_information): ... this. Bail
7034 out if there is no stack. Don't update register information
7035 unless registers_too_p is true.
7036 (tui_print_frame_info_listing_hook): Rename to ...
7037 (tui_dummy_print_frame_info_listing_hook): ... this.
7038 (tui_before_prompt): New function.
7039 (tui_normal_stop): New function.
7040 (tui_before_prompt_observer): New observer.
7041 (tui_normal_stop_observer): New observer.
7042 (tui_install_hooks): Set
7043 deprecated_print_frame_info_listing_hook to
7044 tui_dummy_print_frame_info_listing_hook. Register
7045 tui_before_prompt_observer to call tui_before_prompt and
7046 tui_normal_stop_observer to call tui_normal_stop. Remove
7047 reference to deprecated_selected_frame_level_changed_hook.
7048 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7049 and tui_normal_stop_observer. Remove reference to
7050 deprecated_selected_frame_level_changed_hook.
7052 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7055 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7056 return an int instead of void. Return whether the locator
7058 (tui_show_frame_info): If the locator info has not changed, then
7059 bail out early to avoid refreshing the windows.
7061 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7063 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7064 LOCATOR_WIN to tui_alloc_content.
7066 2015-06-30 Yao Qi <yao.qi@linaro.org>
7069 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7072 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7074 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7075 (rx_dwarf_reg_to_regnum): New function.
7076 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7079 2015-06-29 Pedro Alves <palves@redhat.com>
7082 * infcall.c (run_inferior_call): On infcall success, if the thread
7083 was marked stopped before, reset it back to stopped.
7084 * infrun.c (resume): Don't suppress the set_running calls when
7086 (normal_stop): Only discard the finish_thread_state cleanup if the
7089 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7091 * MAINTAINERS (Write After Approval): Update my email address.
7093 2015-06-26 Keith Seitz <keiths@redhat.com>
7094 Doug Evans <dje@google.com>
7097 * block.c (block_lookup_symbol): For non-function blocks,
7098 continue to search for a symbol with an exact domain match
7099 Otherwise, return any previously found "best domain" symbol.
7100 (block_lookup_symbol_primary): Likewise.
7102 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7104 * NEWS: Mention the new option "history remove-duplicates".
7105 * top.c (history_remove_duplicates): New static variable.
7106 (show_history_remove_duplicates): New static function.
7107 (gdb_add_history): Conditionally remove duplicate history
7109 (init_main): Add "history remove-duplicates" option.
7111 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7113 * tui/tui-win.c (focus_completer): New static function.
7114 (_initialize_tui_win): Set the completion function of the
7115 "focus" command to focus_completer.
7117 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7121 * symtab.c (find_function_start_sal): Likewise.
7123 2015-06-25 Gary Benson <gbenson@redhat.com>
7125 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7126 it is the empty string after trailing slashes have been stripped.
7128 2015-06-25 Gary Benson <gbenson@redhat.com>
7130 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7131 * infrun.c (follow_exec): Likewise.
7132 * remote.c (remote_filesystem_is_local): Likewise.
7133 * solib.c (solib_find_1): Likewise.
7135 2015-06-24 Keith Seitz <keiths@redhat.com>
7137 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7138 return value from lrealpath.
7140 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7142 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7144 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7146 * remote-sim.c: Include gdb_bfd.h.
7147 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7148 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7150 2015-06-24 Yao Qi <yao.qi@linaro.org>
7152 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7153 set_gdbarch_get_siginfo_type.
7154 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7155 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7156 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7157 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7158 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7159 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7160 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7161 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7162 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7163 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7165 2015-06-24 Gary Benson <gbenson@redhat.com>
7167 * common/buffer.c (stdint.h): Do not include.
7168 * common/print-utils.c (stdint.h): Likewise.
7169 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7170 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7171 * ft32-tdep.c (gdb_assert.h): Likewise.
7172 * guile/scm-utils.c (stdint.h): Likewise.
7173 * i386-linux-tdep.c (stdint.h): Likewise.
7174 * i386-tdep.c (stdint.h): Likewise.
7175 * nat/linux-btrace.c (stdint.h): Likewise.
7176 * nat/linux-btrace.h (stdint.h): Likewise.
7177 * nat/linux-ptrace.c (stdint.h): Likewise.
7178 * nat/mips-linux-watch.h (stdint.h): Likewise.
7179 * ppc-linux-nat.c (stdint.h): Likewise.
7180 * python/python-internal.h (stdint.h): Likewise.
7181 * stub-termcap.c (stdlib.h): Likewise.
7182 * target/target.h (stdint.h): Likewise.
7183 * xtensa-linux-nat.c (stdint.h): Likewise.
7185 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7187 * top.c (init_history): Look at errno after calling strtol to
7188 properly map large GDBHISTSIZE values to infinity.
7190 2015-06-23 Doug Evans <dje@google.com>
7192 * inferior.h (struct inferior_suspend_state): Delete, unused.
7193 All references deleted.
7195 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7197 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7198 (microblaze_push_dummy_call): Likewise.
7199 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7200 and set_gdbarch_push_dummy_call.
7202 2015-06-23 Yao Qi <yao.qi@linaro.org>
7204 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7205 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7206 (amd64_linux_store_inferior_registers): Likewise.
7207 * arm-linux-nat.c (fetch_fpregister): Likewise.
7208 (fetch_fpregs, store_fpregister): Likewise.
7209 (store_fpregister, store_fpregs): Likewise.
7210 (fetch_register, fetch_regs): Likewise.
7211 (store_register, store_regs): Likewise.
7212 (fetch_vfp_regs, store_vfp_regs): Likewise.
7213 (arm_linux_read_description): Check have_ptrace_getregset is
7214 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7216 * i386-linux-nat.c (fetch_xstateregs): Check
7217 have_ptrace_getregset is not TRIBOOL_TRUE.
7218 (store_xstateregs): Likewise.
7219 * linux-nat.c (have_ptrace_getregset): Change its type to
7221 * linux-nat.h (tribool): New enum.
7222 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7223 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7225 2015-06-19 Doug Evans <dje@google.com>
7227 * NEWS: Mention Sun's version of stabs is no longer supported.
7228 * elfread.c (free_elfinfo): Delete. All uses updated.
7229 (elfstab_offset_sections): Delete. All uses updated.
7230 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7231 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7233 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7234 All callers updated.
7236 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7238 * common/rsp-low.c (needs_escaping): New.
7239 (remote_escape_output): Add unit_size parameter. Refactor to
7240 support multi-byte addressable units. Rename parameters.
7241 * common/rsp-low.h (remote_escape_output): Add unit_size
7242 parameter and rename others. Update doc.
7243 * remote.c (align_for_efficient_write): New.
7244 (remote_write_bytes_aux): Add unit_size parameter and use it.
7245 Rename some variables. Update doc.
7246 (remote_xfer_partial): Get unit size and use it.
7247 (remote_read_bytes_1): Add unit_size parameter and use it.
7248 Rename some variables. Update doc.
7249 (remote_write_bytes): Same.
7250 (remote_xfer_live_readonly_partial): Same.
7251 (remote_read_bytes): Same.
7252 (remote_flash_write): Update call to remote_write_bytes_aux.
7253 (remote_write_qxfer): Update call to remote_escape_output.
7254 (remote_search_memory): Same.
7255 (remote_hostio_pwrite): Same.
7257 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7259 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7260 locations as inserted.
7261 Update and expand comment about permanent locations.
7262 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7263 Move comment to add_location_to_breakpoint.
7264 (update_global_location_list): Don't error out if a permanent
7265 breakpoint is not marked inserted.
7266 Don't error out if a non-permanent breakpoint location is inserted on
7267 top of a permanent breakpoint.
7269 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7271 * breakpoint.c (make_breakpoint_permanent): Remove unused
7273 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7275 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7278 * NEWS: Mention new GDBHISTSIZE behavior.
7279 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7280 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7282 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7284 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7285 * top.c (init_history): Read from GDBHISTSIZE instead of
7287 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7289 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7291 * top.c (gdb_safe_append_history): Do not call
7292 history_truncate_file if the history is not stifled.
7294 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7296 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7297 * syscalls/s390x-linux.xml: Likewise.
7299 2015-06-16 Michael Eager <eager@eagercon.com>
7301 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7303 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7305 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7306 target_terminal_ours_for_output() before calling
7307 tui_show_frame_info(), and restore the original terminal
7308 settings afterwards.
7310 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7312 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7314 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7316 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7318 (mi_cmd_data_write_memory_bytes): Same.
7320 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7322 * corefile.c (write_memory): Update doc.
7323 * gdbcore.h (write_memory): Same.
7325 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7327 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7328 (dump_mapping_p): Use it for parameter filterflags.
7329 (linux_find_memory_regions_full): Use it for variable filterflags.
7331 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7332 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 Merge multiple hex conversions.
7335 * monitor.c: Include rsp-low.h.
7336 (fromhex): Remove definition.
7338 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7339 Jan Kratochvil <jan.kratochvil@redhat.com>
7341 Move utility functions to common/.
7342 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7343 Move defs to common/common-utils.c.
7344 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7345 (skip_to_space_const): Move decls to common/common-utils.h.
7346 * common/common-defs.h: Move include of common-types.h before
7348 * common/common-utils.c: Include host-defs.h and ctype.h.
7349 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7351 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7353 * common/common-utils.h (strtoulst): Move decl from utils.h.
7354 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7355 Move from cli/cli-utils.h.
7356 * common/host-defs.h: Include limits.h.
7357 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7358 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7359 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7360 common/common-utils.h.
7361 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7362 (strtoulst): Move to common/common-utils.c.
7363 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7365 2015-06-15 Yao Qi <yao.qi@linaro.org>
7367 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7369 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7371 * build-id.c: Don't include elf-bfd.h.
7372 (build_id_bfd_get): Use bfd_build_id.
7373 (build_id_verify): Ditto.
7374 * build-id.h: Ditto.
7375 (find_separate_debug_file_by_buildid): Ditto.
7376 * python/py-objfile.c: Don't include elf-bfd.h.
7377 (objfpy_get_build_id) Use bfd_build_id.
7378 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7379 * coffread.c: Include build-id.h.
7380 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7382 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7384 * windows-nat.c (do_windows_fetch_inferior_registers)
7385 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7386 conditional with __CYGWIN__.
7388 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7390 * completer.c: Add arch-utils.h include.
7391 (enum reg_completer_targets): New enum.
7392 (reg_or_group_completer_1): New function containing old
7393 reg_or_group_completer, add and use new parameter to control what
7394 is completed on. Use get_current_arch rather than architecture of
7395 currently selected frame.
7396 (reg_or_group_completer): Call new reg_or_group_completer_1.
7397 (reggroup_completer): Call new reg_or_group_completer_1.
7398 * completer.h (reggroup_completer): Add declaration.
7399 * tui/tui-regs.c: Add 'completer.h' include.
7400 (tui_reg_next_command): Renamed to...
7401 (tui_reg_next): ...this. Adjust parameters and return rather than
7403 (tui_reg_prev_command): Renamed to...
7404 (tui_reg_prev): ...this. Adjust parameters and return rather than
7406 (tui_reg_float_command): Delete.
7407 (tui_reg_general_command): Delete.
7408 (tui_reg_system_command): Delete.
7409 (tui_reg_command): Rewrite to perform switching of register group.
7411 (tuireglist): Remove.
7412 (tui_reggroup_completer): New function.
7413 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7414 creation of 'tui reg' command.
7415 * NEWS: Add comment about 'tui reg' changes.
7417 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7419 * target.c (target_read): Consider addressable unit size when
7420 reading from a memory object.
7421 (read_memory_robust): Same.
7422 (read_whatever_is_readable): Same.
7423 (target_write_with_progress): Consider addressable unit size
7424 when writing to a memory object.
7425 * target.h (target_read): Update documentation.
7426 (target_write): Add documentation.
7428 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7430 * arch-utils.h (default_addressable_memory_unit_size): New.
7431 * arch-utils.c (default_addressable_memory_unit_size): New.
7432 * gdbarch.sh (addressable_memory_unit_size): New.
7433 * gdbarch.h: Re-generate.
7434 * gdbarch.c: Re-generate.
7436 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7438 * target.c (target_read): Rename variables and use
7440 (target_read_with_progress): Same.
7441 (read_memory_robust): Constify parameters and rename
7443 (read_whatever_is_readable): Constify parameters,
7444 rename variables, adjust formatting.
7445 * target.h (read_memory_robust): Constify parameters.
7447 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7449 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7450 synthetic (non-AltiVec) vector types.
7451 (ppc64_sysv_abi_return_value): Likewise.
7453 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7455 PR breakpoints/16465
7456 * breakpoint.c (create_breakpoint): Save extra_string for
7457 pending breakpoints.
7459 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7461 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7462 and bt_mask to CORE_ADDR.
7464 2015-06-11 Gary Benson <gbenson@redhat.com>
7466 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7467 (mnsh_recv_message): Likewise.
7469 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7471 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7472 long long int and plongest instead of %ll.
7474 2015-06-11 Gary Benson <gbenson@redhat.com>
7476 * nat/linux-namespaces.c (gdb_wait.h): New include.
7477 (sys/wait.h): Do not include.
7479 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7481 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7482 end_sequence is true.
7484 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7487 * solib-target.c (library_list_start_list): Use explicit NULL
7490 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7492 * solib-target.c (library_list_start_list): Do not dereference
7493 variable version in its initialization. Make the VERSION check handle
7495 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7497 2015-06-10 Gary Benson <gbenson@redhat.com>
7499 * NEWS: Announce support for direct access of executable and
7500 shared library files when attaching to inferiors in containers
7501 on GNU/Linux systems.
7503 2015-06-10 Gary Benson <gbenson@redhat.com>
7505 * remote.c (struct remote_state) <fs_pid>: New field.
7506 (new_remote_state): Initialize the above.
7507 (PACKET_vFile_setfs): New enum value.
7508 (remote_hostio_set_filesystem): New function.
7509 (remote_hostio_open): Call the above.
7510 (remote_hostio_unlink): Likewise.
7511 (remote_hostio_readlink): Likewise.
7512 (_initialize_remote): Register new "set/show remote
7513 hostio-setfs-packet" command.
7514 * NEWS: Announce new vFile:setfs packet.
7516 2015-06-10 Gary Benson <gbenson@redhat.com>
7518 * linux-nat.c (nat/linux-namespaces.h): New include.
7519 (fileio.h): Likewise.
7520 (linux_nat_filesystem_is_local): New function.
7521 (linux_nat_fileio_pid_of): Likewise.
7522 (linux_nat_fileio_open): Likewise.
7523 (linux_nat_fileio_readlink): Likewise.
7524 (linux_nat_fileio_unlink): Likewise.
7525 (linux_nat_add_target): Initialize to_filesystem_is_local,
7526 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7527 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7529 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7531 2015-06-10 Gary Benson <gbenson@redhat.com>
7533 * target.h (struct inferior): New forward declaration.
7534 (struct target_ops) <to_filesystem_is_local>: Update comment.
7535 (struct target_ops) <to_fileio_open>: New argument inf.
7536 Update comment. All implementations updated.
7537 (struct target_ops) <to_fileio_unlink>: Likewise.
7538 (struct target_ops) <to_fileio_readlink>: Likewise.
7539 (target_filesystem_is_local): Update comment.
7540 (target_fileio_open): New argument inf. Update comment.
7541 (target_fileio_unlink): Likewise.
7542 (target_fileio_readlink): Likewise.
7543 (target_fileio_read_alloc): Likewise.
7544 (target_fileio_read_stralloc): Likewise.
7545 * target.c (target_fileio_open): New argument inf.
7546 Pass inf to implementation. Update debug printing.
7547 (target_fileio_unlink): Likewise.
7548 (target_fileio_readlink): Likewise.
7549 (target_fileio_read_alloc_1): New argument inf. Pass inf
7550 to target_fileio_open.
7551 (target_fileio_read_alloc): New argument inf. Pass inf to
7552 target_fileio_read_alloc_1.
7553 (target_fileio_read_stralloc): Likewise.
7554 * gdb_bfd.c (inferior.h): New include.
7555 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7556 argument with new argument "inferior". Pass inferior to
7558 (gdb_bfd_open): Supply inferior argument to
7559 gdb_bfd_iovec_fileio_open.
7560 * linux-tdep.c (linux_info_proc): Supply inf argument to
7561 relevant target_fileio calls.
7562 (linux_find_memory_regions_full): Likewise.
7563 (linux_fill_prpsinfo): Likewise.
7564 * remote.c (remote_filesystem_is_local): Supply inf
7565 argument to remote_hostio_open.
7566 (remote_file_put): Likewise.
7567 (remote_file_get): Likewise.
7568 (remote_file_delete): Supply inf argument to
7569 remote_hostio_unlink.
7571 2015-06-10 Gary Benson <gbenson@redhat.com>
7573 * inf-child.c (inf_child_fileio_open): Replace comment.
7574 (inf_child_fileio_pwrite): Likewise.
7575 (inf_child_fileio_pread): Likewise.
7576 (inf_child_fileio_fstat): Insert blank line before comment.
7577 (inf_child_fileio_close): Replace comment.
7578 (inf_child_fileio_unlink): Likewise.
7579 (inf_child_fileio_readlink): Likewise.
7580 * remote.c (remote_hostio_open): Likewise.
7581 (remote_hostio_pread): Likewise.
7582 (remote_hostio_pwrite): Likewise.
7583 (remote_hostio_close): Likewise.
7584 (remote_hostio_unlink): Likewise.
7585 (remote_hostio_readlink): Likewise.
7586 (remote_hostio_fstat): Likewise.
7587 (remote_filesystem_is_local): Likewise.
7588 * target.c (target_fileio_open): Likewise.
7589 (target_fileio_pwrite): Likewise.
7590 (target_fileio_pread): Likewise.
7591 (target_fileio_fstat): Insert blank line before comment.
7592 (target_fileio_close): Replace comment.
7593 (target_fileio_unlink): Likewise.
7594 (target_fileio_readlink): Likewise.
7595 (target_fileio_read_alloc): Likewise.
7596 (target_fileio_read_stralloc): Likewise.
7598 2015-06-10 Gary Benson <gbenson@redhat.com>
7600 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7601 (check_pid_namespace_match): Use linux_ns_same rather than
7602 linux_proc_pid_get_ns to spot PID namespace mismatches.
7603 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7604 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7606 2015-06-10 Gary Benson <gbenson@redhat.com>
7608 * configure.ac (AC_CHECK_FUNCS): Add setns.
7609 * config.in: Regenerate.
7610 * configure: Likewise.
7611 * nat/linux-namespaces.h: New file.
7612 * nat/linux-namespaces.c: Likewise.
7613 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7614 (linux-namespaces.o): New rule.
7615 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7616 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7617 * config/arm/linux.mh (NATDEPFILES): Likewise.
7618 * config/i386/linux.mh (NATDEPFILES): Likewise.
7619 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7620 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7621 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7622 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7623 * config/mips/linux.mh (NATDEPFILES): Likewise.
7624 * config/pa/linux.mh (NATDEPFILES): Likewise.
7625 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7626 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7627 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7628 * config/s390/linux.mh (NATDEPFILES): Likewise.
7629 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7630 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7631 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7632 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7634 2015-06-10 Gary Benson <gbenson@redhat.com>
7636 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7637 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7638 (make_cleanup_close): Likewise.
7639 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7640 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7641 (make_cleanup_close): Likewise.
7643 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7645 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7646 from SuspendThread().
7648 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7650 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7651 from OutputDebugString.
7653 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7654 Mircea Gherzan <mircea.gherzan@intel.com>
7656 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7657 MPX_BT_MASK_32): New macros.
7658 (i386_mpx_set_bounds): New function that implements
7659 the command "set-mpx-bound".
7660 (i386_mpx_enabled): Helper function to test MPX availability.
7661 (i386_mpx_bd_base): Helper function to calculate the base directory
7663 (i386_mpx_get_bt_entry): Helper function to access a bound
7665 (i386_mpx_print_bounds): Effectively display bound information.
7666 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7668 (_initialize_i386_tdep):
7669 Add "bound" to the commands "show mpx" and "set mpx" commands.
7670 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7671 and "show mpx" commands.
7672 * NEWS: List new commands for MPX support.
7674 2015-06-09 Gary Benson <gbenson@redhat.com>
7676 * common/fileio.h (fileio_to_host_mode): New declaration.
7677 * common/fileio.c (fileio_to_host_mode): New Function.
7678 * inf-child.c (inf_child_fileio_open): Process mode argument
7679 with fileio_to_host_mode.
7681 2015-06-09 Gary Benson <gbenson@redhat.com>
7683 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7686 2015-06-05 Gary Benson <gbenson@redhat.com>
7688 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7689 * remote.c (remote_filesystem_is_local): ...here.
7691 2015-06-04 Yao Qi <yao.qi@linaro.org>
7693 * gdbarch.c: Regenerate it.
7695 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7697 * arch-utils.c (default_infcall_munmap): New.
7698 * arch-utils.h (default_infcall_munmap): New declaration.
7699 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7700 (munmap_list_free, munmap_listp_free_cleanup): New.
7701 (struct setup_sections_data): Add field munmap_list_headp.
7702 (setup_sections): Call munmap_list_add.
7703 (compile_object_load): New variable munmap_list_head, initialize
7704 setup_sections_data.munmap_list_headp, return munmap_list_head.
7705 * compile/compile-object-load.h (struct munmap_list): New declaration.
7706 (struct compile_module): Add field munmap_list_head.
7707 (munmap_list_free): New declaration.
7708 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7710 (do_module_cleanup): Call munmap_list_free.
7711 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7712 * gdbarch.c: Regenerate.
7713 * gdbarch.h: Regenerate.
7714 * gdbarch.sh (infcall_munmap): New.
7715 * linux-tdep.c (linux_infcall_munmap): New.
7716 (linux_init_abi): Install it.
7718 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7721 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7723 2015-06-02 Yao Qi <yao.qi@linaro.org>
7725 * i386-linux-nat.c: Include linux-nat.h.
7727 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7728 Jan Kratochvil <jan.kratochvil@redhat.com>
7731 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7733 * dwarf2loc.c (chain_candidate): Likewise.
7735 2015-06-01 Yao Qi <yao.qi@linaro.org>
7737 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7738 (store_vfp_regs): Use PTRACE_SETREGSET.
7740 2015-06-01 Yao Qi <yao.qi@linaro.org>
7742 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7743 (fetch_fpregs): Likewise.
7744 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7745 (store_fpregs): Likewise.
7747 2015-06-01 Yao Qi <yao.qi@linaro.org>
7749 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7750 (fetch_regs): Likewise.
7751 (store_regs): Use PTRACE_SETREGSET.
7752 (store_register): Likewise.
7754 2015-06-01 Yao Qi <yao.qi@linaro.org>
7756 * arm-linux-nat.c (arm_linux_read_description): Check whether
7757 kernel supports PTRACE_GETREGSET.
7759 2015-06-01 Yao Qi <yao.qi@linaro.org>
7761 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7762 * linux-nat.c: ... here.
7763 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7765 * linux-nat.h: ... here.
7767 2015-06-01 Yao Qi <yao.qi@linaro.org>
7769 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7770 * i386-linux-nat.c: Likewise.
7771 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7772 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7773 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7774 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7775 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7777 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7779 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7780 compatible to what read_child and write_child return. This
7781 unbreaks that DJGPP build of GDB which was broken since v7.7.
7783 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7785 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7787 2015-05-29 Roland McGrath <mcgrathr@google.com>
7790 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7791 rather than internal_error for an unrecognized value.
7793 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7795 * xtensa-tdep.c (xtensa_pseudo_register_read)
7796 (xtensa_pseudo_register_write): Don't alias last pseudo register
7799 2015-05-28 Don Breazeal <donb@codesourcery.com>
7801 * infrun.c (follow_fork_inferior): Ensure the use of
7802 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7805 2015-05-28 Doug Evans <dje@google.com>
7807 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7809 2015-05-28 Yao Qi <yao.qi@linaro.org>
7811 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7812 (arm_linux_fetch_inferior_registers): Use
7813 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7814 (arm_linux_store_inferior_registers): Likewise.
7815 (arm_linux_read_description): Don't set
7816 arm_linux_has_wmmx_registers.
7817 * arm-tdep.c (arm_gdbarch_init): Set
7818 tdep->have_wmmx_registers according target descriptions.
7819 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7822 2015-05-28 Yao Qi <yao.qi@linaro.org>
7824 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7825 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7826 instead of arm_linux_vfp_register_count.
7827 (store_vfp_regs): Likewise.
7828 (arm_linux_fetch_inferior_registers): Likewise.
7829 (arm_linux_store_inferior_registers): Likewise.
7830 (arm_linux_read_description): Don't set
7831 arm_linux_vfp_register_count.
7832 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7834 * arm-tdep.c (arm_gdbarch_init): Add assert on
7836 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7837 field to vfp_register_count. All users updated.
7839 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7841 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7842 ELFOSABI_GNU binaries.
7844 2015-05-27 Doug Evans <dje@google.com>
7846 * dwarf2read.c (lnp_state_machine): New typedef.
7847 (lnp_reader_state): New typedef.
7848 (dwarf_record_line_1): Renamed from dwarf_record_line.
7849 All callers updated.
7850 (dwarf_record_line): New function.
7851 (init_lnp_state_machine): New function.
7852 (check_line_address): Replace p_record_line parameter with state.
7853 All callers updated.
7854 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7855 Update to record state in lnp_state_machine.
7857 2015-05-27 Doug Evans <dje@google.com>
7859 * dwarf2read.c (record_line_ftype): New typedef.
7860 (check_line_address): New function.
7861 (dwarf_decode_lines_1): Call it.
7863 2015-05-27 Doug Evans <dje@google.com>
7865 * NEWS: Mention "set debug dwarf-line".
7866 * dwarf2read.c (dwarf_line_debug): New static global.
7867 (add_include_dir): Add debug dwarf-line support.
7868 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7869 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7871 2015-05-27 Doug Evans <dje@google.com>
7873 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7874 All callers updated.
7875 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7876 * cp-support.h (cp_lookup_nested_symbol): Update.
7878 2015-05-27 Doug Evans <dje@google.com>
7881 * block.c (block_find_symbol): New function.
7882 (block_find_non_opaque_type): Ditto.
7883 (block_find_non_opaque_type_preferred): Ditto.
7884 * block.h (block_symbol_matcher_ftype): New typedef.
7885 (block_find_symbol): Declare.
7886 (block_find_non_opaque_type): Ditto.
7887 (block_find_non_opaque_type_preferred): Ditto.
7888 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7889 * psymtab.c (psym_lookup_symbol): Ditto.
7890 * symtab.c (basic_lookup_transparent_type_1): New function.
7891 (basic_lookup_transparent_type): Call it.
7893 2015-05-27 Yao Qi <yao.qi@linaro.org>
7895 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7896 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7898 2015-05-27 Yao Qi <yao.qi@linaro.org>
7900 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7902 (aarch64_record_load_store): Likewise.
7904 2015-05-26 Doug Evans <dje@google.com>
7906 PR c++/18141, c++/18417.
7907 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7910 2015-05-26 Doug Evans <dje@google.com>
7912 * NEWS: Add entries for command renamings.
7913 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7915 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7916 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7918 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7919 All callers updated. Fix spelling of DWARF in help text.
7920 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7922 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7924 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7925 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7926 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7928 (show_dwarf_always_disassemble): Renamed from
7929 show_dwarf2_always_disassemble. All callers updated.
7930 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7931 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7932 "set/show dwarf max-cache-age". Rename
7933 "set/show dwarf2 always-disassemble" to
7934 "set/show dwarf always-disassemble". Rename
7935 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7936 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7938 2015-05-26 Doug Evans <dje@google.com>
7941 * python/py-lazy-string.c (stpy_convert_to_value): Use
7942 gdbpy_gdb_memory_error not PyExc_MemoryError.
7943 (gdbpy_create_lazy_string_object): Ditto.
7945 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7947 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7949 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7951 * tui/tui-regs.c (tui_reg_prev_command): New function.
7952 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7953 * reggroups.c (reggroup_prev): New function.
7954 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7956 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7957 Yao Qi <yao.qi@linaro.org>
7959 * aarch64-linux-tdep.c: Include linux-record.h and
7961 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7962 (aarch64_syscall): New enum.
7963 (aarch64_canonicalize_syscall): New function.
7964 (aarch64_all_but_pc_registers_record): New function.
7965 (aarch64_linux_syscall_record): New function.
7966 (aarch64_linux_init_abi): Install AArch64 process record
7967 handler. Update to handle syscall recording.
7968 * aarch64-tdep.c: Include record.h and record-full.h.
7969 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7970 (struct aarch64_mem_r): Define.
7971 (aarch64_record_result): New enum.
7972 (struct insn_decode_record): Define.
7973 (insn_decode_record): New typedef.
7974 (aarch64_record_data_proc_reg): New function.
7975 (aarch64_record_data_proc_imm): New function.
7976 (aarch64_record_branch_except_sys): New function.
7977 (aarch64_record_load_store): New function.
7978 (aarch64_record_data_proc_simd_fp): New function.
7979 (aarch64_record_asimd_load_store): New function.
7980 (aarch64_record_decode_insn_handler): New function.
7981 (deallocate_reg_mem): New function.
7982 (aarch64_process_record): New function.
7983 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7985 (aarch64_process_record): New extern declaration.
7986 * configure.tgt: Add linux-record.o to gdb_target_obs.
7987 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7989 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7991 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7994 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7996 * amd64-tdep.c: Replace in_function_epilogue_p with
7997 stack_frame_destroyed_p throughout.
7998 * arch-utils.c: Ditto.
7999 * arch-utils.h: Ditto.
8000 * arm-tdep.c: Ditto.
8001 * breakpoint.c: Ditto.
8002 * gdbarch.sh: Ditto.
8003 * hppa-tdep.c: Ditto.
8004 * i386-tdep.c: Ditto.
8005 * mips-tdep.c: Ditto.
8006 * nios2-tdep.c: Ditto.
8007 * rs6000-tdep.c: Ditto.
8008 * s390-linux-tdep.c: Ditto.
8009 * score-tdep.c: Ditto.
8011 * sparc-tdep.c: Ditto.
8012 * sparc-tdep.h: Ditto.
8013 * sparc64-tdep.c: Ditto.
8014 * spu-tdep.c: Ditto.
8015 * tic6x-tdep.c: Ditto.
8016 * tilegx-tdep.c: Ditto.
8017 * xstormy16-tdep.c: Ditto.
8018 * gdbarch.c, gdbarch.h: Re-generated.
8020 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8022 * NEWS: Mention 'tui enable' and 'tui disable'.
8023 * tui/tui.c (tui_enable_command): New function.
8024 (tui_disable_command): New function.
8025 (_initialize_tui): New function.
8027 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8029 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8031 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8036 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8038 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8040 (tui_set_layout_for_display_command): ...here, before calling
8041 tui_set_layout. Only set the layout if gdb has not already
8042 entered the TUI_FAILURE state.
8044 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8046 * tui/tui-layout.c (layout_completer): New function.
8047 (_initialize_tui_layout): Set completer on layout command.
8049 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8051 * tui/tui-layout.c (tui_set_layout): Remove
8052 tui_register_display_type parameter. Remove all checking of this
8053 parameter, and reindent function. Update header comment.
8054 (tui_set_layout_for_display_command): Rename to...
8055 (tui_set_layout_by_name): ...this, and don't check for different
8056 register class types, don't pass a tui_register_display_type to
8057 tui_set_layout. Update header comment.
8058 (layout_names): Remove register set specific names.
8059 * tui/tui-layout.h (tui_set_layout): Remove
8060 tui_register_display_type parameter.
8061 * tui/tui.c (tui_rl_change_windows): Don't pass a
8062 tui_register_display_type to tui_set_layout.
8063 (tui_rl_delete_other_windows): Likewise.
8064 (tui_enable): Likewise.
8065 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8066 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8067 (TUI_GENERAL_REGS_NAME): Remove.
8068 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8069 (TUI_SPECIAL_REGS_NAME): Remove.
8070 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8071 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8072 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8073 (enum tui_register_display_type): Remove.
8074 (struct tui_layout_def): Remove regs_display_type and
8075 float_regs_display_type fields.
8076 (struct tui_data_info): Remove regs_display_type field.
8077 (tui_layout_command): Use new name for
8078 tui_set_layout_for_display_command.
8079 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8080 (tui_clear_win_detail): Don't initialise removed fields of
8082 * tui/tui-regs.c (tui_show_registers): Use new name for
8083 tui_set_layout_for_display_command.
8084 * tui/tui.h (tui_set_layout_for_display_command): Rename
8086 (tui_set_layout_by_name): ...this.
8087 * printcmd.c (display_command): Remove tui related layout call,
8090 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8092 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8093 (handle_inferior_event): New function.
8095 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8097 * ada-lang.c (to_fixed_array_type): Rename local variable
8098 typename into type_name.
8100 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8102 Fix ASAN crash for gdb.compile/compile.exp.
8103 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8105 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8107 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8108 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8109 * compile/compile-object-load.c (setup_sections, compile_object_load):
8111 * compile/compile.c (compile_to_object): Likewise.
8113 2015-05-16 Doug Evans <xdje42@gmail.com>
8115 * NEWS: Mention support for unbuffered Guile memory ports.
8116 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8117 (ioscm_lseek_address): Improve overflow calculation.
8118 (gdbscm_memory_port_fill_input): Add assert.
8119 (gdbscm_memory_port_write): Handle unbuffered ports.
8120 Handle large writes identical to Guile's fport_write.
8121 (gdbscm_memory_port_seek): Fix seeking past end check.
8122 (gdbscm_memory_port_close): Handle closing unbuffered port.
8123 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8124 (ioscm_init_memory_port): Handle unbuffered ports.
8125 (ioscm_reinit_memory_port): Ditto.
8126 (ioscm_init_memory_port): Update size calculation.
8127 (gdbscm_open_memory): Support zero sized ports.
8129 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8131 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8132 variable compiler warnings.
8134 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8136 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8138 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8139 Phil Muldoon <pmuldoon@redhat.com>
8141 * NEWS (Changes since GDB 7.9): Add compile print.
8142 * compile/compile-c-support.c (add_code_header, add_code_footer)
8143 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8144 COMPILE_I_PRINT_VALUE_SCOPE.
8145 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8146 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8148 * compile/compile-object-load.c: Include block.h.
8149 (get_out_value_type): New function.
8150 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8151 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8153 * compile/compile-object-load.h (struct compile_module): Add fields
8154 out_value_addr and out_value_type.
8155 * compile/compile-object-run.c: Include valprint.h and compile.h.
8156 (struct do_module_cleanup): Add fields out_value_addr and
8158 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8159 COMPILE_I_PRINT_VALUE_SCOPE.
8160 (compile_object_run): Propagate out_value_addr and out_value_type.
8161 Pass OUT_VALUE_ADDR.
8162 * compile/compile.c: Include valprint.h.
8163 (compile_print_value, compile_print_command): New functions.
8164 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8165 (_initialize_compile): Update compile code help text. Install
8166 compile_print_command.
8167 * compile/compile.h (compile_print_value): New prototype.
8168 * defs.h (enum compile_i_scope_types): Add
8169 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8171 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8173 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8174 Rely on its parameter count.
8175 (compile_object_load): Replace lookup_minimal_symbol_text by
8176 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8178 * compile/compile-object-load.h (struct compile_module): Replace
8179 func_addr by func_sym.
8180 * compile/compile-object-run.c: Include block.h.
8181 (compile_object_run): Reset module variable after it is freed. Use
8182 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8184 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8186 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8187 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8188 (c_compute_program): Call generate_register_struct after typedefs.
8189 * compile/compile-loc2c.c (push, pushf_register_address)
8190 (pushf_register): Cast to GCC_UINTPTR.
8191 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8192 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8193 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8194 * compile/compile.c (_initialize_compile): Enable warnings for
8197 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8199 * cli/cli-script.c (execute_control_command): Update
8200 eval_compile_command caller.
8201 * compile/compile-object-load.c (compile_object_load): Add parameters
8202 scope and scope_data. Set them.
8203 * compile/compile-object-load.h (struct compile_module): Add fields
8204 scope and scope_data.
8205 (compile_object_load): Add parameters scope and scope_data.
8206 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8207 scope and scope_data.
8208 (compile_object_run): Propagate the fields scope and scope_data.
8209 * compile/compile.c (compile_file_command, compile_code_command):
8210 Update eval_compile_command callers.
8211 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8212 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8213 * defs.h (struct command_line): Add field scope_data.
8215 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8217 * printcmd.c (struct format_data): Move it to valprint.h.
8218 (print_command_parse_format, print_value): New functions from ...
8219 (print_command_1): ... here. Call them.
8220 * valprint.h (struct format_data): Move it here from printcmd.c.
8221 (print_command_parse_format, print_value): New declarations.
8223 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8225 * compile/compile-object-load.c (compile_object_load): Add
8226 COMPILE_DEBUG message.
8228 2015-05-15 Jerome Guitton <guitton@adacore.com>
8230 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8231 index to get element instead of enum value.
8232 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8233 of index to compute length, but enum values to compute bounds.
8234 (ada_array_length): Use enum position of index instead of enum value.
8235 (pos_atr): Move position computation to...
8236 (ada_evaluate_subexp): Use enum values to compute bounds.
8237 * gdbtypes.c (discrete_position): ...this new function.
8238 * gdbtypes.h (discrete_position): New function declaration.
8239 * valprint.c (val_print_array_elements): Call discrete_position
8240 to handle array indexed by non-contiguous enumeration types.
8242 2015-05-15 Jerome Guitton <guitton@adacore.com>
8244 * ada-lang.c (find_parallel_type_by_descriptive_type):
8245 Go through typedefs during lookup.
8246 (to_fixed_array_type): Add support for non-bit packed arrays
8247 as variable-length fields.
8249 2015-05-15 Pedro Alves <palves@redhat.com>
8250 Simon Marchi <simon.marchi@ericsson.com>
8252 * event-loop.c (gdb_notifier) <next_file_handler,
8253 next_poll_fds_index>: New fields.
8254 (get_next_file_handler_to_handle_and_advance): New function.
8255 (delete_file_handler): If deleting the next file handler to
8256 handle, advance to the next file handler.
8257 (gdb_wait_for_event): Bail early if no event fired. Poll file
8258 handlers in round-robin fashion.
8260 2015-05-15 Pedro Alves <palves@redhat.com>
8262 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8263 'private' to 'priv'.
8265 2015-05-15 Pedro Alves <palves@redhat.com>
8267 * nat/linux-nat.h: Include "target/waitstatus.h".
8269 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8271 * python/py-unwind.c (struct reg_info): Move out of ...
8272 (struct cached_frame_info): ... this scope.
8273 (pending_frame_object_type, unwind_info_object_type): Make extern.
8275 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8277 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8278 accumSize is never negative.
8280 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8282 * tui/tui-command.c: Remove include of <ctype.h>.
8283 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8285 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8287 * dwarf2read.c (die_needs_namespace): Return 1 for
8288 DW_TAG_inlined_subroutine.
8290 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8292 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8293 (regcache_cpy_no_passthrough): Make it static, add function comment.
8294 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8295 (regcache_cpy_no_passthrough): Remove declaration.
8297 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8299 * gdbthread.h (struct thread_control_state): Update comment for
8301 * infcall.c (run_inferior_call): Update comment about
8303 * infcmd.c (get_return_value): Update comment about stop_registers.
8304 (finish_forward): Update comment about proceed_to_finish.
8305 * infrun.c (stop_registers): Remove.
8306 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8307 * infrun.h (stop_registers): Remove.
8309 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8311 * infcall.c (struct dummy_frame_context_saver)
8312 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8313 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8314 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8316 (call_function_by_hand_dummy): Move discard_cleanups of
8317 inf_status_cleanup before dummy_frame_push. Call
8318 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8319 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8320 * infcall.h (struct dummy_frame_context_saver)
8321 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8322 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8324 * infcmd.c: Include infcall.h.
8325 (get_return_value): Add parameter ctx_saver, use it instead of
8327 (print_return_value): Add parameter ctx_saver, pass it.
8328 (struct finish_command_continuation_args): Add field ctx_saver.
8329 (finish_command_continuation): Update print_return_value caller.
8330 (finish_command_continuation_free_arg): Free also ctx_saver.
8331 (finish_forward): Call dummy_frame_context_saver_setup.
8332 * inferior.h (struct dummy_frame_context_saver): New declaration.
8333 (get_return_value): Add parameter ctx_saver.
8334 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8335 get_return_value caller.
8337 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8339 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8340 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8341 (remove_dummy_frame): Process dtor_list.
8342 (pop_dummy_frame): Process dtor_list.
8343 (register_dummy_frame_dtor): Maintain dtor_list.
8344 (find_dummy_frame_dtor): Handle dtor_list.
8345 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8348 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8350 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8352 (compile_object_run): Update do_module_cleanup caller.
8353 * dummy-frame.c: Include infcall.h.
8354 (struct dummy_frame): Update dtor comment.
8355 (remove_dummy_frame): Call dtor.
8356 (pop_dummy_frame): Update dtor caller.
8357 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8360 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8364 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8366 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8367 Xmethods now being able to specify a result type to that new
8370 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8372 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8373 first before resizing the window.
8374 * tui/tui.c (tui_enable): Likewise.
8376 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8378 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8379 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8380 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8381 dummy_dtor parameter.
8382 * infcall.h: Include dummy-frame.h.
8383 (call_function_by_hand_dummy_dtor_ftype): Remove.
8384 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8387 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8390 * top.c (history_size_setshow_var): Change type to signed.
8391 Initialize to -2. Update documentation.
8392 (set_readline_history_size): Define.
8393 (set_history_size_command): Use it. Remove logic for handling
8395 (init_history): Use set_readline_history_size(). Test for a
8396 value of -2 instead of 0 when determining whether to set a
8397 default history size.
8398 (init_main): Decode the argument of the "size" command as a
8399 zuinteger_unlimited.
8401 2015-05-12 Doug Evans <dje@google.com>
8403 * dwarf2read.c (struct file_entry): Tweak comments.
8404 (get_debug_line_section): Tweak comments.
8406 2015-05-12 Don Breazeal <donb@codesourcery.com>
8408 * NEWS: Announce fork support in the RSP and support
8409 for fork debugging in extended mode.
8411 2015-05-12 Don Breazeal <donb@codesourcery.com>
8413 * remote.c (remote_insert_fork_catchpoint): New function.
8414 (remote_remove_fork_catchpoint): New function.
8415 (remote_insert_vfork_catchpoint): New function.
8416 (remote_remove_vfork_catchpoint): New function.
8417 (pending_fork_parent_callback): New function.
8418 (remove_new_fork_child): New function.
8419 (remote_update_thread_list): Call remote_notif_get_pending_events
8420 and remove_new_fork_child.
8421 (extended_remote_kill): Kill fork child when killing the
8422 parent before follow_fork completes.
8423 (init_extended_remote_ops): Initialize target vector with
8424 new fork catchpoint functions.
8426 2015-05-12 Don Breazeal <donb@codesourcery.com>
8428 * remote.c (remove_vfork_event_p): New function.
8429 (remote_follow_fork): Add vfork event type to event checking.
8430 (remote_parse_stop_reply): New stop reasons "vfork" and
8431 "vforkdone" for RSP 'T' Stop Reply Packet.
8433 2015-05-12 Don Breazeal <donb@codesourcery.com>
8435 * linux-nat.c (linux_nat_ptrace_options): New function.
8436 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8437 Call linux_nat_ptrace_options and use different argument to
8438 linux_enable_event_reporting.
8439 (_initialize_linux_nat): Delete call to
8440 linux_ptrace_set_additional_flags.
8441 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8442 supported_ptrace_options.
8443 (additional_flags): Delete variable.
8444 (linux_check_ptrace_features): Use supported_ptrace_options.
8445 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8446 Likewise, and remove additional_flags check.
8447 (linux_enable_event_reporting): Change 'attached' argument to
8448 'options'. Use supported_ptrace_options.
8449 (ptrace_supports_feature): Change comment. Use
8450 supported_ptrace_options.
8451 (linux_ptrace_set_additional_flags): Delete function.
8452 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8453 Delete function prototype.
8454 * remote.c (remote_fork_event_p): New function.
8455 (remote_detach_pid): New function.
8456 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8457 if doing detach-on-fork.
8458 (remote_follow_fork): New function.
8459 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8460 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8461 (init_extended_remote_ops): Initialize to_follow_fork.
8463 2015-05-12 Don Breazeal <donb@codesourcery.com>
8465 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8466 from static to extern.
8467 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8468 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8469 * PACKET_vfork_event_feature>: New enumeration constants.
8470 (remote_protocol_features): Add table entries for new packets.
8471 (remote_query_supported): Add new feature queries to qSupported
8474 2015-05-12 Gary Benson <gbenson@redhat.com>
8476 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8477 for fake PIDs as well as real ones.
8478 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8480 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8482 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8483 * python/py-value.c (valpy_reference_value): New function.
8484 (valpy_const_value): Likewise.
8485 (value_object_methods): Add new methods.
8486 * value.c (make_cv_value): New function.
8487 * value.h (make_cv_value): Declare.
8489 2015-05-08 Yao Qi <yao@codesourcery.com>
8490 Sandra Loosemore <sandra@codesourcery.com>
8492 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8493 to 'lh->include_dirs' before accessing to it.
8494 (psymtab_include_file_name): Likewise.
8495 (dwarf_decode_lines_1): Likewise.
8496 (dwarf_decode_lines): Likewise.
8497 (file_file_name): Likewise.
8499 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8501 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8502 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8503 (nios2_linux_rt_sigreturn_init): Adjust base address of
8506 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8508 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8509 "trap 31" as the breakpoint instruction on all targets.
8511 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8513 * infcmd.c (print_return_value): Remove unused declaration.
8515 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8517 * dwarf2read.c (attr_to_dynamic_prop)
8518 <DW_AT_data_member_location>: Use read_type_die isntead of
8521 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8523 * ada-lang.c (ada_convert_actual): Add handling of formals
8524 passed inside an aligner type.
8526 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8528 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8530 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8533 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8534 Print xmethod matcher status.
8536 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8538 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8539 register in the regcache when treating the PSWM register, and vice
8542 2015-05-07 Gary Benson <gbenson@redhat.com>
8544 * linux-thread-db.c (struct thread_db_info)
8545 <td_ta_map_id2thr_p>: Remove field.
8546 (try_thread_db_load_1): Remove initialization for the above.
8548 2015-05-07 Gary Benson <gbenson@redhat.com>
8550 * linux-thread-db.c (struct thread_db_info)
8551 <td_thr_validate_p>: Remove field.
8552 (try_thread_db_load_1): Remove initialization for the above.
8554 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8556 * compile/compile-object-load.c (compile_object_load): Support
8559 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8561 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8562 const. Use new variables for the const compatibility.
8563 (eval_compile_command): Make the cmd_string parameter const.
8564 * compile/compile.h (eval_compile_command): Make the cmd_string
8567 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8569 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8571 * top.c (deprecated_init_ui_hook): Delete.
8572 (gdb_init): Remove handling of deprecated_init_ui_hook.
8573 * interps.c (clear_interpreter_hooks): Remove handling of
8574 deprecated_init_ui_hook.
8575 * main.c (captured_main): Update comment.
8577 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8579 * solib.c (_initialize_solib): Add "info dll" alias creation.
8580 * windows-nat.c (set_windows_aliases): Delete.
8581 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8583 * NEWS: Add news entry about "info dll" now being available
8586 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8588 * ada-lang.c (value_assign_to_component): Reformat and improve
8589 documentation. Remove all trailing spaces.
8591 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8593 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8594 Stop counting inlined frames as soon as an out-of-line function
8597 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8599 * dwarf2read.c (inherit_abstract_dies): Skip
8600 DW_TAG_GNU_call_site dies while inheriting children of an
8601 abstract DIE into a scope.
8602 (read_lexical_block_scope): Inherit abstract DIE's for
8605 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8607 * ada-valprint.c (val_print_packed_array_elements): Delete
8608 variable "len". Add a type-length check when comparing two
8609 consecutive elements of the array. Use the element's actual
8610 length in call to value_contents_eq.
8611 * ada-lang.c (ada_value_primitive_packed_val): Always return
8612 a value whose type has been resolved.
8614 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8616 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8617 BIT_SIZE and LEN if the size of the resolved type is smaller
8618 than BIT_SIZE * HOST_CHAR_BIT.
8620 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8622 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8623 correct address in call to value_at. Adjust call to
8624 value_address accordingly.
8626 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8628 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8631 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8633 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8634 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8636 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8637 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8638 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8639 Add handling of addr_stack->valaddr.
8640 (resolve_dynamic_type): Add "valaddr" parameter.
8641 Set pinfo.valaddr field.
8642 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8643 resolve_dynamic_type.
8644 (ada_discrete_type_low_bound): Likewise.
8645 * findvar.c (default_read_var_value): Likewise.
8646 * value.c (value_from_contents_and_address): Likewise.
8648 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8650 * gdbtypes.c (resolve_dynamic_array): Use
8651 create_array_type_with_stride instead of create_array_type.
8653 2015-04-30 DJ Delorie <dj@redhat.com>
8655 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8658 2015-04-29 Doug Evans <dje@google.com>
8661 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8662 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8663 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8664 * extension-priv.h (struct extension_language_ops)
8665 <get_xmethod_result_type>: New member.
8666 * extension.c (get_xmethod_result_type): New function.
8667 * extension.h (get_xmethod_result_type): Declare.
8668 * python/py-xmethods.c (get_result_type_method_name): New static
8670 (py_get_result_type_method_name): Ditto.
8671 (gdbpy_get_xmethod_result_type): New function.
8672 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8673 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8674 * python/python.c (python_extension_ops): Add
8675 gdbpy_get_xmethod_result_type.
8676 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8677 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8679 (value_x_unop): Ditto.
8680 * value.c (result_type_of_xmethod): New function.
8681 * value.h (result_type_of_xmethod): Declare.
8683 2015-04-29 Gary Benson <gbenson@redhat.com>
8685 * solib.c (solib_find_1): Allow fd argument to be NULL.
8686 (exec_file_find): Update comment.
8687 (solib_find): Likewise.
8688 * exec.c (exec_file_locate_attach): Use NULL as fd
8689 argument to exec_file_find to avoid having to close
8691 * infrun.c (follow_exec): Likewise.
8693 2015-04-28 Doug Evans <dje@google.com>
8696 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8697 name or __name__ attributes. Handle gdb module as first argument.
8699 2015-04-28 Doug Evans <dje@google.com>
8702 * python/py-prettyprint.c (print_children): Verify result of children
8703 iterator. Provide better error message.
8704 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8705 * python/python.c (gdbpy_print_python_errors_p): New function.
8707 2015-04-28 Doug Evans <dje@google.com>
8709 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8711 2015-04-28 Sasha Smundak <asmundak@google.com>
8713 * NEWS: Mention gdb.Type.optimized_out method.
8714 * python/py-type.c (typy_optimized_out): New function.
8716 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8718 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8720 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8722 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8723 (initialize_utils): Move call of init_page_info() to ...
8724 * top.c (gdb_init): ... here.
8726 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8728 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8729 (tui_sigwinch_handler): Still update our idea of
8730 the terminal's width and height even when TUI is not active.
8732 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8734 * utils.h (set_screen_width_and_height): Declare.
8735 * utils.c (set_screen_width_and_height): Define.
8736 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8738 2015-04-28 Gary Benson <gbenson@redhat.com>
8740 * infrun.c (solist.h): New include.
8741 (follow_exec): Use exec_file_find to prefix execd_pathname
8744 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8746 * tui/tui-source.c (tui_set_source_content): Avoid calling
8747 strcpy() when offset is 0.
8749 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8752 * tui/tui-data.c (tui_free_window): Don't free the locator
8753 window when passed an SRC_WIN or a DISASSEM_WIN.
8755 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8757 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8758 (tui_win_content): Move declaration.
8759 (struct tui_gen_win_info): Give 'content' field the
8760 type tui_win_content.
8761 * tui/tui-data.c (init_content_element): Remove redundant and
8763 (tui_add_content_elements): Remove erroneous cast.
8764 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8766 (tui_get_begin_asm_address): Likewise.
8767 * tui/tui-regs.c (tui_show_registers): Likewise.
8768 (tui_show_register_group): Likewise.
8769 (tui_display_registers_from): Likewise.
8770 (tui_check_register_values): Likewise.
8771 * tui/tui-source.c (tui_set_source_content): Likewise.
8772 (tui_set_source_content_nil): Likewise.
8773 (tui_source_is_displayed): Likewise.
8774 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8775 (tui_set_locator_fullname): Likewise.
8776 (tui_set_locator_info): Likewise.
8777 (tui_show_frame_info): Likewise.
8778 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8779 (tui_show_source_line): Likewise.
8780 (tui_horizontal_source_scroll): Likewise.
8781 (tui_update_breakpoint_info): Likewise.
8782 (tui_set_exec_info_content): Likewise.
8783 (tui_show_exec_info_content): Likewise.
8784 (tui_alloc_source_buffer): Likewise.
8785 (tui_line_is_displayed): Likewise.
8786 (tui_addr_is_displayed): Likewise.
8788 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8790 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8791 event if PL_FLAG_EXEC is set.
8792 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8793 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8794 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8795 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8796 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8798 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8800 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8801 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8802 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8803 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8804 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8805 [PT_LWPINFO] (fbsd_wait): New function.
8806 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8807 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8808 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8809 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8810 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8811 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8812 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8813 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8814 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8816 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8817 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8818 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8819 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8820 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8821 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8822 Set "to_post_attach" to "fbsd_post_attach".
8824 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8826 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8827 (fbsd_find_memory_regions): Mark static.
8828 (fbsd_nat_add_target): New function.
8829 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8830 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8831 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8832 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8833 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8834 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8836 2015-04-27 Gary Benson <gbenson@redhat.com>
8838 * objfiles.c (allocate_objfile): Do not attempt to expand name
8839 if name is a "target:" filename.
8840 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8841 to load auto-load scripts for objfiles with "target:" filenames.
8843 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8845 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8846 (enum s390_vector_abi_kind): New enum.
8847 (struct gdbarch_tdep)<vector_abi>: New field.
8848 (s390_effective_inner_type): Add parameter min_size. Stop
8849 unwrapping if the inner type is smaller than min_size.
8850 (s390_function_arg_float): Adjust call to
8851 s390_effective_inner_type.
8852 (s390_function_arg_vector): New function.
8853 (s390_function_arg_integer): Adjust comment.
8854 (struct s390_arg_state)<vr>: New field.
8855 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8856 arguments according to vector ABI when appropriate.
8857 (s390_push_dummy_call): Initialize the argument state's field
8858 'vr'. Adjust calls to s390_handle_arg.
8859 (s390_register_return_value): Handle vector return values.
8860 (s390_return_value): Apply the "register" return value convention
8861 to a vector when appropriate.
8862 (s390_gdbarch_init): Initialize tdep->vector_abi.
8863 * NEWS: Announce S390 vector ABI support.
8865 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8867 * s390-linux-tdep.c (s390_return_value_convention): Remove
8868 function. Inline its logic...
8869 (s390_return_value): ...here. Instead, move the handling of the
8870 "register" return value convention...
8871 (s390_register_return_value): ...here. New function.
8873 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8876 (is_float_singleton): Remove function. Move the "singleton" part
8878 (s390_effective_inner_type): ...here. New function.
8879 (is_float_like): Remove function. Inline its logic...
8880 (s390_function_arg_float): ...here.
8881 (is_pointer_like, is_integer_like, is_struct_like): Remove
8882 functions. Inline their logic...
8883 (s390_function_arg_integer): ...here.
8884 (s390_function_arg_pass_by_reference): Remove function.
8885 (extend_simple_arg): Remove function.
8886 (alignment_of): Remove function.
8887 (struct s390_arg_state): New structure.
8888 (s390_handle_arg): New function.
8889 (s390_push_dummy_call): Move parameter placement logic to the new
8890 function s390_handle_arg. Call it for calculating the stack area
8891 sizes first, and again for actually writing the parameters.
8893 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8895 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8896 false if the argument is zero.
8898 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8900 * ada-lang.c (template_to_static_fixed_type): Return input type
8901 when it is already fixed. Cache the input type itself when not
8902 creating a static fixed copy. Make it explicit that we never
8903 molestate the input type.
8904 * gdbtypes.c (resolve_dynamic_struct): Reset the
8905 TYPE_TARGET_TYPE field for resolved copies.
8907 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8909 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8910 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8911 (template_to_static_fixed_type): Call ada_check_typedef only
8914 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8916 * cli/cli-dump.c (srec_dump_command): Add internationalization
8918 (ihex_dump_command): Likewise.
8919 (tekhex_dump_command): Likewise.
8920 (binary_dump_command): Likewise.
8921 (binary_append_command): Likewise.
8923 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8925 * cli/cli-dump.c (verilog_cmdlist): New variable.
8926 (dump_verilog_memory): New function.
8927 (dump_verilog_value): New function.
8928 (verilog_dump_command): New function.
8929 (_initialize_cli_dump): Add new commands to support verilog dump
8931 * NEWS: Add entry for "dump verilog".
8933 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8935 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8936 descriptive type when there is none.
8938 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8940 * tui/tui-win.c (tui_async_resize_screen): Call
8941 rl_resize_terminal().
8943 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8945 * windows-nat.c (handle_output_debug_string): Don't change
8946 current_event.dwThreadId.
8947 (get_windows_debug_event): Use thread_id, rather than relying on
8948 current_event.dwThreadId being changed.
8950 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8952 * windows-nat.c (windows_continue): Report an error if
8953 ContinueDebugEvent() fails.
8955 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8957 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8959 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8961 * windows-nat.c (get_windows_debug_event): Replace retval with
8962 thread_id throughout. Update stale comment.
8964 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8966 * windows-nat.c (get_windows_debug_event): Don't use ternary
8967 conditional operator.
8969 2015-04-21 Pierre Muller <muller@sourceware.org>
8972 p-exp.y (yylex): Reorganize code to return the matched pattern
8973 for a field of this.
8975 2015-04-21 Gary Benson <gbenson@redhat.com>
8977 * common/fileio.h (fileio_to_host_openflags): New declaration.
8978 * common/fileio.c (fcntl.h): New include.
8979 (fileio_to_host_openflags): New function, factored out from...
8980 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8983 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8985 * rl78-tdep.c (RL78_SP_ADDR): Define.
8986 (opc_reg_to_gdb_regnum): New static function.
8987 (rl78_analyze_prologue): Recognize instructions forming slightly
8988 more interesting prologues.
8990 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8993 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8994 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8995 TYPE_CODE_REF types so that they are not considered as dynamic
8996 depending on the referenced type.
8997 (resolve_dynamic_type_internal): Likewise.
8999 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9002 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9003 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9004 "top_level" parameter.
9005 (resolve_dynamic_type_internal): Remove the unused "top_level"
9006 parameter. Update call to is_dynamic_type_internal.
9007 (is_dynamic_type): Update call to is_dynamic_type_internal.
9008 (resolve_dynamic_range): Update call to
9009 resolve_dynamic_type_internal.
9010 (resolve_dynamic_union): Likewise.
9011 (resolve_dynamic_struct): Likewise.
9012 (resolve_dynamic_type): Likewise.
9014 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9016 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9019 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9021 * reply_mig_hack.awk: Robustify parsing.
9023 * reply_mig_hack.awk: Don't bother to declare an intermediate
9024 function pointer variable.
9026 2015-04-17 Doug Evans <dje@google.com>
9028 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9029 to "exec_displacement" to avoid confusion with inner use of the name.
9031 2015-04-17 Pedro Alves <palves@redhat.com>
9033 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9034 if HW point of TYPE isn't supported.
9036 2015-04-17 Yao Qi <yao.qi@linaro.org>
9037 Pedro Alves <palves@redhat.com>
9039 * target.h (target_can_use_hardware_watchpoint): Update comments.
9040 Remove trailing ";".
9042 2015-04-17 Gary Benson <gbenson@redhat.com>
9044 * remote.c (remote_add_inferior): New argument try_open_exec.
9045 If nonzero, attempt to open the inferior's executable file as
9046 the main executable if no main executable is open already.
9047 All callers updated.
9048 * NEWS: Mention that GDB now supports automatic location and
9049 retrieval of executable + files from remote targets.
9051 2015-04-17 Gary Benson <gbenson@redhat.com>
9053 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9054 * remote.c (PACKET_qXfer_exec_file): Likewise.
9055 (remote_protocol_features): Register the
9056 "qXfer:exec-file:read" feature.
9057 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9058 (remote_pid_to_exec_file): New function.
9059 (init_remote_ops): Initialize to_pid_to_exec_file.
9060 (_initialize_remote): Register new "set/show remote
9061 pid-to-exec-file-packet" command.
9062 * NEWS: Announce new qXfer:exec-file:read packet.
9064 2015-04-17 Gary Benson <gbenson@redhat.com>
9066 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9068 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9069 New function, factored out from...
9070 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9072 2015-04-17 Gary Benson <gbenson@redhat.com>
9074 * exec.c (solist.h): New include.
9075 (exec_file_locate_attach): Prefix absolute executable
9076 paths with gdb_sysroot if set.
9077 * NEWS: Mention that executable paths may be prepended
9080 2015-04-17 Gary Benson <gbenson@redhat.com>
9082 * solist.h (exec_file_find): New declaration.
9083 * solib.c (solib_find_1): New function, factored out from...
9084 (solib_find): ...here.
9085 (exec_file_find): New function.
9087 2015-04-17 Gary Benson <gbenson@redhat.com>
9089 * gdbcore.h (exec_file_locate_attach): New declaration.
9090 * exec.c (exec_file_locate_attach): New function, factored
9092 * infcmd.c (attach_command_post_wait): ...here.
9094 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9096 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9098 2015-04-16 Yao Qi <yao.qi@linaro.org>
9100 * infrun.c (maybe_software_singlestep): Declare.
9101 (displaced_step_fixup): Call maybe_software_singlestep.
9103 2015-04-15 Doug Evans <dje@google.com>
9105 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9107 2015-04-15 Doug Evans <dje@google.com>
9109 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9111 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9113 * python/lib/gdb/command/unwinders.py: Add parentheses.
9115 2015-04-15 Yao Qi <yao.qi@linaro.org>
9117 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9119 2015-04-15 Yao Qi <yao.qi@linaro.org>
9121 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9123 2015-04-15 Yao Qi <yao.qi@linaro.org>
9125 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9126 dsc->insn_size instead of 4.
9128 2015-04-14 Gary Benson <gbenson@redhat.com>
9130 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9131 * minidebug.c (lzma_stat): Likewise.
9132 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9133 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9135 2015-04-13 Stan Shebs <stanshebs@google.com>
9137 * MAINTAINERS: Update my email address.
9139 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9141 * amd64-tdep.c (amd64_target_description): New function.
9142 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9143 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9144 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9145 x86 extended save area.
9146 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9147 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9148 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9149 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9150 "amd64fbsd_read_description".
9151 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9152 (amd64fbsd_supply_xstateregset): New function.
9153 (amd64fbsd_collect_xstateregset): New function.
9154 Add "amd64fbsd_xstateregset".
9155 (amd64fbsd_iterate_over_regset_sections): New function.
9156 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9157 "I386_FBSD_XSAVE_XCR0_OFFSET".
9158 Add "iterate_over_regset_sections" gdbarch method.
9159 Add "core_read_description" gdbarch method.
9160 * i386-tdep.c (i386_target_description): New function.
9161 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9162 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9163 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9164 x86 extended save area.
9165 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9166 * i386bsd-nat.h: Export i386bsd_xsave_len.
9167 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9168 (_initialize_i386fbsd_nat): Set "to_read_description" to
9169 "i386fbsd_read_description".
9170 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9171 (i386fbsd_core_read_description): New function.
9172 (i386fbsd_supply_xstateregset): New function.
9173 (i386fbsd_collect_xstateregset): New function.
9174 Add "i386fbsd_xstateregset".
9175 (i386fbsd_iterate_over_regset_sections): New function.
9176 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9177 "I386_FBSD_XSAVE_XCR0_OFFSET".
9178 Add "iterate_over_regset_sections" gdbarch method.
9179 Add "core_read_description" gdbarch method.
9180 * i386fbsd-tdep.h: New file.
9182 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9184 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9185 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9187 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9189 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9191 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9193 * defs.h (xdb_commands): Remove declaration.
9194 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9195 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9196 * infcmd.c (run_no_args_command, go_command): Remove.
9197 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9198 * infrun.c (xdb_handle_command): Remove.
9199 (_initialize_infrun): Remove xdb_commands for lz and z.
9200 * main.c (xdb_commands): Remove variable.
9201 (captured_main): Remove "xdb" from long_options.
9202 (print_gdb_help): Remove --xdb from help.
9203 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9204 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9205 * stack.c (backtrace_full_command, args_plus_locals_info)
9206 (current_frame_command): Remove.
9207 (_initialize_stack): Remove xdb_commands for t, T and l.
9208 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9209 * thread.c (_initialize_thread): Remove xdb_commands condition.
9210 * tui/tui-layout.c (tui_toggle_layout_command)
9211 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9212 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9213 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9214 (tui_scroll_regs_backward_command): Remove.
9215 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9216 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9217 (_initialize_tui_win): Remove xdb_commands for U and w.
9218 * utils.c (pagination_on_command, pagination_off_command): Remove.
9219 (initialize_utils): Remove xdb_commands for am and sm.
9221 2015-04-10 Pedro Alves <palves@redhat.com>
9223 * infrun.c (displaced_step_fixup): Switch to the event ptid
9224 earlier. If the thread stopped for a watchpoint and the
9225 target/arch has non-continuable watchpoints, cancel the displaced
9227 (resume): Don't start a displaced step if in-line step-over info
9230 2015-04-10 Pedro Alves <palves@redhat.com>
9232 * infrun.c (displaced_step_in_progress): New function.
9233 (do_target_resume): Advise target to report all signals if
9236 2015-04-10 Pedro Alves <palves@redhat.com>
9239 * infrun.c (process_event_stop_test): Don't assume a step-resume
9240 is set if tp->stepped_breakpoint is true.
9242 2015-04-10 Yao Qi <yao.qi@linaro.org>
9244 * arm-tdep.c (install_alu_reg): Update comment.
9245 (thumb_copy_alu_reg): Remove local variable rn. Update
9246 debugging message. Use r2 instead of r1 in the modified
9249 2015-04-10 Pedro Alves <palves@redhat.com>
9252 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9253 linux_displaced_step_location as gdbarch_displaced_step_location
9255 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9256 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9257 * linux-tdep.c (linux_displaced_step_location): New function,
9258 based on ppc_linux_displaced_step_location.
9259 * linux-tdep.h (linux_displaced_step_location): New declaration.
9260 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9261 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9263 (ppc_linux_init_abi): Install linux_displaced_step_location as
9264 gdbarch_displaced_step_location hook, even without Cell/B.E..
9265 (_initialize_ppc_linux_tdep): Don't install
9266 ppc_linux_inferior_created as inferior_created observer.
9267 * s390-linux-tdep.c (s390_gdbarch_init): Install
9268 linux_displaced_step_location as gdbarch_displaced_step_location
9271 2015-04-09 Gary Benson <gbenson@redhat.com>
9273 * common/common-remote-fileio.h: Rename to...
9274 * common/fileio.h: ...this. Update all references.
9275 (remote_fileio_to_fio_error): Rename to...
9276 (host_to_fileio_error): ...this.
9277 (remote_fileio_to_be): Rename to...
9278 (host_to_bigendian): ...this. Update all callers.
9279 (remote_fileio_to_fio_uint): Rename to...
9280 (host_to_fileio_uint): ...this. Update all callers.
9281 (remote_fileio_to_fio_time): Rename to...
9282 (host_to_fileio_time): ...this. Update all callers.
9283 (remote_fileio_to_fio_stat): Rename to...
9284 (host_to_fileio_stat): ...this.
9285 Update all references.
9286 * common/common-remote-fileio.c: Rename to...
9287 * common/fileio.c: ...this. Update all references.
9288 (remote_fileio_to_fio_error): Rename to...
9289 (host_to_fileio_error): ...this. Update all callers.
9290 (remote_fileio_mode_to_target): Rename to...
9291 (fileio_mode_pack): ...this. Update all callers.
9292 (remote_fileio_to_fio_mode): Rename to...
9293 (host_to_fileio_mode): ...this. Update all callers.
9294 (remote_fileio_to_fio_ulong): Rename to...
9295 (host_to_fileio_ulong): ...this. Update all callers.
9296 (remote_fileio_to_fio_stat): Rename to...
9297 (host_to_fileio_stat): ...this. Update all callers.
9299 2015-04-09 Andy Wingo <wingo@igalia.com>
9301 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9302 (frame_functions): Bind gdbscm_frame_read_register to
9303 frame-read-register.
9304 * guile/lib/gdb.scm (frame-read-register): Export.
9306 2015-04-09 Gary Benson <gbenson@redhat.com>
9308 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9310 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9311 New function, factored out the named functions below.
9312 * inf-child.c (gdb/fileio.h): Remove include.
9313 (common-remote-fileio.h): New include.
9314 (inf_child_errno_to_fileio_error): Remove function. Update
9315 all callers to use remote_fileio_to_fio_error.
9316 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9318 2015-04-09 Andy Wingo <wingo@igalia.com>
9320 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9322 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9324 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9325 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9326 * configure: Regenerated.
9328 2015-04-09 Pedro Alves <palves@redhat.com>
9330 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9331 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9332 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9333 * gnulib/import/Makefile.am: Update.
9334 * gnulib/import/Makefile.in: Update.
9335 * gnulib/import/m4/gnulib-cache.m4: Update.
9336 * gnulib/import/m4/gnulib-comp.m4: Update.
9337 * gnulib/import/m4/strtok_r.m4: New file.
9338 * gnulib/import/strtok_r.c: New file.
9340 2015-04-09 Pedro Alves <palves@redhat.com>
9342 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9343 "called too early to check prototype".
9345 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9348 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9349 use a caching mechanism. Adjust comments and code to reflect
9350 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9351 (cmdpy_completer_handle_brkchars): Adjust call to
9352 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9353 (cmdpy_completer): Likewise.
9355 2015-04-08 Yao Qi <yao.qi@linaro.org>
9357 * spu-tdep.c (spu_gdbarch_init): Don't call
9358 set_gdbarch_cannot_step_breakpoint.
9360 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9362 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9364 2015-04-07 Pedro Alves <palves@redhat.com>
9366 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9367 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9368 (delete_exited_threads): New declaration.
9369 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9370 * linux-nat.c (linux_nat_update_thread_list): New function.
9371 (linux_nat_add_target): Install it.
9372 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9373 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9374 (delete_exited_threads): New function.
9376 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9378 * infrun.c (resume) <displaced stepping debug output>: Get the
9379 leader thread's regcache, not resume_ptid's.
9381 2015-04-06 Doug Evans <xdje42@gmail.com>
9383 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9385 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9386 Include symbol domain in debugging output.
9388 2015-04-06 Pedro Alves <palves@redhat.com>
9389 Bernd Edlinger <bernd.edlinger@hotmail.de>
9391 * configure.ac: Remove the mingw32-specific stub-termcap.o
9392 fallback, and instead fallback to the stub termcap on all hosts.
9393 * configure: Regenerate.
9394 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9397 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9399 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9400 "top_level" parameter.
9401 (resolve_dynamic_type_internal): Remove the unused "top_level"
9402 parameter. Update call to is_dynamic_type_internal.
9403 (is_dynamic_type): Update call to is_dynamic_type_internal.
9404 (resolve_dynamic_range): Update call to
9405 resolve_dynamic_type_internal.
9406 (resolve_dynamic_union): Likewise.
9407 (resolve_dynamic_struct): Likewise.
9408 (resolve_dynamic_type): Likewise.
9410 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9412 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9413 TYPE_CODE_REF types so that they are not considered as dynamic
9414 depending on the referenced type.
9415 (resolve_dynamic_type_internal): Likewise.
9417 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9419 * Makefile.in (top_srcdir): New.
9420 * configure: Regenerated.
9422 2015-04-02 Gary Benson <gbenson@redhat.com>
9424 * NEWS: Announce the new default sysroot of "target:".
9426 2015-04-02 Gary Benson <gbenson@redhat.com>
9428 * main.c (captured_main): Set gdb_sysroot to "target:"
9429 if not otherwise set.
9431 2015-04-02 Gary Benson <gbenson@redhat.com>
9433 * exec.c (exec_file_attach): Support "target:" filenames.
9435 2015-04-02 Gary Benson <gbenson@redhat.com>
9437 * solib.c (solib_find): Strip "target:" prefix from sysroot
9438 if accessing local files.
9440 2015-04-02 Gary Benson <gbenson@redhat.com>
9442 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9443 checks and error messages.
9445 2015-04-02 Gary Benson <gbenson@redhat.com>
9447 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9448 (remote_filename_p): Remove declaration.
9449 (remote_bfd_open): Likewise.
9450 * remote.c (remote_bfd_iovec_open): Remove function.
9451 (remote_bfd_iovec_close): Likewise.
9452 (remote_bfd_iovec_pread): Likewise.
9453 (remote_bfd_iovec_stat): Likewise.
9454 (remote_filename_p): Likewise.
9455 (remote_bfd_open): Likewise.
9456 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9457 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9458 (gdb_bfd_open_maybe_remote): Remove function.
9459 (symfile_bfd_open): Replace remote filename check with
9460 target filename check.
9461 (reread_symbols): Use gdb_bfd_open.
9462 * build-id.c (gdbcore.h): New include.
9463 (build_id_to_debug_bfd): Use gdb_bfd_open.
9464 * infcmd.c (attach_command_post_wait): Remove remote filename
9466 * solib.c (solib_find): Replace remote-specific handling with
9467 target-specific handling. Update comments where necessary.
9468 (solib_bfd_open): Replace remote-specific handling with
9469 target-specific handling.
9470 (gdb_sysroot_changed): New function.
9471 (_initialize_solib): Call the above when gdb_sysroot changes.
9472 * windows-tdep.c (gdbcore.h): New include.
9473 (windows_xfer_shared_library): Use gdb_bfd_open.
9475 2015-04-02 Gary Benson <gbenson@redhat.com>
9477 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9478 (is_target_filename): New declaration.
9479 (gdb_bfd_has_target_filename): Likewise.
9480 (gdb_bfd_open): Update documentation comment.
9481 * gdb_bfd.c (target.h): New include.
9482 (gdb/fileio.h): Likewise.
9483 (is_target_filename): New function.
9484 (gdb_bfd_has_target_filename): Likewise.
9485 (fileio_errno_to_host): Likewise.
9486 (gdb_bfd_iovec_fileio_open): Likewise.
9487 (gdb_bfd_iovec_fileio_pread): Likewise.
9488 (gdb_bfd_iovec_fileio_close): Likewise.
9489 (gdb_bfd_iovec_fileio_fstat): Likewise.
9490 (gdb_bfd_open): Use target fileio to access paths prefixed
9491 with "target:" where necessary.
9493 2015-04-02 Gary Benson <gbenson@redhat.com>
9495 * target.h (struct target_ops) <to_filesystem_is_local>:
9497 (target_filesystem_is_local): New macro.
9498 * target-delegates.c: Regenerate.
9499 * remote.c (remote_filesystem_is_local): New function.
9500 (init_remote_ops): Initialize to_filesystem_is_local.
9502 2015-04-02 Gary Benson <gbenson@redhat.com>
9504 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9505 (target_fileio_fstat): New declaration.
9506 * target.c (target_fileio_fstat): New function.
9507 * inf-child.c (inf_child_fileio_fstat): Likewise.
9508 (inf_child_target): Initialize to_fileio_fstat.
9509 * remote.c (init_remote_ops): Likewise.
9511 2015-04-01 Sasha Smundak <asmundak@google.com>
9513 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9514 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9515 (py-unwind.o): New recipe.
9516 * NEWS: mention Python frame unwinding.
9517 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9518 gdb/unwinder.py and gdb/command/unwinder.py
9519 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9521 (execute_unwinders): New function.
9522 * python/lib/gdb/command/unwinders.py: New file.
9523 * python/lib/gdb/unwinder.py: New file.
9524 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9525 (objfpy_dealloc): Decrement frame_unwinders reference count.
9526 (objfpy_initialize): Create frame_unwinders list.
9527 (objfpy_get_frame_unwinders): New function.
9528 (objfpy_set_frame_unwinders): Ditto.
9529 (objfile_getset): Add frame_unwinders attribute to Objfile.
9530 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9531 (pspy_dealloc): Decrement frame_unwinders reference count.
9532 (pspy_initialize): Create frame_unwinders list.
9533 (pspy_get_frame_unwinders): New function.
9534 (pspy_set_frame_unwinders): Ditto.
9535 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9536 * python/py-unwind.c: New file.
9537 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9538 (objpy_get_frame_unwinders): New prototype.
9539 (gdbpy_initialize_unwind): New prototype.
9540 * python/python.c (gdbpy_apply_type_printers): Call
9541 gdbpy_initialize_unwind.
9543 2015-04-01 Pedro Alves <palves@redhat.com>
9545 * infrun.c (resume): Check currently_stepping after clearing
9546 stepped_breakpoint, not before.
9548 2015-04-01 Pedro Alves <palves@redhat.com>
9550 * infrun.c (print_target_wait_results): Print all the ptid
9553 2015-04-01 Pedro Alves <palves@redhat.com>
9555 * infrun.c (keep_going): Also discard cleanups if inserting
9558 2015-04-01 Pedro Alves <palves@redhat.com>
9560 * infrun.c (wait_for_inferior): Install the
9561 finish_thread_state_cleanup cleanup across the whole function, not
9562 just around handle_inferior_event.
9564 2015-04-01 Pedro Alves <palves@redhat.com>
9566 * infrun.c (resume) <step past permanent breakpoint>: Use
9569 2015-04-01 Pedro Alves <palves@redhat.com>
9571 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9573 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9575 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9577 2015-04-01 Pedro Alves <palves@redhat.com>
9579 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9580 list if it was marked exited.
9582 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9584 * configure: Regenerated.
9586 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9587 Jan Kratochvil <jan.kratochvil@redhat.com>
9588 Oleg Nesterov <oleg@redhat.com>
9591 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9592 New enum identifying the various options of the coredump_filter
9594 (struct smaps_vmflags): New struct.
9595 (use_coredump_filter): New variable.
9596 (decode_vmflags): New function.
9597 (mapping_is_anonymous_p): Likewise.
9598 (dump_mapping_p): Likewise.
9599 (linux_find_memory_regions_full): New variables
9600 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9601 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9602 parsing of its information. Implement memory mapping filtering
9603 based on its contents.
9604 (show_use_coredump_filter): New function.
9605 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9606 * NEWS: Mention the possibility of using the
9607 '/proc/PID/coredump_filter' file when generating a corefile.
9608 Mention new command 'set use-coredump-filter'.
9610 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9612 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9613 read_memory_unsigned_integer.
9615 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9617 * Makefile.in (ZLIB): New.
9618 (ZLIBINC): Likewise.
9619 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9620 (CLIBS): Add $(ZLIB).
9621 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9623 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9624 * top.c (print_gdb_configuration): Remove --with-zlib and
9626 * config.in: Regenerated.
9627 * configure: Likewise.
9629 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9631 * NEWS: Mention info os cpus support.
9632 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9633 (struct osdata_type): Add cpus entry, reorder the entries in
9636 2015-03-31 Matthias Klose <doko@ubuntu.com>
9638 * compile/compile.c (compile_to_object): Allow triplets with or
9641 2015-03-30 Doug Evans <dje@google.com>
9644 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9645 klass in VAR_DOMAIN.
9647 2015-03-30 Gary Benson <gbenson@redhat.com>
9649 * remote.c (remote_mourn_1): Remove function. Update all callers
9650 to use remote_mourn.
9651 (extended_remote_mourn_1): Remove function. Update all callers
9652 to use extended_remote_mourn.
9653 (extended_remote_attach_1): Remove function. Update all callers
9654 to use extended_remote_attach.
9656 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9658 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9659 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9660 (ALLDEPFILES): Add ft32-tdep.c.
9661 * configure.tgt: Add FT32 entry.
9662 * ft32-tdep.c: New file, FT32 target-dependent code.
9663 * ft32-tdep.h: New file, FT32 target-dependent code.
9665 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9668 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9670 * printcmd.c (print_command_1): Move expr variable scope.
9672 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9674 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9676 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9678 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9681 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9683 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9684 exception raised while parsing the probe arguments.
9685 Force parsing to be done using the C language parser.
9686 * expression.h (parse_expression_with_language): Declare.
9687 * parse.c (parse_expression_with_language): New function.
9689 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9691 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9693 2015-03-26 Andy Wingo <wingo@igalia.com>
9696 * dwarf2read.c (struct partial_die_info): Add has_const_value
9698 (add_partial_symbol): Don't punt on symbols that have const_value
9700 (read_partial_die): Detect DW_AT_const_value.
9702 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9705 * printcmd.c (print_command_1): Move expr variable scope.
9707 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 * printcmd.c (validate_format): Make the parameter cmdname const.
9712 2015-03-26 Don Breazeal <donb@codesourcery.com>
9714 * remote.c (_initialize_remote): Update comment.
9716 2015-03-26 Pedro Alves <palves@redhat.com>
9717 Jon TURNEY <jon.turney@dronecode.org.uk>
9719 * coffread.c (coff_symfile_read): When constructing the name of an
9720 import stub symbol from import symbol for amd64, only skip the
9721 char after _imp_ if the target is underscored (like i386) and the
9722 char is indeed the target's leading char.
9724 2015-03-25 Pedro Alves <palves@redhat.com>
9726 * target.h <to_async>: Replace 'callback' and 'context' parameters
9727 with boolean 'enable' parameter.
9728 (target_async): Replace CALLBACK and CONTEXT parameters with
9729 boolean ENABLE parameter.
9730 * inf-loop.c (inferior_event_handler): Adjust.
9731 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9732 (linux_nat_resume): Adjust.
9733 (async_client_callback, async_client_context): Delete.
9734 (handle_target_event): Call inferior_event_handler directly.
9735 (linux_nat_async): Replace 'callback' and 'context' parameters
9736 with boolean 'enable' parameter. Adjust. Remove references to
9737 async_client_callback and async_client_context.
9738 (linux_nat_close): Adjust.
9739 * record-btrace.c (record_btrace_async): Replace 'callback' and
9740 'context' parameters with boolean 'enable' parameter. Adjust.
9741 (record_btrace_resume): Adjust.
9742 * record-full.c (record_full_async): Replace 'callback' and
9743 'context' parameters with boolean 'enable' parameter. Adjust.
9744 (record_full_resume, record_full_core_resume): Adjust.
9745 * remote.c (struct remote_state) <async_client_callback,
9746 async_client_context>: Delete fields.
9747 (remote_start_remote, extended_remote_attach_1, remote_resume)
9748 (extended_remote_create_inferior): Adjust.
9749 (remote_async_serial_handler): Call inferior_event_handler
9751 (remote_async): Replace 'callback' and 'context' parameters with
9752 boolean 'enable' parameter. Adjust.
9753 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9755 * target-delegates.c: Regenerate.
9757 2015-03-25 Gary Benson <gbenson@redhat.com>
9758 Pedro Alves <palves@redhat.com>
9760 * target.c (fileio_ft_t): New typedef, define object vector.
9761 (fileio_fhandles): New static variable.
9762 (is_closed_fileio_fh): New macro.
9763 (lowest_closed_fd): New static variable.
9764 (acquire_fileio_fd): New function.
9765 (release_fileio_fd): Likewise.
9766 (fileio_fd_to_fh): New macro.
9767 (target_fileio_open): Wrap the file descriptor on success.
9768 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9769 (target_fileio_pread): Likewise.
9770 (target_fileio_close): Likewise.
9772 2015-03-24 Pedro Alves <palves@redhat.com>
9774 * thread.c (thread_apply_all_command): Take exited threads into
9777 2015-03-24 Pedro Alves <palves@redhat.com>
9779 * infrun.c (resume, proceed): Mention
9780 switch_back_to_stepped_thread, not switch_back_to_stepping.
9782 2015-03-24 Pedro Alves <palves@redhat.com>
9784 * infrun.c (user_visible_resume_ptid): Rewrite going from
9785 most-locked to unlocked instead of the opposite. Move comment ...
9786 * infrun.h (user_visible_resume_ptid): ... here.
9788 2015-03-24 Pedro Alves <palves@redhat.com>
9790 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9791 to resume the event lwp. Use the lwp's ptid instead of the passed
9792 in (maybe wildcard) ptid.
9793 (stop_wait_callback): Tweak debug log output.
9794 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9796 (linux_nat_filter_event): In debug output, distinguish a
9797 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9798 before trying to resume the lwp.
9800 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9802 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9803 pointer indirection.
9804 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9805 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9807 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9809 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9810 Renames DYN_ATTR_DATA_LOCATION.
9811 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9812 DYN_ATTR_DATA_LOCATION.
9813 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9814 instead of DYN_ATTR_DATA_LOCATION.
9816 2015-03-24 Pedro Alves <palves@redhat.com>
9818 * breakpoint.c (until_break_command): Adjust call to proceed.
9819 * gdbthread.h (struct thread_control_state) <stepping_command>:
9821 * infcall.c (run_inferior_call): Adjust call to proceed.
9822 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9823 Adjust calls to proceed.
9824 (set_step_frame): Set the current thread's step_start_function
9826 (step_once): Adjust calls to proceed.
9827 (jump_command, signal_command, until_next_command)
9828 (finish_backward, finish_forward, proceed_after_attach_callback)
9829 (attach_command_post_wait): Adjust calls to proceed.
9830 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9831 (do_target_resume): New function, factored out from ...
9832 (resume): ... here. Remove 'step' parameter. Instead, check
9833 currently_stepping to determine whether the thread should be
9835 (proceed): Remove 'step' parameter and don't set the thread's
9836 step_start_function here. Adjust call to 'resume'.
9837 (handle_inferior_event): Adjust calls to 'resume'.
9838 (switch_back_to_stepped_thread): Use do_target_resume instead of
9840 (keep_going): Adjust calls to 'resume'.
9841 * infrun.h (proceed): Remove 'step' parameter.
9843 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9845 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9847 2015-03-24 Pedro Alves <palves@redhat.com>
9849 * gdbthread.h (struct thread_control_state) <stepping_command>:
9851 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9852 the thread's stepping_command field.
9853 * infrun.c (resume): Check the thread's stepping_command flag to
9854 determine which threads should be resumed. Rename 'entry_step'
9856 (clear_proceed_status_thread): Clear 'stepping_command'.
9857 (schedlock_applies): Change parameter type to struct thread_info
9859 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9860 (switch_back_to_stepped_thread): Adjust calls to
9861 'schedlock_applies'.
9862 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9864 2015-03-24 Pedro Alves <palves@redhat.com>
9866 * infrun.c (step_start_function): Delete and ...
9867 * gdbthread.h (struct thread_control_state) <step_start_function>:
9868 ... now a field here.
9869 * infrun.c (clear_proceed_status_thread): Clear the thread's
9870 step_start_function.
9871 (proceed, process_event_stop_test, print_stop_event): Adjust.
9873 2015-03-24 Pedro Alves <palves@redhat.com>
9875 * infrun.c (proceed): No longer handle negative step.
9877 2015-03-24 Gary Benson <gbenson@redhat.com>
9879 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9880 (x86_linux_prepare_to_resume): Likewise.
9881 * x86-linux-nat.c (x86_linux_new_thread):
9882 Moved to nat/x86-linux.c.
9883 (x86_linux_prepare_to_resume): Likewise.
9884 * nat/x86-linux.c (x86_linux_new_thread): New function.
9885 (x86_linux_prepare_to_resume): Likewise.
9887 2015-03-24 Gary Benson <gbenson@redhat.com>
9889 * nat/x86-linux-dregs.h: New file.
9890 * nat/x86-linux-dregs.c: Likewise.
9891 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9892 (x86-linux-dregs.o): New rule.
9893 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9894 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9895 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9896 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9897 (x86_linux_dr_get): Likewise.
9898 (x86_linux_dr_set): Likewise.
9899 (x86_linux_dr_get_addr): Likewise.
9900 (x86_linux_dr_get_control): Likewise.
9901 (x86_linux_dr_get_status): Likewise.
9902 (update_debug_registers_callback): Likewise.
9903 (x86_linux_dr_set_control): Likewise.
9904 (x86_linux_dr_set_addr): Likewise.
9905 (x86_linux_update_debug_registers): Likewise.
9907 2015-03-24 Gary Benson <gbenson@redhat.com>
9909 * x86-linux-nat.c (x86_linux_update_debug_registers):
9910 New function, factored out from...
9911 (x86_linux_prepare_to_resume): ...this.
9913 2015-03-24 Gary Benson <gbenson@redhat.com>
9915 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9916 (x86_linux_dr_set): Likewise.
9917 (x86_linux_dr_get_addr): Likewise.
9918 (x86_linux_dr_get_control): Likewise.
9919 (x86_linux_dr_get_status): Likewise.
9920 (update_debug_registers_callback): Likewise.
9921 (x86_linux_dr_set_control): Likewise.
9922 (x86_linux_dr_set_addr): Likewise.
9923 (x86_linux_prepare_to_resume): Likewise.
9924 (x86_linux_new_thread): Likewise.
9926 2015-03-24 Gary Benson <gbenson@redhat.com>
9928 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9929 (x86_linux_new_thread): Rename argument.
9931 2015-03-24 Gary Benson <gbenson@redhat.com>
9933 * nat/x86-linux.h: New file.
9934 * nat/x86-linux.c: Likewise.
9935 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9936 (x86-linux.o): New rule.
9937 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9938 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9939 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9940 (lwp_set_arch_private_info): New declaration.
9941 (lwp_arch_private_info): Likewise.
9942 * linux-nat.c (lwp_set_arch_private_info): New function.
9943 (lwp_arch_private_info): Likewise.
9944 * x86-linux-nat.c: Include nat/x86-linux.h.
9945 (arch_lwp_info): Removed structure.
9946 (update_debug_registers_callback):
9947 Use lwp_set_debug_registers_changed.
9948 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9949 and lwp_set_debug_registers_changed.
9950 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9952 2015-03-24 Gary Benson <gbenson@redhat.com>
9954 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9955 (lwp_is_stopped): Likewise.
9956 (lwp_stop_reason): Likewise.
9957 * linux-nat.c (ptid_of_lwp): New function.
9958 (lwp_is_stopped): Likewise.
9959 (lwp_is_stopped_by_watchpoint): Likewise.
9960 * x86-linux-nat.c (update_debug_registers_callback):
9962 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9965 2015-03-24 Gary Benson <gbenson@redhat.com>
9967 * linux-nat.h (linux_stop_lwp): Move declaration to...
9968 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9970 2015-03-24 Gary Benson <gbenson@redhat.com>
9972 * linux-nat.h: Include nat/linux-nat.h.
9973 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9974 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9975 (iterate_over_lwps_ftype): New typedef.
9976 (iterate_over_lwps): New declaration.
9977 * linux-nat.h (iterate_over_lwps): Update comment. Use
9978 iterate_over_lwps_ftype. Update callback return value check.
9980 2015-03-24 Gary Benson <gbenson@redhat.com>
9982 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9983 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9985 2015-03-24 Gary Benson <gbenson@redhat.com>
9987 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9988 * linux-nat.c (current_lwp_ptid): New function.
9989 * x86-linux-nat.c: Include nat/linux-nat.h.
9990 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9991 (x86_linux_dr_get_control): Likewise.
9992 (x86_linux_dr_get_status): Likewise.
9993 (x86_linux_dr_set_control): Likewise.
9994 (x86_linux_dr_set_addr): Likewise.
9996 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9998 PR breakpoints/16466
9999 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10001 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10003 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10004 * ser-unix.c (hardwire_setparity): Likewise.
10006 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10008 * NEWS: Mention set/show serial parity command.
10009 * monitor.c (monitor_open): Call serial_setparity.
10010 * remote.c (remote_open_1): Likewise.
10011 * ser-base.c (ser_base_serparity): New function.
10012 * ser-base.h (ser_base_setparity): Add declaration.
10013 * ser-go32.c (dos_ops): Set "setparity" field.
10014 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10016 (ser_windows_setparity): New function.
10017 (hardwire_ops): Add ser_windows_setparity.
10018 (tty_ops): Add NULL for setparity field.
10019 (pipe_ops): Add ser_base_setparity.
10020 (tcp_ops): Likewise.
10021 * ser-pipe.c (pipe_ops): Likewise.
10022 * ser-tcp.c (tcp_ops): Likewise.
10023 * ser-unix.c (hardwire_setparity): Add declaration.
10024 (hardwire_raw): Don't reset PARENB flag.
10025 (hardwire_setparity): New function.
10026 (hardwire_ops): Add hardwire_setparity.
10027 * serial.c (serial_setparity): New function.
10028 (serial_parity): New global.
10029 (parity_none, parity_odd, parity_even, parity_enums, parity):
10030 New static globals.
10031 (set_parity): New function.
10032 (_initialize_serial): Add set/show serial parity commands.
10033 * serial.h (GDBPARITY_NONE): Define.
10034 (GDBPARITY_ODD): Define.
10035 (GDBPARITY_EVEN): Define.
10036 (serial_setparity) Add declaration.
10037 (struct serial_ops): Add setparity field.
10038 * target.h (serial_parity): Add declaration.
10040 2015-03-23 Keith Seitz <keiths@redhat.com>
10042 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10044 2015-03-23 Keith Seitz <keiths@redhat.com>
10046 * breakpoint.c (parse_breakpoint_sals): Use
10047 linespec_lexer_lex_keyword to ascertain if the user specified
10049 * linespec.c [IF_KEYWORD_INDEX]: Define.
10050 (linespec_lexer_lex_keyword): Export.
10051 (struct ls_parser) <keyword_ok>: Remove.
10052 A keyword is only a keyword if not followed by another keyword.
10053 (linespec_lexer_lex_one): Remove keyword_ok handling.
10054 Add comment explaining why the parsing stream is not advanced
10055 when a keyword is seen.
10056 (parse_linespec): Remove parser->keyword_ok.
10057 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10059 2015-03-23 Keith Seitz <keiths@redhat.com>
10062 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10063 if we find a static method with DW_AT_vtable_elem_location.
10065 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10067 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10068 before the second loop, to avoid undefined behavior. Reported by
10069 Anton Blanchard <anton@samba.org>.
10071 2015-03-20 Keven Boell <keven.boell@intel.com>
10073 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10074 data_location usage to linked list.
10075 (resolve_dynamic_type_internal): Adapt data_location to
10077 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10078 (copy_type_recursive, copy_type): Add copy of linked list.
10079 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10080 (struct dynamic_prop_list): New struct.
10081 * dwarf2read.c (set_die_type): Set data_location data.
10083 2015-03-20 Pedro Alves <palves@redhat.com>
10085 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10086 inner block and make it const.
10087 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10089 2015-03-20 Pedro Alves <palves@redhat.com>
10091 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10092 * breakpoint.h (set_breakpoint_condition): Update declaration.
10094 2015-03-20 Pedro Alves <palves@redhat.com>
10096 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10098 2015-03-20 Pedro Alves <palves@redhat.com>
10100 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10102 2015-03-20 Pedro Alves <palves@redhat.com>
10104 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10106 2015-03-20 Pedro Alves <palves@redhat.com>
10108 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10109 (nto_init_solib_absolute_prefix): Likewise.
10111 2015-03-20 Pedro Alves <palves@redhat.com>
10113 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10114 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10116 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10118 * config/djgpp/README: Remove gdb.hp.
10120 2015-03-20 Yao Qi <yao.qi@linaro.org>
10122 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10123 set_gdbarch_cannot_step_breakpoint.
10125 2015-03-19 Pedro Alves <palves@redhat.com>
10127 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10128 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10129 instead call perror_with_name.
10130 (check_ptrace_stopped_lwp_gone): New function.
10131 (linux_resume_one_lwp): Reimplement as wrapper around
10132 linux_resume_one_lwp_throw that swallows errors if the LWP is
10134 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10135 swallows errors if the LWP is gone. Use
10136 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10138 2015-03-19 Pedro Alves <palves@redhat.com>
10140 * linux-nat.c (status_callback): Return early if the LWP has no
10143 2015-03-19 Pedro Alves <palves@redhat.com>
10145 * linux-nat.c (select_event_lwp_callback): Update comment to no
10146 longer mention SIGTRAP.
10148 2015-03-18 Tristan Gingold <gingold@adacore.com>
10150 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10151 redirection code to ...
10152 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10153 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10155 2015-03-18 Gary Benson <gbenson@redhat.com>
10157 (remote_protocol_features): Remove the "vFile:fstat" feature.
10158 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10160 2015-03-11 Yao Qi <yao.qi@linaro.org>
10163 * aarch64-linux-tdep.c: Include xml-syscall.h
10164 (aarch64_linux_get_syscall_number): New function.
10165 (aarch64_linux_init_abi): Call
10166 set_gdbarch_get_syscall_number.
10167 * syscalls/aarch64-linux.xml: New file.
10169 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10171 * ser-base.h (ser_base_setstopbits): Change second argument name
10172 from "rate" to "num".
10174 2015-03-17 Gary Benson <gbenson@redhat.com>
10175 Luke Allardyce <lukeallardyce@gmail.com>
10178 * common/common-remote-fileio.h (sys/stat.h): New include.
10179 (stuct stat): Remove forward declaration.
10181 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10183 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10184 before writing core register notes.
10186 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10187 Pedro Alves <palves@redhat.com>
10189 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10190 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10191 (tgoto): Wrap with extern "C".
10193 2015-03-16 Pedro Alves <palves@redhat.com>
10194 Yuanhui Zhang <asmwarrior@gmail.com>
10196 * stub-termcap.c (tputs): Change prototype.
10198 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10199 Pedro Alves <palves@redhat.com>
10201 * windows-nat.c (struct thread_info_struct): Rename to ...
10202 (struct windows_thread_info_struct): ... this.
10203 (thread_info): Rename to ...
10204 (windows_thread_info): ... this.
10207 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10208 Pedro Alves <palves@redhat.com>
10210 * NEWS: New Removed targets and native configurations.
10212 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10215 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10216 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10217 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10218 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10219 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10220 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10221 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10223 * config/ia64/hpux.mh: Remove file.
10224 * config/pa/hpux.mh: Remove file.
10225 * configure: Rebuilt.
10226 * configure.ac (dlgetmodinfo, somread.o): Remove.
10227 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10228 (ia64-*-hpux*): Remove its float format exception.
10229 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10230 * hppa-hpux-nat.c: Remove file.
10231 * hppa-hpux-tdep.c: Remove file.
10232 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10233 Move them here from hppa-tdep.h
10234 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10235 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10236 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10237 Move them to hppa-tdep.c.
10238 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10240 * ia64-hpux-nat.c: Remove file.
10241 * ia64-hpux-tdep.c: Remove file.
10242 * ia64-hpux-tdep.h: Remove file.
10243 * inf-ttrace.c: Remove file.
10244 * inf-ttrace.h: Remove file.
10245 * solib-ia64-hpux.c: Remove file.
10246 * solib-ia64-hpux.h: Remove file.
10247 * solib-pa64.c: Remove file.
10248 * solib-pa64.h: Remove file.
10249 * solib-som.c: Remove file.
10250 * solib-som.h: Remove file.
10251 * somread.c: Remove file.
10253 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10255 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10256 * config.in: Regenerate.
10257 * configure: Regenerate.
10258 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10260 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10261 enumerate memory regions if present.
10263 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10265 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10266 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10268 (i386fbsd_sigtramp_p): Likewise.
10270 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10272 * MAINTAINERS (Write After Approval): Add John Baldwin.
10274 2015-03-12 Gary Benson <gbenson@redhat.com>
10276 * solib.c (_initialize_solib): Make "set/show sysroot" use
10277 add_setshow_optional_filename_cmd so it can be restored to
10278 empty after being set.
10280 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10282 * Makefile.in (SFILES): New source break-catch-syscall.c.
10283 (COMMON_OBS): New object break-catch-syscall.o.
10284 * break-catch-syscall.c: New file.
10285 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10286 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10287 (struct syscall_catchpoint): Likewise.
10288 (dtor_catch_syscall): Likewise.
10289 (catch_syscall_inferior_data): Likewise.
10290 (struct catch_syscall_inferior_data): Likewise.
10291 (get_catch_syscall_inferior_data): Likewise.
10292 (catch_syscall_inferior_data_cleanup): Likewise.
10293 (insert_catch_syscall): Likewise.
10294 (remove_catch_syscall): Likewise.
10295 (breakpoint_hit_catch_syscall): Likewise.
10296 (print_it_catch_syscall): Likewise.
10297 (print_one_catch_syscall): Likewise.
10298 (print_mention_catch_syscall): Likewise.
10299 (print_recreate_catch_syscall): Likewise.
10300 (catch_syscall_breakpoint_ops): Likewise.
10301 (syscall_catchpoint_p): Likewise.
10302 (create_syscall_event_catchpoint): Likewise.
10303 (catch_syscall_split_args): Likewise.
10304 (catch_syscall_command_1): Likewise.
10305 (is_syscall_catchpoint_enabled): Likewise.
10306 (catch_syscall_enabled): Likewise.
10307 (catching_syscall_number): Likewise.
10308 (catch_syscall_completer): Likewise.
10309 (clear_syscall_counts): Likewise.
10310 (initialize_breakpoint_ops): Move initialization of syscall
10311 catchpoints to break-catch-syscall.c.
10312 (_initialize_breakpoint): Move code related to syscall catchpoints
10313 to break-catch-syscall.c.
10315 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10317 * breakpoint.c (breakpoint_find_if): New function.
10318 * breakpoint.h (breakpoint_find_if): New prototype.
10320 2015-03-11 Gary Benson <gbenson@redhat.com>
10322 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10323 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10324 (remote_fileio_to_host_ulong): Likewise.
10325 (remote_fileio_to_host_mode): Likewise.
10326 (remote_fileio_to_host_time): Likewise.
10327 (remote_fileio_to_host_stat): Likewise.
10328 * remote.c (PACKET_vFile_fstat): New enum value.
10329 (remote_protocol_features): Register the "vFile:fstat" feature.
10330 (remote_hostio_fstat): New function.
10331 (remote_bfd_iovec_stat): Use the above.
10332 (_initialize_remote): Register new "set/show remote
10333 hostio-fstat-packet" command.
10334 * symfile.c (separate_debug_file_exists): Update comment.
10335 * NEWS: Announce new vFile:fstat packet.
10337 2015-03-11 Gary Benson <gbenson@redhat.com>
10339 * common/common-remote-fileio.h: New file.
10340 * common/common-remote-fileio.c: Likewise.
10341 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10342 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10343 (COMMON_OBS): Add common-remote-fileio.o.
10344 (common-remote-fileio.o): New rule.
10345 * remote-fileio.h (common-remote-fileio.h): New include.
10346 * remote-fileio.c (gdb/fileio.h): Do not include.
10347 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10348 (remote_fileio_to_fio_uint): Likewise.
10349 (remote_fileio_to_fio_time): Likewise.
10350 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10351 (remote_fileio_to_fio_mode): Likewise.
10352 (remote_fileio_to_fio_ulong): Likewise.
10353 (remote_fileio_to_fio_stat): Likewise.
10355 2015-03-11 Andy Wingo <wingo@igalia.com>
10357 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10358 we were checking the cached type, not the cached dynamic type.
10360 2015-03-11 Andy Wingo <wingo@igalia.com>
10362 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10363 other strings, as these are on the GC'd heap, and will be
10364 collected along with the smob.
10366 2015-03-11 Andy Wingo <wingo@igalia.com>
10368 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10369 (objfile_functions): Bind gdbscm_objfile_progspace to
10371 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10373 2015-03-11 Andy Wingo <wingo@igalia.com>
10375 * guile/guile.c (_initialize_guile): Disable automatic
10376 finalization, if Guile offers us that possibility.
10377 * guile/guile.c (call_initialize_gdb_module):
10378 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10379 finalizers in appropriate places.
10380 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10381 scm_set_automatic_finalization_enabled.
10382 * configure: Regenerated.
10384 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10386 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10389 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10391 * s390-linux-nat.c (struct arch_lwp_info): New.
10392 (s390_fix_watch_points): Rename to...
10393 (s390_prepare_to_resume): ...this. Skip the PER info update
10394 unless the watch points have changed.
10395 (s390_refresh_per_info, s390_new_thread): New functions.
10396 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10397 s390_fix_watch_points.
10398 (s390_remove_watchpoint): Likewise.
10399 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10400 Register s390_prepare_to_resume.
10402 2015-03-09 Pedro Alves <palves@redhat.com>
10405 2015-03-07 Pedro Alves <palves@redhat.com>
10406 * common/gdb_socket.h: New file.
10407 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10409 (net_open): Use union gdb_sockaddr_u.
10411 2015-03-07 Pedro Alves <palves@redhat.com>
10413 * configure.ac (build_warnings): Move -Wmissing-prototypes
10414 -Wdeclaration-after-statement -Wmissing-parameter-type
10415 -Wold-style-declaration -Wold-style-definition to the C-specific
10417 * configure: Regenerate.
10419 2015-03-07 Pedro Alves <palves@redhat.com>
10421 * common/gdb_socket.h: New file.
10422 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10424 (net_open): Use union gdb_sockaddr_u.
10426 2015-03-07 Pedro Alves <palves@redhat.com>
10428 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10429 (exceptions_state_mc_action_iter)
10430 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10432 [__cplusplus] (try_scope_depth): New global.
10433 [__cplusplus] (exception_try_scope_entry)
10434 (exception_try_scope_exit, gdb_exception_sliced_copy)
10435 (exception_rethrow): New functions.
10436 (throw_exception): In C++ mode, throw
10437 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10438 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10439 (throw_it): In C++ mode, use try_scope_depth.
10440 * common/common-exceptions.h [!__cplusplus]
10441 (exceptions_state_mc_action_iter)
10442 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10444 [__cplusplus] (exception_try_scope_entry)
10445 (exception_try_scope_exit, exception_rethrow): Declare.
10446 [__cplusplus] (struct exception_try_scope): New struct.
10447 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10449 (struct gdb_exception_RETURN_MASK_ALL)
10450 (struct gdb_exception_RETURN_MASK_ERROR)
10451 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10453 2015-03-07 Pedro Alves <palves@redhat.com>
10455 * main.c (handle_command_errors): Remove volatile qualifier from
10458 2015-03-07 Pedro Alves <palves@redhat.com>
10460 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10462 * gdbtypes.c (safe_parse_type): Remove empty line.
10463 (types_deeply_equal):
10464 * guile/scm-frame.c (gdbscm_frame_name):
10465 * linux-thread-db.c (find_new_threads_once):
10466 * python/py-breakpoint.c (bppy_get_commands):
10467 * record-btrace.c (record_btrace_insert_breakpoint)
10468 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10469 (record_btrace_start_replaying): Adjust to avoid code between TRY
10472 2015-03-07 Pedro Alves <palves@redhat.com>
10474 * common/common-exceptions.c (struct catcher) <exception>: No
10475 longer a pointer to volatile exception. Now an exception value.
10476 <mask>: Delete field.
10477 (exceptions_state_mc_init): Remove all parameters. Adjust.
10478 (exceptions_state_mc): No longer pop the catcher here.
10479 (exceptions_state_mc_catch): New function.
10480 (throw_exception): Adjust.
10481 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10483 (exceptions_state_mc_catch): Declare.
10484 (TRY_CATCH): Rename to ...
10485 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10486 (CATCH, END_CATCH): New.
10487 All callers adjusted.
10489 2015-03-07 Tom Tromey <tromey@redhat.com>
10491 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10493 2015-03-07 Pedro Alves <palves@redhat.com>
10495 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10496 (amd64_epilogue_frame_cache): Normal exception handling code.
10497 * break-catch-throw.c (check_status_exception_catchpoint)
10498 (re_set_exception_catchpoint): Ditto.
10499 * cli/cli-interp.c (safe_execute_command):
10500 * cli/cli-script.c (script_from_file): Ditto.
10501 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10503 * compile/compile-object-run.c (compile_object_run): Ditto.
10504 * cp-abi.c (baseclass_offset): Ditto.
10505 * cp-valprint.c (cp_print_value): Ditto.
10506 * exceptions.c (catch_exceptions_with_msg):
10507 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10508 * frame.c (get_frame_address_in_block_if_available): Ditto.
10509 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10510 (i386_sigtramp_frame_cache): Ditto.
10511 * infcmd.c (post_create_inferior): Ditto.
10512 * linespec.c (parse_linespec, find_linespec_symbols):
10513 * p-valprint.c (pascal_object_print_value): Ditto.
10514 * parse.c (parse_expression_for_completion): Ditto.
10515 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10516 * remote.c (remote_get_noisy_reply): Ditto.
10517 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10518 * solib-svr4.c (solib_svr4_r_map): Ditto.
10520 2015-03-06 Gary Benson <gbenson@redhat.com>
10522 * common/common-utils.h (startswith): New inline function.
10523 All places where this logic was used updated to use the above.
10525 2015-03-05 Pedro Alves <palves@redhat.com>
10528 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10529 after reading the breakpoint's shadow memory.
10531 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10533 * hppabsd-nat.c: Remove file.
10534 * hppaobsd-nat.c: New file.
10535 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10537 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10540 2015-03-04 Pedro Alves <palves@redhat.com>
10542 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10543 (target_decr_pc_after_break): Delete declaration.
10544 * target.c (default_target_decr_pc_after_break)
10545 (target_decr_pc_after_break): Delete.
10546 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10547 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10548 * linux-thread-db.c (check_event): Likewise.
10549 * infrun.c (adjust_pc_after_break): Likewise.
10550 * darwin-nat.c (cancel_breakpoint): Likewise.
10551 * aix-thread.c (aix_thread_wait): Likewise.
10552 * target-delegates.c: Regenerate.
10554 2015-03-04 Pedro Alves <palves@redhat.com>
10556 * linux-nat.c (save_sigtrap): Check for breakpoints before
10557 checking watchpoints.
10558 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10559 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10560 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10561 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10562 (linux_nat_stopped_by_sw_breakpoint)
10563 (linux_nat_supports_stopped_by_sw_breakpoint)
10564 (linux_nat_stopped_by_hw_breakpoint)
10565 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10566 (linux_nat_wait_1): Don't re-increment the PC if relying on
10567 SIGTRAP's siginfo->si_code.
10568 (linux_nat_add_target): Install new target methods.
10569 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10570 offset if the target already adjusted the PC.
10571 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10572 (GDB_ARCH_TRAP_BRKPT): New.
10573 (TRAP_HWBKPT): Define if not already defined.
10575 2015-03-04 Pedro Alves <palves@redhat.com>
10577 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10578 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10580 <stop_reason>: New field.
10581 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10582 (packet_set_cmd_state): New function.
10583 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10585 (remote_query_supported): If not disabled with the corresponding
10586 "set remote foo-packet" command, report support for the swbreak
10587 and hwbreak features.
10588 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10590 <stop_reason>: New field.
10591 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10592 (remote_wait_as): Adjust.
10593 (remote_stopped_by_sw_breakpoint)
10594 (remote_supports_stopped_by_sw_breakpoint)
10595 (remote_stopped_by_hw_breakpoint)
10596 (remote_supports_stopped_by_hw_breakpoint): New functions.
10597 (remote_stopped_by_watchpoint): New function.
10598 (init_remote_ops): Install them.
10599 (_initialize_remote): Register new "set/show remote
10600 swbreak-feature-packet" and "set/show remote
10601 swbreak-feature-packet" commands.
10603 2015-03-04 Pedro Alves <palves@redhat.com>
10605 * btrace.h: Include target/waitstatus.h.
10606 (struct btrace_thread_info) <stop_reason>: New field.
10607 * record-btrace.c (record_btrace_step_thread): Use
10608 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10609 (record_btrace_decr_pc_after_break): Delete.
10610 (record_btrace_stopped_by_sw_breakpoint)
10611 (record_btrace_supports_stopped_by_sw_breakpoint)
10612 (record_btrace_stopped_by_hw_breakpoint)
10613 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10614 (init_record_btrace_ops): Install them.
10615 * record-full.c (record_full_hw_watchpoint): Delete and replace
10617 (record_full_stop_reason): ... this throughout.
10618 (record_full_exec_insn): Adjust.
10619 (record_full_wait_1): Adjust. No longer re-increment the PC.
10620 (record_full_wait_1): Adjust. Use
10621 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10622 (record_full_stopped_by_watchpoint): Adjust.
10623 (record_full_stopped_by_sw_breakpoint)
10624 (record_full_supports_stopped_by_sw_breakpoint)
10625 (record_full_supports_stopped_by_sw_breakpoint)
10626 (record_full_stopped_by_hw_breakpoint)
10627 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10628 (init_record_full_ops, init_record_full_core_ops): Install them.
10629 * record.c (record_check_stopped_by_breakpoint): New function.
10630 * record.h: Include target/waitstatus.h.
10631 (record_check_stopped_by_breakpoint): New declaration.
10633 2015-03-04 Pedro Alves <palves@redhat.com>
10635 enum lwp_stop_reason -> enum target_stop_reason
10636 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10637 (linux_nat_stopped_by_watchpoint, status_callback)
10638 (linux_nat_wait_1): Adjust.
10639 * linux-nat.h (enum lwp_stop_reason): Delete.
10640 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10641 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10642 * target/waitstatus.h (enum target_stop_reason): New.
10644 2015-03-04 Pedro Alves <palves@redhat.com>
10646 * breakpoint.c (need_moribund_for_location_type): New function.
10647 (bpstat_stop_status): Don't skipping checking moribund locations
10648 of breakpoint types which the target tell caused a stop.
10649 (program_breakpoint_here_p): New function, factored out from ...
10650 (bp_loc_is_permanent): ... this.
10651 (update_global_location_list): Don't create a moribund location if
10652 the target supports reporting stops of the type of the removed
10654 * breakpoint.h (program_breakpoint_here_p): New declaration.
10655 * infrun.c (adjust_pc_after_break): Return early if the target has
10656 already adjusted the PC. Add comments.
10657 (handle_signal_stop): If nothing explains a signal, and the target
10658 tells us the stop was caused by a software breakpoint, check if
10659 there's a breakpoint instruction in the memory. If so, adjust the
10660 PC before presenting the stop to the user. Otherwise, ignore the
10661 trap. If nothing explains a signal, and the target tells us the
10662 stop was caused by a hardware breakpoint, ignore the trap.
10663 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10664 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10665 to_supports_stopped_by_hw_breakpoint>: New fields.
10666 (target_stopped_by_sw_breakpoint)
10667 (target_supports_stopped_by_sw_breakpoint)
10668 (target_stopped_by_hw_breakpoint)
10669 (target_supports_stopped_by_hw_breakpoint): Define.
10670 * target-delegates.c: Regenerate.
10672 2015-03-04 Pedro Alves <palves@redhat.com>
10674 * infrun.c (follow_fork_inferior): Use the whole of the
10675 inferior_ptid and pending_follow.related_pid ptids instead of
10676 building ptids from the process components. Adjust verbose output
10677 to use target_pid_to_str.
10678 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10679 inferior_ptid and pending_follow.related_pid ptids instead of
10680 building ptids from the process components.
10682 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10684 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10685 (inf_ptrace_insert_fork_catchpoint): New function.
10686 (inf_ptrace_remove_fork_catchpoint): New function.
10687 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10689 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10691 * s390-linux-tdep.c (s390_register_name): Return empty string
10692 instead of NULL for registers that shouldn't be visible.
10694 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10696 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10697 XML file for 64-bit targets.
10699 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10701 * target.h (find_default_create_inferior): Remove declaration.
10702 (find_default_attach): Likewise.
10704 2015-03-03 Pedro Alves <palves@redhat.com>
10706 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10707 Use ptid_get_pid to get the overall process id when resuming all
10710 2015-03-03 Pedro Alves <palves@redhat.com>
10712 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10713 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10714 * inf-ptrace.c (get_ptrace_pid): New function.
10715 (inf_ptrace_resume): Use it.
10716 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10717 to the lower layer.
10719 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10721 * nat/linux-btrace.c: Include sys/utsname.h.
10722 (linux_determine_kernel_ptr_bits): New.
10723 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10724 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10727 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10729 * btrace.c (ftrace_update_function): Treat return as tailcall for
10730 "_dl_runtime_resolve".
10732 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10734 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10735 * btrace.c (ftrace_debug): Do not print the line range.
10736 (ftrace_skip_file, ftrace_update_lines): Remove.
10737 (ftrace_new_function): Remove lbegin and lend initialization.
10738 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10739 * record-btrace.c (btrace_compute_src_line_range): New.
10740 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10742 2015-03-02 Pedro Alves <palves@redhat.com>
10744 * infrun.c (follow_exec): Delete all threads of the process except
10745 the event thread. Extended comments.
10747 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10749 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10751 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10753 * utils.h: Remove <stdbool.h> #include.
10754 (producer_is_gcc): Change return type to "int".
10755 * utils.c (producer_is_gcc): Change return type to int.
10756 Return 1 instead of true, and 0 instead of false.
10757 Adjust function documentation accordingly.
10759 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10761 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10762 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10764 (s390_linux_store_inferior_registers): Likewise.
10765 (s390_get_hwcap): Remove function. Embed its logic...
10766 (s390_read_description): ...here. Yield a target description with
10767 vector registers if applicable.
10768 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10769 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10770 "features/s390x-tevx-linux64.c".
10771 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10772 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10773 for "GNU/Linux-specific registers".
10774 (s390_dwarf_reg_r0l): New enum value.
10775 (s390_dwarf_reg_to_regnum): Support vector registers.
10776 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10777 of GPR lower halves.
10778 (regnum_is_vxr_full): New function.
10779 (s390_register_name): New function.
10780 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10781 f0-f15 and v0l-v15l.
10782 (s390_pseudo_register_type): Likewise.
10783 (s390_pseudo_register_read): Likewise.
10784 (s390_pseudo_register_write): Likewise.
10785 (s390_value_from_register): Account for the fact that values are
10786 placed left-justified in vector registers.
10787 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10788 the vector reggroup and omit them from the general reggroup.
10789 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10790 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10791 (s390_iterate_over_regset_sections): Add iterations for the two
10792 new vector regsets.
10793 (s390_core_read_description): Yield a target description with
10794 vector registers if applicable.
10795 (s390_gdbarch_init): Handle target descriptions with vector
10796 registers. Add "register_name" gdbarch method.
10797 (_initialize_s390_tdep): Call new tdesc initialization functions.
10798 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10799 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10800 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10801 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10802 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10803 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10804 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10805 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10806 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10807 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10808 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10809 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10810 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10811 (S390_NUM_REGS): Adjust value.
10812 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10813 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10814 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10815 * NEWS: Announce S/390 vector register support.
10817 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10819 * features/s390-tevx-linux64.xml: New file.
10820 * features/s390-vx-linux64.xml: New file.
10821 * features/s390-vx.xml: New file.
10822 * features/s390x-tevx-linux64.xml: New file.
10823 * features/s390x-vx-linux64.xml: New file.
10824 * features/Makefile (WHICH): Add s390-vx-linux64,
10825 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10826 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10827 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10829 * features/s390-tevx-linux64.c: New generated file.
10830 * features/s390-vx-linux64.c: Likewise.
10831 * features/s390x-tevx-linux64.c: Likewise.
10832 * features/s390x-vx-linux64.c: Likewise.
10833 * regformats/s390-tevx-linux64.dat: Likewise.
10834 * regformats/s390-vx-linux64.dat: Likewise.
10835 * regformats/s390x-tevx-linux64.dat: Likewise.
10836 * regformats/s390x-vx-linux64.dat: Likewise.
10838 2015-02-28 Doug Evans <xdje42@gmail.com>
10840 * symtab.h (struct symtab) <next>: Fix comment.
10842 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10844 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10847 2015-02-27 Pedro Alves <palves@redhat.com>
10849 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10851 2015-02-27 Pedro Alves <palves@redhat.com>
10853 * common/common-exceptions.h (exception_none): Declare.
10854 * common/common-exceptions.c (exception_none): Moved from
10856 (exceptions_state_mc_init): Use exception_none.
10857 * exceptions.c (exception_none): Move to
10858 common/common-exceptions.c.
10859 * exceptions.h (exception_none): Move to
10860 common/common-exceptions.h.
10862 2015-02-27 Pedro Alves <palves@redhat.com>
10864 * main.c (catch_command_errors, catch_command_errors_const):
10865 Remove 'mask' argument. Adjust.
10866 (captured_main): Adjust callers.
10868 2015-02-27 Pedro Alves <palves@redhat.com>
10870 * python/python-internal.h: Include "extension-priv.h".
10872 2015-02-27 Pedro Alves <palves@redhat.com>
10874 * breakpoint.h (enum print_stop_action): Move further up in the
10877 2015-02-27 Pedro Alves <palves@redhat.com>
10879 * gdbarch.sh: Include regcache.h.
10880 * gdbarch.h: Regenerate.
10882 2015-02-27 Pedro Alves <palves@redhat.com>
10884 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10885 Remove duplicate const.
10886 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10889 2015-02-27 Pedro Alves <palves@redhat.com>
10891 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10892 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10893 * features/feature_to_c.sh: Tag the generated xml_builtin array
10894 with extern const in C++ mode.
10896 2015-02-27 Tom Tromey <tromey@redhat.com>
10898 * minidebug.c (struct lzma_stream): Rename to ...
10899 (struct gdb_lzma_stream): ... this.
10900 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10902 2015-02-27 Pedro Alves <palves@redhat.com>
10904 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10906 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10907 (mi_cmd_stack_list_variables): Use it.
10909 2015-02-27 Pedro Alves <palves@redhat.com>
10911 * x86-linux-nat.c (u_debugreg_offset): New function.
10912 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10914 2015-02-27 Pedro Alves <palves@redhat.com>
10916 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10918 Include break-common.h.
10920 2015-02-27 Tom Tromey <tromey@redhat.com>
10921 Pedro Alves <palves@redhat.com>
10923 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10924 local used to iterate over enums.
10925 * completer.c (signal_completer): Likewise.
10926 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10927 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10928 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10929 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10930 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10931 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10932 * tui-wingeneral.c (tui_refresh_all): Likewise.
10934 2015-02-27 Pedro Alves <palves@redhat.com>
10936 * target.h: Include "infrun.h".
10938 2015-02-27 Pedro Alves <palves@redhat.com>
10940 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10942 2015-02-27 Pedro Alves <palves@redhat.com>
10944 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10946 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10948 2015-02-27 Pedro Alves <palves@redhat.com>
10950 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10951 cli_mld_erase_entire_line, and make it extern "C".
10952 * common/common-defs.h (EXTERN_C): New.
10953 * completer.c (_rl_completion_prefix_display_length)
10954 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10955 out of gdb_display_match_list_1.
10956 (_rl_qsort_string_compare): Move declaration out of
10957 gdb_display_match_list_1, and make it extern "C".
10958 * defs.h (re_comp): Use EXTERN_C.
10959 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10960 and make it extern "C".
10961 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10962 and make it extern "C".
10963 (main): Move declaration out of maintenance_set_profile_cmd.
10964 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10967 2015-02-27 Pedro Alves <palves@redhat.com>
10969 * python/python.c (GdbMethods): Rename to ...
10970 (python_GdbMethods): ... this and make extern.
10971 (GdbModuleDef): Rename to ...
10972 (python_GdbModuleDef): ... this and make extern.
10974 2015-02-27 Pedro Alves <palves@redhat.com>
10976 * record-btrace.c (set_record_btrace_cmdlist)
10977 (show_record_btrace_cmdlist): Remove redefinitions.
10979 2015-02-27 Tom Tromey <tromey@redhat.com>
10980 Pedro Alves <palves@redhat.com>
10982 * dwarf2-frame.c (enum cfa_how_kind, struct
10983 dwarf2_frame_state_reg_info): Move out of struct
10984 dwarf2_frame_state.
10985 * dwarf2read.c (struct tu_stats): Move out of struct
10986 dwarf2_per_objfile.
10987 (struct file_entry): Move out of struct line_header.
10988 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10989 typedef_field_list): Move out of struct field_info.
10990 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10991 Move out of struct dynamic_prop.
10992 (union type_owner, union field_location, struct field, struct
10993 range_bounds, union type_specific): Move out of struct main_type.
10994 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10995 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10996 (struct call_site_target, union call_site_parameter_u, struct
10997 call_site_parameter): Move out of struct call_site.
10998 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11000 (enum srcdest_kind): Move out of struct srcdest.
11001 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11002 * prologue-value.h (enum prologue_value_kind): Move out of struct
11004 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11006 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11007 out of struct field_info.
11008 * symfile.h (struct other_sections): Move out of struct
11010 * symtab.c (struct symbol_cache_slot): Move out struct
11011 block_symbol_cache.
11012 * target-descriptions.c (enum tdesc_type_kind): Move out of
11013 typedef struct tdesc_type.
11014 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11015 struct tui_line_or_address.
11016 * value.c (enum internalvar_kind, union internalvar_data): Move
11017 out of struct internalvar.
11018 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11021 2015-02-27 Tom Tromey <tromey@redhat.com>
11022 Pedro Alves <palves@redhat.com>
11024 Rename symbols whose names are reserved C++ keywords throughout.
11026 2015-02-27 Pedro Alves <palves@redhat.com>
11028 * Makefile.in (COMPILER): New, get it from autoconf.
11029 (COMPILE.pre, CC_LD): Use COMPILER.
11030 (CXX): Get from autoconf instead.
11031 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11032 * acinclude.m4: Include build-with-cxx.m4.
11033 * build-with-cxx.m4: New file.
11034 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11035 Disable -Werror by default if building in C++ mode.
11036 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11037 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11038 Run supported-warning-flags tests with the C++ compiler.
11039 Save/restore CXXFLAGS too.
11040 * configure: Regenerate.
11042 2015-02-27 Pedro Alves <palves@redhat.com>
11044 * libiberty.m4: New file.
11045 * acinclude.m4: Include libiberty.m4.
11046 * configure.ac: Call libiberty_INIT.
11047 * config.in, configure: Regenerate.
11049 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11051 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11052 31-bit targets, but 64-bit targets as well.
11053 (s390_gnu_triplet_regexp): New function.
11054 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11055 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11058 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11060 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11061 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11062 from CONTEXT_DEBUGGER.
11064 2015-02-26 Doug Evans <dje@google.com>
11066 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11068 (set_type_vptr_fieldno): Ditto.
11069 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11070 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11072 2015-02-26 Pedro Alves <palves@redhat.com>
11074 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11075 * complaints.c (vcomplaint): Pass argument FMT directly to
11076 printf-like functions instead of complaint->fmt.
11077 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11078 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11079 * compile/compile-loc2c.c (pushf, unary, binary): Add
11081 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11083 (BINARY): Pass string literal as format string to 'binary'.
11084 * compile/compile-object-load.c (link_callbacks_einfo): Add
11086 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11088 2015-02-26 Pedro Alves <palves@redhat.com>
11090 * windows-termcap.c: Rename to ...
11091 * stub-termcap.c: ... this. Adjust header line.
11092 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11094 * configure: Regenerate.
11095 * configure.ac: Refer to stub-termcap.o instead of
11097 * gdb_curses.h: Mention stub-termcap.c instead of
11100 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11102 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11103 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11105 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11107 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11109 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11111 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11112 bfd_canonicalize_symtab.
11114 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11116 * amd64fbsd-nat.c: Include sys/user.h.
11117 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11118 instead of KERN_PS_STRINGS to locate the signal trampoline.
11119 * i386fbsd-nat.c: Include sys/user.h.
11120 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11121 instead of KERN_PS_STRINGS to locate the signal trampoline.
11122 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11123 (amd64fbsd_sigtramp_p): New.
11124 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11125 longer set default values.
11126 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11127 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11128 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11129 (i386fbsd_freebsd4_sigtramp_start)
11130 (i386fbsd_freebsd4_sigtramp_middle)
11131 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11132 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11133 (i386fbsd_sigtramp_p): New.
11134 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11135 longer set default values.
11136 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11138 2015-02-25 John Baldwin <jhb@freebsd.org>
11140 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11141 get_frame_register instead of frame_unwind_register_unsigned.
11143 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11146 * compile/compile-c-support.c (c_compute_program): Change // comment.
11147 * compile/compile-object-load.c (setup_sections): Change // comment.
11149 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11152 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11154 2015-02-23 Pedro Alves <palves@redhat.com>
11156 * remote.c (skip_to_semicolon): New function.
11157 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11158 special case the stop reasons that look like hex numbers
11159 upfront. Instead handle real register numbers after matching
11160 all the known stop reasons.
11162 2015-02-21 Doug Evans <dje@google.com>
11164 PR c++/17976, symtab/17821
11165 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11166 is_in_anonymous. All callers updated.
11167 (find_symbol_in_baseclass): Ditto.
11168 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11169 for symbols in an anonymous namespace.
11170 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11171 DW_AT_name directly.
11172 (dwarf2_name): Convert missing namespace name to
11173 CP_ANONYMOUS_NAMESPACE_STR.
11175 2015-02-20 Pedro Alves <palves@redhat.com>
11177 * linux-nat.c (linux_handle_extended_wait): Call
11178 thread_db_notice_clone whenever a new clone LWP is detected.
11179 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11181 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11182 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11183 (linux_unstop_all_lwps): Declare.
11184 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11185 (thread_get_info_callback): Delete.
11186 (thread_from_lwp): Use td_thr_get_info and record_thread.
11187 (thread_db_attach_lwp): Delete.
11188 (thread_db_notice_clone): New function.
11189 (try_thread_db_load_1): If /proc is mounted and shows the
11190 process'es task list, walk over all LWPs and call thread_from_lwp
11191 instead of relying on td_ta_thr_iter.
11192 (attach_thread): Don't call check_thread_signals here. Split the
11193 tail part of the function (which adds the thread to the core GDB
11194 thread list) to ...
11195 (record_thread): ... this function. Call check_thread_signals
11197 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11198 call thread_from_lwp.
11199 (thread_db_update_thread_list): Rename to ...
11200 (thread_db_update_thread_list_org): ... this.
11201 (thread_db_update_thread_list): New function.
11202 (thread_db_find_thread_from_tid): Delete.
11203 (thread_db_get_ada_task_ptid): Simplify.
11204 * nat/linux-procfs.c: Include <sys/stat.h>.
11205 (linux_proc_task_list_dir_exists): New function.
11206 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11208 2015-02-20 Pedro Alves <palves@redhat.com>
11210 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11211 main LWP. Handle the case of waitpid returning 0 if we're already
11212 attached to the LWP. Don't set the LWP's last_resume_kind to
11213 resume_stop if we already knew about the LWP.
11214 (linux_nat_filter_event): Add debug logs.
11216 2015-02-20 Pedro Alves <palves@redhat.com>
11218 * target.h (forward_target_decr_pc_after_break): Delete
11221 2015-02-20 Pedro Alves <palves@redhat.com>
11224 * linux-thread-db.c (thread_get_info_callback): Return early if
11225 the thread's lwp id is -1.
11227 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11231 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11233 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11234 (dtrace_get_probes) Change type of variable 'dof'.
11236 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11238 PR breakpoints/16812
11239 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11240 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11241 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11243 2015-02-19 David Taylor <dtaylor@emc.com>
11245 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11247 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11249 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11251 (tui_putc): Don't call tui_handle_resize_during_io.
11252 (tui_getc): Likewise.
11253 (tui_mld_getc): Likewise.
11254 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11255 (tui_sigwinch_token): New static variable.
11256 (tui_initialize_win): Adjust documentation. Set
11257 tui_sigwinch_token.
11258 (tui_async_resize_screen): New asynchronous callback.
11259 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11260 invoke tui_async_resize_screen.
11262 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11264 * configure: Regenerated.
11265 * configure.ac: Use GDB_AC_TRANSFORM.
11266 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11267 * acinclude.m4: sinclude transform.m4.
11268 * transform.m4: New file.
11269 (GDB_AC_TRANSFORM): New macro.
11271 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11273 * NEWS: Announce the support for DTrace SDT probes.
11275 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11277 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11278 (amd64_dtrace_parse_probe_argument): New function.
11279 (amd64_dtrace_probe_is_enabled): Likewise.
11280 (amd64_dtrace_enable_probe): Likewise.
11281 (amd64_dtrace_disable_probe): Likewise.
11282 (amd64_linux_init_abi): Register the
11283 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11284 `gdbarch_dtrace_disable_probe' and
11285 `gdbarch_dtrace_probe_is_enabled' hooks.
11286 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11287 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11288 (amd64_dtrace_enable_probe_sequence): Likewise.
11289 (amd64_dtrace_disable_probe_sequence): Likewise.
11291 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11293 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11294 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11295 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11297 * Makefile.in (SFILES): dtrace-probe.c added.
11298 * configure: Regenerate.
11299 * dtrace-probe.c: New file.
11300 (SHT_SUNW_dof): New constant.
11301 (dtrace_probe_type): New enum.
11302 (dtrace_probe_arg): New struct.
11303 (dtrace_probe_arg_s): New typedef.
11304 (struct dtrace_probe_enabler): New struct.
11305 (dtrace_probe_enabler_s): New typedef.
11306 (dtrace_probe): New struct.
11307 (dtrace_probe_is_linespec): New function.
11308 (dtrace_dof_sect_type): New enum.
11309 (dtrace_dof_dofh_ident): Likewise.
11310 (dtrace_dof_encoding): Likewise.
11311 (DTRACE_DOF_ENCODE_LSB): Likewise.
11312 (DTRACE_DOF_ENCODE_MSB): Likewise.
11313 (dtrace_dof_hdr): New struct.
11314 (dtrace_dof_sect): Likewise.
11315 (dtrace_dof_provider): Likewise.
11316 (dtrace_dof_probe): Likewise.
11317 (DOF_UINT): New macro.
11318 (DTRACE_DOF_PTR): Likewise.
11319 (DTRACE_DOF_SECT): Likewise.
11320 (dtrace_process_dof_probe): New function.
11321 (dtrace_process_dof): Likewise.
11322 (dtrace_build_arg_exprs): Likewise.
11323 (dtrace_get_arg): Likewise.
11324 (dtrace_get_probes): Likewise.
11325 (dtrace_get_probe_argument_count): Likewise.
11326 (dtrace_can_evaluate_probe_arguments): Likewise.
11327 (dtrace_evaluate_probe_argument): Likewise.
11328 (dtrace_compile_to_ax): Likewise.
11329 (dtrace_probe_destroy): Likewise.
11330 (dtrace_gen_info_probes_table_header): Likewise.
11331 (dtrace_gen_info_probes_table_values): Likewise.
11332 (dtrace_probe_is_enabled): Likewise.
11333 (dtrace_probe_ops): New variable.
11334 (info_probes_dtrace_command): New function.
11335 (_initialize_dtrace_probe): Likewise.
11336 (dtrace_type_name): Likewise.
11338 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11340 * gdbarch.sh (dtrace_parse_probe_argument): New.
11341 (dtrace_probe_is_enabled): Likewise.
11342 (dtrace_enable_probe): Likewise.
11343 (dtrace_disable_probe): Likewise.
11344 * gdbarch.c: Regenerate.
11345 * gdbarch.h: Regenerate.
11347 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11349 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11350 stap_probe_ops for `enable_probe' and `disable_probe'.
11351 * probe.c (enable_probes_command): New function.
11352 (disable_probes_command): Likewise.
11353 (_initialize_probe): Define the cli commands `enable probe' and
11355 (parse_probe_linespec): New function.
11356 (info_probes_for_ops): Use parse_probe_linespec.
11357 * probe.h (probe_ops): New hooks `enable_probe' and
11360 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11362 * probe.c (compute_probe_arg): Moved from stap-probe.c
11363 (compile_probe_arg): Likewise.
11364 (probe_funcs): Likewise.
11365 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11366 (compile_probe_arg): Likewise.
11367 (probe_funcs): Likewise.
11369 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11371 * probe.c (print_ui_out_not_applicables): New function.
11372 (exists_probe_with_pops): Likewise.
11373 (info_probes_for_ops): Do not include column headers for probe
11374 types for which no probe has been actually found on any object.
11375 Also invoke `print_ui_out_not_applicables' in order to match the
11376 column rows with the header when probes of several types are
11378 Print the "Type" column.
11379 * probe.h (probe_ops): Added a new probe operation `type_name'.
11380 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11381 (stap_type_name): New function.
11383 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11385 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11386 (key_is_command_char): Delete.
11388 2015-02-17 Pedro Alves <palves@redhat.com>
11390 * tui/tui.c (tui_enable): Resize windows before anything
11391 might show a window.
11393 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11396 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11397 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11399 * aarch64-tdep.h (tdesc_aarch64): Declare.
11401 2015-02-12 Mark Wielaard <mjw@redhat.com>
11403 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11405 2015-02-13 Doug Evans <dje@google.com>
11407 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11408 anonymous_namespace to is_in_anonymous for consistency with the rest
11410 (cp_lookup_bare_symbol): Fix typo in comment.
11411 (cp_search_static_and_baseclasses): Ditto.
11412 (search_symbol_list): Use vertical space in comment better.
11413 (reset_directive_searched): Ditto. Fix typo.
11414 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11416 2015-02-13 Yao Qi <yao.qi@arm.com>
11418 * MAINTAINERS: Update my email address.
11420 2015-02-12 Doug Evans <dje@google.com>
11422 * symtab.c (completion_list_add_name): Fix memory leak.
11424 2015-02-12 Doug Evans <dje@google.com>
11426 * completer.c (complete_line): Remove incorrect comment.
11428 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11430 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11431 (py_print_frame): Use RETURN_MASK_ERROR.
11433 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11435 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11436 function comment. Wrap all function that can throw in cleanups.
11437 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11440 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11442 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11443 Remove the error label.
11445 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11447 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11448 with goto first, indent the former else codepath left. Put variable
11449 'elided' to a new inner block.
11451 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11453 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11455 2015-02-11 Pedro Alves <palves@redhat.com>
11457 * xcoffread.c (within_function): Delete.
11459 2015-02-11 Tom Tromey <tromey@redhat.com>
11460 Pedro Alves <palves@redhat.com>
11462 * breakpoint.c (base_breakpoint_ops): Delete.
11463 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11464 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11465 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11466 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11467 * python/py-arch.c (arch_object_type): Make extern.
11468 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11469 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11470 * python/py-cmd.c (cmdpy_object_type): Make extern.
11471 * python/py-continueevent.c (continue_event_object_type)
11472 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11473 parameter. Update all callers.
11474 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11475 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11476 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11477 * python/py-function.c (fnpy_object_type): Make extern.
11478 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11479 * python/py-infevents.c (call_pre_event_object_type)
11480 (inferior_call_post_event_object_type).
11481 (memory_changed_event_object_type): Make extern.
11482 * python/py-infthread.c (thread_object_type): Make extern.
11483 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11484 * python/py-linetable.c (linetable_entry_object_type)
11485 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11486 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11487 (clear_objfiles_event_object_type): Make extern.
11488 * python/py-objfile.c (objfile_object_type): Make extern.
11489 * python/py-param.c (parmpy_object_type): Make extern.
11490 * python/py-progspace.c (pspace_object_type): Make extern.
11491 * python/py-signalevent.c (signal_event_object_type): Make extern.
11492 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11493 * python/py-type.c (type_object_type, field_object_type)
11494 (type_iterator_object_type): Make extern.
11495 * python/python.c (python_extension_script_ops)
11496 (python_extension_ops): Make extern.
11497 * stap-probe.c (stap_probe_ops): Make extern.
11499 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11501 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11502 because the event thread is not the current thread.
11504 2015-02-11 Doug Evans <xdje42@gmail.com>
11506 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11507 been initialized yet, return NULL.
11509 2015-02-11 Doug Evans <dje@google.com>
11511 * symfile.h (new_symfile_objfile): Delete.
11512 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11513 All callers updated.
11515 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11517 * tui/tui-io.c (tui_handle_resize_during_io): Call
11518 tui_update_gdb_sizes() after resizing the screen.
11519 * tui/tui.c (tui_enable): Resize the terminal before
11520 calling tui_update_gdb_sizes().
11522 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11524 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11525 line before printing a newline.
11527 2015-02-11 Mark Wielaard <mjw@redhat.com>
11529 * utils.c (producer_is_gcc): Return true or false.
11531 2015-02-10 Mark Wielaard <mjw@redhat.com>
11533 * utils.h (producer_is_gcc): Change return type to bool. Add major
11535 * utils.c (producer_is_gcc): Likewise.
11536 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11537 * dwarf2read.c (check_producer): Likewise.
11539 2015-02-10 Pedro Alves <palves@redhat.com>
11541 * infrun.c (displaced_step_fixup): Switch to the event thread
11542 before calling gdbarch_displaced_step_fixup.
11544 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11546 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11548 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11550 * ada-varobj.c (ada_name_of_child): Constify parent.
11551 (ada_path_expr_of_child): Same.
11552 (ada_value_of_child): Same.
11553 (ada_type_of_child): Same.
11554 * c-varobj.c (c_is_path_expr_parent): Same.
11555 (c_describe_child): Same.
11556 (c_name_of_child): Same.
11557 (c_value_of_child): Same.
11558 (c_type_of_child): Same.
11559 (cplus_number_of_children): Same.
11560 (cplus_describe_child): Constify var.
11561 (cplus_name_of_child): Constify parent.
11562 (cplus_value_of_child): Same.
11563 (cplus_type_of_child): Same.
11564 * jv-varobj.c (java_name_of_child): Same.
11565 (java_value_of_child): Same.
11566 (java_type_of_child): Same.
11567 * varobj.c (value_of_child): Same.
11568 (varobj_default_is_path_expr_parent): Constify var, parent and return
11570 (varobj_get_path_expr): Constify var, modify path_expr through
11572 (install_new_value): Constify parent.
11573 (value_of_child): Constify parent.
11574 * varobj.h (struct varobj): Constify parent.
11575 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11577 (varobj_get_path_expr): Constify var.
11578 (varobj_get_path_expr_parent): Constify var and return value.
11580 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11582 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11583 (arm_prologue_this_id): Move PC and SP limit checks to
11584 arm_prologue_unwind_stop_reason.
11585 (arm_prologue_unwind) <stop_reason> : Set to
11586 arm_prologue_unwind_stop_reason.
11588 2015-02-09 Mark Wielaard <mjw@redhat.com>
11590 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11591 DW_LANG_Fortran08 as language_fortran.
11593 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11596 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11597 of pointer against char.
11599 2015-02-09 Mark Wielaard <mjw@redhat.com>
11601 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11602 (c_type_print_modifier): Likewise.
11603 * dwarf2read.c (read_tag_atomic_type): New function.
11604 (read_type_die_1): Handle DW_TAG_atomic_type.
11605 * gdbtypes.c (make_atomic_type): New function.
11606 (recursive_dump_type): Handle TYPE_ATOMIC.
11607 * gdbtypes.h (enum type_flag_values): Renumber.
11608 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11609 (TYPE_ATOMIC): New macro.
11610 (make_atomic_type): Declare.
11612 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11614 * btrace.c (ftrace_find_call): Skip gaps.
11615 (ftrace_new_function): Initialize level.
11616 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11617 (ftrace_new_switch): Update
11619 (ftrace_new_gap): New.
11620 (ftrace_update_function): Create new function after gap.
11621 (btrace_compute_ftrace_bts): Create gap on error.
11622 (btrace_stitch_bts): Update parameters. Clear trace if it
11624 (btrace_stitch_trace): Update parameters. Update callers.
11625 (btrace_clear): Reset the number of gaps.
11626 (btrace_insn_get): Return NULL if the iterator points to a gap.
11627 (btrace_insn_number): Return zero if the iterator points to a gap.
11628 (btrace_insn_end): Allow gaps at the end.
11629 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11630 (btrace_find_insn_by_number): Assert that the found iterator does
11631 not point to a gap.
11632 (btrace_call_next, btrace_call_prev): Assert that the last function
11634 * btrace.h (btrace_bts_error): New.
11635 (btrace_function): Update comment.
11636 (btrace_function) <insn, insn_offset, number>: Update comment.
11637 (btrace_function) <errcode>: New.
11638 (btrace_thread_info) <ngaps>: New.
11639 (btrace_thread_info) <replay>: Update comment.
11640 (btrace_insn_get): Update comment.
11641 * record-btrace.c (btrace_ui_out_decode_error): New.
11642 (record_btrace_info): Print number of gaps.
11643 (btrace_insn_history, btrace_call_history): Call
11644 btrace_ui_out_decode_error for gaps.
11645 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11647 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11649 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11650 * nat/linux-btrace.c: (btrace_this_cpu): New.
11651 (cpu_supports_bts): Call btrace_this_cpu.
11652 (intel_supports_bts): Add cpu parameter.
11654 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11656 * btrace.h (btrace_insn_class): New.
11657 (btrace_insn) <size, iclass>: New.
11658 * btrace.c (ftrace_find_call): Update parameters. Update users.
11659 Use instruction classification.
11660 (ftrace_new_return): Update parameters. Update users.
11661 (ftrace_update_function): Update parameters. Update users. Use
11662 instruction classification.
11663 (ftrace_update_insns): Update parameters. Update users.
11664 (ftrace_classify_insn): New.
11665 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11666 TRY_CATCH around call to gdb_insn_length.
11668 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11670 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11671 Update parameters. Update users.
11673 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11675 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11676 (btrace_conf_bts_attributes): New.
11677 (btrace_conf_children): Add attributes.
11678 * common/btrace-common.h (btrace_config_bts): New.
11679 (btrace_config)<bts>: New.
11680 (btrace_config): Update comment.
11681 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11683 * features/btrace-conf.dtd: Increment version. Add size
11684 attribute to bts element.
11685 * record-btrace.c (set_record_btrace_bts_cmdlist,
11686 show_record_btrace_bts_cmdlist): New.
11687 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11688 record_btrace_print_conf, cmd_set_record_btrace_bts,
11689 cmd_show_record_btrace_bts): New.
11690 (record_btrace_info): Call record_btrace_print_conf.
11691 (_initialize_record_btrace): Add commands.
11692 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11693 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11694 (btrace_sync_conf): Synchronize bts size.
11695 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11696 * NEWS: Announce new commands and new packets.
11698 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11700 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11701 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11702 (x86_linux_btrace_conf): New.
11703 (x86_linux_create_target): Initialize to_btrace_conf.
11704 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11705 Check format. Split into this and ...
11706 (linux_enable_bts): ... this.
11707 (linux_btrace_conf): New.
11708 (perf_event_skip_record): Renamed into ...
11709 (perf_event_skip_bts_record): ... this. Updated users.
11710 (linux_disable_btrace): Split into this and ...
11711 (linux_disable_bts): ... this.
11712 (linux_read_btrace): Check format.
11713 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11714 (linux_btrace_conf): New.
11715 (btrace_target_info)<ptid>: Moved.
11716 (btrace_target_info)<conf>: New.
11717 (btrace_target_info): Split into this and ...
11718 (btrace_tinfo_bts): ... this. Updated users.
11719 * btrace.c (btrace_enable): Update parameters.
11720 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11721 (btrace_conf_children, btrace_conf_attributes)
11722 (btrace_conf_elements): New.
11723 * btrace.h (btrace_enable): Update parameters.
11724 (btrace_conf, parse_xml_btrace_conf): New.
11725 * common/btrace-common.h (btrace_config): New.
11726 * feature/btrace-conf.dtd: New.
11727 * record-btrace.c (record_btrace_conf): New.
11728 (record_btrace_cmdlist): New.
11729 (record_btrace_enable_warn, record_btrace_open): Pass
11730 &record_btrace_conf.
11731 (record_btrace_info): Print recording format.
11732 (cmd_record_btrace_bts_start): New.
11733 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11734 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11735 Add "record bts" alias command.
11736 * remote.c (remote_state)<btrace_config>: New.
11737 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11738 (remote_protocol_features): Add qXfer:btrace-conf:read.
11739 (remote_open_1): Call remote_btrace_reset.
11740 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11741 (btrace_target_info)<conf>: New.
11742 (btrace_sync_conf, btrace_read_config): New.
11743 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11745 (remote_btrace_conf): New.
11746 (init_remote_ops): Initialize to_btrace_conf.
11747 (_initialize_remote): Add qXfer:btrace-conf packet.
11748 * target.c (target_enable_btrace): Update parameters.
11749 (target_btrace_conf): New.
11750 * target.h (target_enable_btrace): Update parameters.
11751 (target_btrace_conf): New.
11752 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11753 (target_ops)<to_enable_btrace>: Update parameters and comment.
11754 (target_ops)<to_btrace_conf>: New.
11755 * target-delegates: Regenerate.
11756 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11757 (target_debug_print_const_struct_btrace_target_info_p): New.
11758 * NEWS: Announce new command and new packet.
11760 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11762 * nat/linux-btrace.h (perf_event_buffer): New.
11763 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11765 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11766 (perf_event_buffer_size, perf_event_buffer_begin)
11767 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11769 (perf_event_new_data): New.
11771 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11773 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11774 * record-btrace.c (record_btrace_open): Remove call to
11775 target_supports_btrace.
11776 * remote.c (remote_supports_btrace): Update parameters.
11777 * target.c (target_supports_btrace): Update parameters.
11778 * target.h (to_supports_btrace, target_supports_btrace): Update
11780 * target-delegates.c: Regenerate.
11781 * target-debug.h (target_debug_print_enum_btrace_format): New.
11782 * nat/linux-btrace.c
11783 (kernel_supports_btrace): Rename into ...
11784 (kernel_supports_bts): ... this. Update users. Update warning text.
11785 (intel_supports_btrace): Rename into ...
11786 (intel_supports_bts): ... this. Update users.
11787 (cpu_supports_btrace): Rename into ...
11788 (cpu_supports_bts): ... this. Update users.
11789 (linux_supports_btrace): Update parameters. Split into this and ...
11790 (linux_supports_bts): ... this.
11791 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11793 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11795 * Makefile.in (SFILES): Add common/btrace-common.c.
11796 (COMMON_OBS): Add common/btrace-common.o.
11797 (btrace-common.o): Add build rules.
11798 * btrace.c (parse_xml_btrace): Update parameters.
11799 (parse_xml_btrace_block): Set format field.
11800 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11801 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11802 (btrace_compute_ftrace): Split into this and...
11803 (btrace_compute_ftrace_bts): ...this.
11804 (btrace_stitch_trace): Split into this and...
11805 (btrace_stitch_bts): ...this.
11806 * btrace.h (parse_xml_btrace): Update parameters.
11807 (make_cleanup_btrace_data): New.
11808 * common/btrace-common.c: New.
11809 * common/btrace-common.h: Include common-defs.h.
11810 (btrace_block_s): Update comment.
11811 (btrace_format): New.
11812 (btrace_format_string): New.
11813 (btrace_data_bts): New.
11814 (btrace_data): New.
11815 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11816 * remote.c (remote_read_btrace): Update parameters.
11817 * target.c (target_read_btrace): Update parameters.
11818 * target.h (target_read_btrace): Update parameters.
11819 (target_ops)<to_read_btrace>: Update parameters.
11820 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11821 * target-delegates.c: Regenerate.
11822 * target-debug (target_debug_print_struct_btrace_data_p): New.
11823 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11824 (linux_read_bts): ...this.
11825 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11827 2015-02-06 Doug Evans <dje@google.com>
11829 * remote-m32r-sdi.c: Include symfile.h.
11831 2015-02-06 Doug Evans <dje@google.com>
11833 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11834 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11837 2015-02-06 Pedro Alves <palves@redhat.com>
11839 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11841 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11844 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11845 (enable_count_command): Check args for NULL value.
11847 2015-02-05 Doug Evans <xdje42@gmail.com>
11849 * guile/scm-frame.c: Fix spelling errors in a comment.
11851 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11853 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11854 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11857 2015-02-04 Pedro Alves <palves@redhat.com>
11859 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11860 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11862 (resume_stopped_resumed_lwps): Don't check whether the thread is
11863 marked as executing.
11864 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11866 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11868 * regset.h (struct regset): Add flags field.
11869 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11870 * corelow.c (get_core_register_section): Add warning if the size
11871 exceeds the requested size and the regset does not have the
11872 REGSET_VARIABLE_SIZE flag set.
11873 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11875 * armbsd-tdep.c (armbsd_gregset): Likewise.
11876 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11877 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11878 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11879 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11881 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11883 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11884 For ".reg-xstate", explicitly specify the requested section size
11885 via X86_XSTATE_SIZE instead of just 0 on input and
11886 X86_XSTATE_MAX_SIZE on output.
11887 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11890 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11892 PR corefiles/17808:
11893 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11894 function type, particularly its SIZE parameter.
11895 * gdbarch.h: Regenerate.
11896 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11897 actual against required size using ">=" instead of "==".
11898 (amd64_collect_fpregset): Likewise.
11899 * i386-tdep.c (i386_supply_gregset): Likewise.
11900 (i386_collect_gregset): Likewise.
11901 (i386_supply_fpregset): Likewise.
11902 (i386_collect_fpregset): Likewise.
11903 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11904 (mips_fill_gregset_wrapper): Likewise.
11905 (mips_supply_fpregset_wrapper): Likewise.
11906 (mips_fill_fpregset_wrapper): Likewise.
11907 (mips64_supply_gregset_wrapper): Likewise.
11908 (mips64_fill_gregset_wrapper): Likewise.
11909 (mips64_supply_fpregset_wrapper): Likewise.
11910 (mips64_fill_fpregset_wrapper): Likewise.
11911 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11912 (am33_supply_fpregset_method): Likewise.
11913 (am33_collect_gregset_method): Likewise.
11914 (am33_collect_fpregset_method): Likewise.
11916 2015-02-04 Doug Evans <dje@google.com>
11917 Pedro Alves <palves@redhat.com>
11918 Eli Zaretskii <eliz@gnu.org>
11921 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11922 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11923 * tui/tui-file.c: #include tui/tui-command.h.
11924 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11925 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11926 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11928 2015-02-04 Pedro Alves <palves@redhat.com>
11930 Fix build breakage.
11931 * event-loop.c (gdb_do_one_event): Add default switch case.
11933 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11935 Filter out inferior gcc option -fpreprocessed.
11936 * compile/compile.c (filter_args): New function.
11937 (get_args): Use it.
11939 2015-02-03 Pedro Alves <palves@redhat.com>
11941 * event-loop.c: Don't declare nor define a queue type for
11943 (event_queue): Delete.
11944 (create_event, create_file_event, gdb_event_xfree)
11945 (initialize_event_loop, process_event): Delete.
11946 (gdb_do_one_event): Return as soon as one event is handled.
11947 (handle_file_event): Change prototype. Used the passed in
11948 file_handler pointer and ready_mask instead of looping over all
11950 (gdb_wait_for_event): Update the poll/select timeouts before
11951 blocking. Run event handlers directly instead of queueing events.
11952 Return as soon as one event is handled.
11953 (struct async_event_handler_data): Delete.
11954 (invoke_async_event_handler): Delete.
11955 (check_async_event_handlers): Change return type to int. Run
11956 event handlers directly instead of queueing events. Return as
11957 soon as one event is handled.
11958 (handle_timer_event): Delete.
11959 (update_wait_timeout): New function, factored out from
11961 (poll_timers): Reimplement.
11962 * event-loop.h (initialize_event_loop): Delete declaration.
11963 * top.c (gdb_init): Don't call initialize_event_loop.
11965 2015-02-03 Pedro Alves <palves@redhat.com>
11967 * event-loop.c (clear_async_event_handler): New function.
11968 * event-loop.h (clear_async_event_handler): New declaration.
11969 * record-btrace.c (record_btrace_async): New function.
11970 (init_record_btrace_ops): Install record_btrace_async.
11971 * record-full.c (record_full_async): New function.
11972 (record_full_resume): Don't mark the async event source here.
11973 (init_record_full_ops): Install record_full_async.
11974 (record_full_core_resume): Don't mark the async event source here.
11975 (init_record_full_core_ops): Install record_full_async.
11976 * remote.c (remote_async): Mark and clear the async stop reply
11977 queue event-loop token as appropriate.
11979 2015-02-03 Pedro Alves <palves@redhat.com>
11981 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11982 target_is_async_p instead of target_can_async.
11983 (linux_nat_wait): Use target_is_async_p instead of
11984 target_can_async. Don't enable async here.
11985 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11986 target_is_async_p instead of target_can_async.
11988 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11990 * varobj.h (lang_varobj_ops): Mention which return values need
11993 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11995 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11997 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12000 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12001 results found in the cache.
12003 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12006 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12007 when allocating a new one.
12009 2015-02-01 Tom Tromey <tom@tromey.com>
12011 * MAINTAINERS: Remove myself.
12013 2015-01-31 Doug Evans <xdje42@gmail.com>
12015 * dwarf2read.c (process_structure_scope): Update setting of
12016 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12017 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12018 (set_type_vptr_fieldno): New function.
12019 (internal_type_vptr_basetype): New function.
12020 (set_type_vptr_basetype): New function.
12021 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12022 TYPE_VPTR_BASETYPE.
12023 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12024 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12025 (print_cplus_stuff): ... moved here.
12026 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12027 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12029 (struct cplus_struct_type): ... here. All uses updated.
12030 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12031 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12032 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12033 * stabsread.c (read_tilde_fields): Update setting of
12034 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12036 2015-01-31 Doug Evans <xdje42@gmail.com>
12038 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12040 (cp_print_class_member): Rename local domain to self_type.
12041 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12042 domain_type to self_type.
12043 (set_die_type) <need_gnat_info>: Handle
12044 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12045 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12046 TYPE_SPECIFIC_SELF_TYPE.
12047 * gdbtypes.c (internal_type_self_type): New function.
12048 (set_type_self_type): New function.
12049 (smash_to_memberptr_type): Rename parameter domain to self_type.
12050 Update setting of TYPE_SELF_TYPE.
12051 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12052 (smash_to_method_type): Rename parameter domain to self_type.
12053 Update setting of TYPE_SELF_TYPE.
12054 (check_stub_method): Call smash_to_method_type.
12055 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12056 (copy_type_recursive): Ditto.
12057 * gdbtypes.h (enum type_specific_kind): New value
12058 TYPE_SPECIFIC_SELF_TYPE.
12059 (struct main_type) <type_specific>: New member self_type.
12060 (struct cplus_struct_type) <fn_field.type>: Update comment.
12061 (TYPE_SELF_TYPE): Rewrite.
12062 (internal_type_self_type, set_type_self_type): Declare.
12063 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12065 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12066 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12068 * stabsread.c (read_member_functions): Mark methods with
12069 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12072 2015-01-31 Doug Evans <xdje42@gmail.com>
12074 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12077 2015-01-31 Doug Evans <xdje42@gmail.com>
12079 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12080 or unions. Return zero if union.
12081 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12082 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12084 (compute_vtable_size): Assert only passed structs.
12085 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12087 2015-01-31 Doug Evans <xdje42@gmail.com>
12089 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12092 2015-01-31 Gary Benson <gbenson@redhat.com>
12093 Doug Evans <dje@google.com>
12098 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12100 * common/common-exceptions.h (enum errors)
12101 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12102 * completer.h (get_max_completions_reached_message): New declaration.
12103 (max_completions): Likewise.
12104 (completion_tracker_t): New typedef.
12105 (new_completion_tracker): New declaration.
12106 (make_cleanup_free_completion_tracker): Likewise.
12107 (maybe_add_completion_enum): New enum.
12108 (maybe_add_completion): New declaration.
12109 (throw_max_completions_reached_error): Likewise.
12110 * completer.c (max_completions): New global variable.
12111 (new_completion_tracker): New function.
12112 (free_completion_tracker): Likewise.
12113 (make_cleanup_free_completion_tracker): Likewise.
12114 (maybe_add_completions): Likewise.
12115 (throw_max_completions_reached_error): Likewise.
12116 (complete_line): Remove duplicates and limit result to max_completions
12118 (get_max_completions_reached_message): New function.
12119 (gdb_display_match_list): Handle max_completions.
12120 (_initialize_completer): New declaration and function.
12121 * symtab.c: Include completer.h.
12122 (completion_tracker): New static variable.
12123 (completion_list_add_name): Call maybe_add_completion.
12124 (default_make_symbol_completion_list_break_on_1): Renamed from
12125 default_make_symbol_completion_list_break_on. Maintain
12126 completion_tracker across calls to completion_list_add_name.
12127 (default_make_symbol_completion_list_break_on): New function.
12128 * top.c (init_main): Set rl_completion_display_matches_hook.
12129 * tui/tui-io.c: Include completer.h.
12130 (tui_old_rl_display_matches_hook): New static global.
12131 (tui_rl_display_match_list): Notify user if max-completions reached.
12132 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12133 * NEWS (New Options): Mention set/show max-completions.
12135 2015-01-31 Gary Benson <gbenson@redhat.com>
12137 * symtab.c (struct add_name_data) <code>: New field.
12139 (add_symtab_completions): New function.
12140 (symtab_expansion_callback): Likewise.
12141 (default_make_symbol_completion_list_break_on): Set datum.code.
12142 Move minimal symbol scan before calling expand_symtabs_matching.
12143 Scan known primary symtabs for externs and statics before calling
12144 expand_symtabs_matching. Pass symtab_expansion_callback as
12145 expansion_notify argument to expand_symtabs_matching. Do not scan
12146 primary symtabs for externs and statics after calling
12147 expand_symtabs_matching.
12149 2015-01-31 Gary Benson <gbenson@redhat.com>
12151 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12152 (struct quick_symbol_functions) <expand_symtabs_matching>:
12153 New argument expansion_notify. All uses updated.
12154 (expand_symtabs_matching): New argument expansion_notify.
12156 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12157 Also print expansion notify.
12158 * symtab.c (expand_symtabs_matching_via_partial): Call
12159 expansion_notify whenever a partial symbol table is expanded.
12160 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12161 expansion_notify whenever a symbol table is instantiated.
12163 2015-01-31 Doug Evans <xdje42@gmail.com>
12165 * cli-out.c: #include completer.h, readline/readline.h.
12166 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12167 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12168 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12169 * cli-out.h (cli_display_match_list): Declare.
12170 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12171 (ELLIPSIS_LEN): Ditto.
12172 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12173 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12174 (gdb_fnprint, gdb_print_filename): Ditto.
12175 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12176 (gdb_display_match_list): Ditto.
12177 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12178 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12179 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12180 (match_list_displayer): New struct.
12181 (gdb_display_match_list): Declare.
12182 * top.c (init_main): Set rl_completion_display_matches_hook.
12183 * tui/tui-io.c: #include completer.h.
12184 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12185 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12186 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12187 (tui_mld_getc, tui_mld_read_key): Ditto.
12188 (tui_rl_display_match_list): Rewrite.
12189 (tui_handle_resize_during_io): New arg for_completion. All callers
12192 2015-01-31 Doug Evans <xdje42@gmail.com>
12194 Add symbol lookup cache.
12195 * NEWS: Document new options and commands.
12196 * symtab.c (symbol_cache_key): New static global.
12197 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12198 (SYMBOL_LOOKUP_FAILED): New macro.
12199 (symbol_cache_slot_state): New enum.
12200 (block_symbol_cache): New struct.
12201 (symbol_cache): New struct.
12202 (new_symbol_cache_size, symbol_cache_size): New static globals.
12203 (hash_symbol_entry, eq_symbol_entry): New functions.
12204 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12205 (make_symbol_cache, free_symbol_cache): New functions.
12206 (get_symbol_cache, symbol_cache_cleanup): New function.
12207 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12208 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12209 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12210 (symbol_cache_flush, symbol_cache_dump): New functions.
12211 (maintenance_print_symbol_cache): New function.
12212 (maintenance_flush_symbol_cache): New function.
12213 (symbol_cache_stats): New function.
12214 (maintenance_print_symbol_cache_statistics): New function.
12215 (symtab_new_objfile_observer): New function.
12216 (symtab_free_objfile_observer): New function.
12217 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12218 (_initialize_symtab): Init symbol_cache_key. New parameter
12219 maint symbol-cache-size. New maint commands print symbol-cache,
12220 print symbol-cache-statistics, flush-symbol-cache.
12221 Install new_objfile, free_objfile observers.
12223 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12226 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12229 2015-01-31 Doug Evans <xdje42@gmail.com>
12231 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12232 * auto-load.c: #include ctype.h.
12233 (struct auto_load_pspace_info): Replace member loaded_scripts with
12234 new members loaded_script_files, loaded_script_texts.
12235 (auto_load_pspace_data_cleanup): Update.
12236 (init_loaded_scripts_info): Update.
12237 (get_auto_load_pspace_data_for_loading): Update.
12238 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12240 (maybe_add_script_text): New function.
12241 (clear_section_scripts): Update.
12242 (source_script_file, execute_script_contents): New functions.
12243 (source_section_scripts): Add support for
12244 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12245 (print_scripts): New function.
12246 (auto_load_info_scripts): Also print inlined scripts.
12247 (maybe_print_unsupported_script_warning): Renamed from
12248 unsupported_script_warning_print. All callers updated.
12249 (maybe_print_script_not_found_warning): Renamed from
12250 script_not_found_warning_print. All callers updated.
12251 * extension-priv.h (struct extension_language_script_ops): New member
12252 objfile_script_executor.
12253 * extension.c (ext_lang_objfile_script_executor): New function.
12254 * extension.h (objfile_script_executor_func): New typedef.
12255 (ext_lang_objfile_script_executor): Declare.
12256 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12257 * guile/guile.c (guile_extension_script_ops): Update.
12258 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12259 * python/python.c (python_extension_script_ops): Update.
12260 (gdbpy_execute_objfile_script): New function.
12262 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12264 * tui/tui-io.c (tui_expand_tabs): New function.
12265 (tui_puts, tui_redisplay_readline): Expand TABs into the
12266 appropriate number of spaces.
12267 * tui/tui-regs.c: Include tui-io.h.
12268 (tui_register_format): Call tui_expand_tabs to expand TABs into
12269 the appropriate number of spaces.
12270 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12272 2015-01-30 Doug Evans <dje@google.com>
12274 * NEWS: "info source" command now display producer string if present.
12275 * source.c (source_info): Print producer string if present.
12277 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12279 * varobj.c (varobj_delete): Fix comment.
12281 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12283 * varobj.c (create_child): Modify comment.
12285 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12287 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12289 (ada_name_of_variable): Same.
12290 (ada_path_expr_of_child): Same.
12291 (ada_value_of_variable): Same.
12292 (ada_value_is_changeable_p): Same.
12293 (ada_value_has_mutated): Same.
12294 * c-varobj.c (varobj_is_anonymous_child): Same.
12295 (c_is_path_expr_parent): Same.
12296 (c_number_of_children): Same.
12297 (c_name_of_variable): Same.
12298 (c_path_expr_of_child): Same.
12300 (c_value_of_variable): Same.
12301 (cplus_number_of_children): Same.
12302 (cplus_name_of_variable): Same.
12303 (cplus_path_expr_of_child): Same.
12304 (cplus_value_of_variable): Same.
12305 * jv-varobj.c (java_number_of_children): Same.
12306 (java_name_of_variable): Same.
12307 (java_path_expr_of_child): Same.
12308 (java_value_of_variable): Same.
12309 * varobj.c (number_of_children): Same.
12310 (name_of_variable): Same.
12312 (varobj_ensure_python_env): Same.
12313 (varobj_get_objname): Same.
12314 (varobj_get_expression): Same.
12315 (varobj_get_display_format): Same.
12316 (varobj_get_display_hint): Same.
12317 (varobj_has_more): Same.
12318 (varobj_get_thread_id): Same.
12319 (varobj_get_frozen): Same.
12320 (dynamic_varobj_has_child_method): Same.
12321 (varobj_get_gdb_type): Same.
12322 (is_path_expr_parent): Same.
12323 (varobj_default_is_path_expr_parent): Same.
12324 (varobj_get_language): Same.
12325 (varobj_get_attributes): Same.
12326 (varobj_is_dynamic_p): Same.
12327 (varobj_get_child_range): Same.
12328 (varobj_value_has_mutated): Same.
12329 (varobj_get_value_type): Same.
12330 (number_of_children): Same.
12331 (name_of_variable): Same.
12332 (check_scope): Same.
12333 (varobj_editable_p): Same.
12334 (varobj_value_is_changeable_p): Same.
12335 (varobj_floating_p): Same.
12336 (varobj_default_value_is_changeable_p): Same.
12338 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12340 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12341 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12343 (cplus_path_expr_of_child): Same.
12345 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12347 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12349 (mi_cmd_var_info_expression): Same.
12350 * varobj.c (varobj_get_expression): Mention in the comment that
12351 the result must by freed by the caller.
12353 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12355 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12357 (varobj_update_one): Same.
12358 * varobj.c (update_type_if_necessary): Free curr_type_str and
12360 (varobj_get_type): Specify in comment that the result needs to be
12361 freed by the caller.
12363 2015-01-29 Doug Evans <dje@google.com>
12366 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12368 2015-01-25 Mark Wielaard <mjw@redhat.com>
12370 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12371 * utils.c (producer_is_gcc_ge_4): Likewise.
12372 (producer_is_gcc): New function.
12373 * utils.h (producer_is_gcc): New declaration.
12375 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12377 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12379 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12380 parameter by "addr_stack" parameter.
12381 (resolve_dynamic_range): Replace "addr" parameter by
12382 "stack_addr" parameter. Update function documentation.
12383 Update code accordingly.
12384 (resolve_dynamic_array, resolve_dynamic_union)
12385 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12386 (resolve_dynamic_type): Update code, following the changes made
12387 to resolve_dynamic_type_internal's interface.
12388 * dwarf2loc.h (struct property_addr_info): New.
12389 (dwarf2_evaluate_property): Replace "address" parameter
12390 by "addr_stack" parameter. Adjust function documentation.
12391 (struct dwarf2_offset_baton): New.
12392 (struct dwarf2_property_baton): Update documentation of
12393 field "referenced_type" to be more general. New field
12394 "offset_info" in union data field.
12395 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12396 parameter by "addr_stack" parameter. Adjust code accordingly.
12397 Add support for PROP_ADDR_OFFSET properties.
12398 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12399 DW_AT_data_member_location attributes as well. Use case
12400 statements instead of if/else condition.
12402 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12404 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12405 Return zero if PARENT_VALUE is NULL and parent_type's
12406 range type is dynamic.
12408 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12410 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12411 nonzero if the type's subtype is dynamic.
12412 (resolve_dynamic_range): Also resolve the range's subtype.
12414 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12416 Pushed by Joel Brobecker <brobecker@adacore.com>.
12417 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12419 2015-01-27 Doug Evans <dje@google.com>
12421 * NEWS: Mention gdb.Objfile.username.
12422 * python/py-objfile.c (objfpy_get_username): New function.
12423 (objfile_getset): Add "username".
12425 2015-01-24 Mark Wielaard <mjw@redhat.com>
12427 * stack.c (return_command): Markup warning message with _.
12429 2015-01-24 Doug Evans <xdje42@gmail.com>
12431 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12433 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12435 Fix 100x slowdown regression on DWZ files.
12436 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12437 (struct line_header): Add offset and offset_in_dwz.
12438 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12439 (free_line_header_voidp): New declaration.
12440 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12442 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12443 (handle_DW_AT_stmt_list): Use line_header_hash.
12444 (free_line_header_voidp): New function.
12445 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12446 (dwarf_decode_lines): New parameter decode_mapping, use it.
12447 (dwarf2_free_objfile): Free line_header_hash.
12449 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12452 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12455 2015-01-15 Mark Wielaard <mjw@redhat.com>
12457 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12459 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12460 calling_convention an 8 bit bit field.
12461 (TYPE_NO_RETURN): New macro.
12462 * infcmd.c (finish_command): Query if function does not return
12464 * stack.c (return_command): Likewise.
12466 2015-01-23 Pedro Alves <palves@redhat.com>
12468 * linux-nat.c (linux_is_async_p): New macro.
12469 (linux_nat_is_async_p):
12470 (linux_nat_terminal_inferior): Check whether the target can async
12471 instead of whether it is already async.
12472 (linux_nat_terminal_ours): Don't check whether the target is
12474 (linux_async_pipe): Use linux_is_async_p.
12476 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12478 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12480 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12481 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12482 Sort tp_array using tp_array_compar.
12483 (_initialize_thread): Extend thread_apply_all_command help.
12485 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12487 * corelow.c (core_open): Call also thread_command.
12488 * gdbthread.h (thread_command): New prototype moved from ...
12489 * thread.c (thread_command): ... here.
12490 (thread_command): Make it global.
12492 2015-01-22 Pedro Alves <palves@redhat.com>
12494 * configure.ac [*mingw32*]: Check $curses_found instead of
12496 * configure: Regenerate.
12497 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12498 HAVE_NCURSES_NCURSES_H checks.
12500 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12502 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12503 fails with the 1st arg NULL, try again with "unknown". Don't test
12504 the "cup" capability: it isn't supported by the Windows port of
12505 ncurses, but the Windows console driver is still capable of
12508 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12510 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12512 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12514 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12515 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12516 reason that "make TAGS" is broken.
12518 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12520 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12521 and check additional store instructions.
12523 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12525 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12527 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12529 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12530 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12531 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12532 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12533 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12534 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12535 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12536 ppc_process_record_op19, ppc_process_record_op31,
12537 ppc_process_record_op59, ppc_process_record_op60,
12538 ppc_process_record_op63): Likewise.
12540 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12542 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12543 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12546 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12548 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12549 ppc_process_record_op31, ppc_process_record_op59,
12550 ppc_process_record_op60, ppc_process_record_op63,
12551 ppc_process_record): Fix -Wformat warning.
12552 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12553 Remove unused variables.
12555 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12557 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12559 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12561 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12562 CONFIG_OBS if not building with a curses library.
12563 * configure: Regenerate.
12565 * windows-termcap.c: Include defs.h. Make the whole body empty if
12566 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12567 HAVE_NCURSES_NCURSES_H is defined.
12569 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12571 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12572 from end of line to start of next line.
12574 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12576 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12577 Scan PLT stub backward for reverse debugging.
12578 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12580 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12581 Ulrich Weigand <uweigand@de.ibm.com>
12583 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12585 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12587 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12588 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12589 (ppc_linux_init_abi): Set process_record, process_record_signal.
12590 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12591 ppc_linux_record_tdep to gdbarch_tdep.
12592 (ppc_process_record): New declaration.
12593 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12594 ppc_process_record_op19, ppc_process_record_op31,
12595 ppc_process_record_op59, ppc_process_record_op60,
12596 ppc_process_record_op63, ppc_process_record): New functions.
12598 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12600 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12601 rs6000_in_function_epilogue_frame_p and add an argument
12603 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12604 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12606 (rs6000_epilogue_frame_unwind): New.
12607 (rs6000_gdbarch_init): Append epilogue unwinder.
12609 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12611 * nat/linux-personality.c: Replace "#ifndef
12612 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12613 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12616 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12618 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12620 (_initialize_tui_win) <border-kind, border-mode>:
12621 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12622 (tui_set_tab_width_command): Fix the commentary.
12624 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12626 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12628 (tui_set_tab_width_command): Delete and recreate the source and
12629 the disassembly windows, to show the effect of the changed tab
12632 * tui/tui-data.h (LINE_PREFIX): Make shorter
12633 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12634 "Thread NNNNN.XXXX" thread ID notation on Windows.
12636 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12638 Fix gcc-5 compilation.
12639 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12641 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12643 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12644 (linux-personality.o): New rule.
12645 * common/common-defs.h: Include <stdint.h>.
12646 * config/aarch64/linux.mh (NATDEPFILES): Include
12647 linux-personality.o.
12648 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12649 * config/arm/linux.mh (NATDEPFILES): Likewise.
12650 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12651 * config/i386/linux.mh (NATDEPFILES): Likewise.
12652 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12653 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12654 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12655 * config/mips/linux.mh (NATDEPFILES): Likewise.
12656 * config/pa/linux.mh (NATDEPFILES): Likewise.
12657 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12658 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12659 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12660 * config/s390/linux.mh (NATDEPFILES): Likewise.
12661 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12662 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12663 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12664 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12665 * defs.h: Remove #include <stdint.h> (moved to
12666 common/common-defs.h).
12667 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12668 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12669 nat/linux-personality.c).
12670 (linux_nat_create_inferior): Remove code to disable address space
12671 randomization (moved to nat/linux-personality.c). Create cleanup
12672 to disable address space randomization.
12673 * nat/linux-personality.c: New file.
12674 * nat/linux-personality.h: Likewise.
12676 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12678 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12679 common/posix-strerror.c.
12680 (posix-strerror.o): New rule.
12681 (mingw-strerror.o): Likewise.
12682 * common/common-utils.h (safe_strerror): Move prototype to here,
12684 * common/common.host: New file.
12685 * common/mingw-strerror.c: Likewise.
12686 * common/posix-strerror.c: Likewise.
12687 * configure: Regenerated.
12688 * configure.ac: Source common/common.host. Add variable
12689 common_host_obs to gdb_host_obs.
12690 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12691 gdb/common/posix-strerror.c when warning about the use of
12693 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12694 common/mingw-strerror.c.
12695 * posix-hdep.c (safe_strerror): Remove definition; move it to
12696 common/posix-hdep.c.
12697 * utils.h (safe_strerror): Remove prototype; move to
12698 common/common-utils.h.
12700 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12702 GDB 7.8.2 released.
12704 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12706 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12707 ___XA type if the array has already been fixed.
12709 2015-01-14 Yao Qi <yao@codesourcery.com>
12711 * Makefile.in (ppc-linux.o): New rule.
12712 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12713 * configure.ac: AC_CHECK_FUNCS(getauxval).
12714 * config.in: Re-generated.
12715 * configure: Re-generated.
12716 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12718 * nat/ppc-linux.c: New file.
12719 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12720 Call ppc64_64bit_inferior_p.
12722 2015-01-14 Yao Qi <yao@codesourcery.com>
12724 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12726 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12727 (PPC_FEATURE_HAS_DFP): Likewise.
12728 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12729 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12730 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12731 Include "nat/ppc-linux.h".
12732 * nat/ppc-linux.h: New file.
12733 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12735 2015-01-14 Pedro Alves <palves@redhat.com>
12738 * breakpoint.c: Include "interps.h".
12739 (bpstat_do_actions_1): Also check whether the interpreter is
12742 2015-01-14 Pedro Alves <palves@redhat.com>
12745 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12746 reinstall if the interpreter is sync.
12748 2015-01-13 Doug Evans <dje@google.com>
12750 * objfiles.c (objfile_filename): New function.
12751 * objfiles.h (objfile_filename): Declare it.
12752 (objfile_name): Add function comment.
12753 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12754 bfd file name (which may be realpath'd), and the original name.
12756 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12758 * NEWS: Create a new section for the next release branch.
12759 Rename the section of the current branch, now that it has
12762 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12764 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12765 * version.in: Bump version to 7.9.50.DATE-cvs.
12767 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12769 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12770 Remove trailing new-line in argument of call to warning.
12772 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12774 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12775 new-line in argument of call to "warning".
12777 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12779 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12780 in static block, then try searching for primitive types.
12782 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12784 * top.h (gdb_add_history): Declare.
12785 * top.c (command_count): New variable.
12786 (gdb_add_history): New function.
12787 (gdb_safe_append_history): New static function.
12788 (quit_force): Call it.
12789 (command_line_input): Use gdb_add_history instead of
12791 * event-top.c (command_line_handler): Likewise.
12793 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12796 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12797 <setjmp.h> #include.
12799 2015-01-11 Doug Evans <xdje42@gmail.com>
12801 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12803 2015-01-11 Doug Evans <xdje42@gmail.com>
12806 * NEWS: The "maint demangle" command is renamed as "demangle".
12807 * demangle.c: #include cli/cli-utils.h, language.h.
12808 (demangle_command): New function.
12809 (_initialize_demangle): Add new command "demangle".
12810 * maint.c (maintenance_demangle): Stub out.
12811 (_initialize_maint_cmds): Update help text for "maint demangle",
12812 and mark as deprecated.
12814 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12816 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12817 inferior_thread is a function.
12819 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12821 * Makefile.in (.y.c): Don't munge yacc's #line
12824 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12826 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12827 to prompt for input.
12828 * tui/tui-hooks.c (tui_query_hook): Remove.
12829 (tui_install_hooks): Don't set deprecated_query_hook.
12830 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12831 height calculation. Always update the command window's cur_line.
12833 2015-01-09 Pedro Alves <palves@redhat.com>
12835 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12837 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12839 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12840 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12842 (check_stopped_by_watchpoint): New function.
12843 (save_sigtrap): Reimplement.
12844 (linux_nat_stopped_by_watchpoint): Adjust.
12845 (linux_nat_lp_status_is_event): Delete.
12846 (stop_wait_callback): Only call save_sigtrap after storing the
12848 (status_callback): If the thread had been stopped for a breakpoint
12849 that has since been removed, discard the event and resume the LWP.
12850 (count_events_callback, select_event_lwp_callback): Use
12851 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12852 (cancel_breakpoint): Rename to ...
12853 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12854 stopped for a software breakpoint or hardware breakpoint.
12855 (select_event_lwp): Only give preference to the stepping LWP in
12856 all-stop mode. Adjust comments.
12857 (stop_and_resume_callback): Remove references to new_pending_p.
12858 (linux_nat_filter_event): Likewise. Leave exit events of the
12859 leader thread pending here. Handle signal short circuiting here.
12860 Only call save_sigtrap after storing the pending waitstatus.
12861 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12862 new_pending. Don't handle leaving events the caller is not
12863 interested in pending here, nor handle signal short-circuiting
12864 here. Also give equal priority to all LWPs that have had events
12865 in non-stop mode. If reporting a software breakpoint event,
12866 unadjust the LWP's PC.
12867 * linux-nat.h (enum lwp_stop_reason): New.
12868 (struct lwp_info) <stop_pc>: New field.
12869 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12870 (struct lwp_info) <stop_reason>: New field.
12871 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12873 2015-01-09 Pedro Alves <palves@redhat.com>
12875 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12876 Set the LWP's 'resumed' flag.
12878 2015-01-09 Pedro Alves <palves@redhat.com>
12880 * linux-nat.c (linux_resume_one_lwp): New function.
12881 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12882 (linux_nat_resume): Use lwp_status_pending_p and
12883 linux_resume_one_lwp.
12884 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12885 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12886 (status_callback, running_callback): Use lwp_status_pending_p.
12887 (lwp_status_pending_p): New function.
12888 (stop_and_resume_callback): Use lwp_status_pending_p.
12889 (linux_nat_filter_event): Use linux_resume_one_lwp.
12890 (linux_nat_wait_1): Always use status_callback to look for an LWP
12891 with a pending status. Use linux_resume_one_lwp.
12892 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12893 linux_resume_one_lwp.
12895 2015-01-09 Pedro Alves <palves@redhat.com>
12897 * breakpoint.c (bp_location_inserted_here_p): New function,
12898 factored out from ...
12899 (breakpoint_inserted_here_p): ... here. Use
12900 ALL_BP_LOCATIONS_AT_ADDR.
12901 (software_breakpoint_inserted_here_p): Use
12902 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12904 2014-01-09 Pedro Alves <palves@redhat.com>
12906 Skip enabling event reporting if the kernel supports
12907 PTRACE_EVENT_CLONE.
12908 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12909 (thread_db_use_events): New function.
12910 (try_thread_db_load_1): Check thread_db_use_events before enabling
12912 (update_thread_state): New function.
12913 (attach_thread): Use it. Check thread_db_use_events before
12914 enabling event reporting.
12915 (thread_db_detach): Check thread_db_use_events before disabling
12917 (find_new_threads_callback): Check thread_db_use_events before
12918 enabling event reporting. Update the thread's state if not using
12919 libthread_db events.
12921 2015-01-09 Pedro Alves <palves@redhat.com>
12923 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12924 about to wait for is > 0.
12925 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12926 the kernel thread ID is -1.
12928 2015-01-09 Pedro Alves <palves@redhat.com>
12930 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12931 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12932 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12933 ptrace option flags.
12934 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12936 * nat/linux-procfs.c: Include <dirent.h>.
12937 (linux_proc_get_int): New parameter "warn". Handle it.
12938 (linux_proc_get_tgid): Adjust.
12939 (linux_proc_get_tracerpid): Rename to ...
12940 (linux_proc_get_tracerpid_nowarn): ... this.
12941 (linux_proc_pid_get_state): New function, factored out from
12942 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12944 (linux_proc_pid_is_gone): New function.
12945 (linux_proc_pid_is_stopped): Adjust.
12946 (linux_proc_pid_is_zombie_maybe_warn)
12947 (linux_proc_pid_is_zombie_nowarn): New functions.
12948 (linux_proc_pid_is_zombie): Use
12949 linux_proc_pid_is_zombie_maybe_warn.
12950 (linux_proc_attach_tgid_threads): New function.
12951 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12952 (linux_proc_get_tracerpid): Rename to ...
12953 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12954 (linux_proc_pid_is_gone): New declaration.
12955 (linux_proc_pid_is_zombie): Update comment.
12956 (linux_proc_pid_is_zombie_nowarn): New declaration.
12957 (linux_proc_attach_lwp_func): New typedef.
12958 (linux_proc_attach_tgid_threads): New declaration.
12959 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12960 use nowarn functions.
12961 (linux_ptrace_attach_fail_reason_string): Move here from
12962 gdbserver/linux-low.c and rename.
12963 (ptrace_supports_feature): If the current ptrace options are not
12964 known yet, check them now, instead of asserting.
12965 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12968 2015-01-09 Pedro Alves <palves@redhat.com>
12970 * linux-thread-db.c (thread_db_find_new_threads_silently)
12971 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12972 (find_new_threads_once): Print debug output on gdb_stdlog.
12974 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12975 Pedro Alves <palves@redhat.com>
12977 * compile/compile.c: Include "gdb_wait.h".
12978 (do_rmdir): Check return value, and free 'zap'.
12980 2015-01-08 Pedro Alves <palves@redhat.com>
12981 Yao Qi <yao@codesourcery.com>
12983 * dwarf2loc.c (indirect_pieced_value): Don't call
12984 gdb_sign_extend. Call extract_signed_integer instead.
12985 * utils.c (gdb_sign_extend): Remove.
12986 * utils.h (gdb_sign_extend): Remove declaration.
12988 2015-01-07 Pierre Muller <muller@sourceware.org>
12991 * stabsread.c (define_symbol): Set language for C++ special symbols.
12993 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12995 * inflow.c (initial_gdb_ttystate): Tweak comment.
12997 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12999 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13000 comment documenting function.
13002 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13004 * terminal.h (set_initial_gdb_ttystate): Declare.
13005 * inflow.c (initial_gdb_ttystate): New static variable.
13006 (set_initial_gdb_ttystate): New setter.
13007 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13008 instead of our current terminal state.
13009 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13011 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13013 * guile/scm-type.c (tyscm_array_1): Add comment.
13014 * python/py-type.c (typy_array_1): Add comment.
13016 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13018 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13019 error if N2 is equal to N1 - 1.
13021 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13023 * python/py-type.c (typy_array_1): Do not raise negative-length
13024 exception if N2 is equal to N1 - 1.
13026 2015-01-03 Doug Evans <xdje42@gmail.com>
13028 * c-exp.y: Whitespace cleanup.
13029 (classify_inner_name): Remove extra ;.
13031 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13033 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13036 2015-01-02 Doug Evans <dje@google.com>
13038 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13040 2015-01-02 Doug Evans <dje@google.com>
13042 * symtab.h (struct symbol): Fix typo in comment.
13044 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13046 Update year range in copyright notice of all files.
13048 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13050 * top.c (print_gdb_version): Update copyright year to 2015.
13052 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13054 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13056 For older changes see ChangeLog-2014.
13062 version-control: never