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