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