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