1 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
4 (ia64_push_dummy_call): Remove cast and change type of "to" to
7 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
9 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
11 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
13 * observer.h (observer_${event}_notification_stub): Add cast.
15 2015-10-23 Yao Qi <yao.qi@linaro.org>
17 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
18 dsd.insn_count to zero.
20 2015-10-22 Pedro Alves <palves@redhat.com>
22 * infrun.c (stop_after_trap): Delete.
23 (clear_proceed_status, handle_signal_stop, struct
24 infcall_control_state, save_infcall_control_state)
25 (restore_infcall_control_state): Remove references to
28 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
30 * python/python.c (_initialize_python): Add cast.
32 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
34 * nto-tdep.c (nto_inferior_data): Add cast.
36 2015-10-22 Pedro Alves <palves@redhat.com>
38 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
39 windows_wait and windows_resume directly instead of
40 wait_for_inferior and resume.
42 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
44 * xtensa-tdep.h (XTREG): Add casts.
45 (XTREG_END): Likewise.
47 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
49 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
51 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
53 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
55 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
57 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
59 (supply_32bit_reg): Add cast.
60 (mips64_fill_gregset): Likewise.
62 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
65 * python/py-type.c (typy_get_composite): Allow returning a
68 2015-10-21 Keven Boell <keven.boell@intel.com>
70 * dwarf2read.c (set_die_type): Add read of
71 DW_AT_allocated and DW_AT_associated.
72 * f-typeprint.c: New include of typeprint.h
73 (f_print_type): Add check for allocated/associated
75 (f_type_print_varspec_suffix): Add check for
76 * gdbtypes.c (create_array_type_with_stride):
77 Add check for valid data location of type in
78 case allocated or associated attributes are set.
79 Length of an array should be only calculated if
80 allocated or associated is resolved as true.
81 (is_dynamic_type_internal): Add check for allocated/
83 (resolve_dynamic_array): Evaluate allocated/associated
85 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
86 <DYN_PROP_ASSOCIATED>: New enums.
87 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
88 (type_not_allocated): New function.
89 (type_not_associated): New function.
90 * valarith.c (value_subscripted_rvalue): Add check for
92 * valprint.c: New include of typeprint.h.
93 (valprint_check_validity): Add check for allocated/associated.
94 (value_check_printable): Add check for allocated/
96 * typeprint.h (val_print_not_allocated): New function.
97 (val_print_not_associated): New function.
98 * typeprint.c (val_print_not_allocated): New function.
99 (val_print_not_associated): New function.
101 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
103 * Makefile.in: Add arm.c/o.
104 * arch/arm.c: New file.
105 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
106 (MAKE_THUMB_ADDR): Likewise.
107 (UNMAKE_THUMB_ADDR): Likewise.
108 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
109 (IS_THUMB_ADDR): Move to arm.h.
110 (MAKE_THUMB_ADDR): Likewise.
111 (UNMAKE_THUMB_ADDR): Likewise.
112 * configure.tgt: Add arm.o to all ARM configs.
114 2015-10-21 Yao Qi <yao.qi@linaro.org>
116 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
117 Remove argument exp_vCont_s.
118 * gdb.base/range-stepping.exp: Callers updated.
119 * gdb.trace/range-stepping.exp: Likewise.
121 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
123 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
124 (nto_sniff_abi_note_section): New function.
125 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
128 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
130 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
131 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
132 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
133 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
135 (_initialize_nto_tdep): New forward declaration, new function.
136 * nto-tdep.h (struct nto_inferior_data): New struct.
137 (nto_inferior_data): New function declaration.
139 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
141 * findvar.c (address_from_register): Check REGNUM validity.
143 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
145 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
146 (init_procfs_targets): Wire new function.
148 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
150 * nto-procfs.c (sys/auxv.h): Include.
151 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
152 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
153 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
155 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
157 * nto-procfs.c (nto_procfs_path): Rename to...
158 (nodestr): ... this, and change type.
159 (nto_node): Use new variable and logic accordingly.
160 (procfs_open_1): Use new variable name. Use local buffer to construct
162 (procfs_pidlist): Use NODESTR to construct procfs path.
163 (procfs_files_info): Use NODESTR to output meaningful text.
164 (do_attach): Construct procfs using NODESTR.
165 (procfs_create_inferior): Compare pointer to NULL.
167 2015-10-19 Josh Stone <jistone@redhat.com>
169 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
170 return state, even when not actively catching syscalls at all.
171 (linux_handle_extended_wait): Mark syscall_state like an entry.
172 (wait_lwp): Set syscall_state ignored for other traps.
173 (linux_nat_filter_event): Likewise.
175 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
177 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
178 when handling 'E', 'T', 'S', 'X' and 'W' packets.
179 Do not set rs->waiting_for_stop_reply back to 1.
181 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
183 * nto-procfs.c (common/filestuff.h): Include.
184 (procfs_can_use_hw_breakpoint): Fix enum name.
185 (procfs_open_1): Fix compiler warning.
186 (procfs_pidlist): Make static.
187 (procfs_meminfo): Make static, fix type name, add missing argument.
188 (procfs_store_registers): Make static.
189 (procfs_thread_info): Remove unused function.
190 (_initialize_procfs): Forward declare.
192 2015-10-16 Yao Qi <yao.qi@arm.com>
194 * MAINTAINERS: Update my email address.
196 2015-10-15 Yao Qi <yao.qi@linaro.org>
198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
199 Call gdbarch_breakpoint_from_pc to instruction length.
200 (aarch64_linux_remove_hw_breakpoint): Likewise.
201 * common/common-regcache.h (regcache_register_size): Declare.
202 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
203 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
204 the process is 32bit, otherwise set alignment to 4.
205 (aarch64_handle_breakpoint): Update comments.
206 * regcache.c (regcache_register_size): New function.
208 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
210 * gdbarch.sh (core_regset_section): Remove.
211 * gdbarch.h: Regenerate.
213 2015-10-14 Yao Qi <yao.qi@linaro.org>
215 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
217 (enum aarch64_memory_operand_type): New.
219 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
221 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
223 2015-10-13 Pedro Alves <palves@redhat.com>
225 * ada-lang.c (ada_enum_name): Constify local.
226 * ada-typeprint.c (print_range_bound): Constify locals.
227 * c-varobj.c (c_describe_child): Likewise.
228 * cli/cli-setshow.c (do_set_command): Likewise.
229 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
230 * dwarf2read.c (find_file_and_directory): Likewise.
231 (anonymous_struct_prefix, dwarf2_name): Likewise.
232 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
233 * go-lang.c (unpack_mangled_go_symbol): Likewise.
234 * jv-typeprint.c (java_type_print_base): Likewise.
235 * ser-tcp.c (net_open): Likewise.
236 * symfile.c (deduce_language_from_filename): Likewise.
237 * symtab.c (gdb_mangle_name): Likewise.
238 * tui/tui-io.c (tui_redisplay_readline): Likewise.
240 2015-10-13 Pedro Alves <palves@redhat.com>
242 * infrun.c (restore_execution_direction): New function.
243 (fetch_inferior_event): Use it instead of
244 make_cleanup_restore_integer.
245 (execution_direction): Change type to enum
247 * infrun.h (execution_direction): Likewise.
249 2015-10-13 Pedro Alves <palves@redhat.com>
251 * ada-lang.c (ada_value_primitive_packed_val): Constify
252 locals. Use value_contents_writeable. Remove casts.
254 2015-10-13 Pedro Alves <palves@redhat.com>
256 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
259 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
261 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
262 write_memory with write_memory_unsigned_integer.
264 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
266 * solib-dsbt.c (cmp_name): Constify arguments.
267 * solib-frv.c (cmp_name): Likewise.
268 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
269 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
270 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
271 (gdb_bfd_lookup_symbol): Likewise.
272 * solib.h (gdb_bfd_lookup_symbol): Likewise.
273 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
275 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
277 * stack.c (parse_frame_specification): Remove message parameter,
278 replace with fixed string in function body, update function
280 (frame_info): Remove message to parse_frame_specification.
281 (select_frame_command): Likewise.
283 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
285 * stack.c (parse_frame_specification): Delete.
286 (parse_frame_specification_1): Rename to
287 parse_frame_specification.
288 (frame_info): Use parse_frame_specification.
289 (select_frame_command): Likewise.
290 (return_command): Use select_frame and print_stack_frame rather
291 than frame_command and select_frame_command.
292 (func_command): Use get_current_frame rather than
293 parse_frame_specification.
295 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
297 * stack.c (func_command): Return early when there is no ARG
300 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
302 * stack.c: Include safe-ctype.h not ctype.h.
303 (parse_frame_specification): Use ISSPACE not isspace.
304 (backtrace_command): Use TOLOWER not tolower.
306 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
308 * mep-tdep.c (current_me_module): Add cast.
309 (mep_gdbarch_init): Likewise.
311 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
313 * m32c-tdep.c (m32c_move_reg_t): Replace with...
314 (m32c_write_reg_t): ...this and...
315 (m32c_read_reg_t): ...this.
316 (struct m32c_reg): Update types of read and write.
317 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
319 (m32c_banked_read): Likewise.
320 (m32c_sb_read): Likewise.
321 (m32c_part_read): Likewise.
322 (m32c_cat_read): Likewise.
323 (m32c_r3r2r1r0_read): Likewise.
324 (m32c_raw_write): Change declaration type to m32c_write_reg_t
325 and adjust definition.
326 (m32c_banked_write): Likewise.
327 (m32c_sb_write): Likewise.
328 (m32c_part_write): Likewise.
329 (m32c_cat_write): Likewise.
330 (m32c_r3r2r1r0_write): Likewise.
332 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
334 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
336 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
338 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
339 gdb_sys_no_syscall instead of -1.
341 2015-10-12 Yao Qi <yao.qi@linaro.org>
343 * NEWS: Mention the change.
345 2015-10-12 Yao Qi <yao.qi@linaro.org>
347 * arch/aarch64-insn.c (emit_load_store): Rename to ...
348 (aarch64_emit_load_store): ... it. All callers updated.
350 2015-10-12 Yao Qi <yao.qi@linaro.org>
352 * arch/aarch64-insn.c (emit_insn): Rename to ...
353 (aarch64_emit_insn): ... it. All callers updated.
355 2015-10-12 Yao Qi <yao.qi@linaro.org>
357 * aarch64-linux-tdep.c: Include arch-utils.h.
358 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
359 set_gdbarch_displaced_step_copy_insn,
360 set_gdbarch_displaced_step_fixup,
361 set_gdbarch_displaced_step_free_closure,
362 set_gdbarch_displaced_step_location,
363 and set_gdbarch_displaced_step_hw_singlestep.
364 * aarch64-tdep.c (struct displaced_step_closure): New.
365 (struct aarch64_displaced_step_data): New.
366 (aarch64_displaced_step_b): New function.
367 (aarch64_displaced_step_b_cond): Likewise.
368 (aarch64_register): Likewise.
369 (aarch64_displaced_step_cb): Likewise.
370 (aarch64_displaced_step_tb): Likewise.
371 (aarch64_displaced_step_adr): Likewise.
372 (aarch64_displaced_step_ldr_literal): Likewise.
373 (aarch64_displaced_step_others): Likewise.
374 (aarch64_displaced_step_copy_insn): Likewise.
375 (aarch64_displaced_step_fixup): Likewise.
376 (aarch64_displaced_step_hw_singlestep): Likewise.
377 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
378 (aarch64_displaced_step_copy_insn): Declare.
379 (aarch64_displaced_step_fixup): Declare.
380 (aarch64_displaced_step_hw_singlestep): Declare.
381 * arch/aarch64-insn.c (emit_insn): Moved from
382 gdbserver/linux-aarch64-low.c.
383 (emit_load_store): Likewise.
384 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
385 gdbserver/linux-aarch64-low.c.
386 (struct aarch64_register): Likewise.
387 (struct aarch64_memory_operand): Likewise.
389 (can_encode_int32): New macro.
390 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
391 (emit_tb, emit_nop): Likewise.
392 (emit_insn): Declare.
393 (emit_load_store): Declare.
395 2015-10-12 Yao Qi <yao.qi@linaro.org>
397 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
398 gdbserver/linux-aarch64-low.c.
399 (aarch64_relocate_instruction): Likewise.
400 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
401 (struct aarch64_insn_data): Moved from
402 gdbserver/linux-aarch64-low.c.
403 (struct aarch64_insn_visitor): Likewise.
404 (aarch64_relocate_instruction): Declare.
406 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
408 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
409 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
410 to the returned value.
412 2015-10-09 Joel Brobecker <brobecker@adacore.com>
414 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
415 is large enough for BIT_SIZE. Update function comment.
417 2015-10-09 Joel Brobecker <brobecker@adacore.com>
419 * ada-lang.c (ada_value_primitive_packed_val): Move
420 src_len variable to local block where used. Override
421 BIT_SIZE if bigger than size of resolved type.
423 2015-10-09 Joel Brobecker <brobecker@adacore.com>
425 * gdbtypes.h (is_scalar_type): Add extern declaration.
426 * gdbtypes.c (is_scalar_type): Make non-static.
427 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
428 to compute IS_SCALAR instead of doing it ourselves.
430 2015-10-09 Joel Brobecker <brobecker@adacore.com>
432 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
433 of case where TYPE is dynamic.
435 2015-10-09 Joel Brobecker <brobecker@adacore.com>
437 * ada-lang.c (ada_unpack_from_contents): New function,
438 extracted from ada_value_primitive_packed_val.
439 (ada_value_primitive_packed_val): Replace extracted out code
440 by call to ada_unpack_from_contents.
442 2015-10-09 Joel Brobecker <brobecker@adacore.com>
444 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
445 variable declarations.
447 2015-10-09 Joel Brobecker <brobecker@adacore.com>
449 * ada-lang.c (ada_value_primitive_packed_val): Change the type
450 of local variables src and unpacked to "gdb_type *" instead of
453 2015-10-09 Joel Brobecker <brobecker@adacore.com>
455 * ada-lang.c (ada_value_primitive_packed_val): Make the name
456 of various local variables more explicit and consistent.
457 No real code change otherwise.
459 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
461 * i386-tdep.h (struct gdbarch_tdep): Change type of
462 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
464 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
466 * cris-tdep.c (struct instruction_environment): Change type of
467 byte_order to enum bfd_endian.
469 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
471 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
472 enum gdb_syscall casts.
474 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
476 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
477 * arm-tdep.c (struct stack_item): Likewise.
478 (push_stack_item): Add gdb_byte* cast.
479 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
480 (push_stack_item): Add gdb_byte* cast.
481 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
483 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
484 (push_stack_item): Add gdb_byte* cast.
485 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
487 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
489 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
490 gdb_byte* and remove unnecessary cast.
491 (h8300h_extract_return_value): Likewise.
492 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
493 (h8300h_store_return_value): Likewise.
494 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
495 gdb_byte* and remove unnecessary cast.
496 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
498 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
499 gdb_byte* and remove unnecessary cast.
500 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
502 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
503 (mep_pseudo_cr64_read): Likewise.
504 (mep_pseudo_csr_write): Likewise.
505 (mep_pseudo_cr32_write): Likewise.
506 (mep_pseudo_cr64_write): Likewise.
507 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
508 gdb_byte* and add cast.
509 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
510 gdb_byte* and remove unnecessary cast.
511 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
513 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
515 * printcmd.c (void): Likewise.
516 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
517 gdb_byte* and add cast.
518 (infpy_write_memory): Likewise.
519 (infpy_search_memory): Likewise.
520 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
522 (regcache_raw_write_unsigned): Likewise.
523 (regcache_cooked_write_signed): Likewise.
524 (regcache_cooked_write_unsigned): Likewise.
525 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
528 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
530 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
531 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
533 2015-10-09 Eli Zaretskii <eliz@gnu.org>
535 * stack.c (print_stack_frame):
536 * utils.c (printchar): Fix typos in commentary.
538 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
540 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
541 (PostfixExpression): Support `expr.sizeof' expressions.
542 (PrimaryExpression): Support `typeof(expr)' expressions.
544 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
546 * MAINTAINERS: Update my email address.
548 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
550 * record-btrace.c (record_btrace_resume): Fix void return.
552 2015-10-07 Yao Qi <yao.qi@linaro.org>
554 * aarch64-tdep.c: Include opcode/aarch64.h.
555 (submask): Move it above.
558 (aarch64_software_single_step): Call aarch64_decode_insn.
559 Decode instruction by aarch64_inst instead of using
560 aarch64_decode_bcond and decode_masked_match.
562 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
564 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
565 only when the file is binary.
567 2015-10-02 James Bowman <james.bowman@ftdichip.com>
569 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
572 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
574 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
576 2015-09-30 Doug Evans <dje@google.com>
578 * dwarf2read.c (setup_type_unit_groups): Add comment.
580 2015-09-30 Pedro Alves <palves@redhat.com>
582 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
583 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
584 (x86_linux_create_target): Don't install
585 x86_linux_always_non_stop_p.
587 2015-09-30 Don Breazeal <donb@codesourcery.com>
589 * remote.c (remote_parse_stop_reply): Call strprefix instead
592 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
594 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
595 * gdbarch.h: Regenerate.
596 * i386-tdep.c (i386_gdbarch_init): Remove cast to
597 struct gdbarch_tdep_info *.
598 * mips-tdep.c (mips_gdbarch_init): Likewise.
599 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
600 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
601 * spu-multiarch.c (spu_gdbarch): Likewise.
603 2015-09-30 Kevin Buettner <kevinb@redhat.com>
605 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
608 2015-09-29 Kevin Buettner <kevinb@redhat.com>
610 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
611 and union arguments the same as pointer arguments when determining
614 2015-09-29 James Bowman <james.bowman@ftdichip.com>
616 * ft32-tdep.c: #include "opcode/ft32.h".
617 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
618 (ft32_analyze_prologue): Use FT32_* macros.
620 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
622 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
625 2015-09-28 Doug Evans <dje@google.com>
627 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
629 2015-09-28 Doug Evans <dje@google.com>
631 * common/filestuff.c (make_cleanup_close): Update comment.
633 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
635 * btrace.c (parse_xml_btrace_block): Fix cast of
636 xml_find_attribute's return value.
637 * memory-map.c (memory_map_start_memory): Likewise.
638 * solib-svr4.c (library_list_start_library): Likewise.
639 * solib-target.c (library_list_start_segment): Likewise.
640 (library_list_start_section): Likewise.
641 * tracepoint.c (traceframe_info_start_memory): Likewise.
643 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
645 * d-namespace.c (d_lookup_symbol): New arg langdef.
646 All callers updated. Support looking up symbol as a primitive type.
647 (lookup_module_scope): New arg langdef. All callers updated.
648 Call d_lookup_symbol directly for simple bare symbols.
650 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
652 * macrocmd.c (print_macro_callback): Add cast(s).
653 * macrotab.c (macro_bcache_str): Likewise.
654 (new_macro_definition): Likewise.
655 * main.c (captured_main): Likewise.
656 * maint.c (print_bfd_section_info): Likewise.
657 * mdebugread.c (mdebug_build_psymtabs): Likewise.
658 (basic_type): Likewise.
659 * memattr.c (mem_region_cmp): Likewise.
660 * memory-map.c (memory_map_start_memory): Likewise.
661 (memory_map_end_memory): Likewise.
662 (memory_map_start_property): Likewise.
663 (memory_map_end_property): Likewise.
664 (clear_result): Likewise.
665 * memrange.c (compare_mem_ranges): Likewise.
666 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
667 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
668 * mi/mi-console.c (mi_console_file_delete): Likewise.
669 (mi_console_file_fputs): Likewise.
670 (mi_console_raw_packet): Likewise.
671 (mi_console_file_flush): Likewise.
672 (mi_console_set_raw): Likewise.
673 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
674 (mi_new_thread): Likewise.
675 (mi_thread_exit): Likewise.
676 (mi_record_changed): Likewise.
677 (mi_inferior_added): Likewise.
678 (mi_inferior_appeared): Likewise.
679 (mi_inferior_exit): Likewise.
680 (mi_inferior_removed): Likewise.
681 (mi_interp_data): Likewise.
682 (mi_on_normal_stop): Likewise.
683 (mi_traceframe_changed): Likewise.
684 (mi_tsv_created): Likewise.
685 (mi_tsv_deleted): Likewise.
686 (mi_tsv_modified): Likewise.
687 (mi_breakpoint_created): Likewise.
688 (mi_breakpoint_deleted): Likewise.
689 (mi_breakpoint_modified): Likewise.
690 (mi_output_running_pid): Likewise.
691 (mi_inferior_count): Likewise.
692 (mi_solib_loaded): Likewise.
693 (mi_solib_unloaded): Likewise.
694 (mi_command_param_changed): Likewise.
695 (mi_memory_changed): Likewise.
696 (report_initial_inferior): Likewise.
697 (mi_ui_out): Likewise.
698 (mi_set_logging): Likewise.
699 * mi/mi-main.c (collect_cores): Likewise.
700 (print_one_inferior): Likewise.
701 (free_vector_of_ints): Likewise.
702 (free_splay_tree): Likewise.
703 (mi_execute_command): Likewise.
704 * mi/mi-out.c (mi_table_body): Likewise.
705 (mi_table_end): Likewise.
706 (mi_table_header): Likewise.
707 (mi_begin): Likewise.
709 (mi_field_int): Likewise.
710 (mi_field_string): Likewise.
711 (mi_field_fmt): Likewise.
712 (mi_flush): Likewise.
713 (mi_redirect): Likewise.
714 (field_separator): Likewise.
716 (mi_close): Likewise.
717 (mi_out_buffered): Likewise.
718 (mi_out_rewind): Likewise.
719 (mi_out_put): Likewise.
720 (mi_version): Likewise.
721 (mi_out_data_dtor): Likewise.
722 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
723 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
724 * minidebug.c (lzma_open): Likewise.
725 (lzma_pread): Likewise.
726 (lzma_close): Likewise.
727 (lzma_stat): Likewise.
728 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
729 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
730 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
731 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
732 (mips_micro_frame_cache): Likewise.
733 (mips_insn32_frame_cache): Likewise.
734 (mips_stub_frame_cache): Likewise.
735 (gdb_print_insn_mips): Likewise.
736 (value_of_mips_user_reg): Likewise.
737 (mips_gdbarch_init): Likewise.
738 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
739 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
740 (mipsnbsd_supply_gregset): Likewise.
741 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
742 (am33_collect_gregset_method): Likewise.
743 (am33_collect_fpregset_method): Likewise.
744 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
745 * moxie-tdep.c (moxie_frame_cache): Likewise.
746 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
747 (msp430_analyze_frame_prologue): Likewise.
748 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
749 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
750 (nios2_collect_gregset): Likewise.
751 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
752 (nios2_stub_frame_cache): Likewise.
753 * objc-lang.c (find_methods): Likewise.
754 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
755 (get_objfile_pspace_data): Likewise.
756 (get_objfile_bfd_data): Likewise.
757 (objfile_bfd_data_free): Likewise.
758 (add_to_objfile_sections): Likewise.
759 (do_free_objfile_cleanup): Likewise.
760 (resume_section_map_updates_cleanup): Likewise.
761 * opencl-lang.c (builtin_opencl_type): Likewise.
762 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
763 * osdata.c (osdata_start_osdata): Likewise.
764 (osdata_start_item): Likewise.
765 (osdata_start_column): Likewise.
766 (osdata_end_column): Likewise.
767 (clear_parsing_data): Likewise.
768 (osdata_free_cleanup): Likewise.
769 * parse.c (type_stack_cleanup): Likewise.
770 (exp_uses_objfile_iter): Likewise.
771 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
772 (ppc_linux_collect_gregset): Likewise.
773 (ppu2spu_prev_arch): Likewise.
774 (ppu2spu_this_id): Likewise.
775 (ppu2spu_prev_register): Likewise.
776 (ppu2spu_unwind_register): Likewise.
777 (ppu2spu_sniffer): Likewise.
778 (ppu2spu_dealloc_cache): Likewise.
779 (ppc_linux_init_abi): Likewise.
780 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
781 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
782 * progspace.c (restore_program_space): Likewise.
783 * psymtab.c (find_pc_sect_psymtab): Likewise.
784 (compare_psymbols): Likewise.
785 (psymbol_bcache_full): Likewise.
786 (allocate_psymtab): Likewise.
787 (discard_psymtabs_upto): Likewise.
788 * python/py-block.c (set_block): Likewise.
789 (del_objfile_blocks): Likewise.
790 * python/py-breakpoint.c (build_bp_list): Likewise.
791 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
792 (build_inferior_list): Likewise.
793 (py_free_inferior): Likewise.
794 * python/py-objfile.c (py_free_objfile): Likewise.
795 (objfile_to_objfile_object): Likewise.
796 * python/py-prettyprint.c (py_restore_tstate): Likewise.
797 * python/py-progspace.c (py_free_pspace): Likewise.
798 (pspace_to_pspace_object): Likewise.
799 * python/py-symbol.c (set_symbol): Likewise.
800 (del_objfile_symbols): Likewise.
801 * python/py-symtab.c (set_sal): Likewise.
802 (set_symtab): Likewise.
803 (del_objfile_symtab): Likewise.
804 (del_objfile_sal): Likewise.
805 * python/py-type.c (save_objfile_types): Likewise.
806 (set_type): Likewise.
807 * python/py-unwind.c (pyuw_prev_register): Likewise.
808 (pyuw_on_new_gdbarch): Likewise.
809 * python/py-utils.c (py_decref): Likewise.
810 (py_xdecref): Likewise.
811 (gdb_py_generic_dict): Likewise.
812 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
813 (gdbpy_clone_xmethod_worker_data): Likewise.
814 (gdbpy_get_xmethod_arg_types): Likewise.
815 (gdbpy_get_xmethod_result_type): Likewise.
816 (gdbpy_invoke_xmethod): Likewise.
817 * python/python.c (gdbpy_apply_type_printers): Likewise.
818 (gdbpy_free_type_printers): Likewise.
819 * record-btrace.c (record_btrace_disable_callback): Likewise.
820 (bfcache_hash): Likewise.
821 (bfcache_eq): Likewise.
822 (btrace_get_frame_function): Likewise.
823 (record_btrace_frame_unwind_stop_reason): Likewise.
824 (record_btrace_frame_this_id): Likewise.
825 (record_btrace_frame_prev_register): Likewise.
826 (record_btrace_frame_dealloc_cache): Likewise.
827 * record-full.c (record_full_message_wrapper): Likewise.
828 (record_full_save_cleanups): Likewise.
829 * regcache.c (regcache_descr): Likewise.
830 (do_regcache_xfree): Likewise.
831 (do_regcache_invalidate): Likewise.
832 (do_cooked_read): Likewise.
833 (regcache_transfer_regset): Likewise.
834 * reggroups.c (reggroup_add): Likewise.
835 (reggroup_next): Likewise.
836 (reggroup_prev): Likewise.
837 * remote-fileio.c (do_remote_fileio_request): Likewise.
838 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
839 (do_notif_event_xfree): Likewise.
840 * remote.c (get_remote_arch_state): Likewise.
841 (remote_pspace_data_cleanup): Likewise.
842 (get_remote_exec_file): Likewise.
843 (set_pspace_remote_exec_file): Likewise.
844 (compare_pnums): Likewise.
845 (clear_threads_listing_context): Likewise.
846 (remote_newthread_step): Likewise.
847 (start_thread): Likewise.
848 (end_thread): Likewise.
849 (remove_child_of_pending_fork): Likewise.
850 (remove_stop_reply_for_inferior): Likewise.
851 (remove_stop_reply_of_remote_state): Likewise.
852 (remote_notif_remove_once_on_match): Likewise.
853 (stop_reply_match_ptid_and_ws): Likewise.
854 (kill_child_of_pending_fork): Likewise.
855 (register_remote_g_packet_guess): Likewise.
856 (remote_read_description_p): Likewise.
857 (remote_read_description): Likewise.
858 (free_actions_list_cleanup_wrapper): Likewise.
859 (remote_async_serial_handler): Likewise.
860 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
861 (rl78_analyze_frame_prologue): Likewise.
862 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
863 (ppc_supply_fpregset): Likewise.
864 (ppc_supply_vsxregset): Likewise.
865 (ppc_supply_vrregset): Likewise.
866 (ppc_collect_gregset): Likewise.
867 (ppc_collect_fpregset): Likewise.
868 (ppc_collect_vsxregset): Likewise.
869 (ppc_collect_vrregset): Likewise.
870 (e500_move_ev_register): Likewise.
871 (do_regcache_raw_write): Likewise.
872 (rs6000_frame_cache): Likewise.
873 (rs6000_epilogue_frame_cache): Likewise.
874 (rs6000_gdbarch_init): Likewise.
875 * rx-tdep.c (rx_get_opcode_byte): Likewise.
876 (rx_analyze_frame_prologue): Likewise.
877 (rx_frame_type): Likewise.
878 (rx_frame_sniffer_common): Likewise.
879 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
880 (s390_frame_unwind_cache): Likewise.
881 (s390_stub_frame_unwind_cache): Likewise.
882 (s390_sigtramp_frame_unwind_cache): Likewise.
883 * score-tdep.c (score_make_prologue_cache): Likewise.
884 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
885 (sentinel_frame_prev_arch): Likewise.
886 * ser-base.c (fd_event): Likewise.
887 (push_event): Likewise.
888 (ser_base_write): Likewise.
889 * ser-pipe.c (pipe_close): Likewise.
890 * serial.c (serial_write): Likewise.
891 * sh-tdep.c (sh_frame_cache): Likewise.
892 (sh_stub_this_id): Likewise.
893 * sh64-tdep.c (sh64_frame_cache): Likewise.
894 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
895 (library_list_start_library): Likewise.
896 (library_list_start_list): Likewise.
897 (solib_aix_free_library_list): Likewise.
898 * solib-darwin.c (get_darwin_info): Likewise.
899 * solib-dsbt.c (get_dsbt_info): Likewise.
900 * solib-spu.c (append_ocl_sos): Likewise.
901 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
902 (get_svr4_info): Likewise.
903 (library_list_start_library): Likewise.
904 (svr4_library_list_start_list): Likewise.
905 (hash_probe_and_action): Likewise.
906 (equal_probe_and_action): Likewise.
907 (svr4_update_solib_event_breakpoint): Likewise.
908 (set_solib_svr4_fetch_link_map_offsets): Likewise.
909 (svr4_fetch_link_map_offsets): Likewise.
910 (svr4_have_link_map_offsets): Likewise.
911 * solib-target.c (library_list_start_segment): Likewise.
912 (library_list_start_section): Likewise.
913 (library_list_start_library): Likewise.
914 (library_list_end_library): Likewise.
915 (library_list_start_list): Likewise.
916 (solib_target_free_library_list): Likewise.
917 * solib.c (solib_ops): Likewise.
918 (set_solib_ops): Likewise.
919 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
920 * sparc-tdep.c (sparc_frame_cache): Likewise.
921 (sparc32_frame_cache): Likewise.
922 (sparc32_supply_gregset): Likewise.
923 (sparc32_collect_gregset): Likewise.
924 (sparc32_supply_fpregset): Likewise.
925 (sparc32_collect_fpregset): Likewise.
926 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
927 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
928 (sparc64_collect_gregset): Likewise.
929 (sparc64_supply_fpregset): Likewise.
930 (sparc64_collect_fpregset): Likewise.
931 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
932 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
933 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
934 (sparc64obsd_trapframe_cache): Likewise.
935 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
936 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
937 * spu-multiarch.c (spu_gdbarch): Likewise.
938 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
939 (spu2ppu_prev_arch): Likewise.
940 (spu2ppu_this_id): Likewise.
941 (spu2ppu_prev_register): Likewise.
942 (spu2ppu_dealloc_cache): Likewise.
943 (spu_dis_asm_print_address): Likewise.
944 (gdb_print_insn_spu): Likewise.
945 (spu_get_overlay_table): Likewise.
946 * stabsread.c (rs6000_builtin_type): Likewise.
947 * stack.c (do_print_variable_and_value): Likewise.
948 * stap-probe.c (get_stap_base_address_1): Likewise.
949 * symfile-debug.c (debug_qf_has_symbols): Likewise.
950 (debug_qf_find_last_source_symtab): Likewise.
951 (debug_qf_forget_cached_source_info): Likewise.
952 (debug_qf_map_symtabs_matching_filename): Likewise.
953 (debug_qf_lookup_symbol): Likewise.
954 (debug_qf_print_stats): Likewise.
955 (debug_qf_dump): Likewise.
956 (debug_qf_relocate): Likewise.
957 (debug_qf_expand_symtabs_for_function): Likewise.
958 (debug_qf_expand_all_symtabs): Likewise.
959 (debug_qf_expand_symtabs_with_fullname): Likewise.
960 (debug_qf_map_matching_symbols): Likewise.
961 (debug_qf_expand_symtabs_matching): Likewise.
962 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
963 (debug_qf_map_symbol_filenames): Likewise.
964 (debug_sym_get_probes): Likewise.
965 (debug_sym_new_init): Likewise.
966 (debug_sym_init): Likewise.
967 (debug_sym_read): Likewise.
968 (debug_sym_read_psymbols): Likewise.
969 (debug_sym_finish): Likewise.
970 (debug_sym_offsets): Likewise.
971 (debug_sym_read_linetable): Likewise.
972 (debug_sym_relocate): Likewise.
973 (uninstall_symfile_debug_logging): Likewise.
974 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
975 * symfile.c (place_section): Likewise.
976 (add_section_size_callback): Likewise.
977 (load_progress): Likewise.
978 (load_section_callback): Likewise.
979 (clear_memory_write_data): Likewise.
980 (allocate_symtab): Likewise.
981 * symmisc.c (maintenance_expand_file_matcher): Likewise.
982 * symtab.c (lookup_symtab_callback): Likewise.
983 (hash_demangled_name_entry): Likewise.
984 (eq_demangled_name_entry): Likewise.
985 (get_symbol_cache): Likewise.
986 (symbol_cache_cleanup): Likewise.
987 (set_symbol_cache_size): Likewise.
988 (symbol_cache_flush): Likewise.
989 (maintenance_print_symbol_cache): Likewise.
990 (maintenance_print_symbol_cache_statistics): Likewise.
991 (delete_filename_seen_cache): Likewise.
992 (output_partial_symbol_filename): Likewise.
993 (search_symbols_file_matches): Likewise.
994 (search_symbols_name_matches): Likewise.
995 (do_free_completion_list): Likewise.
996 (maybe_add_partial_symtab_filename): Likewise.
997 (get_main_info): Likewise.
998 (main_info_cleanup): Likewise.
999 * target-dcache.c (target_dcache_cleanup): Likewise.
1000 (target_dcache_init_p): Likewise.
1001 (target_dcache_invalidate): Likewise.
1002 (target_dcache_get): Likewise.
1003 (target_dcache_get_or_init): Likewise.
1004 * target-descriptions.c (target_find_description): Likewise.
1005 (tdesc_find_type): Likewise.
1006 (tdesc_data_cleanup): Likewise.
1007 (tdesc_find_arch_register): Likewise.
1008 (tdesc_register_name): Likewise.
1009 (tdesc_register_type): Likewise.
1010 (tdesc_register_reggroup_p): Likewise.
1011 (set_tdesc_pseudo_register_name): Likewise.
1012 (set_tdesc_pseudo_register_type): Likewise.
1013 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1014 (tdesc_use_registers): Likewise.
1015 (free_target_description): Likewise.
1016 * target-memory.c (compare_block_starting_address): Likewise.
1017 (cleanup_request_data): Likewise.
1018 (cleanup_write_requests_vector): Likewise.
1019 * target.c (open_target): Likewise.
1020 (cleanup_restore_target_terminal): Likewise.
1021 (free_memory_read_result_vector): Likewise.
1022 * thread.c (disable_thread_stack_temporaries): Likewise.
1023 (finish_thread_state_cleanup): Likewise.
1024 (do_restore_current_thread_cleanup): Likewise.
1025 (restore_current_thread_cleanup_dtor): Likewise.
1026 (set_thread_refcount): Likewise.
1027 (tp_array_compar): Likewise.
1028 (do_captured_thread_select): Likewise.
1029 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1030 (tic6x_stub_this_id): Likewise.
1031 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1032 * top.c (do_restore_instream_cleanup): Likewise.
1033 (gdb_readline_wrapper_cleanup): Likewise.
1034 (kill_or_detach): Likewise.
1035 (print_inferior_quit_action): Likewise.
1036 * tracefile-tfile.c (match_blocktype): Likewise.
1037 (build_traceframe_info): Likewise.
1038 * tracefile.c (trace_file_writer_xfree): Likewise.
1039 * tracepoint.c (memrange_cmp): Likewise.
1040 (do_collect_symbol): Likewise.
1041 (do_clear_collection_list): Likewise.
1042 (do_restore_current_traceframe_cleanup): Likewise.
1043 (restore_current_traceframe_cleanup_dtor): Likewise.
1044 (free_current_marker): Likewise.
1045 (traceframe_info_start_memory): Likewise.
1046 (traceframe_info_start_tvar): Likewise.
1047 (free_result): Likewise.
1048 * tramp-frame.c (tramp_frame_cache): Likewise.
1049 * tui/tui-file.c (tui_file_delete): Likewise.
1050 (tui_fileopen): Likewise.
1051 (tui_sfileopen): Likewise.
1052 (tui_file_isatty): Likewise.
1053 (tui_file_rewind): Likewise.
1054 (tui_file_put): Likewise.
1055 (tui_file_fputs): Likewise.
1056 (tui_file_get_strbuf): Likewise.
1057 (tui_file_adjust_strbuf): Likewise.
1058 (tui_file_flush): Likewise.
1059 * tui/tui-layout.c (make_command_window): Likewise.
1060 (make_data_window): Likewise.
1061 (show_source_disasm_command): Likewise.
1062 (show_data): Likewise.
1063 (make_source_or_disasm_window): Likewise.
1064 (show_source_or_disasm_and_command): Likewise.
1065 * tui/tui-out.c (tui_field_int): Likewise.
1066 (tui_field_string): Likewise.
1067 (tui_field_fmt): Likewise.
1068 (tui_text): Likewise.
1069 * typeprint.c (hash_typedef_field): Likewise.
1070 (eq_typedef_field): Likewise.
1071 (do_free_typedef_hash): Likewise.
1072 (copy_typedef_hash_element): Likewise.
1073 (do_free_global_table): Likewise.
1074 (find_global_typedef): Likewise.
1075 (find_typedef_in_hash): Likewise.
1076 * ui-file.c (ui_file_write_for_put): Likewise.
1077 (do_ui_file_xstrdup): Likewise.
1078 (mem_file_delete): Likewise.
1079 (mem_file_rewind): Likewise.
1080 (mem_file_put): Likewise.
1081 (mem_file_write): Likewise.
1082 (stdio_file_delete): Likewise.
1083 (stdio_file_flush): Likewise.
1084 (stdio_file_read): Likewise.
1085 (stdio_file_write): Likewise.
1086 (stdio_file_write_async_safe): Likewise.
1087 (stdio_file_fputs): Likewise.
1088 (stdio_file_isatty): Likewise.
1089 (stdio_file_fseek): Likewise.
1090 (tee_file_delete): Likewise.
1091 (tee_file_flush): Likewise.
1092 (tee_file_write): Likewise.
1093 (tee_file_fputs): Likewise.
1094 (tee_file_isatty): Likewise.
1095 * ui-out.c (do_cleanup_table_end): Likewise.
1096 (do_cleanup_end): Likewise.
1097 * user-regs.c (user_reg_add): Likewise.
1098 (user_reg_map_name_to_regnum): Likewise.
1099 (usernum_to_user_reg): Likewise.
1100 (maintenance_print_user_registers): Likewise.
1101 * utils.c (do_bfd_close_cleanup): Likewise.
1102 (do_fclose_cleanup): Likewise.
1103 (do_obstack_free): Likewise.
1104 (do_ui_file_delete): Likewise.
1105 (do_ui_out_redirect_pop): Likewise.
1106 (do_free_section_addr_info): Likewise.
1107 (restore_integer): Likewise.
1108 (do_unpush_target): Likewise.
1109 (do_htab_delete_cleanup): Likewise.
1110 (do_restore_ui_file): Likewise.
1111 (do_value_free): Likewise.
1112 (do_free_so): Likewise.
1113 (free_current_contents): Likewise.
1114 (do_regfree_cleanup): Likewise.
1115 (core_addr_hash): Likewise.
1116 (core_addr_eq): Likewise.
1117 (do_free_char_ptr_vec): Likewise.
1118 * v850-tdep.c (v850_frame_cache): Likewise.
1119 * varobj.c (do_free_variable_cleanup): Likewise.
1120 * vax-tdep.c (vax_supply_gregset): Likewise.
1121 (vax_frame_cache): Likewise.
1122 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1123 * xml-support.c (gdb_xml_body_text): Likewise.
1124 (gdb_xml_values_cleanup): Likewise.
1125 (gdb_xml_start_element): Likewise.
1126 (gdb_xml_start_element_wrapper): Likewise.
1127 (gdb_xml_end_element): Likewise.
1128 (gdb_xml_end_element_wrapper): Likewise.
1129 (gdb_xml_cleanup): Likewise.
1130 (gdb_xml_fetch_external_entity): Likewise.
1131 (gdb_xml_parse_attr_enum): Likewise.
1132 (xinclude_start_include): Likewise.
1133 (xinclude_end_include): Likewise.
1134 (xml_xinclude_default): Likewise.
1135 (xml_xinclude_start_doctype): Likewise.
1136 (xml_xinclude_end_doctype): Likewise.
1137 (xml_xinclude_cleanup): Likewise.
1138 (xml_fetch_content_from_file): Likewise.
1139 * xml-syscall.c (free_syscalls_info): Likewise.
1140 (syscall_start_syscall): Likewise.
1141 * xml-tdesc.c (tdesc_end_arch): Likewise.
1142 (tdesc_end_osabi): Likewise.
1143 (tdesc_end_compatible): Likewise.
1144 (tdesc_start_target): Likewise.
1145 (tdesc_start_feature): Likewise.
1146 (tdesc_start_reg): Likewise.
1147 (tdesc_start_union): Likewise.
1148 (tdesc_start_struct): Likewise.
1149 (tdesc_start_flags): Likewise.
1150 (tdesc_start_field): Likewise.
1151 (tdesc_start_vector): Likewise.
1152 (fetch_available_features_from_target): Likewise.
1153 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1154 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1155 (xtensa_frame_cache): Likewise.
1156 (xtensa_frame_prev_register): Likewise.
1157 (xtensa_extract_return_value): Likewise.
1159 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1161 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1162 (aarch64_make_stub_cache): Likewise.
1163 (value_of_aarch64_user_reg): Likewise.
1164 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1165 (get_ada_inferior_data): Likewise.
1166 (get_ada_pspace_data): Likewise.
1167 (ada_pspace_data_cleanup): Likewise.
1168 (ada_complete_symbol_matcher): Likewise.
1169 (ada_exc_search_name_matches): Likewise.
1170 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1171 (get_ada_tasks_inferior_data): Likewise.
1172 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1173 (splay_obstack_alloc): Likewise.
1174 (splay_obstack_free): Likewise.
1175 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1176 (alpha_linux_collect_gregset): Likewise.
1177 (alpha_linux_supply_fpregset): Likewise.
1178 (alpha_linux_collect_fpregset): Likewise.
1179 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1180 * alpha-tdep.c (alpha_lds): Likewise.
1181 (alpha_sts): Likewise.
1182 (alpha_sigtramp_frame_unwind_cache): Likewise.
1183 (alpha_heuristic_frame_unwind_cache): Likewise.
1184 (alpha_supply_int_regs): Likewise.
1185 (alpha_fill_int_regs): Likewise.
1186 (alpha_supply_fp_regs): Likewise.
1187 (alpha_fill_fp_regs): Likewise.
1188 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1189 (alphanbsd_aout_supply_gregset): Likewise.
1190 (alphanbsd_supply_gregset): Likewise.
1191 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1192 (amd64_x32_linux_init_abi): Likewise.
1193 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1194 (amd64_collect_native_gregset): Likewise.
1195 * amd64-tdep.c (amd64_frame_cache): Likewise.
1196 (amd64_sigtramp_frame_cache): Likewise.
1197 (amd64_epilogue_frame_cache): Likewise.
1198 (amd64_supply_fxsave): Likewise.
1199 (amd64_supply_xsave): Likewise.
1200 (amd64_collect_fxsave): Likewise.
1201 (amd64_collect_xsave): Likewise.
1202 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1203 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1204 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1205 (arm_linux_collect_gregset): Likewise.
1206 (arm_linux_supply_nwfpe): Likewise.
1207 (arm_linux_collect_nwfpe): Likewise.
1208 (arm_linux_supply_vfp): Likewise.
1209 (arm_linux_collect_vfp): Likewise.
1210 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1211 (arm_prologue_unwind_stop_reason): Likewise.
1212 (arm_prologue_this_id): Likewise.
1213 (arm_prologue_prev_register): Likewise.
1214 (arm_exidx_data_free): Likewise.
1215 (arm_find_exidx_entry): Likewise.
1216 (arm_stub_this_id): Likewise.
1217 (arm_m_exception_this_id): Likewise.
1218 (arm_m_exception_prev_register): Likewise.
1219 (arm_normal_frame_base): Likewise.
1220 (gdb_print_insn_arm): Likewise.
1221 (arm_objfile_data_free): Likewise.
1222 (arm_record_special_symbol): Likewise.
1223 (value_of_arm_user_reg): Likewise.
1224 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1225 (armbsd_supply_gregset): Likewise.
1226 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1227 (get_auto_load_pspace_data): Likewise.
1228 (hash_loaded_script_entry): Likewise.
1229 (eq_loaded_script_entry): Likewise.
1230 (clear_section_scripts): Likewise.
1231 (collect_matching_scripts): Likewise.
1232 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1233 (get_auxv_inferior_data): Likewise.
1234 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1235 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1236 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1237 (target_bfd_xclose): Likewise.
1238 (target_bfd_get_section_table): Likewise.
1239 * bfin-tdep.c (bfin_frame_cache): Likewise.
1240 * block.c (find_block_in_blockvector): Likewise.
1241 (call_site_for_pc): Likewise.
1242 (block_find_non_opaque_type_preferred): Likewise.
1243 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1244 (signal_catchpoint_remove_location): Likewise.
1245 (signal_catchpoint_breakpoint_hit): Likewise.
1246 (signal_catchpoint_print_one): Likewise.
1247 (signal_catchpoint_print_mention): Likewise.
1248 (signal_catchpoint_print_recreate): Likewise.
1249 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1250 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1251 (bp_location_compare_addrs): Likewise.
1252 (get_first_locp_gte_addr): Likewise.
1253 (check_tracepoint_command): Likewise.
1254 (do_map_commands_command): Likewise.
1255 (get_breakpoint_objfile_data): Likewise.
1256 (free_breakpoint_probes): Likewise.
1257 (do_captured_breakpoint_query): Likewise.
1258 (compare_breakpoints): Likewise.
1259 (bp_location_compare): Likewise.
1260 (bpstat_remove_breakpoint_callback): Likewise.
1261 (do_delete_breakpoint_cleanup): Likewise.
1262 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1263 (bsd_uthread_set_collect_uthread): Likewise.
1264 (bsd_uthread_activate): Likewise.
1265 (bsd_uthread_fetch_registers): Likewise.
1266 (bsd_uthread_store_registers): Likewise.
1267 * btrace.c (check_xml_btrace_version): Likewise.
1268 (parse_xml_btrace_block): Likewise.
1269 (parse_xml_btrace_pt_config_cpu): Likewise.
1270 (parse_xml_btrace_pt_raw): Likewise.
1271 (parse_xml_btrace_pt): Likewise.
1272 (parse_xml_btrace_conf_bts): Likewise.
1273 (parse_xml_btrace_conf_pt): Likewise.
1274 (do_btrace_data_cleanup): Likewise.
1275 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1276 * charset.c (cleanup_iconv): Likewise.
1277 (do_cleanup_iterator): Likewise.
1278 * cli-out.c (cli_uiout_dtor): Likewise.
1279 (cli_table_begin): Likewise.
1280 (cli_table_body): Likewise.
1281 (cli_table_end): Likewise.
1282 (cli_table_header): Likewise.
1283 (cli_begin): Likewise.
1284 (cli_end): Likewise.
1285 (cli_field_int): Likewise.
1286 (cli_field_skip): Likewise.
1287 (cli_field_string): Likewise.
1288 (cli_field_fmt): Likewise.
1289 (cli_spaces): Likewise.
1290 (cli_text): Likewise.
1291 (cli_message): Likewise.
1292 (cli_wrap_hint): Likewise.
1293 (cli_flush): Likewise.
1294 (cli_redirect): Likewise.
1295 (out_field_fmt): Likewise.
1296 (field_separator): Likewise.
1297 (cli_out_set_stream): Likewise.
1298 * cli/cli-cmds.c (compare_symtabs): Likewise.
1299 * cli/cli-dump.c (call_dump_func): Likewise.
1300 (restore_section_callback): Likewise.
1301 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1302 (do_restore_user_call_depth): Likewise.
1303 (do_free_command_lines_cleanup): Likewise.
1304 * coff-pe-read.c (get_section_vmas): Likewise.
1305 (pe_as16): Likewise.
1306 (pe_as32): Likewise.
1307 * coffread.c (coff_symfile_read): Likewise.
1308 * common/agent.c (agent_look_up_symbols): Likewise.
1309 * common/filestuff.c (do_close_cleanup): Likewise.
1310 * common/format.c (free_format_pieces_cleanup): Likewise.
1311 * common/vec.c (vec_o_reserve): Likewise.
1312 * compile/compile-c-support.c (print_one_macro): Likewise.
1313 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1314 (eq_symbol_error): Likewise.
1315 (del_symbol_error): Likewise.
1316 (error_symbol_once): Likewise.
1317 (gcc_convert_symbol): Likewise.
1318 (gcc_symbol_address): Likewise.
1319 (hash_symname): Likewise.
1320 (eq_symname): Likewise.
1321 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1322 (eq_type_map_instance): Likewise.
1323 (insert_type): Likewise.
1324 (convert_type): Likewise.
1325 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1326 (setup_sections): Likewise.
1327 (link_hash_table_free): Likewise.
1328 (copy_sections): Likewise.
1329 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1330 * compile/compile.c (compile_print_value): Likewise.
1331 (do_rmdir): Likewise.
1332 (cleanup_compile_instance): Likewise.
1333 (cleanup_unlink_file): Likewise.
1334 * completer.c (free_completion_tracker): Likewise.
1335 * corelow.c (add_to_spuid_list): Likewise.
1336 * cp-namespace.c (reset_directive_searched): Likewise.
1337 * cp-support.c (reset_directive_searched): Likewise.
1338 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1339 (cris_frame_unwind_cache): Likewise.
1340 * d-lang.c (builtin_d_type): Likewise.
1341 * d-namespace.c (reset_directive_searched): Likewise.
1342 * dbxread.c (dbx_free_symfile_info): Likewise.
1343 (do_free_bincl_list_cleanup): Likewise.
1344 * disasm.c (hash_dis_line_entry): Likewise.
1345 (eq_dis_line_entry): Likewise.
1346 (dis_asm_print_address): Likewise.
1347 (fprintf_disasm): Likewise.
1348 (do_ui_file_delete): Likewise.
1349 * doublest.c (convert_floatformat_to_doublest): Likewise.
1350 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1351 (dummy_frame_prev_register): Likewise.
1352 (dummy_frame_this_id): Likewise.
1353 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1354 (cache_eq): Likewise.
1355 (cache_find): Likewise.
1356 (tailcall_frame_this_id): Likewise.
1357 (dwarf2_tailcall_prev_register_first): Likewise.
1358 (tailcall_frame_prev_register): Likewise.
1359 (tailcall_frame_dealloc_cache): Likewise.
1360 (tailcall_frame_prev_arch): Likewise.
1361 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1362 (dwarf2_frame_set_init_reg): Likewise.
1363 (dwarf2_frame_init_reg): Likewise.
1364 (dwarf2_frame_set_signal_frame_p): Likewise.
1365 (dwarf2_frame_signal_frame_p): Likewise.
1366 (dwarf2_frame_set_adjust_regnum): Likewise.
1367 (dwarf2_frame_adjust_regnum): Likewise.
1368 (clear_pointer_cleanup): Likewise.
1369 (dwarf2_frame_cache): Likewise.
1370 (find_cie): Likewise.
1371 (dwarf2_frame_find_fde): Likewise.
1372 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1373 (free_dwarf_expr_context_cleanup): Likewise.
1374 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1375 (locexpr_get_frame_base): Likewise.
1376 (loclist_find_frame_base_location): Likewise.
1377 (loclist_get_frame_base): Likewise.
1378 (dwarf_expr_dwarf_call): Likewise.
1379 (dwarf_expr_get_base_type): Likewise.
1380 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1381 (dwarf_expr_get_obj_addr): Likewise.
1382 (entry_data_value_coerce_ref): Likewise.
1383 (entry_data_value_copy_closure): Likewise.
1384 (entry_data_value_free_closure): Likewise.
1385 (get_frame_address_in_block_wrapper): Likewise.
1386 (dwarf2_evaluate_property): Likewise.
1387 (dwarf2_compile_property_to_c): Likewise.
1388 (needs_frame_read_addr_from_reg): Likewise.
1389 (needs_frame_get_reg_value): Likewise.
1390 (needs_frame_frame_base): Likewise.
1391 (needs_frame_frame_cfa): Likewise.
1392 (needs_frame_tls_address): Likewise.
1393 (needs_frame_dwarf_call): Likewise.
1394 (needs_dwarf_reg_entry_value): Likewise.
1395 (get_ax_pc): Likewise.
1396 (locexpr_read_variable): Likewise.
1397 (locexpr_read_variable_at_entry): Likewise.
1398 (locexpr_read_needs_frame): Likewise.
1399 (locexpr_describe_location): Likewise.
1400 (locexpr_tracepoint_var_ref): Likewise.
1401 (locexpr_generate_c_location): Likewise.
1402 (loclist_read_variable): Likewise.
1403 (loclist_read_variable_at_entry): Likewise.
1404 (loclist_describe_location): Likewise.
1405 (loclist_tracepoint_var_ref): Likewise.
1406 (loclist_generate_c_location): Likewise.
1407 * dwarf2read.c (line_header_hash_voidp): Likewise.
1408 (line_header_eq_voidp): Likewise.
1409 (dwarf2_has_info): Likewise.
1410 (dwarf2_get_section_info): Likewise.
1411 (locate_dwz_sections): Likewise.
1412 (hash_file_name_entry): Likewise.
1413 (eq_file_name_entry): Likewise.
1414 (delete_file_name_entry): Likewise.
1415 (dw2_setup): Likewise.
1416 (dw2_get_file_names_reader): Likewise.
1417 (dw2_find_pc_sect_compunit_symtab): Likewise.
1418 (hash_signatured_type): Likewise.
1419 (eq_signatured_type): Likewise.
1420 (add_signatured_type_cu_to_table): Likewise.
1421 (create_debug_types_hash_table): Likewise.
1422 (lookup_dwo_signatured_type): Likewise.
1423 (lookup_dwp_signatured_type): Likewise.
1424 (lookup_signatured_type): Likewise.
1425 (hash_type_unit_group): Likewise.
1426 (eq_type_unit_group): Likewise.
1427 (get_type_unit_group): Likewise.
1428 (process_psymtab_comp_unit_reader): Likewise.
1429 (sort_tu_by_abbrev_offset): Likewise.
1430 (process_skeletonless_type_unit): Likewise.
1431 (psymtabs_addrmap_cleanup): Likewise.
1432 (dwarf2_read_symtab): Likewise.
1433 (psymtab_to_symtab_1): Likewise.
1434 (die_hash): Likewise.
1436 (load_full_comp_unit_reader): Likewise.
1437 (reset_die_in_process): Likewise.
1438 (free_cu_line_header): Likewise.
1439 (handle_DW_AT_stmt_list): Likewise.
1440 (hash_dwo_file): Likewise.
1441 (eq_dwo_file): Likewise.
1442 (hash_dwo_unit): Likewise.
1443 (eq_dwo_unit): Likewise.
1444 (create_dwo_cu_reader): Likewise.
1445 (create_dwo_unit_in_dwp_v1): Likewise.
1446 (create_dwo_unit_in_dwp_v2): Likewise.
1447 (lookup_dwo_unit_in_dwp): Likewise.
1448 (dwarf2_locate_dwo_sections): Likewise.
1449 (dwarf2_locate_common_dwp_sections): Likewise.
1450 (dwarf2_locate_v2_dwp_sections): Likewise.
1451 (hash_dwp_loaded_cutus): Likewise.
1452 (eq_dwp_loaded_cutus): Likewise.
1453 (lookup_dwo_cutu): Likewise.
1454 (abbrev_table_free_cleanup): Likewise.
1455 (dwarf2_free_abbrev_table): Likewise.
1456 (find_partial_die_in_comp_unit): Likewise.
1457 (free_line_header_voidp): Likewise.
1458 (follow_die_offset): Likewise.
1459 (follow_die_sig_1): Likewise.
1460 (free_heap_comp_unit): Likewise.
1461 (free_stack_comp_unit): Likewise.
1462 (dwarf2_free_objfile): Likewise.
1463 (per_cu_offset_and_type_hash): Likewise.
1464 (per_cu_offset_and_type_eq): Likewise.
1465 (get_die_type_at_offset): Likewise.
1466 (partial_die_hash): Likewise.
1467 (partial_die_eq): Likewise.
1468 (dwarf2_per_objfile_free): Likewise.
1469 (hash_strtab_entry): Likewise.
1470 (eq_strtab_entry): Likewise.
1471 (add_string): Likewise.
1472 (hash_symtab_entry): Likewise.
1473 (eq_symtab_entry): Likewise.
1474 (delete_symtab_entry): Likewise.
1475 (cleanup_mapped_symtab): Likewise.
1476 (add_indices_to_cpool): Likewise.
1477 (hash_psymtab_cu_index): Likewise.
1478 (eq_psymtab_cu_index): Likewise.
1479 (add_address_entry_worker): Likewise.
1480 (unlink_if_set): Likewise.
1481 (write_one_signatured_type): Likewise.
1482 (save_gdb_index_command): Likewise.
1483 * elfread.c (elf_symtab_read): Likewise.
1484 (elf_gnu_ifunc_cache_hash): Likewise.
1485 (elf_gnu_ifunc_cache_eq): Likewise.
1486 (elf_gnu_ifunc_record_cache): Likewise.
1487 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1488 (elf_get_probes): Likewise.
1489 (probe_key_free): Likewise.
1490 * f-lang.c (builtin_f_type): Likewise.
1491 * frame-base.c (frame_base_append_sniffer): Likewise.
1492 (frame_base_set_default): Likewise.
1493 (frame_base_find_by_frame): Likewise.
1494 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1495 (frame_unwind_append_unwinder): Likewise.
1496 (frame_unwind_find_by_frame): Likewise.
1497 * frame.c (frame_addr_hash): Likewise.
1498 (frame_addr_hash_eq): Likewise.
1499 (frame_stash_find): Likewise.
1500 (do_frame_register_read): Likewise.
1501 (unwind_to_current_frame): Likewise.
1502 (frame_cleanup_after_sniffer): Likewise.
1503 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1504 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1505 * ft32-tdep.c (ft32_frame_cache): Likewise.
1506 * gcore.c (do_bfd_delete_cleanup): Likewise.
1507 (gcore_create_callback): Likewise.
1508 * gdb_bfd.c (hash_bfd): Likewise.
1510 (gdb_bfd_open): Likewise.
1511 (free_one_bfd_section): Likewise.
1512 (gdb_bfd_ref): Likewise.
1513 (gdb_bfd_unref): Likewise.
1514 (get_section_descriptor): Likewise.
1515 (gdb_bfd_map_section): Likewise.
1516 (gdb_bfd_crc): Likewise.
1517 (gdb_bfd_mark_parent): Likewise.
1518 (gdb_bfd_record_inclusion): Likewise.
1519 (gdb_bfd_requires_relocations): Likewise.
1520 (print_one_bfd): Likewise.
1521 * gdbtypes.c (type_pair_hash): Likewise.
1522 (type_pair_eq): Likewise.
1523 (builtin_type): Likewise.
1524 (objfile_type): Likewise.
1525 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1526 (vtable_address_point_offset): Likewise.
1527 (gnuv3_get_vtable): Likewise.
1528 (hash_value_and_voffset): Likewise.
1529 (eq_value_and_voffset): Likewise.
1530 (compare_value_and_voffset): Likewise.
1531 (compute_vtable_size): Likewise.
1532 (gnuv3_get_typeid_type): Likewise.
1533 * go-lang.c (builtin_go_type): Likewise.
1534 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1535 (bkscm_eq_block_smob): Likewise.
1536 (bkscm_objfile_block_map): Likewise.
1537 (bkscm_del_objfile_blocks): Likewise.
1538 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1539 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1540 (gdbscm_disasm_print_address): Likewise.
1541 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1542 (frscm_eq_frame_smob): Likewise.
1543 (frscm_inferior_frame_map): Likewise.
1544 (frscm_del_inferior_frames): Likewise.
1545 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1546 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1547 (ofscm_objfile_smob_from_objfile): Likewise.
1548 * guile/scm-ports.c (ioscm_write): Likewise.
1549 (ioscm_file_port_delete): Likewise.
1550 (ioscm_file_port_rewind): Likewise.
1551 (ioscm_file_port_put): Likewise.
1552 (ioscm_file_port_write): Likewise.
1553 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1554 (psscm_pspace_smob_from_pspace): Likewise.
1555 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1556 (scscm_recording_unwind_handler): Likewise.
1557 (gdbscm_with_catch): Likewise.
1558 (scscm_call_0_body): Likewise.
1559 (scscm_call_1_body): Likewise.
1560 (scscm_call_2_body): Likewise.
1561 (scscm_call_3_body): Likewise.
1562 (scscm_call_4_body): Likewise.
1563 (scscm_apply_1_body): Likewise.
1564 (scscm_eval_scheme_string): Likewise.
1565 (gdbscm_safe_eval_string): Likewise.
1566 (scscm_source_scheme_script): Likewise.
1567 (gdbscm_safe_source_script): Likewise.
1568 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1569 (gdbscm_call_scm_from_stringn): Likewise.
1570 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1571 (syscm_eq_symbol_smob): Likewise.
1572 (syscm_get_symbol_map): Likewise.
1573 (syscm_del_objfile_symbols): Likewise.
1574 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1575 (stscm_eq_symtab_smob): Likewise.
1576 (stscm_objfile_symtab_map): Likewise.
1577 (stscm_del_objfile_symtabs): Likewise.
1578 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1579 (tyscm_eq_type_smob): Likewise.
1580 (tyscm_type_map): Likewise.
1581 (tyscm_copy_type_recursive): Likewise.
1582 (save_objfile_types): Likewise.
1583 * guile/scm-utils.c (extract_arg): Likewise.
1584 * h8300-tdep.c (h8300_frame_cache): Likewise.
1585 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1586 * hppa-tdep.c (compare_unwind_entries): Likewise.
1587 (find_unwind_entry): Likewise.
1588 (hppa_frame_cache): Likewise.
1589 (hppa_stub_frame_unwind_cache): Likewise.
1590 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1591 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1592 (hppaobsd_supply_fpregset): Likewise.
1593 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1594 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1595 * i386-tdep.c (i386_frame_cache): Likewise.
1596 (i386_epilogue_frame_cache): Likewise.
1597 (i386_sigtramp_frame_cache): Likewise.
1598 (i386_supply_gregset): Likewise.
1599 (i386_collect_gregset): Likewise.
1600 (i386_gdbarch_init): Likewise.
1601 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1602 (i386obsd_trapframe_cache): Likewise.
1603 * i387-tdep.c (i387_supply_fsave): Likewise.
1604 (i387_collect_fsave): Likewise.
1605 (i387_supply_fxsave): Likewise.
1606 (i387_collect_fxsave): Likewise.
1607 (i387_supply_xsave): Likewise.
1608 (i387_collect_xsave): Likewise.
1609 * ia64-tdep.c (ia64_frame_cache): Likewise.
1610 (ia64_sigtramp_frame_cache): Likewise.
1611 * infcmd.c (attach_command_continuation): Likewise.
1612 (attach_command_continuation_free_args): Likewise.
1613 * inferior.c (restore_inferior): Likewise.
1614 (delete_thread_of_inferior): Likewise.
1615 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1616 (get_inflow_inferior_data): Likewise.
1617 (inflow_inferior_exit): Likewise.
1618 * infrun.c (displaced_step_clear_cleanup): Likewise.
1619 (restore_current_uiout_cleanup): Likewise.
1620 (release_stop_context_cleanup): Likewise.
1621 (do_restore_infcall_suspend_state_cleanup): Likewise.
1622 (do_restore_infcall_control_state_cleanup): Likewise.
1623 (restore_inferior_ptid): Likewise.
1624 * inline-frame.c (block_starting_point_at): Likewise.
1625 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1626 * jit.c (get_jit_objfile_data): Likewise.
1627 (get_jit_program_space_data): Likewise.
1628 (jit_object_close_impl): Likewise.
1629 (jit_find_objf_with_entry_addr): Likewise.
1630 (jit_breakpoint_deleted): Likewise.
1631 (jit_unwind_reg_set_impl): Likewise.
1632 (jit_unwind_reg_get_impl): Likewise.
1633 (jit_dealloc_cache): Likewise.
1634 (jit_frame_sniffer): Likewise.
1635 (jit_frame_prev_register): Likewise.
1636 (jit_prepend_unwinder): Likewise.
1637 (jit_inferior_exit_hook): Likewise.
1638 (free_objfile_data): Likewise.
1639 * jv-lang.c (jv_per_objfile_free): Likewise.
1640 (get_dynamics_objfile): Likewise.
1641 (get_java_class_symtab): Likewise.
1642 (builtin_java_type): Likewise.
1643 * language.c (language_string_char_type): Likewise.
1644 (language_bool_type): Likewise.
1645 (language_lookup_primitive_type): Likewise.
1646 (language_lookup_primitive_type_as_symbol): Likewise.
1647 * linespec.c (hash_address_entry): Likewise.
1648 (eq_address_entry): Likewise.
1649 (iterate_inline_only): Likewise.
1650 (iterate_name_matcher): Likewise.
1651 (decode_line_2_compare_items): Likewise.
1652 (collect_one_symbol): Likewise.
1653 (compare_symbols): Likewise.
1654 (compare_msymbols): Likewise.
1655 (add_symtabs_to_list): Likewise.
1656 (collect_symbols): Likewise.
1657 (compare_msyms): Likewise.
1658 (add_minsym): Likewise.
1659 (cleanup_linespec_result): Likewise.
1660 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1661 * linux-nat.c (delete_lwp_cleanup): Likewise.
1662 (count_events_callback): Likewise.
1663 (select_event_lwp_callback): Likewise.
1664 (resume_stopped_resumed_lwps): Likewise.
1665 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1666 (invalidate_linux_cache_inf): Likewise.
1667 (get_linux_inferior_data): Likewise.
1668 (linux_find_memory_regions_thunk): Likewise.
1669 (linux_make_mappings_callback): Likewise.
1670 (linux_corefile_thread_callback): Likewise.
1671 (find_mapping_size): Likewise.
1672 * linux-thread-db.c (find_new_threads_callback): Likewise.
1673 * lm32-tdep.c (lm32_frame_cache): Likewise.
1674 * m2-lang.c (builtin_m2_type): Likewise.
1675 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1676 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1677 (m32r_linux_supply_gregset): Likewise.
1678 (m32r_linux_collect_gregset): Likewise.
1679 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1680 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1681 * m68k-tdep.c (m68k_frame_cache): Likewise.
1682 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1683 (m68kbsd_supply_gregset): Likewise.
1684 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1685 * m88k-tdep.c (m88k_frame_cache): Likewise.
1686 (m88k_supply_gregset): Likewise.
1688 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1690 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1691 to allocation result assignment.
1692 * ada-exp.y (write_object_renaming): Likewise.
1693 (write_ambiguous_var): Likewise.
1694 (ada_nget_field_index): Likewise.
1695 (write_var_or_type): Likewise.
1696 * ada-lang.c (ada_decode_symbol): Likewise.
1697 (ada_value_assign): Likewise.
1698 (value_pointer): Likewise.
1699 (cache_symbol): Likewise.
1700 (add_nonlocal_symbols): Likewise.
1701 (ada_name_for_lookup): Likewise.
1702 (symbol_completion_add): Likewise.
1703 (ada_to_fixed_type_1): Likewise.
1704 (ada_get_next_arg): Likewise.
1705 (defns_collected): Likewise.
1706 * ada-lex.l (processId): Likewise.
1707 (processString): Likewise.
1708 * ada-tasks.c (read_known_tasks_array): Likewise.
1709 (read_known_tasks_list): Likewise.
1710 * ada-typeprint.c (decoded_type_name): Likewise.
1711 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1712 * amd64-tdep.c (amd64_push_arguments): Likewise.
1713 (amd64_displaced_step_copy_insn): Likewise.
1714 (amd64_classify_insn_at): Likewise.
1715 (amd64_relocate_instruction): Likewise.
1716 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1717 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1718 (initialize_current_architecture): Likewise.
1719 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1720 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1721 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1722 (arm_push_dummy_call): Likewise.
1723 (extend_buffer_earlier): Likewise.
1724 (arm_adjust_breakpoint_address): Likewise.
1725 (arm_skip_stub): Likewise.
1726 * auto-load.c (filename_is_in_pattern): Likewise.
1727 (maybe_add_script_file): Likewise.
1728 (maybe_add_script_text): Likewise.
1729 (auto_load_objfile_script_1): Likewise.
1730 * auxv.c (ld_so_xfer_auxv): Likewise.
1731 * ax-general.c (new_agent_expr): Likewise.
1732 (grow_expr): Likewise.
1733 (ax_reg_mask): Likewise.
1734 * bcache.c (bcache_full): Likewise.
1735 * breakpoint.c (program_breakpoint_here_p): Likewise.
1736 * btrace.c (parse_xml_raw): Likewise.
1737 * build-id.c (build_id_to_debug_bfd): Likewise.
1738 * buildsym.c (end_symtab_with_blockvector): Likewise.
1739 * c-exp.y (string_exp): Likewise.
1740 (qualified_name): Likewise.
1741 (write_destructor_name): Likewise.
1742 (operator_stoken): Likewise.
1743 (parse_number): Likewise.
1744 (scan_macro_expansion): Likewise.
1746 (c_print_token): Likewise.
1747 * c-lang.c (c_get_string): Likewise.
1748 (emit_numeric_character): Likewise.
1749 * charset.c (wchar_iterate): Likewise.
1750 * cli/cli-cmds.c (complete_command): Likewise.
1751 (make_command): Likewise.
1752 * cli/cli-dump.c (restore_section_callback): Likewise.
1753 (restore_binary_file): Likewise.
1754 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1755 * cli/cli-script.c (execute_control_command): Likewise.
1756 * cli/cli-setshow.c (do_set_command): Likewise.
1757 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1758 (read_pe_exported_syms): Likewise.
1759 * coffread.c (coff_read_struct_type): Likewise.
1760 (coff_read_enum_type): Likewise.
1761 * common/btrace-common.c (btrace_data_append): Likewise.
1762 * common/buffer.c (buffer_grow): Likewise.
1763 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1764 * common/format.c (parse_format_string): Likewise.
1765 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1766 * common/xml-utils.c (xml_escape_text): Likewise.
1767 * compile/compile-object-load.c (copy_sections): Likewise.
1768 (compile_object_load): Likewise.
1769 * compile/compile-object-run.c (compile_object_run): Likewise.
1770 * completer.c (filename_completer): Likewise.
1771 * corefile.c (read_memory_typed_address): Likewise.
1772 (write_memory_unsigned_integer): Likewise.
1773 (write_memory_signed_integer): Likewise.
1774 (complete_set_gnutarget): Likewise.
1775 * corelow.c (get_core_register_section): Likewise.
1776 * cp-name-parser.y (d_grab): Likewise.
1777 (allocate_info): Likewise.
1778 (cp_new_demangle_parse_info): Likewise.
1779 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1780 (cp_lookup_symbol_in_namespace): Likewise.
1781 (lookup_namespace_scope): Likewise.
1782 (find_symbol_in_baseclass): Likewise.
1783 (cp_lookup_nested_symbol): Likewise.
1784 (cp_lookup_transparent_type_loop): Likewise.
1785 * cp-support.c (copy_string_to_obstack): Likewise.
1786 (make_symbol_overload_list): Likewise.
1787 (make_symbol_overload_list_namespace): Likewise.
1788 (make_symbol_overload_list_adl_namespace): Likewise.
1789 (first_component_command): Likewise.
1790 * cp-valprint.c (cp_print_value): Likewise.
1791 * ctf.c (ctf_xfer_partial): Likewise.
1792 * d-exp.y (StringExp): Likewise.
1793 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1794 (lookup_module_scope): Likewise.
1795 (find_symbol_in_baseclass): Likewise.
1796 (d_lookup_nested_symbol): Likewise.
1797 * dbxread.c (find_stab_function_addr): Likewise.
1798 (read_dbx_symtab): Likewise.
1799 (dbx_end_psymtab): Likewise.
1800 (cp_set_block_scope): Likewise.
1801 * dcache.c (dcache_alloc): Likewise.
1802 * demangle.c (_initialize_demangler): Likewise.
1803 * dicos-tdep.c (dicos_load_module_p): Likewise.
1804 * dictionary.c (dict_create_hashed_expandable): Likewise.
1805 (dict_create_linear_expandable): Likewise.
1806 (expand_hashtable): Likewise.
1807 (add_symbol_linear_expandable): Likewise.
1808 * dwarf2-frame.c (add_cie): Likewise.
1809 (add_fde): Likewise.
1810 (dwarf2_build_frame_info): Likewise.
1811 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1812 (dwarf_expr_fetch_address): Likewise.
1813 (add_piece): Likewise.
1814 (execute_stack_op): Likewise.
1815 * dwarf2loc.c (chain_candidate): Likewise.
1816 (dwarf_entry_parameter_to_value): Likewise.
1817 (read_pieced_value): Likewise.
1818 (write_pieced_value): Likewise.
1819 * dwarf2read.c (dwarf2_read_section): Likewise.
1820 (add_type_unit): Likewise.
1821 (read_comp_units_from_section): Likewise.
1822 (fixup_go_packaging): Likewise.
1823 (dwarf2_compute_name): Likewise.
1824 (dwarf2_physname): Likewise.
1825 (create_dwo_unit_in_dwp_v1): Likewise.
1826 (create_dwo_unit_in_dwp_v2): Likewise.
1827 (read_func_scope): Likewise.
1828 (read_call_site_scope): Likewise.
1829 (dwarf2_attach_fields_to_type): Likewise.
1830 (process_structure_scope): Likewise.
1831 (mark_common_block_symbol_computed): Likewise.
1832 (read_common_block): Likewise.
1833 (abbrev_table_read_table): Likewise.
1834 (guess_partial_die_structure_name): Likewise.
1835 (fixup_partial_die): Likewise.
1836 (add_file_name): Likewise.
1837 (dwarf2_const_value_data): Likewise.
1838 (dwarf2_const_value_attr): Likewise.
1839 (build_error_marker_type): Likewise.
1840 (guess_full_die_structure_name): Likewise.
1841 (anonymous_struct_prefix): Likewise.
1842 (typename_concat): Likewise.
1843 (dwarf2_canonicalize_name): Likewise.
1844 (dwarf2_name): Likewise.
1845 (write_constant_as_bytes): Likewise.
1846 (dwarf2_fetch_constant_bytes): Likewise.
1847 (copy_string): Likewise.
1848 (parse_macro_definition): Likewise.
1849 * elfread.c (elf_symfile_segments): Likewise.
1850 (elf_rel_plt_read): Likewise.
1851 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1852 (elf_gnu_ifunc_resolve_by_got): Likewise.
1853 (elf_read_minimal_symbols): Likewise.
1854 (elf_gnu_ifunc_record_cache): Likewise.
1855 * event-top.c (top_level_prompt): Likewise.
1856 (command_line_handler): Likewise.
1857 * exec.c (resize_section_table): Likewise.
1858 * expprint.c (print_subexp_standard): Likewise.
1859 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1860 * findcmd.c (parse_find_args): Likewise.
1861 * findvar.c (address_from_register): Likewise.
1862 * frame.c (get_prev_frame_always): Likewise.
1863 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1864 (get_section_descriptor): Likewise.
1865 * gdb_obstack.c (obconcat): Likewise.
1866 (obstack_strdup): Likewise.
1867 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1868 (create_set_type): Likewise.
1869 (lookup_unsigned_typename): Likewise.
1870 (lookup_signed_typename): Likewise.
1871 (resolve_dynamic_union): Likewise.
1872 (resolve_dynamic_struct): Likewise.
1873 (add_dyn_prop): Likewise.
1874 (copy_dynamic_prop_list): Likewise.
1875 (arch_flags_type): Likewise.
1876 (append_composite_type_field_raw): Likewise.
1877 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1878 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1879 * go-exp.y (string_exp): Likewise.
1880 * go-lang.c (go_demangle): Likewise.
1881 * guile/guile.c (compute_scheme_string): Likewise.
1882 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1883 (gdbscm_canonicalize_command_name): Likewise.
1884 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1885 (ioscm_init_memory_port): Likewise.
1886 (ioscm_reinit_memory_port): Likewise.
1887 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1888 (gdbscm_gc_dup_argv): Likewise.
1889 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1890 * hppa-tdep.c (internalize_unwinds): Likewise.
1891 (read_unwind_info): Likewise.
1892 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1893 (windows_core_xfer_shared_libraries): Likewise.
1894 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1895 (i386_stap_parse_special_token_triplet): Likewise.
1896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1897 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1898 * inf-child.c (inf_child_fileio_readlink): Likewise.
1899 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1900 (inf_ptrace_store_register): Likewise.
1901 * infrun.c (follow_exec): Likewise.
1902 (displaced_step_prepare_throw): Likewise.
1903 (save_stop_context): Likewise.
1904 (save_infcall_suspend_state): Likewise.
1905 * jit.c (jit_read_descriptor): Likewise.
1906 (jit_read_code_entry): Likewise.
1907 (jit_symtab_line_mapping_add_impl): Likewise.
1908 (finalize_symtab): Likewise.
1909 (jit_unwind_reg_get_impl): Likewise.
1910 * jv-exp.y (QualifiedName): Likewise.
1911 * jv-lang.c (get_java_utf8_name): Likewise.
1912 (type_from_class): Likewise.
1913 (java_demangle_type_signature): Likewise.
1914 (java_class_name_from_physname): Likewise.
1915 * jv-typeprint.c (java_type_print_base): Likewise.
1916 * jv-valprint.c (java_value_print): Likewise.
1917 * language.c (add_language): Likewise.
1918 * linespec.c (add_sal_to_sals_basic): Likewise.
1919 (add_sal_to_sals): Likewise.
1920 (decode_objc): Likewise.
1921 (find_linespec_symbols): Likewise.
1922 * linux-fork.c (fork_save_infrun_state): Likewise.
1923 * linux-nat.c (linux_nat_detach): Likewise.
1924 (linux_nat_fileio_readlink): Likewise.
1925 * linux-record.c (record_linux_sockaddr): Likewise.
1926 (record_linux_msghdr): Likewise.
1928 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1929 (linux_collect_regset_section_cb): Likewise.
1930 (linux_get_siginfo_data): Likewise.
1931 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1932 (try_thread_db_load_from_dir): Likewise.
1933 (thread_db_load_search): Likewise.
1934 (info_auto_load_libthread_db): Likewise.
1935 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1936 (m32c_m16c_pointer_to_address): Likewise.
1937 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1938 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1939 * machoread.c (macho_check_dsym): Likewise.
1940 * macroexp.c (resize_buffer): Likewise.
1941 (gather_arguments): Likewise.
1942 (maybe_expand): Likewise.
1943 * macrotab.c (new_macro_key): Likewise.
1944 (new_source_file): Likewise.
1945 (new_macro_definition): Likewise.
1946 * mdebugread.c (parse_symbol): Likewise.
1947 (parse_type): Likewise.
1948 (parse_partial_symbols): Likewise.
1949 (psymtab_to_symtab_1): Likewise.
1950 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1951 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1952 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1953 (mi_cmd_data_read_memory_bytes): Likewise.
1954 (mi_cmd_data_write_memory_bytes): Likewise.
1955 (mi_cmd_trace_frame_collected): Likewise.
1956 * mi/mi-parse.c (mi_parse_argv): Likewise.
1957 (mi_parse): Likewise.
1958 * minidebug.c (lzma_open): Likewise.
1959 (lzma_pread): Likewise.
1960 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1961 (mips_print_fp_register): Likewise.
1962 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1963 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1964 * mt-tdep.c (mt_register_name): Likewise.
1965 (mt_registers_info): Likewise.
1966 (mt_push_dummy_call): Likewise.
1967 * namespace.c (add_using_directive): Likewise.
1968 * nat/linux-btrace.c (perf_event_read): Likewise.
1969 (linux_enable_bts): Likewise.
1970 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1971 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1972 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1973 (nto_parse_redirection): Likewise.
1974 * objc-lang.c (objc_demangle): Likewise.
1975 (find_methods): Likewise.
1976 * objfiles.c (get_objfile_bfd_data): Likewise.
1977 (set_objfile_main_name): Likewise.
1978 (allocate_objfile): Likewise.
1979 (objfile_relocate): Likewise.
1980 (update_section_map): Likewise.
1981 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1982 * p-exp.y (exp): Likewise.
1984 * p-valprint.c (pascal_object_print_value): Likewise.
1985 * parse.c (initialize_expout): Likewise.
1986 (mark_completion_tag): Likewise.
1987 (copy_name): Likewise.
1988 (parse_float): Likewise.
1989 (type_stack_reserve): Likewise.
1990 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1991 (ppu2spu_prev_register): Likewise.
1992 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1993 * printcmd.c (printf_wide_c_string): Likewise.
1994 (printf_pointer): Likewise.
1995 * probe.c (parse_probes): Likewise.
1996 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1997 (cmdpy_init): Likewise.
1998 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1999 * python/py-symtab.c (set_sal): Likewise.
2000 * python/py-unwind.c (pyuw_sniffer): Likewise.
2001 * python/python.c (python_interactive_command): Likewise.
2002 (compute_python_string): Likewise.
2003 * ravenscar-thread.c (get_running_thread_id): Likewise.
2004 * record-full.c (record_full_exec_insn): Likewise.
2005 (record_full_core_open_1): Likewise.
2006 * regcache.c (regcache_raw_read_signed): Likewise.
2007 (regcache_raw_read_unsigned): Likewise.
2008 (regcache_cooked_read_signed): Likewise.
2009 (regcache_cooked_read_unsigned): Likewise.
2010 * remote-fileio.c (remote_fileio_func_open): Likewise.
2011 (remote_fileio_func_rename): Likewise.
2012 (remote_fileio_func_unlink): Likewise.
2013 (remote_fileio_func_stat): Likewise.
2014 (remote_fileio_func_system): Likewise.
2015 * remote-mips.c (mips_xfer_memory): Likewise.
2016 (mips_load_srec): Likewise.
2017 (pmon_end_download): Likewise.
2018 * remote.c (new_remote_state): Likewise.
2019 (map_regcache_remote_table): Likewise.
2020 (remote_register_number_and_offset): Likewise.
2021 (init_remote_state): Likewise.
2022 (get_memory_packet_size): Likewise.
2023 (remote_pass_signals): Likewise.
2024 (remote_program_signals): Likewise.
2025 (remote_start_remote): Likewise.
2026 (remote_check_symbols): Likewise.
2027 (remote_query_supported): Likewise.
2028 (extended_remote_attach): Likewise.
2029 (process_g_packet): Likewise.
2030 (store_registers_using_G): Likewise.
2031 (putpkt_binary): Likewise.
2032 (read_frame): Likewise.
2033 (compare_sections_command): Likewise.
2034 (remote_hostio_pread): Likewise.
2035 (remote_hostio_readlink): Likewise.
2036 (remote_file_put): Likewise.
2037 (remote_file_get): Likewise.
2038 (remote_pid_to_exec_file): Likewise.
2039 (_initialize_remote): Likewise.
2040 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2041 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2042 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2043 (bfd_uses_spe_extensions): Likewise.
2044 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2045 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2046 * solib-dsbt.c (decode_loadmap): Likewise.
2047 (fetch_loadmap): Likewise.
2048 (scan_dyntag): Likewise.
2049 (enable_break): Likewise.
2050 (dsbt_relocate_main_executable): Likewise.
2051 * solib-frv.c (fetch_loadmap): Likewise.
2052 (enable_break2): Likewise.
2053 (frv_relocate_main_executable): Likewise.
2054 * solib-spu.c (spu_relocate_main_executable): Likewise.
2055 (spu_bfd_open): Likewise.
2056 * solib-svr4.c (lm_info_read): Likewise.
2057 (read_program_header): Likewise.
2058 (find_program_interpreter): Likewise.
2059 (scan_dyntag): Likewise.
2060 (elf_locate_base): Likewise.
2061 (open_symbol_file_object): Likewise.
2062 (read_program_headers_from_bfd): Likewise.
2063 (svr4_relocate_main_executable): Likewise.
2064 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2065 * solib.c (solib_find_1): Likewise.
2066 (exec_file_find): Likewise.
2067 (solib_find): Likewise.
2068 * source.c (openp): Likewise.
2069 (print_source_lines_base): Likewise.
2070 (forward_search_command): Likewise.
2071 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2072 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2073 (spu_get_overlay_table): Likewise.
2074 * stabsread.c (patch_block_stabs): Likewise.
2075 (define_symbol): Likewise.
2077 (read_member_functions): Likewise.
2078 (read_one_struct_field): Likewise.
2079 (read_enum_type): Likewise.
2080 (common_block_start): Likewise.
2081 * stack.c (read_frame_arg): Likewise.
2082 (backtrace_command): Likewise.
2083 * stap-probe.c (stap_parse_register_operand): Likewise.
2084 * symfile.c (syms_from_objfile_1): Likewise.
2085 (find_separate_debug_file): Likewise.
2086 (load_command): Likewise.
2087 (load_progress): Likewise.
2088 (load_section_callback): Likewise.
2089 (reread_symbols): Likewise.
2090 (add_filename_language): Likewise.
2091 (allocate_compunit_symtab): Likewise.
2092 (read_target_long_array): Likewise.
2093 (simple_read_overlay_table): Likewise.
2094 * symtab.c (symbol_set_names): Likewise.
2095 (resize_symbol_cache): Likewise.
2096 (rbreak_command): Likewise.
2097 (completion_list_add_name): Likewise.
2098 (completion_list_objc_symbol): Likewise.
2099 (add_filename_to_list): Likewise.
2100 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2101 * target-memory.c (target_write_memory_blocks): Likewise.
2102 * target.c (target_read_string): Likewise.
2103 (read_whatever_is_readable): Likewise.
2104 (target_read_alloc_1): Likewise.
2105 (simple_search_memory): Likewise.
2106 (target_fileio_read_alloc_1): Likewise.
2107 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2108 * top.c (command_line_input): Likewise.
2109 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2110 * tracefile.c (tracefile_fetch_registers): Likewise.
2111 * tracepoint.c (add_memrange): Likewise.
2112 (init_collection_list): Likewise.
2113 (add_aexpr): Likewise.
2114 (trace_dump_actions): Likewise.
2115 (parse_trace_status): Likewise.
2116 (parse_tracepoint_definition): Likewise.
2117 (parse_tsv_definition): Likewise.
2118 (parse_static_tracepoint_marker_definition): Likewise.
2119 * tui/tui-file.c (tui_sfileopen): Likewise.
2120 (tui_file_adjust_strbuf): Likewise.
2121 * tui/tui-io.c (tui_expand_tabs): Likewise.
2122 * tui/tui-source.c (tui_set_source_content): Likewise.
2123 * typeprint.c (find_global_typedef): Likewise.
2124 * ui-file.c (do_ui_file_xstrdup): Likewise.
2125 (ui_file_obsavestring): Likewise.
2126 (mem_file_write): Likewise.
2127 * utils.c (make_hex_string): Likewise.
2128 (get_regcomp_error): Likewise.
2129 (puts_filtered_tabular): Likewise.
2130 (gdb_realpath_keepfile): Likewise.
2131 (ldirname): Likewise.
2132 (gdb_bfd_errmsg): Likewise.
2133 (substitute_path_component): Likewise.
2134 * valops.c (search_struct_method): Likewise.
2135 (find_oload_champ_namespace_loop): Likewise.
2136 * valprint.c (print_decimal_chars): Likewise.
2137 (read_string): Likewise.
2138 (generic_emit_char): Likewise.
2139 * varobj.c (varobj_delete): Likewise.
2140 (varobj_value_get_print_value): Likewise.
2141 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2142 * windows-tdep.c (display_one_tib): Likewise.
2143 * xcoffread.c (read_xcoff_symtab): Likewise.
2144 (process_xcoff_symbol): Likewise.
2145 (swap_sym): Likewise.
2146 (scan_xcoff_symtab): Likewise.
2147 (xcoff_initial_scan): Likewise.
2148 * xml-support.c (gdb_xml_end_element): Likewise.
2149 (xml_process_xincludes): Likewise.
2150 (xml_fetch_content_from_file): Likewise.
2151 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2152 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2154 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2156 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2157 instead of builtin_func_ptr.
2158 (ft32_pointer_to_address): New function.
2159 (ft32_address_class_type_flags): New function.
2160 (ft32_address_class_type_flags_to_name): New function.
2161 (ft32_address_class_name_to_type_flags): New function.
2162 (ft32_gdbarch_init): Set tdep->pc_type. Call
2163 set_gdbarch_pointer_to_address,
2164 set_gdbarch_address_class_type_flags
2165 set_gdbarch_address_class_name_to_type_flags,
2166 and set_gdbarch_address_class_type_flags_to_name.
2167 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2169 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2171 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2172 value is a reference, actually dereference it in order to get
2173 the underlying value.
2175 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2177 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2179 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2181 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2182 * linespec.c (linespec_lexer_lex_string): Same.
2184 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2186 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2188 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2190 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2191 variable. Call aarch64_decode_adr instead of
2192 aarch64_decode_adrp.
2193 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2194 (aarch64_decode_adr): New function declaration.
2195 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2196 (aarch64_decode_adr): New function, factored out from
2197 aarch64_decode_adrp to decode both adr and adrp instructions.
2199 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2201 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2202 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2203 (aarch64-insn.o): New rule.
2204 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2205 (aarch64*-*-linux*): Likewise.
2206 * arch/aarch64-insn.c: New file.
2207 * arch/aarch64-insn.h: New file.
2208 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2209 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2210 arch/aarch64-insn.h.
2211 (decode_add_sub_imm): Rename to ...
2212 (aarch64_decode_add_sub_imm): ... this.
2213 (decode_adrp): Rename to ...
2214 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2215 Declare in arch/aarch64-insn.h.
2216 (decode_b): Rename to ...
2217 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2218 Declare in arch/aarch64-insn.h.
2219 (decode_bcond): Rename to ...
2220 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2221 Declare in arch/aarch64-insn.h.
2222 (decode_br): Rename to ...
2223 (aarch64_decode_br): ... this.
2224 (decode_cb): Rename to ...
2225 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2226 Declare in arch/aarch64-insn.h.
2227 (decode_eret): Rename to ...
2228 (aarch64_decode_eret): ... this.
2229 (decode_movz): Rename to ...
2230 (aarch64_decode_movz): ... this.
2231 (decode_orr_shifted_register_x): Rename to ...
2232 (aarch64_decode_orr_shifted_register_x): ... this.
2233 (decode_ret): Rename to ...
2234 (aarch64_decode_ret): ... this.
2235 (decode_stp_offset): Rename to ...
2236 (aarch64_decode_stp_offset): ... this.
2237 (decode_stp_offset_wb): Rename to ...
2238 (aarch64_decode_stp_offset_wb): ... this.
2239 (decode_stur): Rename to ...
2240 (aarch64_decode_stur): ... this.
2241 (decode_tb): Rename to ...
2242 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2243 Declare in arch/aarch64-insn.h.
2244 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2246 2015-09-20 Doug Evans <xdje42@gmail.com>
2248 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2250 2015-09-20 Doug Evans <xdje42@gmail.com>
2252 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2253 variable name that collides with a parameter.
2255 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2257 * dwarf2loc.c (locexpr_get_frame_base): Renames
2258 block_op_get_frame_base.
2259 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2260 block_op_get_frame_base by reference to locexpr_get_frame_base.
2261 (loclist_get_frame_base): New function, near identical copy of
2262 locexpr_get_frame_base.
2263 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2264 block_op_get_frame_base by reference to loclist_get_frame_base.
2266 2015-09-19 Doug Evans <xdje42@gmail.com>
2268 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2269 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2271 2015-09-18 Doug Evans <xdje42@gmail.com>
2273 * linux-thread-db.c (record_thread): Return the created thread.
2274 (thread_from_lwp): Likewise.
2275 (thread_db_get_thread_local_address): Update.
2277 2015-09-18 Doug Evans <xdje42@gmail.com>
2279 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2280 move only member demangled_name up. All uses updated.
2282 2015-09-18 Doug Evans <xdje42@gmail.com>
2284 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2285 kind of minimal symbol in the error message.
2286 * objfiles.c (objfile_flavour_name): New function.
2287 * objfiles.h (objfile_flavour_name): Declare.
2289 2015-09-18 Yao Qi <yao.qi@linaro.org>
2291 * nat/aarch64-linux.c: Include elf/common.h,
2292 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2293 (aarch64_ps_get_thread_area): New function.
2294 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2295 (aarch64_ps_get_thread_area): Declare.
2296 * aarch64-linux-nat.c (ps_get_thread_area): Call
2297 aarch64_ps_get_thread_area.
2299 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2301 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2303 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2305 * NEWS: Announce new scheduler-locking mode.
2306 * infrun.c (schedlock_replay): New.
2307 (scheduler_enums): Add schedlock_replay.
2308 (scheduler_mode): Change default to schedlock_replay.
2309 (user_visible_resume_ptid): Handle schedlock_replay.
2310 (clear_proceed_status_thread): Stop replaying if resumed thread is
2312 (schedlock_applies): Handle schedlock_replay.
2313 (_initialize_infrun): Document new scheduler-locking mode.
2314 * record-btrace.c (record_btrace_resume): Remove code to stop other
2315 threads when not replaying the resumed thread.
2317 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2319 * record-btrace.c ((record_btrace_will_replay): New.
2320 (init_record_btrace_ops): Initialize to_record_will_replay.
2321 * record-full.c ((record_full_will_replay): New.
2322 (init_record_full_ops): Initialize to_record_will_replay.
2323 * target-delegates.c: Regenerated.
2324 * target.c (target_record_will_replay): New.
2325 * target.h (struct target_ops) <to_record_will_replay>: New.
2326 (target_record_will_replay): New.
2328 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2330 * record-btrace.c (record_btrace_resume): Call
2331 target_record_stop_replaying.
2332 (record_btrace_stop_replaying_all): New.
2333 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2334 * record-full.c (record_full_stop_replaying): New.
2335 (init_record_full_ops ): Initialize to_record_stop_replaying.
2336 * target-delegates.c: Regenerated.
2337 * target.c (target_record_stop_replaying): New.
2338 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2339 (target_record_stop_replaying): New.
2341 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2343 * record-btrace.c (record_btrace_xfer_partial)
2344 (record_btrace_store_registers, record_btrace_prepare_to_store):
2345 Call record_btrace_is_replaying with inferior_ptid instead of
2347 (record_btrace_store_registers): Change error message.
2349 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2351 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2352 Update users to pass minus_one_ptid.
2353 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2354 * record.c (cmd_record_delete): Pass inferior_ptid to
2355 target_record_is_replaying.
2356 * target-delegates.c: Regenerated.
2357 * target.c (target_record_is_replaying): Add ptid argument.
2358 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2360 (target_record_is_replaying): Add ptid argument.
2362 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2364 * record-btrace.c (record_btrace_open): Remove non_stop check.
2365 * NEWS: Announce that record btrace supports non-stop mode.
2367 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2369 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2370 in the TARKET_WAITKIND_NO_HISTORY case.
2372 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2374 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2375 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2377 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2379 * record-btrace.c (get_thread_current_frame): New.
2380 (record_btrace_start_replaying): Call get_thread_current_frame.
2382 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2384 * record-btrace.c (record_btrace_resume_thread): A move request
2385 overwrites a previous move request.
2386 (record_btrace_find_resume_thread): Removed.
2387 (record_btrace_resume): Resume all requested threads.
2389 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2391 * record-btrace.c: Include vec.h.
2392 (record_btrace_find_thread_to_move): Removed.
2393 (btrace_step_no_resumed, btrace_step_again)
2394 (record_btrace_stop_replaying_at_end): New.
2395 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2396 (record_btrace_single_step_forward): Remove calls to
2397 record_btrace_stop_replaying.
2398 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2399 BTHR_RCONT. Keep threads at the end of their history moving.
2400 (record_btrace_wait): Call record_btrace_step_thread for all threads
2401 until one reports an event. Call record_btrace_stop_replaying_at_end
2402 for the eventing thread.
2404 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2406 * record-btrace.c (record_btrace_single_step_forward): Return
2407 NO_HISTORY if a step brings us to the end of the execution history.
2409 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2411 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2413 (record_btrace_single_step_forward): ... here and
2414 (record_btrace_single_step_backward): ... here.
2416 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2418 * record-btrace.c (btrace_step_spurious)
2419 (record_btrace_single_step_forward)
2420 (record_btrace_single_step_backward): New.
2421 (record_btrace_step_thread): Call record_btrace_single_step_forward
2422 and record_btrace_single_step_backward.
2424 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2426 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2427 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2429 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2431 * record-btrace.c (btrace_thread_flag_to_str)
2432 (record_btrace_cancel_resume): New.
2433 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2434 (record_btrace_resume): Print execution direction.
2435 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2436 (record_btrace_wait): Call record_btrace_cancel_resume.
2438 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2440 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2441 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2442 (record_btrace_find_thread_to_move): Also accept threads that have
2444 (btrace_step_stopped_on_request, record_btrace_stop): New.
2445 (record_btrace_step_thread): Support BTHR_STOP.
2446 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2447 (init_record_btrace_ops): Initialize to_stop.
2449 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2451 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2452 target_is_non_stop_p ().
2454 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2456 * ada-typeprint.c (print_array_type): Do not describe arrays as
2457 packed when they embed dynamic elements.
2459 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2461 * symtab.h (address_class): Document that TLS variables
2462 are handled by LOC_UNRESOLVED.
2463 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2464 * printcmd.c (address_info): Don't relocate TLS variables.
2466 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2468 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2469 (decode_adrp): Likewise.
2470 (decode_b): Likewise.
2471 (decode_bcond): Likewise.
2472 (decode_br): Likewise.
2473 (decode_cb): Likewise.
2474 (decode_eret): Likewise.
2475 (decode_movz): Likewise.
2476 (decode_orr_shifted_register_x): Likewise.
2477 (decode_ret): Likewise.
2478 (decode_stp_offset): Likewise.
2479 (decode_stp_offset_wb): Likewise.
2480 (decode_stur): Likewise.
2481 (decode_tb): Likewise.
2482 (aarch64_analyze_prologue): Likewise.
2483 (pass_in_x): Likewise.
2484 (pass_in_v): Likewise.
2485 (pass_on_stack): Likewise.
2486 (aarch64_push_dummy_call): Likewise.
2487 (aarch64_extract_return_value): Likewise.
2488 (aarch64_store_return_value): Likewise.
2489 (aarch64_return_value): Likewise.
2490 (aarch64_record_asimd_load_store): Likewise.
2491 (aarch64_record_load_store): Likewise.
2492 (aarch64_record_data_proc_simd_fp): Likewise.
2494 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2496 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2497 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2498 (ppc64_skip_trampoline_code_1): ... here.
2499 (ppc64_skip_trampoline_code): New wrapper function.
2500 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2502 2015-09-15 Yao Qi <yao.qi@linaro.org>
2504 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2506 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2507 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2508 if target_can_do_single_step returns 1.
2509 * remote.c (struct vCont_action_support) <s, S>: New fields.
2510 (PACKET_vContSupported): New enum.
2511 (remote_protocol_features): New element for vContSupported.
2512 (remote_query_supported): Append "vContSupported+".
2513 (remote_vcont_probe): Remove support_s and support_S, use
2514 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2515 vCont packet if c and C actions are not supported.
2516 (remote_can_do_single_step): New function.
2517 (init_remote_ops): Install it to to_can_do_single_step.
2518 (_initialize_remote): Call add_packet_config_cmd.
2519 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2520 (target_can_do_single_step): New macro.
2521 * target-delegates.c: Re-generated.
2523 2015-09-15 Yao Qi <yao.qi@linaro.org>
2525 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2526 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2527 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2529 (aarch64_siginfo_from_compat_siginfo): New function.
2530 * nat/aarch64-linux.h: Include signal.h.
2531 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2532 (compat_timer_t, compat_clock_t): Likewise.
2533 (struct compat_timeval): New.
2534 (union compat_sigval): New.
2535 (struct compat_siginfo): New.
2536 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2537 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2538 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2539 (cpt_si_band, cpt_si_fd): Likewise.
2541 2015-09-14 Pedro Alves <palves@redhat.com>
2543 * infrun.c (current_stop_id): New global.
2544 (get_stop_id, new_stop_id): New functions.
2545 (fetch_inferior_event): Handle normal_stop proceeding the target.
2546 (struct stop_context): New.
2547 (save_stop_context, release_stop_context_cleanup)
2548 (stop_context_changed): New functions.
2549 (normal_stop): Return true if the hook-stop changes the stop
2551 * infrun.h (get_stop_id): Declare.
2552 (normal_stop): Now returns int. Add documentation.
2554 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2556 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2557 comment. Handle packed arrays.
2559 2015-09-14 Pedro Alves <palves@redhat.com>
2561 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2562 mention of maint set/show target-non-stop.
2564 2015-09-11 Don Breazeal <donb@codesourcery.com>
2566 * NEWS: Announce new remote packets for the exec-events
2567 feature and the exec-events feature and associated commands.
2569 2015-09-11 Don Breazeal <donb@codesourcery.com>
2571 * remote.c (remote_exec_event_p): New function.
2572 (remote_insert_exec_catchpoint): New function.
2573 (remote_remove_exec_catchpoint): New function.
2574 (init_extended_remote_ops): Initialize extended_remote_ops
2575 members to_insert_exec_catchpoint and
2576 to_remove_exec_catchpoint.
2578 2015-09-11 Don Breazeal <donb@codesourcery.com>
2579 Luis Machado <lgustavo@codesourcery.com>
2581 * infrun.c (follow_exec): Use process-style ptid for
2582 exec message. Call add_inferior_with_spaces and
2584 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2585 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2586 * remote.c (remote_pspace_data): New static variable.
2587 (remote_pspace_data_cleanup): New function.
2588 (get_remote_exec_file): New function.
2589 (set_remote_exec_file_1): New function.
2590 (set_remote_exec_file): New function.
2591 (show_remote_exec_file): New function.
2592 (remote_exec_file): Delete static variable.
2593 (anonymous enum) <PACKET_exec_event_feature>: New
2594 enumeration constant.
2595 (remote_protocol_features): Add entry for exec-events feature.
2596 (remote_query_supported): Add client side of qSupported query
2597 for exec-events feature.
2598 (remote_follow_exec): New function.
2599 (remote_parse_stop_reply): Handle 'exec' stop reason.
2600 (extended_remote_run, extended_remote_create_inferior): Call
2601 get_remote_exec_file and set_remote_exec_file_1.
2602 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2604 (_initialize_remote): Call
2605 register_program_space_data_with_cleanup. Call
2606 add_packet_config_cmd for remote exec-events feature.
2607 Modify call to add_setshow_string_noescape_cmd for exec-file
2608 to use new functions set_remote_exec_file and
2609 show_remote_exec_file.
2610 * target-debug.h, target-delegates.c: Regenerated.
2611 * target.c (target_follow_exec): New function.
2612 * target.h (struct target_ops) <to_follow_exec>: New member.
2613 (target_follow_exec): Declare new function.
2615 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2617 * aarch64-tdep.c (decode_cb): Move up comment describing the
2619 (decode_tb): Fix a typo in comment above the function. Move up
2620 comment describing the encoding.
2622 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2624 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2626 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2629 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2630 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2632 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2634 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2637 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2639 * ada-lang.c (ada_search_struct_field): Constify parameters
2641 (xget_renaming_scope): Likewise.
2642 (ada_is_redundant_range_encoding): Likewise.
2643 (scan_discrim_bound): Likewise.
2644 (to_fixed_range_type): Likewise.
2646 2015-09-10 Yao Qi <yao.qi@linaro.org>
2648 * breakpoint.c (download_tracepoint_locations): New local
2649 can_download_tracepoint. Check the result of
2650 target_can_download_tracepoint and save it in
2651 can_download_tracepoint if there are tracepoints to download.
2652 * linux-nat.h (enum tribool): Move it to ...
2653 * common/common-types.h: ... here.
2655 2015-09-09 Pedro Alves <palves@redhat.com>
2657 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2658 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2660 2015-09-09 Pedro Alves <palves@redhat.com>
2662 * continuations.c (add_continuation, restore_thread_cleanup)
2663 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2664 (do_all_continuations_thread, do_all_continuations)
2665 (discard_all_continuations_thread_callback)
2666 (discard_all_continuations_thread, discard_all_continuations)
2667 (add_intermediate_continuation)
2668 (do_all_intermediate_continuations_thread_callback)
2669 (do_all_intermediate_continuations_thread)
2670 (do_all_intermediate_continuations)
2671 (discard_all_intermediate_continuations_thread_callback)
2672 (discard_all_intermediate_continuations_thread)
2673 (discard_all_intermediate_continuations): Delete.
2674 * continuations.h (add_continuation, do_all_continuations)
2675 (do_all_continuations_thread, discard_all_continuations)
2676 (discard_all_continuations_thread, add_intermediate_continuation)
2677 (do_all_intermediate_continuations)
2678 (do_all_intermediate_continuations_thread)
2679 (discard_all_intermediate_continuations)
2680 (discard_all_intermediate_continuations_thread): Delete
2682 * event-top.c (stdin_event_handler): Delete references to
2684 * gdbthread.h (struct thread_info): Delete continuations and
2685 intermediate_continuations fields.
2686 * inf-loop.c (inferior_event_handler): Remove references to
2688 * infrun.c (infrun_thread_stop_requested_callback): Remove
2689 references to continuations.
2690 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2691 * thread.c: Don't include "continuations.h".
2692 (clear_thread_inferior_resources): Remove references to
2695 2015-09-09 Pedro Alves <palves@redhat.com>
2697 * infcall.c (struct dummy_frame_context_saver): Delete.
2698 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2699 (dummy_frame_context_saver_drop)
2700 (dummy_frame_context_saver_cleanup)
2701 (dummy_frame_context_saver_get_regs)
2702 (dummy_frame_context_saver_setup): Delete.
2703 * infcall.h (dummy_frame_context_saver_drop)
2704 (dummy_frame_context_saver_cleanup)
2705 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2707 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2708 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2709 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2711 2015-09-09 Pedro Alves <palves@redhat.com>
2713 * breakpoint.c: Include "thread-fsm.h".
2714 (struct until_break_command_continuation_args): Delete.
2715 (struct until_break_fsm): New.
2716 (until_break_fsm_ops): New global.
2717 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2718 (until_break_command_continuation): Delete.
2719 (until_break_fsm_clean_up): New function.
2720 (until_break_fsm_async_reply_reason): New function.
2721 (until_break_command): Adjust to create an until_break_fsm instead
2723 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2725 * infcmd.c (struct until_next_fsm): New.
2726 (until_next_fsm_ops): New global.
2727 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2728 (until_next_continuation): Delete.
2729 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2731 (until_next_command): Adjust to create a new until_next_fsm
2732 instead of a continuation.
2734 2015-09-09 Pedro Alves <palves@redhat.com>
2736 * infcall.c: Include thread_fsm.h.
2737 (struct call_return_meta_info): New.
2738 (get_call_return_value): New function, factored out from
2739 call_function_by_hand_dummy.
2740 (struct call_thread_fsm): New.
2741 (call_thread_fsm_ops): New global.
2742 (new_call_thread_fsm, call_thread_fsm_should_stop)
2743 (call_thread_fsm_should_notify_stop): New functions.
2744 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2746 (call_function_by_hand_dummy): Create a new call_thread_fsm
2747 instance, associate it with the thread, and wait for the FSM to
2748 finish. If finished successfully, fetch the function's result
2749 value out of the FSM.
2750 * infrun.c (fetch_inferior_event): If the FSM says the stop
2751 shouldn't be notified, don't call normal_stop.
2752 (maybe_remove_breakpoints): New function, factored out from ...
2753 (normal_stop): ... here. Simplify.
2754 * infrun.h (maybe_remove_breakpoints): Declare.
2755 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2756 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2757 (thread_fsm_should_notify_stop): Declare.
2759 2015-09-09 Pedro Alves <palves@redhat.com>
2761 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2762 * breakpoint.c (handle_jit_event): Print debug output.
2763 (bpstat_what): Split event callback handling to ...
2764 (bpstat_run_callbacks): ... this new function.
2765 (momentary_bkpt_print_it): No longer handle bp_finish here.
2766 * breakpoint.h (bpstat_run_callbacks): Declare.
2767 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2768 <thread_fsm>: New field.
2769 (thread_cancel_execution_command): Declare.
2770 * infcmd.c: Include thread-fsm.h.
2771 (struct step_command_fsm): New.
2772 (step_command_fsm_ops): New global.
2773 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2774 (step_1): Adjust to use step_command_fsm_prepare and
2776 (struct step_1_continuation_args): Delete.
2777 (step_1_continuation): Delete.
2778 (step_command_fsm_should_stop): New function.
2779 (step_once): Delete.
2780 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2781 (prepare_one_step): New function, based on step_once.
2782 (until_next_command): Remove step_multi reference.
2783 (struct return_value_info): New.
2784 (print_return_value): Rename to ...
2785 (print_return_value_1): ... this. New struct return_value_info
2787 (print_return_value): Reimplement as wrapper around
2788 print_return_value_1.
2789 (struct finish_command_fsm): New.
2790 (finish_command_continuation): Delete.
2791 (finish_command_fsm_ops): New global.
2792 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2794 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2796 (finish_command_continuation_free_arg): Delete.
2797 (finish_command_fsm_async_reply_reason): New.
2798 (finish_backward, finish_forward): Change symbol parameter to a
2799 finish_command_fsm. Adjust.
2800 (finish_command): Create a finish_command_fsm. Adjust.
2801 * infrun.c: Include "thread-fsm.h".
2802 (clear_proceed_status_thread): Delete the thread's FSM.
2803 (infrun_thread_stop_requested_callback): Cancel the thread's
2805 (clean_up_just_stopped_threads_fsms): New function.
2806 (fetch_inferior_event): Handle the event_thread's should_stop
2807 method saying the command isn't done yet.
2808 (process_event_stop_test): Run breakpoint callbacks here.
2809 (print_stop_event): Rename to ...
2810 (print_stop_location): ... this.
2811 (restore_current_uiout_cleanup): New function.
2812 (print_stop_event): Reimplement.
2813 (normal_stop): No longer notify the end_stepping_range observers
2814 here handle "step N" nor "finish" here. No longer call
2815 print_stop_event here.
2816 * infrun.h (struct return_value_info): Forward declare.
2817 (print_return_value): Declare.
2818 (print_stop_event): Change prototype.
2819 * thread-fsm.c: New file.
2820 * thread-fsm.h: New file.
2821 * thread.c: Include "thread-fsm.h".
2822 (thread_cancel_execution_command): New function.
2823 (clear_thread_inferior_resources): Call it.
2824 * cli/cli-interp.c (cli_on_normal_stop): New function.
2825 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2827 * mi/mi-interp.c: Include "thread-fsm.h".
2828 (restore_current_uiout_cleanup): Delete.
2829 (mi_on_normal_stop): If the thread has an FSM associated, and it
2830 finished, ask it for the async-reply-reason to print. Always call
2831 print_stop_event here, regardless of the top-level interpreter.
2832 Check bpstat_what to tell whether an asynchronous breakpoint hit
2834 * tui/tui-interp.c (tui_on_normal_stop): New function.
2835 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2837 2015-09-09 Pedro Alves <palves@redhat.com>
2839 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2840 check whether the target can async.
2841 * inf-loop.c (inferior_event_handler): Only call target_async if
2842 the target can async.
2843 * infcall.c: Include top.h and interps.h.
2844 (run_inferior_call): For the interpreter to sync mode while
2845 running the infcall. Call wait_sync_command_done instead of
2846 wait_for_inferior plus normal_stop.
2847 * infcmd.c (prepare_execution_command): Don't check whether the
2848 target can async when running in the foreground.
2849 (step_1): Delete synchronous case handling.
2850 (step_once): Always install a continuation, even in sync mode.
2851 (until_next_command, finish_forward): Don't check whether the
2853 (attach_command_post_wait, notice_new_inferior): Always install a
2854 continuation, even in sync mode.
2855 * infrun.c (mark_infrun_async_event_handler): New function.
2856 (proceed): In sync mode, mark infrun's event source instead of
2857 waiting for events here.
2858 (fetch_inferior_event): If the target can't async, do a blocking
2860 (prepare_to_wait): In sync mode, mark infrun's event source.
2861 (infrun_async_inferior_event_handler): No longer bail out if the
2863 * infrun.h (mark_infrun_async_event_handler): New declaration.
2864 * linux-nat.c (linux_nat_wait_1): Remove calls to
2865 set_sigint_trap/clear_sigint_trap.
2866 (linux_nat_terminal_inferior): No longer check whether the target
2868 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2870 (mi_execute_command_input_handler): No longer check whether the
2871 target is async. Update and simplify comment.
2872 * target.c (default_target_wait): New function.
2873 * target.h (struct target_ops) <to_wait>: Now defaults to
2874 default_target_wait.
2875 (default_target_wait): Declare.
2876 * top.c (wait_sync_command_done): New function, factored out from
2878 (maybe_wait_sync_command_done): ... this.
2879 * top.h (wait_sync_command_done): Declare.
2880 * target-delegates.c: Regenerate.
2882 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2884 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2885 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2886 Remove include of sys/utsname.h.
2887 (linux_determine_kernel_ptr_bits): Remove.
2888 (linux_determine_kernel_start): New.
2889 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2891 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2892 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2894 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2897 2015-09-07 Pedro Alves <palves@redhat.com>
2899 * guile/guile-internal.h (as_a_scm_t_subr): New.
2900 * guile/guile.c (misc_guile_functions): Use it.
2901 * guile/scm-arch.c (arch_functions): Use it.
2902 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2904 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2905 * guile/scm-cmd.c (command_functions): Use it.
2906 * guile/scm-disasm.c (disasm_functions): Use it.
2907 * guile/scm-exception.c (exception_functions)
2908 (private_exception_functions): Use it.
2909 * guile/scm-frame.c (frame_functions)
2910 * guile/scm-gsmob.c (gsmob_functions): Use it.
2911 * guile/scm-iterator.c (iterator_functions): Use it.
2912 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2913 * guile/scm-math.c (math_functions): Use it.
2914 * guile/scm-objfile.c (objfile_functions): Use it.
2915 * guile/scm-param.c (parameter_functions): Use it.
2916 * guile/scm-ports.c (port_functions, private_port_functions): Use
2918 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2919 * guile/scm-progspace.c (pspace_functions): Use it.
2920 * guile/scm-string.c (string_functions): Use it.
2921 * guile/scm-symbol.c (symbol_functions): Use it.
2922 * guile/scm-symtab.c (symtab_functions): Use it.
2923 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2925 * guile/scm-value.c (value_functions): Use it.
2927 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2929 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2930 (tui_next_win): Likewise.
2931 (tui_prev_win): Likewise.
2932 (tui_partial_win_by_name): Likewise.
2933 (tui_init_generic_part): Likewise.
2934 (init_content_element): Likewise.
2935 (tui_del_window): Likewise.
2936 (tui_free_window): Likewise.
2937 (tui_del_data_windows): Likewise.
2938 (tui_free_data_content): Likewise.
2939 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2940 * tui/tui-regs.c (tui_show_register_group): Likewise.
2941 * tui/tui-win.c (tui_resize_all): Likewise.
2942 (tui_set_focus): Likewise.
2943 (tui_set_win_height): Likewise.
2944 (make_invisible_and_set_new_height): Likewise.
2945 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2946 * tui/tui-wingeneral.c (make_visible): Likewise.
2948 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2950 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2952 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2954 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2956 * dbxread.c (dbx_end_psymtab): Likewise.
2957 * gnu-nat.c (gnu_write_inferior): Likewise.
2958 * mdebugread.c (cross_ref): Likewise.
2959 * p-valprint.c (pascal_val_print): Likewise.
2960 * xcoffread.c (xcoff_end_psymtab): Likewise.
2962 2015-09-04 Yao Qi <yao.qi@linaro.org>
2964 * NEWS: Mention the aarch64 multi-arch debugging support.
2966 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2968 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2969 type instead of a TYPE_CODE_INT one for the string_char_type
2970 and the ada_primitive_type_char types.
2972 2015-09-03 Yao Qi <yao.qi@linaro.org>
2974 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2975 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2976 aarch64_linux_region_ok_for_watchpoint.
2977 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2979 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2982 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2984 * gdb_obstack.h (obstack_strdup): Declare.
2985 * gdb_obstack.c (obstack_strdup): Define.
2986 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2987 * gdbarch.c: Regenerate.
2988 * gdbarch.h: Regenerate.
2989 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2991 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2993 * gdbtypes.c (copy_type_recursive): Update documentation.
2995 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2997 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3000 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3002 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3004 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3006 * solib-svr4.c (solib_event_probe_action): Call
3007 get_probe_argument_count using TRY...CATCH.
3008 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3010 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3012 * probe.h (struct probe_ops) <get_probe_argument_count,
3013 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3014 the comment that the function can throw an exception.
3015 (get_probe_argument_count): Likewise.
3016 (evaluate_probe_argument): Likewise.
3017 * stap-probe.c (stap_get_opcode): Call error instead of
3019 (stap_get_expected_argument_type): Likewise. Add argument
3020 'probe'. Improve error message by mentioning the probe's name.
3021 (stap_parse_probe_arguments): Adjust call to
3022 stap_get_expected_argument_type.
3023 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3024 not zero. Call internal_error if GDB requests an argument but the
3025 probe has no arguments.
3027 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3029 * ada-lang.c (ada_resolve_function): Do not ask the user what
3030 match to use when in completion mode.
3032 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3034 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3037 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3039 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3040 call_abi using XSHAL_ABI macro.
3042 2015-08-29 Doug Evans <xdje42@gmail.com>
3044 * symtab.h (struct symbol): Tweak comment.
3046 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3048 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3049 gdbarch obstack instead of on the heap. Update commentary
3052 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3056 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3058 * NEWS: Update entry about non-8-bits addressable memory.
3060 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3063 2014-11-06 Doug Evans <xdje42@gmail.com>
3064 * solib.c (solib_global_lookup): Fetch arch from objfile,
3067 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3070 attempt to relocate a TLS variable offset.
3072 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3074 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3075 registered yet. Set inferior_ptid while calling target_read_memory.
3077 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3079 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3080 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3081 * linux-nat.c (check_stopped_by_breakpoint): Use
3082 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3084 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3086 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3087 thread was not yet discovered, use thread_from_lwp instead of
3088 calling thread_db_find_new_threads_1.
3090 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3092 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3095 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3097 * NEWS: Document support for non-8-bits addressable memory.
3099 2015-08-27 Pedro Alves <palves@redhat.com>
3101 * configure.ac: Remove AC_TYPE_SIGNAL call.
3102 * configure, config.in: Regenerate.
3104 2015-08-27 Pedro Alves <palves@redhat.com>
3106 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3107 * extension-priv.h: Include signal.h.
3108 (struct signal_handler) <handler>: Change type to sighandler_t.
3109 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3110 * inflow.c (sigint_ours, sigquit_ours): Change type to
3112 (child_terminal_inferior): Remove casts.
3113 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3114 (osig): Change type to sighandler_t.
3115 * nto-procfs.c (ofunc): Change type to sighandler_t.
3116 (procfs_wait): Remove casts.
3117 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3118 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3119 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3121 2015-08-27 Pedro Alves <palves@redhat.com>
3123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3124 * gnulib/aclocal.m4: Renegerate.
3125 * gnulib/config.in: Renegerate.
3126 * gnulib/configure: Renegerate.
3127 * gnulib/import/Makefile.am: Update.
3128 * gnulib/import/Makefile.in: Regenerate.
3129 * gnulib/import/m4/gnulib-cache.m4: Update.
3130 * gnulib/import/m4/gnulib-comp.m4: Update.
3131 * gnulib/import/m4/signal_h.m4: New file.
3132 * gnulib/import/signal.in.h: New file.
3134 2015-08-27 Pedro Alves <palves@redhat.com>
3136 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3137 (MIN_MEMORY_PACKET_SIZE): New.
3138 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3139 (get_memory_packet_size): Adjust. No longer limit the max packet
3141 (set_memory_packet_size): Adjust, and remove dead code.
3142 (remote_check_symbols): Use xmalloc and a cleanup instead of
3144 (remote_packet_size): No longer cap the packet size.
3145 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3147 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3149 * compile/compile.c (compile_to_object): Mention language in
3152 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3154 * target.c (target_pre_inferior): Unset attach_flag.
3156 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3158 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3159 * gdbarch.c: Re-generate.
3161 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3163 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3164 function with the XNEW-family equivalent.
3165 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3166 * ada-exp.y (write_ambiguous_var): Likewise.
3167 * ada-lang.c (resolve_subexp): Likewise.
3168 (user_select_syms): Likewise.
3169 (assign_aggregate): Likewise.
3170 (ada_evaluate_subexp): Likewise.
3171 (cache_symbol): Likewise.
3172 * addrmap.c (allocate_key): Likewise.
3173 (addrmap_create_mutable): Likewise.
3174 * aix-thread.c (sync_threadlists): Likewise.
3175 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3176 (alpha_gdbarch_init): Likewise.
3177 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3178 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3179 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3180 * arm-tdep.c (push_stack_item): Likewise.
3181 (arm_displaced_step_copy_insn): Likewise.
3182 (arm_gdbarch_init): Likewise.
3183 (_initialize_arm_tdep): Likewise.
3184 * avr-tdep.c (push_stack_item): Likewise.
3185 * ax-general.c (new_agent_expr): Likewise.
3186 * block.c (block_initialize_namespace): Likewise.
3187 * breakpoint.c (alloc_counted_command_line): Likewise.
3188 (update_dprintf_command_list): Likewise.
3189 (parse_breakpoint_sals): Likewise.
3190 (decode_static_tracepoint_spec): Likewise.
3191 (until_break_command): Likewise.
3192 (clear_command): Likewise.
3193 (update_global_location_list): Likewise.
3194 (get_breakpoint_objfile_data) Likewise.
3195 * btrace.c (ftrace_new_function): Likewise.
3196 (btrace_set_insn_history): Likewise.
3197 (btrace_set_call_history): Likewise.
3198 * buildsym.c (add_symbol_to_list): Likewise.
3199 (record_pending_block): Likewise.
3200 (start_subfile): Likewise.
3201 (start_buildsym_compunit): Likewise.
3202 (push_subfile): Likewise.
3203 (end_symtab_get_static_block): Likewise.
3204 (buildsym_init): Likewise.
3205 * cli/cli-cmds.c (source_command): Likewise.
3206 * cli/cli-decode.c (add_cmd): Likewise.
3207 * cli/cli-script.c (build_command_line): Likewise.
3208 (setup_user_args): Likewise.
3209 (realloc_body_list): Likewise.
3210 (process_next_line): Likewise.
3211 (copy_command_lines): Likewise.
3212 * cli/cli-setshow.c (do_set_command): Likewise.
3213 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3214 * coffread.c (coff_locate_sections): Likewise.
3215 (coff_symtab_read): Likewise.
3216 (coff_read_struct_type): Likewise.
3217 * common/cleanups.c (make_my_cleanup2): Likewise.
3218 * common/common-exceptions.c (throw_it): Likewise.
3219 * common/filestuff.c (make_cleanup_close): Likewise.
3220 * common/format.c (parse_format_string): Likewise.
3221 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3222 * compile/compile-object-load.c (munmap_list_add): Likewise.
3223 (compile_object_load): Likewise.
3224 * compile/compile-object-run.c (compile_object_run): Likewise.
3225 * compile/compile.c (append_args): Likewise.
3226 * corefile.c (specify_exec_file_hook): Likewise.
3227 * cp-support.c (make_symbol_overload_list): Likewise.
3228 * cris-tdep.c (push_stack_item): Likewise.
3229 (cris_gdbarch_init): Likewise.
3230 * ctf.c (ctf_trace_file_writer_new): Likewise.
3231 * dbxread.c (init_header_files): Likewise.
3232 (add_new_header_file): Likewise.
3233 (init_bincl_list): Likewise.
3234 (dbx_end_psymtab): Likewise.
3235 (start_psymtab): Likewise.
3236 (dbx_end_psymtab): Likewise.
3237 * dcache.c (dcache_init): Likewise.
3238 * dictionary.c (dict_create_hashed): Likewise.
3239 (dict_create_hashed_expandable): Likewise.
3240 (dict_create_linear): Likewise.
3241 (dict_create_linear_expandable): Likewise.
3242 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3243 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3244 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3245 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3246 (decode_frame_entry_1): Likewise.
3247 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3248 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3249 * dwarf2read.c (dwarf2_has_info): Likewise.
3250 (create_signatured_type_table_from_index): Likewise.
3251 (dwarf2_read_index): Likewise.
3252 (dw2_get_file_names_reader): Likewise.
3253 (create_all_type_units): Likewise.
3254 (read_cutu_die_from_dwo): Likewise.
3255 (init_tu_and_read_dwo_dies): Likewise.
3256 (init_cutu_and_read_dies): Likewise.
3257 (create_all_comp_units): Likewise.
3258 (queue_comp_unit): Likewise.
3259 (inherit_abstract_dies): Likewise.
3260 (read_call_site_scope): Likewise.
3261 (dwarf2_add_field): Likewise.
3262 (dwarf2_add_typedef): Likewise.
3263 (dwarf2_add_member_fn): Likewise.
3264 (attr_to_dynamic_prop): Likewise.
3265 (abbrev_table_alloc_abbrev): Likewise.
3266 (abbrev_table_read_table): Likewise.
3267 (add_include_dir): Likewise.
3268 (add_file_name): Likewise.
3269 (dwarf_decode_line_header): Likewise.
3270 (dwarf2_const_value_attr): Likewise.
3271 (dwarf_alloc_block): Likewise.
3272 (parse_macro_definition): Likewise.
3273 (set_die_type): Likewise.
3274 (write_psymtabs_to_index): Likewise.
3275 (create_cus_from_index): Likewise.
3276 (dwarf2_create_include_psymtab): Likewise.
3277 (process_psymtab_comp_unit_reader): Likewise.
3278 (build_type_psymtab_dependencies): Likewise.
3279 (read_comp_units_from_section): Likewise.
3280 (compute_compunit_symtab_includes): Likewise.
3281 (create_dwo_unit_in_dwp_v1): Likewise.
3282 (create_dwo_unit_in_dwp_v2): Likewise.
3283 (read_func_scope): Likewise.
3284 (process_structure_scope): Likewise.
3285 (mark_common_block_symbol_computed): Likewise.
3286 (load_partial_dies): Likewise.
3287 (dwarf2_symbol_mark_computed): Likewise.
3288 * elfread.c (elf_symfile_segments): Likewise.
3289 (elf_read_minimal_symbols): Likewise.
3290 * environ.c (make_environ): Likewise.
3291 * eval.c (evaluate_subexp_standard): Likewise.
3292 * event-loop.c (create_file_handler): Likewise.
3293 (create_async_signal_handler): Likewise.
3294 (create_async_event_handler): Likewise.
3295 (create_timer): Likewise.
3296 * exec.c (build_section_table): Likewise.
3297 * fbsd-nat.c (fbsd_remember_child): Likewise.
3298 * fork-child.c (fork_inferior): Likewise.
3299 * frv-tdep.c (new_variant): Likewise.
3300 * gdbarch.sh (gdbarch_alloc): Likewise.
3301 (append_name): Likewise.
3302 * gdbtypes.c (rank_function): Likewise.
3303 (copy_type_recursive): Likewise.
3304 (add_dyn_prop): Likewise.
3305 * gnu-nat.c (make_proc): Likewise.
3306 (make_inf): Likewise.
3307 (gnu_write_inferior): Likewise.
3308 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3309 (build_std_type_info_type): Likewise.
3310 * guile/scm-param.c (compute_enum_list): Likewise.
3311 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3312 * guile/scm-value.c (gdbscm_value_call): Likewise.
3313 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3314 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3315 (read_unwind_info): Likewise.
3316 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3317 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3318 (call_function_by_hand_dummy): Likewise.
3319 * infcmd.c (step_once): Likewise.
3320 (finish_forward): Likewise.
3321 (attach_command): Likewise.
3322 (notice_new_inferior): Likewise.
3323 * inferior.c (add_inferior_silent): Likewise.
3324 * infrun.c (add_displaced_stepping_state): Likewise.
3325 (save_infcall_control_state): Likewise.
3326 (save_inferior_ptid): Likewise.
3327 (_initialize_infrun): Likewise.
3328 * jit.c (bfd_open_from_target_memory): Likewise.
3329 (jit_gdbarch_data_init): Likewise.
3330 * language.c (add_language): Likewise.
3331 * linespec.c (decode_line_2): Likewise.
3332 * linux-nat.c (add_to_pid_list): Likewise.
3333 (add_initial_lwp): Likewise.
3334 * linux-thread-db.c (add_thread_db_info): Likewise.
3335 (record_thread): Likewise.
3336 (info_auto_load_libthread_db): Likewise.
3337 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3339 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3340 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3341 * macrocmd.c (macro_define_command): Likewise.
3342 * macroexp.c (gather_arguments): Likewise.
3343 * macroscope.c (sal_macro_scope): Likewise.
3344 * macrotab.c (new_macro_table): Likewise.
3345 * mdebugread.c (push_parse_stack): Likewise.
3346 (parse_partial_symbols): Likewise.
3347 (parse_symbol): Likewise.
3348 (psymtab_to_symtab_1): Likewise.
3349 (new_block): Likewise.
3350 (new_psymtab): Likewise.
3351 (mdebug_build_psymtabs): Likewise.
3352 (add_pending): Likewise.
3353 (elfmdebug_build_psymtabs): Likewise.
3354 * mep-tdep.c (mep_gdbarch_init): Likewise.
3355 * mi/mi-main.c (mi_execute_command): Likewise.
3356 * mi/mi-parse.c (mi_parse_argv): Likewise.
3357 * minidebug.c (lzma_open): Likewise.
3358 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3359 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3360 * mips-tdep.c (mips_gdbarch_init): Likewise.
3361 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3362 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3363 * mt-tdep.c (mt_registers_info): Likewise.
3364 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3365 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3366 (linux_enable_pt): Likewise.
3367 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3368 (linux_xfer_osdata_processgroups): Likewise.
3369 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3370 * nto-procfs.c (procfs_meminfo): Likewise.
3371 * objc-lang.c (start_msglist): Likewise.
3372 (selectors_info): Likewise.
3373 (classes_info): Likewise.
3374 (find_methods): Likewise.
3375 * objfiles.c (allocate_objfile): Likewise.
3376 (update_section_map): Likewise.
3377 * osabi.c (gdbarch_register_osabi): Likewise.
3378 (gdbarch_register_osabi_sniffer): Likewise.
3379 * parse.c (start_arglist): Likewise.
3380 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3381 (hwdebug_insert_point): Likewise.
3382 * printcmd.c (display_command): Likewise.
3383 (ui_printf): Likewise.
3384 * procfs.c (create_procinfo): Likewise.
3385 (load_syscalls): Likewise.
3386 (proc_get_LDT_entry): Likewise.
3387 (proc_update_threads): Likewise.
3388 * prologue-value.c (make_pv_area): Likewise.
3389 (pv_area_store): Likewise.
3390 * psymtab.c (extend_psymbol_list): Likewise.
3391 (init_psymbol_list): Likewise.
3392 (allocate_psymtab): Likewise.
3393 * python/py-inferior.c (add_thread_object): Likewise.
3394 * python/py-param.c (compute_enum_values): Likewise.
3395 * python/py-value.c (valpy_call): Likewise.
3396 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3397 * python/python.c (ensure_python_env): Likewise.
3398 * record-btrace.c (record_btrace_start_replaying): Likewise.
3399 * record-full.c (record_full_reg_alloc): Likewise.
3400 (record_full_mem_alloc): Likewise.
3401 (record_full_end_alloc): Likewise.
3402 (record_full_core_xfer_partial): Likewise.
3403 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3404 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3405 * remote-notif.c (remote_notif_state_allocate): Likewise.
3406 * remote.c (demand_private_info): Likewise.
3407 (remote_notif_stop_alloc_reply): Likewise.
3408 (remote_enable_btrace): Likewise.
3409 * reverse.c (save_bookmark_command): Likewise.
3410 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3411 * rx-tdep.c (rx_gdbarch_init): Likewise.
3412 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3413 * ser-go32.c (dos_get_tty_state): Likewise.
3414 (dos_copy_tty_state): Likewise.
3415 * ser-mingw.c (ser_windows_open): Likewise.
3416 (ser_console_wait_handle): Likewise.
3417 (ser_console_get_tty_state): Likewise.
3418 (make_pipe_state): Likewise.
3419 (net_windows_open): Likewise.
3420 * ser-unix.c (hardwire_get_tty_state): Likewise.
3421 (hardwire_copy_tty_state): Likewise.
3422 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3423 * solib-dsbt.c (dsbt_current_sos): Likewise.
3424 (dsbt_relocate_main_executable): Likewise.
3425 * solib-frv.c (frv_current_sos): Likewise.
3426 (frv_relocate_main_executable): Likewise.
3427 * solib-spu.c (spu_bfd_fopen): Likewise.
3428 * solib-svr4.c (lm_info_read): Likewise.
3429 (svr4_copy_library_list): Likewise.
3430 (svr4_default_sos): Likewise.
3431 * source.c (find_source_lines): Likewise.
3432 (line_info): Likewise.
3433 (add_substitute_path_rule): Likewise.
3434 * spu-linux-nat.c (spu_bfd_open): Likewise.
3435 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3436 * stabsread.c (dbx_lookup_type): Likewise.
3437 (read_type): Likewise.
3438 (read_member_functions): Likewise.
3439 (read_struct_fields): Likewise.
3440 (read_baseclasses): Likewise.
3441 (read_args): Likewise.
3442 (_initialize_stabsread): Likewise.
3443 * stack.c (func_command): Likewise.
3444 * stap-probe.c (handle_stap_probe): Likewise.
3445 * symfile.c (addrs_section_sort): Likewise.
3446 (addr_info_make_relative): Likewise.
3447 (load_section_callback): Likewise.
3448 (add_symbol_file_command): Likewise.
3449 (init_filename_language_table): Likewise.
3450 * symtab.c (create_filename_seen_cache): Likewise.
3451 (sort_search_symbols_remove_dups): Likewise.
3452 (search_symbols): Likewise.
3453 * target.c (make_cleanup_restore_target_terminal): Likewise.
3454 * thread.c (new_thread): Likewise.
3455 (enable_thread_stack_temporaries): Likewise.
3456 (make_cleanup_restore_current_thread): Likewise.
3457 (thread_apply_all_command): Likewise.
3458 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3459 * top.c (gdb_readline_wrapper): Likewise.
3460 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3461 * tracepoint.c (trace_find_line_command): Likewise.
3462 (all_tracepoint_actions_and_cleanup): Likewise.
3463 (make_cleanup_restore_current_traceframe): Likewise.
3464 (get_uploaded_tp): Likewise.
3465 (get_uploaded_tsv): Likewise.
3466 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3467 (tui_alloc_win_info): Likewise.
3468 (tui_alloc_content): Likewise.
3469 (tui_add_content_elements): Likewise.
3470 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3471 (tui_set_disassem_content): Likewise.
3472 * ui-file.c (ui_file_new): Likewise.
3473 (stdio_file_new): Likewise.
3474 (tee_file_new): Likewise.
3475 * utils.c (make_cleanup_restore_integer): Likewise.
3476 (add_internal_problem_command): Likewise.
3477 * v850-tdep.c (v850_gdbarch_init): Likewise.
3478 * valops.c (find_oload_champ): Likewise.
3479 * value.c (allocate_value_lazy): Likewise.
3480 (record_latest_value): Likewise.
3481 (create_internalvar): Likewise.
3482 * varobj.c (install_variable): Likewise.
3483 (new_variable): Likewise.
3484 (new_root_variable): Likewise.
3486 (_initialize_varobj): Likewise.
3487 * windows-nat.c (windows_make_so): Likewise.
3488 * x86-nat.c (x86_add_process): Likewise.
3489 * xcoffread.c (arrange_linetable): Likewise.
3490 (allocate_include_entry): Likewise.
3491 (process_linenos): Likewise.
3492 (SYMBOL_DUP): Likewise.
3493 (xcoff_start_psymtab): Likewise.
3494 (xcoff_end_psymtab): Likewise.
3495 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3496 * xtensa-tdep.c (xtensa_register_type): Likewise.
3497 * gdbarch.c: Regenerate.
3498 * gdbarch.h: Regenerate.
3500 2015-08-25 Don Breazeal <donb@codesourcery.com>
3502 * infrun.c (follow_exec): Re-order operations for
3503 handling follow-exec-mode "new".
3504 (handle_inferior_event_1): Assign ecs->event_thread
3505 to the current thread.
3506 * remote.c (get_remote_arch_state): Add an assertion.
3508 2015-08-26 Pedro Alves <palves@redhat.com>
3510 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3512 2015-08-25 Pedro Alves <palves@redhat.com>
3515 * defs.h (maybe_quit): Declare.
3516 (QUIT): Now calls maybe_quit.
3517 * event-loop.c (clear_async_signal_handler)
3518 (async_signal_handler_is_marked): New functions.
3519 * event-loop.h (async_signal_handler_is_marked)
3520 (clear_async_signal_handler): New declarations.
3521 * remote.c (remote_check_pending_interrupt): New function.
3522 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3523 longer check whether the target is async. If waiting for a stop
3524 reply, and a Ctrl-C as been sent to the target, offer to
3525 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3526 Otherwise do not disconnect and throw a quit.
3527 (_initialize_remote): Install remote_check_pending_interrupt as
3528 to_check_pending_interrupt.
3529 * target.c (target_check_pending_interrupt): New function.
3530 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3532 (target_check_pending_interrupt): New declaration.
3533 * utils.c (maybe_quit): New function.
3534 * target-delegates.c: Regenerate.
3536 2015-08-25 Yao Qi <yao.qi@linaro.org>
3538 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3539 Rename local variable pid to tid, and get lwpid of lwp. Update
3542 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3544 * ada-lang.c (ada_read_var_value): Add a var_block argument
3545 and pass it to default_read_var_value.
3546 * block.c (block_static_link): New accessor.
3547 * block.h (block_static_link): Declare it.
3548 * buildsym.c (finish_block_internal): Add a static_link
3549 argument. If there is a static link, associate it to the new
3551 (finish_block): Add a static link argument and pass it to
3552 finish_block_internal.
3553 (end_symtab_get_static_block): Update calls to finish_block and
3554 to finish_block_internal.
3555 (end_symtab_with_blockvector): Update call to
3556 finish_block_internal.
3557 * buildsym.h: Forward-declare struct dynamic_prop.
3558 (struct context_stack): Add a static_link field.
3559 (finish_block): Add a static link argument.
3560 * c-exp.y: Remove an obsolete comment (evaluation of variables
3561 already start from the selected frame, and now they climb *up*
3562 the call stack) and propagate the block information to the
3563 produced expression.
3564 * d-exp.y: Likewise.
3565 * f-exp.y: Likewise.
3566 * go-exp.y: Likewise.
3567 * jv-exp.y: Likewise.
3568 * m2-exp.y: Likewise.
3569 * p-exp.y: Likewise.
3570 * coffread.c (coff_symtab_read): Update calls to finish_block.
3571 * dbxread.c (process_one_symbol): Likewise.
3572 * xcoffread.c (read_xcoff_symtab): Likewise.
3573 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3574 "sym" parameter to struct block_symbol, update its uses and pass
3575 its block to calls to read_var_value.
3576 (convert_symbol_sym): Update the calls to convert_one_symbol.
3577 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3578 call to read_var_value.
3579 * dwarf2loc.c (block_op_get_frame_base): New.
3580 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3581 get_frame_base method.
3582 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3583 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3584 instead of the selected frame in order to evaluate the
3586 (dwarf2_evaluate_property): Add a frame argument. Update call
3587 to dwarf2_locexpr_baton_eval to provide a frame in available and
3588 to handle the absence of address stack.
3589 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3590 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3592 (read_func_scope): Record any available static link description.
3593 Update call to finish_block.
3594 (read_lexical_block_scope): Update call to finish_block.
3595 * findvar.c (follow_static_link): New.
3596 (get_hosting_frame): New.
3597 (default_read_var_value): Add a var_block argument. Use
3598 get_hosting_frame to handle non-local references.
3599 (read_var_value): Add a var_block argument and pass it to the
3600 LA_READ_VAR_VALUE method.
3601 * gdbtypes.c (resolve_dynamic_range): Update calls to
3602 dwarf2_evaluate_property.
3603 (resolve_dynamic_type_internal): Likewise.
3604 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3605 read_var_value, passing it the block coming from symbol lookup.
3606 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3607 read_var_value (TODO).
3608 * infcmd.c (finish_command_continuation): Update call to
3609 read_var_value, passing it the block coming from symbol lookup.
3610 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3611 * language.h (struct language_defn): Add a var_block argument to
3612 the LA_READ_VAR_VALUE method.
3613 * objfiles.c (struct static_link_htab_entry): New.
3614 (static_link_htab_entry_hash): New.
3615 (static_link_htab_entry_eq): New.
3616 (objfile_register_static_link): New.
3617 (objfile_lookup_static_link): New.
3618 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3619 * objfiles.h: Include hashtab.h.
3620 (struct objfile): Add a static_links field.
3621 (objfile_register_static_link): New.
3622 (objfile_lookup_static_link): New.
3623 * printcmd.c (print_variable_and_value): Update call to
3625 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3626 * python/py-frame.c (frapy_read_var): Update call to
3627 read_var_value, passing it the block coming from symbol lookup.
3628 * python/py-framefilter.c (extract_sym): Add a sym_block
3629 parameter and set the pointed value to NULL (TODO).
3630 (enumerate_args): Update call to extract_sym.
3631 (enumerate_locals): Update calls to extract_sym and to
3633 * python/py-symbol.c (sympy_value): Update call to
3634 read_var_value (TODO).
3635 * stack.c (read_frame_local): Update call to read_var_value.
3636 (read_frame_arg): Likewise.
3637 (return_command): Likewise.
3638 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3640 (struct symbol): Add a block field.
3641 (SYMBOL_BLOCK): New accessor.
3642 * valops.c (value_of_variable): Remove frame/block handling and
3643 pass the block argument to read_var_value, which does this job
3645 (value_struct_elt_for_reference): Update calls to
3647 (value_of_this): Pass the block found to read_var_value.
3648 * value.h (read_var_value): Add a var_block argument.
3649 (default_read_var_value): Likewise.
3651 2015-08-25 Yao Qi <yao.qi@linaro.org>
3653 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3654 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3655 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3657 2015-08-25 Yao Qi <yao.qi@linaro.org>
3659 * Makefile.in (aarch64-liunx.o): New rule.
3660 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3661 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3662 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3663 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3665 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3666 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3667 * nat/aarch64-linux.c: New file.
3668 * nat/aarch64-linux.h: New file.
3670 2015-08-25 Yao Qi <yao.qi@linaro.org>
3672 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3673 lwp_arch_private_info and ptid_of_lwp.
3675 2015-08-25 Yao Qi <yao.qi@linaro.org>
3677 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3678 Move it to nat/aarch64-linux-hw-point.c.
3679 (debug_reg_change_callback): Likewise.
3680 (aarch64_notify_debug_reg_change): :Likewise.
3681 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3682 (aarch64_dr_update_callback_param): New.
3683 (debug_reg_change_callback): New function.
3684 (aarch64_notify_debug_reg_change): Likewise.
3685 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3686 Remove the declaration.
3688 2015-08-25 Yao Qi <yao.qi@linaro.org>
3690 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3691 Call current_lwp_ptid.
3693 2015-08-25 Yao Qi <yao.qi@linaro.org>
3695 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3698 2015-08-25 Yao Qi <yao.qi@linaro.org>
3700 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3701 ptid_get_pid rather than ptid_get_lwp.
3703 2015-08-24 Pedro Alves <palves@redhat.com>
3705 * NEWS (New commands): Mention set/show remote
3706 multiprocess-extensions-packet.
3707 * remote.c (remote_query_supported): Only tell the server to use
3708 the multiprocess extensions if the user hasn't force-disabled them
3709 with "set remote multiprocess-extensions-packet off".
3711 2015-08-24 Pedro Alves <palves@redhat.com>
3713 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3714 1029a8112290f6eee9d7878a391c49db42c999bd.
3715 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3717 * gnulib/import/Makefile.am: Update.
3718 * gnulib/import/Makefile.in: Update.
3719 * gnulib/import/alloca.in.h: Update.
3720 * gnulib/import/basename-lgpl.c: Update.
3721 * gnulib/import/canonicalize-lgpl.c: Update.
3722 * gnulib/import/config.charset: Update.
3723 * gnulib/import/dirent.in.h: Update.
3724 * gnulib/import/dirfd.c: Update.
3725 * gnulib/import/dirname-lgpl.c: Update.
3726 * gnulib/import/dirname.h: Update.
3727 * gnulib/import/dosname.h: Update.
3728 * gnulib/import/errno.in.h: Update.
3729 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3730 * gnulib/import/extra/snippet/c++defs.h: Update.
3731 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3732 * gnulib/import/extra/update-copyright: Update.
3733 * gnulib/import/float+.h: Update.
3734 * gnulib/import/float.c: Update.
3735 * gnulib/import/float.in.h: Update.
3736 * gnulib/import/fnmatch.c: Update.
3737 * gnulib/import/fnmatch.in.h: Update.
3738 * gnulib/import/fnmatch_loop.c: Update.
3739 * gnulib/import/fpucw.h: Update.
3740 * gnulib/import/frexp.c: Update.
3741 * gnulib/import/frexpl.c: Update.
3742 * gnulib/import/gettimeofday.c: Update.
3743 * gnulib/import/inttypes.in.h: Update.
3744 * gnulib/import/isnan.c: Update.
3745 * gnulib/import/isnand-nolibm.h: Update.
3746 * gnulib/import/isnand.c: Update.
3747 * gnulib/import/isnanl-nolibm.h: Update.
3748 * gnulib/import/isnanl.c: Update.
3749 * gnulib/import/itold.c: Update.
3750 * gnulib/import/localcharset.c: Update.
3751 * gnulib/import/localcharset.h: Update.
3752 * gnulib/import/lstat.c: Update.
3753 * gnulib/import/m4/00gnulib.m4: Update.
3754 * gnulib/import/m4/absolute-header.m4: Update.
3755 * gnulib/import/m4/alloca.m4: Update.
3756 * gnulib/import/m4/canonicalize.m4: Update.
3757 * gnulib/import/m4/codeset.m4: Update.
3758 * gnulib/import/m4/configmake.m4: Update.
3759 * gnulib/import/m4/dirent_h.m4: Update.
3760 * gnulib/import/m4/dirfd.m4: Update.
3761 * gnulib/import/m4/dirname.m4: Update.
3762 * gnulib/import/m4/double-slash-root.m4: Update.
3763 * gnulib/import/m4/eealloc.m4: Update.
3764 * gnulib/import/m4/errno_h.m4: Update.
3765 * gnulib/import/m4/exponentd.m4: Update.
3766 * gnulib/import/m4/exponentl.m4: Update.
3767 * gnulib/import/m4/extensions.m4: Update.
3768 * gnulib/import/m4/extern-inline.m4: Update.
3769 * gnulib/import/m4/fcntl-o.m4: Update.
3770 * gnulib/import/m4/float_h.m4: Update.
3771 * gnulib/import/m4/fnmatch.m4: Update.
3772 * gnulib/import/m4/fpieee.m4: Update.
3773 * gnulib/import/m4/frexp.m4: Update.
3774 * gnulib/import/m4/frexpl.m4: Update.
3775 * gnulib/import/m4/gettimeofday.m4: Update.
3776 * gnulib/import/m4/glibc21.m4: Update.
3777 * gnulib/import/m4/gnulib-cache.m4: Update.
3778 * gnulib/import/m4/gnulib-common.m4: Update.
3779 * gnulib/import/m4/gnulib-comp.m4: Update.
3780 * gnulib/import/m4/gnulib-tool.m4: Update.
3781 * gnulib/import/m4/include_next.m4: Update.
3782 * gnulib/import/m4/inttypes-pri.m4: Update.
3783 * gnulib/import/m4/inttypes.m4: Update.
3784 * gnulib/import/m4/isnand.m4: Update.
3785 * gnulib/import/m4/isnanl.m4: Update.
3786 * gnulib/import/m4/largefile.m4: Update.
3787 * gnulib/import/m4/localcharset.m4: Update.
3788 * gnulib/import/m4/locale-fr.m4: Update.
3789 * gnulib/import/m4/locale-ja.m4: Update.
3790 * gnulib/import/m4/locale-zh.m4: Update.
3791 * gnulib/import/m4/longlong.m4: Update.
3792 * gnulib/import/m4/lstat.m4: Update.
3793 * gnulib/import/m4/malloc.m4: Update.
3794 * gnulib/import/m4/malloca.m4: Update.
3795 * gnulib/import/m4/math_h.m4: Update.
3796 * gnulib/import/m4/mbrtowc.m4: Update.
3797 * gnulib/import/m4/mbsinit.m4: Update.
3798 * gnulib/import/m4/mbsrtowcs.m4: Update.
3799 * gnulib/import/m4/mbstate_t.m4: Update.
3800 * gnulib/import/m4/memchr.m4: Update.
3801 * gnulib/import/m4/memmem.m4: Update.
3802 * gnulib/import/m4/mmap-anon.m4: Update.
3803 * gnulib/import/m4/multiarch.m4: Update.
3804 * gnulib/import/m4/nocrash.m4: Update.
3805 * gnulib/import/m4/off_t.m4: Update.
3806 * gnulib/import/m4/pathmax.m4: Update.
3807 * gnulib/import/m4/readlink.m4: Update.
3808 * gnulib/import/m4/rename.m4: Update.
3809 * gnulib/import/m4/rmdir.m4: Update.
3810 * gnulib/import/m4/ssize_t.m4: Update.
3811 * gnulib/import/m4/stat.m4: Update.
3812 * gnulib/import/m4/stdbool.m4: Update.
3813 * gnulib/import/m4/stddef_h.m4: Update.
3814 * gnulib/import/m4/stdint.m4: Update.
3815 * gnulib/import/m4/stdio_h.m4: Update.
3816 * gnulib/import/m4/stdlib_h.m4: Update.
3817 * gnulib/import/m4/string_h.m4: Update.
3818 * gnulib/import/m4/strstr.m4: Update.
3819 * gnulib/import/m4/strtok_r.m4: Update.
3820 * gnulib/import/m4/sys_socket_h.m4: Update.
3821 * gnulib/import/m4/sys_stat_h.m4: Update.
3822 * gnulib/import/m4/sys_time_h.m4: Update.
3823 * gnulib/import/m4/sys_types_h.m4: Update.
3824 * gnulib/import/m4/time_h.m4: Update.
3825 * gnulib/import/m4/unistd_h.m4: Update.
3826 * gnulib/import/m4/warn-on-use.m4: Update.
3827 * gnulib/import/m4/wchar_h.m4: Update.
3828 * gnulib/import/m4/wchar_t.m4: Update.
3829 * gnulib/import/m4/wctype_h.m4: Update.
3830 * gnulib/import/m4/wint_t.m4: Update.
3831 * gnulib/import/malloc.c: Update.
3832 * gnulib/import/malloca.c: Update.
3833 * gnulib/import/malloca.h: Update.
3834 * gnulib/import/math.in.h: Update.
3835 * gnulib/import/mbrtowc.c: Update.
3836 * gnulib/import/mbsinit.c: Update.
3837 * gnulib/import/mbsrtowcs-impl.h: Update.
3838 * gnulib/import/mbsrtowcs-state.c: Update.
3839 * gnulib/import/mbsrtowcs.c: Update.
3840 * gnulib/import/memchr.c: Update.
3841 * gnulib/import/memmem.c: Update.
3842 * gnulib/import/pathmax.h: Update.
3843 * gnulib/import/readlink.c: Update.
3844 * gnulib/import/ref-add.sin: Update.
3845 * gnulib/import/ref-del.sin: Update.
3846 * gnulib/import/rename.c: Update.
3847 * gnulib/import/rmdir.c: Update.
3848 * gnulib/import/same-inode.h: Update.
3849 * gnulib/import/stat.c: Update.
3850 * gnulib/import/stdbool.in.h: Update.
3851 * gnulib/import/stddef.in.h: Update.
3852 * gnulib/import/stdint.in.h: Update.
3853 * gnulib/import/stdio.c: Update.
3854 * gnulib/import/stdio.in.h: Update.
3855 * gnulib/import/stdlib.in.h: Update.
3856 * gnulib/import/str-two-way.h: Update.
3857 * gnulib/import/streq.h: Update.
3858 * gnulib/import/string.in.h: Update.
3859 * gnulib/import/stripslash.c: Update.
3860 * gnulib/import/strnlen1.c: Update.
3861 * gnulib/import/strnlen1.h: Update.
3862 * gnulib/import/strstr.c: Update.
3863 * gnulib/import/strtok_r.c: Update.
3864 * gnulib/import/sys_stat.in.h: Update.
3865 * gnulib/import/sys_time.in.h: Update.
3866 * gnulib/import/sys_types.in.h: Update.
3867 * gnulib/import/time.in.h: Update.
3868 * gnulib/import/unistd.in.h: Update.
3869 * gnulib/import/verify.h: Update.
3870 * gnulib/import/wchar.in.h: Update.
3871 * gnulib/import/wctype.in.h: Update.
3872 * gnulib/import/gettimeofday.c: New file.
3873 * gnulib/import/m4/absolute-header.m4: New file.
3874 * gnulib/import/m4/gettimeofday.m4: New file.
3875 * gnulib/import/m4/sys_socket_h.m4: New file.
3876 * gnulib/import/m4/sys_time_h.m4: New file.
3877 * gnulib/import/stdio.c: Delete file.
3878 * gnulib/import/sys_time.in.h: New file.
3880 2015-08-24 Pedro Alves <palves@redhat.com>
3882 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3883 * common/gdb_sys_time.h: New file.
3884 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3885 * gdb_select.h: Likewise.
3886 * gdb_usleep.c: Likewise.
3887 * maint.c: Likewise.
3888 * mi/mi-main.c: Likewise.
3889 * mi/mi-parse.h: Likewise.
3890 * remote-fileio.c: Likewise.
3891 * remote-m32r-sdi.c: Likewise.
3892 * remote.c: Likewise.
3893 * ser-base.c: Likewise.
3894 * ser-pipe.c: Likewise.
3895 * ser-tcp.c: Likewise.
3896 * ser-unix.c: Likewise.
3897 * symfile.c: Likewise.
3898 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3899 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3900 * utils.c: Likewise.
3902 2015-08-24 Pedro Alves <palves@redhat.com>
3904 * NEWS: Mention removed support for the various ROM monitors.
3905 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3906 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3907 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3909 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3911 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3912 dsrec.o from gdb_target_obs.
3913 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3914 from gdb_target_obs.
3915 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3917 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3918 dink32-rom.o from gdb_target_obs.
3919 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3920 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3921 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3922 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3924 2015-08-21 Pedro Alves <palves@redhat.com>
3926 * frame.c (null_frame_id): Explicitly zero-initialize.
3928 2015-08-21 Tom Tromey <tromey@redhat.com>
3930 * dwarf2read.c (struct dwarf2_section_info): Rename field
3931 'asection' to 'section'.
3932 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3933 (dwarf2_locate_sections, dwarf2_locate_sections)
3934 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3935 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3936 (dwarf2_locate_v2_dwp_sections): Adjust.
3938 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3940 * top.h (gdb_in_secondary_prompt_p): Declare.
3941 * top.c (gdb_secondary_prompt_depth): Define.
3942 (gdb_in_secondary_prompt_p): Define.
3943 (gdb_readline_wrapper_cleanup): Decrement
3944 gdb_secondary_prompt_depth.
3945 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3946 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3947 are in a secondary prompt.
3949 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3951 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3954 2015-08-21 Gary Benson <gbenson@redhat.com>
3956 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3958 2015-08-21 Gary Benson <gbenson@redhat.com>
3960 * target.h (struct target_ops) <to_fileio_open>: New argument
3961 warn_if_slow. Update comment. All implementations updated.
3962 (target_fileio_open_warn_if_slow): New declaration.
3963 * target.c (target_fileio_open): Renamed as...
3964 (target_fileio_open_1): ...this. New argument warn_if_slow.
3965 Pass warn_if_slow to implementation. Update debug printing.
3966 (target_fileio_open): New function.
3967 (target_fileio_open_warn_if_slow): Likewise.
3968 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3969 target_fileio_open_warn_if_slow.
3971 2015-08-21 Gary Benson <gbenson@redhat.com>
3973 * nat/linux-namespaces.c (linux_mntns_access_fs):
3974 Do not overwrite old_chain.
3976 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3978 * arch/xtensa.h: New file.
3979 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3980 (ps_get_thread_area): New function.
3981 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3982 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3983 * xtensa-tdep.c (osabi.h): New #include.
3984 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3985 xtensa-specific hooks.
3986 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3987 member and move the structure to arch/xtensa.h.
3989 2015-08-21 Pedro Alves <palves@redhat.com>
3991 * remote.c (struct readahead_cache): New.
3992 (struct remote_state) <readahead_cache>: New field.
3993 (remote_open_1): Invalidate the cache.
3994 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3996 (remote_hostio_pwrite): Invalidate the readahead cache.
3997 (remote_hostio_pread): Rename to ...
3998 (remote_hostio_pread_vFile): ... this.
3999 (remote_hostio_pread_from_cache): New function.
4000 (remote_hostio_pread): Reimplement.
4001 (remote_hostio_close): Invalidate the readahead cache.
4003 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4006 * procfs.c: Include "filestuff.h".
4008 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4010 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4012 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4013 cur_line or curch, instead call wmove().
4014 (init_win_info) [CMD_WIN]: Likewise.
4015 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4016 instead call getcury().
4017 (tui_redisplay_readline): Don't set cur_line or curch.
4018 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4020 (tui_cont_sig): Remove call to wmove.
4021 (tui_getc): Don't read cur_line or curch, instead call getcury()
4022 or getyx(). Don't set curch.
4023 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4024 set cur_line or curch. Always move cursor to (0,0).
4026 2015-08-20 Pedro Alves <palves@redhat.com>
4028 * infrun.c (print_target_wait_results): Make extern.
4029 * infrun.h (print_target_wait_results): Declare.
4030 * remote.c (set_stop_requested_callback): Delete.
4031 (process_initial_stop_replies): New function.
4032 (remote_start_remote): Use it.
4033 (stop_reply_queue_length): New function.
4035 2015-08-20 Pedro Alves <palves@redhat.com>
4037 * dwarf2read.c (process_full_comp_unit): To tell whether
4038 start_subfile managed to deduce a language, test for
4039 language_unknown instead of language_c.
4041 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4043 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4046 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4048 * dwarf2read.c (dwarf2_string_attr): New function.
4049 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4050 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4051 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4052 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4053 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4055 2015-08-18 Doug Evans <dje@google.com>
4056 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4059 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4061 * mi/mi-out.c: #include "vec.h".
4062 (ui_filep): New type.
4063 (DEV_VEC_P (ui_filep)): New type.
4064 (struct ui_out_data) <buffer, original_buffer>: Delete.
4065 (struct ui_out_data) <streams>: New member.
4066 (mi_ui_out_impl): Add data_destroy field.
4067 (mi_field_string, mi_field_fmt): Update.
4068 (mi_flush, mi_redirect, field_separator): Update.
4069 (mi_open, mi_close): Update.
4070 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4071 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4072 (mi_out_new): Call mi_out_data_ctor.
4074 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4076 * remote.c (strprefix): New.
4077 (remote_parse_stop_reply): Use strprefix instead of strncmp
4078 to ensure exact match of keyword.
4080 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4082 * gdb_bfd.c (debug_bfd_cache): New variable.
4083 (show_bfd_cache_debug): New function.
4084 (gdb_bfd_open): Add debug logging.
4085 (gdb_bfd_ref): Likewise.
4086 (gdb_bfd_unref): Likewise.
4087 (_initialize_gdb_bfd): Add new set/show command.
4088 * NEWS: Mention new command.
4090 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * gdb_bfd.c (bfd_sharing): New variable.
4093 (show_bfd_sharing): New function.
4094 (gdb_bfd_open): Check bfd_sharing variable.
4095 (_initialize_gdb_bfd): Add new set/show command.
4096 * NEWS: Mention new command.
4098 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4100 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4102 (struct gdb_bfd_cache_search): Likewise.
4103 (eq_bfd): Compare the size, inode, and device id fields.
4104 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4105 (gdb_bfd_ref): Likewise.
4106 (gdb_bfd_unref): Likewise.
4108 2015-08-18 Pedro Alves <palves@redhat.com>
4110 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4111 target implements to_always_non_stop_p, call it.
4112 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4113 (x86_linux_create_target): Install it as to_always_non_stop_p
4116 2015-08-17 Doug Evans <dje@google.com>
4118 * ui-out.c (default_ui_out_impl): Add comment.
4120 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4122 * d-exp.y (type_aggregate_p): New function.
4123 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4124 (classify_inner_name): Likewise.
4125 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4127 2015-08-15 Doug Evans <xdje42@gmail.com>
4129 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4131 (add_psymbol_to_list): Ditto.
4133 2015-08-15 Doug Evans <xdje42@gmail.com>
4135 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4136 updated. Call end_psymtab_common.
4137 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4139 (build_type_psymtabs_reader): Ditto.
4140 * psympriv.h (sort_pst_symbols): Delete.
4141 (end_psymtab_common): Declare.
4142 * psymtab.c (sort_pst_symbols): Make static.
4143 (end_psymtab_common): New function.
4144 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4146 2015-08-15 Doug Evans <xdje42@gmail.com>
4148 * defs.h (LANGUAGE_BITS): Define.
4149 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4150 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4151 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4152 (minimal_symbol_type): Add nr_minsym_types.
4153 (MINSYM_TYPE_BITS): Define.
4154 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4155 (domain_enum_tag): Add NR_DOMAINS.
4156 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4157 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4159 2015-08-15 Doug Evans <xdje42@gmail.com>
4161 * objfiles.h: Whitespace cleanup.
4162 * psympriv.h: Whitespace cleanup.
4163 * psymtab.c: Whitespace/coding convention cleanup.
4165 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4167 * inferior.c (detach_inferior_command): Don't call
4168 any_thread_of_process when pid is 0.
4169 (kill_inferior_command): Likewise.
4171 2015-08-14 Doug Evans <xdje42@gmail.com>
4174 * NEWS: Document new /s modifier for the disassemble command.
4175 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4176 (_initialize_cli_cmds): Update online docs of disassemble command.
4177 * disasm.c: #include "source.h".
4178 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4180 (dis_line_entry): New struct.
4181 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4182 (allocate_dis_line_table): New functions.
4183 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4184 (dump_insns): New arg end_pc. All callers updated.
4185 (do_mixed_source_and_assembly_deprecated): Renamed from
4186 do_mixed_source_and_assembly. All callers updated.
4187 (do_mixed_source_and_assembly): New function.
4188 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4189 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4190 DISASSEMBLY_SOURCE. All uses updated.
4191 (DISASSEMBLY_SOURCE): New macro.
4192 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4194 2015-08-14 Keith Seitz <keiths@redhat.com>
4196 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4197 `typename' to `type_name' to avoid C++ reserved word.
4199 2015-08-14 Keith Seitz <keiths@redhat.com>
4201 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4202 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4205 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4207 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4208 xstrprintf instead of malloc and sprintf.
4209 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4210 (lex_one_token): Likewise.
4212 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4214 * solib-svr4.c (read_program_header): Add base_addr argument to
4215 report the runtime address of the segment.
4216 (find_program_interpreter): Update read_program_header call to pass
4217 a NULL pointer for the new argument.
4218 (scan_dyntag): Add ptr_addr argument to report the runtime address
4220 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4221 read_program_header to get the base address of the dynamic segment.
4222 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4223 read_program_header.
4224 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4226 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4228 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4230 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4232 * d-exp.y (%union): Add voidval.
4233 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4234 name in the lexing stage.
4235 (PostfixExpression): Move symbol completion handling in grammar here
4236 from PrimaryExpression.
4237 (PrimaryExpression): Move routines to handle resolving identifier
4238 tokens in the grammar here from push_expression_name.
4239 (IdentifierExp): Remove the handling of alternating '.' and identifier
4241 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4242 (BasicType): Remove C-style typename rules.
4243 (d_type_from_name, d_module_from_name, push_variable)
4244 (push_fieldnames, push_type_name, push_module_name)
4245 (push_expression_name): Remove.
4246 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4247 (token_and_value): New type.
4248 (token_fifo, popping, name_obstack): New globals.
4249 (classify_name): New function.
4250 (classify_inner_name): Likewise.
4252 (d_parse): Initialize token_fifo, popping and name_obstack.
4254 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4256 * Makefile.in (SFILES): Add d-namespace.c.
4257 (COMMON_OBS): Add d-namespace.o.
4258 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4259 la_lookup_symbol_nonlocal callback function pointer.
4260 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4261 (d_lookup_nested_symbol): New declaration.
4262 * d-namespace.c: New file.
4264 2015-08-13 Pedro Alves <palves@redhat.com>
4266 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4267 cleanup after the decref cleanup, not before.
4269 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4271 * ada-lang.c: Include namespace.h
4272 (aux_add_nonlocal_symbols): Fix a function name in comment.
4273 (ada_add_block_renamings): New.
4274 (add_nonlocal_symbols): Add global renamings handling.
4275 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4277 (ada_add_all_symbols): ... this new function.
4278 (ada_add_block_symbols): Try to match the input name against the
4279 "using directives list", perform a recursive symbol lookup on
4280 the matched declarations.
4281 * block.h (struct block): Move the_namespace to top-level as
4282 namespace_info. Remove the language_specific field.
4283 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4284 * buildsym.h (using_directives): Rename into...
4285 (local_using_directives): ... this.
4286 (global_using_directives): New.
4287 (struct context_stack): Rename the using_directives field into
4288 local_using_directives.
4289 * buildsym.c (finish_block_internal): Deal with the proper
4290 using directives repository (local or global).
4291 (prepare_for_building): Reset local_using_directives. Assert
4292 that there is no pending global using directive.
4293 (reset_symtab_globals): Reset global_using_directives and
4294 local_using_directives.
4295 (end_symtab_get_static_block): Don't ignore symtabs that have
4296 only using directives.
4297 (push_context): Update references to local_using_directives.
4298 (buildsym_init): Do not reset using_directives.
4299 * cp-support.c: Include namespace.h.
4300 * cp-support.h (struct using_direct): Move to namespace.h.
4301 (cp_add_using_directives): Move to namespace.h.
4302 * cp-namespace.c: Include namespace.h
4303 (cp_add_using_directive): Move to namespace.c, rename it to
4304 add_using_directive, add a "using_directives" argument and use
4305 it as the pending using directives repository. All callers
4307 * dwarf2read.c (using_directives): New.
4308 (read_import_statement): Call using_directives.
4309 (read_func_scope): Update references to local_using_directives.
4310 (read_lexical_block_scope): Likewise.
4311 (read_namespace): Update the heading comment, call
4313 * namespace.h: New file.
4314 * namespace.c: New file.
4315 * Makefile.in (SFILES): Add namespace.c.
4316 (COMMON_OBS): Add namespace.o
4318 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4320 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4323 2015-08-12 Keith Seitz <keiths@redhat.com>
4325 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4326 reserved C++ keyword "explicit" to "explicit_loc".
4327 * breakpoint.c (create_overlay_event_breakpoint)
4328 (create_longjmp_master_breakpoint)
4329 (create_std_terminate_master_breakpoint)
4330 (create_exception_master_breakpoint, update_static_tracepoint):
4331 Rename reserved C++ keyword "explicit" to "explicit_loc".
4332 * completer.c (collect_explicit_location_matches)
4333 (explicit_location_completer): Rename reserved C++ keyword
4334 "explicit" to "explicit_loc".
4335 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4336 (canonicalize_linespec, create_sals_line_offset)
4337 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4338 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4339 "explicit" to "explicit_loc".
4340 * location.c (struct event_location) <explicit>: Rename to
4342 (initialize_explicit_location, new_explicit_location)
4343 (explicit_location_to_string_internal, explicit_location_to_linespec):
4344 Rename reserved C++ keyword "explicit" to "explicit_loc".
4345 * location.h (explicit_location_to_string)
4346 (explicit_location_to_linespec, initialize_explicit_location)
4347 (new_explicit_location): Rename reserved C++ keyword "explicit"
4349 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4350 keyword "explicit" to "explicit_loc".
4352 2015-08-12 Keith Seitz <keiths@redhat.com>
4354 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4355 and only call decode_line_1 when it is non-NULL.
4357 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4359 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4360 location address is not meaningful.
4361 (breakpoint_address_is_meaningful): Update comment.
4363 2015-08-11 Keith Seitz <keiths@redhat.com>
4365 * NEWS: Mention explicit locations.
4366 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4367 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4368 (_initialize_breakpoint): Update documentation for
4369 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4371 2015-08-11 Keith Seitz <keiths@redhat.com>
4373 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4374 explicit locations, options "--source", "--function",
4375 "--label", and "--line".
4377 2015-08-11 Keith Seitz <keiths@redhat.com>
4379 * completer.c: Include location.h.
4380 (enum match_type): New enum.
4381 (location_completer): Rename to ...
4382 (linespec_completer): ... this.
4383 (collect_explicit_location_matches, backup_text_ptr)
4384 (explicit_location_completer): New functions.
4385 (location_completer): "New" function; handle linespec
4386 and explicit location completions.
4387 (complete_line_internal): Remove all location completer-specific
4389 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4390 (find_toplevel_char): Export.
4391 (linespec_parse_line_offset): Export.
4392 Issue error if STRING is not numerical.
4393 (gdb_get_linespec_parser_quote_characters): New function.
4394 * linespec.h (linespec_parse_line_offset): Declare.
4395 (get_gdb_linespec_parser_quote_characters): Declare.
4396 (is_ada_operator): Declare.
4397 (find_toplevel_char): Declare.
4398 (linespec_lexer_lex_keyword): Declare.
4399 * location.c (explicit_to_event_location): New function.
4400 (explicit_location_lex_one): New function.
4401 (string_to_explicit_location): New function.
4402 (string_to_event_location): Handle explicit locations.
4403 * location.h (explicit_to_event_location): Declare.
4404 (string_to_explicit_location): Declare.
4406 2015-08-11 Keith Seitz <keiths@redhat.com>
4408 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4409 linespec into explicit location.
4410 * breakpoint.c (create_overlay_breakpoint)
4411 (create_longjmp_master_breakpoint)
4412 (create_std_terminate_master_breakpoint)
4413 (create_exception_master_breakpoint): Convert linespec into explicit
4415 (update_static_tracepoint): Convert linespec into explicit location.
4416 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4418 (struct linespec) <expression, expr_pc, source_filename>
4419 <function_name, label_name, line_offset>: Replace with ...
4420 <explicit>: ... this.
4421 <is_linespec>: New member.
4422 (PARSER_EXPLICIT): New accessor macro.
4423 (undefined_label_error): New function.
4424 (source_file_not_found_error): New function.
4425 (linespec_parse_basic): The parser result is now an explicit location.
4426 Use PARSER_EXPLICIT to access it.
4427 Use undefined_label_error.
4428 (canonicalize_linespec): Convert canonical linespec into explicit
4430 Move string representation of location to explicit_location_to_linespec
4431 and use it and explicit_location_to_string to save string
4432 representations of the canonical location.
4433 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4434 explicit location. Update all references.
4435 (convert_explicit_location_to_sals): New function.
4436 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4437 result's explicit location.
4438 (linespec_state_constructor): Initialize is_linespec.
4439 Use PARSER_EXPLICIT.
4440 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4442 (event_location_to_sals): For linespec locations, set is_linespec.
4443 Handle explicit locations.
4444 (decode_objc): 'ls' contains an explicit location now. Update all
4446 (symtabs_from_filename): Use source_file_not_found_error.
4447 * location.c (struct event_location.u) <explicit>: New member.
4448 (initialize_explicit_location): New function.
4449 (initialize_event_location): Initialize explicit locations.
4450 (new_explicit_location, get_explicit_location)
4451 (get_explicit_location_const): New functions.
4452 (explicit_to_string_internal): New function; most of contents moved
4453 from canonicalize_linespec.
4454 (explicit_location_to_string): New function.
4455 (explicit_location_to_linespec): New function.
4456 (copy_event_location, delete_event_location)
4457 (event_location_to_string_const, event_location_empty_p): Handle
4459 * location.h (enum offset_relative_sign, struct line_offset): Move
4460 here from linespec.h.
4461 (enum event_location_type): Add EXPLICIT_LOCATION.
4462 (struct explicit_location): New structure.
4463 (explicit_location_to_string): Declare.
4464 (explicit_location_to_linespec): Declare.
4465 (new_explicit_location, get_explicit_locationp
4466 (get_explicit_location_const, initialize_explicit_location): Declare.
4468 2015-08-11 Keith Seitz <keiths@redhat.com>
4470 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4471 linespec for stap probe to probe location.
4472 * breakpoint.c (create_longjmp_master_breakpoint)
4473 (create_exception_master_breakpoint): Likewise.
4474 (break_command_1): Remove local variable `arg_cp'.
4475 Check location type to set appropriate breakpoint ops methods.
4476 (trace_command): Likewise.
4477 * linespec.c (event_location_to_sals): Assert on probe locations.
4478 * location.c (EL_PROBE): Add macro definition.
4479 (new_probe_location, get_probe_location): New functions.
4480 (copy_event_location, delete_event_location, event_location_to_string)
4481 (string_to_event_location, event_location_empty_p): Handle probe
4483 * location.h (enum event_location_type): Add PROBE_LOCATION.
4484 (new_probe_location, get_probe_location): Declare.
4485 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4486 Convert linespec into probe location.
4488 2015-08-11 Keith Seitz <keiths@redhat.com>
4490 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4491 Convert linespec to address location.
4492 * linespec.c (canonicalize_linespec): Do not handle address
4494 (convert_address_location_to_sals): New function; contents moved
4496 (convert_linespc_to_sals): ... here.
4497 (parse_linespec): Remove address locations from linespec grammar.
4498 Remove handling of address locations.
4499 (linespec_lex_to_end): Remove handling of address linespecs.
4500 (event_location_to_sals): Handle ADDRESS_LOCATION.
4501 (linespec_expression_to_pc): Export.
4502 * linespec.h (linespec_expression_to_pc): Add declaration.
4503 * location.c (struct event_location.u) <address>: New member.
4504 (new_address_location, get_address_location): New functions.
4505 (copy_event_location, delete_event_location, event_location_to_string)
4506 (string_to_event_location, event_location_empty_p): Handle address
4508 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4509 (new_address_location, get_address_location): Declare.
4510 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4511 to address location.
4512 * spu-tdep.c (spu_catch_start): Likewise.
4514 2015-08-11 Keith Seitz <keiths@redhat.com>
4516 * ax-gdb.c: Include location.h.
4517 (agent_command_1) Use linespec location instead of address
4519 * break-catch-throw.c: Include location.h.
4520 (re_set_exception_catchpoint): Use linespec locations instead
4522 * breakpoint.c: Include location.h.
4523 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4524 (create_std_terminate_master_breakpoint)
4525 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4526 Use linespec location instead of address string.
4527 (print_breakpoint_location): Use locations and
4528 event_location_to_string.
4529 Print extra_string for pending locations for non-MI streams.
4530 (print_one_breakpoint_location): Use locations and
4531 event_location_to_string.
4532 (init_raw_breakpoint_without_location): Initialize b->location.
4533 (create_thread_event_breakpoint): Use linespec location instead of
4535 (init_breakpoint_sal): Likewise.
4536 Only save extra_string if it is non-NULL and not the empty string.
4537 Use event_location_to_string instead of `addr_string'.
4538 Constify `p' and `endp'.
4539 Use skip_spaces_const/skip_space_const instead of non-const versions.
4540 Copy the location into the breakpoint.
4541 If LOCATION is NULL, save the breakpoint address as a linespec location
4542 instead of an address string.
4543 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4544 event_location. All uses updated.
4545 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4546 (parse_breakpoint_sals): Use locations instead of address strings.
4547 Remove check for empty linespec with conditional.
4549 (decode_static_tracepoint_spec): Make argument const and update
4551 (create_breakpoint): Change `arg' to a struct event_location and
4553 Remove `copy_arg' and `addr_start'.
4554 If EXTRA_STRING is empty, set it to NULL.
4555 Don't populate `canonical' for pending breakpoints.
4556 Pass `extra_string' to find_condition_and_thread.
4557 Clear `extra_string' if `rest' was NULL.
4558 Do not error with "garbage after location" if setting a dprintf
4560 Copy the location into the breakpoint instead of an address string.
4561 (break_command_1): Use string_to_event_location and pass this to
4562 create_breakpoint instead of an address string.
4563 Check against `arg_cp' for a probe linespec.
4564 (dprintf_command): Use string_to_event_location and pass this to
4565 create_breakpoint instead of an address string.
4566 Throw an exception if no format string was specified.
4567 (print_recreate_ranged_breakpoint): Use event_location_to_string
4568 instead of address strings.
4569 (break_range_command, until_break_command)
4570 (init_ada_exception_breakpoint): Use locations instead
4572 (say_where): Print out extra_string for pending locations.
4573 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4575 (base_breakpoint_create_sals_from_location): Use struct event_location
4576 instead of address string.
4577 Remove `addr_start' and `copy_arg' parameters.
4578 (base_breakpoint_decode_location): Use struct event_location instead of
4580 (bkpt_re_set): Use locations instead of address strings.
4581 Use event_location_empty_p to check for unset location.
4582 (bkpt_print_recreate): Use event_location_to_string instead of
4584 Print out extra_string for pending locations.
4585 (bkpt_create_sals_from_location, bkpt_decode_location)
4586 (bkpt_probe_create_sals_from_location): Use struct event_location
4587 instead of address string.
4588 (bkpt_probe_decode_location): Use struct event_location instead of
4590 (tracepoint_print_recreate): Use event_location_to_string to
4591 recreate the tracepoint.
4592 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4593 (tracepoint_probe_create_sals_from_location)
4594 (tracepoint_probe_decode_location): Use struct event_location
4595 instead of address string.
4596 (dprintf_print_recreate): Use event_location_to_string to recreate
4598 (dprintf_re_set): Remove check for valid/missing format string.
4599 (strace_marker_create_sals_from_location)
4600 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4601 (update_static_tracepoint): Use struct event_location instead of
4603 (location_to_sals): Likewise.
4604 Pass `extra_string' to find_condition_and_thread.
4605 For newly resolved pending breakpoint locations, clear the location's
4606 string representation.
4607 Assert that the breakpoint's condition string is NULL when
4608 condition_not_parsed.
4609 (breakpoint_re_set_default, create_sals_from_location_default)
4610 (decode_location_default, trace_command, ftrace_command)
4611 (strace_command, create_tracepoint_from_upload): Use locations
4612 instead of address strings.
4613 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4614 Use struct event_location instead of address string.
4616 <decode_location>: Likewise.
4617 (struct breakpoint) <addr_string>: Change to struct event_location
4618 and rename `location'.
4619 <addr_string_range_end>: Change to struct event_location and rename
4620 `location_range_end'.
4621 (create_breakpoint): Use struct event_location instead of address
4623 * cli/cli-cmds.c: Include location.h.
4624 (edit_command, list_command): Use locations instead of address strings.
4625 * elfread.c: Include location.h.
4626 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4627 * guile/scm-breakpoint.c: Include location.h.
4628 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4629 (gdbscm_register_breakpoint): Use locations instead of address
4631 * linespec.c: Include location.h.
4632 (struct ls_parser) <stream>: Change to const char *.
4633 (PARSER_STREAM): Update.
4634 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4635 keywords must be followed by whitespace.
4636 (canonicalize_linespec): Save a linespec location into `canonical'.
4637 Save a canonical linespec into `canonical'.
4638 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4640 Update function description.
4641 (linespec_parser_new): Initialize `parser'.
4642 Update initialization of parsing stream.
4643 (event_location_to_sals): New function.
4644 (decode_line_full): Change `argptr' to a struct event_location and
4645 rename it `location'.
4646 Use locations instead of address strings.
4647 Call event_location_to_sals instead of parse_linespec.
4648 (decode_line_1): Likewise.
4649 (decode_line_with_current_source, decode_line_with_last_displayed)
4650 Use locations instead of address strings.
4651 (decode_objc): Likewise.
4652 Change `argptr' to const char * and rename `arg'.
4653 (destroy_linespec_result): Delete the linespec result's location
4654 instead of freeing the address string.
4655 * linespec.h (struct linespec_result) <addr_string>: Change to
4656 struct event_location and rename to ...
4657 <location>: ... this.
4658 (decode_line_1, decode_line_full): Change `argptr' to struct
4659 event_location. All callers updated.
4660 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4661 (mi_cmd_break_insert_1): Use locations instead of address strings.
4662 Throw an error if there was "garbage" at the end of the specified
4664 * probe.c: Include location.h.
4665 (parse_probes): Change `argptr' to struct event_location.
4666 Use event locations instead of address strings.
4667 * probe.h (parse_probes): Change `argptr' to struct event_location.
4668 * python/py-breakpoint.c: Include location.h.
4669 (bppy_get_location): Constify local variable `str'.
4670 Use event_location_to_string.
4671 (bppy_init): Use locations instead of address strings.
4672 * python/py-finishbreakpoint.c: Include location.h.
4673 (bpfinishpy_init): Remove local variable `addr_str'.
4674 Use locations instead of address strings.
4675 * python/python.c: Include location.h.
4676 (gdbpy_decode_line): Use locations instead of address strings.
4677 * remote.c: Include location.h.
4678 (remote_download_tracepoint): Use locations instead of address
4680 * spu-tdep.c: Include location.h.
4681 (spu_catch_start): Remove local variable `buf'.
4682 Use locations instead of address strings.
4683 * tracepoint.c: Include location.h.
4684 (scope_info): Use locations instead of address strings.
4685 (encode_source_string): Constify parameter `src'.
4686 * tracepoint.h (encode_source_string): Likewise.
4688 2015-08-11 Keith Seitz <keiths@redhat.com>
4690 * Makefile.in (SFILES): Add location.c.
4691 (HFILES_NO_SRCDIR): Add location.h.
4692 (COMMON_OBS): Add location.o.
4693 * linespec.c (linespec_lex_to_end): New function.
4694 * linespec.h (linespec_lex_to_end): Declare.
4695 * location.c: New file.
4696 * location.h: New file.
4698 2015-08-11 Keith Seitz <keiths@redhat.com>
4700 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4701 Renamed to create_sals_from_location.
4702 <decode_linespec>: Renamed to decode_location.
4704 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4705 (create_sals_from_location_default): ... this.
4706 (addr_string_to_sals): Renamed to ...
4707 (location_to_sals): ... this.
4708 (decode_linespec_default): Renamed to ...
4709 (decode_location_default): ... this.
4710 (base_breakpoint_create_sals_from_address): Renamed to ...
4711 (base_breakpoint_create_sals_from_location): ... this.
4712 (bkpt_create_sals_from_address): Renamed to ...
4713 (bkpt_create_sals_from_location): ... this.
4714 (bkpt_decode_linespec): Renamed to ...
4715 (bkpt_decode_location): ... this.
4716 (bkpt_probe_create_sals_from_address): Renamed to ...
4717 (bkpt_probe_create_sals_from_location): ... this.
4718 (tracepoint_create_sals_from_address): Renamed to ...
4719 (tracepoint_create_sals_from_location): ... this.
4720 (tracepoint_decode_linespec): Renamed to ...
4721 (tracepoint_decode_location): ... this.
4722 (tracepoint_probe_create_sals_from_address): Renamed to ...
4723 (tracepoint_probe_create_sals_from_location): ... this.
4724 (tracepoint_probe_decode_linespec): Renamed to ...
4725 (tracepoint_probe_decode_location): ... this.
4726 (strace_marker_create_sals_from_address): Renamed to ...
4727 (strace_marker_create_sals_from_location): ... this.
4728 (decode_linespec_default): Renamed to ...
4729 (decode_location_default): ... this.
4731 2015-08-10 Doug Evans <dje@google.com>
4732 Keith Seitz <keiths@redhat.com>
4735 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4736 make_file_symbol_completion_list and made static.
4737 (make_file_symbol_completion_list): New function.
4739 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4741 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4742 trailing new-line at end of warning message.
4743 (proceed): Add i18n marker to error messages.
4745 2015-08-07 Pedro Alves <palves@redhat.com>
4747 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4749 2015-08-07 Pedro Alves <palves@redhat.com>
4751 * s390-linux-tdep.c (is_non_branch_ril)
4752 (s390_displaced_step_copy_insn): New functions.
4753 (s390_displaced_step_fixup): Update comment.
4754 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4755 gdbarch_displaced_step_copy_insn hook.
4757 2015-08-07 Pedro Alves <palves@redhat.com>
4759 * infrun.c (displaced_step_prepare_throw): Return -1 if
4760 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4762 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4763 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4765 (ppc_displaced_step_copy_insn): New function.
4766 (ppc_displaced_step_fixup): Update comment.
4767 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4768 gdbarch_displaced_step_copy_insn hook.
4769 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4771 * gdbarch.h: Regenerate.
4773 2015-08-07 Pedro Alves <palves@redhat.com>
4775 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4777 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4778 Return false if dispaced stepping failed before.
4779 (resume): Pass the current inferior to
4780 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4781 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4782 displaced_stepping_failed flag, and fall back to an in-line
4785 2015-08-07 Pedro Alves <palves@redhat.com>
4787 * darwin-nat.c (darwin_stop): Rename to ...
4788 (darwin_interrupt): ... this.
4789 (_initialize_darwin_inferior): Adjust.
4790 * gnu-nat.c (gnu_stop): Delete.
4791 (gnu_target): Don't install gnu_stop.
4792 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4793 (inf_ptrace_interrupt): ... this.
4794 (inf_ptrace_target): Adjust.
4795 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4797 * linux-nat (linux_nat_stop): Rename to ...
4798 (linux_nat_interrupt): ... this.
4799 (linux_nat_stop): Reimplement.
4800 (linux_nat_add_target): Install linux_nat_interrupt.
4801 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4802 (nto_handle_sigint_twice): ... this.
4803 (nto_interrupt): Rename to ...
4804 (nto_handle_sigint): ... this. Call target_interrupt instead of
4806 (procfs_wait): Adjust.
4807 (procfs_stop): Rename to ...
4808 (procfs_interrupt): ... this.
4809 (init_procfs_targets): Adjust.
4810 * procfs.c (procfs_stop): Rename to ...
4811 (procfs_interrupt): ... this.
4812 (procfs_target): Adjust.
4813 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4814 (m32r_interrupt): ... this.
4815 (init_m32r_ops): Adjust.
4816 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4817 (gdbsim_interrupt_inferior): ... this.
4818 (gdbsim_stop): Rename to ...
4819 (gdbsim_interrupt): ... this.
4820 (gdbsim_cntrl_c): Adjust.
4821 (init_gdbsim_ops): Adjust.
4822 * remote.c (sync_remote_interrupt): Adjust comments.
4823 (remote_stop_as): Rename to ...
4824 (remote_interrupt_as): ... this.
4825 (remote_stop): Adjust comment.
4826 (remote_interrupt): New function.
4827 (init_remote_ops): Install remote_interrupt.
4828 * target.c (target_interrupt): New function.
4829 * target.h (struct target_ops) <to_interrupt>: New field.
4830 (target_interrupt): New declaration.
4831 * windows-nat.c (windows_stop): Rename to ...
4832 (windows_interrupt): ... this.
4833 * target-delegates.c: Regenerate.
4835 2015-08-07 Pedro Alves <palves@redhat.com>
4837 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4838 threads" as alternative to "switching back to stepped thread".
4840 2015-08-07 Pedro Alves <palves@redhat.com>
4842 * NEWS: Mention "maint set/show target-non-stop".
4843 * breakpoint.c (update_global_location_list): Check
4844 target_is_non_stop_p instead of non_stop.
4845 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4846 * infrun.c (show_can_use_displaced_stepping)
4847 (can_use_displaced_stepping_p, start_step_over_inferior):
4849 (internal_resume_ptid): New function.
4851 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4852 all-stop mode but the target is always in non-stop mode, start all
4853 the other threads that are implicitly resumed too.
4854 (for_each_just_stopped_thread, fetch_inferior_event)
4855 (adjust_pc_after_break, stop_all_threads): Check
4856 target_is_non_stop_p instead of non_stop.
4857 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4858 with the target always in non-stop mode.
4859 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4860 instead of non_stop.
4861 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4862 instead of non_stop.
4863 (keep_going_stepped_thread): Use internal_resume_ptid.
4864 (stop_waiting): If in all-stop mode, and the target is in non-stop
4865 mode, stop all threads.
4866 (keep_going_pass): Likewise, when starting a new in-line step-over
4868 * linux-nat.c (get_pending_status, select_event_lwp)
4869 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4870 target_is_non_stop_p instead of non_stop.
4871 (linux_nat_always_non_stop_p): New function.
4872 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4873 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4874 * target-delegates.c: Regenerate.
4875 * target.c (target_is_non_stop_p): New function.
4876 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4877 (maint_set_target_non_stop_command)
4878 (maint_show_target_non_stop_command): New functions.
4879 (_initilize_target): Install "maint set/show target-non-stop"
4881 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4882 (target_non_stop_enabled): New declaration.
4883 (target_is_non_stop_p): New declaration.
4885 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4887 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4888 has a pending status, return true.
4889 * gdbthread.h: Include target/waitstatus.h.
4890 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4891 stop_pc>: New fields.
4892 (struct thread_info) <resumed>: New field.
4893 (set_resumed): Declare.
4894 * infrun.c: Include "event-loop.h".
4895 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4896 (infrun_async): New function.
4897 (clear_step_over_info): Add debug output.
4898 (displaced_step_in_progress_any_inferior): New function.
4899 (displaced_step_fixup): New returns int.
4900 (start_step_over): Handle in-line step-overs too. Assert the
4901 thread is marked resumed.
4902 (resume_cleanups): Clear the thread's resumed flag.
4903 (resume): Set the thread's resumed flag. Return early if the
4904 thread has a pending status. Allow stepping a breakpoint with no
4906 (proceed): Adjust to check 'resumed' instead of 'executing'.
4907 (clear_proceed_status_thread): If the thread has a pending status,
4908 and that status is a finished step, discard the pending status.
4909 (clear_proceed_status): Don't clear step_over_info here.
4910 (random_pending_event_thread, do_target_wait): New functions.
4911 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4913 (wait_one): New function.
4914 (THREAD_STOPPED_BY): New macro.
4915 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4916 (thread_stopped_by_hw_breakpoint): New functions.
4917 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4919 (handle_inferior_event): Also call set_resumed(false) on all
4920 threads implicitly stopped by the event.
4921 (restart_threads, resumed_thread_with_pending_status): New
4923 (finish_step_over): If we were doing an in-line step-over before,
4924 and no longer are after trying to start a new step-over, restart
4925 all threads. If we have multiple threads with pending events,
4926 save the current event and go through the event loop again.
4927 (handle_signal_stop): Return early if finish_step_over returns
4929 <random signal>: If we get a signal while stepping over a
4930 breakpoint in-line in non-stop mode, restart all threads. Clear
4931 step_over_info before delivering the signal.
4932 (keep_going_stepped_thread): Use internal_error instead of
4933 gdb_assert. Mark the thread as resumed.
4934 (keep_going_pass_signal): Assert the thread isn't already resumed.
4935 If some other thread is doing an in-line step-over, defer the
4936 resume. If we just started a new in-line step-over, stop all
4937 threads. Don't clear step_over_info.
4938 (infrun_async_inferior_event_handler): New function.
4939 (_initialize_infrun): Create async event handler with
4940 infrun_async_inferior_event_handler as callback.
4941 (infrun_async): New declaration.
4942 * target.c (target_async): New function.
4943 * target.h (target_async): Declare macro and readd as function
4945 * target/waitstatus.h (enum target_stop_reason)
4946 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4947 * thread.c (new_thread): Clear the new waitstatus field.
4948 (set_resumed): New function.
4950 2015-08-07 Pedro Alves <palves@redhat.com>
4952 * infrun.c (keep_going_stepped_thread): New function, factored out
4954 (switch_back_to_stepped_thread): ... here.
4956 2015-08-07 Pedro Alves <palves@redhat.com>
4958 * infrun.c (currently_stepping): Extend intro comment.
4959 * target.h (target_resume): Extend intro comment.
4961 2015-08-07 Pedro Alves <palves@redhat.com>
4963 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4964 of inferior_ptid. If the stepped thread vanished, return 0
4965 instead of resuming here. Use reset_ecs. Print the prev_pc and
4966 the current stop_pc in log message. Clear trap_expected if the
4967 thread advanced. Don't pass currently_stepping to
4970 2015-08-07 Pedro Alves <palves@redhat.com>
4972 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4973 * infrun.c (struct execution_control_state): Move higher up in the
4975 (reset_ecs): New function.
4976 (start_step_over): Now returns int. Rewrite to use
4977 keep_going_pass_signal instead of manually starting a displaced step.
4978 (resume): Don't call set_running here. If displaced stepping
4979 can't start now, clear trap_expected.
4980 (find_thread_needs_step_over): Delete function.
4981 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4982 If the current thread needs a step over, push it in the step-over
4983 chain. Don't set insert breakpoints nor call resume directly
4984 here. Instead rewrite to use start_step_over and
4985 keep_going_pass_signal.
4986 (finish_step_over): New function.
4987 (handle_signal_stop): Call finish_step_over instead of
4989 (switch_back_to_stepped_thread): If the event thread needs another
4990 step-over do that first. Use start_step_over.
4991 (keep_going_pass_signal): New function, factored out from ...
4992 (keep_going): ... here.
4993 (_initialize_infrun): Comment moved here.
4994 * thread.c (set_running_thread): New function.
4995 (set_running, finish_thread_state): Use set_running_thread.
4997 2015-08-07 Pedro Alves <palves@redhat.com>
4999 * gdbthread.h (struct thread_info) <step_over_prev,
5000 step_over_next>: New fields.
5001 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5002 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5004 * infrun.c (struct displaced_step_request): Delete.
5005 (struct displaced_step_inferior_state) <step_request_queue>:
5007 (displaced_step_prepare): Assert that trap_expected is set. Use
5008 thread_step_over_chain_enqueue. Split starting a new displaced
5010 (start_step_over): ... this new function.
5011 (resume): Assert the thread isn't waiting for a step over already.
5012 (proceed): Assert the thread isn't waiting for a step over
5014 (infrun_thread_stop_requested): Adjust to remove threads from the
5015 embedded step-over chain.
5016 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5017 displaced_step_fixup.
5018 (handle_signal_stop): Call start_step_over after
5019 displaced_step_fixup.
5020 * infrun.h (step_over_queue_head): New declaration.
5021 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5022 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5023 (thread_step_over_chain_enqueue)
5024 (thread_step_over_chain_remove): New functions.
5025 (delete_thread_1): Remove thread from the step-over chain.
5027 2015-08-07 Pedro Alves <palves@redhat.com>
5029 * infrun.c (thread_still_needs_step_over): Rename to ...
5030 (thread_still_needs_step_over_bp): ... this.
5031 (enum step_over_what): New.
5032 (thread_still_needs_step_over): Reimplement.
5034 2015-08-07 Pedro Alves <palves@redhat.com>
5036 * remote.c (remote_wait_as): If not waiting for a stop reply,
5037 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5038 requested, don't block waiting forever.
5040 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5042 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5043 waitstatus pointers instead of an ecs. Adjust.
5044 (handle_inferior_event): Adjust caller.
5046 2015-08-07 Pedro Alves <palves@redhat.com>
5048 * infrun.c (handle_inferior_event): If we get
5049 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5050 mode, mark all threads of the exiting process as not-executing.
5051 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5052 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5053 exiting process, if inferior_ptid still points at a process.
5054 * thread.c (struct current_thread_cleanup) <next>: New field.
5055 (current_thread_cleanup_chain): New global.
5056 (restore_current_thread_ptid_changed): New function.
5057 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5058 current_thread_cleanup_chain list.
5059 (make_cleanup_restore_current_thread): Add the cleanup data to the
5060 current_thread_cleanup_chain list.
5061 (_initialize_thread): Install restore_current_thread_ptid_changed
5062 as thread_ptid_changed observer.
5064 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5066 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5067 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5068 smaller than expected.
5070 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5072 * stack.c (get_frame_language): Moved ...
5073 * frame.c (get_frame_language): ... to here.
5074 * language.h (get_frame_language): Declaration moved to frame.h.
5075 * frame.h: Add language.h include, for language enum.
5076 (get_frame_language): Declaration moved from language.h.
5077 * language.c: Add frame.h include.
5078 * top.c: Add frame.h include.
5079 * symtab.h (struct obj_section): Declare.
5080 (struct cmd_list_element): Declare.
5082 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5084 * language.c (show_language_command): Find selected frame before
5085 asking for the language of that frame.
5086 (set_language_command): Likewise.
5087 * language.h (get_frame_language): Add frame parameter.
5088 * stack.c (get_frame_language): Add frame parameter, assert
5089 parameter is not NULL, update comment and reindent.
5090 * top.c (check_frame_language_change): Pass the selected frame
5091 into get_frame_language.
5093 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5095 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5096 (pt_btrace_insn_flags): New.
5097 (ftrace_add_pt): Call pt_btrace_insn_flags.
5098 * btrace.h (btrace_insn_flag): New.
5099 (btrace_insn) <flags>: New.
5100 * record-btrace.c (btrace_insn_history): Print insn prefix.
5101 * NEWS: Announce it.
5103 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5105 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5106 * configure: Regenerate.
5108 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5110 * Makefile.in (LIBICONV): Define.
5111 (CLIBS): Add LIBICONV.
5112 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5113 * configure: Regenerate.
5115 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5116 Pedro Alves <palves@redhat.com>
5118 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5119 (arm_set_abi): Likewise.
5120 * ax-general.c (ax_print): Likewise.
5121 * c-exp.y (exp : string_exp): Likewise.
5122 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5123 (do_compile_dwarf_expr_to_c): Likewise.
5124 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5126 * dwarf2expr.c (execute_stack_op): Likewise.
5127 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5128 (disassemble_dwarf_expression): Likewise.
5129 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5130 (read_array_order): Likewise.
5131 (abbrev_table_read_table): Likewise.
5132 (read_attribute_value): Likewise.
5133 (skip_unknown_opcode): Likewise.
5134 (dwarf_decode_macro_bytes): Likewise.
5135 (dwarf_decode_macros): Likewise.
5136 * eval.c (value_f90_subarray): Likewise.
5137 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5138 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5139 * infrun.c (handle_command): Likewise.
5140 * memory-map.c (memory_map_start_memory): Likewise.
5141 * osabi.c (set_osabi): Likewise.
5142 * parse.c (operator_length_standard): Likewise.
5143 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5144 single return point.
5145 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5146 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5147 (gdbpy_lookup_global_symbol): Likewise.
5148 * record-full.c (record_full_restore): Likewise.
5149 * regcache.c (regcache_register_status): Likewise.
5150 (regcache_raw_read): Likewise.
5151 (regcache_cooked_read): Likewise.
5152 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5153 * symtab.c (initialize_ordinary_address_classes): Likewise.
5154 * target-debug.h (target_debug_print_signals): Likewise.
5155 * utils.c (do_restore_current_language): Likewise.
5157 2015-08-06 Clem Dickey <clemd@acm.org>
5160 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5162 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5164 * complaints.c (enum complaint_series): Add newlines and remove
5165 out of date comment.
5166 (struct complaints) <series>: Change type to enum
5167 complaint_series and remove out of date comment.
5168 (symfile_complaint_hook): Use equivalent enum value
5169 ISOLATED_MESSAGE instead of 0.
5171 2015-08-06 Pedro Alves <palves@redhat.com>
5173 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5176 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5178 * common/agent.c (symbol_list) <required>: Remove.
5180 2015-08-06 Pedro Alves <palves@redhat.com>
5182 * target/waitstatus.h (enum target_stop_reason)
5183 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5185 2015-08-05 Pedro Alves <palves@redhat.com>
5186 Joel Brobecker <brobecker@adacore.com>
5188 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5189 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5190 case where BS->STOP is not set.
5192 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5194 * nat/gdb_thread_db.h: Add copyright header.
5195 Protect against multiple inclusion.
5197 2015-08-05 Yao Qi <yao.qi@linaro.org>
5199 * aarch64-linux-nat.c (get_thread_id): Remove.
5200 (debug_reg_change_callback): Call ptid_get_lwp instead of
5202 (fetch_gregs_from_thread): Likewise.
5203 (store_gregs_to_thread): Likewise.
5204 (fetch_fpregs_from_thread): Likewise.
5205 (store_fpregs_to_thread): Likewise.
5206 (aarch64_linux_get_debug_reg_capacity): Likewise.
5207 * arm-linux-nat.c (get_thread_id): Remove.
5208 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5209 * xtensa-linux-nat.c (get_thread_id): Remove.
5210 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5211 * arm-linux-nat.c (get_thread_id): Remove.
5212 (GET_THREAD_ID): Remove.
5213 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5214 (store_fpregs, fetch_regs, store_regs): Likewise.
5215 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5216 (fetch_vfp_regs, store_vfp_regs): Likewise.
5217 (arm_linux_read_description): Likewise.
5218 (arm_linux_get_hwbp_cap): Likewise.
5219 * xtensa-linux-nat.c (get_thread_id): Remove.
5220 (GET_THREAD_ID): Remove.
5221 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5224 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5226 * python/py-linetable.c: Fix case of Linetable to LineTable
5227 in docstrings and code comments.
5228 * python/py-symtab.c: Same.
5230 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5232 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5234 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5237 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5240 2015-08-04 Pedro Alves <palves@redhat.com>
5242 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5243 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5244 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5245 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5246 (td_thr_validate_ftype, td_thr_get_info_ftype)
5247 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5248 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5250 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5251 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5252 local macros and use them instead of verbose_dlsym and dlsym
5255 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5257 * nios2-tdep.h: Include opcode/nios2.h here.
5258 (NIOS2_CDX_OPCODE_SIZE): New.
5259 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5260 * nios2-tdep.c: Don't include opcode/nios2.h here.
5261 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5263 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5264 (nios2_match_addi, nios2_match_orhi): Likewise.
5265 (nios2_match_stw, nios2_match_ldw): Likewise.
5266 (nios2_match_rdctl): Likewise.
5267 (nios2_match_stwm, nios2_match_ldwm): New.
5268 (nios2_match_branch): Add cases for R2 encodings.
5269 (nios2_match_jmpi, nios2_match_calli): Likewise.
5270 (nios2_match_jmpr, nios2_match_callr): Likewise.
5271 (nios2_match_break, nios2_match_trap): Likewise.
5272 (nios2_in_epilogue_p): Add R2 support.
5273 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5275 (nios2_breakpoint_from_pc): Handle R2 instructions.
5276 (nios2_get_next_pc): Likewise. Adjust call to
5277 tdep->syscall_next_pc.
5278 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5279 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5280 instruction field macros instead of literal hex values.
5281 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5282 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5283 Use size field from OP instead of assuming all instructions
5285 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5287 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5289 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5290 variable warning with some compilers.
5292 2015-08-03 Yao Qi <yao.qi@linaro.org>
5294 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5295 in comment. Replace "rw" with "type".
5296 (arm_linux_remove_watchpoint): Change type of "rw" to
5297 "enum target_hw_bp_type".
5299 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5301 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5303 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5304 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5305 * mt-tdep.c (mt_skip_prologue): Likewise.
5306 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5308 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5310 * ada-exp.y (write_object_renaming): Replace struct
5311 ada_symbol_info with struct block_symbol. Update field
5312 references accordingly.
5313 (block_lookup, select_possible_type_sym): Likewise.
5314 (find_primitive_type): Likewise. Also update call to
5315 ada_lookup_symbol to extract the symbol itself.
5316 (write_var_or_type, write_name_assoc): Likewise.
5317 * ada-lang.h (struct ada_symbol_info): Remove.
5318 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5319 struct block_symbol.
5320 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5321 (ada_lookup_symbol): Return struct block_symbol instead of a
5323 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5324 with struct block_symbol.
5325 (resolve_subexp, ada_resolve_function, sort_choices,
5326 user_select_syms, is_nonfunction, add_defn_to_vec,
5327 num_defns_collected, defns_collected,
5328 symbols_are_identical_enums, remove_extra_symbols,
5329 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5330 ada_lookup_symbol_list, ada_iterate_over_symbols,
5331 ada_lookup_encoded_symbol, get_var_value): Likewise.
5332 (ada_lookup_symbol): Return a block_symbol instead of a mere
5333 symbol. Replace struct ada_symbol_info with struct
5335 (ada_lookup_symbol_nonlocal): Likewise.
5336 (standard_lookup): Make block passing explicit through
5337 lookup_symbol_in_language.
5338 * ada-tasks.c (get_tcb_types_info): Update the calls to
5339 lookup_symbol_in_language to extract the mere symbol out of the
5341 (ada_tasks_inferior_data_sniffer): Likewise.
5342 * ax-gdb.c (gen_static_field): Likewise for the call to
5344 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5346 (gen_expr): Likewise.
5347 * c-exp.y: Likewise. Remove uses of block_found.
5348 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5349 (classify_name): Likewise. Rename the "sym" local variable to
5351 * c-valprint.c (print_unpacked_pointer): Likewise.
5352 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5353 "sym" parameter from struct symbol * to struct block_symbol.
5354 Use it to remove uses of block_found. Deal with struct
5355 block_symbol from lookup functions.
5356 (gcc_convert_symbol): Likewise. Update the call to
5358 * compile/compile-object-load.c (compile_object_load): Deal with
5359 struct block_symbol from lookup functions.
5360 * cp-namespace.c (cp_lookup_nested_symbol_1,
5361 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5362 cp_search_static_and_baseclasses,
5363 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5364 cp_lookup_symbol_imports_or_template,
5365 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5366 lookup_namespace_scope, cp_lookup_nonlocal,
5367 find_symbol_in_baseclass): Return struct block_symbol instead of
5368 mere symbols and deal with struct block_symbol from lookup
5370 * cp-support.c (inspect_type, replace_typedefs,
5371 cp_lookup_rtti_type): Deal with struct block_symbol from
5373 * cp-support.h (cp_lookup_symbol_nonlocal,
5374 cp_lookup_symbol_from_namespace,
5375 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5376 Return struct block_symbol instead of mere symbols.
5377 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5379 Deal with struct block_symbol from lookup functions. Remove
5380 uses of block_found.
5381 * eval.c (evaluate_subexp_standard): Update call to
5382 cp_lookup_symbol_namespace.
5383 * f-exp.y: Deal with struct block_symbol from lookup functions.
5384 Remove uses of block_found.
5386 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5387 lookup_enum, lookup_template_type, check_typedef): Deal with
5388 struct block_symbol from lookup functions.
5389 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5390 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5391 (gdbscm_lookup_global_symbol): Likewise.
5392 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5393 * go-exp.y: Likewise. Remove uses of block_found.
5394 (package_name_p, classify_packaged_name, classify_name):
5396 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5397 * jv-exp.y (push_variable): Likewise.
5398 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5399 * language.c (language_bool_type): Likewise.
5400 * language.h (struct language_defn): Update
5401 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5403 * linespec.c (find_label_symbols): Deal with struct block_symbol
5404 from lookup functions.
5405 * m2-exp.y: Likewise. Remove uses of block_found.
5407 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5408 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5409 * p-exp.y: Likewise. Remove uses of block_found.
5411 * p-valprint.c (pascal_val_print): Likewise.
5412 * parse.c (write_dollar_variable): Likewise. Remove uses of
5414 * parser-defs.h (struct symtoken): Turn the SYM field into a
5415 struct block_symbol.
5416 * printcmd.c (address_info): Deal with struct block_symbol from
5418 * python/py-frame.c (frapy_read_var): Likewise.
5419 * python/py-symbol.c (gdbpy_lookup_symbol,
5420 gdbpy_lookup_global_symbol): Likewise.
5421 * skip.c (skip_function_command): Likewise.
5422 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5423 block_symbol instead of a mere symbol.
5424 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5425 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5426 * solib.c (solib_global_lookup): Likewise.
5427 * solist.h (solib_global_lookup): Likewise.
5428 (struct target_so_ops): Update lookup_lib_global_symbol to
5429 return a struct block_symbol rather than a mere symbol.
5430 * source.c (select_source_symtab): Deal with struct block_symbol
5431 from lookup functions.
5432 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5434 * symfile.c (set_initial_language): Likewise.
5435 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5437 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5438 (struct symbol_cache_slot): Turn the FOUND field into a struct
5440 (block_found): Remove.
5441 (eq_symbol_entry): Update to deal with struct block_symbol in
5443 (symbol_cache_lookup): Return a struct block_symbol rather than
5445 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5446 appropriately the cache slots. Update callers.
5447 (symbol_cache_dump): Update cache slots handling to the type
5449 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5450 lookup_symbol_aux, lookup_local_symbol,
5451 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5452 lookup_symbol_in_objfile_symtabs,
5453 lookup_symbol_in_objfile_from_linkage_name,
5454 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5455 lookup_symbol_in_static_block, lookup_static_symbol,
5456 lookup_global_symbol):
5457 Return a struct block_symbol rather than a mere symbol. Deal
5458 with struct block_symbol from other lookup functions. Remove
5459 uses of block_found.
5460 (lookup_symbol_in_block): Remove uses of block_found.
5461 (struct global_sym_lookup_data): Turn the RESULT field into a
5462 struct block_symbol.
5463 (lookup_symbol_global_iterator_cb): Update references to the
5465 (search_symbols): Deal with struct block_symbol from lookup
5467 * symtab.h (struct block_symbol): New structure.
5468 (block_found): Remove.
5469 (lookup_symbol_in_language, lookup_symbol,
5470 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5471 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5472 lookup_global_symbol_from_objfile): Return a struct block_symbol
5473 rather than just a mere symbol. Update comments to remove
5474 mentions of block_found.
5475 * valops.c (find_function_in_inferior,
5476 value_struct_elt_for_reference, value_maybe_namespace_elt,
5477 value_of_this): Deal with struct block_symbol from lookup
5479 * value.c (value_static_field, value_fn_field): Likewise.
5481 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5483 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5486 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5487 Pedro Alves <palves@redhat.com>
5489 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5490 type or value instead of integer.
5491 (aarch64_linux_insert_watchpoint): Likewise.
5492 (aarch64_linux_remove_watchpoint): Likewise.
5493 * ada-lang.c (ada_op_print_tab): Likewise.
5494 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5495 (amd64_linux_syscall_record_common): Likewise.
5496 * arch-utils.c (target_byte_order_user): Likewise.
5497 (default_byte_order): Likewise.
5498 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5499 (arm_linux_get_hwbp_type): Likewise.
5500 (arm_linux_hw_watchpoint_initialize): Likewise.
5501 (arm_linux_insert_watchpoint): Likewise.
5502 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5503 (arm_linux_syscall_record): Likewise.
5504 * breakpoint.c (update_watchpoint): Likewise.
5505 (breakpoint_here_p): Likewise.
5506 (bpstat_print): Likewise.
5507 (enable_breakpoint_disp): Likewise.
5508 * c-lang.c (c_op_print_tab): Likewise.
5509 * cli/cli-decode.c (add_info_alias): Likewise.
5510 * d-lang.c (d_op_print_tab): Likewise.
5511 * eval.c (evaluate_subexp_standard): Likewise.
5512 * f-exp.y (dot_ops): Likewise.
5513 (f77_keywords): Likewise.
5514 * f-lang.c (f_op_print_tab): Likewise.
5515 * go-lang.c (go_op_print_tab): Likewise.
5516 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5517 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5518 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5519 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5520 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5521 (struct scm_from_stringn_data): Likewise.
5522 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5523 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5524 (ia64_linux_remove_watchpoint): Likewise.
5525 (ia64_linux_can_use_hw_breakpoint): Likewise.
5526 * infrun.c (print_stop_event): Likewise.
5527 * jv-lang.c (java_op_print_tab): Likewise.
5528 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5529 * linux-nat.h (struct lwp_info): Likewise.
5530 * linux-thread-db.c (enable_thread_event): Likewise.
5531 * m2-lang.c (m2_op_print_tab): Likewise.
5532 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5533 (mi_cmd_stack_list_variables): Likewise.
5534 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5535 * mi/mi-out.c (mi_table_begin): Likewise.
5536 (mi_table_header): Likewise.
5537 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5538 (mips_linux_insert_watchpoint): Likewise.
5539 (mips_linux_remove_watchpoint): Likewise.
5540 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5541 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5542 (mips_linux_watch_type_to_irw): Likewise.
5543 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5544 (procfs_insert_hw_watchpoint): Likewise.
5545 (procfs_remove_hw_watchpoint): Likewise.
5546 (procfs_hw_watchpoint): Likewise.
5547 (procfs_can_use_hw_breakpoint): Likewise.
5548 (procfs_remove_hw_watchpoint): Likewise.
5549 (procfs_insert_hw_watchpoint): Likewise.
5550 * p-lang.c (pascal_op_print_tab): Likewise.
5551 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5552 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5553 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5554 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5555 (procfs_insert_watchpoint): Likewise.
5556 (procfs_remove_watchpoint): Likewise.
5557 * psymtab.c (recursively_search_psymtabs): Likewise.
5558 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5559 (m32r_insert_watchpoint): Likewise.
5560 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5561 (mips_insert_watchpoint): Likewise.
5562 (mips_remove_watchpoint): Likewise.
5563 * remote.c (watchpoint_to_Z_packet): Likewise.
5564 (remote_insert_watchpoint): Likewise.
5565 (remote_remove_watchpoint): Likewise.
5566 (remote_check_watch_resources): Likewise.
5567 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5568 (s390_remove_watchpoint): Likewise.
5569 (s390_can_use_hw_breakpoint): Likewise.
5570 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5571 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5572 * target.h (struct target_ops): Likewise.
5573 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5574 * ui-out.c (struct ui_out_hdr): Likewise.
5575 (append_header_to_list): Likewise.
5576 (get_next_header): Likewise.
5577 (verify_field): Likewise.
5578 (ui_out_begin): Likewise.
5579 (ui_out_field_int): Likewise.
5580 (ui_out_field_fmt_int): Likewise.
5581 (ui_out_field_skip): Likewise.
5582 (ui_out_field_string): Likewise.
5583 (ui_out_field_fmt): Likewise.
5584 * varobj.c (new_variable): Likewise.
5585 * x86-nat.c (x86_insert_watchpoint): Likewise.
5586 (x86_remove_watchpoint): Likewise.
5587 (x86_can_use_hw_breakpoint): Likewise.
5588 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5589 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5590 previously anonymous enumeration type..
5591 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5593 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5594 (target_debug_print_enum_bptype): New.
5595 * target-delegates.c: Regenerate.
5597 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5599 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5600 already says and disallow non-stack memory writes in the prologue.
5602 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5604 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5605 reflect how current GCC emits stack overflow checks. Match
5606 both trap and break instructions for backward compatbility.
5607 Disallow other trap and break instructions in the prologue.
5609 2015-07-30 Pedro Alves <palves@redhat.com>
5612 * linux-nat.c (wait_lwp): Report to the core when thread group
5615 2015-07-30 Pedro Alves <palves@redhat.com>
5616 Simon Marchi <simon.marchi@ericsson.com>
5619 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5620 mark the new thread as resumed. Remove STOPPING parameter.
5621 (wait_lwp): Adjust call to linux_handle_extended_wait.
5622 (linux_nat_filter_event): Adjust call to
5623 linux_handle_extended_wait.
5624 (resume_stopped_resumed_lwps): Add debug output.
5626 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5628 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5630 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5631 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5632 gdbarch_fast_tracepoint_valid_at.
5633 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5634 * gdbarch.h: Regenerate.
5635 * gdbarch.c: Regenerate.
5636 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5637 argument. Do not set it.
5638 * remote.c (remote_download_tracepoint): Adjust call to
5639 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5640 the instruction length.
5642 2015-07-30 Yao Qi <yao.qi@linaro.org>
5644 * arm-tdep.h (enum gdb_regnum): Move it to ...
5645 * arch/arm.h: ... here. New file.
5646 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5648 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5650 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5651 Change its type to int *.
5652 (decode_br): Rename link argument to is_blr. Change its type to
5654 (decode_cb): Rename op argument to is_cbnz. Change its type to
5656 (decode_tb): Rename op argument to is_tbnz. Change its type to
5657 int *. Set is_tbnz to either 1 or 0.
5658 (aarch64_analyze_prologue): Change type of is_link to int. Add
5659 new variables is_cbnz and is_tbnz. Adjust call to
5660 aarch64_decode_cb and aarch64_decode_tb.
5662 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5664 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5666 (mips_linux_new_thread): Likewise.
5667 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5669 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5671 * top.c: Include "tui/tui.h".
5672 (undo_terminal_modifications_before_exit): New static function.
5673 (quit_force): Use it.
5675 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5677 * target.c (terminal_state): Initialize to terminal_is_ours.
5679 2015-07-29 Yao Qi <yao.qi@linaro.org>
5682 * dcache.c (dcache_read_memory_partial): Call
5683 raw_memory_xfer_partial.
5684 * target.c (raw_memory_xfer_partial): Make it non-static.
5685 * target.h (raw_memory_xfer_partial): Declare.
5687 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5689 * c-valprint.c (c_val_print_array): Consider addressable memory
5691 (c_val_print_ptr): Likewise.
5692 (c_val_print_int): Likewise.
5693 * findvar.c (read_frame_register_value): Likewise.
5694 * valarith.c (find_size_for_pointer_math): Likewise.
5695 (value_ptrdiff): Likewise.
5696 (value_subscripted_rvalue): Likewise.
5697 * valops.c (read_value_memory): Likewise (and rename variables).
5698 (value_assign): Likewise.
5699 (value_repeat): Likewise.
5700 (value_array): Likewise.
5701 (value_slice): Likewise.
5702 * valprint.c (generic_val_print_ptr): Likewise.
5703 (generic_val_print_enum): Likewise.
5704 (generic_val_print_bool): Likewise.
5705 (generic_val_print_int): Likewise.
5706 (generic_val_print_char): Likewise.
5707 (generic_val_print_float): Likewise.
5708 (generic_val_print_decfloat): Likewise.
5709 (generic_val_print_complex): Likewise.
5710 (val_print_scalar_formatted): Likewise.
5711 (val_print_array_elements): Likewise.
5712 * value.c (set_value_parent): Likewise.
5713 (value_contents_copy_raw): Likewise.
5714 (set_internalvar_component): Likewise.
5715 (value_primitive_field): Likewise.
5716 (value_fetch_lazy): Likewise.
5717 * value.h (read_value_memory): Update comment.
5719 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5721 * value.c (get_value_arch): New function.
5722 * value.h (get_value_arch): New declaration.
5724 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5726 * value.c (struct value): Update comments.
5728 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5730 * gdbtypes.c (type_length_units): New function.
5731 * gdbtypes.h (type_length_units): New declaration.
5732 (struct type) <length>: Update comment.
5734 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5736 * valprint.c (generic_val_print): Factor out complex
5737 printing code to ...
5738 (generic_val_print_complex): ... this new function.
5740 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5742 * valprint.c (generic_val_print): Factor out decfloat
5743 printing code to ...
5744 (generic_val_print_decfloat): ... this new function.
5746 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5748 * valprint.c (generic_val_print): Factor out float
5749 printing code to ...
5750 (generic_val_print_float): ... this new function.
5752 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5754 * valprint.c (generic_val_print): Factor out char
5755 printing code to ...
5756 (generic_val_print_char): ... this new function.
5758 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5760 * valprint.c (generic_val_print): Factor out integer
5761 printing code to ...
5762 (generic_val_print_int): ... this new function.
5764 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5766 * valprint.c (generic_val_print): Factor out bool
5767 printing code to ...
5768 (generic_val_print_bool): ... this new function.
5770 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5772 * valprint.c (generic_val_print): Factor out function/method
5773 printing code to ...
5774 (generic_val_print_func): ... this new function.
5776 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5778 * valprint.c (generic_val_print): Factor out flags
5779 printing code to ...
5780 (generic_val_print_flags): ... this new function.
5782 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5784 * valprint.c (generic_val_print): Factor out enum
5785 printing code to ...
5786 (generic_val_print_enum): ... this new function.
5788 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5790 * valprint.c (generic_val_print): Factor out reference
5791 printing code to ...
5792 (generic_val_print_ref): ... this new function.
5794 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5796 * valprint.c (generic_val_print): Factor out memberptr
5797 printing code to ...
5798 (generic_val_print_memberptr): ... this new function.
5800 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5802 * valprint.c (generic_val_print): Factor out pointer
5803 printing code to ...
5804 (generic_val_print_ptr): ... this new function.
5806 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5808 * valprint.c (generic_val_print): Factor out array
5809 printing code to ...
5810 (generic_val_print_array): ... this new function.
5812 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5814 * valprint.c (generic_val_print): Factor out
5815 print_unpacked_pointer code to ...
5816 (print_unpacked_pointer): ... this new function.
5818 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5820 * event-top.c (handle_sigterm): Don't inspect
5821 target_can_async_p. Always set the quit flag and always mark
5822 the async signal handler.
5824 2015-07-27 Yao Qi <yao.qi@linaro.org>
5826 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5828 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5830 * remote.c (read_ptid): Return null_ptid when no thread id
5832 (remote_current_thread): Add log warning for malformed
5834 (remote_start_remote): Add log warning when current thread
5837 2015-07-24 Pedro Alves <palves@redhat.com>
5839 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5840 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5841 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5843 2015-07-24 Pedro Alves <palves@redhat.com>
5846 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5847 is resumed, and extend the debug log.
5849 2015-07-24 Pedro Alves <palves@redhat.com>
5851 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5853 2015-07-24 Pedro Alves <palves@redhat.com>
5855 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5857 * alpha-linux-nat.c: Likewise.
5858 * amd64-linux-nat.c: Likewise.
5859 * arm-linux-nat.c: Likewise.
5860 * hppa-linux-nat.c: Likewise.
5861 * i386-linux-nat.c: Likewise.
5862 * ia64-linux-nat.c: Likewise.
5863 * linux-fork.c: Likewise.
5864 * linux-nat.c: Likewise.
5865 * m32r-linux-nat.c: Likewise.
5866 * m68klinux-nat.c: Likewise.
5867 * mips-linux-nat.c: Likewise.
5868 * nat/linux-btrace.c: Likewise.
5869 * nat/linux-ptrace.c: Likewise.
5870 * nat/linux-ptrace.h
5871 * nat/mips-linux-watch.c: Likewise.
5872 * nat/x86-linux-dregs.c: Likewise.
5873 * ppc-linux-nat.c: Likewise.
5874 * s390-linux-nat.c: Likewise.
5875 * spu-linux-nat.c: Likewise.
5876 * tilegx-linux-nat.c: Likewise.
5877 * x86-linux-nat.c: Likewise.
5878 * xtensa-linux-nat.c: Likewise.
5880 2015-07-24 Pedro Alves <palves@redhat.com>
5882 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5883 __ptrace_request as first parameter type instead of int.
5884 (PTRACE_TYPE_ARG1): Define.
5885 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5886 that casts first argument to PTRACE_TYPE_ARG1.
5887 * config.in: Regenerate.
5888 * configure: Regenerate.
5890 2015-07-24 Pedro Alves <palves@redhat.com>
5892 * gdb_ptrace.h: Move ...
5893 * nat/gdb_ptrace.h: ... here.
5894 * inf-ptrace.c: Adjust.
5896 2015-07-24 Pedro Alves <palves@redhat.com>
5898 * acinclude.m4: Include ptrace.m4.
5899 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5900 * ptrace.m4: ... to this new file.
5902 2015-07-23 Doug Evans <dje@google.com>
5904 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5905 (load_cu): Handle dummy CUs.
5906 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5907 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5909 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5911 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5912 documentation to say that it returns a list rather than
5914 (linetable_object_methods): Update the docstring of the
5915 "source_line" entry.
5917 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5919 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5920 type to the recursive call instead of the original (maybe
5921 TYPE_CODE_TYPEDEF) type.
5923 2015-07-23 Yao Qi <yao.qi@linaro.org>
5925 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5926 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5927 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5929 2015-07-21 Yao Qi <yao.qi@linaro.org>
5931 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5932 Move it to nat/aarch64-linux-hw-point.c.
5933 (aarch64_linux_child_post_startup_inferior): Update.
5934 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5936 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5939 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5941 * common/btrace-common.c (btrace_data_append): Change case label.
5943 2015-07-20 Yao Qi <yao.qi@linaro.org>
5945 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5947 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5948 "unsigned long long".
5950 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5952 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5953 to be set for SEC_ALLOC sections too.
5955 2015-07-17 Yao Qi <yao.qi@linaro.org>
5957 * Makefile.in (HFILES_NO_SRCDIR): Add
5958 nat/aarch64-linux-hw-point.h.
5959 (aarch64-linux-hw-point.o): New rule.
5960 * nat/aarch64-linux-hw-point.h: New file.
5961 * nat/aarch64-linux-hw-point.c: New file.
5962 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5963 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5964 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5965 (AARCH64_HWP_ALIGNMENT): Likewise.
5966 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5967 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5968 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5969 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5970 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5971 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5972 (struct aarch64_debug_reg_state): Likewise.
5973 (struct arch_lwp_info): Likewise.
5974 (aarch64_linux_set_debug_regs): Likewise.
5975 (aarch64_notify_debug_reg_change): Remove static.
5976 (aarch64_align_watchpoint): Likewise.
5977 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5978 (aarch64_watchpoint_length): Likewise.
5979 (aarch64_point_encode_ctrl_reg): Likewise
5980 (aarch64_point_is_aligned): Likewise.
5981 (aarch64_dr_state_insert_one_point): Likewise.
5982 (aarch64_dr_state_remove_one_point): Likewise.
5983 (aarch64_handle_breakpoint): Likewise.
5984 (aarch64_handle_aligned_watchpoint): Likewise.
5985 (aarch64_handle_unaligned_watchpoint): Likewise.
5986 (aarch64_handle_watchpoint): Likewise.
5987 * config/aarch64/linux.mh (NAT_FILE): Add
5988 aarch64-linux-hw-point.o.
5990 2015-07-17 Yao Qi <yao.qi@linaro.org>
5992 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5993 state and don't call aarch64_get_debug_reg_state. All callers
5995 (aarch64_linux_insert_hw_breakpoint): Call
5996 aarch64_get_debug_reg_state earlier.
5997 (aarch64_linux_remove_hw_breakpoint): Likewise.
5998 (aarch64_handle_aligned_watchpoint): Add argument state and
5999 don't call aarch64_get_debug_reg_state. All callers update.
6000 (aarch64_handle_unaligned_watchpoint): Likewise.
6001 (aarch64_handle_watchpoint): Add argument state.
6002 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6004 (aarch64_linux_remove_watchpoint): Likewise.
6006 2015-07-17 Yao Qi <yao.qi@linaro.org>
6008 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6010 (aarch64_handle_unaligned_watchpoint): Likewise.
6012 2015-07-17 Yao Qi <yao.qi@linaro.org>
6014 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6015 argument type's type to 'enum target_hw_bp_type'.
6016 (aarch64_dr_state_remove_one_point): Likewise.
6017 (aarch64_handle_breakpoint): Likewise.
6018 (aarch64_linux_insert_hw_breakpoint): Likewise.
6019 (aarch64_linux_remove_hw_breakpoint): Likewise.
6020 (aarch64_handle_aligned_watchpoint): Likewise.
6022 2015-07-17 Yao Qi <yao.qi@linaro.org>
6024 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6025 ptid_get_pid instead of get_thread_id.
6027 2015-07-17 Yao Qi <yao.qi@linaro.org>
6029 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6030 (add_current_inferior_and_thread): Don't initialise ptid.
6032 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6034 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6035 unavailable if invalid.
6037 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6039 Revert the previous 6 commits:
6040 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6041 Move gdb_regex* to common/
6042 Prepare linux_find_memory_regions_full & co. for move
6043 Move linux_find_memory_regions_full & co.
6044 gdbserver build-id attribute generator
6045 Validate symbol file using build-id
6047 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6048 Jan Kratochvil <jan.kratochvil@redhat.com>
6050 Validate symbol file using build-id.
6051 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6052 and 'show validate-build-id'. Add build-id attribute.
6053 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6054 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6055 * solib-frv.c (_initialize_frv_solib): Ditto.
6056 * solib-spu.c (set_spu_solib_ops): Ditto.
6057 * solib-svr4.c: Include rsp-low.h.
6058 (NOTE_GNU_BUILD_ID_NAME): New define.
6059 (svr4_validate): New function.
6060 (svr4_copy_library_list): Duplicate field build_id.
6061 (library_list_start_library): Parse 'build-id' attribute.
6062 (svr4_library_attributes): Add 'build-id' attribute.
6063 (_initialize_svr4_solib): Assign validate value.
6064 * solib-target.c (solib.h): Include.
6065 (_initialize_solib_target): Assign validate value.
6066 * solib.c (validate_build_id, show_validate_build_id): New.
6067 (solib_map_sections): Use ops->validate.
6068 (clear_so): Free build_id.
6069 (default_solib_validate): New function.
6070 (_initialize_solib): Add "validate-build-id".
6071 * solib.h (default_solib_validate): New declaration.
6072 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6073 (target_so_ops): New field 'validate'.
6075 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6076 Jan Kratochvil <jan.kratochvil@redhat.com>
6078 gdbserver build-id attribute generator.
6079 * features/library-list-svr4.dtd (library-list-svr4): New
6080 'build-id' attribute.
6082 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6083 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 Move linux_find_memory_regions_full & co.
6086 * linux-tdep.c (nat/linux-maps.h): Include.
6087 (gdb_regex.h): Remove the include.
6088 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6089 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6090 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6091 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6092 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6093 and target/target.h.
6094 (struct smaps_vmflags, read_mapping, decode_vmflags)
6095 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6096 (linux_find_memory_regions_full): Move from linux-tdep.c.
6097 * nat/linux-maps.h (read_mapping): New declaration.
6098 (linux_find_memory_region_ftype, enum filterflags): Moved from
6100 (linux_find_memory_regions_full): New declaration.
6101 * target.c (target/target-utils.h): Include.
6102 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6103 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6104 definitions to target/target-utils.c.
6105 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6106 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6108 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6109 (read_alloc): New declaration.
6110 (read_stralloc_func_ftype): New typedef.
6111 (read_stralloc): New declaration.
6112 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6114 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6115 Jan Kratochvil <jan.kratochvil@redhat.com>
6117 Prepare linux_find_memory_regions_full & co. for move.
6118 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6119 (linux_find_memory_regions_full): Change signature and prepare
6120 for moving to linux-maps.
6121 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6122 (linux_find_memory_regions_thunk): New.
6123 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6124 (linux_find_memory_regions_gdb): New.
6125 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6126 (linux_make_mappings_corefile_notes): Use
6127 linux_find_memory_regions_gdb.
6128 * target.c (read_alloc_pread_ftype): New typedef.
6129 (target_fileio_read_alloc_1_pread): New function.
6130 (read_alloc): Refactor from target_fileio_read_alloc_1.
6131 (read_stralloc_func_ftype): New typedef.
6132 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6133 (read_stralloc): Refactored from target_fileio_read_stralloc.
6134 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6136 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6138 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6140 (COMMON_OBS): Add gdb_regex.o.
6142 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6143 --without-included-regex and USE_INCLUDED_REGEX.
6144 * common/gdb_regex.c: New file from utils.c functions.
6145 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6146 file wrapping define name.
6147 * configure: Rebuilt.
6148 * configure.ac (gdb_use_included_regex, --without-included-regex)
6149 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6150 * gdb_regex.h: Move it to common/gdb_regex.h.
6151 * utils.c: Remove include gdb_regex.h.
6152 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6153 (compile_rx_or_error): Move them to common/gdb_regex.c.
6155 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6156 Jan Kratochvil <jan.kratochvil@redhat.com>
6158 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6159 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6160 common/target-utils.h.
6161 (COMMON_OBS): Add target-utils.o.
6162 (linux-maps.o, target-utils.o): New.
6163 * target/target-utils.c: New file.
6164 * target/target-utils.h: New file.
6165 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6166 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6167 * nat/linux-maps.c: New file.
6168 * nat/linux-maps.h: New file.
6170 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6171 Pedro Alves <palves@redhat.com>
6173 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6174 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6175 (perf_event_read_bts): Change the type of SIZE and READ.
6176 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6177 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6178 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6180 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6181 buffer size to UINT_MAX.
6182 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6184 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6185 <last_head>: Change type.
6186 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6187 * common/btrace-common.c (btrace_data_append): Change the type of
6189 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6192 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6194 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6195 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6197 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6198 (ada_array_length): Likewise.
6199 (find_parallel_type_by_descriptive_type): Likewise.
6200 (ada_check_typedef): Likewise.
6201 * arm-tdep.c (arm_return_in_memory): Likewise.
6202 * ax-gdb.c (gen_trace_static_fields): Likewise.
6203 (gen_struct_ref_recursive): Likewise.
6204 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6205 (variable: block COLONCOLON name): Likewise.
6206 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6207 * c-lang.c (classify_type): Likewise.
6208 * c-typeprint.c (c_print_type): Likewise.
6209 (c_print_typedef): Likewise.
6210 (c_type_print_base): Likewise.
6211 * c-valprint.c (c_val_print): Likewise.
6212 * compile/compile-c-types.c (convert_type): Likewise.
6213 * compile/compile-object-load.c (get_out_value_type): Likewise.
6214 * completer.c (add_struct_fields): Likewise.
6215 (expression_completer): Likewise.
6216 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6217 (cp_lookup_nested_symbol_1): Likewise.
6218 (cp_lookup_nested_symbol): Likewise.
6219 * cp-valprint.c (cp_print_value_fields): Likewise.
6220 (cp_print_static_field): Likewise.
6221 * d-valprint.c (d_val_print): Likewise.
6222 * eval.c (evaluate_subexp_standard): Likewise.
6223 (evaluate_subexp_for_sizeof): Likewise.
6224 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6225 * f-typeprint.c (f_type_print_base): Likewise.
6226 * f-valprint.c (f_val_print): Likewise.
6227 * gdbtypes.c (get_discrete_bounds): Likewise.
6228 (create_array_type_with_stride): Likewise.
6229 (type_name_no_tag_or_error): Likewise.
6230 (lookup_struct_elt_type): Likewise.
6231 (get_unsigned_type_max): Likewise.
6232 (internal_type_vptr_fieldno): Likewise.
6233 (set_type_vptr_fieldno): Likewise.
6234 (internal_type_vptr_basetype): Likewise.
6235 (set_type_vptr_basetype): Likewise.
6236 (get_vptr_fieldno): Likewise.
6237 (is_integral_type): Likewise.
6238 (is_scalar_type): Likewise.
6239 (is_scalar_type_recursive): Likewise.
6240 (distance_to_ancestor): Likewise.
6241 (is_unique_ancestor_worker): Likewise.
6242 (check_types_equal): Likewise.
6243 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6245 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6247 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6248 also test for language_d.
6249 (dwarf2_compute_name): Likewise.
6250 (read_func_scope): Likewise.
6251 (read_structure_type): Likewise.
6252 (new_symbol_full): Likewise.
6253 (determine_prefix): Likewise.
6254 (read_import_statement): Use dot as the separator for language_d.
6255 (typename_concat): Likewise, but don't prefix the D main function.
6257 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6259 * nat/linux-namespaces.c (setns): Rename from this ...
6260 (do_setns): ... to this. Support calling setns if it exists.
6261 (mnsh_handle_setns): Call do_setns.
6263 2015-07-13 Yao Qi <yao.qi@linaro.org>
6265 * exec.c (exec_file_attach): Add period at the end of error
6268 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6270 * tui/tui-win.c (window_name_completer): New function.
6271 (focus_completer): Call window_name_completer. All old content
6272 moved into window_name_completer.
6273 (winheight_completer): New function.
6274 (_initialize_tui_win): Rename variable. Add completer to
6275 winheight command. Update doc string on winheight.
6277 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6279 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6280 all nios2 mach variants.
6282 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6284 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6285 of target_read_memory.
6287 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6289 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6291 (parse_scrolling_args): Likewise.
6293 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6295 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6296 names in this function.
6298 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6300 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6301 (CMD_NAME): Likewise.
6302 (DATA_NAME): Likewise.
6303 (DISASSEM_NAME): Likewise.
6304 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6305 (tui_set_win_height): Likewise.
6306 (parse_scrolling_args): Likewise.
6308 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6310 * record-btrace.c (record_btrace_goto_begin)
6311 (record_btrace_goto_end, record_btrace_goto): Move call to
6312 print_stack_frame ...
6313 (record_btrace_set_replay): ... here. Set stop_pc.
6314 * record-full.c (record_full_goto_entry): Set stop_pc.
6316 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6318 * NEWS: Mention support for tracepoints on aarch64-linux.
6320 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6322 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6324 (the_low_target): Install it.
6326 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6328 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6329 * gdb.trace/collection.exp: Likewise.
6330 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6331 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6332 * gdb.trace/report.exp: Likewise.
6333 * gdb.trace/trace-break.exp: Likewise.
6334 * gdb.trace/unavailable.exp: Likewise.
6335 * gdb.trace/while-dyn.exp: Likewise.
6337 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6339 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6340 (aarch64_gen_return_address): New function.
6341 (aarch64_gdbarch_init): Hook it.
6343 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6345 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6346 swallow NOT_AVAILABLE_ERROR.
6347 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6348 available_p is not set.
6349 (aarch64_stub_frame_unwind_stop_reason): New function.
6350 (aarch64_stub_unwind): Install it.
6352 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6354 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6356 (aarch64_make_prologue_cache_1): New function, factored out from
6357 aarch64_make_prologue_cache. Do not allocate cache. Set
6359 (aarch64_make_prologue_cache): Reimplement wrapping
6360 aarch64_make_prologue_cache_1, and swallowing
6361 NOT_AVAILABLE_ERROR.
6362 (aarch64_prologue_frame_unwind_stop_reason): New function.
6363 Return UNWIND_UNAVAILABLE if available_p is not set.
6364 (aarch64_prologue_unwind): Install it.
6365 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6366 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6367 frame_id_build_unavailable_stack if available_p is not set.
6369 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6371 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6373 (aarch64_scan_prologue): Set prev_pc.
6374 (aarch64_make_prologue_cache): Set func.
6375 (aarch64_make_stub_cache): Set prev_pc.
6376 (aarch64_prologue_this_id): Remove local variables id, pc and
6377 func. Read prev_pc and func from cache.
6378 (aarch64_stub_this_id): Read prev_pc from cache.
6380 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6382 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6383 argument this_cache. Remove unused local variables reg and
6384 unwound_fp. Return early if this_cache is already set. Set
6386 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6388 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6390 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6391 New argument this_cache. Return early if this_cache is already
6392 set. Set this_cache.
6393 (aarch64_prologue_this_id): Update call to
6394 aarch64_make_prologue_cache.
6395 (aarch64_prologue_prev_register): Likewise.
6396 (aarch64_normal_frame_base): Likewise.
6398 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6400 * c-valprint.c (c_val_print): Factor out memberptr printing code
6401 from c_val_print to ...
6402 (c_val_print_memberptr): ... this new function.
6404 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6406 * c-valprint.c (c_val_print): Factor out int printing code to ...
6407 (c_val_print_int): ... this new function.
6409 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6411 * c-valprint.c (c_val_print): Factor out struct and union
6412 printing code to ...
6413 (c_val_print_struct): ... this new function ...
6414 (c_val_print_union): ... and this new function.
6416 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6418 * c-valprint.c (c_val_print): Factor out pointer printing code
6420 (c_val_print_ptr): ... this new function.
6422 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6424 * c-valprint.c (c_valprint): Factor our array printing code from
6426 (c_val_print_array): ... this new function.
6428 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6430 * c-valprint.c (c_val_print): Factor out pointer printing code
6432 (print_unpacked_pointer): ... this new function.
6434 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6436 * c-valprint.c (c_val_print): Remove an assignment to i and move
6439 2015-07-09 Yao Qi <yao.qi@linaro.org>
6441 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6442 argument ptid. Update comments. Caller update.
6444 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6446 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6449 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6451 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6453 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6455 * progspace.c (delete_program_space): Add missing spaces.
6457 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6459 * inferior.c (delete_inferior_1): Rename to ...
6460 (delete_inferior): ..., remove 'silent' parameter, delete
6461 program space when unused and remove call to prune_program_spaces.
6462 Remove the old, unused, delete_inferior.
6463 (delete_inferior_silent): Remove.
6464 (prune_inferiors): Change call from delete_inferior_1 to
6465 delete_inferior and remove 'silent' parameter. Remove call to
6466 prune_program_spaces.
6467 (remove_inferior_command): Idem.
6468 * inferior.h (delete_inferior_1): Rename to...
6469 (delete_inferior): ..., remove 'silent' parameter and remove the
6470 original delete_inferior.
6471 (delete_inferior_silent): Remove.
6472 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6473 delete_inferior_1 to delete_inferior and remove 'silent'
6475 * progspace.c (prune_program_spaces): Remove.
6476 (pspace_empty_p): Rename to...
6477 (program_space_empty_p): ... and make non-static.
6478 (delete_program_space): New.
6479 * progspace.h (prune_program_spaces): Remove declaration.
6480 (program_space_empty_p): New declaration.
6481 (delete_program_space): New declaration.
6482 * monitor.c (monitor_close): Replace call to
6483 delete_thread_silent and delete_inferior_silent with
6484 discard_all_inferiors.
6486 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6488 * defs.h (deprecated_register_changed_hook): Remove prototype.
6489 * interps.c (clear_iterpreter_hooks): Remove reference to
6490 deprecated_register_changed_hook.
6491 * top.c (deprecated_register_changed_hook): Remove prototype.
6492 * valops.c (value_assign): Remove reference to
6493 deprecated_register_changed_hook.
6494 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6495 Add comment documenting the function.
6496 (tui_register_changed_observer): Define.
6497 (tui_install_hooks): Remove reference to
6498 deprecated_register_changed_hook. Set
6499 tui_register_changed_observer.
6500 (tui_remove_hooks): Remove reference to
6501 deprecated_register_changed_hook. Unset
6502 tui_register_changed_observer.
6504 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6509 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6512 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6514 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6516 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6518 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6520 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6521 Use safe_strerror() instead of strerror().
6523 2015-07-07 Yao Qi <yao.qi@linaro.org>
6525 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6526 * features/arm-with-m-fpa-layout.c: Regenerated.
6527 * features/arm-with-m-vfp-d16.xml: Likewise.
6528 * features/arm-with-m-vfp-d16.c: Regenerated.
6529 * features/arm-with-m.xml: Likewise.
6530 * features/arm-with-m.c: Regenerated.
6531 * features/arm-with-neon.xml: Likewise.
6532 * features/arm-with-neon.c: Regenerated.
6533 * features/arm-with-vfpv2.xml: Likewise.
6534 * features/arm-with-vfpv2.c: Regenerated.
6535 * features/arm-with-vfpv3.xml: Likewise.
6536 * features/arm-with-vfpv3.c: Regenerated.
6538 2015-07-07 Yao Qi <yao.qi@linaro.org>
6540 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6542 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6544 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6545 if target is 32-bit.
6546 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6547 if target is 32-bit.
6548 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6549 if target is 32-bit.
6550 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6551 if target is 32-bit.
6552 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6553 (aarch64_linux_read_description): Return the right target
6555 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6556 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6557 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6560 2015-07-07 Yao Qi <yao.qi@linaro.org>
6562 * aarch32-linux-nat.c: New file.
6563 * aarch32-linux-nat.h: New file.
6564 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6565 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6566 aarch32_gp_regcache_supply.
6567 (store_regs): Move code to aarch32-linux-nat.c. Call
6568 aarch32_gp_regcache_collect.
6569 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6570 aarch32_vfp_regcache_supply.
6571 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6572 aarch32_vfp_regcache_collect.
6573 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6575 2015-07-07 Yao Qi <yao.qi@linaro.org>
6577 * arm-linux-nat.c (store_fpregister): Remove.
6578 (store_register): Likewise.
6579 (fetch_fpregister): Likewise.
6580 (fetch_register): Likewise.
6581 (arm_linux_store_inferior_registers): Call store_regs and
6582 store_fpregs instead.
6583 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6586 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6588 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6591 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6593 * NEWS: Create a new section for the next release branch.
6594 Rename the section of the current branch, now that it has
6597 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6599 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6600 * version.in: Bump version to 7.10.50.DATE-cvs.
6602 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6604 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6605 breakpoints in a special way.
6606 (remove_breakpoint): Likewise.
6607 (mark_breakpoints_out): Likewise.
6609 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6611 * doc/gdb.texinfo (TUI): Add comma after @xref.
6613 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6615 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6616 instead of casting the structure type.
6618 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6620 * valops.c (search_struct_field): Remove OFFSET parameter.
6621 (value_cast_structs): Adjust calls to search_struct_field.
6622 (value_struct_elt): Same.
6623 (find_overload_match): Same.
6625 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6627 * value.c (value_fetch_lazy): Update comment, change return
6629 * value.h (value_fetch_lazy): Change return value to void.
6631 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6633 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6634 (tui_win_name): Make parameter and result const.
6635 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6637 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6639 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6640 use printf_unfiltered.
6641 (set_mpx_cmd): Add missing trailing space to command string
6643 (_initialize_i386_tdep): Give the "mpx" prefix command its
6646 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6648 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6649 (enum rx_frame_type): New.
6650 (struct rx_prologue): Add new field `frame_type'.
6651 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6652 parameter in the prologue struct. Add code for recording
6653 locations of PC and PSW for fast interrupt and exception frames.
6654 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6655 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6656 (rx_frame_type): New function.
6657 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6658 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6660 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6661 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6662 RX_FRAME_TYPE_FAST_INTERRUPT.
6663 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6664 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6665 (rx_frame_unwind): Use rx_frame_sniffer instead of
6666 default_frame_sniffer.
6667 (rx_frame_unwind): New unwinder.
6668 (rx_gdbarch_init): Register new unwinder.
6670 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6672 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6673 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6674 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6676 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6678 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6680 Fix GCC false warning.
6681 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6683 2015-07-02 Yao Qi <yao.qi@linaro.org>
6685 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6686 typo in the debugging message.
6688 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6690 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6691 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6692 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6693 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6694 (btrace_maint_clear): New.
6695 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6696 (pt_print_packet, btrace_maint_decode_pt)
6697 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6698 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6699 (maint_btrace_packet_history_cmd)
6700 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6701 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6702 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6703 (maint_info_btrace_cmd, _initialize_btrace): New.
6704 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6705 (btrace_maint_packet_history, btrace_maint_info): New.
6706 (btrace_thread_info) <maint>: New.
6707 * NEWS: Announce it.
6709 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6711 * btrace.c (btrace_fetch): Append the new trace data.
6712 (btrace_clear): Clear the stored trace data.
6713 * btrace.h (btrace_thread_info) <data>: New.
6714 * common/btrace-common.h (btrace_data_clear)
6715 (btrace_data_append): New.
6716 * common/btrace-common.c (btrace_data_clear)
6717 (btrace_data_append): New.
6719 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6721 * nat/linux-btrace.c (linux_enable_bts): Check for
6722 PERF_ATTR_SIZE_VER5.
6723 Check for data_offset and data_size fields. Use them.
6725 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6727 * NEWS: Announce new commands "record btrace pt" and "record pt".
6728 Announce new options "set|show record btrace pt buffer-size".
6729 * btrace.c: Include "rsp-low.h".
6730 Include "inttypes.h".
6731 (btrace_add_pc): Add forward declaration.
6732 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6733 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6734 (btrace_compute_ftrace_pt): New.
6735 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6736 (check_xml_btrace_version): Update version check.
6737 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6738 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6739 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6740 (btrace_pt_children): New.
6741 (btrace_children): Add support for "pt".
6742 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6743 (btrace_conf_children): Add support for "pt".
6744 * btrace.h: Include "intel-pt.h".
6745 (btrace_pt_error): New.
6746 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6747 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6748 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6749 (struct btrace_config_pt): New.
6750 (struct btrace_config)<pt>: New.
6751 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6752 (struct btrace_data)<pt>: New.
6753 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6755 * features/btrace.dtd (btrace)<pt>: New.
6756 (pt, pt-config, cpu): New.
6757 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6758 (perf_event_pt_event_type, kernel_supports_pt)
6759 (linux_supports_pt): New.
6760 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6761 (linux_enable_bts): Free tinfo on error.
6762 (linux_enable_pt): New.
6763 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6764 (linux_disable_pt): New.
6765 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6766 (linux_fill_btrace_pt_config, linux_read_pt): New.
6767 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6768 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6769 (struct btrace_target_info)<pt>: New.
6770 * record-btrace.c (set_record_btrace_pt_cmdlist)
6771 (show_record_btrace_pt_cmdlist): New.
6772 (record_btrace_print_pt_conf): New.
6773 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6774 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6775 (cmd_record_btrace_pt_start): New.
6776 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6777 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6778 (_initialize_record_btrace): Add new commands.
6779 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6780 (remote_protocol_features): Add "Qbtrace:pt".
6781 Add "Qbtrace-conf:pt:size".
6782 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6783 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6784 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6785 (_initialize_remote): Add new commands.
6787 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6789 * configure.ac: check for libipt
6790 * configure: Regenerate.
6791 * config.in: Regenerate.
6792 * Makefile.in (LIBIPT): New.
6793 (CLIBS): Add $LIBIPT.
6794 * NEWS: document new configure options
6796 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6798 * compile/compile-object-load.c (compile_object_load): Replace debug
6799 message "lookup undefined ELF symbol" by 3 more specific messages.
6801 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6803 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6804 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6805 (rl78_gdbarch_init): Initialize rl78_psw_type.
6807 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6809 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6810 Update commentary. Always refresh the registers when frame
6811 information has changed.
6812 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6813 Change return type to int. Return 1 if frame information has
6814 changed, 0 otherwise.
6815 (tui_before_prompt): Update commentary.
6816 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6819 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6822 * frame.c (select_frame): Remove reference to
6823 deprecated_selected_frame_level_changed_hook.
6824 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6826 * stack.c (deprecated_selected_frame_level_changed_hook):
6828 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6830 (tui_refresh_frame_and_register_information): ... this. Bail
6831 out if there is no stack. Don't update register information
6832 unless registers_too_p is true.
6833 (tui_print_frame_info_listing_hook): Rename to ...
6834 (tui_dummy_print_frame_info_listing_hook): ... this.
6835 (tui_before_prompt): New function.
6836 (tui_normal_stop): New function.
6837 (tui_before_prompt_observer): New observer.
6838 (tui_normal_stop_observer): New observer.
6839 (tui_install_hooks): Set
6840 deprecated_print_frame_info_listing_hook to
6841 tui_dummy_print_frame_info_listing_hook. Register
6842 tui_before_prompt_observer to call tui_before_prompt and
6843 tui_normal_stop_observer to call tui_normal_stop. Remove
6844 reference to deprecated_selected_frame_level_changed_hook.
6845 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6846 and tui_normal_stop_observer. Remove reference to
6847 deprecated_selected_frame_level_changed_hook.
6849 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6852 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6853 return an int instead of void. Return whether the locator
6855 (tui_show_frame_info): If the locator info has not changed, then
6856 bail out early to avoid refreshing the windows.
6858 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6860 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6861 LOCATOR_WIN to tui_alloc_content.
6863 2015-06-30 Yao Qi <yao.qi@linaro.org>
6866 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6869 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6871 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6872 (rx_dwarf_reg_to_regnum): New function.
6873 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6876 2015-06-29 Pedro Alves <palves@redhat.com>
6879 * infcall.c (run_inferior_call): On infcall success, if the thread
6880 was marked stopped before, reset it back to stopped.
6881 * infrun.c (resume): Don't suppress the set_running calls when
6883 (normal_stop): Only discard the finish_thread_state cleanup if the
6886 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6888 * MAINTAINERS (Write After Approval): Update my email address.
6890 2015-06-26 Keith Seitz <keiths@redhat.com>
6891 Doug Evans <dje@google.com>
6894 * block.c (block_lookup_symbol): For non-function blocks,
6895 continue to search for a symbol with an exact domain match
6896 Otherwise, return any previously found "best domain" symbol.
6897 (block_lookup_symbol_primary): Likewise.
6899 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6901 * NEWS: Mention the new option "history remove-duplicates".
6902 * top.c (history_remove_duplicates): New static variable.
6903 (show_history_remove_duplicates): New static function.
6904 (gdb_add_history): Conditionally remove duplicate history
6906 (init_main): Add "history remove-duplicates" option.
6908 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6910 * tui/tui-win.c (focus_completer): New static function.
6911 (_initialize_tui_win): Set the completion function of the
6912 "focus" command to focus_completer.
6914 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6916 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6918 * symtab.c (find_function_start_sal): Likewise.
6920 2015-06-25 Gary Benson <gbenson@redhat.com>
6922 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6923 it is the empty string after trailing slashes have been stripped.
6925 2015-06-25 Gary Benson <gbenson@redhat.com>
6927 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6928 * infrun.c (follow_exec): Likewise.
6929 * remote.c (remote_filesystem_is_local): Likewise.
6930 * solib.c (solib_find_1): Likewise.
6932 2015-06-24 Keith Seitz <keiths@redhat.com>
6934 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6935 return value from lrealpath.
6937 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6939 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6941 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6943 * remote-sim.c: Include gdb_bfd.h.
6944 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6945 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6947 2015-06-24 Yao Qi <yao.qi@linaro.org>
6949 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6950 set_gdbarch_get_siginfo_type.
6951 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6952 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6953 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6954 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6955 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6956 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6957 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6958 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6959 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6960 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6962 2015-06-24 Gary Benson <gbenson@redhat.com>
6964 * common/buffer.c (stdint.h): Do not include.
6965 * common/print-utils.c (stdint.h): Likewise.
6966 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6967 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6968 * ft32-tdep.c (gdb_assert.h): Likewise.
6969 * guile/scm-utils.c (stdint.h): Likewise.
6970 * i386-linux-tdep.c (stdint.h): Likewise.
6971 * i386-tdep.c (stdint.h): Likewise.
6972 * nat/linux-btrace.c (stdint.h): Likewise.
6973 * nat/linux-btrace.h (stdint.h): Likewise.
6974 * nat/linux-ptrace.c (stdint.h): Likewise.
6975 * nat/mips-linux-watch.h (stdint.h): Likewise.
6976 * ppc-linux-nat.c (stdint.h): Likewise.
6977 * python/python-internal.h (stdint.h): Likewise.
6978 * stub-termcap.c (stdlib.h): Likewise.
6979 * target/target.h (stdint.h): Likewise.
6980 * xtensa-linux-nat.c (stdint.h): Likewise.
6982 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6984 * top.c (init_history): Look at errno after calling strtol to
6985 properly map large GDBHISTSIZE values to infinity.
6987 2015-06-23 Doug Evans <dje@google.com>
6989 * inferior.h (struct inferior_suspend_state): Delete, unused.
6990 All references deleted.
6992 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6994 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6995 (microblaze_push_dummy_call): Likewise.
6996 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6997 and set_gdbarch_push_dummy_call.
6999 2015-06-23 Yao Qi <yao.qi@linaro.org>
7001 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7002 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7003 (amd64_linux_store_inferior_registers): Likewise.
7004 * arm-linux-nat.c (fetch_fpregister): Likewise.
7005 (fetch_fpregs, store_fpregister): Likewise.
7006 (store_fpregister, store_fpregs): Likewise.
7007 (fetch_register, fetch_regs): Likewise.
7008 (store_register, store_regs): Likewise.
7009 (fetch_vfp_regs, store_vfp_regs): Likewise.
7010 (arm_linux_read_description): Check have_ptrace_getregset is
7011 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7013 * i386-linux-nat.c (fetch_xstateregs): Check
7014 have_ptrace_getregset is not TRIBOOL_TRUE.
7015 (store_xstateregs): Likewise.
7016 * linux-nat.c (have_ptrace_getregset): Change its type to
7018 * linux-nat.h (tribool): New enum.
7019 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7020 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7022 2015-06-19 Doug Evans <dje@google.com>
7024 * NEWS: Mention Sun's version of stabs is no longer supported.
7025 * elfread.c (free_elfinfo): Delete. All uses updated.
7026 (elfstab_offset_sections): Delete. All uses updated.
7027 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7028 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7030 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7031 All callers updated.
7033 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7035 * common/rsp-low.c (needs_escaping): New.
7036 (remote_escape_output): Add unit_size parameter. Refactor to
7037 support multi-byte addressable units. Rename parameters.
7038 * common/rsp-low.h (remote_escape_output): Add unit_size
7039 parameter and rename others. Update doc.
7040 * remote.c (align_for_efficient_write): New.
7041 (remote_write_bytes_aux): Add unit_size parameter and use it.
7042 Rename some variables. Update doc.
7043 (remote_xfer_partial): Get unit size and use it.
7044 (remote_read_bytes_1): Add unit_size parameter and use it.
7045 Rename some variables. Update doc.
7046 (remote_write_bytes): Same.
7047 (remote_xfer_live_readonly_partial): Same.
7048 (remote_read_bytes): Same.
7049 (remote_flash_write): Update call to remote_write_bytes_aux.
7050 (remote_write_qxfer): Update call to remote_escape_output.
7051 (remote_search_memory): Same.
7052 (remote_hostio_pwrite): Same.
7054 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7056 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7057 locations as inserted.
7058 Update and expand comment about permanent locations.
7059 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7060 Move comment to add_location_to_breakpoint.
7061 (update_global_location_list): Don't error out if a permanent
7062 breakpoint is not marked inserted.
7063 Don't error out if a non-permanent breakpoint location is inserted on
7064 top of a permanent breakpoint.
7066 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7068 * breakpoint.c (make_breakpoint_permanent): Remove unused
7070 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7072 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7075 * NEWS: Mention new GDBHISTSIZE behavior.
7076 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7077 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7079 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7081 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7082 * top.c (init_history): Read from GDBHISTSIZE instead of
7084 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7086 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7088 * top.c (gdb_safe_append_history): Do not call
7089 history_truncate_file if the history is not stifled.
7091 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7093 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7094 * syscalls/s390x-linux.xml: Likewise.
7096 2015-06-16 Michael Eager <eager@eagercon.com>
7098 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7100 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7102 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7103 target_terminal_ours_for_output() before calling
7104 tui_show_frame_info(), and restore the original terminal
7105 settings afterwards.
7107 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7109 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7111 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7113 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7115 (mi_cmd_data_write_memory_bytes): Same.
7117 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7119 * corefile.c (write_memory): Update doc.
7120 * gdbcore.h (write_memory): Same.
7122 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7124 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7125 (dump_mapping_p): Use it for parameter filterflags.
7126 (linux_find_memory_regions_full): Use it for variable filterflags.
7128 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7129 Jan Kratochvil <jan.kratochvil@redhat.com>
7131 Merge multiple hex conversions.
7132 * monitor.c: Include rsp-low.h.
7133 (fromhex): Remove definition.
7135 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7136 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 Move utility functions to common/.
7139 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7140 Move defs to common/common-utils.c.
7141 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7142 (skip_to_space_const): Move decls to common/common-utils.h.
7143 * common/common-defs.h: Move include of common-types.h before
7145 * common/common-utils.c: Include host-defs.h and ctype.h.
7146 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7148 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7150 * common/common-utils.h (strtoulst): Move decl from utils.h.
7151 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7152 Move from cli/cli-utils.h.
7153 * common/host-defs.h: Include limits.h.
7154 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7155 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7156 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7157 common/common-utils.h.
7158 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7159 (strtoulst): Move to common/common-utils.c.
7160 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7162 2015-06-15 Yao Qi <yao.qi@linaro.org>
7164 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7166 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7168 * build-id.c: Don't include elf-bfd.h.
7169 (build_id_bfd_get): Use bfd_build_id.
7170 (build_id_verify): Ditto.
7171 * build-id.h: Ditto.
7172 (find_separate_debug_file_by_buildid): Ditto.
7173 * python/py-objfile.c: Don't include elf-bfd.h.
7174 (objfpy_get_build_id) Use bfd_build_id.
7175 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7176 * coffread.c: Include build-id.h.
7177 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7179 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7181 * windows-nat.c (do_windows_fetch_inferior_registers)
7182 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7183 conditional with __CYGWIN__.
7185 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7187 * completer.c: Add arch-utils.h include.
7188 (enum reg_completer_targets): New enum.
7189 (reg_or_group_completer_1): New function containing old
7190 reg_or_group_completer, add and use new parameter to control what
7191 is completed on. Use get_current_arch rather than architecture of
7192 currently selected frame.
7193 (reg_or_group_completer): Call new reg_or_group_completer_1.
7194 (reggroup_completer): Call new reg_or_group_completer_1.
7195 * completer.h (reggroup_completer): Add declaration.
7196 * tui/tui-regs.c: Add 'completer.h' include.
7197 (tui_reg_next_command): Renamed to...
7198 (tui_reg_next): ...this. Adjust parameters and return rather than
7200 (tui_reg_prev_command): Renamed to...
7201 (tui_reg_prev): ...this. Adjust parameters and return rather than
7203 (tui_reg_float_command): Delete.
7204 (tui_reg_general_command): Delete.
7205 (tui_reg_system_command): Delete.
7206 (tui_reg_command): Rewrite to perform switching of register group.
7208 (tuireglist): Remove.
7209 (tui_reggroup_completer): New function.
7210 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7211 creation of 'tui reg' command.
7212 * NEWS: Add comment about 'tui reg' changes.
7214 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7216 * target.c (target_read): Consider addressable unit size when
7217 reading from a memory object.
7218 (read_memory_robust): Same.
7219 (read_whatever_is_readable): Same.
7220 (target_write_with_progress): Consider addressable unit size
7221 when writing to a memory object.
7222 * target.h (target_read): Update documentation.
7223 (target_write): Add documentation.
7225 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7227 * arch-utils.h (default_addressable_memory_unit_size): New.
7228 * arch-utils.c (default_addressable_memory_unit_size): New.
7229 * gdbarch.sh (addressable_memory_unit_size): New.
7230 * gdbarch.h: Re-generate.
7231 * gdbarch.c: Re-generate.
7233 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7235 * target.c (target_read): Rename variables and use
7237 (target_read_with_progress): Same.
7238 (read_memory_robust): Constify parameters and rename
7240 (read_whatever_is_readable): Constify parameters,
7241 rename variables, adjust formatting.
7242 * target.h (read_memory_robust): Constify parameters.
7244 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7246 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7247 synthetic (non-AltiVec) vector types.
7248 (ppc64_sysv_abi_return_value): Likewise.
7250 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7252 PR breakpoints/16465
7253 * breakpoint.c (create_breakpoint): Save extra_string for
7254 pending breakpoints.
7256 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7258 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7259 and bt_mask to CORE_ADDR.
7261 2015-06-11 Gary Benson <gbenson@redhat.com>
7263 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7264 (mnsh_recv_message): Likewise.
7266 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7268 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7269 long long int and plongest instead of %ll.
7271 2015-06-11 Gary Benson <gbenson@redhat.com>
7273 * nat/linux-namespaces.c (gdb_wait.h): New include.
7274 (sys/wait.h): Do not include.
7276 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7278 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7279 end_sequence is true.
7281 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 * solib-target.c (library_list_start_list): Use explicit NULL
7287 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 * solib-target.c (library_list_start_list): Do not dereference
7290 variable version in its initialization. Make the VERSION check handle
7292 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7294 2015-06-10 Gary Benson <gbenson@redhat.com>
7296 * NEWS: Announce support for direct access of executable and
7297 shared library files when attaching to inferiors in containers
7298 on GNU/Linux systems.
7300 2015-06-10 Gary Benson <gbenson@redhat.com>
7302 * remote.c (struct remote_state) <fs_pid>: New field.
7303 (new_remote_state): Initialize the above.
7304 (PACKET_vFile_setfs): New enum value.
7305 (remote_hostio_set_filesystem): New function.
7306 (remote_hostio_open): Call the above.
7307 (remote_hostio_unlink): Likewise.
7308 (remote_hostio_readlink): Likewise.
7309 (_initialize_remote): Register new "set/show remote
7310 hostio-setfs-packet" command.
7311 * NEWS: Announce new vFile:setfs packet.
7313 2015-06-10 Gary Benson <gbenson@redhat.com>
7315 * linux-nat.c (nat/linux-namespaces.h): New include.
7316 (fileio.h): Likewise.
7317 (linux_nat_filesystem_is_local): New function.
7318 (linux_nat_fileio_pid_of): Likewise.
7319 (linux_nat_fileio_open): Likewise.
7320 (linux_nat_fileio_readlink): Likewise.
7321 (linux_nat_fileio_unlink): Likewise.
7322 (linux_nat_add_target): Initialize to_filesystem_is_local,
7323 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7324 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7326 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7328 2015-06-10 Gary Benson <gbenson@redhat.com>
7330 * target.h (struct inferior): New forward declaration.
7331 (struct target_ops) <to_filesystem_is_local>: Update comment.
7332 (struct target_ops) <to_fileio_open>: New argument inf.
7333 Update comment. All implementations updated.
7334 (struct target_ops) <to_fileio_unlink>: Likewise.
7335 (struct target_ops) <to_fileio_readlink>: Likewise.
7336 (target_filesystem_is_local): Update comment.
7337 (target_fileio_open): New argument inf. Update comment.
7338 (target_fileio_unlink): Likewise.
7339 (target_fileio_readlink): Likewise.
7340 (target_fileio_read_alloc): Likewise.
7341 (target_fileio_read_stralloc): Likewise.
7342 * target.c (target_fileio_open): New argument inf.
7343 Pass inf to implementation. Update debug printing.
7344 (target_fileio_unlink): Likewise.
7345 (target_fileio_readlink): Likewise.
7346 (target_fileio_read_alloc_1): New argument inf. Pass inf
7347 to target_fileio_open.
7348 (target_fileio_read_alloc): New argument inf. Pass inf to
7349 target_fileio_read_alloc_1.
7350 (target_fileio_read_stralloc): Likewise.
7351 * gdb_bfd.c (inferior.h): New include.
7352 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7353 argument with new argument "inferior". Pass inferior to
7355 (gdb_bfd_open): Supply inferior argument to
7356 gdb_bfd_iovec_fileio_open.
7357 * linux-tdep.c (linux_info_proc): Supply inf argument to
7358 relevant target_fileio calls.
7359 (linux_find_memory_regions_full): Likewise.
7360 (linux_fill_prpsinfo): Likewise.
7361 * remote.c (remote_filesystem_is_local): Supply inf
7362 argument to remote_hostio_open.
7363 (remote_file_put): Likewise.
7364 (remote_file_get): Likewise.
7365 (remote_file_delete): Supply inf argument to
7366 remote_hostio_unlink.
7368 2015-06-10 Gary Benson <gbenson@redhat.com>
7370 * inf-child.c (inf_child_fileio_open): Replace comment.
7371 (inf_child_fileio_pwrite): Likewise.
7372 (inf_child_fileio_pread): Likewise.
7373 (inf_child_fileio_fstat): Insert blank line before comment.
7374 (inf_child_fileio_close): Replace comment.
7375 (inf_child_fileio_unlink): Likewise.
7376 (inf_child_fileio_readlink): Likewise.
7377 * remote.c (remote_hostio_open): Likewise.
7378 (remote_hostio_pread): Likewise.
7379 (remote_hostio_pwrite): Likewise.
7380 (remote_hostio_close): Likewise.
7381 (remote_hostio_unlink): Likewise.
7382 (remote_hostio_readlink): Likewise.
7383 (remote_hostio_fstat): Likewise.
7384 (remote_filesystem_is_local): Likewise.
7385 * target.c (target_fileio_open): Likewise.
7386 (target_fileio_pwrite): Likewise.
7387 (target_fileio_pread): Likewise.
7388 (target_fileio_fstat): Insert blank line before comment.
7389 (target_fileio_close): Replace comment.
7390 (target_fileio_unlink): Likewise.
7391 (target_fileio_readlink): Likewise.
7392 (target_fileio_read_alloc): Likewise.
7393 (target_fileio_read_stralloc): Likewise.
7395 2015-06-10 Gary Benson <gbenson@redhat.com>
7397 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7398 (check_pid_namespace_match): Use linux_ns_same rather than
7399 linux_proc_pid_get_ns to spot PID namespace mismatches.
7400 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7401 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7403 2015-06-10 Gary Benson <gbenson@redhat.com>
7405 * configure.ac (AC_CHECK_FUNCS): Add setns.
7406 * config.in: Regenerate.
7407 * configure: Likewise.
7408 * nat/linux-namespaces.h: New file.
7409 * nat/linux-namespaces.c: Likewise.
7410 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7411 (linux-namespaces.o): New rule.
7412 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7413 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7414 * config/arm/linux.mh (NATDEPFILES): Likewise.
7415 * config/i386/linux.mh (NATDEPFILES): Likewise.
7416 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7417 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7418 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7419 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7420 * config/mips/linux.mh (NATDEPFILES): Likewise.
7421 * config/pa/linux.mh (NATDEPFILES): Likewise.
7422 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7423 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7424 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7425 * config/s390/linux.mh (NATDEPFILES): Likewise.
7426 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7427 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7428 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7429 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7431 2015-06-10 Gary Benson <gbenson@redhat.com>
7433 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7434 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7435 (make_cleanup_close): Likewise.
7436 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7437 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7438 (make_cleanup_close): Likewise.
7440 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7442 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7443 from SuspendThread().
7445 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7447 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7448 from OutputDebugString.
7450 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7451 Mircea Gherzan <mircea.gherzan@intel.com>
7453 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7454 MPX_BT_MASK_32): New macros.
7455 (i386_mpx_set_bounds): New function that implements
7456 the command "set-mpx-bound".
7457 (i386_mpx_enabled): Helper function to test MPX availability.
7458 (i386_mpx_bd_base): Helper function to calculate the base directory
7460 (i386_mpx_get_bt_entry): Helper function to access a bound
7462 (i386_mpx_print_bounds): Effectively display bound information.
7463 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7465 (_initialize_i386_tdep):
7466 Add "bound" to the commands "show mpx" and "set mpx" commands.
7467 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7468 and "show mpx" commands.
7469 * NEWS: List new commands for MPX support.
7471 2015-06-09 Gary Benson <gbenson@redhat.com>
7473 * common/fileio.h (fileio_to_host_mode): New declaration.
7474 * common/fileio.c (fileio_to_host_mode): New Function.
7475 * inf-child.c (inf_child_fileio_open): Process mode argument
7476 with fileio_to_host_mode.
7478 2015-06-09 Gary Benson <gbenson@redhat.com>
7480 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7483 2015-06-05 Gary Benson <gbenson@redhat.com>
7485 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7486 * remote.c (remote_filesystem_is_local): ...here.
7488 2015-06-04 Yao Qi <yao.qi@linaro.org>
7490 * gdbarch.c: Regenerate it.
7492 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7494 * arch-utils.c (default_infcall_munmap): New.
7495 * arch-utils.h (default_infcall_munmap): New declaration.
7496 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7497 (munmap_list_free, munmap_listp_free_cleanup): New.
7498 (struct setup_sections_data): Add field munmap_list_headp.
7499 (setup_sections): Call munmap_list_add.
7500 (compile_object_load): New variable munmap_list_head, initialize
7501 setup_sections_data.munmap_list_headp, return munmap_list_head.
7502 * compile/compile-object-load.h (struct munmap_list): New declaration.
7503 (struct compile_module): Add field munmap_list_head.
7504 (munmap_list_free): New declaration.
7505 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7507 (do_module_cleanup): Call munmap_list_free.
7508 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7509 * gdbarch.c: Regenerate.
7510 * gdbarch.h: Regenerate.
7511 * gdbarch.sh (infcall_munmap): New.
7512 * linux-tdep.c (linux_infcall_munmap): New.
7513 (linux_init_abi): Install it.
7515 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7518 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7520 2015-06-02 Yao Qi <yao.qi@linaro.org>
7522 * i386-linux-nat.c: Include linux-nat.h.
7524 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7525 Jan Kratochvil <jan.kratochvil@redhat.com>
7528 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7530 * dwarf2loc.c (chain_candidate): Likewise.
7532 2015-06-01 Yao Qi <yao.qi@linaro.org>
7534 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7535 (store_vfp_regs): Use PTRACE_SETREGSET.
7537 2015-06-01 Yao Qi <yao.qi@linaro.org>
7539 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7540 (fetch_fpregs): Likewise.
7541 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7542 (store_fpregs): Likewise.
7544 2015-06-01 Yao Qi <yao.qi@linaro.org>
7546 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7547 (fetch_regs): Likewise.
7548 (store_regs): Use PTRACE_SETREGSET.
7549 (store_register): Likewise.
7551 2015-06-01 Yao Qi <yao.qi@linaro.org>
7553 * arm-linux-nat.c (arm_linux_read_description): Check whether
7554 kernel supports PTRACE_GETREGSET.
7556 2015-06-01 Yao Qi <yao.qi@linaro.org>
7558 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7559 * linux-nat.c: ... here.
7560 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7562 * linux-nat.h: ... here.
7564 2015-06-01 Yao Qi <yao.qi@linaro.org>
7566 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7567 * i386-linux-nat.c: Likewise.
7568 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7569 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7570 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7571 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7572 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7574 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7576 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7577 compatible to what read_child and write_child return. This
7578 unbreaks that DJGPP build of GDB which was broken since v7.7.
7580 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7582 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7584 2015-05-29 Roland McGrath <mcgrathr@google.com>
7587 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7588 rather than internal_error for an unrecognized value.
7590 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7592 * xtensa-tdep.c (xtensa_pseudo_register_read)
7593 (xtensa_pseudo_register_write): Don't alias last pseudo register
7596 2015-05-28 Don Breazeal <donb@codesourcery.com>
7598 * infrun.c (follow_fork_inferior): Ensure the use of
7599 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7602 2015-05-28 Doug Evans <dje@google.com>
7604 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7606 2015-05-28 Yao Qi <yao.qi@linaro.org>
7608 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7609 (arm_linux_fetch_inferior_registers): Use
7610 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7611 (arm_linux_store_inferior_registers): Likewise.
7612 (arm_linux_read_description): Don't set
7613 arm_linux_has_wmmx_registers.
7614 * arm-tdep.c (arm_gdbarch_init): Set
7615 tdep->have_wmmx_registers according target descriptions.
7616 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7619 2015-05-28 Yao Qi <yao.qi@linaro.org>
7621 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7622 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7623 instead of arm_linux_vfp_register_count.
7624 (store_vfp_regs): Likewise.
7625 (arm_linux_fetch_inferior_registers): Likewise.
7626 (arm_linux_store_inferior_registers): Likewise.
7627 (arm_linux_read_description): Don't set
7628 arm_linux_vfp_register_count.
7629 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7631 * arm-tdep.c (arm_gdbarch_init): Add assert on
7633 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7634 field to vfp_register_count. All users updated.
7636 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7638 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7639 ELFOSABI_GNU binaries.
7641 2015-05-27 Doug Evans <dje@google.com>
7643 * dwarf2read.c (lnp_state_machine): New typedef.
7644 (lnp_reader_state): New typedef.
7645 (dwarf_record_line_1): Renamed from dwarf_record_line.
7646 All callers updated.
7647 (dwarf_record_line): New function.
7648 (init_lnp_state_machine): New function.
7649 (check_line_address): Replace p_record_line parameter with state.
7650 All callers updated.
7651 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7652 Update to record state in lnp_state_machine.
7654 2015-05-27 Doug Evans <dje@google.com>
7656 * dwarf2read.c (record_line_ftype): New typedef.
7657 (check_line_address): New function.
7658 (dwarf_decode_lines_1): Call it.
7660 2015-05-27 Doug Evans <dje@google.com>
7662 * NEWS: Mention "set debug dwarf-line".
7663 * dwarf2read.c (dwarf_line_debug): New static global.
7664 (add_include_dir): Add debug dwarf-line support.
7665 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7666 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7668 2015-05-27 Doug Evans <dje@google.com>
7670 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7671 All callers updated.
7672 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7673 * cp-support.h (cp_lookup_nested_symbol): Update.
7675 2015-05-27 Doug Evans <dje@google.com>
7678 * block.c (block_find_symbol): New function.
7679 (block_find_non_opaque_type): Ditto.
7680 (block_find_non_opaque_type_preferred): Ditto.
7681 * block.h (block_symbol_matcher_ftype): New typedef.
7682 (block_find_symbol): Declare.
7683 (block_find_non_opaque_type): Ditto.
7684 (block_find_non_opaque_type_preferred): Ditto.
7685 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7686 * psymtab.c (psym_lookup_symbol): Ditto.
7687 * symtab.c (basic_lookup_transparent_type_1): New function.
7688 (basic_lookup_transparent_type): Call it.
7690 2015-05-27 Yao Qi <yao.qi@linaro.org>
7692 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7693 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7695 2015-05-27 Yao Qi <yao.qi@linaro.org>
7697 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7699 (aarch64_record_load_store): Likewise.
7701 2015-05-26 Doug Evans <dje@google.com>
7703 PR c++/18141, c++/18417.
7704 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7707 2015-05-26 Doug Evans <dje@google.com>
7709 * NEWS: Add entries for command renamings.
7710 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7712 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7713 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7715 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7716 All callers updated. Fix spelling of DWARF in help text.
7717 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7719 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7721 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7722 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7723 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7725 (show_dwarf_always_disassemble): Renamed from
7726 show_dwarf2_always_disassemble. All callers updated.
7727 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7728 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7729 "set/show dwarf max-cache-age". Rename
7730 "set/show dwarf2 always-disassemble" to
7731 "set/show dwarf always-disassemble". Rename
7732 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7733 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7735 2015-05-26 Doug Evans <dje@google.com>
7738 * python/py-lazy-string.c (stpy_convert_to_value): Use
7739 gdbpy_gdb_memory_error not PyExc_MemoryError.
7740 (gdbpy_create_lazy_string_object): Ditto.
7742 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7744 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7746 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7748 * tui/tui-regs.c (tui_reg_prev_command): New function.
7749 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7750 * reggroups.c (reggroup_prev): New function.
7751 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7753 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7754 Yao Qi <yao.qi@linaro.org>
7756 * aarch64-linux-tdep.c: Include linux-record.h and
7758 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7759 (aarch64_syscall): New enum.
7760 (aarch64_canonicalize_syscall): New function.
7761 (aarch64_all_but_pc_registers_record): New function.
7762 (aarch64_linux_syscall_record): New function.
7763 (aarch64_linux_init_abi): Install AArch64 process record
7764 handler. Update to handle syscall recording.
7765 * aarch64-tdep.c: Include record.h and record-full.h.
7766 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7767 (struct aarch64_mem_r): Define.
7768 (aarch64_record_result): New enum.
7769 (struct insn_decode_record): Define.
7770 (insn_decode_record): New typedef.
7771 (aarch64_record_data_proc_reg): New function.
7772 (aarch64_record_data_proc_imm): New function.
7773 (aarch64_record_branch_except_sys): New function.
7774 (aarch64_record_load_store): New function.
7775 (aarch64_record_data_proc_simd_fp): New function.
7776 (aarch64_record_asimd_load_store): New function.
7777 (aarch64_record_decode_insn_handler): New function.
7778 (deallocate_reg_mem): New function.
7779 (aarch64_process_record): New function.
7780 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7782 (aarch64_process_record): New extern declaration.
7783 * configure.tgt: Add linux-record.o to gdb_target_obs.
7784 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7786 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7788 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7791 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7793 * amd64-tdep.c: Replace in_function_epilogue_p with
7794 stack_frame_destroyed_p throughout.
7795 * arch-utils.c: Ditto.
7796 * arch-utils.h: Ditto.
7797 * arm-tdep.c: Ditto.
7798 * breakpoint.c: Ditto.
7799 * gdbarch.sh: Ditto.
7800 * hppa-tdep.c: Ditto.
7801 * i386-tdep.c: Ditto.
7802 * mips-tdep.c: Ditto.
7803 * nios2-tdep.c: Ditto.
7804 * rs6000-tdep.c: Ditto.
7805 * s390-linux-tdep.c: Ditto.
7806 * score-tdep.c: Ditto.
7808 * sparc-tdep.c: Ditto.
7809 * sparc-tdep.h: Ditto.
7810 * sparc64-tdep.c: Ditto.
7811 * spu-tdep.c: Ditto.
7812 * tic6x-tdep.c: Ditto.
7813 * tilegx-tdep.c: Ditto.
7814 * xstormy16-tdep.c: Ditto.
7815 * gdbarch.c, gdbarch.h: Re-generated.
7817 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7819 * NEWS: Mention 'tui enable' and 'tui disable'.
7820 * tui/tui.c (tui_enable_command): New function.
7821 (tui_disable_command): New function.
7822 (_initialize_tui): New function.
7824 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7826 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7828 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7830 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7833 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7835 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7837 (tui_set_layout_for_display_command): ...here, before calling
7838 tui_set_layout. Only set the layout if gdb has not already
7839 entered the TUI_FAILURE state.
7841 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7843 * tui/tui-layout.c (layout_completer): New function.
7844 (_initialize_tui_layout): Set completer on layout command.
7846 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7848 * tui/tui-layout.c (tui_set_layout): Remove
7849 tui_register_display_type parameter. Remove all checking of this
7850 parameter, and reindent function. Update header comment.
7851 (tui_set_layout_for_display_command): Rename to...
7852 (tui_set_layout_by_name): ...this, and don't check for different
7853 register class types, don't pass a tui_register_display_type to
7854 tui_set_layout. Update header comment.
7855 (layout_names): Remove register set specific names.
7856 * tui/tui-layout.h (tui_set_layout): Remove
7857 tui_register_display_type parameter.
7858 * tui/tui.c (tui_rl_change_windows): Don't pass a
7859 tui_register_display_type to tui_set_layout.
7860 (tui_rl_delete_other_windows): Likewise.
7861 (tui_enable): Likewise.
7862 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7863 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7864 (TUI_GENERAL_REGS_NAME): Remove.
7865 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7866 (TUI_SPECIAL_REGS_NAME): Remove.
7867 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7868 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7869 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7870 (enum tui_register_display_type): Remove.
7871 (struct tui_layout_def): Remove regs_display_type and
7872 float_regs_display_type fields.
7873 (struct tui_data_info): Remove regs_display_type field.
7874 (tui_layout_command): Use new name for
7875 tui_set_layout_for_display_command.
7876 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7877 (tui_clear_win_detail): Don't initialise removed fields of
7879 * tui/tui-regs.c (tui_show_registers): Use new name for
7880 tui_set_layout_for_display_command.
7881 * tui/tui.h (tui_set_layout_for_display_command): Rename
7883 (tui_set_layout_by_name): ...this.
7884 * printcmd.c (display_command): Remove tui related layout call,
7887 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7889 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7890 (handle_inferior_event): New function.
7892 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7894 * ada-lang.c (to_fixed_array_type): Rename local variable
7895 typename into type_name.
7897 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7899 Fix ASAN crash for gdb.compile/compile.exp.
7900 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7902 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7904 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7905 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7906 * compile/compile-object-load.c (setup_sections, compile_object_load):
7908 * compile/compile.c (compile_to_object): Likewise.
7910 2015-05-16 Doug Evans <xdje42@gmail.com>
7912 * NEWS: Mention support for unbuffered Guile memory ports.
7913 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7914 (ioscm_lseek_address): Improve overflow calculation.
7915 (gdbscm_memory_port_fill_input): Add assert.
7916 (gdbscm_memory_port_write): Handle unbuffered ports.
7917 Handle large writes identical to Guile's fport_write.
7918 (gdbscm_memory_port_seek): Fix seeking past end check.
7919 (gdbscm_memory_port_close): Handle closing unbuffered port.
7920 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7921 (ioscm_init_memory_port): Handle unbuffered ports.
7922 (ioscm_reinit_memory_port): Ditto.
7923 (ioscm_init_memory_port): Update size calculation.
7924 (gdbscm_open_memory): Support zero sized ports.
7926 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7928 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7929 variable compiler warnings.
7931 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7933 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7935 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7936 Phil Muldoon <pmuldoon@redhat.com>
7938 * NEWS (Changes since GDB 7.9): Add compile print.
7939 * compile/compile-c-support.c (add_code_header, add_code_footer)
7940 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7941 COMPILE_I_PRINT_VALUE_SCOPE.
7942 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7943 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7945 * compile/compile-object-load.c: Include block.h.
7946 (get_out_value_type): New function.
7947 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7948 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7950 * compile/compile-object-load.h (struct compile_module): Add fields
7951 out_value_addr and out_value_type.
7952 * compile/compile-object-run.c: Include valprint.h and compile.h.
7953 (struct do_module_cleanup): Add fields out_value_addr and
7955 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7956 COMPILE_I_PRINT_VALUE_SCOPE.
7957 (compile_object_run): Propagate out_value_addr and out_value_type.
7958 Pass OUT_VALUE_ADDR.
7959 * compile/compile.c: Include valprint.h.
7960 (compile_print_value, compile_print_command): New functions.
7961 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7962 (_initialize_compile): Update compile code help text. Install
7963 compile_print_command.
7964 * compile/compile.h (compile_print_value): New prototype.
7965 * defs.h (enum compile_i_scope_types): Add
7966 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7968 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7970 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7971 Rely on its parameter count.
7972 (compile_object_load): Replace lookup_minimal_symbol_text by
7973 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7975 * compile/compile-object-load.h (struct compile_module): Replace
7976 func_addr by func_sym.
7977 * compile/compile-object-run.c: Include block.h.
7978 (compile_object_run): Reset module variable after it is freed. Use
7979 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7981 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7983 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7984 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7985 (c_compute_program): Call generate_register_struct after typedefs.
7986 * compile/compile-loc2c.c (push, pushf_register_address)
7987 (pushf_register): Cast to GCC_UINTPTR.
7988 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7989 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7990 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7991 * compile/compile.c (_initialize_compile): Enable warnings for
7994 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7996 * cli/cli-script.c (execute_control_command): Update
7997 eval_compile_command caller.
7998 * compile/compile-object-load.c (compile_object_load): Add parameters
7999 scope and scope_data. Set them.
8000 * compile/compile-object-load.h (struct compile_module): Add fields
8001 scope and scope_data.
8002 (compile_object_load): Add parameters scope and scope_data.
8003 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8004 scope and scope_data.
8005 (compile_object_run): Propagate the fields scope and scope_data.
8006 * compile/compile.c (compile_file_command, compile_code_command):
8007 Update eval_compile_command callers.
8008 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8009 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8010 * defs.h (struct command_line): Add field scope_data.
8012 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8014 * printcmd.c (struct format_data): Move it to valprint.h.
8015 (print_command_parse_format, print_value): New functions from ...
8016 (print_command_1): ... here. Call them.
8017 * valprint.h (struct format_data): Move it here from printcmd.c.
8018 (print_command_parse_format, print_value): New declarations.
8020 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8022 * compile/compile-object-load.c (compile_object_load): Add
8023 COMPILE_DEBUG message.
8025 2015-05-15 Jerome Guitton <guitton@adacore.com>
8027 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8028 index to get element instead of enum value.
8029 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8030 of index to compute length, but enum values to compute bounds.
8031 (ada_array_length): Use enum position of index instead of enum value.
8032 (pos_atr): Move position computation to...
8033 (ada_evaluate_subexp): Use enum values to compute bounds.
8034 * gdbtypes.c (discrete_position): ...this new function.
8035 * gdbtypes.h (discrete_position): New function declaration.
8036 * valprint.c (val_print_array_elements): Call discrete_position
8037 to handle array indexed by non-contiguous enumeration types.
8039 2015-05-15 Jerome Guitton <guitton@adacore.com>
8041 * ada-lang.c (find_parallel_type_by_descriptive_type):
8042 Go through typedefs during lookup.
8043 (to_fixed_array_type): Add support for non-bit packed arrays
8044 as variable-length fields.
8046 2015-05-15 Pedro Alves <palves@redhat.com>
8047 Simon Marchi <simon.marchi@ericsson.com>
8049 * event-loop.c (gdb_notifier) <next_file_handler,
8050 next_poll_fds_index>: New fields.
8051 (get_next_file_handler_to_handle_and_advance): New function.
8052 (delete_file_handler): If deleting the next file handler to
8053 handle, advance to the next file handler.
8054 (gdb_wait_for_event): Bail early if no event fired. Poll file
8055 handlers in round-robin fashion.
8057 2015-05-15 Pedro Alves <palves@redhat.com>
8059 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8060 'private' to 'priv'.
8062 2015-05-15 Pedro Alves <palves@redhat.com>
8064 * nat/linux-nat.h: Include "target/waitstatus.h".
8066 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8068 * python/py-unwind.c (struct reg_info): Move out of ...
8069 (struct cached_frame_info): ... this scope.
8070 (pending_frame_object_type, unwind_info_object_type): Make extern.
8072 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8074 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8075 accumSize is never negative.
8077 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8079 * tui/tui-command.c: Remove include of <ctype.h>.
8080 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8082 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8084 * dwarf2read.c (die_needs_namespace): Return 1 for
8085 DW_TAG_inlined_subroutine.
8087 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8089 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8090 (regcache_cpy_no_passthrough): Make it static, add function comment.
8091 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8092 (regcache_cpy_no_passthrough): Remove declaration.
8094 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8096 * gdbthread.h (struct thread_control_state): Update comment for
8098 * infcall.c (run_inferior_call): Update comment about
8100 * infcmd.c (get_return_value): Update comment about stop_registers.
8101 (finish_forward): Update comment about proceed_to_finish.
8102 * infrun.c (stop_registers): Remove.
8103 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8104 * infrun.h (stop_registers): Remove.
8106 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8108 * infcall.c (struct dummy_frame_context_saver)
8109 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8110 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8111 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8113 (call_function_by_hand_dummy): Move discard_cleanups of
8114 inf_status_cleanup before dummy_frame_push. Call
8115 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8116 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8117 * infcall.h (struct dummy_frame_context_saver)
8118 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8119 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8121 * infcmd.c: Include infcall.h.
8122 (get_return_value): Add parameter ctx_saver, use it instead of
8124 (print_return_value): Add parameter ctx_saver, pass it.
8125 (struct finish_command_continuation_args): Add field ctx_saver.
8126 (finish_command_continuation): Update print_return_value caller.
8127 (finish_command_continuation_free_arg): Free also ctx_saver.
8128 (finish_forward): Call dummy_frame_context_saver_setup.
8129 * inferior.h (struct dummy_frame_context_saver): New declaration.
8130 (get_return_value): Add parameter ctx_saver.
8131 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8132 get_return_value caller.
8134 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8136 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8137 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8138 (remove_dummy_frame): Process dtor_list.
8139 (pop_dummy_frame): Process dtor_list.
8140 (register_dummy_frame_dtor): Maintain dtor_list.
8141 (find_dummy_frame_dtor): Handle dtor_list.
8142 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8145 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8147 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8149 (compile_object_run): Update do_module_cleanup caller.
8150 * dummy-frame.c: Include infcall.h.
8151 (struct dummy_frame): Update dtor comment.
8152 (remove_dummy_frame): Call dtor.
8153 (pop_dummy_frame): Update dtor caller.
8154 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8157 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8161 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8163 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8164 Xmethods now being able to specify a result type to that new
8167 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8169 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8170 first before resizing the window.
8171 * tui/tui.c (tui_enable): Likewise.
8173 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8175 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8176 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8177 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8178 dummy_dtor parameter.
8179 * infcall.h: Include dummy-frame.h.
8180 (call_function_by_hand_dummy_dtor_ftype): Remove.
8181 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8184 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8187 * top.c (history_size_setshow_var): Change type to signed.
8188 Initialize to -2. Update documentation.
8189 (set_readline_history_size): Define.
8190 (set_history_size_command): Use it. Remove logic for handling
8192 (init_history): Use set_readline_history_size(). Test for a
8193 value of -2 instead of 0 when determining whether to set a
8194 default history size.
8195 (init_main): Decode the argument of the "size" command as a
8196 zuinteger_unlimited.
8198 2015-05-12 Doug Evans <dje@google.com>
8200 * dwarf2read.c (struct file_entry): Tweak comments.
8201 (get_debug_line_section): Tweak comments.
8203 2015-05-12 Don Breazeal <donb@codesourcery.com>
8205 * NEWS: Announce fork support in the RSP and support
8206 for fork debugging in extended mode.
8208 2015-05-12 Don Breazeal <donb@codesourcery.com>
8210 * remote.c (remote_insert_fork_catchpoint): New function.
8211 (remote_remove_fork_catchpoint): New function.
8212 (remote_insert_vfork_catchpoint): New function.
8213 (remote_remove_vfork_catchpoint): New function.
8214 (pending_fork_parent_callback): New function.
8215 (remove_new_fork_child): New function.
8216 (remote_update_thread_list): Call remote_notif_get_pending_events
8217 and remove_new_fork_child.
8218 (extended_remote_kill): Kill fork child when killing the
8219 parent before follow_fork completes.
8220 (init_extended_remote_ops): Initialize target vector with
8221 new fork catchpoint functions.
8223 2015-05-12 Don Breazeal <donb@codesourcery.com>
8225 * remote.c (remove_vfork_event_p): New function.
8226 (remote_follow_fork): Add vfork event type to event checking.
8227 (remote_parse_stop_reply): New stop reasons "vfork" and
8228 "vforkdone" for RSP 'T' Stop Reply Packet.
8230 2015-05-12 Don Breazeal <donb@codesourcery.com>
8232 * linux-nat.c (linux_nat_ptrace_options): New function.
8233 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8234 Call linux_nat_ptrace_options and use different argument to
8235 linux_enable_event_reporting.
8236 (_initialize_linux_nat): Delete call to
8237 linux_ptrace_set_additional_flags.
8238 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8239 supported_ptrace_options.
8240 (additional_flags): Delete variable.
8241 (linux_check_ptrace_features): Use supported_ptrace_options.
8242 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8243 Likewise, and remove additional_flags check.
8244 (linux_enable_event_reporting): Change 'attached' argument to
8245 'options'. Use supported_ptrace_options.
8246 (ptrace_supports_feature): Change comment. Use
8247 supported_ptrace_options.
8248 (linux_ptrace_set_additional_flags): Delete function.
8249 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8250 Delete function prototype.
8251 * remote.c (remote_fork_event_p): New function.
8252 (remote_detach_pid): New function.
8253 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8254 if doing detach-on-fork.
8255 (remote_follow_fork): New function.
8256 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8257 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8258 (init_extended_remote_ops): Initialize to_follow_fork.
8260 2015-05-12 Don Breazeal <donb@codesourcery.com>
8262 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8263 from static to extern.
8264 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8265 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8266 * PACKET_vfork_event_feature>: New enumeration constants.
8267 (remote_protocol_features): Add table entries for new packets.
8268 (remote_query_supported): Add new feature queries to qSupported
8271 2015-05-12 Gary Benson <gbenson@redhat.com>
8273 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8274 for fake PIDs as well as real ones.
8275 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8277 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8279 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8280 * python/py-value.c (valpy_reference_value): New function.
8281 (valpy_const_value): Likewise.
8282 (value_object_methods): Add new methods.
8283 * value.c (make_cv_value): New function.
8284 * value.h (make_cv_value): Declare.
8286 2015-05-08 Yao Qi <yao@codesourcery.com>
8287 Sandra Loosemore <sandra@codesourcery.com>
8289 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8290 to 'lh->include_dirs' before accessing to it.
8291 (psymtab_include_file_name): Likewise.
8292 (dwarf_decode_lines_1): Likewise.
8293 (dwarf_decode_lines): Likewise.
8294 (file_file_name): Likewise.
8296 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8298 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8299 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8300 (nios2_linux_rt_sigreturn_init): Adjust base address of
8303 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8305 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8306 "trap 31" as the breakpoint instruction on all targets.
8308 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8310 * infcmd.c (print_return_value): Remove unused declaration.
8312 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8314 * dwarf2read.c (attr_to_dynamic_prop)
8315 <DW_AT_data_member_location>: Use read_type_die isntead of
8318 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8320 * ada-lang.c (ada_convert_actual): Add handling of formals
8321 passed inside an aligner type.
8323 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8325 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8327 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8330 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8331 Print xmethod matcher status.
8333 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8335 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8336 register in the regcache when treating the PSWM register, and vice
8339 2015-05-07 Gary Benson <gbenson@redhat.com>
8341 * linux-thread-db.c (struct thread_db_info)
8342 <td_ta_map_id2thr_p>: Remove field.
8343 (try_thread_db_load_1): Remove initialization for the above.
8345 2015-05-07 Gary Benson <gbenson@redhat.com>
8347 * linux-thread-db.c (struct thread_db_info)
8348 <td_thr_validate_p>: Remove field.
8349 (try_thread_db_load_1): Remove initialization for the above.
8351 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8353 * compile/compile-object-load.c (compile_object_load): Support
8356 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8358 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8359 const. Use new variables for the const compatibility.
8360 (eval_compile_command): Make the cmd_string parameter const.
8361 * compile/compile.h (eval_compile_command): Make the cmd_string
8364 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8366 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8368 * top.c (deprecated_init_ui_hook): Delete.
8369 (gdb_init): Remove handling of deprecated_init_ui_hook.
8370 * interps.c (clear_interpreter_hooks): Remove handling of
8371 deprecated_init_ui_hook.
8372 * main.c (captured_main): Update comment.
8374 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8376 * solib.c (_initialize_solib): Add "info dll" alias creation.
8377 * windows-nat.c (set_windows_aliases): Delete.
8378 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8380 * NEWS: Add news entry about "info dll" now being available
8383 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8385 * ada-lang.c (value_assign_to_component): Reformat and improve
8386 documentation. Remove all trailing spaces.
8388 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8390 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8391 Stop counting inlined frames as soon as an out-of-line function
8394 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8396 * dwarf2read.c (inherit_abstract_dies): Skip
8397 DW_TAG_GNU_call_site dies while inheriting children of an
8398 abstract DIE into a scope.
8399 (read_lexical_block_scope): Inherit abstract DIE's for
8402 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8404 * ada-valprint.c (val_print_packed_array_elements): Delete
8405 variable "len". Add a type-length check when comparing two
8406 consecutive elements of the array. Use the element's actual
8407 length in call to value_contents_eq.
8408 * ada-lang.c (ada_value_primitive_packed_val): Always return
8409 a value whose type has been resolved.
8411 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8413 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8414 BIT_SIZE and LEN if the size of the resolved type is smaller
8415 than BIT_SIZE * HOST_CHAR_BIT.
8417 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8419 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8420 correct address in call to value_at. Adjust call to
8421 value_address accordingly.
8423 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8425 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8428 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8430 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8431 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8433 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8434 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8435 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8436 Add handling of addr_stack->valaddr.
8437 (resolve_dynamic_type): Add "valaddr" parameter.
8438 Set pinfo.valaddr field.
8439 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8440 resolve_dynamic_type.
8441 (ada_discrete_type_low_bound): Likewise.
8442 * findvar.c (default_read_var_value): Likewise.
8443 * value.c (value_from_contents_and_address): Likewise.
8445 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8447 * gdbtypes.c (resolve_dynamic_array): Use
8448 create_array_type_with_stride instead of create_array_type.
8450 2015-04-30 DJ Delorie <dj@redhat.com>
8452 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8455 2015-04-29 Doug Evans <dje@google.com>
8458 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8459 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8460 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8461 * extension-priv.h (struct extension_language_ops)
8462 <get_xmethod_result_type>: New member.
8463 * extension.c (get_xmethod_result_type): New function.
8464 * extension.h (get_xmethod_result_type): Declare.
8465 * python/py-xmethods.c (get_result_type_method_name): New static
8467 (py_get_result_type_method_name): Ditto.
8468 (gdbpy_get_xmethod_result_type): New function.
8469 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8470 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8471 * python/python.c (python_extension_ops): Add
8472 gdbpy_get_xmethod_result_type.
8473 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8474 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8476 (value_x_unop): Ditto.
8477 * value.c (result_type_of_xmethod): New function.
8478 * value.h (result_type_of_xmethod): Declare.
8480 2015-04-29 Gary Benson <gbenson@redhat.com>
8482 * solib.c (solib_find_1): Allow fd argument to be NULL.
8483 (exec_file_find): Update comment.
8484 (solib_find): Likewise.
8485 * exec.c (exec_file_locate_attach): Use NULL as fd
8486 argument to exec_file_find to avoid having to close
8488 * infrun.c (follow_exec): Likewise.
8490 2015-04-28 Doug Evans <dje@google.com>
8493 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8494 name or __name__ attributes. Handle gdb module as first argument.
8496 2015-04-28 Doug Evans <dje@google.com>
8499 * python/py-prettyprint.c (print_children): Verify result of children
8500 iterator. Provide better error message.
8501 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8502 * python/python.c (gdbpy_print_python_errors_p): New function.
8504 2015-04-28 Doug Evans <dje@google.com>
8506 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8508 2015-04-28 Sasha Smundak <asmundak@google.com>
8510 * NEWS: Mention gdb.Type.optimized_out method.
8511 * python/py-type.c (typy_optimized_out): New function.
8513 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8515 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8517 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8519 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8520 (initialize_utils): Move call of init_page_info() to ...
8521 * top.c (gdb_init): ... here.
8523 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8525 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8526 (tui_sigwinch_handler): Still update our idea of
8527 the terminal's width and height even when TUI is not active.
8529 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8531 * utils.h (set_screen_width_and_height): Declare.
8532 * utils.c (set_screen_width_and_height): Define.
8533 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8535 2015-04-28 Gary Benson <gbenson@redhat.com>
8537 * infrun.c (solist.h): New include.
8538 (follow_exec): Use exec_file_find to prefix execd_pathname
8541 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8543 * tui/tui-source.c (tui_set_source_content): Avoid calling
8544 strcpy() when offset is 0.
8546 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8549 * tui/tui-data.c (tui_free_window): Don't free the locator
8550 window when passed an SRC_WIN or a DISASSEM_WIN.
8552 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8554 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8555 (tui_win_content): Move declaration.
8556 (struct tui_gen_win_info): Give 'content' field the
8557 type tui_win_content.
8558 * tui/tui-data.c (init_content_element): Remove redundant and
8560 (tui_add_content_elements): Remove erroneous cast.
8561 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8563 (tui_get_begin_asm_address): Likewise.
8564 * tui/tui-regs.c (tui_show_registers): Likewise.
8565 (tui_show_register_group): Likewise.
8566 (tui_display_registers_from): Likewise.
8567 (tui_check_register_values): Likewise.
8568 * tui/tui-source.c (tui_set_source_content): Likewise.
8569 (tui_set_source_content_nil): Likewise.
8570 (tui_source_is_displayed): Likewise.
8571 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8572 (tui_set_locator_fullname): Likewise.
8573 (tui_set_locator_info): Likewise.
8574 (tui_show_frame_info): Likewise.
8575 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8576 (tui_show_source_line): Likewise.
8577 (tui_horizontal_source_scroll): Likewise.
8578 (tui_update_breakpoint_info): Likewise.
8579 (tui_set_exec_info_content): Likewise.
8580 (tui_show_exec_info_content): Likewise.
8581 (tui_alloc_source_buffer): Likewise.
8582 (tui_line_is_displayed): Likewise.
8583 (tui_addr_is_displayed): Likewise.
8585 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8587 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8588 event if PL_FLAG_EXEC is set.
8589 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8590 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8591 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8592 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8593 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8595 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8597 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8598 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8599 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8600 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8601 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8602 [PT_LWPINFO] (fbsd_wait): New function.
8603 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8604 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8605 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8606 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8607 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8608 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8609 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8610 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8611 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8613 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8614 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8615 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8616 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8617 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8618 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8619 Set "to_post_attach" to "fbsd_post_attach".
8621 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8623 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8624 (fbsd_find_memory_regions): Mark static.
8625 (fbsd_nat_add_target): New function.
8626 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8627 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8628 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8629 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8630 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8631 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8633 2015-04-27 Gary Benson <gbenson@redhat.com>
8635 * objfiles.c (allocate_objfile): Do not attempt to expand name
8636 if name is a "target:" filename.
8637 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8638 to load auto-load scripts for objfiles with "target:" filenames.
8640 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8642 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8643 (enum s390_vector_abi_kind): New enum.
8644 (struct gdbarch_tdep)<vector_abi>: New field.
8645 (s390_effective_inner_type): Add parameter min_size. Stop
8646 unwrapping if the inner type is smaller than min_size.
8647 (s390_function_arg_float): Adjust call to
8648 s390_effective_inner_type.
8649 (s390_function_arg_vector): New function.
8650 (s390_function_arg_integer): Adjust comment.
8651 (struct s390_arg_state)<vr>: New field.
8652 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8653 arguments according to vector ABI when appropriate.
8654 (s390_push_dummy_call): Initialize the argument state's field
8655 'vr'. Adjust calls to s390_handle_arg.
8656 (s390_register_return_value): Handle vector return values.
8657 (s390_return_value): Apply the "register" return value convention
8658 to a vector when appropriate.
8659 (s390_gdbarch_init): Initialize tdep->vector_abi.
8660 * NEWS: Announce S390 vector ABI support.
8662 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8664 * s390-linux-tdep.c (s390_return_value_convention): Remove
8665 function. Inline its logic...
8666 (s390_return_value): ...here. Instead, move the handling of the
8667 "register" return value convention...
8668 (s390_register_return_value): ...here. New function.
8670 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8673 (is_float_singleton): Remove function. Move the "singleton" part
8675 (s390_effective_inner_type): ...here. New function.
8676 (is_float_like): Remove function. Inline its logic...
8677 (s390_function_arg_float): ...here.
8678 (is_pointer_like, is_integer_like, is_struct_like): Remove
8679 functions. Inline their logic...
8680 (s390_function_arg_integer): ...here.
8681 (s390_function_arg_pass_by_reference): Remove function.
8682 (extend_simple_arg): Remove function.
8683 (alignment_of): Remove function.
8684 (struct s390_arg_state): New structure.
8685 (s390_handle_arg): New function.
8686 (s390_push_dummy_call): Move parameter placement logic to the new
8687 function s390_handle_arg. Call it for calculating the stack area
8688 sizes first, and again for actually writing the parameters.
8690 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8692 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8693 false if the argument is zero.
8695 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8697 * ada-lang.c (template_to_static_fixed_type): Return input type
8698 when it is already fixed. Cache the input type itself when not
8699 creating a static fixed copy. Make it explicit that we never
8700 molestate the input type.
8701 * gdbtypes.c (resolve_dynamic_struct): Reset the
8702 TYPE_TARGET_TYPE field for resolved copies.
8704 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8706 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8707 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8708 (template_to_static_fixed_type): Call ada_check_typedef only
8711 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8713 * cli/cli-dump.c (srec_dump_command): Add internationalization
8715 (ihex_dump_command): Likewise.
8716 (tekhex_dump_command): Likewise.
8717 (binary_dump_command): Likewise.
8718 (binary_append_command): Likewise.
8720 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8722 * cli/cli-dump.c (verilog_cmdlist): New variable.
8723 (dump_verilog_memory): New function.
8724 (dump_verilog_value): New function.
8725 (verilog_dump_command): New function.
8726 (_initialize_cli_dump): Add new commands to support verilog dump
8728 * NEWS: Add entry for "dump verilog".
8730 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8732 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8733 descriptive type when there is none.
8735 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8737 * tui/tui-win.c (tui_async_resize_screen): Call
8738 rl_resize_terminal().
8740 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8742 * windows-nat.c (handle_output_debug_string): Don't change
8743 current_event.dwThreadId.
8744 (get_windows_debug_event): Use thread_id, rather than relying on
8745 current_event.dwThreadId being changed.
8747 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8749 * windows-nat.c (windows_continue): Report an error if
8750 ContinueDebugEvent() fails.
8752 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8754 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8756 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8758 * windows-nat.c (get_windows_debug_event): Replace retval with
8759 thread_id throughout. Update stale comment.
8761 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8763 * windows-nat.c (get_windows_debug_event): Don't use ternary
8764 conditional operator.
8766 2015-04-21 Pierre Muller <muller@sourceware.org>
8769 p-exp.y (yylex): Reorganize code to return the matched pattern
8770 for a field of this.
8772 2015-04-21 Gary Benson <gbenson@redhat.com>
8774 * common/fileio.h (fileio_to_host_openflags): New declaration.
8775 * common/fileio.c (fcntl.h): New include.
8776 (fileio_to_host_openflags): New function, factored out from...
8777 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8780 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8782 * rl78-tdep.c (RL78_SP_ADDR): Define.
8783 (opc_reg_to_gdb_regnum): New static function.
8784 (rl78_analyze_prologue): Recognize instructions forming slightly
8785 more interesting prologues.
8787 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8790 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8791 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8792 TYPE_CODE_REF types so that they are not considered as dynamic
8793 depending on the referenced type.
8794 (resolve_dynamic_type_internal): Likewise.
8796 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8799 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8800 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8801 "top_level" parameter.
8802 (resolve_dynamic_type_internal): Remove the unused "top_level"
8803 parameter. Update call to is_dynamic_type_internal.
8804 (is_dynamic_type): Update call to is_dynamic_type_internal.
8805 (resolve_dynamic_range): Update call to
8806 resolve_dynamic_type_internal.
8807 (resolve_dynamic_union): Likewise.
8808 (resolve_dynamic_struct): Likewise.
8809 (resolve_dynamic_type): Likewise.
8811 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8813 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8816 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8818 * reply_mig_hack.awk: Robustify parsing.
8820 * reply_mig_hack.awk: Don't bother to declare an intermediate
8821 function pointer variable.
8823 2015-04-17 Doug Evans <dje@google.com>
8825 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8826 to "exec_displacement" to avoid confusion with inner use of the name.
8828 2015-04-17 Pedro Alves <palves@redhat.com>
8830 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8831 if HW point of TYPE isn't supported.
8833 2015-04-17 Yao Qi <yao.qi@linaro.org>
8834 Pedro Alves <palves@redhat.com>
8836 * target.h (target_can_use_hardware_watchpoint): Update comments.
8837 Remove trailing ";".
8839 2015-04-17 Gary Benson <gbenson@redhat.com>
8841 * remote.c (remote_add_inferior): New argument try_open_exec.
8842 If nonzero, attempt to open the inferior's executable file as
8843 the main executable if no main executable is open already.
8844 All callers updated.
8845 * NEWS: Mention that GDB now supports automatic location and
8846 retrieval of executable + files from remote targets.
8848 2015-04-17 Gary Benson <gbenson@redhat.com>
8850 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8851 * remote.c (PACKET_qXfer_exec_file): Likewise.
8852 (remote_protocol_features): Register the
8853 "qXfer:exec-file:read" feature.
8854 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8855 (remote_pid_to_exec_file): New function.
8856 (init_remote_ops): Initialize to_pid_to_exec_file.
8857 (_initialize_remote): Register new "set/show remote
8858 pid-to-exec-file-packet" command.
8859 * NEWS: Announce new qXfer:exec-file:read packet.
8861 2015-04-17 Gary Benson <gbenson@redhat.com>
8863 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8865 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8866 New function, factored out from...
8867 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8869 2015-04-17 Gary Benson <gbenson@redhat.com>
8871 * exec.c (solist.h): New include.
8872 (exec_file_locate_attach): Prefix absolute executable
8873 paths with gdb_sysroot if set.
8874 * NEWS: Mention that executable paths may be prepended
8877 2015-04-17 Gary Benson <gbenson@redhat.com>
8879 * solist.h (exec_file_find): New declaration.
8880 * solib.c (solib_find_1): New function, factored out from...
8881 (solib_find): ...here.
8882 (exec_file_find): New function.
8884 2015-04-17 Gary Benson <gbenson@redhat.com>
8886 * gdbcore.h (exec_file_locate_attach): New declaration.
8887 * exec.c (exec_file_locate_attach): New function, factored
8889 * infcmd.c (attach_command_post_wait): ...here.
8891 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8893 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8895 2015-04-16 Yao Qi <yao.qi@linaro.org>
8897 * infrun.c (maybe_software_singlestep): Declare.
8898 (displaced_step_fixup): Call maybe_software_singlestep.
8900 2015-04-15 Doug Evans <dje@google.com>
8902 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8904 2015-04-15 Doug Evans <dje@google.com>
8906 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8908 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8910 * python/lib/gdb/command/unwinders.py: Add parentheses.
8912 2015-04-15 Yao Qi <yao.qi@linaro.org>
8914 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8916 2015-04-15 Yao Qi <yao.qi@linaro.org>
8918 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8920 2015-04-15 Yao Qi <yao.qi@linaro.org>
8922 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8923 dsc->insn_size instead of 4.
8925 2015-04-14 Gary Benson <gbenson@redhat.com>
8927 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8928 * minidebug.c (lzma_stat): Likewise.
8929 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8930 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8932 2015-04-13 Stan Shebs <stanshebs@google.com>
8934 * MAINTAINERS: Update my email address.
8936 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8938 * amd64-tdep.c (amd64_target_description): New function.
8939 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8940 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8941 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8942 x86 extended save area.
8943 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8944 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8945 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8946 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8947 "amd64fbsd_read_description".
8948 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8949 (amd64fbsd_supply_xstateregset): New function.
8950 (amd64fbsd_collect_xstateregset): New function.
8951 Add "amd64fbsd_xstateregset".
8952 (amd64fbsd_iterate_over_regset_sections): New function.
8953 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8954 "I386_FBSD_XSAVE_XCR0_OFFSET".
8955 Add "iterate_over_regset_sections" gdbarch method.
8956 Add "core_read_description" gdbarch method.
8957 * i386-tdep.c (i386_target_description): New function.
8958 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8959 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8960 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8961 x86 extended save area.
8962 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8963 * i386bsd-nat.h: Export i386bsd_xsave_len.
8964 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8965 (_initialize_i386fbsd_nat): Set "to_read_description" to
8966 "i386fbsd_read_description".
8967 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8968 (i386fbsd_core_read_description): New function.
8969 (i386fbsd_supply_xstateregset): New function.
8970 (i386fbsd_collect_xstateregset): New function.
8971 Add "i386fbsd_xstateregset".
8972 (i386fbsd_iterate_over_regset_sections): New function.
8973 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8974 "I386_FBSD_XSAVE_XCR0_OFFSET".
8975 Add "iterate_over_regset_sections" gdbarch method.
8976 Add "core_read_description" gdbarch method.
8977 * i386fbsd-tdep.h: New file.
8979 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8981 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8982 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8984 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8986 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8988 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8990 * defs.h (xdb_commands): Remove declaration.
8991 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8992 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8993 * infcmd.c (run_no_args_command, go_command): Remove.
8994 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8995 * infrun.c (xdb_handle_command): Remove.
8996 (_initialize_infrun): Remove xdb_commands for lz and z.
8997 * main.c (xdb_commands): Remove variable.
8998 (captured_main): Remove "xdb" from long_options.
8999 (print_gdb_help): Remove --xdb from help.
9000 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9001 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9002 * stack.c (backtrace_full_command, args_plus_locals_info)
9003 (current_frame_command): Remove.
9004 (_initialize_stack): Remove xdb_commands for t, T and l.
9005 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9006 * thread.c (_initialize_thread): Remove xdb_commands condition.
9007 * tui/tui-layout.c (tui_toggle_layout_command)
9008 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9009 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9010 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9011 (tui_scroll_regs_backward_command): Remove.
9012 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9013 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9014 (_initialize_tui_win): Remove xdb_commands for U and w.
9015 * utils.c (pagination_on_command, pagination_off_command): Remove.
9016 (initialize_utils): Remove xdb_commands for am and sm.
9018 2015-04-10 Pedro Alves <palves@redhat.com>
9020 * infrun.c (displaced_step_fixup): Switch to the event ptid
9021 earlier. If the thread stopped for a watchpoint and the
9022 target/arch has non-continuable watchpoints, cancel the displaced
9024 (resume): Don't start a displaced step if in-line step-over info
9027 2015-04-10 Pedro Alves <palves@redhat.com>
9029 * infrun.c (displaced_step_in_progress): New function.
9030 (do_target_resume): Advise target to report all signals if
9033 2015-04-10 Pedro Alves <palves@redhat.com>
9036 * infrun.c (process_event_stop_test): Don't assume a step-resume
9037 is set if tp->stepped_breakpoint is true.
9039 2015-04-10 Yao Qi <yao.qi@linaro.org>
9041 * arm-tdep.c (install_alu_reg): Update comment.
9042 (thumb_copy_alu_reg): Remove local variable rn. Update
9043 debugging message. Use r2 instead of r1 in the modified
9046 2015-04-10 Pedro Alves <palves@redhat.com>
9049 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9050 linux_displaced_step_location as gdbarch_displaced_step_location
9052 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9053 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9054 * linux-tdep.c (linux_displaced_step_location): New function,
9055 based on ppc_linux_displaced_step_location.
9056 * linux-tdep.h (linux_displaced_step_location): New declaration.
9057 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9058 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9060 (ppc_linux_init_abi): Install linux_displaced_step_location as
9061 gdbarch_displaced_step_location hook, even without Cell/B.E..
9062 (_initialize_ppc_linux_tdep): Don't install
9063 ppc_linux_inferior_created as inferior_created observer.
9064 * s390-linux-tdep.c (s390_gdbarch_init): Install
9065 linux_displaced_step_location as gdbarch_displaced_step_location
9068 2015-04-09 Gary Benson <gbenson@redhat.com>
9070 * common/common-remote-fileio.h: Rename to...
9071 * common/fileio.h: ...this. Update all references.
9072 (remote_fileio_to_fio_error): Rename to...
9073 (host_to_fileio_error): ...this.
9074 (remote_fileio_to_be): Rename to...
9075 (host_to_bigendian): ...this. Update all callers.
9076 (remote_fileio_to_fio_uint): Rename to...
9077 (host_to_fileio_uint): ...this. Update all callers.
9078 (remote_fileio_to_fio_time): Rename to...
9079 (host_to_fileio_time): ...this. Update all callers.
9080 (remote_fileio_to_fio_stat): Rename to...
9081 (host_to_fileio_stat): ...this.
9082 Update all references.
9083 * common/common-remote-fileio.c: Rename to...
9084 * common/fileio.c: ...this. Update all references.
9085 (remote_fileio_to_fio_error): Rename to...
9086 (host_to_fileio_error): ...this. Update all callers.
9087 (remote_fileio_mode_to_target): Rename to...
9088 (fileio_mode_pack): ...this. Update all callers.
9089 (remote_fileio_to_fio_mode): Rename to...
9090 (host_to_fileio_mode): ...this. Update all callers.
9091 (remote_fileio_to_fio_ulong): Rename to...
9092 (host_to_fileio_ulong): ...this. Update all callers.
9093 (remote_fileio_to_fio_stat): Rename to...
9094 (host_to_fileio_stat): ...this. Update all callers.
9096 2015-04-09 Andy Wingo <wingo@igalia.com>
9098 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9099 (frame_functions): Bind gdbscm_frame_read_register to
9100 frame-read-register.
9101 * guile/lib/gdb.scm (frame-read-register): Export.
9103 2015-04-09 Gary Benson <gbenson@redhat.com>
9105 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9107 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9108 New function, factored out the named functions below.
9109 * inf-child.c (gdb/fileio.h): Remove include.
9110 (common-remote-fileio.h): New include.
9111 (inf_child_errno_to_fileio_error): Remove function. Update
9112 all callers to use remote_fileio_to_fio_error.
9113 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9115 2015-04-09 Andy Wingo <wingo@igalia.com>
9117 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9119 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9121 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9122 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9123 * configure: Regenerated.
9125 2015-04-09 Pedro Alves <palves@redhat.com>
9127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9128 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9129 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9130 * gnulib/import/Makefile.am: Update.
9131 * gnulib/import/Makefile.in: Update.
9132 * gnulib/import/m4/gnulib-cache.m4: Update.
9133 * gnulib/import/m4/gnulib-comp.m4: Update.
9134 * gnulib/import/m4/strtok_r.m4: New file.
9135 * gnulib/import/strtok_r.c: New file.
9137 2015-04-09 Pedro Alves <palves@redhat.com>
9139 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9140 "called too early to check prototype".
9142 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9145 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9146 use a caching mechanism. Adjust comments and code to reflect
9147 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9148 (cmdpy_completer_handle_brkchars): Adjust call to
9149 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9150 (cmdpy_completer): Likewise.
9152 2015-04-08 Yao Qi <yao.qi@linaro.org>
9154 * spu-tdep.c (spu_gdbarch_init): Don't call
9155 set_gdbarch_cannot_step_breakpoint.
9157 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9159 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9161 2015-04-07 Pedro Alves <palves@redhat.com>
9163 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9164 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9165 (delete_exited_threads): New declaration.
9166 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9167 * linux-nat.c (linux_nat_update_thread_list): New function.
9168 (linux_nat_add_target): Install it.
9169 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9170 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9171 (delete_exited_threads): New function.
9173 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9175 * infrun.c (resume) <displaced stepping debug output>: Get the
9176 leader thread's regcache, not resume_ptid's.
9178 2015-04-06 Doug Evans <xdje42@gmail.com>
9180 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9182 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9183 Include symbol domain in debugging output.
9185 2015-04-06 Pedro Alves <palves@redhat.com>
9186 Bernd Edlinger <bernd.edlinger@hotmail.de>
9188 * configure.ac: Remove the mingw32-specific stub-termcap.o
9189 fallback, and instead fallback to the stub termcap on all hosts.
9190 * configure: Regenerate.
9191 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9194 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9196 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9197 "top_level" parameter.
9198 (resolve_dynamic_type_internal): Remove the unused "top_level"
9199 parameter. Update call to is_dynamic_type_internal.
9200 (is_dynamic_type): Update call to is_dynamic_type_internal.
9201 (resolve_dynamic_range): Update call to
9202 resolve_dynamic_type_internal.
9203 (resolve_dynamic_union): Likewise.
9204 (resolve_dynamic_struct): Likewise.
9205 (resolve_dynamic_type): Likewise.
9207 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9209 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9210 TYPE_CODE_REF types so that they are not considered as dynamic
9211 depending on the referenced type.
9212 (resolve_dynamic_type_internal): Likewise.
9214 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9216 * Makefile.in (top_srcdir): New.
9217 * configure: Regenerated.
9219 2015-04-02 Gary Benson <gbenson@redhat.com>
9221 * NEWS: Announce the new default sysroot of "target:".
9223 2015-04-02 Gary Benson <gbenson@redhat.com>
9225 * main.c (captured_main): Set gdb_sysroot to "target:"
9226 if not otherwise set.
9228 2015-04-02 Gary Benson <gbenson@redhat.com>
9230 * exec.c (exec_file_attach): Support "target:" filenames.
9232 2015-04-02 Gary Benson <gbenson@redhat.com>
9234 * solib.c (solib_find): Strip "target:" prefix from sysroot
9235 if accessing local files.
9237 2015-04-02 Gary Benson <gbenson@redhat.com>
9239 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9240 checks and error messages.
9242 2015-04-02 Gary Benson <gbenson@redhat.com>
9244 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9245 (remote_filename_p): Remove declaration.
9246 (remote_bfd_open): Likewise.
9247 * remote.c (remote_bfd_iovec_open): Remove function.
9248 (remote_bfd_iovec_close): Likewise.
9249 (remote_bfd_iovec_pread): Likewise.
9250 (remote_bfd_iovec_stat): Likewise.
9251 (remote_filename_p): Likewise.
9252 (remote_bfd_open): Likewise.
9253 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9254 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9255 (gdb_bfd_open_maybe_remote): Remove function.
9256 (symfile_bfd_open): Replace remote filename check with
9257 target filename check.
9258 (reread_symbols): Use gdb_bfd_open.
9259 * build-id.c (gdbcore.h): New include.
9260 (build_id_to_debug_bfd): Use gdb_bfd_open.
9261 * infcmd.c (attach_command_post_wait): Remove remote filename
9263 * solib.c (solib_find): Replace remote-specific handling with
9264 target-specific handling. Update comments where necessary.
9265 (solib_bfd_open): Replace remote-specific handling with
9266 target-specific handling.
9267 (gdb_sysroot_changed): New function.
9268 (_initialize_solib): Call the above when gdb_sysroot changes.
9269 * windows-tdep.c (gdbcore.h): New include.
9270 (windows_xfer_shared_library): Use gdb_bfd_open.
9272 2015-04-02 Gary Benson <gbenson@redhat.com>
9274 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9275 (is_target_filename): New declaration.
9276 (gdb_bfd_has_target_filename): Likewise.
9277 (gdb_bfd_open): Update documentation comment.
9278 * gdb_bfd.c (target.h): New include.
9279 (gdb/fileio.h): Likewise.
9280 (is_target_filename): New function.
9281 (gdb_bfd_has_target_filename): Likewise.
9282 (fileio_errno_to_host): Likewise.
9283 (gdb_bfd_iovec_fileio_open): Likewise.
9284 (gdb_bfd_iovec_fileio_pread): Likewise.
9285 (gdb_bfd_iovec_fileio_close): Likewise.
9286 (gdb_bfd_iovec_fileio_fstat): Likewise.
9287 (gdb_bfd_open): Use target fileio to access paths prefixed
9288 with "target:" where necessary.
9290 2015-04-02 Gary Benson <gbenson@redhat.com>
9292 * target.h (struct target_ops) <to_filesystem_is_local>:
9294 (target_filesystem_is_local): New macro.
9295 * target-delegates.c: Regenerate.
9296 * remote.c (remote_filesystem_is_local): New function.
9297 (init_remote_ops): Initialize to_filesystem_is_local.
9299 2015-04-02 Gary Benson <gbenson@redhat.com>
9301 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9302 (target_fileio_fstat): New declaration.
9303 * target.c (target_fileio_fstat): New function.
9304 * inf-child.c (inf_child_fileio_fstat): Likewise.
9305 (inf_child_target): Initialize to_fileio_fstat.
9306 * remote.c (init_remote_ops): Likewise.
9308 2015-04-01 Sasha Smundak <asmundak@google.com>
9310 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9311 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9312 (py-unwind.o): New recipe.
9313 * NEWS: mention Python frame unwinding.
9314 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9315 gdb/unwinder.py and gdb/command/unwinder.py
9316 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9318 (execute_unwinders): New function.
9319 * python/lib/gdb/command/unwinders.py: New file.
9320 * python/lib/gdb/unwinder.py: New file.
9321 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9322 (objfpy_dealloc): Decrement frame_unwinders reference count.
9323 (objfpy_initialize): Create frame_unwinders list.
9324 (objfpy_get_frame_unwinders): New function.
9325 (objfpy_set_frame_unwinders): Ditto.
9326 (objfile_getset): Add frame_unwinders attribute to Objfile.
9327 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9328 (pspy_dealloc): Decrement frame_unwinders reference count.
9329 (pspy_initialize): Create frame_unwinders list.
9330 (pspy_get_frame_unwinders): New function.
9331 (pspy_set_frame_unwinders): Ditto.
9332 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9333 * python/py-unwind.c: New file.
9334 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9335 (objpy_get_frame_unwinders): New prototype.
9336 (gdbpy_initialize_unwind): New prototype.
9337 * python/python.c (gdbpy_apply_type_printers): Call
9338 gdbpy_initialize_unwind.
9340 2015-04-01 Pedro Alves <palves@redhat.com>
9342 * infrun.c (resume): Check currently_stepping after clearing
9343 stepped_breakpoint, not before.
9345 2015-04-01 Pedro Alves <palves@redhat.com>
9347 * infrun.c (print_target_wait_results): Print all the ptid
9350 2015-04-01 Pedro Alves <palves@redhat.com>
9352 * infrun.c (keep_going): Also discard cleanups if inserting
9355 2015-04-01 Pedro Alves <palves@redhat.com>
9357 * infrun.c (wait_for_inferior): Install the
9358 finish_thread_state_cleanup cleanup across the whole function, not
9359 just around handle_inferior_event.
9361 2015-04-01 Pedro Alves <palves@redhat.com>
9363 * infrun.c (resume) <step past permanent breakpoint>: Use
9366 2015-04-01 Pedro Alves <palves@redhat.com>
9368 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9370 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9372 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9374 2015-04-01 Pedro Alves <palves@redhat.com>
9376 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9377 list if it was marked exited.
9379 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9381 * configure: Regenerated.
9383 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9384 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 Oleg Nesterov <oleg@redhat.com>
9388 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9389 New enum identifying the various options of the coredump_filter
9391 (struct smaps_vmflags): New struct.
9392 (use_coredump_filter): New variable.
9393 (decode_vmflags): New function.
9394 (mapping_is_anonymous_p): Likewise.
9395 (dump_mapping_p): Likewise.
9396 (linux_find_memory_regions_full): New variables
9397 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9398 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9399 parsing of its information. Implement memory mapping filtering
9400 based on its contents.
9401 (show_use_coredump_filter): New function.
9402 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9403 * NEWS: Mention the possibility of using the
9404 '/proc/PID/coredump_filter' file when generating a corefile.
9405 Mention new command 'set use-coredump-filter'.
9407 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9409 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9410 read_memory_unsigned_integer.
9412 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9414 * Makefile.in (ZLIB): New.
9415 (ZLIBINC): Likewise.
9416 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9417 (CLIBS): Add $(ZLIB).
9418 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9420 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9421 * top.c (print_gdb_configuration): Remove --with-zlib and
9423 * config.in: Regenerated.
9424 * configure: Likewise.
9426 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9428 * NEWS: Mention info os cpus support.
9429 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9430 (struct osdata_type): Add cpus entry, reorder the entries in
9433 2015-03-31 Matthias Klose <doko@ubuntu.com>
9435 * compile/compile.c (compile_to_object): Allow triplets with or
9438 2015-03-30 Doug Evans <dje@google.com>
9441 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9442 klass in VAR_DOMAIN.
9444 2015-03-30 Gary Benson <gbenson@redhat.com>
9446 * remote.c (remote_mourn_1): Remove function. Update all callers
9447 to use remote_mourn.
9448 (extended_remote_mourn_1): Remove function. Update all callers
9449 to use extended_remote_mourn.
9450 (extended_remote_attach_1): Remove function. Update all callers
9451 to use extended_remote_attach.
9453 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9455 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9456 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9457 (ALLDEPFILES): Add ft32-tdep.c.
9458 * configure.tgt: Add FT32 entry.
9459 * ft32-tdep.c: New file, FT32 target-dependent code.
9460 * ft32-tdep.h: New file, FT32 target-dependent code.
9462 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9465 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 * printcmd.c (print_command_1): Move expr variable scope.
9469 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9471 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9473 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9475 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9478 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9480 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9481 exception raised while parsing the probe arguments.
9482 Force parsing to be done using the C language parser.
9483 * expression.h (parse_expression_with_language): Declare.
9484 * parse.c (parse_expression_with_language): New function.
9486 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9488 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9490 2015-03-26 Andy Wingo <wingo@igalia.com>
9493 * dwarf2read.c (struct partial_die_info): Add has_const_value
9495 (add_partial_symbol): Don't punt on symbols that have const_value
9497 (read_partial_die): Detect DW_AT_const_value.
9499 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * printcmd.c (print_command_1): Move expr variable scope.
9504 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9507 * printcmd.c (validate_format): Make the parameter cmdname const.
9509 2015-03-26 Don Breazeal <donb@codesourcery.com>
9511 * remote.c (_initialize_remote): Update comment.
9513 2015-03-26 Pedro Alves <palves@redhat.com>
9514 Jon TURNEY <jon.turney@dronecode.org.uk>
9516 * coffread.c (coff_symfile_read): When constructing the name of an
9517 import stub symbol from import symbol for amd64, only skip the
9518 char after _imp_ if the target is underscored (like i386) and the
9519 char is indeed the target's leading char.
9521 2015-03-25 Pedro Alves <palves@redhat.com>
9523 * target.h <to_async>: Replace 'callback' and 'context' parameters
9524 with boolean 'enable' parameter.
9525 (target_async): Replace CALLBACK and CONTEXT parameters with
9526 boolean ENABLE parameter.
9527 * inf-loop.c (inferior_event_handler): Adjust.
9528 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9529 (linux_nat_resume): Adjust.
9530 (async_client_callback, async_client_context): Delete.
9531 (handle_target_event): Call inferior_event_handler directly.
9532 (linux_nat_async): Replace 'callback' and 'context' parameters
9533 with boolean 'enable' parameter. Adjust. Remove references to
9534 async_client_callback and async_client_context.
9535 (linux_nat_close): Adjust.
9536 * record-btrace.c (record_btrace_async): Replace 'callback' and
9537 'context' parameters with boolean 'enable' parameter. Adjust.
9538 (record_btrace_resume): Adjust.
9539 * record-full.c (record_full_async): Replace 'callback' and
9540 'context' parameters with boolean 'enable' parameter. Adjust.
9541 (record_full_resume, record_full_core_resume): Adjust.
9542 * remote.c (struct remote_state) <async_client_callback,
9543 async_client_context>: Delete fields.
9544 (remote_start_remote, extended_remote_attach_1, remote_resume)
9545 (extended_remote_create_inferior): Adjust.
9546 (remote_async_serial_handler): Call inferior_event_handler
9548 (remote_async): Replace 'callback' and 'context' parameters with
9549 boolean 'enable' parameter. Adjust.
9550 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9552 * target-delegates.c: Regenerate.
9554 2015-03-25 Gary Benson <gbenson@redhat.com>
9555 Pedro Alves <palves@redhat.com>
9557 * target.c (fileio_ft_t): New typedef, define object vector.
9558 (fileio_fhandles): New static variable.
9559 (is_closed_fileio_fh): New macro.
9560 (lowest_closed_fd): New static variable.
9561 (acquire_fileio_fd): New function.
9562 (release_fileio_fd): Likewise.
9563 (fileio_fd_to_fh): New macro.
9564 (target_fileio_open): Wrap the file descriptor on success.
9565 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9566 (target_fileio_pread): Likewise.
9567 (target_fileio_close): Likewise.
9569 2015-03-24 Pedro Alves <palves@redhat.com>
9571 * thread.c (thread_apply_all_command): Take exited threads into
9574 2015-03-24 Pedro Alves <palves@redhat.com>
9576 * infrun.c (resume, proceed): Mention
9577 switch_back_to_stepped_thread, not switch_back_to_stepping.
9579 2015-03-24 Pedro Alves <palves@redhat.com>
9581 * infrun.c (user_visible_resume_ptid): Rewrite going from
9582 most-locked to unlocked instead of the opposite. Move comment ...
9583 * infrun.h (user_visible_resume_ptid): ... here.
9585 2015-03-24 Pedro Alves <palves@redhat.com>
9587 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9588 to resume the event lwp. Use the lwp's ptid instead of the passed
9589 in (maybe wildcard) ptid.
9590 (stop_wait_callback): Tweak debug log output.
9591 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9593 (linux_nat_filter_event): In debug output, distinguish a
9594 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9595 before trying to resume the lwp.
9597 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9599 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9600 pointer indirection.
9601 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9602 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9604 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9606 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9607 Renames DYN_ATTR_DATA_LOCATION.
9608 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9609 DYN_ATTR_DATA_LOCATION.
9610 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9611 instead of DYN_ATTR_DATA_LOCATION.
9613 2015-03-24 Pedro Alves <palves@redhat.com>
9615 * breakpoint.c (until_break_command): Adjust call to proceed.
9616 * gdbthread.h (struct thread_control_state) <stepping_command>:
9618 * infcall.c (run_inferior_call): Adjust call to proceed.
9619 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9620 Adjust calls to proceed.
9621 (set_step_frame): Set the current thread's step_start_function
9623 (step_once): Adjust calls to proceed.
9624 (jump_command, signal_command, until_next_command)
9625 (finish_backward, finish_forward, proceed_after_attach_callback)
9626 (attach_command_post_wait): Adjust calls to proceed.
9627 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9628 (do_target_resume): New function, factored out from ...
9629 (resume): ... here. Remove 'step' parameter. Instead, check
9630 currently_stepping to determine whether the thread should be
9632 (proceed): Remove 'step' parameter and don't set the thread's
9633 step_start_function here. Adjust call to 'resume'.
9634 (handle_inferior_event): Adjust calls to 'resume'.
9635 (switch_back_to_stepped_thread): Use do_target_resume instead of
9637 (keep_going): Adjust calls to 'resume'.
9638 * infrun.h (proceed): Remove 'step' parameter.
9640 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9642 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9644 2015-03-24 Pedro Alves <palves@redhat.com>
9646 * gdbthread.h (struct thread_control_state) <stepping_command>:
9648 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9649 the thread's stepping_command field.
9650 * infrun.c (resume): Check the thread's stepping_command flag to
9651 determine which threads should be resumed. Rename 'entry_step'
9653 (clear_proceed_status_thread): Clear 'stepping_command'.
9654 (schedlock_applies): Change parameter type to struct thread_info
9656 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9657 (switch_back_to_stepped_thread): Adjust calls to
9658 'schedlock_applies'.
9659 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9661 2015-03-24 Pedro Alves <palves@redhat.com>
9663 * infrun.c (step_start_function): Delete and ...
9664 * gdbthread.h (struct thread_control_state) <step_start_function>:
9665 ... now a field here.
9666 * infrun.c (clear_proceed_status_thread): Clear the thread's
9667 step_start_function.
9668 (proceed, process_event_stop_test, print_stop_event): Adjust.
9670 2015-03-24 Pedro Alves <palves@redhat.com>
9672 * infrun.c (proceed): No longer handle negative step.
9674 2015-03-24 Gary Benson <gbenson@redhat.com>
9676 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9677 (x86_linux_prepare_to_resume): Likewise.
9678 * x86-linux-nat.c (x86_linux_new_thread):
9679 Moved to nat/x86-linux.c.
9680 (x86_linux_prepare_to_resume): Likewise.
9681 * nat/x86-linux.c (x86_linux_new_thread): New function.
9682 (x86_linux_prepare_to_resume): Likewise.
9684 2015-03-24 Gary Benson <gbenson@redhat.com>
9686 * nat/x86-linux-dregs.h: New file.
9687 * nat/x86-linux-dregs.c: Likewise.
9688 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9689 (x86-linux-dregs.o): New rule.
9690 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9691 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9692 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9693 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9694 (x86_linux_dr_get): Likewise.
9695 (x86_linux_dr_set): Likewise.
9696 (x86_linux_dr_get_addr): Likewise.
9697 (x86_linux_dr_get_control): Likewise.
9698 (x86_linux_dr_get_status): Likewise.
9699 (update_debug_registers_callback): Likewise.
9700 (x86_linux_dr_set_control): Likewise.
9701 (x86_linux_dr_set_addr): Likewise.
9702 (x86_linux_update_debug_registers): Likewise.
9704 2015-03-24 Gary Benson <gbenson@redhat.com>
9706 * x86-linux-nat.c (x86_linux_update_debug_registers):
9707 New function, factored out from...
9708 (x86_linux_prepare_to_resume): ...this.
9710 2015-03-24 Gary Benson <gbenson@redhat.com>
9712 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9713 (x86_linux_dr_set): Likewise.
9714 (x86_linux_dr_get_addr): Likewise.
9715 (x86_linux_dr_get_control): Likewise.
9716 (x86_linux_dr_get_status): Likewise.
9717 (update_debug_registers_callback): Likewise.
9718 (x86_linux_dr_set_control): Likewise.
9719 (x86_linux_dr_set_addr): Likewise.
9720 (x86_linux_prepare_to_resume): Likewise.
9721 (x86_linux_new_thread): Likewise.
9723 2015-03-24 Gary Benson <gbenson@redhat.com>
9725 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9726 (x86_linux_new_thread): Rename argument.
9728 2015-03-24 Gary Benson <gbenson@redhat.com>
9730 * nat/x86-linux.h: New file.
9731 * nat/x86-linux.c: Likewise.
9732 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9733 (x86-linux.o): New rule.
9734 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9735 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9736 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9737 (lwp_set_arch_private_info): New declaration.
9738 (lwp_arch_private_info): Likewise.
9739 * linux-nat.c (lwp_set_arch_private_info): New function.
9740 (lwp_arch_private_info): Likewise.
9741 * x86-linux-nat.c: Include nat/x86-linux.h.
9742 (arch_lwp_info): Removed structure.
9743 (update_debug_registers_callback):
9744 Use lwp_set_debug_registers_changed.
9745 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9746 and lwp_set_debug_registers_changed.
9747 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9749 2015-03-24 Gary Benson <gbenson@redhat.com>
9751 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9752 (lwp_is_stopped): Likewise.
9753 (lwp_stop_reason): Likewise.
9754 * linux-nat.c (ptid_of_lwp): New function.
9755 (lwp_is_stopped): Likewise.
9756 (lwp_is_stopped_by_watchpoint): Likewise.
9757 * x86-linux-nat.c (update_debug_registers_callback):
9759 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9762 2015-03-24 Gary Benson <gbenson@redhat.com>
9764 * linux-nat.h (linux_stop_lwp): Move declaration to...
9765 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9767 2015-03-24 Gary Benson <gbenson@redhat.com>
9769 * linux-nat.h: Include nat/linux-nat.h.
9770 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9771 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9772 (iterate_over_lwps_ftype): New typedef.
9773 (iterate_over_lwps): New declaration.
9774 * linux-nat.h (iterate_over_lwps): Update comment. Use
9775 iterate_over_lwps_ftype. Update callback return value check.
9777 2015-03-24 Gary Benson <gbenson@redhat.com>
9779 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9780 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9782 2015-03-24 Gary Benson <gbenson@redhat.com>
9784 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9785 * linux-nat.c (current_lwp_ptid): New function.
9786 * x86-linux-nat.c: Include nat/linux-nat.h.
9787 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9788 (x86_linux_dr_get_control): Likewise.
9789 (x86_linux_dr_get_status): Likewise.
9790 (x86_linux_dr_set_control): Likewise.
9791 (x86_linux_dr_set_addr): Likewise.
9793 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9795 PR breakpoints/16466
9796 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9798 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9800 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9801 * ser-unix.c (hardwire_setparity): Likewise.
9803 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9805 * NEWS: Mention set/show serial parity command.
9806 * monitor.c (monitor_open): Call serial_setparity.
9807 * remote.c (remote_open_1): Likewise.
9808 * ser-base.c (ser_base_serparity): New function.
9809 * ser-base.h (ser_base_setparity): Add declaration.
9810 * ser-go32.c (dos_ops): Set "setparity" field.
9811 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9813 (ser_windows_setparity): New function.
9814 (hardwire_ops): Add ser_windows_setparity.
9815 (tty_ops): Add NULL for setparity field.
9816 (pipe_ops): Add ser_base_setparity.
9817 (tcp_ops): Likewise.
9818 * ser-pipe.c (pipe_ops): Likewise.
9819 * ser-tcp.c (tcp_ops): Likewise.
9820 * ser-unix.c (hardwire_setparity): Add declaration.
9821 (hardwire_raw): Don't reset PARENB flag.
9822 (hardwire_setparity): New function.
9823 (hardwire_ops): Add hardwire_setparity.
9824 * serial.c (serial_setparity): New function.
9825 (serial_parity): New global.
9826 (parity_none, parity_odd, parity_even, parity_enums, parity):
9828 (set_parity): New function.
9829 (_initialize_serial): Add set/show serial parity commands.
9830 * serial.h (GDBPARITY_NONE): Define.
9831 (GDBPARITY_ODD): Define.
9832 (GDBPARITY_EVEN): Define.
9833 (serial_setparity) Add declaration.
9834 (struct serial_ops): Add setparity field.
9835 * target.h (serial_parity): Add declaration.
9837 2015-03-23 Keith Seitz <keiths@redhat.com>
9839 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9841 2015-03-23 Keith Seitz <keiths@redhat.com>
9843 * breakpoint.c (parse_breakpoint_sals): Use
9844 linespec_lexer_lex_keyword to ascertain if the user specified
9846 * linespec.c [IF_KEYWORD_INDEX]: Define.
9847 (linespec_lexer_lex_keyword): Export.
9848 (struct ls_parser) <keyword_ok>: Remove.
9849 A keyword is only a keyword if not followed by another keyword.
9850 (linespec_lexer_lex_one): Remove keyword_ok handling.
9851 Add comment explaining why the parsing stream is not advanced
9852 when a keyword is seen.
9853 (parse_linespec): Remove parser->keyword_ok.
9854 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9856 2015-03-23 Keith Seitz <keiths@redhat.com>
9859 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9860 if we find a static method with DW_AT_vtable_elem_location.
9862 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9864 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9865 before the second loop, to avoid undefined behavior. Reported by
9866 Anton Blanchard <anton@samba.org>.
9868 2015-03-20 Keven Boell <keven.boell@intel.com>
9870 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9871 data_location usage to linked list.
9872 (resolve_dynamic_type_internal): Adapt data_location to
9874 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9875 (copy_type_recursive, copy_type): Add copy of linked list.
9876 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9877 (struct dynamic_prop_list): New struct.
9878 * dwarf2read.c (set_die_type): Set data_location data.
9880 2015-03-20 Pedro Alves <palves@redhat.com>
9882 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9883 inner block and make it const.
9884 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9886 2015-03-20 Pedro Alves <palves@redhat.com>
9888 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9889 * breakpoint.h (set_breakpoint_condition): Update declaration.
9891 2015-03-20 Pedro Alves <palves@redhat.com>
9893 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9895 2015-03-20 Pedro Alves <palves@redhat.com>
9897 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9899 2015-03-20 Pedro Alves <palves@redhat.com>
9901 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9903 2015-03-20 Pedro Alves <palves@redhat.com>
9905 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9906 (nto_init_solib_absolute_prefix): Likewise.
9908 2015-03-20 Pedro Alves <palves@redhat.com>
9910 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9911 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9913 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9915 * config/djgpp/README: Remove gdb.hp.
9917 2015-03-20 Yao Qi <yao.qi@linaro.org>
9919 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9920 set_gdbarch_cannot_step_breakpoint.
9922 2015-03-19 Pedro Alves <palves@redhat.com>
9924 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9925 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9926 instead call perror_with_name.
9927 (check_ptrace_stopped_lwp_gone): New function.
9928 (linux_resume_one_lwp): Reimplement as wrapper around
9929 linux_resume_one_lwp_throw that swallows errors if the LWP is
9931 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9932 swallows errors if the LWP is gone. Use
9933 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9935 2015-03-19 Pedro Alves <palves@redhat.com>
9937 * linux-nat.c (status_callback): Return early if the LWP has no
9940 2015-03-19 Pedro Alves <palves@redhat.com>
9942 * linux-nat.c (select_event_lwp_callback): Update comment to no
9943 longer mention SIGTRAP.
9945 2015-03-18 Tristan Gingold <gingold@adacore.com>
9947 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9948 redirection code to ...
9949 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9950 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9952 2015-03-18 Gary Benson <gbenson@redhat.com>
9954 (remote_protocol_features): Remove the "vFile:fstat" feature.
9955 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9957 2015-03-11 Yao Qi <yao.qi@linaro.org>
9960 * aarch64-linux-tdep.c: Include xml-syscall.h
9961 (aarch64_linux_get_syscall_number): New function.
9962 (aarch64_linux_init_abi): Call
9963 set_gdbarch_get_syscall_number.
9964 * syscalls/aarch64-linux.xml: New file.
9966 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9968 * ser-base.h (ser_base_setstopbits): Change second argument name
9969 from "rate" to "num".
9971 2015-03-17 Gary Benson <gbenson@redhat.com>
9972 Luke Allardyce <lukeallardyce@gmail.com>
9975 * common/common-remote-fileio.h (sys/stat.h): New include.
9976 (stuct stat): Remove forward declaration.
9978 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9980 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9981 before writing core register notes.
9983 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9984 Pedro Alves <palves@redhat.com>
9986 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9987 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9988 (tgoto): Wrap with extern "C".
9990 2015-03-16 Pedro Alves <palves@redhat.com>
9991 Yuanhui Zhang <asmwarrior@gmail.com>
9993 * stub-termcap.c (tputs): Change prototype.
9995 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9996 Pedro Alves <palves@redhat.com>
9998 * windows-nat.c (struct thread_info_struct): Rename to ...
9999 (struct windows_thread_info_struct): ... this.
10000 (thread_info): Rename to ...
10001 (windows_thread_info): ... this.
10004 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10005 Pedro Alves <palves@redhat.com>
10007 * NEWS: New Removed targets and native configurations.
10009 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10012 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10013 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10014 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10015 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10016 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10017 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10018 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10020 * config/ia64/hpux.mh: Remove file.
10021 * config/pa/hpux.mh: Remove file.
10022 * configure: Rebuilt.
10023 * configure.ac (dlgetmodinfo, somread.o): Remove.
10024 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10025 (ia64-*-hpux*): Remove its float format exception.
10026 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10027 * hppa-hpux-nat.c: Remove file.
10028 * hppa-hpux-tdep.c: Remove file.
10029 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10030 Move them here from hppa-tdep.h
10031 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10032 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10033 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10034 Move them to hppa-tdep.c.
10035 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10037 * ia64-hpux-nat.c: Remove file.
10038 * ia64-hpux-tdep.c: Remove file.
10039 * ia64-hpux-tdep.h: Remove file.
10040 * inf-ttrace.c: Remove file.
10041 * inf-ttrace.h: Remove file.
10042 * solib-ia64-hpux.c: Remove file.
10043 * solib-ia64-hpux.h: Remove file.
10044 * solib-pa64.c: Remove file.
10045 * solib-pa64.h: Remove file.
10046 * solib-som.c: Remove file.
10047 * solib-som.h: Remove file.
10048 * somread.c: Remove file.
10050 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10052 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10053 * config.in: Regenerate.
10054 * configure: Regenerate.
10055 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10057 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10058 enumerate memory regions if present.
10060 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10062 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10063 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10065 (i386fbsd_sigtramp_p): Likewise.
10067 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10069 * MAINTAINERS (Write After Approval): Add John Baldwin.
10071 2015-03-12 Gary Benson <gbenson@redhat.com>
10073 * solib.c (_initialize_solib): Make "set/show sysroot" use
10074 add_setshow_optional_filename_cmd so it can be restored to
10075 empty after being set.
10077 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10079 * Makefile.in (SFILES): New source break-catch-syscall.c.
10080 (COMMON_OBS): New object break-catch-syscall.o.
10081 * break-catch-syscall.c: New file.
10082 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10083 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10084 (struct syscall_catchpoint): Likewise.
10085 (dtor_catch_syscall): Likewise.
10086 (catch_syscall_inferior_data): Likewise.
10087 (struct catch_syscall_inferior_data): Likewise.
10088 (get_catch_syscall_inferior_data): Likewise.
10089 (catch_syscall_inferior_data_cleanup): Likewise.
10090 (insert_catch_syscall): Likewise.
10091 (remove_catch_syscall): Likewise.
10092 (breakpoint_hit_catch_syscall): Likewise.
10093 (print_it_catch_syscall): Likewise.
10094 (print_one_catch_syscall): Likewise.
10095 (print_mention_catch_syscall): Likewise.
10096 (print_recreate_catch_syscall): Likewise.
10097 (catch_syscall_breakpoint_ops): Likewise.
10098 (syscall_catchpoint_p): Likewise.
10099 (create_syscall_event_catchpoint): Likewise.
10100 (catch_syscall_split_args): Likewise.
10101 (catch_syscall_command_1): Likewise.
10102 (is_syscall_catchpoint_enabled): Likewise.
10103 (catch_syscall_enabled): Likewise.
10104 (catching_syscall_number): Likewise.
10105 (catch_syscall_completer): Likewise.
10106 (clear_syscall_counts): Likewise.
10107 (initialize_breakpoint_ops): Move initialization of syscall
10108 catchpoints to break-catch-syscall.c.
10109 (_initialize_breakpoint): Move code related to syscall catchpoints
10110 to break-catch-syscall.c.
10112 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10114 * breakpoint.c (breakpoint_find_if): New function.
10115 * breakpoint.h (breakpoint_find_if): New prototype.
10117 2015-03-11 Gary Benson <gbenson@redhat.com>
10119 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10120 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10121 (remote_fileio_to_host_ulong): Likewise.
10122 (remote_fileio_to_host_mode): Likewise.
10123 (remote_fileio_to_host_time): Likewise.
10124 (remote_fileio_to_host_stat): Likewise.
10125 * remote.c (PACKET_vFile_fstat): New enum value.
10126 (remote_protocol_features): Register the "vFile:fstat" feature.
10127 (remote_hostio_fstat): New function.
10128 (remote_bfd_iovec_stat): Use the above.
10129 (_initialize_remote): Register new "set/show remote
10130 hostio-fstat-packet" command.
10131 * symfile.c (separate_debug_file_exists): Update comment.
10132 * NEWS: Announce new vFile:fstat packet.
10134 2015-03-11 Gary Benson <gbenson@redhat.com>
10136 * common/common-remote-fileio.h: New file.
10137 * common/common-remote-fileio.c: Likewise.
10138 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10139 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10140 (COMMON_OBS): Add common-remote-fileio.o.
10141 (common-remote-fileio.o): New rule.
10142 * remote-fileio.h (common-remote-fileio.h): New include.
10143 * remote-fileio.c (gdb/fileio.h): Do not include.
10144 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10145 (remote_fileio_to_fio_uint): Likewise.
10146 (remote_fileio_to_fio_time): Likewise.
10147 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10148 (remote_fileio_to_fio_mode): Likewise.
10149 (remote_fileio_to_fio_ulong): Likewise.
10150 (remote_fileio_to_fio_stat): Likewise.
10152 2015-03-11 Andy Wingo <wingo@igalia.com>
10154 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10155 we were checking the cached type, not the cached dynamic type.
10157 2015-03-11 Andy Wingo <wingo@igalia.com>
10159 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10160 other strings, as these are on the GC'd heap, and will be
10161 collected along with the smob.
10163 2015-03-11 Andy Wingo <wingo@igalia.com>
10165 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10166 (objfile_functions): Bind gdbscm_objfile_progspace to
10168 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10170 2015-03-11 Andy Wingo <wingo@igalia.com>
10172 * guile/guile.c (_initialize_guile): Disable automatic
10173 finalization, if Guile offers us that possibility.
10174 * guile/guile.c (call_initialize_gdb_module):
10175 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10176 finalizers in appropriate places.
10177 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10178 scm_set_automatic_finalization_enabled.
10179 * configure: Regenerated.
10181 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10183 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10186 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10188 * s390-linux-nat.c (struct arch_lwp_info): New.
10189 (s390_fix_watch_points): Rename to...
10190 (s390_prepare_to_resume): ...this. Skip the PER info update
10191 unless the watch points have changed.
10192 (s390_refresh_per_info, s390_new_thread): New functions.
10193 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10194 s390_fix_watch_points.
10195 (s390_remove_watchpoint): Likewise.
10196 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10197 Register s390_prepare_to_resume.
10199 2015-03-09 Pedro Alves <palves@redhat.com>
10202 2015-03-07 Pedro Alves <palves@redhat.com>
10203 * common/gdb_socket.h: New file.
10204 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10206 (net_open): Use union gdb_sockaddr_u.
10208 2015-03-07 Pedro Alves <palves@redhat.com>
10210 * configure.ac (build_warnings): Move -Wmissing-prototypes
10211 -Wdeclaration-after-statement -Wmissing-parameter-type
10212 -Wold-style-declaration -Wold-style-definition to the C-specific
10214 * configure: Regenerate.
10216 2015-03-07 Pedro Alves <palves@redhat.com>
10218 * common/gdb_socket.h: New file.
10219 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10221 (net_open): Use union gdb_sockaddr_u.
10223 2015-03-07 Pedro Alves <palves@redhat.com>
10225 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10226 (exceptions_state_mc_action_iter)
10227 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10229 [__cplusplus] (try_scope_depth): New global.
10230 [__cplusplus] (exception_try_scope_entry)
10231 (exception_try_scope_exit, gdb_exception_sliced_copy)
10232 (exception_rethrow): New functions.
10233 (throw_exception): In C++ mode, throw
10234 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10235 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10236 (throw_it): In C++ mode, use try_scope_depth.
10237 * common/common-exceptions.h [!__cplusplus]
10238 (exceptions_state_mc_action_iter)
10239 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10241 [__cplusplus] (exception_try_scope_entry)
10242 (exception_try_scope_exit, exception_rethrow): Declare.
10243 [__cplusplus] (struct exception_try_scope): New struct.
10244 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10246 (struct gdb_exception_RETURN_MASK_ALL)
10247 (struct gdb_exception_RETURN_MASK_ERROR)
10248 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10250 2015-03-07 Pedro Alves <palves@redhat.com>
10252 * main.c (handle_command_errors): Remove volatile qualifier from
10255 2015-03-07 Pedro Alves <palves@redhat.com>
10257 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10259 * gdbtypes.c (safe_parse_type): Remove empty line.
10260 (types_deeply_equal):
10261 * guile/scm-frame.c (gdbscm_frame_name):
10262 * linux-thread-db.c (find_new_threads_once):
10263 * python/py-breakpoint.c (bppy_get_commands):
10264 * record-btrace.c (record_btrace_insert_breakpoint)
10265 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10266 (record_btrace_start_replaying): Adjust to avoid code between TRY
10269 2015-03-07 Pedro Alves <palves@redhat.com>
10271 * common/common-exceptions.c (struct catcher) <exception>: No
10272 longer a pointer to volatile exception. Now an exception value.
10273 <mask>: Delete field.
10274 (exceptions_state_mc_init): Remove all parameters. Adjust.
10275 (exceptions_state_mc): No longer pop the catcher here.
10276 (exceptions_state_mc_catch): New function.
10277 (throw_exception): Adjust.
10278 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10280 (exceptions_state_mc_catch): Declare.
10281 (TRY_CATCH): Rename to ...
10282 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10283 (CATCH, END_CATCH): New.
10284 All callers adjusted.
10286 2015-03-07 Tom Tromey <tromey@redhat.com>
10288 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10290 2015-03-07 Pedro Alves <palves@redhat.com>
10292 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10293 (amd64_epilogue_frame_cache): Normal exception handling code.
10294 * break-catch-throw.c (check_status_exception_catchpoint)
10295 (re_set_exception_catchpoint): Ditto.
10296 * cli/cli-interp.c (safe_execute_command):
10297 * cli/cli-script.c (script_from_file): Ditto.
10298 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10300 * compile/compile-object-run.c (compile_object_run): Ditto.
10301 * cp-abi.c (baseclass_offset): Ditto.
10302 * cp-valprint.c (cp_print_value): Ditto.
10303 * exceptions.c (catch_exceptions_with_msg):
10304 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10305 * frame.c (get_frame_address_in_block_if_available): Ditto.
10306 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10307 (i386_sigtramp_frame_cache): Ditto.
10308 * infcmd.c (post_create_inferior): Ditto.
10309 * linespec.c (parse_linespec, find_linespec_symbols):
10310 * p-valprint.c (pascal_object_print_value): Ditto.
10311 * parse.c (parse_expression_for_completion): Ditto.
10312 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10313 * remote.c (remote_get_noisy_reply): Ditto.
10314 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10315 * solib-svr4.c (solib_svr4_r_map): Ditto.
10317 2015-03-06 Gary Benson <gbenson@redhat.com>
10319 * common/common-utils.h (startswith): New inline function.
10320 All places where this logic was used updated to use the above.
10322 2015-03-05 Pedro Alves <palves@redhat.com>
10325 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10326 after reading the breakpoint's shadow memory.
10328 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10330 * hppabsd-nat.c: Remove file.
10331 * hppaobsd-nat.c: New file.
10332 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10334 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10337 2015-03-04 Pedro Alves <palves@redhat.com>
10339 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10340 (target_decr_pc_after_break): Delete declaration.
10341 * target.c (default_target_decr_pc_after_break)
10342 (target_decr_pc_after_break): Delete.
10343 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10344 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10345 * linux-thread-db.c (check_event): Likewise.
10346 * infrun.c (adjust_pc_after_break): Likewise.
10347 * darwin-nat.c (cancel_breakpoint): Likewise.
10348 * aix-thread.c (aix_thread_wait): Likewise.
10349 * target-delegates.c: Regenerate.
10351 2015-03-04 Pedro Alves <palves@redhat.com>
10353 * linux-nat.c (save_sigtrap): Check for breakpoints before
10354 checking watchpoints.
10355 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10356 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10357 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10358 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10359 (linux_nat_stopped_by_sw_breakpoint)
10360 (linux_nat_supports_stopped_by_sw_breakpoint)
10361 (linux_nat_stopped_by_hw_breakpoint)
10362 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10363 (linux_nat_wait_1): Don't re-increment the PC if relying on
10364 SIGTRAP's siginfo->si_code.
10365 (linux_nat_add_target): Install new target methods.
10366 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10367 offset if the target already adjusted the PC.
10368 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10369 (GDB_ARCH_TRAP_BRKPT): New.
10370 (TRAP_HWBKPT): Define if not already defined.
10372 2015-03-04 Pedro Alves <palves@redhat.com>
10374 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10375 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10377 <stop_reason>: New field.
10378 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10379 (packet_set_cmd_state): New function.
10380 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10382 (remote_query_supported): If not disabled with the corresponding
10383 "set remote foo-packet" command, report support for the swbreak
10384 and hwbreak features.
10385 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10387 <stop_reason>: New field.
10388 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10389 (remote_wait_as): Adjust.
10390 (remote_stopped_by_sw_breakpoint)
10391 (remote_supports_stopped_by_sw_breakpoint)
10392 (remote_stopped_by_hw_breakpoint)
10393 (remote_supports_stopped_by_hw_breakpoint): New functions.
10394 (remote_stopped_by_watchpoint): New function.
10395 (init_remote_ops): Install them.
10396 (_initialize_remote): Register new "set/show remote
10397 swbreak-feature-packet" and "set/show remote
10398 swbreak-feature-packet" commands.
10400 2015-03-04 Pedro Alves <palves@redhat.com>
10402 * btrace.h: Include target/waitstatus.h.
10403 (struct btrace_thread_info) <stop_reason>: New field.
10404 * record-btrace.c (record_btrace_step_thread): Use
10405 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10406 (record_btrace_decr_pc_after_break): Delete.
10407 (record_btrace_stopped_by_sw_breakpoint)
10408 (record_btrace_supports_stopped_by_sw_breakpoint)
10409 (record_btrace_stopped_by_hw_breakpoint)
10410 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10411 (init_record_btrace_ops): Install them.
10412 * record-full.c (record_full_hw_watchpoint): Delete and replace
10414 (record_full_stop_reason): ... this throughout.
10415 (record_full_exec_insn): Adjust.
10416 (record_full_wait_1): Adjust. No longer re-increment the PC.
10417 (record_full_wait_1): Adjust. Use
10418 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10419 (record_full_stopped_by_watchpoint): Adjust.
10420 (record_full_stopped_by_sw_breakpoint)
10421 (record_full_supports_stopped_by_sw_breakpoint)
10422 (record_full_supports_stopped_by_sw_breakpoint)
10423 (record_full_stopped_by_hw_breakpoint)
10424 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10425 (init_record_full_ops, init_record_full_core_ops): Install them.
10426 * record.c (record_check_stopped_by_breakpoint): New function.
10427 * record.h: Include target/waitstatus.h.
10428 (record_check_stopped_by_breakpoint): New declaration.
10430 2015-03-04 Pedro Alves <palves@redhat.com>
10432 enum lwp_stop_reason -> enum target_stop_reason
10433 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10434 (linux_nat_stopped_by_watchpoint, status_callback)
10435 (linux_nat_wait_1): Adjust.
10436 * linux-nat.h (enum lwp_stop_reason): Delete.
10437 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10438 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10439 * target/waitstatus.h (enum target_stop_reason): New.
10441 2015-03-04 Pedro Alves <palves@redhat.com>
10443 * breakpoint.c (need_moribund_for_location_type): New function.
10444 (bpstat_stop_status): Don't skipping checking moribund locations
10445 of breakpoint types which the target tell caused a stop.
10446 (program_breakpoint_here_p): New function, factored out from ...
10447 (bp_loc_is_permanent): ... this.
10448 (update_global_location_list): Don't create a moribund location if
10449 the target supports reporting stops of the type of the removed
10451 * breakpoint.h (program_breakpoint_here_p): New declaration.
10452 * infrun.c (adjust_pc_after_break): Return early if the target has
10453 already adjusted the PC. Add comments.
10454 (handle_signal_stop): If nothing explains a signal, and the target
10455 tells us the stop was caused by a software breakpoint, check if
10456 there's a breakpoint instruction in the memory. If so, adjust the
10457 PC before presenting the stop to the user. Otherwise, ignore the
10458 trap. If nothing explains a signal, and the target tells us the
10459 stop was caused by a hardware breakpoint, ignore the trap.
10460 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10461 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10462 to_supports_stopped_by_hw_breakpoint>: New fields.
10463 (target_stopped_by_sw_breakpoint)
10464 (target_supports_stopped_by_sw_breakpoint)
10465 (target_stopped_by_hw_breakpoint)
10466 (target_supports_stopped_by_hw_breakpoint): Define.
10467 * target-delegates.c: Regenerate.
10469 2015-03-04 Pedro Alves <palves@redhat.com>
10471 * infrun.c (follow_fork_inferior): Use the whole of the
10472 inferior_ptid and pending_follow.related_pid ptids instead of
10473 building ptids from the process components. Adjust verbose output
10474 to use target_pid_to_str.
10475 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10476 inferior_ptid and pending_follow.related_pid ptids instead of
10477 building ptids from the process components.
10479 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10481 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10482 (inf_ptrace_insert_fork_catchpoint): New function.
10483 (inf_ptrace_remove_fork_catchpoint): New function.
10484 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10486 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10488 * s390-linux-tdep.c (s390_register_name): Return empty string
10489 instead of NULL for registers that shouldn't be visible.
10491 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10493 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10494 XML file for 64-bit targets.
10496 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10498 * target.h (find_default_create_inferior): Remove declaration.
10499 (find_default_attach): Likewise.
10501 2015-03-03 Pedro Alves <palves@redhat.com>
10503 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10504 Use ptid_get_pid to get the overall process id when resuming all
10507 2015-03-03 Pedro Alves <palves@redhat.com>
10509 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10510 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10511 * inf-ptrace.c (get_ptrace_pid): New function.
10512 (inf_ptrace_resume): Use it.
10513 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10514 to the lower layer.
10516 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10518 * nat/linux-btrace.c: Include sys/utsname.h.
10519 (linux_determine_kernel_ptr_bits): New.
10520 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10521 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10524 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10526 * btrace.c (ftrace_update_function): Treat return as tailcall for
10527 "_dl_runtime_resolve".
10529 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10531 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10532 * btrace.c (ftrace_debug): Do not print the line range.
10533 (ftrace_skip_file, ftrace_update_lines): Remove.
10534 (ftrace_new_function): Remove lbegin and lend initialization.
10535 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10536 * record-btrace.c (btrace_compute_src_line_range): New.
10537 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10539 2015-03-02 Pedro Alves <palves@redhat.com>
10541 * infrun.c (follow_exec): Delete all threads of the process except
10542 the event thread. Extended comments.
10544 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10546 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10548 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10550 * utils.h: Remove <stdbool.h> #include.
10551 (producer_is_gcc): Change return type to "int".
10552 * utils.c (producer_is_gcc): Change return type to int.
10553 Return 1 instead of true, and 0 instead of false.
10554 Adjust function documentation accordingly.
10556 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10558 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10559 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10561 (s390_linux_store_inferior_registers): Likewise.
10562 (s390_get_hwcap): Remove function. Embed its logic...
10563 (s390_read_description): ...here. Yield a target description with
10564 vector registers if applicable.
10565 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10566 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10567 "features/s390x-tevx-linux64.c".
10568 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10569 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10570 for "GNU/Linux-specific registers".
10571 (s390_dwarf_reg_r0l): New enum value.
10572 (s390_dwarf_reg_to_regnum): Support vector registers.
10573 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10574 of GPR lower halves.
10575 (regnum_is_vxr_full): New function.
10576 (s390_register_name): New function.
10577 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10578 f0-f15 and v0l-v15l.
10579 (s390_pseudo_register_type): Likewise.
10580 (s390_pseudo_register_read): Likewise.
10581 (s390_pseudo_register_write): Likewise.
10582 (s390_value_from_register): Account for the fact that values are
10583 placed left-justified in vector registers.
10584 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10585 the vector reggroup and omit them from the general reggroup.
10586 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10587 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10588 (s390_iterate_over_regset_sections): Add iterations for the two
10589 new vector regsets.
10590 (s390_core_read_description): Yield a target description with
10591 vector registers if applicable.
10592 (s390_gdbarch_init): Handle target descriptions with vector
10593 registers. Add "register_name" gdbarch method.
10594 (_initialize_s390_tdep): Call new tdesc initialization functions.
10595 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10596 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10597 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10598 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10599 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10600 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10601 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10602 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10603 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10604 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10605 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10606 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10607 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10608 (S390_NUM_REGS): Adjust value.
10609 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10610 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10611 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10612 * NEWS: Announce S/390 vector register support.
10614 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10616 * features/s390-tevx-linux64.xml: New file.
10617 * features/s390-vx-linux64.xml: New file.
10618 * features/s390-vx.xml: New file.
10619 * features/s390x-tevx-linux64.xml: New file.
10620 * features/s390x-vx-linux64.xml: New file.
10621 * features/Makefile (WHICH): Add s390-vx-linux64,
10622 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10623 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10624 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10626 * features/s390-tevx-linux64.c: New generated file.
10627 * features/s390-vx-linux64.c: Likewise.
10628 * features/s390x-tevx-linux64.c: Likewise.
10629 * features/s390x-vx-linux64.c: Likewise.
10630 * regformats/s390-tevx-linux64.dat: Likewise.
10631 * regformats/s390-vx-linux64.dat: Likewise.
10632 * regformats/s390x-tevx-linux64.dat: Likewise.
10633 * regformats/s390x-vx-linux64.dat: Likewise.
10635 2015-02-28 Doug Evans <xdje42@gmail.com>
10637 * symtab.h (struct symtab) <next>: Fix comment.
10639 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10641 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10644 2015-02-27 Pedro Alves <palves@redhat.com>
10646 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10648 2015-02-27 Pedro Alves <palves@redhat.com>
10650 * common/common-exceptions.h (exception_none): Declare.
10651 * common/common-exceptions.c (exception_none): Moved from
10653 (exceptions_state_mc_init): Use exception_none.
10654 * exceptions.c (exception_none): Move to
10655 common/common-exceptions.c.
10656 * exceptions.h (exception_none): Move to
10657 common/common-exceptions.h.
10659 2015-02-27 Pedro Alves <palves@redhat.com>
10661 * main.c (catch_command_errors, catch_command_errors_const):
10662 Remove 'mask' argument. Adjust.
10663 (captured_main): Adjust callers.
10665 2015-02-27 Pedro Alves <palves@redhat.com>
10667 * python/python-internal.h: Include "extension-priv.h".
10669 2015-02-27 Pedro Alves <palves@redhat.com>
10671 * breakpoint.h (enum print_stop_action): Move further up in the
10674 2015-02-27 Pedro Alves <palves@redhat.com>
10676 * gdbarch.sh: Include regcache.h.
10677 * gdbarch.h: Regenerate.
10679 2015-02-27 Pedro Alves <palves@redhat.com>
10681 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10682 Remove duplicate const.
10683 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10686 2015-02-27 Pedro Alves <palves@redhat.com>
10688 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10689 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10690 * features/feature_to_c.sh: Tag the generated xml_builtin array
10691 with extern const in C++ mode.
10693 2015-02-27 Tom Tromey <tromey@redhat.com>
10695 * minidebug.c (struct lzma_stream): Rename to ...
10696 (struct gdb_lzma_stream): ... this.
10697 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10699 2015-02-27 Pedro Alves <palves@redhat.com>
10701 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10703 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10704 (mi_cmd_stack_list_variables): Use it.
10706 2015-02-27 Pedro Alves <palves@redhat.com>
10708 * x86-linux-nat.c (u_debugreg_offset): New function.
10709 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10711 2015-02-27 Pedro Alves <palves@redhat.com>
10713 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10715 Include break-common.h.
10717 2015-02-27 Tom Tromey <tromey@redhat.com>
10718 Pedro Alves <palves@redhat.com>
10720 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10721 local used to iterate over enums.
10722 * completer.c (signal_completer): Likewise.
10723 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10724 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10725 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10726 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10727 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10728 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10729 * tui-wingeneral.c (tui_refresh_all): Likewise.
10731 2015-02-27 Pedro Alves <palves@redhat.com>
10733 * target.h: Include "infrun.h".
10735 2015-02-27 Pedro Alves <palves@redhat.com>
10737 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10739 2015-02-27 Pedro Alves <palves@redhat.com>
10741 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10743 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10745 2015-02-27 Pedro Alves <palves@redhat.com>
10747 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10748 cli_mld_erase_entire_line, and make it extern "C".
10749 * common/common-defs.h (EXTERN_C): New.
10750 * completer.c (_rl_completion_prefix_display_length)
10751 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10752 out of gdb_display_match_list_1.
10753 (_rl_qsort_string_compare): Move declaration out of
10754 gdb_display_match_list_1, and make it extern "C".
10755 * defs.h (re_comp): Use EXTERN_C.
10756 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10757 and make it extern "C".
10758 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10759 and make it extern "C".
10760 (main): Move declaration out of maintenance_set_profile_cmd.
10761 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10764 2015-02-27 Pedro Alves <palves@redhat.com>
10766 * python/python.c (GdbMethods): Rename to ...
10767 (python_GdbMethods): ... this and make extern.
10768 (GdbModuleDef): Rename to ...
10769 (python_GdbModuleDef): ... this and make extern.
10771 2015-02-27 Pedro Alves <palves@redhat.com>
10773 * record-btrace.c (set_record_btrace_cmdlist)
10774 (show_record_btrace_cmdlist): Remove redefinitions.
10776 2015-02-27 Tom Tromey <tromey@redhat.com>
10777 Pedro Alves <palves@redhat.com>
10779 * dwarf2-frame.c (enum cfa_how_kind, struct
10780 dwarf2_frame_state_reg_info): Move out of struct
10781 dwarf2_frame_state.
10782 * dwarf2read.c (struct tu_stats): Move out of struct
10783 dwarf2_per_objfile.
10784 (struct file_entry): Move out of struct line_header.
10785 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10786 typedef_field_list): Move out of struct field_info.
10787 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10788 Move out of struct dynamic_prop.
10789 (union type_owner, union field_location, struct field, struct
10790 range_bounds, union type_specific): Move out of struct main_type.
10791 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10792 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10793 (struct call_site_target, union call_site_parameter_u, struct
10794 call_site_parameter): Move out of struct call_site.
10795 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10797 (enum srcdest_kind): Move out of struct srcdest.
10798 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10799 * prologue-value.h (enum prologue_value_kind): Move out of struct
10801 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10803 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10804 out of struct field_info.
10805 * symfile.h (struct other_sections): Move out of struct
10807 * symtab.c (struct symbol_cache_slot): Move out struct
10808 block_symbol_cache.
10809 * target-descriptions.c (enum tdesc_type_kind): Move out of
10810 typedef struct tdesc_type.
10811 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10812 struct tui_line_or_address.
10813 * value.c (enum internalvar_kind, union internalvar_data): Move
10814 out of struct internalvar.
10815 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10818 2015-02-27 Tom Tromey <tromey@redhat.com>
10819 Pedro Alves <palves@redhat.com>
10821 Rename symbols whose names are reserved C++ keywords throughout.
10823 2015-02-27 Pedro Alves <palves@redhat.com>
10825 * Makefile.in (COMPILER): New, get it from autoconf.
10826 (COMPILE.pre, CC_LD): Use COMPILER.
10827 (CXX): Get from autoconf instead.
10828 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10829 * acinclude.m4: Include build-with-cxx.m4.
10830 * build-with-cxx.m4: New file.
10831 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10832 Disable -Werror by default if building in C++ mode.
10833 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10834 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10835 Run supported-warning-flags tests with the C++ compiler.
10836 Save/restore CXXFLAGS too.
10837 * configure: Regenerate.
10839 2015-02-27 Pedro Alves <palves@redhat.com>
10841 * libiberty.m4: New file.
10842 * acinclude.m4: Include libiberty.m4.
10843 * configure.ac: Call libiberty_INIT.
10844 * config.in, configure: Regenerate.
10846 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10848 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10849 31-bit targets, but 64-bit targets as well.
10850 (s390_gnu_triplet_regexp): New function.
10851 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10852 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10855 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10857 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10858 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10859 from CONTEXT_DEBUGGER.
10861 2015-02-26 Doug Evans <dje@google.com>
10863 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10865 (set_type_vptr_fieldno): Ditto.
10866 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10867 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10869 2015-02-26 Pedro Alves <palves@redhat.com>
10871 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10872 * complaints.c (vcomplaint): Pass argument FMT directly to
10873 printf-like functions instead of complaint->fmt.
10874 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10875 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10876 * compile/compile-loc2c.c (pushf, unary, binary): Add
10878 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10880 (BINARY): Pass string literal as format string to 'binary'.
10881 * compile/compile-object-load.c (link_callbacks_einfo): Add
10883 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10885 2015-02-26 Pedro Alves <palves@redhat.com>
10887 * windows-termcap.c: Rename to ...
10888 * stub-termcap.c: ... this. Adjust header line.
10889 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10891 * configure: Regenerate.
10892 * configure.ac: Refer to stub-termcap.o instead of
10894 * gdb_curses.h: Mention stub-termcap.c instead of
10897 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10899 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10900 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10902 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10904 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10906 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10908 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10909 bfd_canonicalize_symtab.
10911 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10913 * amd64fbsd-nat.c: Include sys/user.h.
10914 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10915 instead of KERN_PS_STRINGS to locate the signal trampoline.
10916 * i386fbsd-nat.c: Include sys/user.h.
10917 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10918 instead of KERN_PS_STRINGS to locate the signal trampoline.
10919 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10920 (amd64fbsd_sigtramp_p): New.
10921 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10922 longer set default values.
10923 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10924 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10925 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10926 (i386fbsd_freebsd4_sigtramp_start)
10927 (i386fbsd_freebsd4_sigtramp_middle)
10928 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10929 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10930 (i386fbsd_sigtramp_p): New.
10931 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10932 longer set default values.
10933 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10935 2015-02-25 John Baldwin <jhb@freebsd.org>
10937 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10938 get_frame_register instead of frame_unwind_register_unsigned.
10940 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10943 * compile/compile-c-support.c (c_compute_program): Change // comment.
10944 * compile/compile-object-load.c (setup_sections): Change // comment.
10946 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10949 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10951 2015-02-23 Pedro Alves <palves@redhat.com>
10953 * remote.c (skip_to_semicolon): New function.
10954 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10955 special case the stop reasons that look like hex numbers
10956 upfront. Instead handle real register numbers after matching
10957 all the known stop reasons.
10959 2015-02-21 Doug Evans <dje@google.com>
10961 PR c++/17976, symtab/17821
10962 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10963 is_in_anonymous. All callers updated.
10964 (find_symbol_in_baseclass): Ditto.
10965 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10966 for symbols in an anonymous namespace.
10967 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10968 DW_AT_name directly.
10969 (dwarf2_name): Convert missing namespace name to
10970 CP_ANONYMOUS_NAMESPACE_STR.
10972 2015-02-20 Pedro Alves <palves@redhat.com>
10974 * linux-nat.c (linux_handle_extended_wait): Call
10975 thread_db_notice_clone whenever a new clone LWP is detected.
10976 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10978 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10979 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10980 (linux_unstop_all_lwps): Declare.
10981 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10982 (thread_get_info_callback): Delete.
10983 (thread_from_lwp): Use td_thr_get_info and record_thread.
10984 (thread_db_attach_lwp): Delete.
10985 (thread_db_notice_clone): New function.
10986 (try_thread_db_load_1): If /proc is mounted and shows the
10987 process'es task list, walk over all LWPs and call thread_from_lwp
10988 instead of relying on td_ta_thr_iter.
10989 (attach_thread): Don't call check_thread_signals here. Split the
10990 tail part of the function (which adds the thread to the core GDB
10991 thread list) to ...
10992 (record_thread): ... this function. Call check_thread_signals
10994 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10995 call thread_from_lwp.
10996 (thread_db_update_thread_list): Rename to ...
10997 (thread_db_update_thread_list_org): ... this.
10998 (thread_db_update_thread_list): New function.
10999 (thread_db_find_thread_from_tid): Delete.
11000 (thread_db_get_ada_task_ptid): Simplify.
11001 * nat/linux-procfs.c: Include <sys/stat.h>.
11002 (linux_proc_task_list_dir_exists): New function.
11003 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11005 2015-02-20 Pedro Alves <palves@redhat.com>
11007 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11008 main LWP. Handle the case of waitpid returning 0 if we're already
11009 attached to the LWP. Don't set the LWP's last_resume_kind to
11010 resume_stop if we already knew about the LWP.
11011 (linux_nat_filter_event): Add debug logs.
11013 2015-02-20 Pedro Alves <palves@redhat.com>
11015 * target.h (forward_target_decr_pc_after_break): Delete
11018 2015-02-20 Pedro Alves <palves@redhat.com>
11021 * linux-thread-db.c (thread_get_info_callback): Return early if
11022 the thread's lwp id is -1.
11024 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11028 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11030 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11031 (dtrace_get_probes) Change type of variable 'dof'.
11033 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11035 PR breakpoints/16812
11036 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11037 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11038 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11040 2015-02-19 David Taylor <dtaylor@emc.com>
11042 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11044 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11046 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11048 (tui_putc): Don't call tui_handle_resize_during_io.
11049 (tui_getc): Likewise.
11050 (tui_mld_getc): Likewise.
11051 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11052 (tui_sigwinch_token): New static variable.
11053 (tui_initialize_win): Adjust documentation. Set
11054 tui_sigwinch_token.
11055 (tui_async_resize_screen): New asynchronous callback.
11056 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11057 invoke tui_async_resize_screen.
11059 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11061 * configure: Regenerated.
11062 * configure.ac: Use GDB_AC_TRANSFORM.
11063 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11064 * acinclude.m4: sinclude transform.m4.
11065 * transform.m4: New file.
11066 (GDB_AC_TRANSFORM): New macro.
11068 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11070 * NEWS: Announce the support for DTrace SDT probes.
11072 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11074 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11075 (amd64_dtrace_parse_probe_argument): New function.
11076 (amd64_dtrace_probe_is_enabled): Likewise.
11077 (amd64_dtrace_enable_probe): Likewise.
11078 (amd64_dtrace_disable_probe): Likewise.
11079 (amd64_linux_init_abi): Register the
11080 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11081 `gdbarch_dtrace_disable_probe' and
11082 `gdbarch_dtrace_probe_is_enabled' hooks.
11083 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11084 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11085 (amd64_dtrace_enable_probe_sequence): Likewise.
11086 (amd64_dtrace_disable_probe_sequence): Likewise.
11088 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11090 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11091 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11092 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11094 * Makefile.in (SFILES): dtrace-probe.c added.
11095 * configure: Regenerate.
11096 * dtrace-probe.c: New file.
11097 (SHT_SUNW_dof): New constant.
11098 (dtrace_probe_type): New enum.
11099 (dtrace_probe_arg): New struct.
11100 (dtrace_probe_arg_s): New typedef.
11101 (struct dtrace_probe_enabler): New struct.
11102 (dtrace_probe_enabler_s): New typedef.
11103 (dtrace_probe): New struct.
11104 (dtrace_probe_is_linespec): New function.
11105 (dtrace_dof_sect_type): New enum.
11106 (dtrace_dof_dofh_ident): Likewise.
11107 (dtrace_dof_encoding): Likewise.
11108 (DTRACE_DOF_ENCODE_LSB): Likewise.
11109 (DTRACE_DOF_ENCODE_MSB): Likewise.
11110 (dtrace_dof_hdr): New struct.
11111 (dtrace_dof_sect): Likewise.
11112 (dtrace_dof_provider): Likewise.
11113 (dtrace_dof_probe): Likewise.
11114 (DOF_UINT): New macro.
11115 (DTRACE_DOF_PTR): Likewise.
11116 (DTRACE_DOF_SECT): Likewise.
11117 (dtrace_process_dof_probe): New function.
11118 (dtrace_process_dof): Likewise.
11119 (dtrace_build_arg_exprs): Likewise.
11120 (dtrace_get_arg): Likewise.
11121 (dtrace_get_probes): Likewise.
11122 (dtrace_get_probe_argument_count): Likewise.
11123 (dtrace_can_evaluate_probe_arguments): Likewise.
11124 (dtrace_evaluate_probe_argument): Likewise.
11125 (dtrace_compile_to_ax): Likewise.
11126 (dtrace_probe_destroy): Likewise.
11127 (dtrace_gen_info_probes_table_header): Likewise.
11128 (dtrace_gen_info_probes_table_values): Likewise.
11129 (dtrace_probe_is_enabled): Likewise.
11130 (dtrace_probe_ops): New variable.
11131 (info_probes_dtrace_command): New function.
11132 (_initialize_dtrace_probe): Likewise.
11133 (dtrace_type_name): Likewise.
11135 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11137 * gdbarch.sh (dtrace_parse_probe_argument): New.
11138 (dtrace_probe_is_enabled): Likewise.
11139 (dtrace_enable_probe): Likewise.
11140 (dtrace_disable_probe): Likewise.
11141 * gdbarch.c: Regenerate.
11142 * gdbarch.h: Regenerate.
11144 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11146 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11147 stap_probe_ops for `enable_probe' and `disable_probe'.
11148 * probe.c (enable_probes_command): New function.
11149 (disable_probes_command): Likewise.
11150 (_initialize_probe): Define the cli commands `enable probe' and
11152 (parse_probe_linespec): New function.
11153 (info_probes_for_ops): Use parse_probe_linespec.
11154 * probe.h (probe_ops): New hooks `enable_probe' and
11157 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11159 * probe.c (compute_probe_arg): Moved from stap-probe.c
11160 (compile_probe_arg): Likewise.
11161 (probe_funcs): Likewise.
11162 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11163 (compile_probe_arg): Likewise.
11164 (probe_funcs): Likewise.
11166 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11168 * probe.c (print_ui_out_not_applicables): New function.
11169 (exists_probe_with_pops): Likewise.
11170 (info_probes_for_ops): Do not include column headers for probe
11171 types for which no probe has been actually found on any object.
11172 Also invoke `print_ui_out_not_applicables' in order to match the
11173 column rows with the header when probes of several types are
11175 Print the "Type" column.
11176 * probe.h (probe_ops): Added a new probe operation `type_name'.
11177 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11178 (stap_type_name): New function.
11180 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11182 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11183 (key_is_command_char): Delete.
11185 2015-02-17 Pedro Alves <palves@redhat.com>
11187 * tui/tui.c (tui_enable): Resize windows before anything
11188 might show a window.
11190 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11193 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11194 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11196 * aarch64-tdep.h (tdesc_aarch64): Declare.
11198 2015-02-12 Mark Wielaard <mjw@redhat.com>
11200 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11202 2015-02-13 Doug Evans <dje@google.com>
11204 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11205 anonymous_namespace to is_in_anonymous for consistency with the rest
11207 (cp_lookup_bare_symbol): Fix typo in comment.
11208 (cp_search_static_and_baseclasses): Ditto.
11209 (search_symbol_list): Use vertical space in comment better.
11210 (reset_directive_searched): Ditto. Fix typo.
11211 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11213 2015-02-13 Yao Qi <yao.qi@arm.com>
11215 * MAINTAINERS: Update my email address.
11217 2015-02-12 Doug Evans <dje@google.com>
11219 * symtab.c (completion_list_add_name): Fix memory leak.
11221 2015-02-12 Doug Evans <dje@google.com>
11223 * completer.c (complete_line): Remove incorrect comment.
11225 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11227 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11228 (py_print_frame): Use RETURN_MASK_ERROR.
11230 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11232 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11233 function comment. Wrap all function that can throw in cleanups.
11234 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11237 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11239 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11240 Remove the error label.
11242 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11244 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11245 with goto first, indent the former else codepath left. Put variable
11246 'elided' to a new inner block.
11248 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11250 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11252 2015-02-11 Pedro Alves <palves@redhat.com>
11254 * xcoffread.c (within_function): Delete.
11256 2015-02-11 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11259 * breakpoint.c (base_breakpoint_ops): Delete.
11260 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11261 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11262 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11263 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11264 * python/py-arch.c (arch_object_type): Make extern.
11265 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11266 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11267 * python/py-cmd.c (cmdpy_object_type): Make extern.
11268 * python/py-continueevent.c (continue_event_object_type)
11269 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11270 parameter. Update all callers.
11271 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11272 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11273 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11274 * python/py-function.c (fnpy_object_type): Make extern.
11275 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11276 * python/py-infevents.c (call_pre_event_object_type)
11277 (inferior_call_post_event_object_type).
11278 (memory_changed_event_object_type): Make extern.
11279 * python/py-infthread.c (thread_object_type): Make extern.
11280 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11281 * python/py-linetable.c (linetable_entry_object_type)
11282 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11283 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11284 (clear_objfiles_event_object_type): Make extern.
11285 * python/py-objfile.c (objfile_object_type): Make extern.
11286 * python/py-param.c (parmpy_object_type): Make extern.
11287 * python/py-progspace.c (pspace_object_type): Make extern.
11288 * python/py-signalevent.c (signal_event_object_type): Make extern.
11289 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11290 * python/py-type.c (type_object_type, field_object_type)
11291 (type_iterator_object_type): Make extern.
11292 * python/python.c (python_extension_script_ops)
11293 (python_extension_ops): Make extern.
11294 * stap-probe.c (stap_probe_ops): Make extern.
11296 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11298 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11299 because the event thread is not the current thread.
11301 2015-02-11 Doug Evans <xdje42@gmail.com>
11303 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11304 been initialized yet, return NULL.
11306 2015-02-11 Doug Evans <dje@google.com>
11308 * symfile.h (new_symfile_objfile): Delete.
11309 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11310 All callers updated.
11312 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11314 * tui/tui-io.c (tui_handle_resize_during_io): Call
11315 tui_update_gdb_sizes() after resizing the screen.
11316 * tui/tui.c (tui_enable): Resize the terminal before
11317 calling tui_update_gdb_sizes().
11319 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11321 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11322 line before printing a newline.
11324 2015-02-11 Mark Wielaard <mjw@redhat.com>
11326 * utils.c (producer_is_gcc): Return true or false.
11328 2015-02-10 Mark Wielaard <mjw@redhat.com>
11330 * utils.h (producer_is_gcc): Change return type to bool. Add major
11332 * utils.c (producer_is_gcc): Likewise.
11333 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11334 * dwarf2read.c (check_producer): Likewise.
11336 2015-02-10 Pedro Alves <palves@redhat.com>
11338 * infrun.c (displaced_step_fixup): Switch to the event thread
11339 before calling gdbarch_displaced_step_fixup.
11341 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11343 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11345 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11347 * ada-varobj.c (ada_name_of_child): Constify parent.
11348 (ada_path_expr_of_child): Same.
11349 (ada_value_of_child): Same.
11350 (ada_type_of_child): Same.
11351 * c-varobj.c (c_is_path_expr_parent): Same.
11352 (c_describe_child): Same.
11353 (c_name_of_child): Same.
11354 (c_value_of_child): Same.
11355 (c_type_of_child): Same.
11356 (cplus_number_of_children): Same.
11357 (cplus_describe_child): Constify var.
11358 (cplus_name_of_child): Constify parent.
11359 (cplus_value_of_child): Same.
11360 (cplus_type_of_child): Same.
11361 * jv-varobj.c (java_name_of_child): Same.
11362 (java_value_of_child): Same.
11363 (java_type_of_child): Same.
11364 * varobj.c (value_of_child): Same.
11365 (varobj_default_is_path_expr_parent): Constify var, parent and return
11367 (varobj_get_path_expr): Constify var, modify path_expr through
11369 (install_new_value): Constify parent.
11370 (value_of_child): Constify parent.
11371 * varobj.h (struct varobj): Constify parent.
11372 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11374 (varobj_get_path_expr): Constify var.
11375 (varobj_get_path_expr_parent): Constify var and return value.
11377 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11379 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11380 (arm_prologue_this_id): Move PC and SP limit checks to
11381 arm_prologue_unwind_stop_reason.
11382 (arm_prologue_unwind) <stop_reason> : Set to
11383 arm_prologue_unwind_stop_reason.
11385 2015-02-09 Mark Wielaard <mjw@redhat.com>
11387 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11388 DW_LANG_Fortran08 as language_fortran.
11390 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11393 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11394 of pointer against char.
11396 2015-02-09 Mark Wielaard <mjw@redhat.com>
11398 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11399 (c_type_print_modifier): Likewise.
11400 * dwarf2read.c (read_tag_atomic_type): New function.
11401 (read_type_die_1): Handle DW_TAG_atomic_type.
11402 * gdbtypes.c (make_atomic_type): New function.
11403 (recursive_dump_type): Handle TYPE_ATOMIC.
11404 * gdbtypes.h (enum type_flag_values): Renumber.
11405 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11406 (TYPE_ATOMIC): New macro.
11407 (make_atomic_type): Declare.
11409 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11411 * btrace.c (ftrace_find_call): Skip gaps.
11412 (ftrace_new_function): Initialize level.
11413 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11414 (ftrace_new_switch): Update
11416 (ftrace_new_gap): New.
11417 (ftrace_update_function): Create new function after gap.
11418 (btrace_compute_ftrace_bts): Create gap on error.
11419 (btrace_stitch_bts): Update parameters. Clear trace if it
11421 (btrace_stitch_trace): Update parameters. Update callers.
11422 (btrace_clear): Reset the number of gaps.
11423 (btrace_insn_get): Return NULL if the iterator points to a gap.
11424 (btrace_insn_number): Return zero if the iterator points to a gap.
11425 (btrace_insn_end): Allow gaps at the end.
11426 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11427 (btrace_find_insn_by_number): Assert that the found iterator does
11428 not point to a gap.
11429 (btrace_call_next, btrace_call_prev): Assert that the last function
11431 * btrace.h (btrace_bts_error): New.
11432 (btrace_function): Update comment.
11433 (btrace_function) <insn, insn_offset, number>: Update comment.
11434 (btrace_function) <errcode>: New.
11435 (btrace_thread_info) <ngaps>: New.
11436 (btrace_thread_info) <replay>: Update comment.
11437 (btrace_insn_get): Update comment.
11438 * record-btrace.c (btrace_ui_out_decode_error): New.
11439 (record_btrace_info): Print number of gaps.
11440 (btrace_insn_history, btrace_call_history): Call
11441 btrace_ui_out_decode_error for gaps.
11442 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11444 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11446 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11447 * nat/linux-btrace.c: (btrace_this_cpu): New.
11448 (cpu_supports_bts): Call btrace_this_cpu.
11449 (intel_supports_bts): Add cpu parameter.
11451 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11453 * btrace.h (btrace_insn_class): New.
11454 (btrace_insn) <size, iclass>: New.
11455 * btrace.c (ftrace_find_call): Update parameters. Update users.
11456 Use instruction classification.
11457 (ftrace_new_return): Update parameters. Update users.
11458 (ftrace_update_function): Update parameters. Update users. Use
11459 instruction classification.
11460 (ftrace_update_insns): Update parameters. Update users.
11461 (ftrace_classify_insn): New.
11462 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11463 TRY_CATCH around call to gdb_insn_length.
11465 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11467 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11468 Update parameters. Update users.
11470 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11472 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11473 (btrace_conf_bts_attributes): New.
11474 (btrace_conf_children): Add attributes.
11475 * common/btrace-common.h (btrace_config_bts): New.
11476 (btrace_config)<bts>: New.
11477 (btrace_config): Update comment.
11478 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11480 * features/btrace-conf.dtd: Increment version. Add size
11481 attribute to bts element.
11482 * record-btrace.c (set_record_btrace_bts_cmdlist,
11483 show_record_btrace_bts_cmdlist): New.
11484 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11485 record_btrace_print_conf, cmd_set_record_btrace_bts,
11486 cmd_show_record_btrace_bts): New.
11487 (record_btrace_info): Call record_btrace_print_conf.
11488 (_initialize_record_btrace): Add commands.
11489 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11490 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11491 (btrace_sync_conf): Synchronize bts size.
11492 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11493 * NEWS: Announce new commands and new packets.
11495 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11497 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11498 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11499 (x86_linux_btrace_conf): New.
11500 (x86_linux_create_target): Initialize to_btrace_conf.
11501 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11502 Check format. Split into this and ...
11503 (linux_enable_bts): ... this.
11504 (linux_btrace_conf): New.
11505 (perf_event_skip_record): Renamed into ...
11506 (perf_event_skip_bts_record): ... this. Updated users.
11507 (linux_disable_btrace): Split into this and ...
11508 (linux_disable_bts): ... this.
11509 (linux_read_btrace): Check format.
11510 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11511 (linux_btrace_conf): New.
11512 (btrace_target_info)<ptid>: Moved.
11513 (btrace_target_info)<conf>: New.
11514 (btrace_target_info): Split into this and ...
11515 (btrace_tinfo_bts): ... this. Updated users.
11516 * btrace.c (btrace_enable): Update parameters.
11517 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11518 (btrace_conf_children, btrace_conf_attributes)
11519 (btrace_conf_elements): New.
11520 * btrace.h (btrace_enable): Update parameters.
11521 (btrace_conf, parse_xml_btrace_conf): New.
11522 * common/btrace-common.h (btrace_config): New.
11523 * feature/btrace-conf.dtd: New.
11524 * record-btrace.c (record_btrace_conf): New.
11525 (record_btrace_cmdlist): New.
11526 (record_btrace_enable_warn, record_btrace_open): Pass
11527 &record_btrace_conf.
11528 (record_btrace_info): Print recording format.
11529 (cmd_record_btrace_bts_start): New.
11530 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11531 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11532 Add "record bts" alias command.
11533 * remote.c (remote_state)<btrace_config>: New.
11534 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11535 (remote_protocol_features): Add qXfer:btrace-conf:read.
11536 (remote_open_1): Call remote_btrace_reset.
11537 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11538 (btrace_target_info)<conf>: New.
11539 (btrace_sync_conf, btrace_read_config): New.
11540 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11542 (remote_btrace_conf): New.
11543 (init_remote_ops): Initialize to_btrace_conf.
11544 (_initialize_remote): Add qXfer:btrace-conf packet.
11545 * target.c (target_enable_btrace): Update parameters.
11546 (target_btrace_conf): New.
11547 * target.h (target_enable_btrace): Update parameters.
11548 (target_btrace_conf): New.
11549 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11550 (target_ops)<to_enable_btrace>: Update parameters and comment.
11551 (target_ops)<to_btrace_conf>: New.
11552 * target-delegates: Regenerate.
11553 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11554 (target_debug_print_const_struct_btrace_target_info_p): New.
11555 * NEWS: Announce new command and new packet.
11557 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11559 * nat/linux-btrace.h (perf_event_buffer): New.
11560 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11562 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11563 (perf_event_buffer_size, perf_event_buffer_begin)
11564 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11566 (perf_event_new_data): New.
11568 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11570 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11571 * record-btrace.c (record_btrace_open): Remove call to
11572 target_supports_btrace.
11573 * remote.c (remote_supports_btrace): Update parameters.
11574 * target.c (target_supports_btrace): Update parameters.
11575 * target.h (to_supports_btrace, target_supports_btrace): Update
11577 * target-delegates.c: Regenerate.
11578 * target-debug.h (target_debug_print_enum_btrace_format): New.
11579 * nat/linux-btrace.c
11580 (kernel_supports_btrace): Rename into ...
11581 (kernel_supports_bts): ... this. Update users. Update warning text.
11582 (intel_supports_btrace): Rename into ...
11583 (intel_supports_bts): ... this. Update users.
11584 (cpu_supports_btrace): Rename into ...
11585 (cpu_supports_bts): ... this. Update users.
11586 (linux_supports_btrace): Update parameters. Split into this and ...
11587 (linux_supports_bts): ... this.
11588 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11590 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11592 * Makefile.in (SFILES): Add common/btrace-common.c.
11593 (COMMON_OBS): Add common/btrace-common.o.
11594 (btrace-common.o): Add build rules.
11595 * btrace.c (parse_xml_btrace): Update parameters.
11596 (parse_xml_btrace_block): Set format field.
11597 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11598 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11599 (btrace_compute_ftrace): Split into this and...
11600 (btrace_compute_ftrace_bts): ...this.
11601 (btrace_stitch_trace): Split into this and...
11602 (btrace_stitch_bts): ...this.
11603 * btrace.h (parse_xml_btrace): Update parameters.
11604 (make_cleanup_btrace_data): New.
11605 * common/btrace-common.c: New.
11606 * common/btrace-common.h: Include common-defs.h.
11607 (btrace_block_s): Update comment.
11608 (btrace_format): New.
11609 (btrace_format_string): New.
11610 (btrace_data_bts): New.
11611 (btrace_data): New.
11612 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11613 * remote.c (remote_read_btrace): Update parameters.
11614 * target.c (target_read_btrace): Update parameters.
11615 * target.h (target_read_btrace): Update parameters.
11616 (target_ops)<to_read_btrace>: Update parameters.
11617 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11618 * target-delegates.c: Regenerate.
11619 * target-debug (target_debug_print_struct_btrace_data_p): New.
11620 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11621 (linux_read_bts): ...this.
11622 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11624 2015-02-06 Doug Evans <dje@google.com>
11626 * remote-m32r-sdi.c: Include symfile.h.
11628 2015-02-06 Doug Evans <dje@google.com>
11630 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11631 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11634 2015-02-06 Pedro Alves <palves@redhat.com>
11636 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11638 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11641 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11642 (enable_count_command): Check args for NULL value.
11644 2015-02-05 Doug Evans <xdje42@gmail.com>
11646 * guile/scm-frame.c: Fix spelling errors in a comment.
11648 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11650 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11651 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11654 2015-02-04 Pedro Alves <palves@redhat.com>
11656 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11657 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11659 (resume_stopped_resumed_lwps): Don't check whether the thread is
11660 marked as executing.
11661 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11663 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11665 * regset.h (struct regset): Add flags field.
11666 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11667 * corelow.c (get_core_register_section): Add warning if the size
11668 exceeds the requested size and the regset does not have the
11669 REGSET_VARIABLE_SIZE flag set.
11670 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11672 * armbsd-tdep.c (armbsd_gregset): Likewise.
11673 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11674 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11675 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11676 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11678 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11680 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11681 For ".reg-xstate", explicitly specify the requested section size
11682 via X86_XSTATE_SIZE instead of just 0 on input and
11683 X86_XSTATE_MAX_SIZE on output.
11684 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11687 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11689 PR corefiles/17808:
11690 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11691 function type, particularly its SIZE parameter.
11692 * gdbarch.h: Regenerate.
11693 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11694 actual against required size using ">=" instead of "==".
11695 (amd64_collect_fpregset): Likewise.
11696 * i386-tdep.c (i386_supply_gregset): Likewise.
11697 (i386_collect_gregset): Likewise.
11698 (i386_supply_fpregset): Likewise.
11699 (i386_collect_fpregset): Likewise.
11700 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11701 (mips_fill_gregset_wrapper): Likewise.
11702 (mips_supply_fpregset_wrapper): Likewise.
11703 (mips_fill_fpregset_wrapper): Likewise.
11704 (mips64_supply_gregset_wrapper): Likewise.
11705 (mips64_fill_gregset_wrapper): Likewise.
11706 (mips64_supply_fpregset_wrapper): Likewise.
11707 (mips64_fill_fpregset_wrapper): Likewise.
11708 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11709 (am33_supply_fpregset_method): Likewise.
11710 (am33_collect_gregset_method): Likewise.
11711 (am33_collect_fpregset_method): Likewise.
11713 2015-02-04 Doug Evans <dje@google.com>
11714 Pedro Alves <palves@redhat.com>
11715 Eli Zaretskii <eliz@gnu.org>
11718 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11719 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11720 * tui/tui-file.c: #include tui/tui-command.h.
11721 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11722 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11723 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11725 2015-02-04 Pedro Alves <palves@redhat.com>
11727 Fix build breakage.
11728 * event-loop.c (gdb_do_one_event): Add default switch case.
11730 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11732 Filter out inferior gcc option -fpreprocessed.
11733 * compile/compile.c (filter_args): New function.
11734 (get_args): Use it.
11736 2015-02-03 Pedro Alves <palves@redhat.com>
11738 * event-loop.c: Don't declare nor define a queue type for
11740 (event_queue): Delete.
11741 (create_event, create_file_event, gdb_event_xfree)
11742 (initialize_event_loop, process_event): Delete.
11743 (gdb_do_one_event): Return as soon as one event is handled.
11744 (handle_file_event): Change prototype. Used the passed in
11745 file_handler pointer and ready_mask instead of looping over all
11747 (gdb_wait_for_event): Update the poll/select timeouts before
11748 blocking. Run event handlers directly instead of queueing events.
11749 Return as soon as one event is handled.
11750 (struct async_event_handler_data): Delete.
11751 (invoke_async_event_handler): Delete.
11752 (check_async_event_handlers): Change return type to int. Run
11753 event handlers directly instead of queueing events. Return as
11754 soon as one event is handled.
11755 (handle_timer_event): Delete.
11756 (update_wait_timeout): New function, factored out from
11758 (poll_timers): Reimplement.
11759 * event-loop.h (initialize_event_loop): Delete declaration.
11760 * top.c (gdb_init): Don't call initialize_event_loop.
11762 2015-02-03 Pedro Alves <palves@redhat.com>
11764 * event-loop.c (clear_async_event_handler): New function.
11765 * event-loop.h (clear_async_event_handler): New declaration.
11766 * record-btrace.c (record_btrace_async): New function.
11767 (init_record_btrace_ops): Install record_btrace_async.
11768 * record-full.c (record_full_async): New function.
11769 (record_full_resume): Don't mark the async event source here.
11770 (init_record_full_ops): Install record_full_async.
11771 (record_full_core_resume): Don't mark the async event source here.
11772 (init_record_full_core_ops): Install record_full_async.
11773 * remote.c (remote_async): Mark and clear the async stop reply
11774 queue event-loop token as appropriate.
11776 2015-02-03 Pedro Alves <palves@redhat.com>
11778 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11779 target_is_async_p instead of target_can_async.
11780 (linux_nat_wait): Use target_is_async_p instead of
11781 target_can_async. Don't enable async here.
11782 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11783 target_is_async_p instead of target_can_async.
11785 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11787 * varobj.h (lang_varobj_ops): Mention which return values need
11790 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11792 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11794 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11797 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11798 results found in the cache.
11800 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11803 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11804 when allocating a new one.
11806 2015-02-01 Tom Tromey <tom@tromey.com>
11808 * MAINTAINERS: Remove myself.
11810 2015-01-31 Doug Evans <xdje42@gmail.com>
11812 * dwarf2read.c (process_structure_scope): Update setting of
11813 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11814 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11815 (set_type_vptr_fieldno): New function.
11816 (internal_type_vptr_basetype): New function.
11817 (set_type_vptr_basetype): New function.
11818 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11819 TYPE_VPTR_BASETYPE.
11820 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11821 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11822 (print_cplus_stuff): ... moved here.
11823 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11824 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11826 (struct cplus_struct_type): ... here. All uses updated.
11827 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11828 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11829 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11830 * stabsread.c (read_tilde_fields): Update setting of
11831 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11833 2015-01-31 Doug Evans <xdje42@gmail.com>
11835 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11837 (cp_print_class_member): Rename local domain to self_type.
11838 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11839 domain_type to self_type.
11840 (set_die_type) <need_gnat_info>: Handle
11841 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11842 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11843 TYPE_SPECIFIC_SELF_TYPE.
11844 * gdbtypes.c (internal_type_self_type): New function.
11845 (set_type_self_type): New function.
11846 (smash_to_memberptr_type): Rename parameter domain to self_type.
11847 Update setting of TYPE_SELF_TYPE.
11848 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11849 (smash_to_method_type): Rename parameter domain to self_type.
11850 Update setting of TYPE_SELF_TYPE.
11851 (check_stub_method): Call smash_to_method_type.
11852 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11853 (copy_type_recursive): Ditto.
11854 * gdbtypes.h (enum type_specific_kind): New value
11855 TYPE_SPECIFIC_SELF_TYPE.
11856 (struct main_type) <type_specific>: New member self_type.
11857 (struct cplus_struct_type) <fn_field.type>: Update comment.
11858 (TYPE_SELF_TYPE): Rewrite.
11859 (internal_type_self_type, set_type_self_type): Declare.
11860 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11862 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11863 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11865 * stabsread.c (read_member_functions): Mark methods with
11866 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11869 2015-01-31 Doug Evans <xdje42@gmail.com>
11871 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11874 2015-01-31 Doug Evans <xdje42@gmail.com>
11876 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11877 or unions. Return zero if union.
11878 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11879 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11881 (compute_vtable_size): Assert only passed structs.
11882 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11884 2015-01-31 Doug Evans <xdje42@gmail.com>
11886 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11889 2015-01-31 Gary Benson <gbenson@redhat.com>
11890 Doug Evans <dje@google.com>
11895 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11897 * common/common-exceptions.h (enum errors)
11898 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11899 * completer.h (get_max_completions_reached_message): New declaration.
11900 (max_completions): Likewise.
11901 (completion_tracker_t): New typedef.
11902 (new_completion_tracker): New declaration.
11903 (make_cleanup_free_completion_tracker): Likewise.
11904 (maybe_add_completion_enum): New enum.
11905 (maybe_add_completion): New declaration.
11906 (throw_max_completions_reached_error): Likewise.
11907 * completer.c (max_completions): New global variable.
11908 (new_completion_tracker): New function.
11909 (free_completion_tracker): Likewise.
11910 (make_cleanup_free_completion_tracker): Likewise.
11911 (maybe_add_completions): Likewise.
11912 (throw_max_completions_reached_error): Likewise.
11913 (complete_line): Remove duplicates and limit result to max_completions
11915 (get_max_completions_reached_message): New function.
11916 (gdb_display_match_list): Handle max_completions.
11917 (_initialize_completer): New declaration and function.
11918 * symtab.c: Include completer.h.
11919 (completion_tracker): New static variable.
11920 (completion_list_add_name): Call maybe_add_completion.
11921 (default_make_symbol_completion_list_break_on_1): Renamed from
11922 default_make_symbol_completion_list_break_on. Maintain
11923 completion_tracker across calls to completion_list_add_name.
11924 (default_make_symbol_completion_list_break_on): New function.
11925 * top.c (init_main): Set rl_completion_display_matches_hook.
11926 * tui/tui-io.c: Include completer.h.
11927 (tui_old_rl_display_matches_hook): New static global.
11928 (tui_rl_display_match_list): Notify user if max-completions reached.
11929 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11930 * NEWS (New Options): Mention set/show max-completions.
11932 2015-01-31 Gary Benson <gbenson@redhat.com>
11934 * symtab.c (struct add_name_data) <code>: New field.
11936 (add_symtab_completions): New function.
11937 (symtab_expansion_callback): Likewise.
11938 (default_make_symbol_completion_list_break_on): Set datum.code.
11939 Move minimal symbol scan before calling expand_symtabs_matching.
11940 Scan known primary symtabs for externs and statics before calling
11941 expand_symtabs_matching. Pass symtab_expansion_callback as
11942 expansion_notify argument to expand_symtabs_matching. Do not scan
11943 primary symtabs for externs and statics after calling
11944 expand_symtabs_matching.
11946 2015-01-31 Gary Benson <gbenson@redhat.com>
11948 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11949 (struct quick_symbol_functions) <expand_symtabs_matching>:
11950 New argument expansion_notify. All uses updated.
11951 (expand_symtabs_matching): New argument expansion_notify.
11953 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11954 Also print expansion notify.
11955 * symtab.c (expand_symtabs_matching_via_partial): Call
11956 expansion_notify whenever a partial symbol table is expanded.
11957 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11958 expansion_notify whenever a symbol table is instantiated.
11960 2015-01-31 Doug Evans <xdje42@gmail.com>
11962 * cli-out.c: #include completer.h, readline/readline.h.
11963 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11964 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11965 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11966 * cli-out.h (cli_display_match_list): Declare.
11967 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11968 (ELLIPSIS_LEN): Ditto.
11969 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11970 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11971 (gdb_fnprint, gdb_print_filename): Ditto.
11972 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11973 (gdb_display_match_list): Ditto.
11974 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11975 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11976 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11977 (match_list_displayer): New struct.
11978 (gdb_display_match_list): Declare.
11979 * top.c (init_main): Set rl_completion_display_matches_hook.
11980 * tui/tui-io.c: #include completer.h.
11981 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11982 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11983 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11984 (tui_mld_getc, tui_mld_read_key): Ditto.
11985 (tui_rl_display_match_list): Rewrite.
11986 (tui_handle_resize_during_io): New arg for_completion. All callers
11989 2015-01-31 Doug Evans <xdje42@gmail.com>
11991 Add symbol lookup cache.
11992 * NEWS: Document new options and commands.
11993 * symtab.c (symbol_cache_key): New static global.
11994 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11995 (SYMBOL_LOOKUP_FAILED): New macro.
11996 (symbol_cache_slot_state): New enum.
11997 (block_symbol_cache): New struct.
11998 (symbol_cache): New struct.
11999 (new_symbol_cache_size, symbol_cache_size): New static globals.
12000 (hash_symbol_entry, eq_symbol_entry): New functions.
12001 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12002 (make_symbol_cache, free_symbol_cache): New functions.
12003 (get_symbol_cache, symbol_cache_cleanup): New function.
12004 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12005 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12006 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12007 (symbol_cache_flush, symbol_cache_dump): New functions.
12008 (maintenance_print_symbol_cache): New function.
12009 (maintenance_flush_symbol_cache): New function.
12010 (symbol_cache_stats): New function.
12011 (maintenance_print_symbol_cache_statistics): New function.
12012 (symtab_new_objfile_observer): New function.
12013 (symtab_free_objfile_observer): New function.
12014 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12015 (_initialize_symtab): Init symbol_cache_key. New parameter
12016 maint symbol-cache-size. New maint commands print symbol-cache,
12017 print symbol-cache-statistics, flush-symbol-cache.
12018 Install new_objfile, free_objfile observers.
12020 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12023 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12026 2015-01-31 Doug Evans <xdje42@gmail.com>
12028 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12029 * auto-load.c: #include ctype.h.
12030 (struct auto_load_pspace_info): Replace member loaded_scripts with
12031 new members loaded_script_files, loaded_script_texts.
12032 (auto_load_pspace_data_cleanup): Update.
12033 (init_loaded_scripts_info): Update.
12034 (get_auto_load_pspace_data_for_loading): Update.
12035 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12037 (maybe_add_script_text): New function.
12038 (clear_section_scripts): Update.
12039 (source_script_file, execute_script_contents): New functions.
12040 (source_section_scripts): Add support for
12041 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12042 (print_scripts): New function.
12043 (auto_load_info_scripts): Also print inlined scripts.
12044 (maybe_print_unsupported_script_warning): Renamed from
12045 unsupported_script_warning_print. All callers updated.
12046 (maybe_print_script_not_found_warning): Renamed from
12047 script_not_found_warning_print. All callers updated.
12048 * extension-priv.h (struct extension_language_script_ops): New member
12049 objfile_script_executor.
12050 * extension.c (ext_lang_objfile_script_executor): New function.
12051 * extension.h (objfile_script_executor_func): New typedef.
12052 (ext_lang_objfile_script_executor): Declare.
12053 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12054 * guile/guile.c (guile_extension_script_ops): Update.
12055 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12056 * python/python.c (python_extension_script_ops): Update.
12057 (gdbpy_execute_objfile_script): New function.
12059 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12061 * tui/tui-io.c (tui_expand_tabs): New function.
12062 (tui_puts, tui_redisplay_readline): Expand TABs into the
12063 appropriate number of spaces.
12064 * tui/tui-regs.c: Include tui-io.h.
12065 (tui_register_format): Call tui_expand_tabs to expand TABs into
12066 the appropriate number of spaces.
12067 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12069 2015-01-30 Doug Evans <dje@google.com>
12071 * NEWS: "info source" command now display producer string if present.
12072 * source.c (source_info): Print producer string if present.
12074 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12076 * varobj.c (varobj_delete): Fix comment.
12078 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12080 * varobj.c (create_child): Modify comment.
12082 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12084 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12086 (ada_name_of_variable): Same.
12087 (ada_path_expr_of_child): Same.
12088 (ada_value_of_variable): Same.
12089 (ada_value_is_changeable_p): Same.
12090 (ada_value_has_mutated): Same.
12091 * c-varobj.c (varobj_is_anonymous_child): Same.
12092 (c_is_path_expr_parent): Same.
12093 (c_number_of_children): Same.
12094 (c_name_of_variable): Same.
12095 (c_path_expr_of_child): Same.
12097 (c_value_of_variable): Same.
12098 (cplus_number_of_children): Same.
12099 (cplus_name_of_variable): Same.
12100 (cplus_path_expr_of_child): Same.
12101 (cplus_value_of_variable): Same.
12102 * jv-varobj.c (java_number_of_children): Same.
12103 (java_name_of_variable): Same.
12104 (java_path_expr_of_child): Same.
12105 (java_value_of_variable): Same.
12106 * varobj.c (number_of_children): Same.
12107 (name_of_variable): Same.
12109 (varobj_ensure_python_env): Same.
12110 (varobj_get_objname): Same.
12111 (varobj_get_expression): Same.
12112 (varobj_get_display_format): Same.
12113 (varobj_get_display_hint): Same.
12114 (varobj_has_more): Same.
12115 (varobj_get_thread_id): Same.
12116 (varobj_get_frozen): Same.
12117 (dynamic_varobj_has_child_method): Same.
12118 (varobj_get_gdb_type): Same.
12119 (is_path_expr_parent): Same.
12120 (varobj_default_is_path_expr_parent): Same.
12121 (varobj_get_language): Same.
12122 (varobj_get_attributes): Same.
12123 (varobj_is_dynamic_p): Same.
12124 (varobj_get_child_range): Same.
12125 (varobj_value_has_mutated): Same.
12126 (varobj_get_value_type): Same.
12127 (number_of_children): Same.
12128 (name_of_variable): Same.
12129 (check_scope): Same.
12130 (varobj_editable_p): Same.
12131 (varobj_value_is_changeable_p): Same.
12132 (varobj_floating_p): Same.
12133 (varobj_default_value_is_changeable_p): Same.
12135 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12137 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12138 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12140 (cplus_path_expr_of_child): Same.
12142 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12144 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12146 (mi_cmd_var_info_expression): Same.
12147 * varobj.c (varobj_get_expression): Mention in the comment that
12148 the result must by freed by the caller.
12150 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12152 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12154 (varobj_update_one): Same.
12155 * varobj.c (update_type_if_necessary): Free curr_type_str and
12157 (varobj_get_type): Specify in comment that the result needs to be
12158 freed by the caller.
12160 2015-01-29 Doug Evans <dje@google.com>
12163 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12165 2015-01-25 Mark Wielaard <mjw@redhat.com>
12167 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12168 * utils.c (producer_is_gcc_ge_4): Likewise.
12169 (producer_is_gcc): New function.
12170 * utils.h (producer_is_gcc): New declaration.
12172 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12174 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12176 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12177 parameter by "addr_stack" parameter.
12178 (resolve_dynamic_range): Replace "addr" parameter by
12179 "stack_addr" parameter. Update function documentation.
12180 Update code accordingly.
12181 (resolve_dynamic_array, resolve_dynamic_union)
12182 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12183 (resolve_dynamic_type): Update code, following the changes made
12184 to resolve_dynamic_type_internal's interface.
12185 * dwarf2loc.h (struct property_addr_info): New.
12186 (dwarf2_evaluate_property): Replace "address" parameter
12187 by "addr_stack" parameter. Adjust function documentation.
12188 (struct dwarf2_offset_baton): New.
12189 (struct dwarf2_property_baton): Update documentation of
12190 field "referenced_type" to be more general. New field
12191 "offset_info" in union data field.
12192 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12193 parameter by "addr_stack" parameter. Adjust code accordingly.
12194 Add support for PROP_ADDR_OFFSET properties.
12195 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12196 DW_AT_data_member_location attributes as well. Use case
12197 statements instead of if/else condition.
12199 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12201 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12202 Return zero if PARENT_VALUE is NULL and parent_type's
12203 range type is dynamic.
12205 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12207 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12208 nonzero if the type's subtype is dynamic.
12209 (resolve_dynamic_range): Also resolve the range's subtype.
12211 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12213 Pushed by Joel Brobecker <brobecker@adacore.com>.
12214 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12216 2015-01-27 Doug Evans <dje@google.com>
12218 * NEWS: Mention gdb.Objfile.username.
12219 * python/py-objfile.c (objfpy_get_username): New function.
12220 (objfile_getset): Add "username".
12222 2015-01-24 Mark Wielaard <mjw@redhat.com>
12224 * stack.c (return_command): Markup warning message with _.
12226 2015-01-24 Doug Evans <xdje42@gmail.com>
12228 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12230 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12232 Fix 100x slowdown regression on DWZ files.
12233 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12234 (struct line_header): Add offset and offset_in_dwz.
12235 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12236 (free_line_header_voidp): New declaration.
12237 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12239 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12240 (handle_DW_AT_stmt_list): Use line_header_hash.
12241 (free_line_header_voidp): New function.
12242 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12243 (dwarf_decode_lines): New parameter decode_mapping, use it.
12244 (dwarf2_free_objfile): Free line_header_hash.
12246 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12249 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12252 2015-01-15 Mark Wielaard <mjw@redhat.com>
12254 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12256 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12257 calling_convention an 8 bit bit field.
12258 (TYPE_NO_RETURN): New macro.
12259 * infcmd.c (finish_command): Query if function does not return
12261 * stack.c (return_command): Likewise.
12263 2015-01-23 Pedro Alves <palves@redhat.com>
12265 * linux-nat.c (linux_is_async_p): New macro.
12266 (linux_nat_is_async_p):
12267 (linux_nat_terminal_inferior): Check whether the target can async
12268 instead of whether it is already async.
12269 (linux_nat_terminal_ours): Don't check whether the target is
12271 (linux_async_pipe): Use linux_is_async_p.
12273 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12275 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12277 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12278 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12279 Sort tp_array using tp_array_compar.
12280 (_initialize_thread): Extend thread_apply_all_command help.
12282 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12284 * corelow.c (core_open): Call also thread_command.
12285 * gdbthread.h (thread_command): New prototype moved from ...
12286 * thread.c (thread_command): ... here.
12287 (thread_command): Make it global.
12289 2015-01-22 Pedro Alves <palves@redhat.com>
12291 * configure.ac [*mingw32*]: Check $curses_found instead of
12293 * configure: Regenerate.
12294 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12295 HAVE_NCURSES_NCURSES_H checks.
12297 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12299 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12300 fails with the 1st arg NULL, try again with "unknown". Don't test
12301 the "cup" capability: it isn't supported by the Windows port of
12302 ncurses, but the Windows console driver is still capable of
12305 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12307 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12309 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12311 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12312 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12313 reason that "make TAGS" is broken.
12315 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12317 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12318 and check additional store instructions.
12320 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12322 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12324 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12326 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12327 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12328 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12329 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12330 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12331 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12332 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12333 ppc_process_record_op19, ppc_process_record_op31,
12334 ppc_process_record_op59, ppc_process_record_op60,
12335 ppc_process_record_op63): Likewise.
12337 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12339 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12340 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12343 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12345 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12346 ppc_process_record_op31, ppc_process_record_op59,
12347 ppc_process_record_op60, ppc_process_record_op63,
12348 ppc_process_record): Fix -Wformat warning.
12349 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12350 Remove unused variables.
12352 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12354 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12356 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12358 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12359 CONFIG_OBS if not building with a curses library.
12360 * configure: Regenerate.
12362 * windows-termcap.c: Include defs.h. Make the whole body empty if
12363 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12364 HAVE_NCURSES_NCURSES_H is defined.
12366 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12368 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12369 from end of line to start of next line.
12371 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12373 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12374 Scan PLT stub backward for reverse debugging.
12375 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12377 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12378 Ulrich Weigand <uweigand@de.ibm.com>
12380 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12382 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12384 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12385 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12386 (ppc_linux_init_abi): Set process_record, process_record_signal.
12387 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12388 ppc_linux_record_tdep to gdbarch_tdep.
12389 (ppc_process_record): New declaration.
12390 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12391 ppc_process_record_op19, ppc_process_record_op31,
12392 ppc_process_record_op59, ppc_process_record_op60,
12393 ppc_process_record_op63, ppc_process_record): New functions.
12395 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12397 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12398 rs6000_in_function_epilogue_frame_p and add an argument
12400 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12401 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12403 (rs6000_epilogue_frame_unwind): New.
12404 (rs6000_gdbarch_init): Append epilogue unwinder.
12406 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12408 * nat/linux-personality.c: Replace "#ifndef
12409 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12410 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12413 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12415 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12417 (_initialize_tui_win) <border-kind, border-mode>:
12418 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12419 (tui_set_tab_width_command): Fix the commentary.
12421 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12423 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12425 (tui_set_tab_width_command): Delete and recreate the source and
12426 the disassembly windows, to show the effect of the changed tab
12429 * tui/tui-data.h (LINE_PREFIX): Make shorter
12430 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12431 "Thread NNNNN.XXXX" thread ID notation on Windows.
12433 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12435 Fix gcc-5 compilation.
12436 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12438 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12440 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12441 (linux-personality.o): New rule.
12442 * common/common-defs.h: Include <stdint.h>.
12443 * config/aarch64/linux.mh (NATDEPFILES): Include
12444 linux-personality.o.
12445 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12446 * config/arm/linux.mh (NATDEPFILES): Likewise.
12447 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12448 * config/i386/linux.mh (NATDEPFILES): Likewise.
12449 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12450 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12451 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12452 * config/mips/linux.mh (NATDEPFILES): Likewise.
12453 * config/pa/linux.mh (NATDEPFILES): Likewise.
12454 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12455 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12456 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12457 * config/s390/linux.mh (NATDEPFILES): Likewise.
12458 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12459 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12460 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12461 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12462 * defs.h: Remove #include <stdint.h> (moved to
12463 common/common-defs.h).
12464 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12465 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12466 nat/linux-personality.c).
12467 (linux_nat_create_inferior): Remove code to disable address space
12468 randomization (moved to nat/linux-personality.c). Create cleanup
12469 to disable address space randomization.
12470 * nat/linux-personality.c: New file.
12471 * nat/linux-personality.h: Likewise.
12473 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12475 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12476 common/posix-strerror.c.
12477 (posix-strerror.o): New rule.
12478 (mingw-strerror.o): Likewise.
12479 * common/common-utils.h (safe_strerror): Move prototype to here,
12481 * common/common.host: New file.
12482 * common/mingw-strerror.c: Likewise.
12483 * common/posix-strerror.c: Likewise.
12484 * configure: Regenerated.
12485 * configure.ac: Source common/common.host. Add variable
12486 common_host_obs to gdb_host_obs.
12487 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12488 gdb/common/posix-strerror.c when warning about the use of
12490 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12491 common/mingw-strerror.c.
12492 * posix-hdep.c (safe_strerror): Remove definition; move it to
12493 common/posix-hdep.c.
12494 * utils.h (safe_strerror): Remove prototype; move to
12495 common/common-utils.h.
12497 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12499 GDB 7.8.2 released.
12501 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12503 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12504 ___XA type if the array has already been fixed.
12506 2015-01-14 Yao Qi <yao@codesourcery.com>
12508 * Makefile.in (ppc-linux.o): New rule.
12509 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12510 * configure.ac: AC_CHECK_FUNCS(getauxval).
12511 * config.in: Re-generated.
12512 * configure: Re-generated.
12513 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12515 * nat/ppc-linux.c: New file.
12516 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12517 Call ppc64_64bit_inferior_p.
12519 2015-01-14 Yao Qi <yao@codesourcery.com>
12521 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12523 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12524 (PPC_FEATURE_HAS_DFP): Likewise.
12525 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12526 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12527 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12528 Include "nat/ppc-linux.h".
12529 * nat/ppc-linux.h: New file.
12530 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12532 2015-01-14 Pedro Alves <palves@redhat.com>
12535 * breakpoint.c: Include "interps.h".
12536 (bpstat_do_actions_1): Also check whether the interpreter is
12539 2015-01-14 Pedro Alves <palves@redhat.com>
12542 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12543 reinstall if the interpreter is sync.
12545 2015-01-13 Doug Evans <dje@google.com>
12547 * objfiles.c (objfile_filename): New function.
12548 * objfiles.h (objfile_filename): Declare it.
12549 (objfile_name): Add function comment.
12550 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12551 bfd file name (which may be realpath'd), and the original name.
12553 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12555 * NEWS: Create a new section for the next release branch.
12556 Rename the section of the current branch, now that it has
12559 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12561 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12562 * version.in: Bump version to 7.9.50.DATE-cvs.
12564 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12566 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12567 Remove trailing new-line in argument of call to warning.
12569 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12571 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12572 new-line in argument of call to "warning".
12574 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12576 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12577 in static block, then try searching for primitive types.
12579 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12581 * top.h (gdb_add_history): Declare.
12582 * top.c (command_count): New variable.
12583 (gdb_add_history): New function.
12584 (gdb_safe_append_history): New static function.
12585 (quit_force): Call it.
12586 (command_line_input): Use gdb_add_history instead of
12588 * event-top.c (command_line_handler): Likewise.
12590 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12593 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12594 <setjmp.h> #include.
12596 2015-01-11 Doug Evans <xdje42@gmail.com>
12598 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12600 2015-01-11 Doug Evans <xdje42@gmail.com>
12603 * NEWS: The "maint demangle" command is renamed as "demangle".
12604 * demangle.c: #include cli/cli-utils.h, language.h.
12605 (demangle_command): New function.
12606 (_initialize_demangle): Add new command "demangle".
12607 * maint.c (maintenance_demangle): Stub out.
12608 (_initialize_maint_cmds): Update help text for "maint demangle",
12609 and mark as deprecated.
12611 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12613 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12614 inferior_thread is a function.
12616 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12618 * Makefile.in (.y.c): Don't munge yacc's #line
12621 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12623 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12624 to prompt for input.
12625 * tui/tui-hooks.c (tui_query_hook): Remove.
12626 (tui_install_hooks): Don't set deprecated_query_hook.
12627 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12628 height calculation. Always update the command window's cur_line.
12630 2015-01-09 Pedro Alves <palves@redhat.com>
12632 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12634 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12636 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12637 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12639 (check_stopped_by_watchpoint): New function.
12640 (save_sigtrap): Reimplement.
12641 (linux_nat_stopped_by_watchpoint): Adjust.
12642 (linux_nat_lp_status_is_event): Delete.
12643 (stop_wait_callback): Only call save_sigtrap after storing the
12645 (status_callback): If the thread had been stopped for a breakpoint
12646 that has since been removed, discard the event and resume the LWP.
12647 (count_events_callback, select_event_lwp_callback): Use
12648 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12649 (cancel_breakpoint): Rename to ...
12650 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12651 stopped for a software breakpoint or hardware breakpoint.
12652 (select_event_lwp): Only give preference to the stepping LWP in
12653 all-stop mode. Adjust comments.
12654 (stop_and_resume_callback): Remove references to new_pending_p.
12655 (linux_nat_filter_event): Likewise. Leave exit events of the
12656 leader thread pending here. Handle signal short circuiting here.
12657 Only call save_sigtrap after storing the pending waitstatus.
12658 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12659 new_pending. Don't handle leaving events the caller is not
12660 interested in pending here, nor handle signal short-circuiting
12661 here. Also give equal priority to all LWPs that have had events
12662 in non-stop mode. If reporting a software breakpoint event,
12663 unadjust the LWP's PC.
12664 * linux-nat.h (enum lwp_stop_reason): New.
12665 (struct lwp_info) <stop_pc>: New field.
12666 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12667 (struct lwp_info) <stop_reason>: New field.
12668 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12670 2015-01-09 Pedro Alves <palves@redhat.com>
12672 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12673 Set the LWP's 'resumed' flag.
12675 2015-01-09 Pedro Alves <palves@redhat.com>
12677 * linux-nat.c (linux_resume_one_lwp): New function.
12678 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12679 (linux_nat_resume): Use lwp_status_pending_p and
12680 linux_resume_one_lwp.
12681 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12682 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12683 (status_callback, running_callback): Use lwp_status_pending_p.
12684 (lwp_status_pending_p): New function.
12685 (stop_and_resume_callback): Use lwp_status_pending_p.
12686 (linux_nat_filter_event): Use linux_resume_one_lwp.
12687 (linux_nat_wait_1): Always use status_callback to look for an LWP
12688 with a pending status. Use linux_resume_one_lwp.
12689 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12690 linux_resume_one_lwp.
12692 2015-01-09 Pedro Alves <palves@redhat.com>
12694 * breakpoint.c (bp_location_inserted_here_p): New function,
12695 factored out from ...
12696 (breakpoint_inserted_here_p): ... here. Use
12697 ALL_BP_LOCATIONS_AT_ADDR.
12698 (software_breakpoint_inserted_here_p): Use
12699 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12701 2014-01-09 Pedro Alves <palves@redhat.com>
12703 Skip enabling event reporting if the kernel supports
12704 PTRACE_EVENT_CLONE.
12705 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12706 (thread_db_use_events): New function.
12707 (try_thread_db_load_1): Check thread_db_use_events before enabling
12709 (update_thread_state): New function.
12710 (attach_thread): Use it. Check thread_db_use_events before
12711 enabling event reporting.
12712 (thread_db_detach): Check thread_db_use_events before disabling
12714 (find_new_threads_callback): Check thread_db_use_events before
12715 enabling event reporting. Update the thread's state if not using
12716 libthread_db events.
12718 2015-01-09 Pedro Alves <palves@redhat.com>
12720 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12721 about to wait for is > 0.
12722 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12723 the kernel thread ID is -1.
12725 2015-01-09 Pedro Alves <palves@redhat.com>
12727 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12728 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12729 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12730 ptrace option flags.
12731 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12733 * nat/linux-procfs.c: Include <dirent.h>.
12734 (linux_proc_get_int): New parameter "warn". Handle it.
12735 (linux_proc_get_tgid): Adjust.
12736 (linux_proc_get_tracerpid): Rename to ...
12737 (linux_proc_get_tracerpid_nowarn): ... this.
12738 (linux_proc_pid_get_state): New function, factored out from
12739 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12741 (linux_proc_pid_is_gone): New function.
12742 (linux_proc_pid_is_stopped): Adjust.
12743 (linux_proc_pid_is_zombie_maybe_warn)
12744 (linux_proc_pid_is_zombie_nowarn): New functions.
12745 (linux_proc_pid_is_zombie): Use
12746 linux_proc_pid_is_zombie_maybe_warn.
12747 (linux_proc_attach_tgid_threads): New function.
12748 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12749 (linux_proc_get_tracerpid): Rename to ...
12750 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12751 (linux_proc_pid_is_gone): New declaration.
12752 (linux_proc_pid_is_zombie): Update comment.
12753 (linux_proc_pid_is_zombie_nowarn): New declaration.
12754 (linux_proc_attach_lwp_func): New typedef.
12755 (linux_proc_attach_tgid_threads): New declaration.
12756 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12757 use nowarn functions.
12758 (linux_ptrace_attach_fail_reason_string): Move here from
12759 gdbserver/linux-low.c and rename.
12760 (ptrace_supports_feature): If the current ptrace options are not
12761 known yet, check them now, instead of asserting.
12762 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12765 2015-01-09 Pedro Alves <palves@redhat.com>
12767 * linux-thread-db.c (thread_db_find_new_threads_silently)
12768 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12769 (find_new_threads_once): Print debug output on gdb_stdlog.
12771 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12772 Pedro Alves <palves@redhat.com>
12774 * compile/compile.c: Include "gdb_wait.h".
12775 (do_rmdir): Check return value, and free 'zap'.
12777 2015-01-08 Pedro Alves <palves@redhat.com>
12778 Yao Qi <yao@codesourcery.com>
12780 * dwarf2loc.c (indirect_pieced_value): Don't call
12781 gdb_sign_extend. Call extract_signed_integer instead.
12782 * utils.c (gdb_sign_extend): Remove.
12783 * utils.h (gdb_sign_extend): Remove declaration.
12785 2015-01-07 Pierre Muller <muller@sourceware.org>
12788 * stabsread.c (define_symbol): Set language for C++ special symbols.
12790 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12792 * inflow.c (initial_gdb_ttystate): Tweak comment.
12794 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12796 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12797 comment documenting function.
12799 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12801 * terminal.h (set_initial_gdb_ttystate): Declare.
12802 * inflow.c (initial_gdb_ttystate): New static variable.
12803 (set_initial_gdb_ttystate): New setter.
12804 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12805 instead of our current terminal state.
12806 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12808 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12810 * guile/scm-type.c (tyscm_array_1): Add comment.
12811 * python/py-type.c (typy_array_1): Add comment.
12813 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12815 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12816 error if N2 is equal to N1 - 1.
12818 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12820 * python/py-type.c (typy_array_1): Do not raise negative-length
12821 exception if N2 is equal to N1 - 1.
12823 2015-01-03 Doug Evans <xdje42@gmail.com>
12825 * c-exp.y: Whitespace cleanup.
12826 (classify_inner_name): Remove extra ;.
12828 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12830 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12833 2015-01-02 Doug Evans <dje@google.com>
12835 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12837 2015-01-02 Doug Evans <dje@google.com>
12839 * symtab.h (struct symbol): Fix typo in comment.
12841 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12843 Update year range in copyright notice of all files.
12845 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12847 * top.c (print_gdb_version): Update copyright year to 2015.
12849 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12851 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12853 For older changes see ChangeLog-2014.
12859 version-control: never