1 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
3 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
4 * linespec.c (linespec_lexer_lex_string): Same.
6 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8 * NEWS: Mention support for fast tracepoints on aarch64-linux.
10 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
12 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
13 variable. Call aarch64_decode_adr instead of
15 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
16 (aarch64_decode_adr): New function declaration.
17 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
18 (aarch64_decode_adr): New function, factored out from
19 aarch64_decode_adrp to decode both adr and adrp instructions.
21 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
23 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
24 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
25 (aarch64-insn.o): New rule.
26 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
27 (aarch64*-*-linux*): Likewise.
28 * arch/aarch64-insn.c: New file.
29 * arch/aarch64-insn.h: New file.
30 * aarch64-tdep.c: Include arch/aarch64-insn.h.
31 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
33 (decode_add_sub_imm): Rename to ...
34 (aarch64_decode_add_sub_imm): ... this.
35 (decode_adrp): Rename to ...
36 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
37 Declare in arch/aarch64-insn.h.
38 (decode_b): Rename to ...
39 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
40 Declare in arch/aarch64-insn.h.
41 (decode_bcond): Rename to ...
42 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
43 Declare in arch/aarch64-insn.h.
44 (decode_br): Rename to ...
45 (aarch64_decode_br): ... this.
46 (decode_cb): Rename to ...
47 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
48 Declare in arch/aarch64-insn.h.
49 (decode_eret): Rename to ...
50 (aarch64_decode_eret): ... this.
51 (decode_movz): Rename to ...
52 (aarch64_decode_movz): ... this.
53 (decode_orr_shifted_register_x): Rename to ...
54 (aarch64_decode_orr_shifted_register_x): ... this.
55 (decode_ret): Rename to ...
56 (aarch64_decode_ret): ... this.
57 (decode_stp_offset): Rename to ...
58 (aarch64_decode_stp_offset): ... this.
59 (decode_stp_offset_wb): Rename to ...
60 (aarch64_decode_stp_offset_wb): ... this.
61 (decode_stur): Rename to ...
62 (aarch64_decode_stur): ... this.
63 (decode_tb): Rename to ...
64 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
65 Declare in arch/aarch64-insn.h.
66 (aarch64_analyze_prologue): Adjust calls to renamed functions.
68 2015-09-20 Doug Evans <xdje42@gmail.com>
70 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
72 2015-09-20 Doug Evans <xdje42@gmail.com>
74 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
75 variable name that collides with a parameter.
77 2015-09-20 Joel Brobecker <brobecker@adacore.com>
79 * dwarf2loc.c (locexpr_get_frame_base): Renames
80 block_op_get_frame_base.
81 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
82 block_op_get_frame_base by reference to locexpr_get_frame_base.
83 (loclist_get_frame_base): New function, near identical copy of
84 locexpr_get_frame_base.
85 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
86 block_op_get_frame_base by reference to loclist_get_frame_base.
88 2015-09-19 Doug Evans <xdje42@gmail.com>
90 * ravenscar-thread.c (ravenscar_inferior_created): Replace
91 current_inferior ()->gdbarch with its wrapper target_gdbarch.
93 2015-09-18 Doug Evans <xdje42@gmail.com>
95 * linux-thread-db.c (record_thread): Return the created thread.
96 (thread_from_lwp): Likewise.
97 (thread_db_get_thread_local_address): Update.
99 2015-09-18 Doug Evans <xdje42@gmail.com>
101 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
102 move only member demangled_name up. All uses updated.
104 2015-09-18 Doug Evans <xdje42@gmail.com>
106 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
107 kind of minimal symbol in the error message.
108 * objfiles.c (objfile_flavour_name): New function.
109 * objfiles.h (objfile_flavour_name): Declare.
111 2015-09-18 Yao Qi <yao.qi@linaro.org>
113 * nat/aarch64-linux.c: Include elf/common.h,
114 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
115 (aarch64_ps_get_thread_area): New function.
116 * nat/aarch64-linux.h: Include gdb_proc_service.h.
117 (aarch64_ps_get_thread_area): Declare.
118 * aarch64-linux-nat.c (ps_get_thread_area): Call
119 aarch64_ps_get_thread_area.
121 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
123 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
125 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
127 * NEWS: Announce new scheduler-locking mode.
128 * infrun.c (schedlock_replay): New.
129 (scheduler_enums): Add schedlock_replay.
130 (scheduler_mode): Change default to schedlock_replay.
131 (user_visible_resume_ptid): Handle schedlock_replay.
132 (clear_proceed_status_thread): Stop replaying if resumed thread is
134 (schedlock_applies): Handle schedlock_replay.
135 (_initialize_infrun): Document new scheduler-locking mode.
136 * record-btrace.c (record_btrace_resume): Remove code to stop other
137 threads when not replaying the resumed thread.
139 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
141 * record-btrace.c ((record_btrace_will_replay): New.
142 (init_record_btrace_ops): Initialize to_record_will_replay.
143 * record-full.c ((record_full_will_replay): New.
144 (init_record_full_ops): Initialize to_record_will_replay.
145 * target-delegates.c: Regenerated.
146 * target.c (target_record_will_replay): New.
147 * target.h (struct target_ops) <to_record_will_replay>: New.
148 (target_record_will_replay): New.
150 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
152 * record-btrace.c (record_btrace_resume): Call
153 target_record_stop_replaying.
154 (record_btrace_stop_replaying_all): New.
155 (init_record_btrace_ops): Initialize to_record_stop_replaying.
156 * record-full.c (record_full_stop_replaying): New.
157 (init_record_full_ops ): Initialize to_record_stop_replaying.
158 * target-delegates.c: Regenerated.
159 * target.c (target_record_stop_replaying): New.
160 * target.h (struct target_ops) <to_record_stop_replaying>: New.
161 (target_record_stop_replaying): New.
163 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
165 * record-btrace.c (record_btrace_xfer_partial)
166 (record_btrace_store_registers, record_btrace_prepare_to_store):
167 Call record_btrace_is_replaying with inferior_ptid instead of
169 (record_btrace_store_registers): Change error message.
171 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
173 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
174 Update users to pass minus_one_ptid.
175 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
176 * record.c (cmd_record_delete): Pass inferior_ptid to
177 target_record_is_replaying.
178 * target-delegates.c: Regenerated.
179 * target.c (target_record_is_replaying): Add ptid argument.
180 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
182 (target_record_is_replaying): Add ptid argument.
184 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
186 * record-btrace.c (record_btrace_open): Remove non_stop check.
187 * NEWS: Announce that record btrace supports non-stop mode.
189 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
191 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
192 in the TARKET_WAITKIND_NO_HISTORY case.
194 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
196 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
197 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
199 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
201 * record-btrace.c (get_thread_current_frame): New.
202 (record_btrace_start_replaying): Call get_thread_current_frame.
204 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
206 * record-btrace.c (record_btrace_resume_thread): A move request
207 overwrites a previous move request.
208 (record_btrace_find_resume_thread): Removed.
209 (record_btrace_resume): Resume all requested threads.
211 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
213 * record-btrace.c: Include vec.h.
214 (record_btrace_find_thread_to_move): Removed.
215 (btrace_step_no_resumed, btrace_step_again)
216 (record_btrace_stop_replaying_at_end): New.
217 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
218 (record_btrace_single_step_forward): Remove calls to
219 record_btrace_stop_replaying.
220 (record_btrace_step_thread): Do only one step for BTHR_CONT and
221 BTHR_RCONT. Keep threads at the end of their history moving.
222 (record_btrace_wait): Call record_btrace_step_thread for all threads
223 until one reports an event. Call record_btrace_stop_replaying_at_end
224 for the eventing thread.
226 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
228 * record-btrace.c (record_btrace_single_step_forward): Return
229 NO_HISTORY if a step brings us to the end of the execution history.
231 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
233 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
235 (record_btrace_single_step_forward): ... here and
236 (record_btrace_single_step_backward): ... here.
238 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
240 * record-btrace.c (btrace_step_spurious)
241 (record_btrace_single_step_forward)
242 (record_btrace_single_step_backward): New.
243 (record_btrace_step_thread): Call record_btrace_single_step_forward
244 and record_btrace_single_step_backward.
246 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
248 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
249 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
251 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
253 * record-btrace.c (btrace_thread_flag_to_str)
254 (record_btrace_cancel_resume): New.
255 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
256 (record_btrace_resume): Print execution direction.
257 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
258 (record_btrace_wait): Call record_btrace_cancel_resume.
260 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
262 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
263 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
264 (record_btrace_find_thread_to_move): Also accept threads that have
266 (btrace_step_stopped_on_request, record_btrace_stop): New.
267 (record_btrace_step_thread): Support BTHR_STOP.
268 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
269 (init_record_btrace_ops): Initialize to_stop.
271 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
273 * record-btrace.c (record_btrace_wait): Replace non_stop check with
274 target_is_non_stop_p ().
276 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
278 * ada-typeprint.c (print_array_type): Do not describe arrays as
279 packed when they embed dynamic elements.
281 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
283 * symtab.h (address_class): Document that TLS variables
284 are handled by LOC_UNRESOLVED.
285 * findvar.c (default_read_var_value): Don't relocate TLS variables.
286 * printcmd.c (address_info): Don't relocate TLS variables.
288 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
290 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
291 (decode_adrp): Likewise.
292 (decode_b): Likewise.
293 (decode_bcond): Likewise.
294 (decode_br): Likewise.
295 (decode_cb): Likewise.
296 (decode_eret): Likewise.
297 (decode_movz): Likewise.
298 (decode_orr_shifted_register_x): Likewise.
299 (decode_ret): Likewise.
300 (decode_stp_offset): Likewise.
301 (decode_stp_offset_wb): Likewise.
302 (decode_stur): Likewise.
303 (decode_tb): Likewise.
304 (aarch64_analyze_prologue): Likewise.
305 (pass_in_x): Likewise.
306 (pass_in_v): Likewise.
307 (pass_on_stack): Likewise.
308 (aarch64_push_dummy_call): Likewise.
309 (aarch64_extract_return_value): Likewise.
310 (aarch64_store_return_value): Likewise.
311 (aarch64_return_value): Likewise.
312 (aarch64_record_asimd_load_store): Likewise.
313 (aarch64_record_load_store): Likewise.
314 (aarch64_record_data_proc_simd_fp): Likewise.
316 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
318 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
319 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
320 (ppc64_skip_trampoline_code_1): ... here.
321 (ppc64_skip_trampoline_code): New wrapper function.
322 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
324 2015-09-15 Yao Qi <yao.qi@linaro.org>
326 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
328 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
329 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
330 if target_can_do_single_step returns 1.
331 * remote.c (struct vCont_action_support) <s, S>: New fields.
332 (PACKET_vContSupported): New enum.
333 (remote_protocol_features): New element for vContSupported.
334 (remote_query_supported): Append "vContSupported+".
335 (remote_vcont_probe): Remove support_s and support_S, use
336 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
337 vCont packet if c and C actions are not supported.
338 (remote_can_do_single_step): New function.
339 (init_remote_ops): Install it to to_can_do_single_step.
340 (_initialize_remote): Call add_packet_config_cmd.
341 * target.h (struct target_ops) <to_can_do_single_step>: New field.
342 (target_can_do_single_step): New macro.
343 * target-delegates.c: Re-generated.
345 2015-09-15 Yao Qi <yao.qi@linaro.org>
347 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
348 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
349 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
351 (aarch64_siginfo_from_compat_siginfo): New function.
352 * nat/aarch64-linux.h: Include signal.h.
353 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
354 (compat_timer_t, compat_clock_t): Likewise.
355 (struct compat_timeval): New.
356 (union compat_sigval): New.
357 (struct compat_siginfo): New.
358 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
359 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
360 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
361 (cpt_si_band, cpt_si_fd): Likewise.
363 2015-09-14 Pedro Alves <palves@redhat.com>
365 * infrun.c (current_stop_id): New global.
366 (get_stop_id, new_stop_id): New functions.
367 (fetch_inferior_event): Handle normal_stop proceeding the target.
368 (struct stop_context): New.
369 (save_stop_context, release_stop_context_cleanup)
370 (stop_context_changed): New functions.
371 (normal_stop): Return true if the hook-stop changes the stop
373 * infrun.h (get_stop_id): Declare.
374 (normal_stop): Now returns int. Add documentation.
376 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
378 * ada-lang.c (ada_value_ptr_subscript): Update the heading
379 comment. Handle packed arrays.
381 2015-09-14 Pedro Alves <palves@redhat.com>
383 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
384 mention of maint set/show target-non-stop.
386 2015-09-11 Don Breazeal <donb@codesourcery.com>
388 * NEWS: Announce new remote packets for the exec-events
389 feature and the exec-events feature and associated commands.
391 2015-09-11 Don Breazeal <donb@codesourcery.com>
393 * remote.c (remote_exec_event_p): New function.
394 (remote_insert_exec_catchpoint): New function.
395 (remote_remove_exec_catchpoint): New function.
396 (init_extended_remote_ops): Initialize extended_remote_ops
397 members to_insert_exec_catchpoint and
398 to_remove_exec_catchpoint.
400 2015-09-11 Don Breazeal <donb@codesourcery.com>
401 Luis Machado <lgustavo@codesourcery.com>
403 * infrun.c (follow_exec): Use process-style ptid for
404 exec message. Call add_inferior_with_spaces and
406 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
407 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
408 * remote.c (remote_pspace_data): New static variable.
409 (remote_pspace_data_cleanup): New function.
410 (get_remote_exec_file): New function.
411 (set_remote_exec_file_1): New function.
412 (set_remote_exec_file): New function.
413 (show_remote_exec_file): New function.
414 (remote_exec_file): Delete static variable.
415 (anonymous enum) <PACKET_exec_event_feature>: New
416 enumeration constant.
417 (remote_protocol_features): Add entry for exec-events feature.
418 (remote_query_supported): Add client side of qSupported query
419 for exec-events feature.
420 (remote_follow_exec): New function.
421 (remote_parse_stop_reply): Handle 'exec' stop reason.
422 (extended_remote_run, extended_remote_create_inferior): Call
423 get_remote_exec_file and set_remote_exec_file_1.
424 (init_extended_remote_ops) <to_follow_exec>: Initialize new
426 (_initialize_remote): Call
427 register_program_space_data_with_cleanup. Call
428 add_packet_config_cmd for remote exec-events feature.
429 Modify call to add_setshow_string_noescape_cmd for exec-file
430 to use new functions set_remote_exec_file and
431 show_remote_exec_file.
432 * target-debug.h, target-delegates.c: Regenerated.
433 * target.c (target_follow_exec): New function.
434 * target.h (struct target_ops) <to_follow_exec>: New member.
435 (target_follow_exec): Declare new function.
437 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
439 * aarch64-tdep.c (decode_cb): Move up comment describing the
441 (decode_tb): Fix a typo in comment above the function. Move up
442 comment describing the encoding.
444 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
446 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
448 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
451 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
452 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
454 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
456 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
459 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
461 * ada-lang.c (ada_search_struct_field): Constify parameters
463 (xget_renaming_scope): Likewise.
464 (ada_is_redundant_range_encoding): Likewise.
465 (scan_discrim_bound): Likewise.
466 (to_fixed_range_type): Likewise.
468 2015-09-10 Yao Qi <yao.qi@linaro.org>
470 * breakpoint.c (download_tracepoint_locations): New local
471 can_download_tracepoint. Check the result of
472 target_can_download_tracepoint and save it in
473 can_download_tracepoint if there are tracepoints to download.
474 * linux-nat.h (enum tribool): Move it to ...
475 * common/common-types.h: ... here.
477 2015-09-09 Pedro Alves <palves@redhat.com>
479 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
480 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
482 2015-09-09 Pedro Alves <palves@redhat.com>
484 * continuations.c (add_continuation, restore_thread_cleanup)
485 (do_all_continuations_ptid, do_all_continuations_thread_callback)
486 (do_all_continuations_thread, do_all_continuations)
487 (discard_all_continuations_thread_callback)
488 (discard_all_continuations_thread, discard_all_continuations)
489 (add_intermediate_continuation)
490 (do_all_intermediate_continuations_thread_callback)
491 (do_all_intermediate_continuations_thread)
492 (do_all_intermediate_continuations)
493 (discard_all_intermediate_continuations_thread_callback)
494 (discard_all_intermediate_continuations_thread)
495 (discard_all_intermediate_continuations): Delete.
496 * continuations.h (add_continuation, do_all_continuations)
497 (do_all_continuations_thread, discard_all_continuations)
498 (discard_all_continuations_thread, add_intermediate_continuation)
499 (do_all_intermediate_continuations)
500 (do_all_intermediate_continuations_thread)
501 (discard_all_intermediate_continuations)
502 (discard_all_intermediate_continuations_thread): Delete
504 * event-top.c (stdin_event_handler): Delete references to
506 * gdbthread.h (struct thread_info): Delete continuations and
507 intermediate_continuations fields.
508 * inf-loop.c (inferior_event_handler): Remove references to
510 * infrun.c (infrun_thread_stop_requested_callback): Remove
511 references to continuations.
512 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
513 * thread.c: Don't include "continuations.h".
514 (clear_thread_inferior_resources): Remove references to
517 2015-09-09 Pedro Alves <palves@redhat.com>
519 * infcall.c (struct dummy_frame_context_saver): Delete.
520 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
521 (dummy_frame_context_saver_drop)
522 (dummy_frame_context_saver_cleanup)
523 (dummy_frame_context_saver_get_regs)
524 (dummy_frame_context_saver_setup): Delete.
525 * infcall.h (dummy_frame_context_saver_drop)
526 (dummy_frame_context_saver_cleanup)
527 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
529 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
530 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
531 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
533 2015-09-09 Pedro Alves <palves@redhat.com>
535 * breakpoint.c: Include "thread-fsm.h".
536 (struct until_break_command_continuation_args): Delete.
537 (struct until_break_fsm): New.
538 (until_break_fsm_ops): New global.
539 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
540 (until_break_command_continuation): Delete.
541 (until_break_fsm_clean_up): New function.
542 (until_break_fsm_async_reply_reason): New function.
543 (until_break_command): Adjust to create an until_break_fsm instead
545 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
547 * infcmd.c (struct until_next_fsm): New.
548 (until_next_fsm_ops): New global.
549 (new_until_next_fsm, until_next_fsm_should_stop): New function.
550 (until_next_continuation): Delete.
551 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
553 (until_next_command): Adjust to create a new until_next_fsm
554 instead of a continuation.
556 2015-09-09 Pedro Alves <palves@redhat.com>
558 * infcall.c: Include thread_fsm.h.
559 (struct call_return_meta_info): New.
560 (get_call_return_value): New function, factored out from
561 call_function_by_hand_dummy.
562 (struct call_thread_fsm): New.
563 (call_thread_fsm_ops): New global.
564 (new_call_thread_fsm, call_thread_fsm_should_stop)
565 (call_thread_fsm_should_notify_stop): New functions.
566 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
568 (call_function_by_hand_dummy): Create a new call_thread_fsm
569 instance, associate it with the thread, and wait for the FSM to
570 finish. If finished successfully, fetch the function's result
571 value out of the FSM.
572 * infrun.c (fetch_inferior_event): If the FSM says the stop
573 shouldn't be notified, don't call normal_stop.
574 (maybe_remove_breakpoints): New function, factored out from ...
575 (normal_stop): ... here. Simplify.
576 * infrun.h (maybe_remove_breakpoints): Declare.
577 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
578 (thread-fsm.h) <struct thread_fsm_ops>: New field.
579 (thread_fsm_should_notify_stop): Declare.
581 2015-09-09 Pedro Alves <palves@redhat.com>
583 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
584 * breakpoint.c (handle_jit_event): Print debug output.
585 (bpstat_what): Split event callback handling to ...
586 (bpstat_run_callbacks): ... this new function.
587 (momentary_bkpt_print_it): No longer handle bp_finish here.
588 * breakpoint.h (bpstat_run_callbacks): Declare.
589 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
590 <thread_fsm>: New field.
591 (thread_cancel_execution_command): Declare.
592 * infcmd.c: Include thread-fsm.h.
593 (struct step_command_fsm): New.
594 (step_command_fsm_ops): New global.
595 (new_step_command_fsm, step_command_fsm_prepare): New functions.
596 (step_1): Adjust to use step_command_fsm_prepare and
598 (struct step_1_continuation_args): Delete.
599 (step_1_continuation): Delete.
600 (step_command_fsm_should_stop): New function.
602 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
603 (prepare_one_step): New function, based on step_once.
604 (until_next_command): Remove step_multi reference.
605 (struct return_value_info): New.
606 (print_return_value): Rename to ...
607 (print_return_value_1): ... this. New struct return_value_info
609 (print_return_value): Reimplement as wrapper around
610 print_return_value_1.
611 (struct finish_command_fsm): New.
612 (finish_command_continuation): Delete.
613 (finish_command_fsm_ops): New global.
614 (new_finish_command_fsm, finish_command_fsm_should_stop): New
616 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
618 (finish_command_continuation_free_arg): Delete.
619 (finish_command_fsm_async_reply_reason): New.
620 (finish_backward, finish_forward): Change symbol parameter to a
621 finish_command_fsm. Adjust.
622 (finish_command): Create a finish_command_fsm. Adjust.
623 * infrun.c: Include "thread-fsm.h".
624 (clear_proceed_status_thread): Delete the thread's FSM.
625 (infrun_thread_stop_requested_callback): Cancel the thread's
627 (clean_up_just_stopped_threads_fsms): New function.
628 (fetch_inferior_event): Handle the event_thread's should_stop
629 method saying the command isn't done yet.
630 (process_event_stop_test): Run breakpoint callbacks here.
631 (print_stop_event): Rename to ...
632 (print_stop_location): ... this.
633 (restore_current_uiout_cleanup): New function.
634 (print_stop_event): Reimplement.
635 (normal_stop): No longer notify the end_stepping_range observers
636 here handle "step N" nor "finish" here. No longer call
637 print_stop_event here.
638 * infrun.h (struct return_value_info): Forward declare.
639 (print_return_value): Declare.
640 (print_stop_event): Change prototype.
641 * thread-fsm.c: New file.
642 * thread-fsm.h: New file.
643 * thread.c: Include "thread-fsm.h".
644 (thread_cancel_execution_command): New function.
645 (clear_thread_inferior_resources): Call it.
646 * cli/cli-interp.c (cli_on_normal_stop): New function.
647 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
649 * mi/mi-interp.c: Include "thread-fsm.h".
650 (restore_current_uiout_cleanup): Delete.
651 (mi_on_normal_stop): If the thread has an FSM associated, and it
652 finished, ask it for the async-reply-reason to print. Always call
653 print_stop_event here, regardless of the top-level interpreter.
654 Check bpstat_what to tell whether an asynchronous breakpoint hit
656 * tui/tui-interp.c (tui_on_normal_stop): New function.
657 (tui_init): Install tui_on_normal_stop as normal_stop observer.
659 2015-09-09 Pedro Alves <palves@redhat.com>
661 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
662 check whether the target can async.
663 * inf-loop.c (inferior_event_handler): Only call target_async if
664 the target can async.
665 * infcall.c: Include top.h and interps.h.
666 (run_inferior_call): For the interpreter to sync mode while
667 running the infcall. Call wait_sync_command_done instead of
668 wait_for_inferior plus normal_stop.
669 * infcmd.c (prepare_execution_command): Don't check whether the
670 target can async when running in the foreground.
671 (step_1): Delete synchronous case handling.
672 (step_once): Always install a continuation, even in sync mode.
673 (until_next_command, finish_forward): Don't check whether the
675 (attach_command_post_wait, notice_new_inferior): Always install a
676 continuation, even in sync mode.
677 * infrun.c (mark_infrun_async_event_handler): New function.
678 (proceed): In sync mode, mark infrun's event source instead of
679 waiting for events here.
680 (fetch_inferior_event): If the target can't async, do a blocking
682 (prepare_to_wait): In sync mode, mark infrun's event source.
683 (infrun_async_inferior_event_handler): No longer bail out if the
685 * infrun.h (mark_infrun_async_event_handler): New declaration.
686 * linux-nat.c (linux_nat_wait_1): Remove calls to
687 set_sigint_trap/clear_sigint_trap.
688 (linux_nat_terminal_inferior): No longer check whether the target
690 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
692 (mi_execute_command_input_handler): No longer check whether the
693 target is async. Update and simplify comment.
694 * target.c (default_target_wait): New function.
695 * target.h (struct target_ops) <to_wait>: Now defaults to
697 (default_target_wait): Declare.
698 * top.c (wait_sync_command_done): New function, factored out from
700 (maybe_wait_sync_command_done): ... this.
701 * top.h (wait_sync_command_done): Declare.
702 * target-delegates.c: Regenerate.
704 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
706 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
707 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
708 Remove include of sys/utsname.h.
709 (linux_determine_kernel_ptr_bits): Remove.
710 (linux_determine_kernel_start): New.
711 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
713 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
714 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
716 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
719 2015-09-07 Pedro Alves <palves@redhat.com>
721 * guile/guile-internal.h (as_a_scm_t_subr): New.
722 * guile/guile.c (misc_guile_functions): Use it.
723 * guile/scm-arch.c (arch_functions): Use it.
724 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
726 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
727 * guile/scm-cmd.c (command_functions): Use it.
728 * guile/scm-disasm.c (disasm_functions): Use it.
729 * guile/scm-exception.c (exception_functions)
730 (private_exception_functions): Use it.
731 * guile/scm-frame.c (frame_functions)
732 * guile/scm-gsmob.c (gsmob_functions): Use it.
733 * guile/scm-iterator.c (iterator_functions): Use it.
734 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
735 * guile/scm-math.c (math_functions): Use it.
736 * guile/scm-objfile.c (objfile_functions): Use it.
737 * guile/scm-param.c (parameter_functions): Use it.
738 * guile/scm-ports.c (port_functions, private_port_functions): Use
740 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
741 * guile/scm-progspace.c (pspace_functions): Use it.
742 * guile/scm-string.c (string_functions): Use it.
743 * guile/scm-symbol.c (symbol_functions): Use it.
744 * guile/scm-symtab.c (symtab_functions): Use it.
745 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
747 * guile/scm-value.c (value_functions): Use it.
749 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
751 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
752 (tui_next_win): Likewise.
753 (tui_prev_win): Likewise.
754 (tui_partial_win_by_name): Likewise.
755 (tui_init_generic_part): Likewise.
756 (init_content_element): Likewise.
757 (tui_del_window): Likewise.
758 (tui_free_window): Likewise.
759 (tui_del_data_windows): Likewise.
760 (tui_free_data_content): Likewise.
761 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
762 * tui/tui-regs.c (tui_show_register_group): Likewise.
763 * tui/tui-win.c (tui_resize_all): Likewise.
764 (tui_set_focus): Likewise.
765 (tui_set_win_height): Likewise.
766 (make_invisible_and_set_new_height): Likewise.
767 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
768 * tui/tui-wingeneral.c (make_visible): Likewise.
770 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
772 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
774 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
776 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
778 * dbxread.c (dbx_end_psymtab): Likewise.
779 * gnu-nat.c (gnu_write_inferior): Likewise.
780 * mdebugread.c (cross_ref): Likewise.
781 * p-valprint.c (pascal_val_print): Likewise.
782 * xcoffread.c (xcoff_end_psymtab): Likewise.
784 2015-09-04 Yao Qi <yao.qi@linaro.org>
786 * NEWS: Mention the aarch64 multi-arch debugging support.
788 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
790 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
791 type instead of a TYPE_CODE_INT one for the string_char_type
792 and the ada_primitive_type_char types.
794 2015-09-03 Yao Qi <yao.qi@linaro.org>
796 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
797 Move code to aarch64_linux_region_ok_for_watchpoint. Call
798 aarch64_linux_region_ok_for_watchpoint.
799 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
801 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
804 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
806 * gdb_obstack.h (obstack_strdup): Declare.
807 * gdb_obstack.c (obstack_strdup): Define.
808 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
809 * gdbarch.c: Regenerate.
810 * gdbarch.h: Regenerate.
811 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
813 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
815 * gdbtypes.c (copy_type_recursive): Update documentation.
817 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
819 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
822 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
824 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
826 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
828 * solib-svr4.c (solib_event_probe_action): Call
829 get_probe_argument_count using TRY...CATCH.
830 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
832 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
834 * probe.h (struct probe_ops) <get_probe_argument_count,
835 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
836 the comment that the function can throw an exception.
837 (get_probe_argument_count): Likewise.
838 (evaluate_probe_argument): Likewise.
839 * stap-probe.c (stap_get_opcode): Call error instead of
841 (stap_get_expected_argument_type): Likewise. Add argument
842 'probe'. Improve error message by mentioning the probe's name.
843 (stap_parse_probe_arguments): Adjust call to
844 stap_get_expected_argument_type.
845 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
846 not zero. Call internal_error if GDB requests an argument but the
847 probe has no arguments.
849 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
851 * ada-lang.c (ada_resolve_function): Do not ask the user what
852 match to use when in completion mode.
854 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
856 * tui/tui-data.c (tui_win_name): Make local variable const, remove
859 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
861 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
862 call_abi using XSHAL_ABI macro.
864 2015-08-29 Doug Evans <xdje42@gmail.com>
866 * symtab.h (struct symbol): Tweak comment.
868 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
870 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
871 gdbarch obstack instead of on the heap. Update commentary
874 2015-08-28 Joel Brobecker <brobecker@adacore.com>
878 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
880 * NEWS: Update entry about non-8-bits addressable memory.
882 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
885 2014-11-06 Doug Evans <xdje42@gmail.com>
886 * solib.c (solib_global_lookup): Fetch arch from objfile,
889 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
891 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
892 attempt to relocate a TLS variable offset.
894 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
896 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
897 registered yet. Set inferior_ptid while calling target_read_memory.
899 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
901 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
902 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
903 * linux-nat.c (check_stopped_by_breakpoint): Use
904 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
906 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
908 * linux-thread-db.c (thread_db_get_thread_local_address): If the
909 thread was not yet discovered, use thread_from_lwp instead of
910 calling thread_db_find_new_threads_1.
912 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
914 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
917 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
919 * NEWS: Document support for non-8-bits addressable memory.
921 2015-08-27 Pedro Alves <palves@redhat.com>
923 * configure.ac: Remove AC_TYPE_SIGNAL call.
924 * configure, config.in: Regenerate.
926 2015-08-27 Pedro Alves <palves@redhat.com>
928 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
929 * extension-priv.h: Include signal.h.
930 (struct signal_handler) <handler>: Change type to sighandler_t.
931 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
932 * inflow.c (sigint_ours, sigquit_ours): Change type to
934 (child_terminal_inferior): Remove casts.
935 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
936 (osig): Change type to sighandler_t.
937 * nto-procfs.c (ofunc): Change type to sighandler_t.
938 (procfs_wait): Remove casts.
939 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
940 * remote-sim.c (gdbsim_wait): Use sighandler_t.
941 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
943 2015-08-27 Pedro Alves <palves@redhat.com>
945 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
946 * gnulib/aclocal.m4: Renegerate.
947 * gnulib/config.in: Renegerate.
948 * gnulib/configure: Renegerate.
949 * gnulib/import/Makefile.am: Update.
950 * gnulib/import/Makefile.in: Regenerate.
951 * gnulib/import/m4/gnulib-cache.m4: Update.
952 * gnulib/import/m4/gnulib-comp.m4: Update.
953 * gnulib/import/m4/signal_h.m4: New file.
954 * gnulib/import/signal.in.h: New file.
956 2015-08-27 Pedro Alves <palves@redhat.com>
958 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
959 (MIN_MEMORY_PACKET_SIZE): New.
960 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
961 (get_memory_packet_size): Adjust. No longer limit the max packet
963 (set_memory_packet_size): Adjust, and remove dead code.
964 (remote_check_symbols): Use xmalloc and a cleanup instead of
966 (remote_packet_size): No longer cap the packet size.
967 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
969 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
971 * compile/compile.c (compile_to_object): Mention language in
974 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
976 * target.c (target_pre_inferior): Unset attach_flag.
978 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
980 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
981 * gdbarch.c: Re-generate.
983 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
985 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
986 function with the XNEW-family equivalent.
987 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
988 * ada-exp.y (write_ambiguous_var): Likewise.
989 * ada-lang.c (resolve_subexp): Likewise.
990 (user_select_syms): Likewise.
991 (assign_aggregate): Likewise.
992 (ada_evaluate_subexp): Likewise.
993 (cache_symbol): Likewise.
994 * addrmap.c (allocate_key): Likewise.
995 (addrmap_create_mutable): Likewise.
996 * aix-thread.c (sync_threadlists): Likewise.
997 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
998 (alpha_gdbarch_init): Likewise.
999 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1000 * arm-linux-nat.c (arm_linux_add_process): Likewise.
1001 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1002 * arm-tdep.c (push_stack_item): Likewise.
1003 (arm_displaced_step_copy_insn): Likewise.
1004 (arm_gdbarch_init): Likewise.
1005 (_initialize_arm_tdep): Likewise.
1006 * avr-tdep.c (push_stack_item): Likewise.
1007 * ax-general.c (new_agent_expr): Likewise.
1008 * block.c (block_initialize_namespace): Likewise.
1009 * breakpoint.c (alloc_counted_command_line): Likewise.
1010 (update_dprintf_command_list): Likewise.
1011 (parse_breakpoint_sals): Likewise.
1012 (decode_static_tracepoint_spec): Likewise.
1013 (until_break_command): Likewise.
1014 (clear_command): Likewise.
1015 (update_global_location_list): Likewise.
1016 (get_breakpoint_objfile_data) Likewise.
1017 * btrace.c (ftrace_new_function): Likewise.
1018 (btrace_set_insn_history): Likewise.
1019 (btrace_set_call_history): Likewise.
1020 * buildsym.c (add_symbol_to_list): Likewise.
1021 (record_pending_block): Likewise.
1022 (start_subfile): Likewise.
1023 (start_buildsym_compunit): Likewise.
1024 (push_subfile): Likewise.
1025 (end_symtab_get_static_block): Likewise.
1026 (buildsym_init): Likewise.
1027 * cli/cli-cmds.c (source_command): Likewise.
1028 * cli/cli-decode.c (add_cmd): Likewise.
1029 * cli/cli-script.c (build_command_line): Likewise.
1030 (setup_user_args): Likewise.
1031 (realloc_body_list): Likewise.
1032 (process_next_line): Likewise.
1033 (copy_command_lines): Likewise.
1034 * cli/cli-setshow.c (do_set_command): Likewise.
1035 * coff-pe-read.c (read_pe_exported_syms): Likewise.
1036 * coffread.c (coff_locate_sections): Likewise.
1037 (coff_symtab_read): Likewise.
1038 (coff_read_struct_type): Likewise.
1039 * common/cleanups.c (make_my_cleanup2): Likewise.
1040 * common/common-exceptions.c (throw_it): Likewise.
1041 * common/filestuff.c (make_cleanup_close): Likewise.
1042 * common/format.c (parse_format_string): Likewise.
1043 * common/queue.h (DEFINE_QUEUE_P): Likewise.
1044 * compile/compile-object-load.c (munmap_list_add): Likewise.
1045 (compile_object_load): Likewise.
1046 * compile/compile-object-run.c (compile_object_run): Likewise.
1047 * compile/compile.c (append_args): Likewise.
1048 * corefile.c (specify_exec_file_hook): Likewise.
1049 * cp-support.c (make_symbol_overload_list): Likewise.
1050 * cris-tdep.c (push_stack_item): Likewise.
1051 (cris_gdbarch_init): Likewise.
1052 * ctf.c (ctf_trace_file_writer_new): Likewise.
1053 * dbxread.c (init_header_files): Likewise.
1054 (add_new_header_file): Likewise.
1055 (init_bincl_list): Likewise.
1056 (dbx_end_psymtab): Likewise.
1057 (start_psymtab): Likewise.
1058 (dbx_end_psymtab): Likewise.
1059 * dcache.c (dcache_init): Likewise.
1060 * dictionary.c (dict_create_hashed): Likewise.
1061 (dict_create_hashed_expandable): Likewise.
1062 (dict_create_linear): Likewise.
1063 (dict_create_linear_expandable): Likewise.
1064 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
1065 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
1066 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
1067 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1068 (decode_frame_entry_1): Likewise.
1069 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
1070 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1071 * dwarf2read.c (dwarf2_has_info): Likewise.
1072 (create_signatured_type_table_from_index): Likewise.
1073 (dwarf2_read_index): Likewise.
1074 (dw2_get_file_names_reader): Likewise.
1075 (create_all_type_units): Likewise.
1076 (read_cutu_die_from_dwo): Likewise.
1077 (init_tu_and_read_dwo_dies): Likewise.
1078 (init_cutu_and_read_dies): Likewise.
1079 (create_all_comp_units): Likewise.
1080 (queue_comp_unit): Likewise.
1081 (inherit_abstract_dies): Likewise.
1082 (read_call_site_scope): Likewise.
1083 (dwarf2_add_field): Likewise.
1084 (dwarf2_add_typedef): Likewise.
1085 (dwarf2_add_member_fn): Likewise.
1086 (attr_to_dynamic_prop): Likewise.
1087 (abbrev_table_alloc_abbrev): Likewise.
1088 (abbrev_table_read_table): Likewise.
1089 (add_include_dir): Likewise.
1090 (add_file_name): Likewise.
1091 (dwarf_decode_line_header): Likewise.
1092 (dwarf2_const_value_attr): Likewise.
1093 (dwarf_alloc_block): Likewise.
1094 (parse_macro_definition): Likewise.
1095 (set_die_type): Likewise.
1096 (write_psymtabs_to_index): Likewise.
1097 (create_cus_from_index): Likewise.
1098 (dwarf2_create_include_psymtab): Likewise.
1099 (process_psymtab_comp_unit_reader): Likewise.
1100 (build_type_psymtab_dependencies): Likewise.
1101 (read_comp_units_from_section): Likewise.
1102 (compute_compunit_symtab_includes): Likewise.
1103 (create_dwo_unit_in_dwp_v1): Likewise.
1104 (create_dwo_unit_in_dwp_v2): Likewise.
1105 (read_func_scope): Likewise.
1106 (process_structure_scope): Likewise.
1107 (mark_common_block_symbol_computed): Likewise.
1108 (load_partial_dies): Likewise.
1109 (dwarf2_symbol_mark_computed): Likewise.
1110 * elfread.c (elf_symfile_segments): Likewise.
1111 (elf_read_minimal_symbols): Likewise.
1112 * environ.c (make_environ): Likewise.
1113 * eval.c (evaluate_subexp_standard): Likewise.
1114 * event-loop.c (create_file_handler): Likewise.
1115 (create_async_signal_handler): Likewise.
1116 (create_async_event_handler): Likewise.
1117 (create_timer): Likewise.
1118 * exec.c (build_section_table): Likewise.
1119 * fbsd-nat.c (fbsd_remember_child): Likewise.
1120 * fork-child.c (fork_inferior): Likewise.
1121 * frv-tdep.c (new_variant): Likewise.
1122 * gdbarch.sh (gdbarch_alloc): Likewise.
1123 (append_name): Likewise.
1124 * gdbtypes.c (rank_function): Likewise.
1125 (copy_type_recursive): Likewise.
1126 (add_dyn_prop): Likewise.
1127 * gnu-nat.c (make_proc): Likewise.
1128 (make_inf): Likewise.
1129 (gnu_write_inferior): Likewise.
1130 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1131 (build_std_type_info_type): Likewise.
1132 * guile/scm-param.c (compute_enum_list): Likewise.
1133 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
1134 * guile/scm-value.c (gdbscm_value_call): Likewise.
1135 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1136 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
1137 (read_unwind_info): Likewise.
1138 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1139 * infcall.c (dummy_frame_context_saver_setup): Likewise.
1140 (call_function_by_hand_dummy): Likewise.
1141 * infcmd.c (step_once): Likewise.
1142 (finish_forward): Likewise.
1143 (attach_command): Likewise.
1144 (notice_new_inferior): Likewise.
1145 * inferior.c (add_inferior_silent): Likewise.
1146 * infrun.c (add_displaced_stepping_state): Likewise.
1147 (save_infcall_control_state): Likewise.
1148 (save_inferior_ptid): Likewise.
1149 (_initialize_infrun): Likewise.
1150 * jit.c (bfd_open_from_target_memory): Likewise.
1151 (jit_gdbarch_data_init): Likewise.
1152 * language.c (add_language): Likewise.
1153 * linespec.c (decode_line_2): Likewise.
1154 * linux-nat.c (add_to_pid_list): Likewise.
1155 (add_initial_lwp): Likewise.
1156 * linux-thread-db.c (add_thread_db_info): Likewise.
1157 (record_thread): Likewise.
1158 (info_auto_load_libthread_db): Likewise.
1159 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
1160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1161 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1162 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
1163 * macrocmd.c (macro_define_command): Likewise.
1164 * macroexp.c (gather_arguments): Likewise.
1165 * macroscope.c (sal_macro_scope): Likewise.
1166 * macrotab.c (new_macro_table): Likewise.
1167 * mdebugread.c (push_parse_stack): Likewise.
1168 (parse_partial_symbols): Likewise.
1169 (parse_symbol): Likewise.
1170 (psymtab_to_symtab_1): Likewise.
1171 (new_block): Likewise.
1172 (new_psymtab): Likewise.
1173 (mdebug_build_psymtabs): Likewise.
1174 (add_pending): Likewise.
1175 (elfmdebug_build_psymtabs): Likewise.
1176 * mep-tdep.c (mep_gdbarch_init): Likewise.
1177 * mi/mi-main.c (mi_execute_command): Likewise.
1178 * mi/mi-parse.c (mi_parse_argv): Likewise.
1179 * minidebug.c (lzma_open): Likewise.
1180 * minsyms.c (terminate_minimal_symbol_table): Likewise.
1181 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
1182 * mips-tdep.c (mips_gdbarch_init): Likewise.
1183 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1184 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1185 * mt-tdep.c (mt_registers_info): Likewise.
1186 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
1187 * nat/linux-btrace.c (linux_enable_bts): Likewise.
1188 (linux_enable_pt): Likewise.
1189 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
1190 (linux_xfer_osdata_processgroups): Likewise.
1191 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1192 * nto-procfs.c (procfs_meminfo): Likewise.
1193 * objc-lang.c (start_msglist): Likewise.
1194 (selectors_info): Likewise.
1195 (classes_info): Likewise.
1196 (find_methods): Likewise.
1197 * objfiles.c (allocate_objfile): Likewise.
1198 (update_section_map): Likewise.
1199 * osabi.c (gdbarch_register_osabi): Likewise.
1200 (gdbarch_register_osabi_sniffer): Likewise.
1201 * parse.c (start_arglist): Likewise.
1202 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
1203 (hwdebug_insert_point): Likewise.
1204 * printcmd.c (display_command): Likewise.
1205 (ui_printf): Likewise.
1206 * procfs.c (create_procinfo): Likewise.
1207 (load_syscalls): Likewise.
1208 (proc_get_LDT_entry): Likewise.
1209 (proc_update_threads): Likewise.
1210 * prologue-value.c (make_pv_area): Likewise.
1211 (pv_area_store): Likewise.
1212 * psymtab.c (extend_psymbol_list): Likewise.
1213 (init_psymbol_list): Likewise.
1214 (allocate_psymtab): Likewise.
1215 * python/py-inferior.c (add_thread_object): Likewise.
1216 * python/py-param.c (compute_enum_values): Likewise.
1217 * python/py-value.c (valpy_call): Likewise.
1218 * python/py-varobj.c (py_varobj_iter_next): Likewise.
1219 * python/python.c (ensure_python_env): Likewise.
1220 * record-btrace.c (record_btrace_start_replaying): Likewise.
1221 * record-full.c (record_full_reg_alloc): Likewise.
1222 (record_full_mem_alloc): Likewise.
1223 (record_full_end_alloc): Likewise.
1224 (record_full_core_xfer_partial): Likewise.
1225 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
1226 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
1227 * remote-notif.c (remote_notif_state_allocate): Likewise.
1228 * remote.c (demand_private_info): Likewise.
1229 (remote_notif_stop_alloc_reply): Likewise.
1230 (remote_enable_btrace): Likewise.
1231 * reverse.c (save_bookmark_command): Likewise.
1232 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1233 * rx-tdep.c (rx_gdbarch_init): Likewise.
1234 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1235 * ser-go32.c (dos_get_tty_state): Likewise.
1236 (dos_copy_tty_state): Likewise.
1237 * ser-mingw.c (ser_windows_open): Likewise.
1238 (ser_console_wait_handle): Likewise.
1239 (ser_console_get_tty_state): Likewise.
1240 (make_pipe_state): Likewise.
1241 (net_windows_open): Likewise.
1242 * ser-unix.c (hardwire_get_tty_state): Likewise.
1243 (hardwire_copy_tty_state): Likewise.
1244 * solib-aix.c (solib_aix_new_lm_info): Likewise.
1245 * solib-dsbt.c (dsbt_current_sos): Likewise.
1246 (dsbt_relocate_main_executable): Likewise.
1247 * solib-frv.c (frv_current_sos): Likewise.
1248 (frv_relocate_main_executable): Likewise.
1249 * solib-spu.c (spu_bfd_fopen): Likewise.
1250 * solib-svr4.c (lm_info_read): Likewise.
1251 (svr4_copy_library_list): Likewise.
1252 (svr4_default_sos): Likewise.
1253 * source.c (find_source_lines): Likewise.
1254 (line_info): Likewise.
1255 (add_substitute_path_rule): Likewise.
1256 * spu-linux-nat.c (spu_bfd_open): Likewise.
1257 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1258 * stabsread.c (dbx_lookup_type): Likewise.
1259 (read_type): Likewise.
1260 (read_member_functions): Likewise.
1261 (read_struct_fields): Likewise.
1262 (read_baseclasses): Likewise.
1263 (read_args): Likewise.
1264 (_initialize_stabsread): Likewise.
1265 * stack.c (func_command): Likewise.
1266 * stap-probe.c (handle_stap_probe): Likewise.
1267 * symfile.c (addrs_section_sort): Likewise.
1268 (addr_info_make_relative): Likewise.
1269 (load_section_callback): Likewise.
1270 (add_symbol_file_command): Likewise.
1271 (init_filename_language_table): Likewise.
1272 * symtab.c (create_filename_seen_cache): Likewise.
1273 (sort_search_symbols_remove_dups): Likewise.
1274 (search_symbols): Likewise.
1275 * target.c (make_cleanup_restore_target_terminal): Likewise.
1276 * thread.c (new_thread): Likewise.
1277 (enable_thread_stack_temporaries): Likewise.
1278 (make_cleanup_restore_current_thread): Likewise.
1279 (thread_apply_all_command): Likewise.
1280 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1281 * top.c (gdb_readline_wrapper): Likewise.
1282 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1283 * tracepoint.c (trace_find_line_command): Likewise.
1284 (all_tracepoint_actions_and_cleanup): Likewise.
1285 (make_cleanup_restore_current_traceframe): Likewise.
1286 (get_uploaded_tp): Likewise.
1287 (get_uploaded_tsv): Likewise.
1288 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1289 (tui_alloc_win_info): Likewise.
1290 (tui_alloc_content): Likewise.
1291 (tui_add_content_elements): Likewise.
1292 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1293 (tui_set_disassem_content): Likewise.
1294 * ui-file.c (ui_file_new): Likewise.
1295 (stdio_file_new): Likewise.
1296 (tee_file_new): Likewise.
1297 * utils.c (make_cleanup_restore_integer): Likewise.
1298 (add_internal_problem_command): Likewise.
1299 * v850-tdep.c (v850_gdbarch_init): Likewise.
1300 * valops.c (find_oload_champ): Likewise.
1301 * value.c (allocate_value_lazy): Likewise.
1302 (record_latest_value): Likewise.
1303 (create_internalvar): Likewise.
1304 * varobj.c (install_variable): Likewise.
1305 (new_variable): Likewise.
1306 (new_root_variable): Likewise.
1308 (_initialize_varobj): Likewise.
1309 * windows-nat.c (windows_make_so): Likewise.
1310 * x86-nat.c (x86_add_process): Likewise.
1311 * xcoffread.c (arrange_linetable): Likewise.
1312 (allocate_include_entry): Likewise.
1313 (process_linenos): Likewise.
1314 (SYMBOL_DUP): Likewise.
1315 (xcoff_start_psymtab): Likewise.
1316 (xcoff_end_psymtab): Likewise.
1317 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1318 * xtensa-tdep.c (xtensa_register_type): Likewise.
1319 * gdbarch.c: Regenerate.
1320 * gdbarch.h: Regenerate.
1322 2015-08-25 Don Breazeal <donb@codesourcery.com>
1324 * infrun.c (follow_exec): Re-order operations for
1325 handling follow-exec-mode "new".
1326 (handle_inferior_event_1): Assign ecs->event_thread
1327 to the current thread.
1328 * remote.c (get_remote_arch_state): Add an assertion.
1330 2015-08-26 Pedro Alves <palves@redhat.com>
1332 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1334 2015-08-25 Pedro Alves <palves@redhat.com>
1337 * defs.h (maybe_quit): Declare.
1338 (QUIT): Now calls maybe_quit.
1339 * event-loop.c (clear_async_signal_handler)
1340 (async_signal_handler_is_marked): New functions.
1341 * event-loop.h (async_signal_handler_is_marked)
1342 (clear_async_signal_handler): New declarations.
1343 * remote.c (remote_check_pending_interrupt): New function.
1344 (interrupt_query): Use make_cleanup_restore_target_terminal. No
1345 longer check whether the target is async. If waiting for a stop
1346 reply, and a Ctrl-C as been sent to the target, offer to
1347 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1348 Otherwise do not disconnect and throw a quit.
1349 (_initialize_remote): Install remote_check_pending_interrupt as
1350 to_check_pending_interrupt.
1351 * target.c (target_check_pending_interrupt): New function.
1352 * target.h (struct target_ops) <to_check_pending_interrupt>: New
1354 (target_check_pending_interrupt): New declaration.
1355 * utils.c (maybe_quit): New function.
1356 * target-delegates.c: Regenerate.
1358 2015-08-25 Yao Qi <yao.qi@linaro.org>
1360 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1361 Rename local variable pid to tid, and get lwpid of lwp. Update
1364 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
1366 * ada-lang.c (ada_read_var_value): Add a var_block argument
1367 and pass it to default_read_var_value.
1368 * block.c (block_static_link): New accessor.
1369 * block.h (block_static_link): Declare it.
1370 * buildsym.c (finish_block_internal): Add a static_link
1371 argument. If there is a static link, associate it to the new
1373 (finish_block): Add a static link argument and pass it to
1374 finish_block_internal.
1375 (end_symtab_get_static_block): Update calls to finish_block and
1376 to finish_block_internal.
1377 (end_symtab_with_blockvector): Update call to
1378 finish_block_internal.
1379 * buildsym.h: Forward-declare struct dynamic_prop.
1380 (struct context_stack): Add a static_link field.
1381 (finish_block): Add a static link argument.
1382 * c-exp.y: Remove an obsolete comment (evaluation of variables
1383 already start from the selected frame, and now they climb *up*
1384 the call stack) and propagate the block information to the
1385 produced expression.
1386 * d-exp.y: Likewise.
1387 * f-exp.y: Likewise.
1388 * go-exp.y: Likewise.
1389 * jv-exp.y: Likewise.
1390 * m2-exp.y: Likewise.
1391 * p-exp.y: Likewise.
1392 * coffread.c (coff_symtab_read): Update calls to finish_block.
1393 * dbxread.c (process_one_symbol): Likewise.
1394 * xcoffread.c (read_xcoff_symtab): Likewise.
1395 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1396 "sym" parameter to struct block_symbol, update its uses and pass
1397 its block to calls to read_var_value.
1398 (convert_symbol_sym): Update the calls to convert_one_symbol.
1399 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1400 call to read_var_value.
1401 * dwarf2loc.c (block_op_get_frame_base): New.
1402 (dwarf2_block_frame_base_locexpr_funcs): Implement the
1403 get_frame_base method.
1404 (dwarf2_block_frame_base_loclist_funcs): Likewise.
1405 (dwarf2locexpr_baton_eval): Add a frame argument and use it
1406 instead of the selected frame in order to evaluate the
1408 (dwarf2_evaluate_property): Add a frame argument. Update call
1409 to dwarf2_locexpr_baton_eval to provide a frame in available and
1410 to handle the absence of address stack.
1411 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1412 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1414 (read_func_scope): Record any available static link description.
1415 Update call to finish_block.
1416 (read_lexical_block_scope): Update call to finish_block.
1417 * findvar.c (follow_static_link): New.
1418 (get_hosting_frame): New.
1419 (default_read_var_value): Add a var_block argument. Use
1420 get_hosting_frame to handle non-local references.
1421 (read_var_value): Add a var_block argument and pass it to the
1422 LA_READ_VAR_VALUE method.
1423 * gdbtypes.c (resolve_dynamic_range): Update calls to
1424 dwarf2_evaluate_property.
1425 (resolve_dynamic_type_internal): Likewise.
1426 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1427 read_var_value, passing it the block coming from symbol lookup.
1428 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1429 read_var_value (TODO).
1430 * infcmd.c (finish_command_continuation): Update call to
1431 read_var_value, passing it the block coming from symbol lookup.
1432 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1433 * language.h (struct language_defn): Add a var_block argument to
1434 the LA_READ_VAR_VALUE method.
1435 * objfiles.c (struct static_link_htab_entry): New.
1436 (static_link_htab_entry_hash): New.
1437 (static_link_htab_entry_eq): New.
1438 (objfile_register_static_link): New.
1439 (objfile_lookup_static_link): New.
1440 (free_objfile): Free the STATIC_LINKS hashed map if needed.
1441 * objfiles.h: Include hashtab.h.
1442 (struct objfile): Add a static_links field.
1443 (objfile_register_static_link): New.
1444 (objfile_lookup_static_link): New.
1445 * printcmd.c (print_variable_and_value): Update call to
1447 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1448 * python/py-frame.c (frapy_read_var): Update call to
1449 read_var_value, passing it the block coming from symbol lookup.
1450 * python/py-framefilter.c (extract_sym): Add a sym_block
1451 parameter and set the pointed value to NULL (TODO).
1452 (enumerate_args): Update call to extract_sym.
1453 (enumerate_locals): Update calls to extract_sym and to
1455 * python/py-symbol.c (sympy_value): Update call to
1456 read_var_value (TODO).
1457 * stack.c (read_frame_local): Update call to read_var_value.
1458 (read_frame_arg): Likewise.
1459 (return_command): Likewise.
1460 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1462 (struct symbol): Add a block field.
1463 (SYMBOL_BLOCK): New accessor.
1464 * valops.c (value_of_variable): Remove frame/block handling and
1465 pass the block argument to read_var_value, which does this job
1467 (value_struct_elt_for_reference): Update calls to
1469 (value_of_this): Pass the block found to read_var_value.
1470 * value.h (read_var_value): Add a var_block argument.
1471 (default_read_var_value): Likewise.
1473 2015-08-25 Yao Qi <yao.qi@linaro.org>
1475 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1476 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1477 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1479 2015-08-25 Yao Qi <yao.qi@linaro.org>
1481 * Makefile.in (aarch64-liunx.o): New rule.
1482 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1483 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1484 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1485 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1487 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1488 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1489 * nat/aarch64-linux.c: New file.
1490 * nat/aarch64-linux.h: New file.
1492 2015-08-25 Yao Qi <yao.qi@linaro.org>
1494 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1495 lwp_arch_private_info and ptid_of_lwp.
1497 2015-08-25 Yao Qi <yao.qi@linaro.org>
1499 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1500 Move it to nat/aarch64-linux-hw-point.c.
1501 (debug_reg_change_callback): Likewise.
1502 (aarch64_notify_debug_reg_change): :Likewise.
1503 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1504 (aarch64_dr_update_callback_param): New.
1505 (debug_reg_change_callback): New function.
1506 (aarch64_notify_debug_reg_change): Likewise.
1507 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1508 Remove the declaration.
1510 2015-08-25 Yao Qi <yao.qi@linaro.org>
1512 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1513 Call current_lwp_ptid.
1515 2015-08-25 Yao Qi <yao.qi@linaro.org>
1517 * aarch64-linux-nat.c (debug_reg_change_callback): Use
1520 2015-08-25 Yao Qi <yao.qi@linaro.org>
1522 * aarch64-linux-nat.c (debug_reg_change_callback): Call
1523 ptid_get_pid rather than ptid_get_lwp.
1525 2015-08-24 Pedro Alves <palves@redhat.com>
1527 * NEWS (New commands): Mention set/show remote
1528 multiprocess-extensions-packet.
1529 * remote.c (remote_query_supported): Only tell the server to use
1530 the multiprocess extensions if the user hasn't force-disabled them
1531 with "set remote multiprocess-extensions-packet off".
1533 2015-08-24 Pedro Alves <palves@redhat.com>
1535 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1536 1029a8112290f6eee9d7878a391c49db42c999bd.
1537 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1539 * gnulib/import/Makefile.am: Update.
1540 * gnulib/import/Makefile.in: Update.
1541 * gnulib/import/alloca.in.h: Update.
1542 * gnulib/import/basename-lgpl.c: Update.
1543 * gnulib/import/canonicalize-lgpl.c: Update.
1544 * gnulib/import/config.charset: Update.
1545 * gnulib/import/dirent.in.h: Update.
1546 * gnulib/import/dirfd.c: Update.
1547 * gnulib/import/dirname-lgpl.c: Update.
1548 * gnulib/import/dirname.h: Update.
1549 * gnulib/import/dosname.h: Update.
1550 * gnulib/import/errno.in.h: Update.
1551 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1552 * gnulib/import/extra/snippet/c++defs.h: Update.
1553 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1554 * gnulib/import/extra/update-copyright: Update.
1555 * gnulib/import/float+.h: Update.
1556 * gnulib/import/float.c: Update.
1557 * gnulib/import/float.in.h: Update.
1558 * gnulib/import/fnmatch.c: Update.
1559 * gnulib/import/fnmatch.in.h: Update.
1560 * gnulib/import/fnmatch_loop.c: Update.
1561 * gnulib/import/fpucw.h: Update.
1562 * gnulib/import/frexp.c: Update.
1563 * gnulib/import/frexpl.c: Update.
1564 * gnulib/import/gettimeofday.c: Update.
1565 * gnulib/import/inttypes.in.h: Update.
1566 * gnulib/import/isnan.c: Update.
1567 * gnulib/import/isnand-nolibm.h: Update.
1568 * gnulib/import/isnand.c: Update.
1569 * gnulib/import/isnanl-nolibm.h: Update.
1570 * gnulib/import/isnanl.c: Update.
1571 * gnulib/import/itold.c: Update.
1572 * gnulib/import/localcharset.c: Update.
1573 * gnulib/import/localcharset.h: Update.
1574 * gnulib/import/lstat.c: Update.
1575 * gnulib/import/m4/00gnulib.m4: Update.
1576 * gnulib/import/m4/absolute-header.m4: Update.
1577 * gnulib/import/m4/alloca.m4: Update.
1578 * gnulib/import/m4/canonicalize.m4: Update.
1579 * gnulib/import/m4/codeset.m4: Update.
1580 * gnulib/import/m4/configmake.m4: Update.
1581 * gnulib/import/m4/dirent_h.m4: Update.
1582 * gnulib/import/m4/dirfd.m4: Update.
1583 * gnulib/import/m4/dirname.m4: Update.
1584 * gnulib/import/m4/double-slash-root.m4: Update.
1585 * gnulib/import/m4/eealloc.m4: Update.
1586 * gnulib/import/m4/errno_h.m4: Update.
1587 * gnulib/import/m4/exponentd.m4: Update.
1588 * gnulib/import/m4/exponentl.m4: Update.
1589 * gnulib/import/m4/extensions.m4: Update.
1590 * gnulib/import/m4/extern-inline.m4: Update.
1591 * gnulib/import/m4/fcntl-o.m4: Update.
1592 * gnulib/import/m4/float_h.m4: Update.
1593 * gnulib/import/m4/fnmatch.m4: Update.
1594 * gnulib/import/m4/fpieee.m4: Update.
1595 * gnulib/import/m4/frexp.m4: Update.
1596 * gnulib/import/m4/frexpl.m4: Update.
1597 * gnulib/import/m4/gettimeofday.m4: Update.
1598 * gnulib/import/m4/glibc21.m4: Update.
1599 * gnulib/import/m4/gnulib-cache.m4: Update.
1600 * gnulib/import/m4/gnulib-common.m4: Update.
1601 * gnulib/import/m4/gnulib-comp.m4: Update.
1602 * gnulib/import/m4/gnulib-tool.m4: Update.
1603 * gnulib/import/m4/include_next.m4: Update.
1604 * gnulib/import/m4/inttypes-pri.m4: Update.
1605 * gnulib/import/m4/inttypes.m4: Update.
1606 * gnulib/import/m4/isnand.m4: Update.
1607 * gnulib/import/m4/isnanl.m4: Update.
1608 * gnulib/import/m4/largefile.m4: Update.
1609 * gnulib/import/m4/localcharset.m4: Update.
1610 * gnulib/import/m4/locale-fr.m4: Update.
1611 * gnulib/import/m4/locale-ja.m4: Update.
1612 * gnulib/import/m4/locale-zh.m4: Update.
1613 * gnulib/import/m4/longlong.m4: Update.
1614 * gnulib/import/m4/lstat.m4: Update.
1615 * gnulib/import/m4/malloc.m4: Update.
1616 * gnulib/import/m4/malloca.m4: Update.
1617 * gnulib/import/m4/math_h.m4: Update.
1618 * gnulib/import/m4/mbrtowc.m4: Update.
1619 * gnulib/import/m4/mbsinit.m4: Update.
1620 * gnulib/import/m4/mbsrtowcs.m4: Update.
1621 * gnulib/import/m4/mbstate_t.m4: Update.
1622 * gnulib/import/m4/memchr.m4: Update.
1623 * gnulib/import/m4/memmem.m4: Update.
1624 * gnulib/import/m4/mmap-anon.m4: Update.
1625 * gnulib/import/m4/multiarch.m4: Update.
1626 * gnulib/import/m4/nocrash.m4: Update.
1627 * gnulib/import/m4/off_t.m4: Update.
1628 * gnulib/import/m4/pathmax.m4: Update.
1629 * gnulib/import/m4/readlink.m4: Update.
1630 * gnulib/import/m4/rename.m4: Update.
1631 * gnulib/import/m4/rmdir.m4: Update.
1632 * gnulib/import/m4/ssize_t.m4: Update.
1633 * gnulib/import/m4/stat.m4: Update.
1634 * gnulib/import/m4/stdbool.m4: Update.
1635 * gnulib/import/m4/stddef_h.m4: Update.
1636 * gnulib/import/m4/stdint.m4: Update.
1637 * gnulib/import/m4/stdio_h.m4: Update.
1638 * gnulib/import/m4/stdlib_h.m4: Update.
1639 * gnulib/import/m4/string_h.m4: Update.
1640 * gnulib/import/m4/strstr.m4: Update.
1641 * gnulib/import/m4/strtok_r.m4: Update.
1642 * gnulib/import/m4/sys_socket_h.m4: Update.
1643 * gnulib/import/m4/sys_stat_h.m4: Update.
1644 * gnulib/import/m4/sys_time_h.m4: Update.
1645 * gnulib/import/m4/sys_types_h.m4: Update.
1646 * gnulib/import/m4/time_h.m4: Update.
1647 * gnulib/import/m4/unistd_h.m4: Update.
1648 * gnulib/import/m4/warn-on-use.m4: Update.
1649 * gnulib/import/m4/wchar_h.m4: Update.
1650 * gnulib/import/m4/wchar_t.m4: Update.
1651 * gnulib/import/m4/wctype_h.m4: Update.
1652 * gnulib/import/m4/wint_t.m4: Update.
1653 * gnulib/import/malloc.c: Update.
1654 * gnulib/import/malloca.c: Update.
1655 * gnulib/import/malloca.h: Update.
1656 * gnulib/import/math.in.h: Update.
1657 * gnulib/import/mbrtowc.c: Update.
1658 * gnulib/import/mbsinit.c: Update.
1659 * gnulib/import/mbsrtowcs-impl.h: Update.
1660 * gnulib/import/mbsrtowcs-state.c: Update.
1661 * gnulib/import/mbsrtowcs.c: Update.
1662 * gnulib/import/memchr.c: Update.
1663 * gnulib/import/memmem.c: Update.
1664 * gnulib/import/pathmax.h: Update.
1665 * gnulib/import/readlink.c: Update.
1666 * gnulib/import/ref-add.sin: Update.
1667 * gnulib/import/ref-del.sin: Update.
1668 * gnulib/import/rename.c: Update.
1669 * gnulib/import/rmdir.c: Update.
1670 * gnulib/import/same-inode.h: Update.
1671 * gnulib/import/stat.c: Update.
1672 * gnulib/import/stdbool.in.h: Update.
1673 * gnulib/import/stddef.in.h: Update.
1674 * gnulib/import/stdint.in.h: Update.
1675 * gnulib/import/stdio.c: Update.
1676 * gnulib/import/stdio.in.h: Update.
1677 * gnulib/import/stdlib.in.h: Update.
1678 * gnulib/import/str-two-way.h: Update.
1679 * gnulib/import/streq.h: Update.
1680 * gnulib/import/string.in.h: Update.
1681 * gnulib/import/stripslash.c: Update.
1682 * gnulib/import/strnlen1.c: Update.
1683 * gnulib/import/strnlen1.h: Update.
1684 * gnulib/import/strstr.c: Update.
1685 * gnulib/import/strtok_r.c: Update.
1686 * gnulib/import/sys_stat.in.h: Update.
1687 * gnulib/import/sys_time.in.h: Update.
1688 * gnulib/import/sys_types.in.h: Update.
1689 * gnulib/import/time.in.h: Update.
1690 * gnulib/import/unistd.in.h: Update.
1691 * gnulib/import/verify.h: Update.
1692 * gnulib/import/wchar.in.h: Update.
1693 * gnulib/import/wctype.in.h: Update.
1694 * gnulib/import/gettimeofday.c: New file.
1695 * gnulib/import/m4/absolute-header.m4: New file.
1696 * gnulib/import/m4/gettimeofday.m4: New file.
1697 * gnulib/import/m4/sys_socket_h.m4: New file.
1698 * gnulib/import/m4/sys_time_h.m4: New file.
1699 * gnulib/import/stdio.c: Delete file.
1700 * gnulib/import/sys_time.in.h: New file.
1702 2015-08-24 Pedro Alves <palves@redhat.com>
1704 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1705 * common/gdb_sys_time.h: New file.
1706 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1707 * gdb_select.h: Likewise.
1708 * gdb_usleep.c: Likewise.
1709 * maint.c: Likewise.
1710 * mi/mi-main.c: Likewise.
1711 * mi/mi-parse.h: Likewise.
1712 * remote-fileio.c: Likewise.
1713 * remote-m32r-sdi.c: Likewise.
1714 * remote.c: Likewise.
1715 * ser-base.c: Likewise.
1716 * ser-pipe.c: Likewise.
1717 * ser-tcp.c: Likewise.
1718 * ser-unix.c: Likewise.
1719 * symfile.c: Likewise.
1720 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
1721 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1722 * utils.c: Likewise.
1724 2015-08-24 Pedro Alves <palves@redhat.com>
1726 * NEWS: Mention removed support for the various ROM monitors.
1727 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1728 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1729 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1731 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1733 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1734 dsrec.o from gdb_target_obs.
1735 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1736 from gdb_target_obs.
1737 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1739 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1740 dink32-rom.o from gdb_target_obs.
1741 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1742 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1743 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1744 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1746 2015-08-21 Pedro Alves <palves@redhat.com>
1748 * frame.c (null_frame_id): Explicitly zero-initialize.
1750 2015-08-21 Tom Tromey <tromey@redhat.com>
1752 * dwarf2read.c (struct dwarf2_section_info): Rename field
1753 'asection' to 'section'.
1754 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1755 (dwarf2_locate_sections, dwarf2_locate_sections)
1756 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1757 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1758 (dwarf2_locate_v2_dwp_sections): Adjust.
1760 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1762 * top.h (gdb_in_secondary_prompt_p): Declare.
1763 * top.c (gdb_secondary_prompt_depth): Define.
1764 (gdb_in_secondary_prompt_p): Define.
1765 (gdb_readline_wrapper_cleanup): Decrement
1766 gdb_secondary_prompt_depth.
1767 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1768 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1769 are in a secondary prompt.
1771 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1773 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1776 2015-08-21 Gary Benson <gbenson@redhat.com>
1778 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1780 2015-08-21 Gary Benson <gbenson@redhat.com>
1782 * target.h (struct target_ops) <to_fileio_open>: New argument
1783 warn_if_slow. Update comment. All implementations updated.
1784 (target_fileio_open_warn_if_slow): New declaration.
1785 * target.c (target_fileio_open): Renamed as...
1786 (target_fileio_open_1): ...this. New argument warn_if_slow.
1787 Pass warn_if_slow to implementation. Update debug printing.
1788 (target_fileio_open): New function.
1789 (target_fileio_open_warn_if_slow): Likewise.
1790 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1791 target_fileio_open_warn_if_slow.
1793 2015-08-21 Gary Benson <gbenson@redhat.com>
1795 * nat/linux-namespaces.c (linux_mntns_access_fs):
1796 Do not overwrite old_chain.
1798 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1800 * arch/xtensa.h: New file.
1801 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1802 (ps_get_thread_area): New function.
1803 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1804 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1805 * xtensa-tdep.c (osabi.h): New #include.
1806 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1807 xtensa-specific hooks.
1808 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1809 member and move the structure to arch/xtensa.h.
1811 2015-08-21 Pedro Alves <palves@redhat.com>
1813 * remote.c (struct readahead_cache): New.
1814 (struct remote_state) <readahead_cache>: New field.
1815 (remote_open_1): Invalidate the cache.
1816 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1818 (remote_hostio_pwrite): Invalidate the readahead cache.
1819 (remote_hostio_pread): Rename to ...
1820 (remote_hostio_pread_vFile): ... this.
1821 (remote_hostio_pread_from_cache): New function.
1822 (remote_hostio_pread): Reimplement.
1823 (remote_hostio_close): Invalidate the readahead cache.
1825 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1828 * procfs.c: Include "filestuff.h".
1830 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1832 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1834 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1835 cur_line or curch, instead call wmove().
1836 (init_win_info) [CMD_WIN]: Likewise.
1837 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1838 instead call getcury().
1839 (tui_redisplay_readline): Don't set cur_line or curch.
1840 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1842 (tui_cont_sig): Remove call to wmove.
1843 (tui_getc): Don't read cur_line or curch, instead call getcury()
1844 or getyx(). Don't set curch.
1845 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1846 set cur_line or curch. Always move cursor to (0,0).
1848 2015-08-20 Pedro Alves <palves@redhat.com>
1850 * infrun.c (print_target_wait_results): Make extern.
1851 * infrun.h (print_target_wait_results): Declare.
1852 * remote.c (set_stop_requested_callback): Delete.
1853 (process_initial_stop_replies): New function.
1854 (remote_start_remote): Use it.
1855 (stop_reply_queue_length): New function.
1857 2015-08-20 Pedro Alves <palves@redhat.com>
1859 * dwarf2read.c (process_full_comp_unit): To tell whether
1860 start_subfile managed to deduce a language, test for
1861 language_unknown instead of language_c.
1863 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1865 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1868 2015-08-19 Kevin Buettner <kevinb@redhat.com>
1870 * dwarf2read.c (dwarf2_string_attr): New function.
1871 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1872 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1873 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1874 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1875 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1877 2015-08-18 Doug Evans <dje@google.com>
1878 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1881 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1883 * mi/mi-out.c: #include "vec.h".
1884 (ui_filep): New type.
1885 (DEV_VEC_P (ui_filep)): New type.
1886 (struct ui_out_data) <buffer, original_buffer>: Delete.
1887 (struct ui_out_data) <streams>: New member.
1888 (mi_ui_out_impl): Add data_destroy field.
1889 (mi_field_string, mi_field_fmt): Update.
1890 (mi_flush, mi_redirect, field_separator): Update.
1891 (mi_open, mi_close): Update.
1892 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1893 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1894 (mi_out_new): Call mi_out_data_ctor.
1896 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1898 * remote.c (strprefix): New.
1899 (remote_parse_stop_reply): Use strprefix instead of strncmp
1900 to ensure exact match of keyword.
1902 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1904 * gdb_bfd.c (debug_bfd_cache): New variable.
1905 (show_bfd_cache_debug): New function.
1906 (gdb_bfd_open): Add debug logging.
1907 (gdb_bfd_ref): Likewise.
1908 (gdb_bfd_unref): Likewise.
1909 (_initialize_gdb_bfd): Add new set/show command.
1910 * NEWS: Mention new command.
1912 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1914 * gdb_bfd.c (bfd_sharing): New variable.
1915 (show_bfd_sharing): New function.
1916 (gdb_bfd_open): Check bfd_sharing variable.
1917 (_initialize_gdb_bfd): Add new set/show command.
1918 * NEWS: Mention new command.
1920 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1922 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1924 (struct gdb_bfd_cache_search): Likewise.
1925 (eq_bfd): Compare the size, inode, and device id fields.
1926 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1927 (gdb_bfd_ref): Likewise.
1928 (gdb_bfd_unref): Likewise.
1930 2015-08-18 Pedro Alves <palves@redhat.com>
1932 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1933 target implements to_always_non_stop_p, call it.
1934 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1935 (x86_linux_create_target): Install it as to_always_non_stop_p
1938 2015-08-17 Doug Evans <dje@google.com>
1940 * ui-out.c (default_ui_out_impl): Add comment.
1942 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1944 * d-exp.y (type_aggregate_p): New function.
1945 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1946 (classify_inner_name): Likewise.
1947 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1949 2015-08-15 Doug Evans <xdje42@gmail.com>
1951 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1953 (add_psymbol_to_list): Ditto.
1955 2015-08-15 Doug Evans <xdje42@gmail.com>
1957 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1958 updated. Call end_psymtab_common.
1959 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1961 (build_type_psymtabs_reader): Ditto.
1962 * psympriv.h (sort_pst_symbols): Delete.
1963 (end_psymtab_common): Declare.
1964 * psymtab.c (sort_pst_symbols): Make static.
1965 (end_psymtab_common): New function.
1966 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1968 2015-08-15 Doug Evans <xdje42@gmail.com>
1970 * defs.h (LANGUAGE_BITS): Define.
1971 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1972 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1973 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1974 (minimal_symbol_type): Add nr_minsym_types.
1975 (MINSYM_TYPE_BITS): Define.
1976 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1977 (domain_enum_tag): Add NR_DOMAINS.
1978 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1979 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1981 2015-08-15 Doug Evans <xdje42@gmail.com>
1983 * objfiles.h: Whitespace cleanup.
1984 * psympriv.h: Whitespace cleanup.
1985 * psymtab.c: Whitespace/coding convention cleanup.
1987 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1989 * inferior.c (detach_inferior_command): Don't call
1990 any_thread_of_process when pid is 0.
1991 (kill_inferior_command): Likewise.
1993 2015-08-14 Doug Evans <xdje42@gmail.com>
1996 * NEWS: Document new /s modifier for the disassemble command.
1997 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1998 (_initialize_cli_cmds): Update online docs of disassemble command.
1999 * disasm.c: #include "source.h".
2000 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
2002 (dis_line_entry): New struct.
2003 (hash_dis_line_entry, eq_dis_line_entry): New functions.
2004 (allocate_dis_line_table): New functions.
2005 (maybe_add_dis_line_entry, line_has_code_p): New functions.
2006 (dump_insns): New arg end_pc. All callers updated.
2007 (do_mixed_source_and_assembly_deprecated): Renamed from
2008 do_mixed_source_and_assembly. All callers updated.
2009 (do_mixed_source_and_assembly): New function.
2010 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
2011 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
2012 DISASSEMBLY_SOURCE. All uses updated.
2013 (DISASSEMBLY_SOURCE): New macro.
2014 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
2016 2015-08-14 Keith Seitz <keiths@redhat.com>
2018 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
2019 `typename' to `type_name' to avoid C++ reserved word.
2021 2015-08-14 Keith Seitz <keiths@redhat.com>
2023 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
2024 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
2027 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
2029 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
2030 xstrprintf instead of malloc and sprintf.
2031 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
2032 (lex_one_token): Likewise.
2034 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2036 * solib-svr4.c (read_program_header): Add base_addr argument to
2037 report the runtime address of the segment.
2038 (find_program_interpreter): Update read_program_header call to pass
2039 a NULL pointer for the new argument.
2040 (scan_dyntag): Add ptr_addr argument to report the runtime address
2042 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
2043 read_program_header to get the base address of the dynamic segment.
2044 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
2045 read_program_header.
2046 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
2048 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2050 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
2052 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2054 * d-exp.y (%union): Add voidval.
2055 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
2056 name in the lexing stage.
2057 (PostfixExpression): Move symbol completion handling in grammar here
2058 from PrimaryExpression.
2059 (PrimaryExpression): Move routines to handle resolving identifier
2060 tokens in the grammar here from push_expression_name.
2061 (IdentifierExp): Remove the handling of alternating '.' and identifier
2063 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
2064 (BasicType): Remove C-style typename rules.
2065 (d_type_from_name, d_module_from_name, push_variable)
2066 (push_fieldnames, push_type_name, push_module_name)
2067 (push_expression_name): Remove.
2068 (lex_one_token): Rename from yylex. Replace pstate with par_state.
2069 (token_and_value): New type.
2070 (token_fifo, popping, name_obstack): New globals.
2071 (classify_name): New function.
2072 (classify_inner_name): Likewise.
2074 (d_parse): Initialize token_fifo, popping and name_obstack.
2076 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2078 * Makefile.in (SFILES): Add d-namespace.c.
2079 (COMMON_OBS): Add d-namespace.o.
2080 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
2081 la_lookup_symbol_nonlocal callback function pointer.
2082 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
2083 (d_lookup_nested_symbol): New declaration.
2084 * d-namespace.c: New file.
2086 2015-08-13 Pedro Alves <palves@redhat.com>
2088 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
2089 cleanup after the decref cleanup, not before.
2091 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
2093 * ada-lang.c: Include namespace.h
2094 (aux_add_nonlocal_symbols): Fix a function name in comment.
2095 (ada_add_block_renamings): New.
2096 (add_nonlocal_symbols): Add global renamings handling.
2097 (ada_lookup_symbol_list_worker): Move the symbol lookup part
2099 (ada_add_all_symbols): ... this new function.
2100 (ada_add_block_symbols): Try to match the input name against the
2101 "using directives list", perform a recursive symbol lookup on
2102 the matched declarations.
2103 * block.h (struct block): Move the_namespace to top-level as
2104 namespace_info. Remove the language_specific field.
2105 (BLOCK_NAMESPACE): Update access to the namespace_info field.
2106 * buildsym.h (using_directives): Rename into...
2107 (local_using_directives): ... this.
2108 (global_using_directives): New.
2109 (struct context_stack): Rename the using_directives field into
2110 local_using_directives.
2111 * buildsym.c (finish_block_internal): Deal with the proper
2112 using directives repository (local or global).
2113 (prepare_for_building): Reset local_using_directives. Assert
2114 that there is no pending global using directive.
2115 (reset_symtab_globals): Reset global_using_directives and
2116 local_using_directives.
2117 (end_symtab_get_static_block): Don't ignore symtabs that have
2118 only using directives.
2119 (push_context): Update references to local_using_directives.
2120 (buildsym_init): Do not reset using_directives.
2121 * cp-support.c: Include namespace.h.
2122 * cp-support.h (struct using_direct): Move to namespace.h.
2123 (cp_add_using_directives): Move to namespace.h.
2124 * cp-namespace.c: Include namespace.h
2125 (cp_add_using_directive): Move to namespace.c, rename it to
2126 add_using_directive, add a "using_directives" argument and use
2127 it as the pending using directives repository. All callers
2129 * dwarf2read.c (using_directives): New.
2130 (read_import_statement): Call using_directives.
2131 (read_func_scope): Update references to local_using_directives.
2132 (read_lexical_block_scope): Likewise.
2133 (read_namespace): Update the heading comment, call
2135 * namespace.h: New file.
2136 * namespace.c: New file.
2137 * Makefile.in (SFILES): Add namespace.c.
2138 (COMMON_OBS): Add namespace.o
2140 2015-08-12 Joel Brobecker <brobecker@adacore.com>
2142 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
2145 2015-08-12 Keith Seitz <keiths@redhat.com>
2147 * break-catch-throw.c (re_set_exception_catchpoint) Rename
2148 reserved C++ keyword "explicit" to "explicit_loc".
2149 * breakpoint.c (create_overlay_event_breakpoint)
2150 (create_longjmp_master_breakpoint)
2151 (create_std_terminate_master_breakpoint)
2152 (create_exception_master_breakpoint, update_static_tracepoint):
2153 Rename reserved C++ keyword "explicit" to "explicit_loc".
2154 * completer.c (collect_explicit_location_matches)
2155 (explicit_location_completer): Rename reserved C++ keyword
2156 "explicit" to "explicit_loc".
2157 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
2158 (canonicalize_linespec, create_sals_line_offset)
2159 (convert_linespec_to_sals, convert_explicit_location_to_sals)
2160 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
2161 "explicit" to "explicit_loc".
2162 * location.c (struct event_location) <explicit>: Rename to
2164 (initialize_explicit_location, new_explicit_location)
2165 (explicit_location_to_string_internal, explicit_location_to_linespec):
2166 Rename reserved C++ keyword "explicit" to "explicit_loc".
2167 * location.h (explicit_location_to_string)
2168 (explicit_location_to_linespec, initialize_explicit_location)
2169 (new_explicit_location): Rename reserved C++ keyword "explicit"
2171 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
2172 keyword "explicit" to "explicit_loc".
2174 2015-08-12 Keith Seitz <keiths@redhat.com>
2176 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
2177 and only call decode_line_1 when it is non-NULL.
2179 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
2181 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
2182 location address is not meaningful.
2183 (breakpoint_address_is_meaningful): Update comment.
2185 2015-08-11 Keith Seitz <keiths@redhat.com>
2187 * NEWS: Mention explicit locations.
2188 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
2189 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
2190 (_initialize_breakpoint): Update documentation for
2191 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
2193 2015-08-11 Keith Seitz <keiths@redhat.com>
2195 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
2196 explicit locations, options "--source", "--function",
2197 "--label", and "--line".
2199 2015-08-11 Keith Seitz <keiths@redhat.com>
2201 * completer.c: Include location.h.
2202 (enum match_type): New enum.
2203 (location_completer): Rename to ...
2204 (linespec_completer): ... this.
2205 (collect_explicit_location_matches, backup_text_ptr)
2206 (explicit_location_completer): New functions.
2207 (location_completer): "New" function; handle linespec
2208 and explicit location completions.
2209 (complete_line_internal): Remove all location completer-specific
2211 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
2212 (find_toplevel_char): Export.
2213 (linespec_parse_line_offset): Export.
2214 Issue error if STRING is not numerical.
2215 (gdb_get_linespec_parser_quote_characters): New function.
2216 * linespec.h (linespec_parse_line_offset): Declare.
2217 (get_gdb_linespec_parser_quote_characters): Declare.
2218 (is_ada_operator): Declare.
2219 (find_toplevel_char): Declare.
2220 (linespec_lexer_lex_keyword): Declare.
2221 * location.c (explicit_to_event_location): New function.
2222 (explicit_location_lex_one): New function.
2223 (string_to_explicit_location): New function.
2224 (string_to_event_location): Handle explicit locations.
2225 * location.h (explicit_to_event_location): Declare.
2226 (string_to_explicit_location): Declare.
2228 2015-08-11 Keith Seitz <keiths@redhat.com>
2230 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2231 linespec into explicit location.
2232 * breakpoint.c (create_overlay_breakpoint)
2233 (create_longjmp_master_breakpoint)
2234 (create_std_terminate_master_breakpoint)
2235 (create_exception_master_breakpoint): Convert linespec into explicit
2237 (update_static_tracepoint): Convert linespec into explicit location.
2238 * linespec.c (enum offset_relative_sign, struct line_offset): Move
2240 (struct linespec) <expression, expr_pc, source_filename>
2241 <function_name, label_name, line_offset>: Replace with ...
2242 <explicit>: ... this.
2243 <is_linespec>: New member.
2244 (PARSER_EXPLICIT): New accessor macro.
2245 (undefined_label_error): New function.
2246 (source_file_not_found_error): New function.
2247 (linespec_parse_basic): The parser result is now an explicit location.
2248 Use PARSER_EXPLICIT to access it.
2249 Use undefined_label_error.
2250 (canonicalize_linespec): Convert canonical linespec into explicit
2252 Move string representation of location to explicit_location_to_linespec
2253 and use it and explicit_location_to_string to save string
2254 representations of the canonical location.
2255 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2256 explicit location. Update all references.
2257 (convert_explicit_location_to_sals): New function.
2258 (parse_linespec): Use PARSER_EXPLICIT to access the parser
2259 result's explicit location.
2260 (linespec_state_constructor): Initialize is_linespec.
2261 Use PARSER_EXPLICIT.
2262 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2264 (event_location_to_sals): For linespec locations, set is_linespec.
2265 Handle explicit locations.
2266 (decode_objc): 'ls' contains an explicit location now. Update all
2268 (symtabs_from_filename): Use source_file_not_found_error.
2269 * location.c (struct event_location.u) <explicit>: New member.
2270 (initialize_explicit_location): New function.
2271 (initialize_event_location): Initialize explicit locations.
2272 (new_explicit_location, get_explicit_location)
2273 (get_explicit_location_const): New functions.
2274 (explicit_to_string_internal): New function; most of contents moved
2275 from canonicalize_linespec.
2276 (explicit_location_to_string): New function.
2277 (explicit_location_to_linespec): New function.
2278 (copy_event_location, delete_event_location)
2279 (event_location_to_string_const, event_location_empty_p): Handle
2281 * location.h (enum offset_relative_sign, struct line_offset): Move
2282 here from linespec.h.
2283 (enum event_location_type): Add EXPLICIT_LOCATION.
2284 (struct explicit_location): New structure.
2285 (explicit_location_to_string): Declare.
2286 (explicit_location_to_linespec): Declare.
2287 (new_explicit_location, get_explicit_locationp
2288 (get_explicit_location_const, initialize_explicit_location): Declare.
2290 2015-08-11 Keith Seitz <keiths@redhat.com>
2292 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2293 linespec for stap probe to probe location.
2294 * breakpoint.c (create_longjmp_master_breakpoint)
2295 (create_exception_master_breakpoint): Likewise.
2296 (break_command_1): Remove local variable `arg_cp'.
2297 Check location type to set appropriate breakpoint ops methods.
2298 (trace_command): Likewise.
2299 * linespec.c (event_location_to_sals): Assert on probe locations.
2300 * location.c (EL_PROBE): Add macro definition.
2301 (new_probe_location, get_probe_location): New functions.
2302 (copy_event_location, delete_event_location, event_location_to_string)
2303 (string_to_event_location, event_location_empty_p): Handle probe
2305 * location.h (enum event_location_type): Add PROBE_LOCATION.
2306 (new_probe_location, get_probe_location): Declare.
2307 * probe.c (parse_probes): Assert that LOCATION is a probe location.
2308 Convert linespec into probe location.
2310 2015-08-11 Keith Seitz <keiths@redhat.com>
2312 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2313 Convert linespec to address location.
2314 * linespec.c (canonicalize_linespec): Do not handle address
2316 (convert_address_location_to_sals): New function; contents moved
2318 (convert_linespc_to_sals): ... here.
2319 (parse_linespec): Remove address locations from linespec grammar.
2320 Remove handling of address locations.
2321 (linespec_lex_to_end): Remove handling of address linespecs.
2322 (event_location_to_sals): Handle ADDRESS_LOCATION.
2323 (linespec_expression_to_pc): Export.
2324 * linespec.h (linespec_expression_to_pc): Add declaration.
2325 * location.c (struct event_location.u) <address>: New member.
2326 (new_address_location, get_address_location): New functions.
2327 (copy_event_location, delete_event_location, event_location_to_string)
2328 (string_to_event_location, event_location_empty_p): Handle address
2330 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2331 (new_address_location, get_address_location): Declare.
2332 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2333 to address location.
2334 * spu-tdep.c (spu_catch_start): Likewise.
2336 2015-08-11 Keith Seitz <keiths@redhat.com>
2338 * ax-gdb.c: Include location.h.
2339 (agent_command_1) Use linespec location instead of address
2341 * break-catch-throw.c: Include location.h.
2342 (re_set_exception_catchpoint): Use linespec locations instead
2344 * breakpoint.c: Include location.h.
2345 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2346 (create_std_terminate_master_breakpoint)
2347 (create_exception_master_breakpoint, update_breakpoints_after_exec):
2348 Use linespec location instead of address string.
2349 (print_breakpoint_location): Use locations and
2350 event_location_to_string.
2351 Print extra_string for pending locations for non-MI streams.
2352 (print_one_breakpoint_location): Use locations and
2353 event_location_to_string.
2354 (init_raw_breakpoint_without_location): Initialize b->location.
2355 (create_thread_event_breakpoint): Use linespec location instead of
2357 (init_breakpoint_sal): Likewise.
2358 Only save extra_string if it is non-NULL and not the empty string.
2359 Use event_location_to_string instead of `addr_string'.
2360 Constify `p' and `endp'.
2361 Use skip_spaces_const/skip_space_const instead of non-const versions.
2362 Copy the location into the breakpoint.
2363 If LOCATION is NULL, save the breakpoint address as a linespec location
2364 instead of an address string.
2365 (create_breakpoint_sal): Change `addr_string' parameter to a struct
2366 event_location. All uses updated.
2367 (create_breakpoints_sal): Likewise for local variable `addr_string'.
2368 (parse_breakpoint_sals): Use locations instead of address strings.
2369 Remove check for empty linespec with conditional.
2371 (decode_static_tracepoint_spec): Make argument const and update
2373 (create_breakpoint): Change `arg' to a struct event_location and
2375 Remove `copy_arg' and `addr_start'.
2376 If EXTRA_STRING is empty, set it to NULL.
2377 Don't populate `canonical' for pending breakpoints.
2378 Pass `extra_string' to find_condition_and_thread.
2379 Clear `extra_string' if `rest' was NULL.
2380 Do not error with "garbage after location" if setting a dprintf
2382 Copy the location into the breakpoint instead of an address string.
2383 (break_command_1): Use string_to_event_location and pass this to
2384 create_breakpoint instead of an address string.
2385 Check against `arg_cp' for a probe linespec.
2386 (dprintf_command): Use string_to_event_location and pass this to
2387 create_breakpoint instead of an address string.
2388 Throw an exception if no format string was specified.
2389 (print_recreate_ranged_breakpoint): Use event_location_to_string
2390 instead of address strings.
2391 (break_range_command, until_break_command)
2392 (init_ada_exception_breakpoint): Use locations instead
2394 (say_where): Print out extra_string for pending locations.
2395 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2397 (base_breakpoint_create_sals_from_location): Use struct event_location
2398 instead of address string.
2399 Remove `addr_start' and `copy_arg' parameters.
2400 (base_breakpoint_decode_location): Use struct event_location instead of
2402 (bkpt_re_set): Use locations instead of address strings.
2403 Use event_location_empty_p to check for unset location.
2404 (bkpt_print_recreate): Use event_location_to_string instead of
2406 Print out extra_string for pending locations.
2407 (bkpt_create_sals_from_location, bkpt_decode_location)
2408 (bkpt_probe_create_sals_from_location): Use struct event_location
2409 instead of address string.
2410 (bkpt_probe_decode_location): Use struct event_location instead of
2412 (tracepoint_print_recreate): Use event_location_to_string to
2413 recreate the tracepoint.
2414 (tracepoint_create_sals_from_location, tracepoint_decode_location)
2415 (tracepoint_probe_create_sals_from_location)
2416 (tracepoint_probe_decode_location): Use struct event_location
2417 instead of address string.
2418 (dprintf_print_recreate): Use event_location_to_string to recreate
2420 (dprintf_re_set): Remove check for valid/missing format string.
2421 (strace_marker_create_sals_from_location)
2422 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2423 (update_static_tracepoint): Use struct event_location instead of
2425 (location_to_sals): Likewise.
2426 Pass `extra_string' to find_condition_and_thread.
2427 For newly resolved pending breakpoint locations, clear the location's
2428 string representation.
2429 Assert that the breakpoint's condition string is NULL when
2430 condition_not_parsed.
2431 (breakpoint_re_set_default, create_sals_from_location_default)
2432 (decode_location_default, trace_command, ftrace_command)
2433 (strace_command, create_tracepoint_from_upload): Use locations
2434 instead of address strings.
2435 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2436 Use struct event_location instead of address string.
2438 <decode_location>: Likewise.
2439 (struct breakpoint) <addr_string>: Change to struct event_location
2440 and rename `location'.
2441 <addr_string_range_end>: Change to struct event_location and rename
2442 `location_range_end'.
2443 (create_breakpoint): Use struct event_location instead of address
2445 * cli/cli-cmds.c: Include location.h.
2446 (edit_command, list_command): Use locations instead of address strings.
2447 * elfread.c: Include location.h.
2448 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2449 * guile/scm-breakpoint.c: Include location.h.
2450 (bpscm_print_breakpoint_smob): Use event_location_to_string.
2451 (gdbscm_register_breakpoint): Use locations instead of address
2453 * linespec.c: Include location.h.
2454 (struct ls_parser) <stream>: Change to const char *.
2455 (PARSER_STREAM): Update.
2456 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2457 keywords must be followed by whitespace.
2458 (canonicalize_linespec): Save a linespec location into `canonical'.
2459 Save a canonical linespec into `canonical'.
2460 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2462 Update function description.
2463 (linespec_parser_new): Initialize `parser'.
2464 Update initialization of parsing stream.
2465 (event_location_to_sals): New function.
2466 (decode_line_full): Change `argptr' to a struct event_location and
2467 rename it `location'.
2468 Use locations instead of address strings.
2469 Call event_location_to_sals instead of parse_linespec.
2470 (decode_line_1): Likewise.
2471 (decode_line_with_current_source, decode_line_with_last_displayed)
2472 Use locations instead of address strings.
2473 (decode_objc): Likewise.
2474 Change `argptr' to const char * and rename `arg'.
2475 (destroy_linespec_result): Delete the linespec result's location
2476 instead of freeing the address string.
2477 * linespec.h (struct linespec_result) <addr_string>: Change to
2478 struct event_location and rename to ...
2479 <location>: ... this.
2480 (decode_line_1, decode_line_full): Change `argptr' to struct
2481 event_location. All callers updated.
2482 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2483 (mi_cmd_break_insert_1): Use locations instead of address strings.
2484 Throw an error if there was "garbage" at the end of the specified
2486 * probe.c: Include location.h.
2487 (parse_probes): Change `argptr' to struct event_location.
2488 Use event locations instead of address strings.
2489 * probe.h (parse_probes): Change `argptr' to struct event_location.
2490 * python/py-breakpoint.c: Include location.h.
2491 (bppy_get_location): Constify local variable `str'.
2492 Use event_location_to_string.
2493 (bppy_init): Use locations instead of address strings.
2494 * python/py-finishbreakpoint.c: Include location.h.
2495 (bpfinishpy_init): Remove local variable `addr_str'.
2496 Use locations instead of address strings.
2497 * python/python.c: Include location.h.
2498 (gdbpy_decode_line): Use locations instead of address strings.
2499 * remote.c: Include location.h.
2500 (remote_download_tracepoint): Use locations instead of address
2502 * spu-tdep.c: Include location.h.
2503 (spu_catch_start): Remove local variable `buf'.
2504 Use locations instead of address strings.
2505 * tracepoint.c: Include location.h.
2506 (scope_info): Use locations instead of address strings.
2507 (encode_source_string): Constify parameter `src'.
2508 * tracepoint.h (encode_source_string): Likewise.
2510 2015-08-11 Keith Seitz <keiths@redhat.com>
2512 * Makefile.in (SFILES): Add location.c.
2513 (HFILES_NO_SRCDIR): Add location.h.
2514 (COMMON_OBS): Add location.o.
2515 * linespec.c (linespec_lex_to_end): New function.
2516 * linespec.h (linespec_lex_to_end): Declare.
2517 * location.c: New file.
2518 * location.h: New file.
2520 2015-08-11 Keith Seitz <keiths@redhat.com>
2522 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2523 Renamed to create_sals_from_location.
2524 <decode_linespec>: Renamed to decode_location.
2526 * breakpoint.c (create_sals_from_address_default): Renamed to ...
2527 (create_sals_from_location_default): ... this.
2528 (addr_string_to_sals): Renamed to ...
2529 (location_to_sals): ... this.
2530 (decode_linespec_default): Renamed to ...
2531 (decode_location_default): ... this.
2532 (base_breakpoint_create_sals_from_address): Renamed to ...
2533 (base_breakpoint_create_sals_from_location): ... this.
2534 (bkpt_create_sals_from_address): Renamed to ...
2535 (bkpt_create_sals_from_location): ... this.
2536 (bkpt_decode_linespec): Renamed to ...
2537 (bkpt_decode_location): ... this.
2538 (bkpt_probe_create_sals_from_address): Renamed to ...
2539 (bkpt_probe_create_sals_from_location): ... this.
2540 (tracepoint_create_sals_from_address): Renamed to ...
2541 (tracepoint_create_sals_from_location): ... this.
2542 (tracepoint_decode_linespec): Renamed to ...
2543 (tracepoint_decode_location): ... this.
2544 (tracepoint_probe_create_sals_from_address): Renamed to ...
2545 (tracepoint_probe_create_sals_from_location): ... this.
2546 (tracepoint_probe_decode_linespec): Renamed to ...
2547 (tracepoint_probe_decode_location): ... this.
2548 (strace_marker_create_sals_from_address): Renamed to ...
2549 (strace_marker_create_sals_from_location): ... this.
2550 (decode_linespec_default): Renamed to ...
2551 (decode_location_default): ... this.
2553 2015-08-10 Doug Evans <dje@google.com>
2554 Keith Seitz <keiths@redhat.com>
2557 * symtab.c (make_file_symbol_completion_list_1): Renamed from
2558 make_file_symbol_completion_list and made static.
2559 (make_file_symbol_completion_list): New function.
2561 2015-08-10 Joel Brobecker <brobecker@adacore.com>
2563 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2564 trailing new-line at end of warning message.
2565 (proceed): Add i18n marker to error messages.
2567 2015-08-07 Pedro Alves <palves@redhat.com>
2569 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2571 2015-08-07 Pedro Alves <palves@redhat.com>
2573 * s390-linux-tdep.c (is_non_branch_ril)
2574 (s390_displaced_step_copy_insn): New functions.
2575 (s390_displaced_step_fixup): Update comment.
2576 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2577 gdbarch_displaced_step_copy_insn hook.
2579 2015-08-07 Pedro Alves <palves@redhat.com>
2581 * infrun.c (displaced_step_prepare_throw): Return -1 if
2582 gdbarch_displaced_step_copy_insn returns NULL. Update intro
2584 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2585 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2587 (ppc_displaced_step_copy_insn): New function.
2588 (ppc_displaced_step_fixup): Update comment.
2589 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2590 gdbarch_displaced_step_copy_insn hook.
2591 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2593 * gdbarch.h: Regenerate.
2595 2015-08-07 Pedro Alves <palves@redhat.com>
2597 * inferior.h (struct inferior) <displaced_stepping_failed>: New
2599 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2600 Return false if dispaced stepping failed before.
2601 (resume): Pass the current inferior to
2602 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
2603 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
2604 displaced_stepping_failed flag, and fall back to an in-line
2607 2015-08-07 Pedro Alves <palves@redhat.com>
2609 * darwin-nat.c (darwin_stop): Rename to ...
2610 (darwin_interrupt): ... this.
2611 (_initialize_darwin_inferior): Adjust.
2612 * gnu-nat.c (gnu_stop): Delete.
2613 (gnu_target): Don't install gnu_stop.
2614 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2615 (inf_ptrace_interrupt): ... this.
2616 (inf_ptrace_target): Adjust.
2617 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2619 * linux-nat (linux_nat_stop): Rename to ...
2620 (linux_nat_interrupt): ... this.
2621 (linux_nat_stop): Reimplement.
2622 (linux_nat_add_target): Install linux_nat_interrupt.
2623 * nto-procfs.c (nto_interrupt_twice): Rename to ...
2624 (nto_handle_sigint_twice): ... this.
2625 (nto_interrupt): Rename to ...
2626 (nto_handle_sigint): ... this. Call target_interrupt instead of
2628 (procfs_wait): Adjust.
2629 (procfs_stop): Rename to ...
2630 (procfs_interrupt): ... this.
2631 (init_procfs_targets): Adjust.
2632 * procfs.c (procfs_stop): Rename to ...
2633 (procfs_interrupt): ... this.
2634 (procfs_target): Adjust.
2635 * remote-m32r-sdi.c (m32r_stop): Rename to ...
2636 (m32r_interrupt): ... this.
2637 (init_m32r_ops): Adjust.
2638 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2639 (gdbsim_interrupt_inferior): ... this.
2640 (gdbsim_stop): Rename to ...
2641 (gdbsim_interrupt): ... this.
2642 (gdbsim_cntrl_c): Adjust.
2643 (init_gdbsim_ops): Adjust.
2644 * remote.c (sync_remote_interrupt): Adjust comments.
2645 (remote_stop_as): Rename to ...
2646 (remote_interrupt_as): ... this.
2647 (remote_stop): Adjust comment.
2648 (remote_interrupt): New function.
2649 (init_remote_ops): Install remote_interrupt.
2650 * target.c (target_interrupt): New function.
2651 * target.h (struct target_ops) <to_interrupt>: New field.
2652 (target_interrupt): New declaration.
2653 * windows-nat.c (windows_stop): Rename to ...
2654 (windows_interrupt): ... this.
2655 * target-delegates.c: Regenerate.
2657 2015-08-07 Pedro Alves <palves@redhat.com>
2659 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2660 threads" as alternative to "switching back to stepped thread".
2662 2015-08-07 Pedro Alves <palves@redhat.com>
2664 * NEWS: Mention "maint set/show target-non-stop".
2665 * breakpoint.c (update_global_location_list): Check
2666 target_is_non_stop_p instead of non_stop.
2667 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2668 * infrun.c (show_can_use_displaced_stepping)
2669 (can_use_displaced_stepping_p, start_step_over_inferior):
2671 (internal_resume_ptid): New function.
2673 (proceed): Check target_is_non_stop_p instead of non_stop. If in
2674 all-stop mode but the target is always in non-stop mode, start all
2675 the other threads that are implicitly resumed too.
2676 (for_each_just_stopped_thread, fetch_inferior_event)
2677 (adjust_pc_after_break, stop_all_threads): Check
2678 target_is_non_stop_p instead of non_stop.
2679 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
2680 with the target always in non-stop mode.
2681 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2682 instead of non_stop.
2683 (switch_back_to_stepped_thread): Check target_is_non_stop_p
2684 instead of non_stop.
2685 (keep_going_stepped_thread): Use internal_resume_ptid.
2686 (stop_waiting): If in all-stop mode, and the target is in non-stop
2687 mode, stop all threads.
2688 (keep_going_pass): Likewise, when starting a new in-line step-over
2690 * linux-nat.c (get_pending_status, select_event_lwp)
2691 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2692 target_is_non_stop_p instead of non_stop.
2693 (linux_nat_always_non_stop_p): New function.
2694 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2695 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2696 * target-delegates.c: Regenerate.
2697 * target.c (target_is_non_stop_p): New function.
2698 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2699 (maint_set_target_non_stop_command)
2700 (maint_show_target_non_stop_command): New functions.
2701 (_initilize_target): Install "maint set/show target-non-stop"
2703 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2704 (target_non_stop_enabled): New declaration.
2705 (target_is_non_stop_p): New declaration.
2707 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2709 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2710 has a pending status, return true.
2711 * gdbthread.h: Include target/waitstatus.h.
2712 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2713 stop_pc>: New fields.
2714 (struct thread_info) <resumed>: New field.
2715 (set_resumed): Declare.
2716 * infrun.c: Include "event-loop.h".
2717 (infrun_async_inferior_event_token, infrun_is_async): New globals.
2718 (infrun_async): New function.
2719 (clear_step_over_info): Add debug output.
2720 (displaced_step_in_progress_any_inferior): New function.
2721 (displaced_step_fixup): New returns int.
2722 (start_step_over): Handle in-line step-overs too. Assert the
2723 thread is marked resumed.
2724 (resume_cleanups): Clear the thread's resumed flag.
2725 (resume): Set the thread's resumed flag. Return early if the
2726 thread has a pending status. Allow stepping a breakpoint with no
2728 (proceed): Adjust to check 'resumed' instead of 'executing'.
2729 (clear_proceed_status_thread): If the thread has a pending status,
2730 and that status is a finished step, discard the pending status.
2731 (clear_proceed_status): Don't clear step_over_info here.
2732 (random_pending_event_thread, do_target_wait): New functions.
2733 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2735 (wait_one): New function.
2736 (THREAD_STOPPED_BY): New macro.
2737 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2738 (thread_stopped_by_hw_breakpoint): New functions.
2739 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2741 (handle_inferior_event): Also call set_resumed(false) on all
2742 threads implicitly stopped by the event.
2743 (restart_threads, resumed_thread_with_pending_status): New
2745 (finish_step_over): If we were doing an in-line step-over before,
2746 and no longer are after trying to start a new step-over, restart
2747 all threads. If we have multiple threads with pending events,
2748 save the current event and go through the event loop again.
2749 (handle_signal_stop): Return early if finish_step_over returns
2751 <random signal>: If we get a signal while stepping over a
2752 breakpoint in-line in non-stop mode, restart all threads. Clear
2753 step_over_info before delivering the signal.
2754 (keep_going_stepped_thread): Use internal_error instead of
2755 gdb_assert. Mark the thread as resumed.
2756 (keep_going_pass_signal): Assert the thread isn't already resumed.
2757 If some other thread is doing an in-line step-over, defer the
2758 resume. If we just started a new in-line step-over, stop all
2759 threads. Don't clear step_over_info.
2760 (infrun_async_inferior_event_handler): New function.
2761 (_initialize_infrun): Create async event handler with
2762 infrun_async_inferior_event_handler as callback.
2763 (infrun_async): New declaration.
2764 * target.c (target_async): New function.
2765 * target.h (target_async): Declare macro and readd as function
2767 * target/waitstatus.h (enum target_stop_reason)
2768 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2769 * thread.c (new_thread): Clear the new waitstatus field.
2770 (set_resumed): New function.
2772 2015-08-07 Pedro Alves <palves@redhat.com>
2774 * infrun.c (keep_going_stepped_thread): New function, factored out
2776 (switch_back_to_stepped_thread): ... here.
2778 2015-08-07 Pedro Alves <palves@redhat.com>
2780 * infrun.c (currently_stepping): Extend intro comment.
2781 * target.h (target_resume): Extend intro comment.
2783 2015-08-07 Pedro Alves <palves@redhat.com>
2785 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2786 of inferior_ptid. If the stepped thread vanished, return 0
2787 instead of resuming here. Use reset_ecs. Print the prev_pc and
2788 the current stop_pc in log message. Clear trap_expected if the
2789 thread advanced. Don't pass currently_stepping to
2792 2015-08-07 Pedro Alves <palves@redhat.com>
2794 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2795 * infrun.c (struct execution_control_state): Move higher up in the
2797 (reset_ecs): New function.
2798 (start_step_over): Now returns int. Rewrite to use
2799 keep_going_pass_signal instead of manually starting a displaced step.
2800 (resume): Don't call set_running here. If displaced stepping
2801 can't start now, clear trap_expected.
2802 (find_thread_needs_step_over): Delete function.
2803 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2804 If the current thread needs a step over, push it in the step-over
2805 chain. Don't set insert breakpoints nor call resume directly
2806 here. Instead rewrite to use start_step_over and
2807 keep_going_pass_signal.
2808 (finish_step_over): New function.
2809 (handle_signal_stop): Call finish_step_over instead of
2811 (switch_back_to_stepped_thread): If the event thread needs another
2812 step-over do that first. Use start_step_over.
2813 (keep_going_pass_signal): New function, factored out from ...
2814 (keep_going): ... here.
2815 (_initialize_infrun): Comment moved here.
2816 * thread.c (set_running_thread): New function.
2817 (set_running, finish_thread_state): Use set_running_thread.
2819 2015-08-07 Pedro Alves <palves@redhat.com>
2821 * gdbthread.h (struct thread_info) <step_over_prev,
2822 step_over_next>: New fields.
2823 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2824 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2826 * infrun.c (struct displaced_step_request): Delete.
2827 (struct displaced_step_inferior_state) <step_request_queue>:
2829 (displaced_step_prepare): Assert that trap_expected is set. Use
2830 thread_step_over_chain_enqueue. Split starting a new displaced
2832 (start_step_over): ... this new function.
2833 (resume): Assert the thread isn't waiting for a step over already.
2834 (proceed): Assert the thread isn't waiting for a step over
2836 (infrun_thread_stop_requested): Adjust to remove threads from the
2837 embedded step-over chain.
2838 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2839 displaced_step_fixup.
2840 (handle_signal_stop): Call start_step_over after
2841 displaced_step_fixup.
2842 * infrun.h (step_over_queue_head): New declaration.
2843 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2844 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2845 (thread_step_over_chain_enqueue)
2846 (thread_step_over_chain_remove): New functions.
2847 (delete_thread_1): Remove thread from the step-over chain.
2849 2015-08-07 Pedro Alves <palves@redhat.com>
2851 * infrun.c (thread_still_needs_step_over): Rename to ...
2852 (thread_still_needs_step_over_bp): ... this.
2853 (enum step_over_what): New.
2854 (thread_still_needs_step_over): Reimplement.
2856 2015-08-07 Pedro Alves <palves@redhat.com>
2858 * remote.c (remote_wait_as): If not waiting for a stop reply,
2859 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2860 requested, don't block waiting forever.
2862 2015-08-07 Pedro Alves <pedro@codesourcery.com>
2864 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2865 waitstatus pointers instead of an ecs. Adjust.
2866 (handle_inferior_event): Adjust caller.
2868 2015-08-07 Pedro Alves <palves@redhat.com>
2870 * infrun.c (handle_inferior_event): If we get
2871 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2872 mode, mark all threads of the exiting process as not-executing.
2873 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2874 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2875 exiting process, if inferior_ptid still points at a process.
2876 * thread.c (struct current_thread_cleanup) <next>: New field.
2877 (current_thread_cleanup_chain): New global.
2878 (restore_current_thread_ptid_changed): New function.
2879 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2880 current_thread_cleanup_chain list.
2881 (make_cleanup_restore_current_thread): Add the cleanup data to the
2882 current_thread_cleanup_chain list.
2883 (_initialize_thread): Install restore_current_thread_ptid_changed
2884 as thread_ptid_changed observer.
2886 2015-08-07 Joel Brobecker <brobecker@adacore.com>
2888 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2889 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2890 smaller than expected.
2892 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2894 * stack.c (get_frame_language): Moved ...
2895 * frame.c (get_frame_language): ... to here.
2896 * language.h (get_frame_language): Declaration moved to frame.h.
2897 * frame.h: Add language.h include, for language enum.
2898 (get_frame_language): Declaration moved from language.h.
2899 * language.c: Add frame.h include.
2900 * top.c: Add frame.h include.
2901 * symtab.h (struct obj_section): Declare.
2902 (struct cmd_list_element): Declare.
2904 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2906 * language.c (show_language_command): Find selected frame before
2907 asking for the language of that frame.
2908 (set_language_command): Likewise.
2909 * language.h (get_frame_language): Add frame parameter.
2910 * stack.c (get_frame_language): Add frame parameter, assert
2911 parameter is not NULL, update comment and reindent.
2912 * top.c (check_frame_language_change): Pass the selected frame
2913 into get_frame_language.
2915 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2917 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2918 (pt_btrace_insn_flags): New.
2919 (ftrace_add_pt): Call pt_btrace_insn_flags.
2920 * btrace.h (btrace_insn_flag): New.
2921 (btrace_insn) <flags>: New.
2922 * record-btrace.c (btrace_insn_history): Print insn prefix.
2923 * NEWS: Announce it.
2925 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2927 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2928 * configure: Regenerate.
2930 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2932 * Makefile.in (LIBICONV): Define.
2933 (CLIBS): Add LIBICONV.
2934 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2935 * configure: Regenerate.
2937 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2938 Pedro Alves <palves@redhat.com>
2940 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2941 (arm_set_abi): Likewise.
2942 * ax-general.c (ax_print): Likewise.
2943 * c-exp.y (exp : string_exp): Likewise.
2944 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2945 (do_compile_dwarf_expr_to_c): Likewise.
2946 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2948 * dwarf2expr.c (execute_stack_op): Likewise.
2949 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2950 (disassemble_dwarf_expression): Likewise.
2951 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2952 (read_array_order): Likewise.
2953 (abbrev_table_read_table): Likewise.
2954 (read_attribute_value): Likewise.
2955 (skip_unknown_opcode): Likewise.
2956 (dwarf_decode_macro_bytes): Likewise.
2957 (dwarf_decode_macros): Likewise.
2958 * eval.c (value_f90_subarray): Likewise.
2959 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2960 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2961 * infrun.c (handle_command): Likewise.
2962 * memory-map.c (memory_map_start_memory): Likewise.
2963 * osabi.c (set_osabi): Likewise.
2964 * parse.c (operator_length_standard): Likewise.
2965 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2966 single return point.
2967 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2968 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2969 (gdbpy_lookup_global_symbol): Likewise.
2970 * record-full.c (record_full_restore): Likewise.
2971 * regcache.c (regcache_register_status): Likewise.
2972 (regcache_raw_read): Likewise.
2973 (regcache_cooked_read): Likewise.
2974 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2975 * symtab.c (initialize_ordinary_address_classes): Likewise.
2976 * target-debug.h (target_debug_print_signals): Likewise.
2977 * utils.c (do_restore_current_language): Likewise.
2979 2015-08-06 Clem Dickey <clemd@acm.org>
2982 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2984 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2986 * complaints.c (enum complaint_series): Add newlines and remove
2987 out of date comment.
2988 (struct complaints) <series>: Change type to enum
2989 complaint_series and remove out of date comment.
2990 (symfile_complaint_hook): Use equivalent enum value
2991 ISOLATED_MESSAGE instead of 0.
2993 2015-08-06 Pedro Alves <palves@redhat.com>
2995 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2998 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
3000 * common/agent.c (symbol_list) <required>: Remove.
3002 2015-08-06 Pedro Alves <palves@redhat.com>
3004 * target/waitstatus.h (enum target_stop_reason)
3005 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3007 2015-08-05 Pedro Alves <palves@redhat.com>
3008 Joel Brobecker <brobecker@adacore.com>
3010 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
3011 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
3012 case where BS->STOP is not set.
3014 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
3016 * nat/gdb_thread_db.h: Add copyright header.
3017 Protect against multiple inclusion.
3019 2015-08-05 Yao Qi <yao.qi@linaro.org>
3021 * aarch64-linux-nat.c (get_thread_id): Remove.
3022 (debug_reg_change_callback): Call ptid_get_lwp instead of
3024 (fetch_gregs_from_thread): Likewise.
3025 (store_gregs_to_thread): Likewise.
3026 (fetch_fpregs_from_thread): Likewise.
3027 (store_fpregs_to_thread): Likewise.
3028 (aarch64_linux_get_debug_reg_capacity): Likewise.
3029 * arm-linux-nat.c (get_thread_id): Remove.
3030 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3031 * xtensa-linux-nat.c (get_thread_id): Remove.
3032 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3033 * arm-linux-nat.c (get_thread_id): Remove.
3034 (GET_THREAD_ID): Remove.
3035 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
3036 (store_fpregs, fetch_regs, store_regs): Likewise.
3037 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3038 (fetch_vfp_regs, store_vfp_regs): Likewise.
3039 (arm_linux_read_description): Likewise.
3040 (arm_linux_get_hwbp_cap): Likewise.
3041 * xtensa-linux-nat.c (get_thread_id): Remove.
3042 (GET_THREAD_ID): Remove.
3043 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
3046 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
3048 * python/py-linetable.c: Fix case of Linetable to LineTable
3049 in docstrings and code comments.
3050 * python/py-symtab.c: Same.
3052 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 * infcmd.c (signal_command): Call do_cleanups for args_chain.
3056 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3059 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
3062 2015-08-04 Pedro Alves <palves@redhat.com>
3064 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
3065 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
3066 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
3067 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
3068 (td_thr_validate_ftype, td_thr_get_info_ftype)
3069 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
3070 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
3072 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
3073 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
3074 local macros and use them instead of verbose_dlsym and dlsym
3077 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
3079 * nios2-tdep.h: Include opcode/nios2.h here.
3080 (NIOS2_CDX_OPCODE_SIZE): New.
3081 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
3082 * nios2-tdep.c: Don't include opcode/nios2.h here.
3083 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
3085 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
3086 (nios2_match_addi, nios2_match_orhi): Likewise.
3087 (nios2_match_stw, nios2_match_ldw): Likewise.
3088 (nios2_match_rdctl): Likewise.
3089 (nios2_match_stwm, nios2_match_ldwm): New.
3090 (nios2_match_branch): Add cases for R2 encodings.
3091 (nios2_match_jmpi, nios2_match_calli): Likewise.
3092 (nios2_match_jmpr, nios2_match_callr): Likewise.
3093 (nios2_match_break, nios2_match_trap): Likewise.
3094 (nios2_in_epilogue_p): Add R2 support.
3095 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
3097 (nios2_breakpoint_from_pc): Handle R2 instructions.
3098 (nios2_get_next_pc): Likewise. Adjust call to
3099 tdep->syscall_next_pc.
3100 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
3101 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
3102 instruction field macros instead of literal hex values.
3103 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
3104 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
3105 Use size field from OP instead of assuming all instructions
3107 (nios2_linux_init_abi): Register appropriate unwinder for mach.
3109 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
3111 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
3112 variable warning with some compilers.
3114 2015-08-03 Yao Qi <yao.qi@linaro.org>
3116 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
3117 in comment. Replace "rw" with "type".
3118 (arm_linux_remove_watchpoint): Change type of "rw" to
3119 "enum target_hw_bp_type".
3121 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
3123 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
3125 * ft32-tdep.c (ft32_skip_prologue): Likewise.
3126 * moxie-tdep.c (moxie_skip_prologue): Likewise.
3127 * mt-tdep.c (mt_skip_prologue): Likewise.
3128 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3130 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
3132 * ada-exp.y (write_object_renaming): Replace struct
3133 ada_symbol_info with struct block_symbol. Update field
3134 references accordingly.
3135 (block_lookup, select_possible_type_sym): Likewise.
3136 (find_primitive_type): Likewise. Also update call to
3137 ada_lookup_symbol to extract the symbol itself.
3138 (write_var_or_type, write_name_assoc): Likewise.
3139 * ada-lang.h (struct ada_symbol_info): Remove.
3140 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
3141 struct block_symbol.
3142 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
3143 (ada_lookup_symbol): Return struct block_symbol instead of a
3145 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
3146 with struct block_symbol.
3147 (resolve_subexp, ada_resolve_function, sort_choices,
3148 user_select_syms, is_nonfunction, add_defn_to_vec,
3149 num_defns_collected, defns_collected,
3150 symbols_are_identical_enums, remove_extra_symbols,
3151 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
3152 ada_lookup_symbol_list, ada_iterate_over_symbols,
3153 ada_lookup_encoded_symbol, get_var_value): Likewise.
3154 (ada_lookup_symbol): Return a block_symbol instead of a mere
3155 symbol. Replace struct ada_symbol_info with struct
3157 (ada_lookup_symbol_nonlocal): Likewise.
3158 (standard_lookup): Make block passing explicit through
3159 lookup_symbol_in_language.
3160 * ada-tasks.c (get_tcb_types_info): Update the calls to
3161 lookup_symbol_in_language to extract the mere symbol out of the
3163 (ada_tasks_inferior_data_sniffer): Likewise.
3164 * ax-gdb.c (gen_static_field): Likewise for the call to
3166 (gen_maybe_namespace_elt): Deal with struct block_symbol from
3168 (gen_expr): Likewise.
3169 * c-exp.y: Likewise. Remove uses of block_found.
3170 (lex_one_token, classify_inner_name, c_print_token): Likewise.
3171 (classify_name): Likewise. Rename the "sym" local variable to
3173 * c-valprint.c (print_unpacked_pointer): Likewise.
3174 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
3175 "sym" parameter from struct symbol * to struct block_symbol.
3176 Use it to remove uses of block_found. Deal with struct
3177 block_symbol from lookup functions.
3178 (gcc_convert_symbol): Likewise. Update the call to
3180 * compile/compile-object-load.c (compile_object_load): Deal with
3181 struct block_symbol from lookup functions.
3182 * cp-namespace.c (cp_lookup_nested_symbol_1,
3183 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
3184 cp_search_static_and_baseclasses,
3185 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
3186 cp_lookup_symbol_imports_or_template,
3187 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
3188 lookup_namespace_scope, cp_lookup_nonlocal,
3189 find_symbol_in_baseclass): Return struct block_symbol instead of
3190 mere symbols and deal with struct block_symbol from lookup
3192 * cp-support.c (inspect_type, replace_typedefs,
3193 cp_lookup_rtti_type): Deal with struct block_symbol from
3195 * cp-support.h (cp_lookup_symbol_nonlocal,
3196 cp_lookup_symbol_from_namespace,
3197 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
3198 Return struct block_symbol instead of mere symbols.
3199 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
3201 Deal with struct block_symbol from lookup functions. Remove
3202 uses of block_found.
3203 * eval.c (evaluate_subexp_standard): Update call to
3204 cp_lookup_symbol_namespace.
3205 * f-exp.y: Deal with struct block_symbol from lookup functions.
3206 Remove uses of block_found.
3208 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
3209 lookup_enum, lookup_template_type, check_typedef): Deal with
3210 struct block_symbol from lookup functions.
3211 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
3212 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
3213 (gdbscm_lookup_global_symbol): Likewise.
3214 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
3215 * go-exp.y: Likewise. Remove uses of block_found.
3216 (package_name_p, classify_packaged_name, classify_name):
3218 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3219 * jv-exp.y (push_variable): Likewise.
3220 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
3221 * language.c (language_bool_type): Likewise.
3222 * language.h (struct language_defn): Update
3223 la_lookup_symbol_nonlocal to return a struct block_symbol rather
3225 * linespec.c (find_label_symbols): Deal with struct block_symbol
3226 from lookup functions.
3227 * m2-exp.y: Likewise. Remove uses of block_found.
3229 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3230 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
3231 * p-exp.y: Likewise. Remove uses of block_found.
3233 * p-valprint.c (pascal_val_print): Likewise.
3234 * parse.c (write_dollar_variable): Likewise. Remove uses of
3236 * parser-defs.h (struct symtoken): Turn the SYM field into a
3237 struct block_symbol.
3238 * printcmd.c (address_info): Deal with struct block_symbol from
3240 * python/py-frame.c (frapy_read_var): Likewise.
3241 * python/py-symbol.c (gdbpy_lookup_symbol,
3242 gdbpy_lookup_global_symbol): Likewise.
3243 * skip.c (skip_function_command): Likewise.
3244 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
3245 block_symbol instead of a mere symbol.
3246 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
3247 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3248 * solib.c (solib_global_lookup): Likewise.
3249 * solist.h (solib_global_lookup): Likewise.
3250 (struct target_so_ops): Update lookup_lib_global_symbol to
3251 return a struct block_symbol rather than a mere symbol.
3252 * source.c (select_source_symtab): Deal with struct block_symbol
3253 from lookup functions.
3254 * stack.c (print_frame_args, iterate_over_block_arg_vars):
3256 * symfile.c (set_initial_language): Likewise.
3257 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
3259 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3260 (struct symbol_cache_slot): Turn the FOUND field into a struct
3262 (block_found): Remove.
3263 (eq_symbol_entry): Update to deal with struct block_symbol in
3265 (symbol_cache_lookup): Return a struct block_symbol rather than
3267 (symbol_cache_mark_found): Add a BLOCK parameter to fill
3268 appropriately the cache slots. Update callers.
3269 (symbol_cache_dump): Update cache slots handling to the type
3271 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3272 lookup_symbol_aux, lookup_local_symbol,
3273 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3274 lookup_symbol_in_objfile_symtabs,
3275 lookup_symbol_in_objfile_from_linkage_name,
3276 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3277 lookup_symbol_in_static_block, lookup_static_symbol,
3278 lookup_global_symbol):
3279 Return a struct block_symbol rather than a mere symbol. Deal
3280 with struct block_symbol from other lookup functions. Remove
3281 uses of block_found.
3282 (lookup_symbol_in_block): Remove uses of block_found.
3283 (struct global_sym_lookup_data): Turn the RESULT field into a
3284 struct block_symbol.
3285 (lookup_symbol_global_iterator_cb): Update references to the
3287 (search_symbols): Deal with struct block_symbol from lookup
3289 * symtab.h (struct block_symbol): New structure.
3290 (block_found): Remove.
3291 (lookup_symbol_in_language, lookup_symbol,
3292 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
3293 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3294 lookup_global_symbol_from_objfile): Return a struct block_symbol
3295 rather than just a mere symbol. Update comments to remove
3296 mentions of block_found.
3297 * valops.c (find_function_in_inferior,
3298 value_struct_elt_for_reference, value_maybe_namespace_elt,
3299 value_of_this): Deal with struct block_symbol from lookup
3301 * value.c (value_static_field, value_fn_field): Likewise.
3303 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3305 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3308 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3309 Pedro Alves <palves@redhat.com>
3311 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3312 type or value instead of integer.
3313 (aarch64_linux_insert_watchpoint): Likewise.
3314 (aarch64_linux_remove_watchpoint): Likewise.
3315 * ada-lang.c (ada_op_print_tab): Likewise.
3316 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3317 (amd64_linux_syscall_record_common): Likewise.
3318 * arch-utils.c (target_byte_order_user): Likewise.
3319 (default_byte_order): Likewise.
3320 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3321 (arm_linux_get_hwbp_type): Likewise.
3322 (arm_linux_hw_watchpoint_initialize): Likewise.
3323 (arm_linux_insert_watchpoint): Likewise.
3324 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3325 (arm_linux_syscall_record): Likewise.
3326 * breakpoint.c (update_watchpoint): Likewise.
3327 (breakpoint_here_p): Likewise.
3328 (bpstat_print): Likewise.
3329 (enable_breakpoint_disp): Likewise.
3330 * c-lang.c (c_op_print_tab): Likewise.
3331 * cli/cli-decode.c (add_info_alias): Likewise.
3332 * d-lang.c (d_op_print_tab): Likewise.
3333 * eval.c (evaluate_subexp_standard): Likewise.
3334 * f-exp.y (dot_ops): Likewise.
3335 (f77_keywords): Likewise.
3336 * f-lang.c (f_op_print_tab): Likewise.
3337 * go-lang.c (go_op_print_tab): Likewise.
3338 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3339 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3340 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3341 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3342 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3343 (struct scm_from_stringn_data): Likewise.
3344 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3345 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3346 (ia64_linux_remove_watchpoint): Likewise.
3347 (ia64_linux_can_use_hw_breakpoint): Likewise.
3348 * infrun.c (print_stop_event): Likewise.
3349 * jv-lang.c (java_op_print_tab): Likewise.
3350 * linux-nat.c (linux_proc_xfer_partial): Likewise.
3351 * linux-nat.h (struct lwp_info): Likewise.
3352 * linux-thread-db.c (enable_thread_event): Likewise.
3353 * m2-lang.c (m2_op_print_tab): Likewise.
3354 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3355 (mi_cmd_stack_list_variables): Likewise.
3356 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3357 * mi/mi-out.c (mi_table_begin): Likewise.
3358 (mi_table_header): Likewise.
3359 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3360 (mips_linux_insert_watchpoint): Likewise.
3361 (mips_linux_remove_watchpoint): Likewise.
3362 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3363 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3364 (mips_linux_watch_type_to_irw): Likewise.
3365 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3366 (procfs_insert_hw_watchpoint): Likewise.
3367 (procfs_remove_hw_watchpoint): Likewise.
3368 (procfs_hw_watchpoint): Likewise.
3369 (procfs_can_use_hw_breakpoint): Likewise.
3370 (procfs_remove_hw_watchpoint): Likewise.
3371 (procfs_insert_hw_watchpoint): Likewise.
3372 * p-lang.c (pascal_op_print_tab): Likewise.
3373 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3374 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3375 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3376 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3377 (procfs_insert_watchpoint): Likewise.
3378 (procfs_remove_watchpoint): Likewise.
3379 * psymtab.c (recursively_search_psymtabs): Likewise.
3380 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3381 (m32r_insert_watchpoint): Likewise.
3382 * remote-mips.c (mips_can_use_watchpoint): Likewise.
3383 (mips_insert_watchpoint): Likewise.
3384 (mips_remove_watchpoint): Likewise.
3385 * remote.c (watchpoint_to_Z_packet): Likewise.
3386 (remote_insert_watchpoint): Likewise.
3387 (remote_remove_watchpoint): Likewise.
3388 (remote_check_watch_resources): Likewise.
3389 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3390 (s390_remove_watchpoint): Likewise.
3391 (s390_can_use_hw_breakpoint): Likewise.
3392 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3393 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3394 * target.h (struct target_ops): Likewise.
3395 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3396 * ui-out.c (struct ui_out_hdr): Likewise.
3397 (append_header_to_list): Likewise.
3398 (get_next_header): Likewise.
3399 (verify_field): Likewise.
3400 (ui_out_begin): Likewise.
3401 (ui_out_field_int): Likewise.
3402 (ui_out_field_fmt_int): Likewise.
3403 (ui_out_field_skip): Likewise.
3404 (ui_out_field_string): Likewise.
3405 (ui_out_field_fmt): Likewise.
3406 * varobj.c (new_variable): Likewise.
3407 * x86-nat.c (x86_insert_watchpoint): Likewise.
3408 (x86_remove_watchpoint): Likewise.
3409 (x86_can_use_hw_breakpoint): Likewise.
3410 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3411 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3412 previously anonymous enumeration type..
3413 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3415 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3416 (target_debug_print_enum_bptype): New.
3417 * target-delegates.c: Regenerate.
3419 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3421 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3422 already says and disallow non-stack memory writes in the prologue.
3424 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3426 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3427 reflect how current GCC emits stack overflow checks. Match
3428 both trap and break instructions for backward compatbility.
3429 Disallow other trap and break instructions in the prologue.
3431 2015-07-30 Pedro Alves <palves@redhat.com>
3434 * linux-nat.c (wait_lwp): Report to the core when thread group
3437 2015-07-30 Pedro Alves <palves@redhat.com>
3438 Simon Marchi <simon.marchi@ericsson.com>
3441 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3442 mark the new thread as resumed. Remove STOPPING parameter.
3443 (wait_lwp): Adjust call to linux_handle_extended_wait.
3444 (linux_nat_filter_event): Adjust call to
3445 linux_handle_extended_wait.
3446 (resume_stopped_resumed_lwps): Add debug output.
3448 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3450 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3452 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3453 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3454 gdbarch_fast_tracepoint_valid_at.
3455 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3456 * gdbarch.h: Regenerate.
3457 * gdbarch.c: Regenerate.
3458 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3459 argument. Do not set it.
3460 * remote.c (remote_download_tracepoint): Adjust call to
3461 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3462 the instruction length.
3464 2015-07-30 Yao Qi <yao.qi@linaro.org>
3466 * arm-tdep.h (enum gdb_regnum): Move it to ...
3467 * arch/arm.h: ... here. New file.
3468 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3470 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3472 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3473 Change its type to int *.
3474 (decode_br): Rename link argument to is_blr. Change its type to
3476 (decode_cb): Rename op argument to is_cbnz. Change its type to
3478 (decode_tb): Rename op argument to is_tbnz. Change its type to
3479 int *. Set is_tbnz to either 1 or 0.
3480 (aarch64_analyze_prologue): Change type of is_link to int. Add
3481 new variables is_cbnz and is_tbnz. Adjust call to
3482 aarch64_decode_cb and aarch64_decode_tb.
3484 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3486 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3488 (mips_linux_new_thread): Likewise.
3489 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3491 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3493 * top.c: Include "tui/tui.h".
3494 (undo_terminal_modifications_before_exit): New static function.
3495 (quit_force): Use it.
3497 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3499 * target.c (terminal_state): Initialize to terminal_is_ours.
3501 2015-07-29 Yao Qi <yao.qi@linaro.org>
3504 * dcache.c (dcache_read_memory_partial): Call
3505 raw_memory_xfer_partial.
3506 * target.c (raw_memory_xfer_partial): Make it non-static.
3507 * target.h (raw_memory_xfer_partial): Declare.
3509 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3511 * c-valprint.c (c_val_print_array): Consider addressable memory
3513 (c_val_print_ptr): Likewise.
3514 (c_val_print_int): Likewise.
3515 * findvar.c (read_frame_register_value): Likewise.
3516 * valarith.c (find_size_for_pointer_math): Likewise.
3517 (value_ptrdiff): Likewise.
3518 (value_subscripted_rvalue): Likewise.
3519 * valops.c (read_value_memory): Likewise (and rename variables).
3520 (value_assign): Likewise.
3521 (value_repeat): Likewise.
3522 (value_array): Likewise.
3523 (value_slice): Likewise.
3524 * valprint.c (generic_val_print_ptr): Likewise.
3525 (generic_val_print_enum): Likewise.
3526 (generic_val_print_bool): Likewise.
3527 (generic_val_print_int): Likewise.
3528 (generic_val_print_char): Likewise.
3529 (generic_val_print_float): Likewise.
3530 (generic_val_print_decfloat): Likewise.
3531 (generic_val_print_complex): Likewise.
3532 (val_print_scalar_formatted): Likewise.
3533 (val_print_array_elements): Likewise.
3534 * value.c (set_value_parent): Likewise.
3535 (value_contents_copy_raw): Likewise.
3536 (set_internalvar_component): Likewise.
3537 (value_primitive_field): Likewise.
3538 (value_fetch_lazy): Likewise.
3539 * value.h (read_value_memory): Update comment.
3541 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3543 * value.c (get_value_arch): New function.
3544 * value.h (get_value_arch): New declaration.
3546 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3548 * value.c (struct value): Update comments.
3550 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
3552 * gdbtypes.c (type_length_units): New function.
3553 * gdbtypes.h (type_length_units): New declaration.
3554 (struct type) <length>: Update comment.
3556 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3558 * valprint.c (generic_val_print): Factor out complex
3559 printing code to ...
3560 (generic_val_print_complex): ... this new function.
3562 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3564 * valprint.c (generic_val_print): Factor out decfloat
3565 printing code to ...
3566 (generic_val_print_decfloat): ... this new function.
3568 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3570 * valprint.c (generic_val_print): Factor out float
3571 printing code to ...
3572 (generic_val_print_float): ... this new function.
3574 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3576 * valprint.c (generic_val_print): Factor out char
3577 printing code to ...
3578 (generic_val_print_char): ... this new function.
3580 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3582 * valprint.c (generic_val_print): Factor out integer
3583 printing code to ...
3584 (generic_val_print_int): ... this new function.
3586 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3588 * valprint.c (generic_val_print): Factor out bool
3589 printing code to ...
3590 (generic_val_print_bool): ... this new function.
3592 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3594 * valprint.c (generic_val_print): Factor out function/method
3595 printing code to ...
3596 (generic_val_print_func): ... this new function.
3598 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3600 * valprint.c (generic_val_print): Factor out flags
3601 printing code to ...
3602 (generic_val_print_flags): ... this new function.
3604 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3606 * valprint.c (generic_val_print): Factor out enum
3607 printing code to ...
3608 (generic_val_print_enum): ... this new function.
3610 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3612 * valprint.c (generic_val_print): Factor out reference
3613 printing code to ...
3614 (generic_val_print_ref): ... this new function.
3616 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3618 * valprint.c (generic_val_print): Factor out memberptr
3619 printing code to ...
3620 (generic_val_print_memberptr): ... this new function.
3622 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3624 * valprint.c (generic_val_print): Factor out pointer
3625 printing code to ...
3626 (generic_val_print_ptr): ... this new function.
3628 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3630 * valprint.c (generic_val_print): Factor out array
3631 printing code to ...
3632 (generic_val_print_array): ... this new function.
3634 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
3636 * valprint.c (generic_val_print): Factor out
3637 print_unpacked_pointer code to ...
3638 (print_unpacked_pointer): ... this new function.
3640 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
3642 * event-top.c (handle_sigterm): Don't inspect
3643 target_can_async_p. Always set the quit flag and always mark
3644 the async signal handler.
3646 2015-07-27 Yao Qi <yao.qi@linaro.org>
3648 * Makefile.in (REMOTE_EXAMPLES): Remove it.
3650 2015-07-25 Kevin Buettner <kevinb@redhat.com>
3652 * remote.c (read_ptid): Return null_ptid when no thread id
3654 (remote_current_thread): Add log warning for malformed
3656 (remote_start_remote): Add log warning when current thread
3659 2015-07-24 Pedro Alves <palves@redhat.com>
3661 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3662 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3663 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3665 2015-07-24 Pedro Alves <palves@redhat.com>
3668 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3669 is resumed, and extend the debug log.
3671 2015-07-24 Pedro Alves <palves@redhat.com>
3673 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3675 2015-07-24 Pedro Alves <palves@redhat.com>
3677 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3679 * alpha-linux-nat.c: Likewise.
3680 * amd64-linux-nat.c: Likewise.
3681 * arm-linux-nat.c: Likewise.
3682 * hppa-linux-nat.c: Likewise.
3683 * i386-linux-nat.c: Likewise.
3684 * ia64-linux-nat.c: Likewise.
3685 * linux-fork.c: Likewise.
3686 * linux-nat.c: Likewise.
3687 * m32r-linux-nat.c: Likewise.
3688 * m68klinux-nat.c: Likewise.
3689 * mips-linux-nat.c: Likewise.
3690 * nat/linux-btrace.c: Likewise.
3691 * nat/linux-ptrace.c: Likewise.
3692 * nat/linux-ptrace.h
3693 * nat/mips-linux-watch.c: Likewise.
3694 * nat/x86-linux-dregs.c: Likewise.
3695 * ppc-linux-nat.c: Likewise.
3696 * s390-linux-nat.c: Likewise.
3697 * spu-linux-nat.c: Likewise.
3698 * tilegx-linux-nat.c: Likewise.
3699 * x86-linux-nat.c: Likewise.
3700 * xtensa-linux-nat.c: Likewise.
3702 2015-07-24 Pedro Alves <palves@redhat.com>
3704 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
3705 __ptrace_request as first parameter type instead of int.
3706 (PTRACE_TYPE_ARG1): Define.
3707 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3708 that casts first argument to PTRACE_TYPE_ARG1.
3709 * config.in: Regenerate.
3710 * configure: Regenerate.
3712 2015-07-24 Pedro Alves <palves@redhat.com>
3714 * gdb_ptrace.h: Move ...
3715 * nat/gdb_ptrace.h: ... here.
3716 * inf-ptrace.c: Adjust.
3718 2015-07-24 Pedro Alves <palves@redhat.com>
3720 * acinclude.m4: Include ptrace.m4.
3721 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3722 * ptrace.m4: ... to this new file.
3724 2015-07-23 Doug Evans <dje@google.com>
3726 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3727 (load_cu): Handle dummy CUs.
3728 (dw2_do_instantiate_symtab, process_queuef): Ditto.
3729 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3731 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
3733 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3734 documentation to say that it returns a list rather than
3736 (linetable_object_methods): Update the docstring of the
3737 "source_line" entry.
3739 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
3741 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3742 type to the recursive call instead of the original (maybe
3743 TYPE_CODE_TYPEDEF) type.
3745 2015-07-23 Yao Qi <yao.qi@linaro.org>
3747 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3748 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3749 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3751 2015-07-21 Yao Qi <yao.qi@linaro.org>
3753 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3754 Move it to nat/aarch64-linux-hw-point.c.
3755 (aarch64_linux_child_post_startup_inferior): Update.
3756 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3758 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3761 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
3763 * common/btrace-common.c (btrace_data_append): Change case label.
3765 2015-07-20 Yao Qi <yao.qi@linaro.org>
3767 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3769 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3770 "unsigned long long".
3772 2015-07-18 Kevin Buettner <kevinb@redhat.com>
3774 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3775 to be set for SEC_ALLOC sections too.
3777 2015-07-17 Yao Qi <yao.qi@linaro.org>
3779 * Makefile.in (HFILES_NO_SRCDIR): Add
3780 nat/aarch64-linux-hw-point.h.
3781 (aarch64-linux-hw-point.o): New rule.
3782 * nat/aarch64-linux-hw-point.h: New file.
3783 * nat/aarch64-linux-hw-point.c: New file.
3784 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3785 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3786 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3787 (AARCH64_HWP_ALIGNMENT): Likewise.
3788 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3789 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3790 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3791 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3792 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3793 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3794 (struct aarch64_debug_reg_state): Likewise.
3795 (struct arch_lwp_info): Likewise.
3796 (aarch64_linux_set_debug_regs): Likewise.
3797 (aarch64_notify_debug_reg_change): Remove static.
3798 (aarch64_align_watchpoint): Likewise.
3799 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3800 (aarch64_watchpoint_length): Likewise.
3801 (aarch64_point_encode_ctrl_reg): Likewise
3802 (aarch64_point_is_aligned): Likewise.
3803 (aarch64_dr_state_insert_one_point): Likewise.
3804 (aarch64_dr_state_remove_one_point): Likewise.
3805 (aarch64_handle_breakpoint): Likewise.
3806 (aarch64_handle_aligned_watchpoint): Likewise.
3807 (aarch64_handle_unaligned_watchpoint): Likewise.
3808 (aarch64_handle_watchpoint): Likewise.
3809 * config/aarch64/linux.mh (NAT_FILE): Add
3810 aarch64-linux-hw-point.o.
3812 2015-07-17 Yao Qi <yao.qi@linaro.org>
3814 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3815 state and don't call aarch64_get_debug_reg_state. All callers
3817 (aarch64_linux_insert_hw_breakpoint): Call
3818 aarch64_get_debug_reg_state earlier.
3819 (aarch64_linux_remove_hw_breakpoint): Likewise.
3820 (aarch64_handle_aligned_watchpoint): Add argument state and
3821 don't call aarch64_get_debug_reg_state. All callers update.
3822 (aarch64_handle_unaligned_watchpoint): Likewise.
3823 (aarch64_handle_watchpoint): Add argument state.
3824 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3826 (aarch64_linux_remove_watchpoint): Likewise.
3828 2015-07-17 Yao Qi <yao.qi@linaro.org>
3830 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3832 (aarch64_handle_unaligned_watchpoint): Likewise.
3834 2015-07-17 Yao Qi <yao.qi@linaro.org>
3836 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3837 argument type's type to 'enum target_hw_bp_type'.
3838 (aarch64_dr_state_remove_one_point): Likewise.
3839 (aarch64_handle_breakpoint): Likewise.
3840 (aarch64_linux_insert_hw_breakpoint): Likewise.
3841 (aarch64_linux_remove_hw_breakpoint): Likewise.
3842 (aarch64_handle_aligned_watchpoint): Likewise.
3844 2015-07-17 Yao Qi <yao.qi@linaro.org>
3846 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3847 ptid_get_pid instead of get_thread_id.
3849 2015-07-17 Yao Qi <yao.qi@linaro.org>
3851 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3852 (add_current_inferior_and_thread): Don't initialise ptid.
3854 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3856 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3857 unavailable if invalid.
3859 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3861 Revert the previous 6 commits:
3862 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3863 Move gdb_regex* to common/
3864 Prepare linux_find_memory_regions_full & co. for move
3865 Move linux_find_memory_regions_full & co.
3866 gdbserver build-id attribute generator
3867 Validate symbol file using build-id
3869 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3870 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Validate symbol file using build-id.
3873 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3874 and 'show validate-build-id'. Add build-id attribute.
3875 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3876 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3877 * solib-frv.c (_initialize_frv_solib): Ditto.
3878 * solib-spu.c (set_spu_solib_ops): Ditto.
3879 * solib-svr4.c: Include rsp-low.h.
3880 (NOTE_GNU_BUILD_ID_NAME): New define.
3881 (svr4_validate): New function.
3882 (svr4_copy_library_list): Duplicate field build_id.
3883 (library_list_start_library): Parse 'build-id' attribute.
3884 (svr4_library_attributes): Add 'build-id' attribute.
3885 (_initialize_svr4_solib): Assign validate value.
3886 * solib-target.c (solib.h): Include.
3887 (_initialize_solib_target): Assign validate value.
3888 * solib.c (validate_build_id, show_validate_build_id): New.
3889 (solib_map_sections): Use ops->validate.
3890 (clear_so): Free build_id.
3891 (default_solib_validate): New function.
3892 (_initialize_solib): Add "validate-build-id".
3893 * solib.h (default_solib_validate): New declaration.
3894 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3895 (target_so_ops): New field 'validate'.
3897 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3898 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 gdbserver build-id attribute generator.
3901 * features/library-list-svr4.dtd (library-list-svr4): New
3902 'build-id' attribute.
3904 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3905 Jan Kratochvil <jan.kratochvil@redhat.com>
3907 Move linux_find_memory_regions_full & co.
3908 * linux-tdep.c (nat/linux-maps.h): Include.
3909 (gdb_regex.h): Remove the include.
3910 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3911 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3912 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3913 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3914 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3915 and target/target.h.
3916 (struct smaps_vmflags, read_mapping, decode_vmflags)
3917 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3918 (linux_find_memory_regions_full): Move from linux-tdep.c.
3919 * nat/linux-maps.h (read_mapping): New declaration.
3920 (linux_find_memory_region_ftype, enum filterflags): Moved from
3922 (linux_find_memory_regions_full): New declaration.
3923 * target.c (target/target-utils.h): Include.
3924 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3925 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3926 definitions to target/target-utils.c.
3927 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3928 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3930 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3931 (read_alloc): New declaration.
3932 (read_stralloc_func_ftype): New typedef.
3933 (read_stralloc): New declaration.
3934 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3936 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3937 Jan Kratochvil <jan.kratochvil@redhat.com>
3939 Prepare linux_find_memory_regions_full & co. for move.
3940 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3941 (linux_find_memory_regions_full): Change signature and prepare
3942 for moving to linux-maps.
3943 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3944 (linux_find_memory_regions_thunk): New.
3945 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3946 (linux_find_memory_regions_gdb): New.
3947 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3948 (linux_make_mappings_corefile_notes): Use
3949 linux_find_memory_regions_gdb.
3950 * target.c (read_alloc_pread_ftype): New typedef.
3951 (target_fileio_read_alloc_1_pread): New function.
3952 (read_alloc): Refactor from target_fileio_read_alloc_1.
3953 (read_stralloc_func_ftype): New typedef.
3954 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3955 (read_stralloc): Refactored from target_fileio_read_stralloc.
3956 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3958 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3960 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3962 (COMMON_OBS): Add gdb_regex.o.
3964 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3965 --without-included-regex and USE_INCLUDED_REGEX.
3966 * common/gdb_regex.c: New file from utils.c functions.
3967 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3968 file wrapping define name.
3969 * configure: Rebuilt.
3970 * configure.ac (gdb_use_included_regex, --without-included-regex)
3971 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3972 * gdb_regex.h: Move it to common/gdb_regex.h.
3973 * utils.c: Remove include gdb_regex.h.
3974 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3975 (compile_rx_or_error): Move them to common/gdb_regex.c.
3977 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3978 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3981 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3982 common/target-utils.h.
3983 (COMMON_OBS): Add target-utils.o.
3984 (linux-maps.o, target-utils.o): New.
3985 * target/target-utils.c: New file.
3986 * target/target-utils.h: New file.
3987 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3988 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3989 * nat/linux-maps.c: New file.
3990 * nat/linux-maps.h: New file.
3992 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3993 Pedro Alves <palves@redhat.com>
3995 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3996 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3997 (perf_event_read_bts): Change the type of SIZE and READ.
3998 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3999 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
4000 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
4002 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
4003 buffer size to UINT_MAX.
4004 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
4006 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
4007 <last_head>: Change type.
4008 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
4009 * common/btrace-common.c (btrace_data_append): Change the type of
4011 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
4014 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
4016 * gdbtypes.h (CHECK_TYPEDEF): Remove.
4017 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
4019 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
4020 (ada_array_length): Likewise.
4021 (find_parallel_type_by_descriptive_type): Likewise.
4022 (ada_check_typedef): Likewise.
4023 * arm-tdep.c (arm_return_in_memory): Likewise.
4024 * ax-gdb.c (gen_trace_static_fields): Likewise.
4025 (gen_struct_ref_recursive): Likewise.
4026 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4027 (variable: block COLONCOLON name): Likewise.
4028 (qualified_name: TYPENAME COLONCOLON name): Likewise.
4029 * c-lang.c (classify_type): Likewise.
4030 * c-typeprint.c (c_print_type): Likewise.
4031 (c_print_typedef): Likewise.
4032 (c_type_print_base): Likewise.
4033 * c-valprint.c (c_val_print): Likewise.
4034 * compile/compile-c-types.c (convert_type): Likewise.
4035 * compile/compile-object-load.c (get_out_value_type): Likewise.
4036 * completer.c (add_struct_fields): Likewise.
4037 (expression_completer): Likewise.
4038 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
4039 (cp_lookup_nested_symbol_1): Likewise.
4040 (cp_lookup_nested_symbol): Likewise.
4041 * cp-valprint.c (cp_print_value_fields): Likewise.
4042 (cp_print_static_field): Likewise.
4043 * d-valprint.c (d_val_print): Likewise.
4044 * eval.c (evaluate_subexp_standard): Likewise.
4045 (evaluate_subexp_for_sizeof): Likewise.
4046 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4047 * f-typeprint.c (f_type_print_base): Likewise.
4048 * f-valprint.c (f_val_print): Likewise.
4049 * gdbtypes.c (get_discrete_bounds): Likewise.
4050 (create_array_type_with_stride): Likewise.
4051 (type_name_no_tag_or_error): Likewise.
4052 (lookup_struct_elt_type): Likewise.
4053 (get_unsigned_type_max): Likewise.
4054 (internal_type_vptr_fieldno): Likewise.
4055 (set_type_vptr_fieldno): Likewise.
4056 (internal_type_vptr_basetype): Likewise.
4057 (set_type_vptr_basetype): Likewise.
4058 (get_vptr_fieldno): Likewise.
4059 (is_integral_type): Likewise.
4060 (is_scalar_type): Likewise.
4061 (is_scalar_type_recursive): Likewise.
4062 (distance_to_ancestor): Likewise.
4063 (is_unique_ancestor_worker): Likewise.
4064 (check_types_equal): Likewise.
4065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4067 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
4069 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
4070 also test for language_d.
4071 (dwarf2_compute_name): Likewise.
4072 (read_func_scope): Likewise.
4073 (read_structure_type): Likewise.
4074 (new_symbol_full): Likewise.
4075 (determine_prefix): Likewise.
4076 (read_import_statement): Use dot as the separator for language_d.
4077 (typename_concat): Likewise, but don't prefix the D main function.
4079 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
4081 * nat/linux-namespaces.c (setns): Rename from this ...
4082 (do_setns): ... to this. Support calling setns if it exists.
4083 (mnsh_handle_setns): Call do_setns.
4085 2015-07-13 Yao Qi <yao.qi@linaro.org>
4087 * exec.c (exec_file_attach): Add period at the end of error
4090 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * tui/tui-win.c (window_name_completer): New function.
4093 (focus_completer): Call window_name_completer. All old content
4094 moved into window_name_completer.
4095 (winheight_completer): New function.
4096 (_initialize_tui_win): Rename variable. Add completer to
4097 winheight command. Update doc string on winheight.
4099 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
4101 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
4102 all nios2 mach variants.
4104 2015-07-10 Kevin Buettner <kevinb@redhat.com>
4106 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
4107 of target_read_memory.
4109 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4111 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
4113 (parse_scrolling_args): Likewise.
4115 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4117 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
4118 names in this function.
4120 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4122 * tui/tui-data.h (SRC_NAME): Convert to lower case.
4123 (CMD_NAME): Likewise.
4124 (DATA_NAME): Likewise.
4125 (DISASSEM_NAME): Likewise.
4126 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
4127 (tui_set_win_height): Likewise.
4128 (parse_scrolling_args): Likewise.
4130 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
4132 * record-btrace.c (record_btrace_goto_begin)
4133 (record_btrace_goto_end, record_btrace_goto): Move call to
4134 print_stack_frame ...
4135 (record_btrace_set_replay): ... here. Set stop_pc.
4136 * record-full.c (record_full_goto_entry): Set stop_pc.
4138 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4140 * NEWS: Mention support for tracepoints on aarch64-linux.
4142 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4144 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
4146 (the_low_target): Install it.
4148 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4150 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
4151 * gdb.trace/collection.exp: Likewise.
4152 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
4153 * gdb.trace/mi-trace-unavailable.exp: Likewise.
4154 * gdb.trace/report.exp: Likewise.
4155 * gdb.trace/trace-break.exp: Likewise.
4156 * gdb.trace/unavailable.exp: Likewise.
4157 * gdb.trace/while-dyn.exp: Likewise.
4159 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4161 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
4162 (aarch64_gen_return_address): New function.
4163 (aarch64_gdbarch_init): Hook it.
4165 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4167 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
4168 swallow NOT_AVAILABLE_ERROR.
4169 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
4170 available_p is not set.
4171 (aarch64_stub_frame_unwind_stop_reason): New function.
4172 (aarch64_stub_unwind): Install it.
4174 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4176 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
4178 (aarch64_make_prologue_cache_1): New function, factored out from
4179 aarch64_make_prologue_cache. Do not allocate cache. Set
4181 (aarch64_make_prologue_cache): Reimplement wrapping
4182 aarch64_make_prologue_cache_1, and swallowing
4183 NOT_AVAILABLE_ERROR.
4184 (aarch64_prologue_frame_unwind_stop_reason): New function.
4185 Return UNWIND_UNAVAILABLE if available_p is not set.
4186 (aarch64_prologue_unwind): Install it.
4187 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
4188 checks into aarch64_prologue_frame_unwind_stop_reason. Call
4189 frame_id_build_unavailable_stack if available_p is not set.
4191 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4193 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
4195 (aarch64_scan_prologue): Set prev_pc.
4196 (aarch64_make_prologue_cache): Set func.
4197 (aarch64_make_stub_cache): Set prev_pc.
4198 (aarch64_prologue_this_id): Remove local variables id, pc and
4199 func. Read prev_pc and func from cache.
4200 (aarch64_stub_this_id): Read prev_pc from cache.
4202 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4204 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
4205 argument this_cache. Remove unused local variables reg and
4206 unwound_fp. Return early if this_cache is already set. Set
4208 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
4210 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4212 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
4213 New argument this_cache. Return early if this_cache is already
4214 set. Set this_cache.
4215 (aarch64_prologue_this_id): Update call to
4216 aarch64_make_prologue_cache.
4217 (aarch64_prologue_prev_register): Likewise.
4218 (aarch64_normal_frame_base): Likewise.
4220 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4222 * c-valprint.c (c_val_print): Factor out memberptr printing code
4223 from c_val_print to ...
4224 (c_val_print_memberptr): ... this new function.
4226 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4228 * c-valprint.c (c_val_print): Factor out int printing code to ...
4229 (c_val_print_int): ... this new function.
4231 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4233 * c-valprint.c (c_val_print): Factor out struct and union
4234 printing code to ...
4235 (c_val_print_struct): ... this new function ...
4236 (c_val_print_union): ... and this new function.
4238 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4240 * c-valprint.c (c_val_print): Factor out pointer printing code
4242 (c_val_print_ptr): ... this new function.
4244 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4246 * c-valprint.c (c_valprint): Factor our array printing code from
4248 (c_val_print_array): ... this new function.
4250 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4252 * c-valprint.c (c_val_print): Factor out pointer printing code
4254 (print_unpacked_pointer): ... this new function.
4256 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4258 * c-valprint.c (c_val_print): Remove an assignment to i and move
4261 2015-07-09 Yao Qi <yao.qi@linaro.org>
4263 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4264 argument ptid. Update comments. Caller update.
4266 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4268 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4271 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4273 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4275 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4277 * progspace.c (delete_program_space): Add missing spaces.
4279 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4281 * inferior.c (delete_inferior_1): Rename to ...
4282 (delete_inferior): ..., remove 'silent' parameter, delete
4283 program space when unused and remove call to prune_program_spaces.
4284 Remove the old, unused, delete_inferior.
4285 (delete_inferior_silent): Remove.
4286 (prune_inferiors): Change call from delete_inferior_1 to
4287 delete_inferior and remove 'silent' parameter. Remove call to
4288 prune_program_spaces.
4289 (remove_inferior_command): Idem.
4290 * inferior.h (delete_inferior_1): Rename to...
4291 (delete_inferior): ..., remove 'silent' parameter and remove the
4292 original delete_inferior.
4293 (delete_inferior_silent): Remove.
4294 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4295 delete_inferior_1 to delete_inferior and remove 'silent'
4297 * progspace.c (prune_program_spaces): Remove.
4298 (pspace_empty_p): Rename to...
4299 (program_space_empty_p): ... and make non-static.
4300 (delete_program_space): New.
4301 * progspace.h (prune_program_spaces): Remove declaration.
4302 (program_space_empty_p): New declaration.
4303 (delete_program_space): New declaration.
4304 * monitor.c (monitor_close): Replace call to
4305 delete_thread_silent and delete_inferior_silent with
4306 discard_all_inferiors.
4308 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
4310 * defs.h (deprecated_register_changed_hook): Remove prototype.
4311 * interps.c (clear_iterpreter_hooks): Remove reference to
4312 deprecated_register_changed_hook.
4313 * top.c (deprecated_register_changed_hook): Remove prototype.
4314 * valops.c (value_assign): Remove reference to
4315 deprecated_register_changed_hook.
4316 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4317 Add comment documenting the function.
4318 (tui_register_changed_observer): Define.
4319 (tui_install_hooks): Remove reference to
4320 deprecated_register_changed_hook. Set
4321 tui_register_changed_observer.
4322 (tui_remove_hooks): Remove reference to
4323 deprecated_register_changed_hook. Unset
4324 tui_register_changed_observer.
4326 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4329 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4331 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
4334 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4336 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4338 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4340 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4342 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4343 Use safe_strerror() instead of strerror().
4345 2015-07-07 Yao Qi <yao.qi@linaro.org>
4347 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4348 * features/arm-with-m-fpa-layout.c: Regenerated.
4349 * features/arm-with-m-vfp-d16.xml: Likewise.
4350 * features/arm-with-m-vfp-d16.c: Regenerated.
4351 * features/arm-with-m.xml: Likewise.
4352 * features/arm-with-m.c: Regenerated.
4353 * features/arm-with-neon.xml: Likewise.
4354 * features/arm-with-neon.c: Regenerated.
4355 * features/arm-with-vfpv2.xml: Likewise.
4356 * features/arm-with-vfpv2.c: Regenerated.
4357 * features/arm-with-vfpv3.xml: Likewise.
4358 * features/arm-with-vfpv3.c: Regenerated.
4360 2015-07-07 Yao Qi <yao.qi@linaro.org>
4362 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4364 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4366 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4367 if target is 32-bit.
4368 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4369 if target is 32-bit.
4370 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4371 if target is 32-bit.
4372 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4373 if target is 32-bit.
4374 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4375 (aarch64_linux_read_description): Return the right target
4377 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4378 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4379 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4382 2015-07-07 Yao Qi <yao.qi@linaro.org>
4384 * aarch32-linux-nat.c: New file.
4385 * aarch32-linux-nat.h: New file.
4386 * arm-linux-nat.c: Include aarch32-linux-nat.h.
4387 (fetch_regs): Move code to aarch32-linux-nat.c. Call
4388 aarch32_gp_regcache_supply.
4389 (store_regs): Move code to aarch32-linux-nat.c. Call
4390 aarch32_gp_regcache_collect.
4391 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
4392 aarch32_vfp_regcache_supply.
4393 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
4394 aarch32_vfp_regcache_collect.
4395 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4397 2015-07-07 Yao Qi <yao.qi@linaro.org>
4399 * arm-linux-nat.c (store_fpregister): Remove.
4400 (store_register): Likewise.
4401 (fetch_fpregister): Likewise.
4402 (fetch_register): Likewise.
4403 (arm_linux_store_inferior_registers): Call store_regs and
4404 store_fpregs instead.
4405 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4408 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4410 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4413 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4415 * NEWS: Create a new section for the next release branch.
4416 Rename the section of the current branch, now that it has
4419 2015-07-06 Joel Brobecker <brobecker@adacore.com>
4421 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4422 * version.in: Bump version to 7.10.50.DATE-cvs.
4424 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
4426 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4427 breakpoints in a special way.
4428 (remove_breakpoint): Likewise.
4429 (mark_breakpoints_out): Likewise.
4431 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4433 * doc/gdb.texinfo (TUI): Add comma after @xref.
4435 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4437 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4438 instead of casting the structure type.
4440 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4442 * valops.c (search_struct_field): Remove OFFSET parameter.
4443 (value_cast_structs): Adjust calls to search_struct_field.
4444 (value_struct_elt): Same.
4445 (find_overload_match): Same.
4447 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4449 * value.c (value_fetch_lazy): Update comment, change return
4451 * value.h (value_fetch_lazy): Change return value to void.
4453 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4455 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4456 (tui_win_name): Make parameter and result const.
4457 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4459 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4461 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4462 use printf_unfiltered.
4463 (set_mpx_cmd): Add missing trailing space to command string
4465 (_initialize_i386_tdep): Give the "mpx" prefix command its
4468 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4470 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4471 (enum rx_frame_type): New.
4472 (struct rx_prologue): Add new field `frame_type'.
4473 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4474 parameter in the prologue struct. Add code for recording
4475 locations of PC and PSW for fast interrupt and exception frames.
4476 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4477 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4478 (rx_frame_type): New function.
4479 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4480 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4482 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
4483 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
4484 RX_FRAME_TYPE_FAST_INTERRUPT.
4485 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4486 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4487 (rx_frame_unwind): Use rx_frame_sniffer instead of
4488 default_frame_sniffer.
4489 (rx_frame_unwind): New unwinder.
4490 (rx_gdbarch_init): Register new unwinder.
4492 2015-07-02 Kevin Buettner <kevinb@redhat.com>
4494 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4495 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4496 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4498 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4500 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4502 Fix GCC false warning.
4503 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4505 2015-07-02 Yao Qi <yao.qi@linaro.org>
4507 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4508 typo in the debugging message.
4510 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4512 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4513 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4514 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4515 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4516 (btrace_maint_clear): New.
4517 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4518 (pt_print_packet, btrace_maint_decode_pt)
4519 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4520 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4521 (maint_btrace_packet_history_cmd)
4522 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4523 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4524 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4525 (maint_info_btrace_cmd, _initialize_btrace): New.
4526 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4527 (btrace_maint_packet_history, btrace_maint_info): New.
4528 (btrace_thread_info) <maint>: New.
4529 * NEWS: Announce it.
4531 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4533 * btrace.c (btrace_fetch): Append the new trace data.
4534 (btrace_clear): Clear the stored trace data.
4535 * btrace.h (btrace_thread_info) <data>: New.
4536 * common/btrace-common.h (btrace_data_clear)
4537 (btrace_data_append): New.
4538 * common/btrace-common.c (btrace_data_clear)
4539 (btrace_data_append): New.
4541 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4543 * nat/linux-btrace.c (linux_enable_bts): Check for
4544 PERF_ATTR_SIZE_VER5.
4545 Check for data_offset and data_size fields. Use them.
4547 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4549 * NEWS: Announce new commands "record btrace pt" and "record pt".
4550 Announce new options "set|show record btrace pt buffer-size".
4551 * btrace.c: Include "rsp-low.h".
4552 Include "inttypes.h".
4553 (btrace_add_pc): Add forward declaration.
4554 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4555 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4556 (btrace_compute_ftrace_pt): New.
4557 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4558 (check_xml_btrace_version): Update version check.
4559 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4560 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4561 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4562 (btrace_pt_children): New.
4563 (btrace_children): Add support for "pt".
4564 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4565 (btrace_conf_children): Add support for "pt".
4566 * btrace.h: Include "intel-pt.h".
4567 (btrace_pt_error): New.
4568 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4569 (btrace_data_empty): Support BTRACE_FORMAT_PT.
4570 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4571 (struct btrace_config_pt): New.
4572 (struct btrace_config)<pt>: New.
4573 (struct btrace_data_pt_config, struct btrace_data_pt): New.
4574 (struct btrace_data)<pt>: New.
4575 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4577 * features/btrace.dtd (btrace)<pt>: New.
4578 (pt, pt-config, cpu): New.
4579 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4580 (perf_event_pt_event_type, kernel_supports_pt)
4581 (linux_supports_pt): New.
4582 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4583 (linux_enable_bts): Free tinfo on error.
4584 (linux_enable_pt): New.
4585 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4586 (linux_disable_pt): New.
4587 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4588 (linux_fill_btrace_pt_config, linux_read_pt): New.
4589 (linux_read_btrace): Support BTRACE_FORMAT_PT.
4590 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4591 (struct btrace_target_info)<pt>: New.
4592 * record-btrace.c (set_record_btrace_pt_cmdlist)
4593 (show_record_btrace_pt_cmdlist): New.
4594 (record_btrace_print_pt_conf): New.
4595 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4596 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4597 (cmd_record_btrace_pt_start): New.
4598 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4599 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4600 (_initialize_record_btrace): Add new commands.
4601 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4602 (remote_protocol_features): Add "Qbtrace:pt".
4603 Add "Qbtrace-conf:pt:size".
4604 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4605 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4606 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4607 (_initialize_remote): Add new commands.
4609 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
4611 * configure.ac: check for libipt
4612 * configure: Regenerate.
4613 * config.in: Regenerate.
4614 * Makefile.in (LIBIPT): New.
4615 (CLIBS): Add $LIBIPT.
4616 * NEWS: document new configure options
4618 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4620 * compile/compile-object-load.c (compile_object_load): Replace debug
4621 message "lookup undefined ELF symbol" by 3 more specific messages.
4623 2015-07-01 Kevin Buettner <kevinb@redhat.com>
4625 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4626 (rl78_register_type): Add case for RL78_PSW_REGNUM.
4627 (rl78_gdbarch_init): Initialize rl78_psw_type.
4629 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
4631 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4632 Update commentary. Always refresh the registers when frame
4633 information has changed.
4634 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4635 Change return type to int. Return 1 if frame information has
4636 changed, 0 otherwise.
4637 (tui_before_prompt): Update commentary.
4638 * tui/tui-stack.h (tui_show_frame_info): Change return type to
4641 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4644 * frame.c (select_frame): Remove reference to
4645 deprecated_selected_frame_level_changed_hook.
4646 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4648 * stack.c (deprecated_selected_frame_level_changed_hook):
4650 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4652 (tui_refresh_frame_and_register_information): ... this. Bail
4653 out if there is no stack. Don't update register information
4654 unless registers_too_p is true.
4655 (tui_print_frame_info_listing_hook): Rename to ...
4656 (tui_dummy_print_frame_info_listing_hook): ... this.
4657 (tui_before_prompt): New function.
4658 (tui_normal_stop): New function.
4659 (tui_before_prompt_observer): New observer.
4660 (tui_normal_stop_observer): New observer.
4661 (tui_install_hooks): Set
4662 deprecated_print_frame_info_listing_hook to
4663 tui_dummy_print_frame_info_listing_hook. Register
4664 tui_before_prompt_observer to call tui_before_prompt and
4665 tui_normal_stop_observer to call tui_normal_stop. Remove
4666 reference to deprecated_selected_frame_level_changed_hook.
4667 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4668 and tui_normal_stop_observer. Remove reference to
4669 deprecated_selected_frame_level_changed_hook.
4671 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4674 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4675 return an int instead of void. Return whether the locator
4677 (tui_show_frame_info): If the locator info has not changed, then
4678 bail out early to avoid refreshing the windows.
4680 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
4682 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4683 LOCATOR_WIN to tui_alloc_content.
4685 2015-06-30 Yao Qi <yao.qi@linaro.org>
4688 * arm-tdep.c (arm_get_next_pc_raw): Break for media
4691 2015-06-29 Kevin Buettner <kevinb@redhat.com>
4693 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4694 (rx_dwarf_reg_to_regnum): New function.
4695 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
4698 2015-06-29 Pedro Alves <palves@redhat.com>
4701 * infcall.c (run_inferior_call): On infcall success, if the thread
4702 was marked stopped before, reset it back to stopped.
4703 * infrun.c (resume): Don't suppress the set_running calls when
4705 (normal_stop): Only discard the finish_thread_state cleanup if the
4708 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
4710 * MAINTAINERS (Write After Approval): Update my email address.
4712 2015-06-26 Keith Seitz <keiths@redhat.com>
4713 Doug Evans <dje@google.com>
4716 * block.c (block_lookup_symbol): For non-function blocks,
4717 continue to search for a symbol with an exact domain match
4718 Otherwise, return any previously found "best domain" symbol.
4719 (block_lookup_symbol_primary): Likewise.
4721 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4723 * NEWS: Mention the new option "history remove-duplicates".
4724 * top.c (history_remove_duplicates): New static variable.
4725 (show_history_remove_duplicates): New static function.
4726 (gdb_add_history): Conditionally remove duplicate history
4728 (init_main): Add "history remove-duplicates" option.
4730 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
4732 * tui/tui-win.c (focus_completer): New static function.
4733 (_initialize_tui_win): Set the completion function of the
4734 "focus" command to focus_completer.
4736 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4740 * symtab.c (find_function_start_sal): Likewise.
4742 2015-06-25 Gary Benson <gbenson@redhat.com>
4744 * solib.c (solib_find_1): Set local variable sysroot to NULL if
4745 it is the empty string after trailing slashes have been stripped.
4747 2015-06-25 Gary Benson <gbenson@redhat.com>
4749 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4750 * infrun.c (follow_exec): Likewise.
4751 * remote.c (remote_filesystem_is_local): Likewise.
4752 * solib.c (solib_find_1): Likewise.
4754 2015-06-24 Keith Seitz <keiths@redhat.com>
4756 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4757 return value from lrealpath.
4759 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4761 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4763 2015-06-24 Mike Frysinger <vapier@gentoo.org>
4765 * remote-sim.c: Include gdb_bfd.h.
4766 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4767 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4769 2015-06-24 Yao Qi <yao.qi@linaro.org>
4771 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4772 set_gdbarch_get_siginfo_type.
4773 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4774 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4775 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4776 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4777 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4778 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4779 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4780 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4781 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4782 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4784 2015-06-24 Gary Benson <gbenson@redhat.com>
4786 * common/buffer.c (stdint.h): Do not include.
4787 * common/print-utils.c (stdint.h): Likewise.
4788 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4789 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4790 * ft32-tdep.c (gdb_assert.h): Likewise.
4791 * guile/scm-utils.c (stdint.h): Likewise.
4792 * i386-linux-tdep.c (stdint.h): Likewise.
4793 * i386-tdep.c (stdint.h): Likewise.
4794 * nat/linux-btrace.c (stdint.h): Likewise.
4795 * nat/linux-btrace.h (stdint.h): Likewise.
4796 * nat/linux-ptrace.c (stdint.h): Likewise.
4797 * nat/mips-linux-watch.h (stdint.h): Likewise.
4798 * ppc-linux-nat.c (stdint.h): Likewise.
4799 * python/python-internal.h (stdint.h): Likewise.
4800 * stub-termcap.c (stdlib.h): Likewise.
4801 * target/target.h (stdint.h): Likewise.
4802 * xtensa-linux-nat.c (stdint.h): Likewise.
4804 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4806 * top.c (init_history): Look at errno after calling strtol to
4807 properly map large GDBHISTSIZE values to infinity.
4809 2015-06-23 Doug Evans <dje@google.com>
4811 * inferior.h (struct inferior_suspend_state): Delete, unused.
4812 All references deleted.
4814 2015-06-23 Mike Frysinger <vapier@gentoo.org>
4816 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4817 (microblaze_push_dummy_call): Likewise.
4818 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4819 and set_gdbarch_push_dummy_call.
4821 2015-06-23 Yao Qi <yao.qi@linaro.org>
4823 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4824 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4825 (amd64_linux_store_inferior_registers): Likewise.
4826 * arm-linux-nat.c (fetch_fpregister): Likewise.
4827 (fetch_fpregs, store_fpregister): Likewise.
4828 (store_fpregister, store_fpregs): Likewise.
4829 (fetch_register, fetch_regs): Likewise.
4830 (store_register, store_regs): Likewise.
4831 (fetch_vfp_regs, store_vfp_regs): Likewise.
4832 (arm_linux_read_description): Check have_ptrace_getregset is
4833 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4835 * i386-linux-nat.c (fetch_xstateregs): Check
4836 have_ptrace_getregset is not TRIBOOL_TRUE.
4837 (store_xstateregs): Likewise.
4838 * linux-nat.c (have_ptrace_getregset): Change its type to
4840 * linux-nat.h (tribool): New enum.
4841 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4842 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4844 2015-06-19 Doug Evans <dje@google.com>
4846 * NEWS: Mention Sun's version of stabs is no longer supported.
4847 * elfread.c (free_elfinfo): Delete. All uses updated.
4848 (elfstab_offset_sections): Delete. All uses updated.
4849 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4850 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4852 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4853 All callers updated.
4855 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4857 * common/rsp-low.c (needs_escaping): New.
4858 (remote_escape_output): Add unit_size parameter. Refactor to
4859 support multi-byte addressable units. Rename parameters.
4860 * common/rsp-low.h (remote_escape_output): Add unit_size
4861 parameter and rename others. Update doc.
4862 * remote.c (align_for_efficient_write): New.
4863 (remote_write_bytes_aux): Add unit_size parameter and use it.
4864 Rename some variables. Update doc.
4865 (remote_xfer_partial): Get unit size and use it.
4866 (remote_read_bytes_1): Add unit_size parameter and use it.
4867 Rename some variables. Update doc.
4868 (remote_write_bytes): Same.
4869 (remote_xfer_live_readonly_partial): Same.
4870 (remote_read_bytes): Same.
4871 (remote_flash_write): Update call to remote_write_bytes_aux.
4872 (remote_write_qxfer): Update call to remote_escape_output.
4873 (remote_search_memory): Same.
4874 (remote_hostio_pwrite): Same.
4876 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4878 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4879 locations as inserted.
4880 Update and expand comment about permanent locations.
4881 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4882 Move comment to add_location_to_breakpoint.
4883 (update_global_location_list): Don't error out if a permanent
4884 breakpoint is not marked inserted.
4885 Don't error out if a non-permanent breakpoint location is inserted on
4886 top of a permanent breakpoint.
4888 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4890 * breakpoint.c (make_breakpoint_permanent): Remove unused
4892 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4894 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4897 * NEWS: Mention new GDBHISTSIZE behavior.
4898 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4899 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4901 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4903 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4904 * top.c (init_history): Read from GDBHISTSIZE instead of
4906 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4908 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4910 * top.c (gdb_safe_append_history): Do not call
4911 history_truncate_file if the history is not stifled.
4913 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4915 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4916 * syscalls/s390x-linux.xml: Likewise.
4918 2015-06-16 Michael Eager <eager@eagercon.com>
4920 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4922 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4924 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4925 target_terminal_ours_for_output() before calling
4926 tui_show_frame_info(), and restore the original terminal
4927 settings afterwards.
4929 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4931 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4933 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4935 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4937 (mi_cmd_data_write_memory_bytes): Same.
4939 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4941 * corefile.c (write_memory): Update doc.
4942 * gdbcore.h (write_memory): Same.
4944 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4946 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4947 (dump_mapping_p): Use it for parameter filterflags.
4948 (linux_find_memory_regions_full): Use it for variable filterflags.
4950 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4951 Jan Kratochvil <jan.kratochvil@redhat.com>
4953 Merge multiple hex conversions.
4954 * monitor.c: Include rsp-low.h.
4955 (fromhex): Remove definition.
4957 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4958 Jan Kratochvil <jan.kratochvil@redhat.com>
4960 Move utility functions to common/.
4961 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4962 Move defs to common/common-utils.c.
4963 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4964 (skip_to_space_const): Move decls to common/common-utils.h.
4965 * common/common-defs.h: Move include of common-types.h before
4967 * common/common-utils.c: Include host-defs.h and ctype.h.
4968 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4970 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4972 * common/common-utils.h (strtoulst): Move decl from utils.h.
4973 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4974 Move from cli/cli-utils.h.
4975 * common/host-defs.h: Include limits.h.
4976 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4977 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4978 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4979 common/common-utils.h.
4980 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4981 (strtoulst): Move to common/common-utils.c.
4982 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4984 2015-06-15 Yao Qi <yao.qi@linaro.org>
4986 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4988 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4990 * build-id.c: Don't include elf-bfd.h.
4991 (build_id_bfd_get): Use bfd_build_id.
4992 (build_id_verify): Ditto.
4993 * build-id.h: Ditto.
4994 (find_separate_debug_file_by_buildid): Ditto.
4995 * python/py-objfile.c: Don't include elf-bfd.h.
4996 (objfpy_get_build_id) Use bfd_build_id.
4997 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4998 * coffread.c: Include build-id.h.
4999 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
5001 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5003 * windows-nat.c (do_windows_fetch_inferior_registers)
5004 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
5005 conditional with __CYGWIN__.
5007 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
5009 * completer.c: Add arch-utils.h include.
5010 (enum reg_completer_targets): New enum.
5011 (reg_or_group_completer_1): New function containing old
5012 reg_or_group_completer, add and use new parameter to control what
5013 is completed on. Use get_current_arch rather than architecture of
5014 currently selected frame.
5015 (reg_or_group_completer): Call new reg_or_group_completer_1.
5016 (reggroup_completer): Call new reg_or_group_completer_1.
5017 * completer.h (reggroup_completer): Add declaration.
5018 * tui/tui-regs.c: Add 'completer.h' include.
5019 (tui_reg_next_command): Renamed to...
5020 (tui_reg_next): ...this. Adjust parameters and return rather than
5022 (tui_reg_prev_command): Renamed to...
5023 (tui_reg_prev): ...this. Adjust parameters and return rather than
5025 (tui_reg_float_command): Delete.
5026 (tui_reg_general_command): Delete.
5027 (tui_reg_system_command): Delete.
5028 (tui_reg_command): Rewrite to perform switching of register group.
5030 (tuireglist): Remove.
5031 (tui_reggroup_completer): New function.
5032 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
5033 creation of 'tui reg' command.
5034 * NEWS: Add comment about 'tui reg' changes.
5036 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5038 * target.c (target_read): Consider addressable unit size when
5039 reading from a memory object.
5040 (read_memory_robust): Same.
5041 (read_whatever_is_readable): Same.
5042 (target_write_with_progress): Consider addressable unit size
5043 when writing to a memory object.
5044 * target.h (target_read): Update documentation.
5045 (target_write): Add documentation.
5047 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5049 * arch-utils.h (default_addressable_memory_unit_size): New.
5050 * arch-utils.c (default_addressable_memory_unit_size): New.
5051 * gdbarch.sh (addressable_memory_unit_size): New.
5052 * gdbarch.h: Re-generate.
5053 * gdbarch.c: Re-generate.
5055 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5057 * target.c (target_read): Rename variables and use
5059 (target_read_with_progress): Same.
5060 (read_memory_robust): Constify parameters and rename
5062 (read_whatever_is_readable): Constify parameters,
5063 rename variables, adjust formatting.
5064 * target.h (read_memory_robust): Constify parameters.
5066 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5068 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
5069 synthetic (non-AltiVec) vector types.
5070 (ppc64_sysv_abi_return_value): Likewise.
5072 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
5074 PR breakpoints/16465
5075 * breakpoint.c (create_breakpoint): Save extra_string for
5076 pending breakpoints.
5078 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5080 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
5081 and bt_mask to CORE_ADDR.
5083 2015-06-11 Gary Benson <gbenson@redhat.com>
5085 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
5086 (mnsh_recv_message): Likewise.
5088 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
5090 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
5091 long long int and plongest instead of %ll.
5093 2015-06-11 Gary Benson <gbenson@redhat.com>
5095 * nat/linux-namespaces.c (gdb_wait.h): New include.
5096 (sys/wait.h): Do not include.
5098 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
5100 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
5101 end_sequence is true.
5103 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5106 * solib-target.c (library_list_start_list): Use explicit NULL
5109 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5111 * solib-target.c (library_list_start_list): Do not dereference
5112 variable version in its initialization. Make the VERSION check handle
5114 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
5116 2015-06-10 Gary Benson <gbenson@redhat.com>
5118 * NEWS: Announce support for direct access of executable and
5119 shared library files when attaching to inferiors in containers
5120 on GNU/Linux systems.
5122 2015-06-10 Gary Benson <gbenson@redhat.com>
5124 * remote.c (struct remote_state) <fs_pid>: New field.
5125 (new_remote_state): Initialize the above.
5126 (PACKET_vFile_setfs): New enum value.
5127 (remote_hostio_set_filesystem): New function.
5128 (remote_hostio_open): Call the above.
5129 (remote_hostio_unlink): Likewise.
5130 (remote_hostio_readlink): Likewise.
5131 (_initialize_remote): Register new "set/show remote
5132 hostio-setfs-packet" command.
5133 * NEWS: Announce new vFile:setfs packet.
5135 2015-06-10 Gary Benson <gbenson@redhat.com>
5137 * linux-nat.c (nat/linux-namespaces.h): New include.
5138 (fileio.h): Likewise.
5139 (linux_nat_filesystem_is_local): New function.
5140 (linux_nat_fileio_pid_of): Likewise.
5141 (linux_nat_fileio_open): Likewise.
5142 (linux_nat_fileio_readlink): Likewise.
5143 (linux_nat_fileio_unlink): Likewise.
5144 (linux_nat_add_target): Initialize to_filesystem_is_local,
5145 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
5146 (_initialize_linux_nat): New "set/show debug linux-namespaces"
5148 * NEWS: Mention new "set/show debug linux-namespaces" commands.
5150 2015-06-10 Gary Benson <gbenson@redhat.com>
5152 * target.h (struct inferior): New forward declaration.
5153 (struct target_ops) <to_filesystem_is_local>: Update comment.
5154 (struct target_ops) <to_fileio_open>: New argument inf.
5155 Update comment. All implementations updated.
5156 (struct target_ops) <to_fileio_unlink>: Likewise.
5157 (struct target_ops) <to_fileio_readlink>: Likewise.
5158 (target_filesystem_is_local): Update comment.
5159 (target_fileio_open): New argument inf. Update comment.
5160 (target_fileio_unlink): Likewise.
5161 (target_fileio_readlink): Likewise.
5162 (target_fileio_read_alloc): Likewise.
5163 (target_fileio_read_stralloc): Likewise.
5164 * target.c (target_fileio_open): New argument inf.
5165 Pass inf to implementation. Update debug printing.
5166 (target_fileio_unlink): Likewise.
5167 (target_fileio_readlink): Likewise.
5168 (target_fileio_read_alloc_1): New argument inf. Pass inf
5169 to target_fileio_open.
5170 (target_fileio_read_alloc): New argument inf. Pass inf to
5171 target_fileio_read_alloc_1.
5172 (target_fileio_read_stralloc): Likewise.
5173 * gdb_bfd.c (inferior.h): New include.
5174 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
5175 argument with new argument "inferior". Pass inferior to
5177 (gdb_bfd_open): Supply inferior argument to
5178 gdb_bfd_iovec_fileio_open.
5179 * linux-tdep.c (linux_info_proc): Supply inf argument to
5180 relevant target_fileio calls.
5181 (linux_find_memory_regions_full): Likewise.
5182 (linux_fill_prpsinfo): Likewise.
5183 * remote.c (remote_filesystem_is_local): Supply inf
5184 argument to remote_hostio_open.
5185 (remote_file_put): Likewise.
5186 (remote_file_get): Likewise.
5187 (remote_file_delete): Supply inf argument to
5188 remote_hostio_unlink.
5190 2015-06-10 Gary Benson <gbenson@redhat.com>
5192 * inf-child.c (inf_child_fileio_open): Replace comment.
5193 (inf_child_fileio_pwrite): Likewise.
5194 (inf_child_fileio_pread): Likewise.
5195 (inf_child_fileio_fstat): Insert blank line before comment.
5196 (inf_child_fileio_close): Replace comment.
5197 (inf_child_fileio_unlink): Likewise.
5198 (inf_child_fileio_readlink): Likewise.
5199 * remote.c (remote_hostio_open): Likewise.
5200 (remote_hostio_pread): Likewise.
5201 (remote_hostio_pwrite): Likewise.
5202 (remote_hostio_close): Likewise.
5203 (remote_hostio_unlink): Likewise.
5204 (remote_hostio_readlink): Likewise.
5205 (remote_hostio_fstat): Likewise.
5206 (remote_filesystem_is_local): Likewise.
5207 * target.c (target_fileio_open): Likewise.
5208 (target_fileio_pwrite): Likewise.
5209 (target_fileio_pread): Likewise.
5210 (target_fileio_fstat): Insert blank line before comment.
5211 (target_fileio_close): Replace comment.
5212 (target_fileio_unlink): Likewise.
5213 (target_fileio_readlink): Likewise.
5214 (target_fileio_read_alloc): Likewise.
5215 (target_fileio_read_stralloc): Likewise.
5217 2015-06-10 Gary Benson <gbenson@redhat.com>
5219 * linux-thread-db.c (nat/linux-namespaces.h): New include.
5220 (check_pid_namespace_match): Use linux_ns_same rather than
5221 linux_proc_pid_get_ns to spot PID namespace mismatches.
5222 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
5223 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
5225 2015-06-10 Gary Benson <gbenson@redhat.com>
5227 * configure.ac (AC_CHECK_FUNCS): Add setns.
5228 * config.in: Regenerate.
5229 * configure: Likewise.
5230 * nat/linux-namespaces.h: New file.
5231 * nat/linux-namespaces.c: Likewise.
5232 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
5233 (linux-namespaces.o): New rule.
5234 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
5235 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5236 * config/arm/linux.mh (NATDEPFILES): Likewise.
5237 * config/i386/linux.mh (NATDEPFILES): Likewise.
5238 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5239 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5240 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5241 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5242 * config/mips/linux.mh (NATDEPFILES): Likewise.
5243 * config/pa/linux.mh (NATDEPFILES): Likewise.
5244 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5245 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5246 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5247 * config/s390/linux.mh (NATDEPFILES): Likewise.
5248 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5249 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5250 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5251 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5253 2015-06-10 Gary Benson <gbenson@redhat.com>
5255 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5256 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5257 (make_cleanup_close): Likewise.
5258 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5259 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5260 (make_cleanup_close): Likewise.
5262 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5264 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5265 from SuspendThread().
5267 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5269 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5270 from OutputDebugString.
5272 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5273 Mircea Gherzan <mircea.gherzan@intel.com>
5275 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5276 MPX_BT_MASK_32): New macros.
5277 (i386_mpx_set_bounds): New function that implements
5278 the command "set-mpx-bound".
5279 (i386_mpx_enabled): Helper function to test MPX availability.
5280 (i386_mpx_bd_base): Helper function to calculate the base directory
5282 (i386_mpx_get_bt_entry): Helper function to access a bound
5284 (i386_mpx_print_bounds): Effectively display bound information.
5285 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5287 (_initialize_i386_tdep):
5288 Add "bound" to the commands "show mpx" and "set mpx" commands.
5289 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5290 and "show mpx" commands.
5291 * NEWS: List new commands for MPX support.
5293 2015-06-09 Gary Benson <gbenson@redhat.com>
5295 * common/fileio.h (fileio_to_host_mode): New declaration.
5296 * common/fileio.c (fileio_to_host_mode): New Function.
5297 * inf-child.c (inf_child_fileio_open): Process mode argument
5298 with fileio_to_host_mode.
5300 2015-06-09 Gary Benson <gbenson@redhat.com>
5302 * common/fileio.c (fileio_mode_pack): Fix preprocessor
5305 2015-06-05 Gary Benson <gbenson@redhat.com>
5307 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5308 * remote.c (remote_filesystem_is_local): ...here.
5310 2015-06-04 Yao Qi <yao.qi@linaro.org>
5312 * gdbarch.c: Regenerate it.
5314 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5316 * arch-utils.c (default_infcall_munmap): New.
5317 * arch-utils.h (default_infcall_munmap): New declaration.
5318 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5319 (munmap_list_free, munmap_listp_free_cleanup): New.
5320 (struct setup_sections_data): Add field munmap_list_headp.
5321 (setup_sections): Call munmap_list_add.
5322 (compile_object_load): New variable munmap_list_head, initialize
5323 setup_sections_data.munmap_list_headp, return munmap_list_head.
5324 * compile/compile-object-load.h (struct munmap_list): New declaration.
5325 (struct compile_module): Add field munmap_list_head.
5326 (munmap_list_free): New declaration.
5327 * compile/compile-object-run.c (struct do_module_cleanup): Add field
5329 (do_module_cleanup): Call munmap_list_free.
5330 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5331 * gdbarch.c: Regenerate.
5332 * gdbarch.h: Regenerate.
5333 * gdbarch.sh (infcall_munmap): New.
5334 * linux-tdep.c (linux_infcall_munmap): New.
5335 (linux_init_abi): Install it.
5337 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
5340 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5342 2015-06-02 Yao Qi <yao.qi@linaro.org>
5344 * i386-linux-nat.c: Include linux-nat.h.
5346 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
5347 Jan Kratochvil <jan.kratochvil@redhat.com>
5350 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5352 * dwarf2loc.c (chain_candidate): Likewise.
5354 2015-06-01 Yao Qi <yao.qi@linaro.org>
5356 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5357 (store_vfp_regs): Use PTRACE_SETREGSET.
5359 2015-06-01 Yao Qi <yao.qi@linaro.org>
5361 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5362 (fetch_fpregs): Likewise.
5363 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5364 (store_fpregs): Likewise.
5366 2015-06-01 Yao Qi <yao.qi@linaro.org>
5368 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5369 (fetch_regs): Likewise.
5370 (store_regs): Use PTRACE_SETREGSET.
5371 (store_register): Likewise.
5373 2015-06-01 Yao Qi <yao.qi@linaro.org>
5375 * arm-linux-nat.c (arm_linux_read_description): Check whether
5376 kernel supports PTRACE_GETREGSET.
5378 2015-06-01 Yao Qi <yao.qi@linaro.org>
5380 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5381 * linux-nat.c: ... here.
5382 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5384 * linux-nat.h: ... here.
5386 2015-06-01 Yao Qi <yao.qi@linaro.org>
5388 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5389 * i386-linux-nat.c: Likewise.
5390 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5391 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5392 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5393 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5394 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5396 2015-05-30 Eli Zaretskii <eliz@gnu.org>
5398 * go32-nat.c (go32_xfer_memory): Fix the return value to be
5399 compatible to what read_child and write_child return. This
5400 unbreaks that DJGPP build of GDB which was broken since v7.7.
5402 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
5404 * MAINTAINERS (Write After Approval): Add Martin Galvan.
5406 2015-05-29 Roland McGrath <mcgrathr@google.com>
5409 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5410 rather than internal_error for an unrecognized value.
5412 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
5414 * xtensa-tdep.c (xtensa_pseudo_register_read)
5415 (xtensa_pseudo_register_write): Don't alias last pseudo register
5418 2015-05-28 Don Breazeal <donb@codesourcery.com>
5420 * infrun.c (follow_fork_inferior): Ensure the use of
5421 process-style ptids (pid,0,0) in verbose/debug "Detaching"
5424 2015-05-28 Doug Evans <dje@google.com>
5426 * dwarf2read.c (record_line_ftype): Remove, duplicate.
5428 2015-05-28 Yao Qi <yao.qi@linaro.org>
5430 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5431 (arm_linux_fetch_inferior_registers): Use
5432 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5433 (arm_linux_store_inferior_registers): Likewise.
5434 (arm_linux_read_description): Don't set
5435 arm_linux_has_wmmx_registers.
5436 * arm-tdep.c (arm_gdbarch_init): Set
5437 tdep->have_wmmx_registers according target descriptions.
5438 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5441 2015-05-28 Yao Qi <yao.qi@linaro.org>
5443 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5444 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5445 instead of arm_linux_vfp_register_count.
5446 (store_vfp_regs): Likewise.
5447 (arm_linux_fetch_inferior_registers): Likewise.
5448 (arm_linux_store_inferior_registers): Likewise.
5449 (arm_linux_read_description): Don't set
5450 arm_linux_vfp_register_count.
5451 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5453 * arm-tdep.c (arm_gdbarch_init): Add assert on
5455 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5456 field to vfp_register_count. All users updated.
5458 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5460 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5461 ELFOSABI_GNU binaries.
5463 2015-05-27 Doug Evans <dje@google.com>
5465 * dwarf2read.c (lnp_state_machine): New typedef.
5466 (lnp_reader_state): New typedef.
5467 (dwarf_record_line_1): Renamed from dwarf_record_line.
5468 All callers updated.
5469 (dwarf_record_line): New function.
5470 (init_lnp_state_machine): New function.
5471 (check_line_address): Replace p_record_line parameter with state.
5472 All callers updated.
5473 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5474 Update to record state in lnp_state_machine.
5476 2015-05-27 Doug Evans <dje@google.com>
5478 * dwarf2read.c (record_line_ftype): New typedef.
5479 (check_line_address): New function.
5480 (dwarf_decode_lines_1): Call it.
5482 2015-05-27 Doug Evans <dje@google.com>
5484 * NEWS: Mention "set debug dwarf-line".
5485 * dwarf2read.c (dwarf_line_debug): New static global.
5486 (add_include_dir): Add debug dwarf-line support.
5487 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5488 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5490 2015-05-27 Doug Evans <dje@google.com>
5492 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5493 All callers updated.
5494 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5495 * cp-support.h (cp_lookup_nested_symbol): Update.
5497 2015-05-27 Doug Evans <dje@google.com>
5500 * block.c (block_find_symbol): New function.
5501 (block_find_non_opaque_type): Ditto.
5502 (block_find_non_opaque_type_preferred): Ditto.
5503 * block.h (block_symbol_matcher_ftype): New typedef.
5504 (block_find_symbol): Declare.
5505 (block_find_non_opaque_type): Ditto.
5506 (block_find_non_opaque_type_preferred): Ditto.
5507 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5508 * psymtab.c (psym_lookup_symbol): Ditto.
5509 * symtab.c (basic_lookup_transparent_type_1): New function.
5510 (basic_lookup_transparent_type): Call it.
5512 2015-05-27 Yao Qi <yao.qi@linaro.org>
5514 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5515 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5517 2015-05-27 Yao Qi <yao.qi@linaro.org>
5519 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5521 (aarch64_record_load_store): Likewise.
5523 2015-05-26 Doug Evans <dje@google.com>
5525 PR c++/18141, c++/18417.
5526 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5529 2015-05-26 Doug Evans <dje@google.com>
5531 * NEWS: Add entries for command renamings.
5532 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5534 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
5535 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5537 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5538 All callers updated. Fix spelling of DWARF in help text.
5539 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5541 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5543 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
5544 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
5545 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5547 (show_dwarf_always_disassemble): Renamed from
5548 show_dwarf2_always_disassemble. All callers updated.
5549 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5550 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
5551 "set/show dwarf max-cache-age". Rename
5552 "set/show dwarf2 always-disassemble" to
5553 "set/show dwarf always-disassemble". Rename
5554 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
5555 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5557 2015-05-26 Doug Evans <dje@google.com>
5560 * python/py-lazy-string.c (stpy_convert_to_value): Use
5561 gdbpy_gdb_memory_error not PyExc_MemoryError.
5562 (gdbpy_create_lazy_string_object): Ditto.
5564 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5566 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5568 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
5570 * tui/tui-regs.c (tui_reg_prev_command): New function.
5571 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5572 * reggroups.c (reggroup_prev): New function.
5573 * reggroups.h (reggroup_prev): Add declaration. Update comment.
5575 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5576 Yao Qi <yao.qi@linaro.org>
5578 * aarch64-linux-tdep.c: Include linux-record.h and
5580 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5581 (aarch64_syscall): New enum.
5582 (aarch64_canonicalize_syscall): New function.
5583 (aarch64_all_but_pc_registers_record): New function.
5584 (aarch64_linux_syscall_record): New function.
5585 (aarch64_linux_init_abi): Install AArch64 process record
5586 handler. Update to handle syscall recording.
5587 * aarch64-tdep.c: Include record.h and record-full.h.
5588 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5589 (struct aarch64_mem_r): Define.
5590 (aarch64_record_result): New enum.
5591 (struct insn_decode_record): Define.
5592 (insn_decode_record): New typedef.
5593 (aarch64_record_data_proc_reg): New function.
5594 (aarch64_record_data_proc_imm): New function.
5595 (aarch64_record_branch_except_sys): New function.
5596 (aarch64_record_load_store): New function.
5597 (aarch64_record_data_proc_simd_fp): New function.
5598 (aarch64_record_asimd_load_store): New function.
5599 (aarch64_record_decode_insn_handler): New function.
5600 (deallocate_reg_mem): New function.
5601 (aarch64_process_record): New function.
5602 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5604 (aarch64_process_record): New extern declaration.
5605 * configure.tgt: Add linux-record.o to gdb_target_obs.
5606 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5608 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
5610 * NEWS: Add a note on process record-replay support on aarch64*-linux*
5613 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
5615 * amd64-tdep.c: Replace in_function_epilogue_p with
5616 stack_frame_destroyed_p throughout.
5617 * arch-utils.c: Ditto.
5618 * arch-utils.h: Ditto.
5619 * arm-tdep.c: Ditto.
5620 * breakpoint.c: Ditto.
5621 * gdbarch.sh: Ditto.
5622 * hppa-tdep.c: Ditto.
5623 * i386-tdep.c: Ditto.
5624 * mips-tdep.c: Ditto.
5625 * nios2-tdep.c: Ditto.
5626 * rs6000-tdep.c: Ditto.
5627 * s390-linux-tdep.c: Ditto.
5628 * score-tdep.c: Ditto.
5630 * sparc-tdep.c: Ditto.
5631 * sparc-tdep.h: Ditto.
5632 * sparc64-tdep.c: Ditto.
5633 * spu-tdep.c: Ditto.
5634 * tic6x-tdep.c: Ditto.
5635 * tilegx-tdep.c: Ditto.
5636 * xstormy16-tdep.c: Ditto.
5637 * gdbarch.c, gdbarch.h: Re-generated.
5639 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5641 * NEWS: Mention 'tui enable' and 'tui disable'.
5642 * tui/tui.c (tui_enable_command): New function.
5643 (tui_disable_command): New function.
5644 (_initialize_tui): New function.
5646 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5648 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5650 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5652 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5655 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5657 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5659 (tui_set_layout_for_display_command): ...here, before calling
5660 tui_set_layout. Only set the layout if gdb has not already
5661 entered the TUI_FAILURE state.
5663 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * tui/tui-layout.c (layout_completer): New function.
5666 (_initialize_tui_layout): Set completer on layout command.
5668 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
5670 * tui/tui-layout.c (tui_set_layout): Remove
5671 tui_register_display_type parameter. Remove all checking of this
5672 parameter, and reindent function. Update header comment.
5673 (tui_set_layout_for_display_command): Rename to...
5674 (tui_set_layout_by_name): ...this, and don't check for different
5675 register class types, don't pass a tui_register_display_type to
5676 tui_set_layout. Update header comment.
5677 (layout_names): Remove register set specific names.
5678 * tui/tui-layout.h (tui_set_layout): Remove
5679 tui_register_display_type parameter.
5680 * tui/tui.c (tui_rl_change_windows): Don't pass a
5681 tui_register_display_type to tui_set_layout.
5682 (tui_rl_delete_other_windows): Likewise.
5683 (tui_enable): Likewise.
5684 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5685 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5686 (TUI_GENERAL_REGS_NAME): Remove.
5687 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5688 (TUI_SPECIAL_REGS_NAME): Remove.
5689 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5690 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5691 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5692 (enum tui_register_display_type): Remove.
5693 (struct tui_layout_def): Remove regs_display_type and
5694 float_regs_display_type fields.
5695 (struct tui_data_info): Remove regs_display_type field.
5696 (tui_layout_command): Use new name for
5697 tui_set_layout_for_display_command.
5698 * tui/tui-data.c (layout_def): Don't initialise removed fields.
5699 (tui_clear_win_detail): Don't initialise removed fields of
5701 * tui/tui-regs.c (tui_show_registers): Use new name for
5702 tui_set_layout_for_display_command.
5703 * tui/tui.h (tui_set_layout_for_display_command): Rename
5705 (tui_set_layout_by_name): ...this.
5706 * printcmd.c (display_command): Remove tui related layout call,
5709 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5711 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5712 (handle_inferior_event): New function.
5714 2015-05-20 Joel Brobecker <brobecker@adacore.com>
5716 * ada-lang.c (to_fixed_array_type): Rename local variable
5717 typename into type_name.
5719 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5721 Fix ASAN crash for gdb.compile/compile.exp.
5722 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5724 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5727 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5728 * compile/compile-object-load.c (setup_sections, compile_object_load):
5730 * compile/compile.c (compile_to_object): Likewise.
5732 2015-05-16 Doug Evans <xdje42@gmail.com>
5734 * NEWS: Mention support for unbuffered Guile memory ports.
5735 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5736 (ioscm_lseek_address): Improve overflow calculation.
5737 (gdbscm_memory_port_fill_input): Add assert.
5738 (gdbscm_memory_port_write): Handle unbuffered ports.
5739 Handle large writes identical to Guile's fport_write.
5740 (gdbscm_memory_port_seek): Fix seeking past end check.
5741 (gdbscm_memory_port_close): Handle closing unbuffered port.
5742 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5743 (ioscm_init_memory_port): Handle unbuffered ports.
5744 (ioscm_reinit_memory_port): Ditto.
5745 (ioscm_init_memory_port): Update size calculation.
5746 (gdbscm_open_memory): Support zero sized ports.
5748 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5750 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5751 variable compiler warnings.
5753 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5755 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5757 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5758 Phil Muldoon <pmuldoon@redhat.com>
5760 * NEWS (Changes since GDB 7.9): Add compile print.
5761 * compile/compile-c-support.c (add_code_header, add_code_footer)
5762 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5763 COMPILE_I_PRINT_VALUE_SCOPE.
5764 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5765 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5767 * compile/compile-object-load.c: Include block.h.
5768 (get_out_value_type): New function.
5769 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5770 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
5772 * compile/compile-object-load.h (struct compile_module): Add fields
5773 out_value_addr and out_value_type.
5774 * compile/compile-object-run.c: Include valprint.h and compile.h.
5775 (struct do_module_cleanup): Add fields out_value_addr and
5777 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5778 COMPILE_I_PRINT_VALUE_SCOPE.
5779 (compile_object_run): Propagate out_value_addr and out_value_type.
5780 Pass OUT_VALUE_ADDR.
5781 * compile/compile.c: Include valprint.h.
5782 (compile_print_value, compile_print_command): New functions.
5783 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5784 (_initialize_compile): Update compile code help text. Install
5785 compile_print_command.
5786 * compile/compile.h (compile_print_value): New prototype.
5787 * defs.h (enum compile_i_scope_types): Add
5788 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5790 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5793 Rely on its parameter count.
5794 (compile_object_load): Replace lookup_minimal_symbol_text by
5795 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5797 * compile/compile-object-load.h (struct compile_module): Replace
5798 func_addr by func_sym.
5799 * compile/compile-object-run.c: Include block.h.
5800 (compile_object_run): Reset module variable after it is freed. Use
5801 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5803 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5805 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5806 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5807 (c_compute_program): Call generate_register_struct after typedefs.
5808 * compile/compile-loc2c.c (push, pushf_register_address)
5809 (pushf_register): Cast to GCC_UINTPTR.
5810 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5811 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5812 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5813 * compile/compile.c (_initialize_compile): Enable warnings for
5816 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5818 * cli/cli-script.c (execute_control_command): Update
5819 eval_compile_command caller.
5820 * compile/compile-object-load.c (compile_object_load): Add parameters
5821 scope and scope_data. Set them.
5822 * compile/compile-object-load.h (struct compile_module): Add fields
5823 scope and scope_data.
5824 (compile_object_load): Add parameters scope and scope_data.
5825 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5826 scope and scope_data.
5827 (compile_object_run): Propagate the fields scope and scope_data.
5828 * compile/compile.c (compile_file_command, compile_code_command):
5829 Update eval_compile_command callers.
5830 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5831 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5832 * defs.h (struct command_line): Add field scope_data.
5834 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5836 * printcmd.c (struct format_data): Move it to valprint.h.
5837 (print_command_parse_format, print_value): New functions from ...
5838 (print_command_1): ... here. Call them.
5839 * valprint.h (struct format_data): Move it here from printcmd.c.
5840 (print_command_parse_format, print_value): New declarations.
5842 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5844 * compile/compile-object-load.c (compile_object_load): Add
5845 COMPILE_DEBUG message.
5847 2015-05-15 Jerome Guitton <guitton@adacore.com>
5849 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5850 index to get element instead of enum value.
5851 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5852 of index to compute length, but enum values to compute bounds.
5853 (ada_array_length): Use enum position of index instead of enum value.
5854 (pos_atr): Move position computation to...
5855 (ada_evaluate_subexp): Use enum values to compute bounds.
5856 * gdbtypes.c (discrete_position): ...this new function.
5857 * gdbtypes.h (discrete_position): New function declaration.
5858 * valprint.c (val_print_array_elements): Call discrete_position
5859 to handle array indexed by non-contiguous enumeration types.
5861 2015-05-15 Jerome Guitton <guitton@adacore.com>
5863 * ada-lang.c (find_parallel_type_by_descriptive_type):
5864 Go through typedefs during lookup.
5865 (to_fixed_array_type): Add support for non-bit packed arrays
5866 as variable-length fields.
5868 2015-05-15 Pedro Alves <palves@redhat.com>
5869 Simon Marchi <simon.marchi@ericsson.com>
5871 * event-loop.c (gdb_notifier) <next_file_handler,
5872 next_poll_fds_index>: New fields.
5873 (get_next_file_handler_to_handle_and_advance): New function.
5874 (delete_file_handler): If deleting the next file handler to
5875 handle, advance to the next file handler.
5876 (gdb_wait_for_event): Bail early if no event fired. Poll file
5877 handlers in round-robin fashion.
5879 2015-05-15 Pedro Alves <palves@redhat.com>
5881 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5882 'private' to 'priv'.
5884 2015-05-15 Pedro Alves <palves@redhat.com>
5886 * nat/linux-nat.h: Include "target/waitstatus.h".
5888 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5890 * python/py-unwind.c (struct reg_info): Move out of ...
5891 (struct cached_frame_info): ... this scope.
5892 (pending_frame_object_type, unwind_info_object_type): Make extern.
5894 2015-05-15 Joel Brobecker <brobecker@adacore.com>
5896 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5897 accumSize is never negative.
5899 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5901 * tui/tui-command.c: Remove include of <ctype.h>.
5902 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5904 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5906 * dwarf2read.c (die_needs_namespace): Return 1 for
5907 DW_TAG_inlined_subroutine.
5909 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5911 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5912 (regcache_cpy_no_passthrough): Make it static, add function comment.
5913 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5914 (regcache_cpy_no_passthrough): Remove declaration.
5916 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5918 * gdbthread.h (struct thread_control_state): Update comment for
5920 * infcall.c (run_inferior_call): Update comment about
5922 * infcmd.c (get_return_value): Update comment about stop_registers.
5923 (finish_forward): Update comment about proceed_to_finish.
5924 * infrun.c (stop_registers): Remove.
5925 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5926 * infrun.h (stop_registers): Remove.
5928 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5930 * infcall.c (struct dummy_frame_context_saver)
5931 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5932 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5933 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5935 (call_function_by_hand_dummy): Move discard_cleanups of
5936 inf_status_cleanup before dummy_frame_push. Call
5937 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5938 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5939 * infcall.h (struct dummy_frame_context_saver)
5940 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5941 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5943 * infcmd.c: Include infcall.h.
5944 (get_return_value): Add parameter ctx_saver, use it instead of
5946 (print_return_value): Add parameter ctx_saver, pass it.
5947 (struct finish_command_continuation_args): Add field ctx_saver.
5948 (finish_command_continuation): Update print_return_value caller.
5949 (finish_command_continuation_free_arg): Free also ctx_saver.
5950 (finish_forward): Call dummy_frame_context_saver_setup.
5951 * inferior.h (struct dummy_frame_context_saver): New declaration.
5952 (get_return_value): Add parameter ctx_saver.
5953 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5954 get_return_value caller.
5956 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5958 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5959 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5960 (remove_dummy_frame): Process dtor_list.
5961 (pop_dummy_frame): Process dtor_list.
5962 (register_dummy_frame_dtor): Maintain dtor_list.
5963 (find_dummy_frame_dtor): Handle dtor_list.
5964 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5967 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5969 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5971 (compile_object_run): Update do_module_cleanup caller.
5972 * dummy-frame.c: Include infcall.h.
5973 (struct dummy_frame): Update dtor comment.
5974 (remove_dummy_frame): Call dtor.
5975 (pop_dummy_frame): Update dtor caller.
5976 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5979 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5983 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5985 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5986 Xmethods now being able to specify a result type to that new
5989 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5991 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5992 first before resizing the window.
5993 * tui/tui.c (tui_enable): Likewise.
5995 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5997 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5998 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5999 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
6000 dummy_dtor parameter.
6001 * infcall.h: Include dummy-frame.h.
6002 (call_function_by_hand_dummy_dtor_ftype): Remove.
6003 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
6006 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6009 * top.c (history_size_setshow_var): Change type to signed.
6010 Initialize to -2. Update documentation.
6011 (set_readline_history_size): Define.
6012 (set_history_size_command): Use it. Remove logic for handling
6014 (init_history): Use set_readline_history_size(). Test for a
6015 value of -2 instead of 0 when determining whether to set a
6016 default history size.
6017 (init_main): Decode the argument of the "size" command as a
6018 zuinteger_unlimited.
6020 2015-05-12 Doug Evans <dje@google.com>
6022 * dwarf2read.c (struct file_entry): Tweak comments.
6023 (get_debug_line_section): Tweak comments.
6025 2015-05-12 Don Breazeal <donb@codesourcery.com>
6027 * NEWS: Announce fork support in the RSP and support
6028 for fork debugging in extended mode.
6030 2015-05-12 Don Breazeal <donb@codesourcery.com>
6032 * remote.c (remote_insert_fork_catchpoint): New function.
6033 (remote_remove_fork_catchpoint): New function.
6034 (remote_insert_vfork_catchpoint): New function.
6035 (remote_remove_vfork_catchpoint): New function.
6036 (pending_fork_parent_callback): New function.
6037 (remove_new_fork_child): New function.
6038 (remote_update_thread_list): Call remote_notif_get_pending_events
6039 and remove_new_fork_child.
6040 (extended_remote_kill): Kill fork child when killing the
6041 parent before follow_fork completes.
6042 (init_extended_remote_ops): Initialize target vector with
6043 new fork catchpoint functions.
6045 2015-05-12 Don Breazeal <donb@codesourcery.com>
6047 * remote.c (remove_vfork_event_p): New function.
6048 (remote_follow_fork): Add vfork event type to event checking.
6049 (remote_parse_stop_reply): New stop reasons "vfork" and
6050 "vforkdone" for RSP 'T' Stop Reply Packet.
6052 2015-05-12 Don Breazeal <donb@codesourcery.com>
6054 * linux-nat.c (linux_nat_ptrace_options): New function.
6055 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
6056 Call linux_nat_ptrace_options and use different argument to
6057 linux_enable_event_reporting.
6058 (_initialize_linux_nat): Delete call to
6059 linux_ptrace_set_additional_flags.
6060 * nat/linux-ptrace.c (current_ptrace_options): Rename to
6061 supported_ptrace_options.
6062 (additional_flags): Delete variable.
6063 (linux_check_ptrace_features): Use supported_ptrace_options.
6064 (linux_test_for_tracesysgood, linux_test_for_tracefork):
6065 Likewise, and remove additional_flags check.
6066 (linux_enable_event_reporting): Change 'attached' argument to
6067 'options'. Use supported_ptrace_options.
6068 (ptrace_supports_feature): Change comment. Use
6069 supported_ptrace_options.
6070 (linux_ptrace_set_additional_flags): Delete function.
6071 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6072 Delete function prototype.
6073 * remote.c (remote_fork_event_p): New function.
6074 (remote_detach_pid): New function.
6075 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
6076 if doing detach-on-fork.
6077 (remote_follow_fork): New function.
6078 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
6079 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
6080 (init_extended_remote_ops): Initialize to_follow_fork.
6082 2015-05-12 Don Breazeal <donb@codesourcery.com>
6084 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
6085 from static to extern.
6086 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
6087 * remote.c (anonymous enum): <PACKET_fork_event_feature,
6088 * PACKET_vfork_event_feature>: New enumeration constants.
6089 (remote_protocol_features): Add table entries for new packets.
6090 (remote_query_supported): Add new feature queries to qSupported
6093 2015-05-12 Gary Benson <gbenson@redhat.com>
6095 * remote.c (remote_add_inferior): Call exec_file_locate_attach
6096 for fake PIDs as well as real ones.
6097 (remote_pid_to_exec_file): Send empty annex if PID is fake.
6099 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
6101 * NEWS (Python Scripting): Mention the new gdb.Value methods.
6102 * python/py-value.c (valpy_reference_value): New function.
6103 (valpy_const_value): Likewise.
6104 (value_object_methods): Add new methods.
6105 * value.c (make_cv_value): New function.
6106 * value.h (make_cv_value): Declare.
6108 2015-05-08 Yao Qi <yao@codesourcery.com>
6109 Sandra Loosemore <sandra@codesourcery.com>
6111 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
6112 to 'lh->include_dirs' before accessing to it.
6113 (psymtab_include_file_name): Likewise.
6114 (dwarf_decode_lines_1): Likewise.
6115 (dwarf_decode_lines): Likewise.
6116 (file_file_name): Likewise.
6118 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6120 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
6121 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
6122 (nios2_linux_rt_sigreturn_init): Adjust base address of
6125 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6127 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
6128 "trap 31" as the breakpoint instruction on all targets.
6130 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 * infcmd.c (print_return_value): Remove unused declaration.
6134 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6136 * dwarf2read.c (attr_to_dynamic_prop)
6137 <DW_AT_data_member_location>: Use read_type_die isntead of
6140 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6142 * ada-lang.c (ada_convert_actual): Add handling of formals
6143 passed inside an aligner type.
6145 2015-05-08 Joel Brobecker <brobecker@adacore.com>
6147 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
6149 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
6152 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
6153 Print xmethod matcher status.
6155 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
6157 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
6158 register in the regcache when treating the PSWM register, and vice
6161 2015-05-07 Gary Benson <gbenson@redhat.com>
6163 * linux-thread-db.c (struct thread_db_info)
6164 <td_ta_map_id2thr_p>: Remove field.
6165 (try_thread_db_load_1): Remove initialization for the above.
6167 2015-05-07 Gary Benson <gbenson@redhat.com>
6169 * linux-thread-db.c (struct thread_db_info)
6170 <td_thr_validate_p>: Remove field.
6171 (try_thread_db_load_1): Remove initialization for the above.
6173 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6175 * compile/compile-object-load.c (compile_object_load): Support
6178 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6180 * compile/compile.c (compile_to_object): Make the cmd_string parameter
6181 const. Use new variables for the const compatibility.
6182 (eval_compile_command): Make the cmd_string parameter const.
6183 * compile/compile.h (eval_compile_command): Make the cmd_string
6186 2015-05-06 Joel Brobecker <brobecker@adacore.com>
6188 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
6190 * top.c (deprecated_init_ui_hook): Delete.
6191 (gdb_init): Remove handling of deprecated_init_ui_hook.
6192 * interps.c (clear_interpreter_hooks): Remove handling of
6193 deprecated_init_ui_hook.
6194 * main.c (captured_main): Update comment.
6196 2015-05-06 Joel Brobecker <brobecker@adacore.com>
6198 * solib.c (_initialize_solib): Add "info dll" alias creation.
6199 * windows-nat.c (set_windows_aliases): Delete.
6200 (_initialize_windows_nat): Remove deprecated_init_ui_hook
6202 * NEWS: Add news entry about "info dll" now being available
6205 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6207 * ada-lang.c (value_assign_to_component): Reformat and improve
6208 documentation. Remove all trailing spaces.
6210 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6212 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6213 Stop counting inlined frames as soon as an out-of-line function
6216 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
6218 * dwarf2read.c (inherit_abstract_dies): Skip
6219 DW_TAG_GNU_call_site dies while inheriting children of an
6220 abstract DIE into a scope.
6221 (read_lexical_block_scope): Inherit abstract DIE's for
6224 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6226 * ada-valprint.c (val_print_packed_array_elements): Delete
6227 variable "len". Add a type-length check when comparing two
6228 consecutive elements of the array. Use the element's actual
6229 length in call to value_contents_eq.
6230 * ada-lang.c (ada_value_primitive_packed_val): Always return
6231 a value whose type has been resolved.
6233 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6235 * ada-lang.c (ada_value_primitive_packed_val): Recompute
6236 BIT_SIZE and LEN if the size of the resolved type is smaller
6237 than BIT_SIZE * HOST_CHAR_BIT.
6239 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6241 * ada-lang.c (ada_value_primitive_packed_val): Use a more
6242 correct address in call to value_at. Adjust call to
6243 value_address accordingly.
6245 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6247 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
6250 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6252 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6253 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6255 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6256 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6257 (resolve_dynamic_type_internal): Set pinfo.valaddr.
6258 Add handling of addr_stack->valaddr.
6259 (resolve_dynamic_type): Add "valaddr" parameter.
6260 Set pinfo.valaddr field.
6261 * ada-lang.c (ada_discrete_type_high_bound): Update call to
6262 resolve_dynamic_type.
6263 (ada_discrete_type_low_bound): Likewise.
6264 * findvar.c (default_read_var_value): Likewise.
6265 * value.c (value_from_contents_and_address): Likewise.
6267 2015-05-05 Joel Brobecker <brobecker@adacore.com>
6269 * gdbtypes.c (resolve_dynamic_array): Use
6270 create_array_type_with_stride instead of create_array_type.
6272 2015-04-30 DJ Delorie <dj@redhat.com>
6274 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6277 2015-04-29 Doug Evans <dje@google.com>
6280 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6281 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6282 EVAL_AVOID_SIDE_EFFECTS for xmethods.
6283 * extension-priv.h (struct extension_language_ops)
6284 <get_xmethod_result_type>: New member.
6285 * extension.c (get_xmethod_result_type): New function.
6286 * extension.h (get_xmethod_result_type): Declare.
6287 * python/py-xmethods.c (get_result_type_method_name): New static
6289 (py_get_result_type_method_name): Ditto.
6290 (gdbpy_get_xmethod_result_type): New function.
6291 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6292 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6293 * python/python.c (python_extension_ops): Add
6294 gdbpy_get_xmethod_result_type.
6295 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6296 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6298 (value_x_unop): Ditto.
6299 * value.c (result_type_of_xmethod): New function.
6300 * value.h (result_type_of_xmethod): Declare.
6302 2015-04-29 Gary Benson <gbenson@redhat.com>
6304 * solib.c (solib_find_1): Allow fd argument to be NULL.
6305 (exec_file_find): Update comment.
6306 (solib_find): Likewise.
6307 * exec.c (exec_file_locate_attach): Use NULL as fd
6308 argument to exec_file_find to avoid having to close
6310 * infrun.c (follow_exec): Likewise.
6312 2015-04-28 Doug Evans <dje@google.com>
6315 * python/lib/gdb/printing.py (register_pretty_printer): Handle
6316 name or __name__ attributes. Handle gdb module as first argument.
6318 2015-04-28 Doug Evans <dje@google.com>
6321 * python/py-prettyprint.c (print_children): Verify result of children
6322 iterator. Provide better error message.
6323 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6324 * python/python.c (gdbpy_print_python_errors_p): New function.
6326 2015-04-28 Doug Evans <dje@google.com>
6328 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6330 2015-04-28 Sasha Smundak <asmundak@google.com>
6332 * NEWS: Mention gdb.Type.optimized_out method.
6333 * python/py-type.c (typy_optimized_out): New function.
6335 2015-04-28 John Baldwin <jhb@FreeBSD.org>
6337 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6339 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6341 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6342 (initialize_utils): Move call of init_page_info() to ...
6343 * top.c (gdb_init): ... here.
6345 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6347 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6348 (tui_sigwinch_handler): Still update our idea of
6349 the terminal's width and height even when TUI is not active.
6351 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6353 * utils.h (set_screen_width_and_height): Declare.
6354 * utils.c (set_screen_width_and_height): Define.
6355 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6357 2015-04-28 Gary Benson <gbenson@redhat.com>
6359 * infrun.c (solist.h): New include.
6360 (follow_exec): Use exec_file_find to prefix execd_pathname
6363 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6365 * tui/tui-source.c (tui_set_source_content): Avoid calling
6366 strcpy() when offset is 0.
6368 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6371 * tui/tui-data.c (tui_free_window): Don't free the locator
6372 window when passed an SRC_WIN or a DISASSEM_WIN.
6374 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6376 * tui/tui-data.h (struct tui_win_element): Forward-declare.
6377 (tui_win_content): Move declaration.
6378 (struct tui_gen_win_info): Give 'content' field the
6379 type tui_win_content.
6380 * tui/tui-data.c (init_content_element): Remove redundant and
6382 (tui_add_content_elements): Remove erroneous cast.
6383 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6385 (tui_get_begin_asm_address): Likewise.
6386 * tui/tui-regs.c (tui_show_registers): Likewise.
6387 (tui_show_register_group): Likewise.
6388 (tui_display_registers_from): Likewise.
6389 (tui_check_register_values): Likewise.
6390 * tui/tui-source.c (tui_set_source_content): Likewise.
6391 (tui_set_source_content_nil): Likewise.
6392 (tui_source_is_displayed): Likewise.
6393 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6394 (tui_set_locator_fullname): Likewise.
6395 (tui_set_locator_info): Likewise.
6396 (tui_show_frame_info): Likewise.
6397 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6398 (tui_show_source_line): Likewise.
6399 (tui_horizontal_source_scroll): Likewise.
6400 (tui_update_breakpoint_info): Likewise.
6401 (tui_set_exec_info_content): Likewise.
6402 (tui_show_exec_info_content): Likewise.
6403 (tui_alloc_source_buffer): Likewise.
6404 (tui_line_is_displayed): Likewise.
6405 (tui_addr_is_displayed): Likewise.
6407 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6409 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6410 event if PL_FLAG_EXEC is set.
6411 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6412 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6413 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6414 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6415 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6417 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6419 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6420 [TDP_RFPPWAIT] New variable fbsd_pending_children.
6421 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6422 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6423 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6424 [PT_LWPINFO] (fbsd_wait): New function.
6425 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6426 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6427 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6428 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6429 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6430 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6431 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6432 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6433 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6435 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6436 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6437 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6438 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6439 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6440 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6441 Set "to_post_attach" to "fbsd_post_attach".
6443 2015-04-27 John Baldwin <jhb@FreeBSD.org>
6445 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6446 (fbsd_find_memory_regions): Mark static.
6447 (fbsd_nat_add_target): New function.
6448 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6449 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6450 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6451 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6452 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6453 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6455 2015-04-27 Gary Benson <gbenson@redhat.com>
6457 * objfiles.c (allocate_objfile): Do not attempt to expand name
6458 if name is a "target:" filename.
6459 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6460 to load auto-load scripts for objfiles with "target:" filenames.
6462 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6464 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6465 (enum s390_vector_abi_kind): New enum.
6466 (struct gdbarch_tdep)<vector_abi>: New field.
6467 (s390_effective_inner_type): Add parameter min_size. Stop
6468 unwrapping if the inner type is smaller than min_size.
6469 (s390_function_arg_float): Adjust call to
6470 s390_effective_inner_type.
6471 (s390_function_arg_vector): New function.
6472 (s390_function_arg_integer): Adjust comment.
6473 (struct s390_arg_state)<vr>: New field.
6474 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6475 arguments according to vector ABI when appropriate.
6476 (s390_push_dummy_call): Initialize the argument state's field
6477 'vr'. Adjust calls to s390_handle_arg.
6478 (s390_register_return_value): Handle vector return values.
6479 (s390_return_value): Apply the "register" return value convention
6480 to a vector when appropriate.
6481 (s390_gdbarch_init): Initialize tdep->vector_abi.
6482 * NEWS: Announce S390 vector ABI support.
6484 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6486 * s390-linux-tdep.c (s390_return_value_convention): Remove
6487 function. Inline its logic...
6488 (s390_return_value): ...here. Instead, move the handling of the
6489 "register" return value convention...
6490 (s390_register_return_value): ...here. New function.
6492 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6495 (is_float_singleton): Remove function. Move the "singleton" part
6497 (s390_effective_inner_type): ...here. New function.
6498 (is_float_like): Remove function. Inline its logic...
6499 (s390_function_arg_float): ...here.
6500 (is_pointer_like, is_integer_like, is_struct_like): Remove
6501 functions. Inline their logic...
6502 (s390_function_arg_integer): ...here.
6503 (s390_function_arg_pass_by_reference): Remove function.
6504 (extend_simple_arg): Remove function.
6505 (alignment_of): Remove function.
6506 (struct s390_arg_state): New structure.
6507 (s390_handle_arg): New function.
6508 (s390_push_dummy_call): Move parameter placement logic to the new
6509 function s390_handle_arg. Call it for calculating the stack area
6510 sizes first, and again for actually writing the parameters.
6512 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6514 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
6515 false if the argument is zero.
6517 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6519 * ada-lang.c (template_to_static_fixed_type): Return input type
6520 when it is already fixed. Cache the input type itself when not
6521 creating a static fixed copy. Make it explicit that we never
6522 molestate the input type.
6523 * gdbtypes.c (resolve_dynamic_struct): Reset the
6524 TYPE_TARGET_TYPE field for resolved copies.
6526 2015-04-27 Joel Brobecker <brobecker@adacore.com>
6528 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6529 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6530 (template_to_static_fixed_type): Call ada_check_typedef only
6533 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6535 * cli/cli-dump.c (srec_dump_command): Add internationalization
6537 (ihex_dump_command): Likewise.
6538 (tekhex_dump_command): Likewise.
6539 (binary_dump_command): Likewise.
6540 (binary_append_command): Likewise.
6542 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
6544 * cli/cli-dump.c (verilog_cmdlist): New variable.
6545 (dump_verilog_memory): New function.
6546 (dump_verilog_value): New function.
6547 (verilog_dump_command): New function.
6548 (_initialize_cli_dump): Add new commands to support verilog dump
6550 * NEWS: Add entry for "dump verilog".
6552 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
6554 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6555 descriptive type when there is none.
6557 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
6559 * tui/tui-win.c (tui_async_resize_screen): Call
6560 rl_resize_terminal().
6562 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6564 * windows-nat.c (handle_output_debug_string): Don't change
6565 current_event.dwThreadId.
6566 (get_windows_debug_event): Use thread_id, rather than relying on
6567 current_event.dwThreadId being changed.
6569 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
6571 * windows-nat.c (windows_continue): Report an error if
6572 ContinueDebugEvent() fails.
6574 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6576 * windows-nat.c (windows_resume): Fix misspelling in debug output.
6578 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6580 * windows-nat.c (get_windows_debug_event): Replace retval with
6581 thread_id throughout. Update stale comment.
6583 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
6585 * windows-nat.c (get_windows_debug_event): Don't use ternary
6586 conditional operator.
6588 2015-04-21 Pierre Muller <muller@sourceware.org>
6591 p-exp.y (yylex): Reorganize code to return the matched pattern
6592 for a field of this.
6594 2015-04-21 Gary Benson <gbenson@redhat.com>
6596 * common/fileio.h (fileio_to_host_openflags): New declaration.
6597 * common/fileio.c (fcntl.h): New include.
6598 (fileio_to_host_openflags): New function, factored out from...
6599 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6602 2015-04-21 Kevin Buettner <kevinb@redhat.com>
6604 * rl78-tdep.c (RL78_SP_ADDR): Define.
6605 (opc_reg_to_gdb_regnum): New static function.
6606 (rl78_analyze_prologue): Recognize instructions forming slightly
6607 more interesting prologues.
6609 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6612 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6613 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6614 TYPE_CODE_REF types so that they are not considered as dynamic
6615 depending on the referenced type.
6616 (resolve_dynamic_type_internal): Likewise.
6618 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
6621 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6622 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6623 "top_level" parameter.
6624 (resolve_dynamic_type_internal): Remove the unused "top_level"
6625 parameter. Update call to is_dynamic_type_internal.
6626 (is_dynamic_type): Update call to is_dynamic_type_internal.
6627 (resolve_dynamic_range): Update call to
6628 resolve_dynamic_type_internal.
6629 (resolve_dynamic_union): Likewise.
6630 (resolve_dynamic_struct): Likewise.
6631 (resolve_dynamic_type): Likewise.
6633 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
6635 * breakpoint.c (update_dprintf_command_list): Remove duplicated
6638 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
6640 * reply_mig_hack.awk: Robustify parsing.
6642 * reply_mig_hack.awk: Don't bother to declare an intermediate
6643 function pointer variable.
6645 2015-04-17 Doug Evans <dje@google.com>
6647 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6648 to "exec_displacement" to avoid confusion with inner use of the name.
6650 2015-04-17 Pedro Alves <palves@redhat.com>
6652 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6653 if HW point of TYPE isn't supported.
6655 2015-04-17 Yao Qi <yao.qi@linaro.org>
6656 Pedro Alves <palves@redhat.com>
6658 * target.h (target_can_use_hardware_watchpoint): Update comments.
6659 Remove trailing ";".
6661 2015-04-17 Gary Benson <gbenson@redhat.com>
6663 * remote.c (remote_add_inferior): New argument try_open_exec.
6664 If nonzero, attempt to open the inferior's executable file as
6665 the main executable if no main executable is open already.
6666 All callers updated.
6667 * NEWS: Mention that GDB now supports automatic location and
6668 retrieval of executable + files from remote targets.
6670 2015-04-17 Gary Benson <gbenson@redhat.com>
6672 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6673 * remote.c (PACKET_qXfer_exec_file): Likewise.
6674 (remote_protocol_features): Register the
6675 "qXfer:exec-file:read" feature.
6676 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6677 (remote_pid_to_exec_file): New function.
6678 (init_remote_ops): Initialize to_pid_to_exec_file.
6679 (_initialize_remote): Register new "set/show remote
6680 pid-to-exec-file-packet" command.
6681 * NEWS: Announce new qXfer:exec-file:read packet.
6683 2015-04-17 Gary Benson <gbenson@redhat.com>
6685 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6687 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6688 New function, factored out from...
6689 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6691 2015-04-17 Gary Benson <gbenson@redhat.com>
6693 * exec.c (solist.h): New include.
6694 (exec_file_locate_attach): Prefix absolute executable
6695 paths with gdb_sysroot if set.
6696 * NEWS: Mention that executable paths may be prepended
6699 2015-04-17 Gary Benson <gbenson@redhat.com>
6701 * solist.h (exec_file_find): New declaration.
6702 * solib.c (solib_find_1): New function, factored out from...
6703 (solib_find): ...here.
6704 (exec_file_find): New function.
6706 2015-04-17 Gary Benson <gbenson@redhat.com>
6708 * gdbcore.h (exec_file_locate_attach): New declaration.
6709 * exec.c (exec_file_locate_attach): New function, factored
6711 * infcmd.c (attach_command_post_wait): ...here.
6713 2015-04-17 Mike Frysinger <vapier@gentoo.org>
6715 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6717 2015-04-16 Yao Qi <yao.qi@linaro.org>
6719 * infrun.c (maybe_software_singlestep): Declare.
6720 (displaced_step_fixup): Call maybe_software_singlestep.
6722 2015-04-15 Doug Evans <dje@google.com>
6724 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6726 2015-04-15 Doug Evans <dje@google.com>
6728 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6730 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
6732 * python/lib/gdb/command/unwinders.py: Add parentheses.
6734 2015-04-15 Yao Qi <yao.qi@linaro.org>
6736 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6738 2015-04-15 Yao Qi <yao.qi@linaro.org>
6740 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6742 2015-04-15 Yao Qi <yao.qi@linaro.org>
6744 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6745 dsc->insn_size instead of 4.
6747 2015-04-14 Gary Benson <gbenson@redhat.com>
6749 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6750 * minidebug.c (lzma_stat): Likewise.
6751 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6752 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6754 2015-04-13 Stan Shebs <stanshebs@google.com>
6756 * MAINTAINERS: Update my email address.
6758 2015-04-13 John Baldwin <jhb@FreeBSD.org>
6760 * amd64-tdep.c (amd64_target_description): New function.
6761 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6762 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6763 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6764 x86 extended save area.
6765 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6766 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6767 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6768 (_initialize_amd64fbsd_nat): Set "to_read_description" to
6769 "amd64fbsd_read_description".
6770 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6771 (amd64fbsd_supply_xstateregset): New function.
6772 (amd64fbsd_collect_xstateregset): New function.
6773 Add "amd64fbsd_xstateregset".
6774 (amd64fbsd_iterate_over_regset_sections): New function.
6775 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6776 "I386_FBSD_XSAVE_XCR0_OFFSET".
6777 Add "iterate_over_regset_sections" gdbarch method.
6778 Add "core_read_description" gdbarch method.
6779 * i386-tdep.c (i386_target_description): New function.
6780 * i386-tdep.h: Export i386_target_description and tdesc_i386.
6781 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6782 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6783 x86 extended save area.
6784 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6785 * i386bsd-nat.h: Export i386bsd_xsave_len.
6786 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6787 (_initialize_i386fbsd_nat): Set "to_read_description" to
6788 "i386fbsd_read_description".
6789 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6790 (i386fbsd_core_read_description): New function.
6791 (i386fbsd_supply_xstateregset): New function.
6792 (i386fbsd_collect_xstateregset): New function.
6793 Add "i386fbsd_xstateregset".
6794 (i386fbsd_iterate_over_regset_sections): New function.
6795 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6796 "I386_FBSD_XSAVE_XCR0_OFFSET".
6797 Add "iterate_over_regset_sections" gdbarch method.
6798 Add "core_read_description" gdbarch method.
6799 * i386fbsd-tdep.h: New file.
6801 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6803 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6804 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6806 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6808 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6810 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6812 * defs.h (xdb_commands): Remove declaration.
6813 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6814 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6815 * infcmd.c (run_no_args_command, go_command): Remove.
6816 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6817 * infrun.c (xdb_handle_command): Remove.
6818 (_initialize_infrun): Remove xdb_commands for lz and z.
6819 * main.c (xdb_commands): Remove variable.
6820 (captured_main): Remove "xdb" from long_options.
6821 (print_gdb_help): Remove --xdb from help.
6822 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6823 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6824 * stack.c (backtrace_full_command, args_plus_locals_info)
6825 (current_frame_command): Remove.
6826 (_initialize_stack): Remove xdb_commands for t, T and l.
6827 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6828 * thread.c (_initialize_thread): Remove xdb_commands condition.
6829 * tui/tui-layout.c (tui_toggle_layout_command)
6830 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6831 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6832 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6833 (tui_scroll_regs_backward_command): Remove.
6834 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6835 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6836 (_initialize_tui_win): Remove xdb_commands for U and w.
6837 * utils.c (pagination_on_command, pagination_off_command): Remove.
6838 (initialize_utils): Remove xdb_commands for am and sm.
6840 2015-04-10 Pedro Alves <palves@redhat.com>
6842 * infrun.c (displaced_step_fixup): Switch to the event ptid
6843 earlier. If the thread stopped for a watchpoint and the
6844 target/arch has non-continuable watchpoints, cancel the displaced
6846 (resume): Don't start a displaced step if in-line step-over info
6849 2015-04-10 Pedro Alves <palves@redhat.com>
6851 * infrun.c (displaced_step_in_progress): New function.
6852 (do_target_resume): Advise target to report all signals if
6855 2015-04-10 Pedro Alves <palves@redhat.com>
6858 * infrun.c (process_event_stop_test): Don't assume a step-resume
6859 is set if tp->stepped_breakpoint is true.
6861 2015-04-10 Yao Qi <yao.qi@linaro.org>
6863 * arm-tdep.c (install_alu_reg): Update comment.
6864 (thumb_copy_alu_reg): Remove local variable rn. Update
6865 debugging message. Use r2 instead of r1 in the modified
6868 2015-04-10 Pedro Alves <palves@redhat.com>
6871 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6872 linux_displaced_step_location as gdbarch_displaced_step_location
6874 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6875 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6876 * linux-tdep.c (linux_displaced_step_location): New function,
6877 based on ppc_linux_displaced_step_location.
6878 * linux-tdep.h (linux_displaced_step_location): New declaration.
6879 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6880 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6882 (ppc_linux_init_abi): Install linux_displaced_step_location as
6883 gdbarch_displaced_step_location hook, even without Cell/B.E..
6884 (_initialize_ppc_linux_tdep): Don't install
6885 ppc_linux_inferior_created as inferior_created observer.
6886 * s390-linux-tdep.c (s390_gdbarch_init): Install
6887 linux_displaced_step_location as gdbarch_displaced_step_location
6890 2015-04-09 Gary Benson <gbenson@redhat.com>
6892 * common/common-remote-fileio.h: Rename to...
6893 * common/fileio.h: ...this. Update all references.
6894 (remote_fileio_to_fio_error): Rename to...
6895 (host_to_fileio_error): ...this.
6896 (remote_fileio_to_be): Rename to...
6897 (host_to_bigendian): ...this. Update all callers.
6898 (remote_fileio_to_fio_uint): Rename to...
6899 (host_to_fileio_uint): ...this. Update all callers.
6900 (remote_fileio_to_fio_time): Rename to...
6901 (host_to_fileio_time): ...this. Update all callers.
6902 (remote_fileio_to_fio_stat): Rename to...
6903 (host_to_fileio_stat): ...this.
6904 Update all references.
6905 * common/common-remote-fileio.c: Rename to...
6906 * common/fileio.c: ...this. Update all references.
6907 (remote_fileio_to_fio_error): Rename to...
6908 (host_to_fileio_error): ...this. Update all callers.
6909 (remote_fileio_mode_to_target): Rename to...
6910 (fileio_mode_pack): ...this. Update all callers.
6911 (remote_fileio_to_fio_mode): Rename to...
6912 (host_to_fileio_mode): ...this. Update all callers.
6913 (remote_fileio_to_fio_ulong): Rename to...
6914 (host_to_fileio_ulong): ...this. Update all callers.
6915 (remote_fileio_to_fio_stat): Rename to...
6916 (host_to_fileio_stat): ...this. Update all callers.
6918 2015-04-09 Andy Wingo <wingo@igalia.com>
6920 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6921 (frame_functions): Bind gdbscm_frame_read_register to
6922 frame-read-register.
6923 * guile/lib/gdb.scm (frame-read-register): Export.
6925 2015-04-09 Gary Benson <gbenson@redhat.com>
6927 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6929 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6930 New function, factored out the named functions below.
6931 * inf-child.c (gdb/fileio.h): Remove include.
6932 (common-remote-fileio.h): New include.
6933 (inf_child_errno_to_fileio_error): Remove function. Update
6934 all callers to use remote_fileio_to_fio_error.
6935 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6937 2015-04-09 Andy Wingo <wingo@igalia.com>
6939 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6941 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6943 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6944 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6945 * configure: Regenerated.
6947 2015-04-09 Pedro Alves <palves@redhat.com>
6949 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6950 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6951 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6952 * gnulib/import/Makefile.am: Update.
6953 * gnulib/import/Makefile.in: Update.
6954 * gnulib/import/m4/gnulib-cache.m4: Update.
6955 * gnulib/import/m4/gnulib-comp.m4: Update.
6956 * gnulib/import/m4/strtok_r.m4: New file.
6957 * gnulib/import/strtok_r.c: New file.
6959 2015-04-09 Pedro Alves <palves@redhat.com>
6961 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6962 "called too early to check prototype".
6964 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6967 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6968 use a caching mechanism. Adjust comments and code to reflect
6969 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6970 (cmdpy_completer_handle_brkchars): Adjust call to
6971 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6972 (cmdpy_completer): Likewise.
6974 2015-04-08 Yao Qi <yao.qi@linaro.org>
6976 * spu-tdep.c (spu_gdbarch_init): Don't call
6977 set_gdbarch_cannot_step_breakpoint.
6979 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6981 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6983 2015-04-07 Pedro Alves <palves@redhat.com>
6985 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6986 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6987 (delete_exited_threads): New declaration.
6988 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6989 * linux-nat.c (linux_nat_update_thread_list): New function.
6990 (linux_nat_add_target): Install it.
6991 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6992 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6993 (delete_exited_threads): New function.
6995 2015-04-07 Pedro Alves <pedro@codesourcery.com>
6997 * infrun.c (resume) <displaced stepping debug output>: Get the
6998 leader thread's regcache, not resume_ptid's.
7000 2015-04-06 Doug Evans <xdje42@gmail.com>
7002 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
7004 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
7005 Include symbol domain in debugging output.
7007 2015-04-06 Pedro Alves <palves@redhat.com>
7008 Bernd Edlinger <bernd.edlinger@hotmail.de>
7010 * configure.ac: Remove the mingw32-specific stub-termcap.o
7011 fallback, and instead fallback to the stub termcap on all hosts.
7012 * configure: Regenerate.
7013 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
7016 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7018 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7019 "top_level" parameter.
7020 (resolve_dynamic_type_internal): Remove the unused "top_level"
7021 parameter. Update call to is_dynamic_type_internal.
7022 (is_dynamic_type): Update call to is_dynamic_type_internal.
7023 (resolve_dynamic_range): Update call to
7024 resolve_dynamic_type_internal.
7025 (resolve_dynamic_union): Likewise.
7026 (resolve_dynamic_struct): Likewise.
7027 (resolve_dynamic_type): Likewise.
7029 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7031 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7032 TYPE_CODE_REF types so that they are not considered as dynamic
7033 depending on the referenced type.
7034 (resolve_dynamic_type_internal): Likewise.
7036 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
7038 * Makefile.in (top_srcdir): New.
7039 * configure: Regenerated.
7041 2015-04-02 Gary Benson <gbenson@redhat.com>
7043 * NEWS: Announce the new default sysroot of "target:".
7045 2015-04-02 Gary Benson <gbenson@redhat.com>
7047 * main.c (captured_main): Set gdb_sysroot to "target:"
7048 if not otherwise set.
7050 2015-04-02 Gary Benson <gbenson@redhat.com>
7052 * exec.c (exec_file_attach): Support "target:" filenames.
7054 2015-04-02 Gary Benson <gbenson@redhat.com>
7056 * solib.c (solib_find): Strip "target:" prefix from sysroot
7057 if accessing local files.
7059 2015-04-02 Gary Benson <gbenson@redhat.com>
7061 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
7062 checks and error messages.
7064 2015-04-02 Gary Benson <gbenson@redhat.com>
7066 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
7067 (remote_filename_p): Remove declaration.
7068 (remote_bfd_open): Likewise.
7069 * remote.c (remote_bfd_iovec_open): Remove function.
7070 (remote_bfd_iovec_close): Likewise.
7071 (remote_bfd_iovec_pread): Likewise.
7072 (remote_bfd_iovec_stat): Likewise.
7073 (remote_filename_p): Likewise.
7074 (remote_bfd_open): Likewise.
7075 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
7076 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
7077 (gdb_bfd_open_maybe_remote): Remove function.
7078 (symfile_bfd_open): Replace remote filename check with
7079 target filename check.
7080 (reread_symbols): Use gdb_bfd_open.
7081 * build-id.c (gdbcore.h): New include.
7082 (build_id_to_debug_bfd): Use gdb_bfd_open.
7083 * infcmd.c (attach_command_post_wait): Remove remote filename
7085 * solib.c (solib_find): Replace remote-specific handling with
7086 target-specific handling. Update comments where necessary.
7087 (solib_bfd_open): Replace remote-specific handling with
7088 target-specific handling.
7089 (gdb_sysroot_changed): New function.
7090 (_initialize_solib): Call the above when gdb_sysroot changes.
7091 * windows-tdep.c (gdbcore.h): New include.
7092 (windows_xfer_shared_library): Use gdb_bfd_open.
7094 2015-04-02 Gary Benson <gbenson@redhat.com>
7096 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
7097 (is_target_filename): New declaration.
7098 (gdb_bfd_has_target_filename): Likewise.
7099 (gdb_bfd_open): Update documentation comment.
7100 * gdb_bfd.c (target.h): New include.
7101 (gdb/fileio.h): Likewise.
7102 (is_target_filename): New function.
7103 (gdb_bfd_has_target_filename): Likewise.
7104 (fileio_errno_to_host): Likewise.
7105 (gdb_bfd_iovec_fileio_open): Likewise.
7106 (gdb_bfd_iovec_fileio_pread): Likewise.
7107 (gdb_bfd_iovec_fileio_close): Likewise.
7108 (gdb_bfd_iovec_fileio_fstat): Likewise.
7109 (gdb_bfd_open): Use target fileio to access paths prefixed
7110 with "target:" where necessary.
7112 2015-04-02 Gary Benson <gbenson@redhat.com>
7114 * target.h (struct target_ops) <to_filesystem_is_local>:
7116 (target_filesystem_is_local): New macro.
7117 * target-delegates.c: Regenerate.
7118 * remote.c (remote_filesystem_is_local): New function.
7119 (init_remote_ops): Initialize to_filesystem_is_local.
7121 2015-04-02 Gary Benson <gbenson@redhat.com>
7123 * target.h (struct target_ops) <to_fileio_fstat>: New field.
7124 (target_fileio_fstat): New declaration.
7125 * target.c (target_fileio_fstat): New function.
7126 * inf-child.c (inf_child_fileio_fstat): Likewise.
7127 (inf_child_target): Initialize to_fileio_fstat.
7128 * remote.c (init_remote_ops): Likewise.
7130 2015-04-01 Sasha Smundak <asmundak@google.com>
7132 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
7133 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
7134 (py-unwind.o): New recipe.
7135 * NEWS: mention Python frame unwinding.
7136 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
7137 gdb/unwinder.py and gdb/command/unwinder.py
7138 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
7140 (execute_unwinders): New function.
7141 * python/lib/gdb/command/unwinders.py: New file.
7142 * python/lib/gdb/unwinder.py: New file.
7143 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
7144 (objfpy_dealloc): Decrement frame_unwinders reference count.
7145 (objfpy_initialize): Create frame_unwinders list.
7146 (objfpy_get_frame_unwinders): New function.
7147 (objfpy_set_frame_unwinders): Ditto.
7148 (objfile_getset): Add frame_unwinders attribute to Objfile.
7149 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
7150 (pspy_dealloc): Decrement frame_unwinders reference count.
7151 (pspy_initialize): Create frame_unwinders list.
7152 (pspy_get_frame_unwinders): New function.
7153 (pspy_set_frame_unwinders): Ditto.
7154 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
7155 * python/py-unwind.c: New file.
7156 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
7157 (objpy_get_frame_unwinders): New prototype.
7158 (gdbpy_initialize_unwind): New prototype.
7159 * python/python.c (gdbpy_apply_type_printers): Call
7160 gdbpy_initialize_unwind.
7162 2015-04-01 Pedro Alves <palves@redhat.com>
7164 * infrun.c (resume): Check currently_stepping after clearing
7165 stepped_breakpoint, not before.
7167 2015-04-01 Pedro Alves <palves@redhat.com>
7169 * infrun.c (print_target_wait_results): Print all the ptid
7172 2015-04-01 Pedro Alves <palves@redhat.com>
7174 * infrun.c (keep_going): Also discard cleanups if inserting
7177 2015-04-01 Pedro Alves <palves@redhat.com>
7179 * infrun.c (wait_for_inferior): Install the
7180 finish_thread_state_cleanup cleanup across the whole function, not
7181 just around handle_inferior_event.
7183 2015-04-01 Pedro Alves <palves@redhat.com>
7185 * infrun.c (resume) <step past permanent breakpoint>: Use
7188 2015-04-01 Pedro Alves <palves@redhat.com>
7190 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
7192 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
7194 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
7196 2015-04-01 Pedro Alves <palves@redhat.com>
7198 * linux-thread-db.c (record_thread): Readd the thread to gdb's
7199 list if it was marked exited.
7201 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
7203 * configure: Regenerated.
7205 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7206 Jan Kratochvil <jan.kratochvil@redhat.com>
7207 Oleg Nesterov <oleg@redhat.com>
7210 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
7211 New enum identifying the various options of the coredump_filter
7213 (struct smaps_vmflags): New struct.
7214 (use_coredump_filter): New variable.
7215 (decode_vmflags): New function.
7216 (mapping_is_anonymous_p): Likewise.
7217 (dump_mapping_p): Likewise.
7218 (linux_find_memory_regions_full): New variables
7219 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
7220 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
7221 parsing of its information. Implement memory mapping filtering
7222 based on its contents.
7223 (show_use_coredump_filter): New function.
7224 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
7225 * NEWS: Mention the possibility of using the
7226 '/proc/PID/coredump_filter' file when generating a corefile.
7227 Mention new command 'set use-coredump-filter'.
7229 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7231 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
7232 read_memory_unsigned_integer.
7234 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
7236 * Makefile.in (ZLIB): New.
7237 (ZLIBINC): Likewise.
7238 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
7239 (CLIBS): Add $(ZLIB).
7240 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
7242 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
7243 * top.c (print_gdb_configuration): Remove --with-zlib and
7245 * config.in: Regenerated.
7246 * configure: Likewise.
7248 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7250 * NEWS: Mention info os cpus support.
7251 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7252 (struct osdata_type): Add cpus entry, reorder the entries in
7255 2015-03-31 Matthias Klose <doko@ubuntu.com>
7257 * compile/compile.c (compile_to_object): Allow triplets with or
7260 2015-03-30 Doug Evans <dje@google.com>
7263 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7264 klass in VAR_DOMAIN.
7266 2015-03-30 Gary Benson <gbenson@redhat.com>
7268 * remote.c (remote_mourn_1): Remove function. Update all callers
7269 to use remote_mourn.
7270 (extended_remote_mourn_1): Remove function. Update all callers
7271 to use extended_remote_mourn.
7272 (extended_remote_attach_1): Remove function. Update all callers
7273 to use extended_remote_attach.
7275 2015-03-28 James Bowman <james.bowman@ftdichip.com>
7277 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7278 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7279 (ALLDEPFILES): Add ft32-tdep.c.
7280 * configure.tgt: Add FT32 entry.
7281 * ft32-tdep.c: New file, FT32 target-dependent code.
7282 * ft32-tdep.h: New file, FT32 target-dependent code.
7284 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7287 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 * printcmd.c (print_command_1): Move expr variable scope.
7291 2015-03-27 Joel Brobecker <brobecker@adacore.com>
7293 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7295 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
7297 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7300 2015-03-26 Joel Brobecker <brobecker@adacore.com>
7302 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7303 exception raised while parsing the probe arguments.
7304 Force parsing to be done using the C language parser.
7305 * expression.h (parse_expression_with_language): Declare.
7306 * parse.c (parse_expression_with_language): New function.
7308 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
7310 * MAINTAINERS (Write After Approval): Add "Jon Turney".
7312 2015-03-26 Andy Wingo <wingo@igalia.com>
7315 * dwarf2read.c (struct partial_die_info): Add has_const_value
7317 (add_partial_symbol): Don't punt on symbols that have const_value
7319 (read_partial_die): Detect DW_AT_const_value.
7321 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 * printcmd.c (print_command_1): Move expr variable scope.
7326 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7329 * printcmd.c (validate_format): Make the parameter cmdname const.
7331 2015-03-26 Don Breazeal <donb@codesourcery.com>
7333 * remote.c (_initialize_remote): Update comment.
7335 2015-03-26 Pedro Alves <palves@redhat.com>
7336 Jon TURNEY <jon.turney@dronecode.org.uk>
7338 * coffread.c (coff_symfile_read): When constructing the name of an
7339 import stub symbol from import symbol for amd64, only skip the
7340 char after _imp_ if the target is underscored (like i386) and the
7341 char is indeed the target's leading char.
7343 2015-03-25 Pedro Alves <palves@redhat.com>
7345 * target.h <to_async>: Replace 'callback' and 'context' parameters
7346 with boolean 'enable' parameter.
7347 (target_async): Replace CALLBACK and CONTEXT parameters with
7348 boolean ENABLE parameter.
7349 * inf-loop.c (inferior_event_handler): Adjust.
7350 * linux-nat.c (linux_nat_attach, linux_nat_resume)
7351 (linux_nat_resume): Adjust.
7352 (async_client_callback, async_client_context): Delete.
7353 (handle_target_event): Call inferior_event_handler directly.
7354 (linux_nat_async): Replace 'callback' and 'context' parameters
7355 with boolean 'enable' parameter. Adjust. Remove references to
7356 async_client_callback and async_client_context.
7357 (linux_nat_close): Adjust.
7358 * record-btrace.c (record_btrace_async): Replace 'callback' and
7359 'context' parameters with boolean 'enable' parameter. Adjust.
7360 (record_btrace_resume): Adjust.
7361 * record-full.c (record_full_async): Replace 'callback' and
7362 'context' parameters with boolean 'enable' parameter. Adjust.
7363 (record_full_resume, record_full_core_resume): Adjust.
7364 * remote.c (struct remote_state) <async_client_callback,
7365 async_client_context>: Delete fields.
7366 (remote_start_remote, extended_remote_attach_1, remote_resume)
7367 (extended_remote_create_inferior): Adjust.
7368 (remote_async_serial_handler): Call inferior_event_handler
7370 (remote_async): Replace 'callback' and 'context' parameters with
7371 boolean 'enable' parameter. Adjust.
7372 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7374 * target-delegates.c: Regenerate.
7376 2015-03-25 Gary Benson <gbenson@redhat.com>
7377 Pedro Alves <palves@redhat.com>
7379 * target.c (fileio_ft_t): New typedef, define object vector.
7380 (fileio_fhandles): New static variable.
7381 (is_closed_fileio_fh): New macro.
7382 (lowest_closed_fd): New static variable.
7383 (acquire_fileio_fd): New function.
7384 (release_fileio_fd): Likewise.
7385 (fileio_fd_to_fh): New macro.
7386 (target_fileio_open): Wrap the file descriptor on success.
7387 (target_fileio_pwrite): Updated to use wrapped file descriptor.
7388 (target_fileio_pread): Likewise.
7389 (target_fileio_close): Likewise.
7391 2015-03-24 Pedro Alves <palves@redhat.com>
7393 * thread.c (thread_apply_all_command): Take exited threads into
7396 2015-03-24 Pedro Alves <palves@redhat.com>
7398 * infrun.c (resume, proceed): Mention
7399 switch_back_to_stepped_thread, not switch_back_to_stepping.
7401 2015-03-24 Pedro Alves <palves@redhat.com>
7403 * infrun.c (user_visible_resume_ptid): Rewrite going from
7404 most-locked to unlocked instead of the opposite. Move comment ...
7405 * infrun.h (user_visible_resume_ptid): ... here.
7407 2015-03-24 Pedro Alves <palves@redhat.com>
7409 * linux-nat.c (linux_nat_resume): Output debug logs before trying
7410 to resume the event lwp. Use the lwp's ptid instead of the passed
7411 in (maybe wildcard) ptid.
7412 (stop_wait_callback): Tweak debug log output.
7413 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
7415 (linux_nat_filter_event): In debug output, distinguish a
7416 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
7417 before trying to resume the lwp.
7419 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7421 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7422 pointer indirection.
7423 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7424 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7426 2015-03-24 Joel Brobecker <brobecker@adacore.com>
7428 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7429 Renames DYN_ATTR_DATA_LOCATION.
7430 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7431 DYN_ATTR_DATA_LOCATION.
7432 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7433 instead of DYN_ATTR_DATA_LOCATION.
7435 2015-03-24 Pedro Alves <palves@redhat.com>
7437 * breakpoint.c (until_break_command): Adjust call to proceed.
7438 * gdbthread.h (struct thread_control_state) <stepping_command>:
7440 * infcall.c (run_inferior_call): Adjust call to proceed.
7441 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7442 Adjust calls to proceed.
7443 (set_step_frame): Set the current thread's step_start_function
7445 (step_once): Adjust calls to proceed.
7446 (jump_command, signal_command, until_next_command)
7447 (finish_backward, finish_forward, proceed_after_attach_callback)
7448 (attach_command_post_wait): Adjust calls to proceed.
7449 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7450 (do_target_resume): New function, factored out from ...
7451 (resume): ... here. Remove 'step' parameter. Instead, check
7452 currently_stepping to determine whether the thread should be
7454 (proceed): Remove 'step' parameter and don't set the thread's
7455 step_start_function here. Adjust call to 'resume'.
7456 (handle_inferior_event): Adjust calls to 'resume'.
7457 (switch_back_to_stepped_thread): Use do_target_resume instead of
7459 (keep_going): Adjust calls to 'resume'.
7460 * infrun.h (proceed): Remove 'step' parameter.
7462 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7464 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7466 2015-03-24 Pedro Alves <palves@redhat.com>
7468 * gdbthread.h (struct thread_control_state) <stepping_command>:
7470 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7471 the thread's stepping_command field.
7472 * infrun.c (resume): Check the thread's stepping_command flag to
7473 determine which threads should be resumed. Rename 'entry_step'
7475 (clear_proceed_status_thread): Clear 'stepping_command'.
7476 (schedlock_applies): Change parameter type to struct thread_info
7478 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7479 (switch_back_to_stepped_thread): Adjust calls to
7480 'schedlock_applies'.
7481 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7483 2015-03-24 Pedro Alves <palves@redhat.com>
7485 * infrun.c (step_start_function): Delete and ...
7486 * gdbthread.h (struct thread_control_state) <step_start_function>:
7487 ... now a field here.
7488 * infrun.c (clear_proceed_status_thread): Clear the thread's
7489 step_start_function.
7490 (proceed, process_event_stop_test, print_stop_event): Adjust.
7492 2015-03-24 Pedro Alves <palves@redhat.com>
7494 * infrun.c (proceed): No longer handle negative step.
7496 2015-03-24 Gary Benson <gbenson@redhat.com>
7498 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7499 (x86_linux_prepare_to_resume): Likewise.
7500 * x86-linux-nat.c (x86_linux_new_thread):
7501 Moved to nat/x86-linux.c.
7502 (x86_linux_prepare_to_resume): Likewise.
7503 * nat/x86-linux.c (x86_linux_new_thread): New function.
7504 (x86_linux_prepare_to_resume): Likewise.
7506 2015-03-24 Gary Benson <gbenson@redhat.com>
7508 * nat/x86-linux-dregs.h: New file.
7509 * nat/x86-linux-dregs.c: Likewise.
7510 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7511 (x86-linux-dregs.o): New rule.
7512 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7513 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7514 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7515 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7516 (x86_linux_dr_get): Likewise.
7517 (x86_linux_dr_set): Likewise.
7518 (x86_linux_dr_get_addr): Likewise.
7519 (x86_linux_dr_get_control): Likewise.
7520 (x86_linux_dr_get_status): Likewise.
7521 (update_debug_registers_callback): Likewise.
7522 (x86_linux_dr_set_control): Likewise.
7523 (x86_linux_dr_set_addr): Likewise.
7524 (x86_linux_update_debug_registers): Likewise.
7526 2015-03-24 Gary Benson <gbenson@redhat.com>
7528 * x86-linux-nat.c (x86_linux_update_debug_registers):
7529 New function, factored out from...
7530 (x86_linux_prepare_to_resume): ...this.
7532 2015-03-24 Gary Benson <gbenson@redhat.com>
7534 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7535 (x86_linux_dr_set): Likewise.
7536 (x86_linux_dr_get_addr): Likewise.
7537 (x86_linux_dr_get_control): Likewise.
7538 (x86_linux_dr_get_status): Likewise.
7539 (update_debug_registers_callback): Likewise.
7540 (x86_linux_dr_set_control): Likewise.
7541 (x86_linux_dr_set_addr): Likewise.
7542 (x86_linux_prepare_to_resume): Likewise.
7543 (x86_linux_new_thread): Likewise.
7545 2015-03-24 Gary Benson <gbenson@redhat.com>
7547 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7548 (x86_linux_new_thread): Rename argument.
7550 2015-03-24 Gary Benson <gbenson@redhat.com>
7552 * nat/x86-linux.h: New file.
7553 * nat/x86-linux.c: Likewise.
7554 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7555 (x86-linux.o): New rule.
7556 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7557 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7558 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7559 (lwp_set_arch_private_info): New declaration.
7560 (lwp_arch_private_info): Likewise.
7561 * linux-nat.c (lwp_set_arch_private_info): New function.
7562 (lwp_arch_private_info): Likewise.
7563 * x86-linux-nat.c: Include nat/x86-linux.h.
7564 (arch_lwp_info): Removed structure.
7565 (update_debug_registers_callback):
7566 Use lwp_set_debug_registers_changed.
7567 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7568 and lwp_set_debug_registers_changed.
7569 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7571 2015-03-24 Gary Benson <gbenson@redhat.com>
7573 * nat/linux-nat.h (ptid_of_lwp): New declaration.
7574 (lwp_is_stopped): Likewise.
7575 (lwp_stop_reason): Likewise.
7576 * linux-nat.c (ptid_of_lwp): New function.
7577 (lwp_is_stopped): Likewise.
7578 (lwp_is_stopped_by_watchpoint): Likewise.
7579 * x86-linux-nat.c (update_debug_registers_callback):
7581 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7584 2015-03-24 Gary Benson <gbenson@redhat.com>
7586 * linux-nat.h (linux_stop_lwp): Move declaration to...
7587 * nat/linux-nat.h (linux_stop_lwp): New declaration.
7589 2015-03-24 Gary Benson <gbenson@redhat.com>
7591 * linux-nat.h: Include nat/linux-nat.h.
7592 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7593 * nat/linux-nat.h (struct lwp_info): New forward declaration.
7594 (iterate_over_lwps_ftype): New typedef.
7595 (iterate_over_lwps): New declaration.
7596 * linux-nat.h (iterate_over_lwps): Update comment. Use
7597 iterate_over_lwps_ftype. Update callback return value check.
7599 2015-03-24 Gary Benson <gbenson@redhat.com>
7601 * x86-nat.h (x86_debug_reg_state): Move declaration to...
7602 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7604 2015-03-24 Gary Benson <gbenson@redhat.com>
7606 * nat/linux-nat.h (current_lwp_ptid): New declaration.
7607 * linux-nat.c (current_lwp_ptid): New function.
7608 * x86-linux-nat.c: Include nat/linux-nat.h.
7609 (x86_linux_dr_get_addr): Use current_lwp_ptid.
7610 (x86_linux_dr_get_control): Likewise.
7611 (x86_linux_dr_get_status): Likewise.
7612 (x86_linux_dr_set_control): Likewise.
7613 (x86_linux_dr_set_addr): Likewise.
7615 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
7617 PR breakpoints/16466
7618 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7620 2015-03-23 Joel Brobecker <brobecker@adacore.com>
7622 * ser-mingw.c (ser_windows_setparity): Fix indentation.
7623 * ser-unix.c (hardwire_setparity): Likewise.
7625 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7627 * NEWS: Mention set/show serial parity command.
7628 * monitor.c (monitor_open): Call serial_setparity.
7629 * remote.c (remote_open_1): Likewise.
7630 * ser-base.c (ser_base_serparity): New function.
7631 * ser-base.h (ser_base_setparity): Add declaration.
7632 * ser-go32.c (dos_ops): Set "setparity" field.
7633 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7635 (ser_windows_setparity): New function.
7636 (hardwire_ops): Add ser_windows_setparity.
7637 (tty_ops): Add NULL for setparity field.
7638 (pipe_ops): Add ser_base_setparity.
7639 (tcp_ops): Likewise.
7640 * ser-pipe.c (pipe_ops): Likewise.
7641 * ser-tcp.c (tcp_ops): Likewise.
7642 * ser-unix.c (hardwire_setparity): Add declaration.
7643 (hardwire_raw): Don't reset PARENB flag.
7644 (hardwire_setparity): New function.
7645 (hardwire_ops): Add hardwire_setparity.
7646 * serial.c (serial_setparity): New function.
7647 (serial_parity): New global.
7648 (parity_none, parity_odd, parity_even, parity_enums, parity):
7650 (set_parity): New function.
7651 (_initialize_serial): Add set/show serial parity commands.
7652 * serial.h (GDBPARITY_NONE): Define.
7653 (GDBPARITY_ODD): Define.
7654 (GDBPARITY_EVEN): Define.
7655 (serial_setparity) Add declaration.
7656 (struct serial_ops): Add setparity field.
7657 * target.h (serial_parity): Add declaration.
7659 2015-03-23 Keith Seitz <keiths@redhat.com>
7661 * linespec.c (linespec_lexer_lex_keyword): Update comment.
7663 2015-03-23 Keith Seitz <keiths@redhat.com>
7665 * breakpoint.c (parse_breakpoint_sals): Use
7666 linespec_lexer_lex_keyword to ascertain if the user specified
7668 * linespec.c [IF_KEYWORD_INDEX]: Define.
7669 (linespec_lexer_lex_keyword): Export.
7670 (struct ls_parser) <keyword_ok>: Remove.
7671 A keyword is only a keyword if not followed by another keyword.
7672 (linespec_lexer_lex_one): Remove keyword_ok handling.
7673 Add comment explaining why the parsing stream is not advanced
7674 when a keyword is seen.
7675 (parse_linespec): Remove parser->keyword_ok.
7676 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7678 2015-03-23 Keith Seitz <keiths@redhat.com>
7681 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7682 if we find a static method with DW_AT_vtable_elem_location.
7684 2015-03-21 Eli Zaretskii <eliz@gnu.org>
7686 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7687 before the second loop, to avoid undefined behavior. Reported by
7688 Anton Blanchard <anton@samba.org>.
7690 2015-03-20 Keven Boell <keven.boell@intel.com>
7692 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7693 data_location usage to linked list.
7694 (resolve_dynamic_type_internal): Adapt data_location to
7696 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7697 (copy_type_recursive, copy_type): Add copy of linked list.
7698 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7699 (struct dynamic_prop_list): New struct.
7700 * dwarf2read.c (set_die_type): Set data_location data.
7702 2015-03-20 Pedro Alves <palves@redhat.com>
7704 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7705 inner block and make it const.
7706 * machoread.c (get_archive_prefix_len): Make "lparen" const.
7708 2015-03-20 Pedro Alves <palves@redhat.com>
7710 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7711 * breakpoint.h (set_breakpoint_condition): Update declaration.
7713 2015-03-20 Pedro Alves <palves@redhat.com>
7715 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7717 2015-03-20 Pedro Alves <palves@redhat.com>
7719 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7721 2015-03-20 Pedro Alves <palves@redhat.com>
7723 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7725 2015-03-20 Pedro Alves <palves@redhat.com>
7727 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7728 (nto_init_solib_absolute_prefix): Likewise.
7730 2015-03-20 Pedro Alves <palves@redhat.com>
7732 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7733 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7735 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7737 * config/djgpp/README: Remove gdb.hp.
7739 2015-03-20 Yao Qi <yao.qi@linaro.org>
7741 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7742 set_gdbarch_cannot_step_breakpoint.
7744 2015-03-19 Pedro Alves <palves@redhat.com>
7746 * linux-nat.c (linux_resume_one_lwp): Rename to ...
7747 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7748 instead call perror_with_name.
7749 (check_ptrace_stopped_lwp_gone): New function.
7750 (linux_resume_one_lwp): Reimplement as wrapper around
7751 linux_resume_one_lwp_throw that swallows errors if the LWP is
7753 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7754 swallows errors if the LWP is gone. Use
7755 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7757 2015-03-19 Pedro Alves <palves@redhat.com>
7759 * linux-nat.c (status_callback): Return early if the LWP has no
7762 2015-03-19 Pedro Alves <palves@redhat.com>
7764 * linux-nat.c (select_event_lwp_callback): Update comment to no
7765 longer mention SIGTRAP.
7767 2015-03-18 Tristan Gingold <gingold@adacore.com>
7769 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7770 redirection code to ...
7771 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
7772 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
7774 2015-03-18 Gary Benson <gbenson@redhat.com>
7776 (remote_protocol_features): Remove the "vFile:fstat" feature.
7777 (remote_hostio_fstat): Probe for "vFile:fstat" support.
7779 2015-03-11 Yao Qi <yao.qi@linaro.org>
7782 * aarch64-linux-tdep.c: Include xml-syscall.h
7783 (aarch64_linux_get_syscall_number): New function.
7784 (aarch64_linux_init_abi): Call
7785 set_gdbarch_get_syscall_number.
7786 * syscalls/aarch64-linux.xml: New file.
7788 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7790 * ser-base.h (ser_base_setstopbits): Change second argument name
7791 from "rate" to "num".
7793 2015-03-17 Gary Benson <gbenson@redhat.com>
7794 Luke Allardyce <lukeallardyce@gmail.com>
7797 * common/common-remote-fileio.h (sys/stat.h): New include.
7798 (stuct stat): Remove forward declaration.
7800 2015-03-16 John Baldwin <jhb@FreeBSD.org>
7802 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7803 before writing core register notes.
7805 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7806 Pedro Alves <palves@redhat.com>
7808 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7809 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7810 (tgoto): Wrap with extern "C".
7812 2015-03-16 Pedro Alves <palves@redhat.com>
7813 Yuanhui Zhang <asmwarrior@gmail.com>
7815 * stub-termcap.c (tputs): Change prototype.
7817 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7818 Pedro Alves <palves@redhat.com>
7820 * windows-nat.c (struct thread_info_struct): Rename to ...
7821 (struct windows_thread_info_struct): ... this.
7822 (thread_info): Rename to ...
7823 (windows_thread_info): ... this.
7826 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7827 Pedro Alves <palves@redhat.com>
7829 * NEWS: New Removed targets and native configurations.
7831 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7834 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7835 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7836 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7837 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7838 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7839 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7840 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7842 * config/ia64/hpux.mh: Remove file.
7843 * config/pa/hpux.mh: Remove file.
7844 * configure: Rebuilt.
7845 * configure.ac (dlgetmodinfo, somread.o): Remove.
7846 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7847 (ia64-*-hpux*): Remove its float format exception.
7848 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7849 * hppa-hpux-nat.c: Remove file.
7850 * hppa-hpux-tdep.c: Remove file.
7851 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7852 Move them here from hppa-tdep.h
7853 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7854 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7855 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7856 Move them to hppa-tdep.c.
7857 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7859 * ia64-hpux-nat.c: Remove file.
7860 * ia64-hpux-tdep.c: Remove file.
7861 * ia64-hpux-tdep.h: Remove file.
7862 * inf-ttrace.c: Remove file.
7863 * inf-ttrace.h: Remove file.
7864 * solib-ia64-hpux.c: Remove file.
7865 * solib-ia64-hpux.h: Remove file.
7866 * solib-pa64.c: Remove file.
7867 * solib-pa64.h: Remove file.
7868 * solib-som.c: Remove file.
7869 * solib-som.h: Remove file.
7870 * somread.c: Remove file.
7872 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7874 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7875 * config.in: Regenerate.
7876 * configure: Regenerate.
7877 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
7879 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7880 enumerate memory regions if present.
7882 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7884 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7885 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7887 (i386fbsd_sigtramp_p): Likewise.
7889 2015-03-12 John Baldwin <jhb@FreeBSD.org>
7891 * MAINTAINERS (Write After Approval): Add John Baldwin.
7893 2015-03-12 Gary Benson <gbenson@redhat.com>
7895 * solib.c (_initialize_solib): Make "set/show sysroot" use
7896 add_setshow_optional_filename_cmd so it can be restored to
7897 empty after being set.
7899 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7901 * Makefile.in (SFILES): New source break-catch-syscall.c.
7902 (COMMON_OBS): New object break-catch-syscall.o.
7903 * break-catch-syscall.c: New file.
7904 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7905 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7906 (struct syscall_catchpoint): Likewise.
7907 (dtor_catch_syscall): Likewise.
7908 (catch_syscall_inferior_data): Likewise.
7909 (struct catch_syscall_inferior_data): Likewise.
7910 (get_catch_syscall_inferior_data): Likewise.
7911 (catch_syscall_inferior_data_cleanup): Likewise.
7912 (insert_catch_syscall): Likewise.
7913 (remove_catch_syscall): Likewise.
7914 (breakpoint_hit_catch_syscall): Likewise.
7915 (print_it_catch_syscall): Likewise.
7916 (print_one_catch_syscall): Likewise.
7917 (print_mention_catch_syscall): Likewise.
7918 (print_recreate_catch_syscall): Likewise.
7919 (catch_syscall_breakpoint_ops): Likewise.
7920 (syscall_catchpoint_p): Likewise.
7921 (create_syscall_event_catchpoint): Likewise.
7922 (catch_syscall_split_args): Likewise.
7923 (catch_syscall_command_1): Likewise.
7924 (is_syscall_catchpoint_enabled): Likewise.
7925 (catch_syscall_enabled): Likewise.
7926 (catching_syscall_number): Likewise.
7927 (catch_syscall_completer): Likewise.
7928 (clear_syscall_counts): Likewise.
7929 (initialize_breakpoint_ops): Move initialization of syscall
7930 catchpoints to break-catch-syscall.c.
7931 (_initialize_breakpoint): Move code related to syscall catchpoints
7932 to break-catch-syscall.c.
7934 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7936 * breakpoint.c (breakpoint_find_if): New function.
7937 * breakpoint.h (breakpoint_find_if): New prototype.
7939 2015-03-11 Gary Benson <gbenson@redhat.com>
7941 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7942 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7943 (remote_fileio_to_host_ulong): Likewise.
7944 (remote_fileio_to_host_mode): Likewise.
7945 (remote_fileio_to_host_time): Likewise.
7946 (remote_fileio_to_host_stat): Likewise.
7947 * remote.c (PACKET_vFile_fstat): New enum value.
7948 (remote_protocol_features): Register the "vFile:fstat" feature.
7949 (remote_hostio_fstat): New function.
7950 (remote_bfd_iovec_stat): Use the above.
7951 (_initialize_remote): Register new "set/show remote
7952 hostio-fstat-packet" command.
7953 * symfile.c (separate_debug_file_exists): Update comment.
7954 * NEWS: Announce new vFile:fstat packet.
7956 2015-03-11 Gary Benson <gbenson@redhat.com>
7958 * common/common-remote-fileio.h: New file.
7959 * common/common-remote-fileio.c: Likewise.
7960 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7961 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7962 (COMMON_OBS): Add common-remote-fileio.o.
7963 (common-remote-fileio.o): New rule.
7964 * remote-fileio.h (common-remote-fileio.h): New include.
7965 * remote-fileio.c (gdb/fileio.h): Do not include.
7966 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7967 (remote_fileio_to_fio_uint): Likewise.
7968 (remote_fileio_to_fio_time): Likewise.
7969 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7970 (remote_fileio_to_fio_mode): Likewise.
7971 (remote_fileio_to_fio_ulong): Likewise.
7972 (remote_fileio_to_fio_stat): Likewise.
7974 2015-03-11 Andy Wingo <wingo@igalia.com>
7976 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7977 we were checking the cached type, not the cached dynamic type.
7979 2015-03-11 Andy Wingo <wingo@igalia.com>
7981 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7982 other strings, as these are on the GC'd heap, and will be
7983 collected along with the smob.
7985 2015-03-11 Andy Wingo <wingo@igalia.com>
7987 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7988 (objfile_functions): Bind gdbscm_objfile_progspace to
7990 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7992 2015-03-11 Andy Wingo <wingo@igalia.com>
7994 * guile/guile.c (_initialize_guile): Disable automatic
7995 finalization, if Guile offers us that possibility.
7996 * guile/guile.c (call_initialize_gdb_module):
7997 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7998 finalizers in appropriate places.
7999 * configure.ac (AC_TRY_LIBGUILE): Add a check for
8000 scm_set_automatic_finalization_enabled.
8001 * configure: Regenerated.
8003 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8005 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
8008 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8010 * s390-linux-nat.c (struct arch_lwp_info): New.
8011 (s390_fix_watch_points): Rename to...
8012 (s390_prepare_to_resume): ...this. Skip the PER info update
8013 unless the watch points have changed.
8014 (s390_refresh_per_info, s390_new_thread): New functions.
8015 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
8016 s390_fix_watch_points.
8017 (s390_remove_watchpoint): Likewise.
8018 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
8019 Register s390_prepare_to_resume.
8021 2015-03-09 Pedro Alves <palves@redhat.com>
8024 2015-03-07 Pedro Alves <palves@redhat.com>
8025 * common/gdb_socket.h: New file.
8026 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8028 (net_open): Use union gdb_sockaddr_u.
8030 2015-03-07 Pedro Alves <palves@redhat.com>
8032 * configure.ac (build_warnings): Move -Wmissing-prototypes
8033 -Wdeclaration-after-statement -Wmissing-parameter-type
8034 -Wold-style-declaration -Wold-style-definition to the C-specific
8036 * configure: Regenerate.
8038 2015-03-07 Pedro Alves <palves@redhat.com>
8040 * common/gdb_socket.h: New file.
8041 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8043 (net_open): Use union gdb_sockaddr_u.
8045 2015-03-07 Pedro Alves <palves@redhat.com>
8047 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
8048 (exceptions_state_mc_action_iter)
8049 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8051 [__cplusplus] (try_scope_depth): New global.
8052 [__cplusplus] (exception_try_scope_entry)
8053 (exception_try_scope_exit, gdb_exception_sliced_copy)
8054 (exception_rethrow): New functions.
8055 (throw_exception): In C++ mode, throw
8056 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
8057 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
8058 (throw_it): In C++ mode, use try_scope_depth.
8059 * common/common-exceptions.h [!__cplusplus]
8060 (exceptions_state_mc_action_iter)
8061 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8063 [__cplusplus] (exception_try_scope_entry)
8064 (exception_try_scope_exit, exception_rethrow): Declare.
8065 [__cplusplus] (struct exception_try_scope): New struct.
8066 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
8068 (struct gdb_exception_RETURN_MASK_ALL)
8069 (struct gdb_exception_RETURN_MASK_ERROR)
8070 (struct gdb_exception_RETURN_MASK_QUIT): New types.
8072 2015-03-07 Pedro Alves <palves@redhat.com>
8074 * main.c (handle_command_errors): Remove volatile qualifier from
8077 2015-03-07 Pedro Alves <palves@redhat.com>
8079 * breakpoint.c (save_breakpoints): Adjust to avoid code between
8081 * gdbtypes.c (safe_parse_type): Remove empty line.
8082 (types_deeply_equal):
8083 * guile/scm-frame.c (gdbscm_frame_name):
8084 * linux-thread-db.c (find_new_threads_once):
8085 * python/py-breakpoint.c (bppy_get_commands):
8086 * record-btrace.c (record_btrace_insert_breakpoint)
8087 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
8088 (record_btrace_start_replaying): Adjust to avoid code between TRY
8091 2015-03-07 Pedro Alves <palves@redhat.com>
8093 * common/common-exceptions.c (struct catcher) <exception>: No
8094 longer a pointer to volatile exception. Now an exception value.
8095 <mask>: Delete field.
8096 (exceptions_state_mc_init): Remove all parameters. Adjust.
8097 (exceptions_state_mc): No longer pop the catcher here.
8098 (exceptions_state_mc_catch): New function.
8099 (throw_exception): Adjust.
8100 * common/common-exceptions.h (exceptions_state_mc_init): Remove
8102 (exceptions_state_mc_catch): Declare.
8103 (TRY_CATCH): Rename to ...
8104 (TRY): ... this. Remove EXCEPTION and MASK parameters.
8105 (CATCH, END_CATCH): New.
8106 All callers adjusted.
8108 2015-03-07 Tom Tromey <tromey@redhat.com>
8110 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
8112 2015-03-07 Pedro Alves <palves@redhat.com>
8114 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8115 (amd64_epilogue_frame_cache): Normal exception handling code.
8116 * break-catch-throw.c (check_status_exception_catchpoint)
8117 (re_set_exception_catchpoint): Ditto.
8118 * cli/cli-interp.c (safe_execute_command):
8119 * cli/cli-script.c (script_from_file): Ditto.
8120 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
8122 * compile/compile-object-run.c (compile_object_run): Ditto.
8123 * cp-abi.c (baseclass_offset): Ditto.
8124 * cp-valprint.c (cp_print_value): Ditto.
8125 * exceptions.c (catch_exceptions_with_msg):
8126 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
8127 * frame.c (get_frame_address_in_block_if_available): Ditto.
8128 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8129 (i386_sigtramp_frame_cache): Ditto.
8130 * infcmd.c (post_create_inferior): Ditto.
8131 * linespec.c (parse_linespec, find_linespec_symbols):
8132 * p-valprint.c (pascal_object_print_value): Ditto.
8133 * parse.c (parse_expression_for_completion): Ditto.
8134 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
8135 * remote.c (remote_get_noisy_reply): Ditto.
8136 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
8137 * solib-svr4.c (solib_svr4_r_map): Ditto.
8139 2015-03-06 Gary Benson <gbenson@redhat.com>
8141 * common/common-utils.h (startswith): New inline function.
8142 All places where this logic was used updated to use the above.
8144 2015-03-05 Pedro Alves <palves@redhat.com>
8147 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
8148 after reading the breakpoint's shadow memory.
8150 2015-03-05 Mark Kettenis <kettenis@gnu.org>
8152 * hppabsd-nat.c: Remove file.
8153 * hppaobsd-nat.c: New file.
8154 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
8156 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
8159 2015-03-04 Pedro Alves <palves@redhat.com>
8161 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
8162 (target_decr_pc_after_break): Delete declaration.
8163 * target.c (default_target_decr_pc_after_break)
8164 (target_decr_pc_after_break): Delete.
8165 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
8166 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
8167 * linux-thread-db.c (check_event): Likewise.
8168 * infrun.c (adjust_pc_after_break): Likewise.
8169 * darwin-nat.c (cancel_breakpoint): Likewise.
8170 * aix-thread.c (aix_thread_wait): Likewise.
8171 * target-delegates.c: Regenerate.
8173 2015-03-04 Pedro Alves <palves@redhat.com>
8175 * linux-nat.c (save_sigtrap): Check for breakpoints before
8176 checking watchpoints.
8177 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8178 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8179 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
8180 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
8181 (linux_nat_stopped_by_sw_breakpoint)
8182 (linux_nat_supports_stopped_by_sw_breakpoint)
8183 (linux_nat_stopped_by_hw_breakpoint)
8184 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
8185 (linux_nat_wait_1): Don't re-increment the PC if relying on
8186 SIGTRAP's siginfo->si_code.
8187 (linux_nat_add_target): Install new target methods.
8188 * linux-thread-db.c (check_event): Don't account for breakpoint PC
8189 offset if the target already adjusted the PC.
8190 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
8191 (GDB_ARCH_TRAP_BRKPT): New.
8192 (TRAP_HWBKPT): Define if not already defined.
8194 2015-03-04 Pedro Alves <palves@redhat.com>
8196 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
8197 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
8199 <stop_reason>: New field.
8200 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
8201 (packet_set_cmd_state): New function.
8202 (remote_protocol_features): Register the "swbreak" and "hwbreak"
8204 (remote_query_supported): If not disabled with the corresponding
8205 "set remote foo-packet" command, report support for the swbreak
8206 and hwbreak features.
8207 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
8209 <stop_reason>: New field.
8210 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
8211 (remote_wait_as): Adjust.
8212 (remote_stopped_by_sw_breakpoint)
8213 (remote_supports_stopped_by_sw_breakpoint)
8214 (remote_stopped_by_hw_breakpoint)
8215 (remote_supports_stopped_by_hw_breakpoint): New functions.
8216 (remote_stopped_by_watchpoint): New function.
8217 (init_remote_ops): Install them.
8218 (_initialize_remote): Register new "set/show remote
8219 swbreak-feature-packet" and "set/show remote
8220 swbreak-feature-packet" commands.
8222 2015-03-04 Pedro Alves <palves@redhat.com>
8224 * btrace.h: Include target/waitstatus.h.
8225 (struct btrace_thread_info) <stop_reason>: New field.
8226 * record-btrace.c (record_btrace_step_thread): Use
8227 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8228 (record_btrace_decr_pc_after_break): Delete.
8229 (record_btrace_stopped_by_sw_breakpoint)
8230 (record_btrace_supports_stopped_by_sw_breakpoint)
8231 (record_btrace_stopped_by_hw_breakpoint)
8232 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
8233 (init_record_btrace_ops): Install them.
8234 * record-full.c (record_full_hw_watchpoint): Delete and replace
8236 (record_full_stop_reason): ... this throughout.
8237 (record_full_exec_insn): Adjust.
8238 (record_full_wait_1): Adjust. No longer re-increment the PC.
8239 (record_full_wait_1): Adjust. Use
8240 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8241 (record_full_stopped_by_watchpoint): Adjust.
8242 (record_full_stopped_by_sw_breakpoint)
8243 (record_full_supports_stopped_by_sw_breakpoint)
8244 (record_full_supports_stopped_by_sw_breakpoint)
8245 (record_full_stopped_by_hw_breakpoint)
8246 (record_full_supports_stopped_by_hw_breakpoint): New functions.
8247 (init_record_full_ops, init_record_full_core_ops): Install them.
8248 * record.c (record_check_stopped_by_breakpoint): New function.
8249 * record.h: Include target/waitstatus.h.
8250 (record_check_stopped_by_breakpoint): New declaration.
8252 2015-03-04 Pedro Alves <palves@redhat.com>
8254 enum lwp_stop_reason -> enum target_stop_reason
8255 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8256 (linux_nat_stopped_by_watchpoint, status_callback)
8257 (linux_nat_wait_1): Adjust.
8258 * linux-nat.h (enum lwp_stop_reason): Delete.
8259 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8260 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8261 * target/waitstatus.h (enum target_stop_reason): New.
8263 2015-03-04 Pedro Alves <palves@redhat.com>
8265 * breakpoint.c (need_moribund_for_location_type): New function.
8266 (bpstat_stop_status): Don't skipping checking moribund locations
8267 of breakpoint types which the target tell caused a stop.
8268 (program_breakpoint_here_p): New function, factored out from ...
8269 (bp_loc_is_permanent): ... this.
8270 (update_global_location_list): Don't create a moribund location if
8271 the target supports reporting stops of the type of the removed
8273 * breakpoint.h (program_breakpoint_here_p): New declaration.
8274 * infrun.c (adjust_pc_after_break): Return early if the target has
8275 already adjusted the PC. Add comments.
8276 (handle_signal_stop): If nothing explains a signal, and the target
8277 tells us the stop was caused by a software breakpoint, check if
8278 there's a breakpoint instruction in the memory. If so, adjust the
8279 PC before presenting the stop to the user. Otherwise, ignore the
8280 trap. If nothing explains a signal, and the target tells us the
8281 stop was caused by a hardware breakpoint, ignore the trap.
8282 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8283 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8284 to_supports_stopped_by_hw_breakpoint>: New fields.
8285 (target_stopped_by_sw_breakpoint)
8286 (target_supports_stopped_by_sw_breakpoint)
8287 (target_stopped_by_hw_breakpoint)
8288 (target_supports_stopped_by_hw_breakpoint): Define.
8289 * target-delegates.c: Regenerate.
8291 2015-03-04 Pedro Alves <palves@redhat.com>
8293 * infrun.c (follow_fork_inferior): Use the whole of the
8294 inferior_ptid and pending_follow.related_pid ptids instead of
8295 building ptids from the process components. Adjust verbose output
8296 to use target_pid_to_str.
8297 * linux-nat.c (linux_child_follow_fork): Use the whole of the
8298 inferior_ptid and pending_follow.related_pid ptids instead of
8299 building ptids from the process components.
8301 2015-03-04 Mark Kettenis <kettenis@gnu.org>
8303 * inf-ptrace.c [PT_GET_PROCESS_STATE]
8304 (inf_ptrace_insert_fork_catchpoint): New function.
8305 (inf_ptrace_remove_fork_catchpoint): New function.
8306 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8308 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8310 * s390-linux-tdep.c (s390_register_name): Return empty string
8311 instead of NULL for registers that shouldn't be visible.
8313 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8315 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8316 XML file for 64-bit targets.
8318 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
8320 * target.h (find_default_create_inferior): Remove declaration.
8321 (find_default_attach): Likewise.
8323 2015-03-03 Pedro Alves <palves@redhat.com>
8325 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8326 Use ptid_get_pid to get the overall process id when resuming all
8329 2015-03-03 Pedro Alves <palves@redhat.com>
8331 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8332 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
8333 * inf-ptrace.c (get_ptrace_pid): New function.
8334 (inf_ptrace_resume): Use it.
8335 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8338 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8340 * nat/linux-btrace.c: Include sys/utsname.h.
8341 (linux_determine_kernel_ptr_bits): New.
8342 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8343 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8346 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8348 * btrace.c (ftrace_update_function): Treat return as tailcall for
8349 "_dl_runtime_resolve".
8351 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8353 * btrace.h (btrace_function) <lbegin, lend>: Remove.
8354 * btrace.c (ftrace_debug): Do not print the line range.
8355 (ftrace_skip_file, ftrace_update_lines): Remove.
8356 (ftrace_new_function): Remove lbegin and lend initialization.
8357 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8358 * record-btrace.c (btrace_compute_src_line_range): New.
8359 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8361 2015-03-02 Pedro Alves <palves@redhat.com>
8363 * infrun.c (follow_exec): Delete all threads of the process except
8364 the event thread. Extended comments.
8366 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8368 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8370 2015-03-02 Joel Brobecker <brobecker@adacore.com>
8372 * utils.h: Remove <stdbool.h> #include.
8373 (producer_is_gcc): Change return type to "int".
8374 * utils.c (producer_is_gcc): Change return type to int.
8375 Return 1 instead of true, and 0 instead of false.
8376 Adjust function documentation accordingly.
8378 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8380 * s390-linux-nat.c (have_regset_vxrs): New static variable.
8381 (s390_linux_fetch_inferior_registers): Handle vector registers, if
8383 (s390_linux_store_inferior_registers): Likewise.
8384 (s390_get_hwcap): Remove function. Embed its logic...
8385 (s390_read_description): ...here. Yield a target description with
8386 vector registers if applicable.
8387 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8388 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8389 "features/s390x-tevx-linux64.c".
8390 (struct gdbarch_tdep) <v0_full_regnum>: New field.
8391 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
8392 for "GNU/Linux-specific registers".
8393 (s390_dwarf_reg_r0l): New enum value.
8394 (s390_dwarf_reg_to_regnum): Support vector registers.
8395 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8396 of GPR lower halves.
8397 (regnum_is_vxr_full): New function.
8398 (s390_register_name): New function.
8399 (s390_pseudo_register_name): Handle v0-v15, which are composed of
8400 f0-f15 and v0l-v15l.
8401 (s390_pseudo_register_type): Likewise.
8402 (s390_pseudo_register_read): Likewise.
8403 (s390_pseudo_register_write): Likewise.
8404 (s390_value_from_register): Account for the fact that values are
8405 placed left-justified in vector registers.
8406 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8407 the vector reggroup and omit them from the general reggroup.
8408 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8409 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8410 (s390_iterate_over_regset_sections): Add iterations for the two
8412 (s390_core_read_description): Yield a target description with
8413 vector registers if applicable.
8414 (s390_gdbarch_init): Handle target descriptions with vector
8415 registers. Add "register_name" gdbarch method.
8416 (_initialize_s390_tdep): Call new tdesc initialization functions.
8417 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8418 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8419 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8420 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8421 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8422 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8423 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8424 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8425 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8426 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8427 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8428 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8429 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8430 (S390_NUM_REGS): Adjust value.
8431 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8432 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8433 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8434 * NEWS: Announce S/390 vector register support.
8436 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8438 * features/s390-tevx-linux64.xml: New file.
8439 * features/s390-vx-linux64.xml: New file.
8440 * features/s390-vx.xml: New file.
8441 * features/s390x-tevx-linux64.xml: New file.
8442 * features/s390x-vx-linux64.xml: New file.
8443 * features/Makefile (WHICH): Add s390-vx-linux64,
8444 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8445 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8446 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8448 * features/s390-tevx-linux64.c: New generated file.
8449 * features/s390-vx-linux64.c: Likewise.
8450 * features/s390x-tevx-linux64.c: Likewise.
8451 * features/s390x-vx-linux64.c: Likewise.
8452 * regformats/s390-tevx-linux64.dat: Likewise.
8453 * regformats/s390-vx-linux64.dat: Likewise.
8454 * regformats/s390x-tevx-linux64.dat: Likewise.
8455 * regformats/s390x-vx-linux64.dat: Likewise.
8457 2015-02-28 Doug Evans <xdje42@gmail.com>
8459 * symtab.h (struct symtab) <next>: Fix comment.
8461 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8463 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8466 2015-02-27 Pedro Alves <palves@redhat.com>
8468 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8470 2015-02-27 Pedro Alves <palves@redhat.com>
8472 * common/common-exceptions.h (exception_none): Declare.
8473 * common/common-exceptions.c (exception_none): Moved from
8475 (exceptions_state_mc_init): Use exception_none.
8476 * exceptions.c (exception_none): Move to
8477 common/common-exceptions.c.
8478 * exceptions.h (exception_none): Move to
8479 common/common-exceptions.h.
8481 2015-02-27 Pedro Alves <palves@redhat.com>
8483 * main.c (catch_command_errors, catch_command_errors_const):
8484 Remove 'mask' argument. Adjust.
8485 (captured_main): Adjust callers.
8487 2015-02-27 Pedro Alves <palves@redhat.com>
8489 * python/python-internal.h: Include "extension-priv.h".
8491 2015-02-27 Pedro Alves <palves@redhat.com>
8493 * breakpoint.h (enum print_stop_action): Move further up in the
8496 2015-02-27 Pedro Alves <palves@redhat.com>
8498 * gdbarch.sh: Include regcache.h.
8499 * gdbarch.h: Regenerate.
8501 2015-02-27 Pedro Alves <palves@redhat.com>
8503 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8504 Remove duplicate const.
8505 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8508 2015-02-27 Pedro Alves <palves@redhat.com>
8510 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8511 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8512 * features/feature_to_c.sh: Tag the generated xml_builtin array
8513 with extern const in C++ mode.
8515 2015-02-27 Tom Tromey <tromey@redhat.com>
8517 * minidebug.c (struct lzma_stream): Rename to ...
8518 (struct gdb_lzma_stream): ... this.
8519 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8521 2015-02-27 Pedro Alves <palves@redhat.com>
8523 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8525 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8526 (mi_cmd_stack_list_variables): Use it.
8528 2015-02-27 Pedro Alves <palves@redhat.com>
8530 * x86-linux-nat.c (u_debugreg_offset): New function.
8531 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8533 2015-02-27 Pedro Alves <palves@redhat.com>
8535 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8537 Include break-common.h.
8539 2015-02-27 Tom Tromey <tromey@redhat.com>
8540 Pedro Alves <palves@redhat.com>
8542 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8543 local used to iterate over enums.
8544 * completer.c (signal_completer): Likewise.
8545 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8546 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8547 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8548 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8549 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8550 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8551 * tui-wingeneral.c (tui_refresh_all): Likewise.
8553 2015-02-27 Pedro Alves <palves@redhat.com>
8555 * target.h: Include "infrun.h".
8557 2015-02-27 Pedro Alves <palves@redhat.com>
8559 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8561 2015-02-27 Pedro Alves <palves@redhat.com>
8563 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8565 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8567 2015-02-27 Pedro Alves <palves@redhat.com>
8569 * cli-out.c (_rl_erase_entire_line): Move declaration out of
8570 cli_mld_erase_entire_line, and make it extern "C".
8571 * common/common-defs.h (EXTERN_C): New.
8572 * completer.c (_rl_completion_prefix_display_length)
8573 (_rl_print_completions_horizontally, QSFUNC): Move declarations
8574 out of gdb_display_match_list_1.
8575 (_rl_qsort_string_compare): Move declaration out of
8576 gdb_display_match_list_1, and make it extern "C".
8577 * defs.h (re_comp): Use EXTERN_C.
8578 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8579 and make it extern "C".
8580 (monstartup): Move declaration out of maintenance_set_profile_cmd,
8581 and make it extern "C".
8582 (main): Move declaration out of maintenance_set_profile_cmd.
8583 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8586 2015-02-27 Pedro Alves <palves@redhat.com>
8588 * python/python.c (GdbMethods): Rename to ...
8589 (python_GdbMethods): ... this and make extern.
8590 (GdbModuleDef): Rename to ...
8591 (python_GdbModuleDef): ... this and make extern.
8593 2015-02-27 Pedro Alves <palves@redhat.com>
8595 * record-btrace.c (set_record_btrace_cmdlist)
8596 (show_record_btrace_cmdlist): Remove redefinitions.
8598 2015-02-27 Tom Tromey <tromey@redhat.com>
8599 Pedro Alves <palves@redhat.com>
8601 * dwarf2-frame.c (enum cfa_how_kind, struct
8602 dwarf2_frame_state_reg_info): Move out of struct
8604 * dwarf2read.c (struct tu_stats): Move out of struct
8606 (struct file_entry): Move out of struct line_header.
8607 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8608 typedef_field_list): Move out of struct field_info.
8609 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8610 Move out of struct dynamic_prop.
8611 (union type_owner, union field_location, struct field, struct
8612 range_bounds, union type_specific): Move out of struct main_type.
8613 (struct fn_fieldlist, struct fn_field, struct typedef_field)
8614 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8615 (struct call_site_target, union call_site_parameter_u, struct
8616 call_site_parameter): Move out of struct call_site.
8617 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8619 (enum srcdest_kind): Move out of struct srcdest.
8620 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8621 * prologue-value.h (enum prologue_value_kind): Move out of struct
8623 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8625 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8626 out of struct field_info.
8627 * symfile.h (struct other_sections): Move out of struct
8629 * symtab.c (struct symbol_cache_slot): Move out struct
8631 * target-descriptions.c (enum tdesc_type_kind): Move out of
8632 typedef struct tdesc_type.
8633 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8634 struct tui_line_or_address.
8635 * value.c (enum internalvar_kind, union internalvar_data): Move
8636 out of struct internalvar.
8637 * xtensa-tdep.h (struct ctype_cache): Move out of struct
8640 2015-02-27 Tom Tromey <tromey@redhat.com>
8641 Pedro Alves <palves@redhat.com>
8643 Rename symbols whose names are reserved C++ keywords throughout.
8645 2015-02-27 Pedro Alves <palves@redhat.com>
8647 * Makefile.in (COMPILER): New, get it from autoconf.
8648 (COMPILE.pre, CC_LD): Use COMPILER.
8649 (CXX): Get from autoconf instead.
8650 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8651 * acinclude.m4: Include build-with-cxx.m4.
8652 * build-with-cxx.m4: New file.
8653 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8654 Disable -Werror by default if building in C++ mode.
8655 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8656 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
8657 Run supported-warning-flags tests with the C++ compiler.
8658 Save/restore CXXFLAGS too.
8659 * configure: Regenerate.
8661 2015-02-27 Pedro Alves <palves@redhat.com>
8663 * libiberty.m4: New file.
8664 * acinclude.m4: Include libiberty.m4.
8665 * configure.ac: Call libiberty_INIT.
8666 * config.in, configure: Regenerate.
8668 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8670 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8671 31-bit targets, but 64-bit targets as well.
8672 (s390_gnu_triplet_regexp): New function.
8673 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8674 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
8677 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
8679 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8680 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
8681 from CONTEXT_DEBUGGER.
8683 2015-02-26 Doug Evans <dje@google.com>
8685 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8687 (set_type_vptr_fieldno): Ditto.
8688 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8689 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8691 2015-02-26 Pedro Alves <palves@redhat.com>
8693 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8694 * complaints.c (vcomplaint): Pass argument FMT directly to
8695 printf-like functions instead of complaint->fmt.
8696 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8697 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8698 * compile/compile-loc2c.c (pushf, unary, binary): Add
8700 (do_compile_dwarf_expr_to_c): Pass string literal as format string
8702 (BINARY): Pass string literal as format string to 'binary'.
8703 * compile/compile-object-load.c (link_callbacks_einfo): Add
8705 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8707 2015-02-26 Pedro Alves <palves@redhat.com>
8709 * windows-termcap.c: Rename to ...
8710 * stub-termcap.c: ... this. Adjust header line.
8711 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8713 * configure: Regenerate.
8714 * configure.ac: Refer to stub-termcap.o instead of
8716 * gdb_curses.h: Mention stub-termcap.c instead of
8719 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8722 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8724 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
8726 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8728 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8730 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8731 bfd_canonicalize_symtab.
8733 2015-02-25 John Baldwin <jhb@FreeBSD.org>
8735 * amd64fbsd-nat.c: Include sys/user.h.
8736 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8737 instead of KERN_PS_STRINGS to locate the signal trampoline.
8738 * i386fbsd-nat.c: Include sys/user.h.
8739 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8740 instead of KERN_PS_STRINGS to locate the signal trampoline.
8741 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8742 (amd64fbsd_sigtramp_p): New.
8743 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8744 longer set default values.
8745 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8746 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8747 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8748 (i386fbsd_freebsd4_sigtramp_start)
8749 (i386fbsd_freebsd4_sigtramp_middle)
8750 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8751 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8752 (i386fbsd_sigtramp_p): New.
8753 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8754 longer set default values.
8755 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8757 2015-02-25 John Baldwin <jhb@freebsd.org>
8759 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8760 get_frame_register instead of frame_unwind_register_unsigned.
8762 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8765 * compile/compile-c-support.c (c_compute_program): Change // comment.
8766 * compile/compile-object-load.c (setup_sections): Change // comment.
8768 2015-02-26 Joel Brobecker <brobecker@adacore.com>
8771 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8773 2015-02-23 Pedro Alves <palves@redhat.com>
8775 * remote.c (skip_to_semicolon): New function.
8776 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
8777 special case the stop reasons that look like hex numbers
8778 upfront. Instead handle real register numbers after matching
8779 all the known stop reasons.
8781 2015-02-21 Doug Evans <dje@google.com>
8783 PR c++/17976, symtab/17821
8784 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8785 is_in_anonymous. All callers updated.
8786 (find_symbol_in_baseclass): Ditto.
8787 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8788 for symbols in an anonymous namespace.
8789 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8790 DW_AT_name directly.
8791 (dwarf2_name): Convert missing namespace name to
8792 CP_ANONYMOUS_NAMESPACE_STR.
8794 2015-02-20 Pedro Alves <palves@redhat.com>
8796 * linux-nat.c (linux_handle_extended_wait): Call
8797 thread_db_notice_clone whenever a new clone LWP is detected.
8798 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8800 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8801 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8802 (linux_unstop_all_lwps): Declare.
8803 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8804 (thread_get_info_callback): Delete.
8805 (thread_from_lwp): Use td_thr_get_info and record_thread.
8806 (thread_db_attach_lwp): Delete.
8807 (thread_db_notice_clone): New function.
8808 (try_thread_db_load_1): If /proc is mounted and shows the
8809 process'es task list, walk over all LWPs and call thread_from_lwp
8810 instead of relying on td_ta_thr_iter.
8811 (attach_thread): Don't call check_thread_signals here. Split the
8812 tail part of the function (which adds the thread to the core GDB
8814 (record_thread): ... this function. Call check_thread_signals
8816 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8817 call thread_from_lwp.
8818 (thread_db_update_thread_list): Rename to ...
8819 (thread_db_update_thread_list_org): ... this.
8820 (thread_db_update_thread_list): New function.
8821 (thread_db_find_thread_from_tid): Delete.
8822 (thread_db_get_ada_task_ptid): Simplify.
8823 * nat/linux-procfs.c: Include <sys/stat.h>.
8824 (linux_proc_task_list_dir_exists): New function.
8825 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8827 2015-02-20 Pedro Alves <palves@redhat.com>
8829 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8830 main LWP. Handle the case of waitpid returning 0 if we're already
8831 attached to the LWP. Don't set the LWP's last_resume_kind to
8832 resume_stop if we already knew about the LWP.
8833 (linux_nat_filter_event): Add debug logs.
8835 2015-02-20 Pedro Alves <palves@redhat.com>
8837 * target.h (forward_target_decr_pc_after_break): Delete
8840 2015-02-20 Pedro Alves <palves@redhat.com>
8843 * linux-thread-db.c (thread_get_info_callback): Return early if
8844 the thread's lwp id is -1.
8846 2015-02-20 Joel Brobecker <brobecker@adacore.com>
8850 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
8852 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8853 (dtrace_get_probes) Change type of variable 'dof'.
8855 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8857 PR breakpoints/16812
8858 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8859 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8860 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8862 2015-02-19 David Taylor <dtaylor@emc.com>
8864 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8866 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8868 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8870 (tui_putc): Don't call tui_handle_resize_during_io.
8871 (tui_getc): Likewise.
8872 (tui_mld_getc): Likewise.
8873 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8874 (tui_sigwinch_token): New static variable.
8875 (tui_initialize_win): Adjust documentation. Set
8877 (tui_async_resize_screen): New asynchronous callback.
8878 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8879 invoke tui_async_resize_screen.
8881 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8883 * configure: Regenerated.
8884 * configure.ac: Use GDB_AC_TRANSFORM.
8885 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8886 * acinclude.m4: sinclude transform.m4.
8887 * transform.m4: New file.
8888 (GDB_AC_TRANSFORM): New macro.
8890 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8892 * NEWS: Announce the support for DTrace SDT probes.
8894 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8896 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8897 (amd64_dtrace_parse_probe_argument): New function.
8898 (amd64_dtrace_probe_is_enabled): Likewise.
8899 (amd64_dtrace_enable_probe): Likewise.
8900 (amd64_dtrace_disable_probe): Likewise.
8901 (amd64_linux_init_abi): Register the
8902 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8903 `gdbarch_dtrace_disable_probe' and
8904 `gdbarch_dtrace_probe_is_enabled' hooks.
8905 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8906 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8907 (amd64_dtrace_enable_probe_sequence): Likewise.
8908 (amd64_dtrace_disable_probe_sequence): Likewise.
8910 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8912 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8913 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8914 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8916 * Makefile.in (SFILES): dtrace-probe.c added.
8917 * configure: Regenerate.
8918 * dtrace-probe.c: New file.
8919 (SHT_SUNW_dof): New constant.
8920 (dtrace_probe_type): New enum.
8921 (dtrace_probe_arg): New struct.
8922 (dtrace_probe_arg_s): New typedef.
8923 (struct dtrace_probe_enabler): New struct.
8924 (dtrace_probe_enabler_s): New typedef.
8925 (dtrace_probe): New struct.
8926 (dtrace_probe_is_linespec): New function.
8927 (dtrace_dof_sect_type): New enum.
8928 (dtrace_dof_dofh_ident): Likewise.
8929 (dtrace_dof_encoding): Likewise.
8930 (DTRACE_DOF_ENCODE_LSB): Likewise.
8931 (DTRACE_DOF_ENCODE_MSB): Likewise.
8932 (dtrace_dof_hdr): New struct.
8933 (dtrace_dof_sect): Likewise.
8934 (dtrace_dof_provider): Likewise.
8935 (dtrace_dof_probe): Likewise.
8936 (DOF_UINT): New macro.
8937 (DTRACE_DOF_PTR): Likewise.
8938 (DTRACE_DOF_SECT): Likewise.
8939 (dtrace_process_dof_probe): New function.
8940 (dtrace_process_dof): Likewise.
8941 (dtrace_build_arg_exprs): Likewise.
8942 (dtrace_get_arg): Likewise.
8943 (dtrace_get_probes): Likewise.
8944 (dtrace_get_probe_argument_count): Likewise.
8945 (dtrace_can_evaluate_probe_arguments): Likewise.
8946 (dtrace_evaluate_probe_argument): Likewise.
8947 (dtrace_compile_to_ax): Likewise.
8948 (dtrace_probe_destroy): Likewise.
8949 (dtrace_gen_info_probes_table_header): Likewise.
8950 (dtrace_gen_info_probes_table_values): Likewise.
8951 (dtrace_probe_is_enabled): Likewise.
8952 (dtrace_probe_ops): New variable.
8953 (info_probes_dtrace_command): New function.
8954 (_initialize_dtrace_probe): Likewise.
8955 (dtrace_type_name): Likewise.
8957 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8959 * gdbarch.sh (dtrace_parse_probe_argument): New.
8960 (dtrace_probe_is_enabled): Likewise.
8961 (dtrace_enable_probe): Likewise.
8962 (dtrace_disable_probe): Likewise.
8963 * gdbarch.c: Regenerate.
8964 * gdbarch.h: Regenerate.
8966 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8968 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8969 stap_probe_ops for `enable_probe' and `disable_probe'.
8970 * probe.c (enable_probes_command): New function.
8971 (disable_probes_command): Likewise.
8972 (_initialize_probe): Define the cli commands `enable probe' and
8974 (parse_probe_linespec): New function.
8975 (info_probes_for_ops): Use parse_probe_linespec.
8976 * probe.h (probe_ops): New hooks `enable_probe' and
8979 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8981 * probe.c (compute_probe_arg): Moved from stap-probe.c
8982 (compile_probe_arg): Likewise.
8983 (probe_funcs): Likewise.
8984 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8985 (compile_probe_arg): Likewise.
8986 (probe_funcs): Likewise.
8988 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8990 * probe.c (print_ui_out_not_applicables): New function.
8991 (exists_probe_with_pops): Likewise.
8992 (info_probes_for_ops): Do not include column headers for probe
8993 types for which no probe has been actually found on any object.
8994 Also invoke `print_ui_out_not_applicables' in order to match the
8995 column rows with the header when probes of several types are
8997 Print the "Type" column.
8998 * probe.h (probe_ops): Added a new probe operation `type_name'.
8999 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
9000 (stap_type_name): New function.
9002 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
9004 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
9005 (key_is_command_char): Delete.
9007 2015-02-17 Pedro Alves <palves@redhat.com>
9009 * tui/tui.c (tui_enable): Resize windows before anything
9010 might show a window.
9012 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
9015 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
9016 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
9018 * aarch64-tdep.h (tdesc_aarch64): Declare.
9020 2015-02-12 Mark Wielaard <mjw@redhat.com>
9022 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
9024 2015-02-13 Doug Evans <dje@google.com>
9026 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
9027 anonymous_namespace to is_in_anonymous for consistency with the rest
9029 (cp_lookup_bare_symbol): Fix typo in comment.
9030 (cp_search_static_and_baseclasses): Ditto.
9031 (search_symbol_list): Use vertical space in comment better.
9032 (reset_directive_searched): Ditto. Fix typo.
9033 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
9035 2015-02-13 Yao Qi <yao.qi@arm.com>
9037 * MAINTAINERS: Update my email address.
9039 2015-02-12 Doug Evans <dje@google.com>
9041 * symtab.c (completion_list_add_name): Fix memory leak.
9043 2015-02-12 Doug Evans <dje@google.com>
9045 * completer.c (complete_line): Remove incorrect comment.
9047 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9049 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
9050 (py_print_frame): Use RETURN_MASK_ERROR.
9052 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9054 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
9055 function comment. Wrap all function that can throw in cleanups.
9056 (gdbpy_apply_frame_filter): Wrap all function that can throw in
9059 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9061 * python/py-framefilter.c (py_print_frame): Substitute goto error.
9062 Remove the error label.
9064 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9066 * python/py-framefilter.c (py_print_frame): Put conditional code paths
9067 with goto first, indent the former else codepath left. Put variable
9068 'elided' to a new inner block.
9070 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9072 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
9074 2015-02-11 Pedro Alves <palves@redhat.com>
9076 * xcoffread.c (within_function): Delete.
9078 2015-02-11 Tom Tromey <tromey@redhat.com>
9079 Pedro Alves <palves@redhat.com>
9081 * breakpoint.c (base_breakpoint_ops): Delete.
9082 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
9083 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
9084 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
9085 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
9086 * python/py-arch.c (arch_object_type): Make extern.
9087 * python/py-block.c (block_syms_iterator_object_type): Make extern.
9088 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
9089 * python/py-cmd.c (cmdpy_object_type): Make extern.
9090 * python/py-continueevent.c (continue_event_object_type)
9091 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
9092 parameter. Update all callers.
9093 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
9094 * python/py-exitedevent.c (exited_event_object_type): Make extern.
9095 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
9096 * python/py-function.c (fnpy_object_type): Make extern.
9097 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
9098 * python/py-infevents.c (call_pre_event_object_type)
9099 (inferior_call_post_event_object_type).
9100 (memory_changed_event_object_type): Make extern.
9101 * python/py-infthread.c (thread_object_type): Make extern.
9102 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
9103 * python/py-linetable.c (linetable_entry_object_type)
9104 (linetable_object_type, ltpy_iterator_object_type): Make extern.
9105 * python/py-newobjfileevent.c (new_objfile_event_object_type)
9106 (clear_objfiles_event_object_type): Make extern.
9107 * python/py-objfile.c (objfile_object_type): Make extern.
9108 * python/py-param.c (parmpy_object_type): Make extern.
9109 * python/py-progspace.c (pspace_object_type): Make extern.
9110 * python/py-signalevent.c (signal_event_object_type): Make extern.
9111 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
9112 * python/py-type.c (type_object_type, field_object_type)
9113 (type_iterator_object_type): Make extern.
9114 * python/python.c (python_extension_script_ops)
9115 (python_extension_ops): Make extern.
9116 * stap-probe.c (stap_probe_ops): Make extern.
9118 2015-02-11 Pedro Alves <pedro@codesourcery.com>
9120 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
9121 because the event thread is not the current thread.
9123 2015-02-11 Doug Evans <xdje42@gmail.com>
9125 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
9126 been initialized yet, return NULL.
9128 2015-02-11 Doug Evans <dje@google.com>
9130 * symfile.h (new_symfile_objfile): Delete.
9131 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
9132 All callers updated.
9134 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9136 * tui/tui-io.c (tui_handle_resize_during_io): Call
9137 tui_update_gdb_sizes() after resizing the screen.
9138 * tui/tui.c (tui_enable): Resize the terminal before
9139 calling tui_update_gdb_sizes().
9141 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9143 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
9144 line before printing a newline.
9146 2015-02-11 Mark Wielaard <mjw@redhat.com>
9148 * utils.c (producer_is_gcc): Return true or false.
9150 2015-02-10 Mark Wielaard <mjw@redhat.com>
9152 * utils.h (producer_is_gcc): Change return type to bool. Add major
9154 * utils.c (producer_is_gcc): Likewise.
9155 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
9156 * dwarf2read.c (check_producer): Likewise.
9158 2015-02-10 Pedro Alves <palves@redhat.com>
9160 * infrun.c (displaced_step_fixup): Switch to the event thread
9161 before calling gdbarch_displaced_step_fixup.
9163 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9165 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
9167 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
9169 * ada-varobj.c (ada_name_of_child): Constify parent.
9170 (ada_path_expr_of_child): Same.
9171 (ada_value_of_child): Same.
9172 (ada_type_of_child): Same.
9173 * c-varobj.c (c_is_path_expr_parent): Same.
9174 (c_describe_child): Same.
9175 (c_name_of_child): Same.
9176 (c_value_of_child): Same.
9177 (c_type_of_child): Same.
9178 (cplus_number_of_children): Same.
9179 (cplus_describe_child): Constify var.
9180 (cplus_name_of_child): Constify parent.
9181 (cplus_value_of_child): Same.
9182 (cplus_type_of_child): Same.
9183 * jv-varobj.c (java_name_of_child): Same.
9184 (java_value_of_child): Same.
9185 (java_type_of_child): Same.
9186 * varobj.c (value_of_child): Same.
9187 (varobj_default_is_path_expr_parent): Constify var, parent and return
9189 (varobj_get_path_expr): Constify var, modify path_expr through
9191 (install_new_value): Constify parent.
9192 (value_of_child): Constify parent.
9193 * varobj.h (struct varobj): Constify parent.
9194 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
9196 (varobj_get_path_expr): Constify var.
9197 (varobj_get_path_expr_parent): Constify var and return value.
9199 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
9201 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
9202 (arm_prologue_this_id): Move PC and SP limit checks to
9203 arm_prologue_unwind_stop_reason.
9204 (arm_prologue_unwind) <stop_reason> : Set to
9205 arm_prologue_unwind_stop_reason.
9207 2015-02-09 Mark Wielaard <mjw@redhat.com>
9209 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
9210 DW_LANG_Fortran08 as language_fortran.
9212 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
9215 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
9216 of pointer against char.
9218 2015-02-09 Mark Wielaard <mjw@redhat.com>
9220 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
9221 (c_type_print_modifier): Likewise.
9222 * dwarf2read.c (read_tag_atomic_type): New function.
9223 (read_type_die_1): Handle DW_TAG_atomic_type.
9224 * gdbtypes.c (make_atomic_type): New function.
9225 (recursive_dump_type): Handle TYPE_ATOMIC.
9226 * gdbtypes.h (enum type_flag_values): Renumber.
9227 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
9228 (TYPE_ATOMIC): New macro.
9229 (make_atomic_type): Declare.
9231 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9233 * btrace.c (ftrace_find_call): Skip gaps.
9234 (ftrace_new_function): Initialize level.
9235 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
9236 (ftrace_new_switch): Update
9238 (ftrace_new_gap): New.
9239 (ftrace_update_function): Create new function after gap.
9240 (btrace_compute_ftrace_bts): Create gap on error.
9241 (btrace_stitch_bts): Update parameters. Clear trace if it
9243 (btrace_stitch_trace): Update parameters. Update callers.
9244 (btrace_clear): Reset the number of gaps.
9245 (btrace_insn_get): Return NULL if the iterator points to a gap.
9246 (btrace_insn_number): Return zero if the iterator points to a gap.
9247 (btrace_insn_end): Allow gaps at the end.
9248 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
9249 (btrace_find_insn_by_number): Assert that the found iterator does
9251 (btrace_call_next, btrace_call_prev): Assert that the last function
9253 * btrace.h (btrace_bts_error): New.
9254 (btrace_function): Update comment.
9255 (btrace_function) <insn, insn_offset, number>: Update comment.
9256 (btrace_function) <errcode>: New.
9257 (btrace_thread_info) <ngaps>: New.
9258 (btrace_thread_info) <replay>: Update comment.
9259 (btrace_insn_get): Update comment.
9260 * record-btrace.c (btrace_ui_out_decode_error): New.
9261 (record_btrace_info): Print number of gaps.
9262 (btrace_insn_history, btrace_call_history): Call
9263 btrace_ui_out_decode_error for gaps.
9264 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9266 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9268 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9269 * nat/linux-btrace.c: (btrace_this_cpu): New.
9270 (cpu_supports_bts): Call btrace_this_cpu.
9271 (intel_supports_bts): Add cpu parameter.
9273 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9275 * btrace.h (btrace_insn_class): New.
9276 (btrace_insn) <size, iclass>: New.
9277 * btrace.c (ftrace_find_call): Update parameters. Update users.
9278 Use instruction classification.
9279 (ftrace_new_return): Update parameters. Update users.
9280 (ftrace_update_function): Update parameters. Update users. Use
9281 instruction classification.
9282 (ftrace_update_insns): Update parameters. Update users.
9283 (ftrace_classify_insn): New.
9284 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
9285 TRY_CATCH around call to gdb_insn_length.
9287 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9289 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9290 Update parameters. Update users.
9292 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9294 * btrace.c (parse_xml_btrace_conf_bts): Add size.
9295 (btrace_conf_bts_attributes): New.
9296 (btrace_conf_children): Add attributes.
9297 * common/btrace-common.h (btrace_config_bts): New.
9298 (btrace_config)<bts>: New.
9299 (btrace_config): Update comment.
9300 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9302 * features/btrace-conf.dtd: Increment version. Add size
9303 attribute to bts element.
9304 * record-btrace.c (set_record_btrace_bts_cmdlist,
9305 show_record_btrace_bts_cmdlist): New.
9306 (record_btrace_adjust_size, record_btrace_print_bts_conf,
9307 record_btrace_print_conf, cmd_set_record_btrace_bts,
9308 cmd_show_record_btrace_bts): New.
9309 (record_btrace_info): Call record_btrace_print_conf.
9310 (_initialize_record_btrace): Add commands.
9311 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9312 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9313 (btrace_sync_conf): Synchronize bts size.
9314 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9315 * NEWS: Announce new commands and new packets.
9317 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9319 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9320 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9321 (x86_linux_btrace_conf): New.
9322 (x86_linux_create_target): Initialize to_btrace_conf.
9323 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9324 Check format. Split into this and ...
9325 (linux_enable_bts): ... this.
9326 (linux_btrace_conf): New.
9327 (perf_event_skip_record): Renamed into ...
9328 (perf_event_skip_bts_record): ... this. Updated users.
9329 (linux_disable_btrace): Split into this and ...
9330 (linux_disable_bts): ... this.
9331 (linux_read_btrace): Check format.
9332 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9333 (linux_btrace_conf): New.
9334 (btrace_target_info)<ptid>: Moved.
9335 (btrace_target_info)<conf>: New.
9336 (btrace_target_info): Split into this and ...
9337 (btrace_tinfo_bts): ... this. Updated users.
9338 * btrace.c (btrace_enable): Update parameters.
9339 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9340 (btrace_conf_children, btrace_conf_attributes)
9341 (btrace_conf_elements): New.
9342 * btrace.h (btrace_enable): Update parameters.
9343 (btrace_conf, parse_xml_btrace_conf): New.
9344 * common/btrace-common.h (btrace_config): New.
9345 * feature/btrace-conf.dtd: New.
9346 * record-btrace.c (record_btrace_conf): New.
9347 (record_btrace_cmdlist): New.
9348 (record_btrace_enable_warn, record_btrace_open): Pass
9349 &record_btrace_conf.
9350 (record_btrace_info): Print recording format.
9351 (cmd_record_btrace_bts_start): New.
9352 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9353 (_initialize_record_btrace): Add "record btrace bts" subcommand.
9354 Add "record bts" alias command.
9355 * remote.c (remote_state)<btrace_config>: New.
9356 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9357 (remote_protocol_features): Add qXfer:btrace-conf:read.
9358 (remote_open_1): Call remote_btrace_reset.
9359 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9360 (btrace_target_info)<conf>: New.
9361 (btrace_sync_conf, btrace_read_config): New.
9362 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
9364 (remote_btrace_conf): New.
9365 (init_remote_ops): Initialize to_btrace_conf.
9366 (_initialize_remote): Add qXfer:btrace-conf packet.
9367 * target.c (target_enable_btrace): Update parameters.
9368 (target_btrace_conf): New.
9369 * target.h (target_enable_btrace): Update parameters.
9370 (target_btrace_conf): New.
9371 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9372 (target_ops)<to_enable_btrace>: Update parameters and comment.
9373 (target_ops)<to_btrace_conf>: New.
9374 * target-delegates: Regenerate.
9375 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9376 (target_debug_print_const_struct_btrace_target_info_p): New.
9377 * NEWS: Announce new command and new packet.
9379 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9381 * nat/linux-btrace.h (perf_event_buffer): New.
9382 (btrace_target_info) <buffer, size, data_head>: Replace with ...
9384 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9385 (perf_event_buffer_size, perf_event_buffer_begin)
9386 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9388 (perf_event_new_data): New.
9390 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9392 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9393 * record-btrace.c (record_btrace_open): Remove call to
9394 target_supports_btrace.
9395 * remote.c (remote_supports_btrace): Update parameters.
9396 * target.c (target_supports_btrace): Update parameters.
9397 * target.h (to_supports_btrace, target_supports_btrace): Update
9399 * target-delegates.c: Regenerate.
9400 * target-debug.h (target_debug_print_enum_btrace_format): New.
9401 * nat/linux-btrace.c
9402 (kernel_supports_btrace): Rename into ...
9403 (kernel_supports_bts): ... this. Update users. Update warning text.
9404 (intel_supports_btrace): Rename into ...
9405 (intel_supports_bts): ... this. Update users.
9406 (cpu_supports_btrace): Rename into ...
9407 (cpu_supports_bts): ... this. Update users.
9408 (linux_supports_btrace): Update parameters. Split into this and ...
9409 (linux_supports_bts): ... this.
9410 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9412 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9414 * Makefile.in (SFILES): Add common/btrace-common.c.
9415 (COMMON_OBS): Add common/btrace-common.o.
9416 (btrace-common.o): Add build rules.
9417 * btrace.c (parse_xml_btrace): Update parameters.
9418 (parse_xml_btrace_block): Set format field.
9419 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9420 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9421 (btrace_compute_ftrace): Split into this and...
9422 (btrace_compute_ftrace_bts): ...this.
9423 (btrace_stitch_trace): Split into this and...
9424 (btrace_stitch_bts): ...this.
9425 * btrace.h (parse_xml_btrace): Update parameters.
9426 (make_cleanup_btrace_data): New.
9427 * common/btrace-common.c: New.
9428 * common/btrace-common.h: Include common-defs.h.
9429 (btrace_block_s): Update comment.
9430 (btrace_format): New.
9431 (btrace_format_string): New.
9432 (btrace_data_bts): New.
9434 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9435 * remote.c (remote_read_btrace): Update parameters.
9436 * target.c (target_read_btrace): Update parameters.
9437 * target.h (target_read_btrace): Update parameters.
9438 (target_ops)<to_read_btrace>: Update parameters.
9439 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9440 * target-delegates.c: Regenerate.
9441 * target-debug (target_debug_print_struct_btrace_data_p): New.
9442 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9443 (linux_read_bts): ...this.
9444 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9446 2015-02-06 Doug Evans <dje@google.com>
9448 * remote-m32r-sdi.c: Include symfile.h.
9450 2015-02-06 Doug Evans <dje@google.com>
9452 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9453 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9456 2015-02-06 Pedro Alves <palves@redhat.com>
9458 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9460 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9463 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9464 (enable_count_command): Check args for NULL value.
9466 2015-02-05 Doug Evans <xdje42@gmail.com>
9468 * guile/scm-frame.c: Fix spelling errors in a comment.
9470 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9472 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9473 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9476 2015-02-04 Pedro Alves <palves@redhat.com>
9478 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9479 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9481 (resume_stopped_resumed_lwps): Don't check whether the thread is
9482 marked as executing.
9483 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9485 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9487 * regset.h (struct regset): Add flags field.
9488 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9489 * corelow.c (get_core_register_section): Add warning if the size
9490 exceeds the requested size and the regset does not have the
9491 REGSET_VARIABLE_SIZE flag set.
9492 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9494 * armbsd-tdep.c (armbsd_gregset): Likewise.
9495 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9496 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9497 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9498 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9500 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9502 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9503 For ".reg-xstate", explicitly specify the requested section size
9504 via X86_XSTATE_SIZE instead of just 0 on input and
9505 X86_XSTATE_MAX_SIZE on output.
9506 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9509 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9512 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9513 function type, particularly its SIZE parameter.
9514 * gdbarch.h: Regenerate.
9515 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9516 actual against required size using ">=" instead of "==".
9517 (amd64_collect_fpregset): Likewise.
9518 * i386-tdep.c (i386_supply_gregset): Likewise.
9519 (i386_collect_gregset): Likewise.
9520 (i386_supply_fpregset): Likewise.
9521 (i386_collect_fpregset): Likewise.
9522 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9523 (mips_fill_gregset_wrapper): Likewise.
9524 (mips_supply_fpregset_wrapper): Likewise.
9525 (mips_fill_fpregset_wrapper): Likewise.
9526 (mips64_supply_gregset_wrapper): Likewise.
9527 (mips64_fill_gregset_wrapper): Likewise.
9528 (mips64_supply_fpregset_wrapper): Likewise.
9529 (mips64_fill_fpregset_wrapper): Likewise.
9530 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9531 (am33_supply_fpregset_method): Likewise.
9532 (am33_collect_gregset_method): Likewise.
9533 (am33_collect_fpregset_method): Likewise.
9535 2015-02-04 Doug Evans <dje@google.com>
9536 Pedro Alves <palves@redhat.com>
9537 Eli Zaretskii <eliz@gnu.org>
9540 * tui/tui-command.c (tui_refresh_cmd_win): New function.
9541 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9542 * tui/tui-file.c: #include tui/tui-command.h.
9543 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9544 (tui_file_flush): Refresh command window if stream is gdb_stdout.
9545 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9547 2015-02-04 Pedro Alves <palves@redhat.com>
9550 * event-loop.c (gdb_do_one_event): Add default switch case.
9552 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9554 Filter out inferior gcc option -fpreprocessed.
9555 * compile/compile.c (filter_args): New function.
9558 2015-02-03 Pedro Alves <palves@redhat.com>
9560 * event-loop.c: Don't declare nor define a queue type for
9562 (event_queue): Delete.
9563 (create_event, create_file_event, gdb_event_xfree)
9564 (initialize_event_loop, process_event): Delete.
9565 (gdb_do_one_event): Return as soon as one event is handled.
9566 (handle_file_event): Change prototype. Used the passed in
9567 file_handler pointer and ready_mask instead of looping over all
9569 (gdb_wait_for_event): Update the poll/select timeouts before
9570 blocking. Run event handlers directly instead of queueing events.
9571 Return as soon as one event is handled.
9572 (struct async_event_handler_data): Delete.
9573 (invoke_async_event_handler): Delete.
9574 (check_async_event_handlers): Change return type to int. Run
9575 event handlers directly instead of queueing events. Return as
9576 soon as one event is handled.
9577 (handle_timer_event): Delete.
9578 (update_wait_timeout): New function, factored out from
9580 (poll_timers): Reimplement.
9581 * event-loop.h (initialize_event_loop): Delete declaration.
9582 * top.c (gdb_init): Don't call initialize_event_loop.
9584 2015-02-03 Pedro Alves <palves@redhat.com>
9586 * event-loop.c (clear_async_event_handler): New function.
9587 * event-loop.h (clear_async_event_handler): New declaration.
9588 * record-btrace.c (record_btrace_async): New function.
9589 (init_record_btrace_ops): Install record_btrace_async.
9590 * record-full.c (record_full_async): New function.
9591 (record_full_resume): Don't mark the async event source here.
9592 (init_record_full_ops): Install record_full_async.
9593 (record_full_core_resume): Don't mark the async event source here.
9594 (init_record_full_core_ops): Install record_full_async.
9595 * remote.c (remote_async): Mark and clear the async stop reply
9596 queue event-loop token as appropriate.
9598 2015-02-03 Pedro Alves <palves@redhat.com>
9600 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9601 target_is_async_p instead of target_can_async.
9602 (linux_nat_wait): Use target_is_async_p instead of
9603 target_can_async. Don't enable async here.
9604 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9605 target_is_async_p instead of target_can_async.
9607 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
9609 * varobj.h (lang_varobj_ops): Mention which return values need
9612 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9614 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9616 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9619 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9620 results found in the cache.
9622 2015-02-02 Joel Brobecker <brobecker@adacore.com>
9625 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9626 when allocating a new one.
9628 2015-02-01 Tom Tromey <tom@tromey.com>
9630 * MAINTAINERS: Remove myself.
9632 2015-01-31 Doug Evans <xdje42@gmail.com>
9634 * dwarf2read.c (process_structure_scope): Update setting of
9635 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9636 * gdbtypes.c (internal_type_vptr_fieldno): New function.
9637 (set_type_vptr_fieldno): New function.
9638 (internal_type_vptr_basetype): New function.
9639 (set_type_vptr_basetype): New function.
9640 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9642 (allocate_cplus_struct_type): Initialize vptr_fieldno.
9643 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9644 (print_cplus_stuff): ... moved here.
9645 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9646 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9648 (struct cplus_struct_type): ... here. All uses updated.
9649 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9650 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9651 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9652 * stabsread.c (read_tilde_fields): Update setting of
9653 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9655 2015-01-31 Doug Evans <xdje42@gmail.com>
9657 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9659 (cp_print_class_member): Rename local domain to self_type.
9660 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9661 domain_type to self_type.
9662 (set_die_type) <need_gnat_info>: Handle
9663 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9664 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9665 TYPE_SPECIFIC_SELF_TYPE.
9666 * gdbtypes.c (internal_type_self_type): New function.
9667 (set_type_self_type): New function.
9668 (smash_to_memberptr_type): Rename parameter domain to self_type.
9669 Update setting of TYPE_SELF_TYPE.
9670 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9671 (smash_to_method_type): Rename parameter domain to self_type.
9672 Update setting of TYPE_SELF_TYPE.
9673 (check_stub_method): Call smash_to_method_type.
9674 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9675 (copy_type_recursive): Ditto.
9676 * gdbtypes.h (enum type_specific_kind): New value
9677 TYPE_SPECIFIC_SELF_TYPE.
9678 (struct main_type) <type_specific>: New member self_type.
9679 (struct cplus_struct_type) <fn_field.type>: Update comment.
9680 (TYPE_SELF_TYPE): Rewrite.
9681 (internal_type_self_type, set_type_self_type): Declare.
9682 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9684 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9685 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9687 * stabsread.c (read_member_functions): Mark methods with
9688 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
9691 2015-01-31 Doug Evans <xdje42@gmail.com>
9693 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9696 2015-01-31 Doug Evans <xdje42@gmail.com>
9698 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9699 or unions. Return zero if union.
9700 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
9701 (gnuv3_rtti_type): Pass already-check_typedef'd value to
9703 (compute_vtable_size): Assert only passed structs.
9704 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9706 2015-01-31 Doug Evans <xdje42@gmail.com>
9708 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9711 2015-01-31 Gary Benson <gbenson@redhat.com>
9712 Doug Evans <dje@google.com>
9717 * cli/cli-cmds.c (complete_command): Notify user if max-completions
9719 * common/common-exceptions.h (enum errors)
9720 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9721 * completer.h (get_max_completions_reached_message): New declaration.
9722 (max_completions): Likewise.
9723 (completion_tracker_t): New typedef.
9724 (new_completion_tracker): New declaration.
9725 (make_cleanup_free_completion_tracker): Likewise.
9726 (maybe_add_completion_enum): New enum.
9727 (maybe_add_completion): New declaration.
9728 (throw_max_completions_reached_error): Likewise.
9729 * completer.c (max_completions): New global variable.
9730 (new_completion_tracker): New function.
9731 (free_completion_tracker): Likewise.
9732 (make_cleanup_free_completion_tracker): Likewise.
9733 (maybe_add_completions): Likewise.
9734 (throw_max_completions_reached_error): Likewise.
9735 (complete_line): Remove duplicates and limit result to max_completions
9737 (get_max_completions_reached_message): New function.
9738 (gdb_display_match_list): Handle max_completions.
9739 (_initialize_completer): New declaration and function.
9740 * symtab.c: Include completer.h.
9741 (completion_tracker): New static variable.
9742 (completion_list_add_name): Call maybe_add_completion.
9743 (default_make_symbol_completion_list_break_on_1): Renamed from
9744 default_make_symbol_completion_list_break_on. Maintain
9745 completion_tracker across calls to completion_list_add_name.
9746 (default_make_symbol_completion_list_break_on): New function.
9747 * top.c (init_main): Set rl_completion_display_matches_hook.
9748 * tui/tui-io.c: Include completer.h.
9749 (tui_old_rl_display_matches_hook): New static global.
9750 (tui_rl_display_match_list): Notify user if max-completions reached.
9751 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9752 * NEWS (New Options): Mention set/show max-completions.
9754 2015-01-31 Gary Benson <gbenson@redhat.com>
9756 * symtab.c (struct add_name_data) <code>: New field.
9758 (add_symtab_completions): New function.
9759 (symtab_expansion_callback): Likewise.
9760 (default_make_symbol_completion_list_break_on): Set datum.code.
9761 Move minimal symbol scan before calling expand_symtabs_matching.
9762 Scan known primary symtabs for externs and statics before calling
9763 expand_symtabs_matching. Pass symtab_expansion_callback as
9764 expansion_notify argument to expand_symtabs_matching. Do not scan
9765 primary symtabs for externs and statics after calling
9766 expand_symtabs_matching.
9768 2015-01-31 Gary Benson <gbenson@redhat.com>
9770 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9771 (struct quick_symbol_functions) <expand_symtabs_matching>:
9772 New argument expansion_notify. All uses updated.
9773 (expand_symtabs_matching): New argument expansion_notify.
9775 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9776 Also print expansion notify.
9777 * symtab.c (expand_symtabs_matching_via_partial): Call
9778 expansion_notify whenever a partial symbol table is expanded.
9779 * dwarf2read.c (dw2_expand_symtabs_matching): Call
9780 expansion_notify whenever a symbol table is instantiated.
9782 2015-01-31 Doug Evans <xdje42@gmail.com>
9784 * cli-out.c: #include completer.h, readline/readline.h.
9785 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9786 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9787 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9788 * cli-out.h (cli_display_match_list): Declare.
9789 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9790 (ELLIPSIS_LEN): Ditto.
9791 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9792 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9793 (gdb_fnprint, gdb_print_filename): Ditto.
9794 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9795 (gdb_display_match_list): Ditto.
9796 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9797 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9798 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9799 (match_list_displayer): New struct.
9800 (gdb_display_match_list): Declare.
9801 * top.c (init_main): Set rl_completion_display_matches_hook.
9802 * tui/tui-io.c: #include completer.h.
9803 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9804 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9805 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9806 (tui_mld_getc, tui_mld_read_key): Ditto.
9807 (tui_rl_display_match_list): Rewrite.
9808 (tui_handle_resize_during_io): New arg for_completion. All callers
9811 2015-01-31 Doug Evans <xdje42@gmail.com>
9813 Add symbol lookup cache.
9814 * NEWS: Document new options and commands.
9815 * symtab.c (symbol_cache_key): New static global.
9816 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9817 (SYMBOL_LOOKUP_FAILED): New macro.
9818 (symbol_cache_slot_state): New enum.
9819 (block_symbol_cache): New struct.
9820 (symbol_cache): New struct.
9821 (new_symbol_cache_size, symbol_cache_size): New static globals.
9822 (hash_symbol_entry, eq_symbol_entry): New functions.
9823 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9824 (make_symbol_cache, free_symbol_cache): New functions.
9825 (get_symbol_cache, symbol_cache_cleanup): New function.
9826 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9827 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9828 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9829 (symbol_cache_flush, symbol_cache_dump): New functions.
9830 (maintenance_print_symbol_cache): New function.
9831 (maintenance_flush_symbol_cache): New function.
9832 (symbol_cache_stats): New function.
9833 (maintenance_print_symbol_cache_statistics): New function.
9834 (symtab_new_objfile_observer): New function.
9835 (symtab_free_objfile_observer): New function.
9836 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9837 (_initialize_symtab): Init symbol_cache_key. New parameter
9838 maint symbol-cache-size. New maint commands print symbol-cache,
9839 print symbol-cache-statistics, flush-symbol-cache.
9840 Install new_objfile, free_objfile observers.
9842 2015-01-31 Joel Brobecker <brobecker@adacore.com>
9845 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9848 2015-01-31 Doug Evans <xdje42@gmail.com>
9850 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9851 * auto-load.c: #include ctype.h.
9852 (struct auto_load_pspace_info): Replace member loaded_scripts with
9853 new members loaded_script_files, loaded_script_texts.
9854 (auto_load_pspace_data_cleanup): Update.
9855 (init_loaded_scripts_info): Update.
9856 (get_auto_load_pspace_data_for_loading): Update.
9857 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9859 (maybe_add_script_text): New function.
9860 (clear_section_scripts): Update.
9861 (source_script_file, execute_script_contents): New functions.
9862 (source_section_scripts): Add support for
9863 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9864 (print_scripts): New function.
9865 (auto_load_info_scripts): Also print inlined scripts.
9866 (maybe_print_unsupported_script_warning): Renamed from
9867 unsupported_script_warning_print. All callers updated.
9868 (maybe_print_script_not_found_warning): Renamed from
9869 script_not_found_warning_print. All callers updated.
9870 * extension-priv.h (struct extension_language_script_ops): New member
9871 objfile_script_executor.
9872 * extension.c (ext_lang_objfile_script_executor): New function.
9873 * extension.h (objfile_script_executor_func): New typedef.
9874 (ext_lang_objfile_script_executor): Declare.
9875 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9876 * guile/guile.c (guile_extension_script_ops): Update.
9877 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9878 * python/python.c (python_extension_script_ops): Update.
9879 (gdbpy_execute_objfile_script): New function.
9881 2015-01-31 Eli Zaretskii <eliz@gnu.org>
9883 * tui/tui-io.c (tui_expand_tabs): New function.
9884 (tui_puts, tui_redisplay_readline): Expand TABs into the
9885 appropriate number of spaces.
9886 * tui/tui-regs.c: Include tui-io.h.
9887 (tui_register_format): Call tui_expand_tabs to expand TABs into
9888 the appropriate number of spaces.
9889 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9891 2015-01-30 Doug Evans <dje@google.com>
9893 * NEWS: "info source" command now display producer string if present.
9894 * source.c (source_info): Print producer string if present.
9896 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9898 * varobj.c (varobj_delete): Fix comment.
9900 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9902 * varobj.c (create_child): Modify comment.
9904 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9906 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9908 (ada_name_of_variable): Same.
9909 (ada_path_expr_of_child): Same.
9910 (ada_value_of_variable): Same.
9911 (ada_value_is_changeable_p): Same.
9912 (ada_value_has_mutated): Same.
9913 * c-varobj.c (varobj_is_anonymous_child): Same.
9914 (c_is_path_expr_parent): Same.
9915 (c_number_of_children): Same.
9916 (c_name_of_variable): Same.
9917 (c_path_expr_of_child): Same.
9919 (c_value_of_variable): Same.
9920 (cplus_number_of_children): Same.
9921 (cplus_name_of_variable): Same.
9922 (cplus_path_expr_of_child): Same.
9923 (cplus_value_of_variable): Same.
9924 * jv-varobj.c (java_number_of_children): Same.
9925 (java_name_of_variable): Same.
9926 (java_path_expr_of_child): Same.
9927 (java_value_of_variable): Same.
9928 * varobj.c (number_of_children): Same.
9929 (name_of_variable): Same.
9931 (varobj_ensure_python_env): Same.
9932 (varobj_get_objname): Same.
9933 (varobj_get_expression): Same.
9934 (varobj_get_display_format): Same.
9935 (varobj_get_display_hint): Same.
9936 (varobj_has_more): Same.
9937 (varobj_get_thread_id): Same.
9938 (varobj_get_frozen): Same.
9939 (dynamic_varobj_has_child_method): Same.
9940 (varobj_get_gdb_type): Same.
9941 (is_path_expr_parent): Same.
9942 (varobj_default_is_path_expr_parent): Same.
9943 (varobj_get_language): Same.
9944 (varobj_get_attributes): Same.
9945 (varobj_is_dynamic_p): Same.
9946 (varobj_get_child_range): Same.
9947 (varobj_value_has_mutated): Same.
9948 (varobj_get_value_type): Same.
9949 (number_of_children): Same.
9950 (name_of_variable): Same.
9951 (check_scope): Same.
9952 (varobj_editable_p): Same.
9953 (varobj_value_is_changeable_p): Same.
9954 (varobj_floating_p): Same.
9955 (varobj_default_value_is_changeable_p): Same.
9957 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9959 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9960 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9962 (cplus_path_expr_of_child): Same.
9964 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9966 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9968 (mi_cmd_var_info_expression): Same.
9969 * varobj.c (varobj_get_expression): Mention in the comment that
9970 the result must by freed by the caller.
9972 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9974 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9976 (varobj_update_one): Same.
9977 * varobj.c (update_type_if_necessary): Free curr_type_str and
9979 (varobj_get_type): Specify in comment that the result needs to be
9980 freed by the caller.
9982 2015-01-29 Doug Evans <dje@google.com>
9985 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9987 2015-01-25 Mark Wielaard <mjw@redhat.com>
9989 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9990 * utils.c (producer_is_gcc_ge_4): Likewise.
9991 (producer_is_gcc): New function.
9992 * utils.h (producer_is_gcc): New declaration.
9994 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9996 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9998 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9999 parameter by "addr_stack" parameter.
10000 (resolve_dynamic_range): Replace "addr" parameter by
10001 "stack_addr" parameter. Update function documentation.
10002 Update code accordingly.
10003 (resolve_dynamic_array, resolve_dynamic_union)
10004 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
10005 (resolve_dynamic_type): Update code, following the changes made
10006 to resolve_dynamic_type_internal's interface.
10007 * dwarf2loc.h (struct property_addr_info): New.
10008 (dwarf2_evaluate_property): Replace "address" parameter
10009 by "addr_stack" parameter. Adjust function documentation.
10010 (struct dwarf2_offset_baton): New.
10011 (struct dwarf2_property_baton): Update documentation of
10012 field "referenced_type" to be more general. New field
10013 "offset_info" in union data field.
10014 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
10015 parameter by "addr_stack" parameter. Adjust code accordingly.
10016 Add support for PROP_ADDR_OFFSET properties.
10017 * dwarf2read.c (attr_to_dynamic_prop): Add support for
10018 DW_AT_data_member_location attributes as well. Use case
10019 statements instead of if/else condition.
10021 2015-01-29 Joel Brobecker <brobecker@adacore.com>
10023 * ada-varobj.c (ada_varobj_get_array_number_of_children):
10024 Return zero if PARENT_VALUE is NULL and parent_type's
10025 range type is dynamic.
10027 2015-01-29 Joel Brobecker <brobecker@adacore.com>
10029 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
10030 nonzero if the type's subtype is dynamic.
10031 (resolve_dynamic_range): Also resolve the range's subtype.
10033 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
10035 Pushed by Joel Brobecker <brobecker@adacore.com>.
10036 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
10038 2015-01-27 Doug Evans <dje@google.com>
10040 * NEWS: Mention gdb.Objfile.username.
10041 * python/py-objfile.c (objfpy_get_username): New function.
10042 (objfile_getset): Add "username".
10044 2015-01-24 Mark Wielaard <mjw@redhat.com>
10046 * stack.c (return_command): Markup warning message with _.
10048 2015-01-24 Doug Evans <xdje42@gmail.com>
10050 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
10052 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10054 Fix 100x slowdown regression on DWZ files.
10055 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
10056 (struct line_header): Add offset and offset_in_dwz.
10057 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
10058 (free_line_header_voidp): New declaration.
10059 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
10061 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
10062 (handle_DW_AT_stmt_list): Use line_header_hash.
10063 (free_line_header_voidp): New function.
10064 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
10065 (dwarf_decode_lines): New parameter decode_mapping, use it.
10066 (dwarf2_free_objfile): Free line_header_hash.
10068 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
10071 * valops.c (value_rtti_indirect_type): Catch exception thrown by
10074 2015-01-15 Mark Wielaard <mjw@redhat.com>
10076 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
10078 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
10079 calling_convention an 8 bit bit field.
10080 (TYPE_NO_RETURN): New macro.
10081 * infcmd.c (finish_command): Query if function does not return
10083 * stack.c (return_command): Likewise.
10085 2015-01-23 Pedro Alves <palves@redhat.com>
10087 * linux-nat.c (linux_is_async_p): New macro.
10088 (linux_nat_is_async_p):
10089 (linux_nat_terminal_inferior): Check whether the target can async
10090 instead of whether it is already async.
10091 (linux_nat_terminal_ours): Don't check whether the target is
10093 (linux_async_pipe): Use linux_is_async_p.
10095 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10097 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
10099 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
10100 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
10101 Sort tp_array using tp_array_compar.
10102 (_initialize_thread): Extend thread_apply_all_command help.
10104 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10106 * corelow.c (core_open): Call also thread_command.
10107 * gdbthread.h (thread_command): New prototype moved from ...
10108 * thread.c (thread_command): ... here.
10109 (thread_command): Make it global.
10111 2015-01-22 Pedro Alves <palves@redhat.com>
10113 * configure.ac [*mingw32*]: Check $curses_found instead of
10115 * configure: Regenerate.
10116 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
10117 HAVE_NCURSES_NCURSES_H checks.
10119 2015-01-22 Eli Zaretskii <eliz@gnu.org>
10121 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
10122 fails with the 1st arg NULL, try again with "unknown". Don't test
10123 the "cup" capability: it isn't supported by the Windows port of
10124 ncurses, but the Windows console driver is still capable of
10127 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10129 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
10131 2015-01-22 Eli Zaretskii <eliz@gnu.org>
10133 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
10134 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
10135 reason that "make TAGS" is broken.
10137 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10139 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
10140 and check additional store instructions.
10142 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
10144 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
10146 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
10148 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
10149 ppc_canonicalize_syscall, ppc_linux_syscall_record,
10150 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
10151 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10152 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
10153 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
10154 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
10155 ppc_process_record_op19, ppc_process_record_op31,
10156 ppc_process_record_op59, ppc_process_record_op60,
10157 ppc_process_record_op63): Likewise.
10159 2015-01-20 Joel Brobecker <brobecker@adacore.com>
10161 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
10162 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
10165 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
10167 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
10168 ppc_process_record_op31, ppc_process_record_op59,
10169 ppc_process_record_op60, ppc_process_record_op63,
10170 ppc_process_record): Fix -Wformat warning.
10171 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
10172 Remove unused variables.
10174 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
10176 * MAINTAINERS (Write After Approval): Add "Chen Gang".
10178 2015-01-19 Eli Zaretskii <eliz@gnu.org>
10180 * configure.ac [*mingw32*]: Only add windows-termcap.o to
10181 CONFIG_OBS if not building with a curses library.
10182 * configure: Regenerate.
10184 * windows-termcap.c: Include defs.h. Make the whole body empty if
10185 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
10186 HAVE_NCURSES_NCURSES_H is defined.
10188 2015-01-19 Joel Brobecker <brobecker@adacore.com>
10190 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
10191 from end of line to start of next line.
10193 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10195 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
10196 Scan PLT stub backward for reverse debugging.
10197 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10199 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10200 Ulrich Weigand <uweigand@de.ibm.com>
10202 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
10204 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
10206 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
10207 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
10208 (ppc_linux_init_abi): Set process_record, process_record_signal.
10209 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
10210 ppc_linux_record_tdep to gdbarch_tdep.
10211 (ppc_process_record): New declaration.
10212 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
10213 ppc_process_record_op19, ppc_process_record_op31,
10214 ppc_process_record_op59, ppc_process_record_op60,
10215 ppc_process_record_op63, ppc_process_record): New functions.
10217 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
10219 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
10220 rs6000_in_function_epilogue_frame_p and add an argument
10222 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
10223 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
10225 (rs6000_epilogue_frame_unwind): New.
10226 (rs6000_gdbarch_init): Append epilogue unwinder.
10228 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10230 * nat/linux-personality.c: Replace "#ifndef
10231 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
10232 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
10235 2015-01-16 Eli Zaretskii <eliz@gnu.org>
10237 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
10239 (_initialize_tui_win) <border-kind, border-mode>:
10240 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
10241 (tui_set_tab_width_command): Fix the commentary.
10243 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
10245 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
10247 (tui_set_tab_width_command): Delete and recreate the source and
10248 the disassembly windows, to show the effect of the changed tab
10251 * tui/tui-data.h (LINE_PREFIX): Make shorter
10252 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10253 "Thread NNNNN.XXXX" thread ID notation on Windows.
10255 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10257 Fix gcc-5 compilation.
10258 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10260 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10262 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10263 (linux-personality.o): New rule.
10264 * common/common-defs.h: Include <stdint.h>.
10265 * config/aarch64/linux.mh (NATDEPFILES): Include
10266 linux-personality.o.
10267 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10268 * config/arm/linux.mh (NATDEPFILES): Likewise.
10269 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10270 * config/i386/linux.mh (NATDEPFILES): Likewise.
10271 * config/ia64/linux.mh (NATDEPFILES): Likewise.
10272 * config/m32r/linux.mh (NATDEPFILES): Likewise.
10273 * config/m68k/linux.mh (NATDEPFILES): Likewise.
10274 * config/mips/linux.mh (NATDEPFILES): Likewise.
10275 * config/pa/linux.mh (NATDEPFILES): Likewise.
10276 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10277 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10278 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10279 * config/s390/linux.mh (NATDEPFILES): Likewise.
10280 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10281 * config/sparc/linux.mh (NATDEPFILES): Likewise.
10282 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10283 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10284 * defs.h: Remove #include <stdint.h> (moved to
10285 common/common-defs.h).
10286 * linux-nat.c: Include nat/linux-personality.h. Remove #include
10287 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10288 nat/linux-personality.c).
10289 (linux_nat_create_inferior): Remove code to disable address space
10290 randomization (moved to nat/linux-personality.c). Create cleanup
10291 to disable address space randomization.
10292 * nat/linux-personality.c: New file.
10293 * nat/linux-personality.h: Likewise.
10295 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10297 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10298 common/posix-strerror.c.
10299 (posix-strerror.o): New rule.
10300 (mingw-strerror.o): Likewise.
10301 * common/common-utils.h (safe_strerror): Move prototype to here,
10303 * common/common.host: New file.
10304 * common/mingw-strerror.c: Likewise.
10305 * common/posix-strerror.c: Likewise.
10306 * configure: Regenerated.
10307 * configure.ac: Source common/common.host. Add variable
10308 common_host_obs to gdb_host_obs.
10309 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10310 gdb/common/posix-strerror.c when warning about the use of
10312 * mingw-hdep.c (safe_strerror): Remove definition; move it to
10313 common/mingw-strerror.c.
10314 * posix-hdep.c (safe_strerror): Remove definition; move it to
10315 common/posix-hdep.c.
10316 * utils.h (safe_strerror): Remove prototype; move to
10317 common/common-utils.h.
10319 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10321 GDB 7.8.2 released.
10323 2015-01-15 Joel Brobecker <brobecker@adacore.com>
10325 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10326 ___XA type if the array has already been fixed.
10328 2015-01-14 Yao Qi <yao@codesourcery.com>
10330 * Makefile.in (ppc-linux.o): New rule.
10331 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10332 * configure.ac: AC_CHECK_FUNCS(getauxval).
10333 * config.in: Re-generated.
10334 * configure: Re-generated.
10335 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10337 * nat/ppc-linux.c: New file.
10338 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10339 Call ppc64_64bit_inferior_p.
10341 2015-01-14 Yao Qi <yao@codesourcery.com>
10343 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10345 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10346 (PPC_FEATURE_HAS_DFP): Likewise.
10347 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10348 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10349 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10350 Include "nat/ppc-linux.h".
10351 * nat/ppc-linux.h: New file.
10352 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10354 2015-01-14 Pedro Alves <palves@redhat.com>
10357 * breakpoint.c: Include "interps.h".
10358 (bpstat_do_actions_1): Also check whether the interpreter is
10361 2015-01-14 Pedro Alves <palves@redhat.com>
10364 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10365 reinstall if the interpreter is sync.
10367 2015-01-13 Doug Evans <dje@google.com>
10369 * objfiles.c (objfile_filename): New function.
10370 * objfiles.h (objfile_filename): Declare it.
10371 (objfile_name): Add function comment.
10372 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10373 bfd file name (which may be realpath'd), and the original name.
10375 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10377 * NEWS: Create a new section for the next release branch.
10378 Rename the section of the current branch, now that it has
10381 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10383 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10384 * version.in: Bump version to 7.9.50.DATE-cvs.
10386 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10388 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10389 Remove trailing new-line in argument of call to warning.
10391 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10393 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10394 new-line in argument of call to "warning".
10396 2015-01-13 Joel Brobecker <brobecker@adacore.com>
10398 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10399 in static block, then try searching for primitive types.
10401 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
10403 * top.h (gdb_add_history): Declare.
10404 * top.c (command_count): New variable.
10405 (gdb_add_history): New function.
10406 (gdb_safe_append_history): New static function.
10407 (quit_force): Call it.
10408 (command_line_input): Use gdb_add_history instead of
10410 * event-top.c (command_line_handler): Likewise.
10412 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
10415 * darwin-nat.c: Replace <machine/setjmp.h> #include by
10416 <setjmp.h> #include.
10418 2015-01-11 Doug Evans <xdje42@gmail.com>
10420 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10422 2015-01-11 Doug Evans <xdje42@gmail.com>
10425 * NEWS: The "maint demangle" command is renamed as "demangle".
10426 * demangle.c: #include cli/cli-utils.h, language.h.
10427 (demangle_command): New function.
10428 (_initialize_demangle): Add new command "demangle".
10429 * maint.c (maintenance_demangle): Stub out.
10430 (_initialize_maint_cmds): Update help text for "maint demangle",
10431 and mark as deprecated.
10433 2015-01-11 Mark Kettenis <kettenis@gnu.org>
10435 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10436 inferior_thread is a function.
10438 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10440 * Makefile.in (.y.c): Don't munge yacc's #line
10443 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10445 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10446 to prompt for input.
10447 * tui/tui-hooks.c (tui_query_hook): Remove.
10448 (tui_install_hooks): Don't set deprecated_query_hook.
10449 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10450 height calculation. Always update the command window's cur_line.
10452 2015-01-09 Pedro Alves <palves@redhat.com>
10454 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10456 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10458 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10459 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10461 (check_stopped_by_watchpoint): New function.
10462 (save_sigtrap): Reimplement.
10463 (linux_nat_stopped_by_watchpoint): Adjust.
10464 (linux_nat_lp_status_is_event): Delete.
10465 (stop_wait_callback): Only call save_sigtrap after storing the
10467 (status_callback): If the thread had been stopped for a breakpoint
10468 that has since been removed, discard the event and resume the LWP.
10469 (count_events_callback, select_event_lwp_callback): Use
10470 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10471 (cancel_breakpoint): Rename to ...
10472 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10473 stopped for a software breakpoint or hardware breakpoint.
10474 (select_event_lwp): Only give preference to the stepping LWP in
10475 all-stop mode. Adjust comments.
10476 (stop_and_resume_callback): Remove references to new_pending_p.
10477 (linux_nat_filter_event): Likewise. Leave exit events of the
10478 leader thread pending here. Handle signal short circuiting here.
10479 Only call save_sigtrap after storing the pending waitstatus.
10480 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10481 new_pending. Don't handle leaving events the caller is not
10482 interested in pending here, nor handle signal short-circuiting
10483 here. Also give equal priority to all LWPs that have had events
10484 in non-stop mode. If reporting a software breakpoint event,
10485 unadjust the LWP's PC.
10486 * linux-nat.h (enum lwp_stop_reason): New.
10487 (struct lwp_info) <stop_pc>: New field.
10488 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10489 (struct lwp_info) <stop_reason>: New field.
10490 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10492 2015-01-09 Pedro Alves <palves@redhat.com>
10494 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10495 Set the LWP's 'resumed' flag.
10497 2015-01-09 Pedro Alves <palves@redhat.com>
10499 * linux-nat.c (linux_resume_one_lwp): New function.
10500 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10501 (linux_nat_resume): Use lwp_status_pending_p and
10502 linux_resume_one_lwp.
10503 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10504 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10505 (status_callback, running_callback): Use lwp_status_pending_p.
10506 (lwp_status_pending_p): New function.
10507 (stop_and_resume_callback): Use lwp_status_pending_p.
10508 (linux_nat_filter_event): Use linux_resume_one_lwp.
10509 (linux_nat_wait_1): Always use status_callback to look for an LWP
10510 with a pending status. Use linux_resume_one_lwp.
10511 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10512 linux_resume_one_lwp.
10514 2015-01-09 Pedro Alves <palves@redhat.com>
10516 * breakpoint.c (bp_location_inserted_here_p): New function,
10517 factored out from ...
10518 (breakpoint_inserted_here_p): ... here. Use
10519 ALL_BP_LOCATIONS_AT_ADDR.
10520 (software_breakpoint_inserted_here_p): Use
10521 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10523 2014-01-09 Pedro Alves <palves@redhat.com>
10525 Skip enabling event reporting if the kernel supports
10526 PTRACE_EVENT_CLONE.
10527 * linux-thread-db.c: Include "nat/linux-ptrace.h".
10528 (thread_db_use_events): New function.
10529 (try_thread_db_load_1): Check thread_db_use_events before enabling
10531 (update_thread_state): New function.
10532 (attach_thread): Use it. Check thread_db_use_events before
10533 enabling event reporting.
10534 (thread_db_detach): Check thread_db_use_events before disabling
10536 (find_new_threads_callback): Check thread_db_use_events before
10537 enabling event reporting. Update the thread's state if not using
10538 libthread_db events.
10540 2015-01-09 Pedro Alves <palves@redhat.com>
10542 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10543 about to wait for is > 0.
10544 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10545 the kernel thread ID is -1.
10547 2015-01-09 Pedro Alves <palves@redhat.com>
10549 * linux-nat.c (attach_proc_task_lwp_callback): New function.
10550 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10551 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10552 ptrace option flags.
10553 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10555 * nat/linux-procfs.c: Include <dirent.h>.
10556 (linux_proc_get_int): New parameter "warn". Handle it.
10557 (linux_proc_get_tgid): Adjust.
10558 (linux_proc_get_tracerpid): Rename to ...
10559 (linux_proc_get_tracerpid_nowarn): ... this.
10560 (linux_proc_pid_get_state): New function, factored out from
10561 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
10563 (linux_proc_pid_is_gone): New function.
10564 (linux_proc_pid_is_stopped): Adjust.
10565 (linux_proc_pid_is_zombie_maybe_warn)
10566 (linux_proc_pid_is_zombie_nowarn): New functions.
10567 (linux_proc_pid_is_zombie): Use
10568 linux_proc_pid_is_zombie_maybe_warn.
10569 (linux_proc_attach_tgid_threads): New function.
10570 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10571 (linux_proc_get_tracerpid): Rename to ...
10572 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10573 (linux_proc_pid_is_gone): New declaration.
10574 (linux_proc_pid_is_zombie): Update comment.
10575 (linux_proc_pid_is_zombie_nowarn): New declaration.
10576 (linux_proc_attach_lwp_func): New typedef.
10577 (linux_proc_attach_tgid_threads): New declaration.
10578 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10579 use nowarn functions.
10580 (linux_ptrace_attach_fail_reason_string): Move here from
10581 gdbserver/linux-low.c and rename.
10582 (ptrace_supports_feature): If the current ptrace options are not
10583 known yet, check them now, instead of asserting.
10584 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10587 2015-01-09 Pedro Alves <palves@redhat.com>
10589 * linux-thread-db.c (thread_db_find_new_threads_silently)
10590 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10591 (find_new_threads_once): Print debug output on gdb_stdlog.
10593 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
10594 Pedro Alves <palves@redhat.com>
10596 * compile/compile.c: Include "gdb_wait.h".
10597 (do_rmdir): Check return value, and free 'zap'.
10599 2015-01-08 Pedro Alves <palves@redhat.com>
10600 Yao Qi <yao@codesourcery.com>
10602 * dwarf2loc.c (indirect_pieced_value): Don't call
10603 gdb_sign_extend. Call extract_signed_integer instead.
10604 * utils.c (gdb_sign_extend): Remove.
10605 * utils.h (gdb_sign_extend): Remove declaration.
10607 2015-01-07 Pierre Muller <muller@sourceware.org>
10610 * stabsread.c (define_symbol): Set language for C++ special symbols.
10612 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10614 * inflow.c (initial_gdb_ttystate): Tweak comment.
10616 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10618 * inflow.c (set_initial_gdb_ttystate): Add empty line after
10619 comment documenting function.
10621 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
10623 * terminal.h (set_initial_gdb_ttystate): Declare.
10624 * inflow.c (initial_gdb_ttystate): New static variable.
10625 (set_initial_gdb_ttystate): New setter.
10626 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10627 instead of our current terminal state.
10628 * top.c (gdb_init): Call set_initial_gdb_ttystate.
10630 2015-01-07 Joel Brobecker <brobecker@adacore.com>
10632 * guile/scm-type.c (tyscm_array_1): Add comment.
10633 * python/py-type.c (typy_array_1): Add comment.
10635 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10637 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10638 error if N2 is equal to N1 - 1.
10640 2015-01-06 Joel Brobecker <brobecker@adacore.com>
10642 * python/py-type.c (typy_array_1): Do not raise negative-length
10643 exception if N2 is equal to N1 - 1.
10645 2015-01-03 Doug Evans <xdje42@gmail.com>
10647 * c-exp.y: Whitespace cleanup.
10648 (classify_inner_name): Remove extra ;.
10650 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
10652 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10655 2015-01-02 Doug Evans <dje@google.com>
10657 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10659 2015-01-02 Doug Evans <dje@google.com>
10661 * symtab.h (struct symbol): Fix typo in comment.
10663 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10665 Update year range in copyright notice of all files.
10667 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10669 * top.c (print_gdb_version): Update copyright year to 2015.
10671 2015-01-01 Joel Brobecker <brobecker@adacore.com>
10673 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
10675 For older changes see ChangeLog-2014.
10681 version-control: never