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