ppc476 linker workaround shared lib fixes
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b74bf7d
YQ
12015-06-04 Yao Qi <yao.qi@linaro.org>
2
3 * gdbarch.c: Regenerate it.
4
7f361056
JK
52015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * arch-utils.c (default_infcall_munmap): New.
8 * arch-utils.h (default_infcall_munmap): New declaration.
9 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
10 (munmap_list_free, munmap_listp_free_cleanup): New.
11 (struct setup_sections_data): Add field munmap_list_headp.
12 (setup_sections): Call munmap_list_add.
13 (compile_object_load): New variable munmap_list_head, initialize
14 setup_sections_data.munmap_list_headp, return munmap_list_head.
15 * compile/compile-object-load.h (struct munmap_list): New declaration.
16 (struct compile_module): Add field munmap_list_head.
17 (munmap_list_free): New declaration.
18 * compile/compile-object-run.c (struct do_module_cleanup): Add field
19 munmap_list_head.
20 (do_module_cleanup): Call munmap_list_free.
21 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
22 * gdbarch.c: Regenerate.
23 * gdbarch.h: Regenerate.
24 * gdbarch.sh (infcall_munmap): New.
25 * linux-tdep.c (linux_infcall_munmap): New.
26 (linux_init_abi): Install it.
27
3b462ec2
SM
282015-06-02 Simon Marchi <simon.marchi@ericsson.com>
29
30 PR gdb/15564
31 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
32
8d683210
YQ
332015-06-02 Yao Qi <yao.qi@linaro.org>
34
35 * i386-linux-nat.c: Include linux-nat.h.
36
e0619de6
JK
372015-06-01 Andreas Schwab <schwab@linux-m68k.org>
38 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 PR symtab/18392
41 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
42 assertion.
43 * dwarf2loc.c (chain_candidate): Likewise.
44
bd16da51
YQ
452015-06-01 Yao Qi <yao.qi@linaro.org>
46
47 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
48 (store_vfp_regs): Use PTRACE_SETREGSET.
49
df9d7ec9
YQ
502015-06-01 Yao Qi <yao.qi@linaro.org>
51
52 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
53 (fetch_fpregs): Likewise.
54 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
55 (store_fpregs): Likewise.
56
10766686
YQ
572015-06-01 Yao Qi <yao.qi@linaro.org>
58
59 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
60 (fetch_regs): Likewise.
61 (store_regs): Use PTRACE_SETREGSET.
62 (store_register): Likewise.
63
7efe48d1
YQ
642015-06-01 Yao Qi <yao.qi@linaro.org>
65
66 * arm-linux-nat.c (arm_linux_read_description): Check whether
67 kernel supports PTRACE_GETREGSET.
68
433bbbf8
YQ
692015-06-01 Yao Qi <yao.qi@linaro.org>
70
71 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
72 * linux-nat.c: ... here.
73 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
74 to ...
75 * linux-nat.h: ... here.
76
ca9b78ce
YQ
772015-06-01 Yao Qi <yao.qi@linaro.org>
78
79 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
80 * i386-linux-nat.c: Likewise.
81 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
82 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
83 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
84 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
85 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
86
99cee7b7
EZ
872015-05-30 Eli Zaretskii <eliz@gnu.org>
88
89 * go32-nat.c (go32_xfer_memory): Fix the return value to be
90 compatible to what read_child and write_child return. This
91 unbreaks that DJGPP build of GDB which was broken since v7.7.
92
2147f5bd
MG
932015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
94
95 * MAINTAINERS (Write After Approval): Add Martin Galvan.
96
c8f6c93c
RM
972015-05-29 Roland McGrath <mcgrathr@google.com>
98
99 PR gdb/18464
100 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
101 rather than internal_error for an unrecognized value.
102
8c6a948d
MF
1032015-05-29 Max Filippov <jcmvbkbc@gmail.com>
104
105 * xtensa-tdep.c (xtensa_pseudo_register_read)
106 (xtensa_pseudo_register_write): Don't alias last pseudo register
107 to a1.
108
8dd06f7a
DB
1092015-05-28 Don Breazeal <donb@codesourcery.com>
110
111 * infrun.c (follow_fork_inferior): Ensure the use of
112 process-style ptids (pid,0,0) in verbose/debug "Detaching"
113 messages.
114
a051152b
DE
1152015-05-28 Doug Evans <dje@google.com>
116
117 * dwarf2read.c (record_line_ftype): Remove, duplicate.
118
a56cc1ce
YQ
1192015-05-28 Yao Qi <yao.qi@linaro.org>
120
121 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
122 (arm_linux_fetch_inferior_registers): Use
123 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
124 (arm_linux_store_inferior_registers): Likewise.
125 (arm_linux_read_description): Don't set
126 arm_linux_has_wmmx_registers.
127 * arm-tdep.c (arm_gdbarch_init): Set
128 tdep->have_wmmx_registers according target descriptions.
129 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
130 field.
131
330c6ca9
YQ
1322015-05-28 Yao Qi <yao.qi@linaro.org>
133
134 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
135 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
136 instead of arm_linux_vfp_register_count.
137 (store_vfp_regs): Likewise.
138 (arm_linux_fetch_inferior_registers): Likewise.
139 (arm_linux_store_inferior_registers): Likewise.
140 (arm_linux_read_description): Don't set
141 arm_linux_vfp_register_count.
142 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
143 Adjust.
144 * arm-tdep.c (arm_gdbarch_init): Add assert on
145 vfp_register_count.
146 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
147 field to vfp_register_count. All users updated.
148
d403db27
KH
1492015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
150
151 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
152 ELFOSABI_GNU binaries.
153
d9b3de22
DE
1542015-05-27 Doug Evans <dje@google.com>
155
156 * dwarf2read.c (lnp_state_machine): New typedef.
157 (lnp_reader_state): New typedef.
158 (dwarf_record_line_1): Renamed from dwarf_record_line.
159 All callers updated.
160 (dwarf_record_line): New function.
161 (init_lnp_state_machine): New function.
162 (check_line_address): Replace p_record_line parameter with state.
163 All callers updated.
164 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
165 Update to record state in lnp_state_machine.
166
924c2928
DE
1672015-05-27 Doug Evans <dje@google.com>
168
169 * dwarf2read.c (record_line_ftype): New typedef.
170 (check_line_address): New function.
171 (dwarf_decode_lines_1): Call it.
172
27e0867f
DE
1732015-05-27 Doug Evans <dje@google.com>
174
175 * NEWS: Mention "set debug dwarf-line".
176 * dwarf2read.c (dwarf_line_debug): New static global.
177 (add_include_dir): Add debug dwarf-line support.
178 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
179 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
180
4dcabcc2
DE
1812015-05-27 Doug Evans <dje@google.com>
182
183 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
184 All callers updated.
185 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
186 * cp-support.h (cp_lookup_nested_symbol): Update.
187
b2e2f908
DE
1882015-05-27 Doug Evans <dje@google.com>
189
190 PR symtab/18258
191 * block.c (block_find_symbol): New function.
192 (block_find_non_opaque_type): Ditto.
193 (block_find_non_opaque_type_preferred): Ditto.
194 * block.h (block_symbol_matcher_ftype): New typedef.
195 (block_find_symbol): Declare.
196 (block_find_non_opaque_type): Ditto.
197 (block_find_non_opaque_type_preferred): Ditto.
198 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
199 * psymtab.c (psym_lookup_symbol): Ditto.
200 * symtab.c (basic_lookup_transparent_type_1): New function.
201 (basic_lookup_transparent_type): Call it.
202
f62fce35
YQ
2032015-05-27 Yao Qi <yao.qi@linaro.org>
204
205 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
206 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
207
5d98d3cd
YQ
2082015-05-27 Yao Qi <yao.qi@linaro.org>
209
210 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
211 before operator &&.
212 (aarch64_record_load_store): Likewise.
213
82c7be31
DE
2142015-05-26 Doug Evans <dje@google.com>
215
216 PR c++/18141, c++/18417.
217 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
218 a typedef.
219
b4f54984
DE
2202015-05-26 Doug Evans <dje@google.com>
221
222 * NEWS: Add entries for command renamings.
223 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
224 All uses updated.
225 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
226 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
227 All uses updated.
228 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
229 All callers updated. Fix spelling of DWARF in help text.
230 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
231 All uses updated.
232 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
233 All uses updated.
234 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
235 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
236 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
237 All uses updated.
238 (show_dwarf_always_disassemble): Renamed from
239 show_dwarf2_always_disassemble. All callers updated.
240 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
241 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
242 "set/show dwarf max-cache-age". Rename
243 "set/show dwarf2 always-disassemble" to
244 "set/show dwarf always-disassemble". Rename
245 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
246 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
247
4ea6efe9
DE
2482015-05-26 Doug Evans <dje@google.com>
249
250 PR python/18438
251 * python/py-lazy-string.c (stpy_convert_to_value): Use
252 gdbpy_gdb_memory_error not PyExc_MemoryError.
253 (gdbpy_create_lazy_string_object): Ditto.
254
b93fd21d
AB
2552015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
258
55b40027
AB
2592015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * tui/tui-regs.c (tui_reg_prev_command): New function.
262 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
263 * reggroups.c (reggroup_prev): New function.
264 * reggroups.h (reggroup_prev): Add declaration. Update comment.
265
99afc88b
OJ
2662015-05-26 Omair Javaid <omair.javaid@linaro.org>
267 Yao Qi <yao.qi@linaro.org>
268
269 * aarch64-linux-tdep.c: Include linux-record.h and
270 record-full.h.
271 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
272 (aarch64_syscall): New enum.
273 (aarch64_canonicalize_syscall): New function.
274 (aarch64_all_but_pc_registers_record): New function.
275 (aarch64_linux_syscall_record): New function.
276 (aarch64_linux_init_abi): Install AArch64 process record
277 handler. Update to handle syscall recording.
278 * aarch64-tdep.c: Include record.h and record-full.h.
279 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
280 (struct aarch64_mem_r): Define.
281 (aarch64_record_result): New enum.
282 (struct insn_decode_record): Define.
283 (insn_decode_record): New typedef.
284 (aarch64_record_data_proc_reg): New function.
285 (aarch64_record_data_proc_imm): New function.
286 (aarch64_record_branch_except_sys): New function.
287 (aarch64_record_load_store): New function.
288 (aarch64_record_data_proc_simd_fp): New function.
289 (aarch64_record_asimd_load_store): New function.
290 (aarch64_record_decode_insn_handler): New function.
291 (deallocate_reg_mem): New function.
292 (aarch64_process_record): New function.
293 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
294 New field.
295 (aarch64_process_record): New extern declaration.
296 * configure.tgt: Add linux-record.o to gdb_target_obs.
297 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
298
c16a3f52
OJ
2992015-05-26 Omair Javaid <omair.javaid@linaro.org>
300
301 * NEWS: Add a note on process record-replay support on aarch64*-linux*
302 targets.
303
c9cf6e20
MG
3042015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
305
306 * amd64-tdep.c: Replace in_function_epilogue_p with
307 stack_frame_destroyed_p throughout.
308 * arch-utils.c: Ditto.
309 * arch-utils.h: Ditto.
310 * arm-tdep.c: Ditto.
311 * breakpoint.c: Ditto.
312 * gdbarch.sh: Ditto.
313 * hppa-tdep.c: Ditto.
314 * i386-tdep.c: Ditto.
315 * mips-tdep.c: Ditto.
316 * nios2-tdep.c: Ditto.
317 * rs6000-tdep.c: Ditto.
318 * s390-linux-tdep.c: Ditto.
319 * score-tdep.c: Ditto.
320 * sh-tdep.c: Ditto.
321 * sparc-tdep.c: Ditto.
322 * sparc-tdep.h: Ditto.
323 * sparc64-tdep.c: Ditto.
324 * spu-tdep.c: Ditto.
325 * tic6x-tdep.c: Ditto.
326 * tilegx-tdep.c: Ditto.
327 * xstormy16-tdep.c: Ditto.
328 * gdbarch.c, gdbarch.h: Re-generated.
329
a4ea0946
AB
3302015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * NEWS: Mention 'tui enable' and 'tui disable'.
333 * tui/tui.c (tui_enable_command): New function.
334 (tui_disable_command): New function.
335 (_initialize_tui): New function.
336
b75c69bb
AB
3372015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
340
c1b009ee
AB
3412015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
344 buf_ptr is freed.
345
880d1e40
AB
3462015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
349 into ...
350 (tui_set_layout_for_display_command): ...here, before calling
351 tui_set_layout. Only set the layout if gdb has not already
352 entered the TUI_FAILURE state.
353
a0145030
AB
3542015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
355
356 * tui/tui-layout.c (layout_completer): New function.
357 (_initialize_tui_layout): Set completer on layout command.
358
7bd0be3a
AB
3592015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * tui/tui-layout.c (tui_set_layout): Remove
362 tui_register_display_type parameter. Remove all checking of this
363 parameter, and reindent function. Update header comment.
364 (tui_set_layout_for_display_command): Rename to...
365 (tui_set_layout_by_name): ...this, and don't check for different
366 register class types, don't pass a tui_register_display_type to
367 tui_set_layout. Update header comment.
368 (layout_names): Remove register set specific names.
369 * tui/tui-layout.h (tui_set_layout): Remove
370 tui_register_display_type parameter.
371 * tui/tui.c (tui_rl_change_windows): Don't pass a
372 tui_register_display_type to tui_set_layout.
373 (tui_rl_delete_other_windows): Likewise.
374 (tui_enable): Likewise.
375 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
376 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
377 (TUI_GENERAL_REGS_NAME): Remove.
378 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
379 (TUI_SPECIAL_REGS_NAME): Remove.
380 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
381 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
382 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
383 (enum tui_register_display_type): Remove.
384 (struct tui_layout_def): Remove regs_display_type and
385 float_regs_display_type fields.
386 (struct tui_data_info): Remove regs_display_type field.
387 (tui_layout_command): Use new name for
388 tui_set_layout_for_display_command.
389 * tui/tui-data.c (layout_def): Don't initialise removed fields.
390 (tui_clear_win_detail): Don't initialise removed fields of
391 win_info.
392 * tui/tui-regs.c (tui_show_registers): Use new name for
393 tui_set_layout_for_display_command.
394 * tui/tui.h (tui_set_layout_for_display_command): Rename
395 declaration to...
396 (tui_set_layout_by_name): ...this.
397 * printcmd.c (display_command): Remove tui related layout call,
398 and reindent.
399
0b6e5e10
JB
4002015-05-20 Joel Brobecker <brobecker@adacore.com>
401
402 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
403 (handle_inferior_event): New function.
404
1da0522e
JB
4052015-05-20 Joel Brobecker <brobecker@adacore.com>
406
407 * ada-lang.c (to_fixed_array_type): Rename local variable
408 typename into type_name.
409
5fe75eec
JK
4102015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 Fix ASAN crash for gdb.compile/compile.exp.
413 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
414
a4063588
JK
4152015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
416
417 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
418 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
419 * compile/compile-object-load.c (setup_sections, compile_object_load):
420 Likewise.
421 * compile/compile.c (compile_to_object): Likewise.
422
37442ce1
DE
4232015-05-16 Doug Evans <xdje42@gmail.com>
424
425 * NEWS: Mention support for unbuffered Guile memory ports.
426 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
427 (ioscm_lseek_address): Improve overflow calculation.
428 (gdbscm_memory_port_fill_input): Add assert.
429 (gdbscm_memory_port_write): Handle unbuffered ports.
430 Handle large writes identical to Guile's fport_write.
431 (gdbscm_memory_port_seek): Fix seeking past end check.
432 (gdbscm_memory_port_close): Handle closing unbuffered port.
433 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
434 (ioscm_init_memory_port): Handle unbuffered ports.
435 (ioscm_reinit_memory_port): Ditto.
436 (ioscm_init_memory_port): Update size calculation.
437 (gdbscm_open_memory): Support zero sized ports.
438
d976bace
JK
4392015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
440
441 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
442 variable compiler warnings.
443
4d18dfad
JK
4442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
445
446 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
447
36de76f9
JK
4482015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
449 Phil Muldoon <pmuldoon@redhat.com>
450
451 * NEWS (Changes since GDB 7.9): Add compile print.
452 * compile/compile-c-support.c (add_code_header, add_code_footer)
453 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
454 COMPILE_I_PRINT_VALUE_SCOPE.
455 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
456 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
457 New.
458 * compile/compile-object-load.c: Include block.h.
459 (get_out_value_type): New function.
460 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
461 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
462 OUT_VALUE_TYPE.
463 * compile/compile-object-load.h (struct compile_module): Add fields
464 out_value_addr and out_value_type.
465 * compile/compile-object-run.c: Include valprint.h and compile.h.
466 (struct do_module_cleanup): Add fields out_value_addr and
467 out_value_type.
468 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
469 COMPILE_I_PRINT_VALUE_SCOPE.
470 (compile_object_run): Propagate out_value_addr and out_value_type.
471 Pass OUT_VALUE_ADDR.
472 * compile/compile.c: Include valprint.h.
473 (compile_print_value, compile_print_command): New functions.
474 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
475 (_initialize_compile): Update compile code help text. Install
476 compile_print_command.
477 * compile/compile.h (compile_print_value): New prototype.
478 * defs.h (enum compile_i_scope_types): Add
479 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
480
83d3415e
JK
4812015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
484 Rely on its parameter count.
485 (compile_object_load): Replace lookup_minimal_symbol_text by
486 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
487 return value.
488 * compile/compile-object-load.h (struct compile_module): Replace
489 func_addr by func_sym.
490 * compile/compile-object-run.c: Include block.h.
491 (compile_object_run): Reset module variable after it is freed. Use
492 FUNC_SYM instead of FUNC_ADDR. Rely on it.
493
3a9558c4
JK
4942015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
497 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
498 (c_compute_program): Call generate_register_struct after typedefs.
499 * compile/compile-loc2c.c (push, pushf_register_address)
500 (pushf_register): Cast to GCC_UINTPTR.
501 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
502 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
503 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
504 * compile/compile.c (_initialize_compile): Enable warnings for
505 COMPILE_ARGS.
506
5c65b58a
JK
5072015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
508
509 * cli/cli-script.c (execute_control_command): Update
510 eval_compile_command caller.
511 * compile/compile-object-load.c (compile_object_load): Add parameters
512 scope and scope_data. Set them.
513 * compile/compile-object-load.h (struct compile_module): Add fields
514 scope and scope_data.
515 (compile_object_load): Add parameters scope and scope_data.
516 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
517 scope and scope_data.
518 (compile_object_run): Propagate the fields scope and scope_data.
519 * compile/compile.c (compile_file_command, compile_code_command):
520 Update eval_compile_command callers.
521 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
522 * compile/compile.h (eval_compile_command): Add parameter scope_data.
523 * defs.h (struct command_line): Add field scope_data.
524
1c88ceb1
JK
5252015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 * printcmd.c (struct format_data): Move it to valprint.h.
528 (print_command_parse_format, print_value): New functions from ...
529 (print_command_1): ... here. Call them.
530 * valprint.h (struct format_data): Move it here from printcmd.c.
531 (print_command_parse_format, print_value): New declarations.
532
0b738f27
JK
5332015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
534
535 * compile/compile-object-load.c (compile_object_load): Add
536 COMPILE_DEBUG message.
537
aa715135
JG
5382015-05-15 Jerome Guitton <guitton@adacore.com>
539
540 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
541 index to get element instead of enum value.
542 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
543 of index to compute length, but enum values to compute bounds.
544 (ada_array_length): Use enum position of index instead of enum value.
545 (pos_atr): Move position computation to...
546 (ada_evaluate_subexp): Use enum values to compute bounds.
547 * gdbtypes.c (discrete_position): ...this new function.
548 * gdbtypes.h (discrete_position): New function declaration.
549 * valprint.c (val_print_array_elements): Call discrete_position
550 to handle array indexed by non-contiguous enumeration types.
551
931e5bc3
JG
5522015-05-15 Jerome Guitton <guitton@adacore.com>
553
554 * ada-lang.c (find_parallel_type_by_descriptive_type):
555 Go through typedefs during lookup.
556 (to_fixed_array_type): Add support for non-bit packed arrays
557 as variable-length fields.
558
4e63d0ac
PA
5592015-05-15 Pedro Alves <palves@redhat.com>
560 Simon Marchi <simon.marchi@ericsson.com>
561
562 * event-loop.c (gdb_notifier) <next_file_handler,
563 next_poll_fds_index>: New fields.
564 (get_next_file_handler_to_handle_and_advance): New function.
565 (delete_file_handler): If deleting the next file handler to
566 handle, advance to the next file handler.
567 (gdb_wait_for_event): Bail early if no event fired. Poll file
568 handlers in round-robin fashion.
569
52e48b36
PA
5702015-05-15 Pedro Alves <palves@redhat.com>
571
572 * linux-tdep.c (linux_find_memory_regions_full): Rename local
573 'private' to 'priv'.
574
2465e12e
PA
5752015-05-15 Pedro Alves <palves@redhat.com>
576
577 * nat/linux-nat.h: Include "target/waitstatus.h".
578
13fa0398
YZ
5792015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
580
581 * python/py-unwind.c (struct reg_info): Move out of ...
582 (struct cached_frame_info): ... this scope.
583 (pending_frame_object_type, unwind_info_object_type): Make extern.
584
9cd4d857
JB
5852015-05-15 Joel Brobecker <brobecker@adacore.com>
586
587 * ada-lang.c (ada_value_primitive_packed_val): Make sure
588 accumSize is never negative.
589
e3555239
PP
5902015-05-14 Patrick Palka <patrick@parcs.ath.cx>
591
592 * tui/tui-command.c: Remove include of <ctype.h>.
593 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
594
08a76f8a
MG
5952015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
596
597 * dwarf2read.c (die_needs_namespace): Return 1 for
598 DW_TAG_inlined_subroutine.
599
bd49952b
JK
6002015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * regcache.c (regcache_cpy_no_passthrough): New declaration.
603 (regcache_cpy_no_passthrough): Make it static, add function comment.
604 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
605 (regcache_cpy_no_passthrough): Remove declaration.
606
46c03469
JK
6072015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
608
609 * gdbthread.h (struct thread_control_state): Update comment for
610 proceed_to_finish.
611 * infcall.c (run_inferior_call): Update comment about
612 proceed_to_finish.
613 * infcmd.c (get_return_value): Update comment about stop_registers.
614 (finish_forward): Update comment about proceed_to_finish.
615 * infrun.c (stop_registers): Remove.
616 (clear_proceed_status, normal_stop): Remove stop_registers handling.
617 * infrun.h (stop_registers): Remove.
618
8a6c4031
JK
6192015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * infcall.c (struct dummy_frame_context_saver)
622 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
623 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
624 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
625 New.
626 (call_function_by_hand_dummy): Move discard_cleanups of
627 inf_status_cleanup before dummy_frame_push. Call
628 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
629 Use dummy_frame_context_saver_get_regs instead of stop_registers.
630 * infcall.h (struct dummy_frame_context_saver)
631 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
632 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
633 New declarations.
634 * infcmd.c: Include infcall.h.
635 (get_return_value): Add parameter ctx_saver, use it instead of
636 stop_registers.
637 (print_return_value): Add parameter ctx_saver, pass it.
638 (struct finish_command_continuation_args): Add field ctx_saver.
639 (finish_command_continuation): Update print_return_value caller.
640 (finish_command_continuation_free_arg): Free also ctx_saver.
641 (finish_forward): Call dummy_frame_context_saver_setup.
642 * inferior.h (struct dummy_frame_context_saver): New declaration.
643 (get_return_value): Add parameter ctx_saver.
644 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
645 get_return_value caller.
646
10989690
JK
6472015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * dummy-frame.c (struct dummy_frame_dtor_list): New.
650 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
651 (remove_dummy_frame): Process dtor_list.
652 (pop_dummy_frame): Process dtor_list.
653 (register_dummy_frame_dtor): Maintain dtor_list.
654 (find_dummy_frame_dtor): Handle dtor_list.
655 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
656 Update comments.
657
5e970501
JK
6582015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
659
660 * compile/compile-object-run.c (do_module_cleanup): Add parameter
661 registers_valid.
662 (compile_object_run): Update do_module_cleanup caller.
663 * dummy-frame.c: Include infcall.h.
664 (struct dummy_frame): Update dtor comment.
665 (remove_dummy_frame): Call dtor.
666 (pop_dummy_frame): Update dtor caller.
667 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
668 registers_valid.
669
1c4eb778
JB
6702015-05-13 Joel Brobecker <brobecker@adacore.com>
671
672 GDB 7.9.1 released.
673
f5f85ab9
JB
6742015-05-13 Joel Brobecker <brobecker@adacore.com>
675
676 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
677 Xmethods now being able to specify a result type to that new
678 sectioin.
679
242cd84c
PP
6802015-05-13 Patrick Palka <patrick@parcs.ath.cx>
681
682 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
683 first before resizing the window.
e3555239 684 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
685
6862015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
687
688 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
689 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
690 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
691 dummy_dtor parameter.
692 * infcall.h: Include dummy-frame.h.
693 (call_function_by_hand_dummy_dtor_ftype): Remove.
694 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
695 parameter.
696
ebfd00d2
PP
6972015-05-13 Patrick Palka <patrick@parcs.ath.cx>
698
699 PR gdb/17820
700 * top.c (history_size_setshow_var): Change type to signed.
701 Initialize to -2. Update documentation.
702 (set_readline_history_size): Define.
703 (set_history_size_command): Use it. Remove logic for handling
704 out-of-range sizes.
705 (init_history): Use set_readline_history_size(). Test for a
706 value of -2 instead of 0 when determining whether to set a
707 default history size.
708 (init_main): Decode the argument of the "size" command as a
709 zuinteger_unlimited.
710
83769d0b
DE
7112015-05-12 Doug Evans <dje@google.com>
712
713 * dwarf2read.c (struct file_entry): Tweak comments.
714 (get_debug_line_section): Tweak comments.
715
0d71eef5
DB
7162015-05-12 Don Breazeal <donb@codesourcery.com>
717
718 * NEWS: Announce fork support in the RSP and support
719 for fork debugging in extended mode.
720
cbb8991c
DB
7212015-05-12 Don Breazeal <donb@codesourcery.com>
722
723 * remote.c (remote_insert_fork_catchpoint): New function.
724 (remote_remove_fork_catchpoint): New function.
725 (remote_insert_vfork_catchpoint): New function.
726 (remote_remove_vfork_catchpoint): New function.
727 (pending_fork_parent_callback): New function.
728 (remove_new_fork_child): New function.
729 (remote_update_thread_list): Call remote_notif_get_pending_events
730 and remove_new_fork_child.
731 (extended_remote_kill): Kill fork child when killing the
732 parent before follow_fork completes.
733 (init_extended_remote_ops): Initialize target vector with
734 new fork catchpoint functions.
735
c269dbdb
DB
7362015-05-12 Don Breazeal <donb@codesourcery.com>
737
738 * remote.c (remove_vfork_event_p): New function.
739 (remote_follow_fork): Add vfork event type to event checking.
740 (remote_parse_stop_reply): New stop reasons "vfork" and
741 "vforkdone" for RSP 'T' Stop Reply Packet.
742
de0d863e
DB
7432015-05-12 Don Breazeal <donb@codesourcery.com>
744
745 * linux-nat.c (linux_nat_ptrace_options): New function.
746 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
747 Call linux_nat_ptrace_options and use different argument to
748 linux_enable_event_reporting.
749 (_initialize_linux_nat): Delete call to
750 linux_ptrace_set_additional_flags.
c8f6c93c 751 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
752 supported_ptrace_options.
753 (additional_flags): Delete variable.
754 (linux_check_ptrace_features): Use supported_ptrace_options.
755 (linux_test_for_tracesysgood, linux_test_for_tracefork):
756 Likewise, and remove additional_flags check.
757 (linux_enable_event_reporting): Change 'attached' argument to
758 'options'. Use supported_ptrace_options.
c8f6c93c 759 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
760 supported_ptrace_options.
761 (linux_ptrace_set_additional_flags): Delete function.
762 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
763 Delete function prototype.
764 * remote.c (remote_fork_event_p): New function.
765 (remote_detach_pid): New function.
766 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
767 if doing detach-on-fork.
768 (remote_follow_fork): New function.
769 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
770 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
771 (init_extended_remote_ops): Initialize to_follow_fork.
772
89245bc0
DB
7732015-05-12 Don Breazeal <donb@codesourcery.com>
774
775 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
776 from static to extern.
777 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
778 * remote.c (anonymous enum): <PACKET_fork_event_feature,
779 * PACKET_vfork_event_feature>: New enumeration constants.
780 (remote_protocol_features): Add table entries for new packets.
781 (remote_query_supported): Add new feature queries to qSupported
782 packet.
783
835205d0
GB
7842015-05-12 Gary Benson <gbenson@redhat.com>
785
786 * remote.c (remote_add_inferior): Call exec_file_locate_attach
787 for fake PIDs as well as real ones.
788 (remote_pid_to_exec_file): Send empty annex if PID is fake.
789
4c082a81
SC
7902015-05-09 Siva Chandra Reddy <sivachandra@google.com>
791
792 * NEWS (Python Scripting): Mention the new gdb.Value methods.
793 * python/py-value.c (valpy_reference_value): New function.
794 (valpy_const_value): Likewise.
795 (value_object_methods): Add new methods.
796 * value.c (make_cv_value): New function.
797 * value.h (make_cv_value): Declare.
798
afa6c9ab
SL
7992015-05-08 Yao Qi <yao@codesourcery.com>
800 Sandra Loosemore <sandra@codesourcery.com>
801
802 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
803 to 'lh->include_dirs' before accessing to it.
804 (psymtab_include_file_name): Likewise.
805 (dwarf_decode_lines_1): Likewise.
806 (dwarf_decode_lines): Likewise.
807 (file_file_name): Likewise.
808
35d54293
SL
8092015-05-08 Sandra Loosemore <sandra@codesourcery.com>
810
811 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
812 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
813 (nios2_linux_rt_sigreturn_init): Adjust base address of
814 register save area.
815
b73c49b7
SL
8162015-05-08 Sandra Loosemore <sandra@codesourcery.com>
817
818 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
819 "trap 31" as the breakpoint instruction on all targets.
820
dd9f02a0
JK
8212015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 * infcmd.c (print_return_value): Remove unused declaration.
824
6ad395a7
JB
8252015-05-08 Joel Brobecker <brobecker@adacore.com>
826
827 * dwarf2read.c (attr_to_dynamic_prop)
828 <DW_AT_data_member_location>: Use read_type_die isntead of
829 get_die_type.
830
8344af1e
JB
8312015-05-08 Joel Brobecker <brobecker@adacore.com>
832
833 * ada-lang.c (ada_convert_actual): Add handling of formals
834 passed inside an aligner type.
835
80b0912b
JB
8362015-05-08 Joel Brobecker <brobecker@adacore.com>
837
838 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
839
df2eb078
SC
8402015-05-08 Siva Chandra Reddy <sivachandra@google.com>
841
842 PR python/18291
843 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
844 Print xmethod matcher status.
845
2492f0d0
AA
8462015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
847
848 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
849 register in the regcache when treating the PSWM register, and vice
850 versa.
851
1c56a84d
GB
8522015-05-07 Gary Benson <gbenson@redhat.com>
853
854 * linux-thread-db.c (struct thread_db_info)
855 <td_ta_map_id2thr_p>: Remove field.
856 (try_thread_db_load_1): Remove initialization for the above.
857
74850322
GB
8582015-05-07 Gary Benson <gbenson@redhat.com>
859
860 * linux-thread-db.c (struct thread_db_info)
861 <td_thr_validate_p>: Remove field.
862 (try_thread_db_load_1): Remove initialization for the above.
863
e26efa40
JK
8642015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
865
866 * compile/compile-object-load.c (compile_object_load): Support
867 mst_text_gnu_ifunc.
868
851c9091
JK
8692015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
870
871 * compile/compile.c (compile_to_object): Make the cmd_string parameter
872 const. Use new variables for the const compatibility.
873 (eval_compile_command): Make the cmd_string parameter const.
874 * compile/compile.h (eval_compile_command): Make the cmd_string
875 parameter const.
876
f218b647
JB
8772015-05-06 Joel Brobecker <brobecker@adacore.com>
878
879 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
880 comment.
881 * top.c (deprecated_init_ui_hook): Delete.
882 (gdb_init): Remove handling of deprecated_init_ui_hook.
883 * interps.c (clear_interpreter_hooks): Remove handling of
884 deprecated_init_ui_hook.
885 * main.c (captured_main): Update comment.
886
b30a0bc3
JB
8872015-05-06 Joel Brobecker <brobecker@adacore.com>
888
889 * solib.c (_initialize_solib): Add "info dll" alias creation.
890 * windows-nat.c (set_windows_aliases): Delete.
891 (_initialize_windows_nat): Remove deprecated_init_ui_hook
892 assignment.
893 * NEWS: Add news entry about "info dll" now being available
894 on all platforms.
895
7c512744
JB
8962015-05-05 Joel Brobecker <brobecker@adacore.com>
897
898 * ada-lang.c (value_assign_to_component): Reformat and improve
899 documentation. Remove all trailing spaces.
900
0fa7fe50
JB
9012015-05-05 Joel Brobecker <brobecker@adacore.com>
902
903 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
904 Stop counting inlined frames as soon as an out-of-line function
905 is found.
906
3ea89b92
PMR
9072014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
908
909 * dwarf2read.c (inherit_abstract_dies): Skip
910 DW_TAG_GNU_call_site dies while inheriting children of an
911 abstract DIE into a scope.
912 (read_lexical_block_scope): Inherit abstract DIE's for
913 lexical scopes.
914
2478d075
JB
9152015-05-05 Joel Brobecker <brobecker@adacore.com>
916
917 * ada-valprint.c (val_print_packed_array_elements): Delete
918 variable "len". Add a type-length check when comparing two
919 consecutive elements of the array. Use the element's actual
920 length in call to value_contents_eq.
921 * ada-lang.c (ada_value_primitive_packed_val): Always return
922 a value whose type has been resolved.
923
fc958966
JB
9242015-05-05 Joel Brobecker <brobecker@adacore.com>
925
926 * ada-lang.c (ada_value_primitive_packed_val): Recompute
927 BIT_SIZE and LEN if the size of the resolved type is smaller
928 than BIT_SIZE * HOST_CHAR_BIT.
929
ca34b84f
JB
9302015-05-05 Joel Brobecker <brobecker@adacore.com>
931
932 * ada-lang.c (ada_value_primitive_packed_val): Use a more
933 correct address in call to value_at. Adjust call to
934 value_address accordingly.
935
62c67f3c
JB
9362015-05-05 Joel Brobecker <brobecker@adacore.com>
937
938 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
939 to print it.
940
c3345124
JB
9412015-05-05 Joel Brobecker <brobecker@adacore.com>
942
943 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
944 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
945 pinfo->valaddr.
946 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
947 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
948 (resolve_dynamic_type_internal): Set pinfo.valaddr.
949 Add handling of addr_stack->valaddr.
950 (resolve_dynamic_type): Add "valaddr" parameter.
951 Set pinfo.valaddr field.
952 * ada-lang.c (ada_discrete_type_high_bound): Update call to
953 resolve_dynamic_type.
954 (ada_discrete_type_low_bound): Likewise.
955 * findvar.c (default_read_var_value): Likewise.
956 * value.c (value_from_contents_and_address): Likewise.
957
75ea5859
JB
9582015-05-05 Joel Brobecker <brobecker@adacore.com>
959
960 * gdbtypes.c (resolve_dynamic_array): Use
961 create_array_type_with_stride instead of create_array_type.
962
0952813b
DD
9632015-04-30 DJ Delorie <dj@redhat.com>
964
965 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
966 rl78_decode_opcode
967
2ce1cdbf
DE
9682015-04-29 Doug Evans <dje@google.com>
969
970 PR python/18285
971 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
972 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
973 EVAL_AVOID_SIDE_EFFECTS for xmethods.
974 * extension-priv.h (struct extension_language_ops)
975 <get_xmethod_result_type>: New member.
976 * extension.c (get_xmethod_result_type): New function.
977 * extension.h (get_xmethod_result_type): Declare.
978 * python/py-xmethods.c (get_result_type_method_name): New static
979 global.
980 (py_get_result_type_method_name): Ditto.
981 (gdbpy_get_xmethod_result_type): New function.
982 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
983 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
984 * python/python.c (python_extension_ops): Add
985 gdbpy_get_xmethod_result_type.
986 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
987 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
988 xmethods.
989 (value_x_unop): Ditto.
990 * value.c (result_type_of_xmethod): New function.
991 * value.h (result_type_of_xmethod): Declare.
992
998d2a3e
GB
9932015-04-29 Gary Benson <gbenson@redhat.com>
994
995 * solib.c (solib_find_1): Allow fd argument to be NULL.
996 (exec_file_find): Update comment.
997 (solib_find): Likewise.
998 * exec.c (exec_file_locate_attach): Use NULL as fd
999 argument to exec_file_find to avoid having to close
1000 the opened file.
1001 * infrun.c (follow_exec): Likewise.
1002
34f5f757
DE
10032015-04-28 Doug Evans <dje@google.com>
1004
1005 PR python/18299
1006 * python/lib/gdb/printing.py (register_pretty_printer): Handle
1007 name or __name__ attributes. Handle gdb module as first argument.
1008
69b4374a
DE
10092015-04-28 Doug Evans <dje@google.com>
1010
1011 PR python/18089
1012 * python/py-prettyprint.c (print_children): Verify result of children
1013 iterator. Provide better error message.
1014 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
1015 * python/python.c (gdbpy_print_python_errors_p): New function.
1016
5e7cf078
DE
10172015-04-28 Doug Evans <dje@google.com>
1018
1019 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
1020
59fb7612
SS
10212015-04-28 Sasha Smundak <asmundak@google.com>
1022
1023 * NEWS: Mention gdb.Type.optimized_out method.
1024 * python/py-type.c (typy_optimized_out): New function.
1025
cea6e4f1
JB
10262015-04-28 John Baldwin <jhb@FreeBSD.org>
1027
1028 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1029
24b73f8e
PP
10302015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1031
1032 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
1033 (initialize_utils): Move call of init_page_info() to ...
1034 * top.c (gdb_init): ... here.
1035
a88d0bb3
PP
10362015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1037
1038 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
1039 (tui_sigwinch_handler): Still update our idea of
1040 the terminal's width and height even when TUI is not active.
1041
d6e5e7f7
PP
10422015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1043
1044 * utils.h (set_screen_width_and_height): Declare.
1045 * utils.c (set_screen_width_and_height): Define.
1046 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
1047
ff862be4
GB
10482015-04-28 Gary Benson <gbenson@redhat.com>
1049
1050 * infrun.c (solist.h): New include.
1051 (follow_exec): Use exec_file_find to prefix execd_pathname
1052 with gdb_sysroot.
1053
2eb639cb
PP
10542015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1055
1056 * tui/tui-source.c (tui_set_source_content): Avoid calling
1057 strcpy() when offset is 0.
1058
97206799
PP
10592015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1060
1061 PR gdb/18155
1062 * tui/tui-data.c (tui_free_window): Don't free the locator
1063 window when passed an SRC_WIN or a DISASSEM_WIN.
1064
63ed8182
PP
10652015-04-28 Patrick Palka <patrick@parcs.ath.cx>
1066
1067 * tui/tui-data.h (struct tui_win_element): Forward-declare.
1068 (tui_win_content): Move declaration.
1069 (struct tui_gen_win_info): Give 'content' field the
1070 type tui_win_content.
1071 * tui/tui-data.c (init_content_element): Remove redundant and
1072 erroneous casts.
1073 (tui_add_content_elements): Remove erroneous cast.
1074 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
1075 casts.
1076 (tui_get_begin_asm_address): Likewise.
1077 * tui/tui-regs.c (tui_show_registers): Likewise.
1078 (tui_show_register_group): Likewise.
1079 (tui_display_registers_from): Likewise.
1080 (tui_check_register_values): Likewise.
1081 * tui/tui-source.c (tui_set_source_content): Likewise.
1082 (tui_set_source_content_nil): Likewise.
1083 (tui_source_is_displayed): Likewise.
1084 * tui/tui-stack.c (tui_show_locator_content): Likewise.
1085 (tui_set_locator_fullname): Likewise.
1086 (tui_set_locator_info): Likewise.
1087 (tui_show_frame_info): Likewise.
1088 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
1089 (tui_show_source_line): Likewise.
1090 (tui_horizontal_source_scroll): Likewise.
1091 (tui_update_breakpoint_info): Likewise.
1092 (tui_set_exec_info_content): Likewise.
1093 (tui_show_exec_info_content): Likewise.
1094 (tui_alloc_source_buffer): Likewise.
1095 (tui_line_is_displayed): Likewise.
1096 (tui_addr_is_displayed): Likewise.
1097
d2b41ca0
JB
10982015-04-27 John Baldwin <jhb@FreeBSD.org>
1099
1100 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
1101 event if PL_FLAG_EXEC is set.
1102 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
1103 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
1104 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
1105 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
1106 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
1107
e58e05d6
JB
11082015-04-27 John Baldwin <jhb@FreeBSD.org>
1109
1110 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
1111 [TDP_RFPPWAIT] New variable fbsd_pending_children.
1112 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
1113 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
1114 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
1115 [PT_LWPINFO] (fbsd_wait): New function.
1116 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
1117 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
1118 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
1119 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
1120 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
1121 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
1122 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
1123 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
1124 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
1125 "fbsd_wait".
1126 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
1127 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
1128 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
1129 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
1130 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
1131 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
1132 Set "to_post_attach" to "fbsd_post_attach".
1133
8f60fe01
JB
11342015-04-27 John Baldwin <jhb@FreeBSD.org>
1135
1136 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
1137 (fbsd_find_memory_regions): Mark static.
1138 (fbsd_nat_add_target): New function.
1139 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
1140 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
1141 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
1142 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1143 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
1144 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
1145
5fbae7d1
GB
11462015-04-27 Gary Benson <gbenson@redhat.com>
1147
1148 * objfiles.c (allocate_objfile): Do not attempt to expand name
1149 if name is a "target:" filename.
1150 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
1151 to load auto-load scripts for objfiles with "target:" filenames.
1152
417c80f9
AA
11532015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154
1155 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
1156 (enum s390_vector_abi_kind): New enum.
1157 (struct gdbarch_tdep)<vector_abi>: New field.
1158 (s390_effective_inner_type): Add parameter min_size. Stop
1159 unwrapping if the inner type is smaller than min_size.
1160 (s390_function_arg_float): Adjust call to
1161 s390_effective_inner_type.
1162 (s390_function_arg_vector): New function.
1163 (s390_function_arg_integer): Adjust comment.
1164 (struct s390_arg_state)<vr>: New field.
1165 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
1166 arguments according to vector ABI when appropriate.
1167 (s390_push_dummy_call): Initialize the argument state's field
1168 'vr'. Adjust calls to s390_handle_arg.
1169 (s390_register_return_value): Handle vector return values.
1170 (s390_return_value): Apply the "register" return value convention
1171 to a vector when appropriate.
1172 (s390_gdbarch_init): Initialize tdep->vector_abi.
1173 * NEWS: Announce S390 vector ABI support.
1174
4e65a17e
AA
11752015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176
1177 * s390-linux-tdep.c (s390_return_value_convention): Remove
1178 function. Inline its logic...
1179 (s390_return_value): ...here. Instead, move the handling of the
1180 "register" return value convention...
1181 (s390_register_return_value): ...here. New function.
1182
80f75320
AA
11832015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1184
1185 * s390-linux-tdep.c
1186 (is_float_singleton): Remove function. Move the "singleton" part
1187 of the logic...
1188 (s390_effective_inner_type): ...here. New function.
1189 (is_float_like): Remove function. Inline its logic...
1190 (s390_function_arg_float): ...here.
1191 (is_pointer_like, is_integer_like, is_struct_like): Remove
1192 functions. Inline their logic...
1193 (s390_function_arg_integer): ...here.
1194 (s390_function_arg_pass_by_reference): Remove function.
1195 (extend_simple_arg): Remove function.
1196 (alignment_of): Remove function.
1197 (struct s390_arg_state): New structure.
1198 (s390_handle_arg): New function.
1199 (s390_push_dummy_call): Move parameter placement logic to the new
1200 function s390_handle_arg. Call it for calculating the stack area
1201 sizes first, and again for actually writing the parameters.
1202
6dbc9c04
AA
12032015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204
1205 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
1206 false if the argument is zero.
1207
9e195661
PMR
12082015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1209
1210 * ada-lang.c (template_to_static_fixed_type): Return input type
1211 when it is already fixed. Cache the input type itself when not
1212 creating a static fixed copy. Make it explicit that we never
1213 molestate the input type.
1214 * gdbtypes.c (resolve_dynamic_struct): Reset the
1215 TYPE_TARGET_TYPE field for resolved copies.
1216
460efde1
JB
12172015-04-27 Joel Brobecker <brobecker@adacore.com>
1218
1219 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
1220 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
1221 (template_to_static_fixed_type): Call ada_check_typedef only
1222 when necessary.
1223
6faec16b
AB
12242015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * cli/cli-dump.c (srec_dump_command): Add internationalization
1227 mark ups.
1228 (ihex_dump_command): Likewise.
1229 (tekhex_dump_command): Likewise.
1230 (binary_dump_command): Likewise.
1231 (binary_append_command): Likewise.
1232
cf75d6c3
AB
12332015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * cli/cli-dump.c (verilog_cmdlist): New variable.
1236 (dump_verilog_memory): New function.
1237 (dump_verilog_value): New function.
1238 (verilog_dump_command): New function.
1239 (_initialize_cli_dump): Add new commands to support verilog dump
1240 format.
1241 * NEWS: Add entry for "dump verilog".
1242
8cd00c59
PMR
12432015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
1244
1245 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
1246 descriptive type when there is none.
1247
8900d71e
PP
12482015-04-23 Patrick Palka <patrick@parcs.ath.cx>
1249
1250 * tui/tui-win.c (tui_async_resize_screen): Call
1251 rl_resize_terminal().
1252
f16eab5f
JT
12532015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
1254
1255 * windows-nat.c (handle_output_debug_string): Don't change
1256 current_event.dwThreadId.
1257 (get_windows_debug_event): Use thread_id, rather than relying on
1258 current_event.dwThreadId being changed.
1259
68ffc902
JT
12602015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
1261
1262 * windows-nat.c (windows_continue): Report an error if
1263 ContinueDebugEvent() fails.
1264
23942819
JT
12652015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1266
1267 * windows-nat.c (windows_resume): Fix misspelling in debug output.
1268
e6ad66bd
JT
12692015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1270
1271 * windows-nat.c (get_windows_debug_event): Replace retval with
1272 thread_id throughout. Update stale comment.
1273
776704b9
JT
12742015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
1275
1276 * windows-nat.c (get_windows_debug_event): Don't use ternary
1277 conditional operator.
1278
8aae4344
PM
12792015-04-21 Pierre Muller <muller@sourceware.org>
1280
1281 PR pascal/17815
1282 p-exp.y (yylex): Reorganize code to return the matched pattern
1283 for a field of this.
1284
819843c7
GB
12852015-04-21 Gary Benson <gbenson@redhat.com>
1286
1287 * common/fileio.h (fileio_to_host_openflags): New declaration.
1288 * common/fileio.c (fcntl.h): New include.
1289 (fileio_to_host_openflags): New function, factored out from...
1290 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
1291 Single use updated.
1292
0bca7f99
KB
12932015-04-21 Kevin Buettner <kevinb@redhat.com>
1294
1295 * rl78-tdep.c (RL78_SP_ADDR): Define.
1296 (opc_reg_to_gdb_regnum): New static function.
1297 (rl78_analyze_prologue): Recognize instructions forming slightly
1298 more interesting prologues.
1299
e771e4be
PMR
13002015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1301
1302 Revert:
1303 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1304 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1305 TYPE_CODE_REF types so that they are not considered as dynamic
1306 depending on the referenced type.
1307 (resolve_dynamic_type_internal): Likewise.
1308
ee715b5a
PMR
13092015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
1310
1311 Revert:
1312 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1313 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1314 "top_level" parameter.
1315 (resolve_dynamic_type_internal): Remove the unused "top_level"
1316 parameter. Update call to is_dynamic_type_internal.
1317 (is_dynamic_type): Update call to is_dynamic_type_internal.
1318 (resolve_dynamic_range): Update call to
1319 resolve_dynamic_type_internal.
1320 (resolve_dynamic_union): Likewise.
1321 (resolve_dynamic_struct): Likewise.
1322 (resolve_dynamic_type): Likewise.
1323
e31d7699
GKB
13242015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
1325
1326 * breakpoint.c (update_dprintf_command_list): Remove duplicated
1327 xmalloc.
1328
d214e5e7
TS
13292015-04-20 Thomas Schwinge <thomas@codesourcery.com>
1330
110f9112
TS
1331 * reply_mig_hack.awk: Robustify parsing.
1332
d214e5e7
TS
1333 * reply_mig_hack.awk: Don't bother to declare an intermediate
1334 function pointer variable.
1335
8f61baf8
DE
13362015-04-17 Doug Evans <dje@google.com>
1337
1338 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
1339 to "exec_displacement" to avoid confusion with inner use of the name.
1340
dbbf180a
YQ
13412015-04-17 Pedro Alves <palves@redhat.com>
1342
1343 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
1344 if HW point of TYPE isn't supported.
1345
059790a0
YQ
13462015-04-17 Yao Qi <yao.qi@linaro.org>
1347 Pedro Alves <palves@redhat.com>
1348
1349 * target.h (target_can_use_hardware_watchpoint): Update comments.
1350 Remove trailing ";".
1351
1b6e6f5c
GB
13522015-04-17 Gary Benson <gbenson@redhat.com>
1353
1354 * remote.c (remote_add_inferior): New argument try_open_exec.
1355 If nonzero, attempt to open the inferior's executable file as
1356 the main executable if no main executable is open already.
1357 All callers updated.
1358 * NEWS: Mention that GDB now supports automatic location and
1359 retrieval of executable + files from remote targets.
1360
c78fa86a
GB
13612015-04-17 Gary Benson <gbenson@redhat.com>
1362
1363 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
1364 * remote.c (PACKET_qXfer_exec_file): Likewise.
1365 (remote_protocol_features): Register the
1366 "qXfer:exec-file:read" feature.
1367 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
1368 (remote_pid_to_exec_file): New function.
1369 (init_remote_ops): Initialize to_pid_to_exec_file.
1370 (_initialize_remote): Register new "set/show remote
1371 pid-to-exec-file-packet" command.
1372 * NEWS: Announce new qXfer:exec-file:read packet.
1373
e0d86d2c
GB
13742015-04-17 Gary Benson <gbenson@redhat.com>
1375
1376 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
1377 New declaration.
1378 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
1379 New function, factored out from...
1380 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
1381
a9a5a3d1
GB
13822015-04-17 Gary Benson <gbenson@redhat.com>
1383
1384 * exec.c (solist.h): New include.
1385 (exec_file_locate_attach): Prefix absolute executable
1386 paths with gdb_sysroot if set.
1387 * NEWS: Mention that executable paths may be prepended
1388 with sysroot.
1389
af1900b0
GB
13902015-04-17 Gary Benson <gbenson@redhat.com>
1391
1392 * solist.h (exec_file_find): New declaration.
1393 * solib.c (solib_find_1): New function, factored out from...
1394 (solib_find): ...here.
1395 (exec_file_find): New function.
1396
a10de604
GB
13972015-04-17 Gary Benson <gbenson@redhat.com>
1398
1399 * gdbcore.h (exec_file_locate_attach): New declaration.
1400 * exec.c (exec_file_locate_attach): New function, factored
1401 out from...
1402 * infcmd.c (attach_command_post_wait): ...here.
1403
92209ddf
MF
14042015-04-17 Mike Frysinger <vapier@gentoo.org>
1405
1406 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
1407
8550d3b3
YQ
14082015-04-16 Yao Qi <yao.qi@linaro.org>
1409
1410 * infrun.c (maybe_software_singlestep): Declare.
1411 (displaced_step_fixup): Call maybe_software_singlestep.
1412
30b3dd9d
DE
14132015-04-15 Doug Evans <dje@google.com>
1414
1415 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
1416
61d96d7e
DE
14172015-04-15 Doug Evans <dje@google.com>
1418
1419 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
1420
40d2f8d6
SM
14212015-04-15 Simon Marchi <simon.marchi@ericsson.com>
1422
1423 * python/lib/gdb/command/unwinders.py: Add parentheses.
1424
6bbbba9b
YQ
14252015-04-15 Yao Qi <yao.qi@linaro.org>
1426
1427 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
1428
2bb2dcab
YQ
14292015-04-15 Yao Qi <yao.qi@linaro.org>
1430
1431 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
1432
41f071ef
YQ
14332015-04-15 Yao Qi <yao.qi@linaro.org>
1434
1435 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
1436 dsc->insn_size instead of 4.
1437
326a5c7e
GB
14382015-04-14 Gary Benson <gbenson@redhat.com>
1439
1440 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
1441 * minidebug.c (lzma_stat): Likewise.
1442 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
1443 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
1444
dd177e81
SS
14452015-04-13 Stan Shebs <stanshebs@google.com>
1446
1447 * MAINTAINERS: Update my email address.
1448
97de3545
JB
14492015-04-13 John Baldwin <jhb@FreeBSD.org>
1450
1451 * amd64-tdep.c (amd64_target_description): New function.
1452 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
1453 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
1454 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1455 x86 extended save area.
1456 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1457 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
1458 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
1459 (_initialize_amd64fbsd_nat): Set "to_read_description" to
1460 "amd64fbsd_read_description".
1461 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
1462 (amd64fbsd_supply_xstateregset): New function.
1463 (amd64fbsd_collect_xstateregset): New function.
1464 Add "amd64fbsd_xstateregset".
1465 (amd64fbsd_iterate_over_regset_sections): New function.
1466 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
1467 "I386_FBSD_XSAVE_XCR0_OFFSET".
1468 Add "iterate_over_regset_sections" gdbarch method.
1469 Add "core_read_description" gdbarch method.
1470 * i386-tdep.c (i386_target_description): New function.
1471 * i386-tdep.h: Export i386_target_description and tdesc_i386.
1472 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
1473 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
1474 x86 extended save area.
1475 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
1476 * i386bsd-nat.h: Export i386bsd_xsave_len.
1477 * i386fbsd-nat.c (i386fbsd_read_description): New function.
1478 (_initialize_i386fbsd_nat): Set "to_read_description" to
1479 "i386fbsd_read_description".
1480 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
1481 (i386fbsd_core_read_description): New function.
1482 (i386fbsd_supply_xstateregset): New function.
1483 (i386fbsd_collect_xstateregset): New function.
1484 Add "i386fbsd_xstateregset".
1485 (i386fbsd_iterate_over_regset_sections): New function.
1486 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
1487 "I386_FBSD_XSAVE_XCR0_OFFSET".
1488 Add "iterate_over_regset_sections" gdbarch method.
1489 Add "core_read_description" gdbarch method.
1490 * i386fbsd-tdep.h: New file.
1491
4f45d445
JK
14922015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 * NEWS (Changes since GDB 7.9): Add removed -xdb.
1495 * breakpoint.c (command_line_is_silent): Remove xdb_commands
1496 conditional.
1497 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
1498 and lb.
1499 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
1500 va.
1501 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
1502 conditional.
1503 * defs.h (xdb_commands): Remove declaration.
1504 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
1505 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
1506 * infcmd.c (run_no_args_command, go_command): Remove.
1507 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
1508 * infrun.c (xdb_handle_command): Remove.
1509 (_initialize_infrun): Remove xdb_commands for lz and z.
1510 * main.c (xdb_commands): Remove variable.
1511 (captured_main): Remove "xdb" from long_options.
1512 (print_gdb_help): Remove --xdb from help.
1513 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
1514 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
1515 * stack.c (backtrace_full_command, args_plus_locals_info)
1516 (current_frame_command): Remove.
1517 (_initialize_stack): Remove xdb_commands for t, T and l.
1518 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
1519 * thread.c (_initialize_thread): Remove xdb_commands condition.
1520 * tui/tui-layout.c (tui_toggle_layout_command)
1521 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
1522 (_initialize_tui_layout): Remove xdb_commands for td and ts.
1523 * tui/tui-regs.c (tui_scroll_regs_forward_command)
1524 (tui_scroll_regs_backward_command): Remove.
1525 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
1526 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
1527 (_initialize_tui_win): Remove xdb_commands for U and w.
1528 * utils.c (pagination_on_command, pagination_off_command): Remove.
1529 (initialize_utils): Remove xdb_commands for am and sm.
1530
cb71640d
PA
15312015-04-10 Pedro Alves <palves@redhat.com>
1532
1533 * infrun.c (displaced_step_fixup): Switch to the event ptid
1534 earlier. If the thread stopped for a watchpoint and the
1535 target/arch has non-continuable watchpoints, cancel the displaced
1536 step.
1537 (resume): Don't start a displaced step if in-line step-over info
1538 is valid.
1539
8f572e5c
PA
15402015-04-10 Pedro Alves <palves@redhat.com>
1541
1542 * infrun.c (displaced_step_in_progress): New function.
1543 (do_target_resume): Advise target to report all signals if
1544 displaced stepping.
1545
8d707a12
PA
15462015-04-10 Pedro Alves <palves@redhat.com>
1547
1548 PR gdb/18216
1549 * infrun.c (process_event_stop_test): Don't assume a step-resume
1550 is set if tp->stepped_breakpoint is true.
1551
ef713951
YQ
15522015-04-10 Yao Qi <yao.qi@linaro.org>
1553
1554 * arm-tdep.c (install_alu_reg): Update comment.
1555 (thumb_copy_alu_reg): Remove local variable rn. Update
1556 debugging message. Use r2 instead of r1 in the modified
1557 instruction.
1558
906d60cf
PA
15592015-04-10 Pedro Alves <palves@redhat.com>
1560
1561 PR gdb/13858
1562 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
1563 linux_displaced_step_location as gdbarch_displaced_step_location
1564 hook.
1565 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1566 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1567 * linux-tdep.c (linux_displaced_step_location): New function,
1568 based on ppc_linux_displaced_step_location.
1569 * linux-tdep.h (linux_displaced_step_location): New declaration.
1570 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
1571 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
1572 Delete.
1573 (ppc_linux_init_abi): Install linux_displaced_step_location as
1574 gdbarch_displaced_step_location hook, even without Cell/B.E..
1575 (_initialize_ppc_linux_tdep): Don't install
1576 ppc_linux_inferior_created as inferior_created observer.
1577 * s390-linux-tdep.c (s390_gdbarch_init): Install
1578 linux_displaced_step_location as gdbarch_displaced_step_location
1579 hook.
1580
7823a941
GB
15812015-04-09 Gary Benson <gbenson@redhat.com>
1582
1583 * common/common-remote-fileio.h: Rename to...
1584 * common/fileio.h: ...this. Update all references.
1585 (remote_fileio_to_fio_error): Rename to...
1586 (host_to_fileio_error): ...this.
1587 (remote_fileio_to_be): Rename to...
1588 (host_to_bigendian): ...this. Update all callers.
1589 (remote_fileio_to_fio_uint): Rename to...
1590 (host_to_fileio_uint): ...this. Update all callers.
1591 (remote_fileio_to_fio_time): Rename to...
1592 (host_to_fileio_time): ...this. Update all callers.
1593 (remote_fileio_to_fio_stat): Rename to...
1594 (host_to_fileio_stat): ...this.
1595 Update all references.
1596 * common/common-remote-fileio.c: Rename to...
1597 * common/fileio.c: ...this. Update all references.
1598 (remote_fileio_to_fio_error): Rename to...
1599 (host_to_fileio_error): ...this. Update all callers.
1600 (remote_fileio_mode_to_target): Rename to...
1601 (fileio_mode_pack): ...this. Update all callers.
1602 (remote_fileio_to_fio_mode): Rename to...
1603 (host_to_fileio_mode): ...this. Update all callers.
1604 (remote_fileio_to_fio_ulong): Rename to...
1605 (host_to_fileio_ulong): ...this. Update all callers.
1606 (remote_fileio_to_fio_stat): Rename to...
1607 (host_to_fileio_stat): ...this. Update all callers.
1608
f2983cc3
AW
16092015-04-09 Andy Wingo <wingo@igalia.com>
1610
1611 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
1612 (frame_functions): Bind gdbscm_frame_read_register to
1613 frame-read-register.
1614 * guile/lib/gdb.scm (frame-read-register): Export.
1615
b88bb450
GB
16162015-04-09 Gary Benson <gbenson@redhat.com>
1617
1618 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
1619 New declaration.
1620 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
1621 New function, factored out the named functions below.
1622 * inf-child.c (gdb/fileio.h): Remove include.
1623 (common-remote-fileio.h): New include.
1624 (inf_child_errno_to_fileio_error): Remove function. Update
1625 all callers to use remote_fileio_to_fio_error.
1626 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
1627
2f2680f3
AW
16282015-04-09 Andy Wingo <wingo@igalia.com>
1629
1630 * MAINTAINERS (Write After Approval): Add Andy Wingo.
1631
5a2d4533
L
16322015-04-09 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
1635 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
1636 * configure: Regenerated.
1637
421693b0
PA
16382015-04-09 Pedro Alves <palves@redhat.com>
1639
1640 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
1641 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
1642 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
1643 * gnulib/import/Makefile.am: Update.
1644 * gnulib/import/Makefile.in: Update.
1645 * gnulib/import/m4/gnulib-cache.m4: Update.
1646 * gnulib/import/m4/gnulib-comp.m4: Update.
1647 * gnulib/import/m4/strtok_r.m4: New file.
1648 * gnulib/import/strtok_r.c: New file.
1649
f543dc83
PA
16502015-04-09 Pedro Alves <palves@redhat.com>
1651
1652 * gnulib/update-gnulib.sh (aclocal version check): Filter out
1653 "called too early to check prototype".
1654
6d62641c
SDJ
16552015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
1656
1657 PR python/16699
1658 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
1659 use a caching mechanism. Adjust comments and code to reflect
1660 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
1661 (cmdpy_completer_handle_brkchars): Adjust call to
1662 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
1663 (cmdpy_completer): Likewise.
1664
85558555
YQ
16652015-04-08 Yao Qi <yao.qi@linaro.org>
1666
1667 * spu-tdep.c (spu_gdbarch_init): Don't call
1668 set_gdbarch_cannot_step_breakpoint.
1669
d249a14a
SDJ
16702015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
1671
1672 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
1673
8a06aea7
PA
16742015-04-07 Pedro Alves <palves@redhat.com>
1675
1676 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
1677 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
1678 (delete_exited_threads): New declaration.
1679 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
1680 * linux-nat.c (linux_nat_update_thread_list): New function.
1681 (linux_nat_add_target): Install it.
1682 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
1683 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
1684 (delete_exited_threads): New function.
1685
d9b67d9f
PA
16862015-04-07 Pedro Alves <pedro@codesourcery.com>
1687
1688 * infrun.c (resume) <displaced stepping debug output>: Get the
1689 leader thread's regcache, not resume_ptid's.
1690
2c26b84f
DE
16912015-04-06 Doug Evans <xdje42@gmail.com>
1692
1693 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
1694 VAR_DOMAIN.
1695 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
1696 Include symbol domain in debugging output.
1697
7a85168d
PA
16982015-04-06 Pedro Alves <palves@redhat.com>
1699 Bernd Edlinger <bernd.edlinger@hotmail.de>
1700
1701 * configure.ac: Remove the mingw32-specific stub-termcap.o
1702 fallback, and instead fallback to the stub termcap on all hosts.
1703 * configure: Regenerate.
1704 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
1705 symbols.
1706
25755e2b
PMR
17072015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1708
1709 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
1710 "top_level" parameter.
1711 (resolve_dynamic_type_internal): Remove the unused "top_level"
1712 parameter. Update call to is_dynamic_type_internal.
1713 (is_dynamic_type): Update call to is_dynamic_type_internal.
1714 (resolve_dynamic_range): Update call to
1715 resolve_dynamic_type_internal.
1716 (resolve_dynamic_union): Likewise.
1717 (resolve_dynamic_struct): Likewise.
1718 (resolve_dynamic_type): Likewise.
1719
961f4160
PMR
17202015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
1721
1722 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
1723 TYPE_CODE_REF types so that they are not considered as dynamic
1724 depending on the referenced type.
1725 (resolve_dynamic_type_internal): Likewise.
1726
39f3de7c
L
17272015-04-02 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 * Makefile.in (top_srcdir): New.
1730 * configure: Regenerated.
1731
599bd15c
GB
17322015-04-02 Gary Benson <gbenson@redhat.com>
1733
1734 * NEWS: Announce the new default sysroot of "target:".
1735
fed040c6
GB
17362015-04-02 Gary Benson <gbenson@redhat.com>
1737
1738 * main.c (captured_main): Set gdb_sysroot to "target:"
1739 if not otherwise set.
1740
64c0b5de
GB
17412015-04-02 Gary Benson <gbenson@redhat.com>
1742
1743 * exec.c (exec_file_attach): Support "target:" filenames.
1744
b57fbfba
GB
17452015-04-02 Gary Benson <gbenson@redhat.com>
1746
1747 * solib.c (solib_find): Strip "target:" prefix from sysroot
1748 if accessing local files.
1749
97a41605
GB
17502015-04-02 Gary Benson <gbenson@redhat.com>
1751
1752 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
1753 checks and error messages.
1754
2938e6cf
GB
17552015-04-02 Gary Benson <gbenson@redhat.com>
1756
1757 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
1758 (remote_filename_p): Remove declaration.
1759 (remote_bfd_open): Likewise.
1760 * remote.c (remote_bfd_iovec_open): Remove function.
1761 (remote_bfd_iovec_close): Likewise.
1762 (remote_bfd_iovec_pread): Likewise.
1763 (remote_bfd_iovec_stat): Likewise.
1764 (remote_filename_p): Likewise.
1765 (remote_bfd_open): Likewise.
1766 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
1767 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
1768 (gdb_bfd_open_maybe_remote): Remove function.
1769 (symfile_bfd_open): Replace remote filename check with
1770 target filename check.
1771 (reread_symbols): Use gdb_bfd_open.
1772 * build-id.c (gdbcore.h): New include.
1773 (build_id_to_debug_bfd): Use gdb_bfd_open.
1774 * infcmd.c (attach_command_post_wait): Remove remote filename
1775 check.
1776 * solib.c (solib_find): Replace remote-specific handling with
1777 target-specific handling. Update comments where necessary.
1778 (solib_bfd_open): Replace remote-specific handling with
1779 target-specific handling.
1780 (gdb_sysroot_changed): New function.
1781 (_initialize_solib): Call the above when gdb_sysroot changes.
1782 * windows-tdep.c (gdbcore.h): New include.
1783 (windows_xfer_shared_library): Use gdb_bfd_open.
1784
f08e97fe
GB
17852015-04-02 Gary Benson <gbenson@redhat.com>
1786
1787 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
1788 (is_target_filename): New declaration.
1789 (gdb_bfd_has_target_filename): Likewise.
1790 (gdb_bfd_open): Update documentation comment.
1791 * gdb_bfd.c (target.h): New include.
1792 (gdb/fileio.h): Likewise.
1793 (is_target_filename): New function.
1794 (gdb_bfd_has_target_filename): Likewise.
1795 (fileio_errno_to_host): Likewise.
1796 (gdb_bfd_iovec_fileio_open): Likewise.
1797 (gdb_bfd_iovec_fileio_pread): Likewise.
1798 (gdb_bfd_iovec_fileio_close): Likewise.
1799 (gdb_bfd_iovec_fileio_fstat): Likewise.
1800 (gdb_bfd_open): Use target fileio to access paths prefixed
1801 with "target:" where necessary.
1802
4bd7dc42
GB
18032015-04-02 Gary Benson <gbenson@redhat.com>
1804
1805 * target.h (struct target_ops) <to_filesystem_is_local>:
1806 New field.
1807 (target_filesystem_is_local): New macro.
1808 * target-delegates.c: Regenerate.
1809 * remote.c (remote_filesystem_is_local): New function.
1810 (init_remote_ops): Initialize to_filesystem_is_local.
1811
9b15c1f0
GB
18122015-04-02 Gary Benson <gbenson@redhat.com>
1813
1814 * target.h (struct target_ops) <to_fileio_fstat>: New field.
1815 (target_fileio_fstat): New declaration.
1816 * target.c (target_fileio_fstat): New function.
1817 * inf-child.c (inf_child_fileio_fstat): Likewise.
1818 (inf_child_target): Initialize to_fileio_fstat.
1819 * remote.c (init_remote_ops): Likewise.
1820
d11916aa
SS
18212015-04-01 Sasha Smundak <asmundak@google.com>
1822
1823 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
1824 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
1825 (py-unwind.o): New recipe.
1826 * NEWS: mention Python frame unwinding.
1827 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
1828 gdb/unwinder.py and gdb/command/unwinder.py
1829 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
1830 list.
1831 (execute_unwinders): New function.
1832 * python/lib/gdb/command/unwinders.py: New file.
1833 * python/lib/gdb/unwinder.py: New file.
1834 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
1835 (objfpy_dealloc): Decrement frame_unwinders reference count.
1836 (objfpy_initialize): Create frame_unwinders list.
1837 (objfpy_get_frame_unwinders): New function.
1838 (objfpy_set_frame_unwinders): Ditto.
1839 (objfile_getset): Add frame_unwinders attribute to Objfile.
1840 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
1841 (pspy_dealloc): Decrement frame_unwinders reference count.
1842 (pspy_initialize): Create frame_unwinders list.
1843 (pspy_get_frame_unwinders): New function.
1844 (pspy_set_frame_unwinders): Ditto.
1845 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
1846 * python/py-unwind.c: New file.
1847 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
1848 (objpy_get_frame_unwinders): New prototype.
1849 (gdbpy_initialize_unwind): New prototype.
1850 * python/python.c (gdbpy_apply_type_printers): Call
1851 gdbpy_initialize_unwind.
1852
6b403daa
PA
18532015-04-01 Pedro Alves <palves@redhat.com>
1854
1855 * infrun.c (resume): Check currently_stepping after clearing
1856 stepped_breakpoint, not before.
1857
1176ecec
PA
18582015-04-01 Pedro Alves <palves@redhat.com>
1859
1860 * infrun.c (print_target_wait_results): Print all the ptid
1861 elements.
1862
de1fe8c8
PA
18632015-04-01 Pedro Alves <palves@redhat.com>
1864
1865 * infrun.c (keep_going): Also discard cleanups if inserting
1866 breakpoints fails.
1867
e6f5c25b
PA
18682015-04-01 Pedro Alves <palves@redhat.com>
1869
1870 * infrun.c (wait_for_inferior): Install the
1871 finish_thread_state_cleanup cleanup across the whole function, not
1872 just around handle_inferior_event.
1873
1ac806b8
PA
18742015-04-01 Pedro Alves <palves@redhat.com>
1875
1876 * infrun.c (resume) <step past permanent breakpoint>: Use
1877 do_target_resume.
1878
2ee52aa4
PA
18792015-04-01 Pedro Alves <palves@redhat.com>
1880
1881 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
1882
5445da1b
PMR
18832015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
1884
1885 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
1886
4eec2deb
PA
18872015-04-01 Pedro Alves <palves@redhat.com>
1888
1889 * linux-thread-db.c (record_thread): Readd the thread to gdb's
1890 list if it was marked exited.
1891
afa59b79
L
18922015-04-01 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 * configure: Regenerated.
1895
df8411da
SDJ
18962015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1897 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 Oleg Nesterov <oleg@redhat.com>
1899
1900 PR corefiles/16092
1901 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
1902 New enum identifying the various options of the coredump_filter
1903 file.
1904 (struct smaps_vmflags): New struct.
1905 (use_coredump_filter): New variable.
1906 (decode_vmflags): New function.
1907 (mapping_is_anonymous_p): Likewise.
1908 (dump_mapping_p): Likewise.
1909 (linux_find_memory_regions_full): New variables
1910 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
1911 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
1912 parsing of its information. Implement memory mapping filtering
1913 based on its contents.
1914 (show_use_coredump_filter): New function.
1915 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
1916 * NEWS: Mention the possibility of using the
1917 '/proc/PID/coredump_filter' file when generating a corefile.
1918 Mention new command 'set use-coredump-filter'.
1919
416f679e
SDJ
19202015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
1921
1922 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
1923 read_memory_unsigned_integer.
1924
711a72d3
L
19252015-03-31 H.J. Lu <hongjiu.lu@intel.com>
1926
1927 * Makefile.in (ZLIB): New.
1928 (ZLIBINC): Likewise.
1929 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
1930 (CLIBS): Add $(ZLIB).
1931 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
1932 Add -lz to LIBS.
1933 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
1934 * top.c (print_gdb_configuration): Remove --with-zlib and
1935 --without-zlib.
1936 * config.in: Regenerated.
1937 * configure: Likewise.
1938
d33279b3
AT
19392015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
1940
1941 * NEWS: Mention info os cpus support.
1942 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
1943 (struct osdata_type): Add cpus entry, reorder the entries in
1944 alphabetical order.
1945
71b30f27
MK
19462015-03-31 Matthias Klose <doko@ubuntu.com>
1947
1948 * compile/compile.c (compile_to_object): Allow triplets with or
1949 without vendor set.
1950
13ce9222
DE
19512015-03-30 Doug Evans <dje@google.com>
1952
1953 PR c++/18141
1954 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
1955 klass in VAR_DOMAIN.
1956
20f796c9
GB
19572015-03-30 Gary Benson <gbenson@redhat.com>
1958
1959 * remote.c (remote_mourn_1): Remove function. Update all callers
1960 to use remote_mourn.
1961 (extended_remote_mourn_1): Remove function. Update all callers
1962 to use extended_remote_mourn.
1963 (extended_remote_attach_1): Remove function. Update all callers
1964 to use extended_remote_attach.
1965
49d45b20
JB
19662015-03-28 James Bowman <james.bowman@ftdichip.com>
1967
1968 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1969 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1970 (ALLDEPFILES): Add ft32-tdep.c.
1971 * configure.tgt: Add FT32 entry.
1972 * ft32-tdep.c: New file, FT32 target-dependent code.
1973 * ft32-tdep.h: New file, FT32 target-dependent code.
1974
1c4ff080
JK
19752015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1976
1977 Revert:
1978 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Code cleanup.
1980 * printcmd.c (print_command_1): Move expr variable scope.
1981
79498702
JB
19822015-03-27 Joel Brobecker <brobecker@adacore.com>
1983
1984 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1985
ce9c0ca1
AK
19862015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1987
1988 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1989 sections.
1990
429e1e81
JB
19912015-03-26 Joel Brobecker <brobecker@adacore.com>
1992
1993 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1994 exception raised while parsing the probe arguments.
1995 Force parsing to be done using the C language parser.
1996 * expression.h (parse_expression_with_language): Declare.
1997 * parse.c (parse_expression_with_language): New function.
1998
4593441b
JT
19992015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
2000
2001 * MAINTAINERS (Write After Approval): Add "Jon Turney".
2002
ff908ebf
AW
20032015-03-26 Andy Wingo <wingo@igalia.com>
2004
2005 PR symtab/18148
2006 * dwarf2read.c (struct partial_die_info): Add has_const_value
2007 member.
2008 (add_partial_symbol): Don't punt on symbols that have const_value
2009 attributes.
2010 (read_partial_die): Detect DW_AT_const_value.
2011
f30d5c78
JK
20122015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2013
2014 Code cleanup.
2015 * printcmd.c (print_command_1): Move expr variable scope.
2016
8d89f51a
JK
20172015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 Code cleanup.
2020 * printcmd.c (validate_format): Make the parameter cmdname const.
2021
0b736949
DB
20222015-03-26 Don Breazeal <donb@codesourcery.com>
2023
2024 * remote.c (_initialize_remote): Update comment.
2025
20d35291
PA
20262015-03-26 Pedro Alves <palves@redhat.com>
2027 Jon TURNEY <jon.turney@dronecode.org.uk>
2028
2029 * coffread.c (coff_symfile_read): When constructing the name of an
2030 import stub symbol from import symbol for amd64, only skip the
2031 char after _imp_ if the target is underscored (like i386) and the
2032 char is indeed the target's leading char.
2033
6a3753b3
PA
20342015-03-25 Pedro Alves <palves@redhat.com>
2035
2036 * target.h <to_async>: Replace 'callback' and 'context' parameters
2037 with boolean 'enable' parameter.
2038 (target_async): Replace CALLBACK and CONTEXT parameters with
2039 boolean ENABLE parameter.
2040 * inf-loop.c (inferior_event_handler): Adjust.
2041 * linux-nat.c (linux_nat_attach, linux_nat_resume)
2042 (linux_nat_resume): Adjust.
2043 (async_client_callback, async_client_context): Delete.
2044 (handle_target_event): Call inferior_event_handler directly.
2045 (linux_nat_async): Replace 'callback' and 'context' parameters
2046 with boolean 'enable' parameter. Adjust. Remove references to
2047 async_client_callback and async_client_context.
2048 (linux_nat_close): Adjust.
2049 * record-btrace.c (record_btrace_async): Replace 'callback' and
2050 'context' parameters with boolean 'enable' parameter. Adjust.
2051 (record_btrace_resume): Adjust.
2052 * record-full.c (record_full_async): Replace 'callback' and
2053 'context' parameters with boolean 'enable' parameter. Adjust.
2054 (record_full_resume, record_full_core_resume): Adjust.
2055 * remote.c (struct remote_state) <async_client_callback,
2056 async_client_context>: Delete fields.
2057 (remote_start_remote, extended_remote_attach_1, remote_resume)
2058 (extended_remote_create_inferior): Adjust.
2059 (remote_async_serial_handler): Call inferior_event_handler
2060 directly.
2061 (remote_async): Replace 'callback' and 'context' parameters with
2062 boolean 'enable' parameter. Adjust.
2063 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
2064 Adjust.
2065 * target-delegates.c: Regenerate.
2066
1c4b552b
GB
20672015-03-25 Gary Benson <gbenson@redhat.com>
2068 Pedro Alves <palves@redhat.com>
2069
2070 * target.c (fileio_ft_t): New typedef, define object vector.
2071 (fileio_fhandles): New static variable.
2072 (is_closed_fileio_fh): New macro.
2073 (lowest_closed_fd): New static variable.
2074 (acquire_fileio_fd): New function.
2075 (release_fileio_fd): Likewise.
2076 (fileio_fd_to_fh): New macro.
2077 (target_fileio_open): Wrap the file descriptor on success.
2078 (target_fileio_pwrite): Updated to use wrapped file descriptor.
2079 (target_fileio_pread): Likewise.
2080 (target_fileio_close): Likewise.
2081
a25d8bf9
PA
20822015-03-24 Pedro Alves <palves@redhat.com>
2083
2084 * thread.c (thread_apply_all_command): Take exited threads into
2085 account.
2086
44a1ee51
PA
20872015-03-24 Pedro Alves <palves@redhat.com>
2088
2089 * infrun.c (resume, proceed): Mention
2090 switch_back_to_stepped_thread, not switch_back_to_stepping.
2091
f3263aa4
PA
20922015-03-24 Pedro Alves <palves@redhat.com>
2093
2094 * infrun.c (user_visible_resume_ptid): Rewrite going from
2095 most-locked to unlocked instead of the opposite. Move comment ...
2096 * infrun.h (user_visible_resume_ptid): ... here.
2097
2bf6fb9d
PA
20982015-03-24 Pedro Alves <palves@redhat.com>
2099
2100 * linux-nat.c (linux_nat_resume): Output debug logs before trying
2101 to resume the event lwp. Use the lwp's ptid instead of the passed
2102 in (maybe wildcard) ptid.
2103 (stop_wait_callback): Tweak debug log output.
2104 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
2105 TRAP_TRACE.
2106 (linux_nat_filter_event): In debug output, distinguish a
2107 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
2108 before trying to resume the lwp.
2109
283a9958
JB
21102015-03-24 Joel Brobecker <brobecker@adacore.com>
2111
2112 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
2113 pointer indirection.
2114 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
2115 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
2116
93a8e227
JB
21172015-03-24 Joel Brobecker <brobecker@adacore.com>
2118
2119 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
2120 Renames DYN_ATTR_DATA_LOCATION.
2121 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
2122 DYN_ATTR_DATA_LOCATION.
2123 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
2124 instead of DYN_ATTR_DATA_LOCATION.
2125
64ce06e4
PA
21262015-03-24 Pedro Alves <palves@redhat.com>
2127
2128 * breakpoint.c (until_break_command): Adjust call to proceed.
2129 * gdbthread.h (struct thread_control_state) <stepping_command>:
2130 New field.
2131 * infcall.c (run_inferior_call): Adjust call to proceed.
2132 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
2133 Adjust calls to proceed.
2134 (set_step_frame): Set the current thread's step_start_function
2135 here.
2136 (step_once): Adjust calls to proceed.
2137 (jump_command, signal_command, until_next_command)
2138 (finish_backward, finish_forward, proceed_after_attach_callback)
2139 (attach_command_post_wait): Adjust calls to proceed.
2140 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
2141 (do_target_resume): New function, factored out from ...
2142 (resume): ... here. Remove 'step' parameter. Instead, check
2143 currently_stepping to determine whether the thread should be
2144 single-stepped.
2145 (proceed): Remove 'step' parameter and don't set the thread's
2146 step_start_function here. Adjust call to 'resume'.
2147 (handle_inferior_event): Adjust calls to 'resume'.
2148 (switch_back_to_stepped_thread): Use do_target_resume instead of
2149 'resume'.
2150 (keep_going): Adjust calls to 'resume'.
2151 * infrun.h (proceed): Remove 'step' parameter.
2152 (resume): Likewise.
2153 * windows-nat.c (do_initial_windows_stuff): Adjust call to
2154 'resume'.
2155 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
2156
856e7dd6
PA
21572015-03-24 Pedro Alves <palves@redhat.com>
2158
2159 * gdbthread.h (struct thread_control_state) <stepping_command>:
2160 New field.
2161 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
2162 the thread's stepping_command field.
2163 * infrun.c (resume): Check the thread's stepping_command flag to
2164 determine which threads should be resumed. Rename 'entry_step'
2165 local to user_step.
2166 (clear_proceed_status_thread): Clear 'stepping_command'.
2167 (schedlock_applies): Change parameter type to struct thread_info
2168 pointer. Adjust.
2169 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
2170 (switch_back_to_stepped_thread): Adjust calls to
2171 'schedlock_applies'.
2172 (_initialize_infrun): Adjust "set scheduler-locking step" help.
2173
885eeb5b
PA
21742015-03-24 Pedro Alves <palves@redhat.com>
2175
2176 * infrun.c (step_start_function): Delete and ...
2177 * gdbthread.h (struct thread_control_state) <step_start_function>:
2178 ... now a field here.
2179 * infrun.c (clear_proceed_status_thread): Clear the thread's
2180 step_start_function.
2181 (proceed, process_event_stop_test, print_stop_event): Adjust.
2182
3333f03a
PA
21832015-03-24 Pedro Alves <palves@redhat.com>
2184
2185 * infrun.c (proceed): No longer handle negative step.
2186
369f6daa
GB
21872015-03-24 Gary Benson <gbenson@redhat.com>
2188
2189 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
2190 (x86_linux_prepare_to_resume): Likewise.
2191 * x86-linux-nat.c (x86_linux_new_thread):
2192 Moved to nat/x86-linux.c.
2193 (x86_linux_prepare_to_resume): Likewise.
2194 * nat/x86-linux.c (x86_linux_new_thread): New function.
2195 (x86_linux_prepare_to_resume): Likewise.
2196
8e5d4070
GB
21972015-03-24 Gary Benson <gbenson@redhat.com>
2198
2199 * nat/x86-linux-dregs.h: New file.
2200 * nat/x86-linux-dregs.c: Likewise.
2201 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
2202 (x86-linux-dregs.o): New rule.
2203 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
2204 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2205 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
2206 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
2207 (x86_linux_dr_get): Likewise.
2208 (x86_linux_dr_set): Likewise.
2209 (x86_linux_dr_get_addr): Likewise.
2210 (x86_linux_dr_get_control): Likewise.
2211 (x86_linux_dr_get_status): Likewise.
2212 (update_debug_registers_callback): Likewise.
2213 (x86_linux_dr_set_control): Likewise.
2214 (x86_linux_dr_set_addr): Likewise.
2215 (x86_linux_update_debug_registers): Likewise.
2216
2b95d440
GB
22172015-03-24 Gary Benson <gbenson@redhat.com>
2218
2219 * x86-linux-nat.c (x86_linux_update_debug_registers):
2220 New function, factored out from...
2221 (x86_linux_prepare_to_resume): ...this.
2222
14b0bc68
GB
22232015-03-24 Gary Benson <gbenson@redhat.com>
2224
2225 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
2226 (x86_linux_dr_set): Likewise.
2227 (x86_linux_dr_get_addr): Likewise.
2228 (x86_linux_dr_get_control): Likewise.
2229 (x86_linux_dr_get_status): Likewise.
2230 (update_debug_registers_callback): Likewise.
2231 (x86_linux_dr_set_control): Likewise.
2232 (x86_linux_dr_set_addr): Likewise.
2233 (x86_linux_prepare_to_resume): Likewise.
2234 (x86_linux_new_thread): Likewise.
2235
5dfe6ca8
GB
22362015-03-24 Gary Benson <gbenson@redhat.com>
2237
2238 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
2239 (x86_linux_new_thread): Rename argument.
2240
4b134ca1
GB
22412015-03-24 Gary Benson <gbenson@redhat.com>
2242
2243 * nat/x86-linux.h: New file.
2244 * nat/x86-linux.c: Likewise.
2245 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
2246 (x86-linux.o): New rule.
2247 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
2248 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2249 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
2250 (lwp_set_arch_private_info): New declaration.
2251 (lwp_arch_private_info): Likewise.
2252 * linux-nat.c (lwp_set_arch_private_info): New function.
2253 (lwp_arch_private_info): Likewise.
2254 * x86-linux-nat.c: Include nat/x86-linux.h.
2255 (arch_lwp_info): Removed structure.
2256 (update_debug_registers_callback):
2257 Use lwp_set_debug_registers_changed.
2258 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
2259 and lwp_set_debug_registers_changed.
2260 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
2261
cff068da
GB
22622015-03-24 Gary Benson <gbenson@redhat.com>
2263
2264 * nat/linux-nat.h (ptid_of_lwp): New declaration.
2265 (lwp_is_stopped): Likewise.
2266 (lwp_stop_reason): Likewise.
2267 * linux-nat.c (ptid_of_lwp): New function.
2268 (lwp_is_stopped): Likewise.
2269 (lwp_is_stopped_by_watchpoint): Likewise.
2270 * x86-linux-nat.c (update_debug_registers_callback):
2271 Use lwp_is_stopped.
2272 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
2273 lwp_stop_reason.
2274
b2f7c7e8
GB
22752015-03-24 Gary Benson <gbenson@redhat.com>
2276
2277 * linux-nat.h (linux_stop_lwp): Move declaration to...
2278 * nat/linux-nat.h (linux_stop_lwp): New declaration.
2279
6d4ee8c6
GB
22802015-03-24 Gary Benson <gbenson@redhat.com>
2281
2282 * linux-nat.h: Include nat/linux-nat.h.
2283 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
2284 * nat/linux-nat.h (struct lwp_info): New forward declaration.
2285 (iterate_over_lwps_ftype): New typedef.
2286 (iterate_over_lwps): New declaration.
2287 * linux-nat.h (iterate_over_lwps): Update comment. Use
2288 iterate_over_lwps_ftype. Update callback return value check.
2289
70a0bb6b
GB
22902015-03-24 Gary Benson <gbenson@redhat.com>
2291
2292 * x86-nat.h (x86_debug_reg_state): Move declaration to...
2293 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
2294
7b669087
GB
22952015-03-24 Gary Benson <gbenson@redhat.com>
2296
2297 * nat/linux-nat.h (current_lwp_ptid): New declaration.
2298 * linux-nat.c (current_lwp_ptid): New function.
2299 * x86-linux-nat.c: Include nat/linux-nat.h.
2300 (x86_linux_dr_get_addr): Use current_lwp_ptid.
2301 (x86_linux_dr_get_control): Likewise.
2302 (x86_linux_dr_get_status): Likewise.
2303 (x86_linux_dr_set_control): Likewise.
2304 (x86_linux_dr_set_addr): Likewise.
2305
15630549
AT
23062015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
2307
2308 PR breakpoints/16466
2309 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
2310
8a4506c0
JB
23112015-03-23 Joel Brobecker <brobecker@adacore.com>
2312
2313 * ser-mingw.c (ser_windows_setparity): Fix indentation.
2314 * ser-unix.c (hardwire_setparity): Likewise.
2315
236af5e3
YG
23162015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2317
2318 * NEWS: Mention set/show serial parity command.
2319 * monitor.c (monitor_open): Call serial_setparity.
2320 * remote.c (remote_open_1): Likewise.
2321 * ser-base.c (ser_base_serparity): New function.
2322 * ser-base.h (ser_base_setparity): Add declaration.
2323 * ser-go32.c (dos_ops): Set "setparity" field.
2324 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
2325 state.Parity.
2326 (ser_windows_setparity): New function.
2327 (hardwire_ops): Add ser_windows_setparity.
2328 (tty_ops): Add NULL for setparity field.
2329 (pipe_ops): Add ser_base_setparity.
2330 (tcp_ops): Likewise.
2331 * ser-pipe.c (pipe_ops): Likewise.
2332 * ser-tcp.c (tcp_ops): Likewise.
2333 * ser-unix.c (hardwire_setparity): Add declaration.
2334 (hardwire_raw): Don't reset PARENB flag.
2335 (hardwire_setparity): New function.
2336 (hardwire_ops): Add hardwire_setparity.
2337 * serial.c (serial_setparity): New function.
2338 (serial_parity): New global.
2339 (parity_none, parity_odd, parity_even, parity_enums, parity):
2340 New static globals.
2341 (set_parity): New function.
2342 (_initialize_serial): Add set/show serial parity commands.
2343 * serial.h (GDBPARITY_NONE): Define.
2344 (GDBPARITY_ODD): Define.
2345 (GDBPARITY_EVEN): Define.
2346 (serial_setparity) Add declaration.
2347 (struct serial_ops): Add setparity field.
2348 * target.h (serial_parity): Add declaration.
2349
32b40af9
KS
23502015-03-23 Keith Seitz <keiths@redhat.com>
2351
2352 * linespec.c (linespec_lexer_lex_keyword): Update comment.
2353
693dca06
KS
23542015-03-23 Keith Seitz <keiths@redhat.com>
2355
2356 * breakpoint.c (parse_breakpoint_sals): Use
2357 linespec_lexer_lex_keyword to ascertain if the user specified
2358 a NULL location.
2359 * linespec.c [IF_KEYWORD_INDEX]: Define.
2360 (linespec_lexer_lex_keyword): Export.
2361 (struct ls_parser) <keyword_ok>: Remove.
2362 A keyword is only a keyword if not followed by another keyword.
2363 (linespec_lexer_lex_one): Remove keyword_ok handling.
2364 Add comment explaining why the parsing stream is not advanced
2365 when a keyword is seen.
2366 (parse_linespec): Remove parser->keyword_ok.
2367 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
2368
7e993ebf
KS
23692015-03-23 Keith Seitz <keiths@redhat.com>
2370
2371 PR gdb/18021
2372 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
2373 if we find a static method with DW_AT_vtable_elem_location.
2374
b1a0f704
EZ
23752015-03-21 Eli Zaretskii <eliz@gnu.org>
2376
2377 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
2378 before the second loop, to avoid undefined behavior. Reported by
2379 Anton Blanchard <anton@samba.org>.
2380
d9823cbb
KB
23812015-03-20 Keven Boell <keven.boell@intel.com>
2382
2383 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
2384 data_location usage to linked list.
2385 (resolve_dynamic_type_internal): Adapt data_location to
2386 linked list.
2387 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
2388 (copy_type_recursive, copy_type): Add copy of linked list.
2389 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
2390 (struct dynamic_prop_list): New struct.
2391 * dwarf2read.c (set_die_type): Set data_location data.
2392
2e7bf1d7
PA
23932015-03-20 Pedro Alves <palves@redhat.com>
2394
2395 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
2396 inner block and make it const.
2397 * machoread.c (get_archive_prefix_len): Make "lparen" const.
2398
7a26bd4d
PA
23992015-03-20 Pedro Alves <palves@redhat.com>
2400
2401 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
2402 * breakpoint.h (set_breakpoint_condition): Update declaration.
2403
cd46431b
PA
24042015-03-20 Pedro Alves <palves@redhat.com>
2405
2406 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
2407
e28566f7
PA
24082015-03-20 Pedro Alves <palves@redhat.com>
2409
2410 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
2411
f6fc92f6
PA
24122015-03-20 Pedro Alves <palves@redhat.com>
2413
2414 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
2415
c32ed3ef
PA
24162015-03-20 Pedro Alves <palves@redhat.com>
2417
2418 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
2419 (nto_init_solib_absolute_prefix): Likewise.
2420
53e78085
PA
24212015-03-20 Pedro Alves <palves@redhat.com>
2422
2423 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
2424 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
2425
bc23328c
JK
24262015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2427
2428 * config/djgpp/README: Remove gdb.hp.
2429
e8ffc436
YQ
24302015-03-20 Yao Qi <yao.qi@linaro.org>
2431
2432 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
2433 set_gdbarch_cannot_step_breakpoint.
2434
23f238d3
PA
24352015-03-19 Pedro Alves <palves@redhat.com>
2436
2437 * linux-nat.c (linux_resume_one_lwp): Rename to ...
2438 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
2439 instead call perror_with_name.
2440 (check_ptrace_stopped_lwp_gone): New function.
2441 (linux_resume_one_lwp): Reimplement as wrapper around
2442 linux_resume_one_lwp_throw that swallows errors if the LWP is
2443 gone.
2444 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
2445 swallows errors if the LWP is gone. Use
2446 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
2447
eb54c8bf
PA
24482015-03-19 Pedro Alves <palves@redhat.com>
2449
2450 * linux-nat.c (status_callback): Return early if the LWP has no
2451 status pending.
2452
b90fc188
PA
24532015-03-19 Pedro Alves <palves@redhat.com>
2454
2455 * linux-nat.c (select_event_lwp_callback): Update comment to no
2456 longer mention SIGTRAP.
2457
670f82d4
TG
24582015-03-18 Tristan Gingold <gingold@adacore.com>
2459
2460 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
2461 redirection code to ...
2462 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
2463 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
2464
464b0089
GB
24652015-03-18 Gary Benson <gbenson@redhat.com>
2466
2467 (remote_protocol_features): Remove the "vFile:fstat" feature.
2468 (remote_hostio_fstat): Probe for "vFile:fstat" support.
2469
f68f11b7
YQ
24702015-03-11 Yao Qi <yao.qi@linaro.org>
2471
2472 PR tdep/18107
2473 * aarch64-linux-tdep.c: Include xml-syscall.h
2474 (aarch64_linux_get_syscall_number): New function.
2475 (aarch64_linux_init_abi): Call
2476 set_gdbarch_get_syscall_number.
2477 * syscalls/aarch64-linux.xml: New file.
2478
393bd0c0
YG
24792015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
2480
2481 * ser-base.h (ser_base_setstopbits): Change second argument name
2482 from "rate" to "num".
2483
7f3647e2
GB
24842015-03-17 Gary Benson <gbenson@redhat.com>
2485 Luke Allardyce <lukeallardyce@gmail.com>
2486
2487 PR gdb/18131
2488 * common/common-remote-fileio.h (sys/stat.h): New include.
2489 (stuct stat): Remove forward declaration.
2490
3ce5b6e2
JB
24912015-03-16 John Baldwin <jhb@FreeBSD.org>
2492
2493 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
2494 before writing core register notes.
2495
d053f6be
YZ
24962015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2497 Pedro Alves <palves@redhat.com>
2498
2499 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
2500 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
2501 (tgoto): Wrap with extern "C".
2502
b1a921c8
PA
25032015-03-16 Pedro Alves <palves@redhat.com>
2504 Yuanhui Zhang <asmwarrior@gmail.com>
2505
2506 * stub-termcap.c (tputs): Change prototype.
2507
876d1cd7
YZ
25082015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
2509 Pedro Alves <palves@redhat.com>
2510
2511 * windows-nat.c (struct thread_info_struct): Rename to ...
2512 (struct windows_thread_info_struct): ... this.
2513 (thread_info): Rename to ...
2514 (windows_thread_info): ... this.
2515 All users updated.
2516
0800b440
JK
25172015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2518 Pedro Alves <palves@redhat.com>
2519
2520 * NEWS: New Removed targets and native configurations.
2521
25222015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
2523
2524 Remove HPUX.
2525 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
2526 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
2527 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
2528 ia64-hpux-tdep.h, solib-ia64-hpux.h.
2529 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
2530 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
2531 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
2532 hppa-hpux-tdep.c.
2533 * config/ia64/hpux.mh: Remove file.
2534 * config/pa/hpux.mh: Remove file.
2535 * configure: Rebuilt.
2536 * configure.ac (dlgetmodinfo, somread.o): Remove.
2537 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2538 (ia64-*-hpux*): Remove its float format exception.
2539 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
2540 * hppa-hpux-nat.c: Remove file.
2541 * hppa-hpux-tdep.c: Remove file.
2542 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
2543 Move them here from hppa-tdep.h
2544 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
2545 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
2546 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
2547 Move them to hppa-tdep.c.
2548 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
2549 declarations.
2550 * ia64-hpux-nat.c: Remove file.
2551 * ia64-hpux-tdep.c: Remove file.
2552 * ia64-hpux-tdep.h: Remove file.
2553 * inf-ttrace.c: Remove file.
2554 * inf-ttrace.h: Remove file.
2555 * solib-ia64-hpux.c: Remove file.
2556 * solib-ia64-hpux.h: Remove file.
2557 * solib-pa64.c: Remove file.
2558 * solib-pa64.h: Remove file.
2559 * solib-som.c: Remove file.
2560 * solib-som.h: Remove file.
2561 * somread.c: Remove file.
2562
25268153
JB
25632015-03-13 John Baldwin <jhb@FreeBSD.org>
2564
2565 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
2566 * config.in: Regenerate.
2567 * configure: Regenerate.
2568 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
2569 define.
2570 (fbsd_find_memory_regions): Use kinfo_getvmmap to
2571 enumerate memory regions if present.
2572
773eacf5
JB
25732015-03-13 John Baldwin <jhb@FreeBSD.org>
2574
2575 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
2576 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
2577 expressions.
2578 (i386fbsd_sigtramp_p): Likewise.
2579
01b6bdb0
JB
25802015-03-12 John Baldwin <jhb@FreeBSD.org>
2581
2582 * MAINTAINERS (Write After Approval): Add John Baldwin.
2583
811a659a
GB
25842015-03-12 Gary Benson <gbenson@redhat.com>
2585
2586 * solib.c (_initialize_solib): Make "set/show sysroot" use
2587 add_setshow_optional_filename_cmd so it can be restored to
2588 empty after being set.
2589
10304ef3
SDJ
25902015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2591
2592 * Makefile.in (SFILES): New source break-catch-syscall.c.
2593 (COMMON_OBS): New object break-catch-syscall.o.
2594 * break-catch-syscall.c: New file.
2595 * breakpoint.c: Remove inclusion of "xml-syscall.h".
2596 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
2597 (struct syscall_catchpoint): Likewise.
2598 (dtor_catch_syscall): Likewise.
2599 (catch_syscall_inferior_data): Likewise.
2600 (struct catch_syscall_inferior_data): Likewise.
2601 (get_catch_syscall_inferior_data): Likewise.
2602 (catch_syscall_inferior_data_cleanup): Likewise.
2603 (insert_catch_syscall): Likewise.
2604 (remove_catch_syscall): Likewise.
2605 (breakpoint_hit_catch_syscall): Likewise.
2606 (print_it_catch_syscall): Likewise.
2607 (print_one_catch_syscall): Likewise.
2608 (print_mention_catch_syscall): Likewise.
2609 (print_recreate_catch_syscall): Likewise.
2610 (catch_syscall_breakpoint_ops): Likewise.
2611 (syscall_catchpoint_p): Likewise.
2612 (create_syscall_event_catchpoint): Likewise.
2613 (catch_syscall_split_args): Likewise.
2614 (catch_syscall_command_1): Likewise.
2615 (is_syscall_catchpoint_enabled): Likewise.
2616 (catch_syscall_enabled): Likewise.
2617 (catching_syscall_number): Likewise.
2618 (catch_syscall_completer): Likewise.
2619 (clear_syscall_counts): Likewise.
2620 (initialize_breakpoint_ops): Move initialization of syscall
2621 catchpoints to break-catch-syscall.c.
2622 (_initialize_breakpoint): Move code related to syscall catchpoints
2623 to break-catch-syscall.c.
2624
badd37ce
SDJ
26252015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
2626
2627 * breakpoint.c (breakpoint_find_if): New function.
2628 * breakpoint.h (breakpoint_find_if): New prototype.
2629
0a93529c
GB
26302015-03-11 Gary Benson <gbenson@redhat.com>
2631
2632 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
2633 * remote-fileio.c (remote_fileio_to_host_uint): New function.
2634 (remote_fileio_to_host_ulong): Likewise.
2635 (remote_fileio_to_host_mode): Likewise.
2636 (remote_fileio_to_host_time): Likewise.
2637 (remote_fileio_to_host_stat): Likewise.
2638 * remote.c (PACKET_vFile_fstat): New enum value.
2639 (remote_protocol_features): Register the "vFile:fstat" feature.
2640 (remote_hostio_fstat): New function.
2641 (remote_bfd_iovec_stat): Use the above.
2642 (_initialize_remote): Register new "set/show remote
2643 hostio-fstat-packet" command.
2644 * symfile.c (separate_debug_file_exists): Update comment.
2645 * NEWS: Announce new vFile:fstat packet.
2646
791c0056
GB
26472015-03-11 Gary Benson <gbenson@redhat.com>
2648
2649 * common/common-remote-fileio.h: New file.
2650 * common/common-remote-fileio.c: Likewise.
2651 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
2652 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
2653 (COMMON_OBS): Add common-remote-fileio.o.
2654 (common-remote-fileio.o): New rule.
2655 * remote-fileio.h (common-remote-fileio.h): New include.
2656 * remote-fileio.c (gdb/fileio.h): Do not include.
2657 (remote_fileio_to_be): Moved to common-remote-fileio.h.
2658 (remote_fileio_to_fio_uint): Likewise.
2659 (remote_fileio_to_fio_time): Likewise.
2660 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
2661 (remote_fileio_to_fio_mode): Likewise.
2662 (remote_fileio_to_fio_ulong): Likewise.
2663 (remote_fileio_to_fio_stat): Likewise.
2664
1390d0ef
AW
26652015-03-11 Andy Wingo <wingo@igalia.com>
2666
2667 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
2668 we were checking the cached type, not the cached dynamic type.
2669
84a4591a
AW
26702015-03-11 Andy Wingo <wingo@igalia.com>
2671
2672 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
2673 other strings, as these are on the GC'd heap, and will be
2674 collected along with the smob.
2675
85642ba0
AW
26762015-03-11 Andy Wingo <wingo@igalia.com>
2677
2678 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
2679 (objfile_functions): Bind gdbscm_objfile_progspace to
2680 objfile-progspace.
2681 * guile/lib/gdb.scm: Add objfile-progspace to exports.
2682
92fab5a6
AW
26832015-03-11 Andy Wingo <wingo@igalia.com>
2684
2685 * guile/guile.c (_initialize_guile): Disable automatic
2686 finalization, if Guile offers us that possibility.
2687 * guile/guile.c (call_initialize_gdb_module):
2688 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
2689 finalizers in appropriate places.
2690 * configure.ac (AC_TRY_LIBGUILE): Add a check for
2691 scm_set_automatic_finalization_enabled.
2692 * configure: Regenerated.
2693
f054145e
AA
26942015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2695
2696 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
2697 SAL, if possible.
2698
18396193
AA
26992015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
2700
2701 * s390-linux-nat.c (struct arch_lwp_info): New.
2702 (s390_fix_watch_points): Rename to...
2703 (s390_prepare_to_resume): ...this. Skip the PER info update
2704 unless the watch points have changed.
2705 (s390_refresh_per_info, s390_new_thread): New functions.
2706 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
2707 s390_fix_watch_points.
2708 (s390_remove_watchpoint): Likewise.
2709 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
2710 Register s390_prepare_to_resume.
2711
9eb1356e
PA
27122015-03-09 Pedro Alves <palves@redhat.com>
2713
2714 Revert:
2715 2015-03-07 Pedro Alves <palves@redhat.com>
2716 * common/gdb_socket.h: New file.
2717 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2718 sys/socket.h.
2719 (net_open): Use union gdb_sockaddr_u.
2720
aac331e4
PA
27212015-03-07 Pedro Alves <palves@redhat.com>
2722
2723 * configure.ac (build_warnings): Move -Wmissing-prototypes
2724 -Wdeclaration-after-statement -Wmissing-parameter-type
2725 -Wold-style-declaration -Wold-style-definition to the C-specific
2726 set.
2727 * configure: Regenerate.
2728
366c75fc
PA
27292015-03-07 Pedro Alves <palves@redhat.com>
2730
2731 * common/gdb_socket.h: New file.
2732 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
2733 sys/socket.h.
2734 (net_open): Use union gdb_sockaddr_u.
2735
72df25b2
PA
27362015-03-07 Pedro Alves <palves@redhat.com>
2737
2738 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
2739 (exceptions_state_mc_action_iter)
2740 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2741 Don't define.
2742 [__cplusplus] (try_scope_depth): New global.
2743 [__cplusplus] (exception_try_scope_entry)
2744 (exception_try_scope_exit, gdb_exception_sliced_copy)
2745 (exception_rethrow): New functions.
2746 (throw_exception): In C++ mode, throw
2747 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
2748 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
2749 (throw_it): In C++ mode, use try_scope_depth.
2750 * common/common-exceptions.h [!__cplusplus]
2751 (exceptions_state_mc_action_iter)
2752 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
2753 Don't declare.
2754 [__cplusplus] (exception_try_scope_entry)
2755 (exception_try_scope_exit, exception_rethrow): Declare.
2756 [__cplusplus] (struct exception_try_scope): New struct.
2757 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
2758 C++ exceptions.
2759 (struct gdb_exception_RETURN_MASK_ALL)
2760 (struct gdb_exception_RETURN_MASK_ERROR)
2761 (struct gdb_exception_RETURN_MASK_QUIT): New types.
2762
284e6217
PA
27632015-03-07 Pedro Alves <palves@redhat.com>
2764
2765 * main.c (handle_command_errors): Remove volatile qualifier from
2766 parameter.
2767
6c63c96a
PA
27682015-03-07 Pedro Alves <palves@redhat.com>
2769
2770 * breakpoint.c (save_breakpoints): Adjust to avoid code between
2771 TRY and CATCH.
2772 * gdbtypes.c (safe_parse_type): Remove empty line.
2773 (types_deeply_equal):
2774 * guile/scm-frame.c (gdbscm_frame_name):
2775 * linux-thread-db.c (find_new_threads_once):
2776 * python/py-breakpoint.c (bppy_get_commands):
2777 * record-btrace.c (record_btrace_insert_breakpoint)
2778 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
2779 (record_btrace_start_replaying): Adjust to avoid code between TRY
2780 and CATCH.
2781
492d29ea
PA
27822015-03-07 Pedro Alves <palves@redhat.com>
2783
2784 * common/common-exceptions.c (struct catcher) <exception>: No
2785 longer a pointer to volatile exception. Now an exception value.
2786 <mask>: Delete field.
2787 (exceptions_state_mc_init): Remove all parameters. Adjust.
2788 (exceptions_state_mc): No longer pop the catcher here.
2789 (exceptions_state_mc_catch): New function.
2790 (throw_exception): Adjust.
2791 * common/common-exceptions.h (exceptions_state_mc_init): Remove
2792 all parameters.
2793 (exceptions_state_mc_catch): Declare.
2794 (TRY_CATCH): Rename to ...
2795 (TRY): ... this. Remove EXCEPTION and MASK parameters.
2796 (CATCH, END_CATCH): New.
2797 All callers adjusted.
2798
ece957c8
TT
27992015-03-07 Tom Tromey <tromey@redhat.com>
2800
2801 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
2802
7556d4a4
PA
28032015-03-07 Pedro Alves <palves@redhat.com>
2804
2805 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
2806 (amd64_epilogue_frame_cache): Normal exception handling code.
2807 * break-catch-throw.c (check_status_exception_catchpoint)
2808 (re_set_exception_catchpoint): Ditto.
2809 * cli/cli-interp.c (safe_execute_command):
2810 * cli/cli-script.c (script_from_file): Ditto.
2811 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
2812 Ditto.
2813 * compile/compile-object-run.c (compile_object_run): Ditto.
2814 * cp-abi.c (baseclass_offset): Ditto.
2815 * cp-valprint.c (cp_print_value): Ditto.
2816 * exceptions.c (catch_exceptions_with_msg):
2817 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
2818 * frame.c (get_frame_address_in_block_if_available): Ditto.
2819 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
2820 (i386_sigtramp_frame_cache): Ditto.
2821 * infcmd.c (post_create_inferior): Ditto.
2822 * linespec.c (parse_linespec, find_linespec_symbols):
2823 * p-valprint.c (pascal_object_print_value): Ditto.
2824 * parse.c (parse_expression_for_completion): Ditto.
2825 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2826 * remote.c (remote_get_noisy_reply): Ditto.
2827 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
2828 * solib-svr4.c (solib_svr4_r_map): Ditto.
2829
f873665f 28302015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
2831
2832 * common/common-utils.h (startswith): New inline function.
2833 All places where this logic was used updated to use the above.
2834
68901c4d
PA
28352015-03-05 Pedro Alves <palves@redhat.com>
2836
2837 PR gdb/18002
2838 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
2839 after reading the breakpoint's shadow memory.
2840
2dcb2b1a
MK
28412015-03-05 Mark Kettenis <kettenis@gnu.org>
2842
2843 * hppabsd-nat.c: Remove file.
2844 * hppaobsd-nat.c: New file.
2845 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
2846 hppaobsd-nat.c.
2847 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
2848 hppaobsd-nat.o.
2849
527a273a
PA
28502015-03-04 Pedro Alves <palves@redhat.com>
2851
2852 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2853 (target_decr_pc_after_break): Delete declaration.
2854 * target.c (default_target_decr_pc_after_break)
2855 (target_decr_pc_after_break): Delete.
2856 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
2857 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
2858 * linux-thread-db.c (check_event): Likewise.
2859 * infrun.c (adjust_pc_after_break): Likewise.
2860 * darwin-nat.c (cancel_breakpoint): Likewise.
2861 * aix-thread.c (aix_thread_wait): Likewise.
2862 * target-delegates.c: Regenerate.
2863
faf09f01
PA
28642015-03-04 Pedro Alves <palves@redhat.com>
2865
2866 * linux-nat.c (save_sigtrap): Check for breakpoints before
2867 checking watchpoints.
2868 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
2869 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
2870 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
2871 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
2872 (linux_nat_stopped_by_sw_breakpoint)
2873 (linux_nat_supports_stopped_by_sw_breakpoint)
2874 (linux_nat_stopped_by_hw_breakpoint)
2875 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
2876 (linux_nat_wait_1): Don't re-increment the PC if relying on
2877 SIGTRAP's siginfo->si_code.
2878 (linux_nat_add_target): Install new target methods.
2879 * linux-thread-db.c (check_event): Don't account for breakpoint PC
2880 offset if the target already adjusted the PC.
2881 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
2882 (GDB_ARCH_TRAP_BRKPT): New.
2883 (TRAP_HWBKPT): Define if not already defined.
2884
f7e6eed5
PA
28852015-03-04 Pedro Alves <palves@redhat.com>
2886
2887 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
2888 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
2889 Delete field.
2890 <stop_reason>: New field.
2891 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
2892 (packet_set_cmd_state): New function.
2893 (remote_protocol_features): Register the "swbreak" and "hwbreak"
2894 features.
2895 (remote_query_supported): If not disabled with the corresponding
2896 "set remote foo-packet" command, report support for the swbreak
2897 and hwbreak features.
2898 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
2899 field.
2900 <stop_reason>: New field.
2901 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
2902 (remote_wait_as): Adjust.
2903 (remote_stopped_by_sw_breakpoint)
2904 (remote_supports_stopped_by_sw_breakpoint)
2905 (remote_stopped_by_hw_breakpoint)
2906 (remote_supports_stopped_by_hw_breakpoint): New functions.
2907 (remote_stopped_by_watchpoint): New function.
2908 (init_remote_ops): Install them.
2909 (_initialize_remote): Register new "set/show remote
2910 swbreak-feature-packet" and "set/show remote
2911 swbreak-feature-packet" commands.
2912
9e8915c6
PA
29132015-03-04 Pedro Alves <palves@redhat.com>
2914
2915 * btrace.h: Include target/waitstatus.h.
2916 (struct btrace_thread_info) <stop_reason>: New field.
2917 * record-btrace.c (record_btrace_step_thread): Use
2918 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2919 (record_btrace_decr_pc_after_break): Delete.
2920 (record_btrace_stopped_by_sw_breakpoint)
2921 (record_btrace_supports_stopped_by_sw_breakpoint)
2922 (record_btrace_stopped_by_hw_breakpoint)
2923 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
2924 (init_record_btrace_ops): Install them.
2925 * record-full.c (record_full_hw_watchpoint): Delete and replace
2926 with ...
2927 (record_full_stop_reason): ... this throughout.
2928 (record_full_exec_insn): Adjust.
2929 (record_full_wait_1): Adjust. No longer re-increment the PC.
2930 (record_full_wait_1): Adjust. Use
2931 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
2932 (record_full_stopped_by_watchpoint): Adjust.
2933 (record_full_stopped_by_sw_breakpoint)
2934 (record_full_supports_stopped_by_sw_breakpoint)
2935 (record_full_supports_stopped_by_sw_breakpoint)
2936 (record_full_stopped_by_hw_breakpoint)
2937 (record_full_supports_stopped_by_hw_breakpoint): New functions.
2938 (init_record_full_ops, init_record_full_core_ops): Install them.
2939 * record.c (record_check_stopped_by_breakpoint): New function.
2940 * record.h: Include target/waitstatus.h.
2941 (record_check_stopped_by_breakpoint): New declaration.
2942
15c66dd6
PA
29432015-03-04 Pedro Alves <palves@redhat.com>
2944
2945 enum lwp_stop_reason -> enum target_stop_reason
2946 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
2947 (linux_nat_stopped_by_watchpoint, status_callback)
2948 (linux_nat_wait_1): Adjust.
2949 * linux-nat.h (enum lwp_stop_reason): Delete.
2950 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
2951 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
2952 * target/waitstatus.h (enum target_stop_reason): New.
2953
1cf4d951
PA
29542015-03-04 Pedro Alves <palves@redhat.com>
2955
2956 * breakpoint.c (need_moribund_for_location_type): New function.
2957 (bpstat_stop_status): Don't skipping checking moribund locations
2958 of breakpoint types which the target tell caused a stop.
2959 (program_breakpoint_here_p): New function, factored out from ...
2960 (bp_loc_is_permanent): ... this.
2961 (update_global_location_list): Don't create a moribund location if
2962 the target supports reporting stops of the type of the removed
2963 breakpoint.
2964 * breakpoint.h (program_breakpoint_here_p): New declaration.
2965 * infrun.c (adjust_pc_after_break): Return early if the target has
2966 already adjusted the PC. Add comments.
2967 (handle_signal_stop): If nothing explains a signal, and the target
2968 tells us the stop was caused by a software breakpoint, check if
2969 there's a breakpoint instruction in the memory. If so, adjust the
2970 PC before presenting the stop to the user. Otherwise, ignore the
2971 trap. If nothing explains a signal, and the target tells us the
2972 stop was caused by a hardware breakpoint, ignore the trap.
2973 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2974 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2975 to_supports_stopped_by_hw_breakpoint>: New fields.
2976 (target_stopped_by_sw_breakpoint)
2977 (target_supports_stopped_by_sw_breakpoint)
2978 (target_stopped_by_hw_breakpoint)
2979 (target_supports_stopped_by_hw_breakpoint): Define.
2980 * target-delegates.c: Regenerate.
2981
79639e11
PA
29822015-03-04 Pedro Alves <palves@redhat.com>
2983
2984 * infrun.c (follow_fork_inferior): Use the whole of the
2985 inferior_ptid and pending_follow.related_pid ptids instead of
2986 building ptids from the process components. Adjust verbose output
2987 to use target_pid_to_str.
2988 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2989 inferior_ptid and pending_follow.related_pid ptids instead of
2990 building ptids from the process components.
2991
e85e8e5e
MK
29922015-03-04 Mark Kettenis <kettenis@gnu.org>
2993
2994 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2995 (inf_ptrace_insert_fork_catchpoint): New function.
2996 (inf_ptrace_remove_fork_catchpoint): New function.
2997 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2998
87de11c0
AA
29992015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3000
3001 * s390-linux-tdep.c (s390_register_name): Return empty string
3002 instead of NULL for registers that shouldn't be visible.
3003
d851a69a
AA
30042015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3005
3006 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
3007 XML file for 64-bit targets.
3008
b072f6c1
SM
30092015-03-03 Simon Marchi <simon.marchi@ericsson.com>
3010
3011 * target.h (find_default_create_inferior): Remove declaration.
3012 (find_default_attach): Likewise.
3013
c1593e4f
PA
30142015-03-03 Pedro Alves <palves@redhat.com>
3015
3016 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
3017 Use ptid_get_pid to get the overall process id when resuming all
3018 threads.
3019
90ad5e1d
PA
30202015-03-03 Pedro Alves <palves@redhat.com>
3021
3022 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
3023 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
3024 * inf-ptrace.c (get_ptrace_pid): New function.
3025 (inf_ptrace_resume): Use it.
3026 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
3027 to the lower layer.
3028
d68e53f4
MM
30292015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3030
3031 * nat/linux-btrace.c: Include sys/utsname.h.
3032 (linux_determine_kernel_ptr_bits): New.
3033 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
3034 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
3035 ptr_bits.
3036
986b6601
MM
30372015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3038
3039 * btrace.c (ftrace_update_function): Treat return as tailcall for
3040 "_dl_runtime_resolve".
3041
ce0dfbea
MM
30422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
3043
3044 * btrace.h (btrace_function) <lbegin, lend>: Remove.
3045 * btrace.c (ftrace_debug): Do not print the line range.
3046 (ftrace_skip_file, ftrace_update_lines): Remove.
3047 (ftrace_new_function): Remove lbegin and lend initialization.
3048 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
3049 * record-btrace.c (btrace_compute_src_line_range): New.
3050 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
3051
95e50b27
PA
30522015-03-02 Pedro Alves <palves@redhat.com>
3053
3054 * infrun.c (follow_exec): Delete all threads of the process except
3055 the event thread. Extended comments.
3056
00e474c2
JB
30572015-03-02 Joel Brobecker <brobecker@adacore.com>
3058
3059 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
3060
cc7039d3
JB
30612015-03-02 Joel Brobecker <brobecker@adacore.com>
3062
3063 * utils.h: Remove <stdbool.h> #include.
3064 (producer_is_gcc): Change return type to "int".
3065 * utils.c (producer_is_gcc): Change return type to int.
3066 Return 1 instead of true, and 0 instead of false.
3067 Adjust function documentation accordingly.
3068
550bdf96
AA
30692015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
3070
3071 * s390-linux-nat.c (have_regset_vxrs): New static variable.
3072 (s390_linux_fetch_inferior_registers): Handle vector registers, if
3073 present.
3074 (s390_linux_store_inferior_registers): Likewise.
3075 (s390_get_hwcap): Remove function. Embed its logic...
3076 (s390_read_description): ...here. Yield a target description with
3077 vector registers if applicable.
3078 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
3079 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
3080 "features/s390x-tevx-linux64.c".
3081 (struct gdbarch_tdep) <v0_full_regnum>: New field.
3082 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
3083 for "GNU/Linux-specific registers".
3084 (s390_dwarf_reg_r0l): New enum value.
3085 (s390_dwarf_reg_to_regnum): Support vector registers.
3086 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
3087 of GPR lower halves.
3088 (regnum_is_vxr_full): New function.
3089 (s390_register_name): New function.
3090 (s390_pseudo_register_name): Handle v0-v15, which are composed of
3091 f0-f15 and v0l-v15l.
3092 (s390_pseudo_register_type): Likewise.
3093 (s390_pseudo_register_read): Likewise.
3094 (s390_pseudo_register_write): Likewise.
3095 (s390_value_from_register): Account for the fact that values are
3096 placed left-justified in vector registers.
3097 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
3098 the vector reggroup and omit them from the general reggroup.
3099 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
3100 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
3101 (s390_iterate_over_regset_sections): Add iterations for the two
3102 new vector regsets.
3103 (s390_core_read_description): Yield a target description with
3104 vector registers if applicable.
3105 (s390_gdbarch_init): Handle target descriptions with vector
3106 registers. Add "register_name" gdbarch method.
3107 (_initialize_s390_tdep): Call new tdesc initialization functions.
3108 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
3109 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
3110 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
3111 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
3112 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
3113 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
3114 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
3115 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
3116 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
3117 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
3118 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
3119 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
3120 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
3121 (S390_NUM_REGS): Adjust value.
3122 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
3123 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
3124 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
3125 * NEWS: Announce S/390 vector register support.
3126
446899e4
AA
31272015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128
3129 * features/s390-tevx-linux64.xml: New file.
3130 * features/s390-vx-linux64.xml: New file.
3131 * features/s390-vx.xml: New file.
3132 * features/s390x-tevx-linux64.xml: New file.
3133 * features/s390x-vx-linux64.xml: New file.
3134 * features/Makefile (WHICH): Add s390-vx-linux64,
3135 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
3136 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
3137 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
3138 macros.
3139 * features/s390-tevx-linux64.c: New generated file.
3140 * features/s390-vx-linux64.c: Likewise.
3141 * features/s390x-tevx-linux64.c: Likewise.
3142 * features/s390x-vx-linux64.c: Likewise.
3143 * regformats/s390-tevx-linux64.dat: Likewise.
3144 * regformats/s390-vx-linux64.dat: Likewise.
3145 * regformats/s390x-tevx-linux64.dat: Likewise.
3146 * regformats/s390x-vx-linux64.dat: Likewise.
3147
b7236fbe
DE
31482015-02-28 Doug Evans <xdje42@gmail.com>
3149
3150 * symtab.h (struct symtab) <next>: Fix comment.
3151
02e62830
SM
31522015-02-27 Simon Marchi <simon.marchi@ericsson.com>
3153
3154 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
3155 python_GdbMethods.
3156
bf36a1e7
PA
31572015-02-27 Pedro Alves <palves@redhat.com>
3158
3159 * dtrace-probe.c (dtrace_probe_ops): Make extern.
3160
ad6aff7d
PA
31612015-02-27 Pedro Alves <palves@redhat.com>
3162
3163 * common/common-exceptions.h (exception_none): Declare.
3164 * common/common-exceptions.c (exception_none): Moved from
3165 exceptions.c.
3166 (exceptions_state_mc_init): Use exception_none.
3167 * exceptions.c (exception_none): Move to
3168 common/common-exceptions.c.
3169 * exceptions.h (exception_none): Move to
3170 common/common-exceptions.h.
3171
97c18565
PA
31722015-02-27 Pedro Alves <palves@redhat.com>
3173
3174 * main.c (catch_command_errors, catch_command_errors_const):
3175 Remove 'mask' argument. Adjust.
3176 (captured_main): Adjust callers.
3177
e992c591
PA
31782015-02-27 Pedro Alves <palves@redhat.com>
3179
3180 * python/python-internal.h: Include "extension-priv.h".
3181
64166036
PA
31822015-02-27 Pedro Alves <palves@redhat.com>
3183
3184 * breakpoint.h (enum print_stop_action): Move further up in the
3185 file.
3186
8a526fa6
PA
31872015-02-27 Pedro Alves <palves@redhat.com>
3188
3189 * gdbarch.sh: Include regcache.h.
3190 * gdbarch.h: Regenerate.
3191
0fa9c223
PA
31922015-02-27 Pedro Alves <palves@redhat.com>
3193
3194 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
3195 Remove duplicate const.
3196 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
3197 duplicate const.
3198
7cf99fb1
PA
31992015-02-27 Pedro Alves <palves@redhat.com>
3200
3201 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
3202 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
3203 * features/feature_to_c.sh: Tag the generated xml_builtin array
3204 with extern const in C++ mode.
3205
1424c16e
TT
32062015-02-27 Tom Tromey <tromey@redhat.com>
3207
3208 * minidebug.c (struct lzma_stream): Rename to ...
3209 (struct gdb_lzma_stream): ... this.
3210 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
3211
10367c7c
PA
32122015-02-27 Pedro Alves <palves@redhat.com>
3213
3214 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
3215 function.
3216 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3217 (mi_cmd_stack_list_variables): Use it.
3218
4180215b
PA
32192015-02-27 Pedro Alves <palves@redhat.com>
3220
3221 * x86-linux-nat.c (u_debugreg_offset): New function.
3222 (x86_linux_dr_get, x86_linux_dr_set): Use it.
3223
2f56f7c3
PA
32242015-02-27 Pedro Alves <palves@redhat.com>
3225
3226 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
3227 declaration.
3228 Include break-common.h.
3229
570dc176
TT
32302015-02-27 Tom Tromey <tromey@redhat.com>
3231 Pedro Alves <palves@redhat.com>
3232
3233 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
3234 local used to iterate over enums.
3235 * completer.c (signal_completer): Likewise.
3236 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
3237 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
3238 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
3239 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
3240 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
3241 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
3242 * tui-wingeneral.c (tui_refresh_all): Likewise.
3243
68c14faa
PA
32442015-02-27 Pedro Alves <palves@redhat.com>
3245
3246 * target.h: Include "infrun.h".
3247
749bab01
PA
32482015-02-27 Pedro Alves <palves@redhat.com>
3249
3250 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
3251
3c14e5a3
PA
32522015-02-27 Pedro Alves <palves@redhat.com>
3253
3254 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
3255 (IPA_SYM): Use it.
3256 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
3257
56000a98
PA
32582015-02-27 Pedro Alves <palves@redhat.com>
3259
3260 * cli-out.c (_rl_erase_entire_line): Move declaration out of
3261 cli_mld_erase_entire_line, and make it extern "C".
3262 * common/common-defs.h (EXTERN_C): New.
3263 * completer.c (_rl_completion_prefix_display_length)
3264 (_rl_print_completions_horizontally, QSFUNC): Move declarations
3265 out of gdb_display_match_list_1.
3266 (_rl_qsort_string_compare): Move declaration out of
3267 gdb_display_match_list_1, and make it extern "C".
3268 * defs.h (re_comp): Use EXTERN_C.
3269 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
3270 and make it extern "C".
3271 (monstartup): Move declaration out of maintenance_set_profile_cmd,
3272 and make it extern "C".
3273 (main): Move declaration out of maintenance_set_profile_cmd.
3274 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
3275 EXTERN_C.
3276
bcabf420
PA
32772015-02-27 Pedro Alves <palves@redhat.com>
3278
3279 * python/python.c (GdbMethods): Rename to ...
3280 (python_GdbMethods): ... this and make extern.
3281 (GdbModuleDef): Rename to ...
3282 (python_GdbModuleDef): ... this and make extern.
3283
928dbe07
PA
32842015-02-27 Pedro Alves <palves@redhat.com>
3285
3286 * record-btrace.c (set_record_btrace_cmdlist)
3287 (show_record_btrace_cmdlist): Remove redefinitions.
3288
52059ffd
TT
32892015-02-27 Tom Tromey <tromey@redhat.com>
3290 Pedro Alves <palves@redhat.com>
3291
3292 * dwarf2-frame.c (enum cfa_how_kind, struct
3293 dwarf2_frame_state_reg_info): Move out of struct
3294 dwarf2_frame_state.
3295 * dwarf2read.c (struct tu_stats): Move out of struct
3296 dwarf2_per_objfile.
3297 (struct file_entry): Move out of struct line_header.
3298 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
3299 typedef_field_list): Move out of struct field_info.
3300 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
3301 Move out of struct dynamic_prop.
3302 (union type_owner, union field_location, struct field, struct
3303 range_bounds, union type_specific): Move out of struct main_type.
3304 (struct fn_fieldlist, struct fn_field, struct typedef_field)
3305 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
3306 (struct call_site_target, union call_site_parameter_u, struct
3307 call_site_parameter): Move out of struct call_site.
3308 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
3309 m32c_prologue.
3310 (enum srcdest_kind): Move out of struct srcdest.
3311 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
3312 * prologue-value.h (enum prologue_value_kind): Move out of struct
3313 prologue_value.
3314 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
3315 gdbarch_tdep.
3316 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
3317 out of struct field_info.
3318 * symfile.h (struct other_sections): Move out of struct
3319 section_addr_info.
3320 * symtab.c (struct symbol_cache_slot): Move out struct
3321 block_symbol_cache.
3322 * target-descriptions.c (enum tdesc_type_kind): Move out of
3323 typedef struct tdesc_type.
3324 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
3325 struct tui_line_or_address.
3326 * value.c (enum internalvar_kind, union internalvar_data): Move
3327 out of struct internalvar.
3328 * xtensa-tdep.h (struct ctype_cache): Move out of struct
3329 gdbarch_tdep.
3330
fe978cb0
PA
33312015-02-27 Tom Tromey <tromey@redhat.com>
3332 Pedro Alves <palves@redhat.com>
3333
3334 Rename symbols whose names are reserved C++ keywords throughout.
3335
3bc3d82a
PA
33362015-02-27 Pedro Alves <palves@redhat.com>
3337
3338 * Makefile.in (COMPILER): New, get it from autoconf.
3339 (COMPILE.pre, CC_LD): Use COMPILER.
3340 (CXX): Get from autoconf instead.
3341 (CXX_FOR_TARGET): Default to g++ instead of gcc.
3342 * acinclude.m4: Include build-with-cxx.m4.
3343 * build-with-cxx.m4: New file.
3344 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
3345 Disable -Werror by default if building in C++ mode.
3346 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
3347 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
3348 Run supported-warning-flags tests with the C++ compiler.
3349 Save/restore CXXFLAGS too.
3350 * configure: Regenerate.
3351
07697489
PA
33522015-02-27 Pedro Alves <palves@redhat.com>
3353
3354 * libiberty.m4: New file.
3355 * acinclude.m4: Include libiberty.m4.
3356 * configure.ac: Call libiberty_INIT.
3357 * config.in, configure: Regenerate.
3358
60abeae4
AA
33592015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3360
3361 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
3362 31-bit targets, but 64-bit targets as well.
3363 (s390_gnu_triplet_regexp): New function.
3364 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
3365 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
3366 method.
3367
f44466fb 33682015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
3369
3370 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
3371 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
3372 from CONTEXT_DEBUGGER.
3373
0def5aaa
DE
33742015-02-26 Doug Evans <dje@google.com>
3375
3376 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
3377 CHECK_TYPEDEF.
3378 (set_type_vptr_fieldno): Ditto.
3379 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
3380 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
3381
77b64a49
PA
33822015-02-26 Pedro Alves <palves@redhat.com>
3383
3384 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
3385 * complaints.c (vcomplaint): Pass argument FMT directly to
3386 printf-like functions instead of complaint->fmt.
3387 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
3388 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
3389 * compile/compile-loc2c.c (pushf, unary, binary): Add
3390 ATTRIBUTE_PRINTF.
3391 (do_compile_dwarf_expr_to_c): Pass string literal as format string
3392 to pushf.
3393 (BINARY): Pass string literal as format string to 'binary'.
3394 * compile/compile-object-load.c (link_callbacks_einfo): Add
3395 ATTRIBUTE_PRINTF.
3396 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
3397
532f44ed
PA
33982015-02-26 Pedro Alves <palves@redhat.com>
3399
3400 * windows-termcap.c: Rename to ...
3401 * stub-termcap.c: ... this. Adjust header line.
3402 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
3403 windows-termcap.c.
3404 * configure: Regenerate.
3405 * configure.ac: Refer to stub-termcap.o instead of
3406 windows-termcap.o.
3407 * gdb_curses.h: Mention stub-termcap.c instead of
3408 windows-termcap.c.
3409
081a1c2c
JK
34102015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3411
3412 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
3413 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
3414
2f41223f
AT
34152015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
3416
3417 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
3418
80c57053
JK
34192015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
3422 bfd_canonicalize_symtab.
3423
cf424aef
JB
34242015-02-25 John Baldwin <jhb@FreeBSD.org>
3425
3426 * amd64fbsd-nat.c: Include sys/user.h.
3427 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3428 instead of KERN_PS_STRINGS to locate the signal trampoline.
3429 * i386fbsd-nat.c: Include sys/user.h.
3430 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
3431 instead of KERN_PS_STRINGS to locate the signal trampoline.
3432 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
3433 (amd64fbsd_sigtramp_p): New.
3434 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
3435 longer set default values.
3436 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
3437 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
3438 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
3439 (i386fbsd_freebsd4_sigtramp_start)
3440 (i386fbsd_freebsd4_sigtramp_middle)
3441 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
3442 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
3443 (i386fbsd_sigtramp_p): New.
3444 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
3445 longer set default values.
3446 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
3447
c5cb74ee
JB
34482015-02-25 John Baldwin <jhb@freebsd.org>
3449
3450 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
3451 get_frame_register instead of frame_unwind_register_unsigned.
3452
17487d85
JK
34532015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3454
3455 PR build/18033
3456 * compile/compile-c-support.c (c_compute_program): Change // comment.
3457 * compile/compile-object-load.c (setup_sections): Change // comment.
3458
9357a9e6
JB
34592015-02-26 Joel Brobecker <brobecker@adacore.com>
3460
3461 PR build/18033:
3462 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
3463
1f10ba14
PA
34642015-02-23 Pedro Alves <palves@redhat.com>
3465
3466 * remote.c (skip_to_semicolon): New function.
3467 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
3468 special case the stop reasons that look like hex numbers
3469 upfront. Instead handle real register numbers after matching
3470 all the known stop reasons.
3471
96553a0c
DE
34722015-02-21 Doug Evans <dje@google.com>
3473
3474 PR c++/17976, symtab/17821
3475 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
3476 is_in_anonymous. All callers updated.
3477 (find_symbol_in_baseclass): Ditto.
3478 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
3479 for symbols in an anonymous namespace.
3480 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
3481 DW_AT_name directly.
3482 (dwarf2_name): Convert missing namespace name to
3483 CP_ANONYMOUS_NAMESPACE_STR.
3484
2db9a427
PA
34852015-02-20 Pedro Alves <palves@redhat.com>
3486
3487 * linux-nat.c (linux_handle_extended_wait): Call
3488 thread_db_notice_clone whenever a new clone LWP is detected.
3489 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
3490 functions.
3491 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
3492 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
3493 (linux_unstop_all_lwps): Declare.
3494 * linux-thread-db.c (struct thread_get_info_inout): Delete.
3495 (thread_get_info_callback): Delete.
3496 (thread_from_lwp): Use td_thr_get_info and record_thread.
3497 (thread_db_attach_lwp): Delete.
3498 (thread_db_notice_clone): New function.
3499 (try_thread_db_load_1): If /proc is mounted and shows the
3500 process'es task list, walk over all LWPs and call thread_from_lwp
3501 instead of relying on td_ta_thr_iter.
3502 (attach_thread): Don't call check_thread_signals here. Split the
3503 tail part of the function (which adds the thread to the core GDB
3504 thread list) to ...
3505 (record_thread): ... this function. Call check_thread_signals
3506 here.
3507 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
3508 call thread_from_lwp.
3509 (thread_db_update_thread_list): Rename to ...
3510 (thread_db_update_thread_list_org): ... this.
3511 (thread_db_update_thread_list): New function.
3512 (thread_db_find_thread_from_tid): Delete.
3513 (thread_db_get_ada_task_ptid): Simplify.
3514 * nat/linux-procfs.c: Include <sys/stat.h>.
3515 (linux_proc_task_list_dir_exists): New function.
3516 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
3517
3b27ef47
PA
35182015-02-20 Pedro Alves <palves@redhat.com>
3519
3520 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
3521 main LWP. Handle the case of waitpid returning 0 if we're already
3522 attached to the LWP. Don't set the LWP's last_resume_kind to
3523 resume_stop if we already knew about the LWP.
3524 (linux_nat_filter_event): Add debug logs.
3525
1cc28231
PA
35262015-02-20 Pedro Alves <palves@redhat.com>
3527
3528 * target.h (forward_target_decr_pc_after_break): Delete
3529 declaration.
3530
5c5019c2
PA
35312015-02-20 Pedro Alves <palves@redhat.com>
3532
3533 PR threads/18006
3534 * linux-thread-db.c (thread_get_info_callback): Return early if
3535 the thread's lwp id is -1.
3536
f3978e91
JB
35372015-02-20 Joel Brobecker <brobecker@adacore.com>
3538
3539 GDB 7.9 released.
3540
ffdf88ec
SE
35412015-02-19 Steve Ellcey <sellcey@imgtec.com>
3542
3543 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
3544 (dtrace_get_probes) Change type of variable 'dof'.
3545
c9587f88
AT
35462015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
3547
3548 PR breakpoints/16812
3549 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
3550 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
3551 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
3552
53cf2ee0
DT
35532015-02-19 David Taylor <dtaylor@emc.com>
3554
3555 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
3556
acfe0940
PP
35572015-02-18 Patrick Palka <patrick@parcs.ath.cx>
3558
3559 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
3560 function.
3561 (tui_putc): Don't call tui_handle_resize_during_io.
3562 (tui_getc): Likewise.
3563 (tui_mld_getc): Likewise.
3564 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
3565 (tui_sigwinch_token): New static variable.
3566 (tui_initialize_win): Adjust documentation. Set
3567 tui_sigwinch_token.
3568 (tui_async_resize_screen): New asynchronous callback.
3569 (tui_sigwinch_handler): Adjust documentation. Asynchronously
3570 invoke tui_async_resize_screen.
3571
f6a88844
JM
35722015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
3573
3574 * configure: Regenerated.
3575 * configure.ac: Use GDB_AC_TRANSFORM.
3576 * Makefile.in (aclocal_m4_deps): Added transform.m4.
3577 * acinclude.m4: sinclude transform.m4.
3578 * transform.m4: New file.
3579 (GDB_AC_TRANSFORM): New macro.
3580
b05e3b0d
JM
35812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3582
3583 * NEWS: Announce the support for DTrace SDT probes.
3584
c3e3045e
JM
35852015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3586
3587 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
3588 (amd64_dtrace_parse_probe_argument): New function.
3589 (amd64_dtrace_probe_is_enabled): Likewise.
3590 (amd64_dtrace_enable_probe): Likewise.
3591 (amd64_dtrace_disable_probe): Likewise.
3592 (amd64_linux_init_abi): Register the
3593 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
3594 `gdbarch_dtrace_disable_probe' and
3595 `gdbarch_dtrace_probe_is_enabled' hooks.
3596 (amd64_dtrace_disabled_probe_sequence_1): New constant.
3597 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
3598 (amd64_dtrace_enable_probe_sequence): Likewise.
3599 (amd64_dtrace_disable_probe_sequence): Likewise.
3600
d4777acb
JM
36012015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3602
3603 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
3604 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
3605 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
3606 handle ELF files.
3607 * Makefile.in (SFILES): dtrace-probe.c added.
3608 * configure: Regenerate.
3609 * dtrace-probe.c: New file.
3610 (SHT_SUNW_dof): New constant.
3611 (dtrace_probe_type): New enum.
3612 (dtrace_probe_arg): New struct.
3613 (dtrace_probe_arg_s): New typedef.
3614 (struct dtrace_probe_enabler): New struct.
3615 (dtrace_probe_enabler_s): New typedef.
3616 (dtrace_probe): New struct.
3617 (dtrace_probe_is_linespec): New function.
3618 (dtrace_dof_sect_type): New enum.
3619 (dtrace_dof_dofh_ident): Likewise.
3620 (dtrace_dof_encoding): Likewise.
3621 (DTRACE_DOF_ENCODE_LSB): Likewise.
3622 (DTRACE_DOF_ENCODE_MSB): Likewise.
3623 (dtrace_dof_hdr): New struct.
3624 (dtrace_dof_sect): Likewise.
3625 (dtrace_dof_provider): Likewise.
3626 (dtrace_dof_probe): Likewise.
3627 (DOF_UINT): New macro.
3628 (DTRACE_DOF_PTR): Likewise.
3629 (DTRACE_DOF_SECT): Likewise.
3630 (dtrace_process_dof_probe): New function.
3631 (dtrace_process_dof): Likewise.
3632 (dtrace_build_arg_exprs): Likewise.
3633 (dtrace_get_arg): Likewise.
3634 (dtrace_get_probes): Likewise.
3635 (dtrace_get_probe_argument_count): Likewise.
3636 (dtrace_can_evaluate_probe_arguments): Likewise.
3637 (dtrace_evaluate_probe_argument): Likewise.
3638 (dtrace_compile_to_ax): Likewise.
3639 (dtrace_probe_destroy): Likewise.
3640 (dtrace_gen_info_probes_table_header): Likewise.
3641 (dtrace_gen_info_probes_table_values): Likewise.
3642 (dtrace_probe_is_enabled): Likewise.
3643 (dtrace_probe_ops): New variable.
3644 (info_probes_dtrace_command): New function.
3645 (_initialize_dtrace_probe): Likewise.
3646 (dtrace_type_name): Likewise.
3647
8b367e17
JM
36482015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3649
3650 * gdbarch.sh (dtrace_parse_probe_argument): New.
3651 (dtrace_probe_is_enabled): Likewise.
3652 (dtrace_enable_probe): Likewise.
3653 (dtrace_disable_probe): Likewise.
3654 * gdbarch.c: Regenerate.
3655 * gdbarch.h: Regenerate.
3656
9aca2ff8
JM
36572015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3658
3659 * stap-probe.c (stap_probe_ops): Add NULLs in the static
3660 stap_probe_ops for `enable_probe' and `disable_probe'.
3661 * probe.c (enable_probes_command): New function.
3662 (disable_probes_command): Likewise.
3663 (_initialize_probe): Define the cli commands `enable probe' and
3664 `disable probe'.
3665 (parse_probe_linespec): New function.
3666 (info_probes_for_ops): Use parse_probe_linespec.
3667 * probe.h (probe_ops): New hooks `enable_probe' and
3668 `disable_probe'.
3669
03e98035
JM
36702015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3671
3672 * probe.c (compute_probe_arg): Moved from stap-probe.c
3673 (compile_probe_arg): Likewise.
3674 (probe_funcs): Likewise.
3675 * stap-probe.c (compute_probe_arg): Moved to probe.c.
3676 (compile_probe_arg): Likewise.
3677 (probe_funcs): Likewise.
3678
6f9b8491
JM
36792015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
3680
3681 * probe.c (print_ui_out_not_applicables): New function.
3682 (exists_probe_with_pops): Likewise.
3683 (info_probes_for_ops): Do not include column headers for probe
3684 types for which no probe has been actually found on any object.
3685 Also invoke `print_ui_out_not_applicables' in order to match the
3686 column rows with the header when probes of several types are
3687 listed.
3688 Print the "Type" column.
3689 * probe.h (probe_ops): Added a new probe operation `type_name'.
3690 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
3691 (stap_type_name): New function.
3692
69efdff1
PP
36932015-02-17 Patrick Palka <patrick@parcs.ath.cx>
3694
3695 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
3696 (key_is_command_char): Delete.
3697
f8e5e23e
PA
36982015-02-17 Pedro Alves <palves@redhat.com>
3699
3700 * tui/tui.c (tui_enable): Resize windows before anything
3701 might show a window.
3702
9f2e0721
MO
37032015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
3704
3705 PR gdb/17984
3706 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
3707 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
3708 call.
3709 * aarch64-tdep.h (tdesc_aarch64): Declare.
3710
171e6b1c
MW
37112015-02-12 Mark Wielaard <mjw@redhat.com>
3712
3713 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
3714
d5ff0482
DE
37152015-02-13 Doug Evans <dje@google.com>
3716
3717 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
3718 anonymous_namespace to is_in_anonymous for consistency with the rest
3719 of the file.
3720 (cp_lookup_bare_symbol): Fix typo in comment.
3721 (cp_search_static_and_baseclasses): Ditto.
3722 (search_symbol_list): Use vertical space in comment better.
3723 (reset_directive_searched): Ditto. Fix typo.
3724 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
3725
9f04ac5f
YQ
37262015-02-13 Yao Qi <yao.qi@arm.com>
3727
3728 * MAINTAINERS: Update my email address.
3729
013d0319
DE
37302015-02-12 Doug Evans <dje@google.com>
3731
b615dd20 3732 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 3733
9a7e538e
DE
37342015-02-12 Doug Evans <dje@google.com>
3735
3736 * completer.c (complete_line): Remove incorrect comment.
3737
e1fcd575
JK
37382015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
3741 (py_print_frame): Use RETURN_MASK_ERROR.
3742
b99bf4e3
JK
37432015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3744
3745 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
3746 function comment. Wrap all function that can throw in cleanups.
3747 (gdbpy_apply_frame_filter): Wrap all function that can throw in
3748 cleanups.
3749
800eb1ce
JK
37502015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 * python/py-framefilter.c (py_print_frame): Substitute goto error.
3753 Remove the error label.
3754
34019068
JK
37552015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3756
3757 * python/py-framefilter.c (py_print_frame): Put conditional code paths
3758 with goto first, indent the former else codepath left. Put variable
3759 'elided' to a new inner block.
3760
8d4a54e2
JK
37612015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
3764
18ad82c1
PA
37652015-02-11 Pedro Alves <palves@redhat.com>
3766
3767 * xcoffread.c (within_function): Delete.
3768
e36122e9
TT
37692015-02-11 Tom Tromey <tromey@redhat.com>
3770 Pedro Alves <palves@redhat.com>
3771
3772 * breakpoint.c (base_breakpoint_ops): Delete.
3773 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
3774 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
3775 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
3776 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
3777 * python/py-arch.c (arch_object_type): Make extern.
3778 * python/py-block.c (block_syms_iterator_object_type): Make extern.
3779 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
3780 * python/py-cmd.c (cmdpy_object_type): Make extern.
3781 * python/py-continueevent.c (continue_event_object_type)
3782 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
3783 parameter. Update all callers.
3784 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
3785 * python/py-exitedevent.c (exited_event_object_type): Make extern.
3786 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
3787 * python/py-function.c (fnpy_object_type): Make extern.
3788 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
3789 * python/py-infevents.c (call_pre_event_object_type)
3790 (inferior_call_post_event_object_type).
3791 (memory_changed_event_object_type): Make extern.
3792 * python/py-infthread.c (thread_object_type): Make extern.
3793 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
3794 * python/py-linetable.c (linetable_entry_object_type)
3795 (linetable_object_type, ltpy_iterator_object_type): Make extern.
3796 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3797 (clear_objfiles_event_object_type): Make extern.
3798 * python/py-objfile.c (objfile_object_type): Make extern.
3799 * python/py-param.c (parmpy_object_type): Make extern.
3800 * python/py-progspace.c (pspace_object_type): Make extern.
3801 * python/py-signalevent.c (signal_event_object_type): Make extern.
3802 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
3803 * python/py-type.c (type_object_type, field_object_type)
3804 (type_iterator_object_type): Make extern.
3805 * python/python.c (python_extension_script_ops)
3806 (python_extension_ops): Make extern.
3807 * stap-probe.c (stap_probe_ops): Make extern.
3808
0703599a
PA
38092015-02-11 Pedro Alves <pedro@codesourcery.com>
3810
3811 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
3812 because the event thread is not the current thread.
3813
eaaf76ab
DE
38142015-02-11 Doug Evans <xdje42@gmail.com>
3815
3816 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
3817 been initialized yet, return NULL.
3818
e7d52ed3
DE
38192015-02-11 Doug Evans <dje@google.com>
3820
3821 * symfile.h (new_symfile_objfile): Delete.
3822 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
3823 All callers updated.
3824
fc6b1256
PP
38252015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3826
3827 * tui/tui-io.c (tui_handle_resize_during_io): Call
3828 tui_update_gdb_sizes() after resizing the screen.
3829 * tui/tui.c (tui_enable): Resize the terminal before
3830 calling tui_update_gdb_sizes().
3831
d9080678
PP
38322015-02-11 Patrick Palka <patrick@parcs.ath.cx>
3833
3834 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
3835 line before printing a newline.
3836
9f615e3a
MW
38372015-02-11 Mark Wielaard <mjw@redhat.com>
3838
3839 * utils.c (producer_is_gcc): Return true or false.
3840
d9080678 38412015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
3842
3843 * utils.h (producer_is_gcc): Change return type to bool. Add major
3844 argument.
3845 * utils.c (producer_is_gcc): Likewise.
3846 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
3847 * dwarf2read.c (check_producer): Likewise.
3848
b052c4fb
PA
38492015-02-10 Pedro Alves <palves@redhat.com>
3850
3851 * infrun.c (displaced_step_fixup): Switch to the event thread
3852 before calling gdbarch_displaced_step_fixup.
3853
3ac240d4
AT
38542015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
3855
3856 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
3857
c1cc6152
SM
38582015-02-10 Simon Marchi <simon.marchi@ericsson.com>
3859
3860 * ada-varobj.c (ada_name_of_child): Constify parent.
3861 (ada_path_expr_of_child): Same.
3862 (ada_value_of_child): Same.
3863 (ada_type_of_child): Same.
3864 * c-varobj.c (c_is_path_expr_parent): Same.
3865 (c_describe_child): Same.
3866 (c_name_of_child): Same.
3867 (c_value_of_child): Same.
3868 (c_type_of_child): Same.
3869 (cplus_number_of_children): Same.
3870 (cplus_describe_child): Constify var.
3871 (cplus_name_of_child): Constify parent.
3872 (cplus_value_of_child): Same.
3873 (cplus_type_of_child): Same.
3874 * jv-varobj.c (java_name_of_child): Same.
3875 (java_value_of_child): Same.
3876 (java_type_of_child): Same.
3877 * varobj.c (value_of_child): Same.
3878 (varobj_default_is_path_expr_parent): Constify var, parent and return
3879 value.
3880 (varobj_get_path_expr): Constify var, modify path_expr through
3881 mutable_var.
3882 (install_new_value): Constify parent.
3883 (value_of_child): Constify parent.
3884 * varobj.h (struct varobj): Constify parent.
3885 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
3886 type_of_child.
3887 (varobj_get_path_expr): Constify var.
3888 (varobj_get_path_expr_parent): Constify var and return value.
3889
c1ee9414
LM
38902015-02-10 Luis Machado <lgustavo@codesourcery.com>
3891
3892 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
3893 (arm_prologue_this_id): Move PC and SP limit checks to
3894 arm_prologue_unwind_stop_reason.
3895 (arm_prologue_unwind) <stop_reason> : Set to
3896 arm_prologue_unwind_stop_reason.
3897
f7de9aab
MW
38982015-02-09 Mark Wielaard <mjw@redhat.com>
3899
3900 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
3901 DW_LANG_Fortran08 as language_fortran.
3902
0b24eb2d
SDJ
39032015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
3904
3905 PR remote/17946
3906 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
3907 of pointer against char.
3908
a2c2acaf
MW
39092015-02-09 Mark Wielaard <mjw@redhat.com>
3910
3911 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
3912 (c_type_print_modifier): Likewise.
3913 * dwarf2read.c (read_tag_atomic_type): New function.
3914 (read_type_die_1): Handle DW_TAG_atomic_type.
3915 * gdbtypes.c (make_atomic_type): New function.
3916 (recursive_dump_type): Handle TYPE_ATOMIC.
3917 * gdbtypes.h (enum type_flag_values): Renumber.
3918 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
3919 (TYPE_ATOMIC): New macro.
3920 (make_atomic_type): Declare.
3921
31fd9caa
MM
39222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3923
3924 * btrace.c (ftrace_find_call): Skip gaps.
3925 (ftrace_new_function): Initialize level.
3926 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
3927 (ftrace_new_switch): Update
3928 level computation.
3929 (ftrace_new_gap): New.
3930 (ftrace_update_function): Create new function after gap.
3931 (btrace_compute_ftrace_bts): Create gap on error.
3932 (btrace_stitch_bts): Update parameters. Clear trace if it
3933 becomes empty.
3934 (btrace_stitch_trace): Update parameters. Update callers.
3935 (btrace_clear): Reset the number of gaps.
3936 (btrace_insn_get): Return NULL if the iterator points to a gap.
3937 (btrace_insn_number): Return zero if the iterator points to a gap.
3938 (btrace_insn_end): Allow gaps at the end.
3939 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
3940 (btrace_find_insn_by_number): Assert that the found iterator does
3941 not point to a gap.
3942 (btrace_call_next, btrace_call_prev): Assert that the last function
3943 is not a gap.
3944 * btrace.h (btrace_bts_error): New.
3945 (btrace_function): Update comment.
3946 (btrace_function) <insn, insn_offset, number>: Update comment.
3947 (btrace_function) <errcode>: New.
3948 (btrace_thread_info) <ngaps>: New.
3949 (btrace_thread_info) <replay>: Update comment.
3950 (btrace_insn_get): Update comment.
3951 * record-btrace.c (btrace_ui_out_decode_error): New.
3952 (record_btrace_info): Print number of gaps.
3953 (btrace_insn_history, btrace_call_history): Call
3954 btrace_ui_out_decode_error for gaps.
3955 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
3956
afb778a2
MM
39572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3958
3959 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
3960 * nat/linux-btrace.c: (btrace_this_cpu): New.
3961 (cpu_supports_bts): Call btrace_this_cpu.
3962 (intel_supports_bts): Add cpu parameter.
3963
7d5c24b3
MM
39642015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3965
3966 * btrace.h (btrace_insn_class): New.
3967 (btrace_insn) <size, iclass>: New.
3968 * btrace.c (ftrace_find_call): Update parameters. Update users.
3969 Use instruction classification.
3970 (ftrace_new_return): Update parameters. Update users.
3971 (ftrace_update_function): Update parameters. Update users. Use
3972 instruction classification.
3973 (ftrace_update_insns): Update parameters. Update users.
3974 (ftrace_classify_insn): New.
3975 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3976 TRY_CATCH around call to gdb_insn_length.
3977
76235df1
MM
39782015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3979
3980 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3981 Update parameters. Update users.
3982
d33501a5
MM
39832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3984
3985 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3986 (btrace_conf_bts_attributes): New.
3987 (btrace_conf_children): Add attributes.
3988 * common/btrace-common.h (btrace_config_bts): New.
3989 (btrace_config)<bts>: New.
3990 (btrace_config): Update comment.
3991 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3992 Use config.
3993 * features/btrace-conf.dtd: Increment version. Add size
3994 attribute to bts element.
3995 * record-btrace.c (set_record_btrace_bts_cmdlist,
3996 show_record_btrace_bts_cmdlist): New.
3997 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3998 record_btrace_print_conf, cmd_set_record_btrace_bts,
3999 cmd_show_record_btrace_bts): New.
4000 (record_btrace_info): Call record_btrace_print_conf.
4001 (_initialize_record_btrace): Add commands.
4002 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
4003 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
4004 (btrace_sync_conf): Synchronize bts size.
4005 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
4006 * NEWS: Announce new commands and new packets.
4007
f4abbc16
MM
40082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4009
4010 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
4011 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
4012 (x86_linux_btrace_conf): New.
4013 (x86_linux_create_target): Initialize to_btrace_conf.
4014 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
4015 Check format. Split into this and ...
4016 (linux_enable_bts): ... this.
4017 (linux_btrace_conf): New.
4018 (perf_event_skip_record): Renamed into ...
4019 (perf_event_skip_bts_record): ... this. Updated users.
4020 (linux_disable_btrace): Split into this and ...
4021 (linux_disable_bts): ... this.
4022 (linux_read_btrace): Check format.
4023 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
4024 (linux_btrace_conf): New.
4025 (btrace_target_info)<ptid>: Moved.
4026 (btrace_target_info)<conf>: New.
4027 (btrace_target_info): Split into this and ...
4028 (btrace_tinfo_bts): ... this. Updated users.
4029 * btrace.c (btrace_enable): Update parameters.
4030 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
4031 (btrace_conf_children, btrace_conf_attributes)
4032 (btrace_conf_elements): New.
4033 * btrace.h (btrace_enable): Update parameters.
4034 (btrace_conf, parse_xml_btrace_conf): New.
4035 * common/btrace-common.h (btrace_config): New.
4036 * feature/btrace-conf.dtd: New.
4037 * record-btrace.c (record_btrace_conf): New.
4038 (record_btrace_cmdlist): New.
4039 (record_btrace_enable_warn, record_btrace_open): Pass
4040 &record_btrace_conf.
4041 (record_btrace_info): Print recording format.
4042 (cmd_record_btrace_bts_start): New.
4043 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
4044 (_initialize_record_btrace): Add "record btrace bts" subcommand.
4045 Add "record bts" alias command.
4046 * remote.c (remote_state)<btrace_config>: New.
4047 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
4048 (remote_protocol_features): Add qXfer:btrace-conf:read.
4049 (remote_open_1): Call remote_btrace_reset.
4050 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
4051 (btrace_target_info)<conf>: New.
4052 (btrace_sync_conf, btrace_read_config): New.
4053 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
4054 btrace_read_conf.
4055 (remote_btrace_conf): New.
4056 (init_remote_ops): Initialize to_btrace_conf.
4057 (_initialize_remote): Add qXfer:btrace-conf packet.
4058 * target.c (target_enable_btrace): Update parameters.
4059 (target_btrace_conf): New.
4060 * target.h (target_enable_btrace): Update parameters.
4061 (target_btrace_conf): New.
4062 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
4063 (target_ops)<to_enable_btrace>: Update parameters and comment.
4064 (target_ops)<to_btrace_conf>: New.
4065 * target-delegates: Regenerate.
4066 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
4067 (target_debug_print_const_struct_btrace_target_info_p): New.
4068 * NEWS: Announce new command and new packet.
4069
aadf7753
MM
40702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4071
4072 * nat/linux-btrace.h (perf_event_buffer): New.
4073 (btrace_target_info) <buffer, size, data_head>: Replace with ...
4074 <bts>: ... this.
4075 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
4076 (perf_event_buffer_size, perf_event_buffer_begin)
4077 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
4078 Updated users.
4079 (perf_event_new_data): New.
4080
043c3577
MM
40812015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4082
4083 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
4084 * record-btrace.c (record_btrace_open): Remove call to
4085 target_supports_btrace.
4086 * remote.c (remote_supports_btrace): Update parameters.
4087 * target.c (target_supports_btrace): Update parameters.
4088 * target.h (to_supports_btrace, target_supports_btrace): Update
4089 parameters.
4090 * target-delegates.c: Regenerate.
4091 * target-debug.h (target_debug_print_enum_btrace_format): New.
4092 * nat/linux-btrace.c
4093 (kernel_supports_btrace): Rename into ...
4094 (kernel_supports_bts): ... this. Update users. Update warning text.
4095 (intel_supports_btrace): Rename into ...
4096 (intel_supports_bts): ... this. Update users.
4097 (cpu_supports_btrace): Rename into ...
4098 (cpu_supports_bts): ... this. Update users.
4099 (linux_supports_btrace): Update parameters. Split into this and ...
4100 (linux_supports_bts): ... this.
4101 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
4102
734b0e4b
MM
41032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4104
4105 * Makefile.in (SFILES): Add common/btrace-common.c.
4106 (COMMON_OBS): Add common/btrace-common.o.
4107 (btrace-common.o): Add build rules.
4108 * btrace.c (parse_xml_btrace): Update parameters.
4109 (parse_xml_btrace_block): Set format field.
4110 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
4111 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
4112 (btrace_compute_ftrace): Split into this and...
4113 (btrace_compute_ftrace_bts): ...this.
4114 (btrace_stitch_trace): Split into this and...
4115 (btrace_stitch_bts): ...this.
4116 * btrace.h (parse_xml_btrace): Update parameters.
4117 (make_cleanup_btrace_data): New.
4118 * common/btrace-common.c: New.
4119 * common/btrace-common.h: Include common-defs.h.
4120 (btrace_block_s): Update comment.
4121 (btrace_format): New.
4122 (btrace_format_string): New.
4123 (btrace_data_bts): New.
4124 (btrace_data): New.
4125 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
4126 * remote.c (remote_read_btrace): Update parameters.
4127 * target.c (target_read_btrace): Update parameters.
4128 * target.h (target_read_btrace): Update parameters.
4129 (target_ops)<to_read_btrace>: Update parameters.
4130 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
4131 * target-delegates.c: Regenerate.
4132 * target-debug (target_debug_print_struct_btrace_data_p): New.
4133 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
4134 (linux_read_bts): ...this.
4135 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
4136
bd2e0e9e
DE
41372015-02-06 Doug Evans <dje@google.com>
4138
4139 * remote-m32r-sdi.c: Include symfile.h.
4140
f176c4b5
DE
41412015-02-06 Doug Evans <dje@google.com>
4142
4143 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
4144 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
4145 to here.
4146
d6c146e9
PA
41472015-02-06 Pedro Alves <palves@redhat.com>
4148
4149 * linux-thread-db.c (find_new_threads_callback): Add debug output.
4150
b9d61307
SM
41512015-02-06 Simon Marchi <simon.marchi@ericsson.com>
4152
4153 PR gdb/15678
4154 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
4155 (enable_count_command): Check args for NULL value.
4156
e9fbd043
DE
41572015-02-05 Doug Evans <xdje42@gmail.com>
4158
4159 * guile/scm-frame.c: Fix spelling errors in a comment.
4160
881d5d5d
JK
41612015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4162
4163 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
4164 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
4165 return type.
4166
20ba1ce6
PA
41672015-02-04 Pedro Alves <palves@redhat.com>
4168
4169 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
4170 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
4171 returns true.
4172 (resume_stopped_resumed_lwps): Don't check whether the thread is
4173 marked as executing.
4174 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
4175
f962539a
AA
41762015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4177
4178 * regset.h (struct regset): Add flags field.
4179 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
4180 * corelow.c (get_core_register_section): Add warning if the size
4181 exceeds the requested size and the regset does not have the
4182 REGSET_VARIABLE_SIZE flag set.
4183 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
4184 flag.
4185 * armbsd-tdep.c (armbsd_gregset): Likewise.
4186 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4187 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
4188 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
4189 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
4190
dde9acd6
AA
41912015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4192
4193 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
4194 For ".reg-xstate", explicitly specify the requested section size
4195 via X86_XSTATE_SIZE instead of just 0 on input and
4196 X86_XSTATE_MAX_SIZE on output.
4197 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
4198 Likewise.
4199
1528345d
AA
42002015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4201
4202 PR corefiles/17808:
4203 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
4204 function type, particularly its SIZE parameter.
4205 * gdbarch.h: Regenerate.
4206 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
4207 actual against required size using ">=" instead of "==".
4208 (amd64_collect_fpregset): Likewise.
4209 * i386-tdep.c (i386_supply_gregset): Likewise.
4210 (i386_collect_gregset): Likewise.
4211 (i386_supply_fpregset): Likewise.
4212 (i386_collect_fpregset): Likewise.
4213 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
4214 (mips_fill_gregset_wrapper): Likewise.
4215 (mips_supply_fpregset_wrapper): Likewise.
4216 (mips_fill_fpregset_wrapper): Likewise.
4217 (mips64_supply_gregset_wrapper): Likewise.
4218 (mips64_fill_gregset_wrapper): Likewise.
4219 (mips64_supply_fpregset_wrapper): Likewise.
4220 (mips64_fill_fpregset_wrapper): Likewise.
4221 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
4222 (am33_supply_fpregset_method): Likewise.
4223 (am33_collect_gregset_method): Likewise.
4224 (am33_collect_fpregset_method): Likewise.
4225
518be979
DE
42262015-02-04 Doug Evans <dje@google.com>
4227 Pedro Alves <palves@redhat.com>
4228 Eli Zaretskii <eliz@gnu.org>
4229
4230 PR tui/17810
4231 * tui/tui-command.c (tui_refresh_cmd_win): New function.
4232 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
4233 * tui/tui-file.c: #include tui/tui-command.h.
4234 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
4235 (tui_file_flush): Refresh command window if stream is gdb_stdout.
4236 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
4237
80bd5fab
PA
42382015-02-04 Pedro Alves <palves@redhat.com>
4239
4240 Fix build breakage.
4241 * event-loop.c (gdb_do_one_event): Add default switch case.
4242
a7606d80
JK
42432015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 Filter out inferior gcc option -fpreprocessed.
4246 * compile/compile.c (filter_args): New function.
4247 (get_args): Use it.
4248
70b66289
PA
42492015-02-03 Pedro Alves <palves@redhat.com>
4250
4251 * event-loop.c: Don't declare nor define a queue type for
4252 gdb_event_p.
4253 (event_queue): Delete.
4254 (create_event, create_file_event, gdb_event_xfree)
4255 (initialize_event_loop, process_event): Delete.
4256 (gdb_do_one_event): Return as soon as one event is handled.
4257 (handle_file_event): Change prototype. Used the passed in
4258 file_handler pointer and ready_mask instead of looping over all
4259 file handlers.
4260 (gdb_wait_for_event): Update the poll/select timeouts before
4261 blocking. Run event handlers directly instead of queueing events.
4262 Return as soon as one event is handled.
4263 (struct async_event_handler_data): Delete.
4264 (invoke_async_event_handler): Delete.
4265 (check_async_event_handlers): Change return type to int. Run
4266 event handlers directly instead of queueing events. Return as
4267 soon as one event is handled.
4268 (handle_timer_event): Delete.
4269 (update_wait_timeout): New function, factored out from
4270 poll_timers.
4271 (poll_timers): Reimplement.
4272 * event-loop.h (initialize_event_loop): Delete declaration.
4273 * top.c (gdb_init): Don't call initialize_event_loop.
4274
b7d2e916
PA
42752015-02-03 Pedro Alves <palves@redhat.com>
4276
4277 * event-loop.c (clear_async_event_handler): New function.
4278 * event-loop.h (clear_async_event_handler): New declaration.
4279 * record-btrace.c (record_btrace_async): New function.
4280 (init_record_btrace_ops): Install record_btrace_async.
4281 * record-full.c (record_full_async): New function.
4282 (record_full_resume): Don't mark the async event source here.
4283 (init_record_full_ops): Install record_full_async.
4284 (record_full_core_resume): Don't mark the async event source here.
4285 (init_record_full_core_ops): Install record_full_async.
4286 * remote.c (remote_async): Mark and clear the async stop reply
4287 queue event-loop token as appropriate.
4288
d9d41e78
PA
42892015-02-03 Pedro Alves <palves@redhat.com>
4290
4291 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
4292 target_is_async_p instead of target_can_async.
4293 (linux_nat_wait): Use target_is_async_p instead of
4294 target_can_async. Don't enable async here.
4295 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
4296 target_is_async_p instead of target_can_async.
4297
aa3de267
SM
42982015-02-02 Simon Marchi <simon.marchi@ericsson.com>
4299
4300 * varobj.h (lang_varobj_ops): Mention which return values need
4301 to be freed.
4302
2c811c0f
JB
43032015-02-02 Joel Brobecker <brobecker@adacore.com>
4304
4305 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
4306
b1eedac9
JB
43072015-02-02 Joel Brobecker <brobecker@adacore.com>
4308
4309 PR gdb/17856:
4310 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
4311 results found in the cache.
4312
66c168ae
JB
43132015-02-02 Joel Brobecker <brobecker@adacore.com>
4314
4315 PR gdb/17854:
4316 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
4317 when allocating a new one.
4318
4bdc02b2
TT
43192015-02-01 Tom Tromey <tom@tromey.com>
4320
4321 * MAINTAINERS: Remove myself.
4322
ae6ae975
DE
43232015-01-31 Doug Evans <xdje42@gmail.com>
4324
4325 * dwarf2read.c (process_structure_scope): Update setting of
4326 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
4327 * gdbtypes.c (internal_type_vptr_fieldno): New function.
4328 (set_type_vptr_fieldno): New function.
4329 (internal_type_vptr_basetype): New function.
4330 (set_type_vptr_basetype): New function.
4331 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
4332 TYPE_VPTR_BASETYPE.
4333 (allocate_cplus_struct_type): Initialize vptr_fieldno.
4334 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
4335 (print_cplus_stuff): ... moved here.
4336 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
4337 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
4338 moved to ...
4339 (struct cplus_struct_type): ... here. All uses updated.
4340 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
4341 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
4342 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
4343 * stabsread.c (read_tilde_fields): Update setting of
4344 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
4345
09e2d7c7
DE
43462015-01-31 Doug Evans <xdje42@gmail.com>
4347
4348 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
4349 to self_p.
4350 (cp_print_class_member): Rename local domain to self_type.
4351 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
4352 domain_type to self_type.
4353 (set_die_type) <need_gnat_info>: Handle
4354 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
4355 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
4356 TYPE_SPECIFIC_SELF_TYPE.
4357 * gdbtypes.c (internal_type_self_type): New function.
4358 (set_type_self_type): New function.
4359 (smash_to_memberptr_type): Rename parameter domain to self_type.
4360 Update setting of TYPE_SELF_TYPE.
4361 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
4362 (smash_to_method_type): Rename parameter domain to self_type.
4363 Update setting of TYPE_SELF_TYPE.
4364 (check_stub_method): Call smash_to_method_type.
4365 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
4366 (copy_type_recursive): Ditto.
4367 * gdbtypes.h (enum type_specific_kind): New value
4368 TYPE_SPECIFIC_SELF_TYPE.
4369 (struct main_type) <type_specific>: New member self_type.
4370 (struct cplus_struct_type) <fn_field.type>: Update comment.
4371 (TYPE_SELF_TYPE): Rewrite.
4372 (internal_type_self_type, set_type_self_type): Declare.
4373 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
4374 self_type.
4375 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
4376 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
4377 TYPE_TARGET_TYPE.
4378 * stabsread.c (read_member_functions): Mark methods with
4379 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
4380 TYPE_SELF_TYPE.
4381
4bfb94b8
DE
43822015-01-31 Doug Evans <xdje42@gmail.com>
4383
4384 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
4385 All uses updated.
4386
5f4ce105
DE
43872015-01-31 Doug Evans <xdje42@gmail.com>
4388
4389 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
4390 or unions. Return zero if union.
4391 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
4392 (gnuv3_rtti_type): Pass already-check_typedef'd value to
4393 gnuv3_get_vtable.
4394 (compute_vtable_size): Assert only passed structs.
4395 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
4396
f6b3afbf
DE
43972015-01-31 Doug Evans <xdje42@gmail.com>
4398
4399 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
4400 kinds.
4401
cfb069a8
GB
44022015-01-31 Gary Benson <gbenson@redhat.com>
4403 Doug Evans <dje@google.com>
4404
4405 PR cli/9007
4406 PR cli/11920
4407 PR cli/15548
4408 * cli/cli-cmds.c (complete_command): Notify user if max-completions
4409 reached.
4410 * common/common-exceptions.h (enum errors)
4411 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
4412 * completer.h (get_max_completions_reached_message): New declaration.
4413 (max_completions): Likewise.
4414 (completion_tracker_t): New typedef.
4415 (new_completion_tracker): New declaration.
4416 (make_cleanup_free_completion_tracker): Likewise.
4417 (maybe_add_completion_enum): New enum.
4418 (maybe_add_completion): New declaration.
4419 (throw_max_completions_reached_error): Likewise.
4420 * completer.c (max_completions): New global variable.
4421 (new_completion_tracker): New function.
4422 (free_completion_tracker): Likewise.
4423 (make_cleanup_free_completion_tracker): Likewise.
4424 (maybe_add_completions): Likewise.
4425 (throw_max_completions_reached_error): Likewise.
4426 (complete_line): Remove duplicates and limit result to max_completions
4427 entries.
4428 (get_max_completions_reached_message): New function.
4429 (gdb_display_match_list): Handle max_completions.
4430 (_initialize_completer): New declaration and function.
4431 * symtab.c: Include completer.h.
4432 (completion_tracker): New static variable.
4433 (completion_list_add_name): Call maybe_add_completion.
4434 (default_make_symbol_completion_list_break_on_1): Renamed from
4435 default_make_symbol_completion_list_break_on. Maintain
4436 completion_tracker across calls to completion_list_add_name.
4437 (default_make_symbol_completion_list_break_on): New function.
4438 * top.c (init_main): Set rl_completion_display_matches_hook.
4439 * tui/tui-io.c: Include completer.h.
4440 (tui_old_rl_display_matches_hook): New static global.
4441 (tui_rl_display_match_list): Notify user if max-completions reached.
4442 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
4443 * NEWS (New Options): Mention set/show max-completions.
4444
e11c72c7
GB
44452015-01-31 Gary Benson <gbenson@redhat.com>
4446
4447 * symtab.c (struct add_name_data) <code>: New field.
4448 Updated comments.
4449 (add_symtab_completions): New function.
4450 (symtab_expansion_callback): Likewise.
4451 (default_make_symbol_completion_list_break_on): Set datum.code.
4452 Move minimal symbol scan before calling expand_symtabs_matching.
4453 Scan known primary symtabs for externs and statics before calling
4454 expand_symtabs_matching. Pass symtab_expansion_callback as
4455 expansion_notify argument to expand_symtabs_matching. Do not scan
4456 primary symtabs for externs and statics after calling
4457 expand_symtabs_matching.
4458
276d885b
GB
44592015-01-31 Gary Benson <gbenson@redhat.com>
4460
4461 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
4462 (struct quick_symbol_functions) <expand_symtabs_matching>:
4463 New argument expansion_notify. All uses updated.
4464 (expand_symtabs_matching): New argument expansion_notify.
4465 All uses updated.
4466 * symfile-debug.c (debug_qf_expand_symtabs_matching):
4467 Also print expansion notify.
4468 * symtab.c (expand_symtabs_matching_via_partial): Call
4469 expansion_notify whenever a partial symbol table is expanded.
4470 * dwarf2read.c (dw2_expand_symtabs_matching): Call
4471 expansion_notify whenever a symbol table is instantiated.
4472
82083d6d
DE
44732015-01-31 Doug Evans <xdje42@gmail.com>
4474
4475 * cli-out.c: #include completer.h, readline/readline.h.
4476 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
4477 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
4478 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
4479 * cli-out.h (cli_display_match_list): Declare.
4480 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
4481 (ELLIPSIS_LEN): Ditto.
4482 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
4483 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
4484 (gdb_fnprint, gdb_print_filename): Ditto.
4485 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
4486 (gdb_display_match_list): Ditto.
4487 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
4488 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
4489 (mld_beep_ftype, mld_read_key_ftype): Ditto.
4490 (match_list_displayer): New struct.
4491 (gdb_display_match_list): Declare.
4492 * top.c (init_main): Set rl_completion_display_matches_hook.
4493 * tui/tui-io.c: #include completer.h.
4494 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
4495 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
4496 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
4497 (tui_mld_getc, tui_mld_read_key): Ditto.
4498 (tui_rl_display_match_list): Rewrite.
4499 (tui_handle_resize_during_io): New arg for_completion. All callers
4500 updated.
4501
f57d2163
DE
45022015-01-31 Doug Evans <xdje42@gmail.com>
4503
4504 Add symbol lookup cache.
4505 * NEWS: Document new options and commands.
4506 * symtab.c (symbol_cache_key): New static global.
4507 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
4508 (SYMBOL_LOOKUP_FAILED): New macro.
4509 (symbol_cache_slot_state): New enum.
4510 (block_symbol_cache): New struct.
4511 (symbol_cache): New struct.
4512 (new_symbol_cache_size, symbol_cache_size): New static globals.
4513 (hash_symbol_entry, eq_symbol_entry): New functions.
4514 (symbol_cache_byte_size, resize_symbol_cache): New functions.
4515 (make_symbol_cache, free_symbol_cache): New functions.
4516 (get_symbol_cache, symbol_cache_cleanup): New function.
4517 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
4518 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
4519 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
4520 (symbol_cache_flush, symbol_cache_dump): New functions.
4521 (maintenance_print_symbol_cache): New function.
4522 (maintenance_flush_symbol_cache): New function.
4523 (symbol_cache_stats): New function.
4524 (maintenance_print_symbol_cache_statistics): New function.
4525 (symtab_new_objfile_observer): New function.
4526 (symtab_free_objfile_observer): New function.
4527 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
4528 (_initialize_symtab): Init symbol_cache_key. New parameter
4529 maint symbol-cache-size. New maint commands print symbol-cache,
4530 print symbol-cache-statistics, flush-symbol-cache.
4531 Install new_objfile, free_objfile observers.
4532
e700d1b2
JB
45332015-01-31 Joel Brobecker <brobecker@adacore.com>
4534
4535 PR symtab/17855
4536 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
4537 to end.
4538
9f050062
DE
45392015-01-31 Doug Evans <xdje42@gmail.com>
4540
4541 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
4542 * auto-load.c: #include ctype.h.
4543 (struct auto_load_pspace_info): Replace member loaded_scripts with
4544 new members loaded_script_files, loaded_script_texts.
4545 (auto_load_pspace_data_cleanup): Update.
4546 (init_loaded_scripts_info): Update.
4547 (get_auto_load_pspace_data_for_loading): Update.
4548 (maybe_add_script_file): Renamed from maybe_add_script. All callers
4549 updated.
4550 (maybe_add_script_text): New function.
4551 (clear_section_scripts): Update.
4552 (source_script_file, execute_script_contents): New functions.
4553 (source_section_scripts): Add support for
4554 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
4555 (print_scripts): New function.
4556 (auto_load_info_scripts): Also print inlined scripts.
4557 (maybe_print_unsupported_script_warning): Renamed from
4558 unsupported_script_warning_print. All callers updated.
4559 (maybe_print_script_not_found_warning): Renamed from
4560 script_not_found_warning_print. All callers updated.
4561 * extension-priv.h (struct extension_language_script_ops): New member
4562 objfile_script_executor.
4563 * extension.c (ext_lang_objfile_script_executor): New function.
4564 * extension.h (objfile_script_executor_func): New typedef.
4565 (ext_lang_objfile_script_executor): Declare.
4566 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
4567 * guile/guile.c (guile_extension_script_ops): Update.
4568 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
4569 * python/python.c (python_extension_script_ops): Update.
4570 (gdbpy_execute_objfile_script): New function.
4571
312809f8
EZ
45722015-01-31 Eli Zaretskii <eliz@gnu.org>
4573
4574 * tui/tui-io.c (tui_expand_tabs): New function.
4575 (tui_puts, tui_redisplay_readline): Expand TABs into the
4576 appropriate number of spaces.
4577 * tui/tui-regs.c: Include tui-io.h.
4578 (tui_register_format): Call tui_expand_tabs to expand TABs into
4579 the appropriate number of spaces.
4580 * tui/tui-io.h: Add prototype for tui_expand_tabs.
4581
b6577aab
DE
45822015-01-30 Doug Evans <dje@google.com>
4583
4584 * NEWS: "info source" command now display producer string if present.
4585 * source.c (source_info): Print producer string if present.
4586
6da58d3e
SM
45872015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4588
4589 * varobj.c (varobj_delete): Fix comment.
4590
837ce252
SM
45912015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4592
4593 * varobj.c (create_child): Modify comment.
4594
b09e2c59
SM
45952015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4596
4597 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
4598 parameter.
4599 (ada_name_of_variable): Same.
4600 (ada_path_expr_of_child): Same.
4601 (ada_value_of_variable): Same.
4602 (ada_value_is_changeable_p): Same.
4603 (ada_value_has_mutated): Same.
4604 * c-varobj.c (varobj_is_anonymous_child): Same.
4605 (c_is_path_expr_parent): Same.
4606 (c_number_of_children): Same.
4607 (c_name_of_variable): Same.
4608 (c_path_expr_of_child): Same.
4609 (get_type): Same.
4610 (c_value_of_variable): Same.
4611 (cplus_number_of_children): Same.
4612 (cplus_name_of_variable): Same.
4613 (cplus_path_expr_of_child): Same.
4614 (cplus_value_of_variable): Same.
4615 * jv-varobj.c (java_number_of_children): Same.
4616 (java_name_of_variable): Same.
4617 (java_path_expr_of_child): Same.
4618 (java_value_of_variable): Same.
4619 * varobj.c (number_of_children): Same.
4620 (name_of_variable): Same.
4621 (is_root_p): Same.
4622 (varobj_ensure_python_env): Same.
4623 (varobj_get_objname): Same.
4624 (varobj_get_expression): Same.
4625 (varobj_get_display_format): Same.
4626 (varobj_get_display_hint): Same.
4627 (varobj_has_more): Same.
4628 (varobj_get_thread_id): Same.
4629 (varobj_get_frozen): Same.
4630 (dynamic_varobj_has_child_method): Same.
4631 (varobj_get_gdb_type): Same.
4632 (is_path_expr_parent): Same.
4633 (varobj_default_is_path_expr_parent): Same.
4634 (varobj_get_language): Same.
4635 (varobj_get_attributes): Same.
4636 (varobj_is_dynamic_p): Same.
4637 (varobj_get_child_range): Same.
4638 (varobj_value_has_mutated): Same.
4639 (varobj_get_value_type): Same.
4640 (number_of_children): Same.
4641 (name_of_variable): Same.
4642 (check_scope): Same.
4643 (varobj_editable_p): Same.
4644 (varobj_value_is_changeable_p): Same.
4645 (varobj_floating_p): Same.
4646 (varobj_default_value_is_changeable_p): Same.
4647
2568868e
SM
46482015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4649
4650 * varobj.c (varobj_get_path_expr): Set var->path_expr.
4651 * c-varobj.c (c_path_expr_of_child): Set local var instead of
4652 child->path_expr.
4653 (cplus_path_expr_of_child): Same.
4654
ca83fa81
SM
46552015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4656
4657 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
4658 result.
4659 (mi_cmd_var_info_expression): Same.
4660 * varobj.c (varobj_get_expression): Mention in the comment that
4661 the result must by freed by the caller.
4662
afa269ae
SM
46632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
4664
4665 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
4666 varobj_get_type.
4667 (varobj_update_one): Same.
4668 * varobj.c (update_type_if_necessary): Free curr_type_str and
4669 new_type_str.
4670 (varobj_get_type): Specify in comment that the result needs to be
4671 freed by the caller.
4672
cd366ee8
DE
46732015-01-29 Doug Evans <dje@google.com>
4674
4675 PR symtab/17890
4676 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
4677
38360086
MW
46782015-01-25 Mark Wielaard <mjw@redhat.com>
4679
4680 * dwarf2read.c (checkproducer): Call producer_is_gcc.
4681 * utils.c (producer_is_gcc_ge_4): Likewise.
4682 (producer_is_gcc): New function.
4683 * utils.h (producer_is_gcc): New declaration.
4684
df25ebbd
JB
46852015-01-29 Joel Brobecker <brobecker@adacore.com>
4686
4687 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
4688 kind.
4689 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
4690 parameter by "addr_stack" parameter.
4691 (resolve_dynamic_range): Replace "addr" parameter by
4692 "stack_addr" parameter. Update function documentation.
4693 Update code accordingly.
4694 (resolve_dynamic_array, resolve_dynamic_union)
4695 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
4696 (resolve_dynamic_type): Update code, following the changes made
4697 to resolve_dynamic_type_internal's interface.
4698 * dwarf2loc.h (struct property_addr_info): New.
4699 (dwarf2_evaluate_property): Replace "address" parameter
4700 by "addr_stack" parameter. Adjust function documentation.
4701 (struct dwarf2_offset_baton): New.
4702 (struct dwarf2_property_baton): Update documentation of
4703 field "referenced_type" to be more general. New field
4704 "offset_info" in union data field.
4705 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
4706 parameter by "addr_stack" parameter. Adjust code accordingly.
4707 Add support for PROP_ADDR_OFFSET properties.
4708 * dwarf2read.c (attr_to_dynamic_prop): Add support for
4709 DW_AT_data_member_location attributes as well. Use case
4710 statements instead of if/else condition.
4711
4a0ca9ec
JB
47122015-01-29 Joel Brobecker <brobecker@adacore.com>
4713
4714 * ada-varobj.c (ada_varobj_get_array_number_of_children):
4715 Return zero if PARENT_VALUE is NULL and parent_type's
4716 range type is dynamic.
4717
ddb87a81
JB
47182015-01-29 Joel Brobecker <brobecker@adacore.com>
4719
4720 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
4721 nonzero if the type's subtype is dynamic.
4722 (resolve_dynamic_range): Also resolve the range's subtype.
4723
3d7ad9b4 47242015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 4725
3d7ad9b4 4726 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
4727 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
4728
3a8b707a
DE
47292015-01-27 Doug Evans <dje@google.com>
4730
4731 * NEWS: Mention gdb.Objfile.username.
4732 * python/py-objfile.c (objfpy_get_username): New function.
4733 (objfile_getset): Add "username".
4734
d35b90fb
MW
47352015-01-24 Mark Wielaard <mjw@redhat.com>
4736
4737 * stack.c (return_command): Markup warning message with _.
4738
734ae125
DE
47392015-01-24 Doug Evans <xdje42@gmail.com>
4740
4741 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
4742
527f3840
JK
47432015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4744
4745 Fix 100x slowdown regression on DWZ files.
4746 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
4747 (struct line_header): Add offset and offset_in_dwz.
4748 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
4749 (free_line_header_voidp): New declaration.
4750 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
4751 functions.
4752 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
4753 (handle_DW_AT_stmt_list): Use line_header_hash.
4754 (free_line_header_voidp): New function.
4755 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
4756 (dwarf_decode_lines): New parameter decode_mapping, use it.
4757 (dwarf2_free_objfile): Free line_header_hash.
4758
f7e5394d
SM
47592015-01-23 Simon Marchi <simon.marchi@ericsson.com>
4760
4761 PR gdb/17416
4762 * valops.c (value_rtti_indirect_type): Catch exception thrown by
4763 value_ind.
4764
743649fd
MW
47652015-01-15 Mark Wielaard <mjw@redhat.com>
4766
4767 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
4768 DW_AT_noreturn.
4769 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
4770 calling_convention an 8 bit bit field.
4771 (TYPE_NO_RETURN): New macro.
4772 * infcmd.c (finish_command): Query if function does not return
4773 normally.
4774 * stack.c (return_command): Likewise.
4775
198297aa
PA
47762015-01-23 Pedro Alves <palves@redhat.com>
4777
4778 * linux-nat.c (linux_is_async_p): New macro.
4779 (linux_nat_is_async_p):
4780 (linux_nat_terminal_inferior): Check whether the target can async
4781 instead of whether it is already async.
4782 (linux_nat_terminal_ours): Don't check whether the target is
4783 async.
4784 (linux_async_pipe): Use linux_is_async_p.
4785
253828f1
JK
47862015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4787
4788 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
4789 '-ascending'.
4790 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
4791 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
4792 Sort tp_array using tp_array_compar.
4793 (_initialize_thread): Extend thread_apply_all_command help.
4794
f0e8c4c5
JK
47952015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4796
4797 * corelow.c (core_open): Call also thread_command.
4798 * gdbthread.h (thread_command): New prototype moved from ...
4799 * thread.c (thread_command): ... here.
4800 (thread_command): Make it global.
4801
03b79603
PA
48022015-01-22 Pedro Alves <palves@redhat.com>
4803
4804 * configure.ac [*mingw32*]: Check $curses_found instead of
4805 $prefer_curses.
4806 * configure: Regenerate.
4807 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
4808 HAVE_NCURSES_NCURSES_H checks.
4809
6b8a872f
EZ
48102015-01-22 Eli Zaretskii <eliz@gnu.org>
4811
bbbbffbb 4812 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
4813 fails with the 1st arg NULL, try again with "unknown". Don't test
4814 the "cup" capability: it isn't supported by the Windows port of
4815 ncurses, but the Windows console driver is still capable of
4816 supporting TUI.
4817
4b62a76e
JK
48182015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
4821
82a864f9
EZ
48222015-01-22 Eli Zaretskii <eliz@gnu.org>
4823
4824 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
4825 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
4826 reason that "make TAGS" is broken.
4827
b35018fd
CG
48282015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
4829
4830 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4831 and check additional store instructions.
4832
ffbc4646
WW
48332015-01-21 Wei-cheng Wang <cole945@gmail.com>
4834
4835 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
4836
ddeca1df
WW
48372015-01-21 Wei-cheng Wang <cole945@gmail.com>
4838
4839 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
4840 ppc_canonicalize_syscall, ppc_linux_syscall_record,
4841 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
4842 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4843 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
4844 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
4845 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
4846 ppc_process_record_op19, ppc_process_record_op31,
4847 ppc_process_record_op59, ppc_process_record_op60,
4848 ppc_process_record_op63): Likewise.
4849
049bb5de
JB
48502015-01-20 Joel Brobecker <brobecker@adacore.com>
4851
4852 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
4853 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
4854 strerror.
4855
42b87c63 48562015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
4857
4858 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
4859 ppc_process_record_op31, ppc_process_record_op59,
4860 ppc_process_record_op60, ppc_process_record_op63,
4861 ppc_process_record): Fix -Wformat warning.
4862 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
4863 Remove unused variables.
4864
569340fc
CG
48652015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
4866
4867 * MAINTAINERS (Write After Approval): Add "Chen Gang".
4868
63413d85
EZ
48692015-01-19 Eli Zaretskii <eliz@gnu.org>
4870
4871 * configure.ac [*mingw32*]: Only add windows-termcap.o to
4872 CONFIG_OBS if not building with a curses library.
4873 * configure: Regenerate.
4874
4875 * windows-termcap.c: Include defs.h. Make the whole body empty if
4876 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
4877 HAVE_NCURSES_NCURSES_H is defined.
4878
16d8013c
JB
48792015-01-19 Joel Brobecker <brobecker@adacore.com>
4880
4881 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
4882 from end of line to start of next line.
4883
cf90fd9a
WW
48842015-01-17 Wei-cheng Wang <cole945@gmail.com>
4885
4886 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
4887 Scan PLT stub backward for reverse debugging.
4888 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
4889
b4cdae6f
WW
48902015-01-17 Wei-cheng Wang <cole945@gmail.com>
4891 Ulrich Weigand <uweigand@de.ibm.com>
4892
4893 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
4894 gdb_target_obs.
4895 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
4896 record.
4897 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
4898 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
4899 (ppc_linux_init_abi): Set process_record, process_record_signal.
4900 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
4901 ppc_linux_record_tdep to gdbarch_tdep.
4902 (ppc_process_record): New declaration.
4903 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
4904 ppc_process_record_op19, ppc_process_record_op31,
4905 ppc_process_record_op59, ppc_process_record_op60,
4906 ppc_process_record_op63, ppc_process_record): New functions.
4907
2608dbf8
WW
49082015-01-17 Wei-cheng Wang <cole945@gmail.com>
4909
4910 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4911 rs6000_in_function_epilogue_frame_p and add an argument
4912 for frame_info.
4913 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
4914 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
4915 New functions.
4916 (rs6000_epilogue_frame_unwind): New.
4917 (rs6000_gdbarch_init): Append epilogue unwinder.
4918
4c347be6
SDJ
49192015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4920
4921 * nat/linux-personality.c: Replace "#ifndef
4922 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
4923 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
4924 systems.
4925
9f2850ba
EZ
49262015-01-16 Eli Zaretskii <eliz@gnu.org>
4927
6cdb25f4
EZ
4928 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
4929 functions.
4930 (_initialize_tui_win) <border-kind, border-mode>:
4931 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
4932 (tui_set_tab_width_command): Fix the commentary.
4933
6cdb25f4
EZ
4934 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
4935
bf555842
EZ
4936 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
4937 Doc fix.
cb86fcc1
EZ
4938 (tui_set_tab_width_command): Delete and recreate the source and
4939 the disassembly windows, to show the effect of the changed tab
4940 size immediately.
bf555842 4941
9f2850ba
EZ
4942 * tui/tui-data.h (LINE_PREFIX): Make shorter
4943 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
4944 "Thread NNNNN.XXXX" thread ID notation on Windows.
4945
95761b2d
JK
49462015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4947
4948 Fix gcc-5 compilation.
4949 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
4950
8cc73a39
SDJ
49512015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4952
4953 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
4954 (linux-personality.o): New rule.
4955 * common/common-defs.h: Include <stdint.h>.
4956 * config/aarch64/linux.mh (NATDEPFILES): Include
4957 linux-personality.o.
4958 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4959 * config/arm/linux.mh (NATDEPFILES): Likewise.
4960 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4961 * config/i386/linux.mh (NATDEPFILES): Likewise.
4962 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4963 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4964 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4965 * config/mips/linux.mh (NATDEPFILES): Likewise.
4966 * config/pa/linux.mh (NATDEPFILES): Likewise.
4967 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4968 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4969 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4970 * config/s390/linux.mh (NATDEPFILES): Likewise.
4971 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4972 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4973 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4974 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4975 * defs.h: Remove #include <stdint.h> (moved to
4976 common/common-defs.h).
4977 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4978 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4979 nat/linux-personality.c).
4980 (linux_nat_create_inferior): Remove code to disable address space
4981 randomization (moved to nat/linux-personality.c). Create cleanup
4982 to disable address space randomization.
4983 * nat/linux-personality.c: New file.
4984 * nat/linux-personality.h: Likewise.
4985
fb23d554
SDJ
49862015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4987
4988 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4989 common/posix-strerror.c.
4990 (posix-strerror.o): New rule.
4991 (mingw-strerror.o): Likewise.
4992 * common/common-utils.h (safe_strerror): Move prototype to here,
4993 from utils.h.
4994 * common/common.host: New file.
4995 * common/mingw-strerror.c: Likewise.
4996 * common/posix-strerror.c: Likewise.
4997 * configure: Regenerated.
4998 * configure.ac: Source common/common.host. Add variable
4999 common_host_obs to gdb_host_obs.
5000 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
5001 gdb/common/posix-strerror.c when warning about the use of
5002 strerror.
5003 * mingw-hdep.c (safe_strerror): Remove definition; move it to
5004 common/mingw-strerror.c.
5005 * posix-hdep.c (safe_strerror): Remove definition; move it to
5006 common/posix-hdep.c.
5007 * utils.h (safe_strerror): Remove prototype; move to
5008 common/common-utils.h.
5009
3af8af43
JB
50102015-01-15 Joel Brobecker <brobecker@adacore.com>
5011
5012 GDB 7.8.2 released.
5013
bafffb51
JB
50142015-01-15 Joel Brobecker <brobecker@adacore.com>
5015
5016 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
5017 ___XA type if the array has already been fixed.
5018
cdf43629
YQ
50192015-01-14 Yao Qi <yao@codesourcery.com>
5020
5021 * Makefile.in (ppc-linux.o): New rule.
5022 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
5023 * configure.ac: AC_CHECK_FUNCS(getauxval).
5024 * config.in: Re-generated.
5025 * configure: Re-generated.
5026 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
5027 Declare.
5028 * nat/ppc-linux.c: New file.
5029 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
5030 Call ppc64_64bit_inferior_p.
5031
514c5338
YQ
50322015-01-14 Yao Qi <yao@codesourcery.com>
5033
5034 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
5035 nat/ppc-linux.h.
5036 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
5037 (PPC_FEATURE_HAS_DFP): Likewise.
5038 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
5039 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
5040 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
5041 Include "nat/ppc-linux.h".
5042 * nat/ppc-linux.h: New file.
5043 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
5044
5589af0e
PA
50452015-01-14 Pedro Alves <palves@redhat.com>
5046
5047 PR gdb/17525
5048 * breakpoint.c: Include "interps.h".
5049 (bpstat_do_actions_1): Also check whether the interpreter is
5050 async.
5051
6c400b59
PA
50522015-01-14 Pedro Alves <palves@redhat.com>
5053
5054 PR cli/17828
5055 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
5056 reinstall if the interpreter is sync.
5057
e02c96a7
DE
50582015-01-13 Doug Evans <dje@google.com>
5059
5060 * objfiles.c (objfile_filename): New function.
5061 * objfiles.h (objfile_filename): Declare it.
5062 (objfile_name): Add function comment.
5063 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
5064 bfd file name (which may be realpath'd), and the original name.
5065
3b2f13ff
JB
50662015-01-13 Joel Brobecker <brobecker@adacore.com>
5067
5068 * NEWS: Create a new section for the next release branch.
5069 Rename the section of the current branch, now that it has
5070 been cut.
5071
b4cfe7f8
JB
50722015-01-13 Joel Brobecker <brobecker@adacore.com>
5073
5074 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
5075 * version.in: Bump version to 7.9.50.DATE-cvs.
5076
92fc2e69
JB
50772015-01-13 Joel Brobecker <brobecker@adacore.com>
5078
5079 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
5080 Remove trailing new-line in argument of call to warning.
5081
f71f0b0d
JB
50822015-01-13 Joel Brobecker <brobecker@adacore.com>
5083
5084 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
5085 new-line in argument of call to "warning".
5086
04dccad0
JB
50872015-01-13 Joel Brobecker <brobecker@adacore.com>
5088
5089 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
5090 in static block, then try searching for primitive types.
5091
08b13bdd
PP
50922015-01-12 Patrick Palka <patrick@parcs.ath.cx>
5093
5094 * top.h (gdb_add_history): Declare.
5095 * top.c (command_count): New variable.
5096 (gdb_add_history): New function.
5097 (gdb_safe_append_history): New static function.
5098 (quit_force): Call it.
5099 (command_line_input): Use gdb_add_history instead of
5100 add_history.
5101 * event-top.c (command_line_handler): Likewise.
5102
4ac15b59
JC
51032015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
5104
5105 PR gdb/17046
5106 * darwin-nat.c: Replace <machine/setjmp.h> #include by
5107 <setjmp.h> #include.
5108
005e54bb
DE
51092015-01-11 Doug Evans <xdje42@gmail.com>
5110
5111 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
5112
439250fb
DE
51132015-01-11 Doug Evans <xdje42@gmail.com>
5114
5115 PR gdb/15830
5116 * NEWS: The "maint demangle" command is renamed as "demangle".
5117 * demangle.c: #include cli/cli-utils.h, language.h.
5118 (demangle_command): New function.
5119 (_initialize_demangle): Add new command "demangle".
5120 * maint.c (maintenance_demangle): Stub out.
5121 (_initialize_maint_cmds): Update help text for "maint demangle",
5122 and mark as deprecated.
5123
ebf3aa72
MK
51242015-01-11 Mark Kettenis <kettenis@gnu.org>
5125
5126 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
5127 inferior_thread is a function.
5128
6bf045cd
PP
51292015-01-09 Patrick Palka <patrick@parcs.ath.cx>
5130
5131 * Makefile.in (.y.c): Don't munge yacc's #line
5132 directives.
5133
588dcc3e
PP
51342015-01-09 Patrick Palka <patrick@parcs.ath.cx>
5135
5136 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
5137 to prompt for input.
5138 * tui/tui-hooks.c (tui_query_hook): Remove.
5139 (tui_install_hooks): Don't set deprecated_query_hook.
5140 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
5141 height calculation. Always update the command window's cur_line.
5142
9c02b525
PA
51432015-01-09 Pedro Alves <palves@redhat.com>
5144
5145 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
5146 function.
5147 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
5148 declaration.
5149 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
5150 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
5151 stop_reason.
5152 (check_stopped_by_watchpoint): New function.
5153 (save_sigtrap): Reimplement.
5154 (linux_nat_stopped_by_watchpoint): Adjust.
5155 (linux_nat_lp_status_is_event): Delete.
5156 (stop_wait_callback): Only call save_sigtrap after storing the
5157 pending status.
5158 (status_callback): If the thread had been stopped for a breakpoint
5159 that has since been removed, discard the event and resume the LWP.
5160 (count_events_callback, select_event_lwp_callback): Use
5161 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
5162 (cancel_breakpoint): Rename to ...
5163 (check_stopped_by_breakpoint): ... this. Record whether the LWP
5164 stopped for a software breakpoint or hardware breakpoint.
5165 (select_event_lwp): Only give preference to the stepping LWP in
5166 all-stop mode. Adjust comments.
5167 (stop_and_resume_callback): Remove references to new_pending_p.
5168 (linux_nat_filter_event): Likewise. Leave exit events of the
5169 leader thread pending here. Handle signal short circuiting here.
5170 Only call save_sigtrap after storing the pending waitstatus.
5171 (linux_nat_wait_1): Remove 'retry' label. Remove references to
5172 new_pending. Don't handle leaving events the caller is not
5173 interested in pending here, nor handle signal short-circuiting
5174 here. Also give equal priority to all LWPs that have had events
5175 in non-stop mode. If reporting a software breakpoint event,
5176 unadjust the LWP's PC.
5177 * linux-nat.h (enum lwp_stop_reason): New.
5178 (struct lwp_info) <stop_pc>: New field.
5179 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
5180 (struct lwp_info) <stop_reason>: New field.
5181 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5182
8af756ef
PA
51832015-01-09 Pedro Alves <palves@redhat.com>
5184
5185 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
5186 Set the LWP's 'resumed' flag.
5187
8a99810d
PA
51882015-01-09 Pedro Alves <palves@redhat.com>
5189
5190 * linux-nat.c (linux_resume_one_lwp): New function.
5191 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
5192 (linux_nat_resume): Use lwp_status_pending_p and
5193 linux_resume_one_lwp.
5194 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
5195 (linux_handle_extended_wait): Use linux_resume_one_lwp.
5196 (status_callback, running_callback): Use lwp_status_pending_p.
5197 (lwp_status_pending_p): New function.
5198 (stop_and_resume_callback): Use lwp_status_pending_p.
5199 (linux_nat_filter_event): Use linux_resume_one_lwp.
5200 (linux_nat_wait_1): Always use status_callback to look for an LWP
5201 with a pending status. Use linux_resume_one_lwp.
5202 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
5203 linux_resume_one_lwp.
5204
f7ce857f
PA
52052015-01-09 Pedro Alves <palves@redhat.com>
5206
5207 * breakpoint.c (bp_location_inserted_here_p): New function,
5208 factored out from ...
5209 (breakpoint_inserted_here_p): ... here. Use
5210 ALL_BP_LOCATIONS_AT_ADDR.
5211 (software_breakpoint_inserted_here_p): Use
5212 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
5213
c1a747c1
PA
52142014-01-09 Pedro Alves <palves@redhat.com>
5215
5216 Skip enabling event reporting if the kernel supports
5217 PTRACE_EVENT_CLONE.
5218 * linux-thread-db.c: Include "nat/linux-ptrace.h".
5219 (thread_db_use_events): New function.
5220 (try_thread_db_load_1): Check thread_db_use_events before enabling
5221 event reporting.
5222 (update_thread_state): New function.
5223 (attach_thread): Use it. Check thread_db_use_events before
5224 enabling event reporting.
5225 (thread_db_detach): Check thread_db_use_events before disabling
5226 event reporting.
5227 (find_new_threads_callback): Check thread_db_use_events before
5228 enabling event reporting. Update the thread's state if not using
5229 libthread_db events.
5230
a33e3959
PA
52312015-01-09 Pedro Alves <palves@redhat.com>
5232
5233 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
5234 about to wait for is > 0.
5235 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
5236 the kernel thread ID is -1.
5237
8784d563
PA
52382015-01-09 Pedro Alves <palves@redhat.com>
5239
5240 * linux-nat.c (attach_proc_task_lwp_callback): New function.
5241 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
5242 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
5243 ptrace option flags.
5244 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
5245 field.
5246 * nat/linux-procfs.c: Include <dirent.h>.
5247 (linux_proc_get_int): New parameter "warn". Handle it.
5248 (linux_proc_get_tgid): Adjust.
5249 (linux_proc_get_tracerpid): Rename to ...
5250 (linux_proc_get_tracerpid_nowarn): ... this.
5251 (linux_proc_pid_get_state): New function, factored out from
5252 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
5253 and handle it.
5254 (linux_proc_pid_is_gone): New function.
5255 (linux_proc_pid_is_stopped): Adjust.
5256 (linux_proc_pid_is_zombie_maybe_warn)
5257 (linux_proc_pid_is_zombie_nowarn): New functions.
5258 (linux_proc_pid_is_zombie): Use
5259 linux_proc_pid_is_zombie_maybe_warn.
5260 (linux_proc_attach_tgid_threads): New function.
5261 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
5262 (linux_proc_get_tracerpid): Rename to ...
5263 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
5264 (linux_proc_pid_is_gone): New declaration.
5265 (linux_proc_pid_is_zombie): Update comment.
5266 (linux_proc_pid_is_zombie_nowarn): New declaration.
5267 (linux_proc_attach_lwp_func): New typedef.
5268 (linux_proc_attach_tgid_threads): New declaration.
5269 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
5270 use nowarn functions.
5271 (linux_ptrace_attach_fail_reason_string): Move here from
5272 gdbserver/linux-low.c and rename.
5273 (ptrace_supports_feature): If the current ptrace options are not
5274 known yet, check them now, instead of asserting.
5275 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
5276 Declare.
5277
883ed13e
PA
52782015-01-09 Pedro Alves <palves@redhat.com>
5279
5280 * linux-thread-db.c (thread_db_find_new_threads_silently)
5281 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
5282 (find_new_threads_once): Print debug output on gdb_stdlog.
5283
1710aab8
CG
52842015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
5285 Pedro Alves <palves@redhat.com>
5286
5287 * compile/compile.c: Include "gdb_wait.h".
5288 (do_rmdir): Check return value, and free 'zap'.
5289
b597c318
YQ
52902015-01-08 Pedro Alves <palves@redhat.com>
5291 Yao Qi <yao@codesourcery.com>
5292
5293 * dwarf2loc.c (indirect_pieced_value): Don't call
5294 gdb_sign_extend. Call extract_signed_integer instead.
5295 * utils.c (gdb_sign_extend): Remove.
5296 * utils.h (gdb_sign_extend): Remove declaration.
5297
025ac414
PM
52982015-01-07 Pierre Muller <muller@sourceware.org>
5299
5300 PR symtab/17811
5301 * stabsread.c (define_symbol): Set language for C++ special symbols.
5302
fa5af12a
PP
53032015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5304
5305 * inflow.c (initial_gdb_ttystate): Tweak comment.
5306
ea42d6f8
JB
53072015-01-07 Joel Brobecker <brobecker@adacore.com>
5308
5309 * inflow.c (set_initial_gdb_ttystate): Add empty line after
5310 comment documenting function.
5311
6a06d660
PP
53122015-01-07 Patrick Palka <patrick@parcs.ath.cx>
5313
5314 * terminal.h (set_initial_gdb_ttystate): Declare.
5315 * inflow.c (initial_gdb_ttystate): New static variable.
5316 (set_initial_gdb_ttystate): New setter.
5317 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
5318 instead of our current terminal state.
5319 * top.c (gdb_init): Call set_initial_gdb_ttystate.
5320
e810d75b
JB
53212015-01-07 Joel Brobecker <brobecker@adacore.com>
5322
5323 * guile/scm-type.c (tyscm_array_1): Add comment.
5324 * python/py-type.c (typy_array_1): Add comment.
5325
fce10a84
JB
53262015-01-06 Joel Brobecker <brobecker@adacore.com>
5327
5328 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
5329 error if N2 is equal to N1 - 1.
5330
8503d6e1
JB
53312015-01-06 Joel Brobecker <brobecker@adacore.com>
5332
5333 * python/py-type.c (typy_array_1): Do not raise negative-length
5334 exception if N2 is equal to N1 - 1.
5335
4d29c0a8
DE
53362015-01-03 Doug Evans <xdje42@gmail.com>
5337
5338 * c-exp.y: Whitespace cleanup.
5339 (classify_inner_name): Remove extra ;.
5340
eaa6a9a4
MR
53412015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
5342
5343 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
5344 offset signed.
5345
02fe9972
DE
53462015-01-02 Doug Evans <dje@google.com>
5347
5348 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
5349
e2ada9cb
DE
53502015-01-02 Doug Evans <dje@google.com>
5351
5352 * symtab.h (struct symbol): Fix typo in comment.
5353
32d0add0
JB
53542015-01-01 Joel Brobecker <brobecker@adacore.com>
5355
5356 Update year range in copyright notice of all files.
5357
76f2b779
JB
53582015-01-01 Joel Brobecker <brobecker@adacore.com>
5359
5360 * top.c (print_gdb_version): Update copyright year to 2015.
5361
077309e2 53622015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 5363
077309e2 5364 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 5365
077309e2 5366For older changes see ChangeLog-2014.
c906108c
SS
5367\f
5368Local Variables:
5369mode: change-log
5370left-margin: 8
5371fill-column: 74
5372version-control: never
57da7796 5373coding: utf-8
c906108c 5374End:
This page took 2.193393 seconds and 4 git commands to generate.