cfd95fb15df7daaf6cc7b99f08d8a9be359b72c5
[binutils-gdb.git] / gdb / ChangeLog
1 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
4 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5 (c_compute_program): Call generate_register_struct after typedefs.
6 * compile/compile-loc2c.c (push, pushf_register_address)
7 (pushf_register): Cast to GCC_UINTPTR.
8 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
9 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
10 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
11 * compile/compile.c (_initialize_compile): Enable warnings for
12 COMPILE_ARGS.
13
14 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 * cli/cli-script.c (execute_control_command): Update
17 eval_compile_command caller.
18 * compile/compile-object-load.c (compile_object_load): Add parameters
19 scope and scope_data. Set them.
20 * compile/compile-object-load.h (struct compile_module): Add fields
21 scope and scope_data.
22 (compile_object_load): Add parameters scope and scope_data.
23 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
24 scope and scope_data.
25 (compile_object_run): Propagate the fields scope and scope_data.
26 * compile/compile.c (compile_file_command, compile_code_command):
27 Update eval_compile_command callers.
28 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
29 * compile/compile.h (eval_compile_command): Add parameter scope_data.
30 * defs.h (struct command_line): Add field scope_data.
31
32 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
33
34 * printcmd.c (struct format_data): Move it to valprint.h.
35 (print_command_parse_format, print_value): New functions from ...
36 (print_command_1): ... here. Call them.
37 * valprint.h (struct format_data): Move it here from printcmd.c.
38 (print_command_parse_format, print_value): New declarations.
39
40 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
41
42 * compile/compile-object-load.c (compile_object_load): Add
43 COMPILE_DEBUG message.
44
45 2015-05-15 Jerome Guitton <guitton@adacore.com>
46
47 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
48 index to get element instead of enum value.
49 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
50 of index to compute length, but enum values to compute bounds.
51 (ada_array_length): Use enum position of index instead of enum value.
52 (pos_atr): Move position computation to...
53 (ada_evaluate_subexp): Use enum values to compute bounds.
54 * gdbtypes.c (discrete_position): ...this new function.
55 * gdbtypes.h (discrete_position): New function declaration.
56 * valprint.c (val_print_array_elements): Call discrete_position
57 to handle array indexed by non-contiguous enumeration types.
58
59 2015-05-15 Jerome Guitton <guitton@adacore.com>
60
61 * ada-lang.c (find_parallel_type_by_descriptive_type):
62 Go through typedefs during lookup.
63 (to_fixed_array_type): Add support for non-bit packed arrays
64 as variable-length fields.
65
66 2015-05-15 Pedro Alves <palves@redhat.com>
67 Simon Marchi <simon.marchi@ericsson.com>
68
69 * event-loop.c (gdb_notifier) <next_file_handler,
70 next_poll_fds_index>: New fields.
71 (get_next_file_handler_to_handle_and_advance): New function.
72 (delete_file_handler): If deleting the next file handler to
73 handle, advance to the next file handler.
74 (gdb_wait_for_event): Bail early if no event fired. Poll file
75 handlers in round-robin fashion.
76
77 2015-05-15 Pedro Alves <palves@redhat.com>
78
79 * linux-tdep.c (linux_find_memory_regions_full): Rename local
80 'private' to 'priv'.
81
82 2015-05-15 Pedro Alves <palves@redhat.com>
83
84 * nat/linux-nat.h: Include "target/waitstatus.h".
85
86 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
87
88 * python/py-unwind.c (struct reg_info): Move out of ...
89 (struct cached_frame_info): ... this scope.
90 (pending_frame_object_type, unwind_info_object_type): Make extern.
91
92 2015-05-15 Joel Brobecker <brobecker@adacore.com>
93
94 * ada-lang.c (ada_value_primitive_packed_val): Make sure
95 accumSize is never negative.
96
97 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
98
99 * tui/tui-command.c: Remove include of <ctype.h>.
100 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
101
102 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
103
104 * dwarf2read.c (die_needs_namespace): Return 1 for
105 DW_TAG_inlined_subroutine.
106
107 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
108
109 * regcache.c (regcache_cpy_no_passthrough): New declaration.
110 (regcache_cpy_no_passthrough): Make it static, add function comment.
111 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
112 (regcache_cpy_no_passthrough): Remove declaration.
113
114 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
115
116 * gdbthread.h (struct thread_control_state): Update comment for
117 proceed_to_finish.
118 * infcall.c (run_inferior_call): Update comment about
119 proceed_to_finish.
120 * infcmd.c (get_return_value): Update comment about stop_registers.
121 (finish_forward): Update comment about proceed_to_finish.
122 * infrun.c (stop_registers): Remove.
123 (clear_proceed_status, normal_stop): Remove stop_registers handling.
124 * infrun.h (stop_registers): Remove.
125
126 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 * infcall.c (struct dummy_frame_context_saver)
129 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
130 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
131 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
132 New.
133 (call_function_by_hand_dummy): Move discard_cleanups of
134 inf_status_cleanup before dummy_frame_push. Call
135 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
136 Use dummy_frame_context_saver_get_regs instead of stop_registers.
137 * infcall.h (struct dummy_frame_context_saver)
138 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
139 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
140 New declarations.
141 * infcmd.c: Include infcall.h.
142 (get_return_value): Add parameter ctx_saver, use it instead of
143 stop_registers.
144 (print_return_value): Add parameter ctx_saver, pass it.
145 (struct finish_command_continuation_args): Add field ctx_saver.
146 (finish_command_continuation): Update print_return_value caller.
147 (finish_command_continuation_free_arg): Free also ctx_saver.
148 (finish_forward): Call dummy_frame_context_saver_setup.
149 * inferior.h (struct dummy_frame_context_saver): New declaration.
150 (get_return_value): Add parameter ctx_saver.
151 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
152 get_return_value caller.
153
154 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
155
156 * dummy-frame.c (struct dummy_frame_dtor_list): New.
157 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
158 (remove_dummy_frame): Process dtor_list.
159 (pop_dummy_frame): Process dtor_list.
160 (register_dummy_frame_dtor): Maintain dtor_list.
161 (find_dummy_frame_dtor): Handle dtor_list.
162 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
163 Update comments.
164
165 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
166
167 * compile/compile-object-run.c (do_module_cleanup): Add parameter
168 registers_valid.
169 (compile_object_run): Update do_module_cleanup caller.
170 * dummy-frame.c: Include infcall.h.
171 (struct dummy_frame): Update dtor comment.
172 (remove_dummy_frame): Call dtor.
173 (pop_dummy_frame): Update dtor caller.
174 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
175 registers_valid.
176
177 2015-05-13 Joel Brobecker <brobecker@adacore.com>
178
179 GDB 7.9.1 released.
180
181 2015-05-13 Joel Brobecker <brobecker@adacore.com>
182
183 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
184 Xmethods now being able to specify a result type to that new
185 sectioin.
186
187 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
188
189 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
190 first before resizing the window.
191 * tui/tui.c (tui_enable): Likewise.
192
193 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
196 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
197 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
198 dummy_dtor parameter.
199 * infcall.h: Include dummy-frame.h.
200 (call_function_by_hand_dummy_dtor_ftype): Remove.
201 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
202 parameter.
203
204 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
205
206 PR gdb/17820
207 * top.c (history_size_setshow_var): Change type to signed.
208 Initialize to -2. Update documentation.
209 (set_readline_history_size): Define.
210 (set_history_size_command): Use it. Remove logic for handling
211 out-of-range sizes.
212 (init_history): Use set_readline_history_size(). Test for a
213 value of -2 instead of 0 when determining whether to set a
214 default history size.
215 (init_main): Decode the argument of the "size" command as a
216 zuinteger_unlimited.
217
218 2015-05-12 Doug Evans <dje@google.com>
219
220 * dwarf2read.c (struct file_entry): Tweak comments.
221 (get_debug_line_section): Tweak comments.
222
223 2015-05-12 Don Breazeal <donb@codesourcery.com>
224
225 * NEWS: Announce fork support in the RSP and support
226 for fork debugging in extended mode.
227
228 2015-05-12 Don Breazeal <donb@codesourcery.com>
229
230 * remote.c (remote_insert_fork_catchpoint): New function.
231 (remote_remove_fork_catchpoint): New function.
232 (remote_insert_vfork_catchpoint): New function.
233 (remote_remove_vfork_catchpoint): New function.
234 (pending_fork_parent_callback): New function.
235 (remove_new_fork_child): New function.
236 (remote_update_thread_list): Call remote_notif_get_pending_events
237 and remove_new_fork_child.
238 (extended_remote_kill): Kill fork child when killing the
239 parent before follow_fork completes.
240 (init_extended_remote_ops): Initialize target vector with
241 new fork catchpoint functions.
242
243 2015-05-12 Don Breazeal <donb@codesourcery.com>
244
245 * remote.c (remove_vfork_event_p): New function.
246 (remote_follow_fork): Add vfork event type to event checking.
247 (remote_parse_stop_reply): New stop reasons "vfork" and
248 "vforkdone" for RSP 'T' Stop Reply Packet.
249
250 2015-05-12 Don Breazeal <donb@codesourcery.com>
251
252 * linux-nat.c (linux_nat_ptrace_options): New function.
253 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
254 Call linux_nat_ptrace_options and use different argument to
255 linux_enable_event_reporting.
256 (_initialize_linux_nat): Delete call to
257 linux_ptrace_set_additional_flags.
258 * nat/linux-ptrace.c (current_ptrace_options): Rename to
259 supported_ptrace_options.
260 (additional_flags): Delete variable.
261 (linux_check_ptrace_features): Use supported_ptrace_options.
262 (linux_test_for_tracesysgood, linux_test_for_tracefork):
263 Likewise, and remove additional_flags check.
264 (linux_enable_event_reporting): Change 'attached' argument to
265 'options'. Use supported_ptrace_options.
266 (ptrace_supports_feature): Change comment. Use
267 supported_ptrace_options.
268 (linux_ptrace_set_additional_flags): Delete function.
269 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
270 Delete function prototype.
271 * remote.c (remote_fork_event_p): New function.
272 (remote_detach_pid): New function.
273 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
274 if doing detach-on-fork.
275 (remote_follow_fork): New function.
276 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
277 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
278 (init_extended_remote_ops): Initialize to_follow_fork.
279
280 2015-05-12 Don Breazeal <donb@codesourcery.com>
281
282 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
283 from static to extern.
284 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
285 * remote.c (anonymous enum): <PACKET_fork_event_feature,
286 * PACKET_vfork_event_feature>: New enumeration constants.
287 (remote_protocol_features): Add table entries for new packets.
288 (remote_query_supported): Add new feature queries to qSupported
289 packet.
290
291 2015-05-12 Gary Benson <gbenson@redhat.com>
292
293 * remote.c (remote_add_inferior): Call exec_file_locate_attach
294 for fake PIDs as well as real ones.
295 (remote_pid_to_exec_file): Send empty annex if PID is fake.
296
297 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
298
299 * NEWS (Python Scripting): Mention the new gdb.Value methods.
300 * python/py-value.c (valpy_reference_value): New function.
301 (valpy_const_value): Likewise.
302 (value_object_methods): Add new methods.
303 * value.c (make_cv_value): New function.
304 * value.h (make_cv_value): Declare.
305
306 2015-05-08 Yao Qi <yao@codesourcery.com>
307 Sandra Loosemore <sandra@codesourcery.com>
308
309 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
310 to 'lh->include_dirs' before accessing to it.
311 (psymtab_include_file_name): Likewise.
312 (dwarf_decode_lines_1): Likewise.
313 (dwarf_decode_lines): Likewise.
314 (file_file_name): Likewise.
315
316 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
317
318 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
319 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
320 (nios2_linux_rt_sigreturn_init): Adjust base address of
321 register save area.
322
323 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
324
325 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
326 "trap 31" as the breakpoint instruction on all targets.
327
328 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
329
330 * infcmd.c (print_return_value): Remove unused declaration.
331
332 2015-05-08 Joel Brobecker <brobecker@adacore.com>
333
334 * dwarf2read.c (attr_to_dynamic_prop)
335 <DW_AT_data_member_location>: Use read_type_die isntead of
336 get_die_type.
337
338 2015-05-08 Joel Brobecker <brobecker@adacore.com>
339
340 * ada-lang.c (ada_convert_actual): Add handling of formals
341 passed inside an aligner type.
342
343 2015-05-08 Joel Brobecker <brobecker@adacore.com>
344
345 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
346
347 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
348
349 PR python/18291
350 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
351 Print xmethod matcher status.
352
353 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
354
355 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
356 register in the regcache when treating the PSWM register, and vice
357 versa.
358
359 2015-05-07 Gary Benson <gbenson@redhat.com>
360
361 * linux-thread-db.c (struct thread_db_info)
362 <td_ta_map_id2thr_p>: Remove field.
363 (try_thread_db_load_1): Remove initialization for the above.
364
365 2015-05-07 Gary Benson <gbenson@redhat.com>
366
367 * linux-thread-db.c (struct thread_db_info)
368 <td_thr_validate_p>: Remove field.
369 (try_thread_db_load_1): Remove initialization for the above.
370
371 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 * compile/compile-object-load.c (compile_object_load): Support
374 mst_text_gnu_ifunc.
375
376 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
377
378 * compile/compile.c (compile_to_object): Make the cmd_string parameter
379 const. Use new variables for the const compatibility.
380 (eval_compile_command): Make the cmd_string parameter const.
381 * compile/compile.h (eval_compile_command): Make the cmd_string
382 parameter const.
383
384 2015-05-06 Joel Brobecker <brobecker@adacore.com>
385
386 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
387 comment.
388 * top.c (deprecated_init_ui_hook): Delete.
389 (gdb_init): Remove handling of deprecated_init_ui_hook.
390 * interps.c (clear_interpreter_hooks): Remove handling of
391 deprecated_init_ui_hook.
392 * main.c (captured_main): Update comment.
393
394 2015-05-06 Joel Brobecker <brobecker@adacore.com>
395
396 * solib.c (_initialize_solib): Add "info dll" alias creation.
397 * windows-nat.c (set_windows_aliases): Delete.
398 (_initialize_windows_nat): Remove deprecated_init_ui_hook
399 assignment.
400 * NEWS: Add news entry about "info dll" now being available
401 on all platforms.
402
403 2015-05-05 Joel Brobecker <brobecker@adacore.com>
404
405 * ada-lang.c (value_assign_to_component): Reformat and improve
406 documentation. Remove all trailing spaces.
407
408 2015-05-05 Joel Brobecker <brobecker@adacore.com>
409
410 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
411 Stop counting inlined frames as soon as an out-of-line function
412 is found.
413
414 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
415
416 * dwarf2read.c (inherit_abstract_dies): Skip
417 DW_TAG_GNU_call_site dies while inheriting children of an
418 abstract DIE into a scope.
419 (read_lexical_block_scope): Inherit abstract DIE's for
420 lexical scopes.
421
422 2015-05-05 Joel Brobecker <brobecker@adacore.com>
423
424 * ada-valprint.c (val_print_packed_array_elements): Delete
425 variable "len". Add a type-length check when comparing two
426 consecutive elements of the array. Use the element's actual
427 length in call to value_contents_eq.
428 * ada-lang.c (ada_value_primitive_packed_val): Always return
429 a value whose type has been resolved.
430
431 2015-05-05 Joel Brobecker <brobecker@adacore.com>
432
433 * ada-lang.c (ada_value_primitive_packed_val): Recompute
434 BIT_SIZE and LEN if the size of the resolved type is smaller
435 than BIT_SIZE * HOST_CHAR_BIT.
436
437 2015-05-05 Joel Brobecker <brobecker@adacore.com>
438
439 * ada-lang.c (ada_value_primitive_packed_val): Use a more
440 correct address in call to value_at. Adjust call to
441 value_address accordingly.
442
443 2015-05-05 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
446 to print it.
447
448 2015-05-05 Joel Brobecker <brobecker@adacore.com>
449
450 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
451 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
452 pinfo->valaddr.
453 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
454 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
455 (resolve_dynamic_type_internal): Set pinfo.valaddr.
456 Add handling of addr_stack->valaddr.
457 (resolve_dynamic_type): Add "valaddr" parameter.
458 Set pinfo.valaddr field.
459 * ada-lang.c (ada_discrete_type_high_bound): Update call to
460 resolve_dynamic_type.
461 (ada_discrete_type_low_bound): Likewise.
462 * findvar.c (default_read_var_value): Likewise.
463 * value.c (value_from_contents_and_address): Likewise.
464
465 2015-05-05 Joel Brobecker <brobecker@adacore.com>
466
467 * gdbtypes.c (resolve_dynamic_array): Use
468 create_array_type_with_stride instead of create_array_type.
469
470 2015-04-30 DJ Delorie <dj@redhat.com>
471
472 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
473 rl78_decode_opcode
474
475 2015-04-29 Doug Evans <dje@google.com>
476
477 PR python/18285
478 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
479 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
480 EVAL_AVOID_SIDE_EFFECTS for xmethods.
481 * extension-priv.h (struct extension_language_ops)
482 <get_xmethod_result_type>: New member.
483 * extension.c (get_xmethod_result_type): New function.
484 * extension.h (get_xmethod_result_type): Declare.
485 * python/py-xmethods.c (get_result_type_method_name): New static
486 global.
487 (py_get_result_type_method_name): Ditto.
488 (gdbpy_get_xmethod_result_type): New function.
489 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
490 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
491 * python/python.c (python_extension_ops): Add
492 gdbpy_get_xmethod_result_type.
493 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
494 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
495 xmethods.
496 (value_x_unop): Ditto.
497 * value.c (result_type_of_xmethod): New function.
498 * value.h (result_type_of_xmethod): Declare.
499
500 2015-04-29 Gary Benson <gbenson@redhat.com>
501
502 * solib.c (solib_find_1): Allow fd argument to be NULL.
503 (exec_file_find): Update comment.
504 (solib_find): Likewise.
505 * exec.c (exec_file_locate_attach): Use NULL as fd
506 argument to exec_file_find to avoid having to close
507 the opened file.
508 * infrun.c (follow_exec): Likewise.
509
510 2015-04-28 Doug Evans <dje@google.com>
511
512 PR python/18299
513 * python/lib/gdb/printing.py (register_pretty_printer): Handle
514 name or __name__ attributes. Handle gdb module as first argument.
515
516 2015-04-28 Doug Evans <dje@google.com>
517
518 PR python/18089
519 * python/py-prettyprint.c (print_children): Verify result of children
520 iterator. Provide better error message.
521 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
522 * python/python.c (gdbpy_print_python_errors_p): New function.
523
524 2015-04-28 Doug Evans <dje@google.com>
525
526 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
527
528 2015-04-28 Sasha Smundak <asmundak@google.com>
529
530 * NEWS: Mention gdb.Type.optimized_out method.
531 * python/py-type.c (typy_optimized_out): New function.
532
533 2015-04-28 John Baldwin <jhb@FreeBSD.org>
534
535 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
536
537 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
538
539 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
540 (initialize_utils): Move call of init_page_info() to ...
541 * top.c (gdb_init): ... here.
542
543 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
544
545 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
546 (tui_sigwinch_handler): Still update our idea of
547 the terminal's width and height even when TUI is not active.
548
549 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
550
551 * utils.h (set_screen_width_and_height): Declare.
552 * utils.c (set_screen_width_and_height): Define.
553 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
554
555 2015-04-28 Gary Benson <gbenson@redhat.com>
556
557 * infrun.c (solist.h): New include.
558 (follow_exec): Use exec_file_find to prefix execd_pathname
559 with gdb_sysroot.
560
561 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
562
563 * tui/tui-source.c (tui_set_source_content): Avoid calling
564 strcpy() when offset is 0.
565
566 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
567
568 PR gdb/18155
569 * tui/tui-data.c (tui_free_window): Don't free the locator
570 window when passed an SRC_WIN or a DISASSEM_WIN.
571
572 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
573
574 * tui/tui-data.h (struct tui_win_element): Forward-declare.
575 (tui_win_content): Move declaration.
576 (struct tui_gen_win_info): Give 'content' field the
577 type tui_win_content.
578 * tui/tui-data.c (init_content_element): Remove redundant and
579 erroneous casts.
580 (tui_add_content_elements): Remove erroneous cast.
581 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
582 casts.
583 (tui_get_begin_asm_address): Likewise.
584 * tui/tui-regs.c (tui_show_registers): Likewise.
585 (tui_show_register_group): Likewise.
586 (tui_display_registers_from): Likewise.
587 (tui_check_register_values): Likewise.
588 * tui/tui-source.c (tui_set_source_content): Likewise.
589 (tui_set_source_content_nil): Likewise.
590 (tui_source_is_displayed): Likewise.
591 * tui/tui-stack.c (tui_show_locator_content): Likewise.
592 (tui_set_locator_fullname): Likewise.
593 (tui_set_locator_info): Likewise.
594 (tui_show_frame_info): Likewise.
595 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
596 (tui_show_source_line): Likewise.
597 (tui_horizontal_source_scroll): Likewise.
598 (tui_update_breakpoint_info): Likewise.
599 (tui_set_exec_info_content): Likewise.
600 (tui_show_exec_info_content): Likewise.
601 (tui_alloc_source_buffer): Likewise.
602 (tui_line_is_displayed): Likewise.
603 (tui_addr_is_displayed): Likewise.
604
605 2015-04-27 John Baldwin <jhb@FreeBSD.org>
606
607 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
608 event if PL_FLAG_EXEC is set.
609 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
610 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
611 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
612 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
613 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
614
615 2015-04-27 John Baldwin <jhb@FreeBSD.org>
616
617 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
618 [TDP_RFPPWAIT] New variable fbsd_pending_children.
619 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
620 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
621 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
622 [PT_LWPINFO] (fbsd_wait): New function.
623 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
624 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
625 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
626 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
627 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
628 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
629 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
630 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
631 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
632 "fbsd_wait".
633 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
634 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
635 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
636 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
637 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
638 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
639 Set "to_post_attach" to "fbsd_post_attach".
640
641 2015-04-27 John Baldwin <jhb@FreeBSD.org>
642
643 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
644 (fbsd_find_memory_regions): Mark static.
645 (fbsd_nat_add_target): New function.
646 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
647 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
648 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
649 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
650 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
651 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
652
653 2015-04-27 Gary Benson <gbenson@redhat.com>
654
655 * objfiles.c (allocate_objfile): Do not attempt to expand name
656 if name is a "target:" filename.
657 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
658 to load auto-load scripts for objfiles with "target:" filenames.
659
660 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
661
662 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
663 (enum s390_vector_abi_kind): New enum.
664 (struct gdbarch_tdep)<vector_abi>: New field.
665 (s390_effective_inner_type): Add parameter min_size. Stop
666 unwrapping if the inner type is smaller than min_size.
667 (s390_function_arg_float): Adjust call to
668 s390_effective_inner_type.
669 (s390_function_arg_vector): New function.
670 (s390_function_arg_integer): Adjust comment.
671 (struct s390_arg_state)<vr>: New field.
672 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
673 arguments according to vector ABI when appropriate.
674 (s390_push_dummy_call): Initialize the argument state's field
675 'vr'. Adjust calls to s390_handle_arg.
676 (s390_register_return_value): Handle vector return values.
677 (s390_return_value): Apply the "register" return value convention
678 to a vector when appropriate.
679 (s390_gdbarch_init): Initialize tdep->vector_abi.
680 * NEWS: Announce S390 vector ABI support.
681
682 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
683
684 * s390-linux-tdep.c (s390_return_value_convention): Remove
685 function. Inline its logic...
686 (s390_return_value): ...here. Instead, move the handling of the
687 "register" return value convention...
688 (s390_register_return_value): ...here. New function.
689
690 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
691
692 * s390-linux-tdep.c
693 (is_float_singleton): Remove function. Move the "singleton" part
694 of the logic...
695 (s390_effective_inner_type): ...here. New function.
696 (is_float_like): Remove function. Inline its logic...
697 (s390_function_arg_float): ...here.
698 (is_pointer_like, is_integer_like, is_struct_like): Remove
699 functions. Inline their logic...
700 (s390_function_arg_integer): ...here.
701 (s390_function_arg_pass_by_reference): Remove function.
702 (extend_simple_arg): Remove function.
703 (alignment_of): Remove function.
704 (struct s390_arg_state): New structure.
705 (s390_handle_arg): New function.
706 (s390_push_dummy_call): Move parameter placement logic to the new
707 function s390_handle_arg. Call it for calculating the stack area
708 sizes first, and again for actually writing the parameters.
709
710 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
711
712 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
713 false if the argument is zero.
714
715 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
716
717 * ada-lang.c (template_to_static_fixed_type): Return input type
718 when it is already fixed. Cache the input type itself when not
719 creating a static fixed copy. Make it explicit that we never
720 molestate the input type.
721 * gdbtypes.c (resolve_dynamic_struct): Reset the
722 TYPE_TARGET_TYPE field for resolved copies.
723
724 2015-04-27 Joel Brobecker <brobecker@adacore.com>
725
726 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
727 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
728 (template_to_static_fixed_type): Call ada_check_typedef only
729 when necessary.
730
731 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * cli/cli-dump.c (srec_dump_command): Add internationalization
734 mark ups.
735 (ihex_dump_command): Likewise.
736 (tekhex_dump_command): Likewise.
737 (binary_dump_command): Likewise.
738 (binary_append_command): Likewise.
739
740 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
741
742 * cli/cli-dump.c (verilog_cmdlist): New variable.
743 (dump_verilog_memory): New function.
744 (dump_verilog_value): New function.
745 (verilog_dump_command): New function.
746 (_initialize_cli_dump): Add new commands to support verilog dump
747 format.
748 * NEWS: Add entry for "dump verilog".
749
750 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
751
752 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
753 descriptive type when there is none.
754
755 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
756
757 * tui/tui-win.c (tui_async_resize_screen): Call
758 rl_resize_terminal().
759
760 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
761
762 * windows-nat.c (handle_output_debug_string): Don't change
763 current_event.dwThreadId.
764 (get_windows_debug_event): Use thread_id, rather than relying on
765 current_event.dwThreadId being changed.
766
767 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
768
769 * windows-nat.c (windows_continue): Report an error if
770 ContinueDebugEvent() fails.
771
772 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
773
774 * windows-nat.c (windows_resume): Fix misspelling in debug output.
775
776 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
777
778 * windows-nat.c (get_windows_debug_event): Replace retval with
779 thread_id throughout. Update stale comment.
780
781 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
782
783 * windows-nat.c (get_windows_debug_event): Don't use ternary
784 conditional operator.
785
786 2015-04-21 Pierre Muller <muller@sourceware.org>
787
788 PR pascal/17815
789 p-exp.y (yylex): Reorganize code to return the matched pattern
790 for a field of this.
791
792 2015-04-21 Gary Benson <gbenson@redhat.com>
793
794 * common/fileio.h (fileio_to_host_openflags): New declaration.
795 * common/fileio.c (fcntl.h): New include.
796 (fileio_to_host_openflags): New function, factored out from...
797 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
798 Single use updated.
799
800 2015-04-21 Kevin Buettner <kevinb@redhat.com>
801
802 * rl78-tdep.c (RL78_SP_ADDR): Define.
803 (opc_reg_to_gdb_regnum): New static function.
804 (rl78_analyze_prologue): Recognize instructions forming slightly
805 more interesting prologues.
806
807 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
808
809 Revert:
810 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
811 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
812 TYPE_CODE_REF types so that they are not considered as dynamic
813 depending on the referenced type.
814 (resolve_dynamic_type_internal): Likewise.
815
816 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
817
818 Revert:
819 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
820 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
821 "top_level" parameter.
822 (resolve_dynamic_type_internal): Remove the unused "top_level"
823 parameter. Update call to is_dynamic_type_internal.
824 (is_dynamic_type): Update call to is_dynamic_type_internal.
825 (resolve_dynamic_range): Update call to
826 resolve_dynamic_type_internal.
827 (resolve_dynamic_union): Likewise.
828 (resolve_dynamic_struct): Likewise.
829 (resolve_dynamic_type): Likewise.
830
831 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
832
833 * breakpoint.c (update_dprintf_command_list): Remove duplicated
834 xmalloc.
835
836 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
837
838 * reply_mig_hack.awk: Robustify parsing.
839
840 * reply_mig_hack.awk: Don't bother to declare an intermediate
841 function pointer variable.
842
843 2015-04-17 Doug Evans <dje@google.com>
844
845 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
846 to "exec_displacement" to avoid confusion with inner use of the name.
847
848 2015-04-17 Pedro Alves <palves@redhat.com>
849
850 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
851 if HW point of TYPE isn't supported.
852
853 2015-04-17 Yao Qi <yao.qi@linaro.org>
854 Pedro Alves <palves@redhat.com>
855
856 * target.h (target_can_use_hardware_watchpoint): Update comments.
857 Remove trailing ";".
858
859 2015-04-17 Gary Benson <gbenson@redhat.com>
860
861 * remote.c (remote_add_inferior): New argument try_open_exec.
862 If nonzero, attempt to open the inferior's executable file as
863 the main executable if no main executable is open already.
864 All callers updated.
865 * NEWS: Mention that GDB now supports automatic location and
866 retrieval of executable + files from remote targets.
867
868 2015-04-17 Gary Benson <gbenson@redhat.com>
869
870 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
871 * remote.c (PACKET_qXfer_exec_file): Likewise.
872 (remote_protocol_features): Register the
873 "qXfer:exec-file:read" feature.
874 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
875 (remote_pid_to_exec_file): New function.
876 (init_remote_ops): Initialize to_pid_to_exec_file.
877 (_initialize_remote): Register new "set/show remote
878 pid-to-exec-file-packet" command.
879 * NEWS: Announce new qXfer:exec-file:read packet.
880
881 2015-04-17 Gary Benson <gbenson@redhat.com>
882
883 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
884 New declaration.
885 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
886 New function, factored out from...
887 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
888
889 2015-04-17 Gary Benson <gbenson@redhat.com>
890
891 * exec.c (solist.h): New include.
892 (exec_file_locate_attach): Prefix absolute executable
893 paths with gdb_sysroot if set.
894 * NEWS: Mention that executable paths may be prepended
895 with sysroot.
896
897 2015-04-17 Gary Benson <gbenson@redhat.com>
898
899 * solist.h (exec_file_find): New declaration.
900 * solib.c (solib_find_1): New function, factored out from...
901 (solib_find): ...here.
902 (exec_file_find): New function.
903
904 2015-04-17 Gary Benson <gbenson@redhat.com>
905
906 * gdbcore.h (exec_file_locate_attach): New declaration.
907 * exec.c (exec_file_locate_attach): New function, factored
908 out from...
909 * infcmd.c (attach_command_post_wait): ...here.
910
911 2015-04-17 Mike Frysinger <vapier@gentoo.org>
912
913 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
914
915 2015-04-16 Yao Qi <yao.qi@linaro.org>
916
917 * infrun.c (maybe_software_singlestep): Declare.
918 (displaced_step_fixup): Call maybe_software_singlestep.
919
920 2015-04-15 Doug Evans <dje@google.com>
921
922 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
923
924 2015-04-15 Doug Evans <dje@google.com>
925
926 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
927
928 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
929
930 * python/lib/gdb/command/unwinders.py: Add parentheses.
931
932 2015-04-15 Yao Qi <yao.qi@linaro.org>
933
934 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
935
936 2015-04-15 Yao Qi <yao.qi@linaro.org>
937
938 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
939
940 2015-04-15 Yao Qi <yao.qi@linaro.org>
941
942 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
943 dsc->insn_size instead of 4.
944
945 2015-04-14 Gary Benson <gbenson@redhat.com>
946
947 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
948 * minidebug.c (lzma_stat): Likewise.
949 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
950 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
951
952 2015-04-13 Stan Shebs <stanshebs@google.com>
953
954 * MAINTAINERS: Update my email address.
955
956 2015-04-13 John Baldwin <jhb@FreeBSD.org>
957
958 * amd64-tdep.c (amd64_target_description): New function.
959 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
960 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
961 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
962 x86 extended save area.
963 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
964 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
965 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
966 (_initialize_amd64fbsd_nat): Set "to_read_description" to
967 "amd64fbsd_read_description".
968 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
969 (amd64fbsd_supply_xstateregset): New function.
970 (amd64fbsd_collect_xstateregset): New function.
971 Add "amd64fbsd_xstateregset".
972 (amd64fbsd_iterate_over_regset_sections): New function.
973 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
974 "I386_FBSD_XSAVE_XCR0_OFFSET".
975 Add "iterate_over_regset_sections" gdbarch method.
976 Add "core_read_description" gdbarch method.
977 * i386-tdep.c (i386_target_description): New function.
978 * i386-tdep.h: Export i386_target_description and tdesc_i386.
979 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
980 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
981 x86 extended save area.
982 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
983 * i386bsd-nat.h: Export i386bsd_xsave_len.
984 * i386fbsd-nat.c (i386fbsd_read_description): New function.
985 (_initialize_i386fbsd_nat): Set "to_read_description" to
986 "i386fbsd_read_description".
987 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
988 (i386fbsd_core_read_description): New function.
989 (i386fbsd_supply_xstateregset): New function.
990 (i386fbsd_collect_xstateregset): New function.
991 Add "i386fbsd_xstateregset".
992 (i386fbsd_iterate_over_regset_sections): New function.
993 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
994 "I386_FBSD_XSAVE_XCR0_OFFSET".
995 Add "iterate_over_regset_sections" gdbarch method.
996 Add "core_read_description" gdbarch method.
997 * i386fbsd-tdep.h: New file.
998
999 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1000
1001 * NEWS (Changes since GDB 7.9): Add removed -xdb.
1002 * breakpoint.c (command_line_is_silent): Remove xdb_commands
1003 conditional.
1004 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
1005 and lb.
1006 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
1007 va.
1008 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
1009 conditional.
1010 * defs.h (xdb_commands): Remove declaration.
1011 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
1012 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
1013 * infcmd.c (run_no_args_command, go_command): Remove.
1014 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
1015 * infrun.c (xdb_handle_command): Remove.
1016 (_initialize_infrun): Remove xdb_commands for lz and z.
1017 * main.c (xdb_commands): Remove variable.
1018 (captured_main): Remove "xdb" from long_options.
1019 (print_gdb_help): Remove --xdb from help.
1020 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
1021 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
1022 * stack.c (backtrace_full_command, args_plus_locals_info)
1023 (current_frame_command): Remove.
1024 (_initialize_stack): Remove xdb_commands for t, T and l.
1025 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
1026 * thread.c (_initialize_thread): Remove xdb_commands condition.
1027 * tui/tui-layout.c (tui_toggle_layout_command)
1028 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
1029 (_initialize_tui_layout): Remove xdb_commands for td and ts.
1030 * tui/tui-regs.c (tui_scroll_regs_forward_command)
1031 (tui_scroll_regs_backward_command): Remove.
1032 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
1033 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
1034 (_initialize_tui_win): Remove xdb_commands for U and w.
1035 * utils.c (pagination_on_command, pagination_off_command): Remove.
1036 (initialize_utils): Remove xdb_commands for am and sm.
1037
1038 2015-04-10 Pedro Alves <palves@redhat.com>
1039
1040 * infrun.c (displaced_step_fixup): Switch to the event ptid
1041 earlier. If the thread stopped for a watchpoint and the
1042 target/arch has non-continuable watchpoints, cancel the displaced
1043 step.
1044 (resume): Don't start a displaced step if in-line step-over info
1045 is valid.
1046
1047 2015-04-10 Pedro Alves <palves@redhat.com>
1048
1049 * infrun.c (displaced_step_in_progress): New function.
1050 (do_target_resume): Advise target to report all signals if
1051 displaced stepping.
1052
1053 2015-04-10 Pedro Alves <palves@redhat.com>
1054
1055 PR gdb/18216
1056 * infrun.c (process_event_stop_test): Don't assume a step-resume
1057 is set if tp->stepped_breakpoint is true.
1058
1059 2015-04-10 Yao Qi <yao.qi@linaro.org>
1060
1061 * arm-tdep.c (install_alu_reg): Update comment.
1062 (thumb_copy_alu_reg): Remove local variable rn. Update
1063 debugging message. Use r2 instead of r1 in the modified
1064 instruction.
1065
1066 2015-04-10 Pedro Alves <palves@redhat.com>
1067
1068 PR gdb/13858
1069 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
1070 linux_displaced_step_location as gdbarch_displaced_step_location
1071 hook.
1072 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1073 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1074 * linux-tdep.c (linux_displaced_step_location): New function,
1075 based on ppc_linux_displaced_step_location.
1076 * linux-tdep.h (linux_displaced_step_location): New declaration.
1077 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
1078 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
1079 Delete.
1080 (ppc_linux_init_abi): Install linux_displaced_step_location as
1081 gdbarch_displaced_step_location hook, even without Cell/B.E..
1082 (_initialize_ppc_linux_tdep): Don't install
1083 ppc_linux_inferior_created as inferior_created observer.
1084 * s390-linux-tdep.c (s390_gdbarch_init): Install
1085 linux_displaced_step_location as gdbarch_displaced_step_location
1086 hook.
1087
1088 2015-04-09 Gary Benson <gbenson@redhat.com>
1089
1090 * common/common-remote-fileio.h: Rename to...
1091 * common/fileio.h: ...this. Update all references.
1092 (remote_fileio_to_fio_error): Rename to...
1093 (host_to_fileio_error): ...this.
1094 (remote_fileio_to_be): Rename to...
1095 (host_to_bigendian): ...this. Update all callers.
1096 (remote_fileio_to_fio_uint): Rename to...
1097 (host_to_fileio_uint): ...this. Update all callers.
1098 (remote_fileio_to_fio_time): Rename to...
1099 (host_to_fileio_time): ...this. Update all callers.
1100 (remote_fileio_to_fio_stat): Rename to...
1101 (host_to_fileio_stat): ...this.
1102 Update all references.
1103 * common/common-remote-fileio.c: Rename to...
1104 * common/fileio.c: ...this. Update all references.
1105 (remote_fileio_to_fio_error): Rename to...
1106 (host_to_fileio_error): ...this. Update all callers.
1107 (remote_fileio_mode_to_target): Rename to...
1108 (fileio_mode_pack): ...this. Update all callers.
1109 (remote_fileio_to_fio_mode): Rename to...
1110 (host_to_fileio_mode): ...this. Update all callers.
1111 (remote_fileio_to_fio_ulong): Rename to...
1112 (host_to_fileio_ulong): ...this. Update all callers.
1113 (remote_fileio_to_fio_stat): Rename to...
1114 (host_to_fileio_stat): ...this. Update all callers.
1115
1116 2015-04-09 Andy Wingo <wingo@igalia.com>
1117
1118 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
1119 (frame_functions): Bind gdbscm_frame_read_register to
1120 frame-read-register.
1121 * guile/lib/gdb.scm (frame-read-register): Export.
1122
1123 2015-04-09 Gary Benson <gbenson@redhat.com>
1124
1125 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
1126 New declaration.
1127 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
1128 New function, factored out the named functions below.
1129 * inf-child.c (gdb/fileio.h): Remove include.
1130 (common-remote-fileio.h): New include.
1131 (inf_child_errno_to_fileio_error): Remove function. Update
1132 all callers to use remote_fileio_to_fio_error.
1133 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
1134
1135 2015-04-09 Andy Wingo <wingo@igalia.com>
1136
1137 * MAINTAINERS (Write After Approval): Add Andy Wingo.
1138
1139 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1140
1141 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
1142 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
1143 * configure: Regenerated.
1144
1145 2015-04-09 Pedro Alves <palves@redhat.com>
1146
1147 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
1148 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
1149 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
1150 * gnulib/import/Makefile.am: Update.
1151 * gnulib/import/Makefile.in: Update.
1152 * gnulib/import/m4/gnulib-cache.m4: Update.
1153 * gnulib/import/m4/gnulib-comp.m4: Update.
1154 * gnulib/import/m4/strtok_r.m4: New file.
1155 * gnulib/import/strtok_r.c: New file.
1156
1157 2015-04-09 Pedro Alves <palves@redhat.com>
1158
1159 * gnulib/update-gnulib.sh (aclocal version check): Filter out
1160 "called too early to check prototype".
1161
1162 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
1163
1164 PR python/16699
1165 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
1166 use a caching mechanism. Adjust comments and code to reflect
1167 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
1168 (cmdpy_completer_handle_brkchars): Adjust call to
1169 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
1170 (cmdpy_completer): Likewise.
1171
1172 2015-04-08 Yao Qi <yao.qi@linaro.org>
1173
1174 * spu-tdep.c (spu_gdbarch_init): Don't call
1175 set_gdbarch_cannot_step_breakpoint.
1176
1177 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
1178
1179 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
1180
1181 2015-04-07 Pedro Alves <palves@redhat.com>
1182
1183 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
1184 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
1185 (delete_exited_threads): New declaration.
1186 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
1187 * linux-nat.c (linux_nat_update_thread_list): New function.
1188 (linux_nat_add_target): Install it.
1189 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
1190 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
1191 (delete_exited_threads): New function.
1192
1193 2015-04-07 Pedro Alves <pedro@codesourcery.com>
1194
1195 * infrun.c (resume) <displaced stepping debug output>: Get the
1196 leader thread's regcache, not resume_ptid's.
1197
1198 2015-04-06 Doug Evans <xdje42@gmail.com>
1199
1200 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
1201 VAR_DOMAIN.
1202 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
1203 Include symbol domain in debugging output.
1204
1205 2015-04-06 Pedro Alves <palves@redhat.com>
1206 Bernd Edlinger <bernd.edlinger@hotmail.de>
1207
1208 * configure.ac: Remove the mingw32-specific stub-termcap.o
1209 fallback, and instead fallback to the stub termcap on all hosts.
1210 * configure: Regenerate.
1211 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
1212 symbols.
1213
1214 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1215
1216 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1217 "top_level" parameter.
1218 (resolve_dynamic_type_internal): Remove the unused "top_level"
1219 parameter. Update call to is_dynamic_type_internal.
1220 (is_dynamic_type): Update call to is_dynamic_type_internal.
1221 (resolve_dynamic_range): Update call to
1222 resolve_dynamic_type_internal.
1223 (resolve_dynamic_union): Likewise.
1224 (resolve_dynamic_struct): Likewise.
1225 (resolve_dynamic_type): Likewise.
1226
1227 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1228
1229 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1230 TYPE_CODE_REF types so that they are not considered as dynamic
1231 depending on the referenced type.
1232 (resolve_dynamic_type_internal): Likewise.
1233
1234 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
1235
1236 * Makefile.in (top_srcdir): New.
1237 * configure: Regenerated.
1238
1239 2015-04-02 Gary Benson <gbenson@redhat.com>
1240
1241 * NEWS: Announce the new default sysroot of "target:".
1242
1243 2015-04-02 Gary Benson <gbenson@redhat.com>
1244
1245 * main.c (captured_main): Set gdb_sysroot to "target:"
1246 if not otherwise set.
1247
1248 2015-04-02 Gary Benson <gbenson@redhat.com>
1249
1250 * exec.c (exec_file_attach): Support "target:" filenames.
1251
1252 2015-04-02 Gary Benson <gbenson@redhat.com>
1253
1254 * solib.c (solib_find): Strip "target:" prefix from sysroot
1255 if accessing local files.
1256
1257 2015-04-02 Gary Benson <gbenson@redhat.com>
1258
1259 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
1260 checks and error messages.
1261
1262 2015-04-02 Gary Benson <gbenson@redhat.com>
1263
1264 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
1265 (remote_filename_p): Remove declaration.
1266 (remote_bfd_open): Likewise.
1267 * remote.c (remote_bfd_iovec_open): Remove function.
1268 (remote_bfd_iovec_close): Likewise.
1269 (remote_bfd_iovec_pread): Likewise.
1270 (remote_bfd_iovec_stat): Likewise.
1271 (remote_filename_p): Likewise.
1272 (remote_bfd_open): Likewise.
1273 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
1274 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
1275 (gdb_bfd_open_maybe_remote): Remove function.
1276 (symfile_bfd_open): Replace remote filename check with
1277 target filename check.
1278 (reread_symbols): Use gdb_bfd_open.
1279 * build-id.c (gdbcore.h): New include.
1280 (build_id_to_debug_bfd): Use gdb_bfd_open.
1281 * infcmd.c (attach_command_post_wait): Remove remote filename
1282 check.
1283 * solib.c (solib_find): Replace remote-specific handling with
1284 target-specific handling. Update comments where necessary.
1285 (solib_bfd_open): Replace remote-specific handling with
1286 target-specific handling.
1287 (gdb_sysroot_changed): New function.
1288 (_initialize_solib): Call the above when gdb_sysroot changes.
1289 * windows-tdep.c (gdbcore.h): New include.
1290 (windows_xfer_shared_library): Use gdb_bfd_open.
1291
1292 2015-04-02 Gary Benson <gbenson@redhat.com>
1293
1294 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
1295 (is_target_filename): New declaration.
1296 (gdb_bfd_has_target_filename): Likewise.
1297 (gdb_bfd_open): Update documentation comment.
1298 * gdb_bfd.c (target.h): New include.
1299 (gdb/fileio.h): Likewise.
1300 (is_target_filename): New function.
1301 (gdb_bfd_has_target_filename): Likewise.
1302 (fileio_errno_to_host): Likewise.
1303 (gdb_bfd_iovec_fileio_open): Likewise.
1304 (gdb_bfd_iovec_fileio_pread): Likewise.
1305 (gdb_bfd_iovec_fileio_close): Likewise.
1306 (gdb_bfd_iovec_fileio_fstat): Likewise.
1307 (gdb_bfd_open): Use target fileio to access paths prefixed
1308 with "target:" where necessary.
1309
1310 2015-04-02 Gary Benson <gbenson@redhat.com>
1311
1312 * target.h (struct target_ops) <to_filesystem_is_local>:
1313 New field.
1314 (target_filesystem_is_local): New macro.
1315 * target-delegates.c: Regenerate.
1316 * remote.c (remote_filesystem_is_local): New function.
1317 (init_remote_ops): Initialize to_filesystem_is_local.
1318
1319 2015-04-02 Gary Benson <gbenson@redhat.com>
1320
1321 * target.h (struct target_ops) <to_fileio_fstat>: New field.
1322 (target_fileio_fstat): New declaration.
1323 * target.c (target_fileio_fstat): New function.
1324 * inf-child.c (inf_child_fileio_fstat): Likewise.
1325 (inf_child_target): Initialize to_fileio_fstat.
1326 * remote.c (init_remote_ops): Likewise.
1327
1328 2015-04-01 Sasha Smundak <asmundak@google.com>
1329
1330 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
1331 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
1332 (py-unwind.o): New recipe.
1333 * NEWS: mention Python frame unwinding.
1334 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
1335 gdb/unwinder.py and gdb/command/unwinder.py
1336 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
1337 list.
1338 (execute_unwinders): New function.
1339 * python/lib/gdb/command/unwinders.py: New file.
1340 * python/lib/gdb/unwinder.py: New file.
1341 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
1342 (objfpy_dealloc): Decrement frame_unwinders reference count.
1343 (objfpy_initialize): Create frame_unwinders list.
1344 (objfpy_get_frame_unwinders): New function.
1345 (objfpy_set_frame_unwinders): Ditto.
1346 (objfile_getset): Add frame_unwinders attribute to Objfile.
1347 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
1348 (pspy_dealloc): Decrement frame_unwinders reference count.
1349 (pspy_initialize): Create frame_unwinders list.
1350 (pspy_get_frame_unwinders): New function.
1351 (pspy_set_frame_unwinders): Ditto.
1352 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
1353 * python/py-unwind.c: New file.
1354 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
1355 (objpy_get_frame_unwinders): New prototype.
1356 (gdbpy_initialize_unwind): New prototype.
1357 * python/python.c (gdbpy_apply_type_printers): Call
1358 gdbpy_initialize_unwind.
1359
1360 2015-04-01 Pedro Alves <palves@redhat.com>
1361
1362 * infrun.c (resume): Check currently_stepping after clearing
1363 stepped_breakpoint, not before.
1364
1365 2015-04-01 Pedro Alves <palves@redhat.com>
1366
1367 * infrun.c (print_target_wait_results): Print all the ptid
1368 elements.
1369
1370 2015-04-01 Pedro Alves <palves@redhat.com>
1371
1372 * infrun.c (keep_going): Also discard cleanups if inserting
1373 breakpoints fails.
1374
1375 2015-04-01 Pedro Alves <palves@redhat.com>
1376
1377 * infrun.c (wait_for_inferior): Install the
1378 finish_thread_state_cleanup cleanup across the whole function, not
1379 just around handle_inferior_event.
1380
1381 2015-04-01 Pedro Alves <palves@redhat.com>
1382
1383 * infrun.c (resume) <step past permanent breakpoint>: Use
1384 do_target_resume.
1385
1386 2015-04-01 Pedro Alves <palves@redhat.com>
1387
1388 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
1389
1390 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
1391
1392 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
1393
1394 2015-04-01 Pedro Alves <palves@redhat.com>
1395
1396 * linux-thread-db.c (record_thread): Readd the thread to gdb's
1397 list if it was marked exited.
1398
1399 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1400
1401 * configure: Regenerated.
1402
1403 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1404 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 Oleg Nesterov <oleg@redhat.com>
1406
1407 PR corefiles/16092
1408 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
1409 New enum identifying the various options of the coredump_filter
1410 file.
1411 (struct smaps_vmflags): New struct.
1412 (use_coredump_filter): New variable.
1413 (decode_vmflags): New function.
1414 (mapping_is_anonymous_p): Likewise.
1415 (dump_mapping_p): Likewise.
1416 (linux_find_memory_regions_full): New variables
1417 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
1418 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
1419 parsing of its information. Implement memory mapping filtering
1420 based on its contents.
1421 (show_use_coredump_filter): New function.
1422 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
1423 * NEWS: Mention the possibility of using the
1424 '/proc/PID/coredump_filter' file when generating a corefile.
1425 Mention new command 'set use-coredump-filter'.
1426
1427 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1428
1429 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
1430 read_memory_unsigned_integer.
1431
1432 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1433
1434 * Makefile.in (ZLIB): New.
1435 (ZLIBINC): Likewise.
1436 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
1437 (CLIBS): Add $(ZLIB).
1438 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
1439 Add -lz to LIBS.
1440 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1441 * top.c (print_gdb_configuration): Remove --with-zlib and
1442 --without-zlib.
1443 * config.in: Regenerated.
1444 * configure: Likewise.
1445
1446 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
1447
1448 * NEWS: Mention info os cpus support.
1449 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
1450 (struct osdata_type): Add cpus entry, reorder the entries in
1451 alphabetical order.
1452
1453 2015-03-31 Matthias Klose <doko@ubuntu.com>
1454
1455 * compile/compile.c (compile_to_object): Allow triplets with or
1456 without vendor set.
1457
1458 2015-03-30 Doug Evans <dje@google.com>
1459
1460 PR c++/18141
1461 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
1462 klass in VAR_DOMAIN.
1463
1464 2015-03-30 Gary Benson <gbenson@redhat.com>
1465
1466 * remote.c (remote_mourn_1): Remove function. Update all callers
1467 to use remote_mourn.
1468 (extended_remote_mourn_1): Remove function. Update all callers
1469 to use extended_remote_mourn.
1470 (extended_remote_attach_1): Remove function. Update all callers
1471 to use extended_remote_attach.
1472
1473 2015-03-28 James Bowman <james.bowman@ftdichip.com>
1474
1475 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1476 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1477 (ALLDEPFILES): Add ft32-tdep.c.
1478 * configure.tgt: Add FT32 entry.
1479 * ft32-tdep.c: New file, FT32 target-dependent code.
1480 * ft32-tdep.h: New file, FT32 target-dependent code.
1481
1482 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1483
1484 Revert:
1485 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1486 Code cleanup.
1487 * printcmd.c (print_command_1): Move expr variable scope.
1488
1489 2015-03-27 Joel Brobecker <brobecker@adacore.com>
1490
1491 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1492
1493 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1494
1495 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1496 sections.
1497
1498 2015-03-26 Joel Brobecker <brobecker@adacore.com>
1499
1500 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1501 exception raised while parsing the probe arguments.
1502 Force parsing to be done using the C language parser.
1503 * expression.h (parse_expression_with_language): Declare.
1504 * parse.c (parse_expression_with_language): New function.
1505
1506 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
1507
1508 * MAINTAINERS (Write After Approval): Add "Jon Turney".
1509
1510 2015-03-26 Andy Wingo <wingo@igalia.com>
1511
1512 PR symtab/18148
1513 * dwarf2read.c (struct partial_die_info): Add has_const_value
1514 member.
1515 (add_partial_symbol): Don't punt on symbols that have const_value
1516 attributes.
1517 (read_partial_die): Detect DW_AT_const_value.
1518
1519 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1520
1521 Code cleanup.
1522 * printcmd.c (print_command_1): Move expr variable scope.
1523
1524 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1525
1526 Code cleanup.
1527 * printcmd.c (validate_format): Make the parameter cmdname const.
1528
1529 2015-03-26 Don Breazeal <donb@codesourcery.com>
1530
1531 * remote.c (_initialize_remote): Update comment.
1532
1533 2015-03-26 Pedro Alves <palves@redhat.com>
1534 Jon TURNEY <jon.turney@dronecode.org.uk>
1535
1536 * coffread.c (coff_symfile_read): When constructing the name of an
1537 import stub symbol from import symbol for amd64, only skip the
1538 char after _imp_ if the target is underscored (like i386) and the
1539 char is indeed the target's leading char.
1540
1541 2015-03-25 Pedro Alves <palves@redhat.com>
1542
1543 * target.h <to_async>: Replace 'callback' and 'context' parameters
1544 with boolean 'enable' parameter.
1545 (target_async): Replace CALLBACK and CONTEXT parameters with
1546 boolean ENABLE parameter.
1547 * inf-loop.c (inferior_event_handler): Adjust.
1548 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1549 (linux_nat_resume): Adjust.
1550 (async_client_callback, async_client_context): Delete.
1551 (handle_target_event): Call inferior_event_handler directly.
1552 (linux_nat_async): Replace 'callback' and 'context' parameters
1553 with boolean 'enable' parameter. Adjust. Remove references to
1554 async_client_callback and async_client_context.
1555 (linux_nat_close): Adjust.
1556 * record-btrace.c (record_btrace_async): Replace 'callback' and
1557 'context' parameters with boolean 'enable' parameter. Adjust.
1558 (record_btrace_resume): Adjust.
1559 * record-full.c (record_full_async): Replace 'callback' and
1560 'context' parameters with boolean 'enable' parameter. Adjust.
1561 (record_full_resume, record_full_core_resume): Adjust.
1562 * remote.c (struct remote_state) <async_client_callback,
1563 async_client_context>: Delete fields.
1564 (remote_start_remote, extended_remote_attach_1, remote_resume)
1565 (extended_remote_create_inferior): Adjust.
1566 (remote_async_serial_handler): Call inferior_event_handler
1567 directly.
1568 (remote_async): Replace 'callback' and 'context' parameters with
1569 boolean 'enable' parameter. Adjust.
1570 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1571 Adjust.
1572 * target-delegates.c: Regenerate.
1573
1574 2015-03-25 Gary Benson <gbenson@redhat.com>
1575 Pedro Alves <palves@redhat.com>
1576
1577 * target.c (fileio_ft_t): New typedef, define object vector.
1578 (fileio_fhandles): New static variable.
1579 (is_closed_fileio_fh): New macro.
1580 (lowest_closed_fd): New static variable.
1581 (acquire_fileio_fd): New function.
1582 (release_fileio_fd): Likewise.
1583 (fileio_fd_to_fh): New macro.
1584 (target_fileio_open): Wrap the file descriptor on success.
1585 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1586 (target_fileio_pread): Likewise.
1587 (target_fileio_close): Likewise.
1588
1589 2015-03-24 Pedro Alves <palves@redhat.com>
1590
1591 * thread.c (thread_apply_all_command): Take exited threads into
1592 account.
1593
1594 2015-03-24 Pedro Alves <palves@redhat.com>
1595
1596 * infrun.c (resume, proceed): Mention
1597 switch_back_to_stepped_thread, not switch_back_to_stepping.
1598
1599 2015-03-24 Pedro Alves <palves@redhat.com>
1600
1601 * infrun.c (user_visible_resume_ptid): Rewrite going from
1602 most-locked to unlocked instead of the opposite. Move comment ...
1603 * infrun.h (user_visible_resume_ptid): ... here.
1604
1605 2015-03-24 Pedro Alves <palves@redhat.com>
1606
1607 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1608 to resume the event lwp. Use the lwp's ptid instead of the passed
1609 in (maybe wildcard) ptid.
1610 (stop_wait_callback): Tweak debug log output.
1611 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1612 TRAP_TRACE.
1613 (linux_nat_filter_event): In debug output, distinguish a
1614 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1615 before trying to resume the lwp.
1616
1617 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1618
1619 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1620 pointer indirection.
1621 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1622 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1623
1624 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1625
1626 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1627 Renames DYN_ATTR_DATA_LOCATION.
1628 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1629 DYN_ATTR_DATA_LOCATION.
1630 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1631 instead of DYN_ATTR_DATA_LOCATION.
1632
1633 2015-03-24 Pedro Alves <palves@redhat.com>
1634
1635 * breakpoint.c (until_break_command): Adjust call to proceed.
1636 * gdbthread.h (struct thread_control_state) <stepping_command>:
1637 New field.
1638 * infcall.c (run_inferior_call): Adjust call to proceed.
1639 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1640 Adjust calls to proceed.
1641 (set_step_frame): Set the current thread's step_start_function
1642 here.
1643 (step_once): Adjust calls to proceed.
1644 (jump_command, signal_command, until_next_command)
1645 (finish_backward, finish_forward, proceed_after_attach_callback)
1646 (attach_command_post_wait): Adjust calls to proceed.
1647 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1648 (do_target_resume): New function, factored out from ...
1649 (resume): ... here. Remove 'step' parameter. Instead, check
1650 currently_stepping to determine whether the thread should be
1651 single-stepped.
1652 (proceed): Remove 'step' parameter and don't set the thread's
1653 step_start_function here. Adjust call to 'resume'.
1654 (handle_inferior_event): Adjust calls to 'resume'.
1655 (switch_back_to_stepped_thread): Use do_target_resume instead of
1656 'resume'.
1657 (keep_going): Adjust calls to 'resume'.
1658 * infrun.h (proceed): Remove 'step' parameter.
1659 (resume): Likewise.
1660 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1661 'resume'.
1662 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1663
1664 2015-03-24 Pedro Alves <palves@redhat.com>
1665
1666 * gdbthread.h (struct thread_control_state) <stepping_command>:
1667 New field.
1668 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1669 the thread's stepping_command field.
1670 * infrun.c (resume): Check the thread's stepping_command flag to
1671 determine which threads should be resumed. Rename 'entry_step'
1672 local to user_step.
1673 (clear_proceed_status_thread): Clear 'stepping_command'.
1674 (schedlock_applies): Change parameter type to struct thread_info
1675 pointer. Adjust.
1676 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1677 (switch_back_to_stepped_thread): Adjust calls to
1678 'schedlock_applies'.
1679 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1680
1681 2015-03-24 Pedro Alves <palves@redhat.com>
1682
1683 * infrun.c (step_start_function): Delete and ...
1684 * gdbthread.h (struct thread_control_state) <step_start_function>:
1685 ... now a field here.
1686 * infrun.c (clear_proceed_status_thread): Clear the thread's
1687 step_start_function.
1688 (proceed, process_event_stop_test, print_stop_event): Adjust.
1689
1690 2015-03-24 Pedro Alves <palves@redhat.com>
1691
1692 * infrun.c (proceed): No longer handle negative step.
1693
1694 2015-03-24 Gary Benson <gbenson@redhat.com>
1695
1696 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1697 (x86_linux_prepare_to_resume): Likewise.
1698 * x86-linux-nat.c (x86_linux_new_thread):
1699 Moved to nat/x86-linux.c.
1700 (x86_linux_prepare_to_resume): Likewise.
1701 * nat/x86-linux.c (x86_linux_new_thread): New function.
1702 (x86_linux_prepare_to_resume): Likewise.
1703
1704 2015-03-24 Gary Benson <gbenson@redhat.com>
1705
1706 * nat/x86-linux-dregs.h: New file.
1707 * nat/x86-linux-dregs.c: Likewise.
1708 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1709 (x86-linux-dregs.o): New rule.
1710 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1711 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1712 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1713 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1714 (x86_linux_dr_get): Likewise.
1715 (x86_linux_dr_set): Likewise.
1716 (x86_linux_dr_get_addr): Likewise.
1717 (x86_linux_dr_get_control): Likewise.
1718 (x86_linux_dr_get_status): Likewise.
1719 (update_debug_registers_callback): Likewise.
1720 (x86_linux_dr_set_control): Likewise.
1721 (x86_linux_dr_set_addr): Likewise.
1722 (x86_linux_update_debug_registers): Likewise.
1723
1724 2015-03-24 Gary Benson <gbenson@redhat.com>
1725
1726 * x86-linux-nat.c (x86_linux_update_debug_registers):
1727 New function, factored out from...
1728 (x86_linux_prepare_to_resume): ...this.
1729
1730 2015-03-24 Gary Benson <gbenson@redhat.com>
1731
1732 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1733 (x86_linux_dr_set): Likewise.
1734 (x86_linux_dr_get_addr): Likewise.
1735 (x86_linux_dr_get_control): Likewise.
1736 (x86_linux_dr_get_status): Likewise.
1737 (update_debug_registers_callback): Likewise.
1738 (x86_linux_dr_set_control): Likewise.
1739 (x86_linux_dr_set_addr): Likewise.
1740 (x86_linux_prepare_to_resume): Likewise.
1741 (x86_linux_new_thread): Likewise.
1742
1743 2015-03-24 Gary Benson <gbenson@redhat.com>
1744
1745 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1746 (x86_linux_new_thread): Rename argument.
1747
1748 2015-03-24 Gary Benson <gbenson@redhat.com>
1749
1750 * nat/x86-linux.h: New file.
1751 * nat/x86-linux.c: Likewise.
1752 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1753 (x86-linux.o): New rule.
1754 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1755 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1756 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1757 (lwp_set_arch_private_info): New declaration.
1758 (lwp_arch_private_info): Likewise.
1759 * linux-nat.c (lwp_set_arch_private_info): New function.
1760 (lwp_arch_private_info): Likewise.
1761 * x86-linux-nat.c: Include nat/x86-linux.h.
1762 (arch_lwp_info): Removed structure.
1763 (update_debug_registers_callback):
1764 Use lwp_set_debug_registers_changed.
1765 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1766 and lwp_set_debug_registers_changed.
1767 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1768
1769 2015-03-24 Gary Benson <gbenson@redhat.com>
1770
1771 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1772 (lwp_is_stopped): Likewise.
1773 (lwp_stop_reason): Likewise.
1774 * linux-nat.c (ptid_of_lwp): New function.
1775 (lwp_is_stopped): Likewise.
1776 (lwp_is_stopped_by_watchpoint): Likewise.
1777 * x86-linux-nat.c (update_debug_registers_callback):
1778 Use lwp_is_stopped.
1779 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1780 lwp_stop_reason.
1781
1782 2015-03-24 Gary Benson <gbenson@redhat.com>
1783
1784 * linux-nat.h (linux_stop_lwp): Move declaration to...
1785 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1786
1787 2015-03-24 Gary Benson <gbenson@redhat.com>
1788
1789 * linux-nat.h: Include nat/linux-nat.h.
1790 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1791 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1792 (iterate_over_lwps_ftype): New typedef.
1793 (iterate_over_lwps): New declaration.
1794 * linux-nat.h (iterate_over_lwps): Update comment. Use
1795 iterate_over_lwps_ftype. Update callback return value check.
1796
1797 2015-03-24 Gary Benson <gbenson@redhat.com>
1798
1799 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1800 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1801
1802 2015-03-24 Gary Benson <gbenson@redhat.com>
1803
1804 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1805 * linux-nat.c (current_lwp_ptid): New function.
1806 * x86-linux-nat.c: Include nat/linux-nat.h.
1807 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1808 (x86_linux_dr_get_control): Likewise.
1809 (x86_linux_dr_get_status): Likewise.
1810 (x86_linux_dr_set_control): Likewise.
1811 (x86_linux_dr_set_addr): Likewise.
1812
1813 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1814
1815 PR breakpoints/16466
1816 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1817
1818 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1819
1820 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1821 * ser-unix.c (hardwire_setparity): Likewise.
1822
1823 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1824
1825 * NEWS: Mention set/show serial parity command.
1826 * monitor.c (monitor_open): Call serial_setparity.
1827 * remote.c (remote_open_1): Likewise.
1828 * ser-base.c (ser_base_serparity): New function.
1829 * ser-base.h (ser_base_setparity): Add declaration.
1830 * ser-go32.c (dos_ops): Set "setparity" field.
1831 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1832 state.Parity.
1833 (ser_windows_setparity): New function.
1834 (hardwire_ops): Add ser_windows_setparity.
1835 (tty_ops): Add NULL for setparity field.
1836 (pipe_ops): Add ser_base_setparity.
1837 (tcp_ops): Likewise.
1838 * ser-pipe.c (pipe_ops): Likewise.
1839 * ser-tcp.c (tcp_ops): Likewise.
1840 * ser-unix.c (hardwire_setparity): Add declaration.
1841 (hardwire_raw): Don't reset PARENB flag.
1842 (hardwire_setparity): New function.
1843 (hardwire_ops): Add hardwire_setparity.
1844 * serial.c (serial_setparity): New function.
1845 (serial_parity): New global.
1846 (parity_none, parity_odd, parity_even, parity_enums, parity):
1847 New static globals.
1848 (set_parity): New function.
1849 (_initialize_serial): Add set/show serial parity commands.
1850 * serial.h (GDBPARITY_NONE): Define.
1851 (GDBPARITY_ODD): Define.
1852 (GDBPARITY_EVEN): Define.
1853 (serial_setparity) Add declaration.
1854 (struct serial_ops): Add setparity field.
1855 * target.h (serial_parity): Add declaration.
1856
1857 2015-03-23 Keith Seitz <keiths@redhat.com>
1858
1859 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1860
1861 2015-03-23 Keith Seitz <keiths@redhat.com>
1862
1863 * breakpoint.c (parse_breakpoint_sals): Use
1864 linespec_lexer_lex_keyword to ascertain if the user specified
1865 a NULL location.
1866 * linespec.c [IF_KEYWORD_INDEX]: Define.
1867 (linespec_lexer_lex_keyword): Export.
1868 (struct ls_parser) <keyword_ok>: Remove.
1869 A keyword is only a keyword if not followed by another keyword.
1870 (linespec_lexer_lex_one): Remove keyword_ok handling.
1871 Add comment explaining why the parsing stream is not advanced
1872 when a keyword is seen.
1873 (parse_linespec): Remove parser->keyword_ok.
1874 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1875
1876 2015-03-23 Keith Seitz <keiths@redhat.com>
1877
1878 PR gdb/18021
1879 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1880 if we find a static method with DW_AT_vtable_elem_location.
1881
1882 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1883
1884 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1885 before the second loop, to avoid undefined behavior. Reported by
1886 Anton Blanchard <anton@samba.org>.
1887
1888 2015-03-20 Keven Boell <keven.boell@intel.com>
1889
1890 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1891 data_location usage to linked list.
1892 (resolve_dynamic_type_internal): Adapt data_location to
1893 linked list.
1894 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1895 (copy_type_recursive, copy_type): Add copy of linked list.
1896 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1897 (struct dynamic_prop_list): New struct.
1898 * dwarf2read.c (set_die_type): Set data_location data.
1899
1900 2015-03-20 Pedro Alves <palves@redhat.com>
1901
1902 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1903 inner block and make it const.
1904 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1905
1906 2015-03-20 Pedro Alves <palves@redhat.com>
1907
1908 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1909 * breakpoint.h (set_breakpoint_condition): Update declaration.
1910
1911 2015-03-20 Pedro Alves <palves@redhat.com>
1912
1913 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1914
1915 2015-03-20 Pedro Alves <palves@redhat.com>
1916
1917 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1918
1919 2015-03-20 Pedro Alves <palves@redhat.com>
1920
1921 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1922
1923 2015-03-20 Pedro Alves <palves@redhat.com>
1924
1925 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1926 (nto_init_solib_absolute_prefix): Likewise.
1927
1928 2015-03-20 Pedro Alves <palves@redhat.com>
1929
1930 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1931 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1932
1933 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 * config/djgpp/README: Remove gdb.hp.
1936
1937 2015-03-20 Yao Qi <yao.qi@linaro.org>
1938
1939 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1940 set_gdbarch_cannot_step_breakpoint.
1941
1942 2015-03-19 Pedro Alves <palves@redhat.com>
1943
1944 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1945 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1946 instead call perror_with_name.
1947 (check_ptrace_stopped_lwp_gone): New function.
1948 (linux_resume_one_lwp): Reimplement as wrapper around
1949 linux_resume_one_lwp_throw that swallows errors if the LWP is
1950 gone.
1951 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1952 swallows errors if the LWP is gone. Use
1953 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1954
1955 2015-03-19 Pedro Alves <palves@redhat.com>
1956
1957 * linux-nat.c (status_callback): Return early if the LWP has no
1958 status pending.
1959
1960 2015-03-19 Pedro Alves <palves@redhat.com>
1961
1962 * linux-nat.c (select_event_lwp_callback): Update comment to no
1963 longer mention SIGTRAP.
1964
1965 2015-03-18 Tristan Gingold <gingold@adacore.com>
1966
1967 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1968 redirection code to ...
1969 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1970 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1971
1972 2015-03-18 Gary Benson <gbenson@redhat.com>
1973
1974 (remote_protocol_features): Remove the "vFile:fstat" feature.
1975 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1976
1977 2015-03-11 Yao Qi <yao.qi@linaro.org>
1978
1979 PR tdep/18107
1980 * aarch64-linux-tdep.c: Include xml-syscall.h
1981 (aarch64_linux_get_syscall_number): New function.
1982 (aarch64_linux_init_abi): Call
1983 set_gdbarch_get_syscall_number.
1984 * syscalls/aarch64-linux.xml: New file.
1985
1986 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1987
1988 * ser-base.h (ser_base_setstopbits): Change second argument name
1989 from "rate" to "num".
1990
1991 2015-03-17 Gary Benson <gbenson@redhat.com>
1992 Luke Allardyce <lukeallardyce@gmail.com>
1993
1994 PR gdb/18131
1995 * common/common-remote-fileio.h (sys/stat.h): New include.
1996 (stuct stat): Remove forward declaration.
1997
1998 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1999
2000 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
2001 before writing core register notes.
2002
2003 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2004 Pedro Alves <palves@redhat.com>
2005
2006 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
2007 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
2008 (tgoto): Wrap with extern "C".
2009
2010 2015-03-16 Pedro Alves <palves@redhat.com>
2011 Yuanhui Zhang <asmwarrior@gmail.com>
2012
2013 * stub-termcap.c (tputs): Change prototype.
2014
2015 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2016 Pedro Alves <palves@redhat.com>
2017
2018 * windows-nat.c (struct thread_info_struct): Rename to ...
2019 (struct windows_thread_info_struct): ... this.
2020 (thread_info): Rename to ...
2021 (windows_thread_info): ... this.
2022 All users updated.
2023
2024 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 Pedro Alves <palves@redhat.com>
2026
2027 * NEWS: New Removed targets and native configurations.
2028
2029 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2030
2031 Remove HPUX.
2032 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
2033 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
2034 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
2035 ia64-hpux-tdep.h, solib-ia64-hpux.h.
2036 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
2037 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
2038 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
2039 hppa-hpux-tdep.c.
2040 * config/ia64/hpux.mh: Remove file.
2041 * config/pa/hpux.mh: Remove file.
2042 * configure: Rebuilt.
2043 * configure.ac (dlgetmodinfo, somread.o): Remove.
2044 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2045 (ia64-*-hpux*): Remove its float format exception.
2046 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2047 * hppa-hpux-nat.c: Remove file.
2048 * hppa-hpux-tdep.c: Remove file.
2049 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
2050 Move them here from hppa-tdep.h
2051 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
2052 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
2053 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
2054 Move them to hppa-tdep.c.
2055 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
2056 declarations.
2057 * ia64-hpux-nat.c: Remove file.
2058 * ia64-hpux-tdep.c: Remove file.
2059 * ia64-hpux-tdep.h: Remove file.
2060 * inf-ttrace.c: Remove file.
2061 * inf-ttrace.h: Remove file.
2062 * solib-ia64-hpux.c: Remove file.
2063 * solib-ia64-hpux.h: Remove file.
2064 * solib-pa64.c: Remove file.
2065 * solib-pa64.h: Remove file.
2066 * solib-som.c: Remove file.
2067 * solib-som.h: Remove file.
2068 * somread.c: Remove file.
2069
2070 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2071
2072 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
2073 * config.in: Regenerate.
2074 * configure: Regenerate.
2075 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
2076 define.
2077 (fbsd_find_memory_regions): Use kinfo_getvmmap to
2078 enumerate memory regions if present.
2079
2080 2015-03-13 John Baldwin <jhb@FreeBSD.org>
2081
2082 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
2083 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
2084 expressions.
2085 (i386fbsd_sigtramp_p): Likewise.
2086
2087 2015-03-12 John Baldwin <jhb@FreeBSD.org>
2088
2089 * MAINTAINERS (Write After Approval): Add John Baldwin.
2090
2091 2015-03-12 Gary Benson <gbenson@redhat.com>
2092
2093 * solib.c (_initialize_solib): Make "set/show sysroot" use
2094 add_setshow_optional_filename_cmd so it can be restored to
2095 empty after being set.
2096
2097 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2098
2099 * Makefile.in (SFILES): New source break-catch-syscall.c.
2100 (COMMON_OBS): New object break-catch-syscall.o.
2101 * break-catch-syscall.c: New file.
2102 * breakpoint.c: Remove inclusion of "xml-syscall.h".
2103 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
2104 (struct syscall_catchpoint): Likewise.
2105 (dtor_catch_syscall): Likewise.
2106 (catch_syscall_inferior_data): Likewise.
2107 (struct catch_syscall_inferior_data): Likewise.
2108 (get_catch_syscall_inferior_data): Likewise.
2109 (catch_syscall_inferior_data_cleanup): Likewise.
2110 (insert_catch_syscall): Likewise.
2111 (remove_catch_syscall): Likewise.
2112 (breakpoint_hit_catch_syscall): Likewise.
2113 (print_it_catch_syscall): Likewise.
2114 (print_one_catch_syscall): Likewise.
2115 (print_mention_catch_syscall): Likewise.
2116 (print_recreate_catch_syscall): Likewise.
2117 (catch_syscall_breakpoint_ops): Likewise.
2118 (syscall_catchpoint_p): Likewise.
2119 (create_syscall_event_catchpoint): Likewise.
2120 (catch_syscall_split_args): Likewise.
2121 (catch_syscall_command_1): Likewise.
2122 (is_syscall_catchpoint_enabled): Likewise.
2123 (catch_syscall_enabled): Likewise.
2124 (catching_syscall_number): Likewise.
2125 (catch_syscall_completer): Likewise.
2126 (clear_syscall_counts): Likewise.
2127 (initialize_breakpoint_ops): Move initialization of syscall
2128 catchpoints to break-catch-syscall.c.
2129 (_initialize_breakpoint): Move code related to syscall catchpoints
2130 to break-catch-syscall.c.
2131
2132 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2133
2134 * breakpoint.c (breakpoint_find_if): New function.
2135 * breakpoint.h (breakpoint_find_if): New prototype.
2136
2137 2015-03-11 Gary Benson <gbenson@redhat.com>
2138
2139 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
2140 * remote-fileio.c (remote_fileio_to_host_uint): New function.
2141 (remote_fileio_to_host_ulong): Likewise.
2142 (remote_fileio_to_host_mode): Likewise.
2143 (remote_fileio_to_host_time): Likewise.
2144 (remote_fileio_to_host_stat): Likewise.
2145 * remote.c (PACKET_vFile_fstat): New enum value.
2146 (remote_protocol_features): Register the "vFile:fstat" feature.
2147 (remote_hostio_fstat): New function.
2148 (remote_bfd_iovec_stat): Use the above.
2149 (_initialize_remote): Register new "set/show remote
2150 hostio-fstat-packet" command.
2151 * symfile.c (separate_debug_file_exists): Update comment.
2152 * NEWS: Announce new vFile:fstat packet.
2153
2154 2015-03-11 Gary Benson <gbenson@redhat.com>
2155
2156 * common/common-remote-fileio.h: New file.
2157 * common/common-remote-fileio.c: Likewise.
2158 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
2159 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
2160 (COMMON_OBS): Add common-remote-fileio.o.
2161 (common-remote-fileio.o): New rule.
2162 * remote-fileio.h (common-remote-fileio.h): New include.
2163 * remote-fileio.c (gdb/fileio.h): Do not include.
2164 (remote_fileio_to_be): Moved to common-remote-fileio.h.
2165 (remote_fileio_to_fio_uint): Likewise.
2166 (remote_fileio_to_fio_time): Likewise.
2167 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
2168 (remote_fileio_to_fio_mode): Likewise.
2169 (remote_fileio_to_fio_ulong): Likewise.
2170 (remote_fileio_to_fio_stat): Likewise.
2171
2172 2015-03-11 Andy Wingo <wingo@igalia.com>
2173
2174 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
2175 we were checking the cached type, not the cached dynamic type.
2176
2177 2015-03-11 Andy Wingo <wingo@igalia.com>
2178
2179 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
2180 other strings, as these are on the GC'd heap, and will be
2181 collected along with the smob.
2182
2183 2015-03-11 Andy Wingo <wingo@igalia.com>
2184
2185 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
2186 (objfile_functions): Bind gdbscm_objfile_progspace to
2187 objfile-progspace.
2188 * guile/lib/gdb.scm: Add objfile-progspace to exports.
2189
2190 2015-03-11 Andy Wingo <wingo@igalia.com>
2191
2192 * guile/guile.c (_initialize_guile): Disable automatic
2193 finalization, if Guile offers us that possibility.
2194 * guile/guile.c (call_initialize_gdb_module):
2195 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
2196 finalizers in appropriate places.
2197 * configure.ac (AC_TRY_LIBGUILE): Add a check for
2198 scm_set_automatic_finalization_enabled.
2199 * configure: Regenerated.
2200
2201 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202
2203 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
2204 SAL, if possible.
2205
2206 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2207
2208 * s390-linux-nat.c (struct arch_lwp_info): New.
2209 (s390_fix_watch_points): Rename to...
2210 (s390_prepare_to_resume): ...this. Skip the PER info update
2211 unless the watch points have changed.
2212 (s390_refresh_per_info, s390_new_thread): New functions.
2213 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
2214 s390_fix_watch_points.
2215 (s390_remove_watchpoint): Likewise.
2216 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
2217 Register s390_prepare_to_resume.
2218
2219 2015-03-09 Pedro Alves <palves@redhat.com>
2220
2221 Revert:
2222 2015-03-07 Pedro Alves <palves@redhat.com>
2223 * common/gdb_socket.h: New file.
2224 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2225 sys/socket.h.
2226 (net_open): Use union gdb_sockaddr_u.
2227
2228 2015-03-07 Pedro Alves <palves@redhat.com>
2229
2230 * configure.ac (build_warnings): Move -Wmissing-prototypes
2231 -Wdeclaration-after-statement -Wmissing-parameter-type
2232 -Wold-style-declaration -Wold-style-definition to the C-specific
2233 set.
2234 * configure: Regenerate.
2235
2236 2015-03-07 Pedro Alves <palves@redhat.com>
2237
2238 * common/gdb_socket.h: New file.
2239 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2240 sys/socket.h.
2241 (net_open): Use union gdb_sockaddr_u.
2242
2243 2015-03-07 Pedro Alves <palves@redhat.com>
2244
2245 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
2246 (exceptions_state_mc_action_iter)
2247 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2248 Don't define.
2249 [__cplusplus] (try_scope_depth): New global.
2250 [__cplusplus] (exception_try_scope_entry)
2251 (exception_try_scope_exit, gdb_exception_sliced_copy)
2252 (exception_rethrow): New functions.
2253 (throw_exception): In C++ mode, throw
2254 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
2255 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
2256 (throw_it): In C++ mode, use try_scope_depth.
2257 * common/common-exceptions.h [!__cplusplus]
2258 (exceptions_state_mc_action_iter)
2259 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2260 Don't declare.
2261 [__cplusplus] (exception_try_scope_entry)
2262 (exception_try_scope_exit, exception_rethrow): Declare.
2263 [__cplusplus] (struct exception_try_scope): New struct.
2264 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
2265 C++ exceptions.
2266 (struct gdb_exception_RETURN_MASK_ALL)
2267 (struct gdb_exception_RETURN_MASK_ERROR)
2268 (struct gdb_exception_RETURN_MASK_QUIT): New types.
2269
2270 2015-03-07 Pedro Alves <palves@redhat.com>
2271
2272 * main.c (handle_command_errors): Remove volatile qualifier from
2273 parameter.
2274
2275 2015-03-07 Pedro Alves <palves@redhat.com>
2276
2277 * breakpoint.c (save_breakpoints): Adjust to avoid code between
2278 TRY and CATCH.
2279 * gdbtypes.c (safe_parse_type): Remove empty line.
2280 (types_deeply_equal):
2281 * guile/scm-frame.c (gdbscm_frame_name):
2282 * linux-thread-db.c (find_new_threads_once):
2283 * python/py-breakpoint.c (bppy_get_commands):
2284 * record-btrace.c (record_btrace_insert_breakpoint)
2285 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
2286 (record_btrace_start_replaying): Adjust to avoid code between TRY
2287 and CATCH.
2288
2289 2015-03-07 Pedro Alves <palves@redhat.com>
2290
2291 * common/common-exceptions.c (struct catcher) <exception>: No
2292 longer a pointer to volatile exception. Now an exception value.
2293 <mask>: Delete field.
2294 (exceptions_state_mc_init): Remove all parameters. Adjust.
2295 (exceptions_state_mc): No longer pop the catcher here.
2296 (exceptions_state_mc_catch): New function.
2297 (throw_exception): Adjust.
2298 * common/common-exceptions.h (exceptions_state_mc_init): Remove
2299 all parameters.
2300 (exceptions_state_mc_catch): Declare.
2301 (TRY_CATCH): Rename to ...
2302 (TRY): ... this. Remove EXCEPTION and MASK parameters.
2303 (CATCH, END_CATCH): New.
2304 All callers adjusted.
2305
2306 2015-03-07 Tom Tromey <tromey@redhat.com>
2307
2308 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
2309
2310 2015-03-07 Pedro Alves <palves@redhat.com>
2311
2312 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2313 (amd64_epilogue_frame_cache): Normal exception handling code.
2314 * break-catch-throw.c (check_status_exception_catchpoint)
2315 (re_set_exception_catchpoint): Ditto.
2316 * cli/cli-interp.c (safe_execute_command):
2317 * cli/cli-script.c (script_from_file): Ditto.
2318 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
2319 Ditto.
2320 * compile/compile-object-run.c (compile_object_run): Ditto.
2321 * cp-abi.c (baseclass_offset): Ditto.
2322 * cp-valprint.c (cp_print_value): Ditto.
2323 * exceptions.c (catch_exceptions_with_msg):
2324 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
2325 * frame.c (get_frame_address_in_block_if_available): Ditto.
2326 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2327 (i386_sigtramp_frame_cache): Ditto.
2328 * infcmd.c (post_create_inferior): Ditto.
2329 * linespec.c (parse_linespec, find_linespec_symbols):
2330 * p-valprint.c (pascal_object_print_value): Ditto.
2331 * parse.c (parse_expression_for_completion): Ditto.
2332 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2333 * remote.c (remote_get_noisy_reply): Ditto.
2334 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
2335 * solib-svr4.c (solib_svr4_r_map): Ditto.
2336
2337 2015-03-06 Gary Benson <gbenson@redhat.com>
2338
2339 * common/common-utils.h (startswith): New inline function.
2340 All places where this logic was used updated to use the above.
2341
2342 2015-03-05 Pedro Alves <palves@redhat.com>
2343
2344 PR gdb/18002
2345 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
2346 after reading the breakpoint's shadow memory.
2347
2348 2015-03-05 Mark Kettenis <kettenis@gnu.org>
2349
2350 * hppabsd-nat.c: Remove file.
2351 * hppaobsd-nat.c: New file.
2352 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
2353 hppaobsd-nat.c.
2354 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
2355 hppaobsd-nat.o.
2356
2357 2015-03-04 Pedro Alves <palves@redhat.com>
2358
2359 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2360 (target_decr_pc_after_break): Delete declaration.
2361 * target.c (default_target_decr_pc_after_break)
2362 (target_decr_pc_after_break): Delete.
2363 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
2364 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
2365 * linux-thread-db.c (check_event): Likewise.
2366 * infrun.c (adjust_pc_after_break): Likewise.
2367 * darwin-nat.c (cancel_breakpoint): Likewise.
2368 * aix-thread.c (aix_thread_wait): Likewise.
2369 * target-delegates.c: Regenerate.
2370
2371 2015-03-04 Pedro Alves <palves@redhat.com>
2372
2373 * linux-nat.c (save_sigtrap): Check for breakpoints before
2374 checking watchpoints.
2375 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
2376 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
2377 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
2378 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
2379 (linux_nat_stopped_by_sw_breakpoint)
2380 (linux_nat_supports_stopped_by_sw_breakpoint)
2381 (linux_nat_stopped_by_hw_breakpoint)
2382 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
2383 (linux_nat_wait_1): Don't re-increment the PC if relying on
2384 SIGTRAP's siginfo->si_code.
2385 (linux_nat_add_target): Install new target methods.
2386 * linux-thread-db.c (check_event): Don't account for breakpoint PC
2387 offset if the target already adjusted the PC.
2388 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
2389 (GDB_ARCH_TRAP_BRKPT): New.
2390 (TRAP_HWBKPT): Define if not already defined.
2391
2392 2015-03-04 Pedro Alves <palves@redhat.com>
2393
2394 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
2395 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
2396 Delete field.
2397 <stop_reason>: New field.
2398 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
2399 (packet_set_cmd_state): New function.
2400 (remote_protocol_features): Register the "swbreak" and "hwbreak"
2401 features.
2402 (remote_query_supported): If not disabled with the corresponding
2403 "set remote foo-packet" command, report support for the swbreak
2404 and hwbreak features.
2405 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
2406 field.
2407 <stop_reason>: New field.
2408 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
2409 (remote_wait_as): Adjust.
2410 (remote_stopped_by_sw_breakpoint)
2411 (remote_supports_stopped_by_sw_breakpoint)
2412 (remote_stopped_by_hw_breakpoint)
2413 (remote_supports_stopped_by_hw_breakpoint): New functions.
2414 (remote_stopped_by_watchpoint): New function.
2415 (init_remote_ops): Install them.
2416 (_initialize_remote): Register new "set/show remote
2417 swbreak-feature-packet" and "set/show remote
2418 swbreak-feature-packet" commands.
2419
2420 2015-03-04 Pedro Alves <palves@redhat.com>
2421
2422 * btrace.h: Include target/waitstatus.h.
2423 (struct btrace_thread_info) <stop_reason>: New field.
2424 * record-btrace.c (record_btrace_step_thread): Use
2425 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2426 (record_btrace_decr_pc_after_break): Delete.
2427 (record_btrace_stopped_by_sw_breakpoint)
2428 (record_btrace_supports_stopped_by_sw_breakpoint)
2429 (record_btrace_stopped_by_hw_breakpoint)
2430 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
2431 (init_record_btrace_ops): Install them.
2432 * record-full.c (record_full_hw_watchpoint): Delete and replace
2433 with ...
2434 (record_full_stop_reason): ... this throughout.
2435 (record_full_exec_insn): Adjust.
2436 (record_full_wait_1): Adjust. No longer re-increment the PC.
2437 (record_full_wait_1): Adjust. Use
2438 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2439 (record_full_stopped_by_watchpoint): Adjust.
2440 (record_full_stopped_by_sw_breakpoint)
2441 (record_full_supports_stopped_by_sw_breakpoint)
2442 (record_full_supports_stopped_by_sw_breakpoint)
2443 (record_full_stopped_by_hw_breakpoint)
2444 (record_full_supports_stopped_by_hw_breakpoint): New functions.
2445 (init_record_full_ops, init_record_full_core_ops): Install them.
2446 * record.c (record_check_stopped_by_breakpoint): New function.
2447 * record.h: Include target/waitstatus.h.
2448 (record_check_stopped_by_breakpoint): New declaration.
2449
2450 2015-03-04 Pedro Alves <palves@redhat.com>
2451
2452 enum lwp_stop_reason -> enum target_stop_reason
2453 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
2454 (linux_nat_stopped_by_watchpoint, status_callback)
2455 (linux_nat_wait_1): Adjust.
2456 * linux-nat.h (enum lwp_stop_reason): Delete.
2457 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
2458 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2459 * target/waitstatus.h (enum target_stop_reason): New.
2460
2461 2015-03-04 Pedro Alves <palves@redhat.com>
2462
2463 * breakpoint.c (need_moribund_for_location_type): New function.
2464 (bpstat_stop_status): Don't skipping checking moribund locations
2465 of breakpoint types which the target tell caused a stop.
2466 (program_breakpoint_here_p): New function, factored out from ...
2467 (bp_loc_is_permanent): ... this.
2468 (update_global_location_list): Don't create a moribund location if
2469 the target supports reporting stops of the type of the removed
2470 breakpoint.
2471 * breakpoint.h (program_breakpoint_here_p): New declaration.
2472 * infrun.c (adjust_pc_after_break): Return early if the target has
2473 already adjusted the PC. Add comments.
2474 (handle_signal_stop): If nothing explains a signal, and the target
2475 tells us the stop was caused by a software breakpoint, check if
2476 there's a breakpoint instruction in the memory. If so, adjust the
2477 PC before presenting the stop to the user. Otherwise, ignore the
2478 trap. If nothing explains a signal, and the target tells us the
2479 stop was caused by a hardware breakpoint, ignore the trap.
2480 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2481 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2482 to_supports_stopped_by_hw_breakpoint>: New fields.
2483 (target_stopped_by_sw_breakpoint)
2484 (target_supports_stopped_by_sw_breakpoint)
2485 (target_stopped_by_hw_breakpoint)
2486 (target_supports_stopped_by_hw_breakpoint): Define.
2487 * target-delegates.c: Regenerate.
2488
2489 2015-03-04 Pedro Alves <palves@redhat.com>
2490
2491 * infrun.c (follow_fork_inferior): Use the whole of the
2492 inferior_ptid and pending_follow.related_pid ptids instead of
2493 building ptids from the process components. Adjust verbose output
2494 to use target_pid_to_str.
2495 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2496 inferior_ptid and pending_follow.related_pid ptids instead of
2497 building ptids from the process components.
2498
2499 2015-03-04 Mark Kettenis <kettenis@gnu.org>
2500
2501 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2502 (inf_ptrace_insert_fork_catchpoint): New function.
2503 (inf_ptrace_remove_fork_catchpoint): New function.
2504 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2505
2506 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2507
2508 * s390-linux-tdep.c (s390_register_name): Return empty string
2509 instead of NULL for registers that shouldn't be visible.
2510
2511 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2512
2513 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
2514 XML file for 64-bit targets.
2515
2516 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
2517
2518 * target.h (find_default_create_inferior): Remove declaration.
2519 (find_default_attach): Likewise.
2520
2521 2015-03-03 Pedro Alves <palves@redhat.com>
2522
2523 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
2524 Use ptid_get_pid to get the overall process id when resuming all
2525 threads.
2526
2527 2015-03-03 Pedro Alves <palves@redhat.com>
2528
2529 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2530 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2531 * inf-ptrace.c (get_ptrace_pid): New function.
2532 (inf_ptrace_resume): Use it.
2533 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2534 to the lower layer.
2535
2536 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2537
2538 * nat/linux-btrace.c: Include sys/utsname.h.
2539 (linux_determine_kernel_ptr_bits): New.
2540 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2541 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2542 ptr_bits.
2543
2544 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2545
2546 * btrace.c (ftrace_update_function): Treat return as tailcall for
2547 "_dl_runtime_resolve".
2548
2549 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2550
2551 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2552 * btrace.c (ftrace_debug): Do not print the line range.
2553 (ftrace_skip_file, ftrace_update_lines): Remove.
2554 (ftrace_new_function): Remove lbegin and lend initialization.
2555 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2556 * record-btrace.c (btrace_compute_src_line_range): New.
2557 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2558
2559 2015-03-02 Pedro Alves <palves@redhat.com>
2560
2561 * infrun.c (follow_exec): Delete all threads of the process except
2562 the event thread. Extended comments.
2563
2564 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2565
2566 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2567
2568 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2569
2570 * utils.h: Remove <stdbool.h> #include.
2571 (producer_is_gcc): Change return type to "int".
2572 * utils.c (producer_is_gcc): Change return type to int.
2573 Return 1 instead of true, and 0 instead of false.
2574 Adjust function documentation accordingly.
2575
2576 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2577
2578 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2579 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2580 present.
2581 (s390_linux_store_inferior_registers): Likewise.
2582 (s390_get_hwcap): Remove function. Embed its logic...
2583 (s390_read_description): ...here. Yield a target description with
2584 vector registers if applicable.
2585 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2586 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2587 "features/s390x-tevx-linux64.c".
2588 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2589 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2590 for "GNU/Linux-specific registers".
2591 (s390_dwarf_reg_r0l): New enum value.
2592 (s390_dwarf_reg_to_regnum): Support vector registers.
2593 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2594 of GPR lower halves.
2595 (regnum_is_vxr_full): New function.
2596 (s390_register_name): New function.
2597 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2598 f0-f15 and v0l-v15l.
2599 (s390_pseudo_register_type): Likewise.
2600 (s390_pseudo_register_read): Likewise.
2601 (s390_pseudo_register_write): Likewise.
2602 (s390_value_from_register): Account for the fact that values are
2603 placed left-justified in vector registers.
2604 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2605 the vector reggroup and omit them from the general reggroup.
2606 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2607 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2608 (s390_iterate_over_regset_sections): Add iterations for the two
2609 new vector regsets.
2610 (s390_core_read_description): Yield a target description with
2611 vector registers if applicable.
2612 (s390_gdbarch_init): Handle target descriptions with vector
2613 registers. Add "register_name" gdbarch method.
2614 (_initialize_s390_tdep): Call new tdesc initialization functions.
2615 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2616 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2617 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2618 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2619 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2620 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2621 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2622 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2623 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2624 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2625 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2626 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2627 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2628 (S390_NUM_REGS): Adjust value.
2629 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2630 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2631 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2632 * NEWS: Announce S/390 vector register support.
2633
2634 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2635
2636 * features/s390-tevx-linux64.xml: New file.
2637 * features/s390-vx-linux64.xml: New file.
2638 * features/s390-vx.xml: New file.
2639 * features/s390x-tevx-linux64.xml: New file.
2640 * features/s390x-vx-linux64.xml: New file.
2641 * features/Makefile (WHICH): Add s390-vx-linux64,
2642 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2643 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2644 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2645 macros.
2646 * features/s390-tevx-linux64.c: New generated file.
2647 * features/s390-vx-linux64.c: Likewise.
2648 * features/s390x-tevx-linux64.c: Likewise.
2649 * features/s390x-vx-linux64.c: Likewise.
2650 * regformats/s390-tevx-linux64.dat: Likewise.
2651 * regformats/s390-vx-linux64.dat: Likewise.
2652 * regformats/s390x-tevx-linux64.dat: Likewise.
2653 * regformats/s390x-vx-linux64.dat: Likewise.
2654
2655 2015-02-28 Doug Evans <xdje42@gmail.com>
2656
2657 * symtab.h (struct symtab) <next>: Fix comment.
2658
2659 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2660
2661 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2662 python_GdbMethods.
2663
2664 2015-02-27 Pedro Alves <palves@redhat.com>
2665
2666 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2667
2668 2015-02-27 Pedro Alves <palves@redhat.com>
2669
2670 * common/common-exceptions.h (exception_none): Declare.
2671 * common/common-exceptions.c (exception_none): Moved from
2672 exceptions.c.
2673 (exceptions_state_mc_init): Use exception_none.
2674 * exceptions.c (exception_none): Move to
2675 common/common-exceptions.c.
2676 * exceptions.h (exception_none): Move to
2677 common/common-exceptions.h.
2678
2679 2015-02-27 Pedro Alves <palves@redhat.com>
2680
2681 * main.c (catch_command_errors, catch_command_errors_const):
2682 Remove 'mask' argument. Adjust.
2683 (captured_main): Adjust callers.
2684
2685 2015-02-27 Pedro Alves <palves@redhat.com>
2686
2687 * python/python-internal.h: Include "extension-priv.h".
2688
2689 2015-02-27 Pedro Alves <palves@redhat.com>
2690
2691 * breakpoint.h (enum print_stop_action): Move further up in the
2692 file.
2693
2694 2015-02-27 Pedro Alves <palves@redhat.com>
2695
2696 * gdbarch.sh: Include regcache.h.
2697 * gdbarch.h: Regenerate.
2698
2699 2015-02-27 Pedro Alves <palves@redhat.com>
2700
2701 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2702 Remove duplicate const.
2703 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2704 duplicate const.
2705
2706 2015-02-27 Pedro Alves <palves@redhat.com>
2707
2708 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2709 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2710 * features/feature_to_c.sh: Tag the generated xml_builtin array
2711 with extern const in C++ mode.
2712
2713 2015-02-27 Tom Tromey <tromey@redhat.com>
2714
2715 * minidebug.c (struct lzma_stream): Rename to ...
2716 (struct gdb_lzma_stream): ... this.
2717 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2718
2719 2015-02-27 Pedro Alves <palves@redhat.com>
2720
2721 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2722 function.
2723 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2724 (mi_cmd_stack_list_variables): Use it.
2725
2726 2015-02-27 Pedro Alves <palves@redhat.com>
2727
2728 * x86-linux-nat.c (u_debugreg_offset): New function.
2729 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2730
2731 2015-02-27 Pedro Alves <palves@redhat.com>
2732
2733 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2734 declaration.
2735 Include break-common.h.
2736
2737 2015-02-27 Tom Tromey <tromey@redhat.com>
2738 Pedro Alves <palves@redhat.com>
2739
2740 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2741 local used to iterate over enums.
2742 * completer.c (signal_completer): Likewise.
2743 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2744 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2745 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2746 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2747 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2748 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2749 * tui-wingeneral.c (tui_refresh_all): Likewise.
2750
2751 2015-02-27 Pedro Alves <palves@redhat.com>
2752
2753 * target.h: Include "infrun.h".
2754
2755 2015-02-27 Pedro Alves <palves@redhat.com>
2756
2757 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2758
2759 2015-02-27 Pedro Alves <palves@redhat.com>
2760
2761 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2762 (IPA_SYM): Use it.
2763 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2764
2765 2015-02-27 Pedro Alves <palves@redhat.com>
2766
2767 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2768 cli_mld_erase_entire_line, and make it extern "C".
2769 * common/common-defs.h (EXTERN_C): New.
2770 * completer.c (_rl_completion_prefix_display_length)
2771 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2772 out of gdb_display_match_list_1.
2773 (_rl_qsort_string_compare): Move declaration out of
2774 gdb_display_match_list_1, and make it extern "C".
2775 * defs.h (re_comp): Use EXTERN_C.
2776 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2777 and make it extern "C".
2778 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2779 and make it extern "C".
2780 (main): Move declaration out of maintenance_set_profile_cmd.
2781 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2782 EXTERN_C.
2783
2784 2015-02-27 Pedro Alves <palves@redhat.com>
2785
2786 * python/python.c (GdbMethods): Rename to ...
2787 (python_GdbMethods): ... this and make extern.
2788 (GdbModuleDef): Rename to ...
2789 (python_GdbModuleDef): ... this and make extern.
2790
2791 2015-02-27 Pedro Alves <palves@redhat.com>
2792
2793 * record-btrace.c (set_record_btrace_cmdlist)
2794 (show_record_btrace_cmdlist): Remove redefinitions.
2795
2796 2015-02-27 Tom Tromey <tromey@redhat.com>
2797 Pedro Alves <palves@redhat.com>
2798
2799 * dwarf2-frame.c (enum cfa_how_kind, struct
2800 dwarf2_frame_state_reg_info): Move out of struct
2801 dwarf2_frame_state.
2802 * dwarf2read.c (struct tu_stats): Move out of struct
2803 dwarf2_per_objfile.
2804 (struct file_entry): Move out of struct line_header.
2805 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2806 typedef_field_list): Move out of struct field_info.
2807 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2808 Move out of struct dynamic_prop.
2809 (union type_owner, union field_location, struct field, struct
2810 range_bounds, union type_specific): Move out of struct main_type.
2811 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2812 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2813 (struct call_site_target, union call_site_parameter_u, struct
2814 call_site_parameter): Move out of struct call_site.
2815 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2816 m32c_prologue.
2817 (enum srcdest_kind): Move out of struct srcdest.
2818 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2819 * prologue-value.h (enum prologue_value_kind): Move out of struct
2820 prologue_value.
2821 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2822 gdbarch_tdep.
2823 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2824 out of struct field_info.
2825 * symfile.h (struct other_sections): Move out of struct
2826 section_addr_info.
2827 * symtab.c (struct symbol_cache_slot): Move out struct
2828 block_symbol_cache.
2829 * target-descriptions.c (enum tdesc_type_kind): Move out of
2830 typedef struct tdesc_type.
2831 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2832 struct tui_line_or_address.
2833 * value.c (enum internalvar_kind, union internalvar_data): Move
2834 out of struct internalvar.
2835 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2836 gdbarch_tdep.
2837
2838 2015-02-27 Tom Tromey <tromey@redhat.com>
2839 Pedro Alves <palves@redhat.com>
2840
2841 Rename symbols whose names are reserved C++ keywords throughout.
2842
2843 2015-02-27 Pedro Alves <palves@redhat.com>
2844
2845 * Makefile.in (COMPILER): New, get it from autoconf.
2846 (COMPILE.pre, CC_LD): Use COMPILER.
2847 (CXX): Get from autoconf instead.
2848 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2849 * acinclude.m4: Include build-with-cxx.m4.
2850 * build-with-cxx.m4: New file.
2851 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2852 Disable -Werror by default if building in C++ mode.
2853 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2854 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2855 Run supported-warning-flags tests with the C++ compiler.
2856 Save/restore CXXFLAGS too.
2857 * configure: Regenerate.
2858
2859 2015-02-27 Pedro Alves <palves@redhat.com>
2860
2861 * libiberty.m4: New file.
2862 * acinclude.m4: Include libiberty.m4.
2863 * configure.ac: Call libiberty_INIT.
2864 * config.in, configure: Regenerate.
2865
2866 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2867
2868 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2869 31-bit targets, but 64-bit targets as well.
2870 (s390_gnu_triplet_regexp): New function.
2871 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2872 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2873 method.
2874
2875 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2876
2877 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2878 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2879 from CONTEXT_DEBUGGER.
2880
2881 2015-02-26 Doug Evans <dje@google.com>
2882
2883 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2884 CHECK_TYPEDEF.
2885 (set_type_vptr_fieldno): Ditto.
2886 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2887 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2888
2889 2015-02-26 Pedro Alves <palves@redhat.com>
2890
2891 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2892 * complaints.c (vcomplaint): Pass argument FMT directly to
2893 printf-like functions instead of complaint->fmt.
2894 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2895 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2896 * compile/compile-loc2c.c (pushf, unary, binary): Add
2897 ATTRIBUTE_PRINTF.
2898 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2899 to pushf.
2900 (BINARY): Pass string literal as format string to 'binary'.
2901 * compile/compile-object-load.c (link_callbacks_einfo): Add
2902 ATTRIBUTE_PRINTF.
2903 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2904
2905 2015-02-26 Pedro Alves <palves@redhat.com>
2906
2907 * windows-termcap.c: Rename to ...
2908 * stub-termcap.c: ... this. Adjust header line.
2909 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2910 windows-termcap.c.
2911 * configure: Regenerate.
2912 * configure.ac: Refer to stub-termcap.o instead of
2913 windows-termcap.o.
2914 * gdb_curses.h: Mention stub-termcap.c instead of
2915 windows-termcap.c.
2916
2917 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2920 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2921
2922 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2923
2924 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2925
2926 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2929 bfd_canonicalize_symtab.
2930
2931 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2932
2933 * amd64fbsd-nat.c: Include sys/user.h.
2934 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2935 instead of KERN_PS_STRINGS to locate the signal trampoline.
2936 * i386fbsd-nat.c: Include sys/user.h.
2937 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2938 instead of KERN_PS_STRINGS to locate the signal trampoline.
2939 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2940 (amd64fbsd_sigtramp_p): New.
2941 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2942 longer set default values.
2943 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2944 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2945 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2946 (i386fbsd_freebsd4_sigtramp_start)
2947 (i386fbsd_freebsd4_sigtramp_middle)
2948 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2949 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2950 (i386fbsd_sigtramp_p): New.
2951 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2952 longer set default values.
2953 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2954
2955 2015-02-25 John Baldwin <jhb@freebsd.org>
2956
2957 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2958 get_frame_register instead of frame_unwind_register_unsigned.
2959
2960 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 PR build/18033
2963 * compile/compile-c-support.c (c_compute_program): Change // comment.
2964 * compile/compile-object-load.c (setup_sections): Change // comment.
2965
2966 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2967
2968 PR build/18033:
2969 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2970
2971 2015-02-23 Pedro Alves <palves@redhat.com>
2972
2973 * remote.c (skip_to_semicolon): New function.
2974 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2975 special case the stop reasons that look like hex numbers
2976 upfront. Instead handle real register numbers after matching
2977 all the known stop reasons.
2978
2979 2015-02-21 Doug Evans <dje@google.com>
2980
2981 PR c++/17976, symtab/17821
2982 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2983 is_in_anonymous. All callers updated.
2984 (find_symbol_in_baseclass): Ditto.
2985 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2986 for symbols in an anonymous namespace.
2987 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2988 DW_AT_name directly.
2989 (dwarf2_name): Convert missing namespace name to
2990 CP_ANONYMOUS_NAMESPACE_STR.
2991
2992 2015-02-20 Pedro Alves <palves@redhat.com>
2993
2994 * linux-nat.c (linux_handle_extended_wait): Call
2995 thread_db_notice_clone whenever a new clone LWP is detected.
2996 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2997 functions.
2998 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2999 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
3000 (linux_unstop_all_lwps): Declare.
3001 * linux-thread-db.c (struct thread_get_info_inout): Delete.
3002 (thread_get_info_callback): Delete.
3003 (thread_from_lwp): Use td_thr_get_info and record_thread.
3004 (thread_db_attach_lwp): Delete.
3005 (thread_db_notice_clone): New function.
3006 (try_thread_db_load_1): If /proc is mounted and shows the
3007 process'es task list, walk over all LWPs and call thread_from_lwp
3008 instead of relying on td_ta_thr_iter.
3009 (attach_thread): Don't call check_thread_signals here. Split the
3010 tail part of the function (which adds the thread to the core GDB
3011 thread list) to ...
3012 (record_thread): ... this function. Call check_thread_signals
3013 here.
3014 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
3015 call thread_from_lwp.
3016 (thread_db_update_thread_list): Rename to ...
3017 (thread_db_update_thread_list_org): ... this.
3018 (thread_db_update_thread_list): New function.
3019 (thread_db_find_thread_from_tid): Delete.
3020 (thread_db_get_ada_task_ptid): Simplify.
3021 * nat/linux-procfs.c: Include <sys/stat.h>.
3022 (linux_proc_task_list_dir_exists): New function.
3023 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
3024
3025 2015-02-20 Pedro Alves <palves@redhat.com>
3026
3027 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
3028 main LWP. Handle the case of waitpid returning 0 if we're already
3029 attached to the LWP. Don't set the LWP's last_resume_kind to
3030 resume_stop if we already knew about the LWP.
3031 (linux_nat_filter_event): Add debug logs.
3032
3033 2015-02-20 Pedro Alves <palves@redhat.com>
3034
3035 * target.h (forward_target_decr_pc_after_break): Delete
3036 declaration.
3037
3038 2015-02-20 Pedro Alves <palves@redhat.com>
3039
3040 PR threads/18006
3041 * linux-thread-db.c (thread_get_info_callback): Return early if
3042 the thread's lwp id is -1.
3043
3044 2015-02-20 Joel Brobecker <brobecker@adacore.com>
3045
3046 GDB 7.9 released.
3047
3048 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
3049
3050 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
3051 (dtrace_get_probes) Change type of variable 'dof'.
3052
3053 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
3054
3055 PR breakpoints/16812
3056 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
3057 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
3058 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
3059
3060 2015-02-19 David Taylor <dtaylor@emc.com>
3061
3062 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
3063
3064 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
3065
3066 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
3067 function.
3068 (tui_putc): Don't call tui_handle_resize_during_io.
3069 (tui_getc): Likewise.
3070 (tui_mld_getc): Likewise.
3071 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
3072 (tui_sigwinch_token): New static variable.
3073 (tui_initialize_win): Adjust documentation. Set
3074 tui_sigwinch_token.
3075 (tui_async_resize_screen): New asynchronous callback.
3076 (tui_sigwinch_handler): Adjust documentation. Asynchronously
3077 invoke tui_async_resize_screen.
3078
3079 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
3080
3081 * configure: Regenerated.
3082 * configure.ac: Use GDB_AC_TRANSFORM.
3083 * Makefile.in (aclocal_m4_deps): Added transform.m4.
3084 * acinclude.m4: sinclude transform.m4.
3085 * transform.m4: New file.
3086 (GDB_AC_TRANSFORM): New macro.
3087
3088 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3089
3090 * NEWS: Announce the support for DTrace SDT probes.
3091
3092 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3093
3094 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
3095 (amd64_dtrace_parse_probe_argument): New function.
3096 (amd64_dtrace_probe_is_enabled): Likewise.
3097 (amd64_dtrace_enable_probe): Likewise.
3098 (amd64_dtrace_disable_probe): Likewise.
3099 (amd64_linux_init_abi): Register the
3100 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
3101 `gdbarch_dtrace_disable_probe' and
3102 `gdbarch_dtrace_probe_is_enabled' hooks.
3103 (amd64_dtrace_disabled_probe_sequence_1): New constant.
3104 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
3105 (amd64_dtrace_enable_probe_sequence): Likewise.
3106 (amd64_dtrace_disable_probe_sequence): Likewise.
3107
3108 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3109
3110 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
3111 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
3112 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
3113 handle ELF files.
3114 * Makefile.in (SFILES): dtrace-probe.c added.
3115 * configure: Regenerate.
3116 * dtrace-probe.c: New file.
3117 (SHT_SUNW_dof): New constant.
3118 (dtrace_probe_type): New enum.
3119 (dtrace_probe_arg): New struct.
3120 (dtrace_probe_arg_s): New typedef.
3121 (struct dtrace_probe_enabler): New struct.
3122 (dtrace_probe_enabler_s): New typedef.
3123 (dtrace_probe): New struct.
3124 (dtrace_probe_is_linespec): New function.
3125 (dtrace_dof_sect_type): New enum.
3126 (dtrace_dof_dofh_ident): Likewise.
3127 (dtrace_dof_encoding): Likewise.
3128 (DTRACE_DOF_ENCODE_LSB): Likewise.
3129 (DTRACE_DOF_ENCODE_MSB): Likewise.
3130 (dtrace_dof_hdr): New struct.
3131 (dtrace_dof_sect): Likewise.
3132 (dtrace_dof_provider): Likewise.
3133 (dtrace_dof_probe): Likewise.
3134 (DOF_UINT): New macro.
3135 (DTRACE_DOF_PTR): Likewise.
3136 (DTRACE_DOF_SECT): Likewise.
3137 (dtrace_process_dof_probe): New function.
3138 (dtrace_process_dof): Likewise.
3139 (dtrace_build_arg_exprs): Likewise.
3140 (dtrace_get_arg): Likewise.
3141 (dtrace_get_probes): Likewise.
3142 (dtrace_get_probe_argument_count): Likewise.
3143 (dtrace_can_evaluate_probe_arguments): Likewise.
3144 (dtrace_evaluate_probe_argument): Likewise.
3145 (dtrace_compile_to_ax): Likewise.
3146 (dtrace_probe_destroy): Likewise.
3147 (dtrace_gen_info_probes_table_header): Likewise.
3148 (dtrace_gen_info_probes_table_values): Likewise.
3149 (dtrace_probe_is_enabled): Likewise.
3150 (dtrace_probe_ops): New variable.
3151 (info_probes_dtrace_command): New function.
3152 (_initialize_dtrace_probe): Likewise.
3153 (dtrace_type_name): Likewise.
3154
3155 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3156
3157 * gdbarch.sh (dtrace_parse_probe_argument): New.
3158 (dtrace_probe_is_enabled): Likewise.
3159 (dtrace_enable_probe): Likewise.
3160 (dtrace_disable_probe): Likewise.
3161 * gdbarch.c: Regenerate.
3162 * gdbarch.h: Regenerate.
3163
3164 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3165
3166 * stap-probe.c (stap_probe_ops): Add NULLs in the static
3167 stap_probe_ops for `enable_probe' and `disable_probe'.
3168 * probe.c (enable_probes_command): New function.
3169 (disable_probes_command): Likewise.
3170 (_initialize_probe): Define the cli commands `enable probe' and
3171 `disable probe'.
3172 (parse_probe_linespec): New function.
3173 (info_probes_for_ops): Use parse_probe_linespec.
3174 * probe.h (probe_ops): New hooks `enable_probe' and
3175 `disable_probe'.
3176
3177 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3178
3179 * probe.c (compute_probe_arg): Moved from stap-probe.c
3180 (compile_probe_arg): Likewise.
3181 (probe_funcs): Likewise.
3182 * stap-probe.c (compute_probe_arg): Moved to probe.c.
3183 (compile_probe_arg): Likewise.
3184 (probe_funcs): Likewise.
3185
3186 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3187
3188 * probe.c (print_ui_out_not_applicables): New function.
3189 (exists_probe_with_pops): Likewise.
3190 (info_probes_for_ops): Do not include column headers for probe
3191 types for which no probe has been actually found on any object.
3192 Also invoke `print_ui_out_not_applicables' in order to match the
3193 column rows with the header when probes of several types are
3194 listed.
3195 Print the "Type" column.
3196 * probe.h (probe_ops): Added a new probe operation `type_name'.
3197 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
3198 (stap_type_name): New function.
3199
3200 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
3201
3202 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
3203 (key_is_command_char): Delete.
3204
3205 2015-02-17 Pedro Alves <palves@redhat.com>
3206
3207 * tui/tui.c (tui_enable): Resize windows before anything
3208 might show a window.
3209
3210 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
3211
3212 PR gdb/17984
3213 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
3214 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
3215 call.
3216 * aarch64-tdep.h (tdesc_aarch64): Declare.
3217
3218 2015-02-12 Mark Wielaard <mjw@redhat.com>
3219
3220 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
3221
3222 2015-02-13 Doug Evans <dje@google.com>
3223
3224 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
3225 anonymous_namespace to is_in_anonymous for consistency with the rest
3226 of the file.
3227 (cp_lookup_bare_symbol): Fix typo in comment.
3228 (cp_search_static_and_baseclasses): Ditto.
3229 (search_symbol_list): Use vertical space in comment better.
3230 (reset_directive_searched): Ditto. Fix typo.
3231 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
3232
3233 2015-02-13 Yao Qi <yao.qi@arm.com>
3234
3235 * MAINTAINERS: Update my email address.
3236
3237 2015-02-12 Doug Evans <dje@google.com>
3238
3239 * symtab.c (completion_list_add_name): Fix memory leak.
3240
3241 2015-02-12 Doug Evans <dje@google.com>
3242
3243 * completer.c (complete_line): Remove incorrect comment.
3244
3245 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3246
3247 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
3248 (py_print_frame): Use RETURN_MASK_ERROR.
3249
3250 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
3253 function comment. Wrap all function that can throw in cleanups.
3254 (gdbpy_apply_frame_filter): Wrap all function that can throw in
3255 cleanups.
3256
3257 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3258
3259 * python/py-framefilter.c (py_print_frame): Substitute goto error.
3260 Remove the error label.
3261
3262 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 * python/py-framefilter.c (py_print_frame): Put conditional code paths
3265 with goto first, indent the former else codepath left. Put variable
3266 'elided' to a new inner block.
3267
3268 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
3271
3272 2015-02-11 Pedro Alves <palves@redhat.com>
3273
3274 * xcoffread.c (within_function): Delete.
3275
3276 2015-02-11 Tom Tromey <tromey@redhat.com>
3277 Pedro Alves <palves@redhat.com>
3278
3279 * breakpoint.c (base_breakpoint_ops): Delete.
3280 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
3281 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
3282 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
3283 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
3284 * python/py-arch.c (arch_object_type): Make extern.
3285 * python/py-block.c (block_syms_iterator_object_type): Make extern.
3286 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
3287 * python/py-cmd.c (cmdpy_object_type): Make extern.
3288 * python/py-continueevent.c (continue_event_object_type)
3289 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
3290 parameter. Update all callers.
3291 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
3292 * python/py-exitedevent.c (exited_event_object_type): Make extern.
3293 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
3294 * python/py-function.c (fnpy_object_type): Make extern.
3295 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
3296 * python/py-infevents.c (call_pre_event_object_type)
3297 (inferior_call_post_event_object_type).
3298 (memory_changed_event_object_type): Make extern.
3299 * python/py-infthread.c (thread_object_type): Make extern.
3300 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
3301 * python/py-linetable.c (linetable_entry_object_type)
3302 (linetable_object_type, ltpy_iterator_object_type): Make extern.
3303 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3304 (clear_objfiles_event_object_type): Make extern.
3305 * python/py-objfile.c (objfile_object_type): Make extern.
3306 * python/py-param.c (parmpy_object_type): Make extern.
3307 * python/py-progspace.c (pspace_object_type): Make extern.
3308 * python/py-signalevent.c (signal_event_object_type): Make extern.
3309 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
3310 * python/py-type.c (type_object_type, field_object_type)
3311 (type_iterator_object_type): Make extern.
3312 * python/python.c (python_extension_script_ops)
3313 (python_extension_ops): Make extern.
3314 * stap-probe.c (stap_probe_ops): Make extern.
3315
3316 2015-02-11 Pedro Alves <pedro@codesourcery.com>
3317
3318 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
3319 because the event thread is not the current thread.
3320
3321 2015-02-11 Doug Evans <xdje42@gmail.com>
3322
3323 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
3324 been initialized yet, return NULL.
3325
3326 2015-02-11 Doug Evans <dje@google.com>
3327
3328 * symfile.h (new_symfile_objfile): Delete.
3329 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
3330 All callers updated.
3331
3332 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3333
3334 * tui/tui-io.c (tui_handle_resize_during_io): Call
3335 tui_update_gdb_sizes() after resizing the screen.
3336 * tui/tui.c (tui_enable): Resize the terminal before
3337 calling tui_update_gdb_sizes().
3338
3339 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3340
3341 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
3342 line before printing a newline.
3343
3344 2015-02-11 Mark Wielaard <mjw@redhat.com>
3345
3346 * utils.c (producer_is_gcc): Return true or false.
3347
3348 2015-02-10 Mark Wielaard <mjw@redhat.com>
3349
3350 * utils.h (producer_is_gcc): Change return type to bool. Add major
3351 argument.
3352 * utils.c (producer_is_gcc): Likewise.
3353 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
3354 * dwarf2read.c (check_producer): Likewise.
3355
3356 2015-02-10 Pedro Alves <palves@redhat.com>
3357
3358 * infrun.c (displaced_step_fixup): Switch to the event thread
3359 before calling gdbarch_displaced_step_fixup.
3360
3361 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
3362
3363 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
3364
3365 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
3366
3367 * ada-varobj.c (ada_name_of_child): Constify parent.
3368 (ada_path_expr_of_child): Same.
3369 (ada_value_of_child): Same.
3370 (ada_type_of_child): Same.
3371 * c-varobj.c (c_is_path_expr_parent): Same.
3372 (c_describe_child): Same.
3373 (c_name_of_child): Same.
3374 (c_value_of_child): Same.
3375 (c_type_of_child): Same.
3376 (cplus_number_of_children): Same.
3377 (cplus_describe_child): Constify var.
3378 (cplus_name_of_child): Constify parent.
3379 (cplus_value_of_child): Same.
3380 (cplus_type_of_child): Same.
3381 * jv-varobj.c (java_name_of_child): Same.
3382 (java_value_of_child): Same.
3383 (java_type_of_child): Same.
3384 * varobj.c (value_of_child): Same.
3385 (varobj_default_is_path_expr_parent): Constify var, parent and return
3386 value.
3387 (varobj_get_path_expr): Constify var, modify path_expr through
3388 mutable_var.
3389 (install_new_value): Constify parent.
3390 (value_of_child): Constify parent.
3391 * varobj.h (struct varobj): Constify parent.
3392 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
3393 type_of_child.
3394 (varobj_get_path_expr): Constify var.
3395 (varobj_get_path_expr_parent): Constify var and return value.
3396
3397 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
3398
3399 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
3400 (arm_prologue_this_id): Move PC and SP limit checks to
3401 arm_prologue_unwind_stop_reason.
3402 (arm_prologue_unwind) <stop_reason> : Set to
3403 arm_prologue_unwind_stop_reason.
3404
3405 2015-02-09 Mark Wielaard <mjw@redhat.com>
3406
3407 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
3408 DW_LANG_Fortran08 as language_fortran.
3409
3410 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
3411
3412 PR remote/17946
3413 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
3414 of pointer against char.
3415
3416 2015-02-09 Mark Wielaard <mjw@redhat.com>
3417
3418 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
3419 (c_type_print_modifier): Likewise.
3420 * dwarf2read.c (read_tag_atomic_type): New function.
3421 (read_type_die_1): Handle DW_TAG_atomic_type.
3422 * gdbtypes.c (make_atomic_type): New function.
3423 (recursive_dump_type): Handle TYPE_ATOMIC.
3424 * gdbtypes.h (enum type_flag_values): Renumber.
3425 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
3426 (TYPE_ATOMIC): New macro.
3427 (make_atomic_type): Declare.
3428
3429 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3430
3431 * btrace.c (ftrace_find_call): Skip gaps.
3432 (ftrace_new_function): Initialize level.
3433 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
3434 (ftrace_new_switch): Update
3435 level computation.
3436 (ftrace_new_gap): New.
3437 (ftrace_update_function): Create new function after gap.
3438 (btrace_compute_ftrace_bts): Create gap on error.
3439 (btrace_stitch_bts): Update parameters. Clear trace if it
3440 becomes empty.
3441 (btrace_stitch_trace): Update parameters. Update callers.
3442 (btrace_clear): Reset the number of gaps.
3443 (btrace_insn_get): Return NULL if the iterator points to a gap.
3444 (btrace_insn_number): Return zero if the iterator points to a gap.
3445 (btrace_insn_end): Allow gaps at the end.
3446 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
3447 (btrace_find_insn_by_number): Assert that the found iterator does
3448 not point to a gap.
3449 (btrace_call_next, btrace_call_prev): Assert that the last function
3450 is not a gap.
3451 * btrace.h (btrace_bts_error): New.
3452 (btrace_function): Update comment.
3453 (btrace_function) <insn, insn_offset, number>: Update comment.
3454 (btrace_function) <errcode>: New.
3455 (btrace_thread_info) <ngaps>: New.
3456 (btrace_thread_info) <replay>: Update comment.
3457 (btrace_insn_get): Update comment.
3458 * record-btrace.c (btrace_ui_out_decode_error): New.
3459 (record_btrace_info): Print number of gaps.
3460 (btrace_insn_history, btrace_call_history): Call
3461 btrace_ui_out_decode_error for gaps.
3462 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
3463
3464 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3465
3466 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
3467 * nat/linux-btrace.c: (btrace_this_cpu): New.
3468 (cpu_supports_bts): Call btrace_this_cpu.
3469 (intel_supports_bts): Add cpu parameter.
3470
3471 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3472
3473 * btrace.h (btrace_insn_class): New.
3474 (btrace_insn) <size, iclass>: New.
3475 * btrace.c (ftrace_find_call): Update parameters. Update users.
3476 Use instruction classification.
3477 (ftrace_new_return): Update parameters. Update users.
3478 (ftrace_update_function): Update parameters. Update users. Use
3479 instruction classification.
3480 (ftrace_update_insns): Update parameters. Update users.
3481 (ftrace_classify_insn): New.
3482 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3483 TRY_CATCH around call to gdb_insn_length.
3484
3485 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3486
3487 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3488 Update parameters. Update users.
3489
3490 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3491
3492 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3493 (btrace_conf_bts_attributes): New.
3494 (btrace_conf_children): Add attributes.
3495 * common/btrace-common.h (btrace_config_bts): New.
3496 (btrace_config)<bts>: New.
3497 (btrace_config): Update comment.
3498 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3499 Use config.
3500 * features/btrace-conf.dtd: Increment version. Add size
3501 attribute to bts element.
3502 * record-btrace.c (set_record_btrace_bts_cmdlist,
3503 show_record_btrace_bts_cmdlist): New.
3504 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3505 record_btrace_print_conf, cmd_set_record_btrace_bts,
3506 cmd_show_record_btrace_bts): New.
3507 (record_btrace_info): Call record_btrace_print_conf.
3508 (_initialize_record_btrace): Add commands.
3509 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
3510 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
3511 (btrace_sync_conf): Synchronize bts size.
3512 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
3513 * NEWS: Announce new commands and new packets.
3514
3515 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3516
3517 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
3518 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
3519 (x86_linux_btrace_conf): New.
3520 (x86_linux_create_target): Initialize to_btrace_conf.
3521 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
3522 Check format. Split into this and ...
3523 (linux_enable_bts): ... this.
3524 (linux_btrace_conf): New.
3525 (perf_event_skip_record): Renamed into ...
3526 (perf_event_skip_bts_record): ... this. Updated users.
3527 (linux_disable_btrace): Split into this and ...
3528 (linux_disable_bts): ... this.
3529 (linux_read_btrace): Check format.
3530 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3531 (linux_btrace_conf): New.
3532 (btrace_target_info)<ptid>: Moved.
3533 (btrace_target_info)<conf>: New.
3534 (btrace_target_info): Split into this and ...
3535 (btrace_tinfo_bts): ... this. Updated users.
3536 * btrace.c (btrace_enable): Update parameters.
3537 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3538 (btrace_conf_children, btrace_conf_attributes)
3539 (btrace_conf_elements): New.
3540 * btrace.h (btrace_enable): Update parameters.
3541 (btrace_conf, parse_xml_btrace_conf): New.
3542 * common/btrace-common.h (btrace_config): New.
3543 * feature/btrace-conf.dtd: New.
3544 * record-btrace.c (record_btrace_conf): New.
3545 (record_btrace_cmdlist): New.
3546 (record_btrace_enable_warn, record_btrace_open): Pass
3547 &record_btrace_conf.
3548 (record_btrace_info): Print recording format.
3549 (cmd_record_btrace_bts_start): New.
3550 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3551 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3552 Add "record bts" alias command.
3553 * remote.c (remote_state)<btrace_config>: New.
3554 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3555 (remote_protocol_features): Add qXfer:btrace-conf:read.
3556 (remote_open_1): Call remote_btrace_reset.
3557 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3558 (btrace_target_info)<conf>: New.
3559 (btrace_sync_conf, btrace_read_config): New.
3560 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3561 btrace_read_conf.
3562 (remote_btrace_conf): New.
3563 (init_remote_ops): Initialize to_btrace_conf.
3564 (_initialize_remote): Add qXfer:btrace-conf packet.
3565 * target.c (target_enable_btrace): Update parameters.
3566 (target_btrace_conf): New.
3567 * target.h (target_enable_btrace): Update parameters.
3568 (target_btrace_conf): New.
3569 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3570 (target_ops)<to_enable_btrace>: Update parameters and comment.
3571 (target_ops)<to_btrace_conf>: New.
3572 * target-delegates: Regenerate.
3573 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3574 (target_debug_print_const_struct_btrace_target_info_p): New.
3575 * NEWS: Announce new command and new packet.
3576
3577 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3578
3579 * nat/linux-btrace.h (perf_event_buffer): New.
3580 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3581 <bts>: ... this.
3582 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3583 (perf_event_buffer_size, perf_event_buffer_begin)
3584 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3585 Updated users.
3586 (perf_event_new_data): New.
3587
3588 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3589
3590 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3591 * record-btrace.c (record_btrace_open): Remove call to
3592 target_supports_btrace.
3593 * remote.c (remote_supports_btrace): Update parameters.
3594 * target.c (target_supports_btrace): Update parameters.
3595 * target.h (to_supports_btrace, target_supports_btrace): Update
3596 parameters.
3597 * target-delegates.c: Regenerate.
3598 * target-debug.h (target_debug_print_enum_btrace_format): New.
3599 * nat/linux-btrace.c
3600 (kernel_supports_btrace): Rename into ...
3601 (kernel_supports_bts): ... this. Update users. Update warning text.
3602 (intel_supports_btrace): Rename into ...
3603 (intel_supports_bts): ... this. Update users.
3604 (cpu_supports_btrace): Rename into ...
3605 (cpu_supports_bts): ... this. Update users.
3606 (linux_supports_btrace): Update parameters. Split into this and ...
3607 (linux_supports_bts): ... this.
3608 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3609
3610 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3611
3612 * Makefile.in (SFILES): Add common/btrace-common.c.
3613 (COMMON_OBS): Add common/btrace-common.o.
3614 (btrace-common.o): Add build rules.
3615 * btrace.c (parse_xml_btrace): Update parameters.
3616 (parse_xml_btrace_block): Set format field.
3617 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3618 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3619 (btrace_compute_ftrace): Split into this and...
3620 (btrace_compute_ftrace_bts): ...this.
3621 (btrace_stitch_trace): Split into this and...
3622 (btrace_stitch_bts): ...this.
3623 * btrace.h (parse_xml_btrace): Update parameters.
3624 (make_cleanup_btrace_data): New.
3625 * common/btrace-common.c: New.
3626 * common/btrace-common.h: Include common-defs.h.
3627 (btrace_block_s): Update comment.
3628 (btrace_format): New.
3629 (btrace_format_string): New.
3630 (btrace_data_bts): New.
3631 (btrace_data): New.
3632 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3633 * remote.c (remote_read_btrace): Update parameters.
3634 * target.c (target_read_btrace): Update parameters.
3635 * target.h (target_read_btrace): Update parameters.
3636 (target_ops)<to_read_btrace>: Update parameters.
3637 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3638 * target-delegates.c: Regenerate.
3639 * target-debug (target_debug_print_struct_btrace_data_p): New.
3640 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3641 (linux_read_bts): ...this.
3642 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3643
3644 2015-02-06 Doug Evans <dje@google.com>
3645
3646 * remote-m32r-sdi.c: Include symfile.h.
3647
3648 2015-02-06 Doug Evans <dje@google.com>
3649
3650 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3651 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3652 to here.
3653
3654 2015-02-06 Pedro Alves <palves@redhat.com>
3655
3656 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3657
3658 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3659
3660 PR gdb/15678
3661 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3662 (enable_count_command): Check args for NULL value.
3663
3664 2015-02-05 Doug Evans <xdje42@gmail.com>
3665
3666 * guile/scm-frame.c: Fix spelling errors in a comment.
3667
3668 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3669
3670 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3671 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3672 return type.
3673
3674 2015-02-04 Pedro Alves <palves@redhat.com>
3675
3676 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3677 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3678 returns true.
3679 (resume_stopped_resumed_lwps): Don't check whether the thread is
3680 marked as executing.
3681 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3682
3683 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3684
3685 * regset.h (struct regset): Add flags field.
3686 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3687 * corelow.c (get_core_register_section): Add warning if the size
3688 exceeds the requested size and the regset does not have the
3689 REGSET_VARIABLE_SIZE flag set.
3690 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3691 flag.
3692 * armbsd-tdep.c (armbsd_gregset): Likewise.
3693 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3694 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3695 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3696 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3697
3698 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3699
3700 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3701 For ".reg-xstate", explicitly specify the requested section size
3702 via X86_XSTATE_SIZE instead of just 0 on input and
3703 X86_XSTATE_MAX_SIZE on output.
3704 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3705 Likewise.
3706
3707 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3708
3709 PR corefiles/17808:
3710 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3711 function type, particularly its SIZE parameter.
3712 * gdbarch.h: Regenerate.
3713 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3714 actual against required size using ">=" instead of "==".
3715 (amd64_collect_fpregset): Likewise.
3716 * i386-tdep.c (i386_supply_gregset): Likewise.
3717 (i386_collect_gregset): Likewise.
3718 (i386_supply_fpregset): Likewise.
3719 (i386_collect_fpregset): Likewise.
3720 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3721 (mips_fill_gregset_wrapper): Likewise.
3722 (mips_supply_fpregset_wrapper): Likewise.
3723 (mips_fill_fpregset_wrapper): Likewise.
3724 (mips64_supply_gregset_wrapper): Likewise.
3725 (mips64_fill_gregset_wrapper): Likewise.
3726 (mips64_supply_fpregset_wrapper): Likewise.
3727 (mips64_fill_fpregset_wrapper): Likewise.
3728 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3729 (am33_supply_fpregset_method): Likewise.
3730 (am33_collect_gregset_method): Likewise.
3731 (am33_collect_fpregset_method): Likewise.
3732
3733 2015-02-04 Doug Evans <dje@google.com>
3734 Pedro Alves <palves@redhat.com>
3735 Eli Zaretskii <eliz@gnu.org>
3736
3737 PR tui/17810
3738 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3739 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3740 * tui/tui-file.c: #include tui/tui-command.h.
3741 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3742 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3743 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3744
3745 2015-02-04 Pedro Alves <palves@redhat.com>
3746
3747 Fix build breakage.
3748 * event-loop.c (gdb_do_one_event): Add default switch case.
3749
3750 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 Filter out inferior gcc option -fpreprocessed.
3753 * compile/compile.c (filter_args): New function.
3754 (get_args): Use it.
3755
3756 2015-02-03 Pedro Alves <palves@redhat.com>
3757
3758 * event-loop.c: Don't declare nor define a queue type for
3759 gdb_event_p.
3760 (event_queue): Delete.
3761 (create_event, create_file_event, gdb_event_xfree)
3762 (initialize_event_loop, process_event): Delete.
3763 (gdb_do_one_event): Return as soon as one event is handled.
3764 (handle_file_event): Change prototype. Used the passed in
3765 file_handler pointer and ready_mask instead of looping over all
3766 file handlers.
3767 (gdb_wait_for_event): Update the poll/select timeouts before
3768 blocking. Run event handlers directly instead of queueing events.
3769 Return as soon as one event is handled.
3770 (struct async_event_handler_data): Delete.
3771 (invoke_async_event_handler): Delete.
3772 (check_async_event_handlers): Change return type to int. Run
3773 event handlers directly instead of queueing events. Return as
3774 soon as one event is handled.
3775 (handle_timer_event): Delete.
3776 (update_wait_timeout): New function, factored out from
3777 poll_timers.
3778 (poll_timers): Reimplement.
3779 * event-loop.h (initialize_event_loop): Delete declaration.
3780 * top.c (gdb_init): Don't call initialize_event_loop.
3781
3782 2015-02-03 Pedro Alves <palves@redhat.com>
3783
3784 * event-loop.c (clear_async_event_handler): New function.
3785 * event-loop.h (clear_async_event_handler): New declaration.
3786 * record-btrace.c (record_btrace_async): New function.
3787 (init_record_btrace_ops): Install record_btrace_async.
3788 * record-full.c (record_full_async): New function.
3789 (record_full_resume): Don't mark the async event source here.
3790 (init_record_full_ops): Install record_full_async.
3791 (record_full_core_resume): Don't mark the async event source here.
3792 (init_record_full_core_ops): Install record_full_async.
3793 * remote.c (remote_async): Mark and clear the async stop reply
3794 queue event-loop token as appropriate.
3795
3796 2015-02-03 Pedro Alves <palves@redhat.com>
3797
3798 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3799 target_is_async_p instead of target_can_async.
3800 (linux_nat_wait): Use target_is_async_p instead of
3801 target_can_async. Don't enable async here.
3802 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3803 target_is_async_p instead of target_can_async.
3804
3805 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3806
3807 * varobj.h (lang_varobj_ops): Mention which return values need
3808 to be freed.
3809
3810 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3811
3812 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3813
3814 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3815
3816 PR gdb/17856:
3817 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3818 results found in the cache.
3819
3820 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3821
3822 PR gdb/17854:
3823 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3824 when allocating a new one.
3825
3826 2015-02-01 Tom Tromey <tom@tromey.com>
3827
3828 * MAINTAINERS: Remove myself.
3829
3830 2015-01-31 Doug Evans <xdje42@gmail.com>
3831
3832 * dwarf2read.c (process_structure_scope): Update setting of
3833 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3834 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3835 (set_type_vptr_fieldno): New function.
3836 (internal_type_vptr_basetype): New function.
3837 (set_type_vptr_basetype): New function.
3838 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3839 TYPE_VPTR_BASETYPE.
3840 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3841 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3842 (print_cplus_stuff): ... moved here.
3843 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3844 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3845 moved to ...
3846 (struct cplus_struct_type): ... here. All uses updated.
3847 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3848 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3849 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3850 * stabsread.c (read_tilde_fields): Update setting of
3851 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3852
3853 2015-01-31 Doug Evans <xdje42@gmail.com>
3854
3855 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3856 to self_p.
3857 (cp_print_class_member): Rename local domain to self_type.
3858 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3859 domain_type to self_type.
3860 (set_die_type) <need_gnat_info>: Handle
3861 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3862 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3863 TYPE_SPECIFIC_SELF_TYPE.
3864 * gdbtypes.c (internal_type_self_type): New function.
3865 (set_type_self_type): New function.
3866 (smash_to_memberptr_type): Rename parameter domain to self_type.
3867 Update setting of TYPE_SELF_TYPE.
3868 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3869 (smash_to_method_type): Rename parameter domain to self_type.
3870 Update setting of TYPE_SELF_TYPE.
3871 (check_stub_method): Call smash_to_method_type.
3872 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3873 (copy_type_recursive): Ditto.
3874 * gdbtypes.h (enum type_specific_kind): New value
3875 TYPE_SPECIFIC_SELF_TYPE.
3876 (struct main_type) <type_specific>: New member self_type.
3877 (struct cplus_struct_type) <fn_field.type>: Update comment.
3878 (TYPE_SELF_TYPE): Rewrite.
3879 (internal_type_self_type, set_type_self_type): Declare.
3880 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3881 self_type.
3882 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3883 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3884 TYPE_TARGET_TYPE.
3885 * stabsread.c (read_member_functions): Mark methods with
3886 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3887 TYPE_SELF_TYPE.
3888
3889 2015-01-31 Doug Evans <xdje42@gmail.com>
3890
3891 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3892 All uses updated.
3893
3894 2015-01-31 Doug Evans <xdje42@gmail.com>
3895
3896 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3897 or unions. Return zero if union.
3898 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3899 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3900 gnuv3_get_vtable.
3901 (compute_vtable_size): Assert only passed structs.
3902 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3903
3904 2015-01-31 Doug Evans <xdje42@gmail.com>
3905
3906 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3907 kinds.
3908
3909 2015-01-31 Gary Benson <gbenson@redhat.com>
3910 Doug Evans <dje@google.com>
3911
3912 PR cli/9007
3913 PR cli/11920
3914 PR cli/15548
3915 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3916 reached.
3917 * common/common-exceptions.h (enum errors)
3918 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3919 * completer.h (get_max_completions_reached_message): New declaration.
3920 (max_completions): Likewise.
3921 (completion_tracker_t): New typedef.
3922 (new_completion_tracker): New declaration.
3923 (make_cleanup_free_completion_tracker): Likewise.
3924 (maybe_add_completion_enum): New enum.
3925 (maybe_add_completion): New declaration.
3926 (throw_max_completions_reached_error): Likewise.
3927 * completer.c (max_completions): New global variable.
3928 (new_completion_tracker): New function.
3929 (free_completion_tracker): Likewise.
3930 (make_cleanup_free_completion_tracker): Likewise.
3931 (maybe_add_completions): Likewise.
3932 (throw_max_completions_reached_error): Likewise.
3933 (complete_line): Remove duplicates and limit result to max_completions
3934 entries.
3935 (get_max_completions_reached_message): New function.
3936 (gdb_display_match_list): Handle max_completions.
3937 (_initialize_completer): New declaration and function.
3938 * symtab.c: Include completer.h.
3939 (completion_tracker): New static variable.
3940 (completion_list_add_name): Call maybe_add_completion.
3941 (default_make_symbol_completion_list_break_on_1): Renamed from
3942 default_make_symbol_completion_list_break_on. Maintain
3943 completion_tracker across calls to completion_list_add_name.
3944 (default_make_symbol_completion_list_break_on): New function.
3945 * top.c (init_main): Set rl_completion_display_matches_hook.
3946 * tui/tui-io.c: Include completer.h.
3947 (tui_old_rl_display_matches_hook): New static global.
3948 (tui_rl_display_match_list): Notify user if max-completions reached.
3949 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3950 * NEWS (New Options): Mention set/show max-completions.
3951
3952 2015-01-31 Gary Benson <gbenson@redhat.com>
3953
3954 * symtab.c (struct add_name_data) <code>: New field.
3955 Updated comments.
3956 (add_symtab_completions): New function.
3957 (symtab_expansion_callback): Likewise.
3958 (default_make_symbol_completion_list_break_on): Set datum.code.
3959 Move minimal symbol scan before calling expand_symtabs_matching.
3960 Scan known primary symtabs for externs and statics before calling
3961 expand_symtabs_matching. Pass symtab_expansion_callback as
3962 expansion_notify argument to expand_symtabs_matching. Do not scan
3963 primary symtabs for externs and statics after calling
3964 expand_symtabs_matching.
3965
3966 2015-01-31 Gary Benson <gbenson@redhat.com>
3967
3968 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3969 (struct quick_symbol_functions) <expand_symtabs_matching>:
3970 New argument expansion_notify. All uses updated.
3971 (expand_symtabs_matching): New argument expansion_notify.
3972 All uses updated.
3973 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3974 Also print expansion notify.
3975 * symtab.c (expand_symtabs_matching_via_partial): Call
3976 expansion_notify whenever a partial symbol table is expanded.
3977 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3978 expansion_notify whenever a symbol table is instantiated.
3979
3980 2015-01-31 Doug Evans <xdje42@gmail.com>
3981
3982 * cli-out.c: #include completer.h, readline/readline.h.
3983 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3984 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3985 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3986 * cli-out.h (cli_display_match_list): Declare.
3987 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3988 (ELLIPSIS_LEN): Ditto.
3989 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3990 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3991 (gdb_fnprint, gdb_print_filename): Ditto.
3992 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3993 (gdb_display_match_list): Ditto.
3994 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3995 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3996 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3997 (match_list_displayer): New struct.
3998 (gdb_display_match_list): Declare.
3999 * top.c (init_main): Set rl_completion_display_matches_hook.
4000 * tui/tui-io.c: #include completer.h.
4001 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
4002 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
4003 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
4004 (tui_mld_getc, tui_mld_read_key): Ditto.
4005 (tui_rl_display_match_list): Rewrite.
4006 (tui_handle_resize_during_io): New arg for_completion. All callers
4007 updated.
4008
4009 2015-01-31 Doug Evans <xdje42@gmail.com>
4010
4011 Add symbol lookup cache.
4012 * NEWS: Document new options and commands.
4013 * symtab.c (symbol_cache_key): New static global.
4014 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
4015 (SYMBOL_LOOKUP_FAILED): New macro.
4016 (symbol_cache_slot_state): New enum.
4017 (block_symbol_cache): New struct.
4018 (symbol_cache): New struct.
4019 (new_symbol_cache_size, symbol_cache_size): New static globals.
4020 (hash_symbol_entry, eq_symbol_entry): New functions.
4021 (symbol_cache_byte_size, resize_symbol_cache): New functions.
4022 (make_symbol_cache, free_symbol_cache): New functions.
4023 (get_symbol_cache, symbol_cache_cleanup): New function.
4024 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
4025 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
4026 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
4027 (symbol_cache_flush, symbol_cache_dump): New functions.
4028 (maintenance_print_symbol_cache): New function.
4029 (maintenance_flush_symbol_cache): New function.
4030 (symbol_cache_stats): New function.
4031 (maintenance_print_symbol_cache_statistics): New function.
4032 (symtab_new_objfile_observer): New function.
4033 (symtab_free_objfile_observer): New function.
4034 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
4035 (_initialize_symtab): Init symbol_cache_key. New parameter
4036 maint symbol-cache-size. New maint commands print symbol-cache,
4037 print symbol-cache-statistics, flush-symbol-cache.
4038 Install new_objfile, free_objfile observers.
4039
4040 2015-01-31 Joel Brobecker <brobecker@adacore.com>
4041
4042 PR symtab/17855
4043 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
4044 to end.
4045
4046 2015-01-31 Doug Evans <xdje42@gmail.com>
4047
4048 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
4049 * auto-load.c: #include ctype.h.
4050 (struct auto_load_pspace_info): Replace member loaded_scripts with
4051 new members loaded_script_files, loaded_script_texts.
4052 (auto_load_pspace_data_cleanup): Update.
4053 (init_loaded_scripts_info): Update.
4054 (get_auto_load_pspace_data_for_loading): Update.
4055 (maybe_add_script_file): Renamed from maybe_add_script. All callers
4056 updated.
4057 (maybe_add_script_text): New function.
4058 (clear_section_scripts): Update.
4059 (source_script_file, execute_script_contents): New functions.
4060 (source_section_scripts): Add support for
4061 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
4062 (print_scripts): New function.
4063 (auto_load_info_scripts): Also print inlined scripts.
4064 (maybe_print_unsupported_script_warning): Renamed from
4065 unsupported_script_warning_print. All callers updated.
4066 (maybe_print_script_not_found_warning): Renamed from
4067 script_not_found_warning_print. All callers updated.
4068 * extension-priv.h (struct extension_language_script_ops): New member
4069 objfile_script_executor.
4070 * extension.c (ext_lang_objfile_script_executor): New function.
4071 * extension.h (objfile_script_executor_func): New typedef.
4072 (ext_lang_objfile_script_executor): Declare.
4073 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
4074 * guile/guile.c (guile_extension_script_ops): Update.
4075 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
4076 * python/python.c (python_extension_script_ops): Update.
4077 (gdbpy_execute_objfile_script): New function.
4078
4079 2015-01-31 Eli Zaretskii <eliz@gnu.org>
4080
4081 * tui/tui-io.c (tui_expand_tabs): New function.
4082 (tui_puts, tui_redisplay_readline): Expand TABs into the
4083 appropriate number of spaces.
4084 * tui/tui-regs.c: Include tui-io.h.
4085 (tui_register_format): Call tui_expand_tabs to expand TABs into
4086 the appropriate number of spaces.
4087 * tui/tui-io.h: Add prototype for tui_expand_tabs.
4088
4089 2015-01-30 Doug Evans <dje@google.com>
4090
4091 * NEWS: "info source" command now display producer string if present.
4092 * source.c (source_info): Print producer string if present.
4093
4094 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4095
4096 * varobj.c (varobj_delete): Fix comment.
4097
4098 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4099
4100 * varobj.c (create_child): Modify comment.
4101
4102 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4103
4104 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
4105 parameter.
4106 (ada_name_of_variable): Same.
4107 (ada_path_expr_of_child): Same.
4108 (ada_value_of_variable): Same.
4109 (ada_value_is_changeable_p): Same.
4110 (ada_value_has_mutated): Same.
4111 * c-varobj.c (varobj_is_anonymous_child): Same.
4112 (c_is_path_expr_parent): Same.
4113 (c_number_of_children): Same.
4114 (c_name_of_variable): Same.
4115 (c_path_expr_of_child): Same.
4116 (get_type): Same.
4117 (c_value_of_variable): Same.
4118 (cplus_number_of_children): Same.
4119 (cplus_name_of_variable): Same.
4120 (cplus_path_expr_of_child): Same.
4121 (cplus_value_of_variable): Same.
4122 * jv-varobj.c (java_number_of_children): Same.
4123 (java_name_of_variable): Same.
4124 (java_path_expr_of_child): Same.
4125 (java_value_of_variable): Same.
4126 * varobj.c (number_of_children): Same.
4127 (name_of_variable): Same.
4128 (is_root_p): Same.
4129 (varobj_ensure_python_env): Same.
4130 (varobj_get_objname): Same.
4131 (varobj_get_expression): Same.
4132 (varobj_get_display_format): Same.
4133 (varobj_get_display_hint): Same.
4134 (varobj_has_more): Same.
4135 (varobj_get_thread_id): Same.
4136 (varobj_get_frozen): Same.
4137 (dynamic_varobj_has_child_method): Same.
4138 (varobj_get_gdb_type): Same.
4139 (is_path_expr_parent): Same.
4140 (varobj_default_is_path_expr_parent): Same.
4141 (varobj_get_language): Same.
4142 (varobj_get_attributes): Same.
4143 (varobj_is_dynamic_p): Same.
4144 (varobj_get_child_range): Same.
4145 (varobj_value_has_mutated): Same.
4146 (varobj_get_value_type): Same.
4147 (number_of_children): Same.
4148 (name_of_variable): Same.
4149 (check_scope): Same.
4150 (varobj_editable_p): Same.
4151 (varobj_value_is_changeable_p): Same.
4152 (varobj_floating_p): Same.
4153 (varobj_default_value_is_changeable_p): Same.
4154
4155 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4156
4157 * varobj.c (varobj_get_path_expr): Set var->path_expr.
4158 * c-varobj.c (c_path_expr_of_child): Set local var instead of
4159 child->path_expr.
4160 (cplus_path_expr_of_child): Same.
4161
4162 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4163
4164 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
4165 result.
4166 (mi_cmd_var_info_expression): Same.
4167 * varobj.c (varobj_get_expression): Mention in the comment that
4168 the result must by freed by the caller.
4169
4170 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4171
4172 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
4173 varobj_get_type.
4174 (varobj_update_one): Same.
4175 * varobj.c (update_type_if_necessary): Free curr_type_str and
4176 new_type_str.
4177 (varobj_get_type): Specify in comment that the result needs to be
4178 freed by the caller.
4179
4180 2015-01-29 Doug Evans <dje@google.com>
4181
4182 PR symtab/17890
4183 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
4184
4185 2015-01-25 Mark Wielaard <mjw@redhat.com>
4186
4187 * dwarf2read.c (checkproducer): Call producer_is_gcc.
4188 * utils.c (producer_is_gcc_ge_4): Likewise.
4189 (producer_is_gcc): New function.
4190 * utils.h (producer_is_gcc): New declaration.
4191
4192 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4193
4194 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4195 kind.
4196 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
4197 parameter by "addr_stack" parameter.
4198 (resolve_dynamic_range): Replace "addr" parameter by
4199 "stack_addr" parameter. Update function documentation.
4200 Update code accordingly.
4201 (resolve_dynamic_array, resolve_dynamic_union)
4202 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
4203 (resolve_dynamic_type): Update code, following the changes made
4204 to resolve_dynamic_type_internal's interface.
4205 * dwarf2loc.h (struct property_addr_info): New.
4206 (dwarf2_evaluate_property): Replace "address" parameter
4207 by "addr_stack" parameter. Adjust function documentation.
4208 (struct dwarf2_offset_baton): New.
4209 (struct dwarf2_property_baton): Update documentation of
4210 field "referenced_type" to be more general. New field
4211 "offset_info" in union data field.
4212 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
4213 parameter by "addr_stack" parameter. Adjust code accordingly.
4214 Add support for PROP_ADDR_OFFSET properties.
4215 * dwarf2read.c (attr_to_dynamic_prop): Add support for
4216 DW_AT_data_member_location attributes as well. Use case
4217 statements instead of if/else condition.
4218
4219 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4220
4221 * ada-varobj.c (ada_varobj_get_array_number_of_children):
4222 Return zero if PARENT_VALUE is NULL and parent_type's
4223 range type is dynamic.
4224
4225 2015-01-29 Joel Brobecker <brobecker@adacore.com>
4226
4227 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
4228 nonzero if the type's subtype is dynamic.
4229 (resolve_dynamic_range): Also resolve the range's subtype.
4230
4231 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
4232
4233 Pushed by Joel Brobecker <brobecker@adacore.com>.
4234 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
4235
4236 2015-01-27 Doug Evans <dje@google.com>
4237
4238 * NEWS: Mention gdb.Objfile.username.
4239 * python/py-objfile.c (objfpy_get_username): New function.
4240 (objfile_getset): Add "username".
4241
4242 2015-01-24 Mark Wielaard <mjw@redhat.com>
4243
4244 * stack.c (return_command): Markup warning message with _.
4245
4246 2015-01-24 Doug Evans <xdje42@gmail.com>
4247
4248 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4249
4250 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 Fix 100x slowdown regression on DWZ files.
4253 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
4254 (struct line_header): Add offset and offset_in_dwz.
4255 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
4256 (free_line_header_voidp): New declaration.
4257 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
4258 functions.
4259 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
4260 (handle_DW_AT_stmt_list): Use line_header_hash.
4261 (free_line_header_voidp): New function.
4262 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
4263 (dwarf_decode_lines): New parameter decode_mapping, use it.
4264 (dwarf2_free_objfile): Free line_header_hash.
4265
4266 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
4267
4268 PR gdb/17416
4269 * valops.c (value_rtti_indirect_type): Catch exception thrown by
4270 value_ind.
4271
4272 2015-01-15 Mark Wielaard <mjw@redhat.com>
4273
4274 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
4275 DW_AT_noreturn.
4276 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
4277 calling_convention an 8 bit bit field.
4278 (TYPE_NO_RETURN): New macro.
4279 * infcmd.c (finish_command): Query if function does not return
4280 normally.
4281 * stack.c (return_command): Likewise.
4282
4283 2015-01-23 Pedro Alves <palves@redhat.com>
4284
4285 * linux-nat.c (linux_is_async_p): New macro.
4286 (linux_nat_is_async_p):
4287 (linux_nat_terminal_inferior): Check whether the target can async
4288 instead of whether it is already async.
4289 (linux_nat_terminal_ours): Don't check whether the target is
4290 async.
4291 (linux_async_pipe): Use linux_is_async_p.
4292
4293 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4294
4295 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
4296 '-ascending'.
4297 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
4298 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
4299 Sort tp_array using tp_array_compar.
4300 (_initialize_thread): Extend thread_apply_all_command help.
4301
4302 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4303
4304 * corelow.c (core_open): Call also thread_command.
4305 * gdbthread.h (thread_command): New prototype moved from ...
4306 * thread.c (thread_command): ... here.
4307 (thread_command): Make it global.
4308
4309 2015-01-22 Pedro Alves <palves@redhat.com>
4310
4311 * configure.ac [*mingw32*]: Check $curses_found instead of
4312 $prefer_curses.
4313 * configure: Regenerate.
4314 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
4315 HAVE_NCURSES_NCURSES_H checks.
4316
4317 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4318
4319 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
4320 fails with the 1st arg NULL, try again with "unknown". Don't test
4321 the "cup" capability: it isn't supported by the Windows port of
4322 ncurses, but the Windows console driver is still capable of
4323 supporting TUI.
4324
4325 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4326
4327 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
4328
4329 2015-01-22 Eli Zaretskii <eliz@gnu.org>
4330
4331 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
4332 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
4333 reason that "make TAGS" is broken.
4334
4335 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
4336
4337 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4338 and check additional store instructions.
4339
4340 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4341
4342 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
4343
4344 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
4345
4346 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
4347 ppc_canonicalize_syscall, ppc_linux_syscall_record,
4348 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
4349 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4350 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
4351 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
4352 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
4353 ppc_process_record_op19, ppc_process_record_op31,
4354 ppc_process_record_op59, ppc_process_record_op60,
4355 ppc_process_record_op63): Likewise.
4356
4357 2015-01-20 Joel Brobecker <brobecker@adacore.com>
4358
4359 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
4360 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
4361 strerror.
4362
4363 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
4364
4365 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
4366 ppc_process_record_op31, ppc_process_record_op59,
4367 ppc_process_record_op60, ppc_process_record_op63,
4368 ppc_process_record): Fix -Wformat warning.
4369 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
4370 Remove unused variables.
4371
4372 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
4373
4374 * MAINTAINERS (Write After Approval): Add "Chen Gang".
4375
4376 2015-01-19 Eli Zaretskii <eliz@gnu.org>
4377
4378 * configure.ac [*mingw32*]: Only add windows-termcap.o to
4379 CONFIG_OBS if not building with a curses library.
4380 * configure: Regenerate.
4381
4382 * windows-termcap.c: Include defs.h. Make the whole body empty if
4383 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
4384 HAVE_NCURSES_NCURSES_H is defined.
4385
4386 2015-01-19 Joel Brobecker <brobecker@adacore.com>
4387
4388 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
4389 from end of line to start of next line.
4390
4391 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4392
4393 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
4394 Scan PLT stub backward for reverse debugging.
4395 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4396
4397 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4398 Ulrich Weigand <uweigand@de.ibm.com>
4399
4400 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
4401 gdb_target_obs.
4402 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
4403 record.
4404 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
4405 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
4406 (ppc_linux_init_abi): Set process_record, process_record_signal.
4407 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
4408 ppc_linux_record_tdep to gdbarch_tdep.
4409 (ppc_process_record): New declaration.
4410 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
4411 ppc_process_record_op19, ppc_process_record_op31,
4412 ppc_process_record_op59, ppc_process_record_op60,
4413 ppc_process_record_op63, ppc_process_record): New functions.
4414
4415 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
4416
4417 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4418 rs6000_in_function_epilogue_frame_p and add an argument
4419 for frame_info.
4420 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
4421 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
4422 New functions.
4423 (rs6000_epilogue_frame_unwind): New.
4424 (rs6000_gdbarch_init): Append epilogue unwinder.
4425
4426 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4427
4428 * nat/linux-personality.c: Replace "#ifndef
4429 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
4430 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
4431 systems.
4432
4433 2015-01-16 Eli Zaretskii <eliz@gnu.org>
4434
4435 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
4436 functions.
4437 (_initialize_tui_win) <border-kind, border-mode>:
4438 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
4439 (tui_set_tab_width_command): Fix the commentary.
4440
4441 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
4442
4443 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
4444 Doc fix.
4445 (tui_set_tab_width_command): Delete and recreate the source and
4446 the disassembly windows, to show the effect of the changed tab
4447 size immediately.
4448
4449 * tui/tui-data.h (LINE_PREFIX): Make shorter
4450 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
4451 "Thread NNNNN.XXXX" thread ID notation on Windows.
4452
4453 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 Fix gcc-5 compilation.
4456 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
4457
4458 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4459
4460 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4461 (linux-personality.o): New rule.
4462 * common/common-defs.h: Include <stdint.h>.
4463 * config/aarch64/linux.mh (NATDEPFILES): Include
4464 linux-personality.o.
4465 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4466 * config/arm/linux.mh (NATDEPFILES): Likewise.
4467 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4468 * config/i386/linux.mh (NATDEPFILES): Likewise.
4469 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4470 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4471 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4472 * config/mips/linux.mh (NATDEPFILES): Likewise.
4473 * config/pa/linux.mh (NATDEPFILES): Likewise.
4474 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4475 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4476 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4477 * config/s390/linux.mh (NATDEPFILES): Likewise.
4478 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4479 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4480 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4481 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4482 * defs.h: Remove #include <stdint.h> (moved to
4483 common/common-defs.h).
4484 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4485 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4486 nat/linux-personality.c).
4487 (linux_nat_create_inferior): Remove code to disable address space
4488 randomization (moved to nat/linux-personality.c). Create cleanup
4489 to disable address space randomization.
4490 * nat/linux-personality.c: New file.
4491 * nat/linux-personality.h: Likewise.
4492
4493 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4494
4495 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4496 common/posix-strerror.c.
4497 (posix-strerror.o): New rule.
4498 (mingw-strerror.o): Likewise.
4499 * common/common-utils.h (safe_strerror): Move prototype to here,
4500 from utils.h.
4501 * common/common.host: New file.
4502 * common/mingw-strerror.c: Likewise.
4503 * common/posix-strerror.c: Likewise.
4504 * configure: Regenerated.
4505 * configure.ac: Source common/common.host. Add variable
4506 common_host_obs to gdb_host_obs.
4507 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
4508 gdb/common/posix-strerror.c when warning about the use of
4509 strerror.
4510 * mingw-hdep.c (safe_strerror): Remove definition; move it to
4511 common/mingw-strerror.c.
4512 * posix-hdep.c (safe_strerror): Remove definition; move it to
4513 common/posix-hdep.c.
4514 * utils.h (safe_strerror): Remove prototype; move to
4515 common/common-utils.h.
4516
4517 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4518
4519 GDB 7.8.2 released.
4520
4521 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4522
4523 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
4524 ___XA type if the array has already been fixed.
4525
4526 2015-01-14 Yao Qi <yao@codesourcery.com>
4527
4528 * Makefile.in (ppc-linux.o): New rule.
4529 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4530 * configure.ac: AC_CHECK_FUNCS(getauxval).
4531 * config.in: Re-generated.
4532 * configure: Re-generated.
4533 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4534 Declare.
4535 * nat/ppc-linux.c: New file.
4536 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4537 Call ppc64_64bit_inferior_p.
4538
4539 2015-01-14 Yao Qi <yao@codesourcery.com>
4540
4541 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4542 nat/ppc-linux.h.
4543 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4544 (PPC_FEATURE_HAS_DFP): Likewise.
4545 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4546 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4547 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4548 Include "nat/ppc-linux.h".
4549 * nat/ppc-linux.h: New file.
4550 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4551
4552 2015-01-14 Pedro Alves <palves@redhat.com>
4553
4554 PR gdb/17525
4555 * breakpoint.c: Include "interps.h".
4556 (bpstat_do_actions_1): Also check whether the interpreter is
4557 async.
4558
4559 2015-01-14 Pedro Alves <palves@redhat.com>
4560
4561 PR cli/17828
4562 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4563 reinstall if the interpreter is sync.
4564
4565 2015-01-13 Doug Evans <dje@google.com>
4566
4567 * objfiles.c (objfile_filename): New function.
4568 * objfiles.h (objfile_filename): Declare it.
4569 (objfile_name): Add function comment.
4570 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4571 bfd file name (which may be realpath'd), and the original name.
4572
4573 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4574
4575 * NEWS: Create a new section for the next release branch.
4576 Rename the section of the current branch, now that it has
4577 been cut.
4578
4579 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4580
4581 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4582 * version.in: Bump version to 7.9.50.DATE-cvs.
4583
4584 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4585
4586 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4587 Remove trailing new-line in argument of call to warning.
4588
4589 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4590
4591 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4592 new-line in argument of call to "warning".
4593
4594 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4595
4596 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4597 in static block, then try searching for primitive types.
4598
4599 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4600
4601 * top.h (gdb_add_history): Declare.
4602 * top.c (command_count): New variable.
4603 (gdb_add_history): New function.
4604 (gdb_safe_append_history): New static function.
4605 (quit_force): Call it.
4606 (command_line_input): Use gdb_add_history instead of
4607 add_history.
4608 * event-top.c (command_line_handler): Likewise.
4609
4610 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4611
4612 PR gdb/17046
4613 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4614 <setjmp.h> #include.
4615
4616 2015-01-11 Doug Evans <xdje42@gmail.com>
4617
4618 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4619
4620 2015-01-11 Doug Evans <xdje42@gmail.com>
4621
4622 PR gdb/15830
4623 * NEWS: The "maint demangle" command is renamed as "demangle".
4624 * demangle.c: #include cli/cli-utils.h, language.h.
4625 (demangle_command): New function.
4626 (_initialize_demangle): Add new command "demangle".
4627 * maint.c (maintenance_demangle): Stub out.
4628 (_initialize_maint_cmds): Update help text for "maint demangle",
4629 and mark as deprecated.
4630
4631 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4632
4633 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4634 inferior_thread is a function.
4635
4636 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4637
4638 * Makefile.in (.y.c): Don't munge yacc's #line
4639 directives.
4640
4641 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4642
4643 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4644 to prompt for input.
4645 * tui/tui-hooks.c (tui_query_hook): Remove.
4646 (tui_install_hooks): Don't set deprecated_query_hook.
4647 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4648 height calculation. Always update the command window's cur_line.
4649
4650 2015-01-09 Pedro Alves <palves@redhat.com>
4651
4652 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4653 function.
4654 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4655 declaration.
4656 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4657 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4658 stop_reason.
4659 (check_stopped_by_watchpoint): New function.
4660 (save_sigtrap): Reimplement.
4661 (linux_nat_stopped_by_watchpoint): Adjust.
4662 (linux_nat_lp_status_is_event): Delete.
4663 (stop_wait_callback): Only call save_sigtrap after storing the
4664 pending status.
4665 (status_callback): If the thread had been stopped for a breakpoint
4666 that has since been removed, discard the event and resume the LWP.
4667 (count_events_callback, select_event_lwp_callback): Use
4668 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4669 (cancel_breakpoint): Rename to ...
4670 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4671 stopped for a software breakpoint or hardware breakpoint.
4672 (select_event_lwp): Only give preference to the stepping LWP in
4673 all-stop mode. Adjust comments.
4674 (stop_and_resume_callback): Remove references to new_pending_p.
4675 (linux_nat_filter_event): Likewise. Leave exit events of the
4676 leader thread pending here. Handle signal short circuiting here.
4677 Only call save_sigtrap after storing the pending waitstatus.
4678 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4679 new_pending. Don't handle leaving events the caller is not
4680 interested in pending here, nor handle signal short-circuiting
4681 here. Also give equal priority to all LWPs that have had events
4682 in non-stop mode. If reporting a software breakpoint event,
4683 unadjust the LWP's PC.
4684 * linux-nat.h (enum lwp_stop_reason): New.
4685 (struct lwp_info) <stop_pc>: New field.
4686 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4687 (struct lwp_info) <stop_reason>: New field.
4688 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4689
4690 2015-01-09 Pedro Alves <palves@redhat.com>
4691
4692 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4693 Set the LWP's 'resumed' flag.
4694
4695 2015-01-09 Pedro Alves <palves@redhat.com>
4696
4697 * linux-nat.c (linux_resume_one_lwp): New function.
4698 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4699 (linux_nat_resume): Use lwp_status_pending_p and
4700 linux_resume_one_lwp.
4701 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4702 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4703 (status_callback, running_callback): Use lwp_status_pending_p.
4704 (lwp_status_pending_p): New function.
4705 (stop_and_resume_callback): Use lwp_status_pending_p.
4706 (linux_nat_filter_event): Use linux_resume_one_lwp.
4707 (linux_nat_wait_1): Always use status_callback to look for an LWP
4708 with a pending status. Use linux_resume_one_lwp.
4709 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4710 linux_resume_one_lwp.
4711
4712 2015-01-09 Pedro Alves <palves@redhat.com>
4713
4714 * breakpoint.c (bp_location_inserted_here_p): New function,
4715 factored out from ...
4716 (breakpoint_inserted_here_p): ... here. Use
4717 ALL_BP_LOCATIONS_AT_ADDR.
4718 (software_breakpoint_inserted_here_p): Use
4719 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4720
4721 2014-01-09 Pedro Alves <palves@redhat.com>
4722
4723 Skip enabling event reporting if the kernel supports
4724 PTRACE_EVENT_CLONE.
4725 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4726 (thread_db_use_events): New function.
4727 (try_thread_db_load_1): Check thread_db_use_events before enabling
4728 event reporting.
4729 (update_thread_state): New function.
4730 (attach_thread): Use it. Check thread_db_use_events before
4731 enabling event reporting.
4732 (thread_db_detach): Check thread_db_use_events before disabling
4733 event reporting.
4734 (find_new_threads_callback): Check thread_db_use_events before
4735 enabling event reporting. Update the thread's state if not using
4736 libthread_db events.
4737
4738 2015-01-09 Pedro Alves <palves@redhat.com>
4739
4740 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4741 about to wait for is > 0.
4742 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4743 the kernel thread ID is -1.
4744
4745 2015-01-09 Pedro Alves <palves@redhat.com>
4746
4747 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4748 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4749 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4750 ptrace option flags.
4751 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4752 field.
4753 * nat/linux-procfs.c: Include <dirent.h>.
4754 (linux_proc_get_int): New parameter "warn". Handle it.
4755 (linux_proc_get_tgid): Adjust.
4756 (linux_proc_get_tracerpid): Rename to ...
4757 (linux_proc_get_tracerpid_nowarn): ... this.
4758 (linux_proc_pid_get_state): New function, factored out from
4759 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4760 and handle it.
4761 (linux_proc_pid_is_gone): New function.
4762 (linux_proc_pid_is_stopped): Adjust.
4763 (linux_proc_pid_is_zombie_maybe_warn)
4764 (linux_proc_pid_is_zombie_nowarn): New functions.
4765 (linux_proc_pid_is_zombie): Use
4766 linux_proc_pid_is_zombie_maybe_warn.
4767 (linux_proc_attach_tgid_threads): New function.
4768 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4769 (linux_proc_get_tracerpid): Rename to ...
4770 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4771 (linux_proc_pid_is_gone): New declaration.
4772 (linux_proc_pid_is_zombie): Update comment.
4773 (linux_proc_pid_is_zombie_nowarn): New declaration.
4774 (linux_proc_attach_lwp_func): New typedef.
4775 (linux_proc_attach_tgid_threads): New declaration.
4776 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4777 use nowarn functions.
4778 (linux_ptrace_attach_fail_reason_string): Move here from
4779 gdbserver/linux-low.c and rename.
4780 (ptrace_supports_feature): If the current ptrace options are not
4781 known yet, check them now, instead of asserting.
4782 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4783 Declare.
4784
4785 2015-01-09 Pedro Alves <palves@redhat.com>
4786
4787 * linux-thread-db.c (thread_db_find_new_threads_silently)
4788 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4789 (find_new_threads_once): Print debug output on gdb_stdlog.
4790
4791 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4792 Pedro Alves <palves@redhat.com>
4793
4794 * compile/compile.c: Include "gdb_wait.h".
4795 (do_rmdir): Check return value, and free 'zap'.
4796
4797 2015-01-08 Pedro Alves <palves@redhat.com>
4798 Yao Qi <yao@codesourcery.com>
4799
4800 * dwarf2loc.c (indirect_pieced_value): Don't call
4801 gdb_sign_extend. Call extract_signed_integer instead.
4802 * utils.c (gdb_sign_extend): Remove.
4803 * utils.h (gdb_sign_extend): Remove declaration.
4804
4805 2015-01-07 Pierre Muller <muller@sourceware.org>
4806
4807 PR symtab/17811
4808 * stabsread.c (define_symbol): Set language for C++ special symbols.
4809
4810 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4811
4812 * inflow.c (initial_gdb_ttystate): Tweak comment.
4813
4814 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4815
4816 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4817 comment documenting function.
4818
4819 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4820
4821 * terminal.h (set_initial_gdb_ttystate): Declare.
4822 * inflow.c (initial_gdb_ttystate): New static variable.
4823 (set_initial_gdb_ttystate): New setter.
4824 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4825 instead of our current terminal state.
4826 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4827
4828 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4829
4830 * guile/scm-type.c (tyscm_array_1): Add comment.
4831 * python/py-type.c (typy_array_1): Add comment.
4832
4833 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4834
4835 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4836 error if N2 is equal to N1 - 1.
4837
4838 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4839
4840 * python/py-type.c (typy_array_1): Do not raise negative-length
4841 exception if N2 is equal to N1 - 1.
4842
4843 2015-01-03 Doug Evans <xdje42@gmail.com>
4844
4845 * c-exp.y: Whitespace cleanup.
4846 (classify_inner_name): Remove extra ;.
4847
4848 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4849
4850 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4851 offset signed.
4852
4853 2015-01-02 Doug Evans <dje@google.com>
4854
4855 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4856
4857 2015-01-02 Doug Evans <dje@google.com>
4858
4859 * symtab.h (struct symbol): Fix typo in comment.
4860
4861 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4862
4863 Update year range in copyright notice of all files.
4864
4865 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4866
4867 * top.c (print_gdb_version): Update copyright year to 2015.
4868
4869 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4870
4871 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4872
4873 For older changes see ChangeLog-2014.
4874 \f
4875 Local Variables:
4876 mode: change-log
4877 left-margin: 8
4878 fill-column: 74
4879 version-control: never
4880 coding: utf-8
4881 End: