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