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