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