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