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