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