1 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4 variable compiler warnings.
6 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
10 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11 Phil Muldoon <pmuldoon@redhat.com>
13 * NEWS (Changes since GDB 7.9): Add compile print.
14 * compile/compile-c-support.c (add_code_header, add_code_footer)
15 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
16 COMPILE_I_PRINT_VALUE_SCOPE.
17 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
18 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
20 * compile/compile-object-load.c: Include block.h.
21 (get_out_value_type): New function.
22 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
23 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
25 * compile/compile-object-load.h (struct compile_module): Add fields
26 out_value_addr and out_value_type.
27 * compile/compile-object-run.c: Include valprint.h and compile.h.
28 (struct do_module_cleanup): Add fields out_value_addr and
30 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
31 COMPILE_I_PRINT_VALUE_SCOPE.
32 (compile_object_run): Propagate out_value_addr and out_value_type.
34 * compile/compile.c: Include valprint.h.
35 (compile_print_value, compile_print_command): New functions.
36 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
37 (_initialize_compile): Update compile code help text. Install
38 compile_print_command.
39 * compile/compile.h (compile_print_value): New prototype.
40 * defs.h (enum compile_i_scope_types): Add
41 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
43 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
45 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
46 Rely on its parameter count.
47 (compile_object_load): Replace lookup_minimal_symbol_text by
48 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
50 * compile/compile-object-load.h (struct compile_module): Replace
51 func_addr by func_sym.
52 * compile/compile-object-run.c: Include block.h.
53 (compile_object_run): Reset module variable after it is freed. Use
54 FUNC_SYM instead of FUNC_ADDR. Rely on it.
56 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
58 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
59 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
60 (c_compute_program): Call generate_register_struct after typedefs.
61 * compile/compile-loc2c.c (push, pushf_register_address)
62 (pushf_register): Cast to GCC_UINTPTR.
63 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
64 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
65 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
66 * compile/compile.c (_initialize_compile): Enable warnings for
69 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
71 * cli/cli-script.c (execute_control_command): Update
72 eval_compile_command caller.
73 * compile/compile-object-load.c (compile_object_load): Add parameters
74 scope and scope_data. Set them.
75 * compile/compile-object-load.h (struct compile_module): Add fields
77 (compile_object_load): Add parameters scope and scope_data.
78 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
80 (compile_object_run): Propagate the fields scope and scope_data.
81 * compile/compile.c (compile_file_command, compile_code_command):
82 Update eval_compile_command callers.
83 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
84 * compile/compile.h (eval_compile_command): Add parameter scope_data.
85 * defs.h (struct command_line): Add field scope_data.
87 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
89 * printcmd.c (struct format_data): Move it to valprint.h.
90 (print_command_parse_format, print_value): New functions from ...
91 (print_command_1): ... here. Call them.
92 * valprint.h (struct format_data): Move it here from printcmd.c.
93 (print_command_parse_format, print_value): New declarations.
95 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
97 * compile/compile-object-load.c (compile_object_load): Add
98 COMPILE_DEBUG message.
100 2015-05-15 Jerome Guitton <guitton@adacore.com>
102 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
103 index to get element instead of enum value.
104 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
105 of index to compute length, but enum values to compute bounds.
106 (ada_array_length): Use enum position of index instead of enum value.
107 (pos_atr): Move position computation to...
108 (ada_evaluate_subexp): Use enum values to compute bounds.
109 * gdbtypes.c (discrete_position): ...this new function.
110 * gdbtypes.h (discrete_position): New function declaration.
111 * valprint.c (val_print_array_elements): Call discrete_position
112 to handle array indexed by non-contiguous enumeration types.
114 2015-05-15 Jerome Guitton <guitton@adacore.com>
116 * ada-lang.c (find_parallel_type_by_descriptive_type):
117 Go through typedefs during lookup.
118 (to_fixed_array_type): Add support for non-bit packed arrays
119 as variable-length fields.
121 2015-05-15 Pedro Alves <palves@redhat.com>
122 Simon Marchi <simon.marchi@ericsson.com>
124 * event-loop.c (gdb_notifier) <next_file_handler,
125 next_poll_fds_index>: New fields.
126 (get_next_file_handler_to_handle_and_advance): New function.
127 (delete_file_handler): If deleting the next file handler to
128 handle, advance to the next file handler.
129 (gdb_wait_for_event): Bail early if no event fired. Poll file
130 handlers in round-robin fashion.
132 2015-05-15 Pedro Alves <palves@redhat.com>
134 * linux-tdep.c (linux_find_memory_regions_full): Rename local
137 2015-05-15 Pedro Alves <palves@redhat.com>
139 * nat/linux-nat.h: Include "target/waitstatus.h".
141 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
143 * python/py-unwind.c (struct reg_info): Move out of ...
144 (struct cached_frame_info): ... this scope.
145 (pending_frame_object_type, unwind_info_object_type): Make extern.
147 2015-05-15 Joel Brobecker <brobecker@adacore.com>
149 * ada-lang.c (ada_value_primitive_packed_val): Make sure
150 accumSize is never negative.
152 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
154 * tui/tui-command.c: Remove include of <ctype.h>.
155 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
157 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
159 * dwarf2read.c (die_needs_namespace): Return 1 for
160 DW_TAG_inlined_subroutine.
162 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * regcache.c (regcache_cpy_no_passthrough): New declaration.
165 (regcache_cpy_no_passthrough): Make it static, add function comment.
166 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
167 (regcache_cpy_no_passthrough): Remove declaration.
169 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
171 * gdbthread.h (struct thread_control_state): Update comment for
173 * infcall.c (run_inferior_call): Update comment about
175 * infcmd.c (get_return_value): Update comment about stop_registers.
176 (finish_forward): Update comment about proceed_to_finish.
177 * infrun.c (stop_registers): Remove.
178 (clear_proceed_status, normal_stop): Remove stop_registers handling.
179 * infrun.h (stop_registers): Remove.
181 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
183 * infcall.c (struct dummy_frame_context_saver)
184 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
185 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
186 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
188 (call_function_by_hand_dummy): Move discard_cleanups of
189 inf_status_cleanup before dummy_frame_push. Call
190 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
191 Use dummy_frame_context_saver_get_regs instead of stop_registers.
192 * infcall.h (struct dummy_frame_context_saver)
193 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
194 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
196 * infcmd.c: Include infcall.h.
197 (get_return_value): Add parameter ctx_saver, use it instead of
199 (print_return_value): Add parameter ctx_saver, pass it.
200 (struct finish_command_continuation_args): Add field ctx_saver.
201 (finish_command_continuation): Update print_return_value caller.
202 (finish_command_continuation_free_arg): Free also ctx_saver.
203 (finish_forward): Call dummy_frame_context_saver_setup.
204 * inferior.h (struct dummy_frame_context_saver): New declaration.
205 (get_return_value): Add parameter ctx_saver.
206 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
207 get_return_value caller.
209 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
211 * dummy-frame.c (struct dummy_frame_dtor_list): New.
212 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
213 (remove_dummy_frame): Process dtor_list.
214 (pop_dummy_frame): Process dtor_list.
215 (register_dummy_frame_dtor): Maintain dtor_list.
216 (find_dummy_frame_dtor): Handle dtor_list.
217 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
220 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
222 * compile/compile-object-run.c (do_module_cleanup): Add parameter
224 (compile_object_run): Update do_module_cleanup caller.
225 * dummy-frame.c: Include infcall.h.
226 (struct dummy_frame): Update dtor comment.
227 (remove_dummy_frame): Call dtor.
228 (pop_dummy_frame): Update dtor caller.
229 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
232 2015-05-13 Joel Brobecker <brobecker@adacore.com>
236 2015-05-13 Joel Brobecker <brobecker@adacore.com>
238 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
239 Xmethods now being able to specify a result type to that new
242 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
244 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
245 first before resizing the window.
246 * tui/tui.c (tui_enable): Likewise.
248 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
250 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
251 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
252 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
253 dummy_dtor parameter.
254 * infcall.h: Include dummy-frame.h.
255 (call_function_by_hand_dummy_dtor_ftype): Remove.
256 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
259 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
262 * top.c (history_size_setshow_var): Change type to signed.
263 Initialize to -2. Update documentation.
264 (set_readline_history_size): Define.
265 (set_history_size_command): Use it. Remove logic for handling
267 (init_history): Use set_readline_history_size(). Test for a
268 value of -2 instead of 0 when determining whether to set a
269 default history size.
270 (init_main): Decode the argument of the "size" command as a
273 2015-05-12 Doug Evans <dje@google.com>
275 * dwarf2read.c (struct file_entry): Tweak comments.
276 (get_debug_line_section): Tweak comments.
278 2015-05-12 Don Breazeal <donb@codesourcery.com>
280 * NEWS: Announce fork support in the RSP and support
281 for fork debugging in extended mode.
283 2015-05-12 Don Breazeal <donb@codesourcery.com>
285 * remote.c (remote_insert_fork_catchpoint): New function.
286 (remote_remove_fork_catchpoint): New function.
287 (remote_insert_vfork_catchpoint): New function.
288 (remote_remove_vfork_catchpoint): New function.
289 (pending_fork_parent_callback): New function.
290 (remove_new_fork_child): New function.
291 (remote_update_thread_list): Call remote_notif_get_pending_events
292 and remove_new_fork_child.
293 (extended_remote_kill): Kill fork child when killing the
294 parent before follow_fork completes.
295 (init_extended_remote_ops): Initialize target vector with
296 new fork catchpoint functions.
298 2015-05-12 Don Breazeal <donb@codesourcery.com>
300 * remote.c (remove_vfork_event_p): New function.
301 (remote_follow_fork): Add vfork event type to event checking.
302 (remote_parse_stop_reply): New stop reasons "vfork" and
303 "vforkdone" for RSP 'T' Stop Reply Packet.
305 2015-05-12 Don Breazeal <donb@codesourcery.com>
307 * linux-nat.c (linux_nat_ptrace_options): New function.
308 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
309 Call linux_nat_ptrace_options and use different argument to
310 linux_enable_event_reporting.
311 (_initialize_linux_nat): Delete call to
312 linux_ptrace_set_additional_flags.
313 * nat/linux-ptrace.c (current_ptrace_options): Rename to
314 supported_ptrace_options.
315 (additional_flags): Delete variable.
316 (linux_check_ptrace_features): Use supported_ptrace_options.
317 (linux_test_for_tracesysgood, linux_test_for_tracefork):
318 Likewise, and remove additional_flags check.
319 (linux_enable_event_reporting): Change 'attached' argument to
320 'options'. Use supported_ptrace_options.
321 (ptrace_supports_feature): Change comment. Use
322 supported_ptrace_options.
323 (linux_ptrace_set_additional_flags): Delete function.
324 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
325 Delete function prototype.
326 * remote.c (remote_fork_event_p): New function.
327 (remote_detach_pid): New function.
328 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
329 if doing detach-on-fork.
330 (remote_follow_fork): New function.
331 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
332 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
333 (init_extended_remote_ops): Initialize to_follow_fork.
335 2015-05-12 Don Breazeal <donb@codesourcery.com>
337 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
338 from static to extern.
339 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
340 * remote.c (anonymous enum): <PACKET_fork_event_feature,
341 * PACKET_vfork_event_feature>: New enumeration constants.
342 (remote_protocol_features): Add table entries for new packets.
343 (remote_query_supported): Add new feature queries to qSupported
346 2015-05-12 Gary Benson <gbenson@redhat.com>
348 * remote.c (remote_add_inferior): Call exec_file_locate_attach
349 for fake PIDs as well as real ones.
350 (remote_pid_to_exec_file): Send empty annex if PID is fake.
352 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
354 * NEWS (Python Scripting): Mention the new gdb.Value methods.
355 * python/py-value.c (valpy_reference_value): New function.
356 (valpy_const_value): Likewise.
357 (value_object_methods): Add new methods.
358 * value.c (make_cv_value): New function.
359 * value.h (make_cv_value): Declare.
361 2015-05-08 Yao Qi <yao@codesourcery.com>
362 Sandra Loosemore <sandra@codesourcery.com>
364 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
365 to 'lh->include_dirs' before accessing to it.
366 (psymtab_include_file_name): Likewise.
367 (dwarf_decode_lines_1): Likewise.
368 (dwarf_decode_lines): Likewise.
369 (file_file_name): Likewise.
371 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
373 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
374 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
375 (nios2_linux_rt_sigreturn_init): Adjust base address of
378 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
380 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
381 "trap 31" as the breakpoint instruction on all targets.
383 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
385 * infcmd.c (print_return_value): Remove unused declaration.
387 2015-05-08 Joel Brobecker <brobecker@adacore.com>
389 * dwarf2read.c (attr_to_dynamic_prop)
390 <DW_AT_data_member_location>: Use read_type_die isntead of
393 2015-05-08 Joel Brobecker <brobecker@adacore.com>
395 * ada-lang.c (ada_convert_actual): Add handling of formals
396 passed inside an aligner type.
398 2015-05-08 Joel Brobecker <brobecker@adacore.com>
400 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
402 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
405 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
406 Print xmethod matcher status.
408 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
410 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
411 register in the regcache when treating the PSWM register, and vice
414 2015-05-07 Gary Benson <gbenson@redhat.com>
416 * linux-thread-db.c (struct thread_db_info)
417 <td_ta_map_id2thr_p>: Remove field.
418 (try_thread_db_load_1): Remove initialization for the above.
420 2015-05-07 Gary Benson <gbenson@redhat.com>
422 * linux-thread-db.c (struct thread_db_info)
423 <td_thr_validate_p>: Remove field.
424 (try_thread_db_load_1): Remove initialization for the above.
426 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * compile/compile-object-load.c (compile_object_load): Support
431 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
433 * compile/compile.c (compile_to_object): Make the cmd_string parameter
434 const. Use new variables for the const compatibility.
435 (eval_compile_command): Make the cmd_string parameter const.
436 * compile/compile.h (eval_compile_command): Make the cmd_string
439 2015-05-06 Joel Brobecker <brobecker@adacore.com>
441 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
443 * top.c (deprecated_init_ui_hook): Delete.
444 (gdb_init): Remove handling of deprecated_init_ui_hook.
445 * interps.c (clear_interpreter_hooks): Remove handling of
446 deprecated_init_ui_hook.
447 * main.c (captured_main): Update comment.
449 2015-05-06 Joel Brobecker <brobecker@adacore.com>
451 * solib.c (_initialize_solib): Add "info dll" alias creation.
452 * windows-nat.c (set_windows_aliases): Delete.
453 (_initialize_windows_nat): Remove deprecated_init_ui_hook
455 * NEWS: Add news entry about "info dll" now being available
458 2015-05-05 Joel Brobecker <brobecker@adacore.com>
460 * ada-lang.c (value_assign_to_component): Reformat and improve
461 documentation. Remove all trailing spaces.
463 2015-05-05 Joel Brobecker <brobecker@adacore.com>
465 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
466 Stop counting inlined frames as soon as an out-of-line function
469 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
471 * dwarf2read.c (inherit_abstract_dies): Skip
472 DW_TAG_GNU_call_site dies while inheriting children of an
473 abstract DIE into a scope.
474 (read_lexical_block_scope): Inherit abstract DIE's for
477 2015-05-05 Joel Brobecker <brobecker@adacore.com>
479 * ada-valprint.c (val_print_packed_array_elements): Delete
480 variable "len". Add a type-length check when comparing two
481 consecutive elements of the array. Use the element's actual
482 length in call to value_contents_eq.
483 * ada-lang.c (ada_value_primitive_packed_val): Always return
484 a value whose type has been resolved.
486 2015-05-05 Joel Brobecker <brobecker@adacore.com>
488 * ada-lang.c (ada_value_primitive_packed_val): Recompute
489 BIT_SIZE and LEN if the size of the resolved type is smaller
490 than BIT_SIZE * HOST_CHAR_BIT.
492 2015-05-05 Joel Brobecker <brobecker@adacore.com>
494 * ada-lang.c (ada_value_primitive_packed_val): Use a more
495 correct address in call to value_at. Adjust call to
496 value_address accordingly.
498 2015-05-05 Joel Brobecker <brobecker@adacore.com>
500 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
503 2015-05-05 Joel Brobecker <brobecker@adacore.com>
505 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
506 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
508 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
509 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
510 (resolve_dynamic_type_internal): Set pinfo.valaddr.
511 Add handling of addr_stack->valaddr.
512 (resolve_dynamic_type): Add "valaddr" parameter.
513 Set pinfo.valaddr field.
514 * ada-lang.c (ada_discrete_type_high_bound): Update call to
515 resolve_dynamic_type.
516 (ada_discrete_type_low_bound): Likewise.
517 * findvar.c (default_read_var_value): Likewise.
518 * value.c (value_from_contents_and_address): Likewise.
520 2015-05-05 Joel Brobecker <brobecker@adacore.com>
522 * gdbtypes.c (resolve_dynamic_array): Use
523 create_array_type_with_stride instead of create_array_type.
525 2015-04-30 DJ Delorie <dj@redhat.com>
527 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
530 2015-04-29 Doug Evans <dje@google.com>
533 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
534 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
535 EVAL_AVOID_SIDE_EFFECTS for xmethods.
536 * extension-priv.h (struct extension_language_ops)
537 <get_xmethod_result_type>: New member.
538 * extension.c (get_xmethod_result_type): New function.
539 * extension.h (get_xmethod_result_type): Declare.
540 * python/py-xmethods.c (get_result_type_method_name): New static
542 (py_get_result_type_method_name): Ditto.
543 (gdbpy_get_xmethod_result_type): New function.
544 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
545 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
546 * python/python.c (python_extension_ops): Add
547 gdbpy_get_xmethod_result_type.
548 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
549 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
551 (value_x_unop): Ditto.
552 * value.c (result_type_of_xmethod): New function.
553 * value.h (result_type_of_xmethod): Declare.
555 2015-04-29 Gary Benson <gbenson@redhat.com>
557 * solib.c (solib_find_1): Allow fd argument to be NULL.
558 (exec_file_find): Update comment.
559 (solib_find): Likewise.
560 * exec.c (exec_file_locate_attach): Use NULL as fd
561 argument to exec_file_find to avoid having to close
563 * infrun.c (follow_exec): Likewise.
565 2015-04-28 Doug Evans <dje@google.com>
568 * python/lib/gdb/printing.py (register_pretty_printer): Handle
569 name or __name__ attributes. Handle gdb module as first argument.
571 2015-04-28 Doug Evans <dje@google.com>
574 * python/py-prettyprint.c (print_children): Verify result of children
575 iterator. Provide better error message.
576 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
577 * python/python.c (gdbpy_print_python_errors_p): New function.
579 2015-04-28 Doug Evans <dje@google.com>
581 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
583 2015-04-28 Sasha Smundak <asmundak@google.com>
585 * NEWS: Mention gdb.Type.optimized_out method.
586 * python/py-type.c (typy_optimized_out): New function.
588 2015-04-28 John Baldwin <jhb@FreeBSD.org>
590 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
592 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
594 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
595 (initialize_utils): Move call of init_page_info() to ...
596 * top.c (gdb_init): ... here.
598 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
600 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
601 (tui_sigwinch_handler): Still update our idea of
602 the terminal's width and height even when TUI is not active.
604 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
606 * utils.h (set_screen_width_and_height): Declare.
607 * utils.c (set_screen_width_and_height): Define.
608 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
610 2015-04-28 Gary Benson <gbenson@redhat.com>
612 * infrun.c (solist.h): New include.
613 (follow_exec): Use exec_file_find to prefix execd_pathname
616 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
618 * tui/tui-source.c (tui_set_source_content): Avoid calling
619 strcpy() when offset is 0.
621 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
624 * tui/tui-data.c (tui_free_window): Don't free the locator
625 window when passed an SRC_WIN or a DISASSEM_WIN.
627 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
629 * tui/tui-data.h (struct tui_win_element): Forward-declare.
630 (tui_win_content): Move declaration.
631 (struct tui_gen_win_info): Give 'content' field the
632 type tui_win_content.
633 * tui/tui-data.c (init_content_element): Remove redundant and
635 (tui_add_content_elements): Remove erroneous cast.
636 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
638 (tui_get_begin_asm_address): Likewise.
639 * tui/tui-regs.c (tui_show_registers): Likewise.
640 (tui_show_register_group): Likewise.
641 (tui_display_registers_from): Likewise.
642 (tui_check_register_values): Likewise.
643 * tui/tui-source.c (tui_set_source_content): Likewise.
644 (tui_set_source_content_nil): Likewise.
645 (tui_source_is_displayed): Likewise.
646 * tui/tui-stack.c (tui_show_locator_content): Likewise.
647 (tui_set_locator_fullname): Likewise.
648 (tui_set_locator_info): Likewise.
649 (tui_show_frame_info): Likewise.
650 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
651 (tui_show_source_line): Likewise.
652 (tui_horizontal_source_scroll): Likewise.
653 (tui_update_breakpoint_info): Likewise.
654 (tui_set_exec_info_content): Likewise.
655 (tui_show_exec_info_content): Likewise.
656 (tui_alloc_source_buffer): Likewise.
657 (tui_line_is_displayed): Likewise.
658 (tui_addr_is_displayed): Likewise.
660 2015-04-27 John Baldwin <jhb@FreeBSD.org>
662 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
663 event if PL_FLAG_EXEC is set.
664 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
665 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
666 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
667 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
668 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
670 2015-04-27 John Baldwin <jhb@FreeBSD.org>
672 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
673 [TDP_RFPPWAIT] New variable fbsd_pending_children.
674 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
675 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
676 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
677 [PT_LWPINFO] (fbsd_wait): New function.
678 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
679 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
680 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
681 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
682 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
683 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
684 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
685 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
686 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
688 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
689 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
690 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
691 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
692 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
693 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
694 Set "to_post_attach" to "fbsd_post_attach".
696 2015-04-27 John Baldwin <jhb@FreeBSD.org>
698 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
699 (fbsd_find_memory_regions): Mark static.
700 (fbsd_nat_add_target): New function.
701 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
702 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
703 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
704 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
705 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
706 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
708 2015-04-27 Gary Benson <gbenson@redhat.com>
710 * objfiles.c (allocate_objfile): Do not attempt to expand name
711 if name is a "target:" filename.
712 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
713 to load auto-load scripts for objfiles with "target:" filenames.
715 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
717 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
718 (enum s390_vector_abi_kind): New enum.
719 (struct gdbarch_tdep)<vector_abi>: New field.
720 (s390_effective_inner_type): Add parameter min_size. Stop
721 unwrapping if the inner type is smaller than min_size.
722 (s390_function_arg_float): Adjust call to
723 s390_effective_inner_type.
724 (s390_function_arg_vector): New function.
725 (s390_function_arg_integer): Adjust comment.
726 (struct s390_arg_state)<vr>: New field.
727 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
728 arguments according to vector ABI when appropriate.
729 (s390_push_dummy_call): Initialize the argument state's field
730 'vr'. Adjust calls to s390_handle_arg.
731 (s390_register_return_value): Handle vector return values.
732 (s390_return_value): Apply the "register" return value convention
733 to a vector when appropriate.
734 (s390_gdbarch_init): Initialize tdep->vector_abi.
735 * NEWS: Announce S390 vector ABI support.
737 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
739 * s390-linux-tdep.c (s390_return_value_convention): Remove
740 function. Inline its logic...
741 (s390_return_value): ...here. Instead, move the handling of the
742 "register" return value convention...
743 (s390_register_return_value): ...here. New function.
745 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
748 (is_float_singleton): Remove function. Move the "singleton" part
750 (s390_effective_inner_type): ...here. New function.
751 (is_float_like): Remove function. Inline its logic...
752 (s390_function_arg_float): ...here.
753 (is_pointer_like, is_integer_like, is_struct_like): Remove
754 functions. Inline their logic...
755 (s390_function_arg_integer): ...here.
756 (s390_function_arg_pass_by_reference): Remove function.
757 (extend_simple_arg): Remove function.
758 (alignment_of): Remove function.
759 (struct s390_arg_state): New structure.
760 (s390_handle_arg): New function.
761 (s390_push_dummy_call): Move parameter placement logic to the new
762 function s390_handle_arg. Call it for calculating the stack area
763 sizes first, and again for actually writing the parameters.
765 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
767 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
768 false if the argument is zero.
770 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
772 * ada-lang.c (template_to_static_fixed_type): Return input type
773 when it is already fixed. Cache the input type itself when not
774 creating a static fixed copy. Make it explicit that we never
775 molestate the input type.
776 * gdbtypes.c (resolve_dynamic_struct): Reset the
777 TYPE_TARGET_TYPE field for resolved copies.
779 2015-04-27 Joel Brobecker <brobecker@adacore.com>
781 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
782 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
783 (template_to_static_fixed_type): Call ada_check_typedef only
786 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
788 * cli/cli-dump.c (srec_dump_command): Add internationalization
790 (ihex_dump_command): Likewise.
791 (tekhex_dump_command): Likewise.
792 (binary_dump_command): Likewise.
793 (binary_append_command): Likewise.
795 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
797 * cli/cli-dump.c (verilog_cmdlist): New variable.
798 (dump_verilog_memory): New function.
799 (dump_verilog_value): New function.
800 (verilog_dump_command): New function.
801 (_initialize_cli_dump): Add new commands to support verilog dump
803 * NEWS: Add entry for "dump verilog".
805 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
807 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
808 descriptive type when there is none.
810 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
812 * tui/tui-win.c (tui_async_resize_screen): Call
813 rl_resize_terminal().
815 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
817 * windows-nat.c (handle_output_debug_string): Don't change
818 current_event.dwThreadId.
819 (get_windows_debug_event): Use thread_id, rather than relying on
820 current_event.dwThreadId being changed.
822 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
824 * windows-nat.c (windows_continue): Report an error if
825 ContinueDebugEvent() fails.
827 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
829 * windows-nat.c (windows_resume): Fix misspelling in debug output.
831 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
833 * windows-nat.c (get_windows_debug_event): Replace retval with
834 thread_id throughout. Update stale comment.
836 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
838 * windows-nat.c (get_windows_debug_event): Don't use ternary
839 conditional operator.
841 2015-04-21 Pierre Muller <muller@sourceware.org>
844 p-exp.y (yylex): Reorganize code to return the matched pattern
847 2015-04-21 Gary Benson <gbenson@redhat.com>
849 * common/fileio.h (fileio_to_host_openflags): New declaration.
850 * common/fileio.c (fcntl.h): New include.
851 (fileio_to_host_openflags): New function, factored out from...
852 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
855 2015-04-21 Kevin Buettner <kevinb@redhat.com>
857 * rl78-tdep.c (RL78_SP_ADDR): Define.
858 (opc_reg_to_gdb_regnum): New static function.
859 (rl78_analyze_prologue): Recognize instructions forming slightly
860 more interesting prologues.
862 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
865 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
866 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
867 TYPE_CODE_REF types so that they are not considered as dynamic
868 depending on the referenced type.
869 (resolve_dynamic_type_internal): Likewise.
871 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
874 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
875 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
876 "top_level" parameter.
877 (resolve_dynamic_type_internal): Remove the unused "top_level"
878 parameter. Update call to is_dynamic_type_internal.
879 (is_dynamic_type): Update call to is_dynamic_type_internal.
880 (resolve_dynamic_range): Update call to
881 resolve_dynamic_type_internal.
882 (resolve_dynamic_union): Likewise.
883 (resolve_dynamic_struct): Likewise.
884 (resolve_dynamic_type): Likewise.
886 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
888 * breakpoint.c (update_dprintf_command_list): Remove duplicated
891 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
893 * reply_mig_hack.awk: Robustify parsing.
895 * reply_mig_hack.awk: Don't bother to declare an intermediate
896 function pointer variable.
898 2015-04-17 Doug Evans <dje@google.com>
900 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
901 to "exec_displacement" to avoid confusion with inner use of the name.
903 2015-04-17 Pedro Alves <palves@redhat.com>
905 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
906 if HW point of TYPE isn't supported.
908 2015-04-17 Yao Qi <yao.qi@linaro.org>
909 Pedro Alves <palves@redhat.com>
911 * target.h (target_can_use_hardware_watchpoint): Update comments.
914 2015-04-17 Gary Benson <gbenson@redhat.com>
916 * remote.c (remote_add_inferior): New argument try_open_exec.
917 If nonzero, attempt to open the inferior's executable file as
918 the main executable if no main executable is open already.
920 * NEWS: Mention that GDB now supports automatic location and
921 retrieval of executable + files from remote targets.
923 2015-04-17 Gary Benson <gbenson@redhat.com>
925 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
926 * remote.c (PACKET_qXfer_exec_file): Likewise.
927 (remote_protocol_features): Register the
928 "qXfer:exec-file:read" feature.
929 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
930 (remote_pid_to_exec_file): New function.
931 (init_remote_ops): Initialize to_pid_to_exec_file.
932 (_initialize_remote): Register new "set/show remote
933 pid-to-exec-file-packet" command.
934 * NEWS: Announce new qXfer:exec-file:read packet.
936 2015-04-17 Gary Benson <gbenson@redhat.com>
938 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
940 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
941 New function, factored out from...
942 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
944 2015-04-17 Gary Benson <gbenson@redhat.com>
946 * exec.c (solist.h): New include.
947 (exec_file_locate_attach): Prefix absolute executable
948 paths with gdb_sysroot if set.
949 * NEWS: Mention that executable paths may be prepended
952 2015-04-17 Gary Benson <gbenson@redhat.com>
954 * solist.h (exec_file_find): New declaration.
955 * solib.c (solib_find_1): New function, factored out from...
956 (solib_find): ...here.
957 (exec_file_find): New function.
959 2015-04-17 Gary Benson <gbenson@redhat.com>
961 * gdbcore.h (exec_file_locate_attach): New declaration.
962 * exec.c (exec_file_locate_attach): New function, factored
964 * infcmd.c (attach_command_post_wait): ...here.
966 2015-04-17 Mike Frysinger <vapier@gentoo.org>
968 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
970 2015-04-16 Yao Qi <yao.qi@linaro.org>
972 * infrun.c (maybe_software_singlestep): Declare.
973 (displaced_step_fixup): Call maybe_software_singlestep.
975 2015-04-15 Doug Evans <dje@google.com>
977 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
979 2015-04-15 Doug Evans <dje@google.com>
981 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
983 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
985 * python/lib/gdb/command/unwinders.py: Add parentheses.
987 2015-04-15 Yao Qi <yao.qi@linaro.org>
989 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
991 2015-04-15 Yao Qi <yao.qi@linaro.org>
993 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
995 2015-04-15 Yao Qi <yao.qi@linaro.org>
997 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
998 dsc->insn_size instead of 4.
1000 2015-04-14 Gary Benson <gbenson@redhat.com>
1002 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
1003 * minidebug.c (lzma_stat): Likewise.
1004 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
1005 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
1007 2015-04-13 Stan Shebs <stanshebs@google.com>
1009 * MAINTAINERS: Update my email address.
1011 2015-04-13 John Baldwin <jhb@FreeBSD.org>
1013 * amd64-tdep.c (amd64_target_description): New function.
1014 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
1015 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
1016 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1017 x86 extended save area.
1018 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1019 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
1020 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
1021 (_initialize_amd64fbsd_nat): Set "to_read_description" to
1022 "amd64fbsd_read_description".
1023 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
1024 (amd64fbsd_supply_xstateregset): New function.
1025 (amd64fbsd_collect_xstateregset): New function.
1026 Add "amd64fbsd_xstateregset".
1027 (amd64fbsd_iterate_over_regset_sections): New function.
1028 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
1029 "I386_FBSD_XSAVE_XCR0_OFFSET".
1030 Add "iterate_over_regset_sections" gdbarch method.
1031 Add "core_read_description" gdbarch method.
1032 * i386-tdep.c (i386_target_description): New function.
1033 * i386-tdep.h: Export i386_target_description and tdesc_i386.
1034 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
1035 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1036 x86 extended save area.
1037 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1038 * i386bsd-nat.h: Export i386bsd_xsave_len.
1039 * i386fbsd-nat.c (i386fbsd_read_description): New function.
1040 (_initialize_i386fbsd_nat): Set "to_read_description" to
1041 "i386fbsd_read_description".
1042 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
1043 (i386fbsd_core_read_description): New function.
1044 (i386fbsd_supply_xstateregset): New function.
1045 (i386fbsd_collect_xstateregset): New function.
1046 Add "i386fbsd_xstateregset".
1047 (i386fbsd_iterate_over_regset_sections): New function.
1048 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
1049 "I386_FBSD_XSAVE_XCR0_OFFSET".
1050 Add "iterate_over_regset_sections" gdbarch method.
1051 Add "core_read_description" gdbarch method.
1052 * i386fbsd-tdep.h: New file.
1054 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 * NEWS (Changes since GDB 7.9): Add removed -xdb.
1057 * breakpoint.c (command_line_is_silent): Remove xdb_commands
1059 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
1061 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
1063 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
1065 * defs.h (xdb_commands): Remove declaration.
1066 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
1067 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
1068 * infcmd.c (run_no_args_command, go_command): Remove.
1069 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
1070 * infrun.c (xdb_handle_command): Remove.
1071 (_initialize_infrun): Remove xdb_commands for lz and z.
1072 * main.c (xdb_commands): Remove variable.
1073 (captured_main): Remove "xdb" from long_options.
1074 (print_gdb_help): Remove --xdb from help.
1075 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
1076 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
1077 * stack.c (backtrace_full_command, args_plus_locals_info)
1078 (current_frame_command): Remove.
1079 (_initialize_stack): Remove xdb_commands for t, T and l.
1080 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
1081 * thread.c (_initialize_thread): Remove xdb_commands condition.
1082 * tui/tui-layout.c (tui_toggle_layout_command)
1083 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
1084 (_initialize_tui_layout): Remove xdb_commands for td and ts.
1085 * tui/tui-regs.c (tui_scroll_regs_forward_command)
1086 (tui_scroll_regs_backward_command): Remove.
1087 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
1088 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
1089 (_initialize_tui_win): Remove xdb_commands for U and w.
1090 * utils.c (pagination_on_command, pagination_off_command): Remove.
1091 (initialize_utils): Remove xdb_commands for am and sm.
1093 2015-04-10 Pedro Alves <palves@redhat.com>
1095 * infrun.c (displaced_step_fixup): Switch to the event ptid
1096 earlier. If the thread stopped for a watchpoint and the
1097 target/arch has non-continuable watchpoints, cancel the displaced
1099 (resume): Don't start a displaced step if in-line step-over info
1102 2015-04-10 Pedro Alves <palves@redhat.com>
1104 * infrun.c (displaced_step_in_progress): New function.
1105 (do_target_resume): Advise target to report all signals if
1108 2015-04-10 Pedro Alves <palves@redhat.com>
1111 * infrun.c (process_event_stop_test): Don't assume a step-resume
1112 is set if tp->stepped_breakpoint is true.
1114 2015-04-10 Yao Qi <yao.qi@linaro.org>
1116 * arm-tdep.c (install_alu_reg): Update comment.
1117 (thumb_copy_alu_reg): Remove local variable rn. Update
1118 debugging message. Use r2 instead of r1 in the modified
1121 2015-04-10 Pedro Alves <palves@redhat.com>
1124 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
1125 linux_displaced_step_location as gdbarch_displaced_step_location
1127 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1128 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1129 * linux-tdep.c (linux_displaced_step_location): New function,
1130 based on ppc_linux_displaced_step_location.
1131 * linux-tdep.h (linux_displaced_step_location): New declaration.
1132 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
1133 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
1135 (ppc_linux_init_abi): Install linux_displaced_step_location as
1136 gdbarch_displaced_step_location hook, even without Cell/B.E..
1137 (_initialize_ppc_linux_tdep): Don't install
1138 ppc_linux_inferior_created as inferior_created observer.
1139 * s390-linux-tdep.c (s390_gdbarch_init): Install
1140 linux_displaced_step_location as gdbarch_displaced_step_location
1143 2015-04-09 Gary Benson <gbenson@redhat.com>
1145 * common/common-remote-fileio.h: Rename to...
1146 * common/fileio.h: ...this. Update all references.
1147 (remote_fileio_to_fio_error): Rename to...
1148 (host_to_fileio_error): ...this.
1149 (remote_fileio_to_be): Rename to...
1150 (host_to_bigendian): ...this. Update all callers.
1151 (remote_fileio_to_fio_uint): Rename to...
1152 (host_to_fileio_uint): ...this. Update all callers.
1153 (remote_fileio_to_fio_time): Rename to...
1154 (host_to_fileio_time): ...this. Update all callers.
1155 (remote_fileio_to_fio_stat): Rename to...
1156 (host_to_fileio_stat): ...this.
1157 Update all references.
1158 * common/common-remote-fileio.c: Rename to...
1159 * common/fileio.c: ...this. Update all references.
1160 (remote_fileio_to_fio_error): Rename to...
1161 (host_to_fileio_error): ...this. Update all callers.
1162 (remote_fileio_mode_to_target): Rename to...
1163 (fileio_mode_pack): ...this. Update all callers.
1164 (remote_fileio_to_fio_mode): Rename to...
1165 (host_to_fileio_mode): ...this. Update all callers.
1166 (remote_fileio_to_fio_ulong): Rename to...
1167 (host_to_fileio_ulong): ...this. Update all callers.
1168 (remote_fileio_to_fio_stat): Rename to...
1169 (host_to_fileio_stat): ...this. Update all callers.
1171 2015-04-09 Andy Wingo <wingo@igalia.com>
1173 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
1174 (frame_functions): Bind gdbscm_frame_read_register to
1175 frame-read-register.
1176 * guile/lib/gdb.scm (frame-read-register): Export.
1178 2015-04-09 Gary Benson <gbenson@redhat.com>
1180 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
1182 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
1183 New function, factored out the named functions below.
1184 * inf-child.c (gdb/fileio.h): Remove include.
1185 (common-remote-fileio.h): New include.
1186 (inf_child_errno_to_fileio_error): Remove function. Update
1187 all callers to use remote_fileio_to_fio_error.
1188 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
1190 2015-04-09 Andy Wingo <wingo@igalia.com>
1192 * MAINTAINERS (Write After Approval): Add Andy Wingo.
1194 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1196 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
1197 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
1198 * configure: Regenerated.
1200 2015-04-09 Pedro Alves <palves@redhat.com>
1202 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
1203 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
1204 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
1205 * gnulib/import/Makefile.am: Update.
1206 * gnulib/import/Makefile.in: Update.
1207 * gnulib/import/m4/gnulib-cache.m4: Update.
1208 * gnulib/import/m4/gnulib-comp.m4: Update.
1209 * gnulib/import/m4/strtok_r.m4: New file.
1210 * gnulib/import/strtok_r.c: New file.
1212 2015-04-09 Pedro Alves <palves@redhat.com>
1214 * gnulib/update-gnulib.sh (aclocal version check): Filter out
1215 "called too early to check prototype".
1217 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
1220 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
1221 use a caching mechanism. Adjust comments and code to reflect
1222 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
1223 (cmdpy_completer_handle_brkchars): Adjust call to
1224 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
1225 (cmdpy_completer): Likewise.
1227 2015-04-08 Yao Qi <yao.qi@linaro.org>
1229 * spu-tdep.c (spu_gdbarch_init): Don't call
1230 set_gdbarch_cannot_step_breakpoint.
1232 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
1234 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
1236 2015-04-07 Pedro Alves <palves@redhat.com>
1238 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
1239 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
1240 (delete_exited_threads): New declaration.
1241 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
1242 * linux-nat.c (linux_nat_update_thread_list): New function.
1243 (linux_nat_add_target): Install it.
1244 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
1245 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
1246 (delete_exited_threads): New function.
1248 2015-04-07 Pedro Alves <pedro@codesourcery.com>
1250 * infrun.c (resume) <displaced stepping debug output>: Get the
1251 leader thread's regcache, not resume_ptid's.
1253 2015-04-06 Doug Evans <xdje42@gmail.com>
1255 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
1257 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
1258 Include symbol domain in debugging output.
1260 2015-04-06 Pedro Alves <palves@redhat.com>
1261 Bernd Edlinger <bernd.edlinger@hotmail.de>
1263 * configure.ac: Remove the mingw32-specific stub-termcap.o
1264 fallback, and instead fallback to the stub termcap on all hosts.
1265 * configure: Regenerate.
1266 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
1269 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1271 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1272 "top_level" parameter.
1273 (resolve_dynamic_type_internal): Remove the unused "top_level"
1274 parameter. Update call to is_dynamic_type_internal.
1275 (is_dynamic_type): Update call to is_dynamic_type_internal.
1276 (resolve_dynamic_range): Update call to
1277 resolve_dynamic_type_internal.
1278 (resolve_dynamic_union): Likewise.
1279 (resolve_dynamic_struct): Likewise.
1280 (resolve_dynamic_type): Likewise.
1282 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1284 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1285 TYPE_CODE_REF types so that they are not considered as dynamic
1286 depending on the referenced type.
1287 (resolve_dynamic_type_internal): Likewise.
1289 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
1291 * Makefile.in (top_srcdir): New.
1292 * configure: Regenerated.
1294 2015-04-02 Gary Benson <gbenson@redhat.com>
1296 * NEWS: Announce the new default sysroot of "target:".
1298 2015-04-02 Gary Benson <gbenson@redhat.com>
1300 * main.c (captured_main): Set gdb_sysroot to "target:"
1301 if not otherwise set.
1303 2015-04-02 Gary Benson <gbenson@redhat.com>
1305 * exec.c (exec_file_attach): Support "target:" filenames.
1307 2015-04-02 Gary Benson <gbenson@redhat.com>
1309 * solib.c (solib_find): Strip "target:" prefix from sysroot
1310 if accessing local files.
1312 2015-04-02 Gary Benson <gbenson@redhat.com>
1314 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
1315 checks and error messages.
1317 2015-04-02 Gary Benson <gbenson@redhat.com>
1319 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
1320 (remote_filename_p): Remove declaration.
1321 (remote_bfd_open): Likewise.
1322 * remote.c (remote_bfd_iovec_open): Remove function.
1323 (remote_bfd_iovec_close): Likewise.
1324 (remote_bfd_iovec_pread): Likewise.
1325 (remote_bfd_iovec_stat): Likewise.
1326 (remote_filename_p): Likewise.
1327 (remote_bfd_open): Likewise.
1328 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
1329 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
1330 (gdb_bfd_open_maybe_remote): Remove function.
1331 (symfile_bfd_open): Replace remote filename check with
1332 target filename check.
1333 (reread_symbols): Use gdb_bfd_open.
1334 * build-id.c (gdbcore.h): New include.
1335 (build_id_to_debug_bfd): Use gdb_bfd_open.
1336 * infcmd.c (attach_command_post_wait): Remove remote filename
1338 * solib.c (solib_find): Replace remote-specific handling with
1339 target-specific handling. Update comments where necessary.
1340 (solib_bfd_open): Replace remote-specific handling with
1341 target-specific handling.
1342 (gdb_sysroot_changed): New function.
1343 (_initialize_solib): Call the above when gdb_sysroot changes.
1344 * windows-tdep.c (gdbcore.h): New include.
1345 (windows_xfer_shared_library): Use gdb_bfd_open.
1347 2015-04-02 Gary Benson <gbenson@redhat.com>
1349 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
1350 (is_target_filename): New declaration.
1351 (gdb_bfd_has_target_filename): Likewise.
1352 (gdb_bfd_open): Update documentation comment.
1353 * gdb_bfd.c (target.h): New include.
1354 (gdb/fileio.h): Likewise.
1355 (is_target_filename): New function.
1356 (gdb_bfd_has_target_filename): Likewise.
1357 (fileio_errno_to_host): Likewise.
1358 (gdb_bfd_iovec_fileio_open): Likewise.
1359 (gdb_bfd_iovec_fileio_pread): Likewise.
1360 (gdb_bfd_iovec_fileio_close): Likewise.
1361 (gdb_bfd_iovec_fileio_fstat): Likewise.
1362 (gdb_bfd_open): Use target fileio to access paths prefixed
1363 with "target:" where necessary.
1365 2015-04-02 Gary Benson <gbenson@redhat.com>
1367 * target.h (struct target_ops) <to_filesystem_is_local>:
1369 (target_filesystem_is_local): New macro.
1370 * target-delegates.c: Regenerate.
1371 * remote.c (remote_filesystem_is_local): New function.
1372 (init_remote_ops): Initialize to_filesystem_is_local.
1374 2015-04-02 Gary Benson <gbenson@redhat.com>
1376 * target.h (struct target_ops) <to_fileio_fstat>: New field.
1377 (target_fileio_fstat): New declaration.
1378 * target.c (target_fileio_fstat): New function.
1379 * inf-child.c (inf_child_fileio_fstat): Likewise.
1380 (inf_child_target): Initialize to_fileio_fstat.
1381 * remote.c (init_remote_ops): Likewise.
1383 2015-04-01 Sasha Smundak <asmundak@google.com>
1385 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
1386 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
1387 (py-unwind.o): New recipe.
1388 * NEWS: mention Python frame unwinding.
1389 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
1390 gdb/unwinder.py and gdb/command/unwinder.py
1391 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
1393 (execute_unwinders): New function.
1394 * python/lib/gdb/command/unwinders.py: New file.
1395 * python/lib/gdb/unwinder.py: New file.
1396 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
1397 (objfpy_dealloc): Decrement frame_unwinders reference count.
1398 (objfpy_initialize): Create frame_unwinders list.
1399 (objfpy_get_frame_unwinders): New function.
1400 (objfpy_set_frame_unwinders): Ditto.
1401 (objfile_getset): Add frame_unwinders attribute to Objfile.
1402 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
1403 (pspy_dealloc): Decrement frame_unwinders reference count.
1404 (pspy_initialize): Create frame_unwinders list.
1405 (pspy_get_frame_unwinders): New function.
1406 (pspy_set_frame_unwinders): Ditto.
1407 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
1408 * python/py-unwind.c: New file.
1409 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
1410 (objpy_get_frame_unwinders): New prototype.
1411 (gdbpy_initialize_unwind): New prototype.
1412 * python/python.c (gdbpy_apply_type_printers): Call
1413 gdbpy_initialize_unwind.
1415 2015-04-01 Pedro Alves <palves@redhat.com>
1417 * infrun.c (resume): Check currently_stepping after clearing
1418 stepped_breakpoint, not before.
1420 2015-04-01 Pedro Alves <palves@redhat.com>
1422 * infrun.c (print_target_wait_results): Print all the ptid
1425 2015-04-01 Pedro Alves <palves@redhat.com>
1427 * infrun.c (keep_going): Also discard cleanups if inserting
1430 2015-04-01 Pedro Alves <palves@redhat.com>
1432 * infrun.c (wait_for_inferior): Install the
1433 finish_thread_state_cleanup cleanup across the whole function, not
1434 just around handle_inferior_event.
1436 2015-04-01 Pedro Alves <palves@redhat.com>
1438 * infrun.c (resume) <step past permanent breakpoint>: Use
1441 2015-04-01 Pedro Alves <palves@redhat.com>
1443 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
1445 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
1447 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
1449 2015-04-01 Pedro Alves <palves@redhat.com>
1451 * linux-thread-db.c (record_thread): Readd the thread to gdb's
1452 list if it was marked exited.
1454 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1456 * configure: Regenerated.
1458 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1459 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 Oleg Nesterov <oleg@redhat.com>
1463 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
1464 New enum identifying the various options of the coredump_filter
1466 (struct smaps_vmflags): New struct.
1467 (use_coredump_filter): New variable.
1468 (decode_vmflags): New function.
1469 (mapping_is_anonymous_p): Likewise.
1470 (dump_mapping_p): Likewise.
1471 (linux_find_memory_regions_full): New variables
1472 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
1473 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
1474 parsing of its information. Implement memory mapping filtering
1475 based on its contents.
1476 (show_use_coredump_filter): New function.
1477 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
1478 * NEWS: Mention the possibility of using the
1479 '/proc/PID/coredump_filter' file when generating a corefile.
1480 Mention new command 'set use-coredump-filter'.
1482 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1484 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
1485 read_memory_unsigned_integer.
1487 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1489 * Makefile.in (ZLIB): New.
1490 (ZLIBINC): Likewise.
1491 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
1492 (CLIBS): Add $(ZLIB).
1493 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
1495 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1496 * top.c (print_gdb_configuration): Remove --with-zlib and
1498 * config.in: Regenerated.
1499 * configure: Likewise.
1501 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
1503 * NEWS: Mention info os cpus support.
1504 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
1505 (struct osdata_type): Add cpus entry, reorder the entries in
1508 2015-03-31 Matthias Klose <doko@ubuntu.com>
1510 * compile/compile.c (compile_to_object): Allow triplets with or
1513 2015-03-30 Doug Evans <dje@google.com>
1516 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
1517 klass in VAR_DOMAIN.
1519 2015-03-30 Gary Benson <gbenson@redhat.com>
1521 * remote.c (remote_mourn_1): Remove function. Update all callers
1522 to use remote_mourn.
1523 (extended_remote_mourn_1): Remove function. Update all callers
1524 to use extended_remote_mourn.
1525 (extended_remote_attach_1): Remove function. Update all callers
1526 to use extended_remote_attach.
1528 2015-03-28 James Bowman <james.bowman@ftdichip.com>
1530 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1531 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1532 (ALLDEPFILES): Add ft32-tdep.c.
1533 * configure.tgt: Add FT32 entry.
1534 * ft32-tdep.c: New file, FT32 target-dependent code.
1535 * ft32-tdep.h: New file, FT32 target-dependent code.
1537 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1540 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1542 * printcmd.c (print_command_1): Move expr variable scope.
1544 2015-03-27 Joel Brobecker <brobecker@adacore.com>
1546 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1548 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1550 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1553 2015-03-26 Joel Brobecker <brobecker@adacore.com>
1555 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1556 exception raised while parsing the probe arguments.
1557 Force parsing to be done using the C language parser.
1558 * expression.h (parse_expression_with_language): Declare.
1559 * parse.c (parse_expression_with_language): New function.
1561 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
1563 * MAINTAINERS (Write After Approval): Add "Jon Turney".
1565 2015-03-26 Andy Wingo <wingo@igalia.com>
1568 * dwarf2read.c (struct partial_die_info): Add has_const_value
1570 (add_partial_symbol): Don't punt on symbols that have const_value
1572 (read_partial_die): Detect DW_AT_const_value.
1574 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 * printcmd.c (print_command_1): Move expr variable scope.
1579 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1582 * printcmd.c (validate_format): Make the parameter cmdname const.
1584 2015-03-26 Don Breazeal <donb@codesourcery.com>
1586 * remote.c (_initialize_remote): Update comment.
1588 2015-03-26 Pedro Alves <palves@redhat.com>
1589 Jon TURNEY <jon.turney@dronecode.org.uk>
1591 * coffread.c (coff_symfile_read): When constructing the name of an
1592 import stub symbol from import symbol for amd64, only skip the
1593 char after _imp_ if the target is underscored (like i386) and the
1594 char is indeed the target's leading char.
1596 2015-03-25 Pedro Alves <palves@redhat.com>
1598 * target.h <to_async>: Replace 'callback' and 'context' parameters
1599 with boolean 'enable' parameter.
1600 (target_async): Replace CALLBACK and CONTEXT parameters with
1601 boolean ENABLE parameter.
1602 * inf-loop.c (inferior_event_handler): Adjust.
1603 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1604 (linux_nat_resume): Adjust.
1605 (async_client_callback, async_client_context): Delete.
1606 (handle_target_event): Call inferior_event_handler directly.
1607 (linux_nat_async): Replace 'callback' and 'context' parameters
1608 with boolean 'enable' parameter. Adjust. Remove references to
1609 async_client_callback and async_client_context.
1610 (linux_nat_close): Adjust.
1611 * record-btrace.c (record_btrace_async): Replace 'callback' and
1612 'context' parameters with boolean 'enable' parameter. Adjust.
1613 (record_btrace_resume): Adjust.
1614 * record-full.c (record_full_async): Replace 'callback' and
1615 'context' parameters with boolean 'enable' parameter. Adjust.
1616 (record_full_resume, record_full_core_resume): Adjust.
1617 * remote.c (struct remote_state) <async_client_callback,
1618 async_client_context>: Delete fields.
1619 (remote_start_remote, extended_remote_attach_1, remote_resume)
1620 (extended_remote_create_inferior): Adjust.
1621 (remote_async_serial_handler): Call inferior_event_handler
1623 (remote_async): Replace 'callback' and 'context' parameters with
1624 boolean 'enable' parameter. Adjust.
1625 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1627 * target-delegates.c: Regenerate.
1629 2015-03-25 Gary Benson <gbenson@redhat.com>
1630 Pedro Alves <palves@redhat.com>
1632 * target.c (fileio_ft_t): New typedef, define object vector.
1633 (fileio_fhandles): New static variable.
1634 (is_closed_fileio_fh): New macro.
1635 (lowest_closed_fd): New static variable.
1636 (acquire_fileio_fd): New function.
1637 (release_fileio_fd): Likewise.
1638 (fileio_fd_to_fh): New macro.
1639 (target_fileio_open): Wrap the file descriptor on success.
1640 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1641 (target_fileio_pread): Likewise.
1642 (target_fileio_close): Likewise.
1644 2015-03-24 Pedro Alves <palves@redhat.com>
1646 * thread.c (thread_apply_all_command): Take exited threads into
1649 2015-03-24 Pedro Alves <palves@redhat.com>
1651 * infrun.c (resume, proceed): Mention
1652 switch_back_to_stepped_thread, not switch_back_to_stepping.
1654 2015-03-24 Pedro Alves <palves@redhat.com>
1656 * infrun.c (user_visible_resume_ptid): Rewrite going from
1657 most-locked to unlocked instead of the opposite. Move comment ...
1658 * infrun.h (user_visible_resume_ptid): ... here.
1660 2015-03-24 Pedro Alves <palves@redhat.com>
1662 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1663 to resume the event lwp. Use the lwp's ptid instead of the passed
1664 in (maybe wildcard) ptid.
1665 (stop_wait_callback): Tweak debug log output.
1666 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1668 (linux_nat_filter_event): In debug output, distinguish a
1669 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1670 before trying to resume the lwp.
1672 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1674 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1675 pointer indirection.
1676 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1677 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1679 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1681 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1682 Renames DYN_ATTR_DATA_LOCATION.
1683 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1684 DYN_ATTR_DATA_LOCATION.
1685 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1686 instead of DYN_ATTR_DATA_LOCATION.
1688 2015-03-24 Pedro Alves <palves@redhat.com>
1690 * breakpoint.c (until_break_command): Adjust call to proceed.
1691 * gdbthread.h (struct thread_control_state) <stepping_command>:
1693 * infcall.c (run_inferior_call): Adjust call to proceed.
1694 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1695 Adjust calls to proceed.
1696 (set_step_frame): Set the current thread's step_start_function
1698 (step_once): Adjust calls to proceed.
1699 (jump_command, signal_command, until_next_command)
1700 (finish_backward, finish_forward, proceed_after_attach_callback)
1701 (attach_command_post_wait): Adjust calls to proceed.
1702 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1703 (do_target_resume): New function, factored out from ...
1704 (resume): ... here. Remove 'step' parameter. Instead, check
1705 currently_stepping to determine whether the thread should be
1707 (proceed): Remove 'step' parameter and don't set the thread's
1708 step_start_function here. Adjust call to 'resume'.
1709 (handle_inferior_event): Adjust calls to 'resume'.
1710 (switch_back_to_stepped_thread): Use do_target_resume instead of
1712 (keep_going): Adjust calls to 'resume'.
1713 * infrun.h (proceed): Remove 'step' parameter.
1715 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1717 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1719 2015-03-24 Pedro Alves <palves@redhat.com>
1721 * gdbthread.h (struct thread_control_state) <stepping_command>:
1723 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1724 the thread's stepping_command field.
1725 * infrun.c (resume): Check the thread's stepping_command flag to
1726 determine which threads should be resumed. Rename 'entry_step'
1728 (clear_proceed_status_thread): Clear 'stepping_command'.
1729 (schedlock_applies): Change parameter type to struct thread_info
1731 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1732 (switch_back_to_stepped_thread): Adjust calls to
1733 'schedlock_applies'.
1734 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1736 2015-03-24 Pedro Alves <palves@redhat.com>
1738 * infrun.c (step_start_function): Delete and ...
1739 * gdbthread.h (struct thread_control_state) <step_start_function>:
1740 ... now a field here.
1741 * infrun.c (clear_proceed_status_thread): Clear the thread's
1742 step_start_function.
1743 (proceed, process_event_stop_test, print_stop_event): Adjust.
1745 2015-03-24 Pedro Alves <palves@redhat.com>
1747 * infrun.c (proceed): No longer handle negative step.
1749 2015-03-24 Gary Benson <gbenson@redhat.com>
1751 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1752 (x86_linux_prepare_to_resume): Likewise.
1753 * x86-linux-nat.c (x86_linux_new_thread):
1754 Moved to nat/x86-linux.c.
1755 (x86_linux_prepare_to_resume): Likewise.
1756 * nat/x86-linux.c (x86_linux_new_thread): New function.
1757 (x86_linux_prepare_to_resume): Likewise.
1759 2015-03-24 Gary Benson <gbenson@redhat.com>
1761 * nat/x86-linux-dregs.h: New file.
1762 * nat/x86-linux-dregs.c: Likewise.
1763 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1764 (x86-linux-dregs.o): New rule.
1765 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1766 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1767 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1768 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1769 (x86_linux_dr_get): Likewise.
1770 (x86_linux_dr_set): Likewise.
1771 (x86_linux_dr_get_addr): Likewise.
1772 (x86_linux_dr_get_control): Likewise.
1773 (x86_linux_dr_get_status): Likewise.
1774 (update_debug_registers_callback): Likewise.
1775 (x86_linux_dr_set_control): Likewise.
1776 (x86_linux_dr_set_addr): Likewise.
1777 (x86_linux_update_debug_registers): Likewise.
1779 2015-03-24 Gary Benson <gbenson@redhat.com>
1781 * x86-linux-nat.c (x86_linux_update_debug_registers):
1782 New function, factored out from...
1783 (x86_linux_prepare_to_resume): ...this.
1785 2015-03-24 Gary Benson <gbenson@redhat.com>
1787 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1788 (x86_linux_dr_set): Likewise.
1789 (x86_linux_dr_get_addr): Likewise.
1790 (x86_linux_dr_get_control): Likewise.
1791 (x86_linux_dr_get_status): Likewise.
1792 (update_debug_registers_callback): Likewise.
1793 (x86_linux_dr_set_control): Likewise.
1794 (x86_linux_dr_set_addr): Likewise.
1795 (x86_linux_prepare_to_resume): Likewise.
1796 (x86_linux_new_thread): Likewise.
1798 2015-03-24 Gary Benson <gbenson@redhat.com>
1800 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1801 (x86_linux_new_thread): Rename argument.
1803 2015-03-24 Gary Benson <gbenson@redhat.com>
1805 * nat/x86-linux.h: New file.
1806 * nat/x86-linux.c: Likewise.
1807 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1808 (x86-linux.o): New rule.
1809 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1810 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1811 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1812 (lwp_set_arch_private_info): New declaration.
1813 (lwp_arch_private_info): Likewise.
1814 * linux-nat.c (lwp_set_arch_private_info): New function.
1815 (lwp_arch_private_info): Likewise.
1816 * x86-linux-nat.c: Include nat/x86-linux.h.
1817 (arch_lwp_info): Removed structure.
1818 (update_debug_registers_callback):
1819 Use lwp_set_debug_registers_changed.
1820 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1821 and lwp_set_debug_registers_changed.
1822 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1824 2015-03-24 Gary Benson <gbenson@redhat.com>
1826 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1827 (lwp_is_stopped): Likewise.
1828 (lwp_stop_reason): Likewise.
1829 * linux-nat.c (ptid_of_lwp): New function.
1830 (lwp_is_stopped): Likewise.
1831 (lwp_is_stopped_by_watchpoint): Likewise.
1832 * x86-linux-nat.c (update_debug_registers_callback):
1834 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1837 2015-03-24 Gary Benson <gbenson@redhat.com>
1839 * linux-nat.h (linux_stop_lwp): Move declaration to...
1840 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1842 2015-03-24 Gary Benson <gbenson@redhat.com>
1844 * linux-nat.h: Include nat/linux-nat.h.
1845 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1846 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1847 (iterate_over_lwps_ftype): New typedef.
1848 (iterate_over_lwps): New declaration.
1849 * linux-nat.h (iterate_over_lwps): Update comment. Use
1850 iterate_over_lwps_ftype. Update callback return value check.
1852 2015-03-24 Gary Benson <gbenson@redhat.com>
1854 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1855 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1857 2015-03-24 Gary Benson <gbenson@redhat.com>
1859 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1860 * linux-nat.c (current_lwp_ptid): New function.
1861 * x86-linux-nat.c: Include nat/linux-nat.h.
1862 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1863 (x86_linux_dr_get_control): Likewise.
1864 (x86_linux_dr_get_status): Likewise.
1865 (x86_linux_dr_set_control): Likewise.
1866 (x86_linux_dr_set_addr): Likewise.
1868 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1870 PR breakpoints/16466
1871 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1873 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1875 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1876 * ser-unix.c (hardwire_setparity): Likewise.
1878 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1880 * NEWS: Mention set/show serial parity command.
1881 * monitor.c (monitor_open): Call serial_setparity.
1882 * remote.c (remote_open_1): Likewise.
1883 * ser-base.c (ser_base_serparity): New function.
1884 * ser-base.h (ser_base_setparity): Add declaration.
1885 * ser-go32.c (dos_ops): Set "setparity" field.
1886 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1888 (ser_windows_setparity): New function.
1889 (hardwire_ops): Add ser_windows_setparity.
1890 (tty_ops): Add NULL for setparity field.
1891 (pipe_ops): Add ser_base_setparity.
1892 (tcp_ops): Likewise.
1893 * ser-pipe.c (pipe_ops): Likewise.
1894 * ser-tcp.c (tcp_ops): Likewise.
1895 * ser-unix.c (hardwire_setparity): Add declaration.
1896 (hardwire_raw): Don't reset PARENB flag.
1897 (hardwire_setparity): New function.
1898 (hardwire_ops): Add hardwire_setparity.
1899 * serial.c (serial_setparity): New function.
1900 (serial_parity): New global.
1901 (parity_none, parity_odd, parity_even, parity_enums, parity):
1903 (set_parity): New function.
1904 (_initialize_serial): Add set/show serial parity commands.
1905 * serial.h (GDBPARITY_NONE): Define.
1906 (GDBPARITY_ODD): Define.
1907 (GDBPARITY_EVEN): Define.
1908 (serial_setparity) Add declaration.
1909 (struct serial_ops): Add setparity field.
1910 * target.h (serial_parity): Add declaration.
1912 2015-03-23 Keith Seitz <keiths@redhat.com>
1914 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1916 2015-03-23 Keith Seitz <keiths@redhat.com>
1918 * breakpoint.c (parse_breakpoint_sals): Use
1919 linespec_lexer_lex_keyword to ascertain if the user specified
1921 * linespec.c [IF_KEYWORD_INDEX]: Define.
1922 (linespec_lexer_lex_keyword): Export.
1923 (struct ls_parser) <keyword_ok>: Remove.
1924 A keyword is only a keyword if not followed by another keyword.
1925 (linespec_lexer_lex_one): Remove keyword_ok handling.
1926 Add comment explaining why the parsing stream is not advanced
1927 when a keyword is seen.
1928 (parse_linespec): Remove parser->keyword_ok.
1929 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1931 2015-03-23 Keith Seitz <keiths@redhat.com>
1934 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1935 if we find a static method with DW_AT_vtable_elem_location.
1937 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1939 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1940 before the second loop, to avoid undefined behavior. Reported by
1941 Anton Blanchard <anton@samba.org>.
1943 2015-03-20 Keven Boell <keven.boell@intel.com>
1945 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1946 data_location usage to linked list.
1947 (resolve_dynamic_type_internal): Adapt data_location to
1949 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1950 (copy_type_recursive, copy_type): Add copy of linked list.
1951 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1952 (struct dynamic_prop_list): New struct.
1953 * dwarf2read.c (set_die_type): Set data_location data.
1955 2015-03-20 Pedro Alves <palves@redhat.com>
1957 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1958 inner block and make it const.
1959 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1961 2015-03-20 Pedro Alves <palves@redhat.com>
1963 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1964 * breakpoint.h (set_breakpoint_condition): Update declaration.
1966 2015-03-20 Pedro Alves <palves@redhat.com>
1968 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1970 2015-03-20 Pedro Alves <palves@redhat.com>
1972 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1974 2015-03-20 Pedro Alves <palves@redhat.com>
1976 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1978 2015-03-20 Pedro Alves <palves@redhat.com>
1980 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1981 (nto_init_solib_absolute_prefix): Likewise.
1983 2015-03-20 Pedro Alves <palves@redhat.com>
1985 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1986 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1988 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1990 * config/djgpp/README: Remove gdb.hp.
1992 2015-03-20 Yao Qi <yao.qi@linaro.org>
1994 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1995 set_gdbarch_cannot_step_breakpoint.
1997 2015-03-19 Pedro Alves <palves@redhat.com>
1999 * linux-nat.c (linux_resume_one_lwp): Rename to ...
2000 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
2001 instead call perror_with_name.
2002 (check_ptrace_stopped_lwp_gone): New function.
2003 (linux_resume_one_lwp): Reimplement as wrapper around
2004 linux_resume_one_lwp_throw that swallows errors if the LWP is
2006 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
2007 swallows errors if the LWP is gone. Use
2008 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
2010 2015-03-19 Pedro Alves <palves@redhat.com>
2012 * linux-nat.c (status_callback): Return early if the LWP has no
2015 2015-03-19 Pedro Alves <palves@redhat.com>
2017 * linux-nat.c (select_event_lwp_callback): Update comment to no
2018 longer mention SIGTRAP.
2020 2015-03-18 Tristan Gingold <gingold@adacore.com>
2022 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
2023 redirection code to ...
2024 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
2025 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
2027 2015-03-18 Gary Benson <gbenson@redhat.com>
2029 (remote_protocol_features): Remove the "vFile:fstat" feature.
2030 (remote_hostio_fstat): Probe for "vFile:fstat" support.
2032 2015-03-11 Yao Qi <yao.qi@linaro.org>
2035 * aarch64-linux-tdep.c: Include xml-syscall.h
2036 (aarch64_linux_get_syscall_number): New function.
2037 (aarch64_linux_init_abi): Call
2038 set_gdbarch_get_syscall_number.
2039 * syscalls/aarch64-linux.xml: New file.
2041 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2043 * ser-base.h (ser_base_setstopbits): Change second argument name
2044 from "rate" to "num".
2046 2015-03-17 Gary Benson <gbenson@redhat.com>
2047 Luke Allardyce <lukeallardyce@gmail.com>
2050 * common/common-remote-fileio.h (sys/stat.h): New include.
2051 (stuct stat): Remove forward declaration.
2053 2015-03-16 John Baldwin <jhb@FreeBSD.org>
2055 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
2056 before writing core register notes.
2058 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2059 Pedro Alves <palves@redhat.com>
2061 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
2062 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
2063 (tgoto): Wrap with extern "C".
2065 2015-03-16 Pedro Alves <palves@redhat.com>
2066 Yuanhui Zhang <asmwarrior@gmail.com>
2068 * stub-termcap.c (tputs): Change prototype.
2070 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2071 Pedro Alves <palves@redhat.com>
2073 * windows-nat.c (struct thread_info_struct): Rename to ...
2074 (struct windows_thread_info_struct): ... this.
2075 (thread_info): Rename to ...
2076 (windows_thread_info): ... this.
2079 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 Pedro Alves <palves@redhat.com>
2082 * NEWS: New Removed targets and native configurations.
2084 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2087 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
2088 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
2089 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
2090 ia64-hpux-tdep.h, solib-ia64-hpux.h.
2091 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
2092 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
2093 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
2095 * config/ia64/hpux.mh: Remove file.
2096 * config/pa/hpux.mh: Remove file.
2097 * configure: Rebuilt.
2098 * configure.ac (dlgetmodinfo, somread.o): Remove.
2099 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2100 (ia64-*-hpux*): Remove its float format exception.
2101 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2102 * hppa-hpux-nat.c: Remove file.
2103 * hppa-hpux-tdep.c: Remove file.
2104 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
2105 Move them here from hppa-tdep.h
2106 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
2107 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
2108 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
2109 Move them to hppa-tdep.c.
2110 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
2112 * ia64-hpux-nat.c: Remove file.
2113 * ia64-hpux-tdep.c: Remove file.
2114 * ia64-hpux-tdep.h: Remove file.
2115 * inf-ttrace.c: Remove file.
2116 * inf-ttrace.h: Remove file.
2117 * solib-ia64-hpux.c: Remove file.
2118 * solib-ia64-hpux.h: Remove file.
2119 * solib-pa64.c: Remove file.
2120 * solib-pa64.h: Remove file.
2121 * solib-som.c: Remove file.
2122 * solib-som.h: Remove file.
2123 * somread.c: Remove file.
2125 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2127 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
2128 * config.in: Regenerate.
2129 * configure: Regenerate.
2130 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
2132 (fbsd_find_memory_regions): Use kinfo_getvmmap to
2133 enumerate memory regions if present.
2135 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2137 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
2138 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
2140 (i386fbsd_sigtramp_p): Likewise.
2142 2015-03-12 John Baldwin <jhb@FreeBSD.org>
2144 * MAINTAINERS (Write After Approval): Add John Baldwin.
2146 2015-03-12 Gary Benson <gbenson@redhat.com>
2148 * solib.c (_initialize_solib): Make "set/show sysroot" use
2149 add_setshow_optional_filename_cmd so it can be restored to
2150 empty after being set.
2152 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2154 * Makefile.in (SFILES): New source break-catch-syscall.c.
2155 (COMMON_OBS): New object break-catch-syscall.o.
2156 * break-catch-syscall.c: New file.
2157 * breakpoint.c: Remove inclusion of "xml-syscall.h".
2158 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
2159 (struct syscall_catchpoint): Likewise.
2160 (dtor_catch_syscall): Likewise.
2161 (catch_syscall_inferior_data): Likewise.
2162 (struct catch_syscall_inferior_data): Likewise.
2163 (get_catch_syscall_inferior_data): Likewise.
2164 (catch_syscall_inferior_data_cleanup): Likewise.
2165 (insert_catch_syscall): Likewise.
2166 (remove_catch_syscall): Likewise.
2167 (breakpoint_hit_catch_syscall): Likewise.
2168 (print_it_catch_syscall): Likewise.
2169 (print_one_catch_syscall): Likewise.
2170 (print_mention_catch_syscall): Likewise.
2171 (print_recreate_catch_syscall): Likewise.
2172 (catch_syscall_breakpoint_ops): Likewise.
2173 (syscall_catchpoint_p): Likewise.
2174 (create_syscall_event_catchpoint): Likewise.
2175 (catch_syscall_split_args): Likewise.
2176 (catch_syscall_command_1): Likewise.
2177 (is_syscall_catchpoint_enabled): Likewise.
2178 (catch_syscall_enabled): Likewise.
2179 (catching_syscall_number): Likewise.
2180 (catch_syscall_completer): Likewise.
2181 (clear_syscall_counts): Likewise.
2182 (initialize_breakpoint_ops): Move initialization of syscall
2183 catchpoints to break-catch-syscall.c.
2184 (_initialize_breakpoint): Move code related to syscall catchpoints
2185 to break-catch-syscall.c.
2187 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2189 * breakpoint.c (breakpoint_find_if): New function.
2190 * breakpoint.h (breakpoint_find_if): New prototype.
2192 2015-03-11 Gary Benson <gbenson@redhat.com>
2194 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
2195 * remote-fileio.c (remote_fileio_to_host_uint): New function.
2196 (remote_fileio_to_host_ulong): Likewise.
2197 (remote_fileio_to_host_mode): Likewise.
2198 (remote_fileio_to_host_time): Likewise.
2199 (remote_fileio_to_host_stat): Likewise.
2200 * remote.c (PACKET_vFile_fstat): New enum value.
2201 (remote_protocol_features): Register the "vFile:fstat" feature.
2202 (remote_hostio_fstat): New function.
2203 (remote_bfd_iovec_stat): Use the above.
2204 (_initialize_remote): Register new "set/show remote
2205 hostio-fstat-packet" command.
2206 * symfile.c (separate_debug_file_exists): Update comment.
2207 * NEWS: Announce new vFile:fstat packet.
2209 2015-03-11 Gary Benson <gbenson@redhat.com>
2211 * common/common-remote-fileio.h: New file.
2212 * common/common-remote-fileio.c: Likewise.
2213 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
2214 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
2215 (COMMON_OBS): Add common-remote-fileio.o.
2216 (common-remote-fileio.o): New rule.
2217 * remote-fileio.h (common-remote-fileio.h): New include.
2218 * remote-fileio.c (gdb/fileio.h): Do not include.
2219 (remote_fileio_to_be): Moved to common-remote-fileio.h.
2220 (remote_fileio_to_fio_uint): Likewise.
2221 (remote_fileio_to_fio_time): Likewise.
2222 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
2223 (remote_fileio_to_fio_mode): Likewise.
2224 (remote_fileio_to_fio_ulong): Likewise.
2225 (remote_fileio_to_fio_stat): Likewise.
2227 2015-03-11 Andy Wingo <wingo@igalia.com>
2229 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
2230 we were checking the cached type, not the cached dynamic type.
2232 2015-03-11 Andy Wingo <wingo@igalia.com>
2234 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
2235 other strings, as these are on the GC'd heap, and will be
2236 collected along with the smob.
2238 2015-03-11 Andy Wingo <wingo@igalia.com>
2240 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
2241 (objfile_functions): Bind gdbscm_objfile_progspace to
2243 * guile/lib/gdb.scm: Add objfile-progspace to exports.
2245 2015-03-11 Andy Wingo <wingo@igalia.com>
2247 * guile/guile.c (_initialize_guile): Disable automatic
2248 finalization, if Guile offers us that possibility.
2249 * guile/guile.c (call_initialize_gdb_module):
2250 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
2251 finalizers in appropriate places.
2252 * configure.ac (AC_TRY_LIBGUILE): Add a check for
2253 scm_set_automatic_finalization_enabled.
2254 * configure: Regenerated.
2256 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2258 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
2261 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2263 * s390-linux-nat.c (struct arch_lwp_info): New.
2264 (s390_fix_watch_points): Rename to...
2265 (s390_prepare_to_resume): ...this. Skip the PER info update
2266 unless the watch points have changed.
2267 (s390_refresh_per_info, s390_new_thread): New functions.
2268 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
2269 s390_fix_watch_points.
2270 (s390_remove_watchpoint): Likewise.
2271 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
2272 Register s390_prepare_to_resume.
2274 2015-03-09 Pedro Alves <palves@redhat.com>
2277 2015-03-07 Pedro Alves <palves@redhat.com>
2278 * common/gdb_socket.h: New file.
2279 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2281 (net_open): Use union gdb_sockaddr_u.
2283 2015-03-07 Pedro Alves <palves@redhat.com>
2285 * configure.ac (build_warnings): Move -Wmissing-prototypes
2286 -Wdeclaration-after-statement -Wmissing-parameter-type
2287 -Wold-style-declaration -Wold-style-definition to the C-specific
2289 * configure: Regenerate.
2291 2015-03-07 Pedro Alves <palves@redhat.com>
2293 * common/gdb_socket.h: New file.
2294 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2296 (net_open): Use union gdb_sockaddr_u.
2298 2015-03-07 Pedro Alves <palves@redhat.com>
2300 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
2301 (exceptions_state_mc_action_iter)
2302 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2304 [__cplusplus] (try_scope_depth): New global.
2305 [__cplusplus] (exception_try_scope_entry)
2306 (exception_try_scope_exit, gdb_exception_sliced_copy)
2307 (exception_rethrow): New functions.
2308 (throw_exception): In C++ mode, throw
2309 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
2310 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
2311 (throw_it): In C++ mode, use try_scope_depth.
2312 * common/common-exceptions.h [!__cplusplus]
2313 (exceptions_state_mc_action_iter)
2314 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2316 [__cplusplus] (exception_try_scope_entry)
2317 (exception_try_scope_exit, exception_rethrow): Declare.
2318 [__cplusplus] (struct exception_try_scope): New struct.
2319 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
2321 (struct gdb_exception_RETURN_MASK_ALL)
2322 (struct gdb_exception_RETURN_MASK_ERROR)
2323 (struct gdb_exception_RETURN_MASK_QUIT): New types.
2325 2015-03-07 Pedro Alves <palves@redhat.com>
2327 * main.c (handle_command_errors): Remove volatile qualifier from
2330 2015-03-07 Pedro Alves <palves@redhat.com>
2332 * breakpoint.c (save_breakpoints): Adjust to avoid code between
2334 * gdbtypes.c (safe_parse_type): Remove empty line.
2335 (types_deeply_equal):
2336 * guile/scm-frame.c (gdbscm_frame_name):
2337 * linux-thread-db.c (find_new_threads_once):
2338 * python/py-breakpoint.c (bppy_get_commands):
2339 * record-btrace.c (record_btrace_insert_breakpoint)
2340 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
2341 (record_btrace_start_replaying): Adjust to avoid code between TRY
2344 2015-03-07 Pedro Alves <palves@redhat.com>
2346 * common/common-exceptions.c (struct catcher) <exception>: No
2347 longer a pointer to volatile exception. Now an exception value.
2348 <mask>: Delete field.
2349 (exceptions_state_mc_init): Remove all parameters. Adjust.
2350 (exceptions_state_mc): No longer pop the catcher here.
2351 (exceptions_state_mc_catch): New function.
2352 (throw_exception): Adjust.
2353 * common/common-exceptions.h (exceptions_state_mc_init): Remove
2355 (exceptions_state_mc_catch): Declare.
2356 (TRY_CATCH): Rename to ...
2357 (TRY): ... this. Remove EXCEPTION and MASK parameters.
2358 (CATCH, END_CATCH): New.
2359 All callers adjusted.
2361 2015-03-07 Tom Tromey <tromey@redhat.com>
2363 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
2365 2015-03-07 Pedro Alves <palves@redhat.com>
2367 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2368 (amd64_epilogue_frame_cache): Normal exception handling code.
2369 * break-catch-throw.c (check_status_exception_catchpoint)
2370 (re_set_exception_catchpoint): Ditto.
2371 * cli/cli-interp.c (safe_execute_command):
2372 * cli/cli-script.c (script_from_file): Ditto.
2373 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
2375 * compile/compile-object-run.c (compile_object_run): Ditto.
2376 * cp-abi.c (baseclass_offset): Ditto.
2377 * cp-valprint.c (cp_print_value): Ditto.
2378 * exceptions.c (catch_exceptions_with_msg):
2379 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
2380 * frame.c (get_frame_address_in_block_if_available): Ditto.
2381 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2382 (i386_sigtramp_frame_cache): Ditto.
2383 * infcmd.c (post_create_inferior): Ditto.
2384 * linespec.c (parse_linespec, find_linespec_symbols):
2385 * p-valprint.c (pascal_object_print_value): Ditto.
2386 * parse.c (parse_expression_for_completion): Ditto.
2387 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2388 * remote.c (remote_get_noisy_reply): Ditto.
2389 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
2390 * solib-svr4.c (solib_svr4_r_map): Ditto.
2392 2015-03-06 Gary Benson <gbenson@redhat.com>
2394 * common/common-utils.h (startswith): New inline function.
2395 All places where this logic was used updated to use the above.
2397 2015-03-05 Pedro Alves <palves@redhat.com>
2400 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
2401 after reading the breakpoint's shadow memory.
2403 2015-03-05 Mark Kettenis <kettenis@gnu.org>
2405 * hppabsd-nat.c: Remove file.
2406 * hppaobsd-nat.c: New file.
2407 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
2409 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
2412 2015-03-04 Pedro Alves <palves@redhat.com>
2414 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2415 (target_decr_pc_after_break): Delete declaration.
2416 * target.c (default_target_decr_pc_after_break)
2417 (target_decr_pc_after_break): Delete.
2418 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
2419 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
2420 * linux-thread-db.c (check_event): Likewise.
2421 * infrun.c (adjust_pc_after_break): Likewise.
2422 * darwin-nat.c (cancel_breakpoint): Likewise.
2423 * aix-thread.c (aix_thread_wait): Likewise.
2424 * target-delegates.c: Regenerate.
2426 2015-03-04 Pedro Alves <palves@redhat.com>
2428 * linux-nat.c (save_sigtrap): Check for breakpoints before
2429 checking watchpoints.
2430 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
2431 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
2432 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
2433 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
2434 (linux_nat_stopped_by_sw_breakpoint)
2435 (linux_nat_supports_stopped_by_sw_breakpoint)
2436 (linux_nat_stopped_by_hw_breakpoint)
2437 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
2438 (linux_nat_wait_1): Don't re-increment the PC if relying on
2439 SIGTRAP's siginfo->si_code.
2440 (linux_nat_add_target): Install new target methods.
2441 * linux-thread-db.c (check_event): Don't account for breakpoint PC
2442 offset if the target already adjusted the PC.
2443 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
2444 (GDB_ARCH_TRAP_BRKPT): New.
2445 (TRAP_HWBKPT): Define if not already defined.
2447 2015-03-04 Pedro Alves <palves@redhat.com>
2449 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
2450 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
2452 <stop_reason>: New field.
2453 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
2454 (packet_set_cmd_state): New function.
2455 (remote_protocol_features): Register the "swbreak" and "hwbreak"
2457 (remote_query_supported): If not disabled with the corresponding
2458 "set remote foo-packet" command, report support for the swbreak
2459 and hwbreak features.
2460 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
2462 <stop_reason>: New field.
2463 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
2464 (remote_wait_as): Adjust.
2465 (remote_stopped_by_sw_breakpoint)
2466 (remote_supports_stopped_by_sw_breakpoint)
2467 (remote_stopped_by_hw_breakpoint)
2468 (remote_supports_stopped_by_hw_breakpoint): New functions.
2469 (remote_stopped_by_watchpoint): New function.
2470 (init_remote_ops): Install them.
2471 (_initialize_remote): Register new "set/show remote
2472 swbreak-feature-packet" and "set/show remote
2473 swbreak-feature-packet" commands.
2475 2015-03-04 Pedro Alves <palves@redhat.com>
2477 * btrace.h: Include target/waitstatus.h.
2478 (struct btrace_thread_info) <stop_reason>: New field.
2479 * record-btrace.c (record_btrace_step_thread): Use
2480 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2481 (record_btrace_decr_pc_after_break): Delete.
2482 (record_btrace_stopped_by_sw_breakpoint)
2483 (record_btrace_supports_stopped_by_sw_breakpoint)
2484 (record_btrace_stopped_by_hw_breakpoint)
2485 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
2486 (init_record_btrace_ops): Install them.
2487 * record-full.c (record_full_hw_watchpoint): Delete and replace
2489 (record_full_stop_reason): ... this throughout.
2490 (record_full_exec_insn): Adjust.
2491 (record_full_wait_1): Adjust. No longer re-increment the PC.
2492 (record_full_wait_1): Adjust. Use
2493 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2494 (record_full_stopped_by_watchpoint): Adjust.
2495 (record_full_stopped_by_sw_breakpoint)
2496 (record_full_supports_stopped_by_sw_breakpoint)
2497 (record_full_supports_stopped_by_sw_breakpoint)
2498 (record_full_stopped_by_hw_breakpoint)
2499 (record_full_supports_stopped_by_hw_breakpoint): New functions.
2500 (init_record_full_ops, init_record_full_core_ops): Install them.
2501 * record.c (record_check_stopped_by_breakpoint): New function.
2502 * record.h: Include target/waitstatus.h.
2503 (record_check_stopped_by_breakpoint): New declaration.
2505 2015-03-04 Pedro Alves <palves@redhat.com>
2507 enum lwp_stop_reason -> enum target_stop_reason
2508 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
2509 (linux_nat_stopped_by_watchpoint, status_callback)
2510 (linux_nat_wait_1): Adjust.
2511 * linux-nat.h (enum lwp_stop_reason): Delete.
2512 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
2513 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2514 * target/waitstatus.h (enum target_stop_reason): New.
2516 2015-03-04 Pedro Alves <palves@redhat.com>
2518 * breakpoint.c (need_moribund_for_location_type): New function.
2519 (bpstat_stop_status): Don't skipping checking moribund locations
2520 of breakpoint types which the target tell caused a stop.
2521 (program_breakpoint_here_p): New function, factored out from ...
2522 (bp_loc_is_permanent): ... this.
2523 (update_global_location_list): Don't create a moribund location if
2524 the target supports reporting stops of the type of the removed
2526 * breakpoint.h (program_breakpoint_here_p): New declaration.
2527 * infrun.c (adjust_pc_after_break): Return early if the target has
2528 already adjusted the PC. Add comments.
2529 (handle_signal_stop): If nothing explains a signal, and the target
2530 tells us the stop was caused by a software breakpoint, check if
2531 there's a breakpoint instruction in the memory. If so, adjust the
2532 PC before presenting the stop to the user. Otherwise, ignore the
2533 trap. If nothing explains a signal, and the target tells us the
2534 stop was caused by a hardware breakpoint, ignore the trap.
2535 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2536 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2537 to_supports_stopped_by_hw_breakpoint>: New fields.
2538 (target_stopped_by_sw_breakpoint)
2539 (target_supports_stopped_by_sw_breakpoint)
2540 (target_stopped_by_hw_breakpoint)
2541 (target_supports_stopped_by_hw_breakpoint): Define.
2542 * target-delegates.c: Regenerate.
2544 2015-03-04 Pedro Alves <palves@redhat.com>
2546 * infrun.c (follow_fork_inferior): Use the whole of the
2547 inferior_ptid and pending_follow.related_pid ptids instead of
2548 building ptids from the process components. Adjust verbose output
2549 to use target_pid_to_str.
2550 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2551 inferior_ptid and pending_follow.related_pid ptids instead of
2552 building ptids from the process components.
2554 2015-03-04 Mark Kettenis <kettenis@gnu.org>
2556 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2557 (inf_ptrace_insert_fork_catchpoint): New function.
2558 (inf_ptrace_remove_fork_catchpoint): New function.
2559 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2561 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2563 * s390-linux-tdep.c (s390_register_name): Return empty string
2564 instead of NULL for registers that shouldn't be visible.
2566 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2568 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
2569 XML file for 64-bit targets.
2571 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
2573 * target.h (find_default_create_inferior): Remove declaration.
2574 (find_default_attach): Likewise.
2576 2015-03-03 Pedro Alves <palves@redhat.com>
2578 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
2579 Use ptid_get_pid to get the overall process id when resuming all
2582 2015-03-03 Pedro Alves <palves@redhat.com>
2584 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2585 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2586 * inf-ptrace.c (get_ptrace_pid): New function.
2587 (inf_ptrace_resume): Use it.
2588 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2591 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2593 * nat/linux-btrace.c: Include sys/utsname.h.
2594 (linux_determine_kernel_ptr_bits): New.
2595 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2596 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2599 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2601 * btrace.c (ftrace_update_function): Treat return as tailcall for
2602 "_dl_runtime_resolve".
2604 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2606 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2607 * btrace.c (ftrace_debug): Do not print the line range.
2608 (ftrace_skip_file, ftrace_update_lines): Remove.
2609 (ftrace_new_function): Remove lbegin and lend initialization.
2610 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2611 * record-btrace.c (btrace_compute_src_line_range): New.
2612 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2614 2015-03-02 Pedro Alves <palves@redhat.com>
2616 * infrun.c (follow_exec): Delete all threads of the process except
2617 the event thread. Extended comments.
2619 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2621 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2623 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2625 * utils.h: Remove <stdbool.h> #include.
2626 (producer_is_gcc): Change return type to "int".
2627 * utils.c (producer_is_gcc): Change return type to int.
2628 Return 1 instead of true, and 0 instead of false.
2629 Adjust function documentation accordingly.
2631 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2634 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2636 (s390_linux_store_inferior_registers): Likewise.
2637 (s390_get_hwcap): Remove function. Embed its logic...
2638 (s390_read_description): ...here. Yield a target description with
2639 vector registers if applicable.
2640 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2641 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2642 "features/s390x-tevx-linux64.c".
2643 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2644 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2645 for "GNU/Linux-specific registers".
2646 (s390_dwarf_reg_r0l): New enum value.
2647 (s390_dwarf_reg_to_regnum): Support vector registers.
2648 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2649 of GPR lower halves.
2650 (regnum_is_vxr_full): New function.
2651 (s390_register_name): New function.
2652 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2653 f0-f15 and v0l-v15l.
2654 (s390_pseudo_register_type): Likewise.
2655 (s390_pseudo_register_read): Likewise.
2656 (s390_pseudo_register_write): Likewise.
2657 (s390_value_from_register): Account for the fact that values are
2658 placed left-justified in vector registers.
2659 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2660 the vector reggroup and omit them from the general reggroup.
2661 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2662 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2663 (s390_iterate_over_regset_sections): Add iterations for the two
2665 (s390_core_read_description): Yield a target description with
2666 vector registers if applicable.
2667 (s390_gdbarch_init): Handle target descriptions with vector
2668 registers. Add "register_name" gdbarch method.
2669 (_initialize_s390_tdep): Call new tdesc initialization functions.
2670 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2671 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2672 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2673 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2674 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2675 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2676 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2677 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2678 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2679 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2680 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2681 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2682 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2683 (S390_NUM_REGS): Adjust value.
2684 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2685 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2686 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2687 * NEWS: Announce S/390 vector register support.
2689 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2691 * features/s390-tevx-linux64.xml: New file.
2692 * features/s390-vx-linux64.xml: New file.
2693 * features/s390-vx.xml: New file.
2694 * features/s390x-tevx-linux64.xml: New file.
2695 * features/s390x-vx-linux64.xml: New file.
2696 * features/Makefile (WHICH): Add s390-vx-linux64,
2697 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2698 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2699 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2701 * features/s390-tevx-linux64.c: New generated file.
2702 * features/s390-vx-linux64.c: Likewise.
2703 * features/s390x-tevx-linux64.c: Likewise.
2704 * features/s390x-vx-linux64.c: Likewise.
2705 * regformats/s390-tevx-linux64.dat: Likewise.
2706 * regformats/s390-vx-linux64.dat: Likewise.
2707 * regformats/s390x-tevx-linux64.dat: Likewise.
2708 * regformats/s390x-vx-linux64.dat: Likewise.
2710 2015-02-28 Doug Evans <xdje42@gmail.com>
2712 * symtab.h (struct symtab) <next>: Fix comment.
2714 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2716 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2719 2015-02-27 Pedro Alves <palves@redhat.com>
2721 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2723 2015-02-27 Pedro Alves <palves@redhat.com>
2725 * common/common-exceptions.h (exception_none): Declare.
2726 * common/common-exceptions.c (exception_none): Moved from
2728 (exceptions_state_mc_init): Use exception_none.
2729 * exceptions.c (exception_none): Move to
2730 common/common-exceptions.c.
2731 * exceptions.h (exception_none): Move to
2732 common/common-exceptions.h.
2734 2015-02-27 Pedro Alves <palves@redhat.com>
2736 * main.c (catch_command_errors, catch_command_errors_const):
2737 Remove 'mask' argument. Adjust.
2738 (captured_main): Adjust callers.
2740 2015-02-27 Pedro Alves <palves@redhat.com>
2742 * python/python-internal.h: Include "extension-priv.h".
2744 2015-02-27 Pedro Alves <palves@redhat.com>
2746 * breakpoint.h (enum print_stop_action): Move further up in the
2749 2015-02-27 Pedro Alves <palves@redhat.com>
2751 * gdbarch.sh: Include regcache.h.
2752 * gdbarch.h: Regenerate.
2754 2015-02-27 Pedro Alves <palves@redhat.com>
2756 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2757 Remove duplicate const.
2758 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2761 2015-02-27 Pedro Alves <palves@redhat.com>
2763 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2764 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2765 * features/feature_to_c.sh: Tag the generated xml_builtin array
2766 with extern const in C++ mode.
2768 2015-02-27 Tom Tromey <tromey@redhat.com>
2770 * minidebug.c (struct lzma_stream): Rename to ...
2771 (struct gdb_lzma_stream): ... this.
2772 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2774 2015-02-27 Pedro Alves <palves@redhat.com>
2776 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2778 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2779 (mi_cmd_stack_list_variables): Use it.
2781 2015-02-27 Pedro Alves <palves@redhat.com>
2783 * x86-linux-nat.c (u_debugreg_offset): New function.
2784 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2786 2015-02-27 Pedro Alves <palves@redhat.com>
2788 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2790 Include break-common.h.
2792 2015-02-27 Tom Tromey <tromey@redhat.com>
2793 Pedro Alves <palves@redhat.com>
2795 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2796 local used to iterate over enums.
2797 * completer.c (signal_completer): Likewise.
2798 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2799 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2800 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2801 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2802 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2803 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2804 * tui-wingeneral.c (tui_refresh_all): Likewise.
2806 2015-02-27 Pedro Alves <palves@redhat.com>
2808 * target.h: Include "infrun.h".
2810 2015-02-27 Pedro Alves <palves@redhat.com>
2812 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2814 2015-02-27 Pedro Alves <palves@redhat.com>
2816 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2818 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2820 2015-02-27 Pedro Alves <palves@redhat.com>
2822 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2823 cli_mld_erase_entire_line, and make it extern "C".
2824 * common/common-defs.h (EXTERN_C): New.
2825 * completer.c (_rl_completion_prefix_display_length)
2826 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2827 out of gdb_display_match_list_1.
2828 (_rl_qsort_string_compare): Move declaration out of
2829 gdb_display_match_list_1, and make it extern "C".
2830 * defs.h (re_comp): Use EXTERN_C.
2831 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2832 and make it extern "C".
2833 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2834 and make it extern "C".
2835 (main): Move declaration out of maintenance_set_profile_cmd.
2836 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2839 2015-02-27 Pedro Alves <palves@redhat.com>
2841 * python/python.c (GdbMethods): Rename to ...
2842 (python_GdbMethods): ... this and make extern.
2843 (GdbModuleDef): Rename to ...
2844 (python_GdbModuleDef): ... this and make extern.
2846 2015-02-27 Pedro Alves <palves@redhat.com>
2848 * record-btrace.c (set_record_btrace_cmdlist)
2849 (show_record_btrace_cmdlist): Remove redefinitions.
2851 2015-02-27 Tom Tromey <tromey@redhat.com>
2852 Pedro Alves <palves@redhat.com>
2854 * dwarf2-frame.c (enum cfa_how_kind, struct
2855 dwarf2_frame_state_reg_info): Move out of struct
2857 * dwarf2read.c (struct tu_stats): Move out of struct
2859 (struct file_entry): Move out of struct line_header.
2860 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2861 typedef_field_list): Move out of struct field_info.
2862 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2863 Move out of struct dynamic_prop.
2864 (union type_owner, union field_location, struct field, struct
2865 range_bounds, union type_specific): Move out of struct main_type.
2866 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2867 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2868 (struct call_site_target, union call_site_parameter_u, struct
2869 call_site_parameter): Move out of struct call_site.
2870 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2872 (enum srcdest_kind): Move out of struct srcdest.
2873 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2874 * prologue-value.h (enum prologue_value_kind): Move out of struct
2876 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2878 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2879 out of struct field_info.
2880 * symfile.h (struct other_sections): Move out of struct
2882 * symtab.c (struct symbol_cache_slot): Move out struct
2884 * target-descriptions.c (enum tdesc_type_kind): Move out of
2885 typedef struct tdesc_type.
2886 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2887 struct tui_line_or_address.
2888 * value.c (enum internalvar_kind, union internalvar_data): Move
2889 out of struct internalvar.
2890 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2893 2015-02-27 Tom Tromey <tromey@redhat.com>
2894 Pedro Alves <palves@redhat.com>
2896 Rename symbols whose names are reserved C++ keywords throughout.
2898 2015-02-27 Pedro Alves <palves@redhat.com>
2900 * Makefile.in (COMPILER): New, get it from autoconf.
2901 (COMPILE.pre, CC_LD): Use COMPILER.
2902 (CXX): Get from autoconf instead.
2903 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2904 * acinclude.m4: Include build-with-cxx.m4.
2905 * build-with-cxx.m4: New file.
2906 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2907 Disable -Werror by default if building in C++ mode.
2908 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2909 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2910 Run supported-warning-flags tests with the C++ compiler.
2911 Save/restore CXXFLAGS too.
2912 * configure: Regenerate.
2914 2015-02-27 Pedro Alves <palves@redhat.com>
2916 * libiberty.m4: New file.
2917 * acinclude.m4: Include libiberty.m4.
2918 * configure.ac: Call libiberty_INIT.
2919 * config.in, configure: Regenerate.
2921 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2923 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2924 31-bit targets, but 64-bit targets as well.
2925 (s390_gnu_triplet_regexp): New function.
2926 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2927 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2930 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2932 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2933 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2934 from CONTEXT_DEBUGGER.
2936 2015-02-26 Doug Evans <dje@google.com>
2938 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2940 (set_type_vptr_fieldno): Ditto.
2941 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2942 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2944 2015-02-26 Pedro Alves <palves@redhat.com>
2946 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2947 * complaints.c (vcomplaint): Pass argument FMT directly to
2948 printf-like functions instead of complaint->fmt.
2949 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2950 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2951 * compile/compile-loc2c.c (pushf, unary, binary): Add
2953 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2955 (BINARY): Pass string literal as format string to 'binary'.
2956 * compile/compile-object-load.c (link_callbacks_einfo): Add
2958 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2960 2015-02-26 Pedro Alves <palves@redhat.com>
2962 * windows-termcap.c: Rename to ...
2963 * stub-termcap.c: ... this. Adjust header line.
2964 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2966 * configure: Regenerate.
2967 * configure.ac: Refer to stub-termcap.o instead of
2969 * gdb_curses.h: Mention stub-termcap.c instead of
2972 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2975 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2977 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2979 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2981 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2984 bfd_canonicalize_symtab.
2986 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2988 * amd64fbsd-nat.c: Include sys/user.h.
2989 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2990 instead of KERN_PS_STRINGS to locate the signal trampoline.
2991 * i386fbsd-nat.c: Include sys/user.h.
2992 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2993 instead of KERN_PS_STRINGS to locate the signal trampoline.
2994 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2995 (amd64fbsd_sigtramp_p): New.
2996 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2997 longer set default values.
2998 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2999 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
3000 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
3001 (i386fbsd_freebsd4_sigtramp_start)
3002 (i386fbsd_freebsd4_sigtramp_middle)
3003 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
3004 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
3005 (i386fbsd_sigtramp_p): New.
3006 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
3007 longer set default values.
3008 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
3010 2015-02-25 John Baldwin <jhb@freebsd.org>
3012 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
3013 get_frame_register instead of frame_unwind_register_unsigned.
3015 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * compile/compile-c-support.c (c_compute_program): Change // comment.
3019 * compile/compile-object-load.c (setup_sections): Change // comment.
3021 2015-02-26 Joel Brobecker <brobecker@adacore.com>
3024 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
3026 2015-02-23 Pedro Alves <palves@redhat.com>
3028 * remote.c (skip_to_semicolon): New function.
3029 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
3030 special case the stop reasons that look like hex numbers
3031 upfront. Instead handle real register numbers after matching
3032 all the known stop reasons.
3034 2015-02-21 Doug Evans <dje@google.com>
3036 PR c++/17976, symtab/17821
3037 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
3038 is_in_anonymous. All callers updated.
3039 (find_symbol_in_baseclass): Ditto.
3040 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
3041 for symbols in an anonymous namespace.
3042 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
3043 DW_AT_name directly.
3044 (dwarf2_name): Convert missing namespace name to
3045 CP_ANONYMOUS_NAMESPACE_STR.
3047 2015-02-20 Pedro Alves <palves@redhat.com>
3049 * linux-nat.c (linux_handle_extended_wait): Call
3050 thread_db_notice_clone whenever a new clone LWP is detected.
3051 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
3053 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
3054 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
3055 (linux_unstop_all_lwps): Declare.
3056 * linux-thread-db.c (struct thread_get_info_inout): Delete.
3057 (thread_get_info_callback): Delete.
3058 (thread_from_lwp): Use td_thr_get_info and record_thread.
3059 (thread_db_attach_lwp): Delete.
3060 (thread_db_notice_clone): New function.
3061 (try_thread_db_load_1): If /proc is mounted and shows the
3062 process'es task list, walk over all LWPs and call thread_from_lwp
3063 instead of relying on td_ta_thr_iter.
3064 (attach_thread): Don't call check_thread_signals here. Split the
3065 tail part of the function (which adds the thread to the core GDB
3067 (record_thread): ... this function. Call check_thread_signals
3069 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
3070 call thread_from_lwp.
3071 (thread_db_update_thread_list): Rename to ...
3072 (thread_db_update_thread_list_org): ... this.
3073 (thread_db_update_thread_list): New function.
3074 (thread_db_find_thread_from_tid): Delete.
3075 (thread_db_get_ada_task_ptid): Simplify.
3076 * nat/linux-procfs.c: Include <sys/stat.h>.
3077 (linux_proc_task_list_dir_exists): New function.
3078 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
3080 2015-02-20 Pedro Alves <palves@redhat.com>
3082 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
3083 main LWP. Handle the case of waitpid returning 0 if we're already
3084 attached to the LWP. Don't set the LWP's last_resume_kind to
3085 resume_stop if we already knew about the LWP.
3086 (linux_nat_filter_event): Add debug logs.
3088 2015-02-20 Pedro Alves <palves@redhat.com>
3090 * target.h (forward_target_decr_pc_after_break): Delete
3093 2015-02-20 Pedro Alves <palves@redhat.com>
3096 * linux-thread-db.c (thread_get_info_callback): Return early if
3097 the thread's lwp id is -1.
3099 2015-02-20 Joel Brobecker <brobecker@adacore.com>
3103 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
3105 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
3106 (dtrace_get_probes) Change type of variable 'dof'.
3108 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
3110 PR breakpoints/16812
3111 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
3112 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
3113 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
3115 2015-02-19 David Taylor <dtaylor@emc.com>
3117 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
3119 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
3121 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
3123 (tui_putc): Don't call tui_handle_resize_during_io.
3124 (tui_getc): Likewise.
3125 (tui_mld_getc): Likewise.
3126 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
3127 (tui_sigwinch_token): New static variable.
3128 (tui_initialize_win): Adjust documentation. Set
3130 (tui_async_resize_screen): New asynchronous callback.
3131 (tui_sigwinch_handler): Adjust documentation. Asynchronously
3132 invoke tui_async_resize_screen.
3134 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
3136 * configure: Regenerated.
3137 * configure.ac: Use GDB_AC_TRANSFORM.
3138 * Makefile.in (aclocal_m4_deps): Added transform.m4.
3139 * acinclude.m4: sinclude transform.m4.
3140 * transform.m4: New file.
3141 (GDB_AC_TRANSFORM): New macro.
3143 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3145 * NEWS: Announce the support for DTrace SDT probes.
3147 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3149 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
3150 (amd64_dtrace_parse_probe_argument): New function.
3151 (amd64_dtrace_probe_is_enabled): Likewise.
3152 (amd64_dtrace_enable_probe): Likewise.
3153 (amd64_dtrace_disable_probe): Likewise.
3154 (amd64_linux_init_abi): Register the
3155 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
3156 `gdbarch_dtrace_disable_probe' and
3157 `gdbarch_dtrace_probe_is_enabled' hooks.
3158 (amd64_dtrace_disabled_probe_sequence_1): New constant.
3159 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
3160 (amd64_dtrace_enable_probe_sequence): Likewise.
3161 (amd64_dtrace_disable_probe_sequence): Likewise.
3163 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3165 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
3166 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
3167 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
3169 * Makefile.in (SFILES): dtrace-probe.c added.
3170 * configure: Regenerate.
3171 * dtrace-probe.c: New file.
3172 (SHT_SUNW_dof): New constant.
3173 (dtrace_probe_type): New enum.
3174 (dtrace_probe_arg): New struct.
3175 (dtrace_probe_arg_s): New typedef.
3176 (struct dtrace_probe_enabler): New struct.
3177 (dtrace_probe_enabler_s): New typedef.
3178 (dtrace_probe): New struct.
3179 (dtrace_probe_is_linespec): New function.
3180 (dtrace_dof_sect_type): New enum.
3181 (dtrace_dof_dofh_ident): Likewise.
3182 (dtrace_dof_encoding): Likewise.
3183 (DTRACE_DOF_ENCODE_LSB): Likewise.
3184 (DTRACE_DOF_ENCODE_MSB): Likewise.
3185 (dtrace_dof_hdr): New struct.
3186 (dtrace_dof_sect): Likewise.
3187 (dtrace_dof_provider): Likewise.
3188 (dtrace_dof_probe): Likewise.
3189 (DOF_UINT): New macro.
3190 (DTRACE_DOF_PTR): Likewise.
3191 (DTRACE_DOF_SECT): Likewise.
3192 (dtrace_process_dof_probe): New function.
3193 (dtrace_process_dof): Likewise.
3194 (dtrace_build_arg_exprs): Likewise.
3195 (dtrace_get_arg): Likewise.
3196 (dtrace_get_probes): Likewise.
3197 (dtrace_get_probe_argument_count): Likewise.
3198 (dtrace_can_evaluate_probe_arguments): Likewise.
3199 (dtrace_evaluate_probe_argument): Likewise.
3200 (dtrace_compile_to_ax): Likewise.
3201 (dtrace_probe_destroy): Likewise.
3202 (dtrace_gen_info_probes_table_header): Likewise.
3203 (dtrace_gen_info_probes_table_values): Likewise.
3204 (dtrace_probe_is_enabled): Likewise.
3205 (dtrace_probe_ops): New variable.
3206 (info_probes_dtrace_command): New function.
3207 (_initialize_dtrace_probe): Likewise.
3208 (dtrace_type_name): Likewise.
3210 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3212 * gdbarch.sh (dtrace_parse_probe_argument): New.
3213 (dtrace_probe_is_enabled): Likewise.
3214 (dtrace_enable_probe): Likewise.
3215 (dtrace_disable_probe): Likewise.
3216 * gdbarch.c: Regenerate.
3217 * gdbarch.h: Regenerate.
3219 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3221 * stap-probe.c (stap_probe_ops): Add NULLs in the static
3222 stap_probe_ops for `enable_probe' and `disable_probe'.
3223 * probe.c (enable_probes_command): New function.
3224 (disable_probes_command): Likewise.
3225 (_initialize_probe): Define the cli commands `enable probe' and
3227 (parse_probe_linespec): New function.
3228 (info_probes_for_ops): Use parse_probe_linespec.
3229 * probe.h (probe_ops): New hooks `enable_probe' and
3232 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3234 * probe.c (compute_probe_arg): Moved from stap-probe.c
3235 (compile_probe_arg): Likewise.
3236 (probe_funcs): Likewise.
3237 * stap-probe.c (compute_probe_arg): Moved to probe.c.
3238 (compile_probe_arg): Likewise.
3239 (probe_funcs): Likewise.
3241 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3243 * probe.c (print_ui_out_not_applicables): New function.
3244 (exists_probe_with_pops): Likewise.
3245 (info_probes_for_ops): Do not include column headers for probe
3246 types for which no probe has been actually found on any object.
3247 Also invoke `print_ui_out_not_applicables' in order to match the
3248 column rows with the header when probes of several types are
3250 Print the "Type" column.
3251 * probe.h (probe_ops): Added a new probe operation `type_name'.
3252 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
3253 (stap_type_name): New function.
3255 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
3257 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
3258 (key_is_command_char): Delete.
3260 2015-02-17 Pedro Alves <palves@redhat.com>
3262 * tui/tui.c (tui_enable): Resize windows before anything
3263 might show a window.
3265 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
3268 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
3269 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
3271 * aarch64-tdep.h (tdesc_aarch64): Declare.
3273 2015-02-12 Mark Wielaard <mjw@redhat.com>
3275 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
3277 2015-02-13 Doug Evans <dje@google.com>
3279 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
3280 anonymous_namespace to is_in_anonymous for consistency with the rest
3282 (cp_lookup_bare_symbol): Fix typo in comment.
3283 (cp_search_static_and_baseclasses): Ditto.
3284 (search_symbol_list): Use vertical space in comment better.
3285 (reset_directive_searched): Ditto. Fix typo.
3286 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
3288 2015-02-13 Yao Qi <yao.qi@arm.com>
3290 * MAINTAINERS: Update my email address.
3292 2015-02-12 Doug Evans <dje@google.com>
3294 * symtab.c (completion_list_add_name): Fix memory leak.
3296 2015-02-12 Doug Evans <dje@google.com>
3298 * completer.c (complete_line): Remove incorrect comment.
3300 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3302 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
3303 (py_print_frame): Use RETURN_MASK_ERROR.
3305 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3307 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
3308 function comment. Wrap all function that can throw in cleanups.
3309 (gdbpy_apply_frame_filter): Wrap all function that can throw in
3312 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 * python/py-framefilter.c (py_print_frame): Substitute goto error.
3315 Remove the error label.
3317 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3319 * python/py-framefilter.c (py_print_frame): Put conditional code paths
3320 with goto first, indent the former else codepath left. Put variable
3321 'elided' to a new inner block.
3323 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
3327 2015-02-11 Pedro Alves <palves@redhat.com>
3329 * xcoffread.c (within_function): Delete.
3331 2015-02-11 Tom Tromey <tromey@redhat.com>
3332 Pedro Alves <palves@redhat.com>
3334 * breakpoint.c (base_breakpoint_ops): Delete.
3335 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
3336 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
3337 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
3338 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
3339 * python/py-arch.c (arch_object_type): Make extern.
3340 * python/py-block.c (block_syms_iterator_object_type): Make extern.
3341 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
3342 * python/py-cmd.c (cmdpy_object_type): Make extern.
3343 * python/py-continueevent.c (continue_event_object_type)
3344 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
3345 parameter. Update all callers.
3346 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
3347 * python/py-exitedevent.c (exited_event_object_type): Make extern.
3348 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
3349 * python/py-function.c (fnpy_object_type): Make extern.
3350 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
3351 * python/py-infevents.c (call_pre_event_object_type)
3352 (inferior_call_post_event_object_type).
3353 (memory_changed_event_object_type): Make extern.
3354 * python/py-infthread.c (thread_object_type): Make extern.
3355 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
3356 * python/py-linetable.c (linetable_entry_object_type)
3357 (linetable_object_type, ltpy_iterator_object_type): Make extern.
3358 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3359 (clear_objfiles_event_object_type): Make extern.
3360 * python/py-objfile.c (objfile_object_type): Make extern.
3361 * python/py-param.c (parmpy_object_type): Make extern.
3362 * python/py-progspace.c (pspace_object_type): Make extern.
3363 * python/py-signalevent.c (signal_event_object_type): Make extern.
3364 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
3365 * python/py-type.c (type_object_type, field_object_type)
3366 (type_iterator_object_type): Make extern.
3367 * python/python.c (python_extension_script_ops)
3368 (python_extension_ops): Make extern.
3369 * stap-probe.c (stap_probe_ops): Make extern.
3371 2015-02-11 Pedro Alves <pedro@codesourcery.com>
3373 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
3374 because the event thread is not the current thread.
3376 2015-02-11 Doug Evans <xdje42@gmail.com>
3378 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
3379 been initialized yet, return NULL.
3381 2015-02-11 Doug Evans <dje@google.com>
3383 * symfile.h (new_symfile_objfile): Delete.
3384 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
3385 All callers updated.
3387 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3389 * tui/tui-io.c (tui_handle_resize_during_io): Call
3390 tui_update_gdb_sizes() after resizing the screen.
3391 * tui/tui.c (tui_enable): Resize the terminal before
3392 calling tui_update_gdb_sizes().
3394 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3396 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
3397 line before printing a newline.
3399 2015-02-11 Mark Wielaard <mjw@redhat.com>
3401 * utils.c (producer_is_gcc): Return true or false.
3403 2015-02-10 Mark Wielaard <mjw@redhat.com>
3405 * utils.h (producer_is_gcc): Change return type to bool. Add major
3407 * utils.c (producer_is_gcc): Likewise.
3408 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
3409 * dwarf2read.c (check_producer): Likewise.
3411 2015-02-10 Pedro Alves <palves@redhat.com>
3413 * infrun.c (displaced_step_fixup): Switch to the event thread
3414 before calling gdbarch_displaced_step_fixup.
3416 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
3418 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
3420 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
3422 * ada-varobj.c (ada_name_of_child): Constify parent.
3423 (ada_path_expr_of_child): Same.
3424 (ada_value_of_child): Same.
3425 (ada_type_of_child): Same.
3426 * c-varobj.c (c_is_path_expr_parent): Same.
3427 (c_describe_child): Same.
3428 (c_name_of_child): Same.
3429 (c_value_of_child): Same.
3430 (c_type_of_child): Same.
3431 (cplus_number_of_children): Same.
3432 (cplus_describe_child): Constify var.
3433 (cplus_name_of_child): Constify parent.
3434 (cplus_value_of_child): Same.
3435 (cplus_type_of_child): Same.
3436 * jv-varobj.c (java_name_of_child): Same.
3437 (java_value_of_child): Same.
3438 (java_type_of_child): Same.
3439 * varobj.c (value_of_child): Same.
3440 (varobj_default_is_path_expr_parent): Constify var, parent and return
3442 (varobj_get_path_expr): Constify var, modify path_expr through
3444 (install_new_value): Constify parent.
3445 (value_of_child): Constify parent.
3446 * varobj.h (struct varobj): Constify parent.
3447 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
3449 (varobj_get_path_expr): Constify var.
3450 (varobj_get_path_expr_parent): Constify var and return value.
3452 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
3454 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
3455 (arm_prologue_this_id): Move PC and SP limit checks to
3456 arm_prologue_unwind_stop_reason.
3457 (arm_prologue_unwind) <stop_reason> : Set to
3458 arm_prologue_unwind_stop_reason.
3460 2015-02-09 Mark Wielaard <mjw@redhat.com>
3462 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
3463 DW_LANG_Fortran08 as language_fortran.
3465 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
3468 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
3469 of pointer against char.
3471 2015-02-09 Mark Wielaard <mjw@redhat.com>
3473 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
3474 (c_type_print_modifier): Likewise.
3475 * dwarf2read.c (read_tag_atomic_type): New function.
3476 (read_type_die_1): Handle DW_TAG_atomic_type.
3477 * gdbtypes.c (make_atomic_type): New function.
3478 (recursive_dump_type): Handle TYPE_ATOMIC.
3479 * gdbtypes.h (enum type_flag_values): Renumber.
3480 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
3481 (TYPE_ATOMIC): New macro.
3482 (make_atomic_type): Declare.
3484 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3486 * btrace.c (ftrace_find_call): Skip gaps.
3487 (ftrace_new_function): Initialize level.
3488 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
3489 (ftrace_new_switch): Update
3491 (ftrace_new_gap): New.
3492 (ftrace_update_function): Create new function after gap.
3493 (btrace_compute_ftrace_bts): Create gap on error.
3494 (btrace_stitch_bts): Update parameters. Clear trace if it
3496 (btrace_stitch_trace): Update parameters. Update callers.
3497 (btrace_clear): Reset the number of gaps.
3498 (btrace_insn_get): Return NULL if the iterator points to a gap.
3499 (btrace_insn_number): Return zero if the iterator points to a gap.
3500 (btrace_insn_end): Allow gaps at the end.
3501 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
3502 (btrace_find_insn_by_number): Assert that the found iterator does
3504 (btrace_call_next, btrace_call_prev): Assert that the last function
3506 * btrace.h (btrace_bts_error): New.
3507 (btrace_function): Update comment.
3508 (btrace_function) <insn, insn_offset, number>: Update comment.
3509 (btrace_function) <errcode>: New.
3510 (btrace_thread_info) <ngaps>: New.
3511 (btrace_thread_info) <replay>: Update comment.
3512 (btrace_insn_get): Update comment.
3513 * record-btrace.c (btrace_ui_out_decode_error): New.
3514 (record_btrace_info): Print number of gaps.
3515 (btrace_insn_history, btrace_call_history): Call
3516 btrace_ui_out_decode_error for gaps.
3517 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
3519 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3521 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
3522 * nat/linux-btrace.c: (btrace_this_cpu): New.
3523 (cpu_supports_bts): Call btrace_this_cpu.
3524 (intel_supports_bts): Add cpu parameter.
3526 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3528 * btrace.h (btrace_insn_class): New.
3529 (btrace_insn) <size, iclass>: New.
3530 * btrace.c (ftrace_find_call): Update parameters. Update users.
3531 Use instruction classification.
3532 (ftrace_new_return): Update parameters. Update users.
3533 (ftrace_update_function): Update parameters. Update users. Use
3534 instruction classification.
3535 (ftrace_update_insns): Update parameters. Update users.
3536 (ftrace_classify_insn): New.
3537 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3538 TRY_CATCH around call to gdb_insn_length.
3540 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3542 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3543 Update parameters. Update users.
3545 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3547 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3548 (btrace_conf_bts_attributes): New.
3549 (btrace_conf_children): Add attributes.
3550 * common/btrace-common.h (btrace_config_bts): New.
3551 (btrace_config)<bts>: New.
3552 (btrace_config): Update comment.
3553 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3555 * features/btrace-conf.dtd: Increment version. Add size
3556 attribute to bts element.
3557 * record-btrace.c (set_record_btrace_bts_cmdlist,
3558 show_record_btrace_bts_cmdlist): New.
3559 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3560 record_btrace_print_conf, cmd_set_record_btrace_bts,
3561 cmd_show_record_btrace_bts): New.
3562 (record_btrace_info): Call record_btrace_print_conf.
3563 (_initialize_record_btrace): Add commands.
3564 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
3565 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
3566 (btrace_sync_conf): Synchronize bts size.
3567 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
3568 * NEWS: Announce new commands and new packets.
3570 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3572 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
3573 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
3574 (x86_linux_btrace_conf): New.
3575 (x86_linux_create_target): Initialize to_btrace_conf.
3576 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
3577 Check format. Split into this and ...
3578 (linux_enable_bts): ... this.
3579 (linux_btrace_conf): New.
3580 (perf_event_skip_record): Renamed into ...
3581 (perf_event_skip_bts_record): ... this. Updated users.
3582 (linux_disable_btrace): Split into this and ...
3583 (linux_disable_bts): ... this.
3584 (linux_read_btrace): Check format.
3585 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3586 (linux_btrace_conf): New.
3587 (btrace_target_info)<ptid>: Moved.
3588 (btrace_target_info)<conf>: New.
3589 (btrace_target_info): Split into this and ...
3590 (btrace_tinfo_bts): ... this. Updated users.
3591 * btrace.c (btrace_enable): Update parameters.
3592 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3593 (btrace_conf_children, btrace_conf_attributes)
3594 (btrace_conf_elements): New.
3595 * btrace.h (btrace_enable): Update parameters.
3596 (btrace_conf, parse_xml_btrace_conf): New.
3597 * common/btrace-common.h (btrace_config): New.
3598 * feature/btrace-conf.dtd: New.
3599 * record-btrace.c (record_btrace_conf): New.
3600 (record_btrace_cmdlist): New.
3601 (record_btrace_enable_warn, record_btrace_open): Pass
3602 &record_btrace_conf.
3603 (record_btrace_info): Print recording format.
3604 (cmd_record_btrace_bts_start): New.
3605 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3606 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3607 Add "record bts" alias command.
3608 * remote.c (remote_state)<btrace_config>: New.
3609 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3610 (remote_protocol_features): Add qXfer:btrace-conf:read.
3611 (remote_open_1): Call remote_btrace_reset.
3612 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3613 (btrace_target_info)<conf>: New.
3614 (btrace_sync_conf, btrace_read_config): New.
3615 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3617 (remote_btrace_conf): New.
3618 (init_remote_ops): Initialize to_btrace_conf.
3619 (_initialize_remote): Add qXfer:btrace-conf packet.
3620 * target.c (target_enable_btrace): Update parameters.
3621 (target_btrace_conf): New.
3622 * target.h (target_enable_btrace): Update parameters.
3623 (target_btrace_conf): New.
3624 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3625 (target_ops)<to_enable_btrace>: Update parameters and comment.
3626 (target_ops)<to_btrace_conf>: New.
3627 * target-delegates: Regenerate.
3628 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3629 (target_debug_print_const_struct_btrace_target_info_p): New.
3630 * NEWS: Announce new command and new packet.
3632 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3634 * nat/linux-btrace.h (perf_event_buffer): New.
3635 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3637 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3638 (perf_event_buffer_size, perf_event_buffer_begin)
3639 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3641 (perf_event_new_data): New.
3643 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3645 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3646 * record-btrace.c (record_btrace_open): Remove call to
3647 target_supports_btrace.
3648 * remote.c (remote_supports_btrace): Update parameters.
3649 * target.c (target_supports_btrace): Update parameters.
3650 * target.h (to_supports_btrace, target_supports_btrace): Update
3652 * target-delegates.c: Regenerate.
3653 * target-debug.h (target_debug_print_enum_btrace_format): New.
3654 * nat/linux-btrace.c
3655 (kernel_supports_btrace): Rename into ...
3656 (kernel_supports_bts): ... this. Update users. Update warning text.
3657 (intel_supports_btrace): Rename into ...
3658 (intel_supports_bts): ... this. Update users.
3659 (cpu_supports_btrace): Rename into ...
3660 (cpu_supports_bts): ... this. Update users.
3661 (linux_supports_btrace): Update parameters. Split into this and ...
3662 (linux_supports_bts): ... this.
3663 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3665 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3667 * Makefile.in (SFILES): Add common/btrace-common.c.
3668 (COMMON_OBS): Add common/btrace-common.o.
3669 (btrace-common.o): Add build rules.
3670 * btrace.c (parse_xml_btrace): Update parameters.
3671 (parse_xml_btrace_block): Set format field.
3672 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3673 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3674 (btrace_compute_ftrace): Split into this and...
3675 (btrace_compute_ftrace_bts): ...this.
3676 (btrace_stitch_trace): Split into this and...
3677 (btrace_stitch_bts): ...this.
3678 * btrace.h (parse_xml_btrace): Update parameters.
3679 (make_cleanup_btrace_data): New.
3680 * common/btrace-common.c: New.
3681 * common/btrace-common.h: Include common-defs.h.
3682 (btrace_block_s): Update comment.
3683 (btrace_format): New.
3684 (btrace_format_string): New.
3685 (btrace_data_bts): New.
3687 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3688 * remote.c (remote_read_btrace): Update parameters.
3689 * target.c (target_read_btrace): Update parameters.
3690 * target.h (target_read_btrace): Update parameters.
3691 (target_ops)<to_read_btrace>: Update parameters.
3692 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3693 * target-delegates.c: Regenerate.
3694 * target-debug (target_debug_print_struct_btrace_data_p): New.
3695 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3696 (linux_read_bts): ...this.
3697 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3699 2015-02-06 Doug Evans <dje@google.com>
3701 * remote-m32r-sdi.c: Include symfile.h.
3703 2015-02-06 Doug Evans <dje@google.com>
3705 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3706 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3709 2015-02-06 Pedro Alves <palves@redhat.com>
3711 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3713 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3716 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3717 (enable_count_command): Check args for NULL value.
3719 2015-02-05 Doug Evans <xdje42@gmail.com>
3721 * guile/scm-frame.c: Fix spelling errors in a comment.
3723 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3726 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3729 2015-02-04 Pedro Alves <palves@redhat.com>
3731 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3732 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3734 (resume_stopped_resumed_lwps): Don't check whether the thread is
3735 marked as executing.
3736 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3738 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3740 * regset.h (struct regset): Add flags field.
3741 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3742 * corelow.c (get_core_register_section): Add warning if the size
3743 exceeds the requested size and the regset does not have the
3744 REGSET_VARIABLE_SIZE flag set.
3745 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3747 * armbsd-tdep.c (armbsd_gregset): Likewise.
3748 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3749 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3750 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3751 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3753 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3755 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3756 For ".reg-xstate", explicitly specify the requested section size
3757 via X86_XSTATE_SIZE instead of just 0 on input and
3758 X86_XSTATE_MAX_SIZE on output.
3759 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3762 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3765 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3766 function type, particularly its SIZE parameter.
3767 * gdbarch.h: Regenerate.
3768 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3769 actual against required size using ">=" instead of "==".
3770 (amd64_collect_fpregset): Likewise.
3771 * i386-tdep.c (i386_supply_gregset): Likewise.
3772 (i386_collect_gregset): Likewise.
3773 (i386_supply_fpregset): Likewise.
3774 (i386_collect_fpregset): Likewise.
3775 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3776 (mips_fill_gregset_wrapper): Likewise.
3777 (mips_supply_fpregset_wrapper): Likewise.
3778 (mips_fill_fpregset_wrapper): Likewise.
3779 (mips64_supply_gregset_wrapper): Likewise.
3780 (mips64_fill_gregset_wrapper): Likewise.
3781 (mips64_supply_fpregset_wrapper): Likewise.
3782 (mips64_fill_fpregset_wrapper): Likewise.
3783 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3784 (am33_supply_fpregset_method): Likewise.
3785 (am33_collect_gregset_method): Likewise.
3786 (am33_collect_fpregset_method): Likewise.
3788 2015-02-04 Doug Evans <dje@google.com>
3789 Pedro Alves <palves@redhat.com>
3790 Eli Zaretskii <eliz@gnu.org>
3793 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3794 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3795 * tui/tui-file.c: #include tui/tui-command.h.
3796 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3797 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3798 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3800 2015-02-04 Pedro Alves <palves@redhat.com>
3803 * event-loop.c (gdb_do_one_event): Add default switch case.
3805 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3807 Filter out inferior gcc option -fpreprocessed.
3808 * compile/compile.c (filter_args): New function.
3811 2015-02-03 Pedro Alves <palves@redhat.com>
3813 * event-loop.c: Don't declare nor define a queue type for
3815 (event_queue): Delete.
3816 (create_event, create_file_event, gdb_event_xfree)
3817 (initialize_event_loop, process_event): Delete.
3818 (gdb_do_one_event): Return as soon as one event is handled.
3819 (handle_file_event): Change prototype. Used the passed in
3820 file_handler pointer and ready_mask instead of looping over all
3822 (gdb_wait_for_event): Update the poll/select timeouts before
3823 blocking. Run event handlers directly instead of queueing events.
3824 Return as soon as one event is handled.
3825 (struct async_event_handler_data): Delete.
3826 (invoke_async_event_handler): Delete.
3827 (check_async_event_handlers): Change return type to int. Run
3828 event handlers directly instead of queueing events. Return as
3829 soon as one event is handled.
3830 (handle_timer_event): Delete.
3831 (update_wait_timeout): New function, factored out from
3833 (poll_timers): Reimplement.
3834 * event-loop.h (initialize_event_loop): Delete declaration.
3835 * top.c (gdb_init): Don't call initialize_event_loop.
3837 2015-02-03 Pedro Alves <palves@redhat.com>
3839 * event-loop.c (clear_async_event_handler): New function.
3840 * event-loop.h (clear_async_event_handler): New declaration.
3841 * record-btrace.c (record_btrace_async): New function.
3842 (init_record_btrace_ops): Install record_btrace_async.
3843 * record-full.c (record_full_async): New function.
3844 (record_full_resume): Don't mark the async event source here.
3845 (init_record_full_ops): Install record_full_async.
3846 (record_full_core_resume): Don't mark the async event source here.
3847 (init_record_full_core_ops): Install record_full_async.
3848 * remote.c (remote_async): Mark and clear the async stop reply
3849 queue event-loop token as appropriate.
3851 2015-02-03 Pedro Alves <palves@redhat.com>
3853 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3854 target_is_async_p instead of target_can_async.
3855 (linux_nat_wait): Use target_is_async_p instead of
3856 target_can_async. Don't enable async here.
3857 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3858 target_is_async_p instead of target_can_async.
3860 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3862 * varobj.h (lang_varobj_ops): Mention which return values need
3865 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3867 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3869 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3872 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3873 results found in the cache.
3875 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3878 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3879 when allocating a new one.
3881 2015-02-01 Tom Tromey <tom@tromey.com>
3883 * MAINTAINERS: Remove myself.
3885 2015-01-31 Doug Evans <xdje42@gmail.com>
3887 * dwarf2read.c (process_structure_scope): Update setting of
3888 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3889 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3890 (set_type_vptr_fieldno): New function.
3891 (internal_type_vptr_basetype): New function.
3892 (set_type_vptr_basetype): New function.
3893 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3895 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3896 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3897 (print_cplus_stuff): ... moved here.
3898 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3899 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3901 (struct cplus_struct_type): ... here. All uses updated.
3902 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3903 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3904 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3905 * stabsread.c (read_tilde_fields): Update setting of
3906 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3908 2015-01-31 Doug Evans <xdje42@gmail.com>
3910 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3912 (cp_print_class_member): Rename local domain to self_type.
3913 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3914 domain_type to self_type.
3915 (set_die_type) <need_gnat_info>: Handle
3916 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3917 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3918 TYPE_SPECIFIC_SELF_TYPE.
3919 * gdbtypes.c (internal_type_self_type): New function.
3920 (set_type_self_type): New function.
3921 (smash_to_memberptr_type): Rename parameter domain to self_type.
3922 Update setting of TYPE_SELF_TYPE.
3923 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3924 (smash_to_method_type): Rename parameter domain to self_type.
3925 Update setting of TYPE_SELF_TYPE.
3926 (check_stub_method): Call smash_to_method_type.
3927 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3928 (copy_type_recursive): Ditto.
3929 * gdbtypes.h (enum type_specific_kind): New value
3930 TYPE_SPECIFIC_SELF_TYPE.
3931 (struct main_type) <type_specific>: New member self_type.
3932 (struct cplus_struct_type) <fn_field.type>: Update comment.
3933 (TYPE_SELF_TYPE): Rewrite.
3934 (internal_type_self_type, set_type_self_type): Declare.
3935 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3937 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3938 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3940 * stabsread.c (read_member_functions): Mark methods with
3941 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3944 2015-01-31 Doug Evans <xdje42@gmail.com>
3946 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3949 2015-01-31 Doug Evans <xdje42@gmail.com>
3951 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3952 or unions. Return zero if union.
3953 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3954 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3956 (compute_vtable_size): Assert only passed structs.
3957 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3959 2015-01-31 Doug Evans <xdje42@gmail.com>
3961 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3964 2015-01-31 Gary Benson <gbenson@redhat.com>
3965 Doug Evans <dje@google.com>
3970 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3972 * common/common-exceptions.h (enum errors)
3973 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3974 * completer.h (get_max_completions_reached_message): New declaration.
3975 (max_completions): Likewise.
3976 (completion_tracker_t): New typedef.
3977 (new_completion_tracker): New declaration.
3978 (make_cleanup_free_completion_tracker): Likewise.
3979 (maybe_add_completion_enum): New enum.
3980 (maybe_add_completion): New declaration.
3981 (throw_max_completions_reached_error): Likewise.
3982 * completer.c (max_completions): New global variable.
3983 (new_completion_tracker): New function.
3984 (free_completion_tracker): Likewise.
3985 (make_cleanup_free_completion_tracker): Likewise.
3986 (maybe_add_completions): Likewise.
3987 (throw_max_completions_reached_error): Likewise.
3988 (complete_line): Remove duplicates and limit result to max_completions
3990 (get_max_completions_reached_message): New function.
3991 (gdb_display_match_list): Handle max_completions.
3992 (_initialize_completer): New declaration and function.
3993 * symtab.c: Include completer.h.
3994 (completion_tracker): New static variable.
3995 (completion_list_add_name): Call maybe_add_completion.
3996 (default_make_symbol_completion_list_break_on_1): Renamed from
3997 default_make_symbol_completion_list_break_on. Maintain
3998 completion_tracker across calls to completion_list_add_name.
3999 (default_make_symbol_completion_list_break_on): New function.
4000 * top.c (init_main): Set rl_completion_display_matches_hook.
4001 * tui/tui-io.c: Include completer.h.
4002 (tui_old_rl_display_matches_hook): New static global.
4003 (tui_rl_display_match_list): Notify user if max-completions reached.
4004 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
4005 * NEWS (New Options): Mention set/show max-completions.
4007 2015-01-31 Gary Benson <gbenson@redhat.com>
4009 * symtab.c (struct add_name_data) <code>: New field.
4011 (add_symtab_completions): New function.
4012 (symtab_expansion_callback): Likewise.
4013 (default_make_symbol_completion_list_break_on): Set datum.code.
4014 Move minimal symbol scan before calling expand_symtabs_matching.
4015 Scan known primary symtabs for externs and statics before calling
4016 expand_symtabs_matching. Pass symtab_expansion_callback as
4017 expansion_notify argument to expand_symtabs_matching. Do not scan
4018 primary symtabs for externs and statics after calling
4019 expand_symtabs_matching.
4021 2015-01-31 Gary Benson <gbenson@redhat.com>
4023 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
4024 (struct quick_symbol_functions) <expand_symtabs_matching>:
4025 New argument expansion_notify. All uses updated.
4026 (expand_symtabs_matching): New argument expansion_notify.
4028 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4029 Also print expansion notify.
4030 * symtab.c (expand_symtabs_matching_via_partial): Call
4031 expansion_notify whenever a partial symbol table is expanded.
4032 * dwarf2read.c (dw2_expand_symtabs_matching): Call
4033 expansion_notify whenever a symbol table is instantiated.
4035 2015-01-31 Doug Evans <xdje42@gmail.com>
4037 * cli-out.c: #include completer.h, readline/readline.h.
4038 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
4039 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
4040 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
4041 * cli-out.h (cli_display_match_list): Declare.
4042 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
4043 (ELLIPSIS_LEN): Ditto.
4044 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
4045 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
4046 (gdb_fnprint, gdb_print_filename): Ditto.
4047 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
4048 (gdb_display_match_list): Ditto.
4049 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
4050 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
4051 (mld_beep_ftype, mld_read_key_ftype): Ditto.
4052 (match_list_displayer): New struct.
4053 (gdb_display_match_list): Declare.
4054 * top.c (init_main): Set rl_completion_display_matches_hook.
4055 * tui/tui-io.c: #include completer.h.
4056 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
4057 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
4058 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
4059 (tui_mld_getc, tui_mld_read_key): Ditto.
4060 (tui_rl_display_match_list): Rewrite.
4061 (tui_handle_resize_during_io): New arg for_completion. All callers
4064 2015-01-31 Doug Evans <xdje42@gmail.com>
4066 Add symbol lookup cache.
4067 * NEWS: Document new options and commands.
4068 * symtab.c (symbol_cache_key): New static global.
4069 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
4070 (SYMBOL_LOOKUP_FAILED): New macro.
4071 (symbol_cache_slot_state): New enum.
4072 (block_symbol_cache): New struct.
4073 (symbol_cache): New struct.
4074 (new_symbol_cache_size, symbol_cache_size): New static globals.
4075 (hash_symbol_entry, eq_symbol_entry): New functions.
4076 (symbol_cache_byte_size, resize_symbol_cache): New functions.
4077 (make_symbol_cache, free_symbol_cache): New functions.
4078 (get_symbol_cache, symbol_cache_cleanup): New function.
4079 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
4080 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
4081 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
4082 (symbol_cache_flush, symbol_cache_dump): New functions.
4083 (maintenance_print_symbol_cache): New function.
4084 (maintenance_flush_symbol_cache): New function.
4085 (symbol_cache_stats): New function.
4086 (maintenance_print_symbol_cache_statistics): New function.
4087 (symtab_new_objfile_observer): New function.
4088 (symtab_free_objfile_observer): New function.
4089 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
4090 (_initialize_symtab): Init symbol_cache_key. New parameter
4091 maint symbol-cache-size. New maint commands print symbol-cache,
4092 print symbol-cache-statistics, flush-symbol-cache.
4093 Install new_objfile, free_objfile observers.
4095 2015-01-31 Joel Brobecker <brobecker@adacore.com>
4098 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
4101 2015-01-31 Doug Evans <xdje42@gmail.com>
4103 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
4104 * auto-load.c: #include ctype.h.
4105 (struct auto_load_pspace_info): Replace member loaded_scripts with
4106 new members loaded_script_files, loaded_script_texts.
4107 (auto_load_pspace_data_cleanup): Update.
4108 (init_loaded_scripts_info): Update.
4109 (get_auto_load_pspace_data_for_loading): Update.
4110 (maybe_add_script_file): Renamed from maybe_add_script. All callers
4112 (maybe_add_script_text): New function.
4113 (clear_section_scripts): Update.
4114 (source_script_file, execute_script_contents): New functions.
4115 (source_section_scripts): Add support for
4116 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
4117 (print_scripts): New function.
4118 (auto_load_info_scripts): Also print inlined scripts.
4119 (maybe_print_unsupported_script_warning): Renamed from
4120 unsupported_script_warning_print. All callers updated.
4121 (maybe_print_script_not_found_warning): Renamed from
4122 script_not_found_warning_print. All callers updated.
4123 * extension-priv.h (struct extension_language_script_ops): New member
4124 objfile_script_executor.
4125 * extension.c (ext_lang_objfile_script_executor): New function.
4126 * extension.h (objfile_script_executor_func): New typedef.
4127 (ext_lang_objfile_script_executor): Declare.
4128 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
4129 * guile/guile.c (guile_extension_script_ops): Update.
4130 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
4131 * python/python.c (python_extension_script_ops): Update.
4132 (gdbpy_execute_objfile_script): New function.
4134 2015-01-31 Eli Zaretskii <eliz@gnu.org>
4136 * tui/tui-io.c (tui_expand_tabs): New function.
4137 (tui_puts, tui_redisplay_readline): Expand TABs into the
4138 appropriate number of spaces.
4139 * tui/tui-regs.c: Include tui-io.h.
4140 (tui_register_format): Call tui_expand_tabs to expand TABs into
4141 the appropriate number of spaces.
4142 * tui/tui-io.h: Add prototype for tui_expand_tabs.
4144 2015-01-30 Doug Evans <dje@google.com>
4146 * NEWS: "info source" command now display producer string if present.
4147 * source.c (source_info): Print producer string if present.
4149 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4151 * varobj.c (varobj_delete): Fix comment.
4153 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4155 * varobj.c (create_child): Modify comment.
4157 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4159 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
4161 (ada_name_of_variable): Same.
4162 (ada_path_expr_of_child): Same.
4163 (ada_value_of_variable): Same.
4164 (ada_value_is_changeable_p): Same.
4165 (ada_value_has_mutated): Same.
4166 * c-varobj.c (varobj_is_anonymous_child): Same.
4167 (c_is_path_expr_parent): Same.
4168 (c_number_of_children): Same.
4169 (c_name_of_variable): Same.
4170 (c_path_expr_of_child): Same.
4172 (c_value_of_variable): Same.
4173 (cplus_number_of_children): Same.
4174 (cplus_name_of_variable): Same.
4175 (cplus_path_expr_of_child): Same.
4176 (cplus_value_of_variable): Same.
4177 * jv-varobj.c (java_number_of_children): Same.
4178 (java_name_of_variable): Same.
4179 (java_path_expr_of_child): Same.
4180 (java_value_of_variable): Same.
4181 * varobj.c (number_of_children): Same.
4182 (name_of_variable): Same.
4184 (varobj_ensure_python_env): Same.
4185 (varobj_get_objname): Same.
4186 (varobj_get_expression): Same.
4187 (varobj_get_display_format): Same.
4188 (varobj_get_display_hint): Same.
4189 (varobj_has_more): Same.
4190 (varobj_get_thread_id): Same.
4191 (varobj_get_frozen): Same.
4192 (dynamic_varobj_has_child_method): Same.
4193 (varobj_get_gdb_type): Same.
4194 (is_path_expr_parent): Same.
4195 (varobj_default_is_path_expr_parent): Same.
4196 (varobj_get_language): Same.
4197 (varobj_get_attributes): Same.
4198 (varobj_is_dynamic_p): Same.
4199 (varobj_get_child_range): Same.
4200 (varobj_value_has_mutated): Same.
4201 (varobj_get_value_type): Same.
4202 (number_of_children): Same.
4203 (name_of_variable): Same.
4204 (check_scope): Same.
4205 (varobj_editable_p): Same.
4206 (varobj_value_is_changeable_p): Same.
4207 (varobj_floating_p): Same.
4208 (varobj_default_value_is_changeable_p): Same.
4210 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4212 * varobj.c (varobj_get_path_expr): Set var->path_expr.
4213 * c-varobj.c (c_path_expr_of_child): Set local var instead of
4215 (cplus_path_expr_of_child): Same.
4217 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4219 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
4221 (mi_cmd_var_info_expression): Same.
4222 * varobj.c (varobj_get_expression): Mention in the comment that
4223 the result must by freed by the caller.
4225 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4227 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
4229 (varobj_update_one): Same.
4230 * varobj.c (update_type_if_necessary): Free curr_type_str and
4232 (varobj_get_type): Specify in comment that the result needs to be
4233 freed by the caller.
4235 2015-01-29 Doug Evans <dje@google.com>
4238 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
4240 2015-01-25 Mark Wielaard <mjw@redhat.com>
4242 * dwarf2read.c (checkproducer): Call producer_is_gcc.
4243 * utils.c (producer_is_gcc_ge_4): Likewise.
4244 (producer_is_gcc): New function.
4245 * utils.h (producer_is_gcc): New declaration.
4247 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4249 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4251 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
4252 parameter by "addr_stack" parameter.
4253 (resolve_dynamic_range): Replace "addr" parameter by
4254 "stack_addr" parameter. Update function documentation.
4255 Update code accordingly.
4256 (resolve_dynamic_array, resolve_dynamic_union)
4257 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
4258 (resolve_dynamic_type): Update code, following the changes made
4259 to resolve_dynamic_type_internal's interface.
4260 * dwarf2loc.h (struct property_addr_info): New.
4261 (dwarf2_evaluate_property): Replace "address" parameter
4262 by "addr_stack" parameter. Adjust function documentation.
4263 (struct dwarf2_offset_baton): New.
4264 (struct dwarf2_property_baton): Update documentation of
4265 field "referenced_type" to be more general. New field
4266 "offset_info" in union data field.
4267 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
4268 parameter by "addr_stack" parameter. Adjust code accordingly.
4269 Add support for PROP_ADDR_OFFSET properties.
4270 * dwarf2read.c (attr_to_dynamic_prop): Add support for
4271 DW_AT_data_member_location attributes as well. Use case
4272 statements instead of if/else condition.
4274 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4276 * ada-varobj.c (ada_varobj_get_array_number_of_children):
4277 Return zero if PARENT_VALUE is NULL and parent_type's
4278 range type is dynamic.
4280 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4282 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
4283 nonzero if the type's subtype is dynamic.
4284 (resolve_dynamic_range): Also resolve the range's subtype.
4286 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
4288 Pushed by Joel Brobecker <brobecker@adacore.com>.
4289 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
4291 2015-01-27 Doug Evans <dje@google.com>
4293 * NEWS: Mention gdb.Objfile.username.
4294 * python/py-objfile.c (objfpy_get_username): New function.
4295 (objfile_getset): Add "username".
4297 2015-01-24 Mark Wielaard <mjw@redhat.com>
4299 * stack.c (return_command): Markup warning message with _.
4301 2015-01-24 Doug Evans <xdje42@gmail.com>
4303 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4305 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 Fix 100x slowdown regression on DWZ files.
4308 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
4309 (struct line_header): Add offset and offset_in_dwz.
4310 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
4311 (free_line_header_voidp): New declaration.
4312 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
4314 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
4315 (handle_DW_AT_stmt_list): Use line_header_hash.
4316 (free_line_header_voidp): New function.
4317 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
4318 (dwarf_decode_lines): New parameter decode_mapping, use it.
4319 (dwarf2_free_objfile): Free line_header_hash.
4321 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
4324 * valops.c (value_rtti_indirect_type): Catch exception thrown by
4327 2015-01-15 Mark Wielaard <mjw@redhat.com>
4329 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
4331 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
4332 calling_convention an 8 bit bit field.
4333 (TYPE_NO_RETURN): New macro.
4334 * infcmd.c (finish_command): Query if function does not return
4336 * stack.c (return_command): Likewise.
4338 2015-01-23 Pedro Alves <palves@redhat.com>
4340 * linux-nat.c (linux_is_async_p): New macro.
4341 (linux_nat_is_async_p):
4342 (linux_nat_terminal_inferior): Check whether the target can async
4343 instead of whether it is already async.
4344 (linux_nat_terminal_ours): Don't check whether the target is
4346 (linux_async_pipe): Use linux_is_async_p.
4348 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
4352 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
4353 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
4354 Sort tp_array using tp_array_compar.
4355 (_initialize_thread): Extend thread_apply_all_command help.
4357 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * corelow.c (core_open): Call also thread_command.
4360 * gdbthread.h (thread_command): New prototype moved from ...
4361 * thread.c (thread_command): ... here.
4362 (thread_command): Make it global.
4364 2015-01-22 Pedro Alves <palves@redhat.com>
4366 * configure.ac [*mingw32*]: Check $curses_found instead of
4368 * configure: Regenerate.
4369 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
4370 HAVE_NCURSES_NCURSES_H checks.
4372 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4374 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
4375 fails with the 1st arg NULL, try again with "unknown". Don't test
4376 the "cup" capability: it isn't supported by the Windows port of
4377 ncurses, but the Windows console driver is still capable of
4380 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4382 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
4384 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4386 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
4387 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
4388 reason that "make TAGS" is broken.
4390 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
4392 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4393 and check additional store instructions.
4395 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4397 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
4399 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4401 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
4402 ppc_canonicalize_syscall, ppc_linux_syscall_record,
4403 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
4404 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4405 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
4406 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
4407 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
4408 ppc_process_record_op19, ppc_process_record_op31,
4409 ppc_process_record_op59, ppc_process_record_op60,
4410 ppc_process_record_op63): Likewise.
4412 2015-01-20 Joel Brobecker <brobecker@adacore.com>
4414 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
4415 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
4418 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
4420 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
4421 ppc_process_record_op31, ppc_process_record_op59,
4422 ppc_process_record_op60, ppc_process_record_op63,
4423 ppc_process_record): Fix -Wformat warning.
4424 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
4425 Remove unused variables.
4427 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
4429 * MAINTAINERS (Write After Approval): Add "Chen Gang".
4431 2015-01-19 Eli Zaretskii <eliz@gnu.org>
4433 * configure.ac [*mingw32*]: Only add windows-termcap.o to
4434 CONFIG_OBS if not building with a curses library.
4435 * configure: Regenerate.
4437 * windows-termcap.c: Include defs.h. Make the whole body empty if
4438 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
4439 HAVE_NCURSES_NCURSES_H is defined.
4441 2015-01-19 Joel Brobecker <brobecker@adacore.com>
4443 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
4444 from end of line to start of next line.
4446 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4448 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
4449 Scan PLT stub backward for reverse debugging.
4450 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4452 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4453 Ulrich Weigand <uweigand@de.ibm.com>
4455 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
4457 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
4459 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
4460 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
4461 (ppc_linux_init_abi): Set process_record, process_record_signal.
4462 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
4463 ppc_linux_record_tdep to gdbarch_tdep.
4464 (ppc_process_record): New declaration.
4465 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
4466 ppc_process_record_op19, ppc_process_record_op31,
4467 ppc_process_record_op59, ppc_process_record_op60,
4468 ppc_process_record_op63, ppc_process_record): New functions.
4470 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4472 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4473 rs6000_in_function_epilogue_frame_p and add an argument
4475 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
4476 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
4478 (rs6000_epilogue_frame_unwind): New.
4479 (rs6000_gdbarch_init): Append epilogue unwinder.
4481 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4483 * nat/linux-personality.c: Replace "#ifndef
4484 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
4485 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
4488 2015-01-16 Eli Zaretskii <eliz@gnu.org>
4490 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
4492 (_initialize_tui_win) <border-kind, border-mode>:
4493 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
4494 (tui_set_tab_width_command): Fix the commentary.
4496 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
4498 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
4500 (tui_set_tab_width_command): Delete and recreate the source and
4501 the disassembly windows, to show the effect of the changed tab
4504 * tui/tui-data.h (LINE_PREFIX): Make shorter
4505 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
4506 "Thread NNNNN.XXXX" thread ID notation on Windows.
4508 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4510 Fix gcc-5 compilation.
4511 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
4513 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4515 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4516 (linux-personality.o): New rule.
4517 * common/common-defs.h: Include <stdint.h>.
4518 * config/aarch64/linux.mh (NATDEPFILES): Include
4519 linux-personality.o.
4520 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4521 * config/arm/linux.mh (NATDEPFILES): Likewise.
4522 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4523 * config/i386/linux.mh (NATDEPFILES): Likewise.
4524 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4525 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4526 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4527 * config/mips/linux.mh (NATDEPFILES): Likewise.
4528 * config/pa/linux.mh (NATDEPFILES): Likewise.
4529 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4530 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4531 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4532 * config/s390/linux.mh (NATDEPFILES): Likewise.
4533 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4534 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4535 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4536 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4537 * defs.h: Remove #include <stdint.h> (moved to
4538 common/common-defs.h).
4539 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4540 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4541 nat/linux-personality.c).
4542 (linux_nat_create_inferior): Remove code to disable address space
4543 randomization (moved to nat/linux-personality.c). Create cleanup
4544 to disable address space randomization.
4545 * nat/linux-personality.c: New file.
4546 * nat/linux-personality.h: Likewise.
4548 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4550 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4551 common/posix-strerror.c.
4552 (posix-strerror.o): New rule.
4553 (mingw-strerror.o): Likewise.
4554 * common/common-utils.h (safe_strerror): Move prototype to here,
4556 * common/common.host: New file.
4557 * common/mingw-strerror.c: Likewise.
4558 * common/posix-strerror.c: Likewise.
4559 * configure: Regenerated.
4560 * configure.ac: Source common/common.host. Add variable
4561 common_host_obs to gdb_host_obs.
4562 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
4563 gdb/common/posix-strerror.c when warning about the use of
4565 * mingw-hdep.c (safe_strerror): Remove definition; move it to
4566 common/mingw-strerror.c.
4567 * posix-hdep.c (safe_strerror): Remove definition; move it to
4568 common/posix-hdep.c.
4569 * utils.h (safe_strerror): Remove prototype; move to
4570 common/common-utils.h.
4572 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4576 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4578 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
4579 ___XA type if the array has already been fixed.
4581 2015-01-14 Yao Qi <yao@codesourcery.com>
4583 * Makefile.in (ppc-linux.o): New rule.
4584 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4585 * configure.ac: AC_CHECK_FUNCS(getauxval).
4586 * config.in: Re-generated.
4587 * configure: Re-generated.
4588 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4590 * nat/ppc-linux.c: New file.
4591 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4592 Call ppc64_64bit_inferior_p.
4594 2015-01-14 Yao Qi <yao@codesourcery.com>
4596 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4598 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4599 (PPC_FEATURE_HAS_DFP): Likewise.
4600 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4601 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4602 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4603 Include "nat/ppc-linux.h".
4604 * nat/ppc-linux.h: New file.
4605 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4607 2015-01-14 Pedro Alves <palves@redhat.com>
4610 * breakpoint.c: Include "interps.h".
4611 (bpstat_do_actions_1): Also check whether the interpreter is
4614 2015-01-14 Pedro Alves <palves@redhat.com>
4617 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4618 reinstall if the interpreter is sync.
4620 2015-01-13 Doug Evans <dje@google.com>
4622 * objfiles.c (objfile_filename): New function.
4623 * objfiles.h (objfile_filename): Declare it.
4624 (objfile_name): Add function comment.
4625 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4626 bfd file name (which may be realpath'd), and the original name.
4628 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4630 * NEWS: Create a new section for the next release branch.
4631 Rename the section of the current branch, now that it has
4634 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4636 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4637 * version.in: Bump version to 7.9.50.DATE-cvs.
4639 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4641 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4642 Remove trailing new-line in argument of call to warning.
4644 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4646 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4647 new-line in argument of call to "warning".
4649 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4651 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4652 in static block, then try searching for primitive types.
4654 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4656 * top.h (gdb_add_history): Declare.
4657 * top.c (command_count): New variable.
4658 (gdb_add_history): New function.
4659 (gdb_safe_append_history): New static function.
4660 (quit_force): Call it.
4661 (command_line_input): Use gdb_add_history instead of
4663 * event-top.c (command_line_handler): Likewise.
4665 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4668 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4669 <setjmp.h> #include.
4671 2015-01-11 Doug Evans <xdje42@gmail.com>
4673 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4675 2015-01-11 Doug Evans <xdje42@gmail.com>
4678 * NEWS: The "maint demangle" command is renamed as "demangle".
4679 * demangle.c: #include cli/cli-utils.h, language.h.
4680 (demangle_command): New function.
4681 (_initialize_demangle): Add new command "demangle".
4682 * maint.c (maintenance_demangle): Stub out.
4683 (_initialize_maint_cmds): Update help text for "maint demangle",
4684 and mark as deprecated.
4686 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4688 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4689 inferior_thread is a function.
4691 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4693 * Makefile.in (.y.c): Don't munge yacc's #line
4696 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4698 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4699 to prompt for input.
4700 * tui/tui-hooks.c (tui_query_hook): Remove.
4701 (tui_install_hooks): Don't set deprecated_query_hook.
4702 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4703 height calculation. Always update the command window's cur_line.
4705 2015-01-09 Pedro Alves <palves@redhat.com>
4707 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4709 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4711 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4712 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4714 (check_stopped_by_watchpoint): New function.
4715 (save_sigtrap): Reimplement.
4716 (linux_nat_stopped_by_watchpoint): Adjust.
4717 (linux_nat_lp_status_is_event): Delete.
4718 (stop_wait_callback): Only call save_sigtrap after storing the
4720 (status_callback): If the thread had been stopped for a breakpoint
4721 that has since been removed, discard the event and resume the LWP.
4722 (count_events_callback, select_event_lwp_callback): Use
4723 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4724 (cancel_breakpoint): Rename to ...
4725 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4726 stopped for a software breakpoint or hardware breakpoint.
4727 (select_event_lwp): Only give preference to the stepping LWP in
4728 all-stop mode. Adjust comments.
4729 (stop_and_resume_callback): Remove references to new_pending_p.
4730 (linux_nat_filter_event): Likewise. Leave exit events of the
4731 leader thread pending here. Handle signal short circuiting here.
4732 Only call save_sigtrap after storing the pending waitstatus.
4733 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4734 new_pending. Don't handle leaving events the caller is not
4735 interested in pending here, nor handle signal short-circuiting
4736 here. Also give equal priority to all LWPs that have had events
4737 in non-stop mode. If reporting a software breakpoint event,
4738 unadjust the LWP's PC.
4739 * linux-nat.h (enum lwp_stop_reason): New.
4740 (struct lwp_info) <stop_pc>: New field.
4741 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4742 (struct lwp_info) <stop_reason>: New field.
4743 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4745 2015-01-09 Pedro Alves <palves@redhat.com>
4747 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4748 Set the LWP's 'resumed' flag.
4750 2015-01-09 Pedro Alves <palves@redhat.com>
4752 * linux-nat.c (linux_resume_one_lwp): New function.
4753 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4754 (linux_nat_resume): Use lwp_status_pending_p and
4755 linux_resume_one_lwp.
4756 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4757 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4758 (status_callback, running_callback): Use lwp_status_pending_p.
4759 (lwp_status_pending_p): New function.
4760 (stop_and_resume_callback): Use lwp_status_pending_p.
4761 (linux_nat_filter_event): Use linux_resume_one_lwp.
4762 (linux_nat_wait_1): Always use status_callback to look for an LWP
4763 with a pending status. Use linux_resume_one_lwp.
4764 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4765 linux_resume_one_lwp.
4767 2015-01-09 Pedro Alves <palves@redhat.com>
4769 * breakpoint.c (bp_location_inserted_here_p): New function,
4770 factored out from ...
4771 (breakpoint_inserted_here_p): ... here. Use
4772 ALL_BP_LOCATIONS_AT_ADDR.
4773 (software_breakpoint_inserted_here_p): Use
4774 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4776 2014-01-09 Pedro Alves <palves@redhat.com>
4778 Skip enabling event reporting if the kernel supports
4780 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4781 (thread_db_use_events): New function.
4782 (try_thread_db_load_1): Check thread_db_use_events before enabling
4784 (update_thread_state): New function.
4785 (attach_thread): Use it. Check thread_db_use_events before
4786 enabling event reporting.
4787 (thread_db_detach): Check thread_db_use_events before disabling
4789 (find_new_threads_callback): Check thread_db_use_events before
4790 enabling event reporting. Update the thread's state if not using
4791 libthread_db events.
4793 2015-01-09 Pedro Alves <palves@redhat.com>
4795 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4796 about to wait for is > 0.
4797 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4798 the kernel thread ID is -1.
4800 2015-01-09 Pedro Alves <palves@redhat.com>
4802 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4803 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4804 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4805 ptrace option flags.
4806 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4808 * nat/linux-procfs.c: Include <dirent.h>.
4809 (linux_proc_get_int): New parameter "warn". Handle it.
4810 (linux_proc_get_tgid): Adjust.
4811 (linux_proc_get_tracerpid): Rename to ...
4812 (linux_proc_get_tracerpid_nowarn): ... this.
4813 (linux_proc_pid_get_state): New function, factored out from
4814 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4816 (linux_proc_pid_is_gone): New function.
4817 (linux_proc_pid_is_stopped): Adjust.
4818 (linux_proc_pid_is_zombie_maybe_warn)
4819 (linux_proc_pid_is_zombie_nowarn): New functions.
4820 (linux_proc_pid_is_zombie): Use
4821 linux_proc_pid_is_zombie_maybe_warn.
4822 (linux_proc_attach_tgid_threads): New function.
4823 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4824 (linux_proc_get_tracerpid): Rename to ...
4825 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4826 (linux_proc_pid_is_gone): New declaration.
4827 (linux_proc_pid_is_zombie): Update comment.
4828 (linux_proc_pid_is_zombie_nowarn): New declaration.
4829 (linux_proc_attach_lwp_func): New typedef.
4830 (linux_proc_attach_tgid_threads): New declaration.
4831 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4832 use nowarn functions.
4833 (linux_ptrace_attach_fail_reason_string): Move here from
4834 gdbserver/linux-low.c and rename.
4835 (ptrace_supports_feature): If the current ptrace options are not
4836 known yet, check them now, instead of asserting.
4837 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4840 2015-01-09 Pedro Alves <palves@redhat.com>
4842 * linux-thread-db.c (thread_db_find_new_threads_silently)
4843 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4844 (find_new_threads_once): Print debug output on gdb_stdlog.
4846 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4847 Pedro Alves <palves@redhat.com>
4849 * compile/compile.c: Include "gdb_wait.h".
4850 (do_rmdir): Check return value, and free 'zap'.
4852 2015-01-08 Pedro Alves <palves@redhat.com>
4853 Yao Qi <yao@codesourcery.com>
4855 * dwarf2loc.c (indirect_pieced_value): Don't call
4856 gdb_sign_extend. Call extract_signed_integer instead.
4857 * utils.c (gdb_sign_extend): Remove.
4858 * utils.h (gdb_sign_extend): Remove declaration.
4860 2015-01-07 Pierre Muller <muller@sourceware.org>
4863 * stabsread.c (define_symbol): Set language for C++ special symbols.
4865 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4867 * inflow.c (initial_gdb_ttystate): Tweak comment.
4869 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4871 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4872 comment documenting function.
4874 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4876 * terminal.h (set_initial_gdb_ttystate): Declare.
4877 * inflow.c (initial_gdb_ttystate): New static variable.
4878 (set_initial_gdb_ttystate): New setter.
4879 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4880 instead of our current terminal state.
4881 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4883 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4885 * guile/scm-type.c (tyscm_array_1): Add comment.
4886 * python/py-type.c (typy_array_1): Add comment.
4888 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4890 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4891 error if N2 is equal to N1 - 1.
4893 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4895 * python/py-type.c (typy_array_1): Do not raise negative-length
4896 exception if N2 is equal to N1 - 1.
4898 2015-01-03 Doug Evans <xdje42@gmail.com>
4900 * c-exp.y: Whitespace cleanup.
4901 (classify_inner_name): Remove extra ;.
4903 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4905 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4908 2015-01-02 Doug Evans <dje@google.com>
4910 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4912 2015-01-02 Doug Evans <dje@google.com>
4914 * symtab.h (struct symbol): Fix typo in comment.
4916 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4918 Update year range in copyright notice of all files.
4920 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4922 * top.c (print_gdb_version): Update copyright year to 2015.
4924 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4926 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4928 For older changes see ChangeLog-2014.
4934 version-control: never