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