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