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