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