1 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
3 * NEWS: Mention support for fast tracepoints on aarch64-linux.
5 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
8 variable. Call aarch64_decode_adr instead of
10 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
11 (aarch64_decode_adr): New function declaration.
12 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
13 (aarch64_decode_adr): New function, factored out from
14 aarch64_decode_adrp to decode both adr and adrp instructions.
16 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
18 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
19 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
20 (aarch64-insn.o): New rule.
21 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
22 (aarch64*-*-linux*): Likewise.
23 * arch/aarch64-insn.c: New file.
24 * arch/aarch64-insn.h: New file.
25 * aarch64-tdep.c: Include arch/aarch64-insn.h.
26 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
28 (decode_add_sub_imm): Rename to ...
29 (aarch64_decode_add_sub_imm): ... this.
30 (decode_adrp): Rename to ...
31 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
32 Declare in arch/aarch64-insn.h.
33 (decode_b): Rename to ...
34 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
35 Declare in arch/aarch64-insn.h.
36 (decode_bcond): Rename to ...
37 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
38 Declare in arch/aarch64-insn.h.
39 (decode_br): Rename to ...
40 (aarch64_decode_br): ... this.
41 (decode_cb): Rename to ...
42 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
43 Declare in arch/aarch64-insn.h.
44 (decode_eret): Rename to ...
45 (aarch64_decode_eret): ... this.
46 (decode_movz): Rename to ...
47 (aarch64_decode_movz): ... this.
48 (decode_orr_shifted_register_x): Rename to ...
49 (aarch64_decode_orr_shifted_register_x): ... this.
50 (decode_ret): Rename to ...
51 (aarch64_decode_ret): ... this.
52 (decode_stp_offset): Rename to ...
53 (aarch64_decode_stp_offset): ... this.
54 (decode_stp_offset_wb): Rename to ...
55 (aarch64_decode_stp_offset_wb): ... this.
56 (decode_stur): Rename to ...
57 (aarch64_decode_stur): ... this.
58 (decode_tb): Rename to ...
59 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
60 Declare in arch/aarch64-insn.h.
61 (aarch64_analyze_prologue): Adjust calls to renamed functions.
63 2015-09-20 Doug Evans <xdje42@gmail.com>
65 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
67 2015-09-20 Doug Evans <xdje42@gmail.com>
69 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
70 variable name that collides with a parameter.
72 2015-09-20 Joel Brobecker <brobecker@adacore.com>
74 * dwarf2loc.c (locexpr_get_frame_base): Renames
75 block_op_get_frame_base.
76 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
77 block_op_get_frame_base by reference to locexpr_get_frame_base.
78 (loclist_get_frame_base): New function, near identical copy of
79 locexpr_get_frame_base.
80 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
81 block_op_get_frame_base by reference to loclist_get_frame_base.
83 2015-09-19 Doug Evans <xdje42@gmail.com>
85 * ravenscar-thread.c (ravenscar_inferior_created): Replace
86 current_inferior ()->gdbarch with its wrapper target_gdbarch.
88 2015-09-18 Doug Evans <xdje42@gmail.com>
90 * linux-thread-db.c (record_thread): Return the created thread.
91 (thread_from_lwp): Likewise.
92 (thread_db_get_thread_local_address): Update.
94 2015-09-18 Doug Evans <xdje42@gmail.com>
96 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
97 move only member demangled_name up. All uses updated.
99 2015-09-18 Doug Evans <xdje42@gmail.com>
101 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
102 kind of minimal symbol in the error message.
103 * objfiles.c (objfile_flavour_name): New function.
104 * objfiles.h (objfile_flavour_name): Declare.
106 2015-09-18 Yao Qi <yao.qi@linaro.org>
108 * nat/aarch64-linux.c: Include elf/common.h,
109 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
110 (aarch64_ps_get_thread_area): New function.
111 * nat/aarch64-linux.h: Include gdb_proc_service.h.
112 (aarch64_ps_get_thread_area): Declare.
113 * aarch64-linux-nat.c (ps_get_thread_area): Call
114 aarch64_ps_get_thread_area.
116 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
118 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
120 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
122 * NEWS: Announce new scheduler-locking mode.
123 * infrun.c (schedlock_replay): New.
124 (scheduler_enums): Add schedlock_replay.
125 (scheduler_mode): Change default to schedlock_replay.
126 (user_visible_resume_ptid): Handle schedlock_replay.
127 (clear_proceed_status_thread): Stop replaying if resumed thread is
129 (schedlock_applies): Handle schedlock_replay.
130 (_initialize_infrun): Document new scheduler-locking mode.
131 * record-btrace.c (record_btrace_resume): Remove code to stop other
132 threads when not replaying the resumed thread.
134 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
136 * record-btrace.c ((record_btrace_will_replay): New.
137 (init_record_btrace_ops): Initialize to_record_will_replay.
138 * record-full.c ((record_full_will_replay): New.
139 (init_record_full_ops): Initialize to_record_will_replay.
140 * target-delegates.c: Regenerated.
141 * target.c (target_record_will_replay): New.
142 * target.h (struct target_ops) <to_record_will_replay>: New.
143 (target_record_will_replay): New.
145 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
147 * record-btrace.c (record_btrace_resume): Call
148 target_record_stop_replaying.
149 (record_btrace_stop_replaying_all): New.
150 (init_record_btrace_ops): Initialize to_record_stop_replaying.
151 * record-full.c (record_full_stop_replaying): New.
152 (init_record_full_ops ): Initialize to_record_stop_replaying.
153 * target-delegates.c: Regenerated.
154 * target.c (target_record_stop_replaying): New.
155 * target.h (struct target_ops) <to_record_stop_replaying>: New.
156 (target_record_stop_replaying): New.
158 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
160 * record-btrace.c (record_btrace_xfer_partial)
161 (record_btrace_store_registers, record_btrace_prepare_to_store):
162 Call record_btrace_is_replaying with inferior_ptid instead of
164 (record_btrace_store_registers): Change error message.
166 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
168 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
169 Update users to pass minus_one_ptid.
170 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
171 * record.c (cmd_record_delete): Pass inferior_ptid to
172 target_record_is_replaying.
173 * target-delegates.c: Regenerated.
174 * target.c (target_record_is_replaying): Add ptid argument.
175 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
177 (target_record_is_replaying): Add ptid argument.
179 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
181 * record-btrace.c (record_btrace_open): Remove non_stop check.
182 * NEWS: Announce that record btrace supports non-stop mode.
184 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
186 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
187 in the TARKET_WAITKIND_NO_HISTORY case.
189 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
191 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
192 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
194 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
196 * record-btrace.c (get_thread_current_frame): New.
197 (record_btrace_start_replaying): Call get_thread_current_frame.
199 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
201 * record-btrace.c (record_btrace_resume_thread): A move request
202 overwrites a previous move request.
203 (record_btrace_find_resume_thread): Removed.
204 (record_btrace_resume): Resume all requested threads.
206 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
208 * record-btrace.c: Include vec.h.
209 (record_btrace_find_thread_to_move): Removed.
210 (btrace_step_no_resumed, btrace_step_again)
211 (record_btrace_stop_replaying_at_end): New.
212 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
213 (record_btrace_single_step_forward): Remove calls to
214 record_btrace_stop_replaying.
215 (record_btrace_step_thread): Do only one step for BTHR_CONT and
216 BTHR_RCONT. Keep threads at the end of their history moving.
217 (record_btrace_wait): Call record_btrace_step_thread for all threads
218 until one reports an event. Call record_btrace_stop_replaying_at_end
219 for the eventing thread.
221 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
223 * record-btrace.c (record_btrace_single_step_forward): Return
224 NO_HISTORY if a step brings us to the end of the execution history.
226 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
228 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
230 (record_btrace_single_step_forward): ... here and
231 (record_btrace_single_step_backward): ... here.
233 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
235 * record-btrace.c (btrace_step_spurious)
236 (record_btrace_single_step_forward)
237 (record_btrace_single_step_backward): New.
238 (record_btrace_step_thread): Call record_btrace_single_step_forward
239 and record_btrace_single_step_backward.
241 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
243 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
244 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
246 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
248 * record-btrace.c (btrace_thread_flag_to_str)
249 (record_btrace_cancel_resume): New.
250 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
251 (record_btrace_resume): Print execution direction.
252 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
253 (record_btrace_wait): Call record_btrace_cancel_resume.
255 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
257 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
258 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
259 (record_btrace_find_thread_to_move): Also accept threads that have
261 (btrace_step_stopped_on_request, record_btrace_stop): New.
262 (record_btrace_step_thread): Support BTHR_STOP.
263 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
264 (init_record_btrace_ops): Initialize to_stop.
266 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
268 * record-btrace.c (record_btrace_wait): Replace non_stop check with
269 target_is_non_stop_p ().
271 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
273 * ada-typeprint.c (print_array_type): Do not describe arrays as
274 packed when they embed dynamic elements.
276 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
278 * symtab.h (address_class): Document that TLS variables
279 are handled by LOC_UNRESOLVED.
280 * findvar.c (default_read_var_value): Don't relocate TLS variables.
281 * printcmd.c (address_info): Don't relocate TLS variables.
283 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
285 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
286 (decode_adrp): Likewise.
287 (decode_b): Likewise.
288 (decode_bcond): Likewise.
289 (decode_br): Likewise.
290 (decode_cb): Likewise.
291 (decode_eret): Likewise.
292 (decode_movz): Likewise.
293 (decode_orr_shifted_register_x): Likewise.
294 (decode_ret): Likewise.
295 (decode_stp_offset): Likewise.
296 (decode_stp_offset_wb): Likewise.
297 (decode_stur): Likewise.
298 (decode_tb): Likewise.
299 (aarch64_analyze_prologue): Likewise.
300 (pass_in_x): Likewise.
301 (pass_in_v): Likewise.
302 (pass_on_stack): Likewise.
303 (aarch64_push_dummy_call): Likewise.
304 (aarch64_extract_return_value): Likewise.
305 (aarch64_store_return_value): Likewise.
306 (aarch64_return_value): Likewise.
307 (aarch64_record_asimd_load_store): Likewise.
308 (aarch64_record_load_store): Likewise.
309 (aarch64_record_data_proc_simd_fp): Likewise.
311 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
313 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
314 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
315 (ppc64_skip_trampoline_code_1): ... here.
316 (ppc64_skip_trampoline_code): New wrapper function.
317 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
319 2015-09-15 Yao Qi <yao.qi@linaro.org>
321 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
323 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
324 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
325 if target_can_do_single_step returns 1.
326 * remote.c (struct vCont_action_support) <s, S>: New fields.
327 (PACKET_vContSupported): New enum.
328 (remote_protocol_features): New element for vContSupported.
329 (remote_query_supported): Append "vContSupported+".
330 (remote_vcont_probe): Remove support_s and support_S, use
331 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
332 vCont packet if c and C actions are not supported.
333 (remote_can_do_single_step): New function.
334 (init_remote_ops): Install it to to_can_do_single_step.
335 (_initialize_remote): Call add_packet_config_cmd.
336 * target.h (struct target_ops) <to_can_do_single_step>: New field.
337 (target_can_do_single_step): New macro.
338 * target-delegates.c: Re-generated.
340 2015-09-15 Yao Qi <yao.qi@linaro.org>
342 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
343 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
344 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
346 (aarch64_siginfo_from_compat_siginfo): New function.
347 * nat/aarch64-linux.h: Include signal.h.
348 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
349 (compat_timer_t, compat_clock_t): Likewise.
350 (struct compat_timeval): New.
351 (union compat_sigval): New.
352 (struct compat_siginfo): New.
353 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
354 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
355 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
356 (cpt_si_band, cpt_si_fd): Likewise.
358 2015-09-14 Pedro Alves <palves@redhat.com>
360 * infrun.c (current_stop_id): New global.
361 (get_stop_id, new_stop_id): New functions.
362 (fetch_inferior_event): Handle normal_stop proceeding the target.
363 (struct stop_context): New.
364 (save_stop_context, release_stop_context_cleanup)
365 (stop_context_changed): New functions.
366 (normal_stop): Return true if the hook-stop changes the stop
368 * infrun.h (get_stop_id): Declare.
369 (normal_stop): Now returns int. Add documentation.
371 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
373 * ada-lang.c (ada_value_ptr_subscript): Update the heading
374 comment. Handle packed arrays.
376 2015-09-14 Pedro Alves <palves@redhat.com>
378 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
379 mention of maint set/show target-non-stop.
381 2015-09-11 Don Breazeal <donb@codesourcery.com>
383 * NEWS: Announce new remote packets for the exec-events
384 feature and the exec-events feature and associated commands.
386 2015-09-11 Don Breazeal <donb@codesourcery.com>
388 * remote.c (remote_exec_event_p): New function.
389 (remote_insert_exec_catchpoint): New function.
390 (remote_remove_exec_catchpoint): New function.
391 (init_extended_remote_ops): Initialize extended_remote_ops
392 members to_insert_exec_catchpoint and
393 to_remove_exec_catchpoint.
395 2015-09-11 Don Breazeal <donb@codesourcery.com>
396 Luis Machado <lgustavo@codesourcery.com>
398 * infrun.c (follow_exec): Use process-style ptid for
399 exec message. Call add_inferior_with_spaces and
401 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
402 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
403 * remote.c (remote_pspace_data): New static variable.
404 (remote_pspace_data_cleanup): New function.
405 (get_remote_exec_file): New function.
406 (set_remote_exec_file_1): New function.
407 (set_remote_exec_file): New function.
408 (show_remote_exec_file): New function.
409 (remote_exec_file): Delete static variable.
410 (anonymous enum) <PACKET_exec_event_feature>: New
411 enumeration constant.
412 (remote_protocol_features): Add entry for exec-events feature.
413 (remote_query_supported): Add client side of qSupported query
414 for exec-events feature.
415 (remote_follow_exec): New function.
416 (remote_parse_stop_reply): Handle 'exec' stop reason.
417 (extended_remote_run, extended_remote_create_inferior): Call
418 get_remote_exec_file and set_remote_exec_file_1.
419 (init_extended_remote_ops) <to_follow_exec>: Initialize new
421 (_initialize_remote): Call
422 register_program_space_data_with_cleanup. Call
423 add_packet_config_cmd for remote exec-events feature.
424 Modify call to add_setshow_string_noescape_cmd for exec-file
425 to use new functions set_remote_exec_file and
426 show_remote_exec_file.
427 * target-debug.h, target-delegates.c: Regenerated.
428 * target.c (target_follow_exec): New function.
429 * target.h (struct target_ops) <to_follow_exec>: New member.
430 (target_follow_exec): Declare new function.
432 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
434 * aarch64-tdep.c (decode_cb): Move up comment describing the
436 (decode_tb): Fix a typo in comment above the function. Move up
437 comment describing the encoding.
439 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
441 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
443 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
446 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
447 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
449 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
451 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
454 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
456 * ada-lang.c (ada_search_struct_field): Constify parameters
458 (xget_renaming_scope): Likewise.
459 (ada_is_redundant_range_encoding): Likewise.
460 (scan_discrim_bound): Likewise.
461 (to_fixed_range_type): Likewise.
463 2015-09-10 Yao Qi <yao.qi@linaro.org>
465 * breakpoint.c (download_tracepoint_locations): New local
466 can_download_tracepoint. Check the result of
467 target_can_download_tracepoint and save it in
468 can_download_tracepoint if there are tracepoints to download.
469 * linux-nat.h (enum tribool): Move it to ...
470 * common/common-types.h: ... here.
472 2015-09-09 Pedro Alves <palves@redhat.com>
474 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
475 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
477 2015-09-09 Pedro Alves <palves@redhat.com>
479 * continuations.c (add_continuation, restore_thread_cleanup)
480 (do_all_continuations_ptid, do_all_continuations_thread_callback)
481 (do_all_continuations_thread, do_all_continuations)
482 (discard_all_continuations_thread_callback)
483 (discard_all_continuations_thread, discard_all_continuations)
484 (add_intermediate_continuation)
485 (do_all_intermediate_continuations_thread_callback)
486 (do_all_intermediate_continuations_thread)
487 (do_all_intermediate_continuations)
488 (discard_all_intermediate_continuations_thread_callback)
489 (discard_all_intermediate_continuations_thread)
490 (discard_all_intermediate_continuations): Delete.
491 * continuations.h (add_continuation, do_all_continuations)
492 (do_all_continuations_thread, discard_all_continuations)
493 (discard_all_continuations_thread, add_intermediate_continuation)
494 (do_all_intermediate_continuations)
495 (do_all_intermediate_continuations_thread)
496 (discard_all_intermediate_continuations)
497 (discard_all_intermediate_continuations_thread): Delete
499 * event-top.c (stdin_event_handler): Delete references to
501 * gdbthread.h (struct thread_info): Delete continuations and
502 intermediate_continuations fields.
503 * inf-loop.c (inferior_event_handler): Remove references to
505 * infrun.c (infrun_thread_stop_requested_callback): Remove
506 references to continuations.
507 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
508 * thread.c: Don't include "continuations.h".
509 (clear_thread_inferior_resources): Remove references to
512 2015-09-09 Pedro Alves <palves@redhat.com>
514 * infcall.c (struct dummy_frame_context_saver): Delete.
515 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
516 (dummy_frame_context_saver_drop)
517 (dummy_frame_context_saver_cleanup)
518 (dummy_frame_context_saver_get_regs)
519 (dummy_frame_context_saver_setup): Delete.
520 * infcall.h (dummy_frame_context_saver_drop)
521 (dummy_frame_context_saver_cleanup)
522 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
524 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
525 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
526 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
528 2015-09-09 Pedro Alves <palves@redhat.com>
530 * breakpoint.c: Include "thread-fsm.h".
531 (struct until_break_command_continuation_args): Delete.
532 (struct until_break_fsm): New.
533 (until_break_fsm_ops): New global.
534 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
535 (until_break_command_continuation): Delete.
536 (until_break_fsm_clean_up): New function.
537 (until_break_fsm_async_reply_reason): New function.
538 (until_break_command): Adjust to create an until_break_fsm instead
540 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
542 * infcmd.c (struct until_next_fsm): New.
543 (until_next_fsm_ops): New global.
544 (new_until_next_fsm, until_next_fsm_should_stop): New function.
545 (until_next_continuation): Delete.
546 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
548 (until_next_command): Adjust to create a new until_next_fsm
549 instead of a continuation.
551 2015-09-09 Pedro Alves <palves@redhat.com>
553 * infcall.c: Include thread_fsm.h.
554 (struct call_return_meta_info): New.
555 (get_call_return_value): New function, factored out from
556 call_function_by_hand_dummy.
557 (struct call_thread_fsm): New.
558 (call_thread_fsm_ops): New global.
559 (new_call_thread_fsm, call_thread_fsm_should_stop)
560 (call_thread_fsm_should_notify_stop): New functions.
561 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
563 (call_function_by_hand_dummy): Create a new call_thread_fsm
564 instance, associate it with the thread, and wait for the FSM to
565 finish. If finished successfully, fetch the function's result
566 value out of the FSM.
567 * infrun.c (fetch_inferior_event): If the FSM says the stop
568 shouldn't be notified, don't call normal_stop.
569 (maybe_remove_breakpoints): New function, factored out from ...
570 (normal_stop): ... here. Simplify.
571 * infrun.h (maybe_remove_breakpoints): Declare.
572 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
573 (thread-fsm.h) <struct thread_fsm_ops>: New field.
574 (thread_fsm_should_notify_stop): Declare.
576 2015-09-09 Pedro Alves <palves@redhat.com>
578 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
579 * breakpoint.c (handle_jit_event): Print debug output.
580 (bpstat_what): Split event callback handling to ...
581 (bpstat_run_callbacks): ... this new function.
582 (momentary_bkpt_print_it): No longer handle bp_finish here.
583 * breakpoint.h (bpstat_run_callbacks): Declare.
584 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
585 <thread_fsm>: New field.
586 (thread_cancel_execution_command): Declare.
587 * infcmd.c: Include thread-fsm.h.
588 (struct step_command_fsm): New.
589 (step_command_fsm_ops): New global.
590 (new_step_command_fsm, step_command_fsm_prepare): New functions.
591 (step_1): Adjust to use step_command_fsm_prepare and
593 (struct step_1_continuation_args): Delete.
594 (step_1_continuation): Delete.
595 (step_command_fsm_should_stop): New function.
597 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
598 (prepare_one_step): New function, based on step_once.
599 (until_next_command): Remove step_multi reference.
600 (struct return_value_info): New.
601 (print_return_value): Rename to ...
602 (print_return_value_1): ... this. New struct return_value_info
604 (print_return_value): Reimplement as wrapper around
605 print_return_value_1.
606 (struct finish_command_fsm): New.
607 (finish_command_continuation): Delete.
608 (finish_command_fsm_ops): New global.
609 (new_finish_command_fsm, finish_command_fsm_should_stop): New
611 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
613 (finish_command_continuation_free_arg): Delete.
614 (finish_command_fsm_async_reply_reason): New.
615 (finish_backward, finish_forward): Change symbol parameter to a
616 finish_command_fsm. Adjust.
617 (finish_command): Create a finish_command_fsm. Adjust.
618 * infrun.c: Include "thread-fsm.h".
619 (clear_proceed_status_thread): Delete the thread's FSM.
620 (infrun_thread_stop_requested_callback): Cancel the thread's
622 (clean_up_just_stopped_threads_fsms): New function.
623 (fetch_inferior_event): Handle the event_thread's should_stop
624 method saying the command isn't done yet.
625 (process_event_stop_test): Run breakpoint callbacks here.
626 (print_stop_event): Rename to ...
627 (print_stop_location): ... this.
628 (restore_current_uiout_cleanup): New function.
629 (print_stop_event): Reimplement.
630 (normal_stop): No longer notify the end_stepping_range observers
631 here handle "step N" nor "finish" here. No longer call
632 print_stop_event here.
633 * infrun.h (struct return_value_info): Forward declare.
634 (print_return_value): Declare.
635 (print_stop_event): Change prototype.
636 * thread-fsm.c: New file.
637 * thread-fsm.h: New file.
638 * thread.c: Include "thread-fsm.h".
639 (thread_cancel_execution_command): New function.
640 (clear_thread_inferior_resources): Call it.
641 * cli/cli-interp.c (cli_on_normal_stop): New function.
642 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
644 * mi/mi-interp.c: Include "thread-fsm.h".
645 (restore_current_uiout_cleanup): Delete.
646 (mi_on_normal_stop): If the thread has an FSM associated, and it
647 finished, ask it for the async-reply-reason to print. Always call
648 print_stop_event here, regardless of the top-level interpreter.
649 Check bpstat_what to tell whether an asynchronous breakpoint hit
651 * tui/tui-interp.c (tui_on_normal_stop): New function.
652 (tui_init): Install tui_on_normal_stop as normal_stop observer.
654 2015-09-09 Pedro Alves <palves@redhat.com>
656 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
657 check whether the target can async.
658 * inf-loop.c (inferior_event_handler): Only call target_async if
659 the target can async.
660 * infcall.c: Include top.h and interps.h.
661 (run_inferior_call): For the interpreter to sync mode while
662 running the infcall. Call wait_sync_command_done instead of
663 wait_for_inferior plus normal_stop.
664 * infcmd.c (prepare_execution_command): Don't check whether the
665 target can async when running in the foreground.
666 (step_1): Delete synchronous case handling.
667 (step_once): Always install a continuation, even in sync mode.
668 (until_next_command, finish_forward): Don't check whether the
670 (attach_command_post_wait, notice_new_inferior): Always install a
671 continuation, even in sync mode.
672 * infrun.c (mark_infrun_async_event_handler): New function.
673 (proceed): In sync mode, mark infrun's event source instead of
674 waiting for events here.
675 (fetch_inferior_event): If the target can't async, do a blocking
677 (prepare_to_wait): In sync mode, mark infrun's event source.
678 (infrun_async_inferior_event_handler): No longer bail out if the
680 * infrun.h (mark_infrun_async_event_handler): New declaration.
681 * linux-nat.c (linux_nat_wait_1): Remove calls to
682 set_sigint_trap/clear_sigint_trap.
683 (linux_nat_terminal_inferior): No longer check whether the target
685 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
687 (mi_execute_command_input_handler): No longer check whether the
688 target is async. Update and simplify comment.
689 * target.c (default_target_wait): New function.
690 * target.h (struct target_ops) <to_wait>: Now defaults to
692 (default_target_wait): Declare.
693 * top.c (wait_sync_command_done): New function, factored out from
695 (maybe_wait_sync_command_done): ... this.
696 * top.h (wait_sync_command_done): Declare.
697 * target-delegates.c: Regenerate.
699 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
701 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
702 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
703 Remove include of sys/utsname.h.
704 (linux_determine_kernel_ptr_bits): Remove.
705 (linux_determine_kernel_start): New.
706 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
708 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
709 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
711 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
714 2015-09-07 Pedro Alves <palves@redhat.com>
716 * guile/guile-internal.h (as_a_scm_t_subr): New.
717 * guile/guile.c (misc_guile_functions): Use it.
718 * guile/scm-arch.c (arch_functions): Use it.
719 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
721 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
722 * guile/scm-cmd.c (command_functions): Use it.
723 * guile/scm-disasm.c (disasm_functions): Use it.
724 * guile/scm-exception.c (exception_functions)
725 (private_exception_functions): Use it.
726 * guile/scm-frame.c (frame_functions)
727 * guile/scm-gsmob.c (gsmob_functions): Use it.
728 * guile/scm-iterator.c (iterator_functions): Use it.
729 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
730 * guile/scm-math.c (math_functions): Use it.
731 * guile/scm-objfile.c (objfile_functions): Use it.
732 * guile/scm-param.c (parameter_functions): Use it.
733 * guile/scm-ports.c (port_functions, private_port_functions): Use
735 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
736 * guile/scm-progspace.c (pspace_functions): Use it.
737 * guile/scm-string.c (string_functions): Use it.
738 * guile/scm-symbol.c (symbol_functions): Use it.
739 * guile/scm-symtab.c (symtab_functions): Use it.
740 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
742 * guile/scm-value.c (value_functions): Use it.
744 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
746 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
747 (tui_next_win): Likewise.
748 (tui_prev_win): Likewise.
749 (tui_partial_win_by_name): Likewise.
750 (tui_init_generic_part): Likewise.
751 (init_content_element): Likewise.
752 (tui_del_window): Likewise.
753 (tui_free_window): Likewise.
754 (tui_del_data_windows): Likewise.
755 (tui_free_data_content): Likewise.
756 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
757 * tui/tui-regs.c (tui_show_register_group): Likewise.
758 * tui/tui-win.c (tui_resize_all): Likewise.
759 (tui_set_focus): Likewise.
760 (tui_set_win_height): Likewise.
761 (make_invisible_and_set_new_height): Likewise.
762 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
763 * tui/tui-wingeneral.c (make_visible): Likewise.
765 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
767 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
769 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
771 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
773 * dbxread.c (dbx_end_psymtab): Likewise.
774 * gnu-nat.c (gnu_write_inferior): Likewise.
775 * mdebugread.c (cross_ref): Likewise.
776 * p-valprint.c (pascal_val_print): Likewise.
777 * xcoffread.c (xcoff_end_psymtab): Likewise.
779 2015-09-04 Yao Qi <yao.qi@linaro.org>
781 * NEWS: Mention the aarch64 multi-arch debugging support.
783 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
785 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
786 type instead of a TYPE_CODE_INT one for the string_char_type
787 and the ada_primitive_type_char types.
789 2015-09-03 Yao Qi <yao.qi@linaro.org>
791 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
792 Move code to aarch64_linux_region_ok_for_watchpoint. Call
793 aarch64_linux_region_ok_for_watchpoint.
794 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
796 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
799 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
801 * gdb_obstack.h (obstack_strdup): Declare.
802 * gdb_obstack.c (obstack_strdup): Define.
803 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
804 * gdbarch.c: Regenerate.
805 * gdbarch.h: Regenerate.
806 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
808 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
810 * gdbtypes.c (copy_type_recursive): Update documentation.
812 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
814 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
817 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
819 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
821 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
823 * solib-svr4.c (solib_event_probe_action): Call
824 get_probe_argument_count using TRY...CATCH.
825 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
827 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
829 * probe.h (struct probe_ops) <get_probe_argument_count,
830 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
831 the comment that the function can throw an exception.
832 (get_probe_argument_count): Likewise.
833 (evaluate_probe_argument): Likewise.
834 * stap-probe.c (stap_get_opcode): Call error instead of
836 (stap_get_expected_argument_type): Likewise. Add argument
837 'probe'. Improve error message by mentioning the probe's name.
838 (stap_parse_probe_arguments): Adjust call to
839 stap_get_expected_argument_type.
840 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
841 not zero. Call internal_error if GDB requests an argument but the
842 probe has no arguments.
844 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
846 * ada-lang.c (ada_resolve_function): Do not ask the user what
847 match to use when in completion mode.
849 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
851 * tui/tui-data.c (tui_win_name): Make local variable const, remove
854 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
856 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
857 call_abi using XSHAL_ABI macro.
859 2015-08-29 Doug Evans <xdje42@gmail.com>
861 * symtab.h (struct symbol): Tweak comment.
863 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
865 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
866 gdbarch obstack instead of on the heap. Update commentary
869 2015-08-28 Joel Brobecker <brobecker@adacore.com>
873 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
875 * NEWS: Update entry about non-8-bits addressable memory.
877 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
880 2014-11-06 Doug Evans <xdje42@gmail.com>
881 * solib.c (solib_global_lookup): Fetch arch from objfile,
884 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
886 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
887 attempt to relocate a TLS variable offset.
889 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
891 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
892 registered yet. Set inferior_ptid while calling target_read_memory.
894 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
896 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
897 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
898 * linux-nat.c (check_stopped_by_breakpoint): Use
899 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
901 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
903 * linux-thread-db.c (thread_db_get_thread_local_address): If the
904 thread was not yet discovered, use thread_from_lwp instead of
905 calling thread_db_find_new_threads_1.
907 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
909 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
912 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
914 * NEWS: Document support for non-8-bits addressable memory.
916 2015-08-27 Pedro Alves <palves@redhat.com>
918 * configure.ac: Remove AC_TYPE_SIGNAL call.
919 * configure, config.in: Regenerate.
921 2015-08-27 Pedro Alves <palves@redhat.com>
923 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
924 * extension-priv.h: Include signal.h.
925 (struct signal_handler) <handler>: Change type to sighandler_t.
926 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
927 * inflow.c (sigint_ours, sigquit_ours): Change type to
929 (child_terminal_inferior): Remove casts.
930 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
931 (osig): Change type to sighandler_t.
932 * nto-procfs.c (ofunc): Change type to sighandler_t.
933 (procfs_wait): Remove casts.
934 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
935 * remote-sim.c (gdbsim_wait): Use sighandler_t.
936 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
938 2015-08-27 Pedro Alves <palves@redhat.com>
940 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
941 * gnulib/aclocal.m4: Renegerate.
942 * gnulib/config.in: Renegerate.
943 * gnulib/configure: Renegerate.
944 * gnulib/import/Makefile.am: Update.
945 * gnulib/import/Makefile.in: Regenerate.
946 * gnulib/import/m4/gnulib-cache.m4: Update.
947 * gnulib/import/m4/gnulib-comp.m4: Update.
948 * gnulib/import/m4/signal_h.m4: New file.
949 * gnulib/import/signal.in.h: New file.
951 2015-08-27 Pedro Alves <palves@redhat.com>
953 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
954 (MIN_MEMORY_PACKET_SIZE): New.
955 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
956 (get_memory_packet_size): Adjust. No longer limit the max packet
958 (set_memory_packet_size): Adjust, and remove dead code.
959 (remote_check_symbols): Use xmalloc and a cleanup instead of
961 (remote_packet_size): No longer cap the packet size.
962 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
964 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
966 * compile/compile.c (compile_to_object): Mention language in
969 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
971 * target.c (target_pre_inferior): Unset attach_flag.
973 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
975 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
976 * gdbarch.c: Re-generate.
978 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
980 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
981 function with the XNEW-family equivalent.
982 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
983 * ada-exp.y (write_ambiguous_var): Likewise.
984 * ada-lang.c (resolve_subexp): Likewise.
985 (user_select_syms): Likewise.
986 (assign_aggregate): Likewise.
987 (ada_evaluate_subexp): Likewise.
988 (cache_symbol): Likewise.
989 * addrmap.c (allocate_key): Likewise.
990 (addrmap_create_mutable): Likewise.
991 * aix-thread.c (sync_threadlists): Likewise.
992 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
993 (alpha_gdbarch_init): Likewise.
994 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
995 * arm-linux-nat.c (arm_linux_add_process): Likewise.
996 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
997 * arm-tdep.c (push_stack_item): Likewise.
998 (arm_displaced_step_copy_insn): Likewise.
999 (arm_gdbarch_init): Likewise.
1000 (_initialize_arm_tdep): Likewise.
1001 * avr-tdep.c (push_stack_item): Likewise.
1002 * ax-general.c (new_agent_expr): Likewise.
1003 * block.c (block_initialize_namespace): Likewise.
1004 * breakpoint.c (alloc_counted_command_line): Likewise.
1005 (update_dprintf_command_list): Likewise.
1006 (parse_breakpoint_sals): Likewise.
1007 (decode_static_tracepoint_spec): Likewise.
1008 (until_break_command): Likewise.
1009 (clear_command): Likewise.
1010 (update_global_location_list): Likewise.
1011 (get_breakpoint_objfile_data) Likewise.
1012 * btrace.c (ftrace_new_function): Likewise.
1013 (btrace_set_insn_history): Likewise.
1014 (btrace_set_call_history): Likewise.
1015 * buildsym.c (add_symbol_to_list): Likewise.
1016 (record_pending_block): Likewise.
1017 (start_subfile): Likewise.
1018 (start_buildsym_compunit): Likewise.
1019 (push_subfile): Likewise.
1020 (end_symtab_get_static_block): Likewise.
1021 (buildsym_init): Likewise.
1022 * cli/cli-cmds.c (source_command): Likewise.
1023 * cli/cli-decode.c (add_cmd): Likewise.
1024 * cli/cli-script.c (build_command_line): Likewise.
1025 (setup_user_args): Likewise.
1026 (realloc_body_list): Likewise.
1027 (process_next_line): Likewise.
1028 (copy_command_lines): Likewise.
1029 * cli/cli-setshow.c (do_set_command): Likewise.
1030 * coff-pe-read.c (read_pe_exported_syms): Likewise.
1031 * coffread.c (coff_locate_sections): Likewise.
1032 (coff_symtab_read): Likewise.
1033 (coff_read_struct_type): Likewise.
1034 * common/cleanups.c (make_my_cleanup2): Likewise.
1035 * common/common-exceptions.c (throw_it): Likewise.
1036 * common/filestuff.c (make_cleanup_close): Likewise.
1037 * common/format.c (parse_format_string): Likewise.
1038 * common/queue.h (DEFINE_QUEUE_P): Likewise.
1039 * compile/compile-object-load.c (munmap_list_add): Likewise.
1040 (compile_object_load): Likewise.
1041 * compile/compile-object-run.c (compile_object_run): Likewise.
1042 * compile/compile.c (append_args): Likewise.
1043 * corefile.c (specify_exec_file_hook): Likewise.
1044 * cp-support.c (make_symbol_overload_list): Likewise.
1045 * cris-tdep.c (push_stack_item): Likewise.
1046 (cris_gdbarch_init): Likewise.
1047 * ctf.c (ctf_trace_file_writer_new): Likewise.
1048 * dbxread.c (init_header_files): Likewise.
1049 (add_new_header_file): Likewise.
1050 (init_bincl_list): Likewise.
1051 (dbx_end_psymtab): Likewise.
1052 (start_psymtab): Likewise.
1053 (dbx_end_psymtab): Likewise.
1054 * dcache.c (dcache_init): Likewise.
1055 * dictionary.c (dict_create_hashed): Likewise.
1056 (dict_create_hashed_expandable): Likewise.
1057 (dict_create_linear): Likewise.
1058 (dict_create_linear_expandable): Likewise.
1059 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
1060 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
1061 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
1062 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1063 (decode_frame_entry_1): Likewise.
1064 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
1065 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1066 * dwarf2read.c (dwarf2_has_info): Likewise.
1067 (create_signatured_type_table_from_index): Likewise.
1068 (dwarf2_read_index): Likewise.
1069 (dw2_get_file_names_reader): Likewise.
1070 (create_all_type_units): Likewise.
1071 (read_cutu_die_from_dwo): Likewise.
1072 (init_tu_and_read_dwo_dies): Likewise.
1073 (init_cutu_and_read_dies): Likewise.
1074 (create_all_comp_units): Likewise.
1075 (queue_comp_unit): Likewise.
1076 (inherit_abstract_dies): Likewise.
1077 (read_call_site_scope): Likewise.
1078 (dwarf2_add_field): Likewise.
1079 (dwarf2_add_typedef): Likewise.
1080 (dwarf2_add_member_fn): Likewise.
1081 (attr_to_dynamic_prop): Likewise.
1082 (abbrev_table_alloc_abbrev): Likewise.
1083 (abbrev_table_read_table): Likewise.
1084 (add_include_dir): Likewise.
1085 (add_file_name): Likewise.
1086 (dwarf_decode_line_header): Likewise.
1087 (dwarf2_const_value_attr): Likewise.
1088 (dwarf_alloc_block): Likewise.
1089 (parse_macro_definition): Likewise.
1090 (set_die_type): Likewise.
1091 (write_psymtabs_to_index): Likewise.
1092 (create_cus_from_index): Likewise.
1093 (dwarf2_create_include_psymtab): Likewise.
1094 (process_psymtab_comp_unit_reader): Likewise.
1095 (build_type_psymtab_dependencies): Likewise.
1096 (read_comp_units_from_section): Likewise.
1097 (compute_compunit_symtab_includes): Likewise.
1098 (create_dwo_unit_in_dwp_v1): Likewise.
1099 (create_dwo_unit_in_dwp_v2): Likewise.
1100 (read_func_scope): Likewise.
1101 (process_structure_scope): Likewise.
1102 (mark_common_block_symbol_computed): Likewise.
1103 (load_partial_dies): Likewise.
1104 (dwarf2_symbol_mark_computed): Likewise.
1105 * elfread.c (elf_symfile_segments): Likewise.
1106 (elf_read_minimal_symbols): Likewise.
1107 * environ.c (make_environ): Likewise.
1108 * eval.c (evaluate_subexp_standard): Likewise.
1109 * event-loop.c (create_file_handler): Likewise.
1110 (create_async_signal_handler): Likewise.
1111 (create_async_event_handler): Likewise.
1112 (create_timer): Likewise.
1113 * exec.c (build_section_table): Likewise.
1114 * fbsd-nat.c (fbsd_remember_child): Likewise.
1115 * fork-child.c (fork_inferior): Likewise.
1116 * frv-tdep.c (new_variant): Likewise.
1117 * gdbarch.sh (gdbarch_alloc): Likewise.
1118 (append_name): Likewise.
1119 * gdbtypes.c (rank_function): Likewise.
1120 (copy_type_recursive): Likewise.
1121 (add_dyn_prop): Likewise.
1122 * gnu-nat.c (make_proc): Likewise.
1123 (make_inf): Likewise.
1124 (gnu_write_inferior): Likewise.
1125 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1126 (build_std_type_info_type): Likewise.
1127 * guile/scm-param.c (compute_enum_list): Likewise.
1128 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
1129 * guile/scm-value.c (gdbscm_value_call): Likewise.
1130 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1131 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
1132 (read_unwind_info): Likewise.
1133 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1134 * infcall.c (dummy_frame_context_saver_setup): Likewise.
1135 (call_function_by_hand_dummy): Likewise.
1136 * infcmd.c (step_once): Likewise.
1137 (finish_forward): Likewise.
1138 (attach_command): Likewise.
1139 (notice_new_inferior): Likewise.
1140 * inferior.c (add_inferior_silent): Likewise.
1141 * infrun.c (add_displaced_stepping_state): Likewise.
1142 (save_infcall_control_state): Likewise.
1143 (save_inferior_ptid): Likewise.
1144 (_initialize_infrun): Likewise.
1145 * jit.c (bfd_open_from_target_memory): Likewise.
1146 (jit_gdbarch_data_init): Likewise.
1147 * language.c (add_language): Likewise.
1148 * linespec.c (decode_line_2): Likewise.
1149 * linux-nat.c (add_to_pid_list): Likewise.
1150 (add_initial_lwp): Likewise.
1151 * linux-thread-db.c (add_thread_db_info): Likewise.
1152 (record_thread): Likewise.
1153 (info_auto_load_libthread_db): Likewise.
1154 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
1155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1156 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1157 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
1158 * macrocmd.c (macro_define_command): Likewise.
1159 * macroexp.c (gather_arguments): Likewise.
1160 * macroscope.c (sal_macro_scope): Likewise.
1161 * macrotab.c (new_macro_table): Likewise.
1162 * mdebugread.c (push_parse_stack): Likewise.
1163 (parse_partial_symbols): Likewise.
1164 (parse_symbol): Likewise.
1165 (psymtab_to_symtab_1): Likewise.
1166 (new_block): Likewise.
1167 (new_psymtab): Likewise.
1168 (mdebug_build_psymtabs): Likewise.
1169 (add_pending): Likewise.
1170 (elfmdebug_build_psymtabs): Likewise.
1171 * mep-tdep.c (mep_gdbarch_init): Likewise.
1172 * mi/mi-main.c (mi_execute_command): Likewise.
1173 * mi/mi-parse.c (mi_parse_argv): Likewise.
1174 * minidebug.c (lzma_open): Likewise.
1175 * minsyms.c (terminate_minimal_symbol_table): Likewise.
1176 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
1177 * mips-tdep.c (mips_gdbarch_init): Likewise.
1178 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1179 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1180 * mt-tdep.c (mt_registers_info): Likewise.
1181 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
1182 * nat/linux-btrace.c (linux_enable_bts): Likewise.
1183 (linux_enable_pt): Likewise.
1184 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
1185 (linux_xfer_osdata_processgroups): Likewise.
1186 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1187 * nto-procfs.c (procfs_meminfo): Likewise.
1188 * objc-lang.c (start_msglist): Likewise.
1189 (selectors_info): Likewise.
1190 (classes_info): Likewise.
1191 (find_methods): Likewise.
1192 * objfiles.c (allocate_objfile): Likewise.
1193 (update_section_map): Likewise.
1194 * osabi.c (gdbarch_register_osabi): Likewise.
1195 (gdbarch_register_osabi_sniffer): Likewise.
1196 * parse.c (start_arglist): Likewise.
1197 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
1198 (hwdebug_insert_point): Likewise.
1199 * printcmd.c (display_command): Likewise.
1200 (ui_printf): Likewise.
1201 * procfs.c (create_procinfo): Likewise.
1202 (load_syscalls): Likewise.
1203 (proc_get_LDT_entry): Likewise.
1204 (proc_update_threads): Likewise.
1205 * prologue-value.c (make_pv_area): Likewise.
1206 (pv_area_store): Likewise.
1207 * psymtab.c (extend_psymbol_list): Likewise.
1208 (init_psymbol_list): Likewise.
1209 (allocate_psymtab): Likewise.
1210 * python/py-inferior.c (add_thread_object): Likewise.
1211 * python/py-param.c (compute_enum_values): Likewise.
1212 * python/py-value.c (valpy_call): Likewise.
1213 * python/py-varobj.c (py_varobj_iter_next): Likewise.
1214 * python/python.c (ensure_python_env): Likewise.
1215 * record-btrace.c (record_btrace_start_replaying): Likewise.
1216 * record-full.c (record_full_reg_alloc): Likewise.
1217 (record_full_mem_alloc): Likewise.
1218 (record_full_end_alloc): Likewise.
1219 (record_full_core_xfer_partial): Likewise.
1220 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
1221 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
1222 * remote-notif.c (remote_notif_state_allocate): Likewise.
1223 * remote.c (demand_private_info): Likewise.
1224 (remote_notif_stop_alloc_reply): Likewise.
1225 (remote_enable_btrace): Likewise.
1226 * reverse.c (save_bookmark_command): Likewise.
1227 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1228 * rx-tdep.c (rx_gdbarch_init): Likewise.
1229 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1230 * ser-go32.c (dos_get_tty_state): Likewise.
1231 (dos_copy_tty_state): Likewise.
1232 * ser-mingw.c (ser_windows_open): Likewise.
1233 (ser_console_wait_handle): Likewise.
1234 (ser_console_get_tty_state): Likewise.
1235 (make_pipe_state): Likewise.
1236 (net_windows_open): Likewise.
1237 * ser-unix.c (hardwire_get_tty_state): Likewise.
1238 (hardwire_copy_tty_state): Likewise.
1239 * solib-aix.c (solib_aix_new_lm_info): Likewise.
1240 * solib-dsbt.c (dsbt_current_sos): Likewise.
1241 (dsbt_relocate_main_executable): Likewise.
1242 * solib-frv.c (frv_current_sos): Likewise.
1243 (frv_relocate_main_executable): Likewise.
1244 * solib-spu.c (spu_bfd_fopen): Likewise.
1245 * solib-svr4.c (lm_info_read): Likewise.
1246 (svr4_copy_library_list): Likewise.
1247 (svr4_default_sos): Likewise.
1248 * source.c (find_source_lines): Likewise.
1249 (line_info): Likewise.
1250 (add_substitute_path_rule): Likewise.
1251 * spu-linux-nat.c (spu_bfd_open): Likewise.
1252 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1253 * stabsread.c (dbx_lookup_type): Likewise.
1254 (read_type): Likewise.
1255 (read_member_functions): Likewise.
1256 (read_struct_fields): Likewise.
1257 (read_baseclasses): Likewise.
1258 (read_args): Likewise.
1259 (_initialize_stabsread): Likewise.
1260 * stack.c (func_command): Likewise.
1261 * stap-probe.c (handle_stap_probe): Likewise.
1262 * symfile.c (addrs_section_sort): Likewise.
1263 (addr_info_make_relative): Likewise.
1264 (load_section_callback): Likewise.
1265 (add_symbol_file_command): Likewise.
1266 (init_filename_language_table): Likewise.
1267 * symtab.c (create_filename_seen_cache): Likewise.
1268 (sort_search_symbols_remove_dups): Likewise.
1269 (search_symbols): Likewise.
1270 * target.c (make_cleanup_restore_target_terminal): Likewise.
1271 * thread.c (new_thread): Likewise.
1272 (enable_thread_stack_temporaries): Likewise.
1273 (make_cleanup_restore_current_thread): Likewise.
1274 (thread_apply_all_command): Likewise.
1275 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1276 * top.c (gdb_readline_wrapper): Likewise.
1277 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1278 * tracepoint.c (trace_find_line_command): Likewise.
1279 (all_tracepoint_actions_and_cleanup): Likewise.
1280 (make_cleanup_restore_current_traceframe): Likewise.
1281 (get_uploaded_tp): Likewise.
1282 (get_uploaded_tsv): Likewise.
1283 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1284 (tui_alloc_win_info): Likewise.
1285 (tui_alloc_content): Likewise.
1286 (tui_add_content_elements): Likewise.
1287 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1288 (tui_set_disassem_content): Likewise.
1289 * ui-file.c (ui_file_new): Likewise.
1290 (stdio_file_new): Likewise.
1291 (tee_file_new): Likewise.
1292 * utils.c (make_cleanup_restore_integer): Likewise.
1293 (add_internal_problem_command): Likewise.
1294 * v850-tdep.c (v850_gdbarch_init): Likewise.
1295 * valops.c (find_oload_champ): Likewise.
1296 * value.c (allocate_value_lazy): Likewise.
1297 (record_latest_value): Likewise.
1298 (create_internalvar): Likewise.
1299 * varobj.c (install_variable): Likewise.
1300 (new_variable): Likewise.
1301 (new_root_variable): Likewise.
1303 (_initialize_varobj): Likewise.
1304 * windows-nat.c (windows_make_so): Likewise.
1305 * x86-nat.c (x86_add_process): Likewise.
1306 * xcoffread.c (arrange_linetable): Likewise.
1307 (allocate_include_entry): Likewise.
1308 (process_linenos): Likewise.
1309 (SYMBOL_DUP): Likewise.
1310 (xcoff_start_psymtab): Likewise.
1311 (xcoff_end_psymtab): Likewise.
1312 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1313 * xtensa-tdep.c (xtensa_register_type): Likewise.
1314 * gdbarch.c: Regenerate.
1315 * gdbarch.h: Regenerate.
1317 2015-08-25 Don Breazeal <donb@codesourcery.com>
1319 * infrun.c (follow_exec): Re-order operations for
1320 handling follow-exec-mode "new".
1321 (handle_inferior_event_1): Assign ecs->event_thread
1322 to the current thread.
1323 * remote.c (get_remote_arch_state): Add an assertion.
1325 2015-08-26 Pedro Alves <palves@redhat.com>
1327 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1329 2015-08-25 Pedro Alves <palves@redhat.com>
1332 * defs.h (maybe_quit): Declare.
1333 (QUIT): Now calls maybe_quit.
1334 * event-loop.c (clear_async_signal_handler)
1335 (async_signal_handler_is_marked): New functions.
1336 * event-loop.h (async_signal_handler_is_marked)
1337 (clear_async_signal_handler): New declarations.
1338 * remote.c (remote_check_pending_interrupt): New function.
1339 (interrupt_query): Use make_cleanup_restore_target_terminal. No
1340 longer check whether the target is async. If waiting for a stop
1341 reply, and a Ctrl-C as been sent to the target, offer to
1342 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1343 Otherwise do not disconnect and throw a quit.
1344 (_initialize_remote): Install remote_check_pending_interrupt as
1345 to_check_pending_interrupt.
1346 * target.c (target_check_pending_interrupt): New function.
1347 * target.h (struct target_ops) <to_check_pending_interrupt>: New
1349 (target_check_pending_interrupt): New declaration.
1350 * utils.c (maybe_quit): New function.
1351 * target-delegates.c: Regenerate.
1353 2015-08-25 Yao Qi <yao.qi@linaro.org>
1355 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1356 Rename local variable pid to tid, and get lwpid of lwp. Update
1359 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
1361 * ada-lang.c (ada_read_var_value): Add a var_block argument
1362 and pass it to default_read_var_value.
1363 * block.c (block_static_link): New accessor.
1364 * block.h (block_static_link): Declare it.
1365 * buildsym.c (finish_block_internal): Add a static_link
1366 argument. If there is a static link, associate it to the new
1368 (finish_block): Add a static link argument and pass it to
1369 finish_block_internal.
1370 (end_symtab_get_static_block): Update calls to finish_block and
1371 to finish_block_internal.
1372 (end_symtab_with_blockvector): Update call to
1373 finish_block_internal.
1374 * buildsym.h: Forward-declare struct dynamic_prop.
1375 (struct context_stack): Add a static_link field.
1376 (finish_block): Add a static link argument.
1377 * c-exp.y: Remove an obsolete comment (evaluation of variables
1378 already start from the selected frame, and now they climb *up*
1379 the call stack) and propagate the block information to the
1380 produced expression.
1381 * d-exp.y: Likewise.
1382 * f-exp.y: Likewise.
1383 * go-exp.y: Likewise.
1384 * jv-exp.y: Likewise.
1385 * m2-exp.y: Likewise.
1386 * p-exp.y: Likewise.
1387 * coffread.c (coff_symtab_read): Update calls to finish_block.
1388 * dbxread.c (process_one_symbol): Likewise.
1389 * xcoffread.c (read_xcoff_symtab): Likewise.
1390 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1391 "sym" parameter to struct block_symbol, update its uses and pass
1392 its block to calls to read_var_value.
1393 (convert_symbol_sym): Update the calls to convert_one_symbol.
1394 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1395 call to read_var_value.
1396 * dwarf2loc.c (block_op_get_frame_base): New.
1397 (dwarf2_block_frame_base_locexpr_funcs): Implement the
1398 get_frame_base method.
1399 (dwarf2_block_frame_base_loclist_funcs): Likewise.
1400 (dwarf2locexpr_baton_eval): Add a frame argument and use it
1401 instead of the selected frame in order to evaluate the
1403 (dwarf2_evaluate_property): Add a frame argument. Update call
1404 to dwarf2_locexpr_baton_eval to provide a frame in available and
1405 to handle the absence of address stack.
1406 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1407 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1409 (read_func_scope): Record any available static link description.
1410 Update call to finish_block.
1411 (read_lexical_block_scope): Update call to finish_block.
1412 * findvar.c (follow_static_link): New.
1413 (get_hosting_frame): New.
1414 (default_read_var_value): Add a var_block argument. Use
1415 get_hosting_frame to handle non-local references.
1416 (read_var_value): Add a var_block argument and pass it to the
1417 LA_READ_VAR_VALUE method.
1418 * gdbtypes.c (resolve_dynamic_range): Update calls to
1419 dwarf2_evaluate_property.
1420 (resolve_dynamic_type_internal): Likewise.
1421 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1422 read_var_value, passing it the block coming from symbol lookup.
1423 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1424 read_var_value (TODO).
1425 * infcmd.c (finish_command_continuation): Update call to
1426 read_var_value, passing it the block coming from symbol lookup.
1427 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1428 * language.h (struct language_defn): Add a var_block argument to
1429 the LA_READ_VAR_VALUE method.
1430 * objfiles.c (struct static_link_htab_entry): New.
1431 (static_link_htab_entry_hash): New.
1432 (static_link_htab_entry_eq): New.
1433 (objfile_register_static_link): New.
1434 (objfile_lookup_static_link): New.
1435 (free_objfile): Free the STATIC_LINKS hashed map if needed.
1436 * objfiles.h: Include hashtab.h.
1437 (struct objfile): Add a static_links field.
1438 (objfile_register_static_link): New.
1439 (objfile_lookup_static_link): New.
1440 * printcmd.c (print_variable_and_value): Update call to
1442 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1443 * python/py-frame.c (frapy_read_var): Update call to
1444 read_var_value, passing it the block coming from symbol lookup.
1445 * python/py-framefilter.c (extract_sym): Add a sym_block
1446 parameter and set the pointed value to NULL (TODO).
1447 (enumerate_args): Update call to extract_sym.
1448 (enumerate_locals): Update calls to extract_sym and to
1450 * python/py-symbol.c (sympy_value): Update call to
1451 read_var_value (TODO).
1452 * stack.c (read_frame_local): Update call to read_var_value.
1453 (read_frame_arg): Likewise.
1454 (return_command): Likewise.
1455 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1457 (struct symbol): Add a block field.
1458 (SYMBOL_BLOCK): New accessor.
1459 * valops.c (value_of_variable): Remove frame/block handling and
1460 pass the block argument to read_var_value, which does this job
1462 (value_struct_elt_for_reference): Update calls to
1464 (value_of_this): Pass the block found to read_var_value.
1465 * value.h (read_var_value): Add a var_block argument.
1466 (default_read_var_value): Likewise.
1468 2015-08-25 Yao Qi <yao.qi@linaro.org>
1470 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1471 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1472 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1474 2015-08-25 Yao Qi <yao.qi@linaro.org>
1476 * Makefile.in (aarch64-liunx.o): New rule.
1477 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1478 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1479 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1480 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1482 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1483 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1484 * nat/aarch64-linux.c: New file.
1485 * nat/aarch64-linux.h: New file.
1487 2015-08-25 Yao Qi <yao.qi@linaro.org>
1489 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1490 lwp_arch_private_info and ptid_of_lwp.
1492 2015-08-25 Yao Qi <yao.qi@linaro.org>
1494 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1495 Move it to nat/aarch64-linux-hw-point.c.
1496 (debug_reg_change_callback): Likewise.
1497 (aarch64_notify_debug_reg_change): :Likewise.
1498 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1499 (aarch64_dr_update_callback_param): New.
1500 (debug_reg_change_callback): New function.
1501 (aarch64_notify_debug_reg_change): Likewise.
1502 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1503 Remove the declaration.
1505 2015-08-25 Yao Qi <yao.qi@linaro.org>
1507 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1508 Call current_lwp_ptid.
1510 2015-08-25 Yao Qi <yao.qi@linaro.org>
1512 * aarch64-linux-nat.c (debug_reg_change_callback): Use
1515 2015-08-25 Yao Qi <yao.qi@linaro.org>
1517 * aarch64-linux-nat.c (debug_reg_change_callback): Call
1518 ptid_get_pid rather than ptid_get_lwp.
1520 2015-08-24 Pedro Alves <palves@redhat.com>
1522 * NEWS (New commands): Mention set/show remote
1523 multiprocess-extensions-packet.
1524 * remote.c (remote_query_supported): Only tell the server to use
1525 the multiprocess extensions if the user hasn't force-disabled them
1526 with "set remote multiprocess-extensions-packet off".
1528 2015-08-24 Pedro Alves <palves@redhat.com>
1530 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1531 1029a8112290f6eee9d7878a391c49db42c999bd.
1532 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1534 * gnulib/import/Makefile.am: Update.
1535 * gnulib/import/Makefile.in: Update.
1536 * gnulib/import/alloca.in.h: Update.
1537 * gnulib/import/basename-lgpl.c: Update.
1538 * gnulib/import/canonicalize-lgpl.c: Update.
1539 * gnulib/import/config.charset: Update.
1540 * gnulib/import/dirent.in.h: Update.
1541 * gnulib/import/dirfd.c: Update.
1542 * gnulib/import/dirname-lgpl.c: Update.
1543 * gnulib/import/dirname.h: Update.
1544 * gnulib/import/dosname.h: Update.
1545 * gnulib/import/errno.in.h: Update.
1546 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1547 * gnulib/import/extra/snippet/c++defs.h: Update.
1548 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1549 * gnulib/import/extra/update-copyright: Update.
1550 * gnulib/import/float+.h: Update.
1551 * gnulib/import/float.c: Update.
1552 * gnulib/import/float.in.h: Update.
1553 * gnulib/import/fnmatch.c: Update.
1554 * gnulib/import/fnmatch.in.h: Update.
1555 * gnulib/import/fnmatch_loop.c: Update.
1556 * gnulib/import/fpucw.h: Update.
1557 * gnulib/import/frexp.c: Update.
1558 * gnulib/import/frexpl.c: Update.
1559 * gnulib/import/gettimeofday.c: Update.
1560 * gnulib/import/inttypes.in.h: Update.
1561 * gnulib/import/isnan.c: Update.
1562 * gnulib/import/isnand-nolibm.h: Update.
1563 * gnulib/import/isnand.c: Update.
1564 * gnulib/import/isnanl-nolibm.h: Update.
1565 * gnulib/import/isnanl.c: Update.
1566 * gnulib/import/itold.c: Update.
1567 * gnulib/import/localcharset.c: Update.
1568 * gnulib/import/localcharset.h: Update.
1569 * gnulib/import/lstat.c: Update.
1570 * gnulib/import/m4/00gnulib.m4: Update.
1571 * gnulib/import/m4/absolute-header.m4: Update.
1572 * gnulib/import/m4/alloca.m4: Update.
1573 * gnulib/import/m4/canonicalize.m4: Update.
1574 * gnulib/import/m4/codeset.m4: Update.
1575 * gnulib/import/m4/configmake.m4: Update.
1576 * gnulib/import/m4/dirent_h.m4: Update.
1577 * gnulib/import/m4/dirfd.m4: Update.
1578 * gnulib/import/m4/dirname.m4: Update.
1579 * gnulib/import/m4/double-slash-root.m4: Update.
1580 * gnulib/import/m4/eealloc.m4: Update.
1581 * gnulib/import/m4/errno_h.m4: Update.
1582 * gnulib/import/m4/exponentd.m4: Update.
1583 * gnulib/import/m4/exponentl.m4: Update.
1584 * gnulib/import/m4/extensions.m4: Update.
1585 * gnulib/import/m4/extern-inline.m4: Update.
1586 * gnulib/import/m4/fcntl-o.m4: Update.
1587 * gnulib/import/m4/float_h.m4: Update.
1588 * gnulib/import/m4/fnmatch.m4: Update.
1589 * gnulib/import/m4/fpieee.m4: Update.
1590 * gnulib/import/m4/frexp.m4: Update.
1591 * gnulib/import/m4/frexpl.m4: Update.
1592 * gnulib/import/m4/gettimeofday.m4: Update.
1593 * gnulib/import/m4/glibc21.m4: Update.
1594 * gnulib/import/m4/gnulib-cache.m4: Update.
1595 * gnulib/import/m4/gnulib-common.m4: Update.
1596 * gnulib/import/m4/gnulib-comp.m4: Update.
1597 * gnulib/import/m4/gnulib-tool.m4: Update.
1598 * gnulib/import/m4/include_next.m4: Update.
1599 * gnulib/import/m4/inttypes-pri.m4: Update.
1600 * gnulib/import/m4/inttypes.m4: Update.
1601 * gnulib/import/m4/isnand.m4: Update.
1602 * gnulib/import/m4/isnanl.m4: Update.
1603 * gnulib/import/m4/largefile.m4: Update.
1604 * gnulib/import/m4/localcharset.m4: Update.
1605 * gnulib/import/m4/locale-fr.m4: Update.
1606 * gnulib/import/m4/locale-ja.m4: Update.
1607 * gnulib/import/m4/locale-zh.m4: Update.
1608 * gnulib/import/m4/longlong.m4: Update.
1609 * gnulib/import/m4/lstat.m4: Update.
1610 * gnulib/import/m4/malloc.m4: Update.
1611 * gnulib/import/m4/malloca.m4: Update.
1612 * gnulib/import/m4/math_h.m4: Update.
1613 * gnulib/import/m4/mbrtowc.m4: Update.
1614 * gnulib/import/m4/mbsinit.m4: Update.
1615 * gnulib/import/m4/mbsrtowcs.m4: Update.
1616 * gnulib/import/m4/mbstate_t.m4: Update.
1617 * gnulib/import/m4/memchr.m4: Update.
1618 * gnulib/import/m4/memmem.m4: Update.
1619 * gnulib/import/m4/mmap-anon.m4: Update.
1620 * gnulib/import/m4/multiarch.m4: Update.
1621 * gnulib/import/m4/nocrash.m4: Update.
1622 * gnulib/import/m4/off_t.m4: Update.
1623 * gnulib/import/m4/pathmax.m4: Update.
1624 * gnulib/import/m4/readlink.m4: Update.
1625 * gnulib/import/m4/rename.m4: Update.
1626 * gnulib/import/m4/rmdir.m4: Update.
1627 * gnulib/import/m4/ssize_t.m4: Update.
1628 * gnulib/import/m4/stat.m4: Update.
1629 * gnulib/import/m4/stdbool.m4: Update.
1630 * gnulib/import/m4/stddef_h.m4: Update.
1631 * gnulib/import/m4/stdint.m4: Update.
1632 * gnulib/import/m4/stdio_h.m4: Update.
1633 * gnulib/import/m4/stdlib_h.m4: Update.
1634 * gnulib/import/m4/string_h.m4: Update.
1635 * gnulib/import/m4/strstr.m4: Update.
1636 * gnulib/import/m4/strtok_r.m4: Update.
1637 * gnulib/import/m4/sys_socket_h.m4: Update.
1638 * gnulib/import/m4/sys_stat_h.m4: Update.
1639 * gnulib/import/m4/sys_time_h.m4: Update.
1640 * gnulib/import/m4/sys_types_h.m4: Update.
1641 * gnulib/import/m4/time_h.m4: Update.
1642 * gnulib/import/m4/unistd_h.m4: Update.
1643 * gnulib/import/m4/warn-on-use.m4: Update.
1644 * gnulib/import/m4/wchar_h.m4: Update.
1645 * gnulib/import/m4/wchar_t.m4: Update.
1646 * gnulib/import/m4/wctype_h.m4: Update.
1647 * gnulib/import/m4/wint_t.m4: Update.
1648 * gnulib/import/malloc.c: Update.
1649 * gnulib/import/malloca.c: Update.
1650 * gnulib/import/malloca.h: Update.
1651 * gnulib/import/math.in.h: Update.
1652 * gnulib/import/mbrtowc.c: Update.
1653 * gnulib/import/mbsinit.c: Update.
1654 * gnulib/import/mbsrtowcs-impl.h: Update.
1655 * gnulib/import/mbsrtowcs-state.c: Update.
1656 * gnulib/import/mbsrtowcs.c: Update.
1657 * gnulib/import/memchr.c: Update.
1658 * gnulib/import/memmem.c: Update.
1659 * gnulib/import/pathmax.h: Update.
1660 * gnulib/import/readlink.c: Update.
1661 * gnulib/import/ref-add.sin: Update.
1662 * gnulib/import/ref-del.sin: Update.
1663 * gnulib/import/rename.c: Update.
1664 * gnulib/import/rmdir.c: Update.
1665 * gnulib/import/same-inode.h: Update.
1666 * gnulib/import/stat.c: Update.
1667 * gnulib/import/stdbool.in.h: Update.
1668 * gnulib/import/stddef.in.h: Update.
1669 * gnulib/import/stdint.in.h: Update.
1670 * gnulib/import/stdio.c: Update.
1671 * gnulib/import/stdio.in.h: Update.
1672 * gnulib/import/stdlib.in.h: Update.
1673 * gnulib/import/str-two-way.h: Update.
1674 * gnulib/import/streq.h: Update.
1675 * gnulib/import/string.in.h: Update.
1676 * gnulib/import/stripslash.c: Update.
1677 * gnulib/import/strnlen1.c: Update.
1678 * gnulib/import/strnlen1.h: Update.
1679 * gnulib/import/strstr.c: Update.
1680 * gnulib/import/strtok_r.c: Update.
1681 * gnulib/import/sys_stat.in.h: Update.
1682 * gnulib/import/sys_time.in.h: Update.
1683 * gnulib/import/sys_types.in.h: Update.
1684 * gnulib/import/time.in.h: Update.
1685 * gnulib/import/unistd.in.h: Update.
1686 * gnulib/import/verify.h: Update.
1687 * gnulib/import/wchar.in.h: Update.
1688 * gnulib/import/wctype.in.h: Update.
1689 * gnulib/import/gettimeofday.c: New file.
1690 * gnulib/import/m4/absolute-header.m4: New file.
1691 * gnulib/import/m4/gettimeofday.m4: New file.
1692 * gnulib/import/m4/sys_socket_h.m4: New file.
1693 * gnulib/import/m4/sys_time_h.m4: New file.
1694 * gnulib/import/stdio.c: Delete file.
1695 * gnulib/import/sys_time.in.h: New file.
1697 2015-08-24 Pedro Alves <palves@redhat.com>
1699 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1700 * common/gdb_sys_time.h: New file.
1701 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1702 * gdb_select.h: Likewise.
1703 * gdb_usleep.c: Likewise.
1704 * maint.c: Likewise.
1705 * mi/mi-main.c: Likewise.
1706 * mi/mi-parse.h: Likewise.
1707 * remote-fileio.c: Likewise.
1708 * remote-m32r-sdi.c: Likewise.
1709 * remote.c: Likewise.
1710 * ser-base.c: Likewise.
1711 * ser-pipe.c: Likewise.
1712 * ser-tcp.c: Likewise.
1713 * ser-unix.c: Likewise.
1714 * symfile.c: Likewise.
1715 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1716 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1717 * utils.c: Likewise.
1719 2015-08-24 Pedro Alves <palves@redhat.com>
1721 * NEWS: Mention removed support for the various ROM monitors.
1722 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1723 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1724 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1726 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1728 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1729 dsrec.o from gdb_target_obs.
1730 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1731 from gdb_target_obs.
1732 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1734 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1735 dink32-rom.o from gdb_target_obs.
1736 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1737 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1738 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1739 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1741 2015-08-21 Pedro Alves <palves@redhat.com>
1743 * frame.c (null_frame_id): Explicitly zero-initialize.
1745 2015-08-21 Tom Tromey <tromey@redhat.com>
1747 * dwarf2read.c (struct dwarf2_section_info): Rename field
1748 'asection' to 'section'.
1749 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1750 (dwarf2_locate_sections, dwarf2_locate_sections)
1751 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1752 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1753 (dwarf2_locate_v2_dwp_sections): Adjust.
1755 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1757 * top.h (gdb_in_secondary_prompt_p): Declare.
1758 * top.c (gdb_secondary_prompt_depth): Define.
1759 (gdb_in_secondary_prompt_p): Define.
1760 (gdb_readline_wrapper_cleanup): Decrement
1761 gdb_secondary_prompt_depth.
1762 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1763 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1764 are in a secondary prompt.
1766 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1768 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1771 2015-08-21 Gary Benson <gbenson@redhat.com>
1773 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1775 2015-08-21 Gary Benson <gbenson@redhat.com>
1777 * target.h (struct target_ops) <to_fileio_open>: New argument
1778 warn_if_slow. Update comment. All implementations updated.
1779 (target_fileio_open_warn_if_slow): New declaration.
1780 * target.c (target_fileio_open): Renamed as...
1781 (target_fileio_open_1): ...this. New argument warn_if_slow.
1782 Pass warn_if_slow to implementation. Update debug printing.
1783 (target_fileio_open): New function.
1784 (target_fileio_open_warn_if_slow): Likewise.
1785 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1786 target_fileio_open_warn_if_slow.
1788 2015-08-21 Gary Benson <gbenson@redhat.com>
1790 * nat/linux-namespaces.c (linux_mntns_access_fs):
1791 Do not overwrite old_chain.
1793 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1795 * arch/xtensa.h: New file.
1796 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1797 (ps_get_thread_area): New function.
1798 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1799 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1800 * xtensa-tdep.c (osabi.h): New #include.
1801 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1802 xtensa-specific hooks.
1803 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1804 member and move the structure to arch/xtensa.h.
1806 2015-08-21 Pedro Alves <palves@redhat.com>
1808 * remote.c (struct readahead_cache): New.
1809 (struct remote_state) <readahead_cache>: New field.
1810 (remote_open_1): Invalidate the cache.
1811 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1813 (remote_hostio_pwrite): Invalidate the readahead cache.
1814 (remote_hostio_pread): Rename to ...
1815 (remote_hostio_pread_vFile): ... this.
1816 (remote_hostio_pread_from_cache): New function.
1817 (remote_hostio_pread): Reimplement.
1818 (remote_hostio_close): Invalidate the readahead cache.
1820 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1823 * procfs.c: Include "filestuff.h".
1825 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1827 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1829 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1830 cur_line or curch, instead call wmove().
1831 (init_win_info) [CMD_WIN]: Likewise.
1832 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1833 instead call getcury().
1834 (tui_redisplay_readline): Don't set cur_line or curch.
1835 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1837 (tui_cont_sig): Remove call to wmove.
1838 (tui_getc): Don't read cur_line or curch, instead call getcury()
1839 or getyx(). Don't set curch.
1840 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1841 set cur_line or curch. Always move cursor to (0,0).
1843 2015-08-20 Pedro Alves <palves@redhat.com>
1845 * infrun.c (print_target_wait_results): Make extern.
1846 * infrun.h (print_target_wait_results): Declare.
1847 * remote.c (set_stop_requested_callback): Delete.
1848 (process_initial_stop_replies): New function.
1849 (remote_start_remote): Use it.
1850 (stop_reply_queue_length): New function.
1852 2015-08-20 Pedro Alves <palves@redhat.com>
1854 * dwarf2read.c (process_full_comp_unit): To tell whether
1855 start_subfile managed to deduce a language, test for
1856 language_unknown instead of language_c.
1858 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1860 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1863 2015-08-19 Kevin Buettner <kevinb@redhat.com>
1865 * dwarf2read.c (dwarf2_string_attr): New function.
1866 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1867 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1868 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1869 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1870 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1872 2015-08-18 Doug Evans <dje@google.com>
1873 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1876 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1878 * mi/mi-out.c: #include "vec.h".
1879 (ui_filep): New type.
1880 (DEV_VEC_P (ui_filep)): New type.
1881 (struct ui_out_data) <buffer, original_buffer>: Delete.
1882 (struct ui_out_data) <streams>: New member.
1883 (mi_ui_out_impl): Add data_destroy field.
1884 (mi_field_string, mi_field_fmt): Update.
1885 (mi_flush, mi_redirect, field_separator): Update.
1886 (mi_open, mi_close): Update.
1887 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1888 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1889 (mi_out_new): Call mi_out_data_ctor.
1891 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1893 * remote.c (strprefix): New.
1894 (remote_parse_stop_reply): Use strprefix instead of strncmp
1895 to ensure exact match of keyword.
1897 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * gdb_bfd.c (debug_bfd_cache): New variable.
1900 (show_bfd_cache_debug): New function.
1901 (gdb_bfd_open): Add debug logging.
1902 (gdb_bfd_ref): Likewise.
1903 (gdb_bfd_unref): Likewise.
1904 (_initialize_gdb_bfd): Add new set/show command.
1905 * NEWS: Mention new command.
1907 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1909 * gdb_bfd.c (bfd_sharing): New variable.
1910 (show_bfd_sharing): New function.
1911 (gdb_bfd_open): Check bfd_sharing variable.
1912 (_initialize_gdb_bfd): Add new set/show command.
1913 * NEWS: Mention new command.
1915 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1917 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1919 (struct gdb_bfd_cache_search): Likewise.
1920 (eq_bfd): Compare the size, inode, and device id fields.
1921 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1922 (gdb_bfd_ref): Likewise.
1923 (gdb_bfd_unref): Likewise.
1925 2015-08-18 Pedro Alves <palves@redhat.com>
1927 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1928 target implements to_always_non_stop_p, call it.
1929 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1930 (x86_linux_create_target): Install it as to_always_non_stop_p
1933 2015-08-17 Doug Evans <dje@google.com>
1935 * ui-out.c (default_ui_out_impl): Add comment.
1937 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1939 * d-exp.y (type_aggregate_p): New function.
1940 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1941 (classify_inner_name): Likewise.
1942 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1944 2015-08-15 Doug Evans <xdje42@gmail.com>
1946 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1948 (add_psymbol_to_list): Ditto.
1950 2015-08-15 Doug Evans <xdje42@gmail.com>
1952 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1953 updated. Call end_psymtab_common.
1954 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1956 (build_type_psymtabs_reader): Ditto.
1957 * psympriv.h (sort_pst_symbols): Delete.
1958 (end_psymtab_common): Declare.
1959 * psymtab.c (sort_pst_symbols): Make static.
1960 (end_psymtab_common): New function.
1961 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1963 2015-08-15 Doug Evans <xdje42@gmail.com>
1965 * defs.h (LANGUAGE_BITS): Define.
1966 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1967 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1968 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1969 (minimal_symbol_type): Add nr_minsym_types.
1970 (MINSYM_TYPE_BITS): Define.
1971 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1972 (domain_enum_tag): Add NR_DOMAINS.
1973 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1974 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1976 2015-08-15 Doug Evans <xdje42@gmail.com>
1978 * objfiles.h: Whitespace cleanup.
1979 * psympriv.h: Whitespace cleanup.
1980 * psymtab.c: Whitespace/coding convention cleanup.
1982 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1984 * inferior.c (detach_inferior_command): Don't call
1985 any_thread_of_process when pid is 0.
1986 (kill_inferior_command): Likewise.
1988 2015-08-14 Doug Evans <xdje42@gmail.com>
1991 * NEWS: Document new /s modifier for the disassemble command.
1992 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1993 (_initialize_cli_cmds): Update online docs of disassemble command.
1994 * disasm.c: #include "source.h".
1995 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1997 (dis_line_entry): New struct.
1998 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1999 (allocate_dis_line_table): New functions.
2000 (maybe_add_dis_line_entry, line_has_code_p): New functions.
2001 (dump_insns): New arg end_pc. All callers updated.
2002 (do_mixed_source_and_assembly_deprecated): Renamed from
2003 do_mixed_source_and_assembly. All callers updated.
2004 (do_mixed_source_and_assembly): New function.
2005 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
2006 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
2007 DISASSEMBLY_SOURCE. All uses updated.
2008 (DISASSEMBLY_SOURCE): New macro.
2009 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
2011 2015-08-14 Keith Seitz <keiths@redhat.com>
2013 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
2014 `typename' to `type_name' to avoid C++ reserved word.
2016 2015-08-14 Keith Seitz <keiths@redhat.com>
2018 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
2019 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
2022 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
2024 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
2025 xstrprintf instead of malloc and sprintf.
2026 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
2027 (lex_one_token): Likewise.
2029 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2031 * solib-svr4.c (read_program_header): Add base_addr argument to
2032 report the runtime address of the segment.
2033 (find_program_interpreter): Update read_program_header call to pass
2034 a NULL pointer for the new argument.
2035 (scan_dyntag): Add ptr_addr argument to report the runtime address
2037 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
2038 read_program_header to get the base address of the dynamic segment.
2039 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
2040 read_program_header.
2041 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
2043 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2045 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
2047 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2049 * d-exp.y (%union): Add voidval.
2050 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
2051 name in the lexing stage.
2052 (PostfixExpression): Move symbol completion handling in grammar here
2053 from PrimaryExpression.
2054 (PrimaryExpression): Move routines to handle resolving identifier
2055 tokens in the grammar here from push_expression_name.
2056 (IdentifierExp): Remove the handling of alternating '.' and identifier
2058 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
2059 (BasicType): Remove C-style typename rules.
2060 (d_type_from_name, d_module_from_name, push_variable)
2061 (push_fieldnames, push_type_name, push_module_name)
2062 (push_expression_name): Remove.
2063 (lex_one_token): Rename from yylex. Replace pstate with par_state.
2064 (token_and_value): New type.
2065 (token_fifo, popping, name_obstack): New globals.
2066 (classify_name): New function.
2067 (classify_inner_name): Likewise.
2069 (d_parse): Initialize token_fifo, popping and name_obstack.
2071 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2073 * Makefile.in (SFILES): Add d-namespace.c.
2074 (COMMON_OBS): Add d-namespace.o.
2075 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
2076 la_lookup_symbol_nonlocal callback function pointer.
2077 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
2078 (d_lookup_nested_symbol): New declaration.
2079 * d-namespace.c: New file.
2081 2015-08-13 Pedro Alves <palves@redhat.com>
2083 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
2084 cleanup after the decref cleanup, not before.
2086 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
2088 * ada-lang.c: Include namespace.h
2089 (aux_add_nonlocal_symbols): Fix a function name in comment.
2090 (ada_add_block_renamings): New.
2091 (add_nonlocal_symbols): Add global renamings handling.
2092 (ada_lookup_symbol_list_worker): Move the symbol lookup part
2094 (ada_add_all_symbols): ... this new function.
2095 (ada_add_block_symbols): Try to match the input name against the
2096 "using directives list", perform a recursive symbol lookup on
2097 the matched declarations.
2098 * block.h (struct block): Move the_namespace to top-level as
2099 namespace_info. Remove the language_specific field.
2100 (BLOCK_NAMESPACE): Update access to the namespace_info field.
2101 * buildsym.h (using_directives): Rename into...
2102 (local_using_directives): ... this.
2103 (global_using_directives): New.
2104 (struct context_stack): Rename the using_directives field into
2105 local_using_directives.
2106 * buildsym.c (finish_block_internal): Deal with the proper
2107 using directives repository (local or global).
2108 (prepare_for_building): Reset local_using_directives. Assert
2109 that there is no pending global using directive.
2110 (reset_symtab_globals): Reset global_using_directives and
2111 local_using_directives.
2112 (end_symtab_get_static_block): Don't ignore symtabs that have
2113 only using directives.
2114 (push_context): Update references to local_using_directives.
2115 (buildsym_init): Do not reset using_directives.
2116 * cp-support.c: Include namespace.h.
2117 * cp-support.h (struct using_direct): Move to namespace.h.
2118 (cp_add_using_directives): Move to namespace.h.
2119 * cp-namespace.c: Include namespace.h
2120 (cp_add_using_directive): Move to namespace.c, rename it to
2121 add_using_directive, add a "using_directives" argument and use
2122 it as the pending using directives repository. All callers
2124 * dwarf2read.c (using_directives): New.
2125 (read_import_statement): Call using_directives.
2126 (read_func_scope): Update references to local_using_directives.
2127 (read_lexical_block_scope): Likewise.
2128 (read_namespace): Update the heading comment, call
2130 * namespace.h: New file.
2131 * namespace.c: New file.
2132 * Makefile.in (SFILES): Add namespace.c.
2133 (COMMON_OBS): Add namespace.o
2135 2015-08-12 Joel Brobecker <brobecker@adacore.com>
2137 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
2140 2015-08-12 Keith Seitz <keiths@redhat.com>
2142 * break-catch-throw.c (re_set_exception_catchpoint) Rename
2143 reserved C++ keyword "explicit" to "explicit_loc".
2144 * breakpoint.c (create_overlay_event_breakpoint)
2145 (create_longjmp_master_breakpoint)
2146 (create_std_terminate_master_breakpoint)
2147 (create_exception_master_breakpoint, update_static_tracepoint):
2148 Rename reserved C++ keyword "explicit" to "explicit_loc".
2149 * completer.c (collect_explicit_location_matches)
2150 (explicit_location_completer): Rename reserved C++ keyword
2151 "explicit" to "explicit_loc".
2152 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
2153 (canonicalize_linespec, create_sals_line_offset)
2154 (convert_linespec_to_sals, convert_explicit_location_to_sals)
2155 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
2156 "explicit" to "explicit_loc".
2157 * location.c (struct event_location) <explicit>: Rename to
2159 (initialize_explicit_location, new_explicit_location)
2160 (explicit_location_to_string_internal, explicit_location_to_linespec):
2161 Rename reserved C++ keyword "explicit" to "explicit_loc".
2162 * location.h (explicit_location_to_string)
2163 (explicit_location_to_linespec, initialize_explicit_location)
2164 (new_explicit_location): Rename reserved C++ keyword "explicit"
2166 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
2167 keyword "explicit" to "explicit_loc".
2169 2015-08-12 Keith Seitz <keiths@redhat.com>
2171 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
2172 and only call decode_line_1 when it is non-NULL.
2174 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
2176 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
2177 location address is not meaningful.
2178 (breakpoint_address_is_meaningful): Update comment.
2180 2015-08-11 Keith Seitz <keiths@redhat.com>
2182 * NEWS: Mention explicit locations.
2183 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
2184 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
2185 (_initialize_breakpoint): Update documentation for
2186 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
2188 2015-08-11 Keith Seitz <keiths@redhat.com>
2190 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
2191 explicit locations, options "--source", "--function",
2192 "--label", and "--line".
2194 2015-08-11 Keith Seitz <keiths@redhat.com>
2196 * completer.c: Include location.h.
2197 (enum match_type): New enum.
2198 (location_completer): Rename to ...
2199 (linespec_completer): ... this.
2200 (collect_explicit_location_matches, backup_text_ptr)
2201 (explicit_location_completer): New functions.
2202 (location_completer): "New" function; handle linespec
2203 and explicit location completions.
2204 (complete_line_internal): Remove all location completer-specific
2206 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
2207 (find_toplevel_char): Export.
2208 (linespec_parse_line_offset): Export.
2209 Issue error if STRING is not numerical.
2210 (gdb_get_linespec_parser_quote_characters): New function.
2211 * linespec.h (linespec_parse_line_offset): Declare.
2212 (get_gdb_linespec_parser_quote_characters): Declare.
2213 (is_ada_operator): Declare.
2214 (find_toplevel_char): Declare.
2215 (linespec_lexer_lex_keyword): Declare.
2216 * location.c (explicit_to_event_location): New function.
2217 (explicit_location_lex_one): New function.
2218 (string_to_explicit_location): New function.
2219 (string_to_event_location): Handle explicit locations.
2220 * location.h (explicit_to_event_location): Declare.
2221 (string_to_explicit_location): Declare.
2223 2015-08-11 Keith Seitz <keiths@redhat.com>
2225 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2226 linespec into explicit location.
2227 * breakpoint.c (create_overlay_breakpoint)
2228 (create_longjmp_master_breakpoint)
2229 (create_std_terminate_master_breakpoint)
2230 (create_exception_master_breakpoint): Convert linespec into explicit
2232 (update_static_tracepoint): Convert linespec into explicit location.
2233 * linespec.c (enum offset_relative_sign, struct line_offset): Move
2235 (struct linespec) <expression, expr_pc, source_filename>
2236 <function_name, label_name, line_offset>: Replace with ...
2237 <explicit>: ... this.
2238 <is_linespec>: New member.
2239 (PARSER_EXPLICIT): New accessor macro.
2240 (undefined_label_error): New function.
2241 (source_file_not_found_error): New function.
2242 (linespec_parse_basic): The parser result is now an explicit location.
2243 Use PARSER_EXPLICIT to access it.
2244 Use undefined_label_error.
2245 (canonicalize_linespec): Convert canonical linespec into explicit
2247 Move string representation of location to explicit_location_to_linespec
2248 and use it and explicit_location_to_string to save string
2249 representations of the canonical location.
2250 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2251 explicit location. Update all references.
2252 (convert_explicit_location_to_sals): New function.
2253 (parse_linespec): Use PARSER_EXPLICIT to access the parser
2254 result's explicit location.
2255 (linespec_state_constructor): Initialize is_linespec.
2256 Use PARSER_EXPLICIT.
2257 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2259 (event_location_to_sals): For linespec locations, set is_linespec.
2260 Handle explicit locations.
2261 (decode_objc): 'ls' contains an explicit location now. Update all
2263 (symtabs_from_filename): Use source_file_not_found_error.
2264 * location.c (struct event_location.u) <explicit>: New member.
2265 (initialize_explicit_location): New function.
2266 (initialize_event_location): Initialize explicit locations.
2267 (new_explicit_location, get_explicit_location)
2268 (get_explicit_location_const): New functions.
2269 (explicit_to_string_internal): New function; most of contents moved
2270 from canonicalize_linespec.
2271 (explicit_location_to_string): New function.
2272 (explicit_location_to_linespec): New function.
2273 (copy_event_location, delete_event_location)
2274 (event_location_to_string_const, event_location_empty_p): Handle
2276 * location.h (enum offset_relative_sign, struct line_offset): Move
2277 here from linespec.h.
2278 (enum event_location_type): Add EXPLICIT_LOCATION.
2279 (struct explicit_location): New structure.
2280 (explicit_location_to_string): Declare.
2281 (explicit_location_to_linespec): Declare.
2282 (new_explicit_location, get_explicit_locationp
2283 (get_explicit_location_const, initialize_explicit_location): Declare.
2285 2015-08-11 Keith Seitz <keiths@redhat.com>
2287 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2288 linespec for stap probe to probe location.
2289 * breakpoint.c (create_longjmp_master_breakpoint)
2290 (create_exception_master_breakpoint): Likewise.
2291 (break_command_1): Remove local variable `arg_cp'.
2292 Check location type to set appropriate breakpoint ops methods.
2293 (trace_command): Likewise.
2294 * linespec.c (event_location_to_sals): Assert on probe locations.
2295 * location.c (EL_PROBE): Add macro definition.
2296 (new_probe_location, get_probe_location): New functions.
2297 (copy_event_location, delete_event_location, event_location_to_string)
2298 (string_to_event_location, event_location_empty_p): Handle probe
2300 * location.h (enum event_location_type): Add PROBE_LOCATION.
2301 (new_probe_location, get_probe_location): Declare.
2302 * probe.c (parse_probes): Assert that LOCATION is a probe location.
2303 Convert linespec into probe location.
2305 2015-08-11 Keith Seitz <keiths@redhat.com>
2307 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2308 Convert linespec to address location.
2309 * linespec.c (canonicalize_linespec): Do not handle address
2311 (convert_address_location_to_sals): New function; contents moved
2313 (convert_linespc_to_sals): ... here.
2314 (parse_linespec): Remove address locations from linespec grammar.
2315 Remove handling of address locations.
2316 (linespec_lex_to_end): Remove handling of address linespecs.
2317 (event_location_to_sals): Handle ADDRESS_LOCATION.
2318 (linespec_expression_to_pc): Export.
2319 * linespec.h (linespec_expression_to_pc): Add declaration.
2320 * location.c (struct event_location.u) <address>: New member.
2321 (new_address_location, get_address_location): New functions.
2322 (copy_event_location, delete_event_location, event_location_to_string)
2323 (string_to_event_location, event_location_empty_p): Handle address
2325 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2326 (new_address_location, get_address_location): Declare.
2327 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2328 to address location.
2329 * spu-tdep.c (spu_catch_start): Likewise.
2331 2015-08-11 Keith Seitz <keiths@redhat.com>
2333 * ax-gdb.c: Include location.h.
2334 (agent_command_1) Use linespec location instead of address
2336 * break-catch-throw.c: Include location.h.
2337 (re_set_exception_catchpoint): Use linespec locations instead
2339 * breakpoint.c: Include location.h.
2340 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2341 (create_std_terminate_master_breakpoint)
2342 (create_exception_master_breakpoint, update_breakpoints_after_exec):
2343 Use linespec location instead of address string.
2344 (print_breakpoint_location): Use locations and
2345 event_location_to_string.
2346 Print extra_string for pending locations for non-MI streams.
2347 (print_one_breakpoint_location): Use locations and
2348 event_location_to_string.
2349 (init_raw_breakpoint_without_location): Initialize b->location.
2350 (create_thread_event_breakpoint): Use linespec location instead of
2352 (init_breakpoint_sal): Likewise.
2353 Only save extra_string if it is non-NULL and not the empty string.
2354 Use event_location_to_string instead of `addr_string'.
2355 Constify `p' and `endp'.
2356 Use skip_spaces_const/skip_space_const instead of non-const versions.
2357 Copy the location into the breakpoint.
2358 If LOCATION is NULL, save the breakpoint address as a linespec location
2359 instead of an address string.
2360 (create_breakpoint_sal): Change `addr_string' parameter to a struct
2361 event_location. All uses updated.
2362 (create_breakpoints_sal): Likewise for local variable `addr_string'.
2363 (parse_breakpoint_sals): Use locations instead of address strings.
2364 Remove check for empty linespec with conditional.
2366 (decode_static_tracepoint_spec): Make argument const and update
2368 (create_breakpoint): Change `arg' to a struct event_location and
2370 Remove `copy_arg' and `addr_start'.
2371 If EXTRA_STRING is empty, set it to NULL.
2372 Don't populate `canonical' for pending breakpoints.
2373 Pass `extra_string' to find_condition_and_thread.
2374 Clear `extra_string' if `rest' was NULL.
2375 Do not error with "garbage after location" if setting a dprintf
2377 Copy the location into the breakpoint instead of an address string.
2378 (break_command_1): Use string_to_event_location and pass this to
2379 create_breakpoint instead of an address string.
2380 Check against `arg_cp' for a probe linespec.
2381 (dprintf_command): Use string_to_event_location and pass this to
2382 create_breakpoint instead of an address string.
2383 Throw an exception if no format string was specified.
2384 (print_recreate_ranged_breakpoint): Use event_location_to_string
2385 instead of address strings.
2386 (break_range_command, until_break_command)
2387 (init_ada_exception_breakpoint): Use locations instead
2389 (say_where): Print out extra_string for pending locations.
2390 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2392 (base_breakpoint_create_sals_from_location): Use struct event_location
2393 instead of address string.
2394 Remove `addr_start' and `copy_arg' parameters.
2395 (base_breakpoint_decode_location): Use struct event_location instead of
2397 (bkpt_re_set): Use locations instead of address strings.
2398 Use event_location_empty_p to check for unset location.
2399 (bkpt_print_recreate): Use event_location_to_string instead of
2401 Print out extra_string for pending locations.
2402 (bkpt_create_sals_from_location, bkpt_decode_location)
2403 (bkpt_probe_create_sals_from_location): Use struct event_location
2404 instead of address string.
2405 (bkpt_probe_decode_location): Use struct event_location instead of
2407 (tracepoint_print_recreate): Use event_location_to_string to
2408 recreate the tracepoint.
2409 (tracepoint_create_sals_from_location, tracepoint_decode_location)
2410 (tracepoint_probe_create_sals_from_location)
2411 (tracepoint_probe_decode_location): Use struct event_location
2412 instead of address string.
2413 (dprintf_print_recreate): Use event_location_to_string to recreate
2415 (dprintf_re_set): Remove check for valid/missing format string.
2416 (strace_marker_create_sals_from_location)
2417 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2418 (update_static_tracepoint): Use struct event_location instead of
2420 (location_to_sals): Likewise.
2421 Pass `extra_string' to find_condition_and_thread.
2422 For newly resolved pending breakpoint locations, clear the location's
2423 string representation.
2424 Assert that the breakpoint's condition string is NULL when
2425 condition_not_parsed.
2426 (breakpoint_re_set_default, create_sals_from_location_default)
2427 (decode_location_default, trace_command, ftrace_command)
2428 (strace_command, create_tracepoint_from_upload): Use locations
2429 instead of address strings.
2430 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2431 Use struct event_location instead of address string.
2433 <decode_location>: Likewise.
2434 (struct breakpoint) <addr_string>: Change to struct event_location
2435 and rename `location'.
2436 <addr_string_range_end>: Change to struct event_location and rename
2437 `location_range_end'.
2438 (create_breakpoint): Use struct event_location instead of address
2440 * cli/cli-cmds.c: Include location.h.
2441 (edit_command, list_command): Use locations instead of address strings.
2442 * elfread.c: Include location.h.
2443 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2444 * guile/scm-breakpoint.c: Include location.h.
2445 (bpscm_print_breakpoint_smob): Use event_location_to_string.
2446 (gdbscm_register_breakpoint): Use locations instead of address
2448 * linespec.c: Include location.h.
2449 (struct ls_parser) <stream>: Change to const char *.
2450 (PARSER_STREAM): Update.
2451 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2452 keywords must be followed by whitespace.
2453 (canonicalize_linespec): Save a linespec location into `canonical'.
2454 Save a canonical linespec into `canonical'.
2455 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2457 Update function description.
2458 (linespec_parser_new): Initialize `parser'.
2459 Update initialization of parsing stream.
2460 (event_location_to_sals): New function.
2461 (decode_line_full): Change `argptr' to a struct event_location and
2462 rename it `location'.
2463 Use locations instead of address strings.
2464 Call event_location_to_sals instead of parse_linespec.
2465 (decode_line_1): Likewise.
2466 (decode_line_with_current_source, decode_line_with_last_displayed)
2467 Use locations instead of address strings.
2468 (decode_objc): Likewise.
2469 Change `argptr' to const char * and rename `arg'.
2470 (destroy_linespec_result): Delete the linespec result's location
2471 instead of freeing the address string.
2472 * linespec.h (struct linespec_result) <addr_string>: Change to
2473 struct event_location and rename to ...
2474 <location>: ... this.
2475 (decode_line_1, decode_line_full): Change `argptr' to struct
2476 event_location. All callers updated.
2477 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2478 (mi_cmd_break_insert_1): Use locations instead of address strings.
2479 Throw an error if there was "garbage" at the end of the specified
2481 * probe.c: Include location.h.
2482 (parse_probes): Change `argptr' to struct event_location.
2483 Use event locations instead of address strings.
2484 * probe.h (parse_probes): Change `argptr' to struct event_location.
2485 * python/py-breakpoint.c: Include location.h.
2486 (bppy_get_location): Constify local variable `str'.
2487 Use event_location_to_string.
2488 (bppy_init): Use locations instead of address strings.
2489 * python/py-finishbreakpoint.c: Include location.h.
2490 (bpfinishpy_init): Remove local variable `addr_str'.
2491 Use locations instead of address strings.
2492 * python/python.c: Include location.h.
2493 (gdbpy_decode_line): Use locations instead of address strings.
2494 * remote.c: Include location.h.
2495 (remote_download_tracepoint): Use locations instead of address
2497 * spu-tdep.c: Include location.h.
2498 (spu_catch_start): Remove local variable `buf'.
2499 Use locations instead of address strings.
2500 * tracepoint.c: Include location.h.
2501 (scope_info): Use locations instead of address strings.
2502 (encode_source_string): Constify parameter `src'.
2503 * tracepoint.h (encode_source_string): Likewise.
2505 2015-08-11 Keith Seitz <keiths@redhat.com>
2507 * Makefile.in (SFILES): Add location.c.
2508 (HFILES_NO_SRCDIR): Add location.h.
2509 (COMMON_OBS): Add location.o.
2510 * linespec.c (linespec_lex_to_end): New function.
2511 * linespec.h (linespec_lex_to_end): Declare.
2512 * location.c: New file.
2513 * location.h: New file.
2515 2015-08-11 Keith Seitz <keiths@redhat.com>
2517 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2518 Renamed to create_sals_from_location.
2519 <decode_linespec>: Renamed to decode_location.
2521 * breakpoint.c (create_sals_from_address_default): Renamed to ...
2522 (create_sals_from_location_default): ... this.
2523 (addr_string_to_sals): Renamed to ...
2524 (location_to_sals): ... this.
2525 (decode_linespec_default): Renamed to ...
2526 (decode_location_default): ... this.
2527 (base_breakpoint_create_sals_from_address): Renamed to ...
2528 (base_breakpoint_create_sals_from_location): ... this.
2529 (bkpt_create_sals_from_address): Renamed to ...
2530 (bkpt_create_sals_from_location): ... this.
2531 (bkpt_decode_linespec): Renamed to ...
2532 (bkpt_decode_location): ... this.
2533 (bkpt_probe_create_sals_from_address): Renamed to ...
2534 (bkpt_probe_create_sals_from_location): ... this.
2535 (tracepoint_create_sals_from_address): Renamed to ...
2536 (tracepoint_create_sals_from_location): ... this.
2537 (tracepoint_decode_linespec): Renamed to ...
2538 (tracepoint_decode_location): ... this.
2539 (tracepoint_probe_create_sals_from_address): Renamed to ...
2540 (tracepoint_probe_create_sals_from_location): ... this.
2541 (tracepoint_probe_decode_linespec): Renamed to ...
2542 (tracepoint_probe_decode_location): ... this.
2543 (strace_marker_create_sals_from_address): Renamed to ...
2544 (strace_marker_create_sals_from_location): ... this.
2545 (decode_linespec_default): Renamed to ...
2546 (decode_location_default): ... this.
2548 2015-08-10 Doug Evans <dje@google.com>
2549 Keith Seitz <keiths@redhat.com>
2552 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2553 make_file_symbol_completion_list and made static.
2554 (make_file_symbol_completion_list): New function.
2556 2015-08-10 Joel Brobecker <brobecker@adacore.com>
2558 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2559 trailing new-line at end of warning message.
2560 (proceed): Add i18n marker to error messages.
2562 2015-08-07 Pedro Alves <palves@redhat.com>
2564 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2566 2015-08-07 Pedro Alves <palves@redhat.com>
2568 * s390-linux-tdep.c (is_non_branch_ril)
2569 (s390_displaced_step_copy_insn): New functions.
2570 (s390_displaced_step_fixup): Update comment.
2571 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2572 gdbarch_displaced_step_copy_insn hook.
2574 2015-08-07 Pedro Alves <palves@redhat.com>
2576 * infrun.c (displaced_step_prepare_throw): Return -1 if
2577 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2579 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2580 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2582 (ppc_displaced_step_copy_insn): New function.
2583 (ppc_displaced_step_fixup): Update comment.
2584 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2585 gdbarch_displaced_step_copy_insn hook.
2586 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2588 * gdbarch.h: Regenerate.
2590 2015-08-07 Pedro Alves <palves@redhat.com>
2592 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2594 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2595 Return false if dispaced stepping failed before.
2596 (resume): Pass the current inferior to
2597 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2598 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2599 displaced_stepping_failed flag, and fall back to an in-line
2602 2015-08-07 Pedro Alves <palves@redhat.com>
2604 * darwin-nat.c (darwin_stop): Rename to ...
2605 (darwin_interrupt): ... this.
2606 (_initialize_darwin_inferior): Adjust.
2607 * gnu-nat.c (gnu_stop): Delete.
2608 (gnu_target): Don't install gnu_stop.
2609 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2610 (inf_ptrace_interrupt): ... this.
2611 (inf_ptrace_target): Adjust.
2612 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2614 * linux-nat (linux_nat_stop): Rename to ...
2615 (linux_nat_interrupt): ... this.
2616 (linux_nat_stop): Reimplement.
2617 (linux_nat_add_target): Install linux_nat_interrupt.
2618 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2619 (nto_handle_sigint_twice): ... this.
2620 (nto_interrupt): Rename to ...
2621 (nto_handle_sigint): ... this. Call target_interrupt instead of
2623 (procfs_wait): Adjust.
2624 (procfs_stop): Rename to ...
2625 (procfs_interrupt): ... this.
2626 (init_procfs_targets): Adjust.
2627 * procfs.c (procfs_stop): Rename to ...
2628 (procfs_interrupt): ... this.
2629 (procfs_target): Adjust.
2630 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2631 (m32r_interrupt): ... this.
2632 (init_m32r_ops): Adjust.
2633 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2634 (gdbsim_interrupt_inferior): ... this.
2635 (gdbsim_stop): Rename to ...
2636 (gdbsim_interrupt): ... this.
2637 (gdbsim_cntrl_c): Adjust.
2638 (init_gdbsim_ops): Adjust.
2639 * remote.c (sync_remote_interrupt): Adjust comments.
2640 (remote_stop_as): Rename to ...
2641 (remote_interrupt_as): ... this.
2642 (remote_stop): Adjust comment.
2643 (remote_interrupt): New function.
2644 (init_remote_ops): Install remote_interrupt.
2645 * target.c (target_interrupt): New function.
2646 * target.h (struct target_ops) <to_interrupt>: New field.
2647 (target_interrupt): New declaration.
2648 * windows-nat.c (windows_stop): Rename to ...
2649 (windows_interrupt): ... this.
2650 * target-delegates.c: Regenerate.
2652 2015-08-07 Pedro Alves <palves@redhat.com>
2654 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2655 threads" as alternative to "switching back to stepped thread".
2657 2015-08-07 Pedro Alves <palves@redhat.com>
2659 * NEWS: Mention "maint set/show target-non-stop".
2660 * breakpoint.c (update_global_location_list): Check
2661 target_is_non_stop_p instead of non_stop.
2662 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2663 * infrun.c (show_can_use_displaced_stepping)
2664 (can_use_displaced_stepping_p, start_step_over_inferior):
2666 (internal_resume_ptid): New function.
2668 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2669 all-stop mode but the target is always in non-stop mode, start all
2670 the other threads that are implicitly resumed too.
2671 (for_each_just_stopped_thread, fetch_inferior_event)
2672 (adjust_pc_after_break, stop_all_threads): Check
2673 target_is_non_stop_p instead of non_stop.
2674 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2675 with the target always in non-stop mode.
2676 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2677 instead of non_stop.
2678 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2679 instead of non_stop.
2680 (keep_going_stepped_thread): Use internal_resume_ptid.
2681 (stop_waiting): If in all-stop mode, and the target is in non-stop
2682 mode, stop all threads.
2683 (keep_going_pass): Likewise, when starting a new in-line step-over
2685 * linux-nat.c (get_pending_status, select_event_lwp)
2686 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2687 target_is_non_stop_p instead of non_stop.
2688 (linux_nat_always_non_stop_p): New function.
2689 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2690 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2691 * target-delegates.c: Regenerate.
2692 * target.c (target_is_non_stop_p): New function.
2693 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2694 (maint_set_target_non_stop_command)
2695 (maint_show_target_non_stop_command): New functions.
2696 (_initilize_target): Install "maint set/show target-non-stop"
2698 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2699 (target_non_stop_enabled): New declaration.
2700 (target_is_non_stop_p): New declaration.
2702 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2704 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2705 has a pending status, return true.
2706 * gdbthread.h: Include target/waitstatus.h.
2707 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2708 stop_pc>: New fields.
2709 (struct thread_info) <resumed>: New field.
2710 (set_resumed): Declare.
2711 * infrun.c: Include "event-loop.h".
2712 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2713 (infrun_async): New function.
2714 (clear_step_over_info): Add debug output.
2715 (displaced_step_in_progress_any_inferior): New function.
2716 (displaced_step_fixup): New returns int.
2717 (start_step_over): Handle in-line step-overs too. Assert the
2718 thread is marked resumed.
2719 (resume_cleanups): Clear the thread's resumed flag.
2720 (resume): Set the thread's resumed flag. Return early if the
2721 thread has a pending status. Allow stepping a breakpoint with no
2723 (proceed): Adjust to check 'resumed' instead of 'executing'.
2724 (clear_proceed_status_thread): If the thread has a pending status,
2725 and that status is a finished step, discard the pending status.
2726 (clear_proceed_status): Don't clear step_over_info here.
2727 (random_pending_event_thread, do_target_wait): New functions.
2728 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2730 (wait_one): New function.
2731 (THREAD_STOPPED_BY): New macro.
2732 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2733 (thread_stopped_by_hw_breakpoint): New functions.
2734 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2736 (handle_inferior_event): Also call set_resumed(false) on all
2737 threads implicitly stopped by the event.
2738 (restart_threads, resumed_thread_with_pending_status): New
2740 (finish_step_over): If we were doing an in-line step-over before,
2741 and no longer are after trying to start a new step-over, restart
2742 all threads. If we have multiple threads with pending events,
2743 save the current event and go through the event loop again.
2744 (handle_signal_stop): Return early if finish_step_over returns
2746 <random signal>: If we get a signal while stepping over a
2747 breakpoint in-line in non-stop mode, restart all threads. Clear
2748 step_over_info before delivering the signal.
2749 (keep_going_stepped_thread): Use internal_error instead of
2750 gdb_assert. Mark the thread as resumed.
2751 (keep_going_pass_signal): Assert the thread isn't already resumed.
2752 If some other thread is doing an in-line step-over, defer the
2753 resume. If we just started a new in-line step-over, stop all
2754 threads. Don't clear step_over_info.
2755 (infrun_async_inferior_event_handler): New function.
2756 (_initialize_infrun): Create async event handler with
2757 infrun_async_inferior_event_handler as callback.
2758 (infrun_async): New declaration.
2759 * target.c (target_async): New function.
2760 * target.h (target_async): Declare macro and readd as function
2762 * target/waitstatus.h (enum target_stop_reason)
2763 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2764 * thread.c (new_thread): Clear the new waitstatus field.
2765 (set_resumed): New function.
2767 2015-08-07 Pedro Alves <palves@redhat.com>
2769 * infrun.c (keep_going_stepped_thread): New function, factored out
2771 (switch_back_to_stepped_thread): ... here.
2773 2015-08-07 Pedro Alves <palves@redhat.com>
2775 * infrun.c (currently_stepping): Extend intro comment.
2776 * target.h (target_resume): Extend intro comment.
2778 2015-08-07 Pedro Alves <palves@redhat.com>
2780 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2781 of inferior_ptid. If the stepped thread vanished, return 0
2782 instead of resuming here. Use reset_ecs. Print the prev_pc and
2783 the current stop_pc in log message. Clear trap_expected if the
2784 thread advanced. Don't pass currently_stepping to
2787 2015-08-07 Pedro Alves <palves@redhat.com>
2789 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2790 * infrun.c (struct execution_control_state): Move higher up in the
2792 (reset_ecs): New function.
2793 (start_step_over): Now returns int. Rewrite to use
2794 keep_going_pass_signal instead of manually starting a displaced step.
2795 (resume): Don't call set_running here. If displaced stepping
2796 can't start now, clear trap_expected.
2797 (find_thread_needs_step_over): Delete function.
2798 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2799 If the current thread needs a step over, push it in the step-over
2800 chain. Don't set insert breakpoints nor call resume directly
2801 here. Instead rewrite to use start_step_over and
2802 keep_going_pass_signal.
2803 (finish_step_over): New function.
2804 (handle_signal_stop): Call finish_step_over instead of
2806 (switch_back_to_stepped_thread): If the event thread needs another
2807 step-over do that first. Use start_step_over.
2808 (keep_going_pass_signal): New function, factored out from ...
2809 (keep_going): ... here.
2810 (_initialize_infrun): Comment moved here.
2811 * thread.c (set_running_thread): New function.
2812 (set_running, finish_thread_state): Use set_running_thread.
2814 2015-08-07 Pedro Alves <palves@redhat.com>
2816 * gdbthread.h (struct thread_info) <step_over_prev,
2817 step_over_next>: New fields.
2818 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2819 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2821 * infrun.c (struct displaced_step_request): Delete.
2822 (struct displaced_step_inferior_state) <step_request_queue>:
2824 (displaced_step_prepare): Assert that trap_expected is set. Use
2825 thread_step_over_chain_enqueue. Split starting a new displaced
2827 (start_step_over): ... this new function.
2828 (resume): Assert the thread isn't waiting for a step over already.
2829 (proceed): Assert the thread isn't waiting for a step over
2831 (infrun_thread_stop_requested): Adjust to remove threads from the
2832 embedded step-over chain.
2833 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2834 displaced_step_fixup.
2835 (handle_signal_stop): Call start_step_over after
2836 displaced_step_fixup.
2837 * infrun.h (step_over_queue_head): New declaration.
2838 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2839 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2840 (thread_step_over_chain_enqueue)
2841 (thread_step_over_chain_remove): New functions.
2842 (delete_thread_1): Remove thread from the step-over chain.
2844 2015-08-07 Pedro Alves <palves@redhat.com>
2846 * infrun.c (thread_still_needs_step_over): Rename to ...
2847 (thread_still_needs_step_over_bp): ... this.
2848 (enum step_over_what): New.
2849 (thread_still_needs_step_over): Reimplement.
2851 2015-08-07 Pedro Alves <palves@redhat.com>
2853 * remote.c (remote_wait_as): If not waiting for a stop reply,
2854 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2855 requested, don't block waiting forever.
2857 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2859 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2860 waitstatus pointers instead of an ecs. Adjust.
2861 (handle_inferior_event): Adjust caller.
2863 2015-08-07 Pedro Alves <palves@redhat.com>
2865 * infrun.c (handle_inferior_event): If we get
2866 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2867 mode, mark all threads of the exiting process as not-executing.
2868 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2869 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2870 exiting process, if inferior_ptid still points at a process.
2871 * thread.c (struct current_thread_cleanup) <next>: New field.
2872 (current_thread_cleanup_chain): New global.
2873 (restore_current_thread_ptid_changed): New function.
2874 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2875 current_thread_cleanup_chain list.
2876 (make_cleanup_restore_current_thread): Add the cleanup data to the
2877 current_thread_cleanup_chain list.
2878 (_initialize_thread): Install restore_current_thread_ptid_changed
2879 as thread_ptid_changed observer.
2881 2015-08-07 Joel Brobecker <brobecker@adacore.com>
2883 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2884 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2885 smaller than expected.
2887 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2889 * stack.c (get_frame_language): Moved ...
2890 * frame.c (get_frame_language): ... to here.
2891 * language.h (get_frame_language): Declaration moved to frame.h.
2892 * frame.h: Add language.h include, for language enum.
2893 (get_frame_language): Declaration moved from language.h.
2894 * language.c: Add frame.h include.
2895 * top.c: Add frame.h include.
2896 * symtab.h (struct obj_section): Declare.
2897 (struct cmd_list_element): Declare.
2899 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2901 * language.c (show_language_command): Find selected frame before
2902 asking for the language of that frame.
2903 (set_language_command): Likewise.
2904 * language.h (get_frame_language): Add frame parameter.
2905 * stack.c (get_frame_language): Add frame parameter, assert
2906 parameter is not NULL, update comment and reindent.
2907 * top.c (check_frame_language_change): Pass the selected frame
2908 into get_frame_language.
2910 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2912 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2913 (pt_btrace_insn_flags): New.
2914 (ftrace_add_pt): Call pt_btrace_insn_flags.
2915 * btrace.h (btrace_insn_flag): New.
2916 (btrace_insn) <flags>: New.
2917 * record-btrace.c (btrace_insn_history): Print insn prefix.
2918 * NEWS: Announce it.
2920 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2922 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2923 * configure: Regenerate.
2925 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2927 * Makefile.in (LIBICONV): Define.
2928 (CLIBS): Add LIBICONV.
2929 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2930 * configure: Regenerate.
2932 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2933 Pedro Alves <palves@redhat.com>
2935 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2936 (arm_set_abi): Likewise.
2937 * ax-general.c (ax_print): Likewise.
2938 * c-exp.y (exp : string_exp): Likewise.
2939 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2940 (do_compile_dwarf_expr_to_c): Likewise.
2941 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2943 * dwarf2expr.c (execute_stack_op): Likewise.
2944 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2945 (disassemble_dwarf_expression): Likewise.
2946 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2947 (read_array_order): Likewise.
2948 (abbrev_table_read_table): Likewise.
2949 (read_attribute_value): Likewise.
2950 (skip_unknown_opcode): Likewise.
2951 (dwarf_decode_macro_bytes): Likewise.
2952 (dwarf_decode_macros): Likewise.
2953 * eval.c (value_f90_subarray): Likewise.
2954 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2955 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2956 * infrun.c (handle_command): Likewise.
2957 * memory-map.c (memory_map_start_memory): Likewise.
2958 * osabi.c (set_osabi): Likewise.
2959 * parse.c (operator_length_standard): Likewise.
2960 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2961 single return point.
2962 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2963 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2964 (gdbpy_lookup_global_symbol): Likewise.
2965 * record-full.c (record_full_restore): Likewise.
2966 * regcache.c (regcache_register_status): Likewise.
2967 (regcache_raw_read): Likewise.
2968 (regcache_cooked_read): Likewise.
2969 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2970 * symtab.c (initialize_ordinary_address_classes): Likewise.
2971 * target-debug.h (target_debug_print_signals): Likewise.
2972 * utils.c (do_restore_current_language): Likewise.
2974 2015-08-06 Clem Dickey <clemd@acm.org>
2977 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2979 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2981 * complaints.c (enum complaint_series): Add newlines and remove
2982 out of date comment.
2983 (struct complaints) <series>: Change type to enum
2984 complaint_series and remove out of date comment.
2985 (symfile_complaint_hook): Use equivalent enum value
2986 ISOLATED_MESSAGE instead of 0.
2988 2015-08-06 Pedro Alves <palves@redhat.com>
2990 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2993 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2995 * common/agent.c (symbol_list) <required>: Remove.
2997 2015-08-06 Pedro Alves <palves@redhat.com>
2999 * target/waitstatus.h (enum target_stop_reason)
3000 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3002 2015-08-05 Pedro Alves <palves@redhat.com>
3003 Joel Brobecker <brobecker@adacore.com>
3005 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
3006 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
3007 case where BS->STOP is not set.
3009 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
3011 * nat/gdb_thread_db.h: Add copyright header.
3012 Protect against multiple inclusion.
3014 2015-08-05 Yao Qi <yao.qi@linaro.org>
3016 * aarch64-linux-nat.c (get_thread_id): Remove.
3017 (debug_reg_change_callback): Call ptid_get_lwp instead of
3019 (fetch_gregs_from_thread): Likewise.
3020 (store_gregs_to_thread): Likewise.
3021 (fetch_fpregs_from_thread): Likewise.
3022 (store_fpregs_to_thread): Likewise.
3023 (aarch64_linux_get_debug_reg_capacity): Likewise.
3024 * arm-linux-nat.c (get_thread_id): Remove.
3025 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3026 * xtensa-linux-nat.c (get_thread_id): Remove.
3027 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3028 * arm-linux-nat.c (get_thread_id): Remove.
3029 (GET_THREAD_ID): Remove.
3030 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
3031 (store_fpregs, fetch_regs, store_regs): Likewise.
3032 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3033 (fetch_vfp_regs, store_vfp_regs): Likewise.
3034 (arm_linux_read_description): Likewise.
3035 (arm_linux_get_hwbp_cap): Likewise.
3036 * xtensa-linux-nat.c (get_thread_id): Remove.
3037 (GET_THREAD_ID): Remove.
3038 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
3041 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
3043 * python/py-linetable.c: Fix case of Linetable to LineTable
3044 in docstrings and code comments.
3045 * python/py-symtab.c: Same.
3047 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 * infcmd.c (signal_command): Call do_cleanups for args_chain.
3051 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
3057 2015-08-04 Pedro Alves <palves@redhat.com>
3059 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
3060 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
3061 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
3062 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
3063 (td_thr_validate_ftype, td_thr_get_info_ftype)
3064 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
3065 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
3067 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
3068 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
3069 local macros and use them instead of verbose_dlsym and dlsym
3072 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
3074 * nios2-tdep.h: Include opcode/nios2.h here.
3075 (NIOS2_CDX_OPCODE_SIZE): New.
3076 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
3077 * nios2-tdep.c: Don't include opcode/nios2.h here.
3078 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
3080 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
3081 (nios2_match_addi, nios2_match_orhi): Likewise.
3082 (nios2_match_stw, nios2_match_ldw): Likewise.
3083 (nios2_match_rdctl): Likewise.
3084 (nios2_match_stwm, nios2_match_ldwm): New.
3085 (nios2_match_branch): Add cases for R2 encodings.
3086 (nios2_match_jmpi, nios2_match_calli): Likewise.
3087 (nios2_match_jmpr, nios2_match_callr): Likewise.
3088 (nios2_match_break, nios2_match_trap): Likewise.
3089 (nios2_in_epilogue_p): Add R2 support.
3090 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
3092 (nios2_breakpoint_from_pc): Handle R2 instructions.
3093 (nios2_get_next_pc): Likewise. Adjust call to
3094 tdep->syscall_next_pc.
3095 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
3096 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
3097 instruction field macros instead of literal hex values.
3098 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
3099 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
3100 Use size field from OP instead of assuming all instructions
3102 (nios2_linux_init_abi): Register appropriate unwinder for mach.
3104 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
3106 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
3107 variable warning with some compilers.
3109 2015-08-03 Yao Qi <yao.qi@linaro.org>
3111 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
3112 in comment. Replace "rw" with "type".
3113 (arm_linux_remove_watchpoint): Change type of "rw" to
3114 "enum target_hw_bp_type".
3116 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
3118 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
3120 * ft32-tdep.c (ft32_skip_prologue): Likewise.
3121 * moxie-tdep.c (moxie_skip_prologue): Likewise.
3122 * mt-tdep.c (mt_skip_prologue): Likewise.
3123 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3125 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
3127 * ada-exp.y (write_object_renaming): Replace struct
3128 ada_symbol_info with struct block_symbol. Update field
3129 references accordingly.
3130 (block_lookup, select_possible_type_sym): Likewise.
3131 (find_primitive_type): Likewise. Also update call to
3132 ada_lookup_symbol to extract the symbol itself.
3133 (write_var_or_type, write_name_assoc): Likewise.
3134 * ada-lang.h (struct ada_symbol_info): Remove.
3135 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
3136 struct block_symbol.
3137 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
3138 (ada_lookup_symbol): Return struct block_symbol instead of a
3140 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
3141 with struct block_symbol.
3142 (resolve_subexp, ada_resolve_function, sort_choices,
3143 user_select_syms, is_nonfunction, add_defn_to_vec,
3144 num_defns_collected, defns_collected,
3145 symbols_are_identical_enums, remove_extra_symbols,
3146 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
3147 ada_lookup_symbol_list, ada_iterate_over_symbols,
3148 ada_lookup_encoded_symbol, get_var_value): Likewise.
3149 (ada_lookup_symbol): Return a block_symbol instead of a mere
3150 symbol. Replace struct ada_symbol_info with struct
3152 (ada_lookup_symbol_nonlocal): Likewise.
3153 (standard_lookup): Make block passing explicit through
3154 lookup_symbol_in_language.
3155 * ada-tasks.c (get_tcb_types_info): Update the calls to
3156 lookup_symbol_in_language to extract the mere symbol out of the
3158 (ada_tasks_inferior_data_sniffer): Likewise.
3159 * ax-gdb.c (gen_static_field): Likewise for the call to
3161 (gen_maybe_namespace_elt): Deal with struct block_symbol from
3163 (gen_expr): Likewise.
3164 * c-exp.y: Likewise. Remove uses of block_found.
3165 (lex_one_token, classify_inner_name, c_print_token): Likewise.
3166 (classify_name): Likewise. Rename the "sym" local variable to
3168 * c-valprint.c (print_unpacked_pointer): Likewise.
3169 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
3170 "sym" parameter from struct symbol * to struct block_symbol.
3171 Use it to remove uses of block_found. Deal with struct
3172 block_symbol from lookup functions.
3173 (gcc_convert_symbol): Likewise. Update the call to
3175 * compile/compile-object-load.c (compile_object_load): Deal with
3176 struct block_symbol from lookup functions.
3177 * cp-namespace.c (cp_lookup_nested_symbol_1,
3178 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
3179 cp_search_static_and_baseclasses,
3180 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
3181 cp_lookup_symbol_imports_or_template,
3182 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
3183 lookup_namespace_scope, cp_lookup_nonlocal,
3184 find_symbol_in_baseclass): Return struct block_symbol instead of
3185 mere symbols and deal with struct block_symbol from lookup
3187 * cp-support.c (inspect_type, replace_typedefs,
3188 cp_lookup_rtti_type): Deal with struct block_symbol from
3190 * cp-support.h (cp_lookup_symbol_nonlocal,
3191 cp_lookup_symbol_from_namespace,
3192 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
3193 Return struct block_symbol instead of mere symbols.
3194 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
3196 Deal with struct block_symbol from lookup functions. Remove
3197 uses of block_found.
3198 * eval.c (evaluate_subexp_standard): Update call to
3199 cp_lookup_symbol_namespace.
3200 * f-exp.y: Deal with struct block_symbol from lookup functions.
3201 Remove uses of block_found.
3203 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
3204 lookup_enum, lookup_template_type, check_typedef): Deal with
3205 struct block_symbol from lookup functions.
3206 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
3207 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
3208 (gdbscm_lookup_global_symbol): Likewise.
3209 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
3210 * go-exp.y: Likewise. Remove uses of block_found.
3211 (package_name_p, classify_packaged_name, classify_name):
3213 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3214 * jv-exp.y (push_variable): Likewise.
3215 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
3216 * language.c (language_bool_type): Likewise.
3217 * language.h (struct language_defn): Update
3218 la_lookup_symbol_nonlocal to return a struct block_symbol rather
3220 * linespec.c (find_label_symbols): Deal with struct block_symbol
3221 from lookup functions.
3222 * m2-exp.y: Likewise. Remove uses of block_found.
3224 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3225 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
3226 * p-exp.y: Likewise. Remove uses of block_found.
3228 * p-valprint.c (pascal_val_print): Likewise.
3229 * parse.c (write_dollar_variable): Likewise. Remove uses of
3231 * parser-defs.h (struct symtoken): Turn the SYM field into a
3232 struct block_symbol.
3233 * printcmd.c (address_info): Deal with struct block_symbol from
3235 * python/py-frame.c (frapy_read_var): Likewise.
3236 * python/py-symbol.c (gdbpy_lookup_symbol,
3237 gdbpy_lookup_global_symbol): Likewise.
3238 * skip.c (skip_function_command): Likewise.
3239 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
3240 block_symbol instead of a mere symbol.
3241 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
3242 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3243 * solib.c (solib_global_lookup): Likewise.
3244 * solist.h (solib_global_lookup): Likewise.
3245 (struct target_so_ops): Update lookup_lib_global_symbol to
3246 return a struct block_symbol rather than a mere symbol.
3247 * source.c (select_source_symtab): Deal with struct block_symbol
3248 from lookup functions.
3249 * stack.c (print_frame_args, iterate_over_block_arg_vars):
3251 * symfile.c (set_initial_language): Likewise.
3252 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
3254 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3255 (struct symbol_cache_slot): Turn the FOUND field into a struct
3257 (block_found): Remove.
3258 (eq_symbol_entry): Update to deal with struct block_symbol in
3260 (symbol_cache_lookup): Return a struct block_symbol rather than
3262 (symbol_cache_mark_found): Add a BLOCK parameter to fill
3263 appropriately the cache slots. Update callers.
3264 (symbol_cache_dump): Update cache slots handling to the type
3266 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3267 lookup_symbol_aux, lookup_local_symbol,
3268 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3269 lookup_symbol_in_objfile_symtabs,
3270 lookup_symbol_in_objfile_from_linkage_name,
3271 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3272 lookup_symbol_in_static_block, lookup_static_symbol,
3273 lookup_global_symbol):
3274 Return a struct block_symbol rather than a mere symbol. Deal
3275 with struct block_symbol from other lookup functions. Remove
3276 uses of block_found.
3277 (lookup_symbol_in_block): Remove uses of block_found.
3278 (struct global_sym_lookup_data): Turn the RESULT field into a
3279 struct block_symbol.
3280 (lookup_symbol_global_iterator_cb): Update references to the
3282 (search_symbols): Deal with struct block_symbol from lookup
3284 * symtab.h (struct block_symbol): New structure.
3285 (block_found): Remove.
3286 (lookup_symbol_in_language, lookup_symbol,
3287 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
3288 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3289 lookup_global_symbol_from_objfile): Return a struct block_symbol
3290 rather than just a mere symbol. Update comments to remove
3291 mentions of block_found.
3292 * valops.c (find_function_in_inferior,
3293 value_struct_elt_for_reference, value_maybe_namespace_elt,
3294 value_of_this): Deal with struct block_symbol from lookup
3296 * value.c (value_static_field, value_fn_field): Likewise.
3298 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3300 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3303 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3304 Pedro Alves <palves@redhat.com>
3306 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3307 type or value instead of integer.
3308 (aarch64_linux_insert_watchpoint): Likewise.
3309 (aarch64_linux_remove_watchpoint): Likewise.
3310 * ada-lang.c (ada_op_print_tab): Likewise.
3311 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3312 (amd64_linux_syscall_record_common): Likewise.
3313 * arch-utils.c (target_byte_order_user): Likewise.
3314 (default_byte_order): Likewise.
3315 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3316 (arm_linux_get_hwbp_type): Likewise.
3317 (arm_linux_hw_watchpoint_initialize): Likewise.
3318 (arm_linux_insert_watchpoint): Likewise.
3319 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3320 (arm_linux_syscall_record): Likewise.
3321 * breakpoint.c (update_watchpoint): Likewise.
3322 (breakpoint_here_p): Likewise.
3323 (bpstat_print): Likewise.
3324 (enable_breakpoint_disp): Likewise.
3325 * c-lang.c (c_op_print_tab): Likewise.
3326 * cli/cli-decode.c (add_info_alias): Likewise.
3327 * d-lang.c (d_op_print_tab): Likewise.
3328 * eval.c (evaluate_subexp_standard): Likewise.
3329 * f-exp.y (dot_ops): Likewise.
3330 (f77_keywords): Likewise.
3331 * f-lang.c (f_op_print_tab): Likewise.
3332 * go-lang.c (go_op_print_tab): Likewise.
3333 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3334 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3335 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3336 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3337 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3338 (struct scm_from_stringn_data): Likewise.
3339 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3340 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3341 (ia64_linux_remove_watchpoint): Likewise.
3342 (ia64_linux_can_use_hw_breakpoint): Likewise.
3343 * infrun.c (print_stop_event): Likewise.
3344 * jv-lang.c (java_op_print_tab): Likewise.
3345 * linux-nat.c (linux_proc_xfer_partial): Likewise.
3346 * linux-nat.h (struct lwp_info): Likewise.
3347 * linux-thread-db.c (enable_thread_event): Likewise.
3348 * m2-lang.c (m2_op_print_tab): Likewise.
3349 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3350 (mi_cmd_stack_list_variables): Likewise.
3351 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3352 * mi/mi-out.c (mi_table_begin): Likewise.
3353 (mi_table_header): Likewise.
3354 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3355 (mips_linux_insert_watchpoint): Likewise.
3356 (mips_linux_remove_watchpoint): Likewise.
3357 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3358 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3359 (mips_linux_watch_type_to_irw): Likewise.
3360 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3361 (procfs_insert_hw_watchpoint): Likewise.
3362 (procfs_remove_hw_watchpoint): Likewise.
3363 (procfs_hw_watchpoint): Likewise.
3364 (procfs_can_use_hw_breakpoint): Likewise.
3365 (procfs_remove_hw_watchpoint): Likewise.
3366 (procfs_insert_hw_watchpoint): Likewise.
3367 * p-lang.c (pascal_op_print_tab): Likewise.
3368 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3369 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3370 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3371 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3372 (procfs_insert_watchpoint): Likewise.
3373 (procfs_remove_watchpoint): Likewise.
3374 * psymtab.c (recursively_search_psymtabs): Likewise.
3375 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3376 (m32r_insert_watchpoint): Likewise.
3377 * remote-mips.c (mips_can_use_watchpoint): Likewise.
3378 (mips_insert_watchpoint): Likewise.
3379 (mips_remove_watchpoint): Likewise.
3380 * remote.c (watchpoint_to_Z_packet): Likewise.
3381 (remote_insert_watchpoint): Likewise.
3382 (remote_remove_watchpoint): Likewise.
3383 (remote_check_watch_resources): Likewise.
3384 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3385 (s390_remove_watchpoint): Likewise.
3386 (s390_can_use_hw_breakpoint): Likewise.
3387 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3388 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3389 * target.h (struct target_ops): Likewise.
3390 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3391 * ui-out.c (struct ui_out_hdr): Likewise.
3392 (append_header_to_list): Likewise.
3393 (get_next_header): Likewise.
3394 (verify_field): Likewise.
3395 (ui_out_begin): Likewise.
3396 (ui_out_field_int): Likewise.
3397 (ui_out_field_fmt_int): Likewise.
3398 (ui_out_field_skip): Likewise.
3399 (ui_out_field_string): Likewise.
3400 (ui_out_field_fmt): Likewise.
3401 * varobj.c (new_variable): Likewise.
3402 * x86-nat.c (x86_insert_watchpoint): Likewise.
3403 (x86_remove_watchpoint): Likewise.
3404 (x86_can_use_hw_breakpoint): Likewise.
3405 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3406 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3407 previously anonymous enumeration type..
3408 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3410 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3411 (target_debug_print_enum_bptype): New.
3412 * target-delegates.c: Regenerate.
3414 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3416 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3417 already says and disallow non-stack memory writes in the prologue.
3419 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3421 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3422 reflect how current GCC emits stack overflow checks. Match
3423 both trap and break instructions for backward compatbility.
3424 Disallow other trap and break instructions in the prologue.
3426 2015-07-30 Pedro Alves <palves@redhat.com>
3429 * linux-nat.c (wait_lwp): Report to the core when thread group
3432 2015-07-30 Pedro Alves <palves@redhat.com>
3433 Simon Marchi <simon.marchi@ericsson.com>
3436 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3437 mark the new thread as resumed. Remove STOPPING parameter.
3438 (wait_lwp): Adjust call to linux_handle_extended_wait.
3439 (linux_nat_filter_event): Adjust call to
3440 linux_handle_extended_wait.
3441 (resume_stopped_resumed_lwps): Add debug output.
3443 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3445 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3447 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3448 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3449 gdbarch_fast_tracepoint_valid_at.
3450 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3451 * gdbarch.h: Regenerate.
3452 * gdbarch.c: Regenerate.
3453 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3454 argument. Do not set it.
3455 * remote.c (remote_download_tracepoint): Adjust call to
3456 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3457 the instruction length.
3459 2015-07-30 Yao Qi <yao.qi@linaro.org>
3461 * arm-tdep.h (enum gdb_regnum): Move it to ...
3462 * arch/arm.h: ... here. New file.
3463 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3465 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3467 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3468 Change its type to int *.
3469 (decode_br): Rename link argument to is_blr. Change its type to
3471 (decode_cb): Rename op argument to is_cbnz. Change its type to
3473 (decode_tb): Rename op argument to is_tbnz. Change its type to
3474 int *. Set is_tbnz to either 1 or 0.
3475 (aarch64_analyze_prologue): Change type of is_link to int. Add
3476 new variables is_cbnz and is_tbnz. Adjust call to
3477 aarch64_decode_cb and aarch64_decode_tb.
3479 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3481 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3483 (mips_linux_new_thread): Likewise.
3484 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3486 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3488 * top.c: Include "tui/tui.h".
3489 (undo_terminal_modifications_before_exit): New static function.
3490 (quit_force): Use it.
3492 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3494 * target.c (terminal_state): Initialize to terminal_is_ours.
3496 2015-07-29 Yao Qi <yao.qi@linaro.org>
3499 * dcache.c (dcache_read_memory_partial): Call
3500 raw_memory_xfer_partial.
3501 * target.c (raw_memory_xfer_partial): Make it non-static.
3502 * target.h (raw_memory_xfer_partial): Declare.
3504 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3506 * c-valprint.c (c_val_print_array): Consider addressable memory
3508 (c_val_print_ptr): Likewise.
3509 (c_val_print_int): Likewise.
3510 * findvar.c (read_frame_register_value): Likewise.
3511 * valarith.c (find_size_for_pointer_math): Likewise.
3512 (value_ptrdiff): Likewise.
3513 (value_subscripted_rvalue): Likewise.
3514 * valops.c (read_value_memory): Likewise (and rename variables).
3515 (value_assign): Likewise.
3516 (value_repeat): Likewise.
3517 (value_array): Likewise.
3518 (value_slice): Likewise.
3519 * valprint.c (generic_val_print_ptr): Likewise.
3520 (generic_val_print_enum): Likewise.
3521 (generic_val_print_bool): Likewise.
3522 (generic_val_print_int): Likewise.
3523 (generic_val_print_char): Likewise.
3524 (generic_val_print_float): Likewise.
3525 (generic_val_print_decfloat): Likewise.
3526 (generic_val_print_complex): Likewise.
3527 (val_print_scalar_formatted): Likewise.
3528 (val_print_array_elements): Likewise.
3529 * value.c (set_value_parent): Likewise.
3530 (value_contents_copy_raw): Likewise.
3531 (set_internalvar_component): Likewise.
3532 (value_primitive_field): Likewise.
3533 (value_fetch_lazy): Likewise.
3534 * value.h (read_value_memory): Update comment.
3536 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3538 * value.c (get_value_arch): New function.
3539 * value.h (get_value_arch): New declaration.
3541 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3543 * value.c (struct value): Update comments.
3545 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3547 * gdbtypes.c (type_length_units): New function.
3548 * gdbtypes.h (type_length_units): New declaration.
3549 (struct type) <length>: Update comment.
3551 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3553 * valprint.c (generic_val_print): Factor out complex
3554 printing code to ...
3555 (generic_val_print_complex): ... this new function.
3557 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3559 * valprint.c (generic_val_print): Factor out decfloat
3560 printing code to ...
3561 (generic_val_print_decfloat): ... this new function.
3563 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3565 * valprint.c (generic_val_print): Factor out float
3566 printing code to ...
3567 (generic_val_print_float): ... this new function.
3569 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3571 * valprint.c (generic_val_print): Factor out char
3572 printing code to ...
3573 (generic_val_print_char): ... this new function.
3575 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3577 * valprint.c (generic_val_print): Factor out integer
3578 printing code to ...
3579 (generic_val_print_int): ... this new function.
3581 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3583 * valprint.c (generic_val_print): Factor out bool
3584 printing code to ...
3585 (generic_val_print_bool): ... this new function.
3587 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3589 * valprint.c (generic_val_print): Factor out function/method
3590 printing code to ...
3591 (generic_val_print_func): ... this new function.
3593 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3595 * valprint.c (generic_val_print): Factor out flags
3596 printing code to ...
3597 (generic_val_print_flags): ... this new function.
3599 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3601 * valprint.c (generic_val_print): Factor out enum
3602 printing code to ...
3603 (generic_val_print_enum): ... this new function.
3605 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3607 * valprint.c (generic_val_print): Factor out reference
3608 printing code to ...
3609 (generic_val_print_ref): ... this new function.
3611 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3613 * valprint.c (generic_val_print): Factor out memberptr
3614 printing code to ...
3615 (generic_val_print_memberptr): ... this new function.
3617 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3619 * valprint.c (generic_val_print): Factor out pointer
3620 printing code to ...
3621 (generic_val_print_ptr): ... this new function.
3623 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3625 * valprint.c (generic_val_print): Factor out array
3626 printing code to ...
3627 (generic_val_print_array): ... this new function.
3629 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3631 * valprint.c (generic_val_print): Factor out
3632 print_unpacked_pointer code to ...
3633 (print_unpacked_pointer): ... this new function.
3635 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3637 * event-top.c (handle_sigterm): Don't inspect
3638 target_can_async_p. Always set the quit flag and always mark
3639 the async signal handler.
3641 2015-07-27 Yao Qi <yao.qi@linaro.org>
3643 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3645 2015-07-25 Kevin Buettner <kevinb@redhat.com>
3647 * remote.c (read_ptid): Return null_ptid when no thread id
3649 (remote_current_thread): Add log warning for malformed
3651 (remote_start_remote): Add log warning when current thread
3654 2015-07-24 Pedro Alves <palves@redhat.com>
3656 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3657 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3658 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3660 2015-07-24 Pedro Alves <palves@redhat.com>
3663 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3664 is resumed, and extend the debug log.
3666 2015-07-24 Pedro Alves <palves@redhat.com>
3668 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3670 2015-07-24 Pedro Alves <palves@redhat.com>
3672 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3674 * alpha-linux-nat.c: Likewise.
3675 * amd64-linux-nat.c: Likewise.
3676 * arm-linux-nat.c: Likewise.
3677 * hppa-linux-nat.c: Likewise.
3678 * i386-linux-nat.c: Likewise.
3679 * ia64-linux-nat.c: Likewise.
3680 * linux-fork.c: Likewise.
3681 * linux-nat.c: Likewise.
3682 * m32r-linux-nat.c: Likewise.
3683 * m68klinux-nat.c: Likewise.
3684 * mips-linux-nat.c: Likewise.
3685 * nat/linux-btrace.c: Likewise.
3686 * nat/linux-ptrace.c: Likewise.
3687 * nat/linux-ptrace.h
3688 * nat/mips-linux-watch.c: Likewise.
3689 * nat/x86-linux-dregs.c: Likewise.
3690 * ppc-linux-nat.c: Likewise.
3691 * s390-linux-nat.c: Likewise.
3692 * spu-linux-nat.c: Likewise.
3693 * tilegx-linux-nat.c: Likewise.
3694 * x86-linux-nat.c: Likewise.
3695 * xtensa-linux-nat.c: Likewise.
3697 2015-07-24 Pedro Alves <palves@redhat.com>
3699 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3700 __ptrace_request as first parameter type instead of int.
3701 (PTRACE_TYPE_ARG1): Define.
3702 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3703 that casts first argument to PTRACE_TYPE_ARG1.
3704 * config.in: Regenerate.
3705 * configure: Regenerate.
3707 2015-07-24 Pedro Alves <palves@redhat.com>
3709 * gdb_ptrace.h: Move ...
3710 * nat/gdb_ptrace.h: ... here.
3711 * inf-ptrace.c: Adjust.
3713 2015-07-24 Pedro Alves <palves@redhat.com>
3715 * acinclude.m4: Include ptrace.m4.
3716 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3717 * ptrace.m4: ... to this new file.
3719 2015-07-23 Doug Evans <dje@google.com>
3721 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3722 (load_cu): Handle dummy CUs.
3723 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3724 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3726 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3728 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3729 documentation to say that it returns a list rather than
3731 (linetable_object_methods): Update the docstring of the
3732 "source_line" entry.
3734 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3736 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3737 type to the recursive call instead of the original (maybe
3738 TYPE_CODE_TYPEDEF) type.
3740 2015-07-23 Yao Qi <yao.qi@linaro.org>
3742 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3743 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3744 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3746 2015-07-21 Yao Qi <yao.qi@linaro.org>
3748 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3749 Move it to nat/aarch64-linux-hw-point.c.
3750 (aarch64_linux_child_post_startup_inferior): Update.
3751 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3753 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3756 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3758 * common/btrace-common.c (btrace_data_append): Change case label.
3760 2015-07-20 Yao Qi <yao.qi@linaro.org>
3762 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3764 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3765 "unsigned long long".
3767 2015-07-18 Kevin Buettner <kevinb@redhat.com>
3769 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3770 to be set for SEC_ALLOC sections too.
3772 2015-07-17 Yao Qi <yao.qi@linaro.org>
3774 * Makefile.in (HFILES_NO_SRCDIR): Add
3775 nat/aarch64-linux-hw-point.h.
3776 (aarch64-linux-hw-point.o): New rule.
3777 * nat/aarch64-linux-hw-point.h: New file.
3778 * nat/aarch64-linux-hw-point.c: New file.
3779 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3780 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3781 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3782 (AARCH64_HWP_ALIGNMENT): Likewise.
3783 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3784 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3785 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3786 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3787 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3788 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3789 (struct aarch64_debug_reg_state): Likewise.
3790 (struct arch_lwp_info): Likewise.
3791 (aarch64_linux_set_debug_regs): Likewise.
3792 (aarch64_notify_debug_reg_change): Remove static.
3793 (aarch64_align_watchpoint): Likewise.
3794 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3795 (aarch64_watchpoint_length): Likewise.
3796 (aarch64_point_encode_ctrl_reg): Likewise
3797 (aarch64_point_is_aligned): Likewise.
3798 (aarch64_dr_state_insert_one_point): Likewise.
3799 (aarch64_dr_state_remove_one_point): Likewise.
3800 (aarch64_handle_breakpoint): Likewise.
3801 (aarch64_handle_aligned_watchpoint): Likewise.
3802 (aarch64_handle_unaligned_watchpoint): Likewise.
3803 (aarch64_handle_watchpoint): Likewise.
3804 * config/aarch64/linux.mh (NAT_FILE): Add
3805 aarch64-linux-hw-point.o.
3807 2015-07-17 Yao Qi <yao.qi@linaro.org>
3809 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3810 state and don't call aarch64_get_debug_reg_state. All callers
3812 (aarch64_linux_insert_hw_breakpoint): Call
3813 aarch64_get_debug_reg_state earlier.
3814 (aarch64_linux_remove_hw_breakpoint): Likewise.
3815 (aarch64_handle_aligned_watchpoint): Add argument state and
3816 don't call aarch64_get_debug_reg_state. All callers update.
3817 (aarch64_handle_unaligned_watchpoint): Likewise.
3818 (aarch64_handle_watchpoint): Add argument state.
3819 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3821 (aarch64_linux_remove_watchpoint): Likewise.
3823 2015-07-17 Yao Qi <yao.qi@linaro.org>
3825 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3827 (aarch64_handle_unaligned_watchpoint): Likewise.
3829 2015-07-17 Yao Qi <yao.qi@linaro.org>
3831 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3832 argument type's type to 'enum target_hw_bp_type'.
3833 (aarch64_dr_state_remove_one_point): Likewise.
3834 (aarch64_handle_breakpoint): Likewise.
3835 (aarch64_linux_insert_hw_breakpoint): Likewise.
3836 (aarch64_linux_remove_hw_breakpoint): Likewise.
3837 (aarch64_handle_aligned_watchpoint): Likewise.
3839 2015-07-17 Yao Qi <yao.qi@linaro.org>
3841 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3842 ptid_get_pid instead of get_thread_id.
3844 2015-07-17 Yao Qi <yao.qi@linaro.org>
3846 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3847 (add_current_inferior_and_thread): Don't initialise ptid.
3849 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3851 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3852 unavailable if invalid.
3854 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3856 Revert the previous 6 commits:
3857 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3858 Move gdb_regex* to common/
3859 Prepare linux_find_memory_regions_full & co. for move
3860 Move linux_find_memory_regions_full & co.
3861 gdbserver build-id attribute generator
3862 Validate symbol file using build-id
3864 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3865 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 Validate symbol file using build-id.
3868 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3869 and 'show validate-build-id'. Add build-id attribute.
3870 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3871 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3872 * solib-frv.c (_initialize_frv_solib): Ditto.
3873 * solib-spu.c (set_spu_solib_ops): Ditto.
3874 * solib-svr4.c: Include rsp-low.h.
3875 (NOTE_GNU_BUILD_ID_NAME): New define.
3876 (svr4_validate): New function.
3877 (svr4_copy_library_list): Duplicate field build_id.
3878 (library_list_start_library): Parse 'build-id' attribute.
3879 (svr4_library_attributes): Add 'build-id' attribute.
3880 (_initialize_svr4_solib): Assign validate value.
3881 * solib-target.c (solib.h): Include.
3882 (_initialize_solib_target): Assign validate value.
3883 * solib.c (validate_build_id, show_validate_build_id): New.
3884 (solib_map_sections): Use ops->validate.
3885 (clear_so): Free build_id.
3886 (default_solib_validate): New function.
3887 (_initialize_solib): Add "validate-build-id".
3888 * solib.h (default_solib_validate): New declaration.
3889 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3890 (target_so_ops): New field 'validate'.
3892 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3893 Jan Kratochvil <jan.kratochvil@redhat.com>
3895 gdbserver build-id attribute generator.
3896 * features/library-list-svr4.dtd (library-list-svr4): New
3897 'build-id' attribute.
3899 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3900 Jan Kratochvil <jan.kratochvil@redhat.com>
3902 Move linux_find_memory_regions_full & co.
3903 * linux-tdep.c (nat/linux-maps.h): Include.
3904 (gdb_regex.h): Remove the include.
3905 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3906 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3907 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3908 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3909 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3910 and target/target.h.
3911 (struct smaps_vmflags, read_mapping, decode_vmflags)
3912 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3913 (linux_find_memory_regions_full): Move from linux-tdep.c.
3914 * nat/linux-maps.h (read_mapping): New declaration.
3915 (linux_find_memory_region_ftype, enum filterflags): Moved from
3917 (linux_find_memory_regions_full): New declaration.
3918 * target.c (target/target-utils.h): Include.
3919 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3920 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3921 definitions to target/target-utils.c.
3922 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3923 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3925 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3926 (read_alloc): New declaration.
3927 (read_stralloc_func_ftype): New typedef.
3928 (read_stralloc): New declaration.
3929 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3931 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3932 Jan Kratochvil <jan.kratochvil@redhat.com>
3934 Prepare linux_find_memory_regions_full & co. for move.
3935 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3936 (linux_find_memory_regions_full): Change signature and prepare
3937 for moving to linux-maps.
3938 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3939 (linux_find_memory_regions_thunk): New.
3940 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3941 (linux_find_memory_regions_gdb): New.
3942 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3943 (linux_make_mappings_corefile_notes): Use
3944 linux_find_memory_regions_gdb.
3945 * target.c (read_alloc_pread_ftype): New typedef.
3946 (target_fileio_read_alloc_1_pread): New function.
3947 (read_alloc): Refactor from target_fileio_read_alloc_1.
3948 (read_stralloc_func_ftype): New typedef.
3949 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3950 (read_stralloc): Refactored from target_fileio_read_stralloc.
3951 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3953 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3955 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3957 (COMMON_OBS): Add gdb_regex.o.
3959 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3960 --without-included-regex and USE_INCLUDED_REGEX.
3961 * common/gdb_regex.c: New file from utils.c functions.
3962 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3963 file wrapping define name.
3964 * configure: Rebuilt.
3965 * configure.ac (gdb_use_included_regex, --without-included-regex)
3966 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3967 * gdb_regex.h: Move it to common/gdb_regex.h.
3968 * utils.c: Remove include gdb_regex.h.
3969 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3970 (compile_rx_or_error): Move them to common/gdb_regex.c.
3972 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3973 Jan Kratochvil <jan.kratochvil@redhat.com>
3975 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3976 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3977 common/target-utils.h.
3978 (COMMON_OBS): Add target-utils.o.
3979 (linux-maps.o, target-utils.o): New.
3980 * target/target-utils.c: New file.
3981 * target/target-utils.h: New file.
3982 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3983 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3984 * nat/linux-maps.c: New file.
3985 * nat/linux-maps.h: New file.
3987 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3988 Pedro Alves <palves@redhat.com>
3990 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3991 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3992 (perf_event_read_bts): Change the type of SIZE and READ.
3993 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3994 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3995 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3997 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3998 buffer size to UINT_MAX.
3999 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
4001 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
4002 <last_head>: Change type.
4003 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
4004 * common/btrace-common.c (btrace_data_append): Change the type of
4006 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
4009 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
4011 * gdbtypes.h (CHECK_TYPEDEF): Remove.
4012 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
4014 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
4015 (ada_array_length): Likewise.
4016 (find_parallel_type_by_descriptive_type): Likewise.
4017 (ada_check_typedef): Likewise.
4018 * arm-tdep.c (arm_return_in_memory): Likewise.
4019 * ax-gdb.c (gen_trace_static_fields): Likewise.
4020 (gen_struct_ref_recursive): Likewise.
4021 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4022 (variable: block COLONCOLON name): Likewise.
4023 (qualified_name: TYPENAME COLONCOLON name): Likewise.
4024 * c-lang.c (classify_type): Likewise.
4025 * c-typeprint.c (c_print_type): Likewise.
4026 (c_print_typedef): Likewise.
4027 (c_type_print_base): Likewise.
4028 * c-valprint.c (c_val_print): Likewise.
4029 * compile/compile-c-types.c (convert_type): Likewise.
4030 * compile/compile-object-load.c (get_out_value_type): Likewise.
4031 * completer.c (add_struct_fields): Likewise.
4032 (expression_completer): Likewise.
4033 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
4034 (cp_lookup_nested_symbol_1): Likewise.
4035 (cp_lookup_nested_symbol): Likewise.
4036 * cp-valprint.c (cp_print_value_fields): Likewise.
4037 (cp_print_static_field): Likewise.
4038 * d-valprint.c (d_val_print): Likewise.
4039 * eval.c (evaluate_subexp_standard): Likewise.
4040 (evaluate_subexp_for_sizeof): Likewise.
4041 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4042 * f-typeprint.c (f_type_print_base): Likewise.
4043 * f-valprint.c (f_val_print): Likewise.
4044 * gdbtypes.c (get_discrete_bounds): Likewise.
4045 (create_array_type_with_stride): Likewise.
4046 (type_name_no_tag_or_error): Likewise.
4047 (lookup_struct_elt_type): Likewise.
4048 (get_unsigned_type_max): Likewise.
4049 (internal_type_vptr_fieldno): Likewise.
4050 (set_type_vptr_fieldno): Likewise.
4051 (internal_type_vptr_basetype): Likewise.
4052 (set_type_vptr_basetype): Likewise.
4053 (get_vptr_fieldno): Likewise.
4054 (is_integral_type): Likewise.
4055 (is_scalar_type): Likewise.
4056 (is_scalar_type_recursive): Likewise.
4057 (distance_to_ancestor): Likewise.
4058 (is_unique_ancestor_worker): Likewise.
4059 (check_types_equal): Likewise.
4060 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4062 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
4064 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
4065 also test for language_d.
4066 (dwarf2_compute_name): Likewise.
4067 (read_func_scope): Likewise.
4068 (read_structure_type): Likewise.
4069 (new_symbol_full): Likewise.
4070 (determine_prefix): Likewise.
4071 (read_import_statement): Use dot as the separator for language_d.
4072 (typename_concat): Likewise, but don't prefix the D main function.
4074 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
4076 * nat/linux-namespaces.c (setns): Rename from this ...
4077 (do_setns): ... to this. Support calling setns if it exists.
4078 (mnsh_handle_setns): Call do_setns.
4080 2015-07-13 Yao Qi <yao.qi@linaro.org>
4082 * exec.c (exec_file_attach): Add period at the end of error
4085 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
4087 * tui/tui-win.c (window_name_completer): New function.
4088 (focus_completer): Call window_name_completer. All old content
4089 moved into window_name_completer.
4090 (winheight_completer): New function.
4091 (_initialize_tui_win): Rename variable. Add completer to
4092 winheight command. Update doc string on winheight.
4094 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
4096 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
4097 all nios2 mach variants.
4099 2015-07-10 Kevin Buettner <kevinb@redhat.com>
4101 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
4102 of target_read_memory.
4104 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4106 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
4108 (parse_scrolling_args): Likewise.
4110 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4112 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
4113 names in this function.
4115 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4117 * tui/tui-data.h (SRC_NAME): Convert to lower case.
4118 (CMD_NAME): Likewise.
4119 (DATA_NAME): Likewise.
4120 (DISASSEM_NAME): Likewise.
4121 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
4122 (tui_set_win_height): Likewise.
4123 (parse_scrolling_args): Likewise.
4125 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
4127 * record-btrace.c (record_btrace_goto_begin)
4128 (record_btrace_goto_end, record_btrace_goto): Move call to
4129 print_stack_frame ...
4130 (record_btrace_set_replay): ... here. Set stop_pc.
4131 * record-full.c (record_full_goto_entry): Set stop_pc.
4133 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4135 * NEWS: Mention support for tracepoints on aarch64-linux.
4137 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4139 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
4141 (the_low_target): Install it.
4143 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4145 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
4146 * gdb.trace/collection.exp: Likewise.
4147 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
4148 * gdb.trace/mi-trace-unavailable.exp: Likewise.
4149 * gdb.trace/report.exp: Likewise.
4150 * gdb.trace/trace-break.exp: Likewise.
4151 * gdb.trace/unavailable.exp: Likewise.
4152 * gdb.trace/while-dyn.exp: Likewise.
4154 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4156 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
4157 (aarch64_gen_return_address): New function.
4158 (aarch64_gdbarch_init): Hook it.
4160 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4162 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
4163 swallow NOT_AVAILABLE_ERROR.
4164 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
4165 available_p is not set.
4166 (aarch64_stub_frame_unwind_stop_reason): New function.
4167 (aarch64_stub_unwind): Install it.
4169 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4171 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
4173 (aarch64_make_prologue_cache_1): New function, factored out from
4174 aarch64_make_prologue_cache. Do not allocate cache. Set
4176 (aarch64_make_prologue_cache): Reimplement wrapping
4177 aarch64_make_prologue_cache_1, and swallowing
4178 NOT_AVAILABLE_ERROR.
4179 (aarch64_prologue_frame_unwind_stop_reason): New function.
4180 Return UNWIND_UNAVAILABLE if available_p is not set.
4181 (aarch64_prologue_unwind): Install it.
4182 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
4183 checks into aarch64_prologue_frame_unwind_stop_reason. Call
4184 frame_id_build_unavailable_stack if available_p is not set.
4186 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4188 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
4190 (aarch64_scan_prologue): Set prev_pc.
4191 (aarch64_make_prologue_cache): Set func.
4192 (aarch64_make_stub_cache): Set prev_pc.
4193 (aarch64_prologue_this_id): Remove local variables id, pc and
4194 func. Read prev_pc and func from cache.
4195 (aarch64_stub_this_id): Read prev_pc from cache.
4197 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4199 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
4200 argument this_cache. Remove unused local variables reg and
4201 unwound_fp. Return early if this_cache is already set. Set
4203 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
4205 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4207 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
4208 New argument this_cache. Return early if this_cache is already
4209 set. Set this_cache.
4210 (aarch64_prologue_this_id): Update call to
4211 aarch64_make_prologue_cache.
4212 (aarch64_prologue_prev_register): Likewise.
4213 (aarch64_normal_frame_base): Likewise.
4215 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4217 * c-valprint.c (c_val_print): Factor out memberptr printing code
4218 from c_val_print to ...
4219 (c_val_print_memberptr): ... this new function.
4221 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4223 * c-valprint.c (c_val_print): Factor out int printing code to ...
4224 (c_val_print_int): ... this new function.
4226 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4228 * c-valprint.c (c_val_print): Factor out struct and union
4229 printing code to ...
4230 (c_val_print_struct): ... this new function ...
4231 (c_val_print_union): ... and this new function.
4233 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4235 * c-valprint.c (c_val_print): Factor out pointer printing code
4237 (c_val_print_ptr): ... this new function.
4239 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4241 * c-valprint.c (c_valprint): Factor our array printing code from
4243 (c_val_print_array): ... this new function.
4245 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4247 * c-valprint.c (c_val_print): Factor out pointer printing code
4249 (print_unpacked_pointer): ... this new function.
4251 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4253 * c-valprint.c (c_val_print): Remove an assignment to i and move
4256 2015-07-09 Yao Qi <yao.qi@linaro.org>
4258 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4259 argument ptid. Update comments. Caller update.
4261 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4263 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4266 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4268 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4270 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4272 * progspace.c (delete_program_space): Add missing spaces.
4274 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4276 * inferior.c (delete_inferior_1): Rename to ...
4277 (delete_inferior): ..., remove 'silent' parameter, delete
4278 program space when unused and remove call to prune_program_spaces.
4279 Remove the old, unused, delete_inferior.
4280 (delete_inferior_silent): Remove.
4281 (prune_inferiors): Change call from delete_inferior_1 to
4282 delete_inferior and remove 'silent' parameter. Remove call to
4283 prune_program_spaces.
4284 (remove_inferior_command): Idem.
4285 * inferior.h (delete_inferior_1): Rename to...
4286 (delete_inferior): ..., remove 'silent' parameter and remove the
4287 original delete_inferior.
4288 (delete_inferior_silent): Remove.
4289 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4290 delete_inferior_1 to delete_inferior and remove 'silent'
4292 * progspace.c (prune_program_spaces): Remove.
4293 (pspace_empty_p): Rename to...
4294 (program_space_empty_p): ... and make non-static.
4295 (delete_program_space): New.
4296 * progspace.h (prune_program_spaces): Remove declaration.
4297 (program_space_empty_p): New declaration.
4298 (delete_program_space): New declaration.
4299 * monitor.c (monitor_close): Replace call to
4300 delete_thread_silent and delete_inferior_silent with
4301 discard_all_inferiors.
4303 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
4305 * defs.h (deprecated_register_changed_hook): Remove prototype.
4306 * interps.c (clear_iterpreter_hooks): Remove reference to
4307 deprecated_register_changed_hook.
4308 * top.c (deprecated_register_changed_hook): Remove prototype.
4309 * valops.c (value_assign): Remove reference to
4310 deprecated_register_changed_hook.
4311 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4312 Add comment documenting the function.
4313 (tui_register_changed_observer): Define.
4314 (tui_install_hooks): Remove reference to
4315 deprecated_register_changed_hook. Set
4316 tui_register_changed_observer.
4317 (tui_remove_hooks): Remove reference to
4318 deprecated_register_changed_hook. Unset
4319 tui_register_changed_observer.
4321 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4326 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
4329 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4331 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4333 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4335 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4337 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4338 Use safe_strerror() instead of strerror().
4340 2015-07-07 Yao Qi <yao.qi@linaro.org>
4342 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4343 * features/arm-with-m-fpa-layout.c: Regenerated.
4344 * features/arm-with-m-vfp-d16.xml: Likewise.
4345 * features/arm-with-m-vfp-d16.c: Regenerated.
4346 * features/arm-with-m.xml: Likewise.
4347 * features/arm-with-m.c: Regenerated.
4348 * features/arm-with-neon.xml: Likewise.
4349 * features/arm-with-neon.c: Regenerated.
4350 * features/arm-with-vfpv2.xml: Likewise.
4351 * features/arm-with-vfpv2.c: Regenerated.
4352 * features/arm-with-vfpv3.xml: Likewise.
4353 * features/arm-with-vfpv3.c: Regenerated.
4355 2015-07-07 Yao Qi <yao.qi@linaro.org>
4357 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4359 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4361 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4362 if target is 32-bit.
4363 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4364 if target is 32-bit.
4365 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4366 if target is 32-bit.
4367 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4368 if target is 32-bit.
4369 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4370 (aarch64_linux_read_description): Return the right target
4372 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4373 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4374 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4377 2015-07-07 Yao Qi <yao.qi@linaro.org>
4379 * aarch32-linux-nat.c: New file.
4380 * aarch32-linux-nat.h: New file.
4381 * arm-linux-nat.c: Include aarch32-linux-nat.h.
4382 (fetch_regs): Move code to aarch32-linux-nat.c. Call
4383 aarch32_gp_regcache_supply.
4384 (store_regs): Move code to aarch32-linux-nat.c. Call
4385 aarch32_gp_regcache_collect.
4386 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
4387 aarch32_vfp_regcache_supply.
4388 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
4389 aarch32_vfp_regcache_collect.
4390 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4392 2015-07-07 Yao Qi <yao.qi@linaro.org>
4394 * arm-linux-nat.c (store_fpregister): Remove.
4395 (store_register): Likewise.
4396 (fetch_fpregister): Likewise.
4397 (fetch_register): Likewise.
4398 (arm_linux_store_inferior_registers): Call store_regs and
4399 store_fpregs instead.
4400 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4403 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4405 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4408 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4410 * NEWS: Create a new section for the next release branch.
4411 Rename the section of the current branch, now that it has
4414 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4416 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4417 * version.in: Bump version to 7.10.50.DATE-cvs.
4419 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
4421 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4422 breakpoints in a special way.
4423 (remove_breakpoint): Likewise.
4424 (mark_breakpoints_out): Likewise.
4426 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4428 * doc/gdb.texinfo (TUI): Add comma after @xref.
4430 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4432 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4433 instead of casting the structure type.
4435 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4437 * valops.c (search_struct_field): Remove OFFSET parameter.
4438 (value_cast_structs): Adjust calls to search_struct_field.
4439 (value_struct_elt): Same.
4440 (find_overload_match): Same.
4442 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4444 * value.c (value_fetch_lazy): Update comment, change return
4446 * value.h (value_fetch_lazy): Change return value to void.
4448 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4450 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4451 (tui_win_name): Make parameter and result const.
4452 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4454 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4456 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4457 use printf_unfiltered.
4458 (set_mpx_cmd): Add missing trailing space to command string
4460 (_initialize_i386_tdep): Give the "mpx" prefix command its
4463 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4465 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4466 (enum rx_frame_type): New.
4467 (struct rx_prologue): Add new field `frame_type'.
4468 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4469 parameter in the prologue struct. Add code for recording
4470 locations of PC and PSW for fast interrupt and exception frames.
4471 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4472 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4473 (rx_frame_type): New function.
4474 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4475 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4477 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
4478 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
4479 RX_FRAME_TYPE_FAST_INTERRUPT.
4480 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4481 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4482 (rx_frame_unwind): Use rx_frame_sniffer instead of
4483 default_frame_sniffer.
4484 (rx_frame_unwind): New unwinder.
4485 (rx_gdbarch_init): Register new unwinder.
4487 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4489 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4490 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4491 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4493 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4495 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 Fix GCC false warning.
4498 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4500 2015-07-02 Yao Qi <yao.qi@linaro.org>
4502 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4503 typo in the debugging message.
4505 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4507 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4508 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4509 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4510 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4511 (btrace_maint_clear): New.
4512 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4513 (pt_print_packet, btrace_maint_decode_pt)
4514 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4515 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4516 (maint_btrace_packet_history_cmd)
4517 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4518 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4519 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4520 (maint_info_btrace_cmd, _initialize_btrace): New.
4521 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4522 (btrace_maint_packet_history, btrace_maint_info): New.
4523 (btrace_thread_info) <maint>: New.
4524 * NEWS: Announce it.
4526 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4528 * btrace.c (btrace_fetch): Append the new trace data.
4529 (btrace_clear): Clear the stored trace data.
4530 * btrace.h (btrace_thread_info) <data>: New.
4531 * common/btrace-common.h (btrace_data_clear)
4532 (btrace_data_append): New.
4533 * common/btrace-common.c (btrace_data_clear)
4534 (btrace_data_append): New.
4536 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4538 * nat/linux-btrace.c (linux_enable_bts): Check for
4539 PERF_ATTR_SIZE_VER5.
4540 Check for data_offset and data_size fields. Use them.
4542 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4544 * NEWS: Announce new commands "record btrace pt" and "record pt".
4545 Announce new options "set|show record btrace pt buffer-size".
4546 * btrace.c: Include "rsp-low.h".
4547 Include "inttypes.h".
4548 (btrace_add_pc): Add forward declaration.
4549 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4550 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4551 (btrace_compute_ftrace_pt): New.
4552 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4553 (check_xml_btrace_version): Update version check.
4554 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4555 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4556 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4557 (btrace_pt_children): New.
4558 (btrace_children): Add support for "pt".
4559 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4560 (btrace_conf_children): Add support for "pt".
4561 * btrace.h: Include "intel-pt.h".
4562 (btrace_pt_error): New.
4563 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4564 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4565 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4566 (struct btrace_config_pt): New.
4567 (struct btrace_config)<pt>: New.
4568 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4569 (struct btrace_data)<pt>: New.
4570 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4572 * features/btrace.dtd (btrace)<pt>: New.
4573 (pt, pt-config, cpu): New.
4574 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4575 (perf_event_pt_event_type, kernel_supports_pt)
4576 (linux_supports_pt): New.
4577 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4578 (linux_enable_bts): Free tinfo on error.
4579 (linux_enable_pt): New.
4580 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4581 (linux_disable_pt): New.
4582 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4583 (linux_fill_btrace_pt_config, linux_read_pt): New.
4584 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4585 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4586 (struct btrace_target_info)<pt>: New.
4587 * record-btrace.c (set_record_btrace_pt_cmdlist)
4588 (show_record_btrace_pt_cmdlist): New.
4589 (record_btrace_print_pt_conf): New.
4590 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4591 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4592 (cmd_record_btrace_pt_start): New.
4593 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4594 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4595 (_initialize_record_btrace): Add new commands.
4596 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4597 (remote_protocol_features): Add "Qbtrace:pt".
4598 Add "Qbtrace-conf:pt:size".
4599 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4600 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4601 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4602 (_initialize_remote): Add new commands.
4604 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4606 * configure.ac: check for libipt
4607 * configure: Regenerate.
4608 * config.in: Regenerate.
4609 * Makefile.in (LIBIPT): New.
4610 (CLIBS): Add $LIBIPT.
4611 * NEWS: document new configure options
4613 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 * compile/compile-object-load.c (compile_object_load): Replace debug
4616 message "lookup undefined ELF symbol" by 3 more specific messages.
4618 2015-07-01 Kevin Buettner <kevinb@redhat.com>
4620 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4621 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4622 (rl78_gdbarch_init): Initialize rl78_psw_type.
4624 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4626 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4627 Update commentary. Always refresh the registers when frame
4628 information has changed.
4629 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4630 Change return type to int. Return 1 if frame information has
4631 changed, 0 otherwise.
4632 (tui_before_prompt): Update commentary.
4633 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4636 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4639 * frame.c (select_frame): Remove reference to
4640 deprecated_selected_frame_level_changed_hook.
4641 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4643 * stack.c (deprecated_selected_frame_level_changed_hook):
4645 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4647 (tui_refresh_frame_and_register_information): ... this. Bail
4648 out if there is no stack. Don't update register information
4649 unless registers_too_p is true.
4650 (tui_print_frame_info_listing_hook): Rename to ...
4651 (tui_dummy_print_frame_info_listing_hook): ... this.
4652 (tui_before_prompt): New function.
4653 (tui_normal_stop): New function.
4654 (tui_before_prompt_observer): New observer.
4655 (tui_normal_stop_observer): New observer.
4656 (tui_install_hooks): Set
4657 deprecated_print_frame_info_listing_hook to
4658 tui_dummy_print_frame_info_listing_hook. Register
4659 tui_before_prompt_observer to call tui_before_prompt and
4660 tui_normal_stop_observer to call tui_normal_stop. Remove
4661 reference to deprecated_selected_frame_level_changed_hook.
4662 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4663 and tui_normal_stop_observer. Remove reference to
4664 deprecated_selected_frame_level_changed_hook.
4666 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4669 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4670 return an int instead of void. Return whether the locator
4672 (tui_show_frame_info): If the locator info has not changed, then
4673 bail out early to avoid refreshing the windows.
4675 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4677 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4678 LOCATOR_WIN to tui_alloc_content.
4680 2015-06-30 Yao Qi <yao.qi@linaro.org>
4683 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4686 2015-06-29 Kevin Buettner <kevinb@redhat.com>
4688 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4689 (rx_dwarf_reg_to_regnum): New function.
4690 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4693 2015-06-29 Pedro Alves <palves@redhat.com>
4696 * infcall.c (run_inferior_call): On infcall success, if the thread
4697 was marked stopped before, reset it back to stopped.
4698 * infrun.c (resume): Don't suppress the set_running calls when
4700 (normal_stop): Only discard the finish_thread_state cleanup if the
4703 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
4705 * MAINTAINERS (Write After Approval): Update my email address.
4707 2015-06-26 Keith Seitz <keiths@redhat.com>
4708 Doug Evans <dje@google.com>
4711 * block.c (block_lookup_symbol): For non-function blocks,
4712 continue to search for a symbol with an exact domain match
4713 Otherwise, return any previously found "best domain" symbol.
4714 (block_lookup_symbol_primary): Likewise.
4716 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4718 * NEWS: Mention the new option "history remove-duplicates".
4719 * top.c (history_remove_duplicates): New static variable.
4720 (show_history_remove_duplicates): New static function.
4721 (gdb_add_history): Conditionally remove duplicate history
4723 (init_main): Add "history remove-duplicates" option.
4725 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4727 * tui/tui-win.c (focus_completer): New static function.
4728 (_initialize_tui_win): Set the completion function of the
4729 "focus" command to focus_completer.
4731 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4735 * symtab.c (find_function_start_sal): Likewise.
4737 2015-06-25 Gary Benson <gbenson@redhat.com>
4739 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4740 it is the empty string after trailing slashes have been stripped.
4742 2015-06-25 Gary Benson <gbenson@redhat.com>
4744 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4745 * infrun.c (follow_exec): Likewise.
4746 * remote.c (remote_filesystem_is_local): Likewise.
4747 * solib.c (solib_find_1): Likewise.
4749 2015-06-24 Keith Seitz <keiths@redhat.com>
4751 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4752 return value from lrealpath.
4754 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4756 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4758 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4760 * remote-sim.c: Include gdb_bfd.h.
4761 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4762 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4764 2015-06-24 Yao Qi <yao.qi@linaro.org>
4766 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4767 set_gdbarch_get_siginfo_type.
4768 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4769 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4770 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4771 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4772 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4773 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4774 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4775 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4776 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4777 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4779 2015-06-24 Gary Benson <gbenson@redhat.com>
4781 * common/buffer.c (stdint.h): Do not include.
4782 * common/print-utils.c (stdint.h): Likewise.
4783 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4784 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4785 * ft32-tdep.c (gdb_assert.h): Likewise.
4786 * guile/scm-utils.c (stdint.h): Likewise.
4787 * i386-linux-tdep.c (stdint.h): Likewise.
4788 * i386-tdep.c (stdint.h): Likewise.
4789 * nat/linux-btrace.c (stdint.h): Likewise.
4790 * nat/linux-btrace.h (stdint.h): Likewise.
4791 * nat/linux-ptrace.c (stdint.h): Likewise.
4792 * nat/mips-linux-watch.h (stdint.h): Likewise.
4793 * ppc-linux-nat.c (stdint.h): Likewise.
4794 * python/python-internal.h (stdint.h): Likewise.
4795 * stub-termcap.c (stdlib.h): Likewise.
4796 * target/target.h (stdint.h): Likewise.
4797 * xtensa-linux-nat.c (stdint.h): Likewise.
4799 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4801 * top.c (init_history): Look at errno after calling strtol to
4802 properly map large GDBHISTSIZE values to infinity.
4804 2015-06-23 Doug Evans <dje@google.com>
4806 * inferior.h (struct inferior_suspend_state): Delete, unused.
4807 All references deleted.
4809 2015-06-23 Mike Frysinger <vapier@gentoo.org>
4811 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4812 (microblaze_push_dummy_call): Likewise.
4813 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4814 and set_gdbarch_push_dummy_call.
4816 2015-06-23 Yao Qi <yao.qi@linaro.org>
4818 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4819 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4820 (amd64_linux_store_inferior_registers): Likewise.
4821 * arm-linux-nat.c (fetch_fpregister): Likewise.
4822 (fetch_fpregs, store_fpregister): Likewise.
4823 (store_fpregister, store_fpregs): Likewise.
4824 (fetch_register, fetch_regs): Likewise.
4825 (store_register, store_regs): Likewise.
4826 (fetch_vfp_regs, store_vfp_regs): Likewise.
4827 (arm_linux_read_description): Check have_ptrace_getregset is
4828 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4830 * i386-linux-nat.c (fetch_xstateregs): Check
4831 have_ptrace_getregset is not TRIBOOL_TRUE.
4832 (store_xstateregs): Likewise.
4833 * linux-nat.c (have_ptrace_getregset): Change its type to
4835 * linux-nat.h (tribool): New enum.
4836 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4837 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4839 2015-06-19 Doug Evans <dje@google.com>
4841 * NEWS: Mention Sun's version of stabs is no longer supported.
4842 * elfread.c (free_elfinfo): Delete. All uses updated.
4843 (elfstab_offset_sections): Delete. All uses updated.
4844 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4845 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4847 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4848 All callers updated.
4850 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4852 * common/rsp-low.c (needs_escaping): New.
4853 (remote_escape_output): Add unit_size parameter. Refactor to
4854 support multi-byte addressable units. Rename parameters.
4855 * common/rsp-low.h (remote_escape_output): Add unit_size
4856 parameter and rename others. Update doc.
4857 * remote.c (align_for_efficient_write): New.
4858 (remote_write_bytes_aux): Add unit_size parameter and use it.
4859 Rename some variables. Update doc.
4860 (remote_xfer_partial): Get unit size and use it.
4861 (remote_read_bytes_1): Add unit_size parameter and use it.
4862 Rename some variables. Update doc.
4863 (remote_write_bytes): Same.
4864 (remote_xfer_live_readonly_partial): Same.
4865 (remote_read_bytes): Same.
4866 (remote_flash_write): Update call to remote_write_bytes_aux.
4867 (remote_write_qxfer): Update call to remote_escape_output.
4868 (remote_search_memory): Same.
4869 (remote_hostio_pwrite): Same.
4871 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4873 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4874 locations as inserted.
4875 Update and expand comment about permanent locations.
4876 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4877 Move comment to add_location_to_breakpoint.
4878 (update_global_location_list): Don't error out if a permanent
4879 breakpoint is not marked inserted.
4880 Don't error out if a non-permanent breakpoint location is inserted on
4881 top of a permanent breakpoint.
4883 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4885 * breakpoint.c (make_breakpoint_permanent): Remove unused
4887 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4889 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4892 * NEWS: Mention new GDBHISTSIZE behavior.
4893 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4894 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4896 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4898 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4899 * top.c (init_history): Read from GDBHISTSIZE instead of
4901 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4903 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4905 * top.c (gdb_safe_append_history): Do not call
4906 history_truncate_file if the history is not stifled.
4908 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4910 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4911 * syscalls/s390x-linux.xml: Likewise.
4913 2015-06-16 Michael Eager <eager@eagercon.com>
4915 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4917 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4919 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4920 target_terminal_ours_for_output() before calling
4921 tui_show_frame_info(), and restore the original terminal
4922 settings afterwards.
4924 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4926 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4928 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4930 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4932 (mi_cmd_data_write_memory_bytes): Same.
4934 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4936 * corefile.c (write_memory): Update doc.
4937 * gdbcore.h (write_memory): Same.
4939 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4941 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4942 (dump_mapping_p): Use it for parameter filterflags.
4943 (linux_find_memory_regions_full): Use it for variable filterflags.
4945 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4946 Jan Kratochvil <jan.kratochvil@redhat.com>
4948 Merge multiple hex conversions.
4949 * monitor.c: Include rsp-low.h.
4950 (fromhex): Remove definition.
4952 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4953 Jan Kratochvil <jan.kratochvil@redhat.com>
4955 Move utility functions to common/.
4956 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4957 Move defs to common/common-utils.c.
4958 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4959 (skip_to_space_const): Move decls to common/common-utils.h.
4960 * common/common-defs.h: Move include of common-types.h before
4962 * common/common-utils.c: Include host-defs.h and ctype.h.
4963 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4965 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4967 * common/common-utils.h (strtoulst): Move decl from utils.h.
4968 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4969 Move from cli/cli-utils.h.
4970 * common/host-defs.h: Include limits.h.
4971 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4972 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4973 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4974 common/common-utils.h.
4975 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4976 (strtoulst): Move to common/common-utils.c.
4977 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4979 2015-06-15 Yao Qi <yao.qi@linaro.org>
4981 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4983 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4985 * build-id.c: Don't include elf-bfd.h.
4986 (build_id_bfd_get): Use bfd_build_id.
4987 (build_id_verify): Ditto.
4988 * build-id.h: Ditto.
4989 (find_separate_debug_file_by_buildid): Ditto.
4990 * python/py-objfile.c: Don't include elf-bfd.h.
4991 (objfpy_get_build_id) Use bfd_build_id.
4992 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4993 * coffread.c: Include build-id.h.
4994 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4996 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4998 * windows-nat.c (do_windows_fetch_inferior_registers)
4999 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
5000 conditional with __CYGWIN__.
5002 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
5004 * completer.c: Add arch-utils.h include.
5005 (enum reg_completer_targets): New enum.
5006 (reg_or_group_completer_1): New function containing old
5007 reg_or_group_completer, add and use new parameter to control what
5008 is completed on. Use get_current_arch rather than architecture of
5009 currently selected frame.
5010 (reg_or_group_completer): Call new reg_or_group_completer_1.
5011 (reggroup_completer): Call new reg_or_group_completer_1.
5012 * completer.h (reggroup_completer): Add declaration.
5013 * tui/tui-regs.c: Add 'completer.h' include.
5014 (tui_reg_next_command): Renamed to...
5015 (tui_reg_next): ...this. Adjust parameters and return rather than
5017 (tui_reg_prev_command): Renamed to...
5018 (tui_reg_prev): ...this. Adjust parameters and return rather than
5020 (tui_reg_float_command): Delete.
5021 (tui_reg_general_command): Delete.
5022 (tui_reg_system_command): Delete.
5023 (tui_reg_command): Rewrite to perform switching of register group.
5025 (tuireglist): Remove.
5026 (tui_reggroup_completer): New function.
5027 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
5028 creation of 'tui reg' command.
5029 * NEWS: Add comment about 'tui reg' changes.
5031 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5033 * target.c (target_read): Consider addressable unit size when
5034 reading from a memory object.
5035 (read_memory_robust): Same.
5036 (read_whatever_is_readable): Same.
5037 (target_write_with_progress): Consider addressable unit size
5038 when writing to a memory object.
5039 * target.h (target_read): Update documentation.
5040 (target_write): Add documentation.
5042 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5044 * arch-utils.h (default_addressable_memory_unit_size): New.
5045 * arch-utils.c (default_addressable_memory_unit_size): New.
5046 * gdbarch.sh (addressable_memory_unit_size): New.
5047 * gdbarch.h: Re-generate.
5048 * gdbarch.c: Re-generate.
5050 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5052 * target.c (target_read): Rename variables and use
5054 (target_read_with_progress): Same.
5055 (read_memory_robust): Constify parameters and rename
5057 (read_whatever_is_readable): Constify parameters,
5058 rename variables, adjust formatting.
5059 * target.h (read_memory_robust): Constify parameters.
5061 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5063 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
5064 synthetic (non-AltiVec) vector types.
5065 (ppc64_sysv_abi_return_value): Likewise.
5067 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
5069 PR breakpoints/16465
5070 * breakpoint.c (create_breakpoint): Save extra_string for
5071 pending breakpoints.
5073 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5075 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
5076 and bt_mask to CORE_ADDR.
5078 2015-06-11 Gary Benson <gbenson@redhat.com>
5080 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
5081 (mnsh_recv_message): Likewise.
5083 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
5085 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
5086 long long int and plongest instead of %ll.
5088 2015-06-11 Gary Benson <gbenson@redhat.com>
5090 * nat/linux-namespaces.c (gdb_wait.h): New include.
5091 (sys/wait.h): Do not include.
5093 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
5095 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
5096 end_sequence is true.
5098 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5101 * solib-target.c (library_list_start_list): Use explicit NULL
5104 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5106 * solib-target.c (library_list_start_list): Do not dereference
5107 variable version in its initialization. Make the VERSION check handle
5109 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
5111 2015-06-10 Gary Benson <gbenson@redhat.com>
5113 * NEWS: Announce support for direct access of executable and
5114 shared library files when attaching to inferiors in containers
5115 on GNU/Linux systems.
5117 2015-06-10 Gary Benson <gbenson@redhat.com>
5119 * remote.c (struct remote_state) <fs_pid>: New field.
5120 (new_remote_state): Initialize the above.
5121 (PACKET_vFile_setfs): New enum value.
5122 (remote_hostio_set_filesystem): New function.
5123 (remote_hostio_open): Call the above.
5124 (remote_hostio_unlink): Likewise.
5125 (remote_hostio_readlink): Likewise.
5126 (_initialize_remote): Register new "set/show remote
5127 hostio-setfs-packet" command.
5128 * NEWS: Announce new vFile:setfs packet.
5130 2015-06-10 Gary Benson <gbenson@redhat.com>
5132 * linux-nat.c (nat/linux-namespaces.h): New include.
5133 (fileio.h): Likewise.
5134 (linux_nat_filesystem_is_local): New function.
5135 (linux_nat_fileio_pid_of): Likewise.
5136 (linux_nat_fileio_open): Likewise.
5137 (linux_nat_fileio_readlink): Likewise.
5138 (linux_nat_fileio_unlink): Likewise.
5139 (linux_nat_add_target): Initialize to_filesystem_is_local,
5140 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
5141 (_initialize_linux_nat): New "set/show debug linux-namespaces"
5143 * NEWS: Mention new "set/show debug linux-namespaces" commands.
5145 2015-06-10 Gary Benson <gbenson@redhat.com>
5147 * target.h (struct inferior): New forward declaration.
5148 (struct target_ops) <to_filesystem_is_local>: Update comment.
5149 (struct target_ops) <to_fileio_open>: New argument inf.
5150 Update comment. All implementations updated.
5151 (struct target_ops) <to_fileio_unlink>: Likewise.
5152 (struct target_ops) <to_fileio_readlink>: Likewise.
5153 (target_filesystem_is_local): Update comment.
5154 (target_fileio_open): New argument inf. Update comment.
5155 (target_fileio_unlink): Likewise.
5156 (target_fileio_readlink): Likewise.
5157 (target_fileio_read_alloc): Likewise.
5158 (target_fileio_read_stralloc): Likewise.
5159 * target.c (target_fileio_open): New argument inf.
5160 Pass inf to implementation. Update debug printing.
5161 (target_fileio_unlink): Likewise.
5162 (target_fileio_readlink): Likewise.
5163 (target_fileio_read_alloc_1): New argument inf. Pass inf
5164 to target_fileio_open.
5165 (target_fileio_read_alloc): New argument inf. Pass inf to
5166 target_fileio_read_alloc_1.
5167 (target_fileio_read_stralloc): Likewise.
5168 * gdb_bfd.c (inferior.h): New include.
5169 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
5170 argument with new argument "inferior". Pass inferior to
5172 (gdb_bfd_open): Supply inferior argument to
5173 gdb_bfd_iovec_fileio_open.
5174 * linux-tdep.c (linux_info_proc): Supply inf argument to
5175 relevant target_fileio calls.
5176 (linux_find_memory_regions_full): Likewise.
5177 (linux_fill_prpsinfo): Likewise.
5178 * remote.c (remote_filesystem_is_local): Supply inf
5179 argument to remote_hostio_open.
5180 (remote_file_put): Likewise.
5181 (remote_file_get): Likewise.
5182 (remote_file_delete): Supply inf argument to
5183 remote_hostio_unlink.
5185 2015-06-10 Gary Benson <gbenson@redhat.com>
5187 * inf-child.c (inf_child_fileio_open): Replace comment.
5188 (inf_child_fileio_pwrite): Likewise.
5189 (inf_child_fileio_pread): Likewise.
5190 (inf_child_fileio_fstat): Insert blank line before comment.
5191 (inf_child_fileio_close): Replace comment.
5192 (inf_child_fileio_unlink): Likewise.
5193 (inf_child_fileio_readlink): Likewise.
5194 * remote.c (remote_hostio_open): Likewise.
5195 (remote_hostio_pread): Likewise.
5196 (remote_hostio_pwrite): Likewise.
5197 (remote_hostio_close): Likewise.
5198 (remote_hostio_unlink): Likewise.
5199 (remote_hostio_readlink): Likewise.
5200 (remote_hostio_fstat): Likewise.
5201 (remote_filesystem_is_local): Likewise.
5202 * target.c (target_fileio_open): Likewise.
5203 (target_fileio_pwrite): Likewise.
5204 (target_fileio_pread): Likewise.
5205 (target_fileio_fstat): Insert blank line before comment.
5206 (target_fileio_close): Replace comment.
5207 (target_fileio_unlink): Likewise.
5208 (target_fileio_readlink): Likewise.
5209 (target_fileio_read_alloc): Likewise.
5210 (target_fileio_read_stralloc): Likewise.
5212 2015-06-10 Gary Benson <gbenson@redhat.com>
5214 * linux-thread-db.c (nat/linux-namespaces.h): New include.
5215 (check_pid_namespace_match): Use linux_ns_same rather than
5216 linux_proc_pid_get_ns to spot PID namespace mismatches.
5217 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
5218 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
5220 2015-06-10 Gary Benson <gbenson@redhat.com>
5222 * configure.ac (AC_CHECK_FUNCS): Add setns.
5223 * config.in: Regenerate.
5224 * configure: Likewise.
5225 * nat/linux-namespaces.h: New file.
5226 * nat/linux-namespaces.c: Likewise.
5227 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
5228 (linux-namespaces.o): New rule.
5229 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
5230 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5231 * config/arm/linux.mh (NATDEPFILES): Likewise.
5232 * config/i386/linux.mh (NATDEPFILES): Likewise.
5233 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5234 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5235 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5236 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5237 * config/mips/linux.mh (NATDEPFILES): Likewise.
5238 * config/pa/linux.mh (NATDEPFILES): Likewise.
5239 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5240 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5241 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5242 * config/s390/linux.mh (NATDEPFILES): Likewise.
5243 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5244 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5245 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5246 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5248 2015-06-10 Gary Benson <gbenson@redhat.com>
5250 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5251 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5252 (make_cleanup_close): Likewise.
5253 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5254 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5255 (make_cleanup_close): Likewise.
5257 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5259 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5260 from SuspendThread().
5262 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5264 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5265 from OutputDebugString.
5267 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5268 Mircea Gherzan <mircea.gherzan@intel.com>
5270 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5271 MPX_BT_MASK_32): New macros.
5272 (i386_mpx_set_bounds): New function that implements
5273 the command "set-mpx-bound".
5274 (i386_mpx_enabled): Helper function to test MPX availability.
5275 (i386_mpx_bd_base): Helper function to calculate the base directory
5277 (i386_mpx_get_bt_entry): Helper function to access a bound
5279 (i386_mpx_print_bounds): Effectively display bound information.
5280 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5282 (_initialize_i386_tdep):
5283 Add "bound" to the commands "show mpx" and "set mpx" commands.
5284 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5285 and "show mpx" commands.
5286 * NEWS: List new commands for MPX support.
5288 2015-06-09 Gary Benson <gbenson@redhat.com>
5290 * common/fileio.h (fileio_to_host_mode): New declaration.
5291 * common/fileio.c (fileio_to_host_mode): New Function.
5292 * inf-child.c (inf_child_fileio_open): Process mode argument
5293 with fileio_to_host_mode.
5295 2015-06-09 Gary Benson <gbenson@redhat.com>
5297 * common/fileio.c (fileio_mode_pack): Fix preprocessor
5300 2015-06-05 Gary Benson <gbenson@redhat.com>
5302 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5303 * remote.c (remote_filesystem_is_local): ...here.
5305 2015-06-04 Yao Qi <yao.qi@linaro.org>
5307 * gdbarch.c: Regenerate it.
5309 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5311 * arch-utils.c (default_infcall_munmap): New.
5312 * arch-utils.h (default_infcall_munmap): New declaration.
5313 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5314 (munmap_list_free, munmap_listp_free_cleanup): New.
5315 (struct setup_sections_data): Add field munmap_list_headp.
5316 (setup_sections): Call munmap_list_add.
5317 (compile_object_load): New variable munmap_list_head, initialize
5318 setup_sections_data.munmap_list_headp, return munmap_list_head.
5319 * compile/compile-object-load.h (struct munmap_list): New declaration.
5320 (struct compile_module): Add field munmap_list_head.
5321 (munmap_list_free): New declaration.
5322 * compile/compile-object-run.c (struct do_module_cleanup): Add field
5324 (do_module_cleanup): Call munmap_list_free.
5325 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5326 * gdbarch.c: Regenerate.
5327 * gdbarch.h: Regenerate.
5328 * gdbarch.sh (infcall_munmap): New.
5329 * linux-tdep.c (linux_infcall_munmap): New.
5330 (linux_init_abi): Install it.
5332 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
5335 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5337 2015-06-02 Yao Qi <yao.qi@linaro.org>
5339 * i386-linux-nat.c: Include linux-nat.h.
5341 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
5342 Jan Kratochvil <jan.kratochvil@redhat.com>
5345 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5347 * dwarf2loc.c (chain_candidate): Likewise.
5349 2015-06-01 Yao Qi <yao.qi@linaro.org>
5351 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5352 (store_vfp_regs): Use PTRACE_SETREGSET.
5354 2015-06-01 Yao Qi <yao.qi@linaro.org>
5356 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5357 (fetch_fpregs): Likewise.
5358 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5359 (store_fpregs): Likewise.
5361 2015-06-01 Yao Qi <yao.qi@linaro.org>
5363 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5364 (fetch_regs): Likewise.
5365 (store_regs): Use PTRACE_SETREGSET.
5366 (store_register): Likewise.
5368 2015-06-01 Yao Qi <yao.qi@linaro.org>
5370 * arm-linux-nat.c (arm_linux_read_description): Check whether
5371 kernel supports PTRACE_GETREGSET.
5373 2015-06-01 Yao Qi <yao.qi@linaro.org>
5375 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5376 * linux-nat.c: ... here.
5377 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5379 * linux-nat.h: ... here.
5381 2015-06-01 Yao Qi <yao.qi@linaro.org>
5383 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5384 * i386-linux-nat.c: Likewise.
5385 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5386 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5387 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5388 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5389 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5391 2015-05-30 Eli Zaretskii <eliz@gnu.org>
5393 * go32-nat.c (go32_xfer_memory): Fix the return value to be
5394 compatible to what read_child and write_child return. This
5395 unbreaks that DJGPP build of GDB which was broken since v7.7.
5397 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
5399 * MAINTAINERS (Write After Approval): Add Martin Galvan.
5401 2015-05-29 Roland McGrath <mcgrathr@google.com>
5404 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5405 rather than internal_error for an unrecognized value.
5407 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
5409 * xtensa-tdep.c (xtensa_pseudo_register_read)
5410 (xtensa_pseudo_register_write): Don't alias last pseudo register
5413 2015-05-28 Don Breazeal <donb@codesourcery.com>
5415 * infrun.c (follow_fork_inferior): Ensure the use of
5416 process-style ptids (pid,0,0) in verbose/debug "Detaching"
5419 2015-05-28 Doug Evans <dje@google.com>
5421 * dwarf2read.c (record_line_ftype): Remove, duplicate.
5423 2015-05-28 Yao Qi <yao.qi@linaro.org>
5425 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5426 (arm_linux_fetch_inferior_registers): Use
5427 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5428 (arm_linux_store_inferior_registers): Likewise.
5429 (arm_linux_read_description): Don't set
5430 arm_linux_has_wmmx_registers.
5431 * arm-tdep.c (arm_gdbarch_init): Set
5432 tdep->have_wmmx_registers according target descriptions.
5433 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5436 2015-05-28 Yao Qi <yao.qi@linaro.org>
5438 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5439 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5440 instead of arm_linux_vfp_register_count.
5441 (store_vfp_regs): Likewise.
5442 (arm_linux_fetch_inferior_registers): Likewise.
5443 (arm_linux_store_inferior_registers): Likewise.
5444 (arm_linux_read_description): Don't set
5445 arm_linux_vfp_register_count.
5446 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5448 * arm-tdep.c (arm_gdbarch_init): Add assert on
5450 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5451 field to vfp_register_count. All users updated.
5453 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5455 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5456 ELFOSABI_GNU binaries.
5458 2015-05-27 Doug Evans <dje@google.com>
5460 * dwarf2read.c (lnp_state_machine): New typedef.
5461 (lnp_reader_state): New typedef.
5462 (dwarf_record_line_1): Renamed from dwarf_record_line.
5463 All callers updated.
5464 (dwarf_record_line): New function.
5465 (init_lnp_state_machine): New function.
5466 (check_line_address): Replace p_record_line parameter with state.
5467 All callers updated.
5468 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5469 Update to record state in lnp_state_machine.
5471 2015-05-27 Doug Evans <dje@google.com>
5473 * dwarf2read.c (record_line_ftype): New typedef.
5474 (check_line_address): New function.
5475 (dwarf_decode_lines_1): Call it.
5477 2015-05-27 Doug Evans <dje@google.com>
5479 * NEWS: Mention "set debug dwarf-line".
5480 * dwarf2read.c (dwarf_line_debug): New static global.
5481 (add_include_dir): Add debug dwarf-line support.
5482 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5483 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5485 2015-05-27 Doug Evans <dje@google.com>
5487 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5488 All callers updated.
5489 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5490 * cp-support.h (cp_lookup_nested_symbol): Update.
5492 2015-05-27 Doug Evans <dje@google.com>
5495 * block.c (block_find_symbol): New function.
5496 (block_find_non_opaque_type): Ditto.
5497 (block_find_non_opaque_type_preferred): Ditto.
5498 * block.h (block_symbol_matcher_ftype): New typedef.
5499 (block_find_symbol): Declare.
5500 (block_find_non_opaque_type): Ditto.
5501 (block_find_non_opaque_type_preferred): Ditto.
5502 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5503 * psymtab.c (psym_lookup_symbol): Ditto.
5504 * symtab.c (basic_lookup_transparent_type_1): New function.
5505 (basic_lookup_transparent_type): Call it.
5507 2015-05-27 Yao Qi <yao.qi@linaro.org>
5509 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5510 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5512 2015-05-27 Yao Qi <yao.qi@linaro.org>
5514 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5516 (aarch64_record_load_store): Likewise.
5518 2015-05-26 Doug Evans <dje@google.com>
5520 PR c++/18141, c++/18417.
5521 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5524 2015-05-26 Doug Evans <dje@google.com>
5526 * NEWS: Add entries for command renamings.
5527 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5529 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
5530 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5532 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5533 All callers updated. Fix spelling of DWARF in help text.
5534 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5536 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5538 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
5539 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
5540 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5542 (show_dwarf_always_disassemble): Renamed from
5543 show_dwarf2_always_disassemble. All callers updated.
5544 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5545 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
5546 "set/show dwarf max-cache-age". Rename
5547 "set/show dwarf2 always-disassemble" to
5548 "set/show dwarf always-disassemble". Rename
5549 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5550 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5552 2015-05-26 Doug Evans <dje@google.com>
5555 * python/py-lazy-string.c (stpy_convert_to_value): Use
5556 gdbpy_gdb_memory_error not PyExc_MemoryError.
5557 (gdbpy_create_lazy_string_object): Ditto.
5559 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5561 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5563 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5565 * tui/tui-regs.c (tui_reg_prev_command): New function.
5566 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5567 * reggroups.c (reggroup_prev): New function.
5568 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5570 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5571 Yao Qi <yao.qi@linaro.org>
5573 * aarch64-linux-tdep.c: Include linux-record.h and
5575 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5576 (aarch64_syscall): New enum.
5577 (aarch64_canonicalize_syscall): New function.
5578 (aarch64_all_but_pc_registers_record): New function.
5579 (aarch64_linux_syscall_record): New function.
5580 (aarch64_linux_init_abi): Install AArch64 process record
5581 handler. Update to handle syscall recording.
5582 * aarch64-tdep.c: Include record.h and record-full.h.
5583 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5584 (struct aarch64_mem_r): Define.
5585 (aarch64_record_result): New enum.
5586 (struct insn_decode_record): Define.
5587 (insn_decode_record): New typedef.
5588 (aarch64_record_data_proc_reg): New function.
5589 (aarch64_record_data_proc_imm): New function.
5590 (aarch64_record_branch_except_sys): New function.
5591 (aarch64_record_load_store): New function.
5592 (aarch64_record_data_proc_simd_fp): New function.
5593 (aarch64_record_asimd_load_store): New function.
5594 (aarch64_record_decode_insn_handler): New function.
5595 (deallocate_reg_mem): New function.
5596 (aarch64_process_record): New function.
5597 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5599 (aarch64_process_record): New extern declaration.
5600 * configure.tgt: Add linux-record.o to gdb_target_obs.
5601 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5603 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5605 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5608 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5610 * amd64-tdep.c: Replace in_function_epilogue_p with
5611 stack_frame_destroyed_p throughout.
5612 * arch-utils.c: Ditto.
5613 * arch-utils.h: Ditto.
5614 * arm-tdep.c: Ditto.
5615 * breakpoint.c: Ditto.
5616 * gdbarch.sh: Ditto.
5617 * hppa-tdep.c: Ditto.
5618 * i386-tdep.c: Ditto.
5619 * mips-tdep.c: Ditto.
5620 * nios2-tdep.c: Ditto.
5621 * rs6000-tdep.c: Ditto.
5622 * s390-linux-tdep.c: Ditto.
5623 * score-tdep.c: Ditto.
5625 * sparc-tdep.c: Ditto.
5626 * sparc-tdep.h: Ditto.
5627 * sparc64-tdep.c: Ditto.
5628 * spu-tdep.c: Ditto.
5629 * tic6x-tdep.c: Ditto.
5630 * tilegx-tdep.c: Ditto.
5631 * xstormy16-tdep.c: Ditto.
5632 * gdbarch.c, gdbarch.h: Re-generated.
5634 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5636 * NEWS: Mention 'tui enable' and 'tui disable'.
5637 * tui/tui.c (tui_enable_command): New function.
5638 (tui_disable_command): New function.
5639 (_initialize_tui): New function.
5641 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5643 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5645 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5647 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5650 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5652 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5654 (tui_set_layout_for_display_command): ...here, before calling
5655 tui_set_layout. Only set the layout if gdb has not already
5656 entered the TUI_FAILURE state.
5658 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5660 * tui/tui-layout.c (layout_completer): New function.
5661 (_initialize_tui_layout): Set completer on layout command.
5663 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * tui/tui-layout.c (tui_set_layout): Remove
5666 tui_register_display_type parameter. Remove all checking of this
5667 parameter, and reindent function. Update header comment.
5668 (tui_set_layout_for_display_command): Rename to...
5669 (tui_set_layout_by_name): ...this, and don't check for different
5670 register class types, don't pass a tui_register_display_type to
5671 tui_set_layout. Update header comment.
5672 (layout_names): Remove register set specific names.
5673 * tui/tui-layout.h (tui_set_layout): Remove
5674 tui_register_display_type parameter.
5675 * tui/tui.c (tui_rl_change_windows): Don't pass a
5676 tui_register_display_type to tui_set_layout.
5677 (tui_rl_delete_other_windows): Likewise.
5678 (tui_enable): Likewise.
5679 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5680 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5681 (TUI_GENERAL_REGS_NAME): Remove.
5682 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5683 (TUI_SPECIAL_REGS_NAME): Remove.
5684 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5685 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5686 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5687 (enum tui_register_display_type): Remove.
5688 (struct tui_layout_def): Remove regs_display_type and
5689 float_regs_display_type fields.
5690 (struct tui_data_info): Remove regs_display_type field.
5691 (tui_layout_command): Use new name for
5692 tui_set_layout_for_display_command.
5693 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5694 (tui_clear_win_detail): Don't initialise removed fields of
5696 * tui/tui-regs.c (tui_show_registers): Use new name for
5697 tui_set_layout_for_display_command.
5698 * tui/tui.h (tui_set_layout_for_display_command): Rename
5700 (tui_set_layout_by_name): ...this.
5701 * printcmd.c (display_command): Remove tui related layout call,
5704 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5706 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5707 (handle_inferior_event): New function.
5709 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5711 * ada-lang.c (to_fixed_array_type): Rename local variable
5712 typename into type_name.
5714 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5716 Fix ASAN crash for gdb.compile/compile.exp.
5717 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5719 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5721 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5722 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5723 * compile/compile-object-load.c (setup_sections, compile_object_load):
5725 * compile/compile.c (compile_to_object): Likewise.
5727 2015-05-16 Doug Evans <xdje42@gmail.com>
5729 * NEWS: Mention support for unbuffered Guile memory ports.
5730 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5731 (ioscm_lseek_address): Improve overflow calculation.
5732 (gdbscm_memory_port_fill_input): Add assert.
5733 (gdbscm_memory_port_write): Handle unbuffered ports.
5734 Handle large writes identical to Guile's fport_write.
5735 (gdbscm_memory_port_seek): Fix seeking past end check.
5736 (gdbscm_memory_port_close): Handle closing unbuffered port.
5737 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5738 (ioscm_init_memory_port): Handle unbuffered ports.
5739 (ioscm_reinit_memory_port): Ditto.
5740 (ioscm_init_memory_port): Update size calculation.
5741 (gdbscm_open_memory): Support zero sized ports.
5743 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5745 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5746 variable compiler warnings.
5748 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5752 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5753 Phil Muldoon <pmuldoon@redhat.com>
5755 * NEWS (Changes since GDB 7.9): Add compile print.
5756 * compile/compile-c-support.c (add_code_header, add_code_footer)
5757 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5758 COMPILE_I_PRINT_VALUE_SCOPE.
5759 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5760 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5762 * compile/compile-object-load.c: Include block.h.
5763 (get_out_value_type): New function.
5764 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5765 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5767 * compile/compile-object-load.h (struct compile_module): Add fields
5768 out_value_addr and out_value_type.
5769 * compile/compile-object-run.c: Include valprint.h and compile.h.
5770 (struct do_module_cleanup): Add fields out_value_addr and
5772 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5773 COMPILE_I_PRINT_VALUE_SCOPE.
5774 (compile_object_run): Propagate out_value_addr and out_value_type.
5775 Pass OUT_VALUE_ADDR.
5776 * compile/compile.c: Include valprint.h.
5777 (compile_print_value, compile_print_command): New functions.
5778 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5779 (_initialize_compile): Update compile code help text. Install
5780 compile_print_command.
5781 * compile/compile.h (compile_print_value): New prototype.
5782 * defs.h (enum compile_i_scope_types): Add
5783 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5785 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5788 Rely on its parameter count.
5789 (compile_object_load): Replace lookup_minimal_symbol_text by
5790 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5792 * compile/compile-object-load.h (struct compile_module): Replace
5793 func_addr by func_sym.
5794 * compile/compile-object-run.c: Include block.h.
5795 (compile_object_run): Reset module variable after it is freed. Use
5796 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5798 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5800 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5801 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5802 (c_compute_program): Call generate_register_struct after typedefs.
5803 * compile/compile-loc2c.c (push, pushf_register_address)
5804 (pushf_register): Cast to GCC_UINTPTR.
5805 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5806 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5807 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5808 * compile/compile.c (_initialize_compile): Enable warnings for
5811 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5813 * cli/cli-script.c (execute_control_command): Update
5814 eval_compile_command caller.
5815 * compile/compile-object-load.c (compile_object_load): Add parameters
5816 scope and scope_data. Set them.
5817 * compile/compile-object-load.h (struct compile_module): Add fields
5818 scope and scope_data.
5819 (compile_object_load): Add parameters scope and scope_data.
5820 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5821 scope and scope_data.
5822 (compile_object_run): Propagate the fields scope and scope_data.
5823 * compile/compile.c (compile_file_command, compile_code_command):
5824 Update eval_compile_command callers.
5825 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5826 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5827 * defs.h (struct command_line): Add field scope_data.
5829 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5831 * printcmd.c (struct format_data): Move it to valprint.h.
5832 (print_command_parse_format, print_value): New functions from ...
5833 (print_command_1): ... here. Call them.
5834 * valprint.h (struct format_data): Move it here from printcmd.c.
5835 (print_command_parse_format, print_value): New declarations.
5837 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5839 * compile/compile-object-load.c (compile_object_load): Add
5840 COMPILE_DEBUG message.
5842 2015-05-15 Jerome Guitton <guitton@adacore.com>
5844 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5845 index to get element instead of enum value.
5846 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5847 of index to compute length, but enum values to compute bounds.
5848 (ada_array_length): Use enum position of index instead of enum value.
5849 (pos_atr): Move position computation to...
5850 (ada_evaluate_subexp): Use enum values to compute bounds.
5851 * gdbtypes.c (discrete_position): ...this new function.
5852 * gdbtypes.h (discrete_position): New function declaration.
5853 * valprint.c (val_print_array_elements): Call discrete_position
5854 to handle array indexed by non-contiguous enumeration types.
5856 2015-05-15 Jerome Guitton <guitton@adacore.com>
5858 * ada-lang.c (find_parallel_type_by_descriptive_type):
5859 Go through typedefs during lookup.
5860 (to_fixed_array_type): Add support for non-bit packed arrays
5861 as variable-length fields.
5863 2015-05-15 Pedro Alves <palves@redhat.com>
5864 Simon Marchi <simon.marchi@ericsson.com>
5866 * event-loop.c (gdb_notifier) <next_file_handler,
5867 next_poll_fds_index>: New fields.
5868 (get_next_file_handler_to_handle_and_advance): New function.
5869 (delete_file_handler): If deleting the next file handler to
5870 handle, advance to the next file handler.
5871 (gdb_wait_for_event): Bail early if no event fired. Poll file
5872 handlers in round-robin fashion.
5874 2015-05-15 Pedro Alves <palves@redhat.com>
5876 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5877 'private' to 'priv'.
5879 2015-05-15 Pedro Alves <palves@redhat.com>
5881 * nat/linux-nat.h: Include "target/waitstatus.h".
5883 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5885 * python/py-unwind.c (struct reg_info): Move out of ...
5886 (struct cached_frame_info): ... this scope.
5887 (pending_frame_object_type, unwind_info_object_type): Make extern.
5889 2015-05-15 Joel Brobecker <brobecker@adacore.com>
5891 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5892 accumSize is never negative.
5894 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5896 * tui/tui-command.c: Remove include of <ctype.h>.
5897 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5899 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5901 * dwarf2read.c (die_needs_namespace): Return 1 for
5902 DW_TAG_inlined_subroutine.
5904 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5906 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5907 (regcache_cpy_no_passthrough): Make it static, add function comment.
5908 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5909 (regcache_cpy_no_passthrough): Remove declaration.
5911 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 * gdbthread.h (struct thread_control_state): Update comment for
5915 * infcall.c (run_inferior_call): Update comment about
5917 * infcmd.c (get_return_value): Update comment about stop_registers.
5918 (finish_forward): Update comment about proceed_to_finish.
5919 * infrun.c (stop_registers): Remove.
5920 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5921 * infrun.h (stop_registers): Remove.
5923 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5925 * infcall.c (struct dummy_frame_context_saver)
5926 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5927 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5928 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5930 (call_function_by_hand_dummy): Move discard_cleanups of
5931 inf_status_cleanup before dummy_frame_push. Call
5932 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5933 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5934 * infcall.h (struct dummy_frame_context_saver)
5935 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5936 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5938 * infcmd.c: Include infcall.h.
5939 (get_return_value): Add parameter ctx_saver, use it instead of
5941 (print_return_value): Add parameter ctx_saver, pass it.
5942 (struct finish_command_continuation_args): Add field ctx_saver.
5943 (finish_command_continuation): Update print_return_value caller.
5944 (finish_command_continuation_free_arg): Free also ctx_saver.
5945 (finish_forward): Call dummy_frame_context_saver_setup.
5946 * inferior.h (struct dummy_frame_context_saver): New declaration.
5947 (get_return_value): Add parameter ctx_saver.
5948 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5949 get_return_value caller.
5951 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5953 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5954 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5955 (remove_dummy_frame): Process dtor_list.
5956 (pop_dummy_frame): Process dtor_list.
5957 (register_dummy_frame_dtor): Maintain dtor_list.
5958 (find_dummy_frame_dtor): Handle dtor_list.
5959 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5962 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5966 (compile_object_run): Update do_module_cleanup caller.
5967 * dummy-frame.c: Include infcall.h.
5968 (struct dummy_frame): Update dtor comment.
5969 (remove_dummy_frame): Call dtor.
5970 (pop_dummy_frame): Update dtor caller.
5971 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5974 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5978 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5980 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5981 Xmethods now being able to specify a result type to that new
5984 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5986 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5987 first before resizing the window.
5988 * tui/tui.c (tui_enable): Likewise.
5990 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5992 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5993 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5994 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5995 dummy_dtor parameter.
5996 * infcall.h: Include dummy-frame.h.
5997 (call_function_by_hand_dummy_dtor_ftype): Remove.
5998 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
6001 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6004 * top.c (history_size_setshow_var): Change type to signed.
6005 Initialize to -2. Update documentation.
6006 (set_readline_history_size): Define.
6007 (set_history_size_command): Use it. Remove logic for handling
6009 (init_history): Use set_readline_history_size(). Test for a
6010 value of -2 instead of 0 when determining whether to set a
6011 default history size.
6012 (init_main): Decode the argument of the "size" command as a
6013 zuinteger_unlimited.
6015 2015-05-12 Doug Evans <dje@google.com>
6017 * dwarf2read.c (struct file_entry): Tweak comments.
6018 (get_debug_line_section): Tweak comments.
6020 2015-05-12 Don Breazeal <donb@codesourcery.com>
6022 * NEWS: Announce fork support in the RSP and support
6023 for fork debugging in extended mode.
6025 2015-05-12 Don Breazeal <donb@codesourcery.com>
6027 * remote.c (remote_insert_fork_catchpoint): New function.
6028 (remote_remove_fork_catchpoint): New function.
6029 (remote_insert_vfork_catchpoint): New function.
6030 (remote_remove_vfork_catchpoint): New function.
6031 (pending_fork_parent_callback): New function.
6032 (remove_new_fork_child): New function.
6033 (remote_update_thread_list): Call remote_notif_get_pending_events
6034 and remove_new_fork_child.
6035 (extended_remote_kill): Kill fork child when killing the
6036 parent before follow_fork completes.
6037 (init_extended_remote_ops): Initialize target vector with
6038 new fork catchpoint functions.
6040 2015-05-12 Don Breazeal <donb@codesourcery.com>
6042 * remote.c (remove_vfork_event_p): New function.
6043 (remote_follow_fork): Add vfork event type to event checking.
6044 (remote_parse_stop_reply): New stop reasons "vfork" and
6045 "vforkdone" for RSP 'T' Stop Reply Packet.
6047 2015-05-12 Don Breazeal <donb@codesourcery.com>
6049 * linux-nat.c (linux_nat_ptrace_options): New function.
6050 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
6051 Call linux_nat_ptrace_options and use different argument to
6052 linux_enable_event_reporting.
6053 (_initialize_linux_nat): Delete call to
6054 linux_ptrace_set_additional_flags.
6055 * nat/linux-ptrace.c (current_ptrace_options): Rename to
6056 supported_ptrace_options.
6057 (additional_flags): Delete variable.
6058 (linux_check_ptrace_features): Use supported_ptrace_options.
6059 (linux_test_for_tracesysgood, linux_test_for_tracefork):
6060 Likewise, and remove additional_flags check.
6061 (linux_enable_event_reporting): Change 'attached' argument to
6062 'options'. Use supported_ptrace_options.
6063 (ptrace_supports_feature): Change comment. Use
6064 supported_ptrace_options.
6065 (linux_ptrace_set_additional_flags): Delete function.
6066 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6067 Delete function prototype.
6068 * remote.c (remote_fork_event_p): New function.
6069 (remote_detach_pid): New function.
6070 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
6071 if doing detach-on-fork.
6072 (remote_follow_fork): New function.
6073 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
6074 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
6075 (init_extended_remote_ops): Initialize to_follow_fork.
6077 2015-05-12 Don Breazeal <donb@codesourcery.com>
6079 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
6080 from static to extern.
6081 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
6082 * remote.c (anonymous enum): <PACKET_fork_event_feature,
6083 * PACKET_vfork_event_feature>: New enumeration constants.
6084 (remote_protocol_features): Add table entries for new packets.
6085 (remote_query_supported): Add new feature queries to qSupported
6088 2015-05-12 Gary Benson <gbenson@redhat.com>
6090 * remote.c (remote_add_inferior): Call exec_file_locate_attach
6091 for fake PIDs as well as real ones.
6092 (remote_pid_to_exec_file): Send empty annex if PID is fake.
6094 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
6096 * NEWS (Python Scripting): Mention the new gdb.Value methods.
6097 * python/py-value.c (valpy_reference_value): New function.
6098 (valpy_const_value): Likewise.
6099 (value_object_methods): Add new methods.
6100 * value.c (make_cv_value): New function.
6101 * value.h (make_cv_value): Declare.
6103 2015-05-08 Yao Qi <yao@codesourcery.com>
6104 Sandra Loosemore <sandra@codesourcery.com>
6106 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
6107 to 'lh->include_dirs' before accessing to it.
6108 (psymtab_include_file_name): Likewise.
6109 (dwarf_decode_lines_1): Likewise.
6110 (dwarf_decode_lines): Likewise.
6111 (file_file_name): Likewise.
6113 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6115 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
6116 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
6117 (nios2_linux_rt_sigreturn_init): Adjust base address of
6120 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6122 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
6123 "trap 31" as the breakpoint instruction on all targets.
6125 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 * infcmd.c (print_return_value): Remove unused declaration.
6129 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6131 * dwarf2read.c (attr_to_dynamic_prop)
6132 <DW_AT_data_member_location>: Use read_type_die isntead of
6135 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6137 * ada-lang.c (ada_convert_actual): Add handling of formals
6138 passed inside an aligner type.
6140 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6142 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
6144 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
6147 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
6148 Print xmethod matcher status.
6150 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
6152 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
6153 register in the regcache when treating the PSWM register, and vice
6156 2015-05-07 Gary Benson <gbenson@redhat.com>
6158 * linux-thread-db.c (struct thread_db_info)
6159 <td_ta_map_id2thr_p>: Remove field.
6160 (try_thread_db_load_1): Remove initialization for the above.
6162 2015-05-07 Gary Benson <gbenson@redhat.com>
6164 * linux-thread-db.c (struct thread_db_info)
6165 <td_thr_validate_p>: Remove field.
6166 (try_thread_db_load_1): Remove initialization for the above.
6168 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6170 * compile/compile-object-load.c (compile_object_load): Support
6173 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6175 * compile/compile.c (compile_to_object): Make the cmd_string parameter
6176 const. Use new variables for the const compatibility.
6177 (eval_compile_command): Make the cmd_string parameter const.
6178 * compile/compile.h (eval_compile_command): Make the cmd_string
6181 2015-05-06 Joel Brobecker <brobecker@adacore.com>
6183 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
6185 * top.c (deprecated_init_ui_hook): Delete.
6186 (gdb_init): Remove handling of deprecated_init_ui_hook.
6187 * interps.c (clear_interpreter_hooks): Remove handling of
6188 deprecated_init_ui_hook.
6189 * main.c (captured_main): Update comment.
6191 2015-05-06 Joel Brobecker <brobecker@adacore.com>
6193 * solib.c (_initialize_solib): Add "info dll" alias creation.
6194 * windows-nat.c (set_windows_aliases): Delete.
6195 (_initialize_windows_nat): Remove deprecated_init_ui_hook
6197 * NEWS: Add news entry about "info dll" now being available
6200 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6202 * ada-lang.c (value_assign_to_component): Reformat and improve
6203 documentation. Remove all trailing spaces.
6205 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6207 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6208 Stop counting inlined frames as soon as an out-of-line function
6211 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
6213 * dwarf2read.c (inherit_abstract_dies): Skip
6214 DW_TAG_GNU_call_site dies while inheriting children of an
6215 abstract DIE into a scope.
6216 (read_lexical_block_scope): Inherit abstract DIE's for
6219 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6221 * ada-valprint.c (val_print_packed_array_elements): Delete
6222 variable "len". Add a type-length check when comparing two
6223 consecutive elements of the array. Use the element's actual
6224 length in call to value_contents_eq.
6225 * ada-lang.c (ada_value_primitive_packed_val): Always return
6226 a value whose type has been resolved.
6228 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6230 * ada-lang.c (ada_value_primitive_packed_val): Recompute
6231 BIT_SIZE and LEN if the size of the resolved type is smaller
6232 than BIT_SIZE * HOST_CHAR_BIT.
6234 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6236 * ada-lang.c (ada_value_primitive_packed_val): Use a more
6237 correct address in call to value_at. Adjust call to
6238 value_address accordingly.
6240 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6242 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
6245 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6247 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6248 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6250 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6251 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6252 (resolve_dynamic_type_internal): Set pinfo.valaddr.
6253 Add handling of addr_stack->valaddr.
6254 (resolve_dynamic_type): Add "valaddr" parameter.
6255 Set pinfo.valaddr field.
6256 * ada-lang.c (ada_discrete_type_high_bound): Update call to
6257 resolve_dynamic_type.
6258 (ada_discrete_type_low_bound): Likewise.
6259 * findvar.c (default_read_var_value): Likewise.
6260 * value.c (value_from_contents_and_address): Likewise.
6262 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6264 * gdbtypes.c (resolve_dynamic_array): Use
6265 create_array_type_with_stride instead of create_array_type.
6267 2015-04-30 DJ Delorie <dj@redhat.com>
6269 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6272 2015-04-29 Doug Evans <dje@google.com>
6275 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6276 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6277 EVAL_AVOID_SIDE_EFFECTS for xmethods.
6278 * extension-priv.h (struct extension_language_ops)
6279 <get_xmethod_result_type>: New member.
6280 * extension.c (get_xmethod_result_type): New function.
6281 * extension.h (get_xmethod_result_type): Declare.
6282 * python/py-xmethods.c (get_result_type_method_name): New static
6284 (py_get_result_type_method_name): Ditto.
6285 (gdbpy_get_xmethod_result_type): New function.
6286 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6287 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6288 * python/python.c (python_extension_ops): Add
6289 gdbpy_get_xmethod_result_type.
6290 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6291 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6293 (value_x_unop): Ditto.
6294 * value.c (result_type_of_xmethod): New function.
6295 * value.h (result_type_of_xmethod): Declare.
6297 2015-04-29 Gary Benson <gbenson@redhat.com>
6299 * solib.c (solib_find_1): Allow fd argument to be NULL.
6300 (exec_file_find): Update comment.
6301 (solib_find): Likewise.
6302 * exec.c (exec_file_locate_attach): Use NULL as fd
6303 argument to exec_file_find to avoid having to close
6305 * infrun.c (follow_exec): Likewise.
6307 2015-04-28 Doug Evans <dje@google.com>
6310 * python/lib/gdb/printing.py (register_pretty_printer): Handle
6311 name or __name__ attributes. Handle gdb module as first argument.
6313 2015-04-28 Doug Evans <dje@google.com>
6316 * python/py-prettyprint.c (print_children): Verify result of children
6317 iterator. Provide better error message.
6318 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6319 * python/python.c (gdbpy_print_python_errors_p): New function.
6321 2015-04-28 Doug Evans <dje@google.com>
6323 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6325 2015-04-28 Sasha Smundak <asmundak@google.com>
6327 * NEWS: Mention gdb.Type.optimized_out method.
6328 * python/py-type.c (typy_optimized_out): New function.
6330 2015-04-28 John Baldwin <jhb@FreeBSD.org>
6332 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6334 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6336 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6337 (initialize_utils): Move call of init_page_info() to ...
6338 * top.c (gdb_init): ... here.
6340 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6342 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6343 (tui_sigwinch_handler): Still update our idea of
6344 the terminal's width and height even when TUI is not active.
6346 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6348 * utils.h (set_screen_width_and_height): Declare.
6349 * utils.c (set_screen_width_and_height): Define.
6350 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6352 2015-04-28 Gary Benson <gbenson@redhat.com>
6354 * infrun.c (solist.h): New include.
6355 (follow_exec): Use exec_file_find to prefix execd_pathname
6358 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6360 * tui/tui-source.c (tui_set_source_content): Avoid calling
6361 strcpy() when offset is 0.
6363 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6366 * tui/tui-data.c (tui_free_window): Don't free the locator
6367 window when passed an SRC_WIN or a DISASSEM_WIN.
6369 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6371 * tui/tui-data.h (struct tui_win_element): Forward-declare.
6372 (tui_win_content): Move declaration.
6373 (struct tui_gen_win_info): Give 'content' field the
6374 type tui_win_content.
6375 * tui/tui-data.c (init_content_element): Remove redundant and
6377 (tui_add_content_elements): Remove erroneous cast.
6378 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6380 (tui_get_begin_asm_address): Likewise.
6381 * tui/tui-regs.c (tui_show_registers): Likewise.
6382 (tui_show_register_group): Likewise.
6383 (tui_display_registers_from): Likewise.
6384 (tui_check_register_values): Likewise.
6385 * tui/tui-source.c (tui_set_source_content): Likewise.
6386 (tui_set_source_content_nil): Likewise.
6387 (tui_source_is_displayed): Likewise.
6388 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6389 (tui_set_locator_fullname): Likewise.
6390 (tui_set_locator_info): Likewise.
6391 (tui_show_frame_info): Likewise.
6392 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6393 (tui_show_source_line): Likewise.
6394 (tui_horizontal_source_scroll): Likewise.
6395 (tui_update_breakpoint_info): Likewise.
6396 (tui_set_exec_info_content): Likewise.
6397 (tui_show_exec_info_content): Likewise.
6398 (tui_alloc_source_buffer): Likewise.
6399 (tui_line_is_displayed): Likewise.
6400 (tui_addr_is_displayed): Likewise.
6402 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6404 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6405 event if PL_FLAG_EXEC is set.
6406 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6407 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6408 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6409 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6410 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6412 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6414 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6415 [TDP_RFPPWAIT] New variable fbsd_pending_children.
6416 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6417 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6418 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6419 [PT_LWPINFO] (fbsd_wait): New function.
6420 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6421 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6422 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6423 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6424 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6425 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6426 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6427 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6428 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6430 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6431 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6432 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6433 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6434 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6435 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6436 Set "to_post_attach" to "fbsd_post_attach".
6438 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6440 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6441 (fbsd_find_memory_regions): Mark static.
6442 (fbsd_nat_add_target): New function.
6443 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6444 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6445 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6446 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6447 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6448 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6450 2015-04-27 Gary Benson <gbenson@redhat.com>
6452 * objfiles.c (allocate_objfile): Do not attempt to expand name
6453 if name is a "target:" filename.
6454 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6455 to load auto-load scripts for objfiles with "target:" filenames.
6457 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6459 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6460 (enum s390_vector_abi_kind): New enum.
6461 (struct gdbarch_tdep)<vector_abi>: New field.
6462 (s390_effective_inner_type): Add parameter min_size. Stop
6463 unwrapping if the inner type is smaller than min_size.
6464 (s390_function_arg_float): Adjust call to
6465 s390_effective_inner_type.
6466 (s390_function_arg_vector): New function.
6467 (s390_function_arg_integer): Adjust comment.
6468 (struct s390_arg_state)<vr>: New field.
6469 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6470 arguments according to vector ABI when appropriate.
6471 (s390_push_dummy_call): Initialize the argument state's field
6472 'vr'. Adjust calls to s390_handle_arg.
6473 (s390_register_return_value): Handle vector return values.
6474 (s390_return_value): Apply the "register" return value convention
6475 to a vector when appropriate.
6476 (s390_gdbarch_init): Initialize tdep->vector_abi.
6477 * NEWS: Announce S390 vector ABI support.
6479 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6481 * s390-linux-tdep.c (s390_return_value_convention): Remove
6482 function. Inline its logic...
6483 (s390_return_value): ...here. Instead, move the handling of the
6484 "register" return value convention...
6485 (s390_register_return_value): ...here. New function.
6487 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6490 (is_float_singleton): Remove function. Move the "singleton" part
6492 (s390_effective_inner_type): ...here. New function.
6493 (is_float_like): Remove function. Inline its logic...
6494 (s390_function_arg_float): ...here.
6495 (is_pointer_like, is_integer_like, is_struct_like): Remove
6496 functions. Inline their logic...
6497 (s390_function_arg_integer): ...here.
6498 (s390_function_arg_pass_by_reference): Remove function.
6499 (extend_simple_arg): Remove function.
6500 (alignment_of): Remove function.
6501 (struct s390_arg_state): New structure.
6502 (s390_handle_arg): New function.
6503 (s390_push_dummy_call): Move parameter placement logic to the new
6504 function s390_handle_arg. Call it for calculating the stack area
6505 sizes first, and again for actually writing the parameters.
6507 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6509 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
6510 false if the argument is zero.
6512 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6514 * ada-lang.c (template_to_static_fixed_type): Return input type
6515 when it is already fixed. Cache the input type itself when not
6516 creating a static fixed copy. Make it explicit that we never
6517 molestate the input type.
6518 * gdbtypes.c (resolve_dynamic_struct): Reset the
6519 TYPE_TARGET_TYPE field for resolved copies.
6521 2015-04-27 Joel Brobecker <brobecker@adacore.com>
6523 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6524 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6525 (template_to_static_fixed_type): Call ada_check_typedef only
6528 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6530 * cli/cli-dump.c (srec_dump_command): Add internationalization
6532 (ihex_dump_command): Likewise.
6533 (tekhex_dump_command): Likewise.
6534 (binary_dump_command): Likewise.
6535 (binary_append_command): Likewise.
6537 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6539 * cli/cli-dump.c (verilog_cmdlist): New variable.
6540 (dump_verilog_memory): New function.
6541 (dump_verilog_value): New function.
6542 (verilog_dump_command): New function.
6543 (_initialize_cli_dump): Add new commands to support verilog dump
6545 * NEWS: Add entry for "dump verilog".
6547 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
6549 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6550 descriptive type when there is none.
6552 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6554 * tui/tui-win.c (tui_async_resize_screen): Call
6555 rl_resize_terminal().
6557 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6559 * windows-nat.c (handle_output_debug_string): Don't change
6560 current_event.dwThreadId.
6561 (get_windows_debug_event): Use thread_id, rather than relying on
6562 current_event.dwThreadId being changed.
6564 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6566 * windows-nat.c (windows_continue): Report an error if
6567 ContinueDebugEvent() fails.
6569 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6571 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6573 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6575 * windows-nat.c (get_windows_debug_event): Replace retval with
6576 thread_id throughout. Update stale comment.
6578 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6580 * windows-nat.c (get_windows_debug_event): Don't use ternary
6581 conditional operator.
6583 2015-04-21 Pierre Muller <muller@sourceware.org>
6586 p-exp.y (yylex): Reorganize code to return the matched pattern
6587 for a field of this.
6589 2015-04-21 Gary Benson <gbenson@redhat.com>
6591 * common/fileio.h (fileio_to_host_openflags): New declaration.
6592 * common/fileio.c (fcntl.h): New include.
6593 (fileio_to_host_openflags): New function, factored out from...
6594 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6597 2015-04-21 Kevin Buettner <kevinb@redhat.com>
6599 * rl78-tdep.c (RL78_SP_ADDR): Define.
6600 (opc_reg_to_gdb_regnum): New static function.
6601 (rl78_analyze_prologue): Recognize instructions forming slightly
6602 more interesting prologues.
6604 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6607 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6608 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6609 TYPE_CODE_REF types so that they are not considered as dynamic
6610 depending on the referenced type.
6611 (resolve_dynamic_type_internal): Likewise.
6613 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6616 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6617 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6618 "top_level" parameter.
6619 (resolve_dynamic_type_internal): Remove the unused "top_level"
6620 parameter. Update call to is_dynamic_type_internal.
6621 (is_dynamic_type): Update call to is_dynamic_type_internal.
6622 (resolve_dynamic_range): Update call to
6623 resolve_dynamic_type_internal.
6624 (resolve_dynamic_union): Likewise.
6625 (resolve_dynamic_struct): Likewise.
6626 (resolve_dynamic_type): Likewise.
6628 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6630 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6633 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6635 * reply_mig_hack.awk: Robustify parsing.
6637 * reply_mig_hack.awk: Don't bother to declare an intermediate
6638 function pointer variable.
6640 2015-04-17 Doug Evans <dje@google.com>
6642 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6643 to "exec_displacement" to avoid confusion with inner use of the name.
6645 2015-04-17 Pedro Alves <palves@redhat.com>
6647 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6648 if HW point of TYPE isn't supported.
6650 2015-04-17 Yao Qi <yao.qi@linaro.org>
6651 Pedro Alves <palves@redhat.com>
6653 * target.h (target_can_use_hardware_watchpoint): Update comments.
6654 Remove trailing ";".
6656 2015-04-17 Gary Benson <gbenson@redhat.com>
6658 * remote.c (remote_add_inferior): New argument try_open_exec.
6659 If nonzero, attempt to open the inferior's executable file as
6660 the main executable if no main executable is open already.
6661 All callers updated.
6662 * NEWS: Mention that GDB now supports automatic location and
6663 retrieval of executable + files from remote targets.
6665 2015-04-17 Gary Benson <gbenson@redhat.com>
6667 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6668 * remote.c (PACKET_qXfer_exec_file): Likewise.
6669 (remote_protocol_features): Register the
6670 "qXfer:exec-file:read" feature.
6671 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6672 (remote_pid_to_exec_file): New function.
6673 (init_remote_ops): Initialize to_pid_to_exec_file.
6674 (_initialize_remote): Register new "set/show remote
6675 pid-to-exec-file-packet" command.
6676 * NEWS: Announce new qXfer:exec-file:read packet.
6678 2015-04-17 Gary Benson <gbenson@redhat.com>
6680 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6682 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6683 New function, factored out from...
6684 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6686 2015-04-17 Gary Benson <gbenson@redhat.com>
6688 * exec.c (solist.h): New include.
6689 (exec_file_locate_attach): Prefix absolute executable
6690 paths with gdb_sysroot if set.
6691 * NEWS: Mention that executable paths may be prepended
6694 2015-04-17 Gary Benson <gbenson@redhat.com>
6696 * solist.h (exec_file_find): New declaration.
6697 * solib.c (solib_find_1): New function, factored out from...
6698 (solib_find): ...here.
6699 (exec_file_find): New function.
6701 2015-04-17 Gary Benson <gbenson@redhat.com>
6703 * gdbcore.h (exec_file_locate_attach): New declaration.
6704 * exec.c (exec_file_locate_attach): New function, factored
6706 * infcmd.c (attach_command_post_wait): ...here.
6708 2015-04-17 Mike Frysinger <vapier@gentoo.org>
6710 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6712 2015-04-16 Yao Qi <yao.qi@linaro.org>
6714 * infrun.c (maybe_software_singlestep): Declare.
6715 (displaced_step_fixup): Call maybe_software_singlestep.
6717 2015-04-15 Doug Evans <dje@google.com>
6719 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6721 2015-04-15 Doug Evans <dje@google.com>
6723 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6725 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6727 * python/lib/gdb/command/unwinders.py: Add parentheses.
6729 2015-04-15 Yao Qi <yao.qi@linaro.org>
6731 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6733 2015-04-15 Yao Qi <yao.qi@linaro.org>
6735 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6737 2015-04-15 Yao Qi <yao.qi@linaro.org>
6739 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6740 dsc->insn_size instead of 4.
6742 2015-04-14 Gary Benson <gbenson@redhat.com>
6744 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6745 * minidebug.c (lzma_stat): Likewise.
6746 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6747 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6749 2015-04-13 Stan Shebs <stanshebs@google.com>
6751 * MAINTAINERS: Update my email address.
6753 2015-04-13 John Baldwin <jhb@FreeBSD.org>
6755 * amd64-tdep.c (amd64_target_description): New function.
6756 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6757 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6758 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6759 x86 extended save area.
6760 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6761 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6762 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6763 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6764 "amd64fbsd_read_description".
6765 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6766 (amd64fbsd_supply_xstateregset): New function.
6767 (amd64fbsd_collect_xstateregset): New function.
6768 Add "amd64fbsd_xstateregset".
6769 (amd64fbsd_iterate_over_regset_sections): New function.
6770 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6771 "I386_FBSD_XSAVE_XCR0_OFFSET".
6772 Add "iterate_over_regset_sections" gdbarch method.
6773 Add "core_read_description" gdbarch method.
6774 * i386-tdep.c (i386_target_description): New function.
6775 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6776 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6777 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6778 x86 extended save area.
6779 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6780 * i386bsd-nat.h: Export i386bsd_xsave_len.
6781 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6782 (_initialize_i386fbsd_nat): Set "to_read_description" to
6783 "i386fbsd_read_description".
6784 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6785 (i386fbsd_core_read_description): New function.
6786 (i386fbsd_supply_xstateregset): New function.
6787 (i386fbsd_collect_xstateregset): New function.
6788 Add "i386fbsd_xstateregset".
6789 (i386fbsd_iterate_over_regset_sections): New function.
6790 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6791 "I386_FBSD_XSAVE_XCR0_OFFSET".
6792 Add "iterate_over_regset_sections" gdbarch method.
6793 Add "core_read_description" gdbarch method.
6794 * i386fbsd-tdep.h: New file.
6796 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6798 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6799 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6801 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6803 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6805 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6807 * defs.h (xdb_commands): Remove declaration.
6808 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6809 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6810 * infcmd.c (run_no_args_command, go_command): Remove.
6811 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6812 * infrun.c (xdb_handle_command): Remove.
6813 (_initialize_infrun): Remove xdb_commands for lz and z.
6814 * main.c (xdb_commands): Remove variable.
6815 (captured_main): Remove "xdb" from long_options.
6816 (print_gdb_help): Remove --xdb from help.
6817 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6818 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6819 * stack.c (backtrace_full_command, args_plus_locals_info)
6820 (current_frame_command): Remove.
6821 (_initialize_stack): Remove xdb_commands for t, T and l.
6822 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6823 * thread.c (_initialize_thread): Remove xdb_commands condition.
6824 * tui/tui-layout.c (tui_toggle_layout_command)
6825 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6826 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6827 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6828 (tui_scroll_regs_backward_command): Remove.
6829 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6830 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6831 (_initialize_tui_win): Remove xdb_commands for U and w.
6832 * utils.c (pagination_on_command, pagination_off_command): Remove.
6833 (initialize_utils): Remove xdb_commands for am and sm.
6835 2015-04-10 Pedro Alves <palves@redhat.com>
6837 * infrun.c (displaced_step_fixup): Switch to the event ptid
6838 earlier. If the thread stopped for a watchpoint and the
6839 target/arch has non-continuable watchpoints, cancel the displaced
6841 (resume): Don't start a displaced step if in-line step-over info
6844 2015-04-10 Pedro Alves <palves@redhat.com>
6846 * infrun.c (displaced_step_in_progress): New function.
6847 (do_target_resume): Advise target to report all signals if
6850 2015-04-10 Pedro Alves <palves@redhat.com>
6853 * infrun.c (process_event_stop_test): Don't assume a step-resume
6854 is set if tp->stepped_breakpoint is true.
6856 2015-04-10 Yao Qi <yao.qi@linaro.org>
6858 * arm-tdep.c (install_alu_reg): Update comment.
6859 (thumb_copy_alu_reg): Remove local variable rn. Update
6860 debugging message. Use r2 instead of r1 in the modified
6863 2015-04-10 Pedro Alves <palves@redhat.com>
6866 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6867 linux_displaced_step_location as gdbarch_displaced_step_location
6869 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6870 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6871 * linux-tdep.c (linux_displaced_step_location): New function,
6872 based on ppc_linux_displaced_step_location.
6873 * linux-tdep.h (linux_displaced_step_location): New declaration.
6874 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6875 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6877 (ppc_linux_init_abi): Install linux_displaced_step_location as
6878 gdbarch_displaced_step_location hook, even without Cell/B.E..
6879 (_initialize_ppc_linux_tdep): Don't install
6880 ppc_linux_inferior_created as inferior_created observer.
6881 * s390-linux-tdep.c (s390_gdbarch_init): Install
6882 linux_displaced_step_location as gdbarch_displaced_step_location
6885 2015-04-09 Gary Benson <gbenson@redhat.com>
6887 * common/common-remote-fileio.h: Rename to...
6888 * common/fileio.h: ...this. Update all references.
6889 (remote_fileio_to_fio_error): Rename to...
6890 (host_to_fileio_error): ...this.
6891 (remote_fileio_to_be): Rename to...
6892 (host_to_bigendian): ...this. Update all callers.
6893 (remote_fileio_to_fio_uint): Rename to...
6894 (host_to_fileio_uint): ...this. Update all callers.
6895 (remote_fileio_to_fio_time): Rename to...
6896 (host_to_fileio_time): ...this. Update all callers.
6897 (remote_fileio_to_fio_stat): Rename to...
6898 (host_to_fileio_stat): ...this.
6899 Update all references.
6900 * common/common-remote-fileio.c: Rename to...
6901 * common/fileio.c: ...this. Update all references.
6902 (remote_fileio_to_fio_error): Rename to...
6903 (host_to_fileio_error): ...this. Update all callers.
6904 (remote_fileio_mode_to_target): Rename to...
6905 (fileio_mode_pack): ...this. Update all callers.
6906 (remote_fileio_to_fio_mode): Rename to...
6907 (host_to_fileio_mode): ...this. Update all callers.
6908 (remote_fileio_to_fio_ulong): Rename to...
6909 (host_to_fileio_ulong): ...this. Update all callers.
6910 (remote_fileio_to_fio_stat): Rename to...
6911 (host_to_fileio_stat): ...this. Update all callers.
6913 2015-04-09 Andy Wingo <wingo@igalia.com>
6915 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6916 (frame_functions): Bind gdbscm_frame_read_register to
6917 frame-read-register.
6918 * guile/lib/gdb.scm (frame-read-register): Export.
6920 2015-04-09 Gary Benson <gbenson@redhat.com>
6922 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6924 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6925 New function, factored out the named functions below.
6926 * inf-child.c (gdb/fileio.h): Remove include.
6927 (common-remote-fileio.h): New include.
6928 (inf_child_errno_to_fileio_error): Remove function. Update
6929 all callers to use remote_fileio_to_fio_error.
6930 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6932 2015-04-09 Andy Wingo <wingo@igalia.com>
6934 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6936 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6938 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6939 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6940 * configure: Regenerated.
6942 2015-04-09 Pedro Alves <palves@redhat.com>
6944 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6945 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6946 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6947 * gnulib/import/Makefile.am: Update.
6948 * gnulib/import/Makefile.in: Update.
6949 * gnulib/import/m4/gnulib-cache.m4: Update.
6950 * gnulib/import/m4/gnulib-comp.m4: Update.
6951 * gnulib/import/m4/strtok_r.m4: New file.
6952 * gnulib/import/strtok_r.c: New file.
6954 2015-04-09 Pedro Alves <palves@redhat.com>
6956 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6957 "called too early to check prototype".
6959 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6962 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6963 use a caching mechanism. Adjust comments and code to reflect
6964 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6965 (cmdpy_completer_handle_brkchars): Adjust call to
6966 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6967 (cmdpy_completer): Likewise.
6969 2015-04-08 Yao Qi <yao.qi@linaro.org>
6971 * spu-tdep.c (spu_gdbarch_init): Don't call
6972 set_gdbarch_cannot_step_breakpoint.
6974 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6976 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6978 2015-04-07 Pedro Alves <palves@redhat.com>
6980 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6981 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6982 (delete_exited_threads): New declaration.
6983 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6984 * linux-nat.c (linux_nat_update_thread_list): New function.
6985 (linux_nat_add_target): Install it.
6986 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6987 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6988 (delete_exited_threads): New function.
6990 2015-04-07 Pedro Alves <pedro@codesourcery.com>
6992 * infrun.c (resume) <displaced stepping debug output>: Get the
6993 leader thread's regcache, not resume_ptid's.
6995 2015-04-06 Doug Evans <xdje42@gmail.com>
6997 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6999 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
7000 Include symbol domain in debugging output.
7002 2015-04-06 Pedro Alves <palves@redhat.com>
7003 Bernd Edlinger <bernd.edlinger@hotmail.de>
7005 * configure.ac: Remove the mingw32-specific stub-termcap.o
7006 fallback, and instead fallback to the stub termcap on all hosts.
7007 * configure: Regenerate.
7008 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
7011 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7013 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7014 "top_level" parameter.
7015 (resolve_dynamic_type_internal): Remove the unused "top_level"
7016 parameter. Update call to is_dynamic_type_internal.
7017 (is_dynamic_type): Update call to is_dynamic_type_internal.
7018 (resolve_dynamic_range): Update call to
7019 resolve_dynamic_type_internal.
7020 (resolve_dynamic_union): Likewise.
7021 (resolve_dynamic_struct): Likewise.
7022 (resolve_dynamic_type): Likewise.
7024 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7026 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7027 TYPE_CODE_REF types so that they are not considered as dynamic
7028 depending on the referenced type.
7029 (resolve_dynamic_type_internal): Likewise.
7031 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
7033 * Makefile.in (top_srcdir): New.
7034 * configure: Regenerated.
7036 2015-04-02 Gary Benson <gbenson@redhat.com>
7038 * NEWS: Announce the new default sysroot of "target:".
7040 2015-04-02 Gary Benson <gbenson@redhat.com>
7042 * main.c (captured_main): Set gdb_sysroot to "target:"
7043 if not otherwise set.
7045 2015-04-02 Gary Benson <gbenson@redhat.com>
7047 * exec.c (exec_file_attach): Support "target:" filenames.
7049 2015-04-02 Gary Benson <gbenson@redhat.com>
7051 * solib.c (solib_find): Strip "target:" prefix from sysroot
7052 if accessing local files.
7054 2015-04-02 Gary Benson <gbenson@redhat.com>
7056 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
7057 checks and error messages.
7059 2015-04-02 Gary Benson <gbenson@redhat.com>
7061 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
7062 (remote_filename_p): Remove declaration.
7063 (remote_bfd_open): Likewise.
7064 * remote.c (remote_bfd_iovec_open): Remove function.
7065 (remote_bfd_iovec_close): Likewise.
7066 (remote_bfd_iovec_pread): Likewise.
7067 (remote_bfd_iovec_stat): Likewise.
7068 (remote_filename_p): Likewise.
7069 (remote_bfd_open): Likewise.
7070 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
7071 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
7072 (gdb_bfd_open_maybe_remote): Remove function.
7073 (symfile_bfd_open): Replace remote filename check with
7074 target filename check.
7075 (reread_symbols): Use gdb_bfd_open.
7076 * build-id.c (gdbcore.h): New include.
7077 (build_id_to_debug_bfd): Use gdb_bfd_open.
7078 * infcmd.c (attach_command_post_wait): Remove remote filename
7080 * solib.c (solib_find): Replace remote-specific handling with
7081 target-specific handling. Update comments where necessary.
7082 (solib_bfd_open): Replace remote-specific handling with
7083 target-specific handling.
7084 (gdb_sysroot_changed): New function.
7085 (_initialize_solib): Call the above when gdb_sysroot changes.
7086 * windows-tdep.c (gdbcore.h): New include.
7087 (windows_xfer_shared_library): Use gdb_bfd_open.
7089 2015-04-02 Gary Benson <gbenson@redhat.com>
7091 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
7092 (is_target_filename): New declaration.
7093 (gdb_bfd_has_target_filename): Likewise.
7094 (gdb_bfd_open): Update documentation comment.
7095 * gdb_bfd.c (target.h): New include.
7096 (gdb/fileio.h): Likewise.
7097 (is_target_filename): New function.
7098 (gdb_bfd_has_target_filename): Likewise.
7099 (fileio_errno_to_host): Likewise.
7100 (gdb_bfd_iovec_fileio_open): Likewise.
7101 (gdb_bfd_iovec_fileio_pread): Likewise.
7102 (gdb_bfd_iovec_fileio_close): Likewise.
7103 (gdb_bfd_iovec_fileio_fstat): Likewise.
7104 (gdb_bfd_open): Use target fileio to access paths prefixed
7105 with "target:" where necessary.
7107 2015-04-02 Gary Benson <gbenson@redhat.com>
7109 * target.h (struct target_ops) <to_filesystem_is_local>:
7111 (target_filesystem_is_local): New macro.
7112 * target-delegates.c: Regenerate.
7113 * remote.c (remote_filesystem_is_local): New function.
7114 (init_remote_ops): Initialize to_filesystem_is_local.
7116 2015-04-02 Gary Benson <gbenson@redhat.com>
7118 * target.h (struct target_ops) <to_fileio_fstat>: New field.
7119 (target_fileio_fstat): New declaration.
7120 * target.c (target_fileio_fstat): New function.
7121 * inf-child.c (inf_child_fileio_fstat): Likewise.
7122 (inf_child_target): Initialize to_fileio_fstat.
7123 * remote.c (init_remote_ops): Likewise.
7125 2015-04-01 Sasha Smundak <asmundak@google.com>
7127 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
7128 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
7129 (py-unwind.o): New recipe.
7130 * NEWS: mention Python frame unwinding.
7131 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
7132 gdb/unwinder.py and gdb/command/unwinder.py
7133 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
7135 (execute_unwinders): New function.
7136 * python/lib/gdb/command/unwinders.py: New file.
7137 * python/lib/gdb/unwinder.py: New file.
7138 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
7139 (objfpy_dealloc): Decrement frame_unwinders reference count.
7140 (objfpy_initialize): Create frame_unwinders list.
7141 (objfpy_get_frame_unwinders): New function.
7142 (objfpy_set_frame_unwinders): Ditto.
7143 (objfile_getset): Add frame_unwinders attribute to Objfile.
7144 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
7145 (pspy_dealloc): Decrement frame_unwinders reference count.
7146 (pspy_initialize): Create frame_unwinders list.
7147 (pspy_get_frame_unwinders): New function.
7148 (pspy_set_frame_unwinders): Ditto.
7149 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
7150 * python/py-unwind.c: New file.
7151 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
7152 (objpy_get_frame_unwinders): New prototype.
7153 (gdbpy_initialize_unwind): New prototype.
7154 * python/python.c (gdbpy_apply_type_printers): Call
7155 gdbpy_initialize_unwind.
7157 2015-04-01 Pedro Alves <palves@redhat.com>
7159 * infrun.c (resume): Check currently_stepping after clearing
7160 stepped_breakpoint, not before.
7162 2015-04-01 Pedro Alves <palves@redhat.com>
7164 * infrun.c (print_target_wait_results): Print all the ptid
7167 2015-04-01 Pedro Alves <palves@redhat.com>
7169 * infrun.c (keep_going): Also discard cleanups if inserting
7172 2015-04-01 Pedro Alves <palves@redhat.com>
7174 * infrun.c (wait_for_inferior): Install the
7175 finish_thread_state_cleanup cleanup across the whole function, not
7176 just around handle_inferior_event.
7178 2015-04-01 Pedro Alves <palves@redhat.com>
7180 * infrun.c (resume) <step past permanent breakpoint>: Use
7183 2015-04-01 Pedro Alves <palves@redhat.com>
7185 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
7187 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
7189 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
7191 2015-04-01 Pedro Alves <palves@redhat.com>
7193 * linux-thread-db.c (record_thread): Readd the thread to gdb's
7194 list if it was marked exited.
7196 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
7198 * configure: Regenerated.
7200 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7201 Jan Kratochvil <jan.kratochvil@redhat.com>
7202 Oleg Nesterov <oleg@redhat.com>
7205 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
7206 New enum identifying the various options of the coredump_filter
7208 (struct smaps_vmflags): New struct.
7209 (use_coredump_filter): New variable.
7210 (decode_vmflags): New function.
7211 (mapping_is_anonymous_p): Likewise.
7212 (dump_mapping_p): Likewise.
7213 (linux_find_memory_regions_full): New variables
7214 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
7215 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
7216 parsing of its information. Implement memory mapping filtering
7217 based on its contents.
7218 (show_use_coredump_filter): New function.
7219 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
7220 * NEWS: Mention the possibility of using the
7221 '/proc/PID/coredump_filter' file when generating a corefile.
7222 Mention new command 'set use-coredump-filter'.
7224 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7226 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
7227 read_memory_unsigned_integer.
7229 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
7231 * Makefile.in (ZLIB): New.
7232 (ZLIBINC): Likewise.
7233 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
7234 (CLIBS): Add $(ZLIB).
7235 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
7237 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
7238 * top.c (print_gdb_configuration): Remove --with-zlib and
7240 * config.in: Regenerated.
7241 * configure: Likewise.
7243 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7245 * NEWS: Mention info os cpus support.
7246 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7247 (struct osdata_type): Add cpus entry, reorder the entries in
7250 2015-03-31 Matthias Klose <doko@ubuntu.com>
7252 * compile/compile.c (compile_to_object): Allow triplets with or
7255 2015-03-30 Doug Evans <dje@google.com>
7258 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7259 klass in VAR_DOMAIN.
7261 2015-03-30 Gary Benson <gbenson@redhat.com>
7263 * remote.c (remote_mourn_1): Remove function. Update all callers
7264 to use remote_mourn.
7265 (extended_remote_mourn_1): Remove function. Update all callers
7266 to use extended_remote_mourn.
7267 (extended_remote_attach_1): Remove function. Update all callers
7268 to use extended_remote_attach.
7270 2015-03-28 James Bowman <james.bowman@ftdichip.com>
7272 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7273 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7274 (ALLDEPFILES): Add ft32-tdep.c.
7275 * configure.tgt: Add FT32 entry.
7276 * ft32-tdep.c: New file, FT32 target-dependent code.
7277 * ft32-tdep.h: New file, FT32 target-dependent code.
7279 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7282 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 * printcmd.c (print_command_1): Move expr variable scope.
7286 2015-03-27 Joel Brobecker <brobecker@adacore.com>
7288 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7290 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
7292 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7295 2015-03-26 Joel Brobecker <brobecker@adacore.com>
7297 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7298 exception raised while parsing the probe arguments.
7299 Force parsing to be done using the C language parser.
7300 * expression.h (parse_expression_with_language): Declare.
7301 * parse.c (parse_expression_with_language): New function.
7303 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
7305 * MAINTAINERS (Write After Approval): Add "Jon Turney".
7307 2015-03-26 Andy Wingo <wingo@igalia.com>
7310 * dwarf2read.c (struct partial_die_info): Add has_const_value
7312 (add_partial_symbol): Don't punt on symbols that have const_value
7314 (read_partial_die): Detect DW_AT_const_value.
7316 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7319 * printcmd.c (print_command_1): Move expr variable scope.
7321 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 * printcmd.c (validate_format): Make the parameter cmdname const.
7326 2015-03-26 Don Breazeal <donb@codesourcery.com>
7328 * remote.c (_initialize_remote): Update comment.
7330 2015-03-26 Pedro Alves <palves@redhat.com>
7331 Jon TURNEY <jon.turney@dronecode.org.uk>
7333 * coffread.c (coff_symfile_read): When constructing the name of an
7334 import stub symbol from import symbol for amd64, only skip the
7335 char after _imp_ if the target is underscored (like i386) and the
7336 char is indeed the target's leading char.
7338 2015-03-25 Pedro Alves <palves@redhat.com>
7340 * target.h <to_async>: Replace 'callback' and 'context' parameters
7341 with boolean 'enable' parameter.
7342 (target_async): Replace CALLBACK and CONTEXT parameters with
7343 boolean ENABLE parameter.
7344 * inf-loop.c (inferior_event_handler): Adjust.
7345 * linux-nat.c (linux_nat_attach, linux_nat_resume)
7346 (linux_nat_resume): Adjust.
7347 (async_client_callback, async_client_context): Delete.
7348 (handle_target_event): Call inferior_event_handler directly.
7349 (linux_nat_async): Replace 'callback' and 'context' parameters
7350 with boolean 'enable' parameter. Adjust. Remove references to
7351 async_client_callback and async_client_context.
7352 (linux_nat_close): Adjust.
7353 * record-btrace.c (record_btrace_async): Replace 'callback' and
7354 'context' parameters with boolean 'enable' parameter. Adjust.
7355 (record_btrace_resume): Adjust.
7356 * record-full.c (record_full_async): Replace 'callback' and
7357 'context' parameters with boolean 'enable' parameter. Adjust.
7358 (record_full_resume, record_full_core_resume): Adjust.
7359 * remote.c (struct remote_state) <async_client_callback,
7360 async_client_context>: Delete fields.
7361 (remote_start_remote, extended_remote_attach_1, remote_resume)
7362 (extended_remote_create_inferior): Adjust.
7363 (remote_async_serial_handler): Call inferior_event_handler
7365 (remote_async): Replace 'callback' and 'context' parameters with
7366 boolean 'enable' parameter. Adjust.
7367 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7369 * target-delegates.c: Regenerate.
7371 2015-03-25 Gary Benson <gbenson@redhat.com>
7372 Pedro Alves <palves@redhat.com>
7374 * target.c (fileio_ft_t): New typedef, define object vector.
7375 (fileio_fhandles): New static variable.
7376 (is_closed_fileio_fh): New macro.
7377 (lowest_closed_fd): New static variable.
7378 (acquire_fileio_fd): New function.
7379 (release_fileio_fd): Likewise.
7380 (fileio_fd_to_fh): New macro.
7381 (target_fileio_open): Wrap the file descriptor on success.
7382 (target_fileio_pwrite): Updated to use wrapped file descriptor.
7383 (target_fileio_pread): Likewise.
7384 (target_fileio_close): Likewise.
7386 2015-03-24 Pedro Alves <palves@redhat.com>
7388 * thread.c (thread_apply_all_command): Take exited threads into
7391 2015-03-24 Pedro Alves <palves@redhat.com>
7393 * infrun.c (resume, proceed): Mention
7394 switch_back_to_stepped_thread, not switch_back_to_stepping.
7396 2015-03-24 Pedro Alves <palves@redhat.com>
7398 * infrun.c (user_visible_resume_ptid): Rewrite going from
7399 most-locked to unlocked instead of the opposite. Move comment ...
7400 * infrun.h (user_visible_resume_ptid): ... here.
7402 2015-03-24 Pedro Alves <palves@redhat.com>
7404 * linux-nat.c (linux_nat_resume): Output debug logs before trying
7405 to resume the event lwp. Use the lwp's ptid instead of the passed
7406 in (maybe wildcard) ptid.
7407 (stop_wait_callback): Tweak debug log output.
7408 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
7410 (linux_nat_filter_event): In debug output, distinguish a
7411 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
7412 before trying to resume the lwp.
7414 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7416 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7417 pointer indirection.
7418 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7419 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7421 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7423 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7424 Renames DYN_ATTR_DATA_LOCATION.
7425 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7426 DYN_ATTR_DATA_LOCATION.
7427 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7428 instead of DYN_ATTR_DATA_LOCATION.
7430 2015-03-24 Pedro Alves <palves@redhat.com>
7432 * breakpoint.c (until_break_command): Adjust call to proceed.
7433 * gdbthread.h (struct thread_control_state) <stepping_command>:
7435 * infcall.c (run_inferior_call): Adjust call to proceed.
7436 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7437 Adjust calls to proceed.
7438 (set_step_frame): Set the current thread's step_start_function
7440 (step_once): Adjust calls to proceed.
7441 (jump_command, signal_command, until_next_command)
7442 (finish_backward, finish_forward, proceed_after_attach_callback)
7443 (attach_command_post_wait): Adjust calls to proceed.
7444 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7445 (do_target_resume): New function, factored out from ...
7446 (resume): ... here. Remove 'step' parameter. Instead, check
7447 currently_stepping to determine whether the thread should be
7449 (proceed): Remove 'step' parameter and don't set the thread's
7450 step_start_function here. Adjust call to 'resume'.
7451 (handle_inferior_event): Adjust calls to 'resume'.
7452 (switch_back_to_stepped_thread): Use do_target_resume instead of
7454 (keep_going): Adjust calls to 'resume'.
7455 * infrun.h (proceed): Remove 'step' parameter.
7457 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7459 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7461 2015-03-24 Pedro Alves <palves@redhat.com>
7463 * gdbthread.h (struct thread_control_state) <stepping_command>:
7465 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7466 the thread's stepping_command field.
7467 * infrun.c (resume): Check the thread's stepping_command flag to
7468 determine which threads should be resumed. Rename 'entry_step'
7470 (clear_proceed_status_thread): Clear 'stepping_command'.
7471 (schedlock_applies): Change parameter type to struct thread_info
7473 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7474 (switch_back_to_stepped_thread): Adjust calls to
7475 'schedlock_applies'.
7476 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7478 2015-03-24 Pedro Alves <palves@redhat.com>
7480 * infrun.c (step_start_function): Delete and ...
7481 * gdbthread.h (struct thread_control_state) <step_start_function>:
7482 ... now a field here.
7483 * infrun.c (clear_proceed_status_thread): Clear the thread's
7484 step_start_function.
7485 (proceed, process_event_stop_test, print_stop_event): Adjust.
7487 2015-03-24 Pedro Alves <palves@redhat.com>
7489 * infrun.c (proceed): No longer handle negative step.
7491 2015-03-24 Gary Benson <gbenson@redhat.com>
7493 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7494 (x86_linux_prepare_to_resume): Likewise.
7495 * x86-linux-nat.c (x86_linux_new_thread):
7496 Moved to nat/x86-linux.c.
7497 (x86_linux_prepare_to_resume): Likewise.
7498 * nat/x86-linux.c (x86_linux_new_thread): New function.
7499 (x86_linux_prepare_to_resume): Likewise.
7501 2015-03-24 Gary Benson <gbenson@redhat.com>
7503 * nat/x86-linux-dregs.h: New file.
7504 * nat/x86-linux-dregs.c: Likewise.
7505 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7506 (x86-linux-dregs.o): New rule.
7507 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7508 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7509 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7510 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7511 (x86_linux_dr_get): Likewise.
7512 (x86_linux_dr_set): Likewise.
7513 (x86_linux_dr_get_addr): Likewise.
7514 (x86_linux_dr_get_control): Likewise.
7515 (x86_linux_dr_get_status): Likewise.
7516 (update_debug_registers_callback): Likewise.
7517 (x86_linux_dr_set_control): Likewise.
7518 (x86_linux_dr_set_addr): Likewise.
7519 (x86_linux_update_debug_registers): Likewise.
7521 2015-03-24 Gary Benson <gbenson@redhat.com>
7523 * x86-linux-nat.c (x86_linux_update_debug_registers):
7524 New function, factored out from...
7525 (x86_linux_prepare_to_resume): ...this.
7527 2015-03-24 Gary Benson <gbenson@redhat.com>
7529 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7530 (x86_linux_dr_set): Likewise.
7531 (x86_linux_dr_get_addr): Likewise.
7532 (x86_linux_dr_get_control): Likewise.
7533 (x86_linux_dr_get_status): Likewise.
7534 (update_debug_registers_callback): Likewise.
7535 (x86_linux_dr_set_control): Likewise.
7536 (x86_linux_dr_set_addr): Likewise.
7537 (x86_linux_prepare_to_resume): Likewise.
7538 (x86_linux_new_thread): Likewise.
7540 2015-03-24 Gary Benson <gbenson@redhat.com>
7542 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7543 (x86_linux_new_thread): Rename argument.
7545 2015-03-24 Gary Benson <gbenson@redhat.com>
7547 * nat/x86-linux.h: New file.
7548 * nat/x86-linux.c: Likewise.
7549 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7550 (x86-linux.o): New rule.
7551 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7552 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7553 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7554 (lwp_set_arch_private_info): New declaration.
7555 (lwp_arch_private_info): Likewise.
7556 * linux-nat.c (lwp_set_arch_private_info): New function.
7557 (lwp_arch_private_info): Likewise.
7558 * x86-linux-nat.c: Include nat/x86-linux.h.
7559 (arch_lwp_info): Removed structure.
7560 (update_debug_registers_callback):
7561 Use lwp_set_debug_registers_changed.
7562 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7563 and lwp_set_debug_registers_changed.
7564 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7566 2015-03-24 Gary Benson <gbenson@redhat.com>
7568 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7569 (lwp_is_stopped): Likewise.
7570 (lwp_stop_reason): Likewise.
7571 * linux-nat.c (ptid_of_lwp): New function.
7572 (lwp_is_stopped): Likewise.
7573 (lwp_is_stopped_by_watchpoint): Likewise.
7574 * x86-linux-nat.c (update_debug_registers_callback):
7576 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7579 2015-03-24 Gary Benson <gbenson@redhat.com>
7581 * linux-nat.h (linux_stop_lwp): Move declaration to...
7582 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7584 2015-03-24 Gary Benson <gbenson@redhat.com>
7586 * linux-nat.h: Include nat/linux-nat.h.
7587 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7588 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7589 (iterate_over_lwps_ftype): New typedef.
7590 (iterate_over_lwps): New declaration.
7591 * linux-nat.h (iterate_over_lwps): Update comment. Use
7592 iterate_over_lwps_ftype. Update callback return value check.
7594 2015-03-24 Gary Benson <gbenson@redhat.com>
7596 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7597 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7599 2015-03-24 Gary Benson <gbenson@redhat.com>
7601 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7602 * linux-nat.c (current_lwp_ptid): New function.
7603 * x86-linux-nat.c: Include nat/linux-nat.h.
7604 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7605 (x86_linux_dr_get_control): Likewise.
7606 (x86_linux_dr_get_status): Likewise.
7607 (x86_linux_dr_set_control): Likewise.
7608 (x86_linux_dr_set_addr): Likewise.
7610 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7612 PR breakpoints/16466
7613 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7615 2015-03-23 Joel Brobecker <brobecker@adacore.com>
7617 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7618 * ser-unix.c (hardwire_setparity): Likewise.
7620 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7622 * NEWS: Mention set/show serial parity command.
7623 * monitor.c (monitor_open): Call serial_setparity.
7624 * remote.c (remote_open_1): Likewise.
7625 * ser-base.c (ser_base_serparity): New function.
7626 * ser-base.h (ser_base_setparity): Add declaration.
7627 * ser-go32.c (dos_ops): Set "setparity" field.
7628 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7630 (ser_windows_setparity): New function.
7631 (hardwire_ops): Add ser_windows_setparity.
7632 (tty_ops): Add NULL for setparity field.
7633 (pipe_ops): Add ser_base_setparity.
7634 (tcp_ops): Likewise.
7635 * ser-pipe.c (pipe_ops): Likewise.
7636 * ser-tcp.c (tcp_ops): Likewise.
7637 * ser-unix.c (hardwire_setparity): Add declaration.
7638 (hardwire_raw): Don't reset PARENB flag.
7639 (hardwire_setparity): New function.
7640 (hardwire_ops): Add hardwire_setparity.
7641 * serial.c (serial_setparity): New function.
7642 (serial_parity): New global.
7643 (parity_none, parity_odd, parity_even, parity_enums, parity):
7645 (set_parity): New function.
7646 (_initialize_serial): Add set/show serial parity commands.
7647 * serial.h (GDBPARITY_NONE): Define.
7648 (GDBPARITY_ODD): Define.
7649 (GDBPARITY_EVEN): Define.
7650 (serial_setparity) Add declaration.
7651 (struct serial_ops): Add setparity field.
7652 * target.h (serial_parity): Add declaration.
7654 2015-03-23 Keith Seitz <keiths@redhat.com>
7656 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7658 2015-03-23 Keith Seitz <keiths@redhat.com>
7660 * breakpoint.c (parse_breakpoint_sals): Use
7661 linespec_lexer_lex_keyword to ascertain if the user specified
7663 * linespec.c [IF_KEYWORD_INDEX]: Define.
7664 (linespec_lexer_lex_keyword): Export.
7665 (struct ls_parser) <keyword_ok>: Remove.
7666 A keyword is only a keyword if not followed by another keyword.
7667 (linespec_lexer_lex_one): Remove keyword_ok handling.
7668 Add comment explaining why the parsing stream is not advanced
7669 when a keyword is seen.
7670 (parse_linespec): Remove parser->keyword_ok.
7671 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7673 2015-03-23 Keith Seitz <keiths@redhat.com>
7676 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7677 if we find a static method with DW_AT_vtable_elem_location.
7679 2015-03-21 Eli Zaretskii <eliz@gnu.org>
7681 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7682 before the second loop, to avoid undefined behavior. Reported by
7683 Anton Blanchard <anton@samba.org>.
7685 2015-03-20 Keven Boell <keven.boell@intel.com>
7687 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7688 data_location usage to linked list.
7689 (resolve_dynamic_type_internal): Adapt data_location to
7691 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7692 (copy_type_recursive, copy_type): Add copy of linked list.
7693 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7694 (struct dynamic_prop_list): New struct.
7695 * dwarf2read.c (set_die_type): Set data_location data.
7697 2015-03-20 Pedro Alves <palves@redhat.com>
7699 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7700 inner block and make it const.
7701 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7703 2015-03-20 Pedro Alves <palves@redhat.com>
7705 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7706 * breakpoint.h (set_breakpoint_condition): Update declaration.
7708 2015-03-20 Pedro Alves <palves@redhat.com>
7710 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7712 2015-03-20 Pedro Alves <palves@redhat.com>
7714 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7716 2015-03-20 Pedro Alves <palves@redhat.com>
7718 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7720 2015-03-20 Pedro Alves <palves@redhat.com>
7722 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7723 (nto_init_solib_absolute_prefix): Likewise.
7725 2015-03-20 Pedro Alves <palves@redhat.com>
7727 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7728 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7730 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7732 * config/djgpp/README: Remove gdb.hp.
7734 2015-03-20 Yao Qi <yao.qi@linaro.org>
7736 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7737 set_gdbarch_cannot_step_breakpoint.
7739 2015-03-19 Pedro Alves <palves@redhat.com>
7741 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7742 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7743 instead call perror_with_name.
7744 (check_ptrace_stopped_lwp_gone): New function.
7745 (linux_resume_one_lwp): Reimplement as wrapper around
7746 linux_resume_one_lwp_throw that swallows errors if the LWP is
7748 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7749 swallows errors if the LWP is gone. Use
7750 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7752 2015-03-19 Pedro Alves <palves@redhat.com>
7754 * linux-nat.c (status_callback): Return early if the LWP has no
7757 2015-03-19 Pedro Alves <palves@redhat.com>
7759 * linux-nat.c (select_event_lwp_callback): Update comment to no
7760 longer mention SIGTRAP.
7762 2015-03-18 Tristan Gingold <gingold@adacore.com>
7764 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7765 redirection code to ...
7766 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7767 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
7769 2015-03-18 Gary Benson <gbenson@redhat.com>
7771 (remote_protocol_features): Remove the "vFile:fstat" feature.
7772 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7774 2015-03-11 Yao Qi <yao.qi@linaro.org>
7777 * aarch64-linux-tdep.c: Include xml-syscall.h
7778 (aarch64_linux_get_syscall_number): New function.
7779 (aarch64_linux_init_abi): Call
7780 set_gdbarch_get_syscall_number.
7781 * syscalls/aarch64-linux.xml: New file.
7783 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7785 * ser-base.h (ser_base_setstopbits): Change second argument name
7786 from "rate" to "num".
7788 2015-03-17 Gary Benson <gbenson@redhat.com>
7789 Luke Allardyce <lukeallardyce@gmail.com>
7792 * common/common-remote-fileio.h (sys/stat.h): New include.
7793 (stuct stat): Remove forward declaration.
7795 2015-03-16 John Baldwin <jhb@FreeBSD.org>
7797 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7798 before writing core register notes.
7800 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7801 Pedro Alves <palves@redhat.com>
7803 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7804 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7805 (tgoto): Wrap with extern "C".
7807 2015-03-16 Pedro Alves <palves@redhat.com>
7808 Yuanhui Zhang <asmwarrior@gmail.com>
7810 * stub-termcap.c (tputs): Change prototype.
7812 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7813 Pedro Alves <palves@redhat.com>
7815 * windows-nat.c (struct thread_info_struct): Rename to ...
7816 (struct windows_thread_info_struct): ... this.
7817 (thread_info): Rename to ...
7818 (windows_thread_info): ... this.
7821 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7822 Pedro Alves <palves@redhat.com>
7824 * NEWS: New Removed targets and native configurations.
7826 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7829 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7830 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7831 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7832 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7833 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7834 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7835 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7837 * config/ia64/hpux.mh: Remove file.
7838 * config/pa/hpux.mh: Remove file.
7839 * configure: Rebuilt.
7840 * configure.ac (dlgetmodinfo, somread.o): Remove.
7841 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7842 (ia64-*-hpux*): Remove its float format exception.
7843 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7844 * hppa-hpux-nat.c: Remove file.
7845 * hppa-hpux-tdep.c: Remove file.
7846 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7847 Move them here from hppa-tdep.h
7848 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7849 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7850 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7851 Move them to hppa-tdep.c.
7852 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7854 * ia64-hpux-nat.c: Remove file.
7855 * ia64-hpux-tdep.c: Remove file.
7856 * ia64-hpux-tdep.h: Remove file.
7857 * inf-ttrace.c: Remove file.
7858 * inf-ttrace.h: Remove file.
7859 * solib-ia64-hpux.c: Remove file.
7860 * solib-ia64-hpux.h: Remove file.
7861 * solib-pa64.c: Remove file.
7862 * solib-pa64.h: Remove file.
7863 * solib-som.c: Remove file.
7864 * solib-som.h: Remove file.
7865 * somread.c: Remove file.
7867 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7869 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7870 * config.in: Regenerate.
7871 * configure: Regenerate.
7872 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
7874 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7875 enumerate memory regions if present.
7877 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7879 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7880 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7882 (i386fbsd_sigtramp_p): Likewise.
7884 2015-03-12 John Baldwin <jhb@FreeBSD.org>
7886 * MAINTAINERS (Write After Approval): Add John Baldwin.
7888 2015-03-12 Gary Benson <gbenson@redhat.com>
7890 * solib.c (_initialize_solib): Make "set/show sysroot" use
7891 add_setshow_optional_filename_cmd so it can be restored to
7892 empty after being set.
7894 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7896 * Makefile.in (SFILES): New source break-catch-syscall.c.
7897 (COMMON_OBS): New object break-catch-syscall.o.
7898 * break-catch-syscall.c: New file.
7899 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7900 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7901 (struct syscall_catchpoint): Likewise.
7902 (dtor_catch_syscall): Likewise.
7903 (catch_syscall_inferior_data): Likewise.
7904 (struct catch_syscall_inferior_data): Likewise.
7905 (get_catch_syscall_inferior_data): Likewise.
7906 (catch_syscall_inferior_data_cleanup): Likewise.
7907 (insert_catch_syscall): Likewise.
7908 (remove_catch_syscall): Likewise.
7909 (breakpoint_hit_catch_syscall): Likewise.
7910 (print_it_catch_syscall): Likewise.
7911 (print_one_catch_syscall): Likewise.
7912 (print_mention_catch_syscall): Likewise.
7913 (print_recreate_catch_syscall): Likewise.
7914 (catch_syscall_breakpoint_ops): Likewise.
7915 (syscall_catchpoint_p): Likewise.
7916 (create_syscall_event_catchpoint): Likewise.
7917 (catch_syscall_split_args): Likewise.
7918 (catch_syscall_command_1): Likewise.
7919 (is_syscall_catchpoint_enabled): Likewise.
7920 (catch_syscall_enabled): Likewise.
7921 (catching_syscall_number): Likewise.
7922 (catch_syscall_completer): Likewise.
7923 (clear_syscall_counts): Likewise.
7924 (initialize_breakpoint_ops): Move initialization of syscall
7925 catchpoints to break-catch-syscall.c.
7926 (_initialize_breakpoint): Move code related to syscall catchpoints
7927 to break-catch-syscall.c.
7929 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7931 * breakpoint.c (breakpoint_find_if): New function.
7932 * breakpoint.h (breakpoint_find_if): New prototype.
7934 2015-03-11 Gary Benson <gbenson@redhat.com>
7936 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7937 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7938 (remote_fileio_to_host_ulong): Likewise.
7939 (remote_fileio_to_host_mode): Likewise.
7940 (remote_fileio_to_host_time): Likewise.
7941 (remote_fileio_to_host_stat): Likewise.
7942 * remote.c (PACKET_vFile_fstat): New enum value.
7943 (remote_protocol_features): Register the "vFile:fstat" feature.
7944 (remote_hostio_fstat): New function.
7945 (remote_bfd_iovec_stat): Use the above.
7946 (_initialize_remote): Register new "set/show remote
7947 hostio-fstat-packet" command.
7948 * symfile.c (separate_debug_file_exists): Update comment.
7949 * NEWS: Announce new vFile:fstat packet.
7951 2015-03-11 Gary Benson <gbenson@redhat.com>
7953 * common/common-remote-fileio.h: New file.
7954 * common/common-remote-fileio.c: Likewise.
7955 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7956 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7957 (COMMON_OBS): Add common-remote-fileio.o.
7958 (common-remote-fileio.o): New rule.
7959 * remote-fileio.h (common-remote-fileio.h): New include.
7960 * remote-fileio.c (gdb/fileio.h): Do not include.
7961 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7962 (remote_fileio_to_fio_uint): Likewise.
7963 (remote_fileio_to_fio_time): Likewise.
7964 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7965 (remote_fileio_to_fio_mode): Likewise.
7966 (remote_fileio_to_fio_ulong): Likewise.
7967 (remote_fileio_to_fio_stat): Likewise.
7969 2015-03-11 Andy Wingo <wingo@igalia.com>
7971 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7972 we were checking the cached type, not the cached dynamic type.
7974 2015-03-11 Andy Wingo <wingo@igalia.com>
7976 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7977 other strings, as these are on the GC'd heap, and will be
7978 collected along with the smob.
7980 2015-03-11 Andy Wingo <wingo@igalia.com>
7982 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7983 (objfile_functions): Bind gdbscm_objfile_progspace to
7985 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7987 2015-03-11 Andy Wingo <wingo@igalia.com>
7989 * guile/guile.c (_initialize_guile): Disable automatic
7990 finalization, if Guile offers us that possibility.
7991 * guile/guile.c (call_initialize_gdb_module):
7992 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7993 finalizers in appropriate places.
7994 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7995 scm_set_automatic_finalization_enabled.
7996 * configure: Regenerated.
7998 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8000 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
8003 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8005 * s390-linux-nat.c (struct arch_lwp_info): New.
8006 (s390_fix_watch_points): Rename to...
8007 (s390_prepare_to_resume): ...this. Skip the PER info update
8008 unless the watch points have changed.
8009 (s390_refresh_per_info, s390_new_thread): New functions.
8010 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
8011 s390_fix_watch_points.
8012 (s390_remove_watchpoint): Likewise.
8013 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
8014 Register s390_prepare_to_resume.
8016 2015-03-09 Pedro Alves <palves@redhat.com>
8019 2015-03-07 Pedro Alves <palves@redhat.com>
8020 * common/gdb_socket.h: New file.
8021 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8023 (net_open): Use union gdb_sockaddr_u.
8025 2015-03-07 Pedro Alves <palves@redhat.com>
8027 * configure.ac (build_warnings): Move -Wmissing-prototypes
8028 -Wdeclaration-after-statement -Wmissing-parameter-type
8029 -Wold-style-declaration -Wold-style-definition to the C-specific
8031 * configure: Regenerate.
8033 2015-03-07 Pedro Alves <palves@redhat.com>
8035 * common/gdb_socket.h: New file.
8036 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8038 (net_open): Use union gdb_sockaddr_u.
8040 2015-03-07 Pedro Alves <palves@redhat.com>
8042 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
8043 (exceptions_state_mc_action_iter)
8044 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8046 [__cplusplus] (try_scope_depth): New global.
8047 [__cplusplus] (exception_try_scope_entry)
8048 (exception_try_scope_exit, gdb_exception_sliced_copy)
8049 (exception_rethrow): New functions.
8050 (throw_exception): In C++ mode, throw
8051 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
8052 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
8053 (throw_it): In C++ mode, use try_scope_depth.
8054 * common/common-exceptions.h [!__cplusplus]
8055 (exceptions_state_mc_action_iter)
8056 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8058 [__cplusplus] (exception_try_scope_entry)
8059 (exception_try_scope_exit, exception_rethrow): Declare.
8060 [__cplusplus] (struct exception_try_scope): New struct.
8061 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
8063 (struct gdb_exception_RETURN_MASK_ALL)
8064 (struct gdb_exception_RETURN_MASK_ERROR)
8065 (struct gdb_exception_RETURN_MASK_QUIT): New types.
8067 2015-03-07 Pedro Alves <palves@redhat.com>
8069 * main.c (handle_command_errors): Remove volatile qualifier from
8072 2015-03-07 Pedro Alves <palves@redhat.com>
8074 * breakpoint.c (save_breakpoints): Adjust to avoid code between
8076 * gdbtypes.c (safe_parse_type): Remove empty line.
8077 (types_deeply_equal):
8078 * guile/scm-frame.c (gdbscm_frame_name):
8079 * linux-thread-db.c (find_new_threads_once):
8080 * python/py-breakpoint.c (bppy_get_commands):
8081 * record-btrace.c (record_btrace_insert_breakpoint)
8082 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
8083 (record_btrace_start_replaying): Adjust to avoid code between TRY
8086 2015-03-07 Pedro Alves <palves@redhat.com>
8088 * common/common-exceptions.c (struct catcher) <exception>: No
8089 longer a pointer to volatile exception. Now an exception value.
8090 <mask>: Delete field.
8091 (exceptions_state_mc_init): Remove all parameters. Adjust.
8092 (exceptions_state_mc): No longer pop the catcher here.
8093 (exceptions_state_mc_catch): New function.
8094 (throw_exception): Adjust.
8095 * common/common-exceptions.h (exceptions_state_mc_init): Remove
8097 (exceptions_state_mc_catch): Declare.
8098 (TRY_CATCH): Rename to ...
8099 (TRY): ... this. Remove EXCEPTION and MASK parameters.
8100 (CATCH, END_CATCH): New.
8101 All callers adjusted.
8103 2015-03-07 Tom Tromey <tromey@redhat.com>
8105 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
8107 2015-03-07 Pedro Alves <palves@redhat.com>
8109 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8110 (amd64_epilogue_frame_cache): Normal exception handling code.
8111 * break-catch-throw.c (check_status_exception_catchpoint)
8112 (re_set_exception_catchpoint): Ditto.
8113 * cli/cli-interp.c (safe_execute_command):
8114 * cli/cli-script.c (script_from_file): Ditto.
8115 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
8117 * compile/compile-object-run.c (compile_object_run): Ditto.
8118 * cp-abi.c (baseclass_offset): Ditto.
8119 * cp-valprint.c (cp_print_value): Ditto.
8120 * exceptions.c (catch_exceptions_with_msg):
8121 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
8122 * frame.c (get_frame_address_in_block_if_available): Ditto.
8123 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8124 (i386_sigtramp_frame_cache): Ditto.
8125 * infcmd.c (post_create_inferior): Ditto.
8126 * linespec.c (parse_linespec, find_linespec_symbols):
8127 * p-valprint.c (pascal_object_print_value): Ditto.
8128 * parse.c (parse_expression_for_completion): Ditto.
8129 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
8130 * remote.c (remote_get_noisy_reply): Ditto.
8131 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
8132 * solib-svr4.c (solib_svr4_r_map): Ditto.
8134 2015-03-06 Gary Benson <gbenson@redhat.com>
8136 * common/common-utils.h (startswith): New inline function.
8137 All places where this logic was used updated to use the above.
8139 2015-03-05 Pedro Alves <palves@redhat.com>
8142 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
8143 after reading the breakpoint's shadow memory.
8145 2015-03-05 Mark Kettenis <kettenis@gnu.org>
8147 * hppabsd-nat.c: Remove file.
8148 * hppaobsd-nat.c: New file.
8149 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
8151 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
8154 2015-03-04 Pedro Alves <palves@redhat.com>
8156 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
8157 (target_decr_pc_after_break): Delete declaration.
8158 * target.c (default_target_decr_pc_after_break)
8159 (target_decr_pc_after_break): Delete.
8160 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
8161 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
8162 * linux-thread-db.c (check_event): Likewise.
8163 * infrun.c (adjust_pc_after_break): Likewise.
8164 * darwin-nat.c (cancel_breakpoint): Likewise.
8165 * aix-thread.c (aix_thread_wait): Likewise.
8166 * target-delegates.c: Regenerate.
8168 2015-03-04 Pedro Alves <palves@redhat.com>
8170 * linux-nat.c (save_sigtrap): Check for breakpoints before
8171 checking watchpoints.
8172 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8173 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8174 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
8175 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
8176 (linux_nat_stopped_by_sw_breakpoint)
8177 (linux_nat_supports_stopped_by_sw_breakpoint)
8178 (linux_nat_stopped_by_hw_breakpoint)
8179 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
8180 (linux_nat_wait_1): Don't re-increment the PC if relying on
8181 SIGTRAP's siginfo->si_code.
8182 (linux_nat_add_target): Install new target methods.
8183 * linux-thread-db.c (check_event): Don't account for breakpoint PC
8184 offset if the target already adjusted the PC.
8185 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
8186 (GDB_ARCH_TRAP_BRKPT): New.
8187 (TRAP_HWBKPT): Define if not already defined.
8189 2015-03-04 Pedro Alves <palves@redhat.com>
8191 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
8192 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
8194 <stop_reason>: New field.
8195 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
8196 (packet_set_cmd_state): New function.
8197 (remote_protocol_features): Register the "swbreak" and "hwbreak"
8199 (remote_query_supported): If not disabled with the corresponding
8200 "set remote foo-packet" command, report support for the swbreak
8201 and hwbreak features.
8202 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
8204 <stop_reason>: New field.
8205 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
8206 (remote_wait_as): Adjust.
8207 (remote_stopped_by_sw_breakpoint)
8208 (remote_supports_stopped_by_sw_breakpoint)
8209 (remote_stopped_by_hw_breakpoint)
8210 (remote_supports_stopped_by_hw_breakpoint): New functions.
8211 (remote_stopped_by_watchpoint): New function.
8212 (init_remote_ops): Install them.
8213 (_initialize_remote): Register new "set/show remote
8214 swbreak-feature-packet" and "set/show remote
8215 swbreak-feature-packet" commands.
8217 2015-03-04 Pedro Alves <palves@redhat.com>
8219 * btrace.h: Include target/waitstatus.h.
8220 (struct btrace_thread_info) <stop_reason>: New field.
8221 * record-btrace.c (record_btrace_step_thread): Use
8222 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8223 (record_btrace_decr_pc_after_break): Delete.
8224 (record_btrace_stopped_by_sw_breakpoint)
8225 (record_btrace_supports_stopped_by_sw_breakpoint)
8226 (record_btrace_stopped_by_hw_breakpoint)
8227 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
8228 (init_record_btrace_ops): Install them.
8229 * record-full.c (record_full_hw_watchpoint): Delete and replace
8231 (record_full_stop_reason): ... this throughout.
8232 (record_full_exec_insn): Adjust.
8233 (record_full_wait_1): Adjust. No longer re-increment the PC.
8234 (record_full_wait_1): Adjust. Use
8235 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8236 (record_full_stopped_by_watchpoint): Adjust.
8237 (record_full_stopped_by_sw_breakpoint)
8238 (record_full_supports_stopped_by_sw_breakpoint)
8239 (record_full_supports_stopped_by_sw_breakpoint)
8240 (record_full_stopped_by_hw_breakpoint)
8241 (record_full_supports_stopped_by_hw_breakpoint): New functions.
8242 (init_record_full_ops, init_record_full_core_ops): Install them.
8243 * record.c (record_check_stopped_by_breakpoint): New function.
8244 * record.h: Include target/waitstatus.h.
8245 (record_check_stopped_by_breakpoint): New declaration.
8247 2015-03-04 Pedro Alves <palves@redhat.com>
8249 enum lwp_stop_reason -> enum target_stop_reason
8250 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8251 (linux_nat_stopped_by_watchpoint, status_callback)
8252 (linux_nat_wait_1): Adjust.
8253 * linux-nat.h (enum lwp_stop_reason): Delete.
8254 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8255 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8256 * target/waitstatus.h (enum target_stop_reason): New.
8258 2015-03-04 Pedro Alves <palves@redhat.com>
8260 * breakpoint.c (need_moribund_for_location_type): New function.
8261 (bpstat_stop_status): Don't skipping checking moribund locations
8262 of breakpoint types which the target tell caused a stop.
8263 (program_breakpoint_here_p): New function, factored out from ...
8264 (bp_loc_is_permanent): ... this.
8265 (update_global_location_list): Don't create a moribund location if
8266 the target supports reporting stops of the type of the removed
8268 * breakpoint.h (program_breakpoint_here_p): New declaration.
8269 * infrun.c (adjust_pc_after_break): Return early if the target has
8270 already adjusted the PC. Add comments.
8271 (handle_signal_stop): If nothing explains a signal, and the target
8272 tells us the stop was caused by a software breakpoint, check if
8273 there's a breakpoint instruction in the memory. If so, adjust the
8274 PC before presenting the stop to the user. Otherwise, ignore the
8275 trap. If nothing explains a signal, and the target tells us the
8276 stop was caused by a hardware breakpoint, ignore the trap.
8277 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8278 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8279 to_supports_stopped_by_hw_breakpoint>: New fields.
8280 (target_stopped_by_sw_breakpoint)
8281 (target_supports_stopped_by_sw_breakpoint)
8282 (target_stopped_by_hw_breakpoint)
8283 (target_supports_stopped_by_hw_breakpoint): Define.
8284 * target-delegates.c: Regenerate.
8286 2015-03-04 Pedro Alves <palves@redhat.com>
8288 * infrun.c (follow_fork_inferior): Use the whole of the
8289 inferior_ptid and pending_follow.related_pid ptids instead of
8290 building ptids from the process components. Adjust verbose output
8291 to use target_pid_to_str.
8292 * linux-nat.c (linux_child_follow_fork): Use the whole of the
8293 inferior_ptid and pending_follow.related_pid ptids instead of
8294 building ptids from the process components.
8296 2015-03-04 Mark Kettenis <kettenis@gnu.org>
8298 * inf-ptrace.c [PT_GET_PROCESS_STATE]
8299 (inf_ptrace_insert_fork_catchpoint): New function.
8300 (inf_ptrace_remove_fork_catchpoint): New function.
8301 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8303 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8305 * s390-linux-tdep.c (s390_register_name): Return empty string
8306 instead of NULL for registers that shouldn't be visible.
8308 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8310 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8311 XML file for 64-bit targets.
8313 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
8315 * target.h (find_default_create_inferior): Remove declaration.
8316 (find_default_attach): Likewise.
8318 2015-03-03 Pedro Alves <palves@redhat.com>
8320 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8321 Use ptid_get_pid to get the overall process id when resuming all
8324 2015-03-03 Pedro Alves <palves@redhat.com>
8326 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8327 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
8328 * inf-ptrace.c (get_ptrace_pid): New function.
8329 (inf_ptrace_resume): Use it.
8330 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8333 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8335 * nat/linux-btrace.c: Include sys/utsname.h.
8336 (linux_determine_kernel_ptr_bits): New.
8337 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8338 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8341 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8343 * btrace.c (ftrace_update_function): Treat return as tailcall for
8344 "_dl_runtime_resolve".
8346 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8348 * btrace.h (btrace_function) <lbegin, lend>: Remove.
8349 * btrace.c (ftrace_debug): Do not print the line range.
8350 (ftrace_skip_file, ftrace_update_lines): Remove.
8351 (ftrace_new_function): Remove lbegin and lend initialization.
8352 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8353 * record-btrace.c (btrace_compute_src_line_range): New.
8354 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8356 2015-03-02 Pedro Alves <palves@redhat.com>
8358 * infrun.c (follow_exec): Delete all threads of the process except
8359 the event thread. Extended comments.
8361 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8363 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8365 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8367 * utils.h: Remove <stdbool.h> #include.
8368 (producer_is_gcc): Change return type to "int".
8369 * utils.c (producer_is_gcc): Change return type to int.
8370 Return 1 instead of true, and 0 instead of false.
8371 Adjust function documentation accordingly.
8373 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8375 * s390-linux-nat.c (have_regset_vxrs): New static variable.
8376 (s390_linux_fetch_inferior_registers): Handle vector registers, if
8378 (s390_linux_store_inferior_registers): Likewise.
8379 (s390_get_hwcap): Remove function. Embed its logic...
8380 (s390_read_description): ...here. Yield a target description with
8381 vector registers if applicable.
8382 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8383 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8384 "features/s390x-tevx-linux64.c".
8385 (struct gdbarch_tdep) <v0_full_regnum>: New field.
8386 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
8387 for "GNU/Linux-specific registers".
8388 (s390_dwarf_reg_r0l): New enum value.
8389 (s390_dwarf_reg_to_regnum): Support vector registers.
8390 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8391 of GPR lower halves.
8392 (regnum_is_vxr_full): New function.
8393 (s390_register_name): New function.
8394 (s390_pseudo_register_name): Handle v0-v15, which are composed of
8395 f0-f15 and v0l-v15l.
8396 (s390_pseudo_register_type): Likewise.
8397 (s390_pseudo_register_read): Likewise.
8398 (s390_pseudo_register_write): Likewise.
8399 (s390_value_from_register): Account for the fact that values are
8400 placed left-justified in vector registers.
8401 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8402 the vector reggroup and omit them from the general reggroup.
8403 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8404 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8405 (s390_iterate_over_regset_sections): Add iterations for the two
8407 (s390_core_read_description): Yield a target description with
8408 vector registers if applicable.
8409 (s390_gdbarch_init): Handle target descriptions with vector
8410 registers. Add "register_name" gdbarch method.
8411 (_initialize_s390_tdep): Call new tdesc initialization functions.
8412 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8413 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8414 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8415 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8416 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8417 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8418 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8419 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8420 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8421 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8422 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8423 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8424 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8425 (S390_NUM_REGS): Adjust value.
8426 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8427 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8428 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8429 * NEWS: Announce S/390 vector register support.
8431 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8433 * features/s390-tevx-linux64.xml: New file.
8434 * features/s390-vx-linux64.xml: New file.
8435 * features/s390-vx.xml: New file.
8436 * features/s390x-tevx-linux64.xml: New file.
8437 * features/s390x-vx-linux64.xml: New file.
8438 * features/Makefile (WHICH): Add s390-vx-linux64,
8439 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8440 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8441 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8443 * features/s390-tevx-linux64.c: New generated file.
8444 * features/s390-vx-linux64.c: Likewise.
8445 * features/s390x-tevx-linux64.c: Likewise.
8446 * features/s390x-vx-linux64.c: Likewise.
8447 * regformats/s390-tevx-linux64.dat: Likewise.
8448 * regformats/s390-vx-linux64.dat: Likewise.
8449 * regformats/s390x-tevx-linux64.dat: Likewise.
8450 * regformats/s390x-vx-linux64.dat: Likewise.
8452 2015-02-28 Doug Evans <xdje42@gmail.com>
8454 * symtab.h (struct symtab) <next>: Fix comment.
8456 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8458 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8461 2015-02-27 Pedro Alves <palves@redhat.com>
8463 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8465 2015-02-27 Pedro Alves <palves@redhat.com>
8467 * common/common-exceptions.h (exception_none): Declare.
8468 * common/common-exceptions.c (exception_none): Moved from
8470 (exceptions_state_mc_init): Use exception_none.
8471 * exceptions.c (exception_none): Move to
8472 common/common-exceptions.c.
8473 * exceptions.h (exception_none): Move to
8474 common/common-exceptions.h.
8476 2015-02-27 Pedro Alves <palves@redhat.com>
8478 * main.c (catch_command_errors, catch_command_errors_const):
8479 Remove 'mask' argument. Adjust.
8480 (captured_main): Adjust callers.
8482 2015-02-27 Pedro Alves <palves@redhat.com>
8484 * python/python-internal.h: Include "extension-priv.h".
8486 2015-02-27 Pedro Alves <palves@redhat.com>
8488 * breakpoint.h (enum print_stop_action): Move further up in the
8491 2015-02-27 Pedro Alves <palves@redhat.com>
8493 * gdbarch.sh: Include regcache.h.
8494 * gdbarch.h: Regenerate.
8496 2015-02-27 Pedro Alves <palves@redhat.com>
8498 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8499 Remove duplicate const.
8500 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8503 2015-02-27 Pedro Alves <palves@redhat.com>
8505 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8506 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8507 * features/feature_to_c.sh: Tag the generated xml_builtin array
8508 with extern const in C++ mode.
8510 2015-02-27 Tom Tromey <tromey@redhat.com>
8512 * minidebug.c (struct lzma_stream): Rename to ...
8513 (struct gdb_lzma_stream): ... this.
8514 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8516 2015-02-27 Pedro Alves <palves@redhat.com>
8518 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8520 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8521 (mi_cmd_stack_list_variables): Use it.
8523 2015-02-27 Pedro Alves <palves@redhat.com>
8525 * x86-linux-nat.c (u_debugreg_offset): New function.
8526 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8528 2015-02-27 Pedro Alves <palves@redhat.com>
8530 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8532 Include break-common.h.
8534 2015-02-27 Tom Tromey <tromey@redhat.com>
8535 Pedro Alves <palves@redhat.com>
8537 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8538 local used to iterate over enums.
8539 * completer.c (signal_completer): Likewise.
8540 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8541 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8542 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8543 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8544 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8545 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8546 * tui-wingeneral.c (tui_refresh_all): Likewise.
8548 2015-02-27 Pedro Alves <palves@redhat.com>
8550 * target.h: Include "infrun.h".
8552 2015-02-27 Pedro Alves <palves@redhat.com>
8554 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8556 2015-02-27 Pedro Alves <palves@redhat.com>
8558 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8560 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8562 2015-02-27 Pedro Alves <palves@redhat.com>
8564 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8565 cli_mld_erase_entire_line, and make it extern "C".
8566 * common/common-defs.h (EXTERN_C): New.
8567 * completer.c (_rl_completion_prefix_display_length)
8568 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8569 out of gdb_display_match_list_1.
8570 (_rl_qsort_string_compare): Move declaration out of
8571 gdb_display_match_list_1, and make it extern "C".
8572 * defs.h (re_comp): Use EXTERN_C.
8573 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8574 and make it extern "C".
8575 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8576 and make it extern "C".
8577 (main): Move declaration out of maintenance_set_profile_cmd.
8578 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8581 2015-02-27 Pedro Alves <palves@redhat.com>
8583 * python/python.c (GdbMethods): Rename to ...
8584 (python_GdbMethods): ... this and make extern.
8585 (GdbModuleDef): Rename to ...
8586 (python_GdbModuleDef): ... this and make extern.
8588 2015-02-27 Pedro Alves <palves@redhat.com>
8590 * record-btrace.c (set_record_btrace_cmdlist)
8591 (show_record_btrace_cmdlist): Remove redefinitions.
8593 2015-02-27 Tom Tromey <tromey@redhat.com>
8594 Pedro Alves <palves@redhat.com>
8596 * dwarf2-frame.c (enum cfa_how_kind, struct
8597 dwarf2_frame_state_reg_info): Move out of struct
8599 * dwarf2read.c (struct tu_stats): Move out of struct
8601 (struct file_entry): Move out of struct line_header.
8602 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8603 typedef_field_list): Move out of struct field_info.
8604 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8605 Move out of struct dynamic_prop.
8606 (union type_owner, union field_location, struct field, struct
8607 range_bounds, union type_specific): Move out of struct main_type.
8608 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8609 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8610 (struct call_site_target, union call_site_parameter_u, struct
8611 call_site_parameter): Move out of struct call_site.
8612 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8614 (enum srcdest_kind): Move out of struct srcdest.
8615 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8616 * prologue-value.h (enum prologue_value_kind): Move out of struct
8618 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8620 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8621 out of struct field_info.
8622 * symfile.h (struct other_sections): Move out of struct
8624 * symtab.c (struct symbol_cache_slot): Move out struct
8626 * target-descriptions.c (enum tdesc_type_kind): Move out of
8627 typedef struct tdesc_type.
8628 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8629 struct tui_line_or_address.
8630 * value.c (enum internalvar_kind, union internalvar_data): Move
8631 out of struct internalvar.
8632 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8635 2015-02-27 Tom Tromey <tromey@redhat.com>
8636 Pedro Alves <palves@redhat.com>
8638 Rename symbols whose names are reserved C++ keywords throughout.
8640 2015-02-27 Pedro Alves <palves@redhat.com>
8642 * Makefile.in (COMPILER): New, get it from autoconf.
8643 (COMPILE.pre, CC_LD): Use COMPILER.
8644 (CXX): Get from autoconf instead.
8645 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8646 * acinclude.m4: Include build-with-cxx.m4.
8647 * build-with-cxx.m4: New file.
8648 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8649 Disable -Werror by default if building in C++ mode.
8650 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8651 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8652 Run supported-warning-flags tests with the C++ compiler.
8653 Save/restore CXXFLAGS too.
8654 * configure: Regenerate.
8656 2015-02-27 Pedro Alves <palves@redhat.com>
8658 * libiberty.m4: New file.
8659 * acinclude.m4: Include libiberty.m4.
8660 * configure.ac: Call libiberty_INIT.
8661 * config.in, configure: Regenerate.
8663 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8665 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8666 31-bit targets, but 64-bit targets as well.
8667 (s390_gnu_triplet_regexp): New function.
8668 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8669 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8672 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
8674 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8675 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8676 from CONTEXT_DEBUGGER.
8678 2015-02-26 Doug Evans <dje@google.com>
8680 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8682 (set_type_vptr_fieldno): Ditto.
8683 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8684 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8686 2015-02-26 Pedro Alves <palves@redhat.com>
8688 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8689 * complaints.c (vcomplaint): Pass argument FMT directly to
8690 printf-like functions instead of complaint->fmt.
8691 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8692 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8693 * compile/compile-loc2c.c (pushf, unary, binary): Add
8695 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8697 (BINARY): Pass string literal as format string to 'binary'.
8698 * compile/compile-object-load.c (link_callbacks_einfo): Add
8700 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8702 2015-02-26 Pedro Alves <palves@redhat.com>
8704 * windows-termcap.c: Rename to ...
8705 * stub-termcap.c: ... this. Adjust header line.
8706 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8708 * configure: Regenerate.
8709 * configure.ac: Refer to stub-termcap.o instead of
8711 * gdb_curses.h: Mention stub-termcap.c instead of
8714 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8717 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8719 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8721 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8723 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8725 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8726 bfd_canonicalize_symtab.
8728 2015-02-25 John Baldwin <jhb@FreeBSD.org>
8730 * amd64fbsd-nat.c: Include sys/user.h.
8731 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8732 instead of KERN_PS_STRINGS to locate the signal trampoline.
8733 * i386fbsd-nat.c: Include sys/user.h.
8734 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8735 instead of KERN_PS_STRINGS to locate the signal trampoline.
8736 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8737 (amd64fbsd_sigtramp_p): New.
8738 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8739 longer set default values.
8740 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8741 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8742 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8743 (i386fbsd_freebsd4_sigtramp_start)
8744 (i386fbsd_freebsd4_sigtramp_middle)
8745 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8746 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8747 (i386fbsd_sigtramp_p): New.
8748 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8749 longer set default values.
8750 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8752 2015-02-25 John Baldwin <jhb@freebsd.org>
8754 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8755 get_frame_register instead of frame_unwind_register_unsigned.
8757 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8760 * compile/compile-c-support.c (c_compute_program): Change // comment.
8761 * compile/compile-object-load.c (setup_sections): Change // comment.
8763 2015-02-26 Joel Brobecker <brobecker@adacore.com>
8766 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8768 2015-02-23 Pedro Alves <palves@redhat.com>
8770 * remote.c (skip_to_semicolon): New function.
8771 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8772 special case the stop reasons that look like hex numbers
8773 upfront. Instead handle real register numbers after matching
8774 all the known stop reasons.
8776 2015-02-21 Doug Evans <dje@google.com>
8778 PR c++/17976, symtab/17821
8779 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8780 is_in_anonymous. All callers updated.
8781 (find_symbol_in_baseclass): Ditto.
8782 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8783 for symbols in an anonymous namespace.
8784 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8785 DW_AT_name directly.
8786 (dwarf2_name): Convert missing namespace name to
8787 CP_ANONYMOUS_NAMESPACE_STR.
8789 2015-02-20 Pedro Alves <palves@redhat.com>
8791 * linux-nat.c (linux_handle_extended_wait): Call
8792 thread_db_notice_clone whenever a new clone LWP is detected.
8793 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8795 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8796 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8797 (linux_unstop_all_lwps): Declare.
8798 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8799 (thread_get_info_callback): Delete.
8800 (thread_from_lwp): Use td_thr_get_info and record_thread.
8801 (thread_db_attach_lwp): Delete.
8802 (thread_db_notice_clone): New function.
8803 (try_thread_db_load_1): If /proc is mounted and shows the
8804 process'es task list, walk over all LWPs and call thread_from_lwp
8805 instead of relying on td_ta_thr_iter.
8806 (attach_thread): Don't call check_thread_signals here. Split the
8807 tail part of the function (which adds the thread to the core GDB
8809 (record_thread): ... this function. Call check_thread_signals
8811 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8812 call thread_from_lwp.
8813 (thread_db_update_thread_list): Rename to ...
8814 (thread_db_update_thread_list_org): ... this.
8815 (thread_db_update_thread_list): New function.
8816 (thread_db_find_thread_from_tid): Delete.
8817 (thread_db_get_ada_task_ptid): Simplify.
8818 * nat/linux-procfs.c: Include <sys/stat.h>.
8819 (linux_proc_task_list_dir_exists): New function.
8820 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8822 2015-02-20 Pedro Alves <palves@redhat.com>
8824 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8825 main LWP. Handle the case of waitpid returning 0 if we're already
8826 attached to the LWP. Don't set the LWP's last_resume_kind to
8827 resume_stop if we already knew about the LWP.
8828 (linux_nat_filter_event): Add debug logs.
8830 2015-02-20 Pedro Alves <palves@redhat.com>
8832 * target.h (forward_target_decr_pc_after_break): Delete
8835 2015-02-20 Pedro Alves <palves@redhat.com>
8838 * linux-thread-db.c (thread_get_info_callback): Return early if
8839 the thread's lwp id is -1.
8841 2015-02-20 Joel Brobecker <brobecker@adacore.com>
8845 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
8847 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8848 (dtrace_get_probes) Change type of variable 'dof'.
8850 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8852 PR breakpoints/16812
8853 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8854 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8855 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8857 2015-02-19 David Taylor <dtaylor@emc.com>
8859 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8861 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8863 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8865 (tui_putc): Don't call tui_handle_resize_during_io.
8866 (tui_getc): Likewise.
8867 (tui_mld_getc): Likewise.
8868 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8869 (tui_sigwinch_token): New static variable.
8870 (tui_initialize_win): Adjust documentation. Set
8872 (tui_async_resize_screen): New asynchronous callback.
8873 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8874 invoke tui_async_resize_screen.
8876 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8878 * configure: Regenerated.
8879 * configure.ac: Use GDB_AC_TRANSFORM.
8880 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8881 * acinclude.m4: sinclude transform.m4.
8882 * transform.m4: New file.
8883 (GDB_AC_TRANSFORM): New macro.
8885 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8887 * NEWS: Announce the support for DTrace SDT probes.
8889 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8891 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8892 (amd64_dtrace_parse_probe_argument): New function.
8893 (amd64_dtrace_probe_is_enabled): Likewise.
8894 (amd64_dtrace_enable_probe): Likewise.
8895 (amd64_dtrace_disable_probe): Likewise.
8896 (amd64_linux_init_abi): Register the
8897 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8898 `gdbarch_dtrace_disable_probe' and
8899 `gdbarch_dtrace_probe_is_enabled' hooks.
8900 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8901 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8902 (amd64_dtrace_enable_probe_sequence): Likewise.
8903 (amd64_dtrace_disable_probe_sequence): Likewise.
8905 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8907 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8908 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8909 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8911 * Makefile.in (SFILES): dtrace-probe.c added.
8912 * configure: Regenerate.
8913 * dtrace-probe.c: New file.
8914 (SHT_SUNW_dof): New constant.
8915 (dtrace_probe_type): New enum.
8916 (dtrace_probe_arg): New struct.
8917 (dtrace_probe_arg_s): New typedef.
8918 (struct dtrace_probe_enabler): New struct.
8919 (dtrace_probe_enabler_s): New typedef.
8920 (dtrace_probe): New struct.
8921 (dtrace_probe_is_linespec): New function.
8922 (dtrace_dof_sect_type): New enum.
8923 (dtrace_dof_dofh_ident): Likewise.
8924 (dtrace_dof_encoding): Likewise.
8925 (DTRACE_DOF_ENCODE_LSB): Likewise.
8926 (DTRACE_DOF_ENCODE_MSB): Likewise.
8927 (dtrace_dof_hdr): New struct.
8928 (dtrace_dof_sect): Likewise.
8929 (dtrace_dof_provider): Likewise.
8930 (dtrace_dof_probe): Likewise.
8931 (DOF_UINT): New macro.
8932 (DTRACE_DOF_PTR): Likewise.
8933 (DTRACE_DOF_SECT): Likewise.
8934 (dtrace_process_dof_probe): New function.
8935 (dtrace_process_dof): Likewise.
8936 (dtrace_build_arg_exprs): Likewise.
8937 (dtrace_get_arg): Likewise.
8938 (dtrace_get_probes): Likewise.
8939 (dtrace_get_probe_argument_count): Likewise.
8940 (dtrace_can_evaluate_probe_arguments): Likewise.
8941 (dtrace_evaluate_probe_argument): Likewise.
8942 (dtrace_compile_to_ax): Likewise.
8943 (dtrace_probe_destroy): Likewise.
8944 (dtrace_gen_info_probes_table_header): Likewise.
8945 (dtrace_gen_info_probes_table_values): Likewise.
8946 (dtrace_probe_is_enabled): Likewise.
8947 (dtrace_probe_ops): New variable.
8948 (info_probes_dtrace_command): New function.
8949 (_initialize_dtrace_probe): Likewise.
8950 (dtrace_type_name): Likewise.
8952 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8954 * gdbarch.sh (dtrace_parse_probe_argument): New.
8955 (dtrace_probe_is_enabled): Likewise.
8956 (dtrace_enable_probe): Likewise.
8957 (dtrace_disable_probe): Likewise.
8958 * gdbarch.c: Regenerate.
8959 * gdbarch.h: Regenerate.
8961 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8963 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8964 stap_probe_ops for `enable_probe' and `disable_probe'.
8965 * probe.c (enable_probes_command): New function.
8966 (disable_probes_command): Likewise.
8967 (_initialize_probe): Define the cli commands `enable probe' and
8969 (parse_probe_linespec): New function.
8970 (info_probes_for_ops): Use parse_probe_linespec.
8971 * probe.h (probe_ops): New hooks `enable_probe' and
8974 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8976 * probe.c (compute_probe_arg): Moved from stap-probe.c
8977 (compile_probe_arg): Likewise.
8978 (probe_funcs): Likewise.
8979 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8980 (compile_probe_arg): Likewise.
8981 (probe_funcs): Likewise.
8983 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8985 * probe.c (print_ui_out_not_applicables): New function.
8986 (exists_probe_with_pops): Likewise.
8987 (info_probes_for_ops): Do not include column headers for probe
8988 types for which no probe has been actually found on any object.
8989 Also invoke `print_ui_out_not_applicables' in order to match the
8990 column rows with the header when probes of several types are
8992 Print the "Type" column.
8993 * probe.h (probe_ops): Added a new probe operation `type_name'.
8994 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8995 (stap_type_name): New function.
8997 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8999 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
9000 (key_is_command_char): Delete.
9002 2015-02-17 Pedro Alves <palves@redhat.com>
9004 * tui/tui.c (tui_enable): Resize windows before anything
9005 might show a window.
9007 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
9010 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
9011 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
9013 * aarch64-tdep.h (tdesc_aarch64): Declare.
9015 2015-02-12 Mark Wielaard <mjw@redhat.com>
9017 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
9019 2015-02-13 Doug Evans <dje@google.com>
9021 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
9022 anonymous_namespace to is_in_anonymous for consistency with the rest
9024 (cp_lookup_bare_symbol): Fix typo in comment.
9025 (cp_search_static_and_baseclasses): Ditto.
9026 (search_symbol_list): Use vertical space in comment better.
9027 (reset_directive_searched): Ditto. Fix typo.
9028 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
9030 2015-02-13 Yao Qi <yao.qi@arm.com>
9032 * MAINTAINERS: Update my email address.
9034 2015-02-12 Doug Evans <dje@google.com>
9036 * symtab.c (completion_list_add_name): Fix memory leak.
9038 2015-02-12 Doug Evans <dje@google.com>
9040 * completer.c (complete_line): Remove incorrect comment.
9042 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9044 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
9045 (py_print_frame): Use RETURN_MASK_ERROR.
9047 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9049 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
9050 function comment. Wrap all function that can throw in cleanups.
9051 (gdbpy_apply_frame_filter): Wrap all function that can throw in
9054 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9056 * python/py-framefilter.c (py_print_frame): Substitute goto error.
9057 Remove the error label.
9059 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9061 * python/py-framefilter.c (py_print_frame): Put conditional code paths
9062 with goto first, indent the former else codepath left. Put variable
9063 'elided' to a new inner block.
9065 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9067 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
9069 2015-02-11 Pedro Alves <palves@redhat.com>
9071 * xcoffread.c (within_function): Delete.
9073 2015-02-11 Tom Tromey <tromey@redhat.com>
9074 Pedro Alves <palves@redhat.com>
9076 * breakpoint.c (base_breakpoint_ops): Delete.
9077 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
9078 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
9079 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
9080 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
9081 * python/py-arch.c (arch_object_type): Make extern.
9082 * python/py-block.c (block_syms_iterator_object_type): Make extern.
9083 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
9084 * python/py-cmd.c (cmdpy_object_type): Make extern.
9085 * python/py-continueevent.c (continue_event_object_type)
9086 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
9087 parameter. Update all callers.
9088 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
9089 * python/py-exitedevent.c (exited_event_object_type): Make extern.
9090 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
9091 * python/py-function.c (fnpy_object_type): Make extern.
9092 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
9093 * python/py-infevents.c (call_pre_event_object_type)
9094 (inferior_call_post_event_object_type).
9095 (memory_changed_event_object_type): Make extern.
9096 * python/py-infthread.c (thread_object_type): Make extern.
9097 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
9098 * python/py-linetable.c (linetable_entry_object_type)
9099 (linetable_object_type, ltpy_iterator_object_type): Make extern.
9100 * python/py-newobjfileevent.c (new_objfile_event_object_type)
9101 (clear_objfiles_event_object_type): Make extern.
9102 * python/py-objfile.c (objfile_object_type): Make extern.
9103 * python/py-param.c (parmpy_object_type): Make extern.
9104 * python/py-progspace.c (pspace_object_type): Make extern.
9105 * python/py-signalevent.c (signal_event_object_type): Make extern.
9106 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
9107 * python/py-type.c (type_object_type, field_object_type)
9108 (type_iterator_object_type): Make extern.
9109 * python/python.c (python_extension_script_ops)
9110 (python_extension_ops): Make extern.
9111 * stap-probe.c (stap_probe_ops): Make extern.
9113 2015-02-11 Pedro Alves <pedro@codesourcery.com>
9115 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
9116 because the event thread is not the current thread.
9118 2015-02-11 Doug Evans <xdje42@gmail.com>
9120 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
9121 been initialized yet, return NULL.
9123 2015-02-11 Doug Evans <dje@google.com>
9125 * symfile.h (new_symfile_objfile): Delete.
9126 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
9127 All callers updated.
9129 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9131 * tui/tui-io.c (tui_handle_resize_during_io): Call
9132 tui_update_gdb_sizes() after resizing the screen.
9133 * tui/tui.c (tui_enable): Resize the terminal before
9134 calling tui_update_gdb_sizes().
9136 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9138 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
9139 line before printing a newline.
9141 2015-02-11 Mark Wielaard <mjw@redhat.com>
9143 * utils.c (producer_is_gcc): Return true or false.
9145 2015-02-10 Mark Wielaard <mjw@redhat.com>
9147 * utils.h (producer_is_gcc): Change return type to bool. Add major
9149 * utils.c (producer_is_gcc): Likewise.
9150 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
9151 * dwarf2read.c (check_producer): Likewise.
9153 2015-02-10 Pedro Alves <palves@redhat.com>
9155 * infrun.c (displaced_step_fixup): Switch to the event thread
9156 before calling gdbarch_displaced_step_fixup.
9158 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9160 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
9162 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
9164 * ada-varobj.c (ada_name_of_child): Constify parent.
9165 (ada_path_expr_of_child): Same.
9166 (ada_value_of_child): Same.
9167 (ada_type_of_child): Same.
9168 * c-varobj.c (c_is_path_expr_parent): Same.
9169 (c_describe_child): Same.
9170 (c_name_of_child): Same.
9171 (c_value_of_child): Same.
9172 (c_type_of_child): Same.
9173 (cplus_number_of_children): Same.
9174 (cplus_describe_child): Constify var.
9175 (cplus_name_of_child): Constify parent.
9176 (cplus_value_of_child): Same.
9177 (cplus_type_of_child): Same.
9178 * jv-varobj.c (java_name_of_child): Same.
9179 (java_value_of_child): Same.
9180 (java_type_of_child): Same.
9181 * varobj.c (value_of_child): Same.
9182 (varobj_default_is_path_expr_parent): Constify var, parent and return
9184 (varobj_get_path_expr): Constify var, modify path_expr through
9186 (install_new_value): Constify parent.
9187 (value_of_child): Constify parent.
9188 * varobj.h (struct varobj): Constify parent.
9189 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
9191 (varobj_get_path_expr): Constify var.
9192 (varobj_get_path_expr_parent): Constify var and return value.
9194 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
9196 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
9197 (arm_prologue_this_id): Move PC and SP limit checks to
9198 arm_prologue_unwind_stop_reason.
9199 (arm_prologue_unwind) <stop_reason> : Set to
9200 arm_prologue_unwind_stop_reason.
9202 2015-02-09 Mark Wielaard <mjw@redhat.com>
9204 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
9205 DW_LANG_Fortran08 as language_fortran.
9207 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
9210 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
9211 of pointer against char.
9213 2015-02-09 Mark Wielaard <mjw@redhat.com>
9215 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
9216 (c_type_print_modifier): Likewise.
9217 * dwarf2read.c (read_tag_atomic_type): New function.
9218 (read_type_die_1): Handle DW_TAG_atomic_type.
9219 * gdbtypes.c (make_atomic_type): New function.
9220 (recursive_dump_type): Handle TYPE_ATOMIC.
9221 * gdbtypes.h (enum type_flag_values): Renumber.
9222 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
9223 (TYPE_ATOMIC): New macro.
9224 (make_atomic_type): Declare.
9226 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9228 * btrace.c (ftrace_find_call): Skip gaps.
9229 (ftrace_new_function): Initialize level.
9230 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
9231 (ftrace_new_switch): Update
9233 (ftrace_new_gap): New.
9234 (ftrace_update_function): Create new function after gap.
9235 (btrace_compute_ftrace_bts): Create gap on error.
9236 (btrace_stitch_bts): Update parameters. Clear trace if it
9238 (btrace_stitch_trace): Update parameters. Update callers.
9239 (btrace_clear): Reset the number of gaps.
9240 (btrace_insn_get): Return NULL if the iterator points to a gap.
9241 (btrace_insn_number): Return zero if the iterator points to a gap.
9242 (btrace_insn_end): Allow gaps at the end.
9243 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
9244 (btrace_find_insn_by_number): Assert that the found iterator does
9246 (btrace_call_next, btrace_call_prev): Assert that the last function
9248 * btrace.h (btrace_bts_error): New.
9249 (btrace_function): Update comment.
9250 (btrace_function) <insn, insn_offset, number>: Update comment.
9251 (btrace_function) <errcode>: New.
9252 (btrace_thread_info) <ngaps>: New.
9253 (btrace_thread_info) <replay>: Update comment.
9254 (btrace_insn_get): Update comment.
9255 * record-btrace.c (btrace_ui_out_decode_error): New.
9256 (record_btrace_info): Print number of gaps.
9257 (btrace_insn_history, btrace_call_history): Call
9258 btrace_ui_out_decode_error for gaps.
9259 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9261 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9263 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9264 * nat/linux-btrace.c: (btrace_this_cpu): New.
9265 (cpu_supports_bts): Call btrace_this_cpu.
9266 (intel_supports_bts): Add cpu parameter.
9268 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9270 * btrace.h (btrace_insn_class): New.
9271 (btrace_insn) <size, iclass>: New.
9272 * btrace.c (ftrace_find_call): Update parameters. Update users.
9273 Use instruction classification.
9274 (ftrace_new_return): Update parameters. Update users.
9275 (ftrace_update_function): Update parameters. Update users. Use
9276 instruction classification.
9277 (ftrace_update_insns): Update parameters. Update users.
9278 (ftrace_classify_insn): New.
9279 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
9280 TRY_CATCH around call to gdb_insn_length.
9282 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9284 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9285 Update parameters. Update users.
9287 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9289 * btrace.c (parse_xml_btrace_conf_bts): Add size.
9290 (btrace_conf_bts_attributes): New.
9291 (btrace_conf_children): Add attributes.
9292 * common/btrace-common.h (btrace_config_bts): New.
9293 (btrace_config)<bts>: New.
9294 (btrace_config): Update comment.
9295 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9297 * features/btrace-conf.dtd: Increment version. Add size
9298 attribute to bts element.
9299 * record-btrace.c (set_record_btrace_bts_cmdlist,
9300 show_record_btrace_bts_cmdlist): New.
9301 (record_btrace_adjust_size, record_btrace_print_bts_conf,
9302 record_btrace_print_conf, cmd_set_record_btrace_bts,
9303 cmd_show_record_btrace_bts): New.
9304 (record_btrace_info): Call record_btrace_print_conf.
9305 (_initialize_record_btrace): Add commands.
9306 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9307 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9308 (btrace_sync_conf): Synchronize bts size.
9309 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9310 * NEWS: Announce new commands and new packets.
9312 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9314 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9315 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9316 (x86_linux_btrace_conf): New.
9317 (x86_linux_create_target): Initialize to_btrace_conf.
9318 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9319 Check format. Split into this and ...
9320 (linux_enable_bts): ... this.
9321 (linux_btrace_conf): New.
9322 (perf_event_skip_record): Renamed into ...
9323 (perf_event_skip_bts_record): ... this. Updated users.
9324 (linux_disable_btrace): Split into this and ...
9325 (linux_disable_bts): ... this.
9326 (linux_read_btrace): Check format.
9327 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9328 (linux_btrace_conf): New.
9329 (btrace_target_info)<ptid>: Moved.
9330 (btrace_target_info)<conf>: New.
9331 (btrace_target_info): Split into this and ...
9332 (btrace_tinfo_bts): ... this. Updated users.
9333 * btrace.c (btrace_enable): Update parameters.
9334 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9335 (btrace_conf_children, btrace_conf_attributes)
9336 (btrace_conf_elements): New.
9337 * btrace.h (btrace_enable): Update parameters.
9338 (btrace_conf, parse_xml_btrace_conf): New.
9339 * common/btrace-common.h (btrace_config): New.
9340 * feature/btrace-conf.dtd: New.
9341 * record-btrace.c (record_btrace_conf): New.
9342 (record_btrace_cmdlist): New.
9343 (record_btrace_enable_warn, record_btrace_open): Pass
9344 &record_btrace_conf.
9345 (record_btrace_info): Print recording format.
9346 (cmd_record_btrace_bts_start): New.
9347 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9348 (_initialize_record_btrace): Add "record btrace bts" subcommand.
9349 Add "record bts" alias command.
9350 * remote.c (remote_state)<btrace_config>: New.
9351 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9352 (remote_protocol_features): Add qXfer:btrace-conf:read.
9353 (remote_open_1): Call remote_btrace_reset.
9354 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9355 (btrace_target_info)<conf>: New.
9356 (btrace_sync_conf, btrace_read_config): New.
9357 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
9359 (remote_btrace_conf): New.
9360 (init_remote_ops): Initialize to_btrace_conf.
9361 (_initialize_remote): Add qXfer:btrace-conf packet.
9362 * target.c (target_enable_btrace): Update parameters.
9363 (target_btrace_conf): New.
9364 * target.h (target_enable_btrace): Update parameters.
9365 (target_btrace_conf): New.
9366 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9367 (target_ops)<to_enable_btrace>: Update parameters and comment.
9368 (target_ops)<to_btrace_conf>: New.
9369 * target-delegates: Regenerate.
9370 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9371 (target_debug_print_const_struct_btrace_target_info_p): New.
9372 * NEWS: Announce new command and new packet.
9374 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9376 * nat/linux-btrace.h (perf_event_buffer): New.
9377 (btrace_target_info) <buffer, size, data_head>: Replace with ...
9379 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9380 (perf_event_buffer_size, perf_event_buffer_begin)
9381 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9383 (perf_event_new_data): New.
9385 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9387 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9388 * record-btrace.c (record_btrace_open): Remove call to
9389 target_supports_btrace.
9390 * remote.c (remote_supports_btrace): Update parameters.
9391 * target.c (target_supports_btrace): Update parameters.
9392 * target.h (to_supports_btrace, target_supports_btrace): Update
9394 * target-delegates.c: Regenerate.
9395 * target-debug.h (target_debug_print_enum_btrace_format): New.
9396 * nat/linux-btrace.c
9397 (kernel_supports_btrace): Rename into ...
9398 (kernel_supports_bts): ... this. Update users. Update warning text.
9399 (intel_supports_btrace): Rename into ...
9400 (intel_supports_bts): ... this. Update users.
9401 (cpu_supports_btrace): Rename into ...
9402 (cpu_supports_bts): ... this. Update users.
9403 (linux_supports_btrace): Update parameters. Split into this and ...
9404 (linux_supports_bts): ... this.
9405 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9407 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9409 * Makefile.in (SFILES): Add common/btrace-common.c.
9410 (COMMON_OBS): Add common/btrace-common.o.
9411 (btrace-common.o): Add build rules.
9412 * btrace.c (parse_xml_btrace): Update parameters.
9413 (parse_xml_btrace_block): Set format field.
9414 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9415 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9416 (btrace_compute_ftrace): Split into this and...
9417 (btrace_compute_ftrace_bts): ...this.
9418 (btrace_stitch_trace): Split into this and...
9419 (btrace_stitch_bts): ...this.
9420 * btrace.h (parse_xml_btrace): Update parameters.
9421 (make_cleanup_btrace_data): New.
9422 * common/btrace-common.c: New.
9423 * common/btrace-common.h: Include common-defs.h.
9424 (btrace_block_s): Update comment.
9425 (btrace_format): New.
9426 (btrace_format_string): New.
9427 (btrace_data_bts): New.
9429 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9430 * remote.c (remote_read_btrace): Update parameters.
9431 * target.c (target_read_btrace): Update parameters.
9432 * target.h (target_read_btrace): Update parameters.
9433 (target_ops)<to_read_btrace>: Update parameters.
9434 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9435 * target-delegates.c: Regenerate.
9436 * target-debug (target_debug_print_struct_btrace_data_p): New.
9437 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9438 (linux_read_bts): ...this.
9439 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9441 2015-02-06 Doug Evans <dje@google.com>
9443 * remote-m32r-sdi.c: Include symfile.h.
9445 2015-02-06 Doug Evans <dje@google.com>
9447 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9448 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9451 2015-02-06 Pedro Alves <palves@redhat.com>
9453 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9455 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9458 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9459 (enable_count_command): Check args for NULL value.
9461 2015-02-05 Doug Evans <xdje42@gmail.com>
9463 * guile/scm-frame.c: Fix spelling errors in a comment.
9465 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9467 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9468 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9471 2015-02-04 Pedro Alves <palves@redhat.com>
9473 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9474 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9476 (resume_stopped_resumed_lwps): Don't check whether the thread is
9477 marked as executing.
9478 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9480 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9482 * regset.h (struct regset): Add flags field.
9483 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9484 * corelow.c (get_core_register_section): Add warning if the size
9485 exceeds the requested size and the regset does not have the
9486 REGSET_VARIABLE_SIZE flag set.
9487 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9489 * armbsd-tdep.c (armbsd_gregset): Likewise.
9490 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9491 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9492 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9493 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9495 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9497 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9498 For ".reg-xstate", explicitly specify the requested section size
9499 via X86_XSTATE_SIZE instead of just 0 on input and
9500 X86_XSTATE_MAX_SIZE on output.
9501 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9504 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9507 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9508 function type, particularly its SIZE parameter.
9509 * gdbarch.h: Regenerate.
9510 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9511 actual against required size using ">=" instead of "==".
9512 (amd64_collect_fpregset): Likewise.
9513 * i386-tdep.c (i386_supply_gregset): Likewise.
9514 (i386_collect_gregset): Likewise.
9515 (i386_supply_fpregset): Likewise.
9516 (i386_collect_fpregset): Likewise.
9517 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9518 (mips_fill_gregset_wrapper): Likewise.
9519 (mips_supply_fpregset_wrapper): Likewise.
9520 (mips_fill_fpregset_wrapper): Likewise.
9521 (mips64_supply_gregset_wrapper): Likewise.
9522 (mips64_fill_gregset_wrapper): Likewise.
9523 (mips64_supply_fpregset_wrapper): Likewise.
9524 (mips64_fill_fpregset_wrapper): Likewise.
9525 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9526 (am33_supply_fpregset_method): Likewise.
9527 (am33_collect_gregset_method): Likewise.
9528 (am33_collect_fpregset_method): Likewise.
9530 2015-02-04 Doug Evans <dje@google.com>
9531 Pedro Alves <palves@redhat.com>
9532 Eli Zaretskii <eliz@gnu.org>
9535 * tui/tui-command.c (tui_refresh_cmd_win): New function.
9536 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9537 * tui/tui-file.c: #include tui/tui-command.h.
9538 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9539 (tui_file_flush): Refresh command window if stream is gdb_stdout.
9540 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9542 2015-02-04 Pedro Alves <palves@redhat.com>
9545 * event-loop.c (gdb_do_one_event): Add default switch case.
9547 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9549 Filter out inferior gcc option -fpreprocessed.
9550 * compile/compile.c (filter_args): New function.
9553 2015-02-03 Pedro Alves <palves@redhat.com>
9555 * event-loop.c: Don't declare nor define a queue type for
9557 (event_queue): Delete.
9558 (create_event, create_file_event, gdb_event_xfree)
9559 (initialize_event_loop, process_event): Delete.
9560 (gdb_do_one_event): Return as soon as one event is handled.
9561 (handle_file_event): Change prototype. Used the passed in
9562 file_handler pointer and ready_mask instead of looping over all
9564 (gdb_wait_for_event): Update the poll/select timeouts before
9565 blocking. Run event handlers directly instead of queueing events.
9566 Return as soon as one event is handled.
9567 (struct async_event_handler_data): Delete.
9568 (invoke_async_event_handler): Delete.
9569 (check_async_event_handlers): Change return type to int. Run
9570 event handlers directly instead of queueing events. Return as
9571 soon as one event is handled.
9572 (handle_timer_event): Delete.
9573 (update_wait_timeout): New function, factored out from
9575 (poll_timers): Reimplement.
9576 * event-loop.h (initialize_event_loop): Delete declaration.
9577 * top.c (gdb_init): Don't call initialize_event_loop.
9579 2015-02-03 Pedro Alves <palves@redhat.com>
9581 * event-loop.c (clear_async_event_handler): New function.
9582 * event-loop.h (clear_async_event_handler): New declaration.
9583 * record-btrace.c (record_btrace_async): New function.
9584 (init_record_btrace_ops): Install record_btrace_async.
9585 * record-full.c (record_full_async): New function.
9586 (record_full_resume): Don't mark the async event source here.
9587 (init_record_full_ops): Install record_full_async.
9588 (record_full_core_resume): Don't mark the async event source here.
9589 (init_record_full_core_ops): Install record_full_async.
9590 * remote.c (remote_async): Mark and clear the async stop reply
9591 queue event-loop token as appropriate.
9593 2015-02-03 Pedro Alves <palves@redhat.com>
9595 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9596 target_is_async_p instead of target_can_async.
9597 (linux_nat_wait): Use target_is_async_p instead of
9598 target_can_async. Don't enable async here.
9599 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9600 target_is_async_p instead of target_can_async.
9602 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9604 * varobj.h (lang_varobj_ops): Mention which return values need
9607 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9609 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9611 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9614 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9615 results found in the cache.
9617 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9620 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9621 when allocating a new one.
9623 2015-02-01 Tom Tromey <tom@tromey.com>
9625 * MAINTAINERS: Remove myself.
9627 2015-01-31 Doug Evans <xdje42@gmail.com>
9629 * dwarf2read.c (process_structure_scope): Update setting of
9630 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9631 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9632 (set_type_vptr_fieldno): New function.
9633 (internal_type_vptr_basetype): New function.
9634 (set_type_vptr_basetype): New function.
9635 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9637 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9638 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9639 (print_cplus_stuff): ... moved here.
9640 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9641 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9643 (struct cplus_struct_type): ... here. All uses updated.
9644 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9645 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9646 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9647 * stabsread.c (read_tilde_fields): Update setting of
9648 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9650 2015-01-31 Doug Evans <xdje42@gmail.com>
9652 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9654 (cp_print_class_member): Rename local domain to self_type.
9655 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9656 domain_type to self_type.
9657 (set_die_type) <need_gnat_info>: Handle
9658 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9659 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9660 TYPE_SPECIFIC_SELF_TYPE.
9661 * gdbtypes.c (internal_type_self_type): New function.
9662 (set_type_self_type): New function.
9663 (smash_to_memberptr_type): Rename parameter domain to self_type.
9664 Update setting of TYPE_SELF_TYPE.
9665 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9666 (smash_to_method_type): Rename parameter domain to self_type.
9667 Update setting of TYPE_SELF_TYPE.
9668 (check_stub_method): Call smash_to_method_type.
9669 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9670 (copy_type_recursive): Ditto.
9671 * gdbtypes.h (enum type_specific_kind): New value
9672 TYPE_SPECIFIC_SELF_TYPE.
9673 (struct main_type) <type_specific>: New member self_type.
9674 (struct cplus_struct_type) <fn_field.type>: Update comment.
9675 (TYPE_SELF_TYPE): Rewrite.
9676 (internal_type_self_type, set_type_self_type): Declare.
9677 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9679 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9680 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9682 * stabsread.c (read_member_functions): Mark methods with
9683 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9686 2015-01-31 Doug Evans <xdje42@gmail.com>
9688 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9691 2015-01-31 Doug Evans <xdje42@gmail.com>
9693 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9694 or unions. Return zero if union.
9695 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9696 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9698 (compute_vtable_size): Assert only passed structs.
9699 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9701 2015-01-31 Doug Evans <xdje42@gmail.com>
9703 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9706 2015-01-31 Gary Benson <gbenson@redhat.com>
9707 Doug Evans <dje@google.com>
9712 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9714 * common/common-exceptions.h (enum errors)
9715 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9716 * completer.h (get_max_completions_reached_message): New declaration.
9717 (max_completions): Likewise.
9718 (completion_tracker_t): New typedef.
9719 (new_completion_tracker): New declaration.
9720 (make_cleanup_free_completion_tracker): Likewise.
9721 (maybe_add_completion_enum): New enum.
9722 (maybe_add_completion): New declaration.
9723 (throw_max_completions_reached_error): Likewise.
9724 * completer.c (max_completions): New global variable.
9725 (new_completion_tracker): New function.
9726 (free_completion_tracker): Likewise.
9727 (make_cleanup_free_completion_tracker): Likewise.
9728 (maybe_add_completions): Likewise.
9729 (throw_max_completions_reached_error): Likewise.
9730 (complete_line): Remove duplicates and limit result to max_completions
9732 (get_max_completions_reached_message): New function.
9733 (gdb_display_match_list): Handle max_completions.
9734 (_initialize_completer): New declaration and function.
9735 * symtab.c: Include completer.h.
9736 (completion_tracker): New static variable.
9737 (completion_list_add_name): Call maybe_add_completion.
9738 (default_make_symbol_completion_list_break_on_1): Renamed from
9739 default_make_symbol_completion_list_break_on. Maintain
9740 completion_tracker across calls to completion_list_add_name.
9741 (default_make_symbol_completion_list_break_on): New function.
9742 * top.c (init_main): Set rl_completion_display_matches_hook.
9743 * tui/tui-io.c: Include completer.h.
9744 (tui_old_rl_display_matches_hook): New static global.
9745 (tui_rl_display_match_list): Notify user if max-completions reached.
9746 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9747 * NEWS (New Options): Mention set/show max-completions.
9749 2015-01-31 Gary Benson <gbenson@redhat.com>
9751 * symtab.c (struct add_name_data) <code>: New field.
9753 (add_symtab_completions): New function.
9754 (symtab_expansion_callback): Likewise.
9755 (default_make_symbol_completion_list_break_on): Set datum.code.
9756 Move minimal symbol scan before calling expand_symtabs_matching.
9757 Scan known primary symtabs for externs and statics before calling
9758 expand_symtabs_matching. Pass symtab_expansion_callback as
9759 expansion_notify argument to expand_symtabs_matching. Do not scan
9760 primary symtabs for externs and statics after calling
9761 expand_symtabs_matching.
9763 2015-01-31 Gary Benson <gbenson@redhat.com>
9765 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9766 (struct quick_symbol_functions) <expand_symtabs_matching>:
9767 New argument expansion_notify. All uses updated.
9768 (expand_symtabs_matching): New argument expansion_notify.
9770 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9771 Also print expansion notify.
9772 * symtab.c (expand_symtabs_matching_via_partial): Call
9773 expansion_notify whenever a partial symbol table is expanded.
9774 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9775 expansion_notify whenever a symbol table is instantiated.
9777 2015-01-31 Doug Evans <xdje42@gmail.com>
9779 * cli-out.c: #include completer.h, readline/readline.h.
9780 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9781 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9782 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9783 * cli-out.h (cli_display_match_list): Declare.
9784 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9785 (ELLIPSIS_LEN): Ditto.
9786 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9787 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9788 (gdb_fnprint, gdb_print_filename): Ditto.
9789 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9790 (gdb_display_match_list): Ditto.
9791 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9792 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9793 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9794 (match_list_displayer): New struct.
9795 (gdb_display_match_list): Declare.
9796 * top.c (init_main): Set rl_completion_display_matches_hook.
9797 * tui/tui-io.c: #include completer.h.
9798 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9799 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9800 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9801 (tui_mld_getc, tui_mld_read_key): Ditto.
9802 (tui_rl_display_match_list): Rewrite.
9803 (tui_handle_resize_during_io): New arg for_completion. All callers
9806 2015-01-31 Doug Evans <xdje42@gmail.com>
9808 Add symbol lookup cache.
9809 * NEWS: Document new options and commands.
9810 * symtab.c (symbol_cache_key): New static global.
9811 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9812 (SYMBOL_LOOKUP_FAILED): New macro.
9813 (symbol_cache_slot_state): New enum.
9814 (block_symbol_cache): New struct.
9815 (symbol_cache): New struct.
9816 (new_symbol_cache_size, symbol_cache_size): New static globals.
9817 (hash_symbol_entry, eq_symbol_entry): New functions.
9818 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9819 (make_symbol_cache, free_symbol_cache): New functions.
9820 (get_symbol_cache, symbol_cache_cleanup): New function.
9821 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9822 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9823 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9824 (symbol_cache_flush, symbol_cache_dump): New functions.
9825 (maintenance_print_symbol_cache): New function.
9826 (maintenance_flush_symbol_cache): New function.
9827 (symbol_cache_stats): New function.
9828 (maintenance_print_symbol_cache_statistics): New function.
9829 (symtab_new_objfile_observer): New function.
9830 (symtab_free_objfile_observer): New function.
9831 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9832 (_initialize_symtab): Init symbol_cache_key. New parameter
9833 maint symbol-cache-size. New maint commands print symbol-cache,
9834 print symbol-cache-statistics, flush-symbol-cache.
9835 Install new_objfile, free_objfile observers.
9837 2015-01-31 Joel Brobecker <brobecker@adacore.com>
9840 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9843 2015-01-31 Doug Evans <xdje42@gmail.com>
9845 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9846 * auto-load.c: #include ctype.h.
9847 (struct auto_load_pspace_info): Replace member loaded_scripts with
9848 new members loaded_script_files, loaded_script_texts.
9849 (auto_load_pspace_data_cleanup): Update.
9850 (init_loaded_scripts_info): Update.
9851 (get_auto_load_pspace_data_for_loading): Update.
9852 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9854 (maybe_add_script_text): New function.
9855 (clear_section_scripts): Update.
9856 (source_script_file, execute_script_contents): New functions.
9857 (source_section_scripts): Add support for
9858 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9859 (print_scripts): New function.
9860 (auto_load_info_scripts): Also print inlined scripts.
9861 (maybe_print_unsupported_script_warning): Renamed from
9862 unsupported_script_warning_print. All callers updated.
9863 (maybe_print_script_not_found_warning): Renamed from
9864 script_not_found_warning_print. All callers updated.
9865 * extension-priv.h (struct extension_language_script_ops): New member
9866 objfile_script_executor.
9867 * extension.c (ext_lang_objfile_script_executor): New function.
9868 * extension.h (objfile_script_executor_func): New typedef.
9869 (ext_lang_objfile_script_executor): Declare.
9870 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9871 * guile/guile.c (guile_extension_script_ops): Update.
9872 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9873 * python/python.c (python_extension_script_ops): Update.
9874 (gdbpy_execute_objfile_script): New function.
9876 2015-01-31 Eli Zaretskii <eliz@gnu.org>
9878 * tui/tui-io.c (tui_expand_tabs): New function.
9879 (tui_puts, tui_redisplay_readline): Expand TABs into the
9880 appropriate number of spaces.
9881 * tui/tui-regs.c: Include tui-io.h.
9882 (tui_register_format): Call tui_expand_tabs to expand TABs into
9883 the appropriate number of spaces.
9884 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9886 2015-01-30 Doug Evans <dje@google.com>
9888 * NEWS: "info source" command now display producer string if present.
9889 * source.c (source_info): Print producer string if present.
9891 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9893 * varobj.c (varobj_delete): Fix comment.
9895 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9897 * varobj.c (create_child): Modify comment.
9899 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9901 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9903 (ada_name_of_variable): Same.
9904 (ada_path_expr_of_child): Same.
9905 (ada_value_of_variable): Same.
9906 (ada_value_is_changeable_p): Same.
9907 (ada_value_has_mutated): Same.
9908 * c-varobj.c (varobj_is_anonymous_child): Same.
9909 (c_is_path_expr_parent): Same.
9910 (c_number_of_children): Same.
9911 (c_name_of_variable): Same.
9912 (c_path_expr_of_child): Same.
9914 (c_value_of_variable): Same.
9915 (cplus_number_of_children): Same.
9916 (cplus_name_of_variable): Same.
9917 (cplus_path_expr_of_child): Same.
9918 (cplus_value_of_variable): Same.
9919 * jv-varobj.c (java_number_of_children): Same.
9920 (java_name_of_variable): Same.
9921 (java_path_expr_of_child): Same.
9922 (java_value_of_variable): Same.
9923 * varobj.c (number_of_children): Same.
9924 (name_of_variable): Same.
9926 (varobj_ensure_python_env): Same.
9927 (varobj_get_objname): Same.
9928 (varobj_get_expression): Same.
9929 (varobj_get_display_format): Same.
9930 (varobj_get_display_hint): Same.
9931 (varobj_has_more): Same.
9932 (varobj_get_thread_id): Same.
9933 (varobj_get_frozen): Same.
9934 (dynamic_varobj_has_child_method): Same.
9935 (varobj_get_gdb_type): Same.
9936 (is_path_expr_parent): Same.
9937 (varobj_default_is_path_expr_parent): Same.
9938 (varobj_get_language): Same.
9939 (varobj_get_attributes): Same.
9940 (varobj_is_dynamic_p): Same.
9941 (varobj_get_child_range): Same.
9942 (varobj_value_has_mutated): Same.
9943 (varobj_get_value_type): Same.
9944 (number_of_children): Same.
9945 (name_of_variable): Same.
9946 (check_scope): Same.
9947 (varobj_editable_p): Same.
9948 (varobj_value_is_changeable_p): Same.
9949 (varobj_floating_p): Same.
9950 (varobj_default_value_is_changeable_p): Same.
9952 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9954 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9955 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9957 (cplus_path_expr_of_child): Same.
9959 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9961 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9963 (mi_cmd_var_info_expression): Same.
9964 * varobj.c (varobj_get_expression): Mention in the comment that
9965 the result must by freed by the caller.
9967 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9969 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9971 (varobj_update_one): Same.
9972 * varobj.c (update_type_if_necessary): Free curr_type_str and
9974 (varobj_get_type): Specify in comment that the result needs to be
9975 freed by the caller.
9977 2015-01-29 Doug Evans <dje@google.com>
9980 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9982 2015-01-25 Mark Wielaard <mjw@redhat.com>
9984 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9985 * utils.c (producer_is_gcc_ge_4): Likewise.
9986 (producer_is_gcc): New function.
9987 * utils.h (producer_is_gcc): New declaration.
9989 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9991 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9993 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9994 parameter by "addr_stack" parameter.
9995 (resolve_dynamic_range): Replace "addr" parameter by
9996 "stack_addr" parameter. Update function documentation.
9997 Update code accordingly.
9998 (resolve_dynamic_array, resolve_dynamic_union)
9999 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
10000 (resolve_dynamic_type): Update code, following the changes made
10001 to resolve_dynamic_type_internal's interface.
10002 * dwarf2loc.h (struct property_addr_info): New.
10003 (dwarf2_evaluate_property): Replace "address" parameter
10004 by "addr_stack" parameter. Adjust function documentation.
10005 (struct dwarf2_offset_baton): New.
10006 (struct dwarf2_property_baton): Update documentation of
10007 field "referenced_type" to be more general. New field
10008 "offset_info" in union data field.
10009 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
10010 parameter by "addr_stack" parameter. Adjust code accordingly.
10011 Add support for PROP_ADDR_OFFSET properties.
10012 * dwarf2read.c (attr_to_dynamic_prop): Add support for
10013 DW_AT_data_member_location attributes as well. Use case
10014 statements instead of if/else condition.
10016 2015-01-29 Joel Brobecker <brobecker@adacore.com>
10018 * ada-varobj.c (ada_varobj_get_array_number_of_children):
10019 Return zero if PARENT_VALUE is NULL and parent_type's
10020 range type is dynamic.
10022 2015-01-29 Joel Brobecker <brobecker@adacore.com>
10024 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
10025 nonzero if the type's subtype is dynamic.
10026 (resolve_dynamic_range): Also resolve the range's subtype.
10028 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
10030 Pushed by Joel Brobecker <brobecker@adacore.com>.
10031 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
10033 2015-01-27 Doug Evans <dje@google.com>
10035 * NEWS: Mention gdb.Objfile.username.
10036 * python/py-objfile.c (objfpy_get_username): New function.
10037 (objfile_getset): Add "username".
10039 2015-01-24 Mark Wielaard <mjw@redhat.com>
10041 * stack.c (return_command): Markup warning message with _.
10043 2015-01-24 Doug Evans <xdje42@gmail.com>
10045 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
10047 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10049 Fix 100x slowdown regression on DWZ files.
10050 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
10051 (struct line_header): Add offset and offset_in_dwz.
10052 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
10053 (free_line_header_voidp): New declaration.
10054 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
10056 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
10057 (handle_DW_AT_stmt_list): Use line_header_hash.
10058 (free_line_header_voidp): New function.
10059 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
10060 (dwarf_decode_lines): New parameter decode_mapping, use it.
10061 (dwarf2_free_objfile): Free line_header_hash.
10063 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
10066 * valops.c (value_rtti_indirect_type): Catch exception thrown by
10069 2015-01-15 Mark Wielaard <mjw@redhat.com>
10071 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
10073 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
10074 calling_convention an 8 bit bit field.
10075 (TYPE_NO_RETURN): New macro.
10076 * infcmd.c (finish_command): Query if function does not return
10078 * stack.c (return_command): Likewise.
10080 2015-01-23 Pedro Alves <palves@redhat.com>
10082 * linux-nat.c (linux_is_async_p): New macro.
10083 (linux_nat_is_async_p):
10084 (linux_nat_terminal_inferior): Check whether the target can async
10085 instead of whether it is already async.
10086 (linux_nat_terminal_ours): Don't check whether the target is
10088 (linux_async_pipe): Use linux_is_async_p.
10090 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10092 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
10094 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
10095 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
10096 Sort tp_array using tp_array_compar.
10097 (_initialize_thread): Extend thread_apply_all_command help.
10099 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10101 * corelow.c (core_open): Call also thread_command.
10102 * gdbthread.h (thread_command): New prototype moved from ...
10103 * thread.c (thread_command): ... here.
10104 (thread_command): Make it global.
10106 2015-01-22 Pedro Alves <palves@redhat.com>
10108 * configure.ac [*mingw32*]: Check $curses_found instead of
10110 * configure: Regenerate.
10111 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
10112 HAVE_NCURSES_NCURSES_H checks.
10114 2015-01-22 Eli Zaretskii <eliz@gnu.org>
10116 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
10117 fails with the 1st arg NULL, try again with "unknown". Don't test
10118 the "cup" capability: it isn't supported by the Windows port of
10119 ncurses, but the Windows console driver is still capable of
10122 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10124 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
10126 2015-01-22 Eli Zaretskii <eliz@gnu.org>
10128 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
10129 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
10130 reason that "make TAGS" is broken.
10132 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10134 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
10135 and check additional store instructions.
10137 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
10139 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
10141 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
10143 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
10144 ppc_canonicalize_syscall, ppc_linux_syscall_record,
10145 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
10146 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10147 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
10148 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
10149 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
10150 ppc_process_record_op19, ppc_process_record_op31,
10151 ppc_process_record_op59, ppc_process_record_op60,
10152 ppc_process_record_op63): Likewise.
10154 2015-01-20 Joel Brobecker <brobecker@adacore.com>
10156 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
10157 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
10160 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
10162 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
10163 ppc_process_record_op31, ppc_process_record_op59,
10164 ppc_process_record_op60, ppc_process_record_op63,
10165 ppc_process_record): Fix -Wformat warning.
10166 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
10167 Remove unused variables.
10169 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
10171 * MAINTAINERS (Write After Approval): Add "Chen Gang".
10173 2015-01-19 Eli Zaretskii <eliz@gnu.org>
10175 * configure.ac [*mingw32*]: Only add windows-termcap.o to
10176 CONFIG_OBS if not building with a curses library.
10177 * configure: Regenerate.
10179 * windows-termcap.c: Include defs.h. Make the whole body empty if
10180 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
10181 HAVE_NCURSES_NCURSES_H is defined.
10183 2015-01-19 Joel Brobecker <brobecker@adacore.com>
10185 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
10186 from end of line to start of next line.
10188 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10190 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
10191 Scan PLT stub backward for reverse debugging.
10192 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10194 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10195 Ulrich Weigand <uweigand@de.ibm.com>
10197 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
10199 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
10201 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
10202 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
10203 (ppc_linux_init_abi): Set process_record, process_record_signal.
10204 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
10205 ppc_linux_record_tdep to gdbarch_tdep.
10206 (ppc_process_record): New declaration.
10207 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
10208 ppc_process_record_op19, ppc_process_record_op31,
10209 ppc_process_record_op59, ppc_process_record_op60,
10210 ppc_process_record_op63, ppc_process_record): New functions.
10212 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10214 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
10215 rs6000_in_function_epilogue_frame_p and add an argument
10217 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
10218 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
10220 (rs6000_epilogue_frame_unwind): New.
10221 (rs6000_gdbarch_init): Append epilogue unwinder.
10223 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10225 * nat/linux-personality.c: Replace "#ifndef
10226 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
10227 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
10230 2015-01-16 Eli Zaretskii <eliz@gnu.org>
10232 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
10234 (_initialize_tui_win) <border-kind, border-mode>:
10235 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
10236 (tui_set_tab_width_command): Fix the commentary.
10238 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
10240 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
10242 (tui_set_tab_width_command): Delete and recreate the source and
10243 the disassembly windows, to show the effect of the changed tab
10246 * tui/tui-data.h (LINE_PREFIX): Make shorter
10247 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10248 "Thread NNNNN.XXXX" thread ID notation on Windows.
10250 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10252 Fix gcc-5 compilation.
10253 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10255 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10257 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10258 (linux-personality.o): New rule.
10259 * common/common-defs.h: Include <stdint.h>.
10260 * config/aarch64/linux.mh (NATDEPFILES): Include
10261 linux-personality.o.
10262 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10263 * config/arm/linux.mh (NATDEPFILES): Likewise.
10264 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10265 * config/i386/linux.mh (NATDEPFILES): Likewise.
10266 * config/ia64/linux.mh (NATDEPFILES): Likewise.
10267 * config/m32r/linux.mh (NATDEPFILES): Likewise.
10268 * config/m68k/linux.mh (NATDEPFILES): Likewise.
10269 * config/mips/linux.mh (NATDEPFILES): Likewise.
10270 * config/pa/linux.mh (NATDEPFILES): Likewise.
10271 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10272 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10273 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10274 * config/s390/linux.mh (NATDEPFILES): Likewise.
10275 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10276 * config/sparc/linux.mh (NATDEPFILES): Likewise.
10277 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10278 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10279 * defs.h: Remove #include <stdint.h> (moved to
10280 common/common-defs.h).
10281 * linux-nat.c: Include nat/linux-personality.h. Remove #include
10282 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10283 nat/linux-personality.c).
10284 (linux_nat_create_inferior): Remove code to disable address space
10285 randomization (moved to nat/linux-personality.c). Create cleanup
10286 to disable address space randomization.
10287 * nat/linux-personality.c: New file.
10288 * nat/linux-personality.h: Likewise.
10290 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10292 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10293 common/posix-strerror.c.
10294 (posix-strerror.o): New rule.
10295 (mingw-strerror.o): Likewise.
10296 * common/common-utils.h (safe_strerror): Move prototype to here,
10298 * common/common.host: New file.
10299 * common/mingw-strerror.c: Likewise.
10300 * common/posix-strerror.c: Likewise.
10301 * configure: Regenerated.
10302 * configure.ac: Source common/common.host. Add variable
10303 common_host_obs to gdb_host_obs.
10304 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10305 gdb/common/posix-strerror.c when warning about the use of
10307 * mingw-hdep.c (safe_strerror): Remove definition; move it to
10308 common/mingw-strerror.c.
10309 * posix-hdep.c (safe_strerror): Remove definition; move it to
10310 common/posix-hdep.c.
10311 * utils.h (safe_strerror): Remove prototype; move to
10312 common/common-utils.h.
10314 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10316 GDB 7.8.2 released.
10318 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10320 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10321 ___XA type if the array has already been fixed.
10323 2015-01-14 Yao Qi <yao@codesourcery.com>
10325 * Makefile.in (ppc-linux.o): New rule.
10326 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10327 * configure.ac: AC_CHECK_FUNCS(getauxval).
10328 * config.in: Re-generated.
10329 * configure: Re-generated.
10330 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10332 * nat/ppc-linux.c: New file.
10333 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10334 Call ppc64_64bit_inferior_p.
10336 2015-01-14 Yao Qi <yao@codesourcery.com>
10338 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10340 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10341 (PPC_FEATURE_HAS_DFP): Likewise.
10342 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10343 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10344 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10345 Include "nat/ppc-linux.h".
10346 * nat/ppc-linux.h: New file.
10347 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10349 2015-01-14 Pedro Alves <palves@redhat.com>
10352 * breakpoint.c: Include "interps.h".
10353 (bpstat_do_actions_1): Also check whether the interpreter is
10356 2015-01-14 Pedro Alves <palves@redhat.com>
10359 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10360 reinstall if the interpreter is sync.
10362 2015-01-13 Doug Evans <dje@google.com>
10364 * objfiles.c (objfile_filename): New function.
10365 * objfiles.h (objfile_filename): Declare it.
10366 (objfile_name): Add function comment.
10367 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10368 bfd file name (which may be realpath'd), and the original name.
10370 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10372 * NEWS: Create a new section for the next release branch.
10373 Rename the section of the current branch, now that it has
10376 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10378 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10379 * version.in: Bump version to 7.9.50.DATE-cvs.
10381 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10383 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10384 Remove trailing new-line in argument of call to warning.
10386 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10388 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10389 new-line in argument of call to "warning".
10391 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10393 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10394 in static block, then try searching for primitive types.
10396 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
10398 * top.h (gdb_add_history): Declare.
10399 * top.c (command_count): New variable.
10400 (gdb_add_history): New function.
10401 (gdb_safe_append_history): New static function.
10402 (quit_force): Call it.
10403 (command_line_input): Use gdb_add_history instead of
10405 * event-top.c (command_line_handler): Likewise.
10407 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
10410 * darwin-nat.c: Replace <machine/setjmp.h> #include by
10411 <setjmp.h> #include.
10413 2015-01-11 Doug Evans <xdje42@gmail.com>
10415 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10417 2015-01-11 Doug Evans <xdje42@gmail.com>
10420 * NEWS: The "maint demangle" command is renamed as "demangle".
10421 * demangle.c: #include cli/cli-utils.h, language.h.
10422 (demangle_command): New function.
10423 (_initialize_demangle): Add new command "demangle".
10424 * maint.c (maintenance_demangle): Stub out.
10425 (_initialize_maint_cmds): Update help text for "maint demangle",
10426 and mark as deprecated.
10428 2015-01-11 Mark Kettenis <kettenis@gnu.org>
10430 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10431 inferior_thread is a function.
10433 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10435 * Makefile.in (.y.c): Don't munge yacc's #line
10438 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10440 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10441 to prompt for input.
10442 * tui/tui-hooks.c (tui_query_hook): Remove.
10443 (tui_install_hooks): Don't set deprecated_query_hook.
10444 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10445 height calculation. Always update the command window's cur_line.
10447 2015-01-09 Pedro Alves <palves@redhat.com>
10449 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10451 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10453 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10454 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10456 (check_stopped_by_watchpoint): New function.
10457 (save_sigtrap): Reimplement.
10458 (linux_nat_stopped_by_watchpoint): Adjust.
10459 (linux_nat_lp_status_is_event): Delete.
10460 (stop_wait_callback): Only call save_sigtrap after storing the
10462 (status_callback): If the thread had been stopped for a breakpoint
10463 that has since been removed, discard the event and resume the LWP.
10464 (count_events_callback, select_event_lwp_callback): Use
10465 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10466 (cancel_breakpoint): Rename to ...
10467 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10468 stopped for a software breakpoint or hardware breakpoint.
10469 (select_event_lwp): Only give preference to the stepping LWP in
10470 all-stop mode. Adjust comments.
10471 (stop_and_resume_callback): Remove references to new_pending_p.
10472 (linux_nat_filter_event): Likewise. Leave exit events of the
10473 leader thread pending here. Handle signal short circuiting here.
10474 Only call save_sigtrap after storing the pending waitstatus.
10475 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10476 new_pending. Don't handle leaving events the caller is not
10477 interested in pending here, nor handle signal short-circuiting
10478 here. Also give equal priority to all LWPs that have had events
10479 in non-stop mode. If reporting a software breakpoint event,
10480 unadjust the LWP's PC.
10481 * linux-nat.h (enum lwp_stop_reason): New.
10482 (struct lwp_info) <stop_pc>: New field.
10483 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10484 (struct lwp_info) <stop_reason>: New field.
10485 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10487 2015-01-09 Pedro Alves <palves@redhat.com>
10489 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10490 Set the LWP's 'resumed' flag.
10492 2015-01-09 Pedro Alves <palves@redhat.com>
10494 * linux-nat.c (linux_resume_one_lwp): New function.
10495 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10496 (linux_nat_resume): Use lwp_status_pending_p and
10497 linux_resume_one_lwp.
10498 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10499 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10500 (status_callback, running_callback): Use lwp_status_pending_p.
10501 (lwp_status_pending_p): New function.
10502 (stop_and_resume_callback): Use lwp_status_pending_p.
10503 (linux_nat_filter_event): Use linux_resume_one_lwp.
10504 (linux_nat_wait_1): Always use status_callback to look for an LWP
10505 with a pending status. Use linux_resume_one_lwp.
10506 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10507 linux_resume_one_lwp.
10509 2015-01-09 Pedro Alves <palves@redhat.com>
10511 * breakpoint.c (bp_location_inserted_here_p): New function,
10512 factored out from ...
10513 (breakpoint_inserted_here_p): ... here. Use
10514 ALL_BP_LOCATIONS_AT_ADDR.
10515 (software_breakpoint_inserted_here_p): Use
10516 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10518 2014-01-09 Pedro Alves <palves@redhat.com>
10520 Skip enabling event reporting if the kernel supports
10521 PTRACE_EVENT_CLONE.
10522 * linux-thread-db.c: Include "nat/linux-ptrace.h".
10523 (thread_db_use_events): New function.
10524 (try_thread_db_load_1): Check thread_db_use_events before enabling
10526 (update_thread_state): New function.
10527 (attach_thread): Use it. Check thread_db_use_events before
10528 enabling event reporting.
10529 (thread_db_detach): Check thread_db_use_events before disabling
10531 (find_new_threads_callback): Check thread_db_use_events before
10532 enabling event reporting. Update the thread's state if not using
10533 libthread_db events.
10535 2015-01-09 Pedro Alves <palves@redhat.com>
10537 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10538 about to wait for is > 0.
10539 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10540 the kernel thread ID is -1.
10542 2015-01-09 Pedro Alves <palves@redhat.com>
10544 * linux-nat.c (attach_proc_task_lwp_callback): New function.
10545 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10546 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10547 ptrace option flags.
10548 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10550 * nat/linux-procfs.c: Include <dirent.h>.
10551 (linux_proc_get_int): New parameter "warn". Handle it.
10552 (linux_proc_get_tgid): Adjust.
10553 (linux_proc_get_tracerpid): Rename to ...
10554 (linux_proc_get_tracerpid_nowarn): ... this.
10555 (linux_proc_pid_get_state): New function, factored out from
10556 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10558 (linux_proc_pid_is_gone): New function.
10559 (linux_proc_pid_is_stopped): Adjust.
10560 (linux_proc_pid_is_zombie_maybe_warn)
10561 (linux_proc_pid_is_zombie_nowarn): New functions.
10562 (linux_proc_pid_is_zombie): Use
10563 linux_proc_pid_is_zombie_maybe_warn.
10564 (linux_proc_attach_tgid_threads): New function.
10565 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10566 (linux_proc_get_tracerpid): Rename to ...
10567 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10568 (linux_proc_pid_is_gone): New declaration.
10569 (linux_proc_pid_is_zombie): Update comment.
10570 (linux_proc_pid_is_zombie_nowarn): New declaration.
10571 (linux_proc_attach_lwp_func): New typedef.
10572 (linux_proc_attach_tgid_threads): New declaration.
10573 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10574 use nowarn functions.
10575 (linux_ptrace_attach_fail_reason_string): Move here from
10576 gdbserver/linux-low.c and rename.
10577 (ptrace_supports_feature): If the current ptrace options are not
10578 known yet, check them now, instead of asserting.
10579 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10582 2015-01-09 Pedro Alves <palves@redhat.com>
10584 * linux-thread-db.c (thread_db_find_new_threads_silently)
10585 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10586 (find_new_threads_once): Print debug output on gdb_stdlog.
10588 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10589 Pedro Alves <palves@redhat.com>
10591 * compile/compile.c: Include "gdb_wait.h".
10592 (do_rmdir): Check return value, and free 'zap'.
10594 2015-01-08 Pedro Alves <palves@redhat.com>
10595 Yao Qi <yao@codesourcery.com>
10597 * dwarf2loc.c (indirect_pieced_value): Don't call
10598 gdb_sign_extend. Call extract_signed_integer instead.
10599 * utils.c (gdb_sign_extend): Remove.
10600 * utils.h (gdb_sign_extend): Remove declaration.
10602 2015-01-07 Pierre Muller <muller@sourceware.org>
10605 * stabsread.c (define_symbol): Set language for C++ special symbols.
10607 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10609 * inflow.c (initial_gdb_ttystate): Tweak comment.
10611 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10613 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10614 comment documenting function.
10616 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10618 * terminal.h (set_initial_gdb_ttystate): Declare.
10619 * inflow.c (initial_gdb_ttystate): New static variable.
10620 (set_initial_gdb_ttystate): New setter.
10621 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10622 instead of our current terminal state.
10623 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10625 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10627 * guile/scm-type.c (tyscm_array_1): Add comment.
10628 * python/py-type.c (typy_array_1): Add comment.
10630 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10632 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10633 error if N2 is equal to N1 - 1.
10635 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10637 * python/py-type.c (typy_array_1): Do not raise negative-length
10638 exception if N2 is equal to N1 - 1.
10640 2015-01-03 Doug Evans <xdje42@gmail.com>
10642 * c-exp.y: Whitespace cleanup.
10643 (classify_inner_name): Remove extra ;.
10645 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10647 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10650 2015-01-02 Doug Evans <dje@google.com>
10652 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10654 2015-01-02 Doug Evans <dje@google.com>
10656 * symtab.h (struct symbol): Fix typo in comment.
10658 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10660 Update year range in copyright notice of all files.
10662 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10664 * top.c (print_gdb_version): Update copyright year to 2015.
10666 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10668 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
10670 For older changes see ChangeLog-2014.
10676 version-control: never