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