1 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3 * record-btrace.c (get_thread_current_frame): New.
4 (record_btrace_start_replaying): Call get_thread_current_frame.
6 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
8 * record-btrace.c (record_btrace_resume_thread): A move request
9 overwrites a previous move request.
10 (record_btrace_find_resume_thread): Removed.
11 (record_btrace_resume): Resume all requested threads.
13 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
15 * record-btrace.c: Include vec.h.
16 (record_btrace_find_thread_to_move): Removed.
17 (btrace_step_no_resumed, btrace_step_again)
18 (record_btrace_stop_replaying_at_end): New.
19 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
20 (record_btrace_single_step_forward): Remove calls to
21 record_btrace_stop_replaying.
22 (record_btrace_step_thread): Do only one step for BTHR_CONT and
23 BTHR_RCONT. Keep threads at the end of their history moving.
24 (record_btrace_wait): Call record_btrace_step_thread for all threads
25 until one reports an event. Call record_btrace_stop_replaying_at_end
26 for the eventing thread.
28 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
30 * record-btrace.c (record_btrace_single_step_forward): Return
31 NO_HISTORY if a step brings us to the end of the execution history.
33 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
35 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
37 (record_btrace_single_step_forward): ... here and
38 (record_btrace_single_step_backward): ... here.
40 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
42 * record-btrace.c (btrace_step_spurious)
43 (record_btrace_single_step_forward)
44 (record_btrace_single_step_backward): New.
45 (record_btrace_step_thread): Call record_btrace_single_step_forward
46 and record_btrace_single_step_backward.
48 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
50 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
51 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
53 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
55 * record-btrace.c (btrace_thread_flag_to_str)
56 (record_btrace_cancel_resume): New.
57 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
58 (record_btrace_resume): Print execution direction.
59 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
60 (record_btrace_wait): Call record_btrace_cancel_resume.
62 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
64 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
65 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
66 (record_btrace_find_thread_to_move): Also accept threads that have
68 (btrace_step_stopped_on_request, record_btrace_stop): New.
69 (record_btrace_step_thread): Support BTHR_STOP.
70 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
71 (init_record_btrace_ops): Initialize to_stop.
73 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
75 * record-btrace.c (record_btrace_wait): Replace non_stop check with
76 target_is_non_stop_p ().
78 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
80 * ada-typeprint.c (print_array_type): Do not describe arrays as
81 packed when they embed dynamic elements.
83 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
85 * symtab.h (address_class): Document that TLS variables
86 are handled by LOC_UNRESOLVED.
87 * findvar.c (default_read_var_value): Don't relocate TLS variables.
88 * printcmd.c (address_info): Don't relocate TLS variables.
90 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
92 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
93 (decode_adrp): Likewise.
95 (decode_bcond): Likewise.
96 (decode_br): Likewise.
97 (decode_cb): Likewise.
98 (decode_eret): Likewise.
99 (decode_movz): Likewise.
100 (decode_orr_shifted_register_x): Likewise.
101 (decode_ret): Likewise.
102 (decode_stp_offset): Likewise.
103 (decode_stp_offset_wb): Likewise.
104 (decode_stur): Likewise.
105 (decode_tb): Likewise.
106 (aarch64_analyze_prologue): Likewise.
107 (pass_in_x): Likewise.
108 (pass_in_v): Likewise.
109 (pass_on_stack): Likewise.
110 (aarch64_push_dummy_call): Likewise.
111 (aarch64_extract_return_value): Likewise.
112 (aarch64_store_return_value): Likewise.
113 (aarch64_return_value): Likewise.
114 (aarch64_record_asimd_load_store): Likewise.
115 (aarch64_record_load_store): Likewise.
116 (aarch64_record_data_proc_simd_fp): Likewise.
118 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
120 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
121 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
122 (ppc64_skip_trampoline_code_1): ... here.
123 (ppc64_skip_trampoline_code): New wrapper function.
124 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
126 2015-09-15 Yao Qi <yao.qi@linaro.org>
128 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
130 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
131 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
132 if target_can_do_single_step returns 1.
133 * remote.c (struct vCont_action_support) <s, S>: New fields.
134 (PACKET_vContSupported): New enum.
135 (remote_protocol_features): New element for vContSupported.
136 (remote_query_supported): Append "vContSupported+".
137 (remote_vcont_probe): Remove support_s and support_S, use
138 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
139 vCont packet if c and C actions are not supported.
140 (remote_can_do_single_step): New function.
141 (init_remote_ops): Install it to to_can_do_single_step.
142 (_initialize_remote): Call add_packet_config_cmd.
143 * target.h (struct target_ops) <to_can_do_single_step>: New field.
144 (target_can_do_single_step): New macro.
145 * target-delegates.c: Re-generated.
147 2015-09-15 Yao Qi <yao.qi@linaro.org>
149 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
150 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
151 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
153 (aarch64_siginfo_from_compat_siginfo): New function.
154 * nat/aarch64-linux.h: Include signal.h.
155 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
156 (compat_timer_t, compat_clock_t): Likewise.
157 (struct compat_timeval): New.
158 (union compat_sigval): New.
159 (struct compat_siginfo): New.
160 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
161 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
162 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
163 (cpt_si_band, cpt_si_fd): Likewise.
165 2015-09-14 Pedro Alves <palves@redhat.com>
167 * infrun.c (current_stop_id): New global.
168 (get_stop_id, new_stop_id): New functions.
169 (fetch_inferior_event): Handle normal_stop proceeding the target.
170 (struct stop_context): New.
171 (save_stop_context, release_stop_context_cleanup)
172 (stop_context_changed): New functions.
173 (normal_stop): Return true if the hook-stop changes the stop
175 * infrun.h (get_stop_id): Declare.
176 (normal_stop): Now returns int. Add documentation.
178 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
180 * ada-lang.c (ada_value_ptr_subscript): Update the heading
181 comment. Handle packed arrays.
183 2015-09-14 Pedro Alves <palves@redhat.com>
185 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
186 mention of maint set/show target-non-stop.
188 2015-09-11 Don Breazeal <donb@codesourcery.com>
190 * NEWS: Announce new remote packets for the exec-events
191 feature and the exec-events feature and associated commands.
193 2015-09-11 Don Breazeal <donb@codesourcery.com>
195 * remote.c (remote_exec_event_p): New function.
196 (remote_insert_exec_catchpoint): New function.
197 (remote_remove_exec_catchpoint): New function.
198 (init_extended_remote_ops): Initialize extended_remote_ops
199 members to_insert_exec_catchpoint and
200 to_remove_exec_catchpoint.
202 2015-09-11 Don Breazeal <donb@codesourcery.com>
203 Luis Machado <lgustavo@codesourcery.com>
205 * infrun.c (follow_exec): Use process-style ptid for
206 exec message. Call add_inferior_with_spaces and
208 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
209 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
210 * remote.c (remote_pspace_data): New static variable.
211 (remote_pspace_data_cleanup): New function.
212 (get_remote_exec_file): New function.
213 (set_remote_exec_file_1): New function.
214 (set_remote_exec_file): New function.
215 (show_remote_exec_file): New function.
216 (remote_exec_file): Delete static variable.
217 (anonymous enum) <PACKET_exec_event_feature>: New
218 enumeration constant.
219 (remote_protocol_features): Add entry for exec-events feature.
220 (remote_query_supported): Add client side of qSupported query
221 for exec-events feature.
222 (remote_follow_exec): New function.
223 (remote_parse_stop_reply): Handle 'exec' stop reason.
224 (extended_remote_run, extended_remote_create_inferior): Call
225 get_remote_exec_file and set_remote_exec_file_1.
226 (init_extended_remote_ops) <to_follow_exec>: Initialize new
228 (_initialize_remote): Call
229 register_program_space_data_with_cleanup. Call
230 add_packet_config_cmd for remote exec-events feature.
231 Modify call to add_setshow_string_noescape_cmd for exec-file
232 to use new functions set_remote_exec_file and
233 show_remote_exec_file.
234 * target-debug.h, target-delegates.c: Regenerated.
235 * target.c (target_follow_exec): New function.
236 * target.h (struct target_ops) <to_follow_exec>: New member.
237 (target_follow_exec): Declare new function.
239 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
241 * aarch64-tdep.c (decode_cb): Move up comment describing the
243 (decode_tb): Fix a typo in comment above the function. Move up
244 comment describing the encoding.
246 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
248 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
250 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
253 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
254 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
256 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
258 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
261 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
263 * ada-lang.c (ada_search_struct_field): Constify parameters
265 (xget_renaming_scope): Likewise.
266 (ada_is_redundant_range_encoding): Likewise.
267 (scan_discrim_bound): Likewise.
268 (to_fixed_range_type): Likewise.
270 2015-09-10 Yao Qi <yao.qi@linaro.org>
272 * breakpoint.c (download_tracepoint_locations): New local
273 can_download_tracepoint. Check the result of
274 target_can_download_tracepoint and save it in
275 can_download_tracepoint if there are tracepoints to download.
276 * linux-nat.h (enum tribool): Move it to ...
277 * common/common-types.h: ... here.
279 2015-09-09 Pedro Alves <palves@redhat.com>
281 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
282 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
284 2015-09-09 Pedro Alves <palves@redhat.com>
286 * continuations.c (add_continuation, restore_thread_cleanup)
287 (do_all_continuations_ptid, do_all_continuations_thread_callback)
288 (do_all_continuations_thread, do_all_continuations)
289 (discard_all_continuations_thread_callback)
290 (discard_all_continuations_thread, discard_all_continuations)
291 (add_intermediate_continuation)
292 (do_all_intermediate_continuations_thread_callback)
293 (do_all_intermediate_continuations_thread)
294 (do_all_intermediate_continuations)
295 (discard_all_intermediate_continuations_thread_callback)
296 (discard_all_intermediate_continuations_thread)
297 (discard_all_intermediate_continuations): Delete.
298 * continuations.h (add_continuation, do_all_continuations)
299 (do_all_continuations_thread, discard_all_continuations)
300 (discard_all_continuations_thread, add_intermediate_continuation)
301 (do_all_intermediate_continuations)
302 (do_all_intermediate_continuations_thread)
303 (discard_all_intermediate_continuations)
304 (discard_all_intermediate_continuations_thread): Delete
306 * event-top.c (stdin_event_handler): Delete references to
308 * gdbthread.h (struct thread_info): Delete continuations and
309 intermediate_continuations fields.
310 * inf-loop.c (inferior_event_handler): Remove references to
312 * infrun.c (infrun_thread_stop_requested_callback): Remove
313 references to continuations.
314 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
315 * thread.c: Don't include "continuations.h".
316 (clear_thread_inferior_resources): Remove references to
319 2015-09-09 Pedro Alves <palves@redhat.com>
321 * infcall.c (struct dummy_frame_context_saver): Delete.
322 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
323 (dummy_frame_context_saver_drop)
324 (dummy_frame_context_saver_cleanup)
325 (dummy_frame_context_saver_get_regs)
326 (dummy_frame_context_saver_setup): Delete.
327 * infcall.h (dummy_frame_context_saver_drop)
328 (dummy_frame_context_saver_cleanup)
329 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
331 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
332 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
333 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
335 2015-09-09 Pedro Alves <palves@redhat.com>
337 * breakpoint.c: Include "thread-fsm.h".
338 (struct until_break_command_continuation_args): Delete.
339 (struct until_break_fsm): New.
340 (until_break_fsm_ops): New global.
341 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
342 (until_break_command_continuation): Delete.
343 (until_break_fsm_clean_up): New function.
344 (until_break_fsm_async_reply_reason): New function.
345 (until_break_command): Adjust to create an until_break_fsm instead
347 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
349 * infcmd.c (struct until_next_fsm): New.
350 (until_next_fsm_ops): New global.
351 (new_until_next_fsm, until_next_fsm_should_stop): New function.
352 (until_next_continuation): Delete.
353 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
355 (until_next_command): Adjust to create a new until_next_fsm
356 instead of a continuation.
358 2015-09-09 Pedro Alves <palves@redhat.com>
360 * infcall.c: Include thread_fsm.h.
361 (struct call_return_meta_info): New.
362 (get_call_return_value): New function, factored out from
363 call_function_by_hand_dummy.
364 (struct call_thread_fsm): New.
365 (call_thread_fsm_ops): New global.
366 (new_call_thread_fsm, call_thread_fsm_should_stop)
367 (call_thread_fsm_should_notify_stop): New functions.
368 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
370 (call_function_by_hand_dummy): Create a new call_thread_fsm
371 instance, associate it with the thread, and wait for the FSM to
372 finish. If finished successfully, fetch the function's result
373 value out of the FSM.
374 * infrun.c (fetch_inferior_event): If the FSM says the stop
375 shouldn't be notified, don't call normal_stop.
376 (maybe_remove_breakpoints): New function, factored out from ...
377 (normal_stop): ... here. Simplify.
378 * infrun.h (maybe_remove_breakpoints): Declare.
379 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
380 (thread-fsm.h) <struct thread_fsm_ops>: New field.
381 (thread_fsm_should_notify_stop): Declare.
383 2015-09-09 Pedro Alves <palves@redhat.com>
385 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
386 * breakpoint.c (handle_jit_event): Print debug output.
387 (bpstat_what): Split event callback handling to ...
388 (bpstat_run_callbacks): ... this new function.
389 (momentary_bkpt_print_it): No longer handle bp_finish here.
390 * breakpoint.h (bpstat_run_callbacks): Declare.
391 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
392 <thread_fsm>: New field.
393 (thread_cancel_execution_command): Declare.
394 * infcmd.c: Include thread-fsm.h.
395 (struct step_command_fsm): New.
396 (step_command_fsm_ops): New global.
397 (new_step_command_fsm, step_command_fsm_prepare): New functions.
398 (step_1): Adjust to use step_command_fsm_prepare and
400 (struct step_1_continuation_args): Delete.
401 (step_1_continuation): Delete.
402 (step_command_fsm_should_stop): New function.
404 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
405 (prepare_one_step): New function, based on step_once.
406 (until_next_command): Remove step_multi reference.
407 (struct return_value_info): New.
408 (print_return_value): Rename to ...
409 (print_return_value_1): ... this. New struct return_value_info
411 (print_return_value): Reimplement as wrapper around
412 print_return_value_1.
413 (struct finish_command_fsm): New.
414 (finish_command_continuation): Delete.
415 (finish_command_fsm_ops): New global.
416 (new_finish_command_fsm, finish_command_fsm_should_stop): New
418 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
420 (finish_command_continuation_free_arg): Delete.
421 (finish_command_fsm_async_reply_reason): New.
422 (finish_backward, finish_forward): Change symbol parameter to a
423 finish_command_fsm. Adjust.
424 (finish_command): Create a finish_command_fsm. Adjust.
425 * infrun.c: Include "thread-fsm.h".
426 (clear_proceed_status_thread): Delete the thread's FSM.
427 (infrun_thread_stop_requested_callback): Cancel the thread's
429 (clean_up_just_stopped_threads_fsms): New function.
430 (fetch_inferior_event): Handle the event_thread's should_stop
431 method saying the command isn't done yet.
432 (process_event_stop_test): Run breakpoint callbacks here.
433 (print_stop_event): Rename to ...
434 (print_stop_location): ... this.
435 (restore_current_uiout_cleanup): New function.
436 (print_stop_event): Reimplement.
437 (normal_stop): No longer notify the end_stepping_range observers
438 here handle "step N" nor "finish" here. No longer call
439 print_stop_event here.
440 * infrun.h (struct return_value_info): Forward declare.
441 (print_return_value): Declare.
442 (print_stop_event): Change prototype.
443 * thread-fsm.c: New file.
444 * thread-fsm.h: New file.
445 * thread.c: Include "thread-fsm.h".
446 (thread_cancel_execution_command): New function.
447 (clear_thread_inferior_resources): Call it.
448 * cli/cli-interp.c (cli_on_normal_stop): New function.
449 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
451 * mi/mi-interp.c: Include "thread-fsm.h".
452 (restore_current_uiout_cleanup): Delete.
453 (mi_on_normal_stop): If the thread has an FSM associated, and it
454 finished, ask it for the async-reply-reason to print. Always call
455 print_stop_event here, regardless of the top-level interpreter.
456 Check bpstat_what to tell whether an asynchronous breakpoint hit
458 * tui/tui-interp.c (tui_on_normal_stop): New function.
459 (tui_init): Install tui_on_normal_stop as normal_stop observer.
461 2015-09-09 Pedro Alves <palves@redhat.com>
463 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
464 check whether the target can async.
465 * inf-loop.c (inferior_event_handler): Only call target_async if
466 the target can async.
467 * infcall.c: Include top.h and interps.h.
468 (run_inferior_call): For the interpreter to sync mode while
469 running the infcall. Call wait_sync_command_done instead of
470 wait_for_inferior plus normal_stop.
471 * infcmd.c (prepare_execution_command): Don't check whether the
472 target can async when running in the foreground.
473 (step_1): Delete synchronous case handling.
474 (step_once): Always install a continuation, even in sync mode.
475 (until_next_command, finish_forward): Don't check whether the
477 (attach_command_post_wait, notice_new_inferior): Always install a
478 continuation, even in sync mode.
479 * infrun.c (mark_infrun_async_event_handler): New function.
480 (proceed): In sync mode, mark infrun's event source instead of
481 waiting for events here.
482 (fetch_inferior_event): If the target can't async, do a blocking
484 (prepare_to_wait): In sync mode, mark infrun's event source.
485 (infrun_async_inferior_event_handler): No longer bail out if the
487 * infrun.h (mark_infrun_async_event_handler): New declaration.
488 * linux-nat.c (linux_nat_wait_1): Remove calls to
489 set_sigint_trap/clear_sigint_trap.
490 (linux_nat_terminal_inferior): No longer check whether the target
492 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
494 (mi_execute_command_input_handler): No longer check whether the
495 target is async. Update and simplify comment.
496 * target.c (default_target_wait): New function.
497 * target.h (struct target_ops) <to_wait>: Now defaults to
499 (default_target_wait): Declare.
500 * top.c (wait_sync_command_done): New function, factored out from
502 (maybe_wait_sync_command_done): ... this.
503 * top.h (wait_sync_command_done): Declare.
504 * target-delegates.c: Regenerate.
506 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
508 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
509 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
510 Remove include of sys/utsname.h.
511 (linux_determine_kernel_ptr_bits): Remove.
512 (linux_determine_kernel_start): New.
513 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
515 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
516 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
518 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
521 2015-09-07 Pedro Alves <palves@redhat.com>
523 * guile/guile-internal.h (as_a_scm_t_subr): New.
524 * guile/guile.c (misc_guile_functions): Use it.
525 * guile/scm-arch.c (arch_functions): Use it.
526 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
528 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
529 * guile/scm-cmd.c (command_functions): Use it.
530 * guile/scm-disasm.c (disasm_functions): Use it.
531 * guile/scm-exception.c (exception_functions)
532 (private_exception_functions): Use it.
533 * guile/scm-frame.c (frame_functions)
534 * guile/scm-gsmob.c (gsmob_functions): Use it.
535 * guile/scm-iterator.c (iterator_functions): Use it.
536 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
537 * guile/scm-math.c (math_functions): Use it.
538 * guile/scm-objfile.c (objfile_functions): Use it.
539 * guile/scm-param.c (parameter_functions): Use it.
540 * guile/scm-ports.c (port_functions, private_port_functions): Use
542 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
543 * guile/scm-progspace.c (pspace_functions): Use it.
544 * guile/scm-string.c (string_functions): Use it.
545 * guile/scm-symbol.c (symbol_functions): Use it.
546 * guile/scm-symtab.c (symtab_functions): Use it.
547 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
549 * guile/scm-value.c (value_functions): Use it.
551 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
553 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
554 (tui_next_win): Likewise.
555 (tui_prev_win): Likewise.
556 (tui_partial_win_by_name): Likewise.
557 (tui_init_generic_part): Likewise.
558 (init_content_element): Likewise.
559 (tui_del_window): Likewise.
560 (tui_free_window): Likewise.
561 (tui_del_data_windows): Likewise.
562 (tui_free_data_content): Likewise.
563 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
564 * tui/tui-regs.c (tui_show_register_group): Likewise.
565 * tui/tui-win.c (tui_resize_all): Likewise.
566 (tui_set_focus): Likewise.
567 (tui_set_win_height): Likewise.
568 (make_invisible_and_set_new_height): Likewise.
569 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
570 * tui/tui-wingeneral.c (make_visible): Likewise.
572 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
574 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
576 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
578 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
580 * dbxread.c (dbx_end_psymtab): Likewise.
581 * gnu-nat.c (gnu_write_inferior): Likewise.
582 * mdebugread.c (cross_ref): Likewise.
583 * p-valprint.c (pascal_val_print): Likewise.
584 * xcoffread.c (xcoff_end_psymtab): Likewise.
586 2015-09-04 Yao Qi <yao.qi@linaro.org>
588 * NEWS: Mention the aarch64 multi-arch debugging support.
590 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
592 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
593 type instead of a TYPE_CODE_INT one for the string_char_type
594 and the ada_primitive_type_char types.
596 2015-09-03 Yao Qi <yao.qi@linaro.org>
598 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
599 Move code to aarch64_linux_region_ok_for_watchpoint. Call
600 aarch64_linux_region_ok_for_watchpoint.
601 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
603 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
606 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
608 * gdb_obstack.h (obstack_strdup): Declare.
609 * gdb_obstack.c (obstack_strdup): Define.
610 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
611 * gdbarch.c: Regenerate.
612 * gdbarch.h: Regenerate.
613 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
615 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
617 * gdbtypes.c (copy_type_recursive): Update documentation.
619 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
621 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
624 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
626 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
628 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
630 * solib-svr4.c (solib_event_probe_action): Call
631 get_probe_argument_count using TRY...CATCH.
632 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
634 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
636 * probe.h (struct probe_ops) <get_probe_argument_count,
637 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
638 the comment that the function can throw an exception.
639 (get_probe_argument_count): Likewise.
640 (evaluate_probe_argument): Likewise.
641 * stap-probe.c (stap_get_opcode): Call error instead of
643 (stap_get_expected_argument_type): Likewise. Add argument
644 'probe'. Improve error message by mentioning the probe's name.
645 (stap_parse_probe_arguments): Adjust call to
646 stap_get_expected_argument_type.
647 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
648 not zero. Call internal_error if GDB requests an argument but the
649 probe has no arguments.
651 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
653 * ada-lang.c (ada_resolve_function): Do not ask the user what
654 match to use when in completion mode.
656 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
658 * tui/tui-data.c (tui_win_name): Make local variable const, remove
661 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
663 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
664 call_abi using XSHAL_ABI macro.
666 2015-08-29 Doug Evans <xdje42@gmail.com>
668 * symtab.h (struct symbol): Tweak comment.
670 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
672 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
673 gdbarch obstack instead of on the heap. Update commentary
676 2015-08-28 Joel Brobecker <brobecker@adacore.com>
680 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
682 * NEWS: Update entry about non-8-bits addressable memory.
684 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
687 2014-11-06 Doug Evans <xdje42@gmail.com>
688 * solib.c (solib_global_lookup): Fetch arch from objfile,
691 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
693 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
694 attempt to relocate a TLS variable offset.
696 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
698 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
699 registered yet. Set inferior_ptid while calling target_read_memory.
701 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
703 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
704 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
705 * linux-nat.c (check_stopped_by_breakpoint): Use
706 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
708 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
710 * linux-thread-db.c (thread_db_get_thread_local_address): If the
711 thread was not yet discovered, use thread_from_lwp instead of
712 calling thread_db_find_new_threads_1.
714 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
716 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
719 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
721 * NEWS: Document support for non-8-bits addressable memory.
723 2015-08-27 Pedro Alves <palves@redhat.com>
725 * configure.ac: Remove AC_TYPE_SIGNAL call.
726 * configure, config.in: Regenerate.
728 2015-08-27 Pedro Alves <palves@redhat.com>
730 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
731 * extension-priv.h: Include signal.h.
732 (struct signal_handler) <handler>: Change type to sighandler_t.
733 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
734 * inflow.c (sigint_ours, sigquit_ours): Change type to
736 (child_terminal_inferior): Remove casts.
737 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
738 (osig): Change type to sighandler_t.
739 * nto-procfs.c (ofunc): Change type to sighandler_t.
740 (procfs_wait): Remove casts.
741 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
742 * remote-sim.c (gdbsim_wait): Use sighandler_t.
743 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
745 2015-08-27 Pedro Alves <palves@redhat.com>
747 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
748 * gnulib/aclocal.m4: Renegerate.
749 * gnulib/config.in: Renegerate.
750 * gnulib/configure: Renegerate.
751 * gnulib/import/Makefile.am: Update.
752 * gnulib/import/Makefile.in: Regenerate.
753 * gnulib/import/m4/gnulib-cache.m4: Update.
754 * gnulib/import/m4/gnulib-comp.m4: Update.
755 * gnulib/import/m4/signal_h.m4: New file.
756 * gnulib/import/signal.in.h: New file.
758 2015-08-27 Pedro Alves <palves@redhat.com>
760 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
761 (MIN_MEMORY_PACKET_SIZE): New.
762 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
763 (get_memory_packet_size): Adjust. No longer limit the max packet
765 (set_memory_packet_size): Adjust, and remove dead code.
766 (remote_check_symbols): Use xmalloc and a cleanup instead of
768 (remote_packet_size): No longer cap the packet size.
769 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
771 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
773 * compile/compile.c (compile_to_object): Mention language in
776 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
778 * target.c (target_pre_inferior): Unset attach_flag.
780 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
782 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
783 * gdbarch.c: Re-generate.
785 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
787 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
788 function with the XNEW-family equivalent.
789 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
790 * ada-exp.y (write_ambiguous_var): Likewise.
791 * ada-lang.c (resolve_subexp): Likewise.
792 (user_select_syms): Likewise.
793 (assign_aggregate): Likewise.
794 (ada_evaluate_subexp): Likewise.
795 (cache_symbol): Likewise.
796 * addrmap.c (allocate_key): Likewise.
797 (addrmap_create_mutable): Likewise.
798 * aix-thread.c (sync_threadlists): Likewise.
799 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
800 (alpha_gdbarch_init): Likewise.
801 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
802 * arm-linux-nat.c (arm_linux_add_process): Likewise.
803 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
804 * arm-tdep.c (push_stack_item): Likewise.
805 (arm_displaced_step_copy_insn): Likewise.
806 (arm_gdbarch_init): Likewise.
807 (_initialize_arm_tdep): Likewise.
808 * avr-tdep.c (push_stack_item): Likewise.
809 * ax-general.c (new_agent_expr): Likewise.
810 * block.c (block_initialize_namespace): Likewise.
811 * breakpoint.c (alloc_counted_command_line): Likewise.
812 (update_dprintf_command_list): Likewise.
813 (parse_breakpoint_sals): Likewise.
814 (decode_static_tracepoint_spec): Likewise.
815 (until_break_command): Likewise.
816 (clear_command): Likewise.
817 (update_global_location_list): Likewise.
818 (get_breakpoint_objfile_data) Likewise.
819 * btrace.c (ftrace_new_function): Likewise.
820 (btrace_set_insn_history): Likewise.
821 (btrace_set_call_history): Likewise.
822 * buildsym.c (add_symbol_to_list): Likewise.
823 (record_pending_block): Likewise.
824 (start_subfile): Likewise.
825 (start_buildsym_compunit): Likewise.
826 (push_subfile): Likewise.
827 (end_symtab_get_static_block): Likewise.
828 (buildsym_init): Likewise.
829 * cli/cli-cmds.c (source_command): Likewise.
830 * cli/cli-decode.c (add_cmd): Likewise.
831 * cli/cli-script.c (build_command_line): Likewise.
832 (setup_user_args): Likewise.
833 (realloc_body_list): Likewise.
834 (process_next_line): Likewise.
835 (copy_command_lines): Likewise.
836 * cli/cli-setshow.c (do_set_command): Likewise.
837 * coff-pe-read.c (read_pe_exported_syms): Likewise.
838 * coffread.c (coff_locate_sections): Likewise.
839 (coff_symtab_read): Likewise.
840 (coff_read_struct_type): Likewise.
841 * common/cleanups.c (make_my_cleanup2): Likewise.
842 * common/common-exceptions.c (throw_it): Likewise.
843 * common/filestuff.c (make_cleanup_close): Likewise.
844 * common/format.c (parse_format_string): Likewise.
845 * common/queue.h (DEFINE_QUEUE_P): Likewise.
846 * compile/compile-object-load.c (munmap_list_add): Likewise.
847 (compile_object_load): Likewise.
848 * compile/compile-object-run.c (compile_object_run): Likewise.
849 * compile/compile.c (append_args): Likewise.
850 * corefile.c (specify_exec_file_hook): Likewise.
851 * cp-support.c (make_symbol_overload_list): Likewise.
852 * cris-tdep.c (push_stack_item): Likewise.
853 (cris_gdbarch_init): Likewise.
854 * ctf.c (ctf_trace_file_writer_new): Likewise.
855 * dbxread.c (init_header_files): Likewise.
856 (add_new_header_file): Likewise.
857 (init_bincl_list): Likewise.
858 (dbx_end_psymtab): Likewise.
859 (start_psymtab): Likewise.
860 (dbx_end_psymtab): Likewise.
861 * dcache.c (dcache_init): Likewise.
862 * dictionary.c (dict_create_hashed): Likewise.
863 (dict_create_hashed_expandable): Likewise.
864 (dict_create_linear): Likewise.
865 (dict_create_linear_expandable): Likewise.
866 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
867 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
868 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
869 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
870 (decode_frame_entry_1): Likewise.
871 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
872 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
873 * dwarf2read.c (dwarf2_has_info): Likewise.
874 (create_signatured_type_table_from_index): Likewise.
875 (dwarf2_read_index): Likewise.
876 (dw2_get_file_names_reader): Likewise.
877 (create_all_type_units): Likewise.
878 (read_cutu_die_from_dwo): Likewise.
879 (init_tu_and_read_dwo_dies): Likewise.
880 (init_cutu_and_read_dies): Likewise.
881 (create_all_comp_units): Likewise.
882 (queue_comp_unit): Likewise.
883 (inherit_abstract_dies): Likewise.
884 (read_call_site_scope): Likewise.
885 (dwarf2_add_field): Likewise.
886 (dwarf2_add_typedef): Likewise.
887 (dwarf2_add_member_fn): Likewise.
888 (attr_to_dynamic_prop): Likewise.
889 (abbrev_table_alloc_abbrev): Likewise.
890 (abbrev_table_read_table): Likewise.
891 (add_include_dir): Likewise.
892 (add_file_name): Likewise.
893 (dwarf_decode_line_header): Likewise.
894 (dwarf2_const_value_attr): Likewise.
895 (dwarf_alloc_block): Likewise.
896 (parse_macro_definition): Likewise.
897 (set_die_type): Likewise.
898 (write_psymtabs_to_index): Likewise.
899 (create_cus_from_index): Likewise.
900 (dwarf2_create_include_psymtab): Likewise.
901 (process_psymtab_comp_unit_reader): Likewise.
902 (build_type_psymtab_dependencies): Likewise.
903 (read_comp_units_from_section): Likewise.
904 (compute_compunit_symtab_includes): Likewise.
905 (create_dwo_unit_in_dwp_v1): Likewise.
906 (create_dwo_unit_in_dwp_v2): Likewise.
907 (read_func_scope): Likewise.
908 (process_structure_scope): Likewise.
909 (mark_common_block_symbol_computed): Likewise.
910 (load_partial_dies): Likewise.
911 (dwarf2_symbol_mark_computed): Likewise.
912 * elfread.c (elf_symfile_segments): Likewise.
913 (elf_read_minimal_symbols): Likewise.
914 * environ.c (make_environ): Likewise.
915 * eval.c (evaluate_subexp_standard): Likewise.
916 * event-loop.c (create_file_handler): Likewise.
917 (create_async_signal_handler): Likewise.
918 (create_async_event_handler): Likewise.
919 (create_timer): Likewise.
920 * exec.c (build_section_table): Likewise.
921 * fbsd-nat.c (fbsd_remember_child): Likewise.
922 * fork-child.c (fork_inferior): Likewise.
923 * frv-tdep.c (new_variant): Likewise.
924 * gdbarch.sh (gdbarch_alloc): Likewise.
925 (append_name): Likewise.
926 * gdbtypes.c (rank_function): Likewise.
927 (copy_type_recursive): Likewise.
928 (add_dyn_prop): Likewise.
929 * gnu-nat.c (make_proc): Likewise.
930 (make_inf): Likewise.
931 (gnu_write_inferior): Likewise.
932 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
933 (build_std_type_info_type): Likewise.
934 * guile/scm-param.c (compute_enum_list): Likewise.
935 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
936 * guile/scm-value.c (gdbscm_value_call): Likewise.
937 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
938 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
939 (read_unwind_info): Likewise.
940 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
941 * infcall.c (dummy_frame_context_saver_setup): Likewise.
942 (call_function_by_hand_dummy): Likewise.
943 * infcmd.c (step_once): Likewise.
944 (finish_forward): Likewise.
945 (attach_command): Likewise.
946 (notice_new_inferior): Likewise.
947 * inferior.c (add_inferior_silent): Likewise.
948 * infrun.c (add_displaced_stepping_state): Likewise.
949 (save_infcall_control_state): Likewise.
950 (save_inferior_ptid): Likewise.
951 (_initialize_infrun): Likewise.
952 * jit.c (bfd_open_from_target_memory): Likewise.
953 (jit_gdbarch_data_init): Likewise.
954 * language.c (add_language): Likewise.
955 * linespec.c (decode_line_2): Likewise.
956 * linux-nat.c (add_to_pid_list): Likewise.
957 (add_initial_lwp): Likewise.
958 * linux-thread-db.c (add_thread_db_info): Likewise.
959 (record_thread): Likewise.
960 (info_auto_load_libthread_db): Likewise.
961 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
963 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
964 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
965 * macrocmd.c (macro_define_command): Likewise.
966 * macroexp.c (gather_arguments): Likewise.
967 * macroscope.c (sal_macro_scope): Likewise.
968 * macrotab.c (new_macro_table): Likewise.
969 * mdebugread.c (push_parse_stack): Likewise.
970 (parse_partial_symbols): Likewise.
971 (parse_symbol): Likewise.
972 (psymtab_to_symtab_1): Likewise.
973 (new_block): Likewise.
974 (new_psymtab): Likewise.
975 (mdebug_build_psymtabs): Likewise.
976 (add_pending): Likewise.
977 (elfmdebug_build_psymtabs): Likewise.
978 * mep-tdep.c (mep_gdbarch_init): Likewise.
979 * mi/mi-main.c (mi_execute_command): Likewise.
980 * mi/mi-parse.c (mi_parse_argv): Likewise.
981 * minidebug.c (lzma_open): Likewise.
982 * minsyms.c (terminate_minimal_symbol_table): Likewise.
983 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
984 * mips-tdep.c (mips_gdbarch_init): Likewise.
985 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
986 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
987 * mt-tdep.c (mt_registers_info): Likewise.
988 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
989 * nat/linux-btrace.c (linux_enable_bts): Likewise.
990 (linux_enable_pt): Likewise.
991 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
992 (linux_xfer_osdata_processgroups): Likewise.
993 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
994 * nto-procfs.c (procfs_meminfo): Likewise.
995 * objc-lang.c (start_msglist): Likewise.
996 (selectors_info): Likewise.
997 (classes_info): Likewise.
998 (find_methods): Likewise.
999 * objfiles.c (allocate_objfile): Likewise.
1000 (update_section_map): Likewise.
1001 * osabi.c (gdbarch_register_osabi): Likewise.
1002 (gdbarch_register_osabi_sniffer): Likewise.
1003 * parse.c (start_arglist): Likewise.
1004 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
1005 (hwdebug_insert_point): Likewise.
1006 * printcmd.c (display_command): Likewise.
1007 (ui_printf): Likewise.
1008 * procfs.c (create_procinfo): Likewise.
1009 (load_syscalls): Likewise.
1010 (proc_get_LDT_entry): Likewise.
1011 (proc_update_threads): Likewise.
1012 * prologue-value.c (make_pv_area): Likewise.
1013 (pv_area_store): Likewise.
1014 * psymtab.c (extend_psymbol_list): Likewise.
1015 (init_psymbol_list): Likewise.
1016 (allocate_psymtab): Likewise.
1017 * python/py-inferior.c (add_thread_object): Likewise.
1018 * python/py-param.c (compute_enum_values): Likewise.
1019 * python/py-value.c (valpy_call): Likewise.
1020 * python/py-varobj.c (py_varobj_iter_next): Likewise.
1021 * python/python.c (ensure_python_env): Likewise.
1022 * record-btrace.c (record_btrace_start_replaying): Likewise.
1023 * record-full.c (record_full_reg_alloc): Likewise.
1024 (record_full_mem_alloc): Likewise.
1025 (record_full_end_alloc): Likewise.
1026 (record_full_core_xfer_partial): Likewise.
1027 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
1028 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
1029 * remote-notif.c (remote_notif_state_allocate): Likewise.
1030 * remote.c (demand_private_info): Likewise.
1031 (remote_notif_stop_alloc_reply): Likewise.
1032 (remote_enable_btrace): Likewise.
1033 * reverse.c (save_bookmark_command): Likewise.
1034 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1035 * rx-tdep.c (rx_gdbarch_init): Likewise.
1036 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1037 * ser-go32.c (dos_get_tty_state): Likewise.
1038 (dos_copy_tty_state): Likewise.
1039 * ser-mingw.c (ser_windows_open): Likewise.
1040 (ser_console_wait_handle): Likewise.
1041 (ser_console_get_tty_state): Likewise.
1042 (make_pipe_state): Likewise.
1043 (net_windows_open): Likewise.
1044 * ser-unix.c (hardwire_get_tty_state): Likewise.
1045 (hardwire_copy_tty_state): Likewise.
1046 * solib-aix.c (solib_aix_new_lm_info): Likewise.
1047 * solib-dsbt.c (dsbt_current_sos): Likewise.
1048 (dsbt_relocate_main_executable): Likewise.
1049 * solib-frv.c (frv_current_sos): Likewise.
1050 (frv_relocate_main_executable): Likewise.
1051 * solib-spu.c (spu_bfd_fopen): Likewise.
1052 * solib-svr4.c (lm_info_read): Likewise.
1053 (svr4_copy_library_list): Likewise.
1054 (svr4_default_sos): Likewise.
1055 * source.c (find_source_lines): Likewise.
1056 (line_info): Likewise.
1057 (add_substitute_path_rule): Likewise.
1058 * spu-linux-nat.c (spu_bfd_open): Likewise.
1059 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1060 * stabsread.c (dbx_lookup_type): Likewise.
1061 (read_type): Likewise.
1062 (read_member_functions): Likewise.
1063 (read_struct_fields): Likewise.
1064 (read_baseclasses): Likewise.
1065 (read_args): Likewise.
1066 (_initialize_stabsread): Likewise.
1067 * stack.c (func_command): Likewise.
1068 * stap-probe.c (handle_stap_probe): Likewise.
1069 * symfile.c (addrs_section_sort): Likewise.
1070 (addr_info_make_relative): Likewise.
1071 (load_section_callback): Likewise.
1072 (add_symbol_file_command): Likewise.
1073 (init_filename_language_table): Likewise.
1074 * symtab.c (create_filename_seen_cache): Likewise.
1075 (sort_search_symbols_remove_dups): Likewise.
1076 (search_symbols): Likewise.
1077 * target.c (make_cleanup_restore_target_terminal): Likewise.
1078 * thread.c (new_thread): Likewise.
1079 (enable_thread_stack_temporaries): Likewise.
1080 (make_cleanup_restore_current_thread): Likewise.
1081 (thread_apply_all_command): Likewise.
1082 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1083 * top.c (gdb_readline_wrapper): Likewise.
1084 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1085 * tracepoint.c (trace_find_line_command): Likewise.
1086 (all_tracepoint_actions_and_cleanup): Likewise.
1087 (make_cleanup_restore_current_traceframe): Likewise.
1088 (get_uploaded_tp): Likewise.
1089 (get_uploaded_tsv): Likewise.
1090 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1091 (tui_alloc_win_info): Likewise.
1092 (tui_alloc_content): Likewise.
1093 (tui_add_content_elements): Likewise.
1094 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1095 (tui_set_disassem_content): Likewise.
1096 * ui-file.c (ui_file_new): Likewise.
1097 (stdio_file_new): Likewise.
1098 (tee_file_new): Likewise.
1099 * utils.c (make_cleanup_restore_integer): Likewise.
1100 (add_internal_problem_command): Likewise.
1101 * v850-tdep.c (v850_gdbarch_init): Likewise.
1102 * valops.c (find_oload_champ): Likewise.
1103 * value.c (allocate_value_lazy): Likewise.
1104 (record_latest_value): Likewise.
1105 (create_internalvar): Likewise.
1106 * varobj.c (install_variable): Likewise.
1107 (new_variable): Likewise.
1108 (new_root_variable): Likewise.
1110 (_initialize_varobj): Likewise.
1111 * windows-nat.c (windows_make_so): Likewise.
1112 * x86-nat.c (x86_add_process): Likewise.
1113 * xcoffread.c (arrange_linetable): Likewise.
1114 (allocate_include_entry): Likewise.
1115 (process_linenos): Likewise.
1116 (SYMBOL_DUP): Likewise.
1117 (xcoff_start_psymtab): Likewise.
1118 (xcoff_end_psymtab): Likewise.
1119 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1120 * xtensa-tdep.c (xtensa_register_type): Likewise.
1121 * gdbarch.c: Regenerate.
1122 * gdbarch.h: Regenerate.
1124 2015-08-25 Don Breazeal <donb@codesourcery.com>
1126 * infrun.c (follow_exec): Re-order operations for
1127 handling follow-exec-mode "new".
1128 (handle_inferior_event_1): Assign ecs->event_thread
1129 to the current thread.
1130 * remote.c (get_remote_arch_state): Add an assertion.
1132 2015-08-26 Pedro Alves <palves@redhat.com>
1134 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1136 2015-08-25 Pedro Alves <palves@redhat.com>
1139 * defs.h (maybe_quit): Declare.
1140 (QUIT): Now calls maybe_quit.
1141 * event-loop.c (clear_async_signal_handler)
1142 (async_signal_handler_is_marked): New functions.
1143 * event-loop.h (async_signal_handler_is_marked)
1144 (clear_async_signal_handler): New declarations.
1145 * remote.c (remote_check_pending_interrupt): New function.
1146 (interrupt_query): Use make_cleanup_restore_target_terminal. No
1147 longer check whether the target is async. If waiting for a stop
1148 reply, and a Ctrl-C as been sent to the target, offer to
1149 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1150 Otherwise do not disconnect and throw a quit.
1151 (_initialize_remote): Install remote_check_pending_interrupt as
1152 to_check_pending_interrupt.
1153 * target.c (target_check_pending_interrupt): New function.
1154 * target.h (struct target_ops) <to_check_pending_interrupt>: New
1156 (target_check_pending_interrupt): New declaration.
1157 * utils.c (maybe_quit): New function.
1158 * target-delegates.c: Regenerate.
1160 2015-08-25 Yao Qi <yao.qi@linaro.org>
1162 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1163 Rename local variable pid to tid, and get lwpid of lwp. Update
1166 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
1168 * ada-lang.c (ada_read_var_value): Add a var_block argument
1169 and pass it to default_read_var_value.
1170 * block.c (block_static_link): New accessor.
1171 * block.h (block_static_link): Declare it.
1172 * buildsym.c (finish_block_internal): Add a static_link
1173 argument. If there is a static link, associate it to the new
1175 (finish_block): Add a static link argument and pass it to
1176 finish_block_internal.
1177 (end_symtab_get_static_block): Update calls to finish_block and
1178 to finish_block_internal.
1179 (end_symtab_with_blockvector): Update call to
1180 finish_block_internal.
1181 * buildsym.h: Forward-declare struct dynamic_prop.
1182 (struct context_stack): Add a static_link field.
1183 (finish_block): Add a static link argument.
1184 * c-exp.y: Remove an obsolete comment (evaluation of variables
1185 already start from the selected frame, and now they climb *up*
1186 the call stack) and propagate the block information to the
1187 produced expression.
1188 * d-exp.y: Likewise.
1189 * f-exp.y: Likewise.
1190 * go-exp.y: Likewise.
1191 * jv-exp.y: Likewise.
1192 * m2-exp.y: Likewise.
1193 * p-exp.y: Likewise.
1194 * coffread.c (coff_symtab_read): Update calls to finish_block.
1195 * dbxread.c (process_one_symbol): Likewise.
1196 * xcoffread.c (read_xcoff_symtab): Likewise.
1197 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1198 "sym" parameter to struct block_symbol, update its uses and pass
1199 its block to calls to read_var_value.
1200 (convert_symbol_sym): Update the calls to convert_one_symbol.
1201 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1202 call to read_var_value.
1203 * dwarf2loc.c (block_op_get_frame_base): New.
1204 (dwarf2_block_frame_base_locexpr_funcs): Implement the
1205 get_frame_base method.
1206 (dwarf2_block_frame_base_loclist_funcs): Likewise.
1207 (dwarf2locexpr_baton_eval): Add a frame argument and use it
1208 instead of the selected frame in order to evaluate the
1210 (dwarf2_evaluate_property): Add a frame argument. Update call
1211 to dwarf2_locexpr_baton_eval to provide a frame in available and
1212 to handle the absence of address stack.
1213 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1214 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1216 (read_func_scope): Record any available static link description.
1217 Update call to finish_block.
1218 (read_lexical_block_scope): Update call to finish_block.
1219 * findvar.c (follow_static_link): New.
1220 (get_hosting_frame): New.
1221 (default_read_var_value): Add a var_block argument. Use
1222 get_hosting_frame to handle non-local references.
1223 (read_var_value): Add a var_block argument and pass it to the
1224 LA_READ_VAR_VALUE method.
1225 * gdbtypes.c (resolve_dynamic_range): Update calls to
1226 dwarf2_evaluate_property.
1227 (resolve_dynamic_type_internal): Likewise.
1228 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1229 read_var_value, passing it the block coming from symbol lookup.
1230 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1231 read_var_value (TODO).
1232 * infcmd.c (finish_command_continuation): Update call to
1233 read_var_value, passing it the block coming from symbol lookup.
1234 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1235 * language.h (struct language_defn): Add a var_block argument to
1236 the LA_READ_VAR_VALUE method.
1237 * objfiles.c (struct static_link_htab_entry): New.
1238 (static_link_htab_entry_hash): New.
1239 (static_link_htab_entry_eq): New.
1240 (objfile_register_static_link): New.
1241 (objfile_lookup_static_link): New.
1242 (free_objfile): Free the STATIC_LINKS hashed map if needed.
1243 * objfiles.h: Include hashtab.h.
1244 (struct objfile): Add a static_links field.
1245 (objfile_register_static_link): New.
1246 (objfile_lookup_static_link): New.
1247 * printcmd.c (print_variable_and_value): Update call to
1249 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1250 * python/py-frame.c (frapy_read_var): Update call to
1251 read_var_value, passing it the block coming from symbol lookup.
1252 * python/py-framefilter.c (extract_sym): Add a sym_block
1253 parameter and set the pointed value to NULL (TODO).
1254 (enumerate_args): Update call to extract_sym.
1255 (enumerate_locals): Update calls to extract_sym and to
1257 * python/py-symbol.c (sympy_value): Update call to
1258 read_var_value (TODO).
1259 * stack.c (read_frame_local): Update call to read_var_value.
1260 (read_frame_arg): Likewise.
1261 (return_command): Likewise.
1262 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1264 (struct symbol): Add a block field.
1265 (SYMBOL_BLOCK): New accessor.
1266 * valops.c (value_of_variable): Remove frame/block handling and
1267 pass the block argument to read_var_value, which does this job
1269 (value_struct_elt_for_reference): Update calls to
1271 (value_of_this): Pass the block found to read_var_value.
1272 * value.h (read_var_value): Add a var_block argument.
1273 (default_read_var_value): Likewise.
1275 2015-08-25 Yao Qi <yao.qi@linaro.org>
1277 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1278 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1279 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1281 2015-08-25 Yao Qi <yao.qi@linaro.org>
1283 * Makefile.in (aarch64-liunx.o): New rule.
1284 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1285 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1286 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1287 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1289 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1290 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1291 * nat/aarch64-linux.c: New file.
1292 * nat/aarch64-linux.h: New file.
1294 2015-08-25 Yao Qi <yao.qi@linaro.org>
1296 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1297 lwp_arch_private_info and ptid_of_lwp.
1299 2015-08-25 Yao Qi <yao.qi@linaro.org>
1301 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1302 Move it to nat/aarch64-linux-hw-point.c.
1303 (debug_reg_change_callback): Likewise.
1304 (aarch64_notify_debug_reg_change): :Likewise.
1305 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1306 (aarch64_dr_update_callback_param): New.
1307 (debug_reg_change_callback): New function.
1308 (aarch64_notify_debug_reg_change): Likewise.
1309 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1310 Remove the declaration.
1312 2015-08-25 Yao Qi <yao.qi@linaro.org>
1314 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1315 Call current_lwp_ptid.
1317 2015-08-25 Yao Qi <yao.qi@linaro.org>
1319 * aarch64-linux-nat.c (debug_reg_change_callback): Use
1322 2015-08-25 Yao Qi <yao.qi@linaro.org>
1324 * aarch64-linux-nat.c (debug_reg_change_callback): Call
1325 ptid_get_pid rather than ptid_get_lwp.
1327 2015-08-24 Pedro Alves <palves@redhat.com>
1329 * NEWS (New commands): Mention set/show remote
1330 multiprocess-extensions-packet.
1331 * remote.c (remote_query_supported): Only tell the server to use
1332 the multiprocess extensions if the user hasn't force-disabled them
1333 with "set remote multiprocess-extensions-packet off".
1335 2015-08-24 Pedro Alves <palves@redhat.com>
1337 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1338 1029a8112290f6eee9d7878a391c49db42c999bd.
1339 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1341 * gnulib/import/Makefile.am: Update.
1342 * gnulib/import/Makefile.in: Update.
1343 * gnulib/import/alloca.in.h: Update.
1344 * gnulib/import/basename-lgpl.c: Update.
1345 * gnulib/import/canonicalize-lgpl.c: Update.
1346 * gnulib/import/config.charset: Update.
1347 * gnulib/import/dirent.in.h: Update.
1348 * gnulib/import/dirfd.c: Update.
1349 * gnulib/import/dirname-lgpl.c: Update.
1350 * gnulib/import/dirname.h: Update.
1351 * gnulib/import/dosname.h: Update.
1352 * gnulib/import/errno.in.h: Update.
1353 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1354 * gnulib/import/extra/snippet/c++defs.h: Update.
1355 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1356 * gnulib/import/extra/update-copyright: Update.
1357 * gnulib/import/float+.h: Update.
1358 * gnulib/import/float.c: Update.
1359 * gnulib/import/float.in.h: Update.
1360 * gnulib/import/fnmatch.c: Update.
1361 * gnulib/import/fnmatch.in.h: Update.
1362 * gnulib/import/fnmatch_loop.c: Update.
1363 * gnulib/import/fpucw.h: Update.
1364 * gnulib/import/frexp.c: Update.
1365 * gnulib/import/frexpl.c: Update.
1366 * gnulib/import/gettimeofday.c: Update.
1367 * gnulib/import/inttypes.in.h: Update.
1368 * gnulib/import/isnan.c: Update.
1369 * gnulib/import/isnand-nolibm.h: Update.
1370 * gnulib/import/isnand.c: Update.
1371 * gnulib/import/isnanl-nolibm.h: Update.
1372 * gnulib/import/isnanl.c: Update.
1373 * gnulib/import/itold.c: Update.
1374 * gnulib/import/localcharset.c: Update.
1375 * gnulib/import/localcharset.h: Update.
1376 * gnulib/import/lstat.c: Update.
1377 * gnulib/import/m4/00gnulib.m4: Update.
1378 * gnulib/import/m4/absolute-header.m4: Update.
1379 * gnulib/import/m4/alloca.m4: Update.
1380 * gnulib/import/m4/canonicalize.m4: Update.
1381 * gnulib/import/m4/codeset.m4: Update.
1382 * gnulib/import/m4/configmake.m4: Update.
1383 * gnulib/import/m4/dirent_h.m4: Update.
1384 * gnulib/import/m4/dirfd.m4: Update.
1385 * gnulib/import/m4/dirname.m4: Update.
1386 * gnulib/import/m4/double-slash-root.m4: Update.
1387 * gnulib/import/m4/eealloc.m4: Update.
1388 * gnulib/import/m4/errno_h.m4: Update.
1389 * gnulib/import/m4/exponentd.m4: Update.
1390 * gnulib/import/m4/exponentl.m4: Update.
1391 * gnulib/import/m4/extensions.m4: Update.
1392 * gnulib/import/m4/extern-inline.m4: Update.
1393 * gnulib/import/m4/fcntl-o.m4: Update.
1394 * gnulib/import/m4/float_h.m4: Update.
1395 * gnulib/import/m4/fnmatch.m4: Update.
1396 * gnulib/import/m4/fpieee.m4: Update.
1397 * gnulib/import/m4/frexp.m4: Update.
1398 * gnulib/import/m4/frexpl.m4: Update.
1399 * gnulib/import/m4/gettimeofday.m4: Update.
1400 * gnulib/import/m4/glibc21.m4: Update.
1401 * gnulib/import/m4/gnulib-cache.m4: Update.
1402 * gnulib/import/m4/gnulib-common.m4: Update.
1403 * gnulib/import/m4/gnulib-comp.m4: Update.
1404 * gnulib/import/m4/gnulib-tool.m4: Update.
1405 * gnulib/import/m4/include_next.m4: Update.
1406 * gnulib/import/m4/inttypes-pri.m4: Update.
1407 * gnulib/import/m4/inttypes.m4: Update.
1408 * gnulib/import/m4/isnand.m4: Update.
1409 * gnulib/import/m4/isnanl.m4: Update.
1410 * gnulib/import/m4/largefile.m4: Update.
1411 * gnulib/import/m4/localcharset.m4: Update.
1412 * gnulib/import/m4/locale-fr.m4: Update.
1413 * gnulib/import/m4/locale-ja.m4: Update.
1414 * gnulib/import/m4/locale-zh.m4: Update.
1415 * gnulib/import/m4/longlong.m4: Update.
1416 * gnulib/import/m4/lstat.m4: Update.
1417 * gnulib/import/m4/malloc.m4: Update.
1418 * gnulib/import/m4/malloca.m4: Update.
1419 * gnulib/import/m4/math_h.m4: Update.
1420 * gnulib/import/m4/mbrtowc.m4: Update.
1421 * gnulib/import/m4/mbsinit.m4: Update.
1422 * gnulib/import/m4/mbsrtowcs.m4: Update.
1423 * gnulib/import/m4/mbstate_t.m4: Update.
1424 * gnulib/import/m4/memchr.m4: Update.
1425 * gnulib/import/m4/memmem.m4: Update.
1426 * gnulib/import/m4/mmap-anon.m4: Update.
1427 * gnulib/import/m4/multiarch.m4: Update.
1428 * gnulib/import/m4/nocrash.m4: Update.
1429 * gnulib/import/m4/off_t.m4: Update.
1430 * gnulib/import/m4/pathmax.m4: Update.
1431 * gnulib/import/m4/readlink.m4: Update.
1432 * gnulib/import/m4/rename.m4: Update.
1433 * gnulib/import/m4/rmdir.m4: Update.
1434 * gnulib/import/m4/ssize_t.m4: Update.
1435 * gnulib/import/m4/stat.m4: Update.
1436 * gnulib/import/m4/stdbool.m4: Update.
1437 * gnulib/import/m4/stddef_h.m4: Update.
1438 * gnulib/import/m4/stdint.m4: Update.
1439 * gnulib/import/m4/stdio_h.m4: Update.
1440 * gnulib/import/m4/stdlib_h.m4: Update.
1441 * gnulib/import/m4/string_h.m4: Update.
1442 * gnulib/import/m4/strstr.m4: Update.
1443 * gnulib/import/m4/strtok_r.m4: Update.
1444 * gnulib/import/m4/sys_socket_h.m4: Update.
1445 * gnulib/import/m4/sys_stat_h.m4: Update.
1446 * gnulib/import/m4/sys_time_h.m4: Update.
1447 * gnulib/import/m4/sys_types_h.m4: Update.
1448 * gnulib/import/m4/time_h.m4: Update.
1449 * gnulib/import/m4/unistd_h.m4: Update.
1450 * gnulib/import/m4/warn-on-use.m4: Update.
1451 * gnulib/import/m4/wchar_h.m4: Update.
1452 * gnulib/import/m4/wchar_t.m4: Update.
1453 * gnulib/import/m4/wctype_h.m4: Update.
1454 * gnulib/import/m4/wint_t.m4: Update.
1455 * gnulib/import/malloc.c: Update.
1456 * gnulib/import/malloca.c: Update.
1457 * gnulib/import/malloca.h: Update.
1458 * gnulib/import/math.in.h: Update.
1459 * gnulib/import/mbrtowc.c: Update.
1460 * gnulib/import/mbsinit.c: Update.
1461 * gnulib/import/mbsrtowcs-impl.h: Update.
1462 * gnulib/import/mbsrtowcs-state.c: Update.
1463 * gnulib/import/mbsrtowcs.c: Update.
1464 * gnulib/import/memchr.c: Update.
1465 * gnulib/import/memmem.c: Update.
1466 * gnulib/import/pathmax.h: Update.
1467 * gnulib/import/readlink.c: Update.
1468 * gnulib/import/ref-add.sin: Update.
1469 * gnulib/import/ref-del.sin: Update.
1470 * gnulib/import/rename.c: Update.
1471 * gnulib/import/rmdir.c: Update.
1472 * gnulib/import/same-inode.h: Update.
1473 * gnulib/import/stat.c: Update.
1474 * gnulib/import/stdbool.in.h: Update.
1475 * gnulib/import/stddef.in.h: Update.
1476 * gnulib/import/stdint.in.h: Update.
1477 * gnulib/import/stdio.c: Update.
1478 * gnulib/import/stdio.in.h: Update.
1479 * gnulib/import/stdlib.in.h: Update.
1480 * gnulib/import/str-two-way.h: Update.
1481 * gnulib/import/streq.h: Update.
1482 * gnulib/import/string.in.h: Update.
1483 * gnulib/import/stripslash.c: Update.
1484 * gnulib/import/strnlen1.c: Update.
1485 * gnulib/import/strnlen1.h: Update.
1486 * gnulib/import/strstr.c: Update.
1487 * gnulib/import/strtok_r.c: Update.
1488 * gnulib/import/sys_stat.in.h: Update.
1489 * gnulib/import/sys_time.in.h: Update.
1490 * gnulib/import/sys_types.in.h: Update.
1491 * gnulib/import/time.in.h: Update.
1492 * gnulib/import/unistd.in.h: Update.
1493 * gnulib/import/verify.h: Update.
1494 * gnulib/import/wchar.in.h: Update.
1495 * gnulib/import/wctype.in.h: Update.
1496 * gnulib/import/gettimeofday.c: New file.
1497 * gnulib/import/m4/absolute-header.m4: New file.
1498 * gnulib/import/m4/gettimeofday.m4: New file.
1499 * gnulib/import/m4/sys_socket_h.m4: New file.
1500 * gnulib/import/m4/sys_time_h.m4: New file.
1501 * gnulib/import/stdio.c: Delete file.
1502 * gnulib/import/sys_time.in.h: New file.
1504 2015-08-24 Pedro Alves <palves@redhat.com>
1506 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1507 * common/gdb_sys_time.h: New file.
1508 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1509 * gdb_select.h: Likewise.
1510 * gdb_usleep.c: Likewise.
1511 * maint.c: Likewise.
1512 * mi/mi-main.c: Likewise.
1513 * mi/mi-parse.h: Likewise.
1514 * remote-fileio.c: Likewise.
1515 * remote-m32r-sdi.c: Likewise.
1516 * remote.c: Likewise.
1517 * ser-base.c: Likewise.
1518 * ser-pipe.c: Likewise.
1519 * ser-tcp.c: Likewise.
1520 * ser-unix.c: Likewise.
1521 * symfile.c: Likewise.
1522 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1523 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1524 * utils.c: Likewise.
1526 2015-08-24 Pedro Alves <palves@redhat.com>
1528 * NEWS: Mention removed support for the various ROM monitors.
1529 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1530 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1531 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1533 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1535 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1536 dsrec.o from gdb_target_obs.
1537 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1538 from gdb_target_obs.
1539 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1541 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1542 dink32-rom.o from gdb_target_obs.
1543 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1544 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1545 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1546 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1548 2015-08-21 Pedro Alves <palves@redhat.com>
1550 * frame.c (null_frame_id): Explicitly zero-initialize.
1552 2015-08-21 Tom Tromey <tromey@redhat.com>
1554 * dwarf2read.c (struct dwarf2_section_info): Rename field
1555 'asection' to 'section'.
1556 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1557 (dwarf2_locate_sections, dwarf2_locate_sections)
1558 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1559 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1560 (dwarf2_locate_v2_dwp_sections): Adjust.
1562 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1564 * top.h (gdb_in_secondary_prompt_p): Declare.
1565 * top.c (gdb_secondary_prompt_depth): Define.
1566 (gdb_in_secondary_prompt_p): Define.
1567 (gdb_readline_wrapper_cleanup): Decrement
1568 gdb_secondary_prompt_depth.
1569 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1570 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1571 are in a secondary prompt.
1573 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1575 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1578 2015-08-21 Gary Benson <gbenson@redhat.com>
1580 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1582 2015-08-21 Gary Benson <gbenson@redhat.com>
1584 * target.h (struct target_ops) <to_fileio_open>: New argument
1585 warn_if_slow. Update comment. All implementations updated.
1586 (target_fileio_open_warn_if_slow): New declaration.
1587 * target.c (target_fileio_open): Renamed as...
1588 (target_fileio_open_1): ...this. New argument warn_if_slow.
1589 Pass warn_if_slow to implementation. Update debug printing.
1590 (target_fileio_open): New function.
1591 (target_fileio_open_warn_if_slow): Likewise.
1592 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1593 target_fileio_open_warn_if_slow.
1595 2015-08-21 Gary Benson <gbenson@redhat.com>
1597 * nat/linux-namespaces.c (linux_mntns_access_fs):
1598 Do not overwrite old_chain.
1600 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1602 * arch/xtensa.h: New file.
1603 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1604 (ps_get_thread_area): New function.
1605 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1606 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1607 * xtensa-tdep.c (osabi.h): New #include.
1608 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1609 xtensa-specific hooks.
1610 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1611 member and move the structure to arch/xtensa.h.
1613 2015-08-21 Pedro Alves <palves@redhat.com>
1615 * remote.c (struct readahead_cache): New.
1616 (struct remote_state) <readahead_cache>: New field.
1617 (remote_open_1): Invalidate the cache.
1618 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1620 (remote_hostio_pwrite): Invalidate the readahead cache.
1621 (remote_hostio_pread): Rename to ...
1622 (remote_hostio_pread_vFile): ... this.
1623 (remote_hostio_pread_from_cache): New function.
1624 (remote_hostio_pread): Reimplement.
1625 (remote_hostio_close): Invalidate the readahead cache.
1627 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1630 * procfs.c: Include "filestuff.h".
1632 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1634 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1636 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1637 cur_line or curch, instead call wmove().
1638 (init_win_info) [CMD_WIN]: Likewise.
1639 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1640 instead call getcury().
1641 (tui_redisplay_readline): Don't set cur_line or curch.
1642 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1644 (tui_cont_sig): Remove call to wmove.
1645 (tui_getc): Don't read cur_line or curch, instead call getcury()
1646 or getyx(). Don't set curch.
1647 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1648 set cur_line or curch. Always move cursor to (0,0).
1650 2015-08-20 Pedro Alves <palves@redhat.com>
1652 * infrun.c (print_target_wait_results): Make extern.
1653 * infrun.h (print_target_wait_results): Declare.
1654 * remote.c (set_stop_requested_callback): Delete.
1655 (process_initial_stop_replies): New function.
1656 (remote_start_remote): Use it.
1657 (stop_reply_queue_length): New function.
1659 2015-08-20 Pedro Alves <palves@redhat.com>
1661 * dwarf2read.c (process_full_comp_unit): To tell whether
1662 start_subfile managed to deduce a language, test for
1663 language_unknown instead of language_c.
1665 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1667 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1670 2015-08-19 Kevin Buettner <kevinb@redhat.com>
1672 * dwarf2read.c (dwarf2_string_attr): New function.
1673 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1674 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1675 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1676 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1677 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1679 2015-08-18 Doug Evans <dje@google.com>
1680 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1683 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1685 * mi/mi-out.c: #include "vec.h".
1686 (ui_filep): New type.
1687 (DEV_VEC_P (ui_filep)): New type.
1688 (struct ui_out_data) <buffer, original_buffer>: Delete.
1689 (struct ui_out_data) <streams>: New member.
1690 (mi_ui_out_impl): Add data_destroy field.
1691 (mi_field_string, mi_field_fmt): Update.
1692 (mi_flush, mi_redirect, field_separator): Update.
1693 (mi_open, mi_close): Update.
1694 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1695 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1696 (mi_out_new): Call mi_out_data_ctor.
1698 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1700 * remote.c (strprefix): New.
1701 (remote_parse_stop_reply): Use strprefix instead of strncmp
1702 to ensure exact match of keyword.
1704 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1706 * gdb_bfd.c (debug_bfd_cache): New variable.
1707 (show_bfd_cache_debug): New function.
1708 (gdb_bfd_open): Add debug logging.
1709 (gdb_bfd_ref): Likewise.
1710 (gdb_bfd_unref): Likewise.
1711 (_initialize_gdb_bfd): Add new set/show command.
1712 * NEWS: Mention new command.
1714 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1716 * gdb_bfd.c (bfd_sharing): New variable.
1717 (show_bfd_sharing): New function.
1718 (gdb_bfd_open): Check bfd_sharing variable.
1719 (_initialize_gdb_bfd): Add new set/show command.
1720 * NEWS: Mention new command.
1722 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1724 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1726 (struct gdb_bfd_cache_search): Likewise.
1727 (eq_bfd): Compare the size, inode, and device id fields.
1728 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1729 (gdb_bfd_ref): Likewise.
1730 (gdb_bfd_unref): Likewise.
1732 2015-08-18 Pedro Alves <palves@redhat.com>
1734 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1735 target implements to_always_non_stop_p, call it.
1736 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1737 (x86_linux_create_target): Install it as to_always_non_stop_p
1740 2015-08-17 Doug Evans <dje@google.com>
1742 * ui-out.c (default_ui_out_impl): Add comment.
1744 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1746 * d-exp.y (type_aggregate_p): New function.
1747 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1748 (classify_inner_name): Likewise.
1749 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1751 2015-08-15 Doug Evans <xdje42@gmail.com>
1753 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1755 (add_psymbol_to_list): Ditto.
1757 2015-08-15 Doug Evans <xdje42@gmail.com>
1759 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1760 updated. Call end_psymtab_common.
1761 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1763 (build_type_psymtabs_reader): Ditto.
1764 * psympriv.h (sort_pst_symbols): Delete.
1765 (end_psymtab_common): Declare.
1766 * psymtab.c (sort_pst_symbols): Make static.
1767 (end_psymtab_common): New function.
1768 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1770 2015-08-15 Doug Evans <xdje42@gmail.com>
1772 * defs.h (LANGUAGE_BITS): Define.
1773 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1774 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1775 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1776 (minimal_symbol_type): Add nr_minsym_types.
1777 (MINSYM_TYPE_BITS): Define.
1778 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1779 (domain_enum_tag): Add NR_DOMAINS.
1780 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1781 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1783 2015-08-15 Doug Evans <xdje42@gmail.com>
1785 * objfiles.h: Whitespace cleanup.
1786 * psympriv.h: Whitespace cleanup.
1787 * psymtab.c: Whitespace/coding convention cleanup.
1789 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1791 * inferior.c (detach_inferior_command): Don't call
1792 any_thread_of_process when pid is 0.
1793 (kill_inferior_command): Likewise.
1795 2015-08-14 Doug Evans <xdje42@gmail.com>
1798 * NEWS: Document new /s modifier for the disassemble command.
1799 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1800 (_initialize_cli_cmds): Update online docs of disassemble command.
1801 * disasm.c: #include "source.h".
1802 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1804 (dis_line_entry): New struct.
1805 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1806 (allocate_dis_line_table): New functions.
1807 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1808 (dump_insns): New arg end_pc. All callers updated.
1809 (do_mixed_source_and_assembly_deprecated): Renamed from
1810 do_mixed_source_and_assembly. All callers updated.
1811 (do_mixed_source_and_assembly): New function.
1812 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1813 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1814 DISASSEMBLY_SOURCE. All uses updated.
1815 (DISASSEMBLY_SOURCE): New macro.
1816 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1818 2015-08-14 Keith Seitz <keiths@redhat.com>
1820 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1821 `typename' to `type_name' to avoid C++ reserved word.
1823 2015-08-14 Keith Seitz <keiths@redhat.com>
1825 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1826 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1829 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1831 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1832 xstrprintf instead of malloc and sprintf.
1833 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1834 (lex_one_token): Likewise.
1836 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1838 * solib-svr4.c (read_program_header): Add base_addr argument to
1839 report the runtime address of the segment.
1840 (find_program_interpreter): Update read_program_header call to pass
1841 a NULL pointer for the new argument.
1842 (scan_dyntag): Add ptr_addr argument to report the runtime address
1844 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1845 read_program_header to get the base address of the dynamic segment.
1846 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1847 read_program_header.
1848 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1850 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1852 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1854 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1856 * d-exp.y (%union): Add voidval.
1857 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1858 name in the lexing stage.
1859 (PostfixExpression): Move symbol completion handling in grammar here
1860 from PrimaryExpression.
1861 (PrimaryExpression): Move routines to handle resolving identifier
1862 tokens in the grammar here from push_expression_name.
1863 (IdentifierExp): Remove the handling of alternating '.' and identifier
1865 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1866 (BasicType): Remove C-style typename rules.
1867 (d_type_from_name, d_module_from_name, push_variable)
1868 (push_fieldnames, push_type_name, push_module_name)
1869 (push_expression_name): Remove.
1870 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1871 (token_and_value): New type.
1872 (token_fifo, popping, name_obstack): New globals.
1873 (classify_name): New function.
1874 (classify_inner_name): Likewise.
1876 (d_parse): Initialize token_fifo, popping and name_obstack.
1878 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1880 * Makefile.in (SFILES): Add d-namespace.c.
1881 (COMMON_OBS): Add d-namespace.o.
1882 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1883 la_lookup_symbol_nonlocal callback function pointer.
1884 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1885 (d_lookup_nested_symbol): New declaration.
1886 * d-namespace.c: New file.
1888 2015-08-13 Pedro Alves <palves@redhat.com>
1890 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1891 cleanup after the decref cleanup, not before.
1893 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1895 * ada-lang.c: Include namespace.h
1896 (aux_add_nonlocal_symbols): Fix a function name in comment.
1897 (ada_add_block_renamings): New.
1898 (add_nonlocal_symbols): Add global renamings handling.
1899 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1901 (ada_add_all_symbols): ... this new function.
1902 (ada_add_block_symbols): Try to match the input name against the
1903 "using directives list", perform a recursive symbol lookup on
1904 the matched declarations.
1905 * block.h (struct block): Move the_namespace to top-level as
1906 namespace_info. Remove the language_specific field.
1907 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1908 * buildsym.h (using_directives): Rename into...
1909 (local_using_directives): ... this.
1910 (global_using_directives): New.
1911 (struct context_stack): Rename the using_directives field into
1912 local_using_directives.
1913 * buildsym.c (finish_block_internal): Deal with the proper
1914 using directives repository (local or global).
1915 (prepare_for_building): Reset local_using_directives. Assert
1916 that there is no pending global using directive.
1917 (reset_symtab_globals): Reset global_using_directives and
1918 local_using_directives.
1919 (end_symtab_get_static_block): Don't ignore symtabs that have
1920 only using directives.
1921 (push_context): Update references to local_using_directives.
1922 (buildsym_init): Do not reset using_directives.
1923 * cp-support.c: Include namespace.h.
1924 * cp-support.h (struct using_direct): Move to namespace.h.
1925 (cp_add_using_directives): Move to namespace.h.
1926 * cp-namespace.c: Include namespace.h
1927 (cp_add_using_directive): Move to namespace.c, rename it to
1928 add_using_directive, add a "using_directives" argument and use
1929 it as the pending using directives repository. All callers
1931 * dwarf2read.c (using_directives): New.
1932 (read_import_statement): Call using_directives.
1933 (read_func_scope): Update references to local_using_directives.
1934 (read_lexical_block_scope): Likewise.
1935 (read_namespace): Update the heading comment, call
1937 * namespace.h: New file.
1938 * namespace.c: New file.
1939 * Makefile.in (SFILES): Add namespace.c.
1940 (COMMON_OBS): Add namespace.o
1942 2015-08-12 Joel Brobecker <brobecker@adacore.com>
1944 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1947 2015-08-12 Keith Seitz <keiths@redhat.com>
1949 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1950 reserved C++ keyword "explicit" to "explicit_loc".
1951 * breakpoint.c (create_overlay_event_breakpoint)
1952 (create_longjmp_master_breakpoint)
1953 (create_std_terminate_master_breakpoint)
1954 (create_exception_master_breakpoint, update_static_tracepoint):
1955 Rename reserved C++ keyword "explicit" to "explicit_loc".
1956 * completer.c (collect_explicit_location_matches)
1957 (explicit_location_completer): Rename reserved C++ keyword
1958 "explicit" to "explicit_loc".
1959 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1960 (canonicalize_linespec, create_sals_line_offset)
1961 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1962 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1963 "explicit" to "explicit_loc".
1964 * location.c (struct event_location) <explicit>: Rename to
1966 (initialize_explicit_location, new_explicit_location)
1967 (explicit_location_to_string_internal, explicit_location_to_linespec):
1968 Rename reserved C++ keyword "explicit" to "explicit_loc".
1969 * location.h (explicit_location_to_string)
1970 (explicit_location_to_linespec, initialize_explicit_location)
1971 (new_explicit_location): Rename reserved C++ keyword "explicit"
1973 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1974 keyword "explicit" to "explicit_loc".
1976 2015-08-12 Keith Seitz <keiths@redhat.com>
1978 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1979 and only call decode_line_1 when it is non-NULL.
1981 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
1983 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1984 location address is not meaningful.
1985 (breakpoint_address_is_meaningful): Update comment.
1987 2015-08-11 Keith Seitz <keiths@redhat.com>
1989 * NEWS: Mention explicit locations.
1990 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1991 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1992 (_initialize_breakpoint): Update documentation for
1993 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1995 2015-08-11 Keith Seitz <keiths@redhat.com>
1997 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1998 explicit locations, options "--source", "--function",
1999 "--label", and "--line".
2001 2015-08-11 Keith Seitz <keiths@redhat.com>
2003 * completer.c: Include location.h.
2004 (enum match_type): New enum.
2005 (location_completer): Rename to ...
2006 (linespec_completer): ... this.
2007 (collect_explicit_location_matches, backup_text_ptr)
2008 (explicit_location_completer): New functions.
2009 (location_completer): "New" function; handle linespec
2010 and explicit location completions.
2011 (complete_line_internal): Remove all location completer-specific
2013 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
2014 (find_toplevel_char): Export.
2015 (linespec_parse_line_offset): Export.
2016 Issue error if STRING is not numerical.
2017 (gdb_get_linespec_parser_quote_characters): New function.
2018 * linespec.h (linespec_parse_line_offset): Declare.
2019 (get_gdb_linespec_parser_quote_characters): Declare.
2020 (is_ada_operator): Declare.
2021 (find_toplevel_char): Declare.
2022 (linespec_lexer_lex_keyword): Declare.
2023 * location.c (explicit_to_event_location): New function.
2024 (explicit_location_lex_one): New function.
2025 (string_to_explicit_location): New function.
2026 (string_to_event_location): Handle explicit locations.
2027 * location.h (explicit_to_event_location): Declare.
2028 (string_to_explicit_location): Declare.
2030 2015-08-11 Keith Seitz <keiths@redhat.com>
2032 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2033 linespec into explicit location.
2034 * breakpoint.c (create_overlay_breakpoint)
2035 (create_longjmp_master_breakpoint)
2036 (create_std_terminate_master_breakpoint)
2037 (create_exception_master_breakpoint): Convert linespec into explicit
2039 (update_static_tracepoint): Convert linespec into explicit location.
2040 * linespec.c (enum offset_relative_sign, struct line_offset): Move
2042 (struct linespec) <expression, expr_pc, source_filename>
2043 <function_name, label_name, line_offset>: Replace with ...
2044 <explicit>: ... this.
2045 <is_linespec>: New member.
2046 (PARSER_EXPLICIT): New accessor macro.
2047 (undefined_label_error): New function.
2048 (source_file_not_found_error): New function.
2049 (linespec_parse_basic): The parser result is now an explicit location.
2050 Use PARSER_EXPLICIT to access it.
2051 Use undefined_label_error.
2052 (canonicalize_linespec): Convert canonical linespec into explicit
2054 Move string representation of location to explicit_location_to_linespec
2055 and use it and explicit_location_to_string to save string
2056 representations of the canonical location.
2057 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2058 explicit location. Update all references.
2059 (convert_explicit_location_to_sals): New function.
2060 (parse_linespec): Use PARSER_EXPLICIT to access the parser
2061 result's explicit location.
2062 (linespec_state_constructor): Initialize is_linespec.
2063 Use PARSER_EXPLICIT.
2064 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2066 (event_location_to_sals): For linespec locations, set is_linespec.
2067 Handle explicit locations.
2068 (decode_objc): 'ls' contains an explicit location now. Update all
2070 (symtabs_from_filename): Use source_file_not_found_error.
2071 * location.c (struct event_location.u) <explicit>: New member.
2072 (initialize_explicit_location): New function.
2073 (initialize_event_location): Initialize explicit locations.
2074 (new_explicit_location, get_explicit_location)
2075 (get_explicit_location_const): New functions.
2076 (explicit_to_string_internal): New function; most of contents moved
2077 from canonicalize_linespec.
2078 (explicit_location_to_string): New function.
2079 (explicit_location_to_linespec): New function.
2080 (copy_event_location, delete_event_location)
2081 (event_location_to_string_const, event_location_empty_p): Handle
2083 * location.h (enum offset_relative_sign, struct line_offset): Move
2084 here from linespec.h.
2085 (enum event_location_type): Add EXPLICIT_LOCATION.
2086 (struct explicit_location): New structure.
2087 (explicit_location_to_string): Declare.
2088 (explicit_location_to_linespec): Declare.
2089 (new_explicit_location, get_explicit_locationp
2090 (get_explicit_location_const, initialize_explicit_location): Declare.
2092 2015-08-11 Keith Seitz <keiths@redhat.com>
2094 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2095 linespec for stap probe to probe location.
2096 * breakpoint.c (create_longjmp_master_breakpoint)
2097 (create_exception_master_breakpoint): Likewise.
2098 (break_command_1): Remove local variable `arg_cp'.
2099 Check location type to set appropriate breakpoint ops methods.
2100 (trace_command): Likewise.
2101 * linespec.c (event_location_to_sals): Assert on probe locations.
2102 * location.c (EL_PROBE): Add macro definition.
2103 (new_probe_location, get_probe_location): New functions.
2104 (copy_event_location, delete_event_location, event_location_to_string)
2105 (string_to_event_location, event_location_empty_p): Handle probe
2107 * location.h (enum event_location_type): Add PROBE_LOCATION.
2108 (new_probe_location, get_probe_location): Declare.
2109 * probe.c (parse_probes): Assert that LOCATION is a probe location.
2110 Convert linespec into probe location.
2112 2015-08-11 Keith Seitz <keiths@redhat.com>
2114 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2115 Convert linespec to address location.
2116 * linespec.c (canonicalize_linespec): Do not handle address
2118 (convert_address_location_to_sals): New function; contents moved
2120 (convert_linespc_to_sals): ... here.
2121 (parse_linespec): Remove address locations from linespec grammar.
2122 Remove handling of address locations.
2123 (linespec_lex_to_end): Remove handling of address linespecs.
2124 (event_location_to_sals): Handle ADDRESS_LOCATION.
2125 (linespec_expression_to_pc): Export.
2126 * linespec.h (linespec_expression_to_pc): Add declaration.
2127 * location.c (struct event_location.u) <address>: New member.
2128 (new_address_location, get_address_location): New functions.
2129 (copy_event_location, delete_event_location, event_location_to_string)
2130 (string_to_event_location, event_location_empty_p): Handle address
2132 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2133 (new_address_location, get_address_location): Declare.
2134 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2135 to address location.
2136 * spu-tdep.c (spu_catch_start): Likewise.
2138 2015-08-11 Keith Seitz <keiths@redhat.com>
2140 * ax-gdb.c: Include location.h.
2141 (agent_command_1) Use linespec location instead of address
2143 * break-catch-throw.c: Include location.h.
2144 (re_set_exception_catchpoint): Use linespec locations instead
2146 * breakpoint.c: Include location.h.
2147 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2148 (create_std_terminate_master_breakpoint)
2149 (create_exception_master_breakpoint, update_breakpoints_after_exec):
2150 Use linespec location instead of address string.
2151 (print_breakpoint_location): Use locations and
2152 event_location_to_string.
2153 Print extra_string for pending locations for non-MI streams.
2154 (print_one_breakpoint_location): Use locations and
2155 event_location_to_string.
2156 (init_raw_breakpoint_without_location): Initialize b->location.
2157 (create_thread_event_breakpoint): Use linespec location instead of
2159 (init_breakpoint_sal): Likewise.
2160 Only save extra_string if it is non-NULL and not the empty string.
2161 Use event_location_to_string instead of `addr_string'.
2162 Constify `p' and `endp'.
2163 Use skip_spaces_const/skip_space_const instead of non-const versions.
2164 Copy the location into the breakpoint.
2165 If LOCATION is NULL, save the breakpoint address as a linespec location
2166 instead of an address string.
2167 (create_breakpoint_sal): Change `addr_string' parameter to a struct
2168 event_location. All uses updated.
2169 (create_breakpoints_sal): Likewise for local variable `addr_string'.
2170 (parse_breakpoint_sals): Use locations instead of address strings.
2171 Remove check for empty linespec with conditional.
2173 (decode_static_tracepoint_spec): Make argument const and update
2175 (create_breakpoint): Change `arg' to a struct event_location and
2177 Remove `copy_arg' and `addr_start'.
2178 If EXTRA_STRING is empty, set it to NULL.
2179 Don't populate `canonical' for pending breakpoints.
2180 Pass `extra_string' to find_condition_and_thread.
2181 Clear `extra_string' if `rest' was NULL.
2182 Do not error with "garbage after location" if setting a dprintf
2184 Copy the location into the breakpoint instead of an address string.
2185 (break_command_1): Use string_to_event_location and pass this to
2186 create_breakpoint instead of an address string.
2187 Check against `arg_cp' for a probe linespec.
2188 (dprintf_command): Use string_to_event_location and pass this to
2189 create_breakpoint instead of an address string.
2190 Throw an exception if no format string was specified.
2191 (print_recreate_ranged_breakpoint): Use event_location_to_string
2192 instead of address strings.
2193 (break_range_command, until_break_command)
2194 (init_ada_exception_breakpoint): Use locations instead
2196 (say_where): Print out extra_string for pending locations.
2197 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2199 (base_breakpoint_create_sals_from_location): Use struct event_location
2200 instead of address string.
2201 Remove `addr_start' and `copy_arg' parameters.
2202 (base_breakpoint_decode_location): Use struct event_location instead of
2204 (bkpt_re_set): Use locations instead of address strings.
2205 Use event_location_empty_p to check for unset location.
2206 (bkpt_print_recreate): Use event_location_to_string instead of
2208 Print out extra_string for pending locations.
2209 (bkpt_create_sals_from_location, bkpt_decode_location)
2210 (bkpt_probe_create_sals_from_location): Use struct event_location
2211 instead of address string.
2212 (bkpt_probe_decode_location): Use struct event_location instead of
2214 (tracepoint_print_recreate): Use event_location_to_string to
2215 recreate the tracepoint.
2216 (tracepoint_create_sals_from_location, tracepoint_decode_location)
2217 (tracepoint_probe_create_sals_from_location)
2218 (tracepoint_probe_decode_location): Use struct event_location
2219 instead of address string.
2220 (dprintf_print_recreate): Use event_location_to_string to recreate
2222 (dprintf_re_set): Remove check for valid/missing format string.
2223 (strace_marker_create_sals_from_location)
2224 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2225 (update_static_tracepoint): Use struct event_location instead of
2227 (location_to_sals): Likewise.
2228 Pass `extra_string' to find_condition_and_thread.
2229 For newly resolved pending breakpoint locations, clear the location's
2230 string representation.
2231 Assert that the breakpoint's condition string is NULL when
2232 condition_not_parsed.
2233 (breakpoint_re_set_default, create_sals_from_location_default)
2234 (decode_location_default, trace_command, ftrace_command)
2235 (strace_command, create_tracepoint_from_upload): Use locations
2236 instead of address strings.
2237 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2238 Use struct event_location instead of address string.
2240 <decode_location>: Likewise.
2241 (struct breakpoint) <addr_string>: Change to struct event_location
2242 and rename `location'.
2243 <addr_string_range_end>: Change to struct event_location and rename
2244 `location_range_end'.
2245 (create_breakpoint): Use struct event_location instead of address
2247 * cli/cli-cmds.c: Include location.h.
2248 (edit_command, list_command): Use locations instead of address strings.
2249 * elfread.c: Include location.h.
2250 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2251 * guile/scm-breakpoint.c: Include location.h.
2252 (bpscm_print_breakpoint_smob): Use event_location_to_string.
2253 (gdbscm_register_breakpoint): Use locations instead of address
2255 * linespec.c: Include location.h.
2256 (struct ls_parser) <stream>: Change to const char *.
2257 (PARSER_STREAM): Update.
2258 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2259 keywords must be followed by whitespace.
2260 (canonicalize_linespec): Save a linespec location into `canonical'.
2261 Save a canonical linespec into `canonical'.
2262 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2264 Update function description.
2265 (linespec_parser_new): Initialize `parser'.
2266 Update initialization of parsing stream.
2267 (event_location_to_sals): New function.
2268 (decode_line_full): Change `argptr' to a struct event_location and
2269 rename it `location'.
2270 Use locations instead of address strings.
2271 Call event_location_to_sals instead of parse_linespec.
2272 (decode_line_1): Likewise.
2273 (decode_line_with_current_source, decode_line_with_last_displayed)
2274 Use locations instead of address strings.
2275 (decode_objc): Likewise.
2276 Change `argptr' to const char * and rename `arg'.
2277 (destroy_linespec_result): Delete the linespec result's location
2278 instead of freeing the address string.
2279 * linespec.h (struct linespec_result) <addr_string>: Change to
2280 struct event_location and rename to ...
2281 <location>: ... this.
2282 (decode_line_1, decode_line_full): Change `argptr' to struct
2283 event_location. All callers updated.
2284 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2285 (mi_cmd_break_insert_1): Use locations instead of address strings.
2286 Throw an error if there was "garbage" at the end of the specified
2288 * probe.c: Include location.h.
2289 (parse_probes): Change `argptr' to struct event_location.
2290 Use event locations instead of address strings.
2291 * probe.h (parse_probes): Change `argptr' to struct event_location.
2292 * python/py-breakpoint.c: Include location.h.
2293 (bppy_get_location): Constify local variable `str'.
2294 Use event_location_to_string.
2295 (bppy_init): Use locations instead of address strings.
2296 * python/py-finishbreakpoint.c: Include location.h.
2297 (bpfinishpy_init): Remove local variable `addr_str'.
2298 Use locations instead of address strings.
2299 * python/python.c: Include location.h.
2300 (gdbpy_decode_line): Use locations instead of address strings.
2301 * remote.c: Include location.h.
2302 (remote_download_tracepoint): Use locations instead of address
2304 * spu-tdep.c: Include location.h.
2305 (spu_catch_start): Remove local variable `buf'.
2306 Use locations instead of address strings.
2307 * tracepoint.c: Include location.h.
2308 (scope_info): Use locations instead of address strings.
2309 (encode_source_string): Constify parameter `src'.
2310 * tracepoint.h (encode_source_string): Likewise.
2312 2015-08-11 Keith Seitz <keiths@redhat.com>
2314 * Makefile.in (SFILES): Add location.c.
2315 (HFILES_NO_SRCDIR): Add location.h.
2316 (COMMON_OBS): Add location.o.
2317 * linespec.c (linespec_lex_to_end): New function.
2318 * linespec.h (linespec_lex_to_end): Declare.
2319 * location.c: New file.
2320 * location.h: New file.
2322 2015-08-11 Keith Seitz <keiths@redhat.com>
2324 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2325 Renamed to create_sals_from_location.
2326 <decode_linespec>: Renamed to decode_location.
2328 * breakpoint.c (create_sals_from_address_default): Renamed to ...
2329 (create_sals_from_location_default): ... this.
2330 (addr_string_to_sals): Renamed to ...
2331 (location_to_sals): ... this.
2332 (decode_linespec_default): Renamed to ...
2333 (decode_location_default): ... this.
2334 (base_breakpoint_create_sals_from_address): Renamed to ...
2335 (base_breakpoint_create_sals_from_location): ... this.
2336 (bkpt_create_sals_from_address): Renamed to ...
2337 (bkpt_create_sals_from_location): ... this.
2338 (bkpt_decode_linespec): Renamed to ...
2339 (bkpt_decode_location): ... this.
2340 (bkpt_probe_create_sals_from_address): Renamed to ...
2341 (bkpt_probe_create_sals_from_location): ... this.
2342 (tracepoint_create_sals_from_address): Renamed to ...
2343 (tracepoint_create_sals_from_location): ... this.
2344 (tracepoint_decode_linespec): Renamed to ...
2345 (tracepoint_decode_location): ... this.
2346 (tracepoint_probe_create_sals_from_address): Renamed to ...
2347 (tracepoint_probe_create_sals_from_location): ... this.
2348 (tracepoint_probe_decode_linespec): Renamed to ...
2349 (tracepoint_probe_decode_location): ... this.
2350 (strace_marker_create_sals_from_address): Renamed to ...
2351 (strace_marker_create_sals_from_location): ... this.
2352 (decode_linespec_default): Renamed to ...
2353 (decode_location_default): ... this.
2355 2015-08-10 Doug Evans <dje@google.com>
2356 Keith Seitz <keiths@redhat.com>
2359 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2360 make_file_symbol_completion_list and made static.
2361 (make_file_symbol_completion_list): New function.
2363 2015-08-10 Joel Brobecker <brobecker@adacore.com>
2365 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2366 trailing new-line at end of warning message.
2367 (proceed): Add i18n marker to error messages.
2369 2015-08-07 Pedro Alves <palves@redhat.com>
2371 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2373 2015-08-07 Pedro Alves <palves@redhat.com>
2375 * s390-linux-tdep.c (is_non_branch_ril)
2376 (s390_displaced_step_copy_insn): New functions.
2377 (s390_displaced_step_fixup): Update comment.
2378 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2379 gdbarch_displaced_step_copy_insn hook.
2381 2015-08-07 Pedro Alves <palves@redhat.com>
2383 * infrun.c (displaced_step_prepare_throw): Return -1 if
2384 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2386 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2387 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2389 (ppc_displaced_step_copy_insn): New function.
2390 (ppc_displaced_step_fixup): Update comment.
2391 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2392 gdbarch_displaced_step_copy_insn hook.
2393 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2395 * gdbarch.h: Regenerate.
2397 2015-08-07 Pedro Alves <palves@redhat.com>
2399 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2401 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2402 Return false if dispaced stepping failed before.
2403 (resume): Pass the current inferior to
2404 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2405 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2406 displaced_stepping_failed flag, and fall back to an in-line
2409 2015-08-07 Pedro Alves <palves@redhat.com>
2411 * darwin-nat.c (darwin_stop): Rename to ...
2412 (darwin_interrupt): ... this.
2413 (_initialize_darwin_inferior): Adjust.
2414 * gnu-nat.c (gnu_stop): Delete.
2415 (gnu_target): Don't install gnu_stop.
2416 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2417 (inf_ptrace_interrupt): ... this.
2418 (inf_ptrace_target): Adjust.
2419 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2421 * linux-nat (linux_nat_stop): Rename to ...
2422 (linux_nat_interrupt): ... this.
2423 (linux_nat_stop): Reimplement.
2424 (linux_nat_add_target): Install linux_nat_interrupt.
2425 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2426 (nto_handle_sigint_twice): ... this.
2427 (nto_interrupt): Rename to ...
2428 (nto_handle_sigint): ... this. Call target_interrupt instead of
2430 (procfs_wait): Adjust.
2431 (procfs_stop): Rename to ...
2432 (procfs_interrupt): ... this.
2433 (init_procfs_targets): Adjust.
2434 * procfs.c (procfs_stop): Rename to ...
2435 (procfs_interrupt): ... this.
2436 (procfs_target): Adjust.
2437 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2438 (m32r_interrupt): ... this.
2439 (init_m32r_ops): Adjust.
2440 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2441 (gdbsim_interrupt_inferior): ... this.
2442 (gdbsim_stop): Rename to ...
2443 (gdbsim_interrupt): ... this.
2444 (gdbsim_cntrl_c): Adjust.
2445 (init_gdbsim_ops): Adjust.
2446 * remote.c (sync_remote_interrupt): Adjust comments.
2447 (remote_stop_as): Rename to ...
2448 (remote_interrupt_as): ... this.
2449 (remote_stop): Adjust comment.
2450 (remote_interrupt): New function.
2451 (init_remote_ops): Install remote_interrupt.
2452 * target.c (target_interrupt): New function.
2453 * target.h (struct target_ops) <to_interrupt>: New field.
2454 (target_interrupt): New declaration.
2455 * windows-nat.c (windows_stop): Rename to ...
2456 (windows_interrupt): ... this.
2457 * target-delegates.c: Regenerate.
2459 2015-08-07 Pedro Alves <palves@redhat.com>
2461 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2462 threads" as alternative to "switching back to stepped thread".
2464 2015-08-07 Pedro Alves <palves@redhat.com>
2466 * NEWS: Mention "maint set/show target-non-stop".
2467 * breakpoint.c (update_global_location_list): Check
2468 target_is_non_stop_p instead of non_stop.
2469 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2470 * infrun.c (show_can_use_displaced_stepping)
2471 (can_use_displaced_stepping_p, start_step_over_inferior):
2473 (internal_resume_ptid): New function.
2475 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2476 all-stop mode but the target is always in non-stop mode, start all
2477 the other threads that are implicitly resumed too.
2478 (for_each_just_stopped_thread, fetch_inferior_event)
2479 (adjust_pc_after_break, stop_all_threads): Check
2480 target_is_non_stop_p instead of non_stop.
2481 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2482 with the target always in non-stop mode.
2483 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2484 instead of non_stop.
2485 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2486 instead of non_stop.
2487 (keep_going_stepped_thread): Use internal_resume_ptid.
2488 (stop_waiting): If in all-stop mode, and the target is in non-stop
2489 mode, stop all threads.
2490 (keep_going_pass): Likewise, when starting a new in-line step-over
2492 * linux-nat.c (get_pending_status, select_event_lwp)
2493 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2494 target_is_non_stop_p instead of non_stop.
2495 (linux_nat_always_non_stop_p): New function.
2496 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2497 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2498 * target-delegates.c: Regenerate.
2499 * target.c (target_is_non_stop_p): New function.
2500 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2501 (maint_set_target_non_stop_command)
2502 (maint_show_target_non_stop_command): New functions.
2503 (_initilize_target): Install "maint set/show target-non-stop"
2505 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2506 (target_non_stop_enabled): New declaration.
2507 (target_is_non_stop_p): New declaration.
2509 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2511 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2512 has a pending status, return true.
2513 * gdbthread.h: Include target/waitstatus.h.
2514 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2515 stop_pc>: New fields.
2516 (struct thread_info) <resumed>: New field.
2517 (set_resumed): Declare.
2518 * infrun.c: Include "event-loop.h".
2519 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2520 (infrun_async): New function.
2521 (clear_step_over_info): Add debug output.
2522 (displaced_step_in_progress_any_inferior): New function.
2523 (displaced_step_fixup): New returns int.
2524 (start_step_over): Handle in-line step-overs too. Assert the
2525 thread is marked resumed.
2526 (resume_cleanups): Clear the thread's resumed flag.
2527 (resume): Set the thread's resumed flag. Return early if the
2528 thread has a pending status. Allow stepping a breakpoint with no
2530 (proceed): Adjust to check 'resumed' instead of 'executing'.
2531 (clear_proceed_status_thread): If the thread has a pending status,
2532 and that status is a finished step, discard the pending status.
2533 (clear_proceed_status): Don't clear step_over_info here.
2534 (random_pending_event_thread, do_target_wait): New functions.
2535 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2537 (wait_one): New function.
2538 (THREAD_STOPPED_BY): New macro.
2539 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2540 (thread_stopped_by_hw_breakpoint): New functions.
2541 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2543 (handle_inferior_event): Also call set_resumed(false) on all
2544 threads implicitly stopped by the event.
2545 (restart_threads, resumed_thread_with_pending_status): New
2547 (finish_step_over): If we were doing an in-line step-over before,
2548 and no longer are after trying to start a new step-over, restart
2549 all threads. If we have multiple threads with pending events,
2550 save the current event and go through the event loop again.
2551 (handle_signal_stop): Return early if finish_step_over returns
2553 <random signal>: If we get a signal while stepping over a
2554 breakpoint in-line in non-stop mode, restart all threads. Clear
2555 step_over_info before delivering the signal.
2556 (keep_going_stepped_thread): Use internal_error instead of
2557 gdb_assert. Mark the thread as resumed.
2558 (keep_going_pass_signal): Assert the thread isn't already resumed.
2559 If some other thread is doing an in-line step-over, defer the
2560 resume. If we just started a new in-line step-over, stop all
2561 threads. Don't clear step_over_info.
2562 (infrun_async_inferior_event_handler): New function.
2563 (_initialize_infrun): Create async event handler with
2564 infrun_async_inferior_event_handler as callback.
2565 (infrun_async): New declaration.
2566 * target.c (target_async): New function.
2567 * target.h (target_async): Declare macro and readd as function
2569 * target/waitstatus.h (enum target_stop_reason)
2570 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2571 * thread.c (new_thread): Clear the new waitstatus field.
2572 (set_resumed): New function.
2574 2015-08-07 Pedro Alves <palves@redhat.com>
2576 * infrun.c (keep_going_stepped_thread): New function, factored out
2578 (switch_back_to_stepped_thread): ... here.
2580 2015-08-07 Pedro Alves <palves@redhat.com>
2582 * infrun.c (currently_stepping): Extend intro comment.
2583 * target.h (target_resume): Extend intro comment.
2585 2015-08-07 Pedro Alves <palves@redhat.com>
2587 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2588 of inferior_ptid. If the stepped thread vanished, return 0
2589 instead of resuming here. Use reset_ecs. Print the prev_pc and
2590 the current stop_pc in log message. Clear trap_expected if the
2591 thread advanced. Don't pass currently_stepping to
2594 2015-08-07 Pedro Alves <palves@redhat.com>
2596 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2597 * infrun.c (struct execution_control_state): Move higher up in the
2599 (reset_ecs): New function.
2600 (start_step_over): Now returns int. Rewrite to use
2601 keep_going_pass_signal instead of manually starting a displaced step.
2602 (resume): Don't call set_running here. If displaced stepping
2603 can't start now, clear trap_expected.
2604 (find_thread_needs_step_over): Delete function.
2605 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2606 If the current thread needs a step over, push it in the step-over
2607 chain. Don't set insert breakpoints nor call resume directly
2608 here. Instead rewrite to use start_step_over and
2609 keep_going_pass_signal.
2610 (finish_step_over): New function.
2611 (handle_signal_stop): Call finish_step_over instead of
2613 (switch_back_to_stepped_thread): If the event thread needs another
2614 step-over do that first. Use start_step_over.
2615 (keep_going_pass_signal): New function, factored out from ...
2616 (keep_going): ... here.
2617 (_initialize_infrun): Comment moved here.
2618 * thread.c (set_running_thread): New function.
2619 (set_running, finish_thread_state): Use set_running_thread.
2621 2015-08-07 Pedro Alves <palves@redhat.com>
2623 * gdbthread.h (struct thread_info) <step_over_prev,
2624 step_over_next>: New fields.
2625 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2626 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2628 * infrun.c (struct displaced_step_request): Delete.
2629 (struct displaced_step_inferior_state) <step_request_queue>:
2631 (displaced_step_prepare): Assert that trap_expected is set. Use
2632 thread_step_over_chain_enqueue. Split starting a new displaced
2634 (start_step_over): ... this new function.
2635 (resume): Assert the thread isn't waiting for a step over already.
2636 (proceed): Assert the thread isn't waiting for a step over
2638 (infrun_thread_stop_requested): Adjust to remove threads from the
2639 embedded step-over chain.
2640 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2641 displaced_step_fixup.
2642 (handle_signal_stop): Call start_step_over after
2643 displaced_step_fixup.
2644 * infrun.h (step_over_queue_head): New declaration.
2645 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2646 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2647 (thread_step_over_chain_enqueue)
2648 (thread_step_over_chain_remove): New functions.
2649 (delete_thread_1): Remove thread from the step-over chain.
2651 2015-08-07 Pedro Alves <palves@redhat.com>
2653 * infrun.c (thread_still_needs_step_over): Rename to ...
2654 (thread_still_needs_step_over_bp): ... this.
2655 (enum step_over_what): New.
2656 (thread_still_needs_step_over): Reimplement.
2658 2015-08-07 Pedro Alves <palves@redhat.com>
2660 * remote.c (remote_wait_as): If not waiting for a stop reply,
2661 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2662 requested, don't block waiting forever.
2664 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2666 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2667 waitstatus pointers instead of an ecs. Adjust.
2668 (handle_inferior_event): Adjust caller.
2670 2015-08-07 Pedro Alves <palves@redhat.com>
2672 * infrun.c (handle_inferior_event): If we get
2673 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2674 mode, mark all threads of the exiting process as not-executing.
2675 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2676 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2677 exiting process, if inferior_ptid still points at a process.
2678 * thread.c (struct current_thread_cleanup) <next>: New field.
2679 (current_thread_cleanup_chain): New global.
2680 (restore_current_thread_ptid_changed): New function.
2681 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2682 current_thread_cleanup_chain list.
2683 (make_cleanup_restore_current_thread): Add the cleanup data to the
2684 current_thread_cleanup_chain list.
2685 (_initialize_thread): Install restore_current_thread_ptid_changed
2686 as thread_ptid_changed observer.
2688 2015-08-07 Joel Brobecker <brobecker@adacore.com>
2690 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2691 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2692 smaller than expected.
2694 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2696 * stack.c (get_frame_language): Moved ...
2697 * frame.c (get_frame_language): ... to here.
2698 * language.h (get_frame_language): Declaration moved to frame.h.
2699 * frame.h: Add language.h include, for language enum.
2700 (get_frame_language): Declaration moved from language.h.
2701 * language.c: Add frame.h include.
2702 * top.c: Add frame.h include.
2703 * symtab.h (struct obj_section): Declare.
2704 (struct cmd_list_element): Declare.
2706 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2708 * language.c (show_language_command): Find selected frame before
2709 asking for the language of that frame.
2710 (set_language_command): Likewise.
2711 * language.h (get_frame_language): Add frame parameter.
2712 * stack.c (get_frame_language): Add frame parameter, assert
2713 parameter is not NULL, update comment and reindent.
2714 * top.c (check_frame_language_change): Pass the selected frame
2715 into get_frame_language.
2717 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2719 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2720 (pt_btrace_insn_flags): New.
2721 (ftrace_add_pt): Call pt_btrace_insn_flags.
2722 * btrace.h (btrace_insn_flag): New.
2723 (btrace_insn) <flags>: New.
2724 * record-btrace.c (btrace_insn_history): Print insn prefix.
2725 * NEWS: Announce it.
2727 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2729 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2730 * configure: Regenerate.
2732 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2734 * Makefile.in (LIBICONV): Define.
2735 (CLIBS): Add LIBICONV.
2736 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2737 * configure: Regenerate.
2739 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2740 Pedro Alves <palves@redhat.com>
2742 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2743 (arm_set_abi): Likewise.
2744 * ax-general.c (ax_print): Likewise.
2745 * c-exp.y (exp : string_exp): Likewise.
2746 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2747 (do_compile_dwarf_expr_to_c): Likewise.
2748 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2750 * dwarf2expr.c (execute_stack_op): Likewise.
2751 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2752 (disassemble_dwarf_expression): Likewise.
2753 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2754 (read_array_order): Likewise.
2755 (abbrev_table_read_table): Likewise.
2756 (read_attribute_value): Likewise.
2757 (skip_unknown_opcode): Likewise.
2758 (dwarf_decode_macro_bytes): Likewise.
2759 (dwarf_decode_macros): Likewise.
2760 * eval.c (value_f90_subarray): Likewise.
2761 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2762 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2763 * infrun.c (handle_command): Likewise.
2764 * memory-map.c (memory_map_start_memory): Likewise.
2765 * osabi.c (set_osabi): Likewise.
2766 * parse.c (operator_length_standard): Likewise.
2767 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2768 single return point.
2769 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2770 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2771 (gdbpy_lookup_global_symbol): Likewise.
2772 * record-full.c (record_full_restore): Likewise.
2773 * regcache.c (regcache_register_status): Likewise.
2774 (regcache_raw_read): Likewise.
2775 (regcache_cooked_read): Likewise.
2776 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2777 * symtab.c (initialize_ordinary_address_classes): Likewise.
2778 * target-debug.h (target_debug_print_signals): Likewise.
2779 * utils.c (do_restore_current_language): Likewise.
2781 2015-08-06 Clem Dickey <clemd@acm.org>
2784 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2786 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2788 * complaints.c (enum complaint_series): Add newlines and remove
2789 out of date comment.
2790 (struct complaints) <series>: Change type to enum
2791 complaint_series and remove out of date comment.
2792 (symfile_complaint_hook): Use equivalent enum value
2793 ISOLATED_MESSAGE instead of 0.
2795 2015-08-06 Pedro Alves <palves@redhat.com>
2797 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2800 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2802 * common/agent.c (symbol_list) <required>: Remove.
2804 2015-08-06 Pedro Alves <palves@redhat.com>
2806 * target/waitstatus.h (enum target_stop_reason)
2807 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2809 2015-08-05 Pedro Alves <palves@redhat.com>
2810 Joel Brobecker <brobecker@adacore.com>
2812 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
2813 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2814 case where BS->STOP is not set.
2816 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2818 * nat/gdb_thread_db.h: Add copyright header.
2819 Protect against multiple inclusion.
2821 2015-08-05 Yao Qi <yao.qi@linaro.org>
2823 * aarch64-linux-nat.c (get_thread_id): Remove.
2824 (debug_reg_change_callback): Call ptid_get_lwp instead of
2826 (fetch_gregs_from_thread): Likewise.
2827 (store_gregs_to_thread): Likewise.
2828 (fetch_fpregs_from_thread): Likewise.
2829 (store_fpregs_to_thread): Likewise.
2830 (aarch64_linux_get_debug_reg_capacity): Likewise.
2831 * arm-linux-nat.c (get_thread_id): Remove.
2832 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2833 * xtensa-linux-nat.c (get_thread_id): Remove.
2834 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2835 * arm-linux-nat.c (get_thread_id): Remove.
2836 (GET_THREAD_ID): Remove.
2837 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2838 (store_fpregs, fetch_regs, store_regs): Likewise.
2839 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2840 (fetch_vfp_regs, store_vfp_regs): Likewise.
2841 (arm_linux_read_description): Likewise.
2842 (arm_linux_get_hwbp_cap): Likewise.
2843 * xtensa-linux-nat.c (get_thread_id): Remove.
2844 (GET_THREAD_ID): Remove.
2845 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2848 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2850 * python/py-linetable.c: Fix case of Linetable to LineTable
2851 in docstrings and code comments.
2852 * python/py-symtab.c: Same.
2854 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2856 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2858 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2861 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2864 2015-08-04 Pedro Alves <palves@redhat.com>
2866 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2867 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2868 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2869 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2870 (td_thr_validate_ftype, td_thr_get_info_ftype)
2871 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2872 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2874 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2875 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2876 local macros and use them instead of verbose_dlsym and dlsym
2879 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2881 * nios2-tdep.h: Include opcode/nios2.h here.
2882 (NIOS2_CDX_OPCODE_SIZE): New.
2883 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2884 * nios2-tdep.c: Don't include opcode/nios2.h here.
2885 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2887 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2888 (nios2_match_addi, nios2_match_orhi): Likewise.
2889 (nios2_match_stw, nios2_match_ldw): Likewise.
2890 (nios2_match_rdctl): Likewise.
2891 (nios2_match_stwm, nios2_match_ldwm): New.
2892 (nios2_match_branch): Add cases for R2 encodings.
2893 (nios2_match_jmpi, nios2_match_calli): Likewise.
2894 (nios2_match_jmpr, nios2_match_callr): Likewise.
2895 (nios2_match_break, nios2_match_trap): Likewise.
2896 (nios2_in_epilogue_p): Add R2 support.
2897 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2899 (nios2_breakpoint_from_pc): Handle R2 instructions.
2900 (nios2_get_next_pc): Likewise. Adjust call to
2901 tdep->syscall_next_pc.
2902 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2903 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2904 instruction field macros instead of literal hex values.
2905 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2906 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2907 Use size field from OP instead of assuming all instructions
2909 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2911 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2913 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2914 variable warning with some compilers.
2916 2015-08-03 Yao Qi <yao.qi@linaro.org>
2918 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2919 in comment. Replace "rw" with "type".
2920 (arm_linux_remove_watchpoint): Change type of "rw" to
2921 "enum target_hw_bp_type".
2923 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2925 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2927 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2928 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2929 * mt-tdep.c (mt_skip_prologue): Likewise.
2930 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2932 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2934 * ada-exp.y (write_object_renaming): Replace struct
2935 ada_symbol_info with struct block_symbol. Update field
2936 references accordingly.
2937 (block_lookup, select_possible_type_sym): Likewise.
2938 (find_primitive_type): Likewise. Also update call to
2939 ada_lookup_symbol to extract the symbol itself.
2940 (write_var_or_type, write_name_assoc): Likewise.
2941 * ada-lang.h (struct ada_symbol_info): Remove.
2942 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2943 struct block_symbol.
2944 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2945 (ada_lookup_symbol): Return struct block_symbol instead of a
2947 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2948 with struct block_symbol.
2949 (resolve_subexp, ada_resolve_function, sort_choices,
2950 user_select_syms, is_nonfunction, add_defn_to_vec,
2951 num_defns_collected, defns_collected,
2952 symbols_are_identical_enums, remove_extra_symbols,
2953 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2954 ada_lookup_symbol_list, ada_iterate_over_symbols,
2955 ada_lookup_encoded_symbol, get_var_value): Likewise.
2956 (ada_lookup_symbol): Return a block_symbol instead of a mere
2957 symbol. Replace struct ada_symbol_info with struct
2959 (ada_lookup_symbol_nonlocal): Likewise.
2960 (standard_lookup): Make block passing explicit through
2961 lookup_symbol_in_language.
2962 * ada-tasks.c (get_tcb_types_info): Update the calls to
2963 lookup_symbol_in_language to extract the mere symbol out of the
2965 (ada_tasks_inferior_data_sniffer): Likewise.
2966 * ax-gdb.c (gen_static_field): Likewise for the call to
2968 (gen_maybe_namespace_elt): Deal with struct block_symbol from
2970 (gen_expr): Likewise.
2971 * c-exp.y: Likewise. Remove uses of block_found.
2972 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2973 (classify_name): Likewise. Rename the "sym" local variable to
2975 * c-valprint.c (print_unpacked_pointer): Likewise.
2976 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2977 "sym" parameter from struct symbol * to struct block_symbol.
2978 Use it to remove uses of block_found. Deal with struct
2979 block_symbol from lookup functions.
2980 (gcc_convert_symbol): Likewise. Update the call to
2982 * compile/compile-object-load.c (compile_object_load): Deal with
2983 struct block_symbol from lookup functions.
2984 * cp-namespace.c (cp_lookup_nested_symbol_1,
2985 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2986 cp_search_static_and_baseclasses,
2987 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2988 cp_lookup_symbol_imports_or_template,
2989 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2990 lookup_namespace_scope, cp_lookup_nonlocal,
2991 find_symbol_in_baseclass): Return struct block_symbol instead of
2992 mere symbols and deal with struct block_symbol from lookup
2994 * cp-support.c (inspect_type, replace_typedefs,
2995 cp_lookup_rtti_type): Deal with struct block_symbol from
2997 * cp-support.h (cp_lookup_symbol_nonlocal,
2998 cp_lookup_symbol_from_namespace,
2999 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
3000 Return struct block_symbol instead of mere symbols.
3001 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
3003 Deal with struct block_symbol from lookup functions. Remove
3004 uses of block_found.
3005 * eval.c (evaluate_subexp_standard): Update call to
3006 cp_lookup_symbol_namespace.
3007 * f-exp.y: Deal with struct block_symbol from lookup functions.
3008 Remove uses of block_found.
3010 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
3011 lookup_enum, lookup_template_type, check_typedef): Deal with
3012 struct block_symbol from lookup functions.
3013 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
3014 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
3015 (gdbscm_lookup_global_symbol): Likewise.
3016 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
3017 * go-exp.y: Likewise. Remove uses of block_found.
3018 (package_name_p, classify_packaged_name, classify_name):
3020 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3021 * jv-exp.y (push_variable): Likewise.
3022 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
3023 * language.c (language_bool_type): Likewise.
3024 * language.h (struct language_defn): Update
3025 la_lookup_symbol_nonlocal to return a struct block_symbol rather
3027 * linespec.c (find_label_symbols): Deal with struct block_symbol
3028 from lookup functions.
3029 * m2-exp.y: Likewise. Remove uses of block_found.
3031 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3032 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
3033 * p-exp.y: Likewise. Remove uses of block_found.
3035 * p-valprint.c (pascal_val_print): Likewise.
3036 * parse.c (write_dollar_variable): Likewise. Remove uses of
3038 * parser-defs.h (struct symtoken): Turn the SYM field into a
3039 struct block_symbol.
3040 * printcmd.c (address_info): Deal with struct block_symbol from
3042 * python/py-frame.c (frapy_read_var): Likewise.
3043 * python/py-symbol.c (gdbpy_lookup_symbol,
3044 gdbpy_lookup_global_symbol): Likewise.
3045 * skip.c (skip_function_command): Likewise.
3046 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
3047 block_symbol instead of a mere symbol.
3048 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
3049 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3050 * solib.c (solib_global_lookup): Likewise.
3051 * solist.h (solib_global_lookup): Likewise.
3052 (struct target_so_ops): Update lookup_lib_global_symbol to
3053 return a struct block_symbol rather than a mere symbol.
3054 * source.c (select_source_symtab): Deal with struct block_symbol
3055 from lookup functions.
3056 * stack.c (print_frame_args, iterate_over_block_arg_vars):
3058 * symfile.c (set_initial_language): Likewise.
3059 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
3061 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3062 (struct symbol_cache_slot): Turn the FOUND field into a struct
3064 (block_found): Remove.
3065 (eq_symbol_entry): Update to deal with struct block_symbol in
3067 (symbol_cache_lookup): Return a struct block_symbol rather than
3069 (symbol_cache_mark_found): Add a BLOCK parameter to fill
3070 appropriately the cache slots. Update callers.
3071 (symbol_cache_dump): Update cache slots handling to the type
3073 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3074 lookup_symbol_aux, lookup_local_symbol,
3075 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3076 lookup_symbol_in_objfile_symtabs,
3077 lookup_symbol_in_objfile_from_linkage_name,
3078 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3079 lookup_symbol_in_static_block, lookup_static_symbol,
3080 lookup_global_symbol):
3081 Return a struct block_symbol rather than a mere symbol. Deal
3082 with struct block_symbol from other lookup functions. Remove
3083 uses of block_found.
3084 (lookup_symbol_in_block): Remove uses of block_found.
3085 (struct global_sym_lookup_data): Turn the RESULT field into a
3086 struct block_symbol.
3087 (lookup_symbol_global_iterator_cb): Update references to the
3089 (search_symbols): Deal with struct block_symbol from lookup
3091 * symtab.h (struct block_symbol): New structure.
3092 (block_found): Remove.
3093 (lookup_symbol_in_language, lookup_symbol,
3094 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
3095 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3096 lookup_global_symbol_from_objfile): Return a struct block_symbol
3097 rather than just a mere symbol. Update comments to remove
3098 mentions of block_found.
3099 * valops.c (find_function_in_inferior,
3100 value_struct_elt_for_reference, value_maybe_namespace_elt,
3101 value_of_this): Deal with struct block_symbol from lookup
3103 * value.c (value_static_field, value_fn_field): Likewise.
3105 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3110 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3111 Pedro Alves <palves@redhat.com>
3113 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3114 type or value instead of integer.
3115 (aarch64_linux_insert_watchpoint): Likewise.
3116 (aarch64_linux_remove_watchpoint): Likewise.
3117 * ada-lang.c (ada_op_print_tab): Likewise.
3118 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3119 (amd64_linux_syscall_record_common): Likewise.
3120 * arch-utils.c (target_byte_order_user): Likewise.
3121 (default_byte_order): Likewise.
3122 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3123 (arm_linux_get_hwbp_type): Likewise.
3124 (arm_linux_hw_watchpoint_initialize): Likewise.
3125 (arm_linux_insert_watchpoint): Likewise.
3126 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3127 (arm_linux_syscall_record): Likewise.
3128 * breakpoint.c (update_watchpoint): Likewise.
3129 (breakpoint_here_p): Likewise.
3130 (bpstat_print): Likewise.
3131 (enable_breakpoint_disp): Likewise.
3132 * c-lang.c (c_op_print_tab): Likewise.
3133 * cli/cli-decode.c (add_info_alias): Likewise.
3134 * d-lang.c (d_op_print_tab): Likewise.
3135 * eval.c (evaluate_subexp_standard): Likewise.
3136 * f-exp.y (dot_ops): Likewise.
3137 (f77_keywords): Likewise.
3138 * f-lang.c (f_op_print_tab): Likewise.
3139 * go-lang.c (go_op_print_tab): Likewise.
3140 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3141 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3142 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3143 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3144 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3145 (struct scm_from_stringn_data): Likewise.
3146 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3147 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3148 (ia64_linux_remove_watchpoint): Likewise.
3149 (ia64_linux_can_use_hw_breakpoint): Likewise.
3150 * infrun.c (print_stop_event): Likewise.
3151 * jv-lang.c (java_op_print_tab): Likewise.
3152 * linux-nat.c (linux_proc_xfer_partial): Likewise.
3153 * linux-nat.h (struct lwp_info): Likewise.
3154 * linux-thread-db.c (enable_thread_event): Likewise.
3155 * m2-lang.c (m2_op_print_tab): Likewise.
3156 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3157 (mi_cmd_stack_list_variables): Likewise.
3158 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3159 * mi/mi-out.c (mi_table_begin): Likewise.
3160 (mi_table_header): Likewise.
3161 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3162 (mips_linux_insert_watchpoint): Likewise.
3163 (mips_linux_remove_watchpoint): Likewise.
3164 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3165 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3166 (mips_linux_watch_type_to_irw): Likewise.
3167 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3168 (procfs_insert_hw_watchpoint): Likewise.
3169 (procfs_remove_hw_watchpoint): Likewise.
3170 (procfs_hw_watchpoint): Likewise.
3171 (procfs_can_use_hw_breakpoint): Likewise.
3172 (procfs_remove_hw_watchpoint): Likewise.
3173 (procfs_insert_hw_watchpoint): Likewise.
3174 * p-lang.c (pascal_op_print_tab): Likewise.
3175 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3176 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3177 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3178 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3179 (procfs_insert_watchpoint): Likewise.
3180 (procfs_remove_watchpoint): Likewise.
3181 * psymtab.c (recursively_search_psymtabs): Likewise.
3182 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3183 (m32r_insert_watchpoint): Likewise.
3184 * remote-mips.c (mips_can_use_watchpoint): Likewise.
3185 (mips_insert_watchpoint): Likewise.
3186 (mips_remove_watchpoint): Likewise.
3187 * remote.c (watchpoint_to_Z_packet): Likewise.
3188 (remote_insert_watchpoint): Likewise.
3189 (remote_remove_watchpoint): Likewise.
3190 (remote_check_watch_resources): Likewise.
3191 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3192 (s390_remove_watchpoint): Likewise.
3193 (s390_can_use_hw_breakpoint): Likewise.
3194 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3195 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3196 * target.h (struct target_ops): Likewise.
3197 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3198 * ui-out.c (struct ui_out_hdr): Likewise.
3199 (append_header_to_list): Likewise.
3200 (get_next_header): Likewise.
3201 (verify_field): Likewise.
3202 (ui_out_begin): Likewise.
3203 (ui_out_field_int): Likewise.
3204 (ui_out_field_fmt_int): Likewise.
3205 (ui_out_field_skip): Likewise.
3206 (ui_out_field_string): Likewise.
3207 (ui_out_field_fmt): Likewise.
3208 * varobj.c (new_variable): Likewise.
3209 * x86-nat.c (x86_insert_watchpoint): Likewise.
3210 (x86_remove_watchpoint): Likewise.
3211 (x86_can_use_hw_breakpoint): Likewise.
3212 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3213 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3214 previously anonymous enumeration type..
3215 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3217 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3218 (target_debug_print_enum_bptype): New.
3219 * target-delegates.c: Regenerate.
3221 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3223 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3224 already says and disallow non-stack memory writes in the prologue.
3226 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3228 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3229 reflect how current GCC emits stack overflow checks. Match
3230 both trap and break instructions for backward compatbility.
3231 Disallow other trap and break instructions in the prologue.
3233 2015-07-30 Pedro Alves <palves@redhat.com>
3236 * linux-nat.c (wait_lwp): Report to the core when thread group
3239 2015-07-30 Pedro Alves <palves@redhat.com>
3240 Simon Marchi <simon.marchi@ericsson.com>
3243 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3244 mark the new thread as resumed. Remove STOPPING parameter.
3245 (wait_lwp): Adjust call to linux_handle_extended_wait.
3246 (linux_nat_filter_event): Adjust call to
3247 linux_handle_extended_wait.
3248 (resume_stopped_resumed_lwps): Add debug output.
3250 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3252 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3254 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3255 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3256 gdbarch_fast_tracepoint_valid_at.
3257 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3258 * gdbarch.h: Regenerate.
3259 * gdbarch.c: Regenerate.
3260 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3261 argument. Do not set it.
3262 * remote.c (remote_download_tracepoint): Adjust call to
3263 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3264 the instruction length.
3266 2015-07-30 Yao Qi <yao.qi@linaro.org>
3268 * arm-tdep.h (enum gdb_regnum): Move it to ...
3269 * arch/arm.h: ... here. New file.
3270 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3272 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3274 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3275 Change its type to int *.
3276 (decode_br): Rename link argument to is_blr. Change its type to
3278 (decode_cb): Rename op argument to is_cbnz. Change its type to
3280 (decode_tb): Rename op argument to is_tbnz. Change its type to
3281 int *. Set is_tbnz to either 1 or 0.
3282 (aarch64_analyze_prologue): Change type of is_link to int. Add
3283 new variables is_cbnz and is_tbnz. Adjust call to
3284 aarch64_decode_cb and aarch64_decode_tb.
3286 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3288 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3290 (mips_linux_new_thread): Likewise.
3291 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3293 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3295 * top.c: Include "tui/tui.h".
3296 (undo_terminal_modifications_before_exit): New static function.
3297 (quit_force): Use it.
3299 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3301 * target.c (terminal_state): Initialize to terminal_is_ours.
3303 2015-07-29 Yao Qi <yao.qi@linaro.org>
3306 * dcache.c (dcache_read_memory_partial): Call
3307 raw_memory_xfer_partial.
3308 * target.c (raw_memory_xfer_partial): Make it non-static.
3309 * target.h (raw_memory_xfer_partial): Declare.
3311 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3313 * c-valprint.c (c_val_print_array): Consider addressable memory
3315 (c_val_print_ptr): Likewise.
3316 (c_val_print_int): Likewise.
3317 * findvar.c (read_frame_register_value): Likewise.
3318 * valarith.c (find_size_for_pointer_math): Likewise.
3319 (value_ptrdiff): Likewise.
3320 (value_subscripted_rvalue): Likewise.
3321 * valops.c (read_value_memory): Likewise (and rename variables).
3322 (value_assign): Likewise.
3323 (value_repeat): Likewise.
3324 (value_array): Likewise.
3325 (value_slice): Likewise.
3326 * valprint.c (generic_val_print_ptr): Likewise.
3327 (generic_val_print_enum): Likewise.
3328 (generic_val_print_bool): Likewise.
3329 (generic_val_print_int): Likewise.
3330 (generic_val_print_char): Likewise.
3331 (generic_val_print_float): Likewise.
3332 (generic_val_print_decfloat): Likewise.
3333 (generic_val_print_complex): Likewise.
3334 (val_print_scalar_formatted): Likewise.
3335 (val_print_array_elements): Likewise.
3336 * value.c (set_value_parent): Likewise.
3337 (value_contents_copy_raw): Likewise.
3338 (set_internalvar_component): Likewise.
3339 (value_primitive_field): Likewise.
3340 (value_fetch_lazy): Likewise.
3341 * value.h (read_value_memory): Update comment.
3343 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3345 * value.c (get_value_arch): New function.
3346 * value.h (get_value_arch): New declaration.
3348 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3350 * value.c (struct value): Update comments.
3352 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3354 * gdbtypes.c (type_length_units): New function.
3355 * gdbtypes.h (type_length_units): New declaration.
3356 (struct type) <length>: Update comment.
3358 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3360 * valprint.c (generic_val_print): Factor out complex
3361 printing code to ...
3362 (generic_val_print_complex): ... this new function.
3364 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3366 * valprint.c (generic_val_print): Factor out decfloat
3367 printing code to ...
3368 (generic_val_print_decfloat): ... this new function.
3370 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3372 * valprint.c (generic_val_print): Factor out float
3373 printing code to ...
3374 (generic_val_print_float): ... this new function.
3376 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3378 * valprint.c (generic_val_print): Factor out char
3379 printing code to ...
3380 (generic_val_print_char): ... this new function.
3382 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3384 * valprint.c (generic_val_print): Factor out integer
3385 printing code to ...
3386 (generic_val_print_int): ... this new function.
3388 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3390 * valprint.c (generic_val_print): Factor out bool
3391 printing code to ...
3392 (generic_val_print_bool): ... this new function.
3394 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3396 * valprint.c (generic_val_print): Factor out function/method
3397 printing code to ...
3398 (generic_val_print_func): ... this new function.
3400 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3402 * valprint.c (generic_val_print): Factor out flags
3403 printing code to ...
3404 (generic_val_print_flags): ... this new function.
3406 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3408 * valprint.c (generic_val_print): Factor out enum
3409 printing code to ...
3410 (generic_val_print_enum): ... this new function.
3412 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3414 * valprint.c (generic_val_print): Factor out reference
3415 printing code to ...
3416 (generic_val_print_ref): ... this new function.
3418 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3420 * valprint.c (generic_val_print): Factor out memberptr
3421 printing code to ...
3422 (generic_val_print_memberptr): ... this new function.
3424 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3426 * valprint.c (generic_val_print): Factor out pointer
3427 printing code to ...
3428 (generic_val_print_ptr): ... this new function.
3430 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3432 * valprint.c (generic_val_print): Factor out array
3433 printing code to ...
3434 (generic_val_print_array): ... this new function.
3436 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3438 * valprint.c (generic_val_print): Factor out
3439 print_unpacked_pointer code to ...
3440 (print_unpacked_pointer): ... this new function.
3442 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3444 * event-top.c (handle_sigterm): Don't inspect
3445 target_can_async_p. Always set the quit flag and always mark
3446 the async signal handler.
3448 2015-07-27 Yao Qi <yao.qi@linaro.org>
3450 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3452 2015-07-25 Kevin Buettner <kevinb@redhat.com>
3454 * remote.c (read_ptid): Return null_ptid when no thread id
3456 (remote_current_thread): Add log warning for malformed
3458 (remote_start_remote): Add log warning when current thread
3461 2015-07-24 Pedro Alves <palves@redhat.com>
3463 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3464 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3465 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3467 2015-07-24 Pedro Alves <palves@redhat.com>
3470 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3471 is resumed, and extend the debug log.
3473 2015-07-24 Pedro Alves <palves@redhat.com>
3475 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3477 2015-07-24 Pedro Alves <palves@redhat.com>
3479 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3481 * alpha-linux-nat.c: Likewise.
3482 * amd64-linux-nat.c: Likewise.
3483 * arm-linux-nat.c: Likewise.
3484 * hppa-linux-nat.c: Likewise.
3485 * i386-linux-nat.c: Likewise.
3486 * ia64-linux-nat.c: Likewise.
3487 * linux-fork.c: Likewise.
3488 * linux-nat.c: Likewise.
3489 * m32r-linux-nat.c: Likewise.
3490 * m68klinux-nat.c: Likewise.
3491 * mips-linux-nat.c: Likewise.
3492 * nat/linux-btrace.c: Likewise.
3493 * nat/linux-ptrace.c: Likewise.
3494 * nat/linux-ptrace.h
3495 * nat/mips-linux-watch.c: Likewise.
3496 * nat/x86-linux-dregs.c: Likewise.
3497 * ppc-linux-nat.c: Likewise.
3498 * s390-linux-nat.c: Likewise.
3499 * spu-linux-nat.c: Likewise.
3500 * tilegx-linux-nat.c: Likewise.
3501 * x86-linux-nat.c: Likewise.
3502 * xtensa-linux-nat.c: Likewise.
3504 2015-07-24 Pedro Alves <palves@redhat.com>
3506 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3507 __ptrace_request as first parameter type instead of int.
3508 (PTRACE_TYPE_ARG1): Define.
3509 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3510 that casts first argument to PTRACE_TYPE_ARG1.
3511 * config.in: Regenerate.
3512 * configure: Regenerate.
3514 2015-07-24 Pedro Alves <palves@redhat.com>
3516 * gdb_ptrace.h: Move ...
3517 * nat/gdb_ptrace.h: ... here.
3518 * inf-ptrace.c: Adjust.
3520 2015-07-24 Pedro Alves <palves@redhat.com>
3522 * acinclude.m4: Include ptrace.m4.
3523 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3524 * ptrace.m4: ... to this new file.
3526 2015-07-23 Doug Evans <dje@google.com>
3528 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3529 (load_cu): Handle dummy CUs.
3530 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3531 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3533 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3535 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3536 documentation to say that it returns a list rather than
3538 (linetable_object_methods): Update the docstring of the
3539 "source_line" entry.
3541 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3543 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3544 type to the recursive call instead of the original (maybe
3545 TYPE_CODE_TYPEDEF) type.
3547 2015-07-23 Yao Qi <yao.qi@linaro.org>
3549 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3550 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3551 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3553 2015-07-21 Yao Qi <yao.qi@linaro.org>
3555 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3556 Move it to nat/aarch64-linux-hw-point.c.
3557 (aarch64_linux_child_post_startup_inferior): Update.
3558 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3560 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3563 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3565 * common/btrace-common.c (btrace_data_append): Change case label.
3567 2015-07-20 Yao Qi <yao.qi@linaro.org>
3569 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3571 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3572 "unsigned long long".
3574 2015-07-18 Kevin Buettner <kevinb@redhat.com>
3576 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3577 to be set for SEC_ALLOC sections too.
3579 2015-07-17 Yao Qi <yao.qi@linaro.org>
3581 * Makefile.in (HFILES_NO_SRCDIR): Add
3582 nat/aarch64-linux-hw-point.h.
3583 (aarch64-linux-hw-point.o): New rule.
3584 * nat/aarch64-linux-hw-point.h: New file.
3585 * nat/aarch64-linux-hw-point.c: New file.
3586 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3587 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3588 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3589 (AARCH64_HWP_ALIGNMENT): Likewise.
3590 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3591 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3592 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3593 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3594 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3595 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3596 (struct aarch64_debug_reg_state): Likewise.
3597 (struct arch_lwp_info): Likewise.
3598 (aarch64_linux_set_debug_regs): Likewise.
3599 (aarch64_notify_debug_reg_change): Remove static.
3600 (aarch64_align_watchpoint): Likewise.
3601 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3602 (aarch64_watchpoint_length): Likewise.
3603 (aarch64_point_encode_ctrl_reg): Likewise
3604 (aarch64_point_is_aligned): Likewise.
3605 (aarch64_dr_state_insert_one_point): Likewise.
3606 (aarch64_dr_state_remove_one_point): Likewise.
3607 (aarch64_handle_breakpoint): Likewise.
3608 (aarch64_handle_aligned_watchpoint): Likewise.
3609 (aarch64_handle_unaligned_watchpoint): Likewise.
3610 (aarch64_handle_watchpoint): Likewise.
3611 * config/aarch64/linux.mh (NAT_FILE): Add
3612 aarch64-linux-hw-point.o.
3614 2015-07-17 Yao Qi <yao.qi@linaro.org>
3616 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3617 state and don't call aarch64_get_debug_reg_state. All callers
3619 (aarch64_linux_insert_hw_breakpoint): Call
3620 aarch64_get_debug_reg_state earlier.
3621 (aarch64_linux_remove_hw_breakpoint): Likewise.
3622 (aarch64_handle_aligned_watchpoint): Add argument state and
3623 don't call aarch64_get_debug_reg_state. All callers update.
3624 (aarch64_handle_unaligned_watchpoint): Likewise.
3625 (aarch64_handle_watchpoint): Add argument state.
3626 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3628 (aarch64_linux_remove_watchpoint): Likewise.
3630 2015-07-17 Yao Qi <yao.qi@linaro.org>
3632 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3634 (aarch64_handle_unaligned_watchpoint): Likewise.
3636 2015-07-17 Yao Qi <yao.qi@linaro.org>
3638 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3639 argument type's type to 'enum target_hw_bp_type'.
3640 (aarch64_dr_state_remove_one_point): Likewise.
3641 (aarch64_handle_breakpoint): Likewise.
3642 (aarch64_linux_insert_hw_breakpoint): Likewise.
3643 (aarch64_linux_remove_hw_breakpoint): Likewise.
3644 (aarch64_handle_aligned_watchpoint): Likewise.
3646 2015-07-17 Yao Qi <yao.qi@linaro.org>
3648 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3649 ptid_get_pid instead of get_thread_id.
3651 2015-07-17 Yao Qi <yao.qi@linaro.org>
3653 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3654 (add_current_inferior_and_thread): Don't initialise ptid.
3656 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3658 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3659 unavailable if invalid.
3661 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3663 Revert the previous 6 commits:
3664 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3665 Move gdb_regex* to common/
3666 Prepare linux_find_memory_regions_full & co. for move
3667 Move linux_find_memory_regions_full & co.
3668 gdbserver build-id attribute generator
3669 Validate symbol file using build-id
3671 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3672 Jan Kratochvil <jan.kratochvil@redhat.com>
3674 Validate symbol file using build-id.
3675 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3676 and 'show validate-build-id'. Add build-id attribute.
3677 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3678 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3679 * solib-frv.c (_initialize_frv_solib): Ditto.
3680 * solib-spu.c (set_spu_solib_ops): Ditto.
3681 * solib-svr4.c: Include rsp-low.h.
3682 (NOTE_GNU_BUILD_ID_NAME): New define.
3683 (svr4_validate): New function.
3684 (svr4_copy_library_list): Duplicate field build_id.
3685 (library_list_start_library): Parse 'build-id' attribute.
3686 (svr4_library_attributes): Add 'build-id' attribute.
3687 (_initialize_svr4_solib): Assign validate value.
3688 * solib-target.c (solib.h): Include.
3689 (_initialize_solib_target): Assign validate value.
3690 * solib.c (validate_build_id, show_validate_build_id): New.
3691 (solib_map_sections): Use ops->validate.
3692 (clear_so): Free build_id.
3693 (default_solib_validate): New function.
3694 (_initialize_solib): Add "validate-build-id".
3695 * solib.h (default_solib_validate): New declaration.
3696 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3697 (target_so_ops): New field 'validate'.
3699 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3700 Jan Kratochvil <jan.kratochvil@redhat.com>
3702 gdbserver build-id attribute generator.
3703 * features/library-list-svr4.dtd (library-list-svr4): New
3704 'build-id' attribute.
3706 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3707 Jan Kratochvil <jan.kratochvil@redhat.com>
3709 Move linux_find_memory_regions_full & co.
3710 * linux-tdep.c (nat/linux-maps.h): Include.
3711 (gdb_regex.h): Remove the include.
3712 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3713 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3714 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3715 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3716 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3717 and target/target.h.
3718 (struct smaps_vmflags, read_mapping, decode_vmflags)
3719 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3720 (linux_find_memory_regions_full): Move from linux-tdep.c.
3721 * nat/linux-maps.h (read_mapping): New declaration.
3722 (linux_find_memory_region_ftype, enum filterflags): Moved from
3724 (linux_find_memory_regions_full): New declaration.
3725 * target.c (target/target-utils.h): Include.
3726 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3727 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3728 definitions to target/target-utils.c.
3729 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3730 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3732 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3733 (read_alloc): New declaration.
3734 (read_stralloc_func_ftype): New typedef.
3735 (read_stralloc): New declaration.
3736 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3738 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3739 Jan Kratochvil <jan.kratochvil@redhat.com>
3741 Prepare linux_find_memory_regions_full & co. for move.
3742 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3743 (linux_find_memory_regions_full): Change signature and prepare
3744 for moving to linux-maps.
3745 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3746 (linux_find_memory_regions_thunk): New.
3747 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3748 (linux_find_memory_regions_gdb): New.
3749 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3750 (linux_make_mappings_corefile_notes): Use
3751 linux_find_memory_regions_gdb.
3752 * target.c (read_alloc_pread_ftype): New typedef.
3753 (target_fileio_read_alloc_1_pread): New function.
3754 (read_alloc): Refactor from target_fileio_read_alloc_1.
3755 (read_stralloc_func_ftype): New typedef.
3756 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3757 (read_stralloc): Refactored from target_fileio_read_stralloc.
3758 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3760 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3762 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3764 (COMMON_OBS): Add gdb_regex.o.
3766 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3767 --without-included-regex and USE_INCLUDED_REGEX.
3768 * common/gdb_regex.c: New file from utils.c functions.
3769 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3770 file wrapping define name.
3771 * configure: Rebuilt.
3772 * configure.ac (gdb_use_included_regex, --without-included-regex)
3773 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3774 * gdb_regex.h: Move it to common/gdb_regex.h.
3775 * utils.c: Remove include gdb_regex.h.
3776 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3777 (compile_rx_or_error): Move them to common/gdb_regex.c.
3779 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3780 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3783 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3784 common/target-utils.h.
3785 (COMMON_OBS): Add target-utils.o.
3786 (linux-maps.o, target-utils.o): New.
3787 * target/target-utils.c: New file.
3788 * target/target-utils.h: New file.
3789 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3790 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3791 * nat/linux-maps.c: New file.
3792 * nat/linux-maps.h: New file.
3794 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3795 Pedro Alves <palves@redhat.com>
3797 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3798 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3799 (perf_event_read_bts): Change the type of SIZE and READ.
3800 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3801 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3802 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3804 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3805 buffer size to UINT_MAX.
3806 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3808 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3809 <last_head>: Change type.
3810 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3811 * common/btrace-common.c (btrace_data_append): Change the type of
3813 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3816 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3818 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3819 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3821 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3822 (ada_array_length): Likewise.
3823 (find_parallel_type_by_descriptive_type): Likewise.
3824 (ada_check_typedef): Likewise.
3825 * arm-tdep.c (arm_return_in_memory): Likewise.
3826 * ax-gdb.c (gen_trace_static_fields): Likewise.
3827 (gen_struct_ref_recursive): Likewise.
3828 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3829 (variable: block COLONCOLON name): Likewise.
3830 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3831 * c-lang.c (classify_type): Likewise.
3832 * c-typeprint.c (c_print_type): Likewise.
3833 (c_print_typedef): Likewise.
3834 (c_type_print_base): Likewise.
3835 * c-valprint.c (c_val_print): Likewise.
3836 * compile/compile-c-types.c (convert_type): Likewise.
3837 * compile/compile-object-load.c (get_out_value_type): Likewise.
3838 * completer.c (add_struct_fields): Likewise.
3839 (expression_completer): Likewise.
3840 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3841 (cp_lookup_nested_symbol_1): Likewise.
3842 (cp_lookup_nested_symbol): Likewise.
3843 * cp-valprint.c (cp_print_value_fields): Likewise.
3844 (cp_print_static_field): Likewise.
3845 * d-valprint.c (d_val_print): Likewise.
3846 * eval.c (evaluate_subexp_standard): Likewise.
3847 (evaluate_subexp_for_sizeof): Likewise.
3848 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3849 * f-typeprint.c (f_type_print_base): Likewise.
3850 * f-valprint.c (f_val_print): Likewise.
3851 * gdbtypes.c (get_discrete_bounds): Likewise.
3852 (create_array_type_with_stride): Likewise.
3853 (type_name_no_tag_or_error): Likewise.
3854 (lookup_struct_elt_type): Likewise.
3855 (get_unsigned_type_max): Likewise.
3856 (internal_type_vptr_fieldno): Likewise.
3857 (set_type_vptr_fieldno): Likewise.
3858 (internal_type_vptr_basetype): Likewise.
3859 (set_type_vptr_basetype): Likewise.
3860 (get_vptr_fieldno): Likewise.
3861 (is_integral_type): Likewise.
3862 (is_scalar_type): Likewise.
3863 (is_scalar_type_recursive): Likewise.
3864 (distance_to_ancestor): Likewise.
3865 (is_unique_ancestor_worker): Likewise.
3866 (check_types_equal): Likewise.
3867 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3869 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3871 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3872 also test for language_d.
3873 (dwarf2_compute_name): Likewise.
3874 (read_func_scope): Likewise.
3875 (read_structure_type): Likewise.
3876 (new_symbol_full): Likewise.
3877 (determine_prefix): Likewise.
3878 (read_import_statement): Use dot as the separator for language_d.
3879 (typename_concat): Likewise, but don't prefix the D main function.
3881 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3883 * nat/linux-namespaces.c (setns): Rename from this ...
3884 (do_setns): ... to this. Support calling setns if it exists.
3885 (mnsh_handle_setns): Call do_setns.
3887 2015-07-13 Yao Qi <yao.qi@linaro.org>
3889 * exec.c (exec_file_attach): Add period at the end of error
3892 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3894 * tui/tui-win.c (window_name_completer): New function.
3895 (focus_completer): Call window_name_completer. All old content
3896 moved into window_name_completer.
3897 (winheight_completer): New function.
3898 (_initialize_tui_win): Rename variable. Add completer to
3899 winheight command. Update doc string on winheight.
3901 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3903 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3904 all nios2 mach variants.
3906 2015-07-10 Kevin Buettner <kevinb@redhat.com>
3908 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3909 of target_read_memory.
3911 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3913 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3915 (parse_scrolling_args): Likewise.
3917 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3919 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3920 names in this function.
3922 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3924 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3925 (CMD_NAME): Likewise.
3926 (DATA_NAME): Likewise.
3927 (DISASSEM_NAME): Likewise.
3928 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3929 (tui_set_win_height): Likewise.
3930 (parse_scrolling_args): Likewise.
3932 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3934 * record-btrace.c (record_btrace_goto_begin)
3935 (record_btrace_goto_end, record_btrace_goto): Move call to
3936 print_stack_frame ...
3937 (record_btrace_set_replay): ... here. Set stop_pc.
3938 * record-full.c (record_full_goto_entry): Set stop_pc.
3940 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3942 * NEWS: Mention support for tracepoints on aarch64-linux.
3944 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3946 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3948 (the_low_target): Install it.
3950 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3952 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3953 * gdb.trace/collection.exp: Likewise.
3954 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3955 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3956 * gdb.trace/report.exp: Likewise.
3957 * gdb.trace/trace-break.exp: Likewise.
3958 * gdb.trace/unavailable.exp: Likewise.
3959 * gdb.trace/while-dyn.exp: Likewise.
3961 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3963 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3964 (aarch64_gen_return_address): New function.
3965 (aarch64_gdbarch_init): Hook it.
3967 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3969 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3970 swallow NOT_AVAILABLE_ERROR.
3971 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3972 available_p is not set.
3973 (aarch64_stub_frame_unwind_stop_reason): New function.
3974 (aarch64_stub_unwind): Install it.
3976 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3978 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3980 (aarch64_make_prologue_cache_1): New function, factored out from
3981 aarch64_make_prologue_cache. Do not allocate cache. Set
3983 (aarch64_make_prologue_cache): Reimplement wrapping
3984 aarch64_make_prologue_cache_1, and swallowing
3985 NOT_AVAILABLE_ERROR.
3986 (aarch64_prologue_frame_unwind_stop_reason): New function.
3987 Return UNWIND_UNAVAILABLE if available_p is not set.
3988 (aarch64_prologue_unwind): Install it.
3989 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3990 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3991 frame_id_build_unavailable_stack if available_p is not set.
3993 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3995 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3997 (aarch64_scan_prologue): Set prev_pc.
3998 (aarch64_make_prologue_cache): Set func.
3999 (aarch64_make_stub_cache): Set prev_pc.
4000 (aarch64_prologue_this_id): Remove local variables id, pc and
4001 func. Read prev_pc and func from cache.
4002 (aarch64_stub_this_id): Read prev_pc from cache.
4004 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4006 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
4007 argument this_cache. Remove unused local variables reg and
4008 unwound_fp. Return early if this_cache is already set. Set
4010 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
4012 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4014 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
4015 New argument this_cache. Return early if this_cache is already
4016 set. Set this_cache.
4017 (aarch64_prologue_this_id): Update call to
4018 aarch64_make_prologue_cache.
4019 (aarch64_prologue_prev_register): Likewise.
4020 (aarch64_normal_frame_base): Likewise.
4022 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4024 * c-valprint.c (c_val_print): Factor out memberptr printing code
4025 from c_val_print to ...
4026 (c_val_print_memberptr): ... this new function.
4028 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4030 * c-valprint.c (c_val_print): Factor out int printing code to ...
4031 (c_val_print_int): ... this new function.
4033 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4035 * c-valprint.c (c_val_print): Factor out struct and union
4036 printing code to ...
4037 (c_val_print_struct): ... this new function ...
4038 (c_val_print_union): ... and this new function.
4040 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4042 * c-valprint.c (c_val_print): Factor out pointer printing code
4044 (c_val_print_ptr): ... this new function.
4046 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4048 * c-valprint.c (c_valprint): Factor our array printing code from
4050 (c_val_print_array): ... this new function.
4052 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4054 * c-valprint.c (c_val_print): Factor out pointer printing code
4056 (print_unpacked_pointer): ... this new function.
4058 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4060 * c-valprint.c (c_val_print): Remove an assignment to i and move
4063 2015-07-09 Yao Qi <yao.qi@linaro.org>
4065 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4066 argument ptid. Update comments. Caller update.
4068 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4070 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4073 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4075 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4077 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4079 * progspace.c (delete_program_space): Add missing spaces.
4081 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4083 * inferior.c (delete_inferior_1): Rename to ...
4084 (delete_inferior): ..., remove 'silent' parameter, delete
4085 program space when unused and remove call to prune_program_spaces.
4086 Remove the old, unused, delete_inferior.
4087 (delete_inferior_silent): Remove.
4088 (prune_inferiors): Change call from delete_inferior_1 to
4089 delete_inferior and remove 'silent' parameter. Remove call to
4090 prune_program_spaces.
4091 (remove_inferior_command): Idem.
4092 * inferior.h (delete_inferior_1): Rename to...
4093 (delete_inferior): ..., remove 'silent' parameter and remove the
4094 original delete_inferior.
4095 (delete_inferior_silent): Remove.
4096 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4097 delete_inferior_1 to delete_inferior and remove 'silent'
4099 * progspace.c (prune_program_spaces): Remove.
4100 (pspace_empty_p): Rename to...
4101 (program_space_empty_p): ... and make non-static.
4102 (delete_program_space): New.
4103 * progspace.h (prune_program_spaces): Remove declaration.
4104 (program_space_empty_p): New declaration.
4105 (delete_program_space): New declaration.
4106 * monitor.c (monitor_close): Replace call to
4107 delete_thread_silent and delete_inferior_silent with
4108 discard_all_inferiors.
4110 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
4112 * defs.h (deprecated_register_changed_hook): Remove prototype.
4113 * interps.c (clear_iterpreter_hooks): Remove reference to
4114 deprecated_register_changed_hook.
4115 * top.c (deprecated_register_changed_hook): Remove prototype.
4116 * valops.c (value_assign): Remove reference to
4117 deprecated_register_changed_hook.
4118 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4119 Add comment documenting the function.
4120 (tui_register_changed_observer): Define.
4121 (tui_install_hooks): Remove reference to
4122 deprecated_register_changed_hook. Set
4123 tui_register_changed_observer.
4124 (tui_remove_hooks): Remove reference to
4125 deprecated_register_changed_hook. Unset
4126 tui_register_changed_observer.
4128 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4131 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4133 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
4136 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4138 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4140 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4142 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4144 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4145 Use safe_strerror() instead of strerror().
4147 2015-07-07 Yao Qi <yao.qi@linaro.org>
4149 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4150 * features/arm-with-m-fpa-layout.c: Regenerated.
4151 * features/arm-with-m-vfp-d16.xml: Likewise.
4152 * features/arm-with-m-vfp-d16.c: Regenerated.
4153 * features/arm-with-m.xml: Likewise.
4154 * features/arm-with-m.c: Regenerated.
4155 * features/arm-with-neon.xml: Likewise.
4156 * features/arm-with-neon.c: Regenerated.
4157 * features/arm-with-vfpv2.xml: Likewise.
4158 * features/arm-with-vfpv2.c: Regenerated.
4159 * features/arm-with-vfpv3.xml: Likewise.
4160 * features/arm-with-vfpv3.c: Regenerated.
4162 2015-07-07 Yao Qi <yao.qi@linaro.org>
4164 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4166 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4168 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4169 if target is 32-bit.
4170 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4171 if target is 32-bit.
4172 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4173 if target is 32-bit.
4174 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4175 if target is 32-bit.
4176 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4177 (aarch64_linux_read_description): Return the right target
4179 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4180 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4181 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4184 2015-07-07 Yao Qi <yao.qi@linaro.org>
4186 * aarch32-linux-nat.c: New file.
4187 * aarch32-linux-nat.h: New file.
4188 * arm-linux-nat.c: Include aarch32-linux-nat.h.
4189 (fetch_regs): Move code to aarch32-linux-nat.c. Call
4190 aarch32_gp_regcache_supply.
4191 (store_regs): Move code to aarch32-linux-nat.c. Call
4192 aarch32_gp_regcache_collect.
4193 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
4194 aarch32_vfp_regcache_supply.
4195 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
4196 aarch32_vfp_regcache_collect.
4197 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4199 2015-07-07 Yao Qi <yao.qi@linaro.org>
4201 * arm-linux-nat.c (store_fpregister): Remove.
4202 (store_register): Likewise.
4203 (fetch_fpregister): Likewise.
4204 (fetch_register): Likewise.
4205 (arm_linux_store_inferior_registers): Call store_regs and
4206 store_fpregs instead.
4207 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4210 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4212 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4215 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4217 * NEWS: Create a new section for the next release branch.
4218 Rename the section of the current branch, now that it has
4221 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4223 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4224 * version.in: Bump version to 7.10.50.DATE-cvs.
4226 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
4228 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4229 breakpoints in a special way.
4230 (remove_breakpoint): Likewise.
4231 (mark_breakpoints_out): Likewise.
4233 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * doc/gdb.texinfo (TUI): Add comma after @xref.
4237 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4239 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4240 instead of casting the structure type.
4242 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4244 * valops.c (search_struct_field): Remove OFFSET parameter.
4245 (value_cast_structs): Adjust calls to search_struct_field.
4246 (value_struct_elt): Same.
4247 (find_overload_match): Same.
4249 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4251 * value.c (value_fetch_lazy): Update comment, change return
4253 * value.h (value_fetch_lazy): Change return value to void.
4255 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4257 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4258 (tui_win_name): Make parameter and result const.
4259 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4261 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4263 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4264 use printf_unfiltered.
4265 (set_mpx_cmd): Add missing trailing space to command string
4267 (_initialize_i386_tdep): Give the "mpx" prefix command its
4270 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4272 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4273 (enum rx_frame_type): New.
4274 (struct rx_prologue): Add new field `frame_type'.
4275 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4276 parameter in the prologue struct. Add code for recording
4277 locations of PC and PSW for fast interrupt and exception frames.
4278 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4279 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4280 (rx_frame_type): New function.
4281 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4282 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4284 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
4285 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
4286 RX_FRAME_TYPE_FAST_INTERRUPT.
4287 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4288 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4289 (rx_frame_unwind): Use rx_frame_sniffer instead of
4290 default_frame_sniffer.
4291 (rx_frame_unwind): New unwinder.
4292 (rx_gdbarch_init): Register new unwinder.
4294 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4296 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4297 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4298 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4300 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4302 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4304 Fix GCC false warning.
4305 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4307 2015-07-02 Yao Qi <yao.qi@linaro.org>
4309 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4310 typo in the debugging message.
4312 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4314 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4315 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4316 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4317 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4318 (btrace_maint_clear): New.
4319 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4320 (pt_print_packet, btrace_maint_decode_pt)
4321 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4322 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4323 (maint_btrace_packet_history_cmd)
4324 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4325 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4326 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4327 (maint_info_btrace_cmd, _initialize_btrace): New.
4328 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4329 (btrace_maint_packet_history, btrace_maint_info): New.
4330 (btrace_thread_info) <maint>: New.
4331 * NEWS: Announce it.
4333 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4335 * btrace.c (btrace_fetch): Append the new trace data.
4336 (btrace_clear): Clear the stored trace data.
4337 * btrace.h (btrace_thread_info) <data>: New.
4338 * common/btrace-common.h (btrace_data_clear)
4339 (btrace_data_append): New.
4340 * common/btrace-common.c (btrace_data_clear)
4341 (btrace_data_append): New.
4343 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4345 * nat/linux-btrace.c (linux_enable_bts): Check for
4346 PERF_ATTR_SIZE_VER5.
4347 Check for data_offset and data_size fields. Use them.
4349 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4351 * NEWS: Announce new commands "record btrace pt" and "record pt".
4352 Announce new options "set|show record btrace pt buffer-size".
4353 * btrace.c: Include "rsp-low.h".
4354 Include "inttypes.h".
4355 (btrace_add_pc): Add forward declaration.
4356 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4357 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4358 (btrace_compute_ftrace_pt): New.
4359 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4360 (check_xml_btrace_version): Update version check.
4361 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4362 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4363 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4364 (btrace_pt_children): New.
4365 (btrace_children): Add support for "pt".
4366 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4367 (btrace_conf_children): Add support for "pt".
4368 * btrace.h: Include "intel-pt.h".
4369 (btrace_pt_error): New.
4370 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4371 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4372 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4373 (struct btrace_config_pt): New.
4374 (struct btrace_config)<pt>: New.
4375 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4376 (struct btrace_data)<pt>: New.
4377 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4379 * features/btrace.dtd (btrace)<pt>: New.
4380 (pt, pt-config, cpu): New.
4381 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4382 (perf_event_pt_event_type, kernel_supports_pt)
4383 (linux_supports_pt): New.
4384 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4385 (linux_enable_bts): Free tinfo on error.
4386 (linux_enable_pt): New.
4387 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4388 (linux_disable_pt): New.
4389 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4390 (linux_fill_btrace_pt_config, linux_read_pt): New.
4391 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4392 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4393 (struct btrace_target_info)<pt>: New.
4394 * record-btrace.c (set_record_btrace_pt_cmdlist)
4395 (show_record_btrace_pt_cmdlist): New.
4396 (record_btrace_print_pt_conf): New.
4397 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4398 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4399 (cmd_record_btrace_pt_start): New.
4400 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4401 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4402 (_initialize_record_btrace): Add new commands.
4403 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4404 (remote_protocol_features): Add "Qbtrace:pt".
4405 Add "Qbtrace-conf:pt:size".
4406 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4407 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4408 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4409 (_initialize_remote): Add new commands.
4411 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4413 * configure.ac: check for libipt
4414 * configure: Regenerate.
4415 * config.in: Regenerate.
4416 * Makefile.in (LIBIPT): New.
4417 (CLIBS): Add $LIBIPT.
4418 * NEWS: document new configure options
4420 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4422 * compile/compile-object-load.c (compile_object_load): Replace debug
4423 message "lookup undefined ELF symbol" by 3 more specific messages.
4425 2015-07-01 Kevin Buettner <kevinb@redhat.com>
4427 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4428 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4429 (rl78_gdbarch_init): Initialize rl78_psw_type.
4431 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4433 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4434 Update commentary. Always refresh the registers when frame
4435 information has changed.
4436 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4437 Change return type to int. Return 1 if frame information has
4438 changed, 0 otherwise.
4439 (tui_before_prompt): Update commentary.
4440 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4443 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4446 * frame.c (select_frame): Remove reference to
4447 deprecated_selected_frame_level_changed_hook.
4448 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4450 * stack.c (deprecated_selected_frame_level_changed_hook):
4452 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4454 (tui_refresh_frame_and_register_information): ... this. Bail
4455 out if there is no stack. Don't update register information
4456 unless registers_too_p is true.
4457 (tui_print_frame_info_listing_hook): Rename to ...
4458 (tui_dummy_print_frame_info_listing_hook): ... this.
4459 (tui_before_prompt): New function.
4460 (tui_normal_stop): New function.
4461 (tui_before_prompt_observer): New observer.
4462 (tui_normal_stop_observer): New observer.
4463 (tui_install_hooks): Set
4464 deprecated_print_frame_info_listing_hook to
4465 tui_dummy_print_frame_info_listing_hook. Register
4466 tui_before_prompt_observer to call tui_before_prompt and
4467 tui_normal_stop_observer to call tui_normal_stop. Remove
4468 reference to deprecated_selected_frame_level_changed_hook.
4469 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4470 and tui_normal_stop_observer. Remove reference to
4471 deprecated_selected_frame_level_changed_hook.
4473 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4476 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4477 return an int instead of void. Return whether the locator
4479 (tui_show_frame_info): If the locator info has not changed, then
4480 bail out early to avoid refreshing the windows.
4482 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4484 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4485 LOCATOR_WIN to tui_alloc_content.
4487 2015-06-30 Yao Qi <yao.qi@linaro.org>
4490 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4493 2015-06-29 Kevin Buettner <kevinb@redhat.com>
4495 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4496 (rx_dwarf_reg_to_regnum): New function.
4497 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4500 2015-06-29 Pedro Alves <palves@redhat.com>
4503 * infcall.c (run_inferior_call): On infcall success, if the thread
4504 was marked stopped before, reset it back to stopped.
4505 * infrun.c (resume): Don't suppress the set_running calls when
4507 (normal_stop): Only discard the finish_thread_state cleanup if the
4510 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
4512 * MAINTAINERS (Write After Approval): Update my email address.
4514 2015-06-26 Keith Seitz <keiths@redhat.com>
4515 Doug Evans <dje@google.com>
4518 * block.c (block_lookup_symbol): For non-function blocks,
4519 continue to search for a symbol with an exact domain match
4520 Otherwise, return any previously found "best domain" symbol.
4521 (block_lookup_symbol_primary): Likewise.
4523 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4525 * NEWS: Mention the new option "history remove-duplicates".
4526 * top.c (history_remove_duplicates): New static variable.
4527 (show_history_remove_duplicates): New static function.
4528 (gdb_add_history): Conditionally remove duplicate history
4530 (init_main): Add "history remove-duplicates" option.
4532 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4534 * tui/tui-win.c (focus_completer): New static function.
4535 (_initialize_tui_win): Set the completion function of the
4536 "focus" command to focus_completer.
4538 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4540 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4542 * symtab.c (find_function_start_sal): Likewise.
4544 2015-06-25 Gary Benson <gbenson@redhat.com>
4546 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4547 it is the empty string after trailing slashes have been stripped.
4549 2015-06-25 Gary Benson <gbenson@redhat.com>
4551 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4552 * infrun.c (follow_exec): Likewise.
4553 * remote.c (remote_filesystem_is_local): Likewise.
4554 * solib.c (solib_find_1): Likewise.
4556 2015-06-24 Keith Seitz <keiths@redhat.com>
4558 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4559 return value from lrealpath.
4561 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4563 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4565 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4567 * remote-sim.c: Include gdb_bfd.h.
4568 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4569 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4571 2015-06-24 Yao Qi <yao.qi@linaro.org>
4573 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4574 set_gdbarch_get_siginfo_type.
4575 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4576 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4577 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4578 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4579 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4580 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4581 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4582 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4583 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4584 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4586 2015-06-24 Gary Benson <gbenson@redhat.com>
4588 * common/buffer.c (stdint.h): Do not include.
4589 * common/print-utils.c (stdint.h): Likewise.
4590 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4591 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4592 * ft32-tdep.c (gdb_assert.h): Likewise.
4593 * guile/scm-utils.c (stdint.h): Likewise.
4594 * i386-linux-tdep.c (stdint.h): Likewise.
4595 * i386-tdep.c (stdint.h): Likewise.
4596 * nat/linux-btrace.c (stdint.h): Likewise.
4597 * nat/linux-btrace.h (stdint.h): Likewise.
4598 * nat/linux-ptrace.c (stdint.h): Likewise.
4599 * nat/mips-linux-watch.h (stdint.h): Likewise.
4600 * ppc-linux-nat.c (stdint.h): Likewise.
4601 * python/python-internal.h (stdint.h): Likewise.
4602 * stub-termcap.c (stdlib.h): Likewise.
4603 * target/target.h (stdint.h): Likewise.
4604 * xtensa-linux-nat.c (stdint.h): Likewise.
4606 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4608 * top.c (init_history): Look at errno after calling strtol to
4609 properly map large GDBHISTSIZE values to infinity.
4611 2015-06-23 Doug Evans <dje@google.com>
4613 * inferior.h (struct inferior_suspend_state): Delete, unused.
4614 All references deleted.
4616 2015-06-23 Mike Frysinger <vapier@gentoo.org>
4618 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4619 (microblaze_push_dummy_call): Likewise.
4620 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4621 and set_gdbarch_push_dummy_call.
4623 2015-06-23 Yao Qi <yao.qi@linaro.org>
4625 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4626 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4627 (amd64_linux_store_inferior_registers): Likewise.
4628 * arm-linux-nat.c (fetch_fpregister): Likewise.
4629 (fetch_fpregs, store_fpregister): Likewise.
4630 (store_fpregister, store_fpregs): Likewise.
4631 (fetch_register, fetch_regs): Likewise.
4632 (store_register, store_regs): Likewise.
4633 (fetch_vfp_regs, store_vfp_regs): Likewise.
4634 (arm_linux_read_description): Check have_ptrace_getregset is
4635 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4637 * i386-linux-nat.c (fetch_xstateregs): Check
4638 have_ptrace_getregset is not TRIBOOL_TRUE.
4639 (store_xstateregs): Likewise.
4640 * linux-nat.c (have_ptrace_getregset): Change its type to
4642 * linux-nat.h (tribool): New enum.
4643 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4644 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4646 2015-06-19 Doug Evans <dje@google.com>
4648 * NEWS: Mention Sun's version of stabs is no longer supported.
4649 * elfread.c (free_elfinfo): Delete. All uses updated.
4650 (elfstab_offset_sections): Delete. All uses updated.
4651 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4652 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4654 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4655 All callers updated.
4657 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4659 * common/rsp-low.c (needs_escaping): New.
4660 (remote_escape_output): Add unit_size parameter. Refactor to
4661 support multi-byte addressable units. Rename parameters.
4662 * common/rsp-low.h (remote_escape_output): Add unit_size
4663 parameter and rename others. Update doc.
4664 * remote.c (align_for_efficient_write): New.
4665 (remote_write_bytes_aux): Add unit_size parameter and use it.
4666 Rename some variables. Update doc.
4667 (remote_xfer_partial): Get unit size and use it.
4668 (remote_read_bytes_1): Add unit_size parameter and use it.
4669 Rename some variables. Update doc.
4670 (remote_write_bytes): Same.
4671 (remote_xfer_live_readonly_partial): Same.
4672 (remote_read_bytes): Same.
4673 (remote_flash_write): Update call to remote_write_bytes_aux.
4674 (remote_write_qxfer): Update call to remote_escape_output.
4675 (remote_search_memory): Same.
4676 (remote_hostio_pwrite): Same.
4678 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4680 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4681 locations as inserted.
4682 Update and expand comment about permanent locations.
4683 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4684 Move comment to add_location_to_breakpoint.
4685 (update_global_location_list): Don't error out if a permanent
4686 breakpoint is not marked inserted.
4687 Don't error out if a non-permanent breakpoint location is inserted on
4688 top of a permanent breakpoint.
4690 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4692 * breakpoint.c (make_breakpoint_permanent): Remove unused
4694 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4696 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4699 * NEWS: Mention new GDBHISTSIZE behavior.
4700 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4701 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4703 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4705 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4706 * top.c (init_history): Read from GDBHISTSIZE instead of
4708 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4710 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4712 * top.c (gdb_safe_append_history): Do not call
4713 history_truncate_file if the history is not stifled.
4715 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4717 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4718 * syscalls/s390x-linux.xml: Likewise.
4720 2015-06-16 Michael Eager <eager@eagercon.com>
4722 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4724 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4726 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4727 target_terminal_ours_for_output() before calling
4728 tui_show_frame_info(), and restore the original terminal
4729 settings afterwards.
4731 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4733 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4735 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4737 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4739 (mi_cmd_data_write_memory_bytes): Same.
4741 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4743 * corefile.c (write_memory): Update doc.
4744 * gdbcore.h (write_memory): Same.
4746 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4749 (dump_mapping_p): Use it for parameter filterflags.
4750 (linux_find_memory_regions_full): Use it for variable filterflags.
4752 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4753 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 Merge multiple hex conversions.
4756 * monitor.c: Include rsp-low.h.
4757 (fromhex): Remove definition.
4759 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4760 Jan Kratochvil <jan.kratochvil@redhat.com>
4762 Move utility functions to common/.
4763 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4764 Move defs to common/common-utils.c.
4765 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4766 (skip_to_space_const): Move decls to common/common-utils.h.
4767 * common/common-defs.h: Move include of common-types.h before
4769 * common/common-utils.c: Include host-defs.h and ctype.h.
4770 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4772 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4774 * common/common-utils.h (strtoulst): Move decl from utils.h.
4775 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4776 Move from cli/cli-utils.h.
4777 * common/host-defs.h: Include limits.h.
4778 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4779 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4780 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4781 common/common-utils.h.
4782 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4783 (strtoulst): Move to common/common-utils.c.
4784 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4786 2015-06-15 Yao Qi <yao.qi@linaro.org>
4788 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4790 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4792 * build-id.c: Don't include elf-bfd.h.
4793 (build_id_bfd_get): Use bfd_build_id.
4794 (build_id_verify): Ditto.
4795 * build-id.h: Ditto.
4796 (find_separate_debug_file_by_buildid): Ditto.
4797 * python/py-objfile.c: Don't include elf-bfd.h.
4798 (objfpy_get_build_id) Use bfd_build_id.
4799 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4800 * coffread.c: Include build-id.h.
4801 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4803 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4805 * windows-nat.c (do_windows_fetch_inferior_registers)
4806 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4807 conditional with __CYGWIN__.
4809 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4811 * completer.c: Add arch-utils.h include.
4812 (enum reg_completer_targets): New enum.
4813 (reg_or_group_completer_1): New function containing old
4814 reg_or_group_completer, add and use new parameter to control what
4815 is completed on. Use get_current_arch rather than architecture of
4816 currently selected frame.
4817 (reg_or_group_completer): Call new reg_or_group_completer_1.
4818 (reggroup_completer): Call new reg_or_group_completer_1.
4819 * completer.h (reggroup_completer): Add declaration.
4820 * tui/tui-regs.c: Add 'completer.h' include.
4821 (tui_reg_next_command): Renamed to...
4822 (tui_reg_next): ...this. Adjust parameters and return rather than
4824 (tui_reg_prev_command): Renamed to...
4825 (tui_reg_prev): ...this. Adjust parameters and return rather than
4827 (tui_reg_float_command): Delete.
4828 (tui_reg_general_command): Delete.
4829 (tui_reg_system_command): Delete.
4830 (tui_reg_command): Rewrite to perform switching of register group.
4832 (tuireglist): Remove.
4833 (tui_reggroup_completer): New function.
4834 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4835 creation of 'tui reg' command.
4836 * NEWS: Add comment about 'tui reg' changes.
4838 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4840 * target.c (target_read): Consider addressable unit size when
4841 reading from a memory object.
4842 (read_memory_robust): Same.
4843 (read_whatever_is_readable): Same.
4844 (target_write_with_progress): Consider addressable unit size
4845 when writing to a memory object.
4846 * target.h (target_read): Update documentation.
4847 (target_write): Add documentation.
4849 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4851 * arch-utils.h (default_addressable_memory_unit_size): New.
4852 * arch-utils.c (default_addressable_memory_unit_size): New.
4853 * gdbarch.sh (addressable_memory_unit_size): New.
4854 * gdbarch.h: Re-generate.
4855 * gdbarch.c: Re-generate.
4857 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4859 * target.c (target_read): Rename variables and use
4861 (target_read_with_progress): Same.
4862 (read_memory_robust): Constify parameters and rename
4864 (read_whatever_is_readable): Constify parameters,
4865 rename variables, adjust formatting.
4866 * target.h (read_memory_robust): Constify parameters.
4868 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4870 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4871 synthetic (non-AltiVec) vector types.
4872 (ppc64_sysv_abi_return_value): Likewise.
4874 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4876 PR breakpoints/16465
4877 * breakpoint.c (create_breakpoint): Save extra_string for
4878 pending breakpoints.
4880 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4882 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4883 and bt_mask to CORE_ADDR.
4885 2015-06-11 Gary Benson <gbenson@redhat.com>
4887 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4888 (mnsh_recv_message): Likewise.
4890 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4892 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4893 long long int and plongest instead of %ll.
4895 2015-06-11 Gary Benson <gbenson@redhat.com>
4897 * nat/linux-namespaces.c (gdb_wait.h): New include.
4898 (sys/wait.h): Do not include.
4900 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4902 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4903 end_sequence is true.
4905 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 * solib-target.c (library_list_start_list): Use explicit NULL
4911 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4913 * solib-target.c (library_list_start_list): Do not dereference
4914 variable version in its initialization. Make the VERSION check handle
4916 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4918 2015-06-10 Gary Benson <gbenson@redhat.com>
4920 * NEWS: Announce support for direct access of executable and
4921 shared library files when attaching to inferiors in containers
4922 on GNU/Linux systems.
4924 2015-06-10 Gary Benson <gbenson@redhat.com>
4926 * remote.c (struct remote_state) <fs_pid>: New field.
4927 (new_remote_state): Initialize the above.
4928 (PACKET_vFile_setfs): New enum value.
4929 (remote_hostio_set_filesystem): New function.
4930 (remote_hostio_open): Call the above.
4931 (remote_hostio_unlink): Likewise.
4932 (remote_hostio_readlink): Likewise.
4933 (_initialize_remote): Register new "set/show remote
4934 hostio-setfs-packet" command.
4935 * NEWS: Announce new vFile:setfs packet.
4937 2015-06-10 Gary Benson <gbenson@redhat.com>
4939 * linux-nat.c (nat/linux-namespaces.h): New include.
4940 (fileio.h): Likewise.
4941 (linux_nat_filesystem_is_local): New function.
4942 (linux_nat_fileio_pid_of): Likewise.
4943 (linux_nat_fileio_open): Likewise.
4944 (linux_nat_fileio_readlink): Likewise.
4945 (linux_nat_fileio_unlink): Likewise.
4946 (linux_nat_add_target): Initialize to_filesystem_is_local,
4947 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4948 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4950 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4952 2015-06-10 Gary Benson <gbenson@redhat.com>
4954 * target.h (struct inferior): New forward declaration.
4955 (struct target_ops) <to_filesystem_is_local>: Update comment.
4956 (struct target_ops) <to_fileio_open>: New argument inf.
4957 Update comment. All implementations updated.
4958 (struct target_ops) <to_fileio_unlink>: Likewise.
4959 (struct target_ops) <to_fileio_readlink>: Likewise.
4960 (target_filesystem_is_local): Update comment.
4961 (target_fileio_open): New argument inf. Update comment.
4962 (target_fileio_unlink): Likewise.
4963 (target_fileio_readlink): Likewise.
4964 (target_fileio_read_alloc): Likewise.
4965 (target_fileio_read_stralloc): Likewise.
4966 * target.c (target_fileio_open): New argument inf.
4967 Pass inf to implementation. Update debug printing.
4968 (target_fileio_unlink): Likewise.
4969 (target_fileio_readlink): Likewise.
4970 (target_fileio_read_alloc_1): New argument inf. Pass inf
4971 to target_fileio_open.
4972 (target_fileio_read_alloc): New argument inf. Pass inf to
4973 target_fileio_read_alloc_1.
4974 (target_fileio_read_stralloc): Likewise.
4975 * gdb_bfd.c (inferior.h): New include.
4976 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4977 argument with new argument "inferior". Pass inferior to
4979 (gdb_bfd_open): Supply inferior argument to
4980 gdb_bfd_iovec_fileio_open.
4981 * linux-tdep.c (linux_info_proc): Supply inf argument to
4982 relevant target_fileio calls.
4983 (linux_find_memory_regions_full): Likewise.
4984 (linux_fill_prpsinfo): Likewise.
4985 * remote.c (remote_filesystem_is_local): Supply inf
4986 argument to remote_hostio_open.
4987 (remote_file_put): Likewise.
4988 (remote_file_get): Likewise.
4989 (remote_file_delete): Supply inf argument to
4990 remote_hostio_unlink.
4992 2015-06-10 Gary Benson <gbenson@redhat.com>
4994 * inf-child.c (inf_child_fileio_open): Replace comment.
4995 (inf_child_fileio_pwrite): Likewise.
4996 (inf_child_fileio_pread): Likewise.
4997 (inf_child_fileio_fstat): Insert blank line before comment.
4998 (inf_child_fileio_close): Replace comment.
4999 (inf_child_fileio_unlink): Likewise.
5000 (inf_child_fileio_readlink): Likewise.
5001 * remote.c (remote_hostio_open): Likewise.
5002 (remote_hostio_pread): Likewise.
5003 (remote_hostio_pwrite): Likewise.
5004 (remote_hostio_close): Likewise.
5005 (remote_hostio_unlink): Likewise.
5006 (remote_hostio_readlink): Likewise.
5007 (remote_hostio_fstat): Likewise.
5008 (remote_filesystem_is_local): Likewise.
5009 * target.c (target_fileio_open): Likewise.
5010 (target_fileio_pwrite): Likewise.
5011 (target_fileio_pread): Likewise.
5012 (target_fileio_fstat): Insert blank line before comment.
5013 (target_fileio_close): Replace comment.
5014 (target_fileio_unlink): Likewise.
5015 (target_fileio_readlink): Likewise.
5016 (target_fileio_read_alloc): Likewise.
5017 (target_fileio_read_stralloc): Likewise.
5019 2015-06-10 Gary Benson <gbenson@redhat.com>
5021 * linux-thread-db.c (nat/linux-namespaces.h): New include.
5022 (check_pid_namespace_match): Use linux_ns_same rather than
5023 linux_proc_pid_get_ns to spot PID namespace mismatches.
5024 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
5025 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
5027 2015-06-10 Gary Benson <gbenson@redhat.com>
5029 * configure.ac (AC_CHECK_FUNCS): Add setns.
5030 * config.in: Regenerate.
5031 * configure: Likewise.
5032 * nat/linux-namespaces.h: New file.
5033 * nat/linux-namespaces.c: Likewise.
5034 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
5035 (linux-namespaces.o): New rule.
5036 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
5037 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5038 * config/arm/linux.mh (NATDEPFILES): Likewise.
5039 * config/i386/linux.mh (NATDEPFILES): Likewise.
5040 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5041 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5042 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5043 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5044 * config/mips/linux.mh (NATDEPFILES): Likewise.
5045 * config/pa/linux.mh (NATDEPFILES): Likewise.
5046 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5047 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5048 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5049 * config/s390/linux.mh (NATDEPFILES): Likewise.
5050 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5051 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5052 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5053 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5055 2015-06-10 Gary Benson <gbenson@redhat.com>
5057 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5058 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5059 (make_cleanup_close): Likewise.
5060 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5061 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5062 (make_cleanup_close): Likewise.
5064 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5066 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5067 from SuspendThread().
5069 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5071 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5072 from OutputDebugString.
5074 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5075 Mircea Gherzan <mircea.gherzan@intel.com>
5077 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5078 MPX_BT_MASK_32): New macros.
5079 (i386_mpx_set_bounds): New function that implements
5080 the command "set-mpx-bound".
5081 (i386_mpx_enabled): Helper function to test MPX availability.
5082 (i386_mpx_bd_base): Helper function to calculate the base directory
5084 (i386_mpx_get_bt_entry): Helper function to access a bound
5086 (i386_mpx_print_bounds): Effectively display bound information.
5087 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5089 (_initialize_i386_tdep):
5090 Add "bound" to the commands "show mpx" and "set mpx" commands.
5091 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5092 and "show mpx" commands.
5093 * NEWS: List new commands for MPX support.
5095 2015-06-09 Gary Benson <gbenson@redhat.com>
5097 * common/fileio.h (fileio_to_host_mode): New declaration.
5098 * common/fileio.c (fileio_to_host_mode): New Function.
5099 * inf-child.c (inf_child_fileio_open): Process mode argument
5100 with fileio_to_host_mode.
5102 2015-06-09 Gary Benson <gbenson@redhat.com>
5104 * common/fileio.c (fileio_mode_pack): Fix preprocessor
5107 2015-06-05 Gary Benson <gbenson@redhat.com>
5109 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5110 * remote.c (remote_filesystem_is_local): ...here.
5112 2015-06-04 Yao Qi <yao.qi@linaro.org>
5114 * gdbarch.c: Regenerate it.
5116 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5118 * arch-utils.c (default_infcall_munmap): New.
5119 * arch-utils.h (default_infcall_munmap): New declaration.
5120 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5121 (munmap_list_free, munmap_listp_free_cleanup): New.
5122 (struct setup_sections_data): Add field munmap_list_headp.
5123 (setup_sections): Call munmap_list_add.
5124 (compile_object_load): New variable munmap_list_head, initialize
5125 setup_sections_data.munmap_list_headp, return munmap_list_head.
5126 * compile/compile-object-load.h (struct munmap_list): New declaration.
5127 (struct compile_module): Add field munmap_list_head.
5128 (munmap_list_free): New declaration.
5129 * compile/compile-object-run.c (struct do_module_cleanup): Add field
5131 (do_module_cleanup): Call munmap_list_free.
5132 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5133 * gdbarch.c: Regenerate.
5134 * gdbarch.h: Regenerate.
5135 * gdbarch.sh (infcall_munmap): New.
5136 * linux-tdep.c (linux_infcall_munmap): New.
5137 (linux_init_abi): Install it.
5139 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
5142 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5144 2015-06-02 Yao Qi <yao.qi@linaro.org>
5146 * i386-linux-nat.c: Include linux-nat.h.
5148 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
5149 Jan Kratochvil <jan.kratochvil@redhat.com>
5152 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5154 * dwarf2loc.c (chain_candidate): Likewise.
5156 2015-06-01 Yao Qi <yao.qi@linaro.org>
5158 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5159 (store_vfp_regs): Use PTRACE_SETREGSET.
5161 2015-06-01 Yao Qi <yao.qi@linaro.org>
5163 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5164 (fetch_fpregs): Likewise.
5165 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5166 (store_fpregs): Likewise.
5168 2015-06-01 Yao Qi <yao.qi@linaro.org>
5170 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5171 (fetch_regs): Likewise.
5172 (store_regs): Use PTRACE_SETREGSET.
5173 (store_register): Likewise.
5175 2015-06-01 Yao Qi <yao.qi@linaro.org>
5177 * arm-linux-nat.c (arm_linux_read_description): Check whether
5178 kernel supports PTRACE_GETREGSET.
5180 2015-06-01 Yao Qi <yao.qi@linaro.org>
5182 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5183 * linux-nat.c: ... here.
5184 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5186 * linux-nat.h: ... here.
5188 2015-06-01 Yao Qi <yao.qi@linaro.org>
5190 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5191 * i386-linux-nat.c: Likewise.
5192 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5193 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5194 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5195 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5196 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5198 2015-05-30 Eli Zaretskii <eliz@gnu.org>
5200 * go32-nat.c (go32_xfer_memory): Fix the return value to be
5201 compatible to what read_child and write_child return. This
5202 unbreaks that DJGPP build of GDB which was broken since v7.7.
5204 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
5206 * MAINTAINERS (Write After Approval): Add Martin Galvan.
5208 2015-05-29 Roland McGrath <mcgrathr@google.com>
5211 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5212 rather than internal_error for an unrecognized value.
5214 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
5216 * xtensa-tdep.c (xtensa_pseudo_register_read)
5217 (xtensa_pseudo_register_write): Don't alias last pseudo register
5220 2015-05-28 Don Breazeal <donb@codesourcery.com>
5222 * infrun.c (follow_fork_inferior): Ensure the use of
5223 process-style ptids (pid,0,0) in verbose/debug "Detaching"
5226 2015-05-28 Doug Evans <dje@google.com>
5228 * dwarf2read.c (record_line_ftype): Remove, duplicate.
5230 2015-05-28 Yao Qi <yao.qi@linaro.org>
5232 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5233 (arm_linux_fetch_inferior_registers): Use
5234 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5235 (arm_linux_store_inferior_registers): Likewise.
5236 (arm_linux_read_description): Don't set
5237 arm_linux_has_wmmx_registers.
5238 * arm-tdep.c (arm_gdbarch_init): Set
5239 tdep->have_wmmx_registers according target descriptions.
5240 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5243 2015-05-28 Yao Qi <yao.qi@linaro.org>
5245 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5246 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5247 instead of arm_linux_vfp_register_count.
5248 (store_vfp_regs): Likewise.
5249 (arm_linux_fetch_inferior_registers): Likewise.
5250 (arm_linux_store_inferior_registers): Likewise.
5251 (arm_linux_read_description): Don't set
5252 arm_linux_vfp_register_count.
5253 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5255 * arm-tdep.c (arm_gdbarch_init): Add assert on
5257 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5258 field to vfp_register_count. All users updated.
5260 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5262 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5263 ELFOSABI_GNU binaries.
5265 2015-05-27 Doug Evans <dje@google.com>
5267 * dwarf2read.c (lnp_state_machine): New typedef.
5268 (lnp_reader_state): New typedef.
5269 (dwarf_record_line_1): Renamed from dwarf_record_line.
5270 All callers updated.
5271 (dwarf_record_line): New function.
5272 (init_lnp_state_machine): New function.
5273 (check_line_address): Replace p_record_line parameter with state.
5274 All callers updated.
5275 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5276 Update to record state in lnp_state_machine.
5278 2015-05-27 Doug Evans <dje@google.com>
5280 * dwarf2read.c (record_line_ftype): New typedef.
5281 (check_line_address): New function.
5282 (dwarf_decode_lines_1): Call it.
5284 2015-05-27 Doug Evans <dje@google.com>
5286 * NEWS: Mention "set debug dwarf-line".
5287 * dwarf2read.c (dwarf_line_debug): New static global.
5288 (add_include_dir): Add debug dwarf-line support.
5289 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5290 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5292 2015-05-27 Doug Evans <dje@google.com>
5294 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5295 All callers updated.
5296 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5297 * cp-support.h (cp_lookup_nested_symbol): Update.
5299 2015-05-27 Doug Evans <dje@google.com>
5302 * block.c (block_find_symbol): New function.
5303 (block_find_non_opaque_type): Ditto.
5304 (block_find_non_opaque_type_preferred): Ditto.
5305 * block.h (block_symbol_matcher_ftype): New typedef.
5306 (block_find_symbol): Declare.
5307 (block_find_non_opaque_type): Ditto.
5308 (block_find_non_opaque_type_preferred): Ditto.
5309 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5310 * psymtab.c (psym_lookup_symbol): Ditto.
5311 * symtab.c (basic_lookup_transparent_type_1): New function.
5312 (basic_lookup_transparent_type): Call it.
5314 2015-05-27 Yao Qi <yao.qi@linaro.org>
5316 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5317 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5319 2015-05-27 Yao Qi <yao.qi@linaro.org>
5321 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5323 (aarch64_record_load_store): Likewise.
5325 2015-05-26 Doug Evans <dje@google.com>
5327 PR c++/18141, c++/18417.
5328 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5331 2015-05-26 Doug Evans <dje@google.com>
5333 * NEWS: Add entries for command renamings.
5334 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5336 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
5337 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5339 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5340 All callers updated. Fix spelling of DWARF in help text.
5341 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5343 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5345 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
5346 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
5347 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5349 (show_dwarf_always_disassemble): Renamed from
5350 show_dwarf2_always_disassemble. All callers updated.
5351 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5352 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
5353 "set/show dwarf max-cache-age". Rename
5354 "set/show dwarf2 always-disassemble" to
5355 "set/show dwarf always-disassemble". Rename
5356 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5357 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5359 2015-05-26 Doug Evans <dje@google.com>
5362 * python/py-lazy-string.c (stpy_convert_to_value): Use
5363 gdbpy_gdb_memory_error not PyExc_MemoryError.
5364 (gdbpy_create_lazy_string_object): Ditto.
5366 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5368 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5370 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5372 * tui/tui-regs.c (tui_reg_prev_command): New function.
5373 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5374 * reggroups.c (reggroup_prev): New function.
5375 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5377 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5378 Yao Qi <yao.qi@linaro.org>
5380 * aarch64-linux-tdep.c: Include linux-record.h and
5382 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5383 (aarch64_syscall): New enum.
5384 (aarch64_canonicalize_syscall): New function.
5385 (aarch64_all_but_pc_registers_record): New function.
5386 (aarch64_linux_syscall_record): New function.
5387 (aarch64_linux_init_abi): Install AArch64 process record
5388 handler. Update to handle syscall recording.
5389 * aarch64-tdep.c: Include record.h and record-full.h.
5390 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5391 (struct aarch64_mem_r): Define.
5392 (aarch64_record_result): New enum.
5393 (struct insn_decode_record): Define.
5394 (insn_decode_record): New typedef.
5395 (aarch64_record_data_proc_reg): New function.
5396 (aarch64_record_data_proc_imm): New function.
5397 (aarch64_record_branch_except_sys): New function.
5398 (aarch64_record_load_store): New function.
5399 (aarch64_record_data_proc_simd_fp): New function.
5400 (aarch64_record_asimd_load_store): New function.
5401 (aarch64_record_decode_insn_handler): New function.
5402 (deallocate_reg_mem): New function.
5403 (aarch64_process_record): New function.
5404 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5406 (aarch64_process_record): New extern declaration.
5407 * configure.tgt: Add linux-record.o to gdb_target_obs.
5408 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5410 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5412 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5415 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5417 * amd64-tdep.c: Replace in_function_epilogue_p with
5418 stack_frame_destroyed_p throughout.
5419 * arch-utils.c: Ditto.
5420 * arch-utils.h: Ditto.
5421 * arm-tdep.c: Ditto.
5422 * breakpoint.c: Ditto.
5423 * gdbarch.sh: Ditto.
5424 * hppa-tdep.c: Ditto.
5425 * i386-tdep.c: Ditto.
5426 * mips-tdep.c: Ditto.
5427 * nios2-tdep.c: Ditto.
5428 * rs6000-tdep.c: Ditto.
5429 * s390-linux-tdep.c: Ditto.
5430 * score-tdep.c: Ditto.
5432 * sparc-tdep.c: Ditto.
5433 * sparc-tdep.h: Ditto.
5434 * sparc64-tdep.c: Ditto.
5435 * spu-tdep.c: Ditto.
5436 * tic6x-tdep.c: Ditto.
5437 * tilegx-tdep.c: Ditto.
5438 * xstormy16-tdep.c: Ditto.
5439 * gdbarch.c, gdbarch.h: Re-generated.
5441 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5443 * NEWS: Mention 'tui enable' and 'tui disable'.
5444 * tui/tui.c (tui_enable_command): New function.
5445 (tui_disable_command): New function.
5446 (_initialize_tui): New function.
5448 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5450 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5452 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5454 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5457 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5459 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5461 (tui_set_layout_for_display_command): ...here, before calling
5462 tui_set_layout. Only set the layout if gdb has not already
5463 entered the TUI_FAILURE state.
5465 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5467 * tui/tui-layout.c (layout_completer): New function.
5468 (_initialize_tui_layout): Set completer on layout command.
5470 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5472 * tui/tui-layout.c (tui_set_layout): Remove
5473 tui_register_display_type parameter. Remove all checking of this
5474 parameter, and reindent function. Update header comment.
5475 (tui_set_layout_for_display_command): Rename to...
5476 (tui_set_layout_by_name): ...this, and don't check for different
5477 register class types, don't pass a tui_register_display_type to
5478 tui_set_layout. Update header comment.
5479 (layout_names): Remove register set specific names.
5480 * tui/tui-layout.h (tui_set_layout): Remove
5481 tui_register_display_type parameter.
5482 * tui/tui.c (tui_rl_change_windows): Don't pass a
5483 tui_register_display_type to tui_set_layout.
5484 (tui_rl_delete_other_windows): Likewise.
5485 (tui_enable): Likewise.
5486 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5487 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5488 (TUI_GENERAL_REGS_NAME): Remove.
5489 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5490 (TUI_SPECIAL_REGS_NAME): Remove.
5491 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5492 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5493 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5494 (enum tui_register_display_type): Remove.
5495 (struct tui_layout_def): Remove regs_display_type and
5496 float_regs_display_type fields.
5497 (struct tui_data_info): Remove regs_display_type field.
5498 (tui_layout_command): Use new name for
5499 tui_set_layout_for_display_command.
5500 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5501 (tui_clear_win_detail): Don't initialise removed fields of
5503 * tui/tui-regs.c (tui_show_registers): Use new name for
5504 tui_set_layout_for_display_command.
5505 * tui/tui.h (tui_set_layout_for_display_command): Rename
5507 (tui_set_layout_by_name): ...this.
5508 * printcmd.c (display_command): Remove tui related layout call,
5511 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5513 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5514 (handle_inferior_event): New function.
5516 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5518 * ada-lang.c (to_fixed_array_type): Rename local variable
5519 typename into type_name.
5521 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5523 Fix ASAN crash for gdb.compile/compile.exp.
5524 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5526 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5528 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5529 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5530 * compile/compile-object-load.c (setup_sections, compile_object_load):
5532 * compile/compile.c (compile_to_object): Likewise.
5534 2015-05-16 Doug Evans <xdje42@gmail.com>
5536 * NEWS: Mention support for unbuffered Guile memory ports.
5537 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5538 (ioscm_lseek_address): Improve overflow calculation.
5539 (gdbscm_memory_port_fill_input): Add assert.
5540 (gdbscm_memory_port_write): Handle unbuffered ports.
5541 Handle large writes identical to Guile's fport_write.
5542 (gdbscm_memory_port_seek): Fix seeking past end check.
5543 (gdbscm_memory_port_close): Handle closing unbuffered port.
5544 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5545 (ioscm_init_memory_port): Handle unbuffered ports.
5546 (ioscm_reinit_memory_port): Ditto.
5547 (ioscm_init_memory_port): Update size calculation.
5548 (gdbscm_open_memory): Support zero sized ports.
5550 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5552 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5553 variable compiler warnings.
5555 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5557 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5559 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5560 Phil Muldoon <pmuldoon@redhat.com>
5562 * NEWS (Changes since GDB 7.9): Add compile print.
5563 * compile/compile-c-support.c (add_code_header, add_code_footer)
5564 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5565 COMPILE_I_PRINT_VALUE_SCOPE.
5566 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5567 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5569 * compile/compile-object-load.c: Include block.h.
5570 (get_out_value_type): New function.
5571 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5572 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5574 * compile/compile-object-load.h (struct compile_module): Add fields
5575 out_value_addr and out_value_type.
5576 * compile/compile-object-run.c: Include valprint.h and compile.h.
5577 (struct do_module_cleanup): Add fields out_value_addr and
5579 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5580 COMPILE_I_PRINT_VALUE_SCOPE.
5581 (compile_object_run): Propagate out_value_addr and out_value_type.
5582 Pass OUT_VALUE_ADDR.
5583 * compile/compile.c: Include valprint.h.
5584 (compile_print_value, compile_print_command): New functions.
5585 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5586 (_initialize_compile): Update compile code help text. Install
5587 compile_print_command.
5588 * compile/compile.h (compile_print_value): New prototype.
5589 * defs.h (enum compile_i_scope_types): Add
5590 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5592 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5594 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5595 Rely on its parameter count.
5596 (compile_object_load): Replace lookup_minimal_symbol_text by
5597 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5599 * compile/compile-object-load.h (struct compile_module): Replace
5600 func_addr by func_sym.
5601 * compile/compile-object-run.c: Include block.h.
5602 (compile_object_run): Reset module variable after it is freed. Use
5603 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5605 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5607 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5608 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5609 (c_compute_program): Call generate_register_struct after typedefs.
5610 * compile/compile-loc2c.c (push, pushf_register_address)
5611 (pushf_register): Cast to GCC_UINTPTR.
5612 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5613 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5614 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5615 * compile/compile.c (_initialize_compile): Enable warnings for
5618 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5620 * cli/cli-script.c (execute_control_command): Update
5621 eval_compile_command caller.
5622 * compile/compile-object-load.c (compile_object_load): Add parameters
5623 scope and scope_data. Set them.
5624 * compile/compile-object-load.h (struct compile_module): Add fields
5625 scope and scope_data.
5626 (compile_object_load): Add parameters scope and scope_data.
5627 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5628 scope and scope_data.
5629 (compile_object_run): Propagate the fields scope and scope_data.
5630 * compile/compile.c (compile_file_command, compile_code_command):
5631 Update eval_compile_command callers.
5632 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5633 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5634 * defs.h (struct command_line): Add field scope_data.
5636 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 * printcmd.c (struct format_data): Move it to valprint.h.
5639 (print_command_parse_format, print_value): New functions from ...
5640 (print_command_1): ... here. Call them.
5641 * valprint.h (struct format_data): Move it here from printcmd.c.
5642 (print_command_parse_format, print_value): New declarations.
5644 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5646 * compile/compile-object-load.c (compile_object_load): Add
5647 COMPILE_DEBUG message.
5649 2015-05-15 Jerome Guitton <guitton@adacore.com>
5651 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5652 index to get element instead of enum value.
5653 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5654 of index to compute length, but enum values to compute bounds.
5655 (ada_array_length): Use enum position of index instead of enum value.
5656 (pos_atr): Move position computation to...
5657 (ada_evaluate_subexp): Use enum values to compute bounds.
5658 * gdbtypes.c (discrete_position): ...this new function.
5659 * gdbtypes.h (discrete_position): New function declaration.
5660 * valprint.c (val_print_array_elements): Call discrete_position
5661 to handle array indexed by non-contiguous enumeration types.
5663 2015-05-15 Jerome Guitton <guitton@adacore.com>
5665 * ada-lang.c (find_parallel_type_by_descriptive_type):
5666 Go through typedefs during lookup.
5667 (to_fixed_array_type): Add support for non-bit packed arrays
5668 as variable-length fields.
5670 2015-05-15 Pedro Alves <palves@redhat.com>
5671 Simon Marchi <simon.marchi@ericsson.com>
5673 * event-loop.c (gdb_notifier) <next_file_handler,
5674 next_poll_fds_index>: New fields.
5675 (get_next_file_handler_to_handle_and_advance): New function.
5676 (delete_file_handler): If deleting the next file handler to
5677 handle, advance to the next file handler.
5678 (gdb_wait_for_event): Bail early if no event fired. Poll file
5679 handlers in round-robin fashion.
5681 2015-05-15 Pedro Alves <palves@redhat.com>
5683 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5684 'private' to 'priv'.
5686 2015-05-15 Pedro Alves <palves@redhat.com>
5688 * nat/linux-nat.h: Include "target/waitstatus.h".
5690 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5692 * python/py-unwind.c (struct reg_info): Move out of ...
5693 (struct cached_frame_info): ... this scope.
5694 (pending_frame_object_type, unwind_info_object_type): Make extern.
5696 2015-05-15 Joel Brobecker <brobecker@adacore.com>
5698 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5699 accumSize is never negative.
5701 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5703 * tui/tui-command.c: Remove include of <ctype.h>.
5704 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5706 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5708 * dwarf2read.c (die_needs_namespace): Return 1 for
5709 DW_TAG_inlined_subroutine.
5711 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5713 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5714 (regcache_cpy_no_passthrough): Make it static, add function comment.
5715 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5716 (regcache_cpy_no_passthrough): Remove declaration.
5718 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5720 * gdbthread.h (struct thread_control_state): Update comment for
5722 * infcall.c (run_inferior_call): Update comment about
5724 * infcmd.c (get_return_value): Update comment about stop_registers.
5725 (finish_forward): Update comment about proceed_to_finish.
5726 * infrun.c (stop_registers): Remove.
5727 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5728 * infrun.h (stop_registers): Remove.
5730 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5732 * infcall.c (struct dummy_frame_context_saver)
5733 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5734 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5735 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5737 (call_function_by_hand_dummy): Move discard_cleanups of
5738 inf_status_cleanup before dummy_frame_push. Call
5739 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5740 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5741 * infcall.h (struct dummy_frame_context_saver)
5742 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5743 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5745 * infcmd.c: Include infcall.h.
5746 (get_return_value): Add parameter ctx_saver, use it instead of
5748 (print_return_value): Add parameter ctx_saver, pass it.
5749 (struct finish_command_continuation_args): Add field ctx_saver.
5750 (finish_command_continuation): Update print_return_value caller.
5751 (finish_command_continuation_free_arg): Free also ctx_saver.
5752 (finish_forward): Call dummy_frame_context_saver_setup.
5753 * inferior.h (struct dummy_frame_context_saver): New declaration.
5754 (get_return_value): Add parameter ctx_saver.
5755 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5756 get_return_value caller.
5758 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5760 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5761 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5762 (remove_dummy_frame): Process dtor_list.
5763 (pop_dummy_frame): Process dtor_list.
5764 (register_dummy_frame_dtor): Maintain dtor_list.
5765 (find_dummy_frame_dtor): Handle dtor_list.
5766 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5769 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5771 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5773 (compile_object_run): Update do_module_cleanup caller.
5774 * dummy-frame.c: Include infcall.h.
5775 (struct dummy_frame): Update dtor comment.
5776 (remove_dummy_frame): Call dtor.
5777 (pop_dummy_frame): Update dtor caller.
5778 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5781 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5785 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5787 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5788 Xmethods now being able to specify a result type to that new
5791 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5793 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5794 first before resizing the window.
5795 * tui/tui.c (tui_enable): Likewise.
5797 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5799 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5800 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5801 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5802 dummy_dtor parameter.
5803 * infcall.h: Include dummy-frame.h.
5804 (call_function_by_hand_dummy_dtor_ftype): Remove.
5805 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5808 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5811 * top.c (history_size_setshow_var): Change type to signed.
5812 Initialize to -2. Update documentation.
5813 (set_readline_history_size): Define.
5814 (set_history_size_command): Use it. Remove logic for handling
5816 (init_history): Use set_readline_history_size(). Test for a
5817 value of -2 instead of 0 when determining whether to set a
5818 default history size.
5819 (init_main): Decode the argument of the "size" command as a
5820 zuinteger_unlimited.
5822 2015-05-12 Doug Evans <dje@google.com>
5824 * dwarf2read.c (struct file_entry): Tweak comments.
5825 (get_debug_line_section): Tweak comments.
5827 2015-05-12 Don Breazeal <donb@codesourcery.com>
5829 * NEWS: Announce fork support in the RSP and support
5830 for fork debugging in extended mode.
5832 2015-05-12 Don Breazeal <donb@codesourcery.com>
5834 * remote.c (remote_insert_fork_catchpoint): New function.
5835 (remote_remove_fork_catchpoint): New function.
5836 (remote_insert_vfork_catchpoint): New function.
5837 (remote_remove_vfork_catchpoint): New function.
5838 (pending_fork_parent_callback): New function.
5839 (remove_new_fork_child): New function.
5840 (remote_update_thread_list): Call remote_notif_get_pending_events
5841 and remove_new_fork_child.
5842 (extended_remote_kill): Kill fork child when killing the
5843 parent before follow_fork completes.
5844 (init_extended_remote_ops): Initialize target vector with
5845 new fork catchpoint functions.
5847 2015-05-12 Don Breazeal <donb@codesourcery.com>
5849 * remote.c (remove_vfork_event_p): New function.
5850 (remote_follow_fork): Add vfork event type to event checking.
5851 (remote_parse_stop_reply): New stop reasons "vfork" and
5852 "vforkdone" for RSP 'T' Stop Reply Packet.
5854 2015-05-12 Don Breazeal <donb@codesourcery.com>
5856 * linux-nat.c (linux_nat_ptrace_options): New function.
5857 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5858 Call linux_nat_ptrace_options and use different argument to
5859 linux_enable_event_reporting.
5860 (_initialize_linux_nat): Delete call to
5861 linux_ptrace_set_additional_flags.
5862 * nat/linux-ptrace.c (current_ptrace_options): Rename to
5863 supported_ptrace_options.
5864 (additional_flags): Delete variable.
5865 (linux_check_ptrace_features): Use supported_ptrace_options.
5866 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5867 Likewise, and remove additional_flags check.
5868 (linux_enable_event_reporting): Change 'attached' argument to
5869 'options'. Use supported_ptrace_options.
5870 (ptrace_supports_feature): Change comment. Use
5871 supported_ptrace_options.
5872 (linux_ptrace_set_additional_flags): Delete function.
5873 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5874 Delete function prototype.
5875 * remote.c (remote_fork_event_p): New function.
5876 (remote_detach_pid): New function.
5877 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5878 if doing detach-on-fork.
5879 (remote_follow_fork): New function.
5880 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5881 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5882 (init_extended_remote_ops): Initialize to_follow_fork.
5884 2015-05-12 Don Breazeal <donb@codesourcery.com>
5886 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5887 from static to extern.
5888 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5889 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5890 * PACKET_vfork_event_feature>: New enumeration constants.
5891 (remote_protocol_features): Add table entries for new packets.
5892 (remote_query_supported): Add new feature queries to qSupported
5895 2015-05-12 Gary Benson <gbenson@redhat.com>
5897 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5898 for fake PIDs as well as real ones.
5899 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5901 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5903 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5904 * python/py-value.c (valpy_reference_value): New function.
5905 (valpy_const_value): Likewise.
5906 (value_object_methods): Add new methods.
5907 * value.c (make_cv_value): New function.
5908 * value.h (make_cv_value): Declare.
5910 2015-05-08 Yao Qi <yao@codesourcery.com>
5911 Sandra Loosemore <sandra@codesourcery.com>
5913 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5914 to 'lh->include_dirs' before accessing to it.
5915 (psymtab_include_file_name): Likewise.
5916 (dwarf_decode_lines_1): Likewise.
5917 (dwarf_decode_lines): Likewise.
5918 (file_file_name): Likewise.
5920 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5922 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5923 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5924 (nios2_linux_rt_sigreturn_init): Adjust base address of
5927 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5929 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5930 "trap 31" as the breakpoint instruction on all targets.
5932 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5934 * infcmd.c (print_return_value): Remove unused declaration.
5936 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5938 * dwarf2read.c (attr_to_dynamic_prop)
5939 <DW_AT_data_member_location>: Use read_type_die isntead of
5942 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5944 * ada-lang.c (ada_convert_actual): Add handling of formals
5945 passed inside an aligner type.
5947 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5949 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5951 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5954 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5955 Print xmethod matcher status.
5957 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5959 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5960 register in the regcache when treating the PSWM register, and vice
5963 2015-05-07 Gary Benson <gbenson@redhat.com>
5965 * linux-thread-db.c (struct thread_db_info)
5966 <td_ta_map_id2thr_p>: Remove field.
5967 (try_thread_db_load_1): Remove initialization for the above.
5969 2015-05-07 Gary Benson <gbenson@redhat.com>
5971 * linux-thread-db.c (struct thread_db_info)
5972 <td_thr_validate_p>: Remove field.
5973 (try_thread_db_load_1): Remove initialization for the above.
5975 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 * compile/compile-object-load.c (compile_object_load): Support
5980 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5983 const. Use new variables for the const compatibility.
5984 (eval_compile_command): Make the cmd_string parameter const.
5985 * compile/compile.h (eval_compile_command): Make the cmd_string
5988 2015-05-06 Joel Brobecker <brobecker@adacore.com>
5990 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5992 * top.c (deprecated_init_ui_hook): Delete.
5993 (gdb_init): Remove handling of deprecated_init_ui_hook.
5994 * interps.c (clear_interpreter_hooks): Remove handling of
5995 deprecated_init_ui_hook.
5996 * main.c (captured_main): Update comment.
5998 2015-05-06 Joel Brobecker <brobecker@adacore.com>
6000 * solib.c (_initialize_solib): Add "info dll" alias creation.
6001 * windows-nat.c (set_windows_aliases): Delete.
6002 (_initialize_windows_nat): Remove deprecated_init_ui_hook
6004 * NEWS: Add news entry about "info dll" now being available
6007 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6009 * ada-lang.c (value_assign_to_component): Reformat and improve
6010 documentation. Remove all trailing spaces.
6012 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6014 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6015 Stop counting inlined frames as soon as an out-of-line function
6018 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
6020 * dwarf2read.c (inherit_abstract_dies): Skip
6021 DW_TAG_GNU_call_site dies while inheriting children of an
6022 abstract DIE into a scope.
6023 (read_lexical_block_scope): Inherit abstract DIE's for
6026 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6028 * ada-valprint.c (val_print_packed_array_elements): Delete
6029 variable "len". Add a type-length check when comparing two
6030 consecutive elements of the array. Use the element's actual
6031 length in call to value_contents_eq.
6032 * ada-lang.c (ada_value_primitive_packed_val): Always return
6033 a value whose type has been resolved.
6035 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6037 * ada-lang.c (ada_value_primitive_packed_val): Recompute
6038 BIT_SIZE and LEN if the size of the resolved type is smaller
6039 than BIT_SIZE * HOST_CHAR_BIT.
6041 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6043 * ada-lang.c (ada_value_primitive_packed_val): Use a more
6044 correct address in call to value_at. Adjust call to
6045 value_address accordingly.
6047 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6049 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
6052 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6054 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6055 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6057 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6058 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6059 (resolve_dynamic_type_internal): Set pinfo.valaddr.
6060 Add handling of addr_stack->valaddr.
6061 (resolve_dynamic_type): Add "valaddr" parameter.
6062 Set pinfo.valaddr field.
6063 * ada-lang.c (ada_discrete_type_high_bound): Update call to
6064 resolve_dynamic_type.
6065 (ada_discrete_type_low_bound): Likewise.
6066 * findvar.c (default_read_var_value): Likewise.
6067 * value.c (value_from_contents_and_address): Likewise.
6069 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6071 * gdbtypes.c (resolve_dynamic_array): Use
6072 create_array_type_with_stride instead of create_array_type.
6074 2015-04-30 DJ Delorie <dj@redhat.com>
6076 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6079 2015-04-29 Doug Evans <dje@google.com>
6082 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6083 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6084 EVAL_AVOID_SIDE_EFFECTS for xmethods.
6085 * extension-priv.h (struct extension_language_ops)
6086 <get_xmethod_result_type>: New member.
6087 * extension.c (get_xmethod_result_type): New function.
6088 * extension.h (get_xmethod_result_type): Declare.
6089 * python/py-xmethods.c (get_result_type_method_name): New static
6091 (py_get_result_type_method_name): Ditto.
6092 (gdbpy_get_xmethod_result_type): New function.
6093 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6094 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6095 * python/python.c (python_extension_ops): Add
6096 gdbpy_get_xmethod_result_type.
6097 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6098 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6100 (value_x_unop): Ditto.
6101 * value.c (result_type_of_xmethod): New function.
6102 * value.h (result_type_of_xmethod): Declare.
6104 2015-04-29 Gary Benson <gbenson@redhat.com>
6106 * solib.c (solib_find_1): Allow fd argument to be NULL.
6107 (exec_file_find): Update comment.
6108 (solib_find): Likewise.
6109 * exec.c (exec_file_locate_attach): Use NULL as fd
6110 argument to exec_file_find to avoid having to close
6112 * infrun.c (follow_exec): Likewise.
6114 2015-04-28 Doug Evans <dje@google.com>
6117 * python/lib/gdb/printing.py (register_pretty_printer): Handle
6118 name or __name__ attributes. Handle gdb module as first argument.
6120 2015-04-28 Doug Evans <dje@google.com>
6123 * python/py-prettyprint.c (print_children): Verify result of children
6124 iterator. Provide better error message.
6125 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6126 * python/python.c (gdbpy_print_python_errors_p): New function.
6128 2015-04-28 Doug Evans <dje@google.com>
6130 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6132 2015-04-28 Sasha Smundak <asmundak@google.com>
6134 * NEWS: Mention gdb.Type.optimized_out method.
6135 * python/py-type.c (typy_optimized_out): New function.
6137 2015-04-28 John Baldwin <jhb@FreeBSD.org>
6139 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6141 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6143 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6144 (initialize_utils): Move call of init_page_info() to ...
6145 * top.c (gdb_init): ... here.
6147 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6149 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6150 (tui_sigwinch_handler): Still update our idea of
6151 the terminal's width and height even when TUI is not active.
6153 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6155 * utils.h (set_screen_width_and_height): Declare.
6156 * utils.c (set_screen_width_and_height): Define.
6157 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6159 2015-04-28 Gary Benson <gbenson@redhat.com>
6161 * infrun.c (solist.h): New include.
6162 (follow_exec): Use exec_file_find to prefix execd_pathname
6165 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6167 * tui/tui-source.c (tui_set_source_content): Avoid calling
6168 strcpy() when offset is 0.
6170 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6173 * tui/tui-data.c (tui_free_window): Don't free the locator
6174 window when passed an SRC_WIN or a DISASSEM_WIN.
6176 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6178 * tui/tui-data.h (struct tui_win_element): Forward-declare.
6179 (tui_win_content): Move declaration.
6180 (struct tui_gen_win_info): Give 'content' field the
6181 type tui_win_content.
6182 * tui/tui-data.c (init_content_element): Remove redundant and
6184 (tui_add_content_elements): Remove erroneous cast.
6185 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6187 (tui_get_begin_asm_address): Likewise.
6188 * tui/tui-regs.c (tui_show_registers): Likewise.
6189 (tui_show_register_group): Likewise.
6190 (tui_display_registers_from): Likewise.
6191 (tui_check_register_values): Likewise.
6192 * tui/tui-source.c (tui_set_source_content): Likewise.
6193 (tui_set_source_content_nil): Likewise.
6194 (tui_source_is_displayed): Likewise.
6195 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6196 (tui_set_locator_fullname): Likewise.
6197 (tui_set_locator_info): Likewise.
6198 (tui_show_frame_info): Likewise.
6199 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6200 (tui_show_source_line): Likewise.
6201 (tui_horizontal_source_scroll): Likewise.
6202 (tui_update_breakpoint_info): Likewise.
6203 (tui_set_exec_info_content): Likewise.
6204 (tui_show_exec_info_content): Likewise.
6205 (tui_alloc_source_buffer): Likewise.
6206 (tui_line_is_displayed): Likewise.
6207 (tui_addr_is_displayed): Likewise.
6209 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6211 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6212 event if PL_FLAG_EXEC is set.
6213 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6214 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6215 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6216 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6217 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6219 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6221 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6222 [TDP_RFPPWAIT] New variable fbsd_pending_children.
6223 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6224 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6225 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6226 [PT_LWPINFO] (fbsd_wait): New function.
6227 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6228 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6229 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6230 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6231 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6232 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6233 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6234 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6235 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6237 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6238 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6239 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6240 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6241 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6242 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6243 Set "to_post_attach" to "fbsd_post_attach".
6245 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6247 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6248 (fbsd_find_memory_regions): Mark static.
6249 (fbsd_nat_add_target): New function.
6250 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6251 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6252 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6253 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6254 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6255 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6257 2015-04-27 Gary Benson <gbenson@redhat.com>
6259 * objfiles.c (allocate_objfile): Do not attempt to expand name
6260 if name is a "target:" filename.
6261 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6262 to load auto-load scripts for objfiles with "target:" filenames.
6264 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6266 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6267 (enum s390_vector_abi_kind): New enum.
6268 (struct gdbarch_tdep)<vector_abi>: New field.
6269 (s390_effective_inner_type): Add parameter min_size. Stop
6270 unwrapping if the inner type is smaller than min_size.
6271 (s390_function_arg_float): Adjust call to
6272 s390_effective_inner_type.
6273 (s390_function_arg_vector): New function.
6274 (s390_function_arg_integer): Adjust comment.
6275 (struct s390_arg_state)<vr>: New field.
6276 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6277 arguments according to vector ABI when appropriate.
6278 (s390_push_dummy_call): Initialize the argument state's field
6279 'vr'. Adjust calls to s390_handle_arg.
6280 (s390_register_return_value): Handle vector return values.
6281 (s390_return_value): Apply the "register" return value convention
6282 to a vector when appropriate.
6283 (s390_gdbarch_init): Initialize tdep->vector_abi.
6284 * NEWS: Announce S390 vector ABI support.
6286 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6288 * s390-linux-tdep.c (s390_return_value_convention): Remove
6289 function. Inline its logic...
6290 (s390_return_value): ...here. Instead, move the handling of the
6291 "register" return value convention...
6292 (s390_register_return_value): ...here. New function.
6294 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6297 (is_float_singleton): Remove function. Move the "singleton" part
6299 (s390_effective_inner_type): ...here. New function.
6300 (is_float_like): Remove function. Inline its logic...
6301 (s390_function_arg_float): ...here.
6302 (is_pointer_like, is_integer_like, is_struct_like): Remove
6303 functions. Inline their logic...
6304 (s390_function_arg_integer): ...here.
6305 (s390_function_arg_pass_by_reference): Remove function.
6306 (extend_simple_arg): Remove function.
6307 (alignment_of): Remove function.
6308 (struct s390_arg_state): New structure.
6309 (s390_handle_arg): New function.
6310 (s390_push_dummy_call): Move parameter placement logic to the new
6311 function s390_handle_arg. Call it for calculating the stack area
6312 sizes first, and again for actually writing the parameters.
6314 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6316 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
6317 false if the argument is zero.
6319 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6321 * ada-lang.c (template_to_static_fixed_type): Return input type
6322 when it is already fixed. Cache the input type itself when not
6323 creating a static fixed copy. Make it explicit that we never
6324 molestate the input type.
6325 * gdbtypes.c (resolve_dynamic_struct): Reset the
6326 TYPE_TARGET_TYPE field for resolved copies.
6328 2015-04-27 Joel Brobecker <brobecker@adacore.com>
6330 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6331 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6332 (template_to_static_fixed_type): Call ada_check_typedef only
6335 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6337 * cli/cli-dump.c (srec_dump_command): Add internationalization
6339 (ihex_dump_command): Likewise.
6340 (tekhex_dump_command): Likewise.
6341 (binary_dump_command): Likewise.
6342 (binary_append_command): Likewise.
6344 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6346 * cli/cli-dump.c (verilog_cmdlist): New variable.
6347 (dump_verilog_memory): New function.
6348 (dump_verilog_value): New function.
6349 (verilog_dump_command): New function.
6350 (_initialize_cli_dump): Add new commands to support verilog dump
6352 * NEWS: Add entry for "dump verilog".
6354 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
6356 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6357 descriptive type when there is none.
6359 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6361 * tui/tui-win.c (tui_async_resize_screen): Call
6362 rl_resize_terminal().
6364 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6366 * windows-nat.c (handle_output_debug_string): Don't change
6367 current_event.dwThreadId.
6368 (get_windows_debug_event): Use thread_id, rather than relying on
6369 current_event.dwThreadId being changed.
6371 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6373 * windows-nat.c (windows_continue): Report an error if
6374 ContinueDebugEvent() fails.
6376 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6378 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6380 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6382 * windows-nat.c (get_windows_debug_event): Replace retval with
6383 thread_id throughout. Update stale comment.
6385 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6387 * windows-nat.c (get_windows_debug_event): Don't use ternary
6388 conditional operator.
6390 2015-04-21 Pierre Muller <muller@sourceware.org>
6393 p-exp.y (yylex): Reorganize code to return the matched pattern
6394 for a field of this.
6396 2015-04-21 Gary Benson <gbenson@redhat.com>
6398 * common/fileio.h (fileio_to_host_openflags): New declaration.
6399 * common/fileio.c (fcntl.h): New include.
6400 (fileio_to_host_openflags): New function, factored out from...
6401 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6404 2015-04-21 Kevin Buettner <kevinb@redhat.com>
6406 * rl78-tdep.c (RL78_SP_ADDR): Define.
6407 (opc_reg_to_gdb_regnum): New static function.
6408 (rl78_analyze_prologue): Recognize instructions forming slightly
6409 more interesting prologues.
6411 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6414 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6415 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6416 TYPE_CODE_REF types so that they are not considered as dynamic
6417 depending on the referenced type.
6418 (resolve_dynamic_type_internal): Likewise.
6420 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6423 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6424 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6425 "top_level" parameter.
6426 (resolve_dynamic_type_internal): Remove the unused "top_level"
6427 parameter. Update call to is_dynamic_type_internal.
6428 (is_dynamic_type): Update call to is_dynamic_type_internal.
6429 (resolve_dynamic_range): Update call to
6430 resolve_dynamic_type_internal.
6431 (resolve_dynamic_union): Likewise.
6432 (resolve_dynamic_struct): Likewise.
6433 (resolve_dynamic_type): Likewise.
6435 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6437 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6440 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6442 * reply_mig_hack.awk: Robustify parsing.
6444 * reply_mig_hack.awk: Don't bother to declare an intermediate
6445 function pointer variable.
6447 2015-04-17 Doug Evans <dje@google.com>
6449 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6450 to "exec_displacement" to avoid confusion with inner use of the name.
6452 2015-04-17 Pedro Alves <palves@redhat.com>
6454 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6455 if HW point of TYPE isn't supported.
6457 2015-04-17 Yao Qi <yao.qi@linaro.org>
6458 Pedro Alves <palves@redhat.com>
6460 * target.h (target_can_use_hardware_watchpoint): Update comments.
6461 Remove trailing ";".
6463 2015-04-17 Gary Benson <gbenson@redhat.com>
6465 * remote.c (remote_add_inferior): New argument try_open_exec.
6466 If nonzero, attempt to open the inferior's executable file as
6467 the main executable if no main executable is open already.
6468 All callers updated.
6469 * NEWS: Mention that GDB now supports automatic location and
6470 retrieval of executable + files from remote targets.
6472 2015-04-17 Gary Benson <gbenson@redhat.com>
6474 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6475 * remote.c (PACKET_qXfer_exec_file): Likewise.
6476 (remote_protocol_features): Register the
6477 "qXfer:exec-file:read" feature.
6478 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6479 (remote_pid_to_exec_file): New function.
6480 (init_remote_ops): Initialize to_pid_to_exec_file.
6481 (_initialize_remote): Register new "set/show remote
6482 pid-to-exec-file-packet" command.
6483 * NEWS: Announce new qXfer:exec-file:read packet.
6485 2015-04-17 Gary Benson <gbenson@redhat.com>
6487 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6489 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6490 New function, factored out from...
6491 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6493 2015-04-17 Gary Benson <gbenson@redhat.com>
6495 * exec.c (solist.h): New include.
6496 (exec_file_locate_attach): Prefix absolute executable
6497 paths with gdb_sysroot if set.
6498 * NEWS: Mention that executable paths may be prepended
6501 2015-04-17 Gary Benson <gbenson@redhat.com>
6503 * solist.h (exec_file_find): New declaration.
6504 * solib.c (solib_find_1): New function, factored out from...
6505 (solib_find): ...here.
6506 (exec_file_find): New function.
6508 2015-04-17 Gary Benson <gbenson@redhat.com>
6510 * gdbcore.h (exec_file_locate_attach): New declaration.
6511 * exec.c (exec_file_locate_attach): New function, factored
6513 * infcmd.c (attach_command_post_wait): ...here.
6515 2015-04-17 Mike Frysinger <vapier@gentoo.org>
6517 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6519 2015-04-16 Yao Qi <yao.qi@linaro.org>
6521 * infrun.c (maybe_software_singlestep): Declare.
6522 (displaced_step_fixup): Call maybe_software_singlestep.
6524 2015-04-15 Doug Evans <dje@google.com>
6526 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6528 2015-04-15 Doug Evans <dje@google.com>
6530 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6532 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6534 * python/lib/gdb/command/unwinders.py: Add parentheses.
6536 2015-04-15 Yao Qi <yao.qi@linaro.org>
6538 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6540 2015-04-15 Yao Qi <yao.qi@linaro.org>
6542 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6544 2015-04-15 Yao Qi <yao.qi@linaro.org>
6546 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6547 dsc->insn_size instead of 4.
6549 2015-04-14 Gary Benson <gbenson@redhat.com>
6551 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6552 * minidebug.c (lzma_stat): Likewise.
6553 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6554 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6556 2015-04-13 Stan Shebs <stanshebs@google.com>
6558 * MAINTAINERS: Update my email address.
6560 2015-04-13 John Baldwin <jhb@FreeBSD.org>
6562 * amd64-tdep.c (amd64_target_description): New function.
6563 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6564 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6565 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6566 x86 extended save area.
6567 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6568 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6569 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6570 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6571 "amd64fbsd_read_description".
6572 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6573 (amd64fbsd_supply_xstateregset): New function.
6574 (amd64fbsd_collect_xstateregset): New function.
6575 Add "amd64fbsd_xstateregset".
6576 (amd64fbsd_iterate_over_regset_sections): New function.
6577 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6578 "I386_FBSD_XSAVE_XCR0_OFFSET".
6579 Add "iterate_over_regset_sections" gdbarch method.
6580 Add "core_read_description" gdbarch method.
6581 * i386-tdep.c (i386_target_description): New function.
6582 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6583 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6584 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6585 x86 extended save area.
6586 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6587 * i386bsd-nat.h: Export i386bsd_xsave_len.
6588 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6589 (_initialize_i386fbsd_nat): Set "to_read_description" to
6590 "i386fbsd_read_description".
6591 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6592 (i386fbsd_core_read_description): New function.
6593 (i386fbsd_supply_xstateregset): New function.
6594 (i386fbsd_collect_xstateregset): New function.
6595 Add "i386fbsd_xstateregset".
6596 (i386fbsd_iterate_over_regset_sections): New function.
6597 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6598 "I386_FBSD_XSAVE_XCR0_OFFSET".
6599 Add "iterate_over_regset_sections" gdbarch method.
6600 Add "core_read_description" gdbarch method.
6601 * i386fbsd-tdep.h: New file.
6603 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6605 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6606 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6608 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6610 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6612 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6614 * defs.h (xdb_commands): Remove declaration.
6615 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6616 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6617 * infcmd.c (run_no_args_command, go_command): Remove.
6618 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6619 * infrun.c (xdb_handle_command): Remove.
6620 (_initialize_infrun): Remove xdb_commands for lz and z.
6621 * main.c (xdb_commands): Remove variable.
6622 (captured_main): Remove "xdb" from long_options.
6623 (print_gdb_help): Remove --xdb from help.
6624 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6625 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6626 * stack.c (backtrace_full_command, args_plus_locals_info)
6627 (current_frame_command): Remove.
6628 (_initialize_stack): Remove xdb_commands for t, T and l.
6629 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6630 * thread.c (_initialize_thread): Remove xdb_commands condition.
6631 * tui/tui-layout.c (tui_toggle_layout_command)
6632 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6633 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6634 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6635 (tui_scroll_regs_backward_command): Remove.
6636 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6637 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6638 (_initialize_tui_win): Remove xdb_commands for U and w.
6639 * utils.c (pagination_on_command, pagination_off_command): Remove.
6640 (initialize_utils): Remove xdb_commands for am and sm.
6642 2015-04-10 Pedro Alves <palves@redhat.com>
6644 * infrun.c (displaced_step_fixup): Switch to the event ptid
6645 earlier. If the thread stopped for a watchpoint and the
6646 target/arch has non-continuable watchpoints, cancel the displaced
6648 (resume): Don't start a displaced step if in-line step-over info
6651 2015-04-10 Pedro Alves <palves@redhat.com>
6653 * infrun.c (displaced_step_in_progress): New function.
6654 (do_target_resume): Advise target to report all signals if
6657 2015-04-10 Pedro Alves <palves@redhat.com>
6660 * infrun.c (process_event_stop_test): Don't assume a step-resume
6661 is set if tp->stepped_breakpoint is true.
6663 2015-04-10 Yao Qi <yao.qi@linaro.org>
6665 * arm-tdep.c (install_alu_reg): Update comment.
6666 (thumb_copy_alu_reg): Remove local variable rn. Update
6667 debugging message. Use r2 instead of r1 in the modified
6670 2015-04-10 Pedro Alves <palves@redhat.com>
6673 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6674 linux_displaced_step_location as gdbarch_displaced_step_location
6676 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6677 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6678 * linux-tdep.c (linux_displaced_step_location): New function,
6679 based on ppc_linux_displaced_step_location.
6680 * linux-tdep.h (linux_displaced_step_location): New declaration.
6681 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6682 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6684 (ppc_linux_init_abi): Install linux_displaced_step_location as
6685 gdbarch_displaced_step_location hook, even without Cell/B.E..
6686 (_initialize_ppc_linux_tdep): Don't install
6687 ppc_linux_inferior_created as inferior_created observer.
6688 * s390-linux-tdep.c (s390_gdbarch_init): Install
6689 linux_displaced_step_location as gdbarch_displaced_step_location
6692 2015-04-09 Gary Benson <gbenson@redhat.com>
6694 * common/common-remote-fileio.h: Rename to...
6695 * common/fileio.h: ...this. Update all references.
6696 (remote_fileio_to_fio_error): Rename to...
6697 (host_to_fileio_error): ...this.
6698 (remote_fileio_to_be): Rename to...
6699 (host_to_bigendian): ...this. Update all callers.
6700 (remote_fileio_to_fio_uint): Rename to...
6701 (host_to_fileio_uint): ...this. Update all callers.
6702 (remote_fileio_to_fio_time): Rename to...
6703 (host_to_fileio_time): ...this. Update all callers.
6704 (remote_fileio_to_fio_stat): Rename to...
6705 (host_to_fileio_stat): ...this.
6706 Update all references.
6707 * common/common-remote-fileio.c: Rename to...
6708 * common/fileio.c: ...this. Update all references.
6709 (remote_fileio_to_fio_error): Rename to...
6710 (host_to_fileio_error): ...this. Update all callers.
6711 (remote_fileio_mode_to_target): Rename to...
6712 (fileio_mode_pack): ...this. Update all callers.
6713 (remote_fileio_to_fio_mode): Rename to...
6714 (host_to_fileio_mode): ...this. Update all callers.
6715 (remote_fileio_to_fio_ulong): Rename to...
6716 (host_to_fileio_ulong): ...this. Update all callers.
6717 (remote_fileio_to_fio_stat): Rename to...
6718 (host_to_fileio_stat): ...this. Update all callers.
6720 2015-04-09 Andy Wingo <wingo@igalia.com>
6722 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6723 (frame_functions): Bind gdbscm_frame_read_register to
6724 frame-read-register.
6725 * guile/lib/gdb.scm (frame-read-register): Export.
6727 2015-04-09 Gary Benson <gbenson@redhat.com>
6729 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6731 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6732 New function, factored out the named functions below.
6733 * inf-child.c (gdb/fileio.h): Remove include.
6734 (common-remote-fileio.h): New include.
6735 (inf_child_errno_to_fileio_error): Remove function. Update
6736 all callers to use remote_fileio_to_fio_error.
6737 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6739 2015-04-09 Andy Wingo <wingo@igalia.com>
6741 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6743 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6745 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6746 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6747 * configure: Regenerated.
6749 2015-04-09 Pedro Alves <palves@redhat.com>
6751 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6752 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6753 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6754 * gnulib/import/Makefile.am: Update.
6755 * gnulib/import/Makefile.in: Update.
6756 * gnulib/import/m4/gnulib-cache.m4: Update.
6757 * gnulib/import/m4/gnulib-comp.m4: Update.
6758 * gnulib/import/m4/strtok_r.m4: New file.
6759 * gnulib/import/strtok_r.c: New file.
6761 2015-04-09 Pedro Alves <palves@redhat.com>
6763 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6764 "called too early to check prototype".
6766 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6769 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6770 use a caching mechanism. Adjust comments and code to reflect
6771 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6772 (cmdpy_completer_handle_brkchars): Adjust call to
6773 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6774 (cmdpy_completer): Likewise.
6776 2015-04-08 Yao Qi <yao.qi@linaro.org>
6778 * spu-tdep.c (spu_gdbarch_init): Don't call
6779 set_gdbarch_cannot_step_breakpoint.
6781 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6783 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6785 2015-04-07 Pedro Alves <palves@redhat.com>
6787 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6788 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6789 (delete_exited_threads): New declaration.
6790 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6791 * linux-nat.c (linux_nat_update_thread_list): New function.
6792 (linux_nat_add_target): Install it.
6793 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6794 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6795 (delete_exited_threads): New function.
6797 2015-04-07 Pedro Alves <pedro@codesourcery.com>
6799 * infrun.c (resume) <displaced stepping debug output>: Get the
6800 leader thread's regcache, not resume_ptid's.
6802 2015-04-06 Doug Evans <xdje42@gmail.com>
6804 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6806 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6807 Include symbol domain in debugging output.
6809 2015-04-06 Pedro Alves <palves@redhat.com>
6810 Bernd Edlinger <bernd.edlinger@hotmail.de>
6812 * configure.ac: Remove the mingw32-specific stub-termcap.o
6813 fallback, and instead fallback to the stub termcap on all hosts.
6814 * configure: Regenerate.
6815 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6818 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6820 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6821 "top_level" parameter.
6822 (resolve_dynamic_type_internal): Remove the unused "top_level"
6823 parameter. Update call to is_dynamic_type_internal.
6824 (is_dynamic_type): Update call to is_dynamic_type_internal.
6825 (resolve_dynamic_range): Update call to
6826 resolve_dynamic_type_internal.
6827 (resolve_dynamic_union): Likewise.
6828 (resolve_dynamic_struct): Likewise.
6829 (resolve_dynamic_type): Likewise.
6831 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6833 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6834 TYPE_CODE_REF types so that they are not considered as dynamic
6835 depending on the referenced type.
6836 (resolve_dynamic_type_internal): Likewise.
6838 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6840 * Makefile.in (top_srcdir): New.
6841 * configure: Regenerated.
6843 2015-04-02 Gary Benson <gbenson@redhat.com>
6845 * NEWS: Announce the new default sysroot of "target:".
6847 2015-04-02 Gary Benson <gbenson@redhat.com>
6849 * main.c (captured_main): Set gdb_sysroot to "target:"
6850 if not otherwise set.
6852 2015-04-02 Gary Benson <gbenson@redhat.com>
6854 * exec.c (exec_file_attach): Support "target:" filenames.
6856 2015-04-02 Gary Benson <gbenson@redhat.com>
6858 * solib.c (solib_find): Strip "target:" prefix from sysroot
6859 if accessing local files.
6861 2015-04-02 Gary Benson <gbenson@redhat.com>
6863 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6864 checks and error messages.
6866 2015-04-02 Gary Benson <gbenson@redhat.com>
6868 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6869 (remote_filename_p): Remove declaration.
6870 (remote_bfd_open): Likewise.
6871 * remote.c (remote_bfd_iovec_open): Remove function.
6872 (remote_bfd_iovec_close): Likewise.
6873 (remote_bfd_iovec_pread): Likewise.
6874 (remote_bfd_iovec_stat): Likewise.
6875 (remote_filename_p): Likewise.
6876 (remote_bfd_open): Likewise.
6877 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6878 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6879 (gdb_bfd_open_maybe_remote): Remove function.
6880 (symfile_bfd_open): Replace remote filename check with
6881 target filename check.
6882 (reread_symbols): Use gdb_bfd_open.
6883 * build-id.c (gdbcore.h): New include.
6884 (build_id_to_debug_bfd): Use gdb_bfd_open.
6885 * infcmd.c (attach_command_post_wait): Remove remote filename
6887 * solib.c (solib_find): Replace remote-specific handling with
6888 target-specific handling. Update comments where necessary.
6889 (solib_bfd_open): Replace remote-specific handling with
6890 target-specific handling.
6891 (gdb_sysroot_changed): New function.
6892 (_initialize_solib): Call the above when gdb_sysroot changes.
6893 * windows-tdep.c (gdbcore.h): New include.
6894 (windows_xfer_shared_library): Use gdb_bfd_open.
6896 2015-04-02 Gary Benson <gbenson@redhat.com>
6898 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6899 (is_target_filename): New declaration.
6900 (gdb_bfd_has_target_filename): Likewise.
6901 (gdb_bfd_open): Update documentation comment.
6902 * gdb_bfd.c (target.h): New include.
6903 (gdb/fileio.h): Likewise.
6904 (is_target_filename): New function.
6905 (gdb_bfd_has_target_filename): Likewise.
6906 (fileio_errno_to_host): Likewise.
6907 (gdb_bfd_iovec_fileio_open): Likewise.
6908 (gdb_bfd_iovec_fileio_pread): Likewise.
6909 (gdb_bfd_iovec_fileio_close): Likewise.
6910 (gdb_bfd_iovec_fileio_fstat): Likewise.
6911 (gdb_bfd_open): Use target fileio to access paths prefixed
6912 with "target:" where necessary.
6914 2015-04-02 Gary Benson <gbenson@redhat.com>
6916 * target.h (struct target_ops) <to_filesystem_is_local>:
6918 (target_filesystem_is_local): New macro.
6919 * target-delegates.c: Regenerate.
6920 * remote.c (remote_filesystem_is_local): New function.
6921 (init_remote_ops): Initialize to_filesystem_is_local.
6923 2015-04-02 Gary Benson <gbenson@redhat.com>
6925 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6926 (target_fileio_fstat): New declaration.
6927 * target.c (target_fileio_fstat): New function.
6928 * inf-child.c (inf_child_fileio_fstat): Likewise.
6929 (inf_child_target): Initialize to_fileio_fstat.
6930 * remote.c (init_remote_ops): Likewise.
6932 2015-04-01 Sasha Smundak <asmundak@google.com>
6934 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6935 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6936 (py-unwind.o): New recipe.
6937 * NEWS: mention Python frame unwinding.
6938 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6939 gdb/unwinder.py and gdb/command/unwinder.py
6940 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6942 (execute_unwinders): New function.
6943 * python/lib/gdb/command/unwinders.py: New file.
6944 * python/lib/gdb/unwinder.py: New file.
6945 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6946 (objfpy_dealloc): Decrement frame_unwinders reference count.
6947 (objfpy_initialize): Create frame_unwinders list.
6948 (objfpy_get_frame_unwinders): New function.
6949 (objfpy_set_frame_unwinders): Ditto.
6950 (objfile_getset): Add frame_unwinders attribute to Objfile.
6951 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6952 (pspy_dealloc): Decrement frame_unwinders reference count.
6953 (pspy_initialize): Create frame_unwinders list.
6954 (pspy_get_frame_unwinders): New function.
6955 (pspy_set_frame_unwinders): Ditto.
6956 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6957 * python/py-unwind.c: New file.
6958 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6959 (objpy_get_frame_unwinders): New prototype.
6960 (gdbpy_initialize_unwind): New prototype.
6961 * python/python.c (gdbpy_apply_type_printers): Call
6962 gdbpy_initialize_unwind.
6964 2015-04-01 Pedro Alves <palves@redhat.com>
6966 * infrun.c (resume): Check currently_stepping after clearing
6967 stepped_breakpoint, not before.
6969 2015-04-01 Pedro Alves <palves@redhat.com>
6971 * infrun.c (print_target_wait_results): Print all the ptid
6974 2015-04-01 Pedro Alves <palves@redhat.com>
6976 * infrun.c (keep_going): Also discard cleanups if inserting
6979 2015-04-01 Pedro Alves <palves@redhat.com>
6981 * infrun.c (wait_for_inferior): Install the
6982 finish_thread_state_cleanup cleanup across the whole function, not
6983 just around handle_inferior_event.
6985 2015-04-01 Pedro Alves <palves@redhat.com>
6987 * infrun.c (resume) <step past permanent breakpoint>: Use
6990 2015-04-01 Pedro Alves <palves@redhat.com>
6992 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6994 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6996 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6998 2015-04-01 Pedro Alves <palves@redhat.com>
7000 * linux-thread-db.c (record_thread): Readd the thread to gdb's
7001 list if it was marked exited.
7003 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
7005 * configure: Regenerated.
7007 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7008 Jan Kratochvil <jan.kratochvil@redhat.com>
7009 Oleg Nesterov <oleg@redhat.com>
7012 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
7013 New enum identifying the various options of the coredump_filter
7015 (struct smaps_vmflags): New struct.
7016 (use_coredump_filter): New variable.
7017 (decode_vmflags): New function.
7018 (mapping_is_anonymous_p): Likewise.
7019 (dump_mapping_p): Likewise.
7020 (linux_find_memory_regions_full): New variables
7021 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
7022 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
7023 parsing of its information. Implement memory mapping filtering
7024 based on its contents.
7025 (show_use_coredump_filter): New function.
7026 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
7027 * NEWS: Mention the possibility of using the
7028 '/proc/PID/coredump_filter' file when generating a corefile.
7029 Mention new command 'set use-coredump-filter'.
7031 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7033 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
7034 read_memory_unsigned_integer.
7036 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
7038 * Makefile.in (ZLIB): New.
7039 (ZLIBINC): Likewise.
7040 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
7041 (CLIBS): Add $(ZLIB).
7042 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
7044 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
7045 * top.c (print_gdb_configuration): Remove --with-zlib and
7047 * config.in: Regenerated.
7048 * configure: Likewise.
7050 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7052 * NEWS: Mention info os cpus support.
7053 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7054 (struct osdata_type): Add cpus entry, reorder the entries in
7057 2015-03-31 Matthias Klose <doko@ubuntu.com>
7059 * compile/compile.c (compile_to_object): Allow triplets with or
7062 2015-03-30 Doug Evans <dje@google.com>
7065 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7066 klass in VAR_DOMAIN.
7068 2015-03-30 Gary Benson <gbenson@redhat.com>
7070 * remote.c (remote_mourn_1): Remove function. Update all callers
7071 to use remote_mourn.
7072 (extended_remote_mourn_1): Remove function. Update all callers
7073 to use extended_remote_mourn.
7074 (extended_remote_attach_1): Remove function. Update all callers
7075 to use extended_remote_attach.
7077 2015-03-28 James Bowman <james.bowman@ftdichip.com>
7079 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7080 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7081 (ALLDEPFILES): Add ft32-tdep.c.
7082 * configure.tgt: Add FT32 entry.
7083 * ft32-tdep.c: New file, FT32 target-dependent code.
7084 * ft32-tdep.h: New file, FT32 target-dependent code.
7086 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7091 * printcmd.c (print_command_1): Move expr variable scope.
7093 2015-03-27 Joel Brobecker <brobecker@adacore.com>
7095 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7097 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
7099 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7102 2015-03-26 Joel Brobecker <brobecker@adacore.com>
7104 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7105 exception raised while parsing the probe arguments.
7106 Force parsing to be done using the C language parser.
7107 * expression.h (parse_expression_with_language): Declare.
7108 * parse.c (parse_expression_with_language): New function.
7110 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
7112 * MAINTAINERS (Write After Approval): Add "Jon Turney".
7114 2015-03-26 Andy Wingo <wingo@igalia.com>
7117 * dwarf2read.c (struct partial_die_info): Add has_const_value
7119 (add_partial_symbol): Don't punt on symbols that have const_value
7121 (read_partial_die): Detect DW_AT_const_value.
7123 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7126 * printcmd.c (print_command_1): Move expr variable scope.
7128 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7131 * printcmd.c (validate_format): Make the parameter cmdname const.
7133 2015-03-26 Don Breazeal <donb@codesourcery.com>
7135 * remote.c (_initialize_remote): Update comment.
7137 2015-03-26 Pedro Alves <palves@redhat.com>
7138 Jon TURNEY <jon.turney@dronecode.org.uk>
7140 * coffread.c (coff_symfile_read): When constructing the name of an
7141 import stub symbol from import symbol for amd64, only skip the
7142 char after _imp_ if the target is underscored (like i386) and the
7143 char is indeed the target's leading char.
7145 2015-03-25 Pedro Alves <palves@redhat.com>
7147 * target.h <to_async>: Replace 'callback' and 'context' parameters
7148 with boolean 'enable' parameter.
7149 (target_async): Replace CALLBACK and CONTEXT parameters with
7150 boolean ENABLE parameter.
7151 * inf-loop.c (inferior_event_handler): Adjust.
7152 * linux-nat.c (linux_nat_attach, linux_nat_resume)
7153 (linux_nat_resume): Adjust.
7154 (async_client_callback, async_client_context): Delete.
7155 (handle_target_event): Call inferior_event_handler directly.
7156 (linux_nat_async): Replace 'callback' and 'context' parameters
7157 with boolean 'enable' parameter. Adjust. Remove references to
7158 async_client_callback and async_client_context.
7159 (linux_nat_close): Adjust.
7160 * record-btrace.c (record_btrace_async): Replace 'callback' and
7161 'context' parameters with boolean 'enable' parameter. Adjust.
7162 (record_btrace_resume): Adjust.
7163 * record-full.c (record_full_async): Replace 'callback' and
7164 'context' parameters with boolean 'enable' parameter. Adjust.
7165 (record_full_resume, record_full_core_resume): Adjust.
7166 * remote.c (struct remote_state) <async_client_callback,
7167 async_client_context>: Delete fields.
7168 (remote_start_remote, extended_remote_attach_1, remote_resume)
7169 (extended_remote_create_inferior): Adjust.
7170 (remote_async_serial_handler): Call inferior_event_handler
7172 (remote_async): Replace 'callback' and 'context' parameters with
7173 boolean 'enable' parameter. Adjust.
7174 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7176 * target-delegates.c: Regenerate.
7178 2015-03-25 Gary Benson <gbenson@redhat.com>
7179 Pedro Alves <palves@redhat.com>
7181 * target.c (fileio_ft_t): New typedef, define object vector.
7182 (fileio_fhandles): New static variable.
7183 (is_closed_fileio_fh): New macro.
7184 (lowest_closed_fd): New static variable.
7185 (acquire_fileio_fd): New function.
7186 (release_fileio_fd): Likewise.
7187 (fileio_fd_to_fh): New macro.
7188 (target_fileio_open): Wrap the file descriptor on success.
7189 (target_fileio_pwrite): Updated to use wrapped file descriptor.
7190 (target_fileio_pread): Likewise.
7191 (target_fileio_close): Likewise.
7193 2015-03-24 Pedro Alves <palves@redhat.com>
7195 * thread.c (thread_apply_all_command): Take exited threads into
7198 2015-03-24 Pedro Alves <palves@redhat.com>
7200 * infrun.c (resume, proceed): Mention
7201 switch_back_to_stepped_thread, not switch_back_to_stepping.
7203 2015-03-24 Pedro Alves <palves@redhat.com>
7205 * infrun.c (user_visible_resume_ptid): Rewrite going from
7206 most-locked to unlocked instead of the opposite. Move comment ...
7207 * infrun.h (user_visible_resume_ptid): ... here.
7209 2015-03-24 Pedro Alves <palves@redhat.com>
7211 * linux-nat.c (linux_nat_resume): Output debug logs before trying
7212 to resume the event lwp. Use the lwp's ptid instead of the passed
7213 in (maybe wildcard) ptid.
7214 (stop_wait_callback): Tweak debug log output.
7215 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
7217 (linux_nat_filter_event): In debug output, distinguish a
7218 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
7219 before trying to resume the lwp.
7221 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7223 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7224 pointer indirection.
7225 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7226 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7228 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7230 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7231 Renames DYN_ATTR_DATA_LOCATION.
7232 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7233 DYN_ATTR_DATA_LOCATION.
7234 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7235 instead of DYN_ATTR_DATA_LOCATION.
7237 2015-03-24 Pedro Alves <palves@redhat.com>
7239 * breakpoint.c (until_break_command): Adjust call to proceed.
7240 * gdbthread.h (struct thread_control_state) <stepping_command>:
7242 * infcall.c (run_inferior_call): Adjust call to proceed.
7243 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7244 Adjust calls to proceed.
7245 (set_step_frame): Set the current thread's step_start_function
7247 (step_once): Adjust calls to proceed.
7248 (jump_command, signal_command, until_next_command)
7249 (finish_backward, finish_forward, proceed_after_attach_callback)
7250 (attach_command_post_wait): Adjust calls to proceed.
7251 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7252 (do_target_resume): New function, factored out from ...
7253 (resume): ... here. Remove 'step' parameter. Instead, check
7254 currently_stepping to determine whether the thread should be
7256 (proceed): Remove 'step' parameter and don't set the thread's
7257 step_start_function here. Adjust call to 'resume'.
7258 (handle_inferior_event): Adjust calls to 'resume'.
7259 (switch_back_to_stepped_thread): Use do_target_resume instead of
7261 (keep_going): Adjust calls to 'resume'.
7262 * infrun.h (proceed): Remove 'step' parameter.
7264 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7266 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7268 2015-03-24 Pedro Alves <palves@redhat.com>
7270 * gdbthread.h (struct thread_control_state) <stepping_command>:
7272 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7273 the thread's stepping_command field.
7274 * infrun.c (resume): Check the thread's stepping_command flag to
7275 determine which threads should be resumed. Rename 'entry_step'
7277 (clear_proceed_status_thread): Clear 'stepping_command'.
7278 (schedlock_applies): Change parameter type to struct thread_info
7280 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7281 (switch_back_to_stepped_thread): Adjust calls to
7282 'schedlock_applies'.
7283 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7285 2015-03-24 Pedro Alves <palves@redhat.com>
7287 * infrun.c (step_start_function): Delete and ...
7288 * gdbthread.h (struct thread_control_state) <step_start_function>:
7289 ... now a field here.
7290 * infrun.c (clear_proceed_status_thread): Clear the thread's
7291 step_start_function.
7292 (proceed, process_event_stop_test, print_stop_event): Adjust.
7294 2015-03-24 Pedro Alves <palves@redhat.com>
7296 * infrun.c (proceed): No longer handle negative step.
7298 2015-03-24 Gary Benson <gbenson@redhat.com>
7300 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7301 (x86_linux_prepare_to_resume): Likewise.
7302 * x86-linux-nat.c (x86_linux_new_thread):
7303 Moved to nat/x86-linux.c.
7304 (x86_linux_prepare_to_resume): Likewise.
7305 * nat/x86-linux.c (x86_linux_new_thread): New function.
7306 (x86_linux_prepare_to_resume): Likewise.
7308 2015-03-24 Gary Benson <gbenson@redhat.com>
7310 * nat/x86-linux-dregs.h: New file.
7311 * nat/x86-linux-dregs.c: Likewise.
7312 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7313 (x86-linux-dregs.o): New rule.
7314 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7315 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7316 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7317 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7318 (x86_linux_dr_get): Likewise.
7319 (x86_linux_dr_set): Likewise.
7320 (x86_linux_dr_get_addr): Likewise.
7321 (x86_linux_dr_get_control): Likewise.
7322 (x86_linux_dr_get_status): Likewise.
7323 (update_debug_registers_callback): Likewise.
7324 (x86_linux_dr_set_control): Likewise.
7325 (x86_linux_dr_set_addr): Likewise.
7326 (x86_linux_update_debug_registers): Likewise.
7328 2015-03-24 Gary Benson <gbenson@redhat.com>
7330 * x86-linux-nat.c (x86_linux_update_debug_registers):
7331 New function, factored out from...
7332 (x86_linux_prepare_to_resume): ...this.
7334 2015-03-24 Gary Benson <gbenson@redhat.com>
7336 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7337 (x86_linux_dr_set): Likewise.
7338 (x86_linux_dr_get_addr): Likewise.
7339 (x86_linux_dr_get_control): Likewise.
7340 (x86_linux_dr_get_status): Likewise.
7341 (update_debug_registers_callback): Likewise.
7342 (x86_linux_dr_set_control): Likewise.
7343 (x86_linux_dr_set_addr): Likewise.
7344 (x86_linux_prepare_to_resume): Likewise.
7345 (x86_linux_new_thread): Likewise.
7347 2015-03-24 Gary Benson <gbenson@redhat.com>
7349 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7350 (x86_linux_new_thread): Rename argument.
7352 2015-03-24 Gary Benson <gbenson@redhat.com>
7354 * nat/x86-linux.h: New file.
7355 * nat/x86-linux.c: Likewise.
7356 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7357 (x86-linux.o): New rule.
7358 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7359 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7360 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7361 (lwp_set_arch_private_info): New declaration.
7362 (lwp_arch_private_info): Likewise.
7363 * linux-nat.c (lwp_set_arch_private_info): New function.
7364 (lwp_arch_private_info): Likewise.
7365 * x86-linux-nat.c: Include nat/x86-linux.h.
7366 (arch_lwp_info): Removed structure.
7367 (update_debug_registers_callback):
7368 Use lwp_set_debug_registers_changed.
7369 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7370 and lwp_set_debug_registers_changed.
7371 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7373 2015-03-24 Gary Benson <gbenson@redhat.com>
7375 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7376 (lwp_is_stopped): Likewise.
7377 (lwp_stop_reason): Likewise.
7378 * linux-nat.c (ptid_of_lwp): New function.
7379 (lwp_is_stopped): Likewise.
7380 (lwp_is_stopped_by_watchpoint): Likewise.
7381 * x86-linux-nat.c (update_debug_registers_callback):
7383 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7386 2015-03-24 Gary Benson <gbenson@redhat.com>
7388 * linux-nat.h (linux_stop_lwp): Move declaration to...
7389 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7391 2015-03-24 Gary Benson <gbenson@redhat.com>
7393 * linux-nat.h: Include nat/linux-nat.h.
7394 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7395 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7396 (iterate_over_lwps_ftype): New typedef.
7397 (iterate_over_lwps): New declaration.
7398 * linux-nat.h (iterate_over_lwps): Update comment. Use
7399 iterate_over_lwps_ftype. Update callback return value check.
7401 2015-03-24 Gary Benson <gbenson@redhat.com>
7403 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7404 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7406 2015-03-24 Gary Benson <gbenson@redhat.com>
7408 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7409 * linux-nat.c (current_lwp_ptid): New function.
7410 * x86-linux-nat.c: Include nat/linux-nat.h.
7411 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7412 (x86_linux_dr_get_control): Likewise.
7413 (x86_linux_dr_get_status): Likewise.
7414 (x86_linux_dr_set_control): Likewise.
7415 (x86_linux_dr_set_addr): Likewise.
7417 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7419 PR breakpoints/16466
7420 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7422 2015-03-23 Joel Brobecker <brobecker@adacore.com>
7424 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7425 * ser-unix.c (hardwire_setparity): Likewise.
7427 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7429 * NEWS: Mention set/show serial parity command.
7430 * monitor.c (monitor_open): Call serial_setparity.
7431 * remote.c (remote_open_1): Likewise.
7432 * ser-base.c (ser_base_serparity): New function.
7433 * ser-base.h (ser_base_setparity): Add declaration.
7434 * ser-go32.c (dos_ops): Set "setparity" field.
7435 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7437 (ser_windows_setparity): New function.
7438 (hardwire_ops): Add ser_windows_setparity.
7439 (tty_ops): Add NULL for setparity field.
7440 (pipe_ops): Add ser_base_setparity.
7441 (tcp_ops): Likewise.
7442 * ser-pipe.c (pipe_ops): Likewise.
7443 * ser-tcp.c (tcp_ops): Likewise.
7444 * ser-unix.c (hardwire_setparity): Add declaration.
7445 (hardwire_raw): Don't reset PARENB flag.
7446 (hardwire_setparity): New function.
7447 (hardwire_ops): Add hardwire_setparity.
7448 * serial.c (serial_setparity): New function.
7449 (serial_parity): New global.
7450 (parity_none, parity_odd, parity_even, parity_enums, parity):
7452 (set_parity): New function.
7453 (_initialize_serial): Add set/show serial parity commands.
7454 * serial.h (GDBPARITY_NONE): Define.
7455 (GDBPARITY_ODD): Define.
7456 (GDBPARITY_EVEN): Define.
7457 (serial_setparity) Add declaration.
7458 (struct serial_ops): Add setparity field.
7459 * target.h (serial_parity): Add declaration.
7461 2015-03-23 Keith Seitz <keiths@redhat.com>
7463 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7465 2015-03-23 Keith Seitz <keiths@redhat.com>
7467 * breakpoint.c (parse_breakpoint_sals): Use
7468 linespec_lexer_lex_keyword to ascertain if the user specified
7470 * linespec.c [IF_KEYWORD_INDEX]: Define.
7471 (linespec_lexer_lex_keyword): Export.
7472 (struct ls_parser) <keyword_ok>: Remove.
7473 A keyword is only a keyword if not followed by another keyword.
7474 (linespec_lexer_lex_one): Remove keyword_ok handling.
7475 Add comment explaining why the parsing stream is not advanced
7476 when a keyword is seen.
7477 (parse_linespec): Remove parser->keyword_ok.
7478 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7480 2015-03-23 Keith Seitz <keiths@redhat.com>
7483 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7484 if we find a static method with DW_AT_vtable_elem_location.
7486 2015-03-21 Eli Zaretskii <eliz@gnu.org>
7488 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7489 before the second loop, to avoid undefined behavior. Reported by
7490 Anton Blanchard <anton@samba.org>.
7492 2015-03-20 Keven Boell <keven.boell@intel.com>
7494 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7495 data_location usage to linked list.
7496 (resolve_dynamic_type_internal): Adapt data_location to
7498 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7499 (copy_type_recursive, copy_type): Add copy of linked list.
7500 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7501 (struct dynamic_prop_list): New struct.
7502 * dwarf2read.c (set_die_type): Set data_location data.
7504 2015-03-20 Pedro Alves <palves@redhat.com>
7506 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7507 inner block and make it const.
7508 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7510 2015-03-20 Pedro Alves <palves@redhat.com>
7512 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7513 * breakpoint.h (set_breakpoint_condition): Update declaration.
7515 2015-03-20 Pedro Alves <palves@redhat.com>
7517 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7519 2015-03-20 Pedro Alves <palves@redhat.com>
7521 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7523 2015-03-20 Pedro Alves <palves@redhat.com>
7525 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7527 2015-03-20 Pedro Alves <palves@redhat.com>
7529 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7530 (nto_init_solib_absolute_prefix): Likewise.
7532 2015-03-20 Pedro Alves <palves@redhat.com>
7534 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7535 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7537 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7539 * config/djgpp/README: Remove gdb.hp.
7541 2015-03-20 Yao Qi <yao.qi@linaro.org>
7543 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7544 set_gdbarch_cannot_step_breakpoint.
7546 2015-03-19 Pedro Alves <palves@redhat.com>
7548 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7549 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7550 instead call perror_with_name.
7551 (check_ptrace_stopped_lwp_gone): New function.
7552 (linux_resume_one_lwp): Reimplement as wrapper around
7553 linux_resume_one_lwp_throw that swallows errors if the LWP is
7555 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7556 swallows errors if the LWP is gone. Use
7557 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7559 2015-03-19 Pedro Alves <palves@redhat.com>
7561 * linux-nat.c (status_callback): Return early if the LWP has no
7564 2015-03-19 Pedro Alves <palves@redhat.com>
7566 * linux-nat.c (select_event_lwp_callback): Update comment to no
7567 longer mention SIGTRAP.
7569 2015-03-18 Tristan Gingold <gingold@adacore.com>
7571 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7572 redirection code to ...
7573 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7574 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
7576 2015-03-18 Gary Benson <gbenson@redhat.com>
7578 (remote_protocol_features): Remove the "vFile:fstat" feature.
7579 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7581 2015-03-11 Yao Qi <yao.qi@linaro.org>
7584 * aarch64-linux-tdep.c: Include xml-syscall.h
7585 (aarch64_linux_get_syscall_number): New function.
7586 (aarch64_linux_init_abi): Call
7587 set_gdbarch_get_syscall_number.
7588 * syscalls/aarch64-linux.xml: New file.
7590 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7592 * ser-base.h (ser_base_setstopbits): Change second argument name
7593 from "rate" to "num".
7595 2015-03-17 Gary Benson <gbenson@redhat.com>
7596 Luke Allardyce <lukeallardyce@gmail.com>
7599 * common/common-remote-fileio.h (sys/stat.h): New include.
7600 (stuct stat): Remove forward declaration.
7602 2015-03-16 John Baldwin <jhb@FreeBSD.org>
7604 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7605 before writing core register notes.
7607 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7608 Pedro Alves <palves@redhat.com>
7610 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7611 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7612 (tgoto): Wrap with extern "C".
7614 2015-03-16 Pedro Alves <palves@redhat.com>
7615 Yuanhui Zhang <asmwarrior@gmail.com>
7617 * stub-termcap.c (tputs): Change prototype.
7619 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7620 Pedro Alves <palves@redhat.com>
7622 * windows-nat.c (struct thread_info_struct): Rename to ...
7623 (struct windows_thread_info_struct): ... this.
7624 (thread_info): Rename to ...
7625 (windows_thread_info): ... this.
7628 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7629 Pedro Alves <palves@redhat.com>
7631 * NEWS: New Removed targets and native configurations.
7633 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7636 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7637 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7638 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7639 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7640 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7641 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7642 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7644 * config/ia64/hpux.mh: Remove file.
7645 * config/pa/hpux.mh: Remove file.
7646 * configure: Rebuilt.
7647 * configure.ac (dlgetmodinfo, somread.o): Remove.
7648 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7649 (ia64-*-hpux*): Remove its float format exception.
7650 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7651 * hppa-hpux-nat.c: Remove file.
7652 * hppa-hpux-tdep.c: Remove file.
7653 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7654 Move them here from hppa-tdep.h
7655 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7656 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7657 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7658 Move them to hppa-tdep.c.
7659 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7661 * ia64-hpux-nat.c: Remove file.
7662 * ia64-hpux-tdep.c: Remove file.
7663 * ia64-hpux-tdep.h: Remove file.
7664 * inf-ttrace.c: Remove file.
7665 * inf-ttrace.h: Remove file.
7666 * solib-ia64-hpux.c: Remove file.
7667 * solib-ia64-hpux.h: Remove file.
7668 * solib-pa64.c: Remove file.
7669 * solib-pa64.h: Remove file.
7670 * solib-som.c: Remove file.
7671 * solib-som.h: Remove file.
7672 * somread.c: Remove file.
7674 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7676 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7677 * config.in: Regenerate.
7678 * configure: Regenerate.
7679 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
7681 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7682 enumerate memory regions if present.
7684 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7686 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7687 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7689 (i386fbsd_sigtramp_p): Likewise.
7691 2015-03-12 John Baldwin <jhb@FreeBSD.org>
7693 * MAINTAINERS (Write After Approval): Add John Baldwin.
7695 2015-03-12 Gary Benson <gbenson@redhat.com>
7697 * solib.c (_initialize_solib): Make "set/show sysroot" use
7698 add_setshow_optional_filename_cmd so it can be restored to
7699 empty after being set.
7701 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7703 * Makefile.in (SFILES): New source break-catch-syscall.c.
7704 (COMMON_OBS): New object break-catch-syscall.o.
7705 * break-catch-syscall.c: New file.
7706 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7707 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7708 (struct syscall_catchpoint): Likewise.
7709 (dtor_catch_syscall): Likewise.
7710 (catch_syscall_inferior_data): Likewise.
7711 (struct catch_syscall_inferior_data): Likewise.
7712 (get_catch_syscall_inferior_data): Likewise.
7713 (catch_syscall_inferior_data_cleanup): Likewise.
7714 (insert_catch_syscall): Likewise.
7715 (remove_catch_syscall): Likewise.
7716 (breakpoint_hit_catch_syscall): Likewise.
7717 (print_it_catch_syscall): Likewise.
7718 (print_one_catch_syscall): Likewise.
7719 (print_mention_catch_syscall): Likewise.
7720 (print_recreate_catch_syscall): Likewise.
7721 (catch_syscall_breakpoint_ops): Likewise.
7722 (syscall_catchpoint_p): Likewise.
7723 (create_syscall_event_catchpoint): Likewise.
7724 (catch_syscall_split_args): Likewise.
7725 (catch_syscall_command_1): Likewise.
7726 (is_syscall_catchpoint_enabled): Likewise.
7727 (catch_syscall_enabled): Likewise.
7728 (catching_syscall_number): Likewise.
7729 (catch_syscall_completer): Likewise.
7730 (clear_syscall_counts): Likewise.
7731 (initialize_breakpoint_ops): Move initialization of syscall
7732 catchpoints to break-catch-syscall.c.
7733 (_initialize_breakpoint): Move code related to syscall catchpoints
7734 to break-catch-syscall.c.
7736 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7738 * breakpoint.c (breakpoint_find_if): New function.
7739 * breakpoint.h (breakpoint_find_if): New prototype.
7741 2015-03-11 Gary Benson <gbenson@redhat.com>
7743 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7744 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7745 (remote_fileio_to_host_ulong): Likewise.
7746 (remote_fileio_to_host_mode): Likewise.
7747 (remote_fileio_to_host_time): Likewise.
7748 (remote_fileio_to_host_stat): Likewise.
7749 * remote.c (PACKET_vFile_fstat): New enum value.
7750 (remote_protocol_features): Register the "vFile:fstat" feature.
7751 (remote_hostio_fstat): New function.
7752 (remote_bfd_iovec_stat): Use the above.
7753 (_initialize_remote): Register new "set/show remote
7754 hostio-fstat-packet" command.
7755 * symfile.c (separate_debug_file_exists): Update comment.
7756 * NEWS: Announce new vFile:fstat packet.
7758 2015-03-11 Gary Benson <gbenson@redhat.com>
7760 * common/common-remote-fileio.h: New file.
7761 * common/common-remote-fileio.c: Likewise.
7762 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7763 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7764 (COMMON_OBS): Add common-remote-fileio.o.
7765 (common-remote-fileio.o): New rule.
7766 * remote-fileio.h (common-remote-fileio.h): New include.
7767 * remote-fileio.c (gdb/fileio.h): Do not include.
7768 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7769 (remote_fileio_to_fio_uint): Likewise.
7770 (remote_fileio_to_fio_time): Likewise.
7771 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7772 (remote_fileio_to_fio_mode): Likewise.
7773 (remote_fileio_to_fio_ulong): Likewise.
7774 (remote_fileio_to_fio_stat): Likewise.
7776 2015-03-11 Andy Wingo <wingo@igalia.com>
7778 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7779 we were checking the cached type, not the cached dynamic type.
7781 2015-03-11 Andy Wingo <wingo@igalia.com>
7783 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7784 other strings, as these are on the GC'd heap, and will be
7785 collected along with the smob.
7787 2015-03-11 Andy Wingo <wingo@igalia.com>
7789 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7790 (objfile_functions): Bind gdbscm_objfile_progspace to
7792 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7794 2015-03-11 Andy Wingo <wingo@igalia.com>
7796 * guile/guile.c (_initialize_guile): Disable automatic
7797 finalization, if Guile offers us that possibility.
7798 * guile/guile.c (call_initialize_gdb_module):
7799 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7800 finalizers in appropriate places.
7801 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7802 scm_set_automatic_finalization_enabled.
7803 * configure: Regenerated.
7805 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7807 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7810 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7812 * s390-linux-nat.c (struct arch_lwp_info): New.
7813 (s390_fix_watch_points): Rename to...
7814 (s390_prepare_to_resume): ...this. Skip the PER info update
7815 unless the watch points have changed.
7816 (s390_refresh_per_info, s390_new_thread): New functions.
7817 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7818 s390_fix_watch_points.
7819 (s390_remove_watchpoint): Likewise.
7820 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7821 Register s390_prepare_to_resume.
7823 2015-03-09 Pedro Alves <palves@redhat.com>
7826 2015-03-07 Pedro Alves <palves@redhat.com>
7827 * common/gdb_socket.h: New file.
7828 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7830 (net_open): Use union gdb_sockaddr_u.
7832 2015-03-07 Pedro Alves <palves@redhat.com>
7834 * configure.ac (build_warnings): Move -Wmissing-prototypes
7835 -Wdeclaration-after-statement -Wmissing-parameter-type
7836 -Wold-style-declaration -Wold-style-definition to the C-specific
7838 * configure: Regenerate.
7840 2015-03-07 Pedro Alves <palves@redhat.com>
7842 * common/gdb_socket.h: New file.
7843 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7845 (net_open): Use union gdb_sockaddr_u.
7847 2015-03-07 Pedro Alves <palves@redhat.com>
7849 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7850 (exceptions_state_mc_action_iter)
7851 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7853 [__cplusplus] (try_scope_depth): New global.
7854 [__cplusplus] (exception_try_scope_entry)
7855 (exception_try_scope_exit, gdb_exception_sliced_copy)
7856 (exception_rethrow): New functions.
7857 (throw_exception): In C++ mode, throw
7858 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7859 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7860 (throw_it): In C++ mode, use try_scope_depth.
7861 * common/common-exceptions.h [!__cplusplus]
7862 (exceptions_state_mc_action_iter)
7863 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7865 [__cplusplus] (exception_try_scope_entry)
7866 (exception_try_scope_exit, exception_rethrow): Declare.
7867 [__cplusplus] (struct exception_try_scope): New struct.
7868 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7870 (struct gdb_exception_RETURN_MASK_ALL)
7871 (struct gdb_exception_RETURN_MASK_ERROR)
7872 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7874 2015-03-07 Pedro Alves <palves@redhat.com>
7876 * main.c (handle_command_errors): Remove volatile qualifier from
7879 2015-03-07 Pedro Alves <palves@redhat.com>
7881 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7883 * gdbtypes.c (safe_parse_type): Remove empty line.
7884 (types_deeply_equal):
7885 * guile/scm-frame.c (gdbscm_frame_name):
7886 * linux-thread-db.c (find_new_threads_once):
7887 * python/py-breakpoint.c (bppy_get_commands):
7888 * record-btrace.c (record_btrace_insert_breakpoint)
7889 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7890 (record_btrace_start_replaying): Adjust to avoid code between TRY
7893 2015-03-07 Pedro Alves <palves@redhat.com>
7895 * common/common-exceptions.c (struct catcher) <exception>: No
7896 longer a pointer to volatile exception. Now an exception value.
7897 <mask>: Delete field.
7898 (exceptions_state_mc_init): Remove all parameters. Adjust.
7899 (exceptions_state_mc): No longer pop the catcher here.
7900 (exceptions_state_mc_catch): New function.
7901 (throw_exception): Adjust.
7902 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7904 (exceptions_state_mc_catch): Declare.
7905 (TRY_CATCH): Rename to ...
7906 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7907 (CATCH, END_CATCH): New.
7908 All callers adjusted.
7910 2015-03-07 Tom Tromey <tromey@redhat.com>
7912 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7914 2015-03-07 Pedro Alves <palves@redhat.com>
7916 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7917 (amd64_epilogue_frame_cache): Normal exception handling code.
7918 * break-catch-throw.c (check_status_exception_catchpoint)
7919 (re_set_exception_catchpoint): Ditto.
7920 * cli/cli-interp.c (safe_execute_command):
7921 * cli/cli-script.c (script_from_file): Ditto.
7922 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7924 * compile/compile-object-run.c (compile_object_run): Ditto.
7925 * cp-abi.c (baseclass_offset): Ditto.
7926 * cp-valprint.c (cp_print_value): Ditto.
7927 * exceptions.c (catch_exceptions_with_msg):
7928 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7929 * frame.c (get_frame_address_in_block_if_available): Ditto.
7930 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7931 (i386_sigtramp_frame_cache): Ditto.
7932 * infcmd.c (post_create_inferior): Ditto.
7933 * linespec.c (parse_linespec, find_linespec_symbols):
7934 * p-valprint.c (pascal_object_print_value): Ditto.
7935 * parse.c (parse_expression_for_completion): Ditto.
7936 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7937 * remote.c (remote_get_noisy_reply): Ditto.
7938 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7939 * solib-svr4.c (solib_svr4_r_map): Ditto.
7941 2015-03-06 Gary Benson <gbenson@redhat.com>
7943 * common/common-utils.h (startswith): New inline function.
7944 All places where this logic was used updated to use the above.
7946 2015-03-05 Pedro Alves <palves@redhat.com>
7949 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7950 after reading the breakpoint's shadow memory.
7952 2015-03-05 Mark Kettenis <kettenis@gnu.org>
7954 * hppabsd-nat.c: Remove file.
7955 * hppaobsd-nat.c: New file.
7956 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7958 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7961 2015-03-04 Pedro Alves <palves@redhat.com>
7963 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7964 (target_decr_pc_after_break): Delete declaration.
7965 * target.c (default_target_decr_pc_after_break)
7966 (target_decr_pc_after_break): Delete.
7967 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7968 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7969 * linux-thread-db.c (check_event): Likewise.
7970 * infrun.c (adjust_pc_after_break): Likewise.
7971 * darwin-nat.c (cancel_breakpoint): Likewise.
7972 * aix-thread.c (aix_thread_wait): Likewise.
7973 * target-delegates.c: Regenerate.
7975 2015-03-04 Pedro Alves <palves@redhat.com>
7977 * linux-nat.c (save_sigtrap): Check for breakpoints before
7978 checking watchpoints.
7979 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7980 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7981 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7982 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7983 (linux_nat_stopped_by_sw_breakpoint)
7984 (linux_nat_supports_stopped_by_sw_breakpoint)
7985 (linux_nat_stopped_by_hw_breakpoint)
7986 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7987 (linux_nat_wait_1): Don't re-increment the PC if relying on
7988 SIGTRAP's siginfo->si_code.
7989 (linux_nat_add_target): Install new target methods.
7990 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7991 offset if the target already adjusted the PC.
7992 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7993 (GDB_ARCH_TRAP_BRKPT): New.
7994 (TRAP_HWBKPT): Define if not already defined.
7996 2015-03-04 Pedro Alves <palves@redhat.com>
7998 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7999 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
8001 <stop_reason>: New field.
8002 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
8003 (packet_set_cmd_state): New function.
8004 (remote_protocol_features): Register the "swbreak" and "hwbreak"
8006 (remote_query_supported): If not disabled with the corresponding
8007 "set remote foo-packet" command, report support for the swbreak
8008 and hwbreak features.
8009 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
8011 <stop_reason>: New field.
8012 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
8013 (remote_wait_as): Adjust.
8014 (remote_stopped_by_sw_breakpoint)
8015 (remote_supports_stopped_by_sw_breakpoint)
8016 (remote_stopped_by_hw_breakpoint)
8017 (remote_supports_stopped_by_hw_breakpoint): New functions.
8018 (remote_stopped_by_watchpoint): New function.
8019 (init_remote_ops): Install them.
8020 (_initialize_remote): Register new "set/show remote
8021 swbreak-feature-packet" and "set/show remote
8022 swbreak-feature-packet" commands.
8024 2015-03-04 Pedro Alves <palves@redhat.com>
8026 * btrace.h: Include target/waitstatus.h.
8027 (struct btrace_thread_info) <stop_reason>: New field.
8028 * record-btrace.c (record_btrace_step_thread): Use
8029 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8030 (record_btrace_decr_pc_after_break): Delete.
8031 (record_btrace_stopped_by_sw_breakpoint)
8032 (record_btrace_supports_stopped_by_sw_breakpoint)
8033 (record_btrace_stopped_by_hw_breakpoint)
8034 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
8035 (init_record_btrace_ops): Install them.
8036 * record-full.c (record_full_hw_watchpoint): Delete and replace
8038 (record_full_stop_reason): ... this throughout.
8039 (record_full_exec_insn): Adjust.
8040 (record_full_wait_1): Adjust. No longer re-increment the PC.
8041 (record_full_wait_1): Adjust. Use
8042 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8043 (record_full_stopped_by_watchpoint): Adjust.
8044 (record_full_stopped_by_sw_breakpoint)
8045 (record_full_supports_stopped_by_sw_breakpoint)
8046 (record_full_supports_stopped_by_sw_breakpoint)
8047 (record_full_stopped_by_hw_breakpoint)
8048 (record_full_supports_stopped_by_hw_breakpoint): New functions.
8049 (init_record_full_ops, init_record_full_core_ops): Install them.
8050 * record.c (record_check_stopped_by_breakpoint): New function.
8051 * record.h: Include target/waitstatus.h.
8052 (record_check_stopped_by_breakpoint): New declaration.
8054 2015-03-04 Pedro Alves <palves@redhat.com>
8056 enum lwp_stop_reason -> enum target_stop_reason
8057 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8058 (linux_nat_stopped_by_watchpoint, status_callback)
8059 (linux_nat_wait_1): Adjust.
8060 * linux-nat.h (enum lwp_stop_reason): Delete.
8061 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8062 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8063 * target/waitstatus.h (enum target_stop_reason): New.
8065 2015-03-04 Pedro Alves <palves@redhat.com>
8067 * breakpoint.c (need_moribund_for_location_type): New function.
8068 (bpstat_stop_status): Don't skipping checking moribund locations
8069 of breakpoint types which the target tell caused a stop.
8070 (program_breakpoint_here_p): New function, factored out from ...
8071 (bp_loc_is_permanent): ... this.
8072 (update_global_location_list): Don't create a moribund location if
8073 the target supports reporting stops of the type of the removed
8075 * breakpoint.h (program_breakpoint_here_p): New declaration.
8076 * infrun.c (adjust_pc_after_break): Return early if the target has
8077 already adjusted the PC. Add comments.
8078 (handle_signal_stop): If nothing explains a signal, and the target
8079 tells us the stop was caused by a software breakpoint, check if
8080 there's a breakpoint instruction in the memory. If so, adjust the
8081 PC before presenting the stop to the user. Otherwise, ignore the
8082 trap. If nothing explains a signal, and the target tells us the
8083 stop was caused by a hardware breakpoint, ignore the trap.
8084 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8085 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8086 to_supports_stopped_by_hw_breakpoint>: New fields.
8087 (target_stopped_by_sw_breakpoint)
8088 (target_supports_stopped_by_sw_breakpoint)
8089 (target_stopped_by_hw_breakpoint)
8090 (target_supports_stopped_by_hw_breakpoint): Define.
8091 * target-delegates.c: Regenerate.
8093 2015-03-04 Pedro Alves <palves@redhat.com>
8095 * infrun.c (follow_fork_inferior): Use the whole of the
8096 inferior_ptid and pending_follow.related_pid ptids instead of
8097 building ptids from the process components. Adjust verbose output
8098 to use target_pid_to_str.
8099 * linux-nat.c (linux_child_follow_fork): Use the whole of the
8100 inferior_ptid and pending_follow.related_pid ptids instead of
8101 building ptids from the process components.
8103 2015-03-04 Mark Kettenis <kettenis@gnu.org>
8105 * inf-ptrace.c [PT_GET_PROCESS_STATE]
8106 (inf_ptrace_insert_fork_catchpoint): New function.
8107 (inf_ptrace_remove_fork_catchpoint): New function.
8108 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8110 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8112 * s390-linux-tdep.c (s390_register_name): Return empty string
8113 instead of NULL for registers that shouldn't be visible.
8115 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8117 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8118 XML file for 64-bit targets.
8120 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
8122 * target.h (find_default_create_inferior): Remove declaration.
8123 (find_default_attach): Likewise.
8125 2015-03-03 Pedro Alves <palves@redhat.com>
8127 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8128 Use ptid_get_pid to get the overall process id when resuming all
8131 2015-03-03 Pedro Alves <palves@redhat.com>
8133 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8134 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
8135 * inf-ptrace.c (get_ptrace_pid): New function.
8136 (inf_ptrace_resume): Use it.
8137 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8140 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8142 * nat/linux-btrace.c: Include sys/utsname.h.
8143 (linux_determine_kernel_ptr_bits): New.
8144 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8145 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8148 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8150 * btrace.c (ftrace_update_function): Treat return as tailcall for
8151 "_dl_runtime_resolve".
8153 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8155 * btrace.h (btrace_function) <lbegin, lend>: Remove.
8156 * btrace.c (ftrace_debug): Do not print the line range.
8157 (ftrace_skip_file, ftrace_update_lines): Remove.
8158 (ftrace_new_function): Remove lbegin and lend initialization.
8159 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8160 * record-btrace.c (btrace_compute_src_line_range): New.
8161 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8163 2015-03-02 Pedro Alves <palves@redhat.com>
8165 * infrun.c (follow_exec): Delete all threads of the process except
8166 the event thread. Extended comments.
8168 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8170 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8172 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8174 * utils.h: Remove <stdbool.h> #include.
8175 (producer_is_gcc): Change return type to "int".
8176 * utils.c (producer_is_gcc): Change return type to int.
8177 Return 1 instead of true, and 0 instead of false.
8178 Adjust function documentation accordingly.
8180 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8182 * s390-linux-nat.c (have_regset_vxrs): New static variable.
8183 (s390_linux_fetch_inferior_registers): Handle vector registers, if
8185 (s390_linux_store_inferior_registers): Likewise.
8186 (s390_get_hwcap): Remove function. Embed its logic...
8187 (s390_read_description): ...here. Yield a target description with
8188 vector registers if applicable.
8189 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8190 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8191 "features/s390x-tevx-linux64.c".
8192 (struct gdbarch_tdep) <v0_full_regnum>: New field.
8193 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
8194 for "GNU/Linux-specific registers".
8195 (s390_dwarf_reg_r0l): New enum value.
8196 (s390_dwarf_reg_to_regnum): Support vector registers.
8197 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8198 of GPR lower halves.
8199 (regnum_is_vxr_full): New function.
8200 (s390_register_name): New function.
8201 (s390_pseudo_register_name): Handle v0-v15, which are composed of
8202 f0-f15 and v0l-v15l.
8203 (s390_pseudo_register_type): Likewise.
8204 (s390_pseudo_register_read): Likewise.
8205 (s390_pseudo_register_write): Likewise.
8206 (s390_value_from_register): Account for the fact that values are
8207 placed left-justified in vector registers.
8208 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8209 the vector reggroup and omit them from the general reggroup.
8210 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8211 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8212 (s390_iterate_over_regset_sections): Add iterations for the two
8214 (s390_core_read_description): Yield a target description with
8215 vector registers if applicable.
8216 (s390_gdbarch_init): Handle target descriptions with vector
8217 registers. Add "register_name" gdbarch method.
8218 (_initialize_s390_tdep): Call new tdesc initialization functions.
8219 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8220 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8221 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8222 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8223 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8224 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8225 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8226 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8227 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8228 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8229 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8230 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8231 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8232 (S390_NUM_REGS): Adjust value.
8233 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8234 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8235 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8236 * NEWS: Announce S/390 vector register support.
8238 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8240 * features/s390-tevx-linux64.xml: New file.
8241 * features/s390-vx-linux64.xml: New file.
8242 * features/s390-vx.xml: New file.
8243 * features/s390x-tevx-linux64.xml: New file.
8244 * features/s390x-vx-linux64.xml: New file.
8245 * features/Makefile (WHICH): Add s390-vx-linux64,
8246 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8247 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8248 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8250 * features/s390-tevx-linux64.c: New generated file.
8251 * features/s390-vx-linux64.c: Likewise.
8252 * features/s390x-tevx-linux64.c: Likewise.
8253 * features/s390x-vx-linux64.c: Likewise.
8254 * regformats/s390-tevx-linux64.dat: Likewise.
8255 * regformats/s390-vx-linux64.dat: Likewise.
8256 * regformats/s390x-tevx-linux64.dat: Likewise.
8257 * regformats/s390x-vx-linux64.dat: Likewise.
8259 2015-02-28 Doug Evans <xdje42@gmail.com>
8261 * symtab.h (struct symtab) <next>: Fix comment.
8263 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8265 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8268 2015-02-27 Pedro Alves <palves@redhat.com>
8270 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8272 2015-02-27 Pedro Alves <palves@redhat.com>
8274 * common/common-exceptions.h (exception_none): Declare.
8275 * common/common-exceptions.c (exception_none): Moved from
8277 (exceptions_state_mc_init): Use exception_none.
8278 * exceptions.c (exception_none): Move to
8279 common/common-exceptions.c.
8280 * exceptions.h (exception_none): Move to
8281 common/common-exceptions.h.
8283 2015-02-27 Pedro Alves <palves@redhat.com>
8285 * main.c (catch_command_errors, catch_command_errors_const):
8286 Remove 'mask' argument. Adjust.
8287 (captured_main): Adjust callers.
8289 2015-02-27 Pedro Alves <palves@redhat.com>
8291 * python/python-internal.h: Include "extension-priv.h".
8293 2015-02-27 Pedro Alves <palves@redhat.com>
8295 * breakpoint.h (enum print_stop_action): Move further up in the
8298 2015-02-27 Pedro Alves <palves@redhat.com>
8300 * gdbarch.sh: Include regcache.h.
8301 * gdbarch.h: Regenerate.
8303 2015-02-27 Pedro Alves <palves@redhat.com>
8305 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8306 Remove duplicate const.
8307 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8310 2015-02-27 Pedro Alves <palves@redhat.com>
8312 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8313 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8314 * features/feature_to_c.sh: Tag the generated xml_builtin array
8315 with extern const in C++ mode.
8317 2015-02-27 Tom Tromey <tromey@redhat.com>
8319 * minidebug.c (struct lzma_stream): Rename to ...
8320 (struct gdb_lzma_stream): ... this.
8321 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8323 2015-02-27 Pedro Alves <palves@redhat.com>
8325 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8327 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8328 (mi_cmd_stack_list_variables): Use it.
8330 2015-02-27 Pedro Alves <palves@redhat.com>
8332 * x86-linux-nat.c (u_debugreg_offset): New function.
8333 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8335 2015-02-27 Pedro Alves <palves@redhat.com>
8337 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8339 Include break-common.h.
8341 2015-02-27 Tom Tromey <tromey@redhat.com>
8342 Pedro Alves <palves@redhat.com>
8344 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8345 local used to iterate over enums.
8346 * completer.c (signal_completer): Likewise.
8347 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8348 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8349 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8350 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8351 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8352 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8353 * tui-wingeneral.c (tui_refresh_all): Likewise.
8355 2015-02-27 Pedro Alves <palves@redhat.com>
8357 * target.h: Include "infrun.h".
8359 2015-02-27 Pedro Alves <palves@redhat.com>
8361 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8363 2015-02-27 Pedro Alves <palves@redhat.com>
8365 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8367 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8369 2015-02-27 Pedro Alves <palves@redhat.com>
8371 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8372 cli_mld_erase_entire_line, and make it extern "C".
8373 * common/common-defs.h (EXTERN_C): New.
8374 * completer.c (_rl_completion_prefix_display_length)
8375 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8376 out of gdb_display_match_list_1.
8377 (_rl_qsort_string_compare): Move declaration out of
8378 gdb_display_match_list_1, and make it extern "C".
8379 * defs.h (re_comp): Use EXTERN_C.
8380 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8381 and make it extern "C".
8382 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8383 and make it extern "C".
8384 (main): Move declaration out of maintenance_set_profile_cmd.
8385 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8388 2015-02-27 Pedro Alves <palves@redhat.com>
8390 * python/python.c (GdbMethods): Rename to ...
8391 (python_GdbMethods): ... this and make extern.
8392 (GdbModuleDef): Rename to ...
8393 (python_GdbModuleDef): ... this and make extern.
8395 2015-02-27 Pedro Alves <palves@redhat.com>
8397 * record-btrace.c (set_record_btrace_cmdlist)
8398 (show_record_btrace_cmdlist): Remove redefinitions.
8400 2015-02-27 Tom Tromey <tromey@redhat.com>
8401 Pedro Alves <palves@redhat.com>
8403 * dwarf2-frame.c (enum cfa_how_kind, struct
8404 dwarf2_frame_state_reg_info): Move out of struct
8406 * dwarf2read.c (struct tu_stats): Move out of struct
8408 (struct file_entry): Move out of struct line_header.
8409 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8410 typedef_field_list): Move out of struct field_info.
8411 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8412 Move out of struct dynamic_prop.
8413 (union type_owner, union field_location, struct field, struct
8414 range_bounds, union type_specific): Move out of struct main_type.
8415 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8416 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8417 (struct call_site_target, union call_site_parameter_u, struct
8418 call_site_parameter): Move out of struct call_site.
8419 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8421 (enum srcdest_kind): Move out of struct srcdest.
8422 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8423 * prologue-value.h (enum prologue_value_kind): Move out of struct
8425 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8427 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8428 out of struct field_info.
8429 * symfile.h (struct other_sections): Move out of struct
8431 * symtab.c (struct symbol_cache_slot): Move out struct
8433 * target-descriptions.c (enum tdesc_type_kind): Move out of
8434 typedef struct tdesc_type.
8435 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8436 struct tui_line_or_address.
8437 * value.c (enum internalvar_kind, union internalvar_data): Move
8438 out of struct internalvar.
8439 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8442 2015-02-27 Tom Tromey <tromey@redhat.com>
8443 Pedro Alves <palves@redhat.com>
8445 Rename symbols whose names are reserved C++ keywords throughout.
8447 2015-02-27 Pedro Alves <palves@redhat.com>
8449 * Makefile.in (COMPILER): New, get it from autoconf.
8450 (COMPILE.pre, CC_LD): Use COMPILER.
8451 (CXX): Get from autoconf instead.
8452 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8453 * acinclude.m4: Include build-with-cxx.m4.
8454 * build-with-cxx.m4: New file.
8455 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8456 Disable -Werror by default if building in C++ mode.
8457 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8458 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8459 Run supported-warning-flags tests with the C++ compiler.
8460 Save/restore CXXFLAGS too.
8461 * configure: Regenerate.
8463 2015-02-27 Pedro Alves <palves@redhat.com>
8465 * libiberty.m4: New file.
8466 * acinclude.m4: Include libiberty.m4.
8467 * configure.ac: Call libiberty_INIT.
8468 * config.in, configure: Regenerate.
8470 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8472 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8473 31-bit targets, but 64-bit targets as well.
8474 (s390_gnu_triplet_regexp): New function.
8475 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8476 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8479 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
8481 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8482 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8483 from CONTEXT_DEBUGGER.
8485 2015-02-26 Doug Evans <dje@google.com>
8487 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8489 (set_type_vptr_fieldno): Ditto.
8490 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8491 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8493 2015-02-26 Pedro Alves <palves@redhat.com>
8495 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8496 * complaints.c (vcomplaint): Pass argument FMT directly to
8497 printf-like functions instead of complaint->fmt.
8498 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8499 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8500 * compile/compile-loc2c.c (pushf, unary, binary): Add
8502 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8504 (BINARY): Pass string literal as format string to 'binary'.
8505 * compile/compile-object-load.c (link_callbacks_einfo): Add
8507 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8509 2015-02-26 Pedro Alves <palves@redhat.com>
8511 * windows-termcap.c: Rename to ...
8512 * stub-termcap.c: ... this. Adjust header line.
8513 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8515 * configure: Regenerate.
8516 * configure.ac: Refer to stub-termcap.o instead of
8518 * gdb_curses.h: Mention stub-termcap.c instead of
8521 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8523 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8524 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8526 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8528 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8530 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8532 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8533 bfd_canonicalize_symtab.
8535 2015-02-25 John Baldwin <jhb@FreeBSD.org>
8537 * amd64fbsd-nat.c: Include sys/user.h.
8538 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8539 instead of KERN_PS_STRINGS to locate the signal trampoline.
8540 * i386fbsd-nat.c: Include sys/user.h.
8541 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8542 instead of KERN_PS_STRINGS to locate the signal trampoline.
8543 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8544 (amd64fbsd_sigtramp_p): New.
8545 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8546 longer set default values.
8547 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8548 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8549 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8550 (i386fbsd_freebsd4_sigtramp_start)
8551 (i386fbsd_freebsd4_sigtramp_middle)
8552 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8553 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8554 (i386fbsd_sigtramp_p): New.
8555 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8556 longer set default values.
8557 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8559 2015-02-25 John Baldwin <jhb@freebsd.org>
8561 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8562 get_frame_register instead of frame_unwind_register_unsigned.
8564 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8567 * compile/compile-c-support.c (c_compute_program): Change // comment.
8568 * compile/compile-object-load.c (setup_sections): Change // comment.
8570 2015-02-26 Joel Brobecker <brobecker@adacore.com>
8573 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8575 2015-02-23 Pedro Alves <palves@redhat.com>
8577 * remote.c (skip_to_semicolon): New function.
8578 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8579 special case the stop reasons that look like hex numbers
8580 upfront. Instead handle real register numbers after matching
8581 all the known stop reasons.
8583 2015-02-21 Doug Evans <dje@google.com>
8585 PR c++/17976, symtab/17821
8586 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8587 is_in_anonymous. All callers updated.
8588 (find_symbol_in_baseclass): Ditto.
8589 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8590 for symbols in an anonymous namespace.
8591 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8592 DW_AT_name directly.
8593 (dwarf2_name): Convert missing namespace name to
8594 CP_ANONYMOUS_NAMESPACE_STR.
8596 2015-02-20 Pedro Alves <palves@redhat.com>
8598 * linux-nat.c (linux_handle_extended_wait): Call
8599 thread_db_notice_clone whenever a new clone LWP is detected.
8600 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8602 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8603 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8604 (linux_unstop_all_lwps): Declare.
8605 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8606 (thread_get_info_callback): Delete.
8607 (thread_from_lwp): Use td_thr_get_info and record_thread.
8608 (thread_db_attach_lwp): Delete.
8609 (thread_db_notice_clone): New function.
8610 (try_thread_db_load_1): If /proc is mounted and shows the
8611 process'es task list, walk over all LWPs and call thread_from_lwp
8612 instead of relying on td_ta_thr_iter.
8613 (attach_thread): Don't call check_thread_signals here. Split the
8614 tail part of the function (which adds the thread to the core GDB
8616 (record_thread): ... this function. Call check_thread_signals
8618 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8619 call thread_from_lwp.
8620 (thread_db_update_thread_list): Rename to ...
8621 (thread_db_update_thread_list_org): ... this.
8622 (thread_db_update_thread_list): New function.
8623 (thread_db_find_thread_from_tid): Delete.
8624 (thread_db_get_ada_task_ptid): Simplify.
8625 * nat/linux-procfs.c: Include <sys/stat.h>.
8626 (linux_proc_task_list_dir_exists): New function.
8627 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8629 2015-02-20 Pedro Alves <palves@redhat.com>
8631 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8632 main LWP. Handle the case of waitpid returning 0 if we're already
8633 attached to the LWP. Don't set the LWP's last_resume_kind to
8634 resume_stop if we already knew about the LWP.
8635 (linux_nat_filter_event): Add debug logs.
8637 2015-02-20 Pedro Alves <palves@redhat.com>
8639 * target.h (forward_target_decr_pc_after_break): Delete
8642 2015-02-20 Pedro Alves <palves@redhat.com>
8645 * linux-thread-db.c (thread_get_info_callback): Return early if
8646 the thread's lwp id is -1.
8648 2015-02-20 Joel Brobecker <brobecker@adacore.com>
8652 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
8654 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8655 (dtrace_get_probes) Change type of variable 'dof'.
8657 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8659 PR breakpoints/16812
8660 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8661 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8662 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8664 2015-02-19 David Taylor <dtaylor@emc.com>
8666 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8668 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8670 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8672 (tui_putc): Don't call tui_handle_resize_during_io.
8673 (tui_getc): Likewise.
8674 (tui_mld_getc): Likewise.
8675 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8676 (tui_sigwinch_token): New static variable.
8677 (tui_initialize_win): Adjust documentation. Set
8679 (tui_async_resize_screen): New asynchronous callback.
8680 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8681 invoke tui_async_resize_screen.
8683 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8685 * configure: Regenerated.
8686 * configure.ac: Use GDB_AC_TRANSFORM.
8687 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8688 * acinclude.m4: sinclude transform.m4.
8689 * transform.m4: New file.
8690 (GDB_AC_TRANSFORM): New macro.
8692 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8694 * NEWS: Announce the support for DTrace SDT probes.
8696 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8698 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8699 (amd64_dtrace_parse_probe_argument): New function.
8700 (amd64_dtrace_probe_is_enabled): Likewise.
8701 (amd64_dtrace_enable_probe): Likewise.
8702 (amd64_dtrace_disable_probe): Likewise.
8703 (amd64_linux_init_abi): Register the
8704 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8705 `gdbarch_dtrace_disable_probe' and
8706 `gdbarch_dtrace_probe_is_enabled' hooks.
8707 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8708 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8709 (amd64_dtrace_enable_probe_sequence): Likewise.
8710 (amd64_dtrace_disable_probe_sequence): Likewise.
8712 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8714 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8715 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8716 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8718 * Makefile.in (SFILES): dtrace-probe.c added.
8719 * configure: Regenerate.
8720 * dtrace-probe.c: New file.
8721 (SHT_SUNW_dof): New constant.
8722 (dtrace_probe_type): New enum.
8723 (dtrace_probe_arg): New struct.
8724 (dtrace_probe_arg_s): New typedef.
8725 (struct dtrace_probe_enabler): New struct.
8726 (dtrace_probe_enabler_s): New typedef.
8727 (dtrace_probe): New struct.
8728 (dtrace_probe_is_linespec): New function.
8729 (dtrace_dof_sect_type): New enum.
8730 (dtrace_dof_dofh_ident): Likewise.
8731 (dtrace_dof_encoding): Likewise.
8732 (DTRACE_DOF_ENCODE_LSB): Likewise.
8733 (DTRACE_DOF_ENCODE_MSB): Likewise.
8734 (dtrace_dof_hdr): New struct.
8735 (dtrace_dof_sect): Likewise.
8736 (dtrace_dof_provider): Likewise.
8737 (dtrace_dof_probe): Likewise.
8738 (DOF_UINT): New macro.
8739 (DTRACE_DOF_PTR): Likewise.
8740 (DTRACE_DOF_SECT): Likewise.
8741 (dtrace_process_dof_probe): New function.
8742 (dtrace_process_dof): Likewise.
8743 (dtrace_build_arg_exprs): Likewise.
8744 (dtrace_get_arg): Likewise.
8745 (dtrace_get_probes): Likewise.
8746 (dtrace_get_probe_argument_count): Likewise.
8747 (dtrace_can_evaluate_probe_arguments): Likewise.
8748 (dtrace_evaluate_probe_argument): Likewise.
8749 (dtrace_compile_to_ax): Likewise.
8750 (dtrace_probe_destroy): Likewise.
8751 (dtrace_gen_info_probes_table_header): Likewise.
8752 (dtrace_gen_info_probes_table_values): Likewise.
8753 (dtrace_probe_is_enabled): Likewise.
8754 (dtrace_probe_ops): New variable.
8755 (info_probes_dtrace_command): New function.
8756 (_initialize_dtrace_probe): Likewise.
8757 (dtrace_type_name): Likewise.
8759 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8761 * gdbarch.sh (dtrace_parse_probe_argument): New.
8762 (dtrace_probe_is_enabled): Likewise.
8763 (dtrace_enable_probe): Likewise.
8764 (dtrace_disable_probe): Likewise.
8765 * gdbarch.c: Regenerate.
8766 * gdbarch.h: Regenerate.
8768 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8770 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8771 stap_probe_ops for `enable_probe' and `disable_probe'.
8772 * probe.c (enable_probes_command): New function.
8773 (disable_probes_command): Likewise.
8774 (_initialize_probe): Define the cli commands `enable probe' and
8776 (parse_probe_linespec): New function.
8777 (info_probes_for_ops): Use parse_probe_linespec.
8778 * probe.h (probe_ops): New hooks `enable_probe' and
8781 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8783 * probe.c (compute_probe_arg): Moved from stap-probe.c
8784 (compile_probe_arg): Likewise.
8785 (probe_funcs): Likewise.
8786 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8787 (compile_probe_arg): Likewise.
8788 (probe_funcs): Likewise.
8790 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8792 * probe.c (print_ui_out_not_applicables): New function.
8793 (exists_probe_with_pops): Likewise.
8794 (info_probes_for_ops): Do not include column headers for probe
8795 types for which no probe has been actually found on any object.
8796 Also invoke `print_ui_out_not_applicables' in order to match the
8797 column rows with the header when probes of several types are
8799 Print the "Type" column.
8800 * probe.h (probe_ops): Added a new probe operation `type_name'.
8801 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8802 (stap_type_name): New function.
8804 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8806 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8807 (key_is_command_char): Delete.
8809 2015-02-17 Pedro Alves <palves@redhat.com>
8811 * tui/tui.c (tui_enable): Resize windows before anything
8812 might show a window.
8814 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8817 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8818 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8820 * aarch64-tdep.h (tdesc_aarch64): Declare.
8822 2015-02-12 Mark Wielaard <mjw@redhat.com>
8824 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8826 2015-02-13 Doug Evans <dje@google.com>
8828 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8829 anonymous_namespace to is_in_anonymous for consistency with the rest
8831 (cp_lookup_bare_symbol): Fix typo in comment.
8832 (cp_search_static_and_baseclasses): Ditto.
8833 (search_symbol_list): Use vertical space in comment better.
8834 (reset_directive_searched): Ditto. Fix typo.
8835 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8837 2015-02-13 Yao Qi <yao.qi@arm.com>
8839 * MAINTAINERS: Update my email address.
8841 2015-02-12 Doug Evans <dje@google.com>
8843 * symtab.c (completion_list_add_name): Fix memory leak.
8845 2015-02-12 Doug Evans <dje@google.com>
8847 * completer.c (complete_line): Remove incorrect comment.
8849 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8851 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8852 (py_print_frame): Use RETURN_MASK_ERROR.
8854 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8856 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8857 function comment. Wrap all function that can throw in cleanups.
8858 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8861 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8863 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8864 Remove the error label.
8866 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8868 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8869 with goto first, indent the former else codepath left. Put variable
8870 'elided' to a new inner block.
8872 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8874 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8876 2015-02-11 Pedro Alves <palves@redhat.com>
8878 * xcoffread.c (within_function): Delete.
8880 2015-02-11 Tom Tromey <tromey@redhat.com>
8881 Pedro Alves <palves@redhat.com>
8883 * breakpoint.c (base_breakpoint_ops): Delete.
8884 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8885 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8886 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8887 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8888 * python/py-arch.c (arch_object_type): Make extern.
8889 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8890 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8891 * python/py-cmd.c (cmdpy_object_type): Make extern.
8892 * python/py-continueevent.c (continue_event_object_type)
8893 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8894 parameter. Update all callers.
8895 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8896 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8897 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8898 * python/py-function.c (fnpy_object_type): Make extern.
8899 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8900 * python/py-infevents.c (call_pre_event_object_type)
8901 (inferior_call_post_event_object_type).
8902 (memory_changed_event_object_type): Make extern.
8903 * python/py-infthread.c (thread_object_type): Make extern.
8904 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8905 * python/py-linetable.c (linetable_entry_object_type)
8906 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8907 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8908 (clear_objfiles_event_object_type): Make extern.
8909 * python/py-objfile.c (objfile_object_type): Make extern.
8910 * python/py-param.c (parmpy_object_type): Make extern.
8911 * python/py-progspace.c (pspace_object_type): Make extern.
8912 * python/py-signalevent.c (signal_event_object_type): Make extern.
8913 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8914 * python/py-type.c (type_object_type, field_object_type)
8915 (type_iterator_object_type): Make extern.
8916 * python/python.c (python_extension_script_ops)
8917 (python_extension_ops): Make extern.
8918 * stap-probe.c (stap_probe_ops): Make extern.
8920 2015-02-11 Pedro Alves <pedro@codesourcery.com>
8922 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8923 because the event thread is not the current thread.
8925 2015-02-11 Doug Evans <xdje42@gmail.com>
8927 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8928 been initialized yet, return NULL.
8930 2015-02-11 Doug Evans <dje@google.com>
8932 * symfile.h (new_symfile_objfile): Delete.
8933 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8934 All callers updated.
8936 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8938 * tui/tui-io.c (tui_handle_resize_during_io): Call
8939 tui_update_gdb_sizes() after resizing the screen.
8940 * tui/tui.c (tui_enable): Resize the terminal before
8941 calling tui_update_gdb_sizes().
8943 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8945 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8946 line before printing a newline.
8948 2015-02-11 Mark Wielaard <mjw@redhat.com>
8950 * utils.c (producer_is_gcc): Return true or false.
8952 2015-02-10 Mark Wielaard <mjw@redhat.com>
8954 * utils.h (producer_is_gcc): Change return type to bool. Add major
8956 * utils.c (producer_is_gcc): Likewise.
8957 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8958 * dwarf2read.c (check_producer): Likewise.
8960 2015-02-10 Pedro Alves <palves@redhat.com>
8962 * infrun.c (displaced_step_fixup): Switch to the event thread
8963 before calling gdbarch_displaced_step_fixup.
8965 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8967 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8969 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8971 * ada-varobj.c (ada_name_of_child): Constify parent.
8972 (ada_path_expr_of_child): Same.
8973 (ada_value_of_child): Same.
8974 (ada_type_of_child): Same.
8975 * c-varobj.c (c_is_path_expr_parent): Same.
8976 (c_describe_child): Same.
8977 (c_name_of_child): Same.
8978 (c_value_of_child): Same.
8979 (c_type_of_child): Same.
8980 (cplus_number_of_children): Same.
8981 (cplus_describe_child): Constify var.
8982 (cplus_name_of_child): Constify parent.
8983 (cplus_value_of_child): Same.
8984 (cplus_type_of_child): Same.
8985 * jv-varobj.c (java_name_of_child): Same.
8986 (java_value_of_child): Same.
8987 (java_type_of_child): Same.
8988 * varobj.c (value_of_child): Same.
8989 (varobj_default_is_path_expr_parent): Constify var, parent and return
8991 (varobj_get_path_expr): Constify var, modify path_expr through
8993 (install_new_value): Constify parent.
8994 (value_of_child): Constify parent.
8995 * varobj.h (struct varobj): Constify parent.
8996 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8998 (varobj_get_path_expr): Constify var.
8999 (varobj_get_path_expr_parent): Constify var and return value.
9001 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
9003 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
9004 (arm_prologue_this_id): Move PC and SP limit checks to
9005 arm_prologue_unwind_stop_reason.
9006 (arm_prologue_unwind) <stop_reason> : Set to
9007 arm_prologue_unwind_stop_reason.
9009 2015-02-09 Mark Wielaard <mjw@redhat.com>
9011 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
9012 DW_LANG_Fortran08 as language_fortran.
9014 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
9017 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
9018 of pointer against char.
9020 2015-02-09 Mark Wielaard <mjw@redhat.com>
9022 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
9023 (c_type_print_modifier): Likewise.
9024 * dwarf2read.c (read_tag_atomic_type): New function.
9025 (read_type_die_1): Handle DW_TAG_atomic_type.
9026 * gdbtypes.c (make_atomic_type): New function.
9027 (recursive_dump_type): Handle TYPE_ATOMIC.
9028 * gdbtypes.h (enum type_flag_values): Renumber.
9029 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
9030 (TYPE_ATOMIC): New macro.
9031 (make_atomic_type): Declare.
9033 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9035 * btrace.c (ftrace_find_call): Skip gaps.
9036 (ftrace_new_function): Initialize level.
9037 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
9038 (ftrace_new_switch): Update
9040 (ftrace_new_gap): New.
9041 (ftrace_update_function): Create new function after gap.
9042 (btrace_compute_ftrace_bts): Create gap on error.
9043 (btrace_stitch_bts): Update parameters. Clear trace if it
9045 (btrace_stitch_trace): Update parameters. Update callers.
9046 (btrace_clear): Reset the number of gaps.
9047 (btrace_insn_get): Return NULL if the iterator points to a gap.
9048 (btrace_insn_number): Return zero if the iterator points to a gap.
9049 (btrace_insn_end): Allow gaps at the end.
9050 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
9051 (btrace_find_insn_by_number): Assert that the found iterator does
9053 (btrace_call_next, btrace_call_prev): Assert that the last function
9055 * btrace.h (btrace_bts_error): New.
9056 (btrace_function): Update comment.
9057 (btrace_function) <insn, insn_offset, number>: Update comment.
9058 (btrace_function) <errcode>: New.
9059 (btrace_thread_info) <ngaps>: New.
9060 (btrace_thread_info) <replay>: Update comment.
9061 (btrace_insn_get): Update comment.
9062 * record-btrace.c (btrace_ui_out_decode_error): New.
9063 (record_btrace_info): Print number of gaps.
9064 (btrace_insn_history, btrace_call_history): Call
9065 btrace_ui_out_decode_error for gaps.
9066 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9068 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9070 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9071 * nat/linux-btrace.c: (btrace_this_cpu): New.
9072 (cpu_supports_bts): Call btrace_this_cpu.
9073 (intel_supports_bts): Add cpu parameter.
9075 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9077 * btrace.h (btrace_insn_class): New.
9078 (btrace_insn) <size, iclass>: New.
9079 * btrace.c (ftrace_find_call): Update parameters. Update users.
9080 Use instruction classification.
9081 (ftrace_new_return): Update parameters. Update users.
9082 (ftrace_update_function): Update parameters. Update users. Use
9083 instruction classification.
9084 (ftrace_update_insns): Update parameters. Update users.
9085 (ftrace_classify_insn): New.
9086 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
9087 TRY_CATCH around call to gdb_insn_length.
9089 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9091 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9092 Update parameters. Update users.
9094 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9096 * btrace.c (parse_xml_btrace_conf_bts): Add size.
9097 (btrace_conf_bts_attributes): New.
9098 (btrace_conf_children): Add attributes.
9099 * common/btrace-common.h (btrace_config_bts): New.
9100 (btrace_config)<bts>: New.
9101 (btrace_config): Update comment.
9102 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9104 * features/btrace-conf.dtd: Increment version. Add size
9105 attribute to bts element.
9106 * record-btrace.c (set_record_btrace_bts_cmdlist,
9107 show_record_btrace_bts_cmdlist): New.
9108 (record_btrace_adjust_size, record_btrace_print_bts_conf,
9109 record_btrace_print_conf, cmd_set_record_btrace_bts,
9110 cmd_show_record_btrace_bts): New.
9111 (record_btrace_info): Call record_btrace_print_conf.
9112 (_initialize_record_btrace): Add commands.
9113 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9114 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9115 (btrace_sync_conf): Synchronize bts size.
9116 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9117 * NEWS: Announce new commands and new packets.
9119 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9121 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9122 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9123 (x86_linux_btrace_conf): New.
9124 (x86_linux_create_target): Initialize to_btrace_conf.
9125 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9126 Check format. Split into this and ...
9127 (linux_enable_bts): ... this.
9128 (linux_btrace_conf): New.
9129 (perf_event_skip_record): Renamed into ...
9130 (perf_event_skip_bts_record): ... this. Updated users.
9131 (linux_disable_btrace): Split into this and ...
9132 (linux_disable_bts): ... this.
9133 (linux_read_btrace): Check format.
9134 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9135 (linux_btrace_conf): New.
9136 (btrace_target_info)<ptid>: Moved.
9137 (btrace_target_info)<conf>: New.
9138 (btrace_target_info): Split into this and ...
9139 (btrace_tinfo_bts): ... this. Updated users.
9140 * btrace.c (btrace_enable): Update parameters.
9141 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9142 (btrace_conf_children, btrace_conf_attributes)
9143 (btrace_conf_elements): New.
9144 * btrace.h (btrace_enable): Update parameters.
9145 (btrace_conf, parse_xml_btrace_conf): New.
9146 * common/btrace-common.h (btrace_config): New.
9147 * feature/btrace-conf.dtd: New.
9148 * record-btrace.c (record_btrace_conf): New.
9149 (record_btrace_cmdlist): New.
9150 (record_btrace_enable_warn, record_btrace_open): Pass
9151 &record_btrace_conf.
9152 (record_btrace_info): Print recording format.
9153 (cmd_record_btrace_bts_start): New.
9154 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9155 (_initialize_record_btrace): Add "record btrace bts" subcommand.
9156 Add "record bts" alias command.
9157 * remote.c (remote_state)<btrace_config>: New.
9158 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9159 (remote_protocol_features): Add qXfer:btrace-conf:read.
9160 (remote_open_1): Call remote_btrace_reset.
9161 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9162 (btrace_target_info)<conf>: New.
9163 (btrace_sync_conf, btrace_read_config): New.
9164 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
9166 (remote_btrace_conf): New.
9167 (init_remote_ops): Initialize to_btrace_conf.
9168 (_initialize_remote): Add qXfer:btrace-conf packet.
9169 * target.c (target_enable_btrace): Update parameters.
9170 (target_btrace_conf): New.
9171 * target.h (target_enable_btrace): Update parameters.
9172 (target_btrace_conf): New.
9173 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9174 (target_ops)<to_enable_btrace>: Update parameters and comment.
9175 (target_ops)<to_btrace_conf>: New.
9176 * target-delegates: Regenerate.
9177 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9178 (target_debug_print_const_struct_btrace_target_info_p): New.
9179 * NEWS: Announce new command and new packet.
9181 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9183 * nat/linux-btrace.h (perf_event_buffer): New.
9184 (btrace_target_info) <buffer, size, data_head>: Replace with ...
9186 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9187 (perf_event_buffer_size, perf_event_buffer_begin)
9188 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9190 (perf_event_new_data): New.
9192 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9194 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9195 * record-btrace.c (record_btrace_open): Remove call to
9196 target_supports_btrace.
9197 * remote.c (remote_supports_btrace): Update parameters.
9198 * target.c (target_supports_btrace): Update parameters.
9199 * target.h (to_supports_btrace, target_supports_btrace): Update
9201 * target-delegates.c: Regenerate.
9202 * target-debug.h (target_debug_print_enum_btrace_format): New.
9203 * nat/linux-btrace.c
9204 (kernel_supports_btrace): Rename into ...
9205 (kernel_supports_bts): ... this. Update users. Update warning text.
9206 (intel_supports_btrace): Rename into ...
9207 (intel_supports_bts): ... this. Update users.
9208 (cpu_supports_btrace): Rename into ...
9209 (cpu_supports_bts): ... this. Update users.
9210 (linux_supports_btrace): Update parameters. Split into this and ...
9211 (linux_supports_bts): ... this.
9212 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9214 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9216 * Makefile.in (SFILES): Add common/btrace-common.c.
9217 (COMMON_OBS): Add common/btrace-common.o.
9218 (btrace-common.o): Add build rules.
9219 * btrace.c (parse_xml_btrace): Update parameters.
9220 (parse_xml_btrace_block): Set format field.
9221 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9222 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9223 (btrace_compute_ftrace): Split into this and...
9224 (btrace_compute_ftrace_bts): ...this.
9225 (btrace_stitch_trace): Split into this and...
9226 (btrace_stitch_bts): ...this.
9227 * btrace.h (parse_xml_btrace): Update parameters.
9228 (make_cleanup_btrace_data): New.
9229 * common/btrace-common.c: New.
9230 * common/btrace-common.h: Include common-defs.h.
9231 (btrace_block_s): Update comment.
9232 (btrace_format): New.
9233 (btrace_format_string): New.
9234 (btrace_data_bts): New.
9236 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9237 * remote.c (remote_read_btrace): Update parameters.
9238 * target.c (target_read_btrace): Update parameters.
9239 * target.h (target_read_btrace): Update parameters.
9240 (target_ops)<to_read_btrace>: Update parameters.
9241 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9242 * target-delegates.c: Regenerate.
9243 * target-debug (target_debug_print_struct_btrace_data_p): New.
9244 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9245 (linux_read_bts): ...this.
9246 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9248 2015-02-06 Doug Evans <dje@google.com>
9250 * remote-m32r-sdi.c: Include symfile.h.
9252 2015-02-06 Doug Evans <dje@google.com>
9254 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9255 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9258 2015-02-06 Pedro Alves <palves@redhat.com>
9260 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9262 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9265 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9266 (enable_count_command): Check args for NULL value.
9268 2015-02-05 Doug Evans <xdje42@gmail.com>
9270 * guile/scm-frame.c: Fix spelling errors in a comment.
9272 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9274 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9275 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9278 2015-02-04 Pedro Alves <palves@redhat.com>
9280 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9281 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9283 (resume_stopped_resumed_lwps): Don't check whether the thread is
9284 marked as executing.
9285 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9287 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9289 * regset.h (struct regset): Add flags field.
9290 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9291 * corelow.c (get_core_register_section): Add warning if the size
9292 exceeds the requested size and the regset does not have the
9293 REGSET_VARIABLE_SIZE flag set.
9294 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9296 * armbsd-tdep.c (armbsd_gregset): Likewise.
9297 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9298 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9299 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9300 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9302 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9304 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9305 For ".reg-xstate", explicitly specify the requested section size
9306 via X86_XSTATE_SIZE instead of just 0 on input and
9307 X86_XSTATE_MAX_SIZE on output.
9308 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9311 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9314 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9315 function type, particularly its SIZE parameter.
9316 * gdbarch.h: Regenerate.
9317 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9318 actual against required size using ">=" instead of "==".
9319 (amd64_collect_fpregset): Likewise.
9320 * i386-tdep.c (i386_supply_gregset): Likewise.
9321 (i386_collect_gregset): Likewise.
9322 (i386_supply_fpregset): Likewise.
9323 (i386_collect_fpregset): Likewise.
9324 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9325 (mips_fill_gregset_wrapper): Likewise.
9326 (mips_supply_fpregset_wrapper): Likewise.
9327 (mips_fill_fpregset_wrapper): Likewise.
9328 (mips64_supply_gregset_wrapper): Likewise.
9329 (mips64_fill_gregset_wrapper): Likewise.
9330 (mips64_supply_fpregset_wrapper): Likewise.
9331 (mips64_fill_fpregset_wrapper): Likewise.
9332 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9333 (am33_supply_fpregset_method): Likewise.
9334 (am33_collect_gregset_method): Likewise.
9335 (am33_collect_fpregset_method): Likewise.
9337 2015-02-04 Doug Evans <dje@google.com>
9338 Pedro Alves <palves@redhat.com>
9339 Eli Zaretskii <eliz@gnu.org>
9342 * tui/tui-command.c (tui_refresh_cmd_win): New function.
9343 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9344 * tui/tui-file.c: #include tui/tui-command.h.
9345 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9346 (tui_file_flush): Refresh command window if stream is gdb_stdout.
9347 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9349 2015-02-04 Pedro Alves <palves@redhat.com>
9352 * event-loop.c (gdb_do_one_event): Add default switch case.
9354 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9356 Filter out inferior gcc option -fpreprocessed.
9357 * compile/compile.c (filter_args): New function.
9360 2015-02-03 Pedro Alves <palves@redhat.com>
9362 * event-loop.c: Don't declare nor define a queue type for
9364 (event_queue): Delete.
9365 (create_event, create_file_event, gdb_event_xfree)
9366 (initialize_event_loop, process_event): Delete.
9367 (gdb_do_one_event): Return as soon as one event is handled.
9368 (handle_file_event): Change prototype. Used the passed in
9369 file_handler pointer and ready_mask instead of looping over all
9371 (gdb_wait_for_event): Update the poll/select timeouts before
9372 blocking. Run event handlers directly instead of queueing events.
9373 Return as soon as one event is handled.
9374 (struct async_event_handler_data): Delete.
9375 (invoke_async_event_handler): Delete.
9376 (check_async_event_handlers): Change return type to int. Run
9377 event handlers directly instead of queueing events. Return as
9378 soon as one event is handled.
9379 (handle_timer_event): Delete.
9380 (update_wait_timeout): New function, factored out from
9382 (poll_timers): Reimplement.
9383 * event-loop.h (initialize_event_loop): Delete declaration.
9384 * top.c (gdb_init): Don't call initialize_event_loop.
9386 2015-02-03 Pedro Alves <palves@redhat.com>
9388 * event-loop.c (clear_async_event_handler): New function.
9389 * event-loop.h (clear_async_event_handler): New declaration.
9390 * record-btrace.c (record_btrace_async): New function.
9391 (init_record_btrace_ops): Install record_btrace_async.
9392 * record-full.c (record_full_async): New function.
9393 (record_full_resume): Don't mark the async event source here.
9394 (init_record_full_ops): Install record_full_async.
9395 (record_full_core_resume): Don't mark the async event source here.
9396 (init_record_full_core_ops): Install record_full_async.
9397 * remote.c (remote_async): Mark and clear the async stop reply
9398 queue event-loop token as appropriate.
9400 2015-02-03 Pedro Alves <palves@redhat.com>
9402 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9403 target_is_async_p instead of target_can_async.
9404 (linux_nat_wait): Use target_is_async_p instead of
9405 target_can_async. Don't enable async here.
9406 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9407 target_is_async_p instead of target_can_async.
9409 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9411 * varobj.h (lang_varobj_ops): Mention which return values need
9414 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9416 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9418 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9421 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9422 results found in the cache.
9424 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9427 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9428 when allocating a new one.
9430 2015-02-01 Tom Tromey <tom@tromey.com>
9432 * MAINTAINERS: Remove myself.
9434 2015-01-31 Doug Evans <xdje42@gmail.com>
9436 * dwarf2read.c (process_structure_scope): Update setting of
9437 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9438 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9439 (set_type_vptr_fieldno): New function.
9440 (internal_type_vptr_basetype): New function.
9441 (set_type_vptr_basetype): New function.
9442 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9444 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9445 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9446 (print_cplus_stuff): ... moved here.
9447 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9448 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9450 (struct cplus_struct_type): ... here. All uses updated.
9451 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9452 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9453 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9454 * stabsread.c (read_tilde_fields): Update setting of
9455 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9457 2015-01-31 Doug Evans <xdje42@gmail.com>
9459 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9461 (cp_print_class_member): Rename local domain to self_type.
9462 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9463 domain_type to self_type.
9464 (set_die_type) <need_gnat_info>: Handle
9465 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9466 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9467 TYPE_SPECIFIC_SELF_TYPE.
9468 * gdbtypes.c (internal_type_self_type): New function.
9469 (set_type_self_type): New function.
9470 (smash_to_memberptr_type): Rename parameter domain to self_type.
9471 Update setting of TYPE_SELF_TYPE.
9472 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9473 (smash_to_method_type): Rename parameter domain to self_type.
9474 Update setting of TYPE_SELF_TYPE.
9475 (check_stub_method): Call smash_to_method_type.
9476 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9477 (copy_type_recursive): Ditto.
9478 * gdbtypes.h (enum type_specific_kind): New value
9479 TYPE_SPECIFIC_SELF_TYPE.
9480 (struct main_type) <type_specific>: New member self_type.
9481 (struct cplus_struct_type) <fn_field.type>: Update comment.
9482 (TYPE_SELF_TYPE): Rewrite.
9483 (internal_type_self_type, set_type_self_type): Declare.
9484 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9486 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9487 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9489 * stabsread.c (read_member_functions): Mark methods with
9490 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9493 2015-01-31 Doug Evans <xdje42@gmail.com>
9495 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9498 2015-01-31 Doug Evans <xdje42@gmail.com>
9500 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9501 or unions. Return zero if union.
9502 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9503 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9505 (compute_vtable_size): Assert only passed structs.
9506 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9508 2015-01-31 Doug Evans <xdje42@gmail.com>
9510 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9513 2015-01-31 Gary Benson <gbenson@redhat.com>
9514 Doug Evans <dje@google.com>
9519 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9521 * common/common-exceptions.h (enum errors)
9522 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9523 * completer.h (get_max_completions_reached_message): New declaration.
9524 (max_completions): Likewise.
9525 (completion_tracker_t): New typedef.
9526 (new_completion_tracker): New declaration.
9527 (make_cleanup_free_completion_tracker): Likewise.
9528 (maybe_add_completion_enum): New enum.
9529 (maybe_add_completion): New declaration.
9530 (throw_max_completions_reached_error): Likewise.
9531 * completer.c (max_completions): New global variable.
9532 (new_completion_tracker): New function.
9533 (free_completion_tracker): Likewise.
9534 (make_cleanup_free_completion_tracker): Likewise.
9535 (maybe_add_completions): Likewise.
9536 (throw_max_completions_reached_error): Likewise.
9537 (complete_line): Remove duplicates and limit result to max_completions
9539 (get_max_completions_reached_message): New function.
9540 (gdb_display_match_list): Handle max_completions.
9541 (_initialize_completer): New declaration and function.
9542 * symtab.c: Include completer.h.
9543 (completion_tracker): New static variable.
9544 (completion_list_add_name): Call maybe_add_completion.
9545 (default_make_symbol_completion_list_break_on_1): Renamed from
9546 default_make_symbol_completion_list_break_on. Maintain
9547 completion_tracker across calls to completion_list_add_name.
9548 (default_make_symbol_completion_list_break_on): New function.
9549 * top.c (init_main): Set rl_completion_display_matches_hook.
9550 * tui/tui-io.c: Include completer.h.
9551 (tui_old_rl_display_matches_hook): New static global.
9552 (tui_rl_display_match_list): Notify user if max-completions reached.
9553 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9554 * NEWS (New Options): Mention set/show max-completions.
9556 2015-01-31 Gary Benson <gbenson@redhat.com>
9558 * symtab.c (struct add_name_data) <code>: New field.
9560 (add_symtab_completions): New function.
9561 (symtab_expansion_callback): Likewise.
9562 (default_make_symbol_completion_list_break_on): Set datum.code.
9563 Move minimal symbol scan before calling expand_symtabs_matching.
9564 Scan known primary symtabs for externs and statics before calling
9565 expand_symtabs_matching. Pass symtab_expansion_callback as
9566 expansion_notify argument to expand_symtabs_matching. Do not scan
9567 primary symtabs for externs and statics after calling
9568 expand_symtabs_matching.
9570 2015-01-31 Gary Benson <gbenson@redhat.com>
9572 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9573 (struct quick_symbol_functions) <expand_symtabs_matching>:
9574 New argument expansion_notify. All uses updated.
9575 (expand_symtabs_matching): New argument expansion_notify.
9577 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9578 Also print expansion notify.
9579 * symtab.c (expand_symtabs_matching_via_partial): Call
9580 expansion_notify whenever a partial symbol table is expanded.
9581 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9582 expansion_notify whenever a symbol table is instantiated.
9584 2015-01-31 Doug Evans <xdje42@gmail.com>
9586 * cli-out.c: #include completer.h, readline/readline.h.
9587 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9588 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9589 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9590 * cli-out.h (cli_display_match_list): Declare.
9591 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9592 (ELLIPSIS_LEN): Ditto.
9593 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9594 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9595 (gdb_fnprint, gdb_print_filename): Ditto.
9596 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9597 (gdb_display_match_list): Ditto.
9598 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9599 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9600 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9601 (match_list_displayer): New struct.
9602 (gdb_display_match_list): Declare.
9603 * top.c (init_main): Set rl_completion_display_matches_hook.
9604 * tui/tui-io.c: #include completer.h.
9605 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9606 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9607 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9608 (tui_mld_getc, tui_mld_read_key): Ditto.
9609 (tui_rl_display_match_list): Rewrite.
9610 (tui_handle_resize_during_io): New arg for_completion. All callers
9613 2015-01-31 Doug Evans <xdje42@gmail.com>
9615 Add symbol lookup cache.
9616 * NEWS: Document new options and commands.
9617 * symtab.c (symbol_cache_key): New static global.
9618 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9619 (SYMBOL_LOOKUP_FAILED): New macro.
9620 (symbol_cache_slot_state): New enum.
9621 (block_symbol_cache): New struct.
9622 (symbol_cache): New struct.
9623 (new_symbol_cache_size, symbol_cache_size): New static globals.
9624 (hash_symbol_entry, eq_symbol_entry): New functions.
9625 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9626 (make_symbol_cache, free_symbol_cache): New functions.
9627 (get_symbol_cache, symbol_cache_cleanup): New function.
9628 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9629 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9630 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9631 (symbol_cache_flush, symbol_cache_dump): New functions.
9632 (maintenance_print_symbol_cache): New function.
9633 (maintenance_flush_symbol_cache): New function.
9634 (symbol_cache_stats): New function.
9635 (maintenance_print_symbol_cache_statistics): New function.
9636 (symtab_new_objfile_observer): New function.
9637 (symtab_free_objfile_observer): New function.
9638 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9639 (_initialize_symtab): Init symbol_cache_key. New parameter
9640 maint symbol-cache-size. New maint commands print symbol-cache,
9641 print symbol-cache-statistics, flush-symbol-cache.
9642 Install new_objfile, free_objfile observers.
9644 2015-01-31 Joel Brobecker <brobecker@adacore.com>
9647 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9650 2015-01-31 Doug Evans <xdje42@gmail.com>
9652 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9653 * auto-load.c: #include ctype.h.
9654 (struct auto_load_pspace_info): Replace member loaded_scripts with
9655 new members loaded_script_files, loaded_script_texts.
9656 (auto_load_pspace_data_cleanup): Update.
9657 (init_loaded_scripts_info): Update.
9658 (get_auto_load_pspace_data_for_loading): Update.
9659 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9661 (maybe_add_script_text): New function.
9662 (clear_section_scripts): Update.
9663 (source_script_file, execute_script_contents): New functions.
9664 (source_section_scripts): Add support for
9665 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9666 (print_scripts): New function.
9667 (auto_load_info_scripts): Also print inlined scripts.
9668 (maybe_print_unsupported_script_warning): Renamed from
9669 unsupported_script_warning_print. All callers updated.
9670 (maybe_print_script_not_found_warning): Renamed from
9671 script_not_found_warning_print. All callers updated.
9672 * extension-priv.h (struct extension_language_script_ops): New member
9673 objfile_script_executor.
9674 * extension.c (ext_lang_objfile_script_executor): New function.
9675 * extension.h (objfile_script_executor_func): New typedef.
9676 (ext_lang_objfile_script_executor): Declare.
9677 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9678 * guile/guile.c (guile_extension_script_ops): Update.
9679 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9680 * python/python.c (python_extension_script_ops): Update.
9681 (gdbpy_execute_objfile_script): New function.
9683 2015-01-31 Eli Zaretskii <eliz@gnu.org>
9685 * tui/tui-io.c (tui_expand_tabs): New function.
9686 (tui_puts, tui_redisplay_readline): Expand TABs into the
9687 appropriate number of spaces.
9688 * tui/tui-regs.c: Include tui-io.h.
9689 (tui_register_format): Call tui_expand_tabs to expand TABs into
9690 the appropriate number of spaces.
9691 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9693 2015-01-30 Doug Evans <dje@google.com>
9695 * NEWS: "info source" command now display producer string if present.
9696 * source.c (source_info): Print producer string if present.
9698 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9700 * varobj.c (varobj_delete): Fix comment.
9702 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9704 * varobj.c (create_child): Modify comment.
9706 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9708 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9710 (ada_name_of_variable): Same.
9711 (ada_path_expr_of_child): Same.
9712 (ada_value_of_variable): Same.
9713 (ada_value_is_changeable_p): Same.
9714 (ada_value_has_mutated): Same.
9715 * c-varobj.c (varobj_is_anonymous_child): Same.
9716 (c_is_path_expr_parent): Same.
9717 (c_number_of_children): Same.
9718 (c_name_of_variable): Same.
9719 (c_path_expr_of_child): Same.
9721 (c_value_of_variable): Same.
9722 (cplus_number_of_children): Same.
9723 (cplus_name_of_variable): Same.
9724 (cplus_path_expr_of_child): Same.
9725 (cplus_value_of_variable): Same.
9726 * jv-varobj.c (java_number_of_children): Same.
9727 (java_name_of_variable): Same.
9728 (java_path_expr_of_child): Same.
9729 (java_value_of_variable): Same.
9730 * varobj.c (number_of_children): Same.
9731 (name_of_variable): Same.
9733 (varobj_ensure_python_env): Same.
9734 (varobj_get_objname): Same.
9735 (varobj_get_expression): Same.
9736 (varobj_get_display_format): Same.
9737 (varobj_get_display_hint): Same.
9738 (varobj_has_more): Same.
9739 (varobj_get_thread_id): Same.
9740 (varobj_get_frozen): Same.
9741 (dynamic_varobj_has_child_method): Same.
9742 (varobj_get_gdb_type): Same.
9743 (is_path_expr_parent): Same.
9744 (varobj_default_is_path_expr_parent): Same.
9745 (varobj_get_language): Same.
9746 (varobj_get_attributes): Same.
9747 (varobj_is_dynamic_p): Same.
9748 (varobj_get_child_range): Same.
9749 (varobj_value_has_mutated): Same.
9750 (varobj_get_value_type): Same.
9751 (number_of_children): Same.
9752 (name_of_variable): Same.
9753 (check_scope): Same.
9754 (varobj_editable_p): Same.
9755 (varobj_value_is_changeable_p): Same.
9756 (varobj_floating_p): Same.
9757 (varobj_default_value_is_changeable_p): Same.
9759 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9761 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9762 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9764 (cplus_path_expr_of_child): Same.
9766 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9768 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9770 (mi_cmd_var_info_expression): Same.
9771 * varobj.c (varobj_get_expression): Mention in the comment that
9772 the result must by freed by the caller.
9774 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9776 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9778 (varobj_update_one): Same.
9779 * varobj.c (update_type_if_necessary): Free curr_type_str and
9781 (varobj_get_type): Specify in comment that the result needs to be
9782 freed by the caller.
9784 2015-01-29 Doug Evans <dje@google.com>
9787 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9789 2015-01-25 Mark Wielaard <mjw@redhat.com>
9791 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9792 * utils.c (producer_is_gcc_ge_4): Likewise.
9793 (producer_is_gcc): New function.
9794 * utils.h (producer_is_gcc): New declaration.
9796 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9798 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9800 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9801 parameter by "addr_stack" parameter.
9802 (resolve_dynamic_range): Replace "addr" parameter by
9803 "stack_addr" parameter. Update function documentation.
9804 Update code accordingly.
9805 (resolve_dynamic_array, resolve_dynamic_union)
9806 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9807 (resolve_dynamic_type): Update code, following the changes made
9808 to resolve_dynamic_type_internal's interface.
9809 * dwarf2loc.h (struct property_addr_info): New.
9810 (dwarf2_evaluate_property): Replace "address" parameter
9811 by "addr_stack" parameter. Adjust function documentation.
9812 (struct dwarf2_offset_baton): New.
9813 (struct dwarf2_property_baton): Update documentation of
9814 field "referenced_type" to be more general. New field
9815 "offset_info" in union data field.
9816 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9817 parameter by "addr_stack" parameter. Adjust code accordingly.
9818 Add support for PROP_ADDR_OFFSET properties.
9819 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9820 DW_AT_data_member_location attributes as well. Use case
9821 statements instead of if/else condition.
9823 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9825 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9826 Return zero if PARENT_VALUE is NULL and parent_type's
9827 range type is dynamic.
9829 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9831 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9832 nonzero if the type's subtype is dynamic.
9833 (resolve_dynamic_range): Also resolve the range's subtype.
9835 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
9837 Pushed by Joel Brobecker <brobecker@adacore.com>.
9838 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9840 2015-01-27 Doug Evans <dje@google.com>
9842 * NEWS: Mention gdb.Objfile.username.
9843 * python/py-objfile.c (objfpy_get_username): New function.
9844 (objfile_getset): Add "username".
9846 2015-01-24 Mark Wielaard <mjw@redhat.com>
9848 * stack.c (return_command): Markup warning message with _.
9850 2015-01-24 Doug Evans <xdje42@gmail.com>
9852 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9854 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9856 Fix 100x slowdown regression on DWZ files.
9857 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9858 (struct line_header): Add offset and offset_in_dwz.
9859 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9860 (free_line_header_voidp): New declaration.
9861 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9863 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9864 (handle_DW_AT_stmt_list): Use line_header_hash.
9865 (free_line_header_voidp): New function.
9866 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9867 (dwarf_decode_lines): New parameter decode_mapping, use it.
9868 (dwarf2_free_objfile): Free line_header_hash.
9870 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9873 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9876 2015-01-15 Mark Wielaard <mjw@redhat.com>
9878 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9880 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9881 calling_convention an 8 bit bit field.
9882 (TYPE_NO_RETURN): New macro.
9883 * infcmd.c (finish_command): Query if function does not return
9885 * stack.c (return_command): Likewise.
9887 2015-01-23 Pedro Alves <palves@redhat.com>
9889 * linux-nat.c (linux_is_async_p): New macro.
9890 (linux_nat_is_async_p):
9891 (linux_nat_terminal_inferior): Check whether the target can async
9892 instead of whether it is already async.
9893 (linux_nat_terminal_ours): Don't check whether the target is
9895 (linux_async_pipe): Use linux_is_async_p.
9897 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9899 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9901 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9902 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9903 Sort tp_array using tp_array_compar.
9904 (_initialize_thread): Extend thread_apply_all_command help.
9906 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9908 * corelow.c (core_open): Call also thread_command.
9909 * gdbthread.h (thread_command): New prototype moved from ...
9910 * thread.c (thread_command): ... here.
9911 (thread_command): Make it global.
9913 2015-01-22 Pedro Alves <palves@redhat.com>
9915 * configure.ac [*mingw32*]: Check $curses_found instead of
9917 * configure: Regenerate.
9918 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9919 HAVE_NCURSES_NCURSES_H checks.
9921 2015-01-22 Eli Zaretskii <eliz@gnu.org>
9923 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
9924 fails with the 1st arg NULL, try again with "unknown". Don't test
9925 the "cup" capability: it isn't supported by the Windows port of
9926 ncurses, but the Windows console driver is still capable of
9929 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9931 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9933 2015-01-22 Eli Zaretskii <eliz@gnu.org>
9935 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9936 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9937 reason that "make TAGS" is broken.
9939 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9941 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9942 and check additional store instructions.
9944 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
9946 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9948 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
9950 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9951 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9952 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9953 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9954 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9955 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9956 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9957 ppc_process_record_op19, ppc_process_record_op31,
9958 ppc_process_record_op59, ppc_process_record_op60,
9959 ppc_process_record_op63): Likewise.
9961 2015-01-20 Joel Brobecker <brobecker@adacore.com>
9963 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9964 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9967 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
9969 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9970 ppc_process_record_op31, ppc_process_record_op59,
9971 ppc_process_record_op60, ppc_process_record_op63,
9972 ppc_process_record): Fix -Wformat warning.
9973 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9974 Remove unused variables.
9976 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9978 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9980 2015-01-19 Eli Zaretskii <eliz@gnu.org>
9982 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9983 CONFIG_OBS if not building with a curses library.
9984 * configure: Regenerate.
9986 * windows-termcap.c: Include defs.h. Make the whole body empty if
9987 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9988 HAVE_NCURSES_NCURSES_H is defined.
9990 2015-01-19 Joel Brobecker <brobecker@adacore.com>
9992 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9993 from end of line to start of next line.
9995 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9997 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9998 Scan PLT stub backward for reverse debugging.
9999 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10001 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10002 Ulrich Weigand <uweigand@de.ibm.com>
10004 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
10006 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
10008 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
10009 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
10010 (ppc_linux_init_abi): Set process_record, process_record_signal.
10011 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
10012 ppc_linux_record_tdep to gdbarch_tdep.
10013 (ppc_process_record): New declaration.
10014 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
10015 ppc_process_record_op19, ppc_process_record_op31,
10016 ppc_process_record_op59, ppc_process_record_op60,
10017 ppc_process_record_op63, ppc_process_record): New functions.
10019 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10021 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
10022 rs6000_in_function_epilogue_frame_p and add an argument
10024 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
10025 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
10027 (rs6000_epilogue_frame_unwind): New.
10028 (rs6000_gdbarch_init): Append epilogue unwinder.
10030 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10032 * nat/linux-personality.c: Replace "#ifndef
10033 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
10034 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
10037 2015-01-16 Eli Zaretskii <eliz@gnu.org>
10039 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
10041 (_initialize_tui_win) <border-kind, border-mode>:
10042 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
10043 (tui_set_tab_width_command): Fix the commentary.
10045 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
10047 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
10049 (tui_set_tab_width_command): Delete and recreate the source and
10050 the disassembly windows, to show the effect of the changed tab
10053 * tui/tui-data.h (LINE_PREFIX): Make shorter
10054 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10055 "Thread NNNNN.XXXX" thread ID notation on Windows.
10057 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10059 Fix gcc-5 compilation.
10060 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10062 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10064 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10065 (linux-personality.o): New rule.
10066 * common/common-defs.h: Include <stdint.h>.
10067 * config/aarch64/linux.mh (NATDEPFILES): Include
10068 linux-personality.o.
10069 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10070 * config/arm/linux.mh (NATDEPFILES): Likewise.
10071 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10072 * config/i386/linux.mh (NATDEPFILES): Likewise.
10073 * config/ia64/linux.mh (NATDEPFILES): Likewise.
10074 * config/m32r/linux.mh (NATDEPFILES): Likewise.
10075 * config/m68k/linux.mh (NATDEPFILES): Likewise.
10076 * config/mips/linux.mh (NATDEPFILES): Likewise.
10077 * config/pa/linux.mh (NATDEPFILES): Likewise.
10078 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10079 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10080 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10081 * config/s390/linux.mh (NATDEPFILES): Likewise.
10082 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10083 * config/sparc/linux.mh (NATDEPFILES): Likewise.
10084 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10085 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10086 * defs.h: Remove #include <stdint.h> (moved to
10087 common/common-defs.h).
10088 * linux-nat.c: Include nat/linux-personality.h. Remove #include
10089 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10090 nat/linux-personality.c).
10091 (linux_nat_create_inferior): Remove code to disable address space
10092 randomization (moved to nat/linux-personality.c). Create cleanup
10093 to disable address space randomization.
10094 * nat/linux-personality.c: New file.
10095 * nat/linux-personality.h: Likewise.
10097 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10099 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10100 common/posix-strerror.c.
10101 (posix-strerror.o): New rule.
10102 (mingw-strerror.o): Likewise.
10103 * common/common-utils.h (safe_strerror): Move prototype to here,
10105 * common/common.host: New file.
10106 * common/mingw-strerror.c: Likewise.
10107 * common/posix-strerror.c: Likewise.
10108 * configure: Regenerated.
10109 * configure.ac: Source common/common.host. Add variable
10110 common_host_obs to gdb_host_obs.
10111 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10112 gdb/common/posix-strerror.c when warning about the use of
10114 * mingw-hdep.c (safe_strerror): Remove definition; move it to
10115 common/mingw-strerror.c.
10116 * posix-hdep.c (safe_strerror): Remove definition; move it to
10117 common/posix-hdep.c.
10118 * utils.h (safe_strerror): Remove prototype; move to
10119 common/common-utils.h.
10121 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10123 GDB 7.8.2 released.
10125 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10127 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10128 ___XA type if the array has already been fixed.
10130 2015-01-14 Yao Qi <yao@codesourcery.com>
10132 * Makefile.in (ppc-linux.o): New rule.
10133 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10134 * configure.ac: AC_CHECK_FUNCS(getauxval).
10135 * config.in: Re-generated.
10136 * configure: Re-generated.
10137 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10139 * nat/ppc-linux.c: New file.
10140 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10141 Call ppc64_64bit_inferior_p.
10143 2015-01-14 Yao Qi <yao@codesourcery.com>
10145 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10147 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10148 (PPC_FEATURE_HAS_DFP): Likewise.
10149 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10150 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10151 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10152 Include "nat/ppc-linux.h".
10153 * nat/ppc-linux.h: New file.
10154 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10156 2015-01-14 Pedro Alves <palves@redhat.com>
10159 * breakpoint.c: Include "interps.h".
10160 (bpstat_do_actions_1): Also check whether the interpreter is
10163 2015-01-14 Pedro Alves <palves@redhat.com>
10166 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10167 reinstall if the interpreter is sync.
10169 2015-01-13 Doug Evans <dje@google.com>
10171 * objfiles.c (objfile_filename): New function.
10172 * objfiles.h (objfile_filename): Declare it.
10173 (objfile_name): Add function comment.
10174 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10175 bfd file name (which may be realpath'd), and the original name.
10177 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10179 * NEWS: Create a new section for the next release branch.
10180 Rename the section of the current branch, now that it has
10183 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10185 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10186 * version.in: Bump version to 7.9.50.DATE-cvs.
10188 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10190 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10191 Remove trailing new-line in argument of call to warning.
10193 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10195 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10196 new-line in argument of call to "warning".
10198 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10200 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10201 in static block, then try searching for primitive types.
10203 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
10205 * top.h (gdb_add_history): Declare.
10206 * top.c (command_count): New variable.
10207 (gdb_add_history): New function.
10208 (gdb_safe_append_history): New static function.
10209 (quit_force): Call it.
10210 (command_line_input): Use gdb_add_history instead of
10212 * event-top.c (command_line_handler): Likewise.
10214 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
10217 * darwin-nat.c: Replace <machine/setjmp.h> #include by
10218 <setjmp.h> #include.
10220 2015-01-11 Doug Evans <xdje42@gmail.com>
10222 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10224 2015-01-11 Doug Evans <xdje42@gmail.com>
10227 * NEWS: The "maint demangle" command is renamed as "demangle".
10228 * demangle.c: #include cli/cli-utils.h, language.h.
10229 (demangle_command): New function.
10230 (_initialize_demangle): Add new command "demangle".
10231 * maint.c (maintenance_demangle): Stub out.
10232 (_initialize_maint_cmds): Update help text for "maint demangle",
10233 and mark as deprecated.
10235 2015-01-11 Mark Kettenis <kettenis@gnu.org>
10237 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10238 inferior_thread is a function.
10240 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10242 * Makefile.in (.y.c): Don't munge yacc's #line
10245 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10247 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10248 to prompt for input.
10249 * tui/tui-hooks.c (tui_query_hook): Remove.
10250 (tui_install_hooks): Don't set deprecated_query_hook.
10251 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10252 height calculation. Always update the command window's cur_line.
10254 2015-01-09 Pedro Alves <palves@redhat.com>
10256 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10258 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10260 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10261 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10263 (check_stopped_by_watchpoint): New function.
10264 (save_sigtrap): Reimplement.
10265 (linux_nat_stopped_by_watchpoint): Adjust.
10266 (linux_nat_lp_status_is_event): Delete.
10267 (stop_wait_callback): Only call save_sigtrap after storing the
10269 (status_callback): If the thread had been stopped for a breakpoint
10270 that has since been removed, discard the event and resume the LWP.
10271 (count_events_callback, select_event_lwp_callback): Use
10272 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10273 (cancel_breakpoint): Rename to ...
10274 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10275 stopped for a software breakpoint or hardware breakpoint.
10276 (select_event_lwp): Only give preference to the stepping LWP in
10277 all-stop mode. Adjust comments.
10278 (stop_and_resume_callback): Remove references to new_pending_p.
10279 (linux_nat_filter_event): Likewise. Leave exit events of the
10280 leader thread pending here. Handle signal short circuiting here.
10281 Only call save_sigtrap after storing the pending waitstatus.
10282 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10283 new_pending. Don't handle leaving events the caller is not
10284 interested in pending here, nor handle signal short-circuiting
10285 here. Also give equal priority to all LWPs that have had events
10286 in non-stop mode. If reporting a software breakpoint event,
10287 unadjust the LWP's PC.
10288 * linux-nat.h (enum lwp_stop_reason): New.
10289 (struct lwp_info) <stop_pc>: New field.
10290 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10291 (struct lwp_info) <stop_reason>: New field.
10292 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10294 2015-01-09 Pedro Alves <palves@redhat.com>
10296 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10297 Set the LWP's 'resumed' flag.
10299 2015-01-09 Pedro Alves <palves@redhat.com>
10301 * linux-nat.c (linux_resume_one_lwp): New function.
10302 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10303 (linux_nat_resume): Use lwp_status_pending_p and
10304 linux_resume_one_lwp.
10305 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10306 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10307 (status_callback, running_callback): Use lwp_status_pending_p.
10308 (lwp_status_pending_p): New function.
10309 (stop_and_resume_callback): Use lwp_status_pending_p.
10310 (linux_nat_filter_event): Use linux_resume_one_lwp.
10311 (linux_nat_wait_1): Always use status_callback to look for an LWP
10312 with a pending status. Use linux_resume_one_lwp.
10313 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10314 linux_resume_one_lwp.
10316 2015-01-09 Pedro Alves <palves@redhat.com>
10318 * breakpoint.c (bp_location_inserted_here_p): New function,
10319 factored out from ...
10320 (breakpoint_inserted_here_p): ... here. Use
10321 ALL_BP_LOCATIONS_AT_ADDR.
10322 (software_breakpoint_inserted_here_p): Use
10323 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10325 2014-01-09 Pedro Alves <palves@redhat.com>
10327 Skip enabling event reporting if the kernel supports
10328 PTRACE_EVENT_CLONE.
10329 * linux-thread-db.c: Include "nat/linux-ptrace.h".
10330 (thread_db_use_events): New function.
10331 (try_thread_db_load_1): Check thread_db_use_events before enabling
10333 (update_thread_state): New function.
10334 (attach_thread): Use it. Check thread_db_use_events before
10335 enabling event reporting.
10336 (thread_db_detach): Check thread_db_use_events before disabling
10338 (find_new_threads_callback): Check thread_db_use_events before
10339 enabling event reporting. Update the thread's state if not using
10340 libthread_db events.
10342 2015-01-09 Pedro Alves <palves@redhat.com>
10344 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10345 about to wait for is > 0.
10346 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10347 the kernel thread ID is -1.
10349 2015-01-09 Pedro Alves <palves@redhat.com>
10351 * linux-nat.c (attach_proc_task_lwp_callback): New function.
10352 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10353 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10354 ptrace option flags.
10355 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10357 * nat/linux-procfs.c: Include <dirent.h>.
10358 (linux_proc_get_int): New parameter "warn". Handle it.
10359 (linux_proc_get_tgid): Adjust.
10360 (linux_proc_get_tracerpid): Rename to ...
10361 (linux_proc_get_tracerpid_nowarn): ... this.
10362 (linux_proc_pid_get_state): New function, factored out from
10363 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10365 (linux_proc_pid_is_gone): New function.
10366 (linux_proc_pid_is_stopped): Adjust.
10367 (linux_proc_pid_is_zombie_maybe_warn)
10368 (linux_proc_pid_is_zombie_nowarn): New functions.
10369 (linux_proc_pid_is_zombie): Use
10370 linux_proc_pid_is_zombie_maybe_warn.
10371 (linux_proc_attach_tgid_threads): New function.
10372 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10373 (linux_proc_get_tracerpid): Rename to ...
10374 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10375 (linux_proc_pid_is_gone): New declaration.
10376 (linux_proc_pid_is_zombie): Update comment.
10377 (linux_proc_pid_is_zombie_nowarn): New declaration.
10378 (linux_proc_attach_lwp_func): New typedef.
10379 (linux_proc_attach_tgid_threads): New declaration.
10380 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10381 use nowarn functions.
10382 (linux_ptrace_attach_fail_reason_string): Move here from
10383 gdbserver/linux-low.c and rename.
10384 (ptrace_supports_feature): If the current ptrace options are not
10385 known yet, check them now, instead of asserting.
10386 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10389 2015-01-09 Pedro Alves <palves@redhat.com>
10391 * linux-thread-db.c (thread_db_find_new_threads_silently)
10392 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10393 (find_new_threads_once): Print debug output on gdb_stdlog.
10395 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10396 Pedro Alves <palves@redhat.com>
10398 * compile/compile.c: Include "gdb_wait.h".
10399 (do_rmdir): Check return value, and free 'zap'.
10401 2015-01-08 Pedro Alves <palves@redhat.com>
10402 Yao Qi <yao@codesourcery.com>
10404 * dwarf2loc.c (indirect_pieced_value): Don't call
10405 gdb_sign_extend. Call extract_signed_integer instead.
10406 * utils.c (gdb_sign_extend): Remove.
10407 * utils.h (gdb_sign_extend): Remove declaration.
10409 2015-01-07 Pierre Muller <muller@sourceware.org>
10412 * stabsread.c (define_symbol): Set language for C++ special symbols.
10414 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10416 * inflow.c (initial_gdb_ttystate): Tweak comment.
10418 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10420 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10421 comment documenting function.
10423 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10425 * terminal.h (set_initial_gdb_ttystate): Declare.
10426 * inflow.c (initial_gdb_ttystate): New static variable.
10427 (set_initial_gdb_ttystate): New setter.
10428 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10429 instead of our current terminal state.
10430 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10432 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10434 * guile/scm-type.c (tyscm_array_1): Add comment.
10435 * python/py-type.c (typy_array_1): Add comment.
10437 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10439 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10440 error if N2 is equal to N1 - 1.
10442 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10444 * python/py-type.c (typy_array_1): Do not raise negative-length
10445 exception if N2 is equal to N1 - 1.
10447 2015-01-03 Doug Evans <xdje42@gmail.com>
10449 * c-exp.y: Whitespace cleanup.
10450 (classify_inner_name): Remove extra ;.
10452 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10454 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10457 2015-01-02 Doug Evans <dje@google.com>
10459 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10461 2015-01-02 Doug Evans <dje@google.com>
10463 * symtab.h (struct symbol): Fix typo in comment.
10465 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10467 Update year range in copyright notice of all files.
10469 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10471 * top.c (print_gdb_version): Update copyright year to 2015.
10473 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10475 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
10477 For older changes see ChangeLog-2014.
10483 version-control: never