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