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