1 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
3 * amd64-tdep.c: Replace in_function_epilogue_p with
4 stack_frame_destroyed_p throughout.
13 * nios2-tdep.c: Ditto.
14 * rs6000-tdep.c: Ditto.
15 * s390-linux-tdep.c: Ditto.
16 * score-tdep.c: Ditto.
18 * sparc-tdep.c: Ditto.
19 * sparc-tdep.h: Ditto.
20 * sparc64-tdep.c: Ditto.
22 * tic6x-tdep.c: Ditto.
23 * tilegx-tdep.c: Ditto.
24 * xstormy16-tdep.c: Ditto.
25 * gdbarch.c, gdbarch.h: Re-generated.
27 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
29 * NEWS: Mention 'tui enable' and 'tui disable'.
30 * tui/tui.c (tui_enable_command): New function.
31 (tui_disable_command): New function.
32 (_initialize_tui): New function.
34 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
36 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
38 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
40 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
43 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
45 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
47 (tui_set_layout_for_display_command): ...here, before calling
48 tui_set_layout. Only set the layout if gdb has not already
49 entered the TUI_FAILURE state.
51 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
53 * tui/tui-layout.c (layout_completer): New function.
54 (_initialize_tui_layout): Set completer on layout command.
56 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
58 * tui/tui-layout.c (tui_set_layout): Remove
59 tui_register_display_type parameter. Remove all checking of this
60 parameter, and reindent function. Update header comment.
61 (tui_set_layout_for_display_command): Rename to...
62 (tui_set_layout_by_name): ...this, and don't check for different
63 register class types, don't pass a tui_register_display_type to
64 tui_set_layout. Update header comment.
65 (layout_names): Remove register set specific names.
66 * tui/tui-layout.h (tui_set_layout): Remove
67 tui_register_display_type parameter.
68 * tui/tui.c (tui_rl_change_windows): Don't pass a
69 tui_register_display_type to tui_set_layout.
70 (tui_rl_delete_other_windows): Likewise.
71 (tui_enable): Likewise.
72 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
73 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
74 (TUI_GENERAL_REGS_NAME): Remove.
75 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
76 (TUI_SPECIAL_REGS_NAME): Remove.
77 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
78 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
79 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
80 (enum tui_register_display_type): Remove.
81 (struct tui_layout_def): Remove regs_display_type and
82 float_regs_display_type fields.
83 (struct tui_data_info): Remove regs_display_type field.
84 (tui_layout_command): Use new name for
85 tui_set_layout_for_display_command.
86 * tui/tui-data.c (layout_def): Don't initialise removed fields.
87 (tui_clear_win_detail): Don't initialise removed fields of
89 * tui/tui-regs.c (tui_show_registers): Use new name for
90 tui_set_layout_for_display_command.
91 * tui/tui.h (tui_set_layout_for_display_command): Rename
93 (tui_set_layout_by_name): ...this.
94 * printcmd.c (display_command): Remove tui related layout call,
97 2015-05-20 Joel Brobecker <brobecker@adacore.com>
99 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
100 (handle_inferior_event): New function.
102 2015-05-20 Joel Brobecker <brobecker@adacore.com>
104 * ada-lang.c (to_fixed_array_type): Rename local variable
105 typename into type_name.
107 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
109 Fix ASAN crash for gdb.compile/compile.exp.
110 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
112 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
114 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
115 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
116 * compile/compile-object-load.c (setup_sections, compile_object_load):
118 * compile/compile.c (compile_to_object): Likewise.
120 2015-05-16 Doug Evans <xdje42@gmail.com>
122 * NEWS: Mention support for unbuffered Guile memory ports.
123 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
124 (ioscm_lseek_address): Improve overflow calculation.
125 (gdbscm_memory_port_fill_input): Add assert.
126 (gdbscm_memory_port_write): Handle unbuffered ports.
127 Handle large writes identical to Guile's fport_write.
128 (gdbscm_memory_port_seek): Fix seeking past end check.
129 (gdbscm_memory_port_close): Handle closing unbuffered port.
130 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
131 (ioscm_init_memory_port): Handle unbuffered ports.
132 (ioscm_reinit_memory_port): Ditto.
133 (ioscm_init_memory_port): Update size calculation.
134 (gdbscm_open_memory): Support zero sized ports.
136 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
138 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
139 variable compiler warnings.
141 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
143 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
145 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
146 Phil Muldoon <pmuldoon@redhat.com>
148 * NEWS (Changes since GDB 7.9): Add compile print.
149 * compile/compile-c-support.c (add_code_header, add_code_footer)
150 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
151 COMPILE_I_PRINT_VALUE_SCOPE.
152 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
153 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
155 * compile/compile-object-load.c: Include block.h.
156 (get_out_value_type): New function.
157 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
158 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
160 * compile/compile-object-load.h (struct compile_module): Add fields
161 out_value_addr and out_value_type.
162 * compile/compile-object-run.c: Include valprint.h and compile.h.
163 (struct do_module_cleanup): Add fields out_value_addr and
165 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
166 COMPILE_I_PRINT_VALUE_SCOPE.
167 (compile_object_run): Propagate out_value_addr and out_value_type.
169 * compile/compile.c: Include valprint.h.
170 (compile_print_value, compile_print_command): New functions.
171 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
172 (_initialize_compile): Update compile code help text. Install
173 compile_print_command.
174 * compile/compile.h (compile_print_value): New prototype.
175 * defs.h (enum compile_i_scope_types): Add
176 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
178 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
180 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
181 Rely on its parameter count.
182 (compile_object_load): Replace lookup_minimal_symbol_text by
183 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
185 * compile/compile-object-load.h (struct compile_module): Replace
186 func_addr by func_sym.
187 * compile/compile-object-run.c: Include block.h.
188 (compile_object_run): Reset module variable after it is freed. Use
189 FUNC_SYM instead of FUNC_ADDR. Rely on it.
191 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
193 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
194 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
195 (c_compute_program): Call generate_register_struct after typedefs.
196 * compile/compile-loc2c.c (push, pushf_register_address)
197 (pushf_register): Cast to GCC_UINTPTR.
198 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
199 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
200 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
201 * compile/compile.c (_initialize_compile): Enable warnings for
204 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * cli/cli-script.c (execute_control_command): Update
207 eval_compile_command caller.
208 * compile/compile-object-load.c (compile_object_load): Add parameters
209 scope and scope_data. Set them.
210 * compile/compile-object-load.h (struct compile_module): Add fields
211 scope and scope_data.
212 (compile_object_load): Add parameters scope and scope_data.
213 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
214 scope and scope_data.
215 (compile_object_run): Propagate the fields scope and scope_data.
216 * compile/compile.c (compile_file_command, compile_code_command):
217 Update eval_compile_command callers.
218 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
219 * compile/compile.h (eval_compile_command): Add parameter scope_data.
220 * defs.h (struct command_line): Add field scope_data.
222 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
224 * printcmd.c (struct format_data): Move it to valprint.h.
225 (print_command_parse_format, print_value): New functions from ...
226 (print_command_1): ... here. Call them.
227 * valprint.h (struct format_data): Move it here from printcmd.c.
228 (print_command_parse_format, print_value): New declarations.
230 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
232 * compile/compile-object-load.c (compile_object_load): Add
233 COMPILE_DEBUG message.
235 2015-05-15 Jerome Guitton <guitton@adacore.com>
237 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
238 index to get element instead of enum value.
239 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
240 of index to compute length, but enum values to compute bounds.
241 (ada_array_length): Use enum position of index instead of enum value.
242 (pos_atr): Move position computation to...
243 (ada_evaluate_subexp): Use enum values to compute bounds.
244 * gdbtypes.c (discrete_position): ...this new function.
245 * gdbtypes.h (discrete_position): New function declaration.
246 * valprint.c (val_print_array_elements): Call discrete_position
247 to handle array indexed by non-contiguous enumeration types.
249 2015-05-15 Jerome Guitton <guitton@adacore.com>
251 * ada-lang.c (find_parallel_type_by_descriptive_type):
252 Go through typedefs during lookup.
253 (to_fixed_array_type): Add support for non-bit packed arrays
254 as variable-length fields.
256 2015-05-15 Pedro Alves <palves@redhat.com>
257 Simon Marchi <simon.marchi@ericsson.com>
259 * event-loop.c (gdb_notifier) <next_file_handler,
260 next_poll_fds_index>: New fields.
261 (get_next_file_handler_to_handle_and_advance): New function.
262 (delete_file_handler): If deleting the next file handler to
263 handle, advance to the next file handler.
264 (gdb_wait_for_event): Bail early if no event fired. Poll file
265 handlers in round-robin fashion.
267 2015-05-15 Pedro Alves <palves@redhat.com>
269 * linux-tdep.c (linux_find_memory_regions_full): Rename local
272 2015-05-15 Pedro Alves <palves@redhat.com>
274 * nat/linux-nat.h: Include "target/waitstatus.h".
276 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
278 * python/py-unwind.c (struct reg_info): Move out of ...
279 (struct cached_frame_info): ... this scope.
280 (pending_frame_object_type, unwind_info_object_type): Make extern.
282 2015-05-15 Joel Brobecker <brobecker@adacore.com>
284 * ada-lang.c (ada_value_primitive_packed_val): Make sure
285 accumSize is never negative.
287 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
289 * tui/tui-command.c: Remove include of <ctype.h>.
290 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
292 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
294 * dwarf2read.c (die_needs_namespace): Return 1 for
295 DW_TAG_inlined_subroutine.
297 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
299 * regcache.c (regcache_cpy_no_passthrough): New declaration.
300 (regcache_cpy_no_passthrough): Make it static, add function comment.
301 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
302 (regcache_cpy_no_passthrough): Remove declaration.
304 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
306 * gdbthread.h (struct thread_control_state): Update comment for
308 * infcall.c (run_inferior_call): Update comment about
310 * infcmd.c (get_return_value): Update comment about stop_registers.
311 (finish_forward): Update comment about proceed_to_finish.
312 * infrun.c (stop_registers): Remove.
313 (clear_proceed_status, normal_stop): Remove stop_registers handling.
314 * infrun.h (stop_registers): Remove.
316 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
318 * infcall.c (struct dummy_frame_context_saver)
319 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
320 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
321 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
323 (call_function_by_hand_dummy): Move discard_cleanups of
324 inf_status_cleanup before dummy_frame_push. Call
325 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
326 Use dummy_frame_context_saver_get_regs instead of stop_registers.
327 * infcall.h (struct dummy_frame_context_saver)
328 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
329 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
331 * infcmd.c: Include infcall.h.
332 (get_return_value): Add parameter ctx_saver, use it instead of
334 (print_return_value): Add parameter ctx_saver, pass it.
335 (struct finish_command_continuation_args): Add field ctx_saver.
336 (finish_command_continuation): Update print_return_value caller.
337 (finish_command_continuation_free_arg): Free also ctx_saver.
338 (finish_forward): Call dummy_frame_context_saver_setup.
339 * inferior.h (struct dummy_frame_context_saver): New declaration.
340 (get_return_value): Add parameter ctx_saver.
341 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
342 get_return_value caller.
344 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
346 * dummy-frame.c (struct dummy_frame_dtor_list): New.
347 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
348 (remove_dummy_frame): Process dtor_list.
349 (pop_dummy_frame): Process dtor_list.
350 (register_dummy_frame_dtor): Maintain dtor_list.
351 (find_dummy_frame_dtor): Handle dtor_list.
352 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
355 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
357 * compile/compile-object-run.c (do_module_cleanup): Add parameter
359 (compile_object_run): Update do_module_cleanup caller.
360 * dummy-frame.c: Include infcall.h.
361 (struct dummy_frame): Update dtor comment.
362 (remove_dummy_frame): Call dtor.
363 (pop_dummy_frame): Update dtor caller.
364 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
367 2015-05-13 Joel Brobecker <brobecker@adacore.com>
371 2015-05-13 Joel Brobecker <brobecker@adacore.com>
373 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
374 Xmethods now being able to specify a result type to that new
377 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
379 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
380 first before resizing the window.
381 * tui/tui.c (tui_enable): Likewise.
383 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
385 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
386 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
387 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
388 dummy_dtor parameter.
389 * infcall.h: Include dummy-frame.h.
390 (call_function_by_hand_dummy_dtor_ftype): Remove.
391 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
394 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
397 * top.c (history_size_setshow_var): Change type to signed.
398 Initialize to -2. Update documentation.
399 (set_readline_history_size): Define.
400 (set_history_size_command): Use it. Remove logic for handling
402 (init_history): Use set_readline_history_size(). Test for a
403 value of -2 instead of 0 when determining whether to set a
404 default history size.
405 (init_main): Decode the argument of the "size" command as a
408 2015-05-12 Doug Evans <dje@google.com>
410 * dwarf2read.c (struct file_entry): Tweak comments.
411 (get_debug_line_section): Tweak comments.
413 2015-05-12 Don Breazeal <donb@codesourcery.com>
415 * NEWS: Announce fork support in the RSP and support
416 for fork debugging in extended mode.
418 2015-05-12 Don Breazeal <donb@codesourcery.com>
420 * remote.c (remote_insert_fork_catchpoint): New function.
421 (remote_remove_fork_catchpoint): New function.
422 (remote_insert_vfork_catchpoint): New function.
423 (remote_remove_vfork_catchpoint): New function.
424 (pending_fork_parent_callback): New function.
425 (remove_new_fork_child): New function.
426 (remote_update_thread_list): Call remote_notif_get_pending_events
427 and remove_new_fork_child.
428 (extended_remote_kill): Kill fork child when killing the
429 parent before follow_fork completes.
430 (init_extended_remote_ops): Initialize target vector with
431 new fork catchpoint functions.
433 2015-05-12 Don Breazeal <donb@codesourcery.com>
435 * remote.c (remove_vfork_event_p): New function.
436 (remote_follow_fork): Add vfork event type to event checking.
437 (remote_parse_stop_reply): New stop reasons "vfork" and
438 "vforkdone" for RSP 'T' Stop Reply Packet.
440 2015-05-12 Don Breazeal <donb@codesourcery.com>
442 * linux-nat.c (linux_nat_ptrace_options): New function.
443 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
444 Call linux_nat_ptrace_options and use different argument to
445 linux_enable_event_reporting.
446 (_initialize_linux_nat): Delete call to
447 linux_ptrace_set_additional_flags.
448 * nat/linux-ptrace.c (current_ptrace_options): Rename to
449 supported_ptrace_options.
450 (additional_flags): Delete variable.
451 (linux_check_ptrace_features): Use supported_ptrace_options.
452 (linux_test_for_tracesysgood, linux_test_for_tracefork):
453 Likewise, and remove additional_flags check.
454 (linux_enable_event_reporting): Change 'attached' argument to
455 'options'. Use supported_ptrace_options.
456 (ptrace_supports_feature): Change comment. Use
457 supported_ptrace_options.
458 (linux_ptrace_set_additional_flags): Delete function.
459 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
460 Delete function prototype.
461 * remote.c (remote_fork_event_p): New function.
462 (remote_detach_pid): New function.
463 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
464 if doing detach-on-fork.
465 (remote_follow_fork): New function.
466 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
467 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
468 (init_extended_remote_ops): Initialize to_follow_fork.
470 2015-05-12 Don Breazeal <donb@codesourcery.com>
472 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
473 from static to extern.
474 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
475 * remote.c (anonymous enum): <PACKET_fork_event_feature,
476 * PACKET_vfork_event_feature>: New enumeration constants.
477 (remote_protocol_features): Add table entries for new packets.
478 (remote_query_supported): Add new feature queries to qSupported
481 2015-05-12 Gary Benson <gbenson@redhat.com>
483 * remote.c (remote_add_inferior): Call exec_file_locate_attach
484 for fake PIDs as well as real ones.
485 (remote_pid_to_exec_file): Send empty annex if PID is fake.
487 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
489 * NEWS (Python Scripting): Mention the new gdb.Value methods.
490 * python/py-value.c (valpy_reference_value): New function.
491 (valpy_const_value): Likewise.
492 (value_object_methods): Add new methods.
493 * value.c (make_cv_value): New function.
494 * value.h (make_cv_value): Declare.
496 2015-05-08 Yao Qi <yao@codesourcery.com>
497 Sandra Loosemore <sandra@codesourcery.com>
499 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
500 to 'lh->include_dirs' before accessing to it.
501 (psymtab_include_file_name): Likewise.
502 (dwarf_decode_lines_1): Likewise.
503 (dwarf_decode_lines): Likewise.
504 (file_file_name): Likewise.
506 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
508 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
509 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
510 (nios2_linux_rt_sigreturn_init): Adjust base address of
513 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
515 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
516 "trap 31" as the breakpoint instruction on all targets.
518 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
520 * infcmd.c (print_return_value): Remove unused declaration.
522 2015-05-08 Joel Brobecker <brobecker@adacore.com>
524 * dwarf2read.c (attr_to_dynamic_prop)
525 <DW_AT_data_member_location>: Use read_type_die isntead of
528 2015-05-08 Joel Brobecker <brobecker@adacore.com>
530 * ada-lang.c (ada_convert_actual): Add handling of formals
531 passed inside an aligner type.
533 2015-05-08 Joel Brobecker <brobecker@adacore.com>
535 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
537 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
540 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
541 Print xmethod matcher status.
543 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
545 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
546 register in the regcache when treating the PSWM register, and vice
549 2015-05-07 Gary Benson <gbenson@redhat.com>
551 * linux-thread-db.c (struct thread_db_info)
552 <td_ta_map_id2thr_p>: Remove field.
553 (try_thread_db_load_1): Remove initialization for the above.
555 2015-05-07 Gary Benson <gbenson@redhat.com>
557 * linux-thread-db.c (struct thread_db_info)
558 <td_thr_validate_p>: Remove field.
559 (try_thread_db_load_1): Remove initialization for the above.
561 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
563 * compile/compile-object-load.c (compile_object_load): Support
566 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
568 * compile/compile.c (compile_to_object): Make the cmd_string parameter
569 const. Use new variables for the const compatibility.
570 (eval_compile_command): Make the cmd_string parameter const.
571 * compile/compile.h (eval_compile_command): Make the cmd_string
574 2015-05-06 Joel Brobecker <brobecker@adacore.com>
576 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
578 * top.c (deprecated_init_ui_hook): Delete.
579 (gdb_init): Remove handling of deprecated_init_ui_hook.
580 * interps.c (clear_interpreter_hooks): Remove handling of
581 deprecated_init_ui_hook.
582 * main.c (captured_main): Update comment.
584 2015-05-06 Joel Brobecker <brobecker@adacore.com>
586 * solib.c (_initialize_solib): Add "info dll" alias creation.
587 * windows-nat.c (set_windows_aliases): Delete.
588 (_initialize_windows_nat): Remove deprecated_init_ui_hook
590 * NEWS: Add news entry about "info dll" now being available
593 2015-05-05 Joel Brobecker <brobecker@adacore.com>
595 * ada-lang.c (value_assign_to_component): Reformat and improve
596 documentation. Remove all trailing spaces.
598 2015-05-05 Joel Brobecker <brobecker@adacore.com>
600 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
601 Stop counting inlined frames as soon as an out-of-line function
604 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
606 * dwarf2read.c (inherit_abstract_dies): Skip
607 DW_TAG_GNU_call_site dies while inheriting children of an
608 abstract DIE into a scope.
609 (read_lexical_block_scope): Inherit abstract DIE's for
612 2015-05-05 Joel Brobecker <brobecker@adacore.com>
614 * ada-valprint.c (val_print_packed_array_elements): Delete
615 variable "len". Add a type-length check when comparing two
616 consecutive elements of the array. Use the element's actual
617 length in call to value_contents_eq.
618 * ada-lang.c (ada_value_primitive_packed_val): Always return
619 a value whose type has been resolved.
621 2015-05-05 Joel Brobecker <brobecker@adacore.com>
623 * ada-lang.c (ada_value_primitive_packed_val): Recompute
624 BIT_SIZE and LEN if the size of the resolved type is smaller
625 than BIT_SIZE * HOST_CHAR_BIT.
627 2015-05-05 Joel Brobecker <brobecker@adacore.com>
629 * ada-lang.c (ada_value_primitive_packed_val): Use a more
630 correct address in call to value_at. Adjust call to
631 value_address accordingly.
633 2015-05-05 Joel Brobecker <brobecker@adacore.com>
635 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
638 2015-05-05 Joel Brobecker <brobecker@adacore.com>
640 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
641 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
643 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
644 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
645 (resolve_dynamic_type_internal): Set pinfo.valaddr.
646 Add handling of addr_stack->valaddr.
647 (resolve_dynamic_type): Add "valaddr" parameter.
648 Set pinfo.valaddr field.
649 * ada-lang.c (ada_discrete_type_high_bound): Update call to
650 resolve_dynamic_type.
651 (ada_discrete_type_low_bound): Likewise.
652 * findvar.c (default_read_var_value): Likewise.
653 * value.c (value_from_contents_and_address): Likewise.
655 2015-05-05 Joel Brobecker <brobecker@adacore.com>
657 * gdbtypes.c (resolve_dynamic_array): Use
658 create_array_type_with_stride instead of create_array_type.
660 2015-04-30 DJ Delorie <dj@redhat.com>
662 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
665 2015-04-29 Doug Evans <dje@google.com>
668 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
669 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
670 EVAL_AVOID_SIDE_EFFECTS for xmethods.
671 * extension-priv.h (struct extension_language_ops)
672 <get_xmethod_result_type>: New member.
673 * extension.c (get_xmethod_result_type): New function.
674 * extension.h (get_xmethod_result_type): Declare.
675 * python/py-xmethods.c (get_result_type_method_name): New static
677 (py_get_result_type_method_name): Ditto.
678 (gdbpy_get_xmethod_result_type): New function.
679 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
680 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
681 * python/python.c (python_extension_ops): Add
682 gdbpy_get_xmethod_result_type.
683 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
684 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
686 (value_x_unop): Ditto.
687 * value.c (result_type_of_xmethod): New function.
688 * value.h (result_type_of_xmethod): Declare.
690 2015-04-29 Gary Benson <gbenson@redhat.com>
692 * solib.c (solib_find_1): Allow fd argument to be NULL.
693 (exec_file_find): Update comment.
694 (solib_find): Likewise.
695 * exec.c (exec_file_locate_attach): Use NULL as fd
696 argument to exec_file_find to avoid having to close
698 * infrun.c (follow_exec): Likewise.
700 2015-04-28 Doug Evans <dje@google.com>
703 * python/lib/gdb/printing.py (register_pretty_printer): Handle
704 name or __name__ attributes. Handle gdb module as first argument.
706 2015-04-28 Doug Evans <dje@google.com>
709 * python/py-prettyprint.c (print_children): Verify result of children
710 iterator. Provide better error message.
711 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
712 * python/python.c (gdbpy_print_python_errors_p): New function.
714 2015-04-28 Doug Evans <dje@google.com>
716 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
718 2015-04-28 Sasha Smundak <asmundak@google.com>
720 * NEWS: Mention gdb.Type.optimized_out method.
721 * python/py-type.c (typy_optimized_out): New function.
723 2015-04-28 John Baldwin <jhb@FreeBSD.org>
725 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
727 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
729 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
730 (initialize_utils): Move call of init_page_info() to ...
731 * top.c (gdb_init): ... here.
733 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
735 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
736 (tui_sigwinch_handler): Still update our idea of
737 the terminal's width and height even when TUI is not active.
739 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
741 * utils.h (set_screen_width_and_height): Declare.
742 * utils.c (set_screen_width_and_height): Define.
743 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
745 2015-04-28 Gary Benson <gbenson@redhat.com>
747 * infrun.c (solist.h): New include.
748 (follow_exec): Use exec_file_find to prefix execd_pathname
751 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
753 * tui/tui-source.c (tui_set_source_content): Avoid calling
754 strcpy() when offset is 0.
756 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
759 * tui/tui-data.c (tui_free_window): Don't free the locator
760 window when passed an SRC_WIN or a DISASSEM_WIN.
762 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
764 * tui/tui-data.h (struct tui_win_element): Forward-declare.
765 (tui_win_content): Move declaration.
766 (struct tui_gen_win_info): Give 'content' field the
767 type tui_win_content.
768 * tui/tui-data.c (init_content_element): Remove redundant and
770 (tui_add_content_elements): Remove erroneous cast.
771 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
773 (tui_get_begin_asm_address): Likewise.
774 * tui/tui-regs.c (tui_show_registers): Likewise.
775 (tui_show_register_group): Likewise.
776 (tui_display_registers_from): Likewise.
777 (tui_check_register_values): Likewise.
778 * tui/tui-source.c (tui_set_source_content): Likewise.
779 (tui_set_source_content_nil): Likewise.
780 (tui_source_is_displayed): Likewise.
781 * tui/tui-stack.c (tui_show_locator_content): Likewise.
782 (tui_set_locator_fullname): Likewise.
783 (tui_set_locator_info): Likewise.
784 (tui_show_frame_info): Likewise.
785 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
786 (tui_show_source_line): Likewise.
787 (tui_horizontal_source_scroll): Likewise.
788 (tui_update_breakpoint_info): Likewise.
789 (tui_set_exec_info_content): Likewise.
790 (tui_show_exec_info_content): Likewise.
791 (tui_alloc_source_buffer): Likewise.
792 (tui_line_is_displayed): Likewise.
793 (tui_addr_is_displayed): Likewise.
795 2015-04-27 John Baldwin <jhb@FreeBSD.org>
797 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
798 event if PL_FLAG_EXEC is set.
799 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
800 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
801 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
802 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
803 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
805 2015-04-27 John Baldwin <jhb@FreeBSD.org>
807 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
808 [TDP_RFPPWAIT] New variable fbsd_pending_children.
809 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
810 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
811 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
812 [PT_LWPINFO] (fbsd_wait): New function.
813 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
814 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
815 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
816 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
817 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
818 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
819 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
820 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
821 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
823 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
824 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
825 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
826 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
827 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
828 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
829 Set "to_post_attach" to "fbsd_post_attach".
831 2015-04-27 John Baldwin <jhb@FreeBSD.org>
833 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
834 (fbsd_find_memory_regions): Mark static.
835 (fbsd_nat_add_target): New function.
836 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
837 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
838 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
839 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
840 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
841 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
843 2015-04-27 Gary Benson <gbenson@redhat.com>
845 * objfiles.c (allocate_objfile): Do not attempt to expand name
846 if name is a "target:" filename.
847 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
848 to load auto-load scripts for objfiles with "target:" filenames.
850 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
853 (enum s390_vector_abi_kind): New enum.
854 (struct gdbarch_tdep)<vector_abi>: New field.
855 (s390_effective_inner_type): Add parameter min_size. Stop
856 unwrapping if the inner type is smaller than min_size.
857 (s390_function_arg_float): Adjust call to
858 s390_effective_inner_type.
859 (s390_function_arg_vector): New function.
860 (s390_function_arg_integer): Adjust comment.
861 (struct s390_arg_state)<vr>: New field.
862 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
863 arguments according to vector ABI when appropriate.
864 (s390_push_dummy_call): Initialize the argument state's field
865 'vr'. Adjust calls to s390_handle_arg.
866 (s390_register_return_value): Handle vector return values.
867 (s390_return_value): Apply the "register" return value convention
868 to a vector when appropriate.
869 (s390_gdbarch_init): Initialize tdep->vector_abi.
870 * NEWS: Announce S390 vector ABI support.
872 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
874 * s390-linux-tdep.c (s390_return_value_convention): Remove
875 function. Inline its logic...
876 (s390_return_value): ...here. Instead, move the handling of the
877 "register" return value convention...
878 (s390_register_return_value): ...here. New function.
880 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
883 (is_float_singleton): Remove function. Move the "singleton" part
885 (s390_effective_inner_type): ...here. New function.
886 (is_float_like): Remove function. Inline its logic...
887 (s390_function_arg_float): ...here.
888 (is_pointer_like, is_integer_like, is_struct_like): Remove
889 functions. Inline their logic...
890 (s390_function_arg_integer): ...here.
891 (s390_function_arg_pass_by_reference): Remove function.
892 (extend_simple_arg): Remove function.
893 (alignment_of): Remove function.
894 (struct s390_arg_state): New structure.
895 (s390_handle_arg): New function.
896 (s390_push_dummy_call): Move parameter placement logic to the new
897 function s390_handle_arg. Call it for calculating the stack area
898 sizes first, and again for actually writing the parameters.
900 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
902 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
903 false if the argument is zero.
905 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
907 * ada-lang.c (template_to_static_fixed_type): Return input type
908 when it is already fixed. Cache the input type itself when not
909 creating a static fixed copy. Make it explicit that we never
910 molestate the input type.
911 * gdbtypes.c (resolve_dynamic_struct): Reset the
912 TYPE_TARGET_TYPE field for resolved copies.
914 2015-04-27 Joel Brobecker <brobecker@adacore.com>
916 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
917 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
918 (template_to_static_fixed_type): Call ada_check_typedef only
921 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
923 * cli/cli-dump.c (srec_dump_command): Add internationalization
925 (ihex_dump_command): Likewise.
926 (tekhex_dump_command): Likewise.
927 (binary_dump_command): Likewise.
928 (binary_append_command): Likewise.
930 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
932 * cli/cli-dump.c (verilog_cmdlist): New variable.
933 (dump_verilog_memory): New function.
934 (dump_verilog_value): New function.
935 (verilog_dump_command): New function.
936 (_initialize_cli_dump): Add new commands to support verilog dump
938 * NEWS: Add entry for "dump verilog".
940 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
942 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
943 descriptive type when there is none.
945 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
947 * tui/tui-win.c (tui_async_resize_screen): Call
948 rl_resize_terminal().
950 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
952 * windows-nat.c (handle_output_debug_string): Don't change
953 current_event.dwThreadId.
954 (get_windows_debug_event): Use thread_id, rather than relying on
955 current_event.dwThreadId being changed.
957 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
959 * windows-nat.c (windows_continue): Report an error if
960 ContinueDebugEvent() fails.
962 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
964 * windows-nat.c (windows_resume): Fix misspelling in debug output.
966 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
968 * windows-nat.c (get_windows_debug_event): Replace retval with
969 thread_id throughout. Update stale comment.
971 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
973 * windows-nat.c (get_windows_debug_event): Don't use ternary
974 conditional operator.
976 2015-04-21 Pierre Muller <muller@sourceware.org>
979 p-exp.y (yylex): Reorganize code to return the matched pattern
982 2015-04-21 Gary Benson <gbenson@redhat.com>
984 * common/fileio.h (fileio_to_host_openflags): New declaration.
985 * common/fileio.c (fcntl.h): New include.
986 (fileio_to_host_openflags): New function, factored out from...
987 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
990 2015-04-21 Kevin Buettner <kevinb@redhat.com>
992 * rl78-tdep.c (RL78_SP_ADDR): Define.
993 (opc_reg_to_gdb_regnum): New static function.
994 (rl78_analyze_prologue): Recognize instructions forming slightly
995 more interesting prologues.
997 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1000 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1001 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1002 TYPE_CODE_REF types so that they are not considered as dynamic
1003 depending on the referenced type.
1004 (resolve_dynamic_type_internal): Likewise.
1006 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1009 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1010 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1011 "top_level" parameter.
1012 (resolve_dynamic_type_internal): Remove the unused "top_level"
1013 parameter. Update call to is_dynamic_type_internal.
1014 (is_dynamic_type): Update call to is_dynamic_type_internal.
1015 (resolve_dynamic_range): Update call to
1016 resolve_dynamic_type_internal.
1017 (resolve_dynamic_union): Likewise.
1018 (resolve_dynamic_struct): Likewise.
1019 (resolve_dynamic_type): Likewise.
1021 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
1023 * breakpoint.c (update_dprintf_command_list): Remove duplicated
1026 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
1028 * reply_mig_hack.awk: Robustify parsing.
1030 * reply_mig_hack.awk: Don't bother to declare an intermediate
1031 function pointer variable.
1033 2015-04-17 Doug Evans <dje@google.com>
1035 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
1036 to "exec_displacement" to avoid confusion with inner use of the name.
1038 2015-04-17 Pedro Alves <palves@redhat.com>
1040 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
1041 if HW point of TYPE isn't supported.
1043 2015-04-17 Yao Qi <yao.qi@linaro.org>
1044 Pedro Alves <palves@redhat.com>
1046 * target.h (target_can_use_hardware_watchpoint): Update comments.
1047 Remove trailing ";".
1049 2015-04-17 Gary Benson <gbenson@redhat.com>
1051 * remote.c (remote_add_inferior): New argument try_open_exec.
1052 If nonzero, attempt to open the inferior's executable file as
1053 the main executable if no main executable is open already.
1054 All callers updated.
1055 * NEWS: Mention that GDB now supports automatic location and
1056 retrieval of executable + files from remote targets.
1058 2015-04-17 Gary Benson <gbenson@redhat.com>
1060 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
1061 * remote.c (PACKET_qXfer_exec_file): Likewise.
1062 (remote_protocol_features): Register the
1063 "qXfer:exec-file:read" feature.
1064 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
1065 (remote_pid_to_exec_file): New function.
1066 (init_remote_ops): Initialize to_pid_to_exec_file.
1067 (_initialize_remote): Register new "set/show remote
1068 pid-to-exec-file-packet" command.
1069 * NEWS: Announce new qXfer:exec-file:read packet.
1071 2015-04-17 Gary Benson <gbenson@redhat.com>
1073 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
1075 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
1076 New function, factored out from...
1077 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
1079 2015-04-17 Gary Benson <gbenson@redhat.com>
1081 * exec.c (solist.h): New include.
1082 (exec_file_locate_attach): Prefix absolute executable
1083 paths with gdb_sysroot if set.
1084 * NEWS: Mention that executable paths may be prepended
1087 2015-04-17 Gary Benson <gbenson@redhat.com>
1089 * solist.h (exec_file_find): New declaration.
1090 * solib.c (solib_find_1): New function, factored out from...
1091 (solib_find): ...here.
1092 (exec_file_find): New function.
1094 2015-04-17 Gary Benson <gbenson@redhat.com>
1096 * gdbcore.h (exec_file_locate_attach): New declaration.
1097 * exec.c (exec_file_locate_attach): New function, factored
1099 * infcmd.c (attach_command_post_wait): ...here.
1101 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1103 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
1105 2015-04-16 Yao Qi <yao.qi@linaro.org>
1107 * infrun.c (maybe_software_singlestep): Declare.
1108 (displaced_step_fixup): Call maybe_software_singlestep.
1110 2015-04-15 Doug Evans <dje@google.com>
1112 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
1114 2015-04-15 Doug Evans <dje@google.com>
1116 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
1118 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
1120 * python/lib/gdb/command/unwinders.py: Add parentheses.
1122 2015-04-15 Yao Qi <yao.qi@linaro.org>
1124 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
1126 2015-04-15 Yao Qi <yao.qi@linaro.org>
1128 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
1130 2015-04-15 Yao Qi <yao.qi@linaro.org>
1132 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1133 dsc->insn_size instead of 4.
1135 2015-04-14 Gary Benson <gbenson@redhat.com>
1137 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
1138 * minidebug.c (lzma_stat): Likewise.
1139 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
1140 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
1142 2015-04-13 Stan Shebs <stanshebs@google.com>
1144 * MAINTAINERS: Update my email address.
1146 2015-04-13 John Baldwin <jhb@FreeBSD.org>
1148 * amd64-tdep.c (amd64_target_description): New function.
1149 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
1150 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
1151 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1152 x86 extended save area.
1153 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1154 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
1155 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
1156 (_initialize_amd64fbsd_nat): Set "to_read_description" to
1157 "amd64fbsd_read_description".
1158 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
1159 (amd64fbsd_supply_xstateregset): New function.
1160 (amd64fbsd_collect_xstateregset): New function.
1161 Add "amd64fbsd_xstateregset".
1162 (amd64fbsd_iterate_over_regset_sections): New function.
1163 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
1164 "I386_FBSD_XSAVE_XCR0_OFFSET".
1165 Add "iterate_over_regset_sections" gdbarch method.
1166 Add "core_read_description" gdbarch method.
1167 * i386-tdep.c (i386_target_description): New function.
1168 * i386-tdep.h: Export i386_target_description and tdesc_i386.
1169 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
1170 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1171 x86 extended save area.
1172 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1173 * i386bsd-nat.h: Export i386bsd_xsave_len.
1174 * i386fbsd-nat.c (i386fbsd_read_description): New function.
1175 (_initialize_i386fbsd_nat): Set "to_read_description" to
1176 "i386fbsd_read_description".
1177 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
1178 (i386fbsd_core_read_description): New function.
1179 (i386fbsd_supply_xstateregset): New function.
1180 (i386fbsd_collect_xstateregset): New function.
1181 Add "i386fbsd_xstateregset".
1182 (i386fbsd_iterate_over_regset_sections): New function.
1183 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
1184 "I386_FBSD_XSAVE_XCR0_OFFSET".
1185 Add "iterate_over_regset_sections" gdbarch method.
1186 Add "core_read_description" gdbarch method.
1187 * i386fbsd-tdep.h: New file.
1189 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1191 * NEWS (Changes since GDB 7.9): Add removed -xdb.
1192 * breakpoint.c (command_line_is_silent): Remove xdb_commands
1194 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
1196 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
1198 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
1200 * defs.h (xdb_commands): Remove declaration.
1201 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
1202 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
1203 * infcmd.c (run_no_args_command, go_command): Remove.
1204 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
1205 * infrun.c (xdb_handle_command): Remove.
1206 (_initialize_infrun): Remove xdb_commands for lz and z.
1207 * main.c (xdb_commands): Remove variable.
1208 (captured_main): Remove "xdb" from long_options.
1209 (print_gdb_help): Remove --xdb from help.
1210 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
1211 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
1212 * stack.c (backtrace_full_command, args_plus_locals_info)
1213 (current_frame_command): Remove.
1214 (_initialize_stack): Remove xdb_commands for t, T and l.
1215 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
1216 * thread.c (_initialize_thread): Remove xdb_commands condition.
1217 * tui/tui-layout.c (tui_toggle_layout_command)
1218 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
1219 (_initialize_tui_layout): Remove xdb_commands for td and ts.
1220 * tui/tui-regs.c (tui_scroll_regs_forward_command)
1221 (tui_scroll_regs_backward_command): Remove.
1222 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
1223 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
1224 (_initialize_tui_win): Remove xdb_commands for U and w.
1225 * utils.c (pagination_on_command, pagination_off_command): Remove.
1226 (initialize_utils): Remove xdb_commands for am and sm.
1228 2015-04-10 Pedro Alves <palves@redhat.com>
1230 * infrun.c (displaced_step_fixup): Switch to the event ptid
1231 earlier. If the thread stopped for a watchpoint and the
1232 target/arch has non-continuable watchpoints, cancel the displaced
1234 (resume): Don't start a displaced step if in-line step-over info
1237 2015-04-10 Pedro Alves <palves@redhat.com>
1239 * infrun.c (displaced_step_in_progress): New function.
1240 (do_target_resume): Advise target to report all signals if
1243 2015-04-10 Pedro Alves <palves@redhat.com>
1246 * infrun.c (process_event_stop_test): Don't assume a step-resume
1247 is set if tp->stepped_breakpoint is true.
1249 2015-04-10 Yao Qi <yao.qi@linaro.org>
1251 * arm-tdep.c (install_alu_reg): Update comment.
1252 (thumb_copy_alu_reg): Remove local variable rn. Update
1253 debugging message. Use r2 instead of r1 in the modified
1256 2015-04-10 Pedro Alves <palves@redhat.com>
1259 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
1260 linux_displaced_step_location as gdbarch_displaced_step_location
1262 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1263 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1264 * linux-tdep.c (linux_displaced_step_location): New function,
1265 based on ppc_linux_displaced_step_location.
1266 * linux-tdep.h (linux_displaced_step_location): New declaration.
1267 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
1268 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
1270 (ppc_linux_init_abi): Install linux_displaced_step_location as
1271 gdbarch_displaced_step_location hook, even without Cell/B.E..
1272 (_initialize_ppc_linux_tdep): Don't install
1273 ppc_linux_inferior_created as inferior_created observer.
1274 * s390-linux-tdep.c (s390_gdbarch_init): Install
1275 linux_displaced_step_location as gdbarch_displaced_step_location
1278 2015-04-09 Gary Benson <gbenson@redhat.com>
1280 * common/common-remote-fileio.h: Rename to...
1281 * common/fileio.h: ...this. Update all references.
1282 (remote_fileio_to_fio_error): Rename to...
1283 (host_to_fileio_error): ...this.
1284 (remote_fileio_to_be): Rename to...
1285 (host_to_bigendian): ...this. Update all callers.
1286 (remote_fileio_to_fio_uint): Rename to...
1287 (host_to_fileio_uint): ...this. Update all callers.
1288 (remote_fileio_to_fio_time): Rename to...
1289 (host_to_fileio_time): ...this. Update all callers.
1290 (remote_fileio_to_fio_stat): Rename to...
1291 (host_to_fileio_stat): ...this.
1292 Update all references.
1293 * common/common-remote-fileio.c: Rename to...
1294 * common/fileio.c: ...this. Update all references.
1295 (remote_fileio_to_fio_error): Rename to...
1296 (host_to_fileio_error): ...this. Update all callers.
1297 (remote_fileio_mode_to_target): Rename to...
1298 (fileio_mode_pack): ...this. Update all callers.
1299 (remote_fileio_to_fio_mode): Rename to...
1300 (host_to_fileio_mode): ...this. Update all callers.
1301 (remote_fileio_to_fio_ulong): Rename to...
1302 (host_to_fileio_ulong): ...this. Update all callers.
1303 (remote_fileio_to_fio_stat): Rename to...
1304 (host_to_fileio_stat): ...this. Update all callers.
1306 2015-04-09 Andy Wingo <wingo@igalia.com>
1308 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
1309 (frame_functions): Bind gdbscm_frame_read_register to
1310 frame-read-register.
1311 * guile/lib/gdb.scm (frame-read-register): Export.
1313 2015-04-09 Gary Benson <gbenson@redhat.com>
1315 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
1317 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
1318 New function, factored out the named functions below.
1319 * inf-child.c (gdb/fileio.h): Remove include.
1320 (common-remote-fileio.h): New include.
1321 (inf_child_errno_to_fileio_error): Remove function. Update
1322 all callers to use remote_fileio_to_fio_error.
1323 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
1325 2015-04-09 Andy Wingo <wingo@igalia.com>
1327 * MAINTAINERS (Write After Approval): Add Andy Wingo.
1329 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1331 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
1332 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
1333 * configure: Regenerated.
1335 2015-04-09 Pedro Alves <palves@redhat.com>
1337 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
1338 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
1339 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
1340 * gnulib/import/Makefile.am: Update.
1341 * gnulib/import/Makefile.in: Update.
1342 * gnulib/import/m4/gnulib-cache.m4: Update.
1343 * gnulib/import/m4/gnulib-comp.m4: Update.
1344 * gnulib/import/m4/strtok_r.m4: New file.
1345 * gnulib/import/strtok_r.c: New file.
1347 2015-04-09 Pedro Alves <palves@redhat.com>
1349 * gnulib/update-gnulib.sh (aclocal version check): Filter out
1350 "called too early to check prototype".
1352 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
1355 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
1356 use a caching mechanism. Adjust comments and code to reflect
1357 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
1358 (cmdpy_completer_handle_brkchars): Adjust call to
1359 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
1360 (cmdpy_completer): Likewise.
1362 2015-04-08 Yao Qi <yao.qi@linaro.org>
1364 * spu-tdep.c (spu_gdbarch_init): Don't call
1365 set_gdbarch_cannot_step_breakpoint.
1367 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
1369 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
1371 2015-04-07 Pedro Alves <palves@redhat.com>
1373 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
1374 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
1375 (delete_exited_threads): New declaration.
1376 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
1377 * linux-nat.c (linux_nat_update_thread_list): New function.
1378 (linux_nat_add_target): Install it.
1379 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
1380 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
1381 (delete_exited_threads): New function.
1383 2015-04-07 Pedro Alves <pedro@codesourcery.com>
1385 * infrun.c (resume) <displaced stepping debug output>: Get the
1386 leader thread's regcache, not resume_ptid's.
1388 2015-04-06 Doug Evans <xdje42@gmail.com>
1390 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
1392 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
1393 Include symbol domain in debugging output.
1395 2015-04-06 Pedro Alves <palves@redhat.com>
1396 Bernd Edlinger <bernd.edlinger@hotmail.de>
1398 * configure.ac: Remove the mingw32-specific stub-termcap.o
1399 fallback, and instead fallback to the stub termcap on all hosts.
1400 * configure: Regenerate.
1401 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
1404 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1406 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1407 "top_level" parameter.
1408 (resolve_dynamic_type_internal): Remove the unused "top_level"
1409 parameter. Update call to is_dynamic_type_internal.
1410 (is_dynamic_type): Update call to is_dynamic_type_internal.
1411 (resolve_dynamic_range): Update call to
1412 resolve_dynamic_type_internal.
1413 (resolve_dynamic_union): Likewise.
1414 (resolve_dynamic_struct): Likewise.
1415 (resolve_dynamic_type): Likewise.
1417 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1419 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1420 TYPE_CODE_REF types so that they are not considered as dynamic
1421 depending on the referenced type.
1422 (resolve_dynamic_type_internal): Likewise.
1424 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
1426 * Makefile.in (top_srcdir): New.
1427 * configure: Regenerated.
1429 2015-04-02 Gary Benson <gbenson@redhat.com>
1431 * NEWS: Announce the new default sysroot of "target:".
1433 2015-04-02 Gary Benson <gbenson@redhat.com>
1435 * main.c (captured_main): Set gdb_sysroot to "target:"
1436 if not otherwise set.
1438 2015-04-02 Gary Benson <gbenson@redhat.com>
1440 * exec.c (exec_file_attach): Support "target:" filenames.
1442 2015-04-02 Gary Benson <gbenson@redhat.com>
1444 * solib.c (solib_find): Strip "target:" prefix from sysroot
1445 if accessing local files.
1447 2015-04-02 Gary Benson <gbenson@redhat.com>
1449 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
1450 checks and error messages.
1452 2015-04-02 Gary Benson <gbenson@redhat.com>
1454 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
1455 (remote_filename_p): Remove declaration.
1456 (remote_bfd_open): Likewise.
1457 * remote.c (remote_bfd_iovec_open): Remove function.
1458 (remote_bfd_iovec_close): Likewise.
1459 (remote_bfd_iovec_pread): Likewise.
1460 (remote_bfd_iovec_stat): Likewise.
1461 (remote_filename_p): Likewise.
1462 (remote_bfd_open): Likewise.
1463 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
1464 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
1465 (gdb_bfd_open_maybe_remote): Remove function.
1466 (symfile_bfd_open): Replace remote filename check with
1467 target filename check.
1468 (reread_symbols): Use gdb_bfd_open.
1469 * build-id.c (gdbcore.h): New include.
1470 (build_id_to_debug_bfd): Use gdb_bfd_open.
1471 * infcmd.c (attach_command_post_wait): Remove remote filename
1473 * solib.c (solib_find): Replace remote-specific handling with
1474 target-specific handling. Update comments where necessary.
1475 (solib_bfd_open): Replace remote-specific handling with
1476 target-specific handling.
1477 (gdb_sysroot_changed): New function.
1478 (_initialize_solib): Call the above when gdb_sysroot changes.
1479 * windows-tdep.c (gdbcore.h): New include.
1480 (windows_xfer_shared_library): Use gdb_bfd_open.
1482 2015-04-02 Gary Benson <gbenson@redhat.com>
1484 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
1485 (is_target_filename): New declaration.
1486 (gdb_bfd_has_target_filename): Likewise.
1487 (gdb_bfd_open): Update documentation comment.
1488 * gdb_bfd.c (target.h): New include.
1489 (gdb/fileio.h): Likewise.
1490 (is_target_filename): New function.
1491 (gdb_bfd_has_target_filename): Likewise.
1492 (fileio_errno_to_host): Likewise.
1493 (gdb_bfd_iovec_fileio_open): Likewise.
1494 (gdb_bfd_iovec_fileio_pread): Likewise.
1495 (gdb_bfd_iovec_fileio_close): Likewise.
1496 (gdb_bfd_iovec_fileio_fstat): Likewise.
1497 (gdb_bfd_open): Use target fileio to access paths prefixed
1498 with "target:" where necessary.
1500 2015-04-02 Gary Benson <gbenson@redhat.com>
1502 * target.h (struct target_ops) <to_filesystem_is_local>:
1504 (target_filesystem_is_local): New macro.
1505 * target-delegates.c: Regenerate.
1506 * remote.c (remote_filesystem_is_local): New function.
1507 (init_remote_ops): Initialize to_filesystem_is_local.
1509 2015-04-02 Gary Benson <gbenson@redhat.com>
1511 * target.h (struct target_ops) <to_fileio_fstat>: New field.
1512 (target_fileio_fstat): New declaration.
1513 * target.c (target_fileio_fstat): New function.
1514 * inf-child.c (inf_child_fileio_fstat): Likewise.
1515 (inf_child_target): Initialize to_fileio_fstat.
1516 * remote.c (init_remote_ops): Likewise.
1518 2015-04-01 Sasha Smundak <asmundak@google.com>
1520 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
1521 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
1522 (py-unwind.o): New recipe.
1523 * NEWS: mention Python frame unwinding.
1524 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
1525 gdb/unwinder.py and gdb/command/unwinder.py
1526 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
1528 (execute_unwinders): New function.
1529 * python/lib/gdb/command/unwinders.py: New file.
1530 * python/lib/gdb/unwinder.py: New file.
1531 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
1532 (objfpy_dealloc): Decrement frame_unwinders reference count.
1533 (objfpy_initialize): Create frame_unwinders list.
1534 (objfpy_get_frame_unwinders): New function.
1535 (objfpy_set_frame_unwinders): Ditto.
1536 (objfile_getset): Add frame_unwinders attribute to Objfile.
1537 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
1538 (pspy_dealloc): Decrement frame_unwinders reference count.
1539 (pspy_initialize): Create frame_unwinders list.
1540 (pspy_get_frame_unwinders): New function.
1541 (pspy_set_frame_unwinders): Ditto.
1542 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
1543 * python/py-unwind.c: New file.
1544 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
1545 (objpy_get_frame_unwinders): New prototype.
1546 (gdbpy_initialize_unwind): New prototype.
1547 * python/python.c (gdbpy_apply_type_printers): Call
1548 gdbpy_initialize_unwind.
1550 2015-04-01 Pedro Alves <palves@redhat.com>
1552 * infrun.c (resume): Check currently_stepping after clearing
1553 stepped_breakpoint, not before.
1555 2015-04-01 Pedro Alves <palves@redhat.com>
1557 * infrun.c (print_target_wait_results): Print all the ptid
1560 2015-04-01 Pedro Alves <palves@redhat.com>
1562 * infrun.c (keep_going): Also discard cleanups if inserting
1565 2015-04-01 Pedro Alves <palves@redhat.com>
1567 * infrun.c (wait_for_inferior): Install the
1568 finish_thread_state_cleanup cleanup across the whole function, not
1569 just around handle_inferior_event.
1571 2015-04-01 Pedro Alves <palves@redhat.com>
1573 * infrun.c (resume) <step past permanent breakpoint>: Use
1576 2015-04-01 Pedro Alves <palves@redhat.com>
1578 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
1580 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
1582 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
1584 2015-04-01 Pedro Alves <palves@redhat.com>
1586 * linux-thread-db.c (record_thread): Readd the thread to gdb's
1587 list if it was marked exited.
1589 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1591 * configure: Regenerated.
1593 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1594 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 Oleg Nesterov <oleg@redhat.com>
1598 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
1599 New enum identifying the various options of the coredump_filter
1601 (struct smaps_vmflags): New struct.
1602 (use_coredump_filter): New variable.
1603 (decode_vmflags): New function.
1604 (mapping_is_anonymous_p): Likewise.
1605 (dump_mapping_p): Likewise.
1606 (linux_find_memory_regions_full): New variables
1607 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
1608 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
1609 parsing of its information. Implement memory mapping filtering
1610 based on its contents.
1611 (show_use_coredump_filter): New function.
1612 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
1613 * NEWS: Mention the possibility of using the
1614 '/proc/PID/coredump_filter' file when generating a corefile.
1615 Mention new command 'set use-coredump-filter'.
1617 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1619 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
1620 read_memory_unsigned_integer.
1622 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1624 * Makefile.in (ZLIB): New.
1625 (ZLIBINC): Likewise.
1626 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
1627 (CLIBS): Add $(ZLIB).
1628 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
1630 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1631 * top.c (print_gdb_configuration): Remove --with-zlib and
1633 * config.in: Regenerated.
1634 * configure: Likewise.
1636 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
1638 * NEWS: Mention info os cpus support.
1639 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
1640 (struct osdata_type): Add cpus entry, reorder the entries in
1643 2015-03-31 Matthias Klose <doko@ubuntu.com>
1645 * compile/compile.c (compile_to_object): Allow triplets with or
1648 2015-03-30 Doug Evans <dje@google.com>
1651 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
1652 klass in VAR_DOMAIN.
1654 2015-03-30 Gary Benson <gbenson@redhat.com>
1656 * remote.c (remote_mourn_1): Remove function. Update all callers
1657 to use remote_mourn.
1658 (extended_remote_mourn_1): Remove function. Update all callers
1659 to use extended_remote_mourn.
1660 (extended_remote_attach_1): Remove function. Update all callers
1661 to use extended_remote_attach.
1663 2015-03-28 James Bowman <james.bowman@ftdichip.com>
1665 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1666 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1667 (ALLDEPFILES): Add ft32-tdep.c.
1668 * configure.tgt: Add FT32 entry.
1669 * ft32-tdep.c: New file, FT32 target-dependent code.
1670 * ft32-tdep.h: New file, FT32 target-dependent code.
1672 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1675 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 * printcmd.c (print_command_1): Move expr variable scope.
1679 2015-03-27 Joel Brobecker <brobecker@adacore.com>
1681 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1683 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1685 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1688 2015-03-26 Joel Brobecker <brobecker@adacore.com>
1690 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1691 exception raised while parsing the probe arguments.
1692 Force parsing to be done using the C language parser.
1693 * expression.h (parse_expression_with_language): Declare.
1694 * parse.c (parse_expression_with_language): New function.
1696 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
1698 * MAINTAINERS (Write After Approval): Add "Jon Turney".
1700 2015-03-26 Andy Wingo <wingo@igalia.com>
1703 * dwarf2read.c (struct partial_die_info): Add has_const_value
1705 (add_partial_symbol): Don't punt on symbols that have const_value
1707 (read_partial_die): Detect DW_AT_const_value.
1709 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1712 * printcmd.c (print_command_1): Move expr variable scope.
1714 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 * printcmd.c (validate_format): Make the parameter cmdname const.
1719 2015-03-26 Don Breazeal <donb@codesourcery.com>
1721 * remote.c (_initialize_remote): Update comment.
1723 2015-03-26 Pedro Alves <palves@redhat.com>
1724 Jon TURNEY <jon.turney@dronecode.org.uk>
1726 * coffread.c (coff_symfile_read): When constructing the name of an
1727 import stub symbol from import symbol for amd64, only skip the
1728 char after _imp_ if the target is underscored (like i386) and the
1729 char is indeed the target's leading char.
1731 2015-03-25 Pedro Alves <palves@redhat.com>
1733 * target.h <to_async>: Replace 'callback' and 'context' parameters
1734 with boolean 'enable' parameter.
1735 (target_async): Replace CALLBACK and CONTEXT parameters with
1736 boolean ENABLE parameter.
1737 * inf-loop.c (inferior_event_handler): Adjust.
1738 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1739 (linux_nat_resume): Adjust.
1740 (async_client_callback, async_client_context): Delete.
1741 (handle_target_event): Call inferior_event_handler directly.
1742 (linux_nat_async): Replace 'callback' and 'context' parameters
1743 with boolean 'enable' parameter. Adjust. Remove references to
1744 async_client_callback and async_client_context.
1745 (linux_nat_close): Adjust.
1746 * record-btrace.c (record_btrace_async): Replace 'callback' and
1747 'context' parameters with boolean 'enable' parameter. Adjust.
1748 (record_btrace_resume): Adjust.
1749 * record-full.c (record_full_async): Replace 'callback' and
1750 'context' parameters with boolean 'enable' parameter. Adjust.
1751 (record_full_resume, record_full_core_resume): Adjust.
1752 * remote.c (struct remote_state) <async_client_callback,
1753 async_client_context>: Delete fields.
1754 (remote_start_remote, extended_remote_attach_1, remote_resume)
1755 (extended_remote_create_inferior): Adjust.
1756 (remote_async_serial_handler): Call inferior_event_handler
1758 (remote_async): Replace 'callback' and 'context' parameters with
1759 boolean 'enable' parameter. Adjust.
1760 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1762 * target-delegates.c: Regenerate.
1764 2015-03-25 Gary Benson <gbenson@redhat.com>
1765 Pedro Alves <palves@redhat.com>
1767 * target.c (fileio_ft_t): New typedef, define object vector.
1768 (fileio_fhandles): New static variable.
1769 (is_closed_fileio_fh): New macro.
1770 (lowest_closed_fd): New static variable.
1771 (acquire_fileio_fd): New function.
1772 (release_fileio_fd): Likewise.
1773 (fileio_fd_to_fh): New macro.
1774 (target_fileio_open): Wrap the file descriptor on success.
1775 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1776 (target_fileio_pread): Likewise.
1777 (target_fileio_close): Likewise.
1779 2015-03-24 Pedro Alves <palves@redhat.com>
1781 * thread.c (thread_apply_all_command): Take exited threads into
1784 2015-03-24 Pedro Alves <palves@redhat.com>
1786 * infrun.c (resume, proceed): Mention
1787 switch_back_to_stepped_thread, not switch_back_to_stepping.
1789 2015-03-24 Pedro Alves <palves@redhat.com>
1791 * infrun.c (user_visible_resume_ptid): Rewrite going from
1792 most-locked to unlocked instead of the opposite. Move comment ...
1793 * infrun.h (user_visible_resume_ptid): ... here.
1795 2015-03-24 Pedro Alves <palves@redhat.com>
1797 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1798 to resume the event lwp. Use the lwp's ptid instead of the passed
1799 in (maybe wildcard) ptid.
1800 (stop_wait_callback): Tweak debug log output.
1801 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1803 (linux_nat_filter_event): In debug output, distinguish a
1804 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1805 before trying to resume the lwp.
1807 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1809 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1810 pointer indirection.
1811 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1812 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1814 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1816 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1817 Renames DYN_ATTR_DATA_LOCATION.
1818 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1819 DYN_ATTR_DATA_LOCATION.
1820 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1821 instead of DYN_ATTR_DATA_LOCATION.
1823 2015-03-24 Pedro Alves <palves@redhat.com>
1825 * breakpoint.c (until_break_command): Adjust call to proceed.
1826 * gdbthread.h (struct thread_control_state) <stepping_command>:
1828 * infcall.c (run_inferior_call): Adjust call to proceed.
1829 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1830 Adjust calls to proceed.
1831 (set_step_frame): Set the current thread's step_start_function
1833 (step_once): Adjust calls to proceed.
1834 (jump_command, signal_command, until_next_command)
1835 (finish_backward, finish_forward, proceed_after_attach_callback)
1836 (attach_command_post_wait): Adjust calls to proceed.
1837 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1838 (do_target_resume): New function, factored out from ...
1839 (resume): ... here. Remove 'step' parameter. Instead, check
1840 currently_stepping to determine whether the thread should be
1842 (proceed): Remove 'step' parameter and don't set the thread's
1843 step_start_function here. Adjust call to 'resume'.
1844 (handle_inferior_event): Adjust calls to 'resume'.
1845 (switch_back_to_stepped_thread): Use do_target_resume instead of
1847 (keep_going): Adjust calls to 'resume'.
1848 * infrun.h (proceed): Remove 'step' parameter.
1850 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1852 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1854 2015-03-24 Pedro Alves <palves@redhat.com>
1856 * gdbthread.h (struct thread_control_state) <stepping_command>:
1858 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1859 the thread's stepping_command field.
1860 * infrun.c (resume): Check the thread's stepping_command flag to
1861 determine which threads should be resumed. Rename 'entry_step'
1863 (clear_proceed_status_thread): Clear 'stepping_command'.
1864 (schedlock_applies): Change parameter type to struct thread_info
1866 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1867 (switch_back_to_stepped_thread): Adjust calls to
1868 'schedlock_applies'.
1869 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1871 2015-03-24 Pedro Alves <palves@redhat.com>
1873 * infrun.c (step_start_function): Delete and ...
1874 * gdbthread.h (struct thread_control_state) <step_start_function>:
1875 ... now a field here.
1876 * infrun.c (clear_proceed_status_thread): Clear the thread's
1877 step_start_function.
1878 (proceed, process_event_stop_test, print_stop_event): Adjust.
1880 2015-03-24 Pedro Alves <palves@redhat.com>
1882 * infrun.c (proceed): No longer handle negative step.
1884 2015-03-24 Gary Benson <gbenson@redhat.com>
1886 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1887 (x86_linux_prepare_to_resume): Likewise.
1888 * x86-linux-nat.c (x86_linux_new_thread):
1889 Moved to nat/x86-linux.c.
1890 (x86_linux_prepare_to_resume): Likewise.
1891 * nat/x86-linux.c (x86_linux_new_thread): New function.
1892 (x86_linux_prepare_to_resume): Likewise.
1894 2015-03-24 Gary Benson <gbenson@redhat.com>
1896 * nat/x86-linux-dregs.h: New file.
1897 * nat/x86-linux-dregs.c: Likewise.
1898 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1899 (x86-linux-dregs.o): New rule.
1900 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1901 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1902 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1903 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1904 (x86_linux_dr_get): Likewise.
1905 (x86_linux_dr_set): Likewise.
1906 (x86_linux_dr_get_addr): Likewise.
1907 (x86_linux_dr_get_control): Likewise.
1908 (x86_linux_dr_get_status): Likewise.
1909 (update_debug_registers_callback): Likewise.
1910 (x86_linux_dr_set_control): Likewise.
1911 (x86_linux_dr_set_addr): Likewise.
1912 (x86_linux_update_debug_registers): Likewise.
1914 2015-03-24 Gary Benson <gbenson@redhat.com>
1916 * x86-linux-nat.c (x86_linux_update_debug_registers):
1917 New function, factored out from...
1918 (x86_linux_prepare_to_resume): ...this.
1920 2015-03-24 Gary Benson <gbenson@redhat.com>
1922 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1923 (x86_linux_dr_set): Likewise.
1924 (x86_linux_dr_get_addr): Likewise.
1925 (x86_linux_dr_get_control): Likewise.
1926 (x86_linux_dr_get_status): Likewise.
1927 (update_debug_registers_callback): Likewise.
1928 (x86_linux_dr_set_control): Likewise.
1929 (x86_linux_dr_set_addr): Likewise.
1930 (x86_linux_prepare_to_resume): Likewise.
1931 (x86_linux_new_thread): Likewise.
1933 2015-03-24 Gary Benson <gbenson@redhat.com>
1935 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1936 (x86_linux_new_thread): Rename argument.
1938 2015-03-24 Gary Benson <gbenson@redhat.com>
1940 * nat/x86-linux.h: New file.
1941 * nat/x86-linux.c: Likewise.
1942 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1943 (x86-linux.o): New rule.
1944 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1945 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1946 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1947 (lwp_set_arch_private_info): New declaration.
1948 (lwp_arch_private_info): Likewise.
1949 * linux-nat.c (lwp_set_arch_private_info): New function.
1950 (lwp_arch_private_info): Likewise.
1951 * x86-linux-nat.c: Include nat/x86-linux.h.
1952 (arch_lwp_info): Removed structure.
1953 (update_debug_registers_callback):
1954 Use lwp_set_debug_registers_changed.
1955 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1956 and lwp_set_debug_registers_changed.
1957 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1959 2015-03-24 Gary Benson <gbenson@redhat.com>
1961 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1962 (lwp_is_stopped): Likewise.
1963 (lwp_stop_reason): Likewise.
1964 * linux-nat.c (ptid_of_lwp): New function.
1965 (lwp_is_stopped): Likewise.
1966 (lwp_is_stopped_by_watchpoint): Likewise.
1967 * x86-linux-nat.c (update_debug_registers_callback):
1969 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1972 2015-03-24 Gary Benson <gbenson@redhat.com>
1974 * linux-nat.h (linux_stop_lwp): Move declaration to...
1975 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1977 2015-03-24 Gary Benson <gbenson@redhat.com>
1979 * linux-nat.h: Include nat/linux-nat.h.
1980 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1981 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1982 (iterate_over_lwps_ftype): New typedef.
1983 (iterate_over_lwps): New declaration.
1984 * linux-nat.h (iterate_over_lwps): Update comment. Use
1985 iterate_over_lwps_ftype. Update callback return value check.
1987 2015-03-24 Gary Benson <gbenson@redhat.com>
1989 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1990 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1992 2015-03-24 Gary Benson <gbenson@redhat.com>
1994 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1995 * linux-nat.c (current_lwp_ptid): New function.
1996 * x86-linux-nat.c: Include nat/linux-nat.h.
1997 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1998 (x86_linux_dr_get_control): Likewise.
1999 (x86_linux_dr_get_status): Likewise.
2000 (x86_linux_dr_set_control): Likewise.
2001 (x86_linux_dr_set_addr): Likewise.
2003 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
2005 PR breakpoints/16466
2006 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
2008 2015-03-23 Joel Brobecker <brobecker@adacore.com>
2010 * ser-mingw.c (ser_windows_setparity): Fix indentation.
2011 * ser-unix.c (hardwire_setparity): Likewise.
2013 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2015 * NEWS: Mention set/show serial parity command.
2016 * monitor.c (monitor_open): Call serial_setparity.
2017 * remote.c (remote_open_1): Likewise.
2018 * ser-base.c (ser_base_serparity): New function.
2019 * ser-base.h (ser_base_setparity): Add declaration.
2020 * ser-go32.c (dos_ops): Set "setparity" field.
2021 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
2023 (ser_windows_setparity): New function.
2024 (hardwire_ops): Add ser_windows_setparity.
2025 (tty_ops): Add NULL for setparity field.
2026 (pipe_ops): Add ser_base_setparity.
2027 (tcp_ops): Likewise.
2028 * ser-pipe.c (pipe_ops): Likewise.
2029 * ser-tcp.c (tcp_ops): Likewise.
2030 * ser-unix.c (hardwire_setparity): Add declaration.
2031 (hardwire_raw): Don't reset PARENB flag.
2032 (hardwire_setparity): New function.
2033 (hardwire_ops): Add hardwire_setparity.
2034 * serial.c (serial_setparity): New function.
2035 (serial_parity): New global.
2036 (parity_none, parity_odd, parity_even, parity_enums, parity):
2038 (set_parity): New function.
2039 (_initialize_serial): Add set/show serial parity commands.
2040 * serial.h (GDBPARITY_NONE): Define.
2041 (GDBPARITY_ODD): Define.
2042 (GDBPARITY_EVEN): Define.
2043 (serial_setparity) Add declaration.
2044 (struct serial_ops): Add setparity field.
2045 * target.h (serial_parity): Add declaration.
2047 2015-03-23 Keith Seitz <keiths@redhat.com>
2049 * linespec.c (linespec_lexer_lex_keyword): Update comment.
2051 2015-03-23 Keith Seitz <keiths@redhat.com>
2053 * breakpoint.c (parse_breakpoint_sals): Use
2054 linespec_lexer_lex_keyword to ascertain if the user specified
2056 * linespec.c [IF_KEYWORD_INDEX]: Define.
2057 (linespec_lexer_lex_keyword): Export.
2058 (struct ls_parser) <keyword_ok>: Remove.
2059 A keyword is only a keyword if not followed by another keyword.
2060 (linespec_lexer_lex_one): Remove keyword_ok handling.
2061 Add comment explaining why the parsing stream is not advanced
2062 when a keyword is seen.
2063 (parse_linespec): Remove parser->keyword_ok.
2064 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
2066 2015-03-23 Keith Seitz <keiths@redhat.com>
2069 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
2070 if we find a static method with DW_AT_vtable_elem_location.
2072 2015-03-21 Eli Zaretskii <eliz@gnu.org>
2074 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
2075 before the second loop, to avoid undefined behavior. Reported by
2076 Anton Blanchard <anton@samba.org>.
2078 2015-03-20 Keven Boell <keven.boell@intel.com>
2080 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
2081 data_location usage to linked list.
2082 (resolve_dynamic_type_internal): Adapt data_location to
2084 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
2085 (copy_type_recursive, copy_type): Add copy of linked list.
2086 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
2087 (struct dynamic_prop_list): New struct.
2088 * dwarf2read.c (set_die_type): Set data_location data.
2090 2015-03-20 Pedro Alves <palves@redhat.com>
2092 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
2093 inner block and make it const.
2094 * machoread.c (get_archive_prefix_len): Make "lparen" const.
2096 2015-03-20 Pedro Alves <palves@redhat.com>
2098 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
2099 * breakpoint.h (set_breakpoint_condition): Update declaration.
2101 2015-03-20 Pedro Alves <palves@redhat.com>
2103 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
2105 2015-03-20 Pedro Alves <palves@redhat.com>
2107 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
2109 2015-03-20 Pedro Alves <palves@redhat.com>
2111 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
2113 2015-03-20 Pedro Alves <palves@redhat.com>
2115 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
2116 (nto_init_solib_absolute_prefix): Likewise.
2118 2015-03-20 Pedro Alves <palves@redhat.com>
2120 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
2121 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
2123 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2125 * config/djgpp/README: Remove gdb.hp.
2127 2015-03-20 Yao Qi <yao.qi@linaro.org>
2129 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
2130 set_gdbarch_cannot_step_breakpoint.
2132 2015-03-19 Pedro Alves <palves@redhat.com>
2134 * linux-nat.c (linux_resume_one_lwp): Rename to ...
2135 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
2136 instead call perror_with_name.
2137 (check_ptrace_stopped_lwp_gone): New function.
2138 (linux_resume_one_lwp): Reimplement as wrapper around
2139 linux_resume_one_lwp_throw that swallows errors if the LWP is
2141 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
2142 swallows errors if the LWP is gone. Use
2143 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
2145 2015-03-19 Pedro Alves <palves@redhat.com>
2147 * linux-nat.c (status_callback): Return early if the LWP has no
2150 2015-03-19 Pedro Alves <palves@redhat.com>
2152 * linux-nat.c (select_event_lwp_callback): Update comment to no
2153 longer mention SIGTRAP.
2155 2015-03-18 Tristan Gingold <gingold@adacore.com>
2157 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
2158 redirection code to ...
2159 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
2160 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
2162 2015-03-18 Gary Benson <gbenson@redhat.com>
2164 (remote_protocol_features): Remove the "vFile:fstat" feature.
2165 (remote_hostio_fstat): Probe for "vFile:fstat" support.
2167 2015-03-11 Yao Qi <yao.qi@linaro.org>
2170 * aarch64-linux-tdep.c: Include xml-syscall.h
2171 (aarch64_linux_get_syscall_number): New function.
2172 (aarch64_linux_init_abi): Call
2173 set_gdbarch_get_syscall_number.
2174 * syscalls/aarch64-linux.xml: New file.
2176 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2178 * ser-base.h (ser_base_setstopbits): Change second argument name
2179 from "rate" to "num".
2181 2015-03-17 Gary Benson <gbenson@redhat.com>
2182 Luke Allardyce <lukeallardyce@gmail.com>
2185 * common/common-remote-fileio.h (sys/stat.h): New include.
2186 (stuct stat): Remove forward declaration.
2188 2015-03-16 John Baldwin <jhb@FreeBSD.org>
2190 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
2191 before writing core register notes.
2193 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2194 Pedro Alves <palves@redhat.com>
2196 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
2197 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
2198 (tgoto): Wrap with extern "C".
2200 2015-03-16 Pedro Alves <palves@redhat.com>
2201 Yuanhui Zhang <asmwarrior@gmail.com>
2203 * stub-termcap.c (tputs): Change prototype.
2205 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2206 Pedro Alves <palves@redhat.com>
2208 * windows-nat.c (struct thread_info_struct): Rename to ...
2209 (struct windows_thread_info_struct): ... this.
2210 (thread_info): Rename to ...
2211 (windows_thread_info): ... this.
2214 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2215 Pedro Alves <palves@redhat.com>
2217 * NEWS: New Removed targets and native configurations.
2219 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2222 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
2223 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
2224 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
2225 ia64-hpux-tdep.h, solib-ia64-hpux.h.
2226 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
2227 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
2228 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
2230 * config/ia64/hpux.mh: Remove file.
2231 * config/pa/hpux.mh: Remove file.
2232 * configure: Rebuilt.
2233 * configure.ac (dlgetmodinfo, somread.o): Remove.
2234 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2235 (ia64-*-hpux*): Remove its float format exception.
2236 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2237 * hppa-hpux-nat.c: Remove file.
2238 * hppa-hpux-tdep.c: Remove file.
2239 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
2240 Move them here from hppa-tdep.h
2241 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
2242 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
2243 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
2244 Move them to hppa-tdep.c.
2245 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
2247 * ia64-hpux-nat.c: Remove file.
2248 * ia64-hpux-tdep.c: Remove file.
2249 * ia64-hpux-tdep.h: Remove file.
2250 * inf-ttrace.c: Remove file.
2251 * inf-ttrace.h: Remove file.
2252 * solib-ia64-hpux.c: Remove file.
2253 * solib-ia64-hpux.h: Remove file.
2254 * solib-pa64.c: Remove file.
2255 * solib-pa64.h: Remove file.
2256 * solib-som.c: Remove file.
2257 * solib-som.h: Remove file.
2258 * somread.c: Remove file.
2260 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2262 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
2263 * config.in: Regenerate.
2264 * configure: Regenerate.
2265 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
2267 (fbsd_find_memory_regions): Use kinfo_getvmmap to
2268 enumerate memory regions if present.
2270 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2272 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
2273 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
2275 (i386fbsd_sigtramp_p): Likewise.
2277 2015-03-12 John Baldwin <jhb@FreeBSD.org>
2279 * MAINTAINERS (Write After Approval): Add John Baldwin.
2281 2015-03-12 Gary Benson <gbenson@redhat.com>
2283 * solib.c (_initialize_solib): Make "set/show sysroot" use
2284 add_setshow_optional_filename_cmd so it can be restored to
2285 empty after being set.
2287 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2289 * Makefile.in (SFILES): New source break-catch-syscall.c.
2290 (COMMON_OBS): New object break-catch-syscall.o.
2291 * break-catch-syscall.c: New file.
2292 * breakpoint.c: Remove inclusion of "xml-syscall.h".
2293 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
2294 (struct syscall_catchpoint): Likewise.
2295 (dtor_catch_syscall): Likewise.
2296 (catch_syscall_inferior_data): Likewise.
2297 (struct catch_syscall_inferior_data): Likewise.
2298 (get_catch_syscall_inferior_data): Likewise.
2299 (catch_syscall_inferior_data_cleanup): Likewise.
2300 (insert_catch_syscall): Likewise.
2301 (remove_catch_syscall): Likewise.
2302 (breakpoint_hit_catch_syscall): Likewise.
2303 (print_it_catch_syscall): Likewise.
2304 (print_one_catch_syscall): Likewise.
2305 (print_mention_catch_syscall): Likewise.
2306 (print_recreate_catch_syscall): Likewise.
2307 (catch_syscall_breakpoint_ops): Likewise.
2308 (syscall_catchpoint_p): Likewise.
2309 (create_syscall_event_catchpoint): Likewise.
2310 (catch_syscall_split_args): Likewise.
2311 (catch_syscall_command_1): Likewise.
2312 (is_syscall_catchpoint_enabled): Likewise.
2313 (catch_syscall_enabled): Likewise.
2314 (catching_syscall_number): Likewise.
2315 (catch_syscall_completer): Likewise.
2316 (clear_syscall_counts): Likewise.
2317 (initialize_breakpoint_ops): Move initialization of syscall
2318 catchpoints to break-catch-syscall.c.
2319 (_initialize_breakpoint): Move code related to syscall catchpoints
2320 to break-catch-syscall.c.
2322 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2324 * breakpoint.c (breakpoint_find_if): New function.
2325 * breakpoint.h (breakpoint_find_if): New prototype.
2327 2015-03-11 Gary Benson <gbenson@redhat.com>
2329 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
2330 * remote-fileio.c (remote_fileio_to_host_uint): New function.
2331 (remote_fileio_to_host_ulong): Likewise.
2332 (remote_fileio_to_host_mode): Likewise.
2333 (remote_fileio_to_host_time): Likewise.
2334 (remote_fileio_to_host_stat): Likewise.
2335 * remote.c (PACKET_vFile_fstat): New enum value.
2336 (remote_protocol_features): Register the "vFile:fstat" feature.
2337 (remote_hostio_fstat): New function.
2338 (remote_bfd_iovec_stat): Use the above.
2339 (_initialize_remote): Register new "set/show remote
2340 hostio-fstat-packet" command.
2341 * symfile.c (separate_debug_file_exists): Update comment.
2342 * NEWS: Announce new vFile:fstat packet.
2344 2015-03-11 Gary Benson <gbenson@redhat.com>
2346 * common/common-remote-fileio.h: New file.
2347 * common/common-remote-fileio.c: Likewise.
2348 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
2349 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
2350 (COMMON_OBS): Add common-remote-fileio.o.
2351 (common-remote-fileio.o): New rule.
2352 * remote-fileio.h (common-remote-fileio.h): New include.
2353 * remote-fileio.c (gdb/fileio.h): Do not include.
2354 (remote_fileio_to_be): Moved to common-remote-fileio.h.
2355 (remote_fileio_to_fio_uint): Likewise.
2356 (remote_fileio_to_fio_time): Likewise.
2357 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
2358 (remote_fileio_to_fio_mode): Likewise.
2359 (remote_fileio_to_fio_ulong): Likewise.
2360 (remote_fileio_to_fio_stat): Likewise.
2362 2015-03-11 Andy Wingo <wingo@igalia.com>
2364 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
2365 we were checking the cached type, not the cached dynamic type.
2367 2015-03-11 Andy Wingo <wingo@igalia.com>
2369 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
2370 other strings, as these are on the GC'd heap, and will be
2371 collected along with the smob.
2373 2015-03-11 Andy Wingo <wingo@igalia.com>
2375 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
2376 (objfile_functions): Bind gdbscm_objfile_progspace to
2378 * guile/lib/gdb.scm: Add objfile-progspace to exports.
2380 2015-03-11 Andy Wingo <wingo@igalia.com>
2382 * guile/guile.c (_initialize_guile): Disable automatic
2383 finalization, if Guile offers us that possibility.
2384 * guile/guile.c (call_initialize_gdb_module):
2385 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
2386 finalizers in appropriate places.
2387 * configure.ac (AC_TRY_LIBGUILE): Add a check for
2388 scm_set_automatic_finalization_enabled.
2389 * configure: Regenerated.
2391 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2393 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
2396 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2398 * s390-linux-nat.c (struct arch_lwp_info): New.
2399 (s390_fix_watch_points): Rename to...
2400 (s390_prepare_to_resume): ...this. Skip the PER info update
2401 unless the watch points have changed.
2402 (s390_refresh_per_info, s390_new_thread): New functions.
2403 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
2404 s390_fix_watch_points.
2405 (s390_remove_watchpoint): Likewise.
2406 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
2407 Register s390_prepare_to_resume.
2409 2015-03-09 Pedro Alves <palves@redhat.com>
2412 2015-03-07 Pedro Alves <palves@redhat.com>
2413 * common/gdb_socket.h: New file.
2414 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2416 (net_open): Use union gdb_sockaddr_u.
2418 2015-03-07 Pedro Alves <palves@redhat.com>
2420 * configure.ac (build_warnings): Move -Wmissing-prototypes
2421 -Wdeclaration-after-statement -Wmissing-parameter-type
2422 -Wold-style-declaration -Wold-style-definition to the C-specific
2424 * configure: Regenerate.
2426 2015-03-07 Pedro Alves <palves@redhat.com>
2428 * common/gdb_socket.h: New file.
2429 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2431 (net_open): Use union gdb_sockaddr_u.
2433 2015-03-07 Pedro Alves <palves@redhat.com>
2435 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
2436 (exceptions_state_mc_action_iter)
2437 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2439 [__cplusplus] (try_scope_depth): New global.
2440 [__cplusplus] (exception_try_scope_entry)
2441 (exception_try_scope_exit, gdb_exception_sliced_copy)
2442 (exception_rethrow): New functions.
2443 (throw_exception): In C++ mode, throw
2444 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
2445 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
2446 (throw_it): In C++ mode, use try_scope_depth.
2447 * common/common-exceptions.h [!__cplusplus]
2448 (exceptions_state_mc_action_iter)
2449 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2451 [__cplusplus] (exception_try_scope_entry)
2452 (exception_try_scope_exit, exception_rethrow): Declare.
2453 [__cplusplus] (struct exception_try_scope): New struct.
2454 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
2456 (struct gdb_exception_RETURN_MASK_ALL)
2457 (struct gdb_exception_RETURN_MASK_ERROR)
2458 (struct gdb_exception_RETURN_MASK_QUIT): New types.
2460 2015-03-07 Pedro Alves <palves@redhat.com>
2462 * main.c (handle_command_errors): Remove volatile qualifier from
2465 2015-03-07 Pedro Alves <palves@redhat.com>
2467 * breakpoint.c (save_breakpoints): Adjust to avoid code between
2469 * gdbtypes.c (safe_parse_type): Remove empty line.
2470 (types_deeply_equal):
2471 * guile/scm-frame.c (gdbscm_frame_name):
2472 * linux-thread-db.c (find_new_threads_once):
2473 * python/py-breakpoint.c (bppy_get_commands):
2474 * record-btrace.c (record_btrace_insert_breakpoint)
2475 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
2476 (record_btrace_start_replaying): Adjust to avoid code between TRY
2479 2015-03-07 Pedro Alves <palves@redhat.com>
2481 * common/common-exceptions.c (struct catcher) <exception>: No
2482 longer a pointer to volatile exception. Now an exception value.
2483 <mask>: Delete field.
2484 (exceptions_state_mc_init): Remove all parameters. Adjust.
2485 (exceptions_state_mc): No longer pop the catcher here.
2486 (exceptions_state_mc_catch): New function.
2487 (throw_exception): Adjust.
2488 * common/common-exceptions.h (exceptions_state_mc_init): Remove
2490 (exceptions_state_mc_catch): Declare.
2491 (TRY_CATCH): Rename to ...
2492 (TRY): ... this. Remove EXCEPTION and MASK parameters.
2493 (CATCH, END_CATCH): New.
2494 All callers adjusted.
2496 2015-03-07 Tom Tromey <tromey@redhat.com>
2498 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
2500 2015-03-07 Pedro Alves <palves@redhat.com>
2502 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2503 (amd64_epilogue_frame_cache): Normal exception handling code.
2504 * break-catch-throw.c (check_status_exception_catchpoint)
2505 (re_set_exception_catchpoint): Ditto.
2506 * cli/cli-interp.c (safe_execute_command):
2507 * cli/cli-script.c (script_from_file): Ditto.
2508 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
2510 * compile/compile-object-run.c (compile_object_run): Ditto.
2511 * cp-abi.c (baseclass_offset): Ditto.
2512 * cp-valprint.c (cp_print_value): Ditto.
2513 * exceptions.c (catch_exceptions_with_msg):
2514 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
2515 * frame.c (get_frame_address_in_block_if_available): Ditto.
2516 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2517 (i386_sigtramp_frame_cache): Ditto.
2518 * infcmd.c (post_create_inferior): Ditto.
2519 * linespec.c (parse_linespec, find_linespec_symbols):
2520 * p-valprint.c (pascal_object_print_value): Ditto.
2521 * parse.c (parse_expression_for_completion): Ditto.
2522 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2523 * remote.c (remote_get_noisy_reply): Ditto.
2524 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
2525 * solib-svr4.c (solib_svr4_r_map): Ditto.
2527 2015-03-06 Gary Benson <gbenson@redhat.com>
2529 * common/common-utils.h (startswith): New inline function.
2530 All places where this logic was used updated to use the above.
2532 2015-03-05 Pedro Alves <palves@redhat.com>
2535 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
2536 after reading the breakpoint's shadow memory.
2538 2015-03-05 Mark Kettenis <kettenis@gnu.org>
2540 * hppabsd-nat.c: Remove file.
2541 * hppaobsd-nat.c: New file.
2542 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
2544 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
2547 2015-03-04 Pedro Alves <palves@redhat.com>
2549 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2550 (target_decr_pc_after_break): Delete declaration.
2551 * target.c (default_target_decr_pc_after_break)
2552 (target_decr_pc_after_break): Delete.
2553 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
2554 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
2555 * linux-thread-db.c (check_event): Likewise.
2556 * infrun.c (adjust_pc_after_break): Likewise.
2557 * darwin-nat.c (cancel_breakpoint): Likewise.
2558 * aix-thread.c (aix_thread_wait): Likewise.
2559 * target-delegates.c: Regenerate.
2561 2015-03-04 Pedro Alves <palves@redhat.com>
2563 * linux-nat.c (save_sigtrap): Check for breakpoints before
2564 checking watchpoints.
2565 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
2566 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
2567 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
2568 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
2569 (linux_nat_stopped_by_sw_breakpoint)
2570 (linux_nat_supports_stopped_by_sw_breakpoint)
2571 (linux_nat_stopped_by_hw_breakpoint)
2572 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
2573 (linux_nat_wait_1): Don't re-increment the PC if relying on
2574 SIGTRAP's siginfo->si_code.
2575 (linux_nat_add_target): Install new target methods.
2576 * linux-thread-db.c (check_event): Don't account for breakpoint PC
2577 offset if the target already adjusted the PC.
2578 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
2579 (GDB_ARCH_TRAP_BRKPT): New.
2580 (TRAP_HWBKPT): Define if not already defined.
2582 2015-03-04 Pedro Alves <palves@redhat.com>
2584 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
2585 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
2587 <stop_reason>: New field.
2588 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
2589 (packet_set_cmd_state): New function.
2590 (remote_protocol_features): Register the "swbreak" and "hwbreak"
2592 (remote_query_supported): If not disabled with the corresponding
2593 "set remote foo-packet" command, report support for the swbreak
2594 and hwbreak features.
2595 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
2597 <stop_reason>: New field.
2598 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
2599 (remote_wait_as): Adjust.
2600 (remote_stopped_by_sw_breakpoint)
2601 (remote_supports_stopped_by_sw_breakpoint)
2602 (remote_stopped_by_hw_breakpoint)
2603 (remote_supports_stopped_by_hw_breakpoint): New functions.
2604 (remote_stopped_by_watchpoint): New function.
2605 (init_remote_ops): Install them.
2606 (_initialize_remote): Register new "set/show remote
2607 swbreak-feature-packet" and "set/show remote
2608 swbreak-feature-packet" commands.
2610 2015-03-04 Pedro Alves <palves@redhat.com>
2612 * btrace.h: Include target/waitstatus.h.
2613 (struct btrace_thread_info) <stop_reason>: New field.
2614 * record-btrace.c (record_btrace_step_thread): Use
2615 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2616 (record_btrace_decr_pc_after_break): Delete.
2617 (record_btrace_stopped_by_sw_breakpoint)
2618 (record_btrace_supports_stopped_by_sw_breakpoint)
2619 (record_btrace_stopped_by_hw_breakpoint)
2620 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
2621 (init_record_btrace_ops): Install them.
2622 * record-full.c (record_full_hw_watchpoint): Delete and replace
2624 (record_full_stop_reason): ... this throughout.
2625 (record_full_exec_insn): Adjust.
2626 (record_full_wait_1): Adjust. No longer re-increment the PC.
2627 (record_full_wait_1): Adjust. Use
2628 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2629 (record_full_stopped_by_watchpoint): Adjust.
2630 (record_full_stopped_by_sw_breakpoint)
2631 (record_full_supports_stopped_by_sw_breakpoint)
2632 (record_full_supports_stopped_by_sw_breakpoint)
2633 (record_full_stopped_by_hw_breakpoint)
2634 (record_full_supports_stopped_by_hw_breakpoint): New functions.
2635 (init_record_full_ops, init_record_full_core_ops): Install them.
2636 * record.c (record_check_stopped_by_breakpoint): New function.
2637 * record.h: Include target/waitstatus.h.
2638 (record_check_stopped_by_breakpoint): New declaration.
2640 2015-03-04 Pedro Alves <palves@redhat.com>
2642 enum lwp_stop_reason -> enum target_stop_reason
2643 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
2644 (linux_nat_stopped_by_watchpoint, status_callback)
2645 (linux_nat_wait_1): Adjust.
2646 * linux-nat.h (enum lwp_stop_reason): Delete.
2647 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
2648 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2649 * target/waitstatus.h (enum target_stop_reason): New.
2651 2015-03-04 Pedro Alves <palves@redhat.com>
2653 * breakpoint.c (need_moribund_for_location_type): New function.
2654 (bpstat_stop_status): Don't skipping checking moribund locations
2655 of breakpoint types which the target tell caused a stop.
2656 (program_breakpoint_here_p): New function, factored out from ...
2657 (bp_loc_is_permanent): ... this.
2658 (update_global_location_list): Don't create a moribund location if
2659 the target supports reporting stops of the type of the removed
2661 * breakpoint.h (program_breakpoint_here_p): New declaration.
2662 * infrun.c (adjust_pc_after_break): Return early if the target has
2663 already adjusted the PC. Add comments.
2664 (handle_signal_stop): If nothing explains a signal, and the target
2665 tells us the stop was caused by a software breakpoint, check if
2666 there's a breakpoint instruction in the memory. If so, adjust the
2667 PC before presenting the stop to the user. Otherwise, ignore the
2668 trap. If nothing explains a signal, and the target tells us the
2669 stop was caused by a hardware breakpoint, ignore the trap.
2670 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2671 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2672 to_supports_stopped_by_hw_breakpoint>: New fields.
2673 (target_stopped_by_sw_breakpoint)
2674 (target_supports_stopped_by_sw_breakpoint)
2675 (target_stopped_by_hw_breakpoint)
2676 (target_supports_stopped_by_hw_breakpoint): Define.
2677 * target-delegates.c: Regenerate.
2679 2015-03-04 Pedro Alves <palves@redhat.com>
2681 * infrun.c (follow_fork_inferior): Use the whole of the
2682 inferior_ptid and pending_follow.related_pid ptids instead of
2683 building ptids from the process components. Adjust verbose output
2684 to use target_pid_to_str.
2685 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2686 inferior_ptid and pending_follow.related_pid ptids instead of
2687 building ptids from the process components.
2689 2015-03-04 Mark Kettenis <kettenis@gnu.org>
2691 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2692 (inf_ptrace_insert_fork_catchpoint): New function.
2693 (inf_ptrace_remove_fork_catchpoint): New function.
2694 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2696 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698 * s390-linux-tdep.c (s390_register_name): Return empty string
2699 instead of NULL for registers that shouldn't be visible.
2701 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2703 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
2704 XML file for 64-bit targets.
2706 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
2708 * target.h (find_default_create_inferior): Remove declaration.
2709 (find_default_attach): Likewise.
2711 2015-03-03 Pedro Alves <palves@redhat.com>
2713 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
2714 Use ptid_get_pid to get the overall process id when resuming all
2717 2015-03-03 Pedro Alves <palves@redhat.com>
2719 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2720 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2721 * inf-ptrace.c (get_ptrace_pid): New function.
2722 (inf_ptrace_resume): Use it.
2723 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2726 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2728 * nat/linux-btrace.c: Include sys/utsname.h.
2729 (linux_determine_kernel_ptr_bits): New.
2730 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2731 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2734 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2736 * btrace.c (ftrace_update_function): Treat return as tailcall for
2737 "_dl_runtime_resolve".
2739 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2741 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2742 * btrace.c (ftrace_debug): Do not print the line range.
2743 (ftrace_skip_file, ftrace_update_lines): Remove.
2744 (ftrace_new_function): Remove lbegin and lend initialization.
2745 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2746 * record-btrace.c (btrace_compute_src_line_range): New.
2747 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2749 2015-03-02 Pedro Alves <palves@redhat.com>
2751 * infrun.c (follow_exec): Delete all threads of the process except
2752 the event thread. Extended comments.
2754 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2756 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2758 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2760 * utils.h: Remove <stdbool.h> #include.
2761 (producer_is_gcc): Change return type to "int".
2762 * utils.c (producer_is_gcc): Change return type to int.
2763 Return 1 instead of true, and 0 instead of false.
2764 Adjust function documentation accordingly.
2766 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2768 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2769 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2771 (s390_linux_store_inferior_registers): Likewise.
2772 (s390_get_hwcap): Remove function. Embed its logic...
2773 (s390_read_description): ...here. Yield a target description with
2774 vector registers if applicable.
2775 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2776 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2777 "features/s390x-tevx-linux64.c".
2778 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2779 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2780 for "GNU/Linux-specific registers".
2781 (s390_dwarf_reg_r0l): New enum value.
2782 (s390_dwarf_reg_to_regnum): Support vector registers.
2783 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2784 of GPR lower halves.
2785 (regnum_is_vxr_full): New function.
2786 (s390_register_name): New function.
2787 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2788 f0-f15 and v0l-v15l.
2789 (s390_pseudo_register_type): Likewise.
2790 (s390_pseudo_register_read): Likewise.
2791 (s390_pseudo_register_write): Likewise.
2792 (s390_value_from_register): Account for the fact that values are
2793 placed left-justified in vector registers.
2794 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2795 the vector reggroup and omit them from the general reggroup.
2796 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2797 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2798 (s390_iterate_over_regset_sections): Add iterations for the two
2800 (s390_core_read_description): Yield a target description with
2801 vector registers if applicable.
2802 (s390_gdbarch_init): Handle target descriptions with vector
2803 registers. Add "register_name" gdbarch method.
2804 (_initialize_s390_tdep): Call new tdesc initialization functions.
2805 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2806 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2807 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2808 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2809 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2810 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2811 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2812 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2813 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2814 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2815 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2816 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2817 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2818 (S390_NUM_REGS): Adjust value.
2819 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2820 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2821 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2822 * NEWS: Announce S/390 vector register support.
2824 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2826 * features/s390-tevx-linux64.xml: New file.
2827 * features/s390-vx-linux64.xml: New file.
2828 * features/s390-vx.xml: New file.
2829 * features/s390x-tevx-linux64.xml: New file.
2830 * features/s390x-vx-linux64.xml: New file.
2831 * features/Makefile (WHICH): Add s390-vx-linux64,
2832 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2833 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2834 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2836 * features/s390-tevx-linux64.c: New generated file.
2837 * features/s390-vx-linux64.c: Likewise.
2838 * features/s390x-tevx-linux64.c: Likewise.
2839 * features/s390x-vx-linux64.c: Likewise.
2840 * regformats/s390-tevx-linux64.dat: Likewise.
2841 * regformats/s390-vx-linux64.dat: Likewise.
2842 * regformats/s390x-tevx-linux64.dat: Likewise.
2843 * regformats/s390x-vx-linux64.dat: Likewise.
2845 2015-02-28 Doug Evans <xdje42@gmail.com>
2847 * symtab.h (struct symtab) <next>: Fix comment.
2849 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2851 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2854 2015-02-27 Pedro Alves <palves@redhat.com>
2856 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2858 2015-02-27 Pedro Alves <palves@redhat.com>
2860 * common/common-exceptions.h (exception_none): Declare.
2861 * common/common-exceptions.c (exception_none): Moved from
2863 (exceptions_state_mc_init): Use exception_none.
2864 * exceptions.c (exception_none): Move to
2865 common/common-exceptions.c.
2866 * exceptions.h (exception_none): Move to
2867 common/common-exceptions.h.
2869 2015-02-27 Pedro Alves <palves@redhat.com>
2871 * main.c (catch_command_errors, catch_command_errors_const):
2872 Remove 'mask' argument. Adjust.
2873 (captured_main): Adjust callers.
2875 2015-02-27 Pedro Alves <palves@redhat.com>
2877 * python/python-internal.h: Include "extension-priv.h".
2879 2015-02-27 Pedro Alves <palves@redhat.com>
2881 * breakpoint.h (enum print_stop_action): Move further up in the
2884 2015-02-27 Pedro Alves <palves@redhat.com>
2886 * gdbarch.sh: Include regcache.h.
2887 * gdbarch.h: Regenerate.
2889 2015-02-27 Pedro Alves <palves@redhat.com>
2891 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2892 Remove duplicate const.
2893 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2896 2015-02-27 Pedro Alves <palves@redhat.com>
2898 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2899 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2900 * features/feature_to_c.sh: Tag the generated xml_builtin array
2901 with extern const in C++ mode.
2903 2015-02-27 Tom Tromey <tromey@redhat.com>
2905 * minidebug.c (struct lzma_stream): Rename to ...
2906 (struct gdb_lzma_stream): ... this.
2907 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2909 2015-02-27 Pedro Alves <palves@redhat.com>
2911 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2913 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2914 (mi_cmd_stack_list_variables): Use it.
2916 2015-02-27 Pedro Alves <palves@redhat.com>
2918 * x86-linux-nat.c (u_debugreg_offset): New function.
2919 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2921 2015-02-27 Pedro Alves <palves@redhat.com>
2923 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2925 Include break-common.h.
2927 2015-02-27 Tom Tromey <tromey@redhat.com>
2928 Pedro Alves <palves@redhat.com>
2930 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2931 local used to iterate over enums.
2932 * completer.c (signal_completer): Likewise.
2933 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2934 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2935 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2936 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2937 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2938 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2939 * tui-wingeneral.c (tui_refresh_all): Likewise.
2941 2015-02-27 Pedro Alves <palves@redhat.com>
2943 * target.h: Include "infrun.h".
2945 2015-02-27 Pedro Alves <palves@redhat.com>
2947 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2949 2015-02-27 Pedro Alves <palves@redhat.com>
2951 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2953 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2955 2015-02-27 Pedro Alves <palves@redhat.com>
2957 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2958 cli_mld_erase_entire_line, and make it extern "C".
2959 * common/common-defs.h (EXTERN_C): New.
2960 * completer.c (_rl_completion_prefix_display_length)
2961 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2962 out of gdb_display_match_list_1.
2963 (_rl_qsort_string_compare): Move declaration out of
2964 gdb_display_match_list_1, and make it extern "C".
2965 * defs.h (re_comp): Use EXTERN_C.
2966 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2967 and make it extern "C".
2968 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2969 and make it extern "C".
2970 (main): Move declaration out of maintenance_set_profile_cmd.
2971 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2974 2015-02-27 Pedro Alves <palves@redhat.com>
2976 * python/python.c (GdbMethods): Rename to ...
2977 (python_GdbMethods): ... this and make extern.
2978 (GdbModuleDef): Rename to ...
2979 (python_GdbModuleDef): ... this and make extern.
2981 2015-02-27 Pedro Alves <palves@redhat.com>
2983 * record-btrace.c (set_record_btrace_cmdlist)
2984 (show_record_btrace_cmdlist): Remove redefinitions.
2986 2015-02-27 Tom Tromey <tromey@redhat.com>
2987 Pedro Alves <palves@redhat.com>
2989 * dwarf2-frame.c (enum cfa_how_kind, struct
2990 dwarf2_frame_state_reg_info): Move out of struct
2992 * dwarf2read.c (struct tu_stats): Move out of struct
2994 (struct file_entry): Move out of struct line_header.
2995 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2996 typedef_field_list): Move out of struct field_info.
2997 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2998 Move out of struct dynamic_prop.
2999 (union type_owner, union field_location, struct field, struct
3000 range_bounds, union type_specific): Move out of struct main_type.
3001 (struct fn_fieldlist, struct fn_field, struct typedef_field)
3002 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
3003 (struct call_site_target, union call_site_parameter_u, struct
3004 call_site_parameter): Move out of struct call_site.
3005 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
3007 (enum srcdest_kind): Move out of struct srcdest.
3008 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
3009 * prologue-value.h (enum prologue_value_kind): Move out of struct
3011 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
3013 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
3014 out of struct field_info.
3015 * symfile.h (struct other_sections): Move out of struct
3017 * symtab.c (struct symbol_cache_slot): Move out struct
3019 * target-descriptions.c (enum tdesc_type_kind): Move out of
3020 typedef struct tdesc_type.
3021 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
3022 struct tui_line_or_address.
3023 * value.c (enum internalvar_kind, union internalvar_data): Move
3024 out of struct internalvar.
3025 * xtensa-tdep.h (struct ctype_cache): Move out of struct
3028 2015-02-27 Tom Tromey <tromey@redhat.com>
3029 Pedro Alves <palves@redhat.com>
3031 Rename symbols whose names are reserved C++ keywords throughout.
3033 2015-02-27 Pedro Alves <palves@redhat.com>
3035 * Makefile.in (COMPILER): New, get it from autoconf.
3036 (COMPILE.pre, CC_LD): Use COMPILER.
3037 (CXX): Get from autoconf instead.
3038 (CXX_FOR_TARGET): Default to g++ instead of gcc.
3039 * acinclude.m4: Include build-with-cxx.m4.
3040 * build-with-cxx.m4: New file.
3041 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
3042 Disable -Werror by default if building in C++ mode.
3043 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
3044 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
3045 Run supported-warning-flags tests with the C++ compiler.
3046 Save/restore CXXFLAGS too.
3047 * configure: Regenerate.
3049 2015-02-27 Pedro Alves <palves@redhat.com>
3051 * libiberty.m4: New file.
3052 * acinclude.m4: Include libiberty.m4.
3053 * configure.ac: Call libiberty_INIT.
3054 * config.in, configure: Regenerate.
3056 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3058 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
3059 31-bit targets, but 64-bit targets as well.
3060 (s390_gnu_triplet_regexp): New function.
3061 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
3062 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
3065 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
3067 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
3068 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
3069 from CONTEXT_DEBUGGER.
3071 2015-02-26 Doug Evans <dje@google.com>
3073 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
3075 (set_type_vptr_fieldno): Ditto.
3076 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
3077 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
3079 2015-02-26 Pedro Alves <palves@redhat.com>
3081 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
3082 * complaints.c (vcomplaint): Pass argument FMT directly to
3083 printf-like functions instead of complaint->fmt.
3084 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
3085 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
3086 * compile/compile-loc2c.c (pushf, unary, binary): Add
3088 (do_compile_dwarf_expr_to_c): Pass string literal as format string
3090 (BINARY): Pass string literal as format string to 'binary'.
3091 * compile/compile-object-load.c (link_callbacks_einfo): Add
3093 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
3095 2015-02-26 Pedro Alves <palves@redhat.com>
3097 * windows-termcap.c: Rename to ...
3098 * stub-termcap.c: ... this. Adjust header line.
3099 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
3101 * configure: Regenerate.
3102 * configure.ac: Refer to stub-termcap.o instead of
3104 * gdb_curses.h: Mention stub-termcap.c instead of
3107 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3109 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
3110 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
3112 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
3114 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
3116 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3118 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
3119 bfd_canonicalize_symtab.
3121 2015-02-25 John Baldwin <jhb@FreeBSD.org>
3123 * amd64fbsd-nat.c: Include sys/user.h.
3124 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3125 instead of KERN_PS_STRINGS to locate the signal trampoline.
3126 * i386fbsd-nat.c: Include sys/user.h.
3127 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3128 instead of KERN_PS_STRINGS to locate the signal trampoline.
3129 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
3130 (amd64fbsd_sigtramp_p): New.
3131 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
3132 longer set default values.
3133 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
3134 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
3135 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
3136 (i386fbsd_freebsd4_sigtramp_start)
3137 (i386fbsd_freebsd4_sigtramp_middle)
3138 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
3139 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
3140 (i386fbsd_sigtramp_p): New.
3141 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
3142 longer set default values.
3143 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
3145 2015-02-25 John Baldwin <jhb@freebsd.org>
3147 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
3148 get_frame_register instead of frame_unwind_register_unsigned.
3150 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3153 * compile/compile-c-support.c (c_compute_program): Change // comment.
3154 * compile/compile-object-load.c (setup_sections): Change // comment.
3156 2015-02-26 Joel Brobecker <brobecker@adacore.com>
3159 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
3161 2015-02-23 Pedro Alves <palves@redhat.com>
3163 * remote.c (skip_to_semicolon): New function.
3164 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
3165 special case the stop reasons that look like hex numbers
3166 upfront. Instead handle real register numbers after matching
3167 all the known stop reasons.
3169 2015-02-21 Doug Evans <dje@google.com>
3171 PR c++/17976, symtab/17821
3172 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
3173 is_in_anonymous. All callers updated.
3174 (find_symbol_in_baseclass): Ditto.
3175 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
3176 for symbols in an anonymous namespace.
3177 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
3178 DW_AT_name directly.
3179 (dwarf2_name): Convert missing namespace name to
3180 CP_ANONYMOUS_NAMESPACE_STR.
3182 2015-02-20 Pedro Alves <palves@redhat.com>
3184 * linux-nat.c (linux_handle_extended_wait): Call
3185 thread_db_notice_clone whenever a new clone LWP is detected.
3186 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
3188 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
3189 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
3190 (linux_unstop_all_lwps): Declare.
3191 * linux-thread-db.c (struct thread_get_info_inout): Delete.
3192 (thread_get_info_callback): Delete.
3193 (thread_from_lwp): Use td_thr_get_info and record_thread.
3194 (thread_db_attach_lwp): Delete.
3195 (thread_db_notice_clone): New function.
3196 (try_thread_db_load_1): If /proc is mounted and shows the
3197 process'es task list, walk over all LWPs and call thread_from_lwp
3198 instead of relying on td_ta_thr_iter.
3199 (attach_thread): Don't call check_thread_signals here. Split the
3200 tail part of the function (which adds the thread to the core GDB
3202 (record_thread): ... this function. Call check_thread_signals
3204 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
3205 call thread_from_lwp.
3206 (thread_db_update_thread_list): Rename to ...
3207 (thread_db_update_thread_list_org): ... this.
3208 (thread_db_update_thread_list): New function.
3209 (thread_db_find_thread_from_tid): Delete.
3210 (thread_db_get_ada_task_ptid): Simplify.
3211 * nat/linux-procfs.c: Include <sys/stat.h>.
3212 (linux_proc_task_list_dir_exists): New function.
3213 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
3215 2015-02-20 Pedro Alves <palves@redhat.com>
3217 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
3218 main LWP. Handle the case of waitpid returning 0 if we're already
3219 attached to the LWP. Don't set the LWP's last_resume_kind to
3220 resume_stop if we already knew about the LWP.
3221 (linux_nat_filter_event): Add debug logs.
3223 2015-02-20 Pedro Alves <palves@redhat.com>
3225 * target.h (forward_target_decr_pc_after_break): Delete
3228 2015-02-20 Pedro Alves <palves@redhat.com>
3231 * linux-thread-db.c (thread_get_info_callback): Return early if
3232 the thread's lwp id is -1.
3234 2015-02-20 Joel Brobecker <brobecker@adacore.com>
3238 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
3240 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
3241 (dtrace_get_probes) Change type of variable 'dof'.
3243 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
3245 PR breakpoints/16812
3246 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
3247 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
3248 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
3250 2015-02-19 David Taylor <dtaylor@emc.com>
3252 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
3254 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
3256 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
3258 (tui_putc): Don't call tui_handle_resize_during_io.
3259 (tui_getc): Likewise.
3260 (tui_mld_getc): Likewise.
3261 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
3262 (tui_sigwinch_token): New static variable.
3263 (tui_initialize_win): Adjust documentation. Set
3265 (tui_async_resize_screen): New asynchronous callback.
3266 (tui_sigwinch_handler): Adjust documentation. Asynchronously
3267 invoke tui_async_resize_screen.
3269 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
3271 * configure: Regenerated.
3272 * configure.ac: Use GDB_AC_TRANSFORM.
3273 * Makefile.in (aclocal_m4_deps): Added transform.m4.
3274 * acinclude.m4: sinclude transform.m4.
3275 * transform.m4: New file.
3276 (GDB_AC_TRANSFORM): New macro.
3278 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3280 * NEWS: Announce the support for DTrace SDT probes.
3282 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3284 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
3285 (amd64_dtrace_parse_probe_argument): New function.
3286 (amd64_dtrace_probe_is_enabled): Likewise.
3287 (amd64_dtrace_enable_probe): Likewise.
3288 (amd64_dtrace_disable_probe): Likewise.
3289 (amd64_linux_init_abi): Register the
3290 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
3291 `gdbarch_dtrace_disable_probe' and
3292 `gdbarch_dtrace_probe_is_enabled' hooks.
3293 (amd64_dtrace_disabled_probe_sequence_1): New constant.
3294 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
3295 (amd64_dtrace_enable_probe_sequence): Likewise.
3296 (amd64_dtrace_disable_probe_sequence): Likewise.
3298 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3300 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
3301 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
3302 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
3304 * Makefile.in (SFILES): dtrace-probe.c added.
3305 * configure: Regenerate.
3306 * dtrace-probe.c: New file.
3307 (SHT_SUNW_dof): New constant.
3308 (dtrace_probe_type): New enum.
3309 (dtrace_probe_arg): New struct.
3310 (dtrace_probe_arg_s): New typedef.
3311 (struct dtrace_probe_enabler): New struct.
3312 (dtrace_probe_enabler_s): New typedef.
3313 (dtrace_probe): New struct.
3314 (dtrace_probe_is_linespec): New function.
3315 (dtrace_dof_sect_type): New enum.
3316 (dtrace_dof_dofh_ident): Likewise.
3317 (dtrace_dof_encoding): Likewise.
3318 (DTRACE_DOF_ENCODE_LSB): Likewise.
3319 (DTRACE_DOF_ENCODE_MSB): Likewise.
3320 (dtrace_dof_hdr): New struct.
3321 (dtrace_dof_sect): Likewise.
3322 (dtrace_dof_provider): Likewise.
3323 (dtrace_dof_probe): Likewise.
3324 (DOF_UINT): New macro.
3325 (DTRACE_DOF_PTR): Likewise.
3326 (DTRACE_DOF_SECT): Likewise.
3327 (dtrace_process_dof_probe): New function.
3328 (dtrace_process_dof): Likewise.
3329 (dtrace_build_arg_exprs): Likewise.
3330 (dtrace_get_arg): Likewise.
3331 (dtrace_get_probes): Likewise.
3332 (dtrace_get_probe_argument_count): Likewise.
3333 (dtrace_can_evaluate_probe_arguments): Likewise.
3334 (dtrace_evaluate_probe_argument): Likewise.
3335 (dtrace_compile_to_ax): Likewise.
3336 (dtrace_probe_destroy): Likewise.
3337 (dtrace_gen_info_probes_table_header): Likewise.
3338 (dtrace_gen_info_probes_table_values): Likewise.
3339 (dtrace_probe_is_enabled): Likewise.
3340 (dtrace_probe_ops): New variable.
3341 (info_probes_dtrace_command): New function.
3342 (_initialize_dtrace_probe): Likewise.
3343 (dtrace_type_name): Likewise.
3345 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3347 * gdbarch.sh (dtrace_parse_probe_argument): New.
3348 (dtrace_probe_is_enabled): Likewise.
3349 (dtrace_enable_probe): Likewise.
3350 (dtrace_disable_probe): Likewise.
3351 * gdbarch.c: Regenerate.
3352 * gdbarch.h: Regenerate.
3354 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3356 * stap-probe.c (stap_probe_ops): Add NULLs in the static
3357 stap_probe_ops for `enable_probe' and `disable_probe'.
3358 * probe.c (enable_probes_command): New function.
3359 (disable_probes_command): Likewise.
3360 (_initialize_probe): Define the cli commands `enable probe' and
3362 (parse_probe_linespec): New function.
3363 (info_probes_for_ops): Use parse_probe_linespec.
3364 * probe.h (probe_ops): New hooks `enable_probe' and
3367 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3369 * probe.c (compute_probe_arg): Moved from stap-probe.c
3370 (compile_probe_arg): Likewise.
3371 (probe_funcs): Likewise.
3372 * stap-probe.c (compute_probe_arg): Moved to probe.c.
3373 (compile_probe_arg): Likewise.
3374 (probe_funcs): Likewise.
3376 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3378 * probe.c (print_ui_out_not_applicables): New function.
3379 (exists_probe_with_pops): Likewise.
3380 (info_probes_for_ops): Do not include column headers for probe
3381 types for which no probe has been actually found on any object.
3382 Also invoke `print_ui_out_not_applicables' in order to match the
3383 column rows with the header when probes of several types are
3385 Print the "Type" column.
3386 * probe.h (probe_ops): Added a new probe operation `type_name'.
3387 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
3388 (stap_type_name): New function.
3390 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
3392 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
3393 (key_is_command_char): Delete.
3395 2015-02-17 Pedro Alves <palves@redhat.com>
3397 * tui/tui.c (tui_enable): Resize windows before anything
3398 might show a window.
3400 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
3403 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
3404 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
3406 * aarch64-tdep.h (tdesc_aarch64): Declare.
3408 2015-02-12 Mark Wielaard <mjw@redhat.com>
3410 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
3412 2015-02-13 Doug Evans <dje@google.com>
3414 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
3415 anonymous_namespace to is_in_anonymous for consistency with the rest
3417 (cp_lookup_bare_symbol): Fix typo in comment.
3418 (cp_search_static_and_baseclasses): Ditto.
3419 (search_symbol_list): Use vertical space in comment better.
3420 (reset_directive_searched): Ditto. Fix typo.
3421 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
3423 2015-02-13 Yao Qi <yao.qi@arm.com>
3425 * MAINTAINERS: Update my email address.
3427 2015-02-12 Doug Evans <dje@google.com>
3429 * symtab.c (completion_list_add_name): Fix memory leak.
3431 2015-02-12 Doug Evans <dje@google.com>
3433 * completer.c (complete_line): Remove incorrect comment.
3435 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3437 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
3438 (py_print_frame): Use RETURN_MASK_ERROR.
3440 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
3443 function comment. Wrap all function that can throw in cleanups.
3444 (gdbpy_apply_frame_filter): Wrap all function that can throw in
3447 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 * python/py-framefilter.c (py_print_frame): Substitute goto error.
3450 Remove the error label.
3452 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3454 * python/py-framefilter.c (py_print_frame): Put conditional code paths
3455 with goto first, indent the former else codepath left. Put variable
3456 'elided' to a new inner block.
3458 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
3462 2015-02-11 Pedro Alves <palves@redhat.com>
3464 * xcoffread.c (within_function): Delete.
3466 2015-02-11 Tom Tromey <tromey@redhat.com>
3467 Pedro Alves <palves@redhat.com>
3469 * breakpoint.c (base_breakpoint_ops): Delete.
3470 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
3471 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
3472 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
3473 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
3474 * python/py-arch.c (arch_object_type): Make extern.
3475 * python/py-block.c (block_syms_iterator_object_type): Make extern.
3476 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
3477 * python/py-cmd.c (cmdpy_object_type): Make extern.
3478 * python/py-continueevent.c (continue_event_object_type)
3479 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
3480 parameter. Update all callers.
3481 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
3482 * python/py-exitedevent.c (exited_event_object_type): Make extern.
3483 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
3484 * python/py-function.c (fnpy_object_type): Make extern.
3485 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
3486 * python/py-infevents.c (call_pre_event_object_type)
3487 (inferior_call_post_event_object_type).
3488 (memory_changed_event_object_type): Make extern.
3489 * python/py-infthread.c (thread_object_type): Make extern.
3490 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
3491 * python/py-linetable.c (linetable_entry_object_type)
3492 (linetable_object_type, ltpy_iterator_object_type): Make extern.
3493 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3494 (clear_objfiles_event_object_type): Make extern.
3495 * python/py-objfile.c (objfile_object_type): Make extern.
3496 * python/py-param.c (parmpy_object_type): Make extern.
3497 * python/py-progspace.c (pspace_object_type): Make extern.
3498 * python/py-signalevent.c (signal_event_object_type): Make extern.
3499 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
3500 * python/py-type.c (type_object_type, field_object_type)
3501 (type_iterator_object_type): Make extern.
3502 * python/python.c (python_extension_script_ops)
3503 (python_extension_ops): Make extern.
3504 * stap-probe.c (stap_probe_ops): Make extern.
3506 2015-02-11 Pedro Alves <pedro@codesourcery.com>
3508 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
3509 because the event thread is not the current thread.
3511 2015-02-11 Doug Evans <xdje42@gmail.com>
3513 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
3514 been initialized yet, return NULL.
3516 2015-02-11 Doug Evans <dje@google.com>
3518 * symfile.h (new_symfile_objfile): Delete.
3519 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
3520 All callers updated.
3522 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3524 * tui/tui-io.c (tui_handle_resize_during_io): Call
3525 tui_update_gdb_sizes() after resizing the screen.
3526 * tui/tui.c (tui_enable): Resize the terminal before
3527 calling tui_update_gdb_sizes().
3529 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3531 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
3532 line before printing a newline.
3534 2015-02-11 Mark Wielaard <mjw@redhat.com>
3536 * utils.c (producer_is_gcc): Return true or false.
3538 2015-02-10 Mark Wielaard <mjw@redhat.com>
3540 * utils.h (producer_is_gcc): Change return type to bool. Add major
3542 * utils.c (producer_is_gcc): Likewise.
3543 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
3544 * dwarf2read.c (check_producer): Likewise.
3546 2015-02-10 Pedro Alves <palves@redhat.com>
3548 * infrun.c (displaced_step_fixup): Switch to the event thread
3549 before calling gdbarch_displaced_step_fixup.
3551 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
3553 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
3555 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
3557 * ada-varobj.c (ada_name_of_child): Constify parent.
3558 (ada_path_expr_of_child): Same.
3559 (ada_value_of_child): Same.
3560 (ada_type_of_child): Same.
3561 * c-varobj.c (c_is_path_expr_parent): Same.
3562 (c_describe_child): Same.
3563 (c_name_of_child): Same.
3564 (c_value_of_child): Same.
3565 (c_type_of_child): Same.
3566 (cplus_number_of_children): Same.
3567 (cplus_describe_child): Constify var.
3568 (cplus_name_of_child): Constify parent.
3569 (cplus_value_of_child): Same.
3570 (cplus_type_of_child): Same.
3571 * jv-varobj.c (java_name_of_child): Same.
3572 (java_value_of_child): Same.
3573 (java_type_of_child): Same.
3574 * varobj.c (value_of_child): Same.
3575 (varobj_default_is_path_expr_parent): Constify var, parent and return
3577 (varobj_get_path_expr): Constify var, modify path_expr through
3579 (install_new_value): Constify parent.
3580 (value_of_child): Constify parent.
3581 * varobj.h (struct varobj): Constify parent.
3582 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
3584 (varobj_get_path_expr): Constify var.
3585 (varobj_get_path_expr_parent): Constify var and return value.
3587 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
3589 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
3590 (arm_prologue_this_id): Move PC and SP limit checks to
3591 arm_prologue_unwind_stop_reason.
3592 (arm_prologue_unwind) <stop_reason> : Set to
3593 arm_prologue_unwind_stop_reason.
3595 2015-02-09 Mark Wielaard <mjw@redhat.com>
3597 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
3598 DW_LANG_Fortran08 as language_fortran.
3600 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
3603 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
3604 of pointer against char.
3606 2015-02-09 Mark Wielaard <mjw@redhat.com>
3608 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
3609 (c_type_print_modifier): Likewise.
3610 * dwarf2read.c (read_tag_atomic_type): New function.
3611 (read_type_die_1): Handle DW_TAG_atomic_type.
3612 * gdbtypes.c (make_atomic_type): New function.
3613 (recursive_dump_type): Handle TYPE_ATOMIC.
3614 * gdbtypes.h (enum type_flag_values): Renumber.
3615 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
3616 (TYPE_ATOMIC): New macro.
3617 (make_atomic_type): Declare.
3619 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3621 * btrace.c (ftrace_find_call): Skip gaps.
3622 (ftrace_new_function): Initialize level.
3623 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
3624 (ftrace_new_switch): Update
3626 (ftrace_new_gap): New.
3627 (ftrace_update_function): Create new function after gap.
3628 (btrace_compute_ftrace_bts): Create gap on error.
3629 (btrace_stitch_bts): Update parameters. Clear trace if it
3631 (btrace_stitch_trace): Update parameters. Update callers.
3632 (btrace_clear): Reset the number of gaps.
3633 (btrace_insn_get): Return NULL if the iterator points to a gap.
3634 (btrace_insn_number): Return zero if the iterator points to a gap.
3635 (btrace_insn_end): Allow gaps at the end.
3636 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
3637 (btrace_find_insn_by_number): Assert that the found iterator does
3639 (btrace_call_next, btrace_call_prev): Assert that the last function
3641 * btrace.h (btrace_bts_error): New.
3642 (btrace_function): Update comment.
3643 (btrace_function) <insn, insn_offset, number>: Update comment.
3644 (btrace_function) <errcode>: New.
3645 (btrace_thread_info) <ngaps>: New.
3646 (btrace_thread_info) <replay>: Update comment.
3647 (btrace_insn_get): Update comment.
3648 * record-btrace.c (btrace_ui_out_decode_error): New.
3649 (record_btrace_info): Print number of gaps.
3650 (btrace_insn_history, btrace_call_history): Call
3651 btrace_ui_out_decode_error for gaps.
3652 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
3654 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3656 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
3657 * nat/linux-btrace.c: (btrace_this_cpu): New.
3658 (cpu_supports_bts): Call btrace_this_cpu.
3659 (intel_supports_bts): Add cpu parameter.
3661 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3663 * btrace.h (btrace_insn_class): New.
3664 (btrace_insn) <size, iclass>: New.
3665 * btrace.c (ftrace_find_call): Update parameters. Update users.
3666 Use instruction classification.
3667 (ftrace_new_return): Update parameters. Update users.
3668 (ftrace_update_function): Update parameters. Update users. Use
3669 instruction classification.
3670 (ftrace_update_insns): Update parameters. Update users.
3671 (ftrace_classify_insn): New.
3672 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3673 TRY_CATCH around call to gdb_insn_length.
3675 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3677 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3678 Update parameters. Update users.
3680 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3682 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3683 (btrace_conf_bts_attributes): New.
3684 (btrace_conf_children): Add attributes.
3685 * common/btrace-common.h (btrace_config_bts): New.
3686 (btrace_config)<bts>: New.
3687 (btrace_config): Update comment.
3688 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3690 * features/btrace-conf.dtd: Increment version. Add size
3691 attribute to bts element.
3692 * record-btrace.c (set_record_btrace_bts_cmdlist,
3693 show_record_btrace_bts_cmdlist): New.
3694 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3695 record_btrace_print_conf, cmd_set_record_btrace_bts,
3696 cmd_show_record_btrace_bts): New.
3697 (record_btrace_info): Call record_btrace_print_conf.
3698 (_initialize_record_btrace): Add commands.
3699 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
3700 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
3701 (btrace_sync_conf): Synchronize bts size.
3702 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
3703 * NEWS: Announce new commands and new packets.
3705 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3707 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
3708 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
3709 (x86_linux_btrace_conf): New.
3710 (x86_linux_create_target): Initialize to_btrace_conf.
3711 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
3712 Check format. Split into this and ...
3713 (linux_enable_bts): ... this.
3714 (linux_btrace_conf): New.
3715 (perf_event_skip_record): Renamed into ...
3716 (perf_event_skip_bts_record): ... this. Updated users.
3717 (linux_disable_btrace): Split into this and ...
3718 (linux_disable_bts): ... this.
3719 (linux_read_btrace): Check format.
3720 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3721 (linux_btrace_conf): New.
3722 (btrace_target_info)<ptid>: Moved.
3723 (btrace_target_info)<conf>: New.
3724 (btrace_target_info): Split into this and ...
3725 (btrace_tinfo_bts): ... this. Updated users.
3726 * btrace.c (btrace_enable): Update parameters.
3727 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3728 (btrace_conf_children, btrace_conf_attributes)
3729 (btrace_conf_elements): New.
3730 * btrace.h (btrace_enable): Update parameters.
3731 (btrace_conf, parse_xml_btrace_conf): New.
3732 * common/btrace-common.h (btrace_config): New.
3733 * feature/btrace-conf.dtd: New.
3734 * record-btrace.c (record_btrace_conf): New.
3735 (record_btrace_cmdlist): New.
3736 (record_btrace_enable_warn, record_btrace_open): Pass
3737 &record_btrace_conf.
3738 (record_btrace_info): Print recording format.
3739 (cmd_record_btrace_bts_start): New.
3740 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3741 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3742 Add "record bts" alias command.
3743 * remote.c (remote_state)<btrace_config>: New.
3744 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3745 (remote_protocol_features): Add qXfer:btrace-conf:read.
3746 (remote_open_1): Call remote_btrace_reset.
3747 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3748 (btrace_target_info)<conf>: New.
3749 (btrace_sync_conf, btrace_read_config): New.
3750 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3752 (remote_btrace_conf): New.
3753 (init_remote_ops): Initialize to_btrace_conf.
3754 (_initialize_remote): Add qXfer:btrace-conf packet.
3755 * target.c (target_enable_btrace): Update parameters.
3756 (target_btrace_conf): New.
3757 * target.h (target_enable_btrace): Update parameters.
3758 (target_btrace_conf): New.
3759 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3760 (target_ops)<to_enable_btrace>: Update parameters and comment.
3761 (target_ops)<to_btrace_conf>: New.
3762 * target-delegates: Regenerate.
3763 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3764 (target_debug_print_const_struct_btrace_target_info_p): New.
3765 * NEWS: Announce new command and new packet.
3767 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3769 * nat/linux-btrace.h (perf_event_buffer): New.
3770 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3772 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3773 (perf_event_buffer_size, perf_event_buffer_begin)
3774 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3776 (perf_event_new_data): New.
3778 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3780 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3781 * record-btrace.c (record_btrace_open): Remove call to
3782 target_supports_btrace.
3783 * remote.c (remote_supports_btrace): Update parameters.
3784 * target.c (target_supports_btrace): Update parameters.
3785 * target.h (to_supports_btrace, target_supports_btrace): Update
3787 * target-delegates.c: Regenerate.
3788 * target-debug.h (target_debug_print_enum_btrace_format): New.
3789 * nat/linux-btrace.c
3790 (kernel_supports_btrace): Rename into ...
3791 (kernel_supports_bts): ... this. Update users. Update warning text.
3792 (intel_supports_btrace): Rename into ...
3793 (intel_supports_bts): ... this. Update users.
3794 (cpu_supports_btrace): Rename into ...
3795 (cpu_supports_bts): ... this. Update users.
3796 (linux_supports_btrace): Update parameters. Split into this and ...
3797 (linux_supports_bts): ... this.
3798 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3800 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3802 * Makefile.in (SFILES): Add common/btrace-common.c.
3803 (COMMON_OBS): Add common/btrace-common.o.
3804 (btrace-common.o): Add build rules.
3805 * btrace.c (parse_xml_btrace): Update parameters.
3806 (parse_xml_btrace_block): Set format field.
3807 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3808 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3809 (btrace_compute_ftrace): Split into this and...
3810 (btrace_compute_ftrace_bts): ...this.
3811 (btrace_stitch_trace): Split into this and...
3812 (btrace_stitch_bts): ...this.
3813 * btrace.h (parse_xml_btrace): Update parameters.
3814 (make_cleanup_btrace_data): New.
3815 * common/btrace-common.c: New.
3816 * common/btrace-common.h: Include common-defs.h.
3817 (btrace_block_s): Update comment.
3818 (btrace_format): New.
3819 (btrace_format_string): New.
3820 (btrace_data_bts): New.
3822 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3823 * remote.c (remote_read_btrace): Update parameters.
3824 * target.c (target_read_btrace): Update parameters.
3825 * target.h (target_read_btrace): Update parameters.
3826 (target_ops)<to_read_btrace>: Update parameters.
3827 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3828 * target-delegates.c: Regenerate.
3829 * target-debug (target_debug_print_struct_btrace_data_p): New.
3830 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3831 (linux_read_bts): ...this.
3832 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3834 2015-02-06 Doug Evans <dje@google.com>
3836 * remote-m32r-sdi.c: Include symfile.h.
3838 2015-02-06 Doug Evans <dje@google.com>
3840 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3841 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3844 2015-02-06 Pedro Alves <palves@redhat.com>
3846 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3848 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3851 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3852 (enable_count_command): Check args for NULL value.
3854 2015-02-05 Doug Evans <xdje42@gmail.com>
3856 * guile/scm-frame.c: Fix spelling errors in a comment.
3858 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3860 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3861 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3864 2015-02-04 Pedro Alves <palves@redhat.com>
3866 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3867 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3869 (resume_stopped_resumed_lwps): Don't check whether the thread is
3870 marked as executing.
3871 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3873 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3875 * regset.h (struct regset): Add flags field.
3876 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3877 * corelow.c (get_core_register_section): Add warning if the size
3878 exceeds the requested size and the regset does not have the
3879 REGSET_VARIABLE_SIZE flag set.
3880 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3882 * armbsd-tdep.c (armbsd_gregset): Likewise.
3883 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3884 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3885 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3886 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3888 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3890 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3891 For ".reg-xstate", explicitly specify the requested section size
3892 via X86_XSTATE_SIZE instead of just 0 on input and
3893 X86_XSTATE_MAX_SIZE on output.
3894 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3897 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3900 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3901 function type, particularly its SIZE parameter.
3902 * gdbarch.h: Regenerate.
3903 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3904 actual against required size using ">=" instead of "==".
3905 (amd64_collect_fpregset): Likewise.
3906 * i386-tdep.c (i386_supply_gregset): Likewise.
3907 (i386_collect_gregset): Likewise.
3908 (i386_supply_fpregset): Likewise.
3909 (i386_collect_fpregset): Likewise.
3910 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3911 (mips_fill_gregset_wrapper): Likewise.
3912 (mips_supply_fpregset_wrapper): Likewise.
3913 (mips_fill_fpregset_wrapper): Likewise.
3914 (mips64_supply_gregset_wrapper): Likewise.
3915 (mips64_fill_gregset_wrapper): Likewise.
3916 (mips64_supply_fpregset_wrapper): Likewise.
3917 (mips64_fill_fpregset_wrapper): Likewise.
3918 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3919 (am33_supply_fpregset_method): Likewise.
3920 (am33_collect_gregset_method): Likewise.
3921 (am33_collect_fpregset_method): Likewise.
3923 2015-02-04 Doug Evans <dje@google.com>
3924 Pedro Alves <palves@redhat.com>
3925 Eli Zaretskii <eliz@gnu.org>
3928 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3929 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3930 * tui/tui-file.c: #include tui/tui-command.h.
3931 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3932 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3933 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3935 2015-02-04 Pedro Alves <palves@redhat.com>
3938 * event-loop.c (gdb_do_one_event): Add default switch case.
3940 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3942 Filter out inferior gcc option -fpreprocessed.
3943 * compile/compile.c (filter_args): New function.
3946 2015-02-03 Pedro Alves <palves@redhat.com>
3948 * event-loop.c: Don't declare nor define a queue type for
3950 (event_queue): Delete.
3951 (create_event, create_file_event, gdb_event_xfree)
3952 (initialize_event_loop, process_event): Delete.
3953 (gdb_do_one_event): Return as soon as one event is handled.
3954 (handle_file_event): Change prototype. Used the passed in
3955 file_handler pointer and ready_mask instead of looping over all
3957 (gdb_wait_for_event): Update the poll/select timeouts before
3958 blocking. Run event handlers directly instead of queueing events.
3959 Return as soon as one event is handled.
3960 (struct async_event_handler_data): Delete.
3961 (invoke_async_event_handler): Delete.
3962 (check_async_event_handlers): Change return type to int. Run
3963 event handlers directly instead of queueing events. Return as
3964 soon as one event is handled.
3965 (handle_timer_event): Delete.
3966 (update_wait_timeout): New function, factored out from
3968 (poll_timers): Reimplement.
3969 * event-loop.h (initialize_event_loop): Delete declaration.
3970 * top.c (gdb_init): Don't call initialize_event_loop.
3972 2015-02-03 Pedro Alves <palves@redhat.com>
3974 * event-loop.c (clear_async_event_handler): New function.
3975 * event-loop.h (clear_async_event_handler): New declaration.
3976 * record-btrace.c (record_btrace_async): New function.
3977 (init_record_btrace_ops): Install record_btrace_async.
3978 * record-full.c (record_full_async): New function.
3979 (record_full_resume): Don't mark the async event source here.
3980 (init_record_full_ops): Install record_full_async.
3981 (record_full_core_resume): Don't mark the async event source here.
3982 (init_record_full_core_ops): Install record_full_async.
3983 * remote.c (remote_async): Mark and clear the async stop reply
3984 queue event-loop token as appropriate.
3986 2015-02-03 Pedro Alves <palves@redhat.com>
3988 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3989 target_is_async_p instead of target_can_async.
3990 (linux_nat_wait): Use target_is_async_p instead of
3991 target_can_async. Don't enable async here.
3992 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3993 target_is_async_p instead of target_can_async.
3995 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3997 * varobj.h (lang_varobj_ops): Mention which return values need
4000 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4002 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
4004 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4007 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
4008 results found in the cache.
4010 2015-02-02 Joel Brobecker <brobecker@adacore.com>
4013 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
4014 when allocating a new one.
4016 2015-02-01 Tom Tromey <tom@tromey.com>
4018 * MAINTAINERS: Remove myself.
4020 2015-01-31 Doug Evans <xdje42@gmail.com>
4022 * dwarf2read.c (process_structure_scope): Update setting of
4023 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
4024 * gdbtypes.c (internal_type_vptr_fieldno): New function.
4025 (set_type_vptr_fieldno): New function.
4026 (internal_type_vptr_basetype): New function.
4027 (set_type_vptr_basetype): New function.
4028 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
4030 (allocate_cplus_struct_type): Initialize vptr_fieldno.
4031 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
4032 (print_cplus_stuff): ... moved here.
4033 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
4034 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
4036 (struct cplus_struct_type): ... here. All uses updated.
4037 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
4038 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
4039 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
4040 * stabsread.c (read_tilde_fields): Update setting of
4041 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
4043 2015-01-31 Doug Evans <xdje42@gmail.com>
4045 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
4047 (cp_print_class_member): Rename local domain to self_type.
4048 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
4049 domain_type to self_type.
4050 (set_die_type) <need_gnat_info>: Handle
4051 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
4052 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
4053 TYPE_SPECIFIC_SELF_TYPE.
4054 * gdbtypes.c (internal_type_self_type): New function.
4055 (set_type_self_type): New function.
4056 (smash_to_memberptr_type): Rename parameter domain to self_type.
4057 Update setting of TYPE_SELF_TYPE.
4058 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
4059 (smash_to_method_type): Rename parameter domain to self_type.
4060 Update setting of TYPE_SELF_TYPE.
4061 (check_stub_method): Call smash_to_method_type.
4062 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
4063 (copy_type_recursive): Ditto.
4064 * gdbtypes.h (enum type_specific_kind): New value
4065 TYPE_SPECIFIC_SELF_TYPE.
4066 (struct main_type) <type_specific>: New member self_type.
4067 (struct cplus_struct_type) <fn_field.type>: Update comment.
4068 (TYPE_SELF_TYPE): Rewrite.
4069 (internal_type_self_type, set_type_self_type): Declare.
4070 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
4072 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
4073 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
4075 * stabsread.c (read_member_functions): Mark methods with
4076 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
4079 2015-01-31 Doug Evans <xdje42@gmail.com>
4081 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
4084 2015-01-31 Doug Evans <xdje42@gmail.com>
4086 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
4087 or unions. Return zero if union.
4088 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
4089 (gnuv3_rtti_type): Pass already-check_typedef'd value to
4091 (compute_vtable_size): Assert only passed structs.
4092 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
4094 2015-01-31 Doug Evans <xdje42@gmail.com>
4096 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
4099 2015-01-31 Gary Benson <gbenson@redhat.com>
4100 Doug Evans <dje@google.com>
4105 * cli/cli-cmds.c (complete_command): Notify user if max-completions
4107 * common/common-exceptions.h (enum errors)
4108 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
4109 * completer.h (get_max_completions_reached_message): New declaration.
4110 (max_completions): Likewise.
4111 (completion_tracker_t): New typedef.
4112 (new_completion_tracker): New declaration.
4113 (make_cleanup_free_completion_tracker): Likewise.
4114 (maybe_add_completion_enum): New enum.
4115 (maybe_add_completion): New declaration.
4116 (throw_max_completions_reached_error): Likewise.
4117 * completer.c (max_completions): New global variable.
4118 (new_completion_tracker): New function.
4119 (free_completion_tracker): Likewise.
4120 (make_cleanup_free_completion_tracker): Likewise.
4121 (maybe_add_completions): Likewise.
4122 (throw_max_completions_reached_error): Likewise.
4123 (complete_line): Remove duplicates and limit result to max_completions
4125 (get_max_completions_reached_message): New function.
4126 (gdb_display_match_list): Handle max_completions.
4127 (_initialize_completer): New declaration and function.
4128 * symtab.c: Include completer.h.
4129 (completion_tracker): New static variable.
4130 (completion_list_add_name): Call maybe_add_completion.
4131 (default_make_symbol_completion_list_break_on_1): Renamed from
4132 default_make_symbol_completion_list_break_on. Maintain
4133 completion_tracker across calls to completion_list_add_name.
4134 (default_make_symbol_completion_list_break_on): New function.
4135 * top.c (init_main): Set rl_completion_display_matches_hook.
4136 * tui/tui-io.c: Include completer.h.
4137 (tui_old_rl_display_matches_hook): New static global.
4138 (tui_rl_display_match_list): Notify user if max-completions reached.
4139 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
4140 * NEWS (New Options): Mention set/show max-completions.
4142 2015-01-31 Gary Benson <gbenson@redhat.com>
4144 * symtab.c (struct add_name_data) <code>: New field.
4146 (add_symtab_completions): New function.
4147 (symtab_expansion_callback): Likewise.
4148 (default_make_symbol_completion_list_break_on): Set datum.code.
4149 Move minimal symbol scan before calling expand_symtabs_matching.
4150 Scan known primary symtabs for externs and statics before calling
4151 expand_symtabs_matching. Pass symtab_expansion_callback as
4152 expansion_notify argument to expand_symtabs_matching. Do not scan
4153 primary symtabs for externs and statics after calling
4154 expand_symtabs_matching.
4156 2015-01-31 Gary Benson <gbenson@redhat.com>
4158 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
4159 (struct quick_symbol_functions) <expand_symtabs_matching>:
4160 New argument expansion_notify. All uses updated.
4161 (expand_symtabs_matching): New argument expansion_notify.
4163 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4164 Also print expansion notify.
4165 * symtab.c (expand_symtabs_matching_via_partial): Call
4166 expansion_notify whenever a partial symbol table is expanded.
4167 * dwarf2read.c (dw2_expand_symtabs_matching): Call
4168 expansion_notify whenever a symbol table is instantiated.
4170 2015-01-31 Doug Evans <xdje42@gmail.com>
4172 * cli-out.c: #include completer.h, readline/readline.h.
4173 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
4174 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
4175 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
4176 * cli-out.h (cli_display_match_list): Declare.
4177 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
4178 (ELLIPSIS_LEN): Ditto.
4179 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
4180 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
4181 (gdb_fnprint, gdb_print_filename): Ditto.
4182 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
4183 (gdb_display_match_list): Ditto.
4184 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
4185 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
4186 (mld_beep_ftype, mld_read_key_ftype): Ditto.
4187 (match_list_displayer): New struct.
4188 (gdb_display_match_list): Declare.
4189 * top.c (init_main): Set rl_completion_display_matches_hook.
4190 * tui/tui-io.c: #include completer.h.
4191 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
4192 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
4193 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
4194 (tui_mld_getc, tui_mld_read_key): Ditto.
4195 (tui_rl_display_match_list): Rewrite.
4196 (tui_handle_resize_during_io): New arg for_completion. All callers
4199 2015-01-31 Doug Evans <xdje42@gmail.com>
4201 Add symbol lookup cache.
4202 * NEWS: Document new options and commands.
4203 * symtab.c (symbol_cache_key): New static global.
4204 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
4205 (SYMBOL_LOOKUP_FAILED): New macro.
4206 (symbol_cache_slot_state): New enum.
4207 (block_symbol_cache): New struct.
4208 (symbol_cache): New struct.
4209 (new_symbol_cache_size, symbol_cache_size): New static globals.
4210 (hash_symbol_entry, eq_symbol_entry): New functions.
4211 (symbol_cache_byte_size, resize_symbol_cache): New functions.
4212 (make_symbol_cache, free_symbol_cache): New functions.
4213 (get_symbol_cache, symbol_cache_cleanup): New function.
4214 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
4215 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
4216 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
4217 (symbol_cache_flush, symbol_cache_dump): New functions.
4218 (maintenance_print_symbol_cache): New function.
4219 (maintenance_flush_symbol_cache): New function.
4220 (symbol_cache_stats): New function.
4221 (maintenance_print_symbol_cache_statistics): New function.
4222 (symtab_new_objfile_observer): New function.
4223 (symtab_free_objfile_observer): New function.
4224 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
4225 (_initialize_symtab): Init symbol_cache_key. New parameter
4226 maint symbol-cache-size. New maint commands print symbol-cache,
4227 print symbol-cache-statistics, flush-symbol-cache.
4228 Install new_objfile, free_objfile observers.
4230 2015-01-31 Joel Brobecker <brobecker@adacore.com>
4233 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
4236 2015-01-31 Doug Evans <xdje42@gmail.com>
4238 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
4239 * auto-load.c: #include ctype.h.
4240 (struct auto_load_pspace_info): Replace member loaded_scripts with
4241 new members loaded_script_files, loaded_script_texts.
4242 (auto_load_pspace_data_cleanup): Update.
4243 (init_loaded_scripts_info): Update.
4244 (get_auto_load_pspace_data_for_loading): Update.
4245 (maybe_add_script_file): Renamed from maybe_add_script. All callers
4247 (maybe_add_script_text): New function.
4248 (clear_section_scripts): Update.
4249 (source_script_file, execute_script_contents): New functions.
4250 (source_section_scripts): Add support for
4251 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
4252 (print_scripts): New function.
4253 (auto_load_info_scripts): Also print inlined scripts.
4254 (maybe_print_unsupported_script_warning): Renamed from
4255 unsupported_script_warning_print. All callers updated.
4256 (maybe_print_script_not_found_warning): Renamed from
4257 script_not_found_warning_print. All callers updated.
4258 * extension-priv.h (struct extension_language_script_ops): New member
4259 objfile_script_executor.
4260 * extension.c (ext_lang_objfile_script_executor): New function.
4261 * extension.h (objfile_script_executor_func): New typedef.
4262 (ext_lang_objfile_script_executor): Declare.
4263 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
4264 * guile/guile.c (guile_extension_script_ops): Update.
4265 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
4266 * python/python.c (python_extension_script_ops): Update.
4267 (gdbpy_execute_objfile_script): New function.
4269 2015-01-31 Eli Zaretskii <eliz@gnu.org>
4271 * tui/tui-io.c (tui_expand_tabs): New function.
4272 (tui_puts, tui_redisplay_readline): Expand TABs into the
4273 appropriate number of spaces.
4274 * tui/tui-regs.c: Include tui-io.h.
4275 (tui_register_format): Call tui_expand_tabs to expand TABs into
4276 the appropriate number of spaces.
4277 * tui/tui-io.h: Add prototype for tui_expand_tabs.
4279 2015-01-30 Doug Evans <dje@google.com>
4281 * NEWS: "info source" command now display producer string if present.
4282 * source.c (source_info): Print producer string if present.
4284 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4286 * varobj.c (varobj_delete): Fix comment.
4288 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4290 * varobj.c (create_child): Modify comment.
4292 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4294 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
4296 (ada_name_of_variable): Same.
4297 (ada_path_expr_of_child): Same.
4298 (ada_value_of_variable): Same.
4299 (ada_value_is_changeable_p): Same.
4300 (ada_value_has_mutated): Same.
4301 * c-varobj.c (varobj_is_anonymous_child): Same.
4302 (c_is_path_expr_parent): Same.
4303 (c_number_of_children): Same.
4304 (c_name_of_variable): Same.
4305 (c_path_expr_of_child): Same.
4307 (c_value_of_variable): Same.
4308 (cplus_number_of_children): Same.
4309 (cplus_name_of_variable): Same.
4310 (cplus_path_expr_of_child): Same.
4311 (cplus_value_of_variable): Same.
4312 * jv-varobj.c (java_number_of_children): Same.
4313 (java_name_of_variable): Same.
4314 (java_path_expr_of_child): Same.
4315 (java_value_of_variable): Same.
4316 * varobj.c (number_of_children): Same.
4317 (name_of_variable): Same.
4319 (varobj_ensure_python_env): Same.
4320 (varobj_get_objname): Same.
4321 (varobj_get_expression): Same.
4322 (varobj_get_display_format): Same.
4323 (varobj_get_display_hint): Same.
4324 (varobj_has_more): Same.
4325 (varobj_get_thread_id): Same.
4326 (varobj_get_frozen): Same.
4327 (dynamic_varobj_has_child_method): Same.
4328 (varobj_get_gdb_type): Same.
4329 (is_path_expr_parent): Same.
4330 (varobj_default_is_path_expr_parent): Same.
4331 (varobj_get_language): Same.
4332 (varobj_get_attributes): Same.
4333 (varobj_is_dynamic_p): Same.
4334 (varobj_get_child_range): Same.
4335 (varobj_value_has_mutated): Same.
4336 (varobj_get_value_type): Same.
4337 (number_of_children): Same.
4338 (name_of_variable): Same.
4339 (check_scope): Same.
4340 (varobj_editable_p): Same.
4341 (varobj_value_is_changeable_p): Same.
4342 (varobj_floating_p): Same.
4343 (varobj_default_value_is_changeable_p): Same.
4345 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4347 * varobj.c (varobj_get_path_expr): Set var->path_expr.
4348 * c-varobj.c (c_path_expr_of_child): Set local var instead of
4350 (cplus_path_expr_of_child): Same.
4352 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4354 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
4356 (mi_cmd_var_info_expression): Same.
4357 * varobj.c (varobj_get_expression): Mention in the comment that
4358 the result must by freed by the caller.
4360 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4362 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
4364 (varobj_update_one): Same.
4365 * varobj.c (update_type_if_necessary): Free curr_type_str and
4367 (varobj_get_type): Specify in comment that the result needs to be
4368 freed by the caller.
4370 2015-01-29 Doug Evans <dje@google.com>
4373 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
4375 2015-01-25 Mark Wielaard <mjw@redhat.com>
4377 * dwarf2read.c (checkproducer): Call producer_is_gcc.
4378 * utils.c (producer_is_gcc_ge_4): Likewise.
4379 (producer_is_gcc): New function.
4380 * utils.h (producer_is_gcc): New declaration.
4382 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4384 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4386 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
4387 parameter by "addr_stack" parameter.
4388 (resolve_dynamic_range): Replace "addr" parameter by
4389 "stack_addr" parameter. Update function documentation.
4390 Update code accordingly.
4391 (resolve_dynamic_array, resolve_dynamic_union)
4392 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
4393 (resolve_dynamic_type): Update code, following the changes made
4394 to resolve_dynamic_type_internal's interface.
4395 * dwarf2loc.h (struct property_addr_info): New.
4396 (dwarf2_evaluate_property): Replace "address" parameter
4397 by "addr_stack" parameter. Adjust function documentation.
4398 (struct dwarf2_offset_baton): New.
4399 (struct dwarf2_property_baton): Update documentation of
4400 field "referenced_type" to be more general. New field
4401 "offset_info" in union data field.
4402 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
4403 parameter by "addr_stack" parameter. Adjust code accordingly.
4404 Add support for PROP_ADDR_OFFSET properties.
4405 * dwarf2read.c (attr_to_dynamic_prop): Add support for
4406 DW_AT_data_member_location attributes as well. Use case
4407 statements instead of if/else condition.
4409 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4411 * ada-varobj.c (ada_varobj_get_array_number_of_children):
4412 Return zero if PARENT_VALUE is NULL and parent_type's
4413 range type is dynamic.
4415 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4417 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
4418 nonzero if the type's subtype is dynamic.
4419 (resolve_dynamic_range): Also resolve the range's subtype.
4421 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
4423 Pushed by Joel Brobecker <brobecker@adacore.com>.
4424 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
4426 2015-01-27 Doug Evans <dje@google.com>
4428 * NEWS: Mention gdb.Objfile.username.
4429 * python/py-objfile.c (objfpy_get_username): New function.
4430 (objfile_getset): Add "username".
4432 2015-01-24 Mark Wielaard <mjw@redhat.com>
4434 * stack.c (return_command): Markup warning message with _.
4436 2015-01-24 Doug Evans <xdje42@gmail.com>
4438 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4440 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4442 Fix 100x slowdown regression on DWZ files.
4443 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
4444 (struct line_header): Add offset and offset_in_dwz.
4445 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
4446 (free_line_header_voidp): New declaration.
4447 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
4449 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
4450 (handle_DW_AT_stmt_list): Use line_header_hash.
4451 (free_line_header_voidp): New function.
4452 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
4453 (dwarf_decode_lines): New parameter decode_mapping, use it.
4454 (dwarf2_free_objfile): Free line_header_hash.
4456 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
4459 * valops.c (value_rtti_indirect_type): Catch exception thrown by
4462 2015-01-15 Mark Wielaard <mjw@redhat.com>
4464 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
4466 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
4467 calling_convention an 8 bit bit field.
4468 (TYPE_NO_RETURN): New macro.
4469 * infcmd.c (finish_command): Query if function does not return
4471 * stack.c (return_command): Likewise.
4473 2015-01-23 Pedro Alves <palves@redhat.com>
4475 * linux-nat.c (linux_is_async_p): New macro.
4476 (linux_nat_is_async_p):
4477 (linux_nat_terminal_inferior): Check whether the target can async
4478 instead of whether it is already async.
4479 (linux_nat_terminal_ours): Don't check whether the target is
4481 (linux_async_pipe): Use linux_is_async_p.
4483 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4485 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
4487 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
4488 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
4489 Sort tp_array using tp_array_compar.
4490 (_initialize_thread): Extend thread_apply_all_command help.
4492 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 * corelow.c (core_open): Call also thread_command.
4495 * gdbthread.h (thread_command): New prototype moved from ...
4496 * thread.c (thread_command): ... here.
4497 (thread_command): Make it global.
4499 2015-01-22 Pedro Alves <palves@redhat.com>
4501 * configure.ac [*mingw32*]: Check $curses_found instead of
4503 * configure: Regenerate.
4504 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
4505 HAVE_NCURSES_NCURSES_H checks.
4507 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4509 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
4510 fails with the 1st arg NULL, try again with "unknown". Don't test
4511 the "cup" capability: it isn't supported by the Windows port of
4512 ncurses, but the Windows console driver is still capable of
4515 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4517 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
4519 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4521 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
4522 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
4523 reason that "make TAGS" is broken.
4525 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
4527 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4528 and check additional store instructions.
4530 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4532 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
4534 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4536 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
4537 ppc_canonicalize_syscall, ppc_linux_syscall_record,
4538 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
4539 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4540 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
4541 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
4542 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
4543 ppc_process_record_op19, ppc_process_record_op31,
4544 ppc_process_record_op59, ppc_process_record_op60,
4545 ppc_process_record_op63): Likewise.
4547 2015-01-20 Joel Brobecker <brobecker@adacore.com>
4549 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
4550 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
4553 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
4555 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
4556 ppc_process_record_op31, ppc_process_record_op59,
4557 ppc_process_record_op60, ppc_process_record_op63,
4558 ppc_process_record): Fix -Wformat warning.
4559 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
4560 Remove unused variables.
4562 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
4564 * MAINTAINERS (Write After Approval): Add "Chen Gang".
4566 2015-01-19 Eli Zaretskii <eliz@gnu.org>
4568 * configure.ac [*mingw32*]: Only add windows-termcap.o to
4569 CONFIG_OBS if not building with a curses library.
4570 * configure: Regenerate.
4572 * windows-termcap.c: Include defs.h. Make the whole body empty if
4573 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
4574 HAVE_NCURSES_NCURSES_H is defined.
4576 2015-01-19 Joel Brobecker <brobecker@adacore.com>
4578 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
4579 from end of line to start of next line.
4581 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4583 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
4584 Scan PLT stub backward for reverse debugging.
4585 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4587 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4588 Ulrich Weigand <uweigand@de.ibm.com>
4590 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
4592 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
4594 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
4595 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
4596 (ppc_linux_init_abi): Set process_record, process_record_signal.
4597 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
4598 ppc_linux_record_tdep to gdbarch_tdep.
4599 (ppc_process_record): New declaration.
4600 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
4601 ppc_process_record_op19, ppc_process_record_op31,
4602 ppc_process_record_op59, ppc_process_record_op60,
4603 ppc_process_record_op63, ppc_process_record): New functions.
4605 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4607 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4608 rs6000_in_function_epilogue_frame_p and add an argument
4610 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
4611 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
4613 (rs6000_epilogue_frame_unwind): New.
4614 (rs6000_gdbarch_init): Append epilogue unwinder.
4616 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4618 * nat/linux-personality.c: Replace "#ifndef
4619 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
4620 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
4623 2015-01-16 Eli Zaretskii <eliz@gnu.org>
4625 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
4627 (_initialize_tui_win) <border-kind, border-mode>:
4628 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
4629 (tui_set_tab_width_command): Fix the commentary.
4631 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
4633 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
4635 (tui_set_tab_width_command): Delete and recreate the source and
4636 the disassembly windows, to show the effect of the changed tab
4639 * tui/tui-data.h (LINE_PREFIX): Make shorter
4640 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
4641 "Thread NNNNN.XXXX" thread ID notation on Windows.
4643 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 Fix gcc-5 compilation.
4646 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
4648 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4650 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4651 (linux-personality.o): New rule.
4652 * common/common-defs.h: Include <stdint.h>.
4653 * config/aarch64/linux.mh (NATDEPFILES): Include
4654 linux-personality.o.
4655 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4656 * config/arm/linux.mh (NATDEPFILES): Likewise.
4657 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4658 * config/i386/linux.mh (NATDEPFILES): Likewise.
4659 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4660 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4661 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4662 * config/mips/linux.mh (NATDEPFILES): Likewise.
4663 * config/pa/linux.mh (NATDEPFILES): Likewise.
4664 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4665 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4666 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4667 * config/s390/linux.mh (NATDEPFILES): Likewise.
4668 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4669 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4670 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4671 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4672 * defs.h: Remove #include <stdint.h> (moved to
4673 common/common-defs.h).
4674 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4675 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4676 nat/linux-personality.c).
4677 (linux_nat_create_inferior): Remove code to disable address space
4678 randomization (moved to nat/linux-personality.c). Create cleanup
4679 to disable address space randomization.
4680 * nat/linux-personality.c: New file.
4681 * nat/linux-personality.h: Likewise.
4683 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4685 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4686 common/posix-strerror.c.
4687 (posix-strerror.o): New rule.
4688 (mingw-strerror.o): Likewise.
4689 * common/common-utils.h (safe_strerror): Move prototype to here,
4691 * common/common.host: New file.
4692 * common/mingw-strerror.c: Likewise.
4693 * common/posix-strerror.c: Likewise.
4694 * configure: Regenerated.
4695 * configure.ac: Source common/common.host. Add variable
4696 common_host_obs to gdb_host_obs.
4697 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
4698 gdb/common/posix-strerror.c when warning about the use of
4700 * mingw-hdep.c (safe_strerror): Remove definition; move it to
4701 common/mingw-strerror.c.
4702 * posix-hdep.c (safe_strerror): Remove definition; move it to
4703 common/posix-hdep.c.
4704 * utils.h (safe_strerror): Remove prototype; move to
4705 common/common-utils.h.
4707 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4711 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4713 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
4714 ___XA type if the array has already been fixed.
4716 2015-01-14 Yao Qi <yao@codesourcery.com>
4718 * Makefile.in (ppc-linux.o): New rule.
4719 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4720 * configure.ac: AC_CHECK_FUNCS(getauxval).
4721 * config.in: Re-generated.
4722 * configure: Re-generated.
4723 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4725 * nat/ppc-linux.c: New file.
4726 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4727 Call ppc64_64bit_inferior_p.
4729 2015-01-14 Yao Qi <yao@codesourcery.com>
4731 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4733 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4734 (PPC_FEATURE_HAS_DFP): Likewise.
4735 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4736 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4737 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4738 Include "nat/ppc-linux.h".
4739 * nat/ppc-linux.h: New file.
4740 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4742 2015-01-14 Pedro Alves <palves@redhat.com>
4745 * breakpoint.c: Include "interps.h".
4746 (bpstat_do_actions_1): Also check whether the interpreter is
4749 2015-01-14 Pedro Alves <palves@redhat.com>
4752 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4753 reinstall if the interpreter is sync.
4755 2015-01-13 Doug Evans <dje@google.com>
4757 * objfiles.c (objfile_filename): New function.
4758 * objfiles.h (objfile_filename): Declare it.
4759 (objfile_name): Add function comment.
4760 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4761 bfd file name (which may be realpath'd), and the original name.
4763 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4765 * NEWS: Create a new section for the next release branch.
4766 Rename the section of the current branch, now that it has
4769 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4771 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4772 * version.in: Bump version to 7.9.50.DATE-cvs.
4774 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4776 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4777 Remove trailing new-line in argument of call to warning.
4779 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4781 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4782 new-line in argument of call to "warning".
4784 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4786 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4787 in static block, then try searching for primitive types.
4789 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4791 * top.h (gdb_add_history): Declare.
4792 * top.c (command_count): New variable.
4793 (gdb_add_history): New function.
4794 (gdb_safe_append_history): New static function.
4795 (quit_force): Call it.
4796 (command_line_input): Use gdb_add_history instead of
4798 * event-top.c (command_line_handler): Likewise.
4800 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4803 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4804 <setjmp.h> #include.
4806 2015-01-11 Doug Evans <xdje42@gmail.com>
4808 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4810 2015-01-11 Doug Evans <xdje42@gmail.com>
4813 * NEWS: The "maint demangle" command is renamed as "demangle".
4814 * demangle.c: #include cli/cli-utils.h, language.h.
4815 (demangle_command): New function.
4816 (_initialize_demangle): Add new command "demangle".
4817 * maint.c (maintenance_demangle): Stub out.
4818 (_initialize_maint_cmds): Update help text for "maint demangle",
4819 and mark as deprecated.
4821 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4823 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4824 inferior_thread is a function.
4826 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4828 * Makefile.in (.y.c): Don't munge yacc's #line
4831 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4833 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4834 to prompt for input.
4835 * tui/tui-hooks.c (tui_query_hook): Remove.
4836 (tui_install_hooks): Don't set deprecated_query_hook.
4837 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4838 height calculation. Always update the command window's cur_line.
4840 2015-01-09 Pedro Alves <palves@redhat.com>
4842 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4844 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4846 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4847 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4849 (check_stopped_by_watchpoint): New function.
4850 (save_sigtrap): Reimplement.
4851 (linux_nat_stopped_by_watchpoint): Adjust.
4852 (linux_nat_lp_status_is_event): Delete.
4853 (stop_wait_callback): Only call save_sigtrap after storing the
4855 (status_callback): If the thread had been stopped for a breakpoint
4856 that has since been removed, discard the event and resume the LWP.
4857 (count_events_callback, select_event_lwp_callback): Use
4858 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4859 (cancel_breakpoint): Rename to ...
4860 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4861 stopped for a software breakpoint or hardware breakpoint.
4862 (select_event_lwp): Only give preference to the stepping LWP in
4863 all-stop mode. Adjust comments.
4864 (stop_and_resume_callback): Remove references to new_pending_p.
4865 (linux_nat_filter_event): Likewise. Leave exit events of the
4866 leader thread pending here. Handle signal short circuiting here.
4867 Only call save_sigtrap after storing the pending waitstatus.
4868 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4869 new_pending. Don't handle leaving events the caller is not
4870 interested in pending here, nor handle signal short-circuiting
4871 here. Also give equal priority to all LWPs that have had events
4872 in non-stop mode. If reporting a software breakpoint event,
4873 unadjust the LWP's PC.
4874 * linux-nat.h (enum lwp_stop_reason): New.
4875 (struct lwp_info) <stop_pc>: New field.
4876 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4877 (struct lwp_info) <stop_reason>: New field.
4878 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4880 2015-01-09 Pedro Alves <palves@redhat.com>
4882 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4883 Set the LWP's 'resumed' flag.
4885 2015-01-09 Pedro Alves <palves@redhat.com>
4887 * linux-nat.c (linux_resume_one_lwp): New function.
4888 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4889 (linux_nat_resume): Use lwp_status_pending_p and
4890 linux_resume_one_lwp.
4891 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4892 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4893 (status_callback, running_callback): Use lwp_status_pending_p.
4894 (lwp_status_pending_p): New function.
4895 (stop_and_resume_callback): Use lwp_status_pending_p.
4896 (linux_nat_filter_event): Use linux_resume_one_lwp.
4897 (linux_nat_wait_1): Always use status_callback to look for an LWP
4898 with a pending status. Use linux_resume_one_lwp.
4899 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4900 linux_resume_one_lwp.
4902 2015-01-09 Pedro Alves <palves@redhat.com>
4904 * breakpoint.c (bp_location_inserted_here_p): New function,
4905 factored out from ...
4906 (breakpoint_inserted_here_p): ... here. Use
4907 ALL_BP_LOCATIONS_AT_ADDR.
4908 (software_breakpoint_inserted_here_p): Use
4909 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4911 2014-01-09 Pedro Alves <palves@redhat.com>
4913 Skip enabling event reporting if the kernel supports
4915 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4916 (thread_db_use_events): New function.
4917 (try_thread_db_load_1): Check thread_db_use_events before enabling
4919 (update_thread_state): New function.
4920 (attach_thread): Use it. Check thread_db_use_events before
4921 enabling event reporting.
4922 (thread_db_detach): Check thread_db_use_events before disabling
4924 (find_new_threads_callback): Check thread_db_use_events before
4925 enabling event reporting. Update the thread's state if not using
4926 libthread_db events.
4928 2015-01-09 Pedro Alves <palves@redhat.com>
4930 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4931 about to wait for is > 0.
4932 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4933 the kernel thread ID is -1.
4935 2015-01-09 Pedro Alves <palves@redhat.com>
4937 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4938 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4939 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4940 ptrace option flags.
4941 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4943 * nat/linux-procfs.c: Include <dirent.h>.
4944 (linux_proc_get_int): New parameter "warn". Handle it.
4945 (linux_proc_get_tgid): Adjust.
4946 (linux_proc_get_tracerpid): Rename to ...
4947 (linux_proc_get_tracerpid_nowarn): ... this.
4948 (linux_proc_pid_get_state): New function, factored out from
4949 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4951 (linux_proc_pid_is_gone): New function.
4952 (linux_proc_pid_is_stopped): Adjust.
4953 (linux_proc_pid_is_zombie_maybe_warn)
4954 (linux_proc_pid_is_zombie_nowarn): New functions.
4955 (linux_proc_pid_is_zombie): Use
4956 linux_proc_pid_is_zombie_maybe_warn.
4957 (linux_proc_attach_tgid_threads): New function.
4958 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4959 (linux_proc_get_tracerpid): Rename to ...
4960 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4961 (linux_proc_pid_is_gone): New declaration.
4962 (linux_proc_pid_is_zombie): Update comment.
4963 (linux_proc_pid_is_zombie_nowarn): New declaration.
4964 (linux_proc_attach_lwp_func): New typedef.
4965 (linux_proc_attach_tgid_threads): New declaration.
4966 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4967 use nowarn functions.
4968 (linux_ptrace_attach_fail_reason_string): Move here from
4969 gdbserver/linux-low.c and rename.
4970 (ptrace_supports_feature): If the current ptrace options are not
4971 known yet, check them now, instead of asserting.
4972 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4975 2015-01-09 Pedro Alves <palves@redhat.com>
4977 * linux-thread-db.c (thread_db_find_new_threads_silently)
4978 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4979 (find_new_threads_once): Print debug output on gdb_stdlog.
4981 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4982 Pedro Alves <palves@redhat.com>
4984 * compile/compile.c: Include "gdb_wait.h".
4985 (do_rmdir): Check return value, and free 'zap'.
4987 2015-01-08 Pedro Alves <palves@redhat.com>
4988 Yao Qi <yao@codesourcery.com>
4990 * dwarf2loc.c (indirect_pieced_value): Don't call
4991 gdb_sign_extend. Call extract_signed_integer instead.
4992 * utils.c (gdb_sign_extend): Remove.
4993 * utils.h (gdb_sign_extend): Remove declaration.
4995 2015-01-07 Pierre Muller <muller@sourceware.org>
4998 * stabsread.c (define_symbol): Set language for C++ special symbols.
5000 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5002 * inflow.c (initial_gdb_ttystate): Tweak comment.
5004 2015-01-07 Joel Brobecker <brobecker@adacore.com>
5006 * inflow.c (set_initial_gdb_ttystate): Add empty line after
5007 comment documenting function.
5009 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5011 * terminal.h (set_initial_gdb_ttystate): Declare.
5012 * inflow.c (initial_gdb_ttystate): New static variable.
5013 (set_initial_gdb_ttystate): New setter.
5014 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
5015 instead of our current terminal state.
5016 * top.c (gdb_init): Call set_initial_gdb_ttystate.
5018 2015-01-07 Joel Brobecker <brobecker@adacore.com>
5020 * guile/scm-type.c (tyscm_array_1): Add comment.
5021 * python/py-type.c (typy_array_1): Add comment.
5023 2015-01-06 Joel Brobecker <brobecker@adacore.com>
5025 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
5026 error if N2 is equal to N1 - 1.
5028 2015-01-06 Joel Brobecker <brobecker@adacore.com>
5030 * python/py-type.c (typy_array_1): Do not raise negative-length
5031 exception if N2 is equal to N1 - 1.
5033 2015-01-03 Doug Evans <xdje42@gmail.com>
5035 * c-exp.y: Whitespace cleanup.
5036 (classify_inner_name): Remove extra ;.
5038 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
5040 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
5043 2015-01-02 Doug Evans <dje@google.com>
5045 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
5047 2015-01-02 Doug Evans <dje@google.com>
5049 * symtab.h (struct symbol): Fix typo in comment.
5051 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5053 Update year range in copyright notice of all files.
5055 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5057 * top.c (print_gdb_version): Update copyright year to 2015.
5059 2015-01-01 Joel Brobecker <brobecker@adacore.com>
5061 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
5063 For older changes see ChangeLog-2014.
5069 version-control: never