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