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