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