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