gdb: Avoid unneeded calls to parse_frame_specification.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
edbbff4a
AB
12015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * stack.c (parse_frame_specification): Delete.
4 (parse_frame_specification_1): Rename to
5 parse_frame_specification.
6 (frame_info): Use parse_frame_specification.
7 (select_frame_command): Likewise.
8 (return_command): Use select_frame and print_stack_frame rather
9 than frame_command and select_frame_command.
10 (func_command): Use get_current_frame rather than
11 parse_frame_specification.
12
9d622bda
AB
132015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * stack.c (func_command): Return early when there is no ARG
16 string.
17
8d3fea16
AB
182015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * stack.c: Include safe-ctype.h not ctype.h.
21 (parse_frame_specification): Use ISSPACE not isspace.
22 (backtrace_command): Use TOLOWER not tolower.
23
f54b226f
SM
242015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * mep-tdep.c (current_me_module): Add cast.
27 (mep_gdbarch_init): Likewise.
28
6da660c7
SM
292015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * m32c-tdep.c (m32c_move_reg_t): Replace with...
32 (m32c_write_reg_t): ...this and...
33 (m32c_read_reg_t): ...this.
34 (struct m32c_reg): Update types of read and write.
35 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
36 adjust definition.
37 (m32c_banked_read): Likewise.
38 (m32c_sb_read): Likewise.
39 (m32c_part_read): Likewise.
40 (m32c_cat_read): Likewise.
41 (m32c_r3r2r1r0_read): Likewise.
42 (m32c_raw_write): Change declaration type to m32c_write_reg_t
43 and adjust definition.
44 (m32c_banked_write): Likewise.
45 (m32c_sb_write): Likewise.
46 (m32c_part_write): Likewise.
47 (m32c_cat_write): Likewise.
48 (m32c_r3r2r1r0_write): Likewise.
49
1f713e48
SM
502015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
53
cb65d272
SM
542015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
57 gdb_sys_no_syscall instead of -1.
58
eda14cf2
YQ
592015-10-12 Yao Qi <yao.qi@linaro.org>
60
61 * NEWS: Mention the change.
62
1c2e1515
YQ
632015-10-12 Yao Qi <yao.qi@linaro.org>
64
65 * arch/aarch64-insn.c (emit_load_store): Rename to ...
66 (aarch64_emit_load_store): ... it. All callers updated.
67
e1c587c3
YQ
682015-10-12 Yao Qi <yao.qi@linaro.org>
69
70 * arch/aarch64-insn.c (emit_insn): Rename to ...
71 (aarch64_emit_insn): ... it. All callers updated.
72
b6542f81
YQ
732015-10-12 Yao Qi <yao.qi@linaro.org>
74
75 * aarch64-linux-tdep.c: Include arch-utils.h.
76 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
77 set_gdbarch_displaced_step_copy_insn,
78 set_gdbarch_displaced_step_fixup,
79 set_gdbarch_displaced_step_free_closure,
80 set_gdbarch_displaced_step_location,
81 and set_gdbarch_displaced_step_hw_singlestep.
82 * aarch64-tdep.c (struct displaced_step_closure): New.
83 (struct aarch64_displaced_step_data): New.
84 (aarch64_displaced_step_b): New function.
85 (aarch64_displaced_step_b_cond): Likewise.
86 (aarch64_register): Likewise.
87 (aarch64_displaced_step_cb): Likewise.
88 (aarch64_displaced_step_tb): Likewise.
89 (aarch64_displaced_step_adr): Likewise.
90 (aarch64_displaced_step_ldr_literal): Likewise.
91 (aarch64_displaced_step_others): Likewise.
92 (aarch64_displaced_step_copy_insn): Likewise.
93 (aarch64_displaced_step_fixup): Likewise.
94 (aarch64_displaced_step_hw_singlestep): Likewise.
95 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
96 (aarch64_displaced_step_copy_insn): Declare.
97 (aarch64_displaced_step_fixup): Declare.
98 (aarch64_displaced_step_hw_singlestep): Declare.
99 * arch/aarch64-insn.c (emit_insn): Moved from
100 gdbserver/linux-aarch64-low.c.
101 (emit_load_store): Likewise.
102 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
103 gdbserver/linux-aarch64-low.c.
104 (struct aarch64_register): Likewise.
105 (struct aarch64_memory_operand): Likewise.
106 (ENCODE): Likewise.
107 (can_encode_int32): New macro.
108 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
109 (emit_tb, emit_nop): Likewise.
110 (emit_insn): Declare.
111 (emit_load_store): Declare.
112
246994ce
YQ
1132015-10-12 Yao Qi <yao.qi@linaro.org>
114
115 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
116 gdbserver/linux-aarch64-low.c.
117 (aarch64_relocate_instruction): Likewise.
118 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
119 (struct aarch64_insn_data): Moved from
120 gdbserver/linux-aarch64-low.c.
121 (struct aarch64_insn_visitor): Likewise.
122 (aarch64_relocate_instruction): Declare.
123
2520f728
PMR
1242015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
125
126 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
127 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
128 to the returned value.
129
5b639dea
JB
1302015-10-09 Joel Brobecker <brobecker@adacore.com>
131
132 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
133 is large enough for BIT_SIZE. Update function comment.
134
0cafa88c
JB
1352015-10-09 Joel Brobecker <brobecker@adacore.com>
136
137 * ada-lang.c (ada_value_primitive_packed_val): Move
138 src_len variable to local block where used. Override
139 BIT_SIZE if bigger than size of resolved type.
140
220475ed
JB
1412015-10-09 Joel Brobecker <brobecker@adacore.com>
142
143 * gdbtypes.h (is_scalar_type): Add extern declaration.
144 * gdbtypes.c (is_scalar_type): Make non-static.
145 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
146 to compute IS_SCALAR instead of doing it ourselves.
147
d0a9e810
JB
1482015-10-09 Joel Brobecker <brobecker@adacore.com>
149
150 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
151 of case where TYPE is dynamic.
152
f93fca70
JB
1532015-10-09 Joel Brobecker <brobecker@adacore.com>
154
155 * ada-lang.c (ada_unpack_from_contents): New function,
156 extracted from ada_value_primitive_packed_val.
157 (ada_value_primitive_packed_val): Replace extracted out code
158 by call to ada_unpack_from_contents.
159
a1c95e6b
JB
1602015-10-09 Joel Brobecker <brobecker@adacore.com>
161
162 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
163 variable declarations.
164
fbd000da
JB
1652015-10-09 Joel Brobecker <brobecker@adacore.com>
166
167 * ada-lang.c (ada_value_primitive_packed_val): Change the type
168 of local variables src and unpacked to "gdb_type *" instead of
169 "unsigned char *".
170
086ca51f
JB
1712015-10-09 Joel Brobecker <brobecker@adacore.com>
172
173 * ada-lang.c (ada_value_primitive_packed_val): Make the name
174 of various local variables more explicit and consistent.
175 No real code change otherwise.
176
c5bcd278
SM
1772015-10-09 Simon Marchi <simon.marchi@ericsson.com>
178
179 * i386-tdep.h (struct gdbarch_tdep): Change type of
180 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
181
78c5b882
SM
1822015-10-09 Simon Marchi <simon.marchi@ericsson.com>
183
184 * cris-tdep.c (struct instruction_environment): Change type of
185 byte_order to enum bfd_endian.
186
f9fa37b3
SM
1872015-10-09 Simon Marchi <simon.marchi@ericsson.com>
188
189 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
190 enum gdb_syscall casts.
191
7c543f7b
SM
1922015-10-09 Simon Marchi <simon.marchi@ericsson.com>
193
194 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
195 * arm-tdep.c (struct stack_item): Likewise.
196 (push_stack_item): Add gdb_byte* cast.
197 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
198 (push_stack_item): Add gdb_byte* cast.
199 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
200 and add cast.
201 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
202 (push_stack_item): Add gdb_byte* cast.
203 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
204 add cast.
205 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
206 gdb_byte*.
207 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
208 gdb_byte* and remove unnecessary cast.
209 (h8300h_extract_return_value): Likewise.
210 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
211 (h8300h_store_return_value): Likewise.
212 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
213 gdb_byte* and remove unnecessary cast.
214 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
215 and add cast.
216 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
217 gdb_byte* and remove unnecessary cast.
218 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
219 valbuf.
220 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
221 (mep_pseudo_cr64_read): Likewise.
222 (mep_pseudo_csr_write): Likewise.
223 (mep_pseudo_cr32_write): Likewise.
224 (mep_pseudo_cr64_write): Likewise.
225 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
226 gdb_byte* and add cast.
227 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
228 gdb_byte* and remove unnecessary cast.
229 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
230 valbuf.
231 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
232 gdb_byte*.
233 * printcmd.c (void): Likewise.
234 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
235 gdb_byte* and add cast.
236 (infpy_write_memory): Likewise.
237 (infpy_search_memory): Likewise.
238 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
239 and add cast.
240 (regcache_raw_write_unsigned): Likewise.
241 (regcache_cooked_write_signed): Likewise.
242 (regcache_cooked_write_unsigned): Likewise.
243 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
244 gdb_byte*.
245
7567e115
SM
2462015-10-09 Simon Marchi <simon.marchi@ericsson.com>
247
248 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
249 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
250
f9acce4a
EZ
2512015-10-09 Eli Zaretskii <eliz@gnu.org>
252
253 * stack.c (print_stack_frame):
254 * utils.c (printchar): Fix typos in commentary.
255
d5d8c4e1
IB
2562015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
257
258 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
259 (PostfixExpression): Support `expr.sizeof' expressions.
260 (PrimaryExpression): Support `typeof(expr)' expressions.
261
4e7de155
MR
2622015-10-08 Maciej W. Rozycki <macro@imgtec.com>
263
264 * MAINTAINERS: Update my email address.
265
04c4fe8c
MM
2662015-10-08 Markus Metzger <markus.t.metzger@intel.com>
267
268 * record-btrace.c (record_btrace_resume): Fix void return.
269
f77ee802
YQ
2702015-10-07 Yao Qi <yao.qi@linaro.org>
271
272 * aarch64-tdep.c: Include opcode/aarch64.h.
273 (submask): Move it above.
274 (bit): Likewise.
275 (bits): Likewise.
276 (aarch64_software_single_step): Call aarch64_decode_insn.
277 Decode instruction by aarch64_inst instead of using
278 aarch64_decode_bcond and decode_masked_match.
279
cbd641ed
PS
2802015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
281
282 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
283 only when the file is binary.
284
ae4e2501 2852015-10-02 James Bowman <james.bowman@ftdichip.com>
286
287 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
288 subroutine handling.
289
dd0a637a
SM
2902015-10-01 Simon Marchi <simon.marchi@ericsson.com>
291
292 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
293
1fd60fc0
DE
2942015-09-30 Doug Evans <dje@google.com>
295
296 * dwarf2read.c (setup_type_unit_groups): Add comment.
297
398e0813
PA
2982015-09-30 Pedro Alves <palves@redhat.com>
299
300 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
301 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
302 (x86_linux_create_target): Don't install
303 x86_linux_always_non_stop_p.
304
6ab24463
DB
3052015-09-30 Don Breazeal <donb@codesourcery.com>
306
307 * remote.c (remote_parse_stop_reply): Call strprefix instead
308 of strncmp.
309
ede5f151
SM
3102015-09-30 Simon Marchi <simon.marchi@ericsson.com>
311
312 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
313 * gdbarch.h: Regenerate.
314 * i386-tdep.c (i386_gdbarch_init): Remove cast to
315 struct gdbarch_tdep_info *.
316 * mips-tdep.c (mips_gdbarch_init): Likewise.
317 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
318 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
319 * spu-multiarch.c (spu_gdbarch): Likewise.
320
51c935fa 3212015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
322
323 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
324 record a NULL value.
325
3b1ad7d5
KB
3262015-09-29 Kevin Buettner <kevinb@redhat.com>
327
328 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
329 and union arguments the same as pointer arguments when determining
330 size of argument.
331
86feccb9 3322015-09-29 James Bowman <james.bowman@ftdichip.com>
333
334 * ft32-tdep.c: #include "opcode/ft32.h".
335 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
336 (ft32_analyze_prologue): Use FT32_* macros.
337
2181a6c6
SM
3382015-09-28 Simon Marchi <simon.marchi@ericsson.com>
339
84d73afc 340 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
341 comment.
342
245af596
DE
3432015-09-28 Doug Evans <dje@google.com>
344
345 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
346
c402ef90
DE
3472015-09-28 Doug Evans <dje@google.com>
348
349 * common/filestuff.c (make_cleanup_close): Update comment.
350
bc84451b
SM
3512015-09-26 Simon Marchi <simark@nova.polymtl.ca>
352
353 * btrace.c (parse_xml_btrace_block): Fix cast of
354 xml_find_attribute's return value.
355 * memory-map.c (memory_map_start_memory): Likewise.
356 * solib-svr4.c (library_list_start_library): Likewise.
357 * solib-target.c (library_list_start_segment): Likewise.
358 (library_list_start_section): Likewise.
359 * tracepoint.c (traceframe_info_start_memory): Likewise.
360
ba587d55
IB
3612015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
362
363 * d-namespace.c (d_lookup_symbol): New arg langdef.
364 All callers updated. Support looking up symbol as a primitive type.
365 (lookup_module_scope): New arg langdef. All callers updated.
366 Call d_lookup_symbol directly for simple bare symbols.
367
19ba03f4
SM
3682015-09-25 Simon Marchi <simon.marchi@ericsson.com>
369
370 * macrocmd.c (print_macro_callback): Add cast(s).
371 * macrotab.c (macro_bcache_str): Likewise.
372 (new_macro_definition): Likewise.
373 * main.c (captured_main): Likewise.
374 * maint.c (print_bfd_section_info): Likewise.
375 * mdebugread.c (mdebug_build_psymtabs): Likewise.
376 (basic_type): Likewise.
377 * memattr.c (mem_region_cmp): Likewise.
378 * memory-map.c (memory_map_start_memory): Likewise.
379 (memory_map_end_memory): Likewise.
380 (memory_map_start_property): Likewise.
381 (memory_map_end_property): Likewise.
382 (clear_result): Likewise.
383 * memrange.c (compare_mem_ranges): Likewise.
384 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
385 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
386 * mi/mi-console.c (mi_console_file_delete): Likewise.
387 (mi_console_file_fputs): Likewise.
388 (mi_console_raw_packet): Likewise.
389 (mi_console_file_flush): Likewise.
390 (mi_console_set_raw): Likewise.
391 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
392 (mi_new_thread): Likewise.
393 (mi_thread_exit): Likewise.
394 (mi_record_changed): Likewise.
395 (mi_inferior_added): Likewise.
396 (mi_inferior_appeared): Likewise.
397 (mi_inferior_exit): Likewise.
398 (mi_inferior_removed): Likewise.
399 (mi_interp_data): Likewise.
400 (mi_on_normal_stop): Likewise.
401 (mi_traceframe_changed): Likewise.
402 (mi_tsv_created): Likewise.
403 (mi_tsv_deleted): Likewise.
404 (mi_tsv_modified): Likewise.
405 (mi_breakpoint_created): Likewise.
406 (mi_breakpoint_deleted): Likewise.
407 (mi_breakpoint_modified): Likewise.
408 (mi_output_running_pid): Likewise.
409 (mi_inferior_count): Likewise.
410 (mi_solib_loaded): Likewise.
411 (mi_solib_unloaded): Likewise.
412 (mi_command_param_changed): Likewise.
413 (mi_memory_changed): Likewise.
414 (report_initial_inferior): Likewise.
415 (mi_ui_out): Likewise.
416 (mi_set_logging): Likewise.
417 * mi/mi-main.c (collect_cores): Likewise.
418 (print_one_inferior): Likewise.
419 (free_vector_of_ints): Likewise.
420 (free_splay_tree): Likewise.
421 (mi_execute_command): Likewise.
422 * mi/mi-out.c (mi_table_body): Likewise.
423 (mi_table_end): Likewise.
424 (mi_table_header): Likewise.
425 (mi_begin): Likewise.
426 (mi_end): Likewise.
427 (mi_field_int): Likewise.
428 (mi_field_string): Likewise.
429 (mi_field_fmt): Likewise.
430 (mi_flush): Likewise.
431 (mi_redirect): Likewise.
432 (field_separator): Likewise.
433 (mi_open): Likewise.
434 (mi_close): Likewise.
435 (mi_out_buffered): Likewise.
436 (mi_out_rewind): Likewise.
437 (mi_out_put): Likewise.
438 (mi_version): Likewise.
439 (mi_out_data_dtor): Likewise.
440 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
441 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
442 * minidebug.c (lzma_open): Likewise.
443 (lzma_pread): Likewise.
444 (lzma_close): Likewise.
445 (lzma_stat): Likewise.
446 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
447 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
448 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
449 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
450 (mips_micro_frame_cache): Likewise.
451 (mips_insn32_frame_cache): Likewise.
452 (mips_stub_frame_cache): Likewise.
453 (gdb_print_insn_mips): Likewise.
454 (value_of_mips_user_reg): Likewise.
455 (mips_gdbarch_init): Likewise.
456 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
457 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
458 (mipsnbsd_supply_gregset): Likewise.
459 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
460 (am33_collect_gregset_method): Likewise.
461 (am33_collect_fpregset_method): Likewise.
462 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
463 * moxie-tdep.c (moxie_frame_cache): Likewise.
464 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
465 (msp430_analyze_frame_prologue): Likewise.
466 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
467 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
468 (nios2_collect_gregset): Likewise.
469 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
470 (nios2_stub_frame_cache): Likewise.
471 * objc-lang.c (find_methods): Likewise.
472 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
473 (get_objfile_pspace_data): Likewise.
474 (get_objfile_bfd_data): Likewise.
475 (objfile_bfd_data_free): Likewise.
476 (add_to_objfile_sections): Likewise.
477 (do_free_objfile_cleanup): Likewise.
478 (resume_section_map_updates_cleanup): Likewise.
479 * opencl-lang.c (builtin_opencl_type): Likewise.
480 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
481 * osdata.c (osdata_start_osdata): Likewise.
482 (osdata_start_item): Likewise.
483 (osdata_start_column): Likewise.
484 (osdata_end_column): Likewise.
485 (clear_parsing_data): Likewise.
486 (osdata_free_cleanup): Likewise.
487 * parse.c (type_stack_cleanup): Likewise.
488 (exp_uses_objfile_iter): Likewise.
489 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
490 (ppc_linux_collect_gregset): Likewise.
491 (ppu2spu_prev_arch): Likewise.
492 (ppu2spu_this_id): Likewise.
493 (ppu2spu_prev_register): Likewise.
494 (ppu2spu_unwind_register): Likewise.
495 (ppu2spu_sniffer): Likewise.
496 (ppu2spu_dealloc_cache): Likewise.
497 (ppc_linux_init_abi): Likewise.
498 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
499 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
500 * progspace.c (restore_program_space): Likewise.
501 * psymtab.c (find_pc_sect_psymtab): Likewise.
502 (compare_psymbols): Likewise.
503 (psymbol_bcache_full): Likewise.
504 (allocate_psymtab): Likewise.
505 (discard_psymtabs_upto): Likewise.
506 * python/py-block.c (set_block): Likewise.
507 (del_objfile_blocks): Likewise.
508 * python/py-breakpoint.c (build_bp_list): Likewise.
509 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
510 (build_inferior_list): Likewise.
511 (py_free_inferior): Likewise.
512 * python/py-objfile.c (py_free_objfile): Likewise.
513 (objfile_to_objfile_object): Likewise.
514 * python/py-prettyprint.c (py_restore_tstate): Likewise.
515 * python/py-progspace.c (py_free_pspace): Likewise.
516 (pspace_to_pspace_object): Likewise.
517 * python/py-symbol.c (set_symbol): Likewise.
518 (del_objfile_symbols): Likewise.
519 * python/py-symtab.c (set_sal): Likewise.
520 (set_symtab): Likewise.
521 (del_objfile_symtab): Likewise.
522 (del_objfile_sal): Likewise.
523 * python/py-type.c (save_objfile_types): Likewise.
524 (set_type): Likewise.
525 * python/py-unwind.c (pyuw_prev_register): Likewise.
526 (pyuw_on_new_gdbarch): Likewise.
527 * python/py-utils.c (py_decref): Likewise.
528 (py_xdecref): Likewise.
529 (gdb_py_generic_dict): Likewise.
530 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
531 (gdbpy_clone_xmethod_worker_data): Likewise.
532 (gdbpy_get_xmethod_arg_types): Likewise.
533 (gdbpy_get_xmethod_result_type): Likewise.
534 (gdbpy_invoke_xmethod): Likewise.
535 * python/python.c (gdbpy_apply_type_printers): Likewise.
536 (gdbpy_free_type_printers): Likewise.
537 * record-btrace.c (record_btrace_disable_callback): Likewise.
538 (bfcache_hash): Likewise.
539 (bfcache_eq): Likewise.
540 (btrace_get_frame_function): Likewise.
541 (record_btrace_frame_unwind_stop_reason): Likewise.
542 (record_btrace_frame_this_id): Likewise.
543 (record_btrace_frame_prev_register): Likewise.
544 (record_btrace_frame_dealloc_cache): Likewise.
545 * record-full.c (record_full_message_wrapper): Likewise.
546 (record_full_save_cleanups): Likewise.
547 * regcache.c (regcache_descr): Likewise.
548 (do_regcache_xfree): Likewise.
549 (do_regcache_invalidate): Likewise.
550 (do_cooked_read): Likewise.
551 (regcache_transfer_regset): Likewise.
552 * reggroups.c (reggroup_add): Likewise.
553 (reggroup_next): Likewise.
554 (reggroup_prev): Likewise.
555 * remote-fileio.c (do_remote_fileio_request): Likewise.
556 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
557 (do_notif_event_xfree): Likewise.
558 * remote.c (get_remote_arch_state): Likewise.
559 (remote_pspace_data_cleanup): Likewise.
560 (get_remote_exec_file): Likewise.
561 (set_pspace_remote_exec_file): Likewise.
562 (compare_pnums): Likewise.
563 (clear_threads_listing_context): Likewise.
564 (remote_newthread_step): Likewise.
565 (start_thread): Likewise.
566 (end_thread): Likewise.
567 (remove_child_of_pending_fork): Likewise.
568 (remove_stop_reply_for_inferior): Likewise.
569 (remove_stop_reply_of_remote_state): Likewise.
570 (remote_notif_remove_once_on_match): Likewise.
571 (stop_reply_match_ptid_and_ws): Likewise.
572 (kill_child_of_pending_fork): Likewise.
573 (register_remote_g_packet_guess): Likewise.
574 (remote_read_description_p): Likewise.
575 (remote_read_description): Likewise.
576 (free_actions_list_cleanup_wrapper): Likewise.
577 (remote_async_serial_handler): Likewise.
578 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
579 (rl78_analyze_frame_prologue): Likewise.
580 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
581 (ppc_supply_fpregset): Likewise.
582 (ppc_supply_vsxregset): Likewise.
583 (ppc_supply_vrregset): Likewise.
584 (ppc_collect_gregset): Likewise.
585 (ppc_collect_fpregset): Likewise.
586 (ppc_collect_vsxregset): Likewise.
587 (ppc_collect_vrregset): Likewise.
588 (e500_move_ev_register): Likewise.
589 (do_regcache_raw_write): Likewise.
590 (rs6000_frame_cache): Likewise.
591 (rs6000_epilogue_frame_cache): Likewise.
592 (rs6000_gdbarch_init): Likewise.
593 * rx-tdep.c (rx_get_opcode_byte): Likewise.
594 (rx_analyze_frame_prologue): Likewise.
595 (rx_frame_type): Likewise.
596 (rx_frame_sniffer_common): Likewise.
597 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
598 (s390_frame_unwind_cache): Likewise.
599 (s390_stub_frame_unwind_cache): Likewise.
600 (s390_sigtramp_frame_unwind_cache): Likewise.
601 * score-tdep.c (score_make_prologue_cache): Likewise.
602 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
603 (sentinel_frame_prev_arch): Likewise.
604 * ser-base.c (fd_event): Likewise.
605 (push_event): Likewise.
606 (ser_base_write): Likewise.
607 * ser-pipe.c (pipe_close): Likewise.
608 * serial.c (serial_write): Likewise.
609 * sh-tdep.c (sh_frame_cache): Likewise.
610 (sh_stub_this_id): Likewise.
611 * sh64-tdep.c (sh64_frame_cache): Likewise.
612 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
613 (library_list_start_library): Likewise.
614 (library_list_start_list): Likewise.
615 (solib_aix_free_library_list): Likewise.
616 * solib-darwin.c (get_darwin_info): Likewise.
617 * solib-dsbt.c (get_dsbt_info): Likewise.
618 * solib-spu.c (append_ocl_sos): Likewise.
619 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
620 (get_svr4_info): Likewise.
621 (library_list_start_library): Likewise.
622 (svr4_library_list_start_list): Likewise.
623 (hash_probe_and_action): Likewise.
624 (equal_probe_and_action): Likewise.
625 (svr4_update_solib_event_breakpoint): Likewise.
626 (set_solib_svr4_fetch_link_map_offsets): Likewise.
627 (svr4_fetch_link_map_offsets): Likewise.
628 (svr4_have_link_map_offsets): Likewise.
629 * solib-target.c (library_list_start_segment): Likewise.
630 (library_list_start_section): Likewise.
631 (library_list_start_library): Likewise.
632 (library_list_end_library): Likewise.
633 (library_list_start_list): Likewise.
634 (solib_target_free_library_list): Likewise.
635 * solib.c (solib_ops): Likewise.
636 (set_solib_ops): Likewise.
637 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
638 * sparc-tdep.c (sparc_frame_cache): Likewise.
639 (sparc32_frame_cache): Likewise.
640 (sparc32_supply_gregset): Likewise.
641 (sparc32_collect_gregset): Likewise.
642 (sparc32_supply_fpregset): Likewise.
643 (sparc32_collect_fpregset): Likewise.
644 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
645 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
646 (sparc64_collect_gregset): Likewise.
647 (sparc64_supply_fpregset): Likewise.
648 (sparc64_collect_fpregset): Likewise.
649 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
650 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
651 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
652 (sparc64obsd_trapframe_cache): Likewise.
653 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
654 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
655 * spu-multiarch.c (spu_gdbarch): Likewise.
656 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
657 (spu2ppu_prev_arch): Likewise.
658 (spu2ppu_this_id): Likewise.
659 (spu2ppu_prev_register): Likewise.
660 (spu2ppu_dealloc_cache): Likewise.
661 (spu_dis_asm_print_address): Likewise.
662 (gdb_print_insn_spu): Likewise.
663 (spu_get_overlay_table): Likewise.
664 * stabsread.c (rs6000_builtin_type): Likewise.
665 * stack.c (do_print_variable_and_value): Likewise.
666 * stap-probe.c (get_stap_base_address_1): Likewise.
667 * symfile-debug.c (debug_qf_has_symbols): Likewise.
668 (debug_qf_find_last_source_symtab): Likewise.
669 (debug_qf_forget_cached_source_info): Likewise.
670 (debug_qf_map_symtabs_matching_filename): Likewise.
671 (debug_qf_lookup_symbol): Likewise.
672 (debug_qf_print_stats): Likewise.
673 (debug_qf_dump): Likewise.
674 (debug_qf_relocate): Likewise.
675 (debug_qf_expand_symtabs_for_function): Likewise.
676 (debug_qf_expand_all_symtabs): Likewise.
677 (debug_qf_expand_symtabs_with_fullname): Likewise.
678 (debug_qf_map_matching_symbols): Likewise.
679 (debug_qf_expand_symtabs_matching): Likewise.
680 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
681 (debug_qf_map_symbol_filenames): Likewise.
682 (debug_sym_get_probes): Likewise.
683 (debug_sym_new_init): Likewise.
684 (debug_sym_init): Likewise.
685 (debug_sym_read): Likewise.
686 (debug_sym_read_psymbols): Likewise.
687 (debug_sym_finish): Likewise.
688 (debug_sym_offsets): Likewise.
689 (debug_sym_read_linetable): Likewise.
690 (debug_sym_relocate): Likewise.
691 (uninstall_symfile_debug_logging): Likewise.
692 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
693 * symfile.c (place_section): Likewise.
694 (add_section_size_callback): Likewise.
695 (load_progress): Likewise.
696 (load_section_callback): Likewise.
697 (clear_memory_write_data): Likewise.
698 (allocate_symtab): Likewise.
699 * symmisc.c (maintenance_expand_file_matcher): Likewise.
700 * symtab.c (lookup_symtab_callback): Likewise.
701 (hash_demangled_name_entry): Likewise.
702 (eq_demangled_name_entry): Likewise.
703 (get_symbol_cache): Likewise.
704 (symbol_cache_cleanup): Likewise.
705 (set_symbol_cache_size): Likewise.
706 (symbol_cache_flush): Likewise.
707 (maintenance_print_symbol_cache): Likewise.
708 (maintenance_print_symbol_cache_statistics): Likewise.
709 (delete_filename_seen_cache): Likewise.
710 (output_partial_symbol_filename): Likewise.
711 (search_symbols_file_matches): Likewise.
712 (search_symbols_name_matches): Likewise.
713 (do_free_completion_list): Likewise.
714 (maybe_add_partial_symtab_filename): Likewise.
715 (get_main_info): Likewise.
716 (main_info_cleanup): Likewise.
717 * target-dcache.c (target_dcache_cleanup): Likewise.
718 (target_dcache_init_p): Likewise.
719 (target_dcache_invalidate): Likewise.
720 (target_dcache_get): Likewise.
721 (target_dcache_get_or_init): Likewise.
722 * target-descriptions.c (target_find_description): Likewise.
723 (tdesc_find_type): Likewise.
724 (tdesc_data_cleanup): Likewise.
725 (tdesc_find_arch_register): Likewise.
726 (tdesc_register_name): Likewise.
727 (tdesc_register_type): Likewise.
728 (tdesc_register_reggroup_p): Likewise.
729 (set_tdesc_pseudo_register_name): Likewise.
730 (set_tdesc_pseudo_register_type): Likewise.
731 (set_tdesc_pseudo_register_reggroup_p): Likewise.
732 (tdesc_use_registers): Likewise.
733 (free_target_description): Likewise.
734 * target-memory.c (compare_block_starting_address): Likewise.
735 (cleanup_request_data): Likewise.
736 (cleanup_write_requests_vector): Likewise.
737 * target.c (open_target): Likewise.
738 (cleanup_restore_target_terminal): Likewise.
739 (free_memory_read_result_vector): Likewise.
740 * thread.c (disable_thread_stack_temporaries): Likewise.
741 (finish_thread_state_cleanup): Likewise.
742 (do_restore_current_thread_cleanup): Likewise.
743 (restore_current_thread_cleanup_dtor): Likewise.
744 (set_thread_refcount): Likewise.
745 (tp_array_compar): Likewise.
746 (do_captured_thread_select): Likewise.
747 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
748 (tic6x_stub_this_id): Likewise.
749 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
750 * top.c (do_restore_instream_cleanup): Likewise.
751 (gdb_readline_wrapper_cleanup): Likewise.
752 (kill_or_detach): Likewise.
753 (print_inferior_quit_action): Likewise.
754 * tracefile-tfile.c (match_blocktype): Likewise.
755 (build_traceframe_info): Likewise.
756 * tracefile.c (trace_file_writer_xfree): Likewise.
757 * tracepoint.c (memrange_cmp): Likewise.
758 (do_collect_symbol): Likewise.
759 (do_clear_collection_list): Likewise.
760 (do_restore_current_traceframe_cleanup): Likewise.
761 (restore_current_traceframe_cleanup_dtor): Likewise.
762 (free_current_marker): Likewise.
763 (traceframe_info_start_memory): Likewise.
764 (traceframe_info_start_tvar): Likewise.
765 (free_result): Likewise.
766 * tramp-frame.c (tramp_frame_cache): Likewise.
767 * tui/tui-file.c (tui_file_delete): Likewise.
768 (tui_fileopen): Likewise.
769 (tui_sfileopen): Likewise.
770 (tui_file_isatty): Likewise.
771 (tui_file_rewind): Likewise.
772 (tui_file_put): Likewise.
773 (tui_file_fputs): Likewise.
774 (tui_file_get_strbuf): Likewise.
775 (tui_file_adjust_strbuf): Likewise.
776 (tui_file_flush): Likewise.
777 * tui/tui-layout.c (make_command_window): Likewise.
778 (make_data_window): Likewise.
779 (show_source_disasm_command): Likewise.
780 (show_data): Likewise.
781 (make_source_or_disasm_window): Likewise.
782 (show_source_or_disasm_and_command): Likewise.
783 * tui/tui-out.c (tui_field_int): Likewise.
784 (tui_field_string): Likewise.
785 (tui_field_fmt): Likewise.
786 (tui_text): Likewise.
787 * typeprint.c (hash_typedef_field): Likewise.
788 (eq_typedef_field): Likewise.
789 (do_free_typedef_hash): Likewise.
790 (copy_typedef_hash_element): Likewise.
791 (do_free_global_table): Likewise.
792 (find_global_typedef): Likewise.
793 (find_typedef_in_hash): Likewise.
794 * ui-file.c (ui_file_write_for_put): Likewise.
795 (do_ui_file_xstrdup): Likewise.
796 (mem_file_delete): Likewise.
797 (mem_file_rewind): Likewise.
798 (mem_file_put): Likewise.
799 (mem_file_write): Likewise.
800 (stdio_file_delete): Likewise.
801 (stdio_file_flush): Likewise.
802 (stdio_file_read): Likewise.
803 (stdio_file_write): Likewise.
804 (stdio_file_write_async_safe): Likewise.
805 (stdio_file_fputs): Likewise.
806 (stdio_file_isatty): Likewise.
807 (stdio_file_fseek): Likewise.
808 (tee_file_delete): Likewise.
809 (tee_file_flush): Likewise.
810 (tee_file_write): Likewise.
811 (tee_file_fputs): Likewise.
812 (tee_file_isatty): Likewise.
813 * ui-out.c (do_cleanup_table_end): Likewise.
814 (do_cleanup_end): Likewise.
815 * user-regs.c (user_reg_add): Likewise.
816 (user_reg_map_name_to_regnum): Likewise.
817 (usernum_to_user_reg): Likewise.
818 (maintenance_print_user_registers): Likewise.
819 * utils.c (do_bfd_close_cleanup): Likewise.
820 (do_fclose_cleanup): Likewise.
821 (do_obstack_free): Likewise.
822 (do_ui_file_delete): Likewise.
823 (do_ui_out_redirect_pop): Likewise.
824 (do_free_section_addr_info): Likewise.
825 (restore_integer): Likewise.
826 (do_unpush_target): Likewise.
827 (do_htab_delete_cleanup): Likewise.
828 (do_restore_ui_file): Likewise.
829 (do_value_free): Likewise.
830 (do_free_so): Likewise.
831 (free_current_contents): Likewise.
832 (do_regfree_cleanup): Likewise.
833 (core_addr_hash): Likewise.
834 (core_addr_eq): Likewise.
835 (do_free_char_ptr_vec): Likewise.
836 * v850-tdep.c (v850_frame_cache): Likewise.
837 * varobj.c (do_free_variable_cleanup): Likewise.
838 * vax-tdep.c (vax_supply_gregset): Likewise.
839 (vax_frame_cache): Likewise.
840 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
841 * xml-support.c (gdb_xml_body_text): Likewise.
842 (gdb_xml_values_cleanup): Likewise.
843 (gdb_xml_start_element): Likewise.
844 (gdb_xml_start_element_wrapper): Likewise.
845 (gdb_xml_end_element): Likewise.
846 (gdb_xml_end_element_wrapper): Likewise.
847 (gdb_xml_cleanup): Likewise.
848 (gdb_xml_fetch_external_entity): Likewise.
849 (gdb_xml_parse_attr_enum): Likewise.
850 (xinclude_start_include): Likewise.
851 (xinclude_end_include): Likewise.
852 (xml_xinclude_default): Likewise.
853 (xml_xinclude_start_doctype): Likewise.
854 (xml_xinclude_end_doctype): Likewise.
855 (xml_xinclude_cleanup): Likewise.
856 (xml_fetch_content_from_file): Likewise.
857 * xml-syscall.c (free_syscalls_info): Likewise.
858 (syscall_start_syscall): Likewise.
859 * xml-tdesc.c (tdesc_end_arch): Likewise.
860 (tdesc_end_osabi): Likewise.
861 (tdesc_end_compatible): Likewise.
862 (tdesc_start_target): Likewise.
863 (tdesc_start_feature): Likewise.
864 (tdesc_start_reg): Likewise.
865 (tdesc_start_union): Likewise.
866 (tdesc_start_struct): Likewise.
867 (tdesc_start_flags): Likewise.
868 (tdesc_start_field): Likewise.
869 (tdesc_start_vector): Likewise.
870 (fetch_available_features_from_target): Likewise.
871 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
872 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
873 (xtensa_frame_cache): Likewise.
874 (xtensa_frame_prev_register): Likewise.
875 (xtensa_extract_return_value): Likewise.
876
9a3c8263
SM
8772015-09-25 Simon Marchi <simon.marchi@ericsson.com>
878
879 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
880 (aarch64_make_stub_cache): Likewise.
881 (value_of_aarch64_user_reg): Likewise.
882 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
883 (get_ada_inferior_data): Likewise.
884 (get_ada_pspace_data): Likewise.
885 (ada_pspace_data_cleanup): Likewise.
886 (ada_complete_symbol_matcher): Likewise.
887 (ada_exc_search_name_matches): Likewise.
888 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
889 (get_ada_tasks_inferior_data): Likewise.
890 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
891 (splay_obstack_alloc): Likewise.
892 (splay_obstack_free): Likewise.
893 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
894 (alpha_linux_collect_gregset): Likewise.
895 (alpha_linux_supply_fpregset): Likewise.
896 (alpha_linux_collect_fpregset): Likewise.
897 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
898 * alpha-tdep.c (alpha_lds): Likewise.
899 (alpha_sts): Likewise.
900 (alpha_sigtramp_frame_unwind_cache): Likewise.
901 (alpha_heuristic_frame_unwind_cache): Likewise.
902 (alpha_supply_int_regs): Likewise.
903 (alpha_fill_int_regs): Likewise.
904 (alpha_supply_fp_regs): Likewise.
905 (alpha_fill_fp_regs): Likewise.
906 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
907 (alphanbsd_aout_supply_gregset): Likewise.
908 (alphanbsd_supply_gregset): Likewise.
909 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
910 (amd64_x32_linux_init_abi): Likewise.
911 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
912 (amd64_collect_native_gregset): Likewise.
913 * amd64-tdep.c (amd64_frame_cache): Likewise.
914 (amd64_sigtramp_frame_cache): Likewise.
915 (amd64_epilogue_frame_cache): Likewise.
916 (amd64_supply_fxsave): Likewise.
917 (amd64_supply_xsave): Likewise.
918 (amd64_collect_fxsave): Likewise.
919 (amd64_collect_xsave): Likewise.
920 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
921 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
922 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
923 (arm_linux_collect_gregset): Likewise.
924 (arm_linux_supply_nwfpe): Likewise.
925 (arm_linux_collect_nwfpe): Likewise.
926 (arm_linux_supply_vfp): Likewise.
927 (arm_linux_collect_vfp): Likewise.
928 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
929 (arm_prologue_unwind_stop_reason): Likewise.
930 (arm_prologue_this_id): Likewise.
931 (arm_prologue_prev_register): Likewise.
932 (arm_exidx_data_free): Likewise.
933 (arm_find_exidx_entry): Likewise.
934 (arm_stub_this_id): Likewise.
935 (arm_m_exception_this_id): Likewise.
936 (arm_m_exception_prev_register): Likewise.
937 (arm_normal_frame_base): Likewise.
938 (gdb_print_insn_arm): Likewise.
939 (arm_objfile_data_free): Likewise.
940 (arm_record_special_symbol): Likewise.
941 (value_of_arm_user_reg): Likewise.
942 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
943 (armbsd_supply_gregset): Likewise.
944 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
945 (get_auto_load_pspace_data): Likewise.
946 (hash_loaded_script_entry): Likewise.
947 (eq_loaded_script_entry): Likewise.
948 (clear_section_scripts): Likewise.
949 (collect_matching_scripts): Likewise.
950 * auxv.c (auxv_inferior_data_cleanup): Likewise.
951 (get_auxv_inferior_data): Likewise.
952 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
953 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
954 * bfd-target.c (target_bfd_xfer_partial): Likewise.
955 (target_bfd_xclose): Likewise.
956 (target_bfd_get_section_table): Likewise.
957 * bfin-tdep.c (bfin_frame_cache): Likewise.
958 * block.c (find_block_in_blockvector): Likewise.
959 (call_site_for_pc): Likewise.
960 (block_find_non_opaque_type_preferred): Likewise.
961 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
962 (signal_catchpoint_remove_location): Likewise.
963 (signal_catchpoint_breakpoint_hit): Likewise.
964 (signal_catchpoint_print_one): Likewise.
965 (signal_catchpoint_print_mention): Likewise.
966 (signal_catchpoint_print_recreate): Likewise.
967 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
968 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
969 (bp_location_compare_addrs): Likewise.
970 (get_first_locp_gte_addr): Likewise.
971 (check_tracepoint_command): Likewise.
972 (do_map_commands_command): Likewise.
973 (get_breakpoint_objfile_data): Likewise.
974 (free_breakpoint_probes): Likewise.
975 (do_captured_breakpoint_query): Likewise.
976 (compare_breakpoints): Likewise.
977 (bp_location_compare): Likewise.
978 (bpstat_remove_breakpoint_callback): Likewise.
979 (do_delete_breakpoint_cleanup): Likewise.
980 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
981 (bsd_uthread_set_collect_uthread): Likewise.
982 (bsd_uthread_activate): Likewise.
983 (bsd_uthread_fetch_registers): Likewise.
984 (bsd_uthread_store_registers): Likewise.
985 * btrace.c (check_xml_btrace_version): Likewise.
986 (parse_xml_btrace_block): Likewise.
987 (parse_xml_btrace_pt_config_cpu): Likewise.
988 (parse_xml_btrace_pt_raw): Likewise.
989 (parse_xml_btrace_pt): Likewise.
990 (parse_xml_btrace_conf_bts): Likewise.
991 (parse_xml_btrace_conf_pt): Likewise.
992 (do_btrace_data_cleanup): Likewise.
993 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
994 * charset.c (cleanup_iconv): Likewise.
995 (do_cleanup_iterator): Likewise.
996 * cli-out.c (cli_uiout_dtor): Likewise.
997 (cli_table_begin): Likewise.
998 (cli_table_body): Likewise.
999 (cli_table_end): Likewise.
1000 (cli_table_header): Likewise.
1001 (cli_begin): Likewise.
1002 (cli_end): Likewise.
1003 (cli_field_int): Likewise.
1004 (cli_field_skip): Likewise.
1005 (cli_field_string): Likewise.
1006 (cli_field_fmt): Likewise.
1007 (cli_spaces): Likewise.
1008 (cli_text): Likewise.
1009 (cli_message): Likewise.
1010 (cli_wrap_hint): Likewise.
1011 (cli_flush): Likewise.
1012 (cli_redirect): Likewise.
1013 (out_field_fmt): Likewise.
1014 (field_separator): Likewise.
1015 (cli_out_set_stream): Likewise.
1016 * cli/cli-cmds.c (compare_symtabs): Likewise.
1017 * cli/cli-dump.c (call_dump_func): Likewise.
1018 (restore_section_callback): Likewise.
1019 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1020 (do_restore_user_call_depth): Likewise.
1021 (do_free_command_lines_cleanup): Likewise.
1022 * coff-pe-read.c (get_section_vmas): Likewise.
1023 (pe_as16): Likewise.
1024 (pe_as32): Likewise.
1025 * coffread.c (coff_symfile_read): Likewise.
1026 * common/agent.c (agent_look_up_symbols): Likewise.
1027 * common/filestuff.c (do_close_cleanup): Likewise.
1028 * common/format.c (free_format_pieces_cleanup): Likewise.
1029 * common/vec.c (vec_o_reserve): Likewise.
1030 * compile/compile-c-support.c (print_one_macro): Likewise.
1031 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1032 (eq_symbol_error): Likewise.
1033 (del_symbol_error): Likewise.
1034 (error_symbol_once): Likewise.
1035 (gcc_convert_symbol): Likewise.
1036 (gcc_symbol_address): Likewise.
1037 (hash_symname): Likewise.
1038 (eq_symname): Likewise.
1039 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1040 (eq_type_map_instance): Likewise.
1041 (insert_type): Likewise.
1042 (convert_type): Likewise.
1043 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1044 (setup_sections): Likewise.
1045 (link_hash_table_free): Likewise.
1046 (copy_sections): Likewise.
1047 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1048 * compile/compile.c (compile_print_value): Likewise.
1049 (do_rmdir): Likewise.
1050 (cleanup_compile_instance): Likewise.
1051 (cleanup_unlink_file): Likewise.
1052 * completer.c (free_completion_tracker): Likewise.
1053 * corelow.c (add_to_spuid_list): Likewise.
1054 * cp-namespace.c (reset_directive_searched): Likewise.
1055 * cp-support.c (reset_directive_searched): Likewise.
1056 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1057 (cris_frame_unwind_cache): Likewise.
1058 * d-lang.c (builtin_d_type): Likewise.
1059 * d-namespace.c (reset_directive_searched): Likewise.
1060 * dbxread.c (dbx_free_symfile_info): Likewise.
1061 (do_free_bincl_list_cleanup): Likewise.
1062 * disasm.c (hash_dis_line_entry): Likewise.
1063 (eq_dis_line_entry): Likewise.
1064 (dis_asm_print_address): Likewise.
1065 (fprintf_disasm): Likewise.
1066 (do_ui_file_delete): Likewise.
1067 * doublest.c (convert_floatformat_to_doublest): Likewise.
1068 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1069 (dummy_frame_prev_register): Likewise.
1070 (dummy_frame_this_id): Likewise.
1071 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1072 (cache_eq): Likewise.
1073 (cache_find): Likewise.
1074 (tailcall_frame_this_id): Likewise.
1075 (dwarf2_tailcall_prev_register_first): Likewise.
1076 (tailcall_frame_prev_register): Likewise.
1077 (tailcall_frame_dealloc_cache): Likewise.
1078 (tailcall_frame_prev_arch): Likewise.
1079 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1080 (dwarf2_frame_set_init_reg): Likewise.
1081 (dwarf2_frame_init_reg): Likewise.
1082 (dwarf2_frame_set_signal_frame_p): Likewise.
1083 (dwarf2_frame_signal_frame_p): Likewise.
1084 (dwarf2_frame_set_adjust_regnum): Likewise.
1085 (dwarf2_frame_adjust_regnum): Likewise.
1086 (clear_pointer_cleanup): Likewise.
1087 (dwarf2_frame_cache): Likewise.
1088 (find_cie): Likewise.
1089 (dwarf2_frame_find_fde): Likewise.
1090 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1091 (free_dwarf_expr_context_cleanup): Likewise.
1092 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1093 (locexpr_get_frame_base): Likewise.
1094 (loclist_find_frame_base_location): Likewise.
1095 (loclist_get_frame_base): Likewise.
1096 (dwarf_expr_dwarf_call): Likewise.
1097 (dwarf_expr_get_base_type): Likewise.
1098 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1099 (dwarf_expr_get_obj_addr): Likewise.
1100 (entry_data_value_coerce_ref): Likewise.
1101 (entry_data_value_copy_closure): Likewise.
1102 (entry_data_value_free_closure): Likewise.
1103 (get_frame_address_in_block_wrapper): Likewise.
1104 (dwarf2_evaluate_property): Likewise.
1105 (dwarf2_compile_property_to_c): Likewise.
1106 (needs_frame_read_addr_from_reg): Likewise.
1107 (needs_frame_get_reg_value): Likewise.
1108 (needs_frame_frame_base): Likewise.
1109 (needs_frame_frame_cfa): Likewise.
1110 (needs_frame_tls_address): Likewise.
1111 (needs_frame_dwarf_call): Likewise.
1112 (needs_dwarf_reg_entry_value): Likewise.
1113 (get_ax_pc): Likewise.
1114 (locexpr_read_variable): Likewise.
1115 (locexpr_read_variable_at_entry): Likewise.
1116 (locexpr_read_needs_frame): Likewise.
1117 (locexpr_describe_location): Likewise.
1118 (locexpr_tracepoint_var_ref): Likewise.
1119 (locexpr_generate_c_location): Likewise.
1120 (loclist_read_variable): Likewise.
1121 (loclist_read_variable_at_entry): Likewise.
1122 (loclist_describe_location): Likewise.
1123 (loclist_tracepoint_var_ref): Likewise.
1124 (loclist_generate_c_location): Likewise.
1125 * dwarf2read.c (line_header_hash_voidp): Likewise.
1126 (line_header_eq_voidp): Likewise.
1127 (dwarf2_has_info): Likewise.
1128 (dwarf2_get_section_info): Likewise.
1129 (locate_dwz_sections): Likewise.
1130 (hash_file_name_entry): Likewise.
1131 (eq_file_name_entry): Likewise.
1132 (delete_file_name_entry): Likewise.
1133 (dw2_setup): Likewise.
1134 (dw2_get_file_names_reader): Likewise.
1135 (dw2_find_pc_sect_compunit_symtab): Likewise.
1136 (hash_signatured_type): Likewise.
1137 (eq_signatured_type): Likewise.
1138 (add_signatured_type_cu_to_table): Likewise.
1139 (create_debug_types_hash_table): Likewise.
1140 (lookup_dwo_signatured_type): Likewise.
1141 (lookup_dwp_signatured_type): Likewise.
1142 (lookup_signatured_type): Likewise.
1143 (hash_type_unit_group): Likewise.
1144 (eq_type_unit_group): Likewise.
1145 (get_type_unit_group): Likewise.
1146 (process_psymtab_comp_unit_reader): Likewise.
1147 (sort_tu_by_abbrev_offset): Likewise.
1148 (process_skeletonless_type_unit): Likewise.
1149 (psymtabs_addrmap_cleanup): Likewise.
1150 (dwarf2_read_symtab): Likewise.
1151 (psymtab_to_symtab_1): Likewise.
1152 (die_hash): Likewise.
1153 (die_eq): Likewise.
1154 (load_full_comp_unit_reader): Likewise.
1155 (reset_die_in_process): Likewise.
1156 (free_cu_line_header): Likewise.
1157 (handle_DW_AT_stmt_list): Likewise.
1158 (hash_dwo_file): Likewise.
1159 (eq_dwo_file): Likewise.
1160 (hash_dwo_unit): Likewise.
1161 (eq_dwo_unit): Likewise.
1162 (create_dwo_cu_reader): Likewise.
1163 (create_dwo_unit_in_dwp_v1): Likewise.
1164 (create_dwo_unit_in_dwp_v2): Likewise.
1165 (lookup_dwo_unit_in_dwp): Likewise.
1166 (dwarf2_locate_dwo_sections): Likewise.
1167 (dwarf2_locate_common_dwp_sections): Likewise.
1168 (dwarf2_locate_v2_dwp_sections): Likewise.
1169 (hash_dwp_loaded_cutus): Likewise.
1170 (eq_dwp_loaded_cutus): Likewise.
1171 (lookup_dwo_cutu): Likewise.
1172 (abbrev_table_free_cleanup): Likewise.
1173 (dwarf2_free_abbrev_table): Likewise.
1174 (find_partial_die_in_comp_unit): Likewise.
1175 (free_line_header_voidp): Likewise.
1176 (follow_die_offset): Likewise.
1177 (follow_die_sig_1): Likewise.
1178 (free_heap_comp_unit): Likewise.
1179 (free_stack_comp_unit): Likewise.
1180 (dwarf2_free_objfile): Likewise.
1181 (per_cu_offset_and_type_hash): Likewise.
1182 (per_cu_offset_and_type_eq): Likewise.
1183 (get_die_type_at_offset): Likewise.
1184 (partial_die_hash): Likewise.
1185 (partial_die_eq): Likewise.
1186 (dwarf2_per_objfile_free): Likewise.
1187 (hash_strtab_entry): Likewise.
1188 (eq_strtab_entry): Likewise.
1189 (add_string): Likewise.
1190 (hash_symtab_entry): Likewise.
1191 (eq_symtab_entry): Likewise.
1192 (delete_symtab_entry): Likewise.
1193 (cleanup_mapped_symtab): Likewise.
1194 (add_indices_to_cpool): Likewise.
1195 (hash_psymtab_cu_index): Likewise.
1196 (eq_psymtab_cu_index): Likewise.
1197 (add_address_entry_worker): Likewise.
1198 (unlink_if_set): Likewise.
1199 (write_one_signatured_type): Likewise.
1200 (save_gdb_index_command): Likewise.
1201 * elfread.c (elf_symtab_read): Likewise.
1202 (elf_gnu_ifunc_cache_hash): Likewise.
1203 (elf_gnu_ifunc_cache_eq): Likewise.
1204 (elf_gnu_ifunc_record_cache): Likewise.
1205 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1206 (elf_get_probes): Likewise.
1207 (probe_key_free): Likewise.
1208 * f-lang.c (builtin_f_type): Likewise.
1209 * frame-base.c (frame_base_append_sniffer): Likewise.
1210 (frame_base_set_default): Likewise.
1211 (frame_base_find_by_frame): Likewise.
1212 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1213 (frame_unwind_append_unwinder): Likewise.
1214 (frame_unwind_find_by_frame): Likewise.
1215 * frame.c (frame_addr_hash): Likewise.
1216 (frame_addr_hash_eq): Likewise.
1217 (frame_stash_find): Likewise.
1218 (do_frame_register_read): Likewise.
1219 (unwind_to_current_frame): Likewise.
1220 (frame_cleanup_after_sniffer): Likewise.
1221 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1222 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1223 * ft32-tdep.c (ft32_frame_cache): Likewise.
1224 * gcore.c (do_bfd_delete_cleanup): Likewise.
1225 (gcore_create_callback): Likewise.
1226 * gdb_bfd.c (hash_bfd): Likewise.
1227 (eq_bfd): Likewise.
1228 (gdb_bfd_open): Likewise.
1229 (free_one_bfd_section): Likewise.
1230 (gdb_bfd_ref): Likewise.
1231 (gdb_bfd_unref): Likewise.
1232 (get_section_descriptor): Likewise.
1233 (gdb_bfd_map_section): Likewise.
1234 (gdb_bfd_crc): Likewise.
1235 (gdb_bfd_mark_parent): Likewise.
1236 (gdb_bfd_record_inclusion): Likewise.
1237 (gdb_bfd_requires_relocations): Likewise.
1238 (print_one_bfd): Likewise.
1239 * gdbtypes.c (type_pair_hash): Likewise.
1240 (type_pair_eq): Likewise.
1241 (builtin_type): Likewise.
1242 (objfile_type): Likewise.
1243 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1244 (vtable_address_point_offset): Likewise.
1245 (gnuv3_get_vtable): Likewise.
1246 (hash_value_and_voffset): Likewise.
1247 (eq_value_and_voffset): Likewise.
1248 (compare_value_and_voffset): Likewise.
1249 (compute_vtable_size): Likewise.
1250 (gnuv3_get_typeid_type): Likewise.
1251 * go-lang.c (builtin_go_type): Likewise.
1252 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1253 (bkscm_eq_block_smob): Likewise.
1254 (bkscm_objfile_block_map): Likewise.
1255 (bkscm_del_objfile_blocks): Likewise.
1256 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1257 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1258 (gdbscm_disasm_print_address): Likewise.
1259 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1260 (frscm_eq_frame_smob): Likewise.
1261 (frscm_inferior_frame_map): Likewise.
1262 (frscm_del_inferior_frames): Likewise.
1263 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1264 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1265 (ofscm_objfile_smob_from_objfile): Likewise.
1266 * guile/scm-ports.c (ioscm_write): Likewise.
1267 (ioscm_file_port_delete): Likewise.
1268 (ioscm_file_port_rewind): Likewise.
1269 (ioscm_file_port_put): Likewise.
1270 (ioscm_file_port_write): Likewise.
1271 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1272 (psscm_pspace_smob_from_pspace): Likewise.
1273 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1274 (scscm_recording_unwind_handler): Likewise.
1275 (gdbscm_with_catch): Likewise.
1276 (scscm_call_0_body): Likewise.
1277 (scscm_call_1_body): Likewise.
1278 (scscm_call_2_body): Likewise.
1279 (scscm_call_3_body): Likewise.
1280 (scscm_call_4_body): Likewise.
1281 (scscm_apply_1_body): Likewise.
1282 (scscm_eval_scheme_string): Likewise.
1283 (gdbscm_safe_eval_string): Likewise.
1284 (scscm_source_scheme_script): Likewise.
1285 (gdbscm_safe_source_script): Likewise.
1286 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1287 (gdbscm_call_scm_from_stringn): Likewise.
1288 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1289 (syscm_eq_symbol_smob): Likewise.
1290 (syscm_get_symbol_map): Likewise.
1291 (syscm_del_objfile_symbols): Likewise.
1292 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1293 (stscm_eq_symtab_smob): Likewise.
1294 (stscm_objfile_symtab_map): Likewise.
1295 (stscm_del_objfile_symtabs): Likewise.
1296 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1297 (tyscm_eq_type_smob): Likewise.
1298 (tyscm_type_map): Likewise.
1299 (tyscm_copy_type_recursive): Likewise.
1300 (save_objfile_types): Likewise.
1301 * guile/scm-utils.c (extract_arg): Likewise.
1302 * h8300-tdep.c (h8300_frame_cache): Likewise.
1303 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1304 * hppa-tdep.c (compare_unwind_entries): Likewise.
1305 (find_unwind_entry): Likewise.
1306 (hppa_frame_cache): Likewise.
1307 (hppa_stub_frame_unwind_cache): Likewise.
1308 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1309 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1310 (hppaobsd_supply_fpregset): Likewise.
1311 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1312 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1313 * i386-tdep.c (i386_frame_cache): Likewise.
1314 (i386_epilogue_frame_cache): Likewise.
1315 (i386_sigtramp_frame_cache): Likewise.
1316 (i386_supply_gregset): Likewise.
1317 (i386_collect_gregset): Likewise.
1318 (i386_gdbarch_init): Likewise.
1319 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1320 (i386obsd_trapframe_cache): Likewise.
1321 * i387-tdep.c (i387_supply_fsave): Likewise.
1322 (i387_collect_fsave): Likewise.
1323 (i387_supply_fxsave): Likewise.
1324 (i387_collect_fxsave): Likewise.
1325 (i387_supply_xsave): Likewise.
1326 (i387_collect_xsave): Likewise.
1327 * ia64-tdep.c (ia64_frame_cache): Likewise.
1328 (ia64_sigtramp_frame_cache): Likewise.
1329 * infcmd.c (attach_command_continuation): Likewise.
1330 (attach_command_continuation_free_args): Likewise.
1331 * inferior.c (restore_inferior): Likewise.
1332 (delete_thread_of_inferior): Likewise.
1333 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1334 (get_inflow_inferior_data): Likewise.
1335 (inflow_inferior_exit): Likewise.
1336 * infrun.c (displaced_step_clear_cleanup): Likewise.
1337 (restore_current_uiout_cleanup): Likewise.
1338 (release_stop_context_cleanup): Likewise.
1339 (do_restore_infcall_suspend_state_cleanup): Likewise.
1340 (do_restore_infcall_control_state_cleanup): Likewise.
1341 (restore_inferior_ptid): Likewise.
1342 * inline-frame.c (block_starting_point_at): Likewise.
1343 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1344 * jit.c (get_jit_objfile_data): Likewise.
1345 (get_jit_program_space_data): Likewise.
1346 (jit_object_close_impl): Likewise.
1347 (jit_find_objf_with_entry_addr): Likewise.
1348 (jit_breakpoint_deleted): Likewise.
1349 (jit_unwind_reg_set_impl): Likewise.
1350 (jit_unwind_reg_get_impl): Likewise.
1351 (jit_dealloc_cache): Likewise.
1352 (jit_frame_sniffer): Likewise.
1353 (jit_frame_prev_register): Likewise.
1354 (jit_prepend_unwinder): Likewise.
1355 (jit_inferior_exit_hook): Likewise.
1356 (free_objfile_data): Likewise.
1357 * jv-lang.c (jv_per_objfile_free): Likewise.
1358 (get_dynamics_objfile): Likewise.
1359 (get_java_class_symtab): Likewise.
1360 (builtin_java_type): Likewise.
1361 * language.c (language_string_char_type): Likewise.
1362 (language_bool_type): Likewise.
1363 (language_lookup_primitive_type): Likewise.
1364 (language_lookup_primitive_type_as_symbol): Likewise.
1365 * linespec.c (hash_address_entry): Likewise.
1366 (eq_address_entry): Likewise.
1367 (iterate_inline_only): Likewise.
1368 (iterate_name_matcher): Likewise.
1369 (decode_line_2_compare_items): Likewise.
1370 (collect_one_symbol): Likewise.
1371 (compare_symbols): Likewise.
1372 (compare_msymbols): Likewise.
1373 (add_symtabs_to_list): Likewise.
1374 (collect_symbols): Likewise.
1375 (compare_msyms): Likewise.
1376 (add_minsym): Likewise.
1377 (cleanup_linespec_result): Likewise.
1378 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1379 * linux-nat.c (delete_lwp_cleanup): Likewise.
1380 (count_events_callback): Likewise.
1381 (select_event_lwp_callback): Likewise.
1382 (resume_stopped_resumed_lwps): Likewise.
1383 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1384 (invalidate_linux_cache_inf): Likewise.
1385 (get_linux_inferior_data): Likewise.
1386 (linux_find_memory_regions_thunk): Likewise.
1387 (linux_make_mappings_callback): Likewise.
1388 (linux_corefile_thread_callback): Likewise.
1389 (find_mapping_size): Likewise.
1390 * linux-thread-db.c (find_new_threads_callback): Likewise.
1391 * lm32-tdep.c (lm32_frame_cache): Likewise.
1392 * m2-lang.c (builtin_m2_type): Likewise.
1393 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1394 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1395 (m32r_linux_supply_gregset): Likewise.
1396 (m32r_linux_collect_gregset): Likewise.
1397 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1398 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1399 * m68k-tdep.c (m68k_frame_cache): Likewise.
1400 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1401 (m68kbsd_supply_gregset): Likewise.
1402 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1403 * m88k-tdep.c (m88k_frame_cache): Likewise.
1404 (m88k_supply_gregset): Likewise.
1405
224c3ddb
SM
14062015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1407
1408 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1409 to allocation result assignment.
1410 * ada-exp.y (write_object_renaming): Likewise.
1411 (write_ambiguous_var): Likewise.
1412 (ada_nget_field_index): Likewise.
1413 (write_var_or_type): Likewise.
1414 * ada-lang.c (ada_decode_symbol): Likewise.
1415 (ada_value_assign): Likewise.
1416 (value_pointer): Likewise.
1417 (cache_symbol): Likewise.
1418 (add_nonlocal_symbols): Likewise.
1419 (ada_name_for_lookup): Likewise.
1420 (symbol_completion_add): Likewise.
1421 (ada_to_fixed_type_1): Likewise.
1422 (ada_get_next_arg): Likewise.
1423 (defns_collected): Likewise.
1424 * ada-lex.l (processId): Likewise.
1425 (processString): Likewise.
1426 * ada-tasks.c (read_known_tasks_array): Likewise.
1427 (read_known_tasks_list): Likewise.
1428 * ada-typeprint.c (decoded_type_name): Likewise.
1429 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1430 * amd64-tdep.c (amd64_push_arguments): Likewise.
1431 (amd64_displaced_step_copy_insn): Likewise.
1432 (amd64_classify_insn_at): Likewise.
1433 (amd64_relocate_instruction): Likewise.
1434 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1435 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1436 (initialize_current_architecture): Likewise.
1437 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1438 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1439 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1440 (arm_push_dummy_call): Likewise.
1441 (extend_buffer_earlier): Likewise.
1442 (arm_adjust_breakpoint_address): Likewise.
1443 (arm_skip_stub): Likewise.
1444 * auto-load.c (filename_is_in_pattern): Likewise.
1445 (maybe_add_script_file): Likewise.
1446 (maybe_add_script_text): Likewise.
1447 (auto_load_objfile_script_1): Likewise.
1448 * auxv.c (ld_so_xfer_auxv): Likewise.
1449 * ax-general.c (new_agent_expr): Likewise.
1450 (grow_expr): Likewise.
1451 (ax_reg_mask): Likewise.
1452 * bcache.c (bcache_full): Likewise.
1453 * breakpoint.c (program_breakpoint_here_p): Likewise.
1454 * btrace.c (parse_xml_raw): Likewise.
1455 * build-id.c (build_id_to_debug_bfd): Likewise.
1456 * buildsym.c (end_symtab_with_blockvector): Likewise.
1457 * c-exp.y (string_exp): Likewise.
1458 (qualified_name): Likewise.
1459 (write_destructor_name): Likewise.
1460 (operator_stoken): Likewise.
1461 (parse_number): Likewise.
1462 (scan_macro_expansion): Likewise.
1463 (yylex): Likewise.
1464 (c_print_token): Likewise.
1465 * c-lang.c (c_get_string): Likewise.
1466 (emit_numeric_character): Likewise.
1467 * charset.c (wchar_iterate): Likewise.
1468 * cli/cli-cmds.c (complete_command): Likewise.
1469 (make_command): Likewise.
1470 * cli/cli-dump.c (restore_section_callback): Likewise.
1471 (restore_binary_file): Likewise.
1472 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1473 * cli/cli-script.c (execute_control_command): Likewise.
1474 * cli/cli-setshow.c (do_set_command): Likewise.
1475 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1476 (read_pe_exported_syms): Likewise.
1477 * coffread.c (coff_read_struct_type): Likewise.
1478 (coff_read_enum_type): Likewise.
1479 * common/btrace-common.c (btrace_data_append): Likewise.
1480 * common/buffer.c (buffer_grow): Likewise.
1481 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1482 * common/format.c (parse_format_string): Likewise.
1483 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1484 * common/xml-utils.c (xml_escape_text): Likewise.
1485 * compile/compile-object-load.c (copy_sections): Likewise.
1486 (compile_object_load): Likewise.
1487 * compile/compile-object-run.c (compile_object_run): Likewise.
1488 * completer.c (filename_completer): Likewise.
1489 * corefile.c (read_memory_typed_address): Likewise.
1490 (write_memory_unsigned_integer): Likewise.
1491 (write_memory_signed_integer): Likewise.
1492 (complete_set_gnutarget): Likewise.
1493 * corelow.c (get_core_register_section): Likewise.
1494 * cp-name-parser.y (d_grab): Likewise.
1495 (allocate_info): Likewise.
1496 (cp_new_demangle_parse_info): Likewise.
1497 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1498 (cp_lookup_symbol_in_namespace): Likewise.
1499 (lookup_namespace_scope): Likewise.
1500 (find_symbol_in_baseclass): Likewise.
1501 (cp_lookup_nested_symbol): Likewise.
1502 (cp_lookup_transparent_type_loop): Likewise.
1503 * cp-support.c (copy_string_to_obstack): Likewise.
1504 (make_symbol_overload_list): Likewise.
1505 (make_symbol_overload_list_namespace): Likewise.
1506 (make_symbol_overload_list_adl_namespace): Likewise.
1507 (first_component_command): Likewise.
1508 * cp-valprint.c (cp_print_value): Likewise.
1509 * ctf.c (ctf_xfer_partial): Likewise.
1510 * d-exp.y (StringExp): Likewise.
1511 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1512 (lookup_module_scope): Likewise.
1513 (find_symbol_in_baseclass): Likewise.
1514 (d_lookup_nested_symbol): Likewise.
1515 * dbxread.c (find_stab_function_addr): Likewise.
1516 (read_dbx_symtab): Likewise.
1517 (dbx_end_psymtab): Likewise.
1518 (cp_set_block_scope): Likewise.
1519 * dcache.c (dcache_alloc): Likewise.
1520 * demangle.c (_initialize_demangler): Likewise.
1521 * dicos-tdep.c (dicos_load_module_p): Likewise.
1522 * dictionary.c (dict_create_hashed_expandable): Likewise.
1523 (dict_create_linear_expandable): Likewise.
1524 (expand_hashtable): Likewise.
1525 (add_symbol_linear_expandable): Likewise.
1526 * dwarf2-frame.c (add_cie): Likewise.
1527 (add_fde): Likewise.
1528 (dwarf2_build_frame_info): Likewise.
1529 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1530 (dwarf_expr_fetch_address): Likewise.
1531 (add_piece): Likewise.
1532 (execute_stack_op): Likewise.
1533 * dwarf2loc.c (chain_candidate): Likewise.
1534 (dwarf_entry_parameter_to_value): Likewise.
1535 (read_pieced_value): Likewise.
1536 (write_pieced_value): Likewise.
1537 * dwarf2read.c (dwarf2_read_section): Likewise.
1538 (add_type_unit): Likewise.
1539 (read_comp_units_from_section): Likewise.
1540 (fixup_go_packaging): Likewise.
1541 (dwarf2_compute_name): Likewise.
1542 (dwarf2_physname): Likewise.
1543 (create_dwo_unit_in_dwp_v1): Likewise.
1544 (create_dwo_unit_in_dwp_v2): Likewise.
1545 (read_func_scope): Likewise.
1546 (read_call_site_scope): Likewise.
1547 (dwarf2_attach_fields_to_type): Likewise.
1548 (process_structure_scope): Likewise.
1549 (mark_common_block_symbol_computed): Likewise.
1550 (read_common_block): Likewise.
1551 (abbrev_table_read_table): Likewise.
1552 (guess_partial_die_structure_name): Likewise.
1553 (fixup_partial_die): Likewise.
1554 (add_file_name): Likewise.
1555 (dwarf2_const_value_data): Likewise.
1556 (dwarf2_const_value_attr): Likewise.
1557 (build_error_marker_type): Likewise.
1558 (guess_full_die_structure_name): Likewise.
1559 (anonymous_struct_prefix): Likewise.
1560 (typename_concat): Likewise.
1561 (dwarf2_canonicalize_name): Likewise.
1562 (dwarf2_name): Likewise.
1563 (write_constant_as_bytes): Likewise.
1564 (dwarf2_fetch_constant_bytes): Likewise.
1565 (copy_string): Likewise.
1566 (parse_macro_definition): Likewise.
1567 * elfread.c (elf_symfile_segments): Likewise.
1568 (elf_rel_plt_read): Likewise.
1569 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1570 (elf_gnu_ifunc_resolve_by_got): Likewise.
1571 (elf_read_minimal_symbols): Likewise.
1572 (elf_gnu_ifunc_record_cache): Likewise.
1573 * event-top.c (top_level_prompt): Likewise.
1574 (command_line_handler): Likewise.
1575 * exec.c (resize_section_table): Likewise.
1576 * expprint.c (print_subexp_standard): Likewise.
1577 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1578 * findcmd.c (parse_find_args): Likewise.
1579 * findvar.c (address_from_register): Likewise.
1580 * frame.c (get_prev_frame_always): Likewise.
1581 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1582 (get_section_descriptor): Likewise.
1583 * gdb_obstack.c (obconcat): Likewise.
1584 (obstack_strdup): Likewise.
1585 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1586 (create_set_type): Likewise.
1587 (lookup_unsigned_typename): Likewise.
1588 (lookup_signed_typename): Likewise.
1589 (resolve_dynamic_union): Likewise.
1590 (resolve_dynamic_struct): Likewise.
1591 (add_dyn_prop): Likewise.
1592 (copy_dynamic_prop_list): Likewise.
1593 (arch_flags_type): Likewise.
1594 (append_composite_type_field_raw): Likewise.
1595 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1596 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1597 * go-exp.y (string_exp): Likewise.
1598 * go-lang.c (go_demangle): Likewise.
1599 * guile/guile.c (compute_scheme_string): Likewise.
1600 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1601 (gdbscm_canonicalize_command_name): Likewise.
1602 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1603 (ioscm_init_memory_port): Likewise.
1604 (ioscm_reinit_memory_port): Likewise.
1605 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1606 (gdbscm_gc_dup_argv): Likewise.
1607 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1608 * hppa-tdep.c (internalize_unwinds): Likewise.
1609 (read_unwind_info): Likewise.
1610 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1611 (windows_core_xfer_shared_libraries): Likewise.
1612 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1613 (i386_stap_parse_special_token_triplet): Likewise.
1614 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1615 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1616 * inf-child.c (inf_child_fileio_readlink): Likewise.
1617 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1618 (inf_ptrace_store_register): Likewise.
1619 * infrun.c (follow_exec): Likewise.
1620 (displaced_step_prepare_throw): Likewise.
1621 (save_stop_context): Likewise.
1622 (save_infcall_suspend_state): Likewise.
1623 * jit.c (jit_read_descriptor): Likewise.
1624 (jit_read_code_entry): Likewise.
1625 (jit_symtab_line_mapping_add_impl): Likewise.
1626 (finalize_symtab): Likewise.
1627 (jit_unwind_reg_get_impl): Likewise.
1628 * jv-exp.y (QualifiedName): Likewise.
1629 * jv-lang.c (get_java_utf8_name): Likewise.
1630 (type_from_class): Likewise.
1631 (java_demangle_type_signature): Likewise.
1632 (java_class_name_from_physname): Likewise.
1633 * jv-typeprint.c (java_type_print_base): Likewise.
1634 * jv-valprint.c (java_value_print): Likewise.
1635 * language.c (add_language): Likewise.
1636 * linespec.c (add_sal_to_sals_basic): Likewise.
1637 (add_sal_to_sals): Likewise.
1638 (decode_objc): Likewise.
1639 (find_linespec_symbols): Likewise.
1640 * linux-fork.c (fork_save_infrun_state): Likewise.
1641 * linux-nat.c (linux_nat_detach): Likewise.
1642 (linux_nat_fileio_readlink): Likewise.
1643 * linux-record.c (record_linux_sockaddr): Likewise.
1644 (record_linux_msghdr): Likewise.
1645 (Do): Likewise.
1646 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1647 (linux_collect_regset_section_cb): Likewise.
1648 (linux_get_siginfo_data): Likewise.
1649 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1650 (try_thread_db_load_from_dir): Likewise.
1651 (thread_db_load_search): Likewise.
1652 (info_auto_load_libthread_db): Likewise.
1653 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1654 (m32c_m16c_pointer_to_address): Likewise.
1655 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1656 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1657 * machoread.c (macho_check_dsym): Likewise.
1658 * macroexp.c (resize_buffer): Likewise.
1659 (gather_arguments): Likewise.
1660 (maybe_expand): Likewise.
1661 * macrotab.c (new_macro_key): Likewise.
1662 (new_source_file): Likewise.
1663 (new_macro_definition): Likewise.
1664 * mdebugread.c (parse_symbol): Likewise.
1665 (parse_type): Likewise.
1666 (parse_partial_symbols): Likewise.
1667 (psymtab_to_symtab_1): Likewise.
1668 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1669 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1670 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1671 (mi_cmd_data_read_memory_bytes): Likewise.
1672 (mi_cmd_data_write_memory_bytes): Likewise.
1673 (mi_cmd_trace_frame_collected): Likewise.
1674 * mi/mi-parse.c (mi_parse_argv): Likewise.
1675 (mi_parse): Likewise.
1676 * minidebug.c (lzma_open): Likewise.
1677 (lzma_pread): Likewise.
1678 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1679 (mips_print_fp_register): Likewise.
1680 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1681 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1682 * mt-tdep.c (mt_register_name): Likewise.
1683 (mt_registers_info): Likewise.
1684 (mt_push_dummy_call): Likewise.
1685 * namespace.c (add_using_directive): Likewise.
1686 * nat/linux-btrace.c (perf_event_read): Likewise.
1687 (linux_enable_bts): Likewise.
1688 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1689 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1690 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1691 (nto_parse_redirection): Likewise.
1692 * objc-lang.c (objc_demangle): Likewise.
1693 (find_methods): Likewise.
1694 * objfiles.c (get_objfile_bfd_data): Likewise.
1695 (set_objfile_main_name): Likewise.
1696 (allocate_objfile): Likewise.
1697 (objfile_relocate): Likewise.
1698 (update_section_map): Likewise.
1699 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1700 * p-exp.y (exp): Likewise.
1701 (yylex): Likewise.
1702 * p-valprint.c (pascal_object_print_value): Likewise.
1703 * parse.c (initialize_expout): Likewise.
1704 (mark_completion_tag): Likewise.
1705 (copy_name): Likewise.
1706 (parse_float): Likewise.
1707 (type_stack_reserve): Likewise.
1708 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1709 (ppu2spu_prev_register): Likewise.
1710 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1711 * printcmd.c (printf_wide_c_string): Likewise.
1712 (printf_pointer): Likewise.
1713 * probe.c (parse_probes): Likewise.
1714 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1715 (cmdpy_init): Likewise.
1716 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1717 * python/py-symtab.c (set_sal): Likewise.
1718 * python/py-unwind.c (pyuw_sniffer): Likewise.
1719 * python/python.c (python_interactive_command): Likewise.
1720 (compute_python_string): Likewise.
1721 * ravenscar-thread.c (get_running_thread_id): Likewise.
1722 * record-full.c (record_full_exec_insn): Likewise.
1723 (record_full_core_open_1): Likewise.
1724 * regcache.c (regcache_raw_read_signed): Likewise.
1725 (regcache_raw_read_unsigned): Likewise.
1726 (regcache_cooked_read_signed): Likewise.
1727 (regcache_cooked_read_unsigned): Likewise.
1728 * remote-fileio.c (remote_fileio_func_open): Likewise.
1729 (remote_fileio_func_rename): Likewise.
1730 (remote_fileio_func_unlink): Likewise.
1731 (remote_fileio_func_stat): Likewise.
1732 (remote_fileio_func_system): Likewise.
1733 * remote-mips.c (mips_xfer_memory): Likewise.
1734 (mips_load_srec): Likewise.
1735 (pmon_end_download): Likewise.
1736 * remote.c (new_remote_state): Likewise.
1737 (map_regcache_remote_table): Likewise.
1738 (remote_register_number_and_offset): Likewise.
1739 (init_remote_state): Likewise.
1740 (get_memory_packet_size): Likewise.
1741 (remote_pass_signals): Likewise.
1742 (remote_program_signals): Likewise.
1743 (remote_start_remote): Likewise.
1744 (remote_check_symbols): Likewise.
1745 (remote_query_supported): Likewise.
1746 (extended_remote_attach): Likewise.
1747 (process_g_packet): Likewise.
1748 (store_registers_using_G): Likewise.
1749 (putpkt_binary): Likewise.
1750 (read_frame): Likewise.
1751 (compare_sections_command): Likewise.
1752 (remote_hostio_pread): Likewise.
1753 (remote_hostio_readlink): Likewise.
1754 (remote_file_put): Likewise.
1755 (remote_file_get): Likewise.
1756 (remote_pid_to_exec_file): Likewise.
1757 (_initialize_remote): Likewise.
1758 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1759 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1760 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1761 (bfd_uses_spe_extensions): Likewise.
1762 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1763 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1764 * solib-dsbt.c (decode_loadmap): Likewise.
1765 (fetch_loadmap): Likewise.
1766 (scan_dyntag): Likewise.
1767 (enable_break): Likewise.
1768 (dsbt_relocate_main_executable): Likewise.
1769 * solib-frv.c (fetch_loadmap): Likewise.
1770 (enable_break2): Likewise.
1771 (frv_relocate_main_executable): Likewise.
1772 * solib-spu.c (spu_relocate_main_executable): Likewise.
1773 (spu_bfd_open): Likewise.
1774 * solib-svr4.c (lm_info_read): Likewise.
1775 (read_program_header): Likewise.
1776 (find_program_interpreter): Likewise.
1777 (scan_dyntag): Likewise.
1778 (elf_locate_base): Likewise.
1779 (open_symbol_file_object): Likewise.
1780 (read_program_headers_from_bfd): Likewise.
1781 (svr4_relocate_main_executable): Likewise.
1782 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1783 * solib.c (solib_find_1): Likewise.
1784 (exec_file_find): Likewise.
1785 (solib_find): Likewise.
1786 * source.c (openp): Likewise.
1787 (print_source_lines_base): Likewise.
1788 (forward_search_command): Likewise.
1789 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1790 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1791 (spu_get_overlay_table): Likewise.
1792 * stabsread.c (patch_block_stabs): Likewise.
1793 (define_symbol): Likewise.
1794 (again:): Likewise.
1795 (read_member_functions): Likewise.
1796 (read_one_struct_field): Likewise.
1797 (read_enum_type): Likewise.
1798 (common_block_start): Likewise.
1799 * stack.c (read_frame_arg): Likewise.
1800 (backtrace_command): Likewise.
1801 * stap-probe.c (stap_parse_register_operand): Likewise.
1802 * symfile.c (syms_from_objfile_1): Likewise.
1803 (find_separate_debug_file): Likewise.
1804 (load_command): Likewise.
1805 (load_progress): Likewise.
1806 (load_section_callback): Likewise.
1807 (reread_symbols): Likewise.
1808 (add_filename_language): Likewise.
1809 (allocate_compunit_symtab): Likewise.
1810 (read_target_long_array): Likewise.
1811 (simple_read_overlay_table): Likewise.
1812 * symtab.c (symbol_set_names): Likewise.
1813 (resize_symbol_cache): Likewise.
1814 (rbreak_command): Likewise.
1815 (completion_list_add_name): Likewise.
1816 (completion_list_objc_symbol): Likewise.
1817 (add_filename_to_list): Likewise.
1818 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1819 * target-memory.c (target_write_memory_blocks): Likewise.
1820 * target.c (target_read_string): Likewise.
1821 (read_whatever_is_readable): Likewise.
1822 (target_read_alloc_1): Likewise.
1823 (simple_search_memory): Likewise.
1824 (target_fileio_read_alloc_1): Likewise.
1825 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1826 * top.c (command_line_input): Likewise.
1827 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1828 * tracefile.c (tracefile_fetch_registers): Likewise.
1829 * tracepoint.c (add_memrange): Likewise.
1830 (init_collection_list): Likewise.
1831 (add_aexpr): Likewise.
1832 (trace_dump_actions): Likewise.
1833 (parse_trace_status): Likewise.
1834 (parse_tracepoint_definition): Likewise.
1835 (parse_tsv_definition): Likewise.
1836 (parse_static_tracepoint_marker_definition): Likewise.
1837 * tui/tui-file.c (tui_sfileopen): Likewise.
1838 (tui_file_adjust_strbuf): Likewise.
1839 * tui/tui-io.c (tui_expand_tabs): Likewise.
1840 * tui/tui-source.c (tui_set_source_content): Likewise.
1841 * typeprint.c (find_global_typedef): Likewise.
1842 * ui-file.c (do_ui_file_xstrdup): Likewise.
1843 (ui_file_obsavestring): Likewise.
1844 (mem_file_write): Likewise.
1845 * utils.c (make_hex_string): Likewise.
1846 (get_regcomp_error): Likewise.
1847 (puts_filtered_tabular): Likewise.
1848 (gdb_realpath_keepfile): Likewise.
1849 (ldirname): Likewise.
1850 (gdb_bfd_errmsg): Likewise.
1851 (substitute_path_component): Likewise.
1852 * valops.c (search_struct_method): Likewise.
1853 (find_oload_champ_namespace_loop): Likewise.
1854 * valprint.c (print_decimal_chars): Likewise.
1855 (read_string): Likewise.
1856 (generic_emit_char): Likewise.
1857 * varobj.c (varobj_delete): Likewise.
1858 (varobj_value_get_print_value): Likewise.
1859 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1860 * windows-tdep.c (display_one_tib): Likewise.
1861 * xcoffread.c (read_xcoff_symtab): Likewise.
1862 (process_xcoff_symbol): Likewise.
1863 (swap_sym): Likewise.
1864 (scan_xcoff_symtab): Likewise.
1865 (xcoff_initial_scan): Likewise.
1866 * xml-support.c (gdb_xml_end_element): Likewise.
1867 (xml_process_xincludes): Likewise.
1868 (xml_fetch_content_from_file): Likewise.
1869 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1870 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1871
623fb775 18722015-09-23 James Bowman <james.bowman@ftdichip.com>
1873
1874 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1875 instead of builtin_func_ptr.
1876 (ft32_pointer_to_address): New function.
1877 (ft32_address_class_type_flags): New function.
1878 (ft32_address_class_type_flags_to_name): New function.
1879 (ft32_address_class_name_to_type_flags): New function.
1880 (ft32_gdbarch_init): Set tdep->pc_type. Call
1881 set_gdbarch_pointer_to_address,
1882 set_gdbarch_address_class_type_flags
1883 set_gdbarch_address_class_name_to_type_flags,
1884 and set_gdbarch_address_class_type_flags_to_name.
1885 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1886
e6c2c623
PMR
18872015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1888
1889 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1890 value is a reference, actually dereference it in order to get
1891 the underlying value.
1892
bc1f8cda
SM
18932015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1894
1895 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1896
acaa662f
SM
18972015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1898
1899 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1900 * linespec.c (linespec_lexer_lex_string): Same.
1901
4d9d419e
PL
19022015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1903
1904 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1905
6ec5f4be
PL
19062015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1907
1908 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1909 variable. Call aarch64_decode_adr instead of
1910 aarch64_decode_adrp.
1911 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1912 (aarch64_decode_adr): New function declaration.
1913 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1914 (aarch64_decode_adr): New function, factored out from
1915 aarch64_decode_adrp to decode both adr and adrp instructions.
1916
787749ea
PL
19172015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1918
1919 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1920 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1921 (aarch64-insn.o): New rule.
1922 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1923 (aarch64*-*-linux*): Likewise.
1924 * arch/aarch64-insn.c: New file.
1925 * arch/aarch64-insn.h: New file.
1926 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1927 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1928 arch/aarch64-insn.h.
1929 (decode_add_sub_imm): Rename to ...
1930 (aarch64_decode_add_sub_imm): ... this.
1931 (decode_adrp): Rename to ...
1932 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1933 Declare in arch/aarch64-insn.h.
1934 (decode_b): Rename to ...
1935 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1936 Declare in arch/aarch64-insn.h.
1937 (decode_bcond): Rename to ...
1938 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1939 Declare in arch/aarch64-insn.h.
1940 (decode_br): Rename to ...
1941 (aarch64_decode_br): ... this.
1942 (decode_cb): Rename to ...
1943 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1944 Declare in arch/aarch64-insn.h.
1945 (decode_eret): Rename to ...
1946 (aarch64_decode_eret): ... this.
1947 (decode_movz): Rename to ...
1948 (aarch64_decode_movz): ... this.
1949 (decode_orr_shifted_register_x): Rename to ...
1950 (aarch64_decode_orr_shifted_register_x): ... this.
1951 (decode_ret): Rename to ...
1952 (aarch64_decode_ret): ... this.
1953 (decode_stp_offset): Rename to ...
1954 (aarch64_decode_stp_offset): ... this.
1955 (decode_stp_offset_wb): Rename to ...
1956 (aarch64_decode_stp_offset_wb): ... this.
1957 (decode_stur): Rename to ...
1958 (aarch64_decode_stur): ... this.
1959 (decode_tb): Rename to ...
1960 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1961 Declare in arch/aarch64-insn.h.
1962 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1963
183dc7ec
DE
19642015-09-20 Doug Evans <xdje42@gmail.com>
1965
1966 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1967
2ee7123e
DE
19682015-09-20 Doug Evans <xdje42@gmail.com>
1969
1970 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1971 variable name that collides with a parameter.
1972
7d1c9c9b
JB
19732015-09-20 Joel Brobecker <brobecker@adacore.com>
1974
1975 * dwarf2loc.c (locexpr_get_frame_base): Renames
1976 block_op_get_frame_base.
1977 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1978 block_op_get_frame_base by reference to locexpr_get_frame_base.
1979 (loclist_get_frame_base): New function, near identical copy of
1980 locexpr_get_frame_base.
1981 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1982 block_op_get_frame_base by reference to loclist_get_frame_base.
1983
7dc7c195
DE
19842015-09-19 Doug Evans <xdje42@gmail.com>
1985
1986 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1987 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1988
be550b6e
DE
19892015-09-18 Doug Evans <xdje42@gmail.com>
1990
1991 * linux-thread-db.c (record_thread): Return the created thread.
1992 (thread_from_lwp): Likewise.
1993 (thread_db_get_thread_local_address): Update.
1994
615b3f62
DE
19952015-09-18 Doug Evans <xdje42@gmail.com>
1996
1997 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1998 move only member demangled_name up. All uses updated.
1999
015d2e7e
DE
20002015-09-18 Doug Evans <xdje42@gmail.com>
2001
2002 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2003 kind of minimal symbol in the error message.
2004 * objfiles.c (objfile_flavour_name): New function.
2005 * objfiles.h (objfile_flavour_name): Declare.
2006
a0cc84cd
YQ
20072015-09-18 Yao Qi <yao.qi@linaro.org>
2008
2009 * nat/aarch64-linux.c: Include elf/common.h,
2010 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2011 (aarch64_ps_get_thread_area): New function.
2012 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2013 (aarch64_ps_get_thread_area): Declare.
2014 * aarch64-linux-nat.c (ps_get_thread_area): Call
2015 aarch64_ps_get_thread_area.
2016
d2939ba2
MM
20172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2018
2019 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2020
f2665db5
MM
20212015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2022
2023 * NEWS: Announce new scheduler-locking mode.
2024 * infrun.c (schedlock_replay): New.
2025 (scheduler_enums): Add schedlock_replay.
2026 (scheduler_mode): Change default to schedlock_replay.
2027 (user_visible_resume_ptid): Handle schedlock_replay.
2028 (clear_proceed_status_thread): Stop replaying if resumed thread is
2029 not replaying.
2030 (schedlock_applies): Handle schedlock_replay.
2031 (_initialize_infrun): Document new scheduler-locking mode.
2032 * record-btrace.c (record_btrace_resume): Remove code to stop other
2033 threads when not replaying the resumed thread.
2034
7ff27e9b
MM
20352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2036
2037 * record-btrace.c ((record_btrace_will_replay): New.
2038 (init_record_btrace_ops): Initialize to_record_will_replay.
2039 * record-full.c ((record_full_will_replay): New.
2040 (init_record_full_ops): Initialize to_record_will_replay.
2041 * target-delegates.c: Regenerated.
2042 * target.c (target_record_will_replay): New.
2043 * target.h (struct target_ops) <to_record_will_replay>: New.
2044 (target_record_will_replay): New.
2045
797094dd
MM
20462015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2047
2048 * record-btrace.c (record_btrace_resume): Call
2049 target_record_stop_replaying.
2050 (record_btrace_stop_replaying_all): New.
2051 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2052 * record-full.c (record_full_stop_replaying): New.
2053 (init_record_full_ops ): Initialize to_record_stop_replaying.
2054 * target-delegates.c: Regenerated.
2055 * target.c (target_record_stop_replaying): New.
2056 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2057 (target_record_stop_replaying): New.
2058
4d10e986
MM
20592015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2060
2061 * record-btrace.c (record_btrace_xfer_partial)
2062 (record_btrace_store_registers, record_btrace_prepare_to_store):
2063 Call record_btrace_is_replaying with inferior_ptid instead of
2064 minus_one_ptid.
2065 (record_btrace_store_registers): Change error message.
2066
a52eab48
MM
20672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2068
2069 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2070 Update users to pass minus_one_ptid.
2071 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2072 * record.c (cmd_record_delete): Pass inferior_ptid to
2073 target_record_is_replaying.
2074 * target-delegates.c: Regenerated.
2075 * target.c (target_record_is_replaying): Add ptid argument.
2076 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2077 argument.
2078 (target_record_is_replaying): Add ptid argument.
2079
cbb55fa7
MM
20802015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2081
2082 * record-btrace.c (record_btrace_open): Remove non_stop check.
2083 * NEWS: Announce that record btrace supports non-stop mode.
2084
d1988021
MM
20852015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2086
2087 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2088 in the TARKET_WAITKIND_NO_HISTORY case.
2089
a6b5be76
MM
20902015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2091
2092 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2093 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2094
ec71cc2f
MM
20952015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2096
2097 * record-btrace.c (get_thread_current_frame): New.
2098 (record_btrace_start_replaying): Call get_thread_current_frame.
2099
0ca912df
MM
21002015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2101
2102 * record-btrace.c (record_btrace_resume_thread): A move request
2103 overwrites a previous move request.
2104 (record_btrace_find_resume_thread): Removed.
2105 (record_btrace_resume): Resume all requested threads.
2106
e3cfc1c7
MM
21072015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2108
2109 * record-btrace.c: Include vec.h.
2110 (record_btrace_find_thread_to_move): Removed.
2111 (btrace_step_no_resumed, btrace_step_again)
2112 (record_btrace_stop_replaying_at_end): New.
2113 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2114 (record_btrace_single_step_forward): Remove calls to
2115 record_btrace_stop_replaying.
2116 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2117 BTHR_RCONT. Keep threads at the end of their history moving.
2118 (record_btrace_wait): Call record_btrace_step_thread for all threads
2119 until one reports an event. Call record_btrace_stop_replaying_at_end
2120 for the eventing thread.
2121
cf8f8f0c
MM
21222015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2123
2124 * record-btrace.c (record_btrace_single_step_forward): Return
2125 NO_HISTORY if a step brings us to the end of the execution history.
2126
011c71b6
MM
21272015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2128
2129 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2130 to ...
2131 (record_btrace_single_step_forward): ... here and
2132 (record_btrace_single_step_backward): ... here.
2133
d825d248
MM
21342015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2135
2136 * record-btrace.c (btrace_step_spurious)
2137 (record_btrace_single_step_forward)
2138 (record_btrace_single_step_backward): New.
2139 (record_btrace_step_thread): Call record_btrace_single_step_forward
2140 and record_btrace_single_step_backward.
2141
3c615f99
MM
21422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2143
2144 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2145 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2146
987e68b1
MM
21472015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2148
2149 * record-btrace.c (btrace_thread_flag_to_str)
2150 (record_btrace_cancel_resume): New.
2151 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2152 (record_btrace_resume): Print execution direction.
2153 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2154 (record_btrace_wait): Call record_btrace_cancel_resume.
2155
6e4879f0
MM
21562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2157
2158 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2159 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2160 (record_btrace_find_thread_to_move): Also accept threads that have
2161 BTHR_STOP set.
2162 (btrace_step_stopped_on_request, record_btrace_stop): New.
2163 (record_btrace_step_thread): Support BTHR_STOP.
2164 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2165 (init_record_btrace_ops): Initialize to_stop.
2166
5953356c
MM
21672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2168
2169 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2170 target_is_non_stop_p ().
2171
bfca584f
PMR
21722015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2173
2174 * ada-typeprint.c (print_array_type): Do not describe arrays as
2175 packed when they embed dynamic elements.
2176
5382cfab
PW
21772015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2178
2179 * symtab.h (address_class): Document that TLS variables
2180 are handled by LOC_UNRESOLVED.
2181 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2182 * printcmd.c (address_info): Don't relocate TLS variables.
2183
b277c936
PL
21842015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2185
2186 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2187 (decode_adrp): Likewise.
2188 (decode_b): Likewise.
2189 (decode_bcond): Likewise.
2190 (decode_br): Likewise.
2191 (decode_cb): Likewise.
2192 (decode_eret): Likewise.
2193 (decode_movz): Likewise.
2194 (decode_orr_shifted_register_x): Likewise.
2195 (decode_ret): Likewise.
2196 (decode_stp_offset): Likewise.
2197 (decode_stp_offset_wb): Likewise.
2198 (decode_stur): Likewise.
2199 (decode_tb): Likewise.
2200 (aarch64_analyze_prologue): Likewise.
2201 (pass_in_x): Likewise.
2202 (pass_in_v): Likewise.
2203 (pass_on_stack): Likewise.
2204 (aarch64_push_dummy_call): Likewise.
2205 (aarch64_extract_return_value): Likewise.
2206 (aarch64_store_return_value): Likewise.
2207 (aarch64_return_value): Likewise.
2208 (aarch64_record_asimd_load_store): Likewise.
2209 (aarch64_record_load_store): Likewise.
2210 (aarch64_record_data_proc_simd_fp): Likewise.
2211
141c5cc4
JK
22122015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2215 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2216 (ppc64_skip_trampoline_code_1): ... here.
2217 (ppc64_skip_trampoline_code): New wrapper function.
2218 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2219
750ce8d1
YQ
22202015-09-15 Yao Qi <yao.qi@linaro.org>
2221
2222 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2223 function.
2224 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2225 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2226 if target_can_do_single_step returns 1.
2227 * remote.c (struct vCont_action_support) <s, S>: New fields.
2228 (PACKET_vContSupported): New enum.
2229 (remote_protocol_features): New element for vContSupported.
2230 (remote_query_supported): Append "vContSupported+".
2231 (remote_vcont_probe): Remove support_s and support_S, use
2232 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2233 vCont packet if c and C actions are not supported.
2234 (remote_can_do_single_step): New function.
2235 (init_remote_ops): Install it to to_can_do_single_step.
2236 (_initialize_remote): Call add_packet_config_cmd.
2237 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2238 (target_can_do_single_step): New macro.
2239 * target-delegates.c: Re-generated.
2240
ade90bde
YQ
22412015-09-15 Yao Qi <yao.qi@linaro.org>
2242
2243 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2244 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2245 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2246 New function.
2247 (aarch64_siginfo_from_compat_siginfo): New function.
2248 * nat/aarch64-linux.h: Include signal.h.
2249 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2250 (compat_timer_t, compat_clock_t): Likewise.
2251 (struct compat_timeval): New.
2252 (union compat_sigval): New.
2253 (struct compat_siginfo): New.
2254 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2255 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2256 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2257 (cpt_si_band, cpt_si_fd): Likewise.
2258
4c2f2a79
PA
22592015-09-14 Pedro Alves <palves@redhat.com>
2260
2261 * infrun.c (current_stop_id): New global.
2262 (get_stop_id, new_stop_id): New functions.
2263 (fetch_inferior_event): Handle normal_stop proceeding the target.
2264 (struct stop_context): New.
2265 (save_stop_context, release_stop_context_cleanup)
2266 (stop_context_changed): New functions.
2267 (normal_stop): Return true if the hook-stop changes the stop
2268 context.
2269 * infrun.h (get_stop_id): Declare.
2270 (normal_stop): Now returns int. Add documentation.
2271
919e6dbe
PMR
22722015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2273
2274 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2275 comment. Handle packed arrays.
2276
b027a8fa
PA
22772015-09-14 Pedro Alves <palves@redhat.com>
2278
2279 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2280 mention of maint set/show target-non-stop.
2281
b459a59b
DB
22822015-09-11 Don Breazeal <donb@codesourcery.com>
2283
2284 * NEWS: Announce new remote packets for the exec-events
2285 feature and the exec-events feature and associated commands.
2286
d46addbb
DB
22872015-09-11 Don Breazeal <donb@codesourcery.com>
2288
2289 * remote.c (remote_exec_event_p): New function.
2290 (remote_insert_exec_catchpoint): New function.
2291 (remote_remove_exec_catchpoint): New function.
2292 (init_extended_remote_ops): Initialize extended_remote_ops
2293 members to_insert_exec_catchpoint and
2294 to_remove_exec_catchpoint.
2295
94585166
DB
22962015-09-11 Don Breazeal <donb@codesourcery.com>
2297 Luis Machado <lgustavo@codesourcery.com>
2298
2299 * infrun.c (follow_exec): Use process-style ptid for
2300 exec message. Call add_inferior_with_spaces and
2301 target_follow_exec.
2302 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2303 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2304 * remote.c (remote_pspace_data): New static variable.
2305 (remote_pspace_data_cleanup): New function.
2306 (get_remote_exec_file): New function.
2307 (set_remote_exec_file_1): New function.
2308 (set_remote_exec_file): New function.
2309 (show_remote_exec_file): New function.
2310 (remote_exec_file): Delete static variable.
2311 (anonymous enum) <PACKET_exec_event_feature>: New
2312 enumeration constant.
2313 (remote_protocol_features): Add entry for exec-events feature.
2314 (remote_query_supported): Add client side of qSupported query
2315 for exec-events feature.
2316 (remote_follow_exec): New function.
2317 (remote_parse_stop_reply): Handle 'exec' stop reason.
2318 (extended_remote_run, extended_remote_create_inferior): Call
2319 get_remote_exec_file and set_remote_exec_file_1.
2320 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2321 member.
2322 (_initialize_remote): Call
2323 register_program_space_data_with_cleanup. Call
2324 add_packet_config_cmd for remote exec-events feature.
2325 Modify call to add_setshow_string_noescape_cmd for exec-file
2326 to use new functions set_remote_exec_file and
2327 show_remote_exec_file.
2328 * target-debug.h, target-delegates.c: Regenerated.
2329 * target.c (target_follow_exec): New function.
2330 * target.h (struct target_ops) <to_follow_exec>: New member.
2331 (target_follow_exec): Declare new function.
2332
669e74e8
PL
23332015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2334
2335 * aarch64-tdep.c (decode_cb): Move up comment describing the
2336 encoding.
2337 (decode_tb): Fix a typo in comment above the function. Move up
2338 comment describing the encoding.
2339
4d50586d
PL
23402015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2341
2342 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2343
6dcaef99
MMN
23442015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2345
2346 PR gdb/18947
2347 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2348 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2349
5da1a4d3
SM
23502015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2351
2352 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2353 operations.
2354
108d56a4
SM
23552015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2356
2357 * ada-lang.c (ada_search_struct_field): Constify parameters
2358 and/or variables..
2359 (xget_renaming_scope): Likewise.
2360 (ada_is_redundant_range_encoding): Likewise.
2361 (scan_discrim_bound): Likewise.
2362 (to_fixed_range_type): Likewise.
2363
dd2e65cc
YQ
23642015-09-10 Yao Qi <yao.qi@linaro.org>
2365
2366 * breakpoint.c (download_tracepoint_locations): New local
2367 can_download_tracepoint. Check the result of
2368 target_can_download_tracepoint and save it in
2369 can_download_tracepoint if there are tracepoints to download.
2370 * linux-nat.h (enum tribool): Move it to ...
2371 * common/common-types.h: ... here.
2372
cfe75703
PA
23732015-09-09 Pedro Alves <palves@redhat.com>
2374
2375 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2376 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2377
a85a3079
PA
23782015-09-09 Pedro Alves <palves@redhat.com>
2379
2380 * continuations.c (add_continuation, restore_thread_cleanup)
2381 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2382 (do_all_continuations_thread, do_all_continuations)
2383 (discard_all_continuations_thread_callback)
2384 (discard_all_continuations_thread, discard_all_continuations)
2385 (add_intermediate_continuation)
2386 (do_all_intermediate_continuations_thread_callback)
2387 (do_all_intermediate_continuations_thread)
2388 (do_all_intermediate_continuations)
2389 (discard_all_intermediate_continuations_thread_callback)
2390 (discard_all_intermediate_continuations_thread)
2391 (discard_all_intermediate_continuations): Delete.
2392 * continuations.h (add_continuation, do_all_continuations)
2393 (do_all_continuations_thread, discard_all_continuations)
2394 (discard_all_continuations_thread, add_intermediate_continuation)
2395 (do_all_intermediate_continuations)
2396 (do_all_intermediate_continuations_thread)
2397 (discard_all_intermediate_continuations)
2398 (discard_all_intermediate_continuations_thread): Delete
2399 declarations.
2400 * event-top.c (stdin_event_handler): Delete references to
2401 continuations.
2402 * gdbthread.h (struct thread_info): Delete continuations and
2403 intermediate_continuations fields.
2404 * inf-loop.c (inferior_event_handler): Remove references to
2405 continuations.
2406 * infrun.c (infrun_thread_stop_requested_callback): Remove
2407 references to continuations.
2408 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2409 * thread.c: Don't include "continuations.h".
2410 (clear_thread_inferior_resources): Remove references to
2411 continuations.
2412
0700e23e
PA
24132015-09-09 Pedro Alves <palves@redhat.com>
2414
2415 * infcall.c (struct dummy_frame_context_saver): Delete.
2416 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2417 (dummy_frame_context_saver_drop)
2418 (dummy_frame_context_saver_cleanup)
2419 (dummy_frame_context_saver_get_regs)
2420 (dummy_frame_context_saver_setup): Delete.
2421 * infcall.h (dummy_frame_context_saver_drop)
2422 (dummy_frame_context_saver_cleanup)
2423 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2424 Delete.
2425 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2426 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2427 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2428
cfc31633
PA
24292015-09-09 Pedro Alves <palves@redhat.com>
2430
2431 * breakpoint.c: Include "thread-fsm.h".
2432 (struct until_break_command_continuation_args): Delete.
2433 (struct until_break_fsm): New.
2434 (until_break_fsm_ops): New global.
2435 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2436 (until_break_command_continuation): Delete.
2437 (until_break_fsm_clean_up): New function.
2438 (until_break_fsm_async_reply_reason): New function.
2439 (until_break_command): Adjust to create an until_break_fsm instead
2440 of a continuation.
2441 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2442 here.
2443 * infcmd.c (struct until_next_fsm): New.
2444 (until_next_fsm_ops): New global.
2445 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2446 (until_next_continuation): Delete.
2447 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2448 functions.
2449 (until_next_command): Adjust to create a new until_next_fsm
2450 instead of a continuation.
2451
388a7084
PA
24522015-09-09 Pedro Alves <palves@redhat.com>
2453
2454 * infcall.c: Include thread_fsm.h.
2455 (struct call_return_meta_info): New.
2456 (get_call_return_value): New function, factored out from
2457 call_function_by_hand_dummy.
2458 (struct call_thread_fsm): New.
2459 (call_thread_fsm_ops): New global.
2460 (new_call_thread_fsm, call_thread_fsm_should_stop)
2461 (call_thread_fsm_should_notify_stop): New functions.
2462 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2463 the thread.
2464 (call_function_by_hand_dummy): Create a new call_thread_fsm
2465 instance, associate it with the thread, and wait for the FSM to
2466 finish. If finished successfully, fetch the function's result
2467 value out of the FSM.
2468 * infrun.c (fetch_inferior_event): If the FSM says the stop
2469 shouldn't be notified, don't call normal_stop.
2470 (maybe_remove_breakpoints): New function, factored out from ...
2471 (normal_stop): ... here. Simplify.
2472 * infrun.h (maybe_remove_breakpoints): Declare.
2473 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2474 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2475 (thread_fsm_should_notify_stop): Declare.
2476
243a9253
PA
24772015-09-09 Pedro Alves <palves@redhat.com>
2478
2479 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2480 * breakpoint.c (handle_jit_event): Print debug output.
2481 (bpstat_what): Split event callback handling to ...
2482 (bpstat_run_callbacks): ... this new function.
2483 (momentary_bkpt_print_it): No longer handle bp_finish here.
2484 * breakpoint.h (bpstat_run_callbacks): Declare.
2485 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2486 <thread_fsm>: New field.
2487 (thread_cancel_execution_command): Declare.
2488 * infcmd.c: Include thread-fsm.h.
2489 (struct step_command_fsm): New.
2490 (step_command_fsm_ops): New global.
2491 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2492 (step_1): Adjust to use step_command_fsm_prepare and
2493 prepare_one_step.
2494 (struct step_1_continuation_args): Delete.
2495 (step_1_continuation): Delete.
2496 (step_command_fsm_should_stop): New function.
2497 (step_once): Delete.
2498 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2499 (prepare_one_step): New function, based on step_once.
2500 (until_next_command): Remove step_multi reference.
2501 (struct return_value_info): New.
2502 (print_return_value): Rename to ...
2503 (print_return_value_1): ... this. New struct return_value_info
2504 parameter. Adjust.
2505 (print_return_value): Reimplement as wrapper around
2506 print_return_value_1.
2507 (struct finish_command_fsm): New.
2508 (finish_command_continuation): Delete.
2509 (finish_command_fsm_ops): New global.
2510 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2511 functions.
2512 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2513 New.
2514 (finish_command_continuation_free_arg): Delete.
2515 (finish_command_fsm_async_reply_reason): New.
2516 (finish_backward, finish_forward): Change symbol parameter to a
2517 finish_command_fsm. Adjust.
2518 (finish_command): Create a finish_command_fsm. Adjust.
2519 * infrun.c: Include "thread-fsm.h".
2520 (clear_proceed_status_thread): Delete the thread's FSM.
2521 (infrun_thread_stop_requested_callback): Cancel the thread's
2522 execution command.
2523 (clean_up_just_stopped_threads_fsms): New function.
2524 (fetch_inferior_event): Handle the event_thread's should_stop
2525 method saying the command isn't done yet.
2526 (process_event_stop_test): Run breakpoint callbacks here.
2527 (print_stop_event): Rename to ...
2528 (print_stop_location): ... this.
2529 (restore_current_uiout_cleanup): New function.
2530 (print_stop_event): Reimplement.
2531 (normal_stop): No longer notify the end_stepping_range observers
2532 here handle "step N" nor "finish" here. No longer call
2533 print_stop_event here.
2534 * infrun.h (struct return_value_info): Forward declare.
2535 (print_return_value): Declare.
2536 (print_stop_event): Change prototype.
2537 * thread-fsm.c: New file.
2538 * thread-fsm.h: New file.
2539 * thread.c: Include "thread-fsm.h".
2540 (thread_cancel_execution_command): New function.
2541 (clear_thread_inferior_resources): Call it.
2542 * cli/cli-interp.c (cli_on_normal_stop): New function.
2543 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2544 observer.
2545 * mi/mi-interp.c: Include "thread-fsm.h".
2546 (restore_current_uiout_cleanup): Delete.
2547 (mi_on_normal_stop): If the thread has an FSM associated, and it
2548 finished, ask it for the async-reply-reason to print. Always call
2549 print_stop_event here, regardless of the top-level interpreter.
2550 Check bpstat_what to tell whether an asynchronous breakpoint hit
2551 triggered.
2552 * tui/tui-interp.c (tui_on_normal_stop): New function.
2553 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2554
0b333c5e
PA
25552015-09-09 Pedro Alves <palves@redhat.com>
2556
2557 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2558 check whether the target can async.
2559 * inf-loop.c (inferior_event_handler): Only call target_async if
2560 the target can async.
2561 * infcall.c: Include top.h and interps.h.
2562 (run_inferior_call): For the interpreter to sync mode while
2563 running the infcall. Call wait_sync_command_done instead of
2564 wait_for_inferior plus normal_stop.
2565 * infcmd.c (prepare_execution_command): Don't check whether the
2566 target can async when running in the foreground.
2567 (step_1): Delete synchronous case handling.
2568 (step_once): Always install a continuation, even in sync mode.
2569 (until_next_command, finish_forward): Don't check whether the
2570 target can async.
2571 (attach_command_post_wait, notice_new_inferior): Always install a
2572 continuation, even in sync mode.
2573 * infrun.c (mark_infrun_async_event_handler): New function.
2574 (proceed): In sync mode, mark infrun's event source instead of
2575 waiting for events here.
2576 (fetch_inferior_event): If the target can't async, do a blocking
2577 wait.
2578 (prepare_to_wait): In sync mode, mark infrun's event source.
2579 (infrun_async_inferior_event_handler): No longer bail out if the
2580 target can't async.
2581 * infrun.h (mark_infrun_async_event_handler): New declaration.
2582 * linux-nat.c (linux_nat_wait_1): Remove calls to
2583 set_sigint_trap/clear_sigint_trap.
2584 (linux_nat_terminal_inferior): No longer check whether the target
2585 can async.
2586 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2587 comment.
2588 (mi_execute_command_input_handler): No longer check whether the
2589 target is async. Update and simplify comment.
2590 * target.c (default_target_wait): New function.
2591 * target.h (struct target_ops) <to_wait>: Now defaults to
2592 default_target_wait.
2593 (default_target_wait): Declare.
2594 * top.c (wait_sync_command_done): New function, factored out from
2595 ...
2596 (maybe_wait_sync_command_done): ... this.
2597 * top.h (wait_sync_command_done): Declare.
2598 * target-delegates.c: Regenerate.
2599
0568462b
MM
26002015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2601
2602 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2603 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2604 Remove include of sys/utsname.h.
2605 (linux_determine_kernel_ptr_bits): Remove.
2606 (linux_determine_kernel_start): New.
2607 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2608 Update check.
2609 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2610 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2611 initialization.
2612 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2613 assignment.
2614
72e02483
PA
26152015-09-07 Pedro Alves <palves@redhat.com>
2616
2617 * guile/guile-internal.h (as_a_scm_t_subr): New.
2618 * guile/guile.c (misc_guile_functions): Use it.
2619 * guile/scm-arch.c (arch_functions): Use it.
2620 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2621 Use it.
2622 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2623 * guile/scm-cmd.c (command_functions): Use it.
2624 * guile/scm-disasm.c (disasm_functions): Use it.
2625 * guile/scm-exception.c (exception_functions)
2626 (private_exception_functions): Use it.
2627 * guile/scm-frame.c (frame_functions)
2628 * guile/scm-gsmob.c (gsmob_functions): Use it.
2629 * guile/scm-iterator.c (iterator_functions): Use it.
2630 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2631 * guile/scm-math.c (math_functions): Use it.
2632 * guile/scm-objfile.c (objfile_functions): Use it.
2633 * guile/scm-param.c (parameter_functions): Use it.
2634 * guile/scm-ports.c (port_functions, private_port_functions): Use
2635 it.
2636 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2637 * guile/scm-progspace.c (pspace_functions): Use it.
2638 * guile/scm-string.c (string_functions): Use it.
2639 * guile/scm-symbol.c (symbol_functions): Use it.
2640 * guile/scm-symtab.c (symtab_functions): Use it.
2641 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2642 it.
2643 * guile/scm-value.c (value_functions): Use it.
2644
e65b5245
AB
26452015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2648 (tui_next_win): Likewise.
2649 (tui_prev_win): Likewise.
2650 (tui_partial_win_by_name): Likewise.
2651 (tui_init_generic_part): Likewise.
2652 (init_content_element): Likewise.
2653 (tui_del_window): Likewise.
2654 (tui_free_window): Likewise.
2655 (tui_del_data_windows): Likewise.
2656 (tui_free_data_content): Likewise.
2657 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2658 * tui/tui-regs.c (tui_show_register_group): Likewise.
2659 * tui/tui-win.c (tui_resize_all): Likewise.
2660 (tui_set_focus): Likewise.
2661 (tui_set_win_height): Likewise.
2662 (make_invisible_and_set_new_height): Likewise.
2663 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2664 * tui/tui-wingeneral.c (make_visible): Likewise.
2665
b03e6ad9
AB
26662015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2669
be903358
AB
26702015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2673 pointer.
2674 * dbxread.c (dbx_end_psymtab): Likewise.
2675 * gnu-nat.c (gnu_write_inferior): Likewise.
2676 * mdebugread.c (cross_ref): Likewise.
2677 * p-valprint.c (pascal_val_print): Likewise.
2678 * xcoffread.c (xcoff_end_psymtab): Likewise.
2679
02f024f9
YQ
26802015-09-04 Yao Qi <yao.qi@linaro.org>
2681
2682 * NEWS: Mention the aarch64 multi-arch debugging support.
2683
cd7c1778
PMR
26842015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2685
2686 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2687 type instead of a TYPE_CODE_INT one for the string_char_type
2688 and the ada_primitive_type_char types.
2689
39edd165
YQ
26902015-09-03 Yao Qi <yao.qi@linaro.org>
2691
2692 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2693 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2694 aarch64_linux_region_ok_for_watchpoint.
2695 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2696 New function.
2697 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2698 Declare it.
2699
6c214e7c
PP
27002015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2701
2702 * gdb_obstack.h (obstack_strdup): Declare.
2703 * gdb_obstack.c (obstack_strdup): Define.
2704 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2705 * gdbarch.c: Regenerate.
2706 * gdbarch.h: Regenerate.
2707 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2708
eed8b28a
PP
27092015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2710
2711 * gdbtypes.c (copy_type_recursive): Update documentation.
2712
73c6b475
SDJ
27132015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2714
2715 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2716 as zero.
2717
ad1c917a
SDJ
27182015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2719
2720 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2721
3bd7e5b7
SDJ
27222015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2723
2724 * solib-svr4.c (solib_event_probe_action): Call
2725 get_probe_argument_count using TRY...CATCH.
2726 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2727
f469e8ce
SDJ
27282015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2729
2730 * probe.h (struct probe_ops) <get_probe_argument_count,
2731 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2732 the comment that the function can throw an exception.
2733 (get_probe_argument_count): Likewise.
2734 (evaluate_probe_argument): Likewise.
2735 * stap-probe.c (stap_get_opcode): Call error instead of
2736 internal_error.
2737 (stap_get_expected_argument_type): Likewise. Add argument
2738 'probe'. Improve error message by mentioning the probe's name.
2739 (stap_parse_probe_arguments): Adjust call to
2740 stap_get_expected_argument_type.
2741 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2742 not zero. Call internal_error if GDB requests an argument but the
2743 probe has no arguments.
2744
dc5c8746
PMR
27452015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2746
2747 * ada-lang.c (ada_resolve_function): Do not ask the user what
2748 match to use when in completion mode.
2749
136765ea
AB
27502015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2753 cast of NULL.
2754
90b81c5f
MF
27552015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2756
2757 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2758 call_abi using XSHAL_ABI macro.
2759
1cd36e54
DE
27602015-08-29 Doug Evans <xdje42@gmail.com>
2761
2762 * symtab.h (struct symbol): Tweak comment.
2763
8f57eec2
PP
27642015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2765
2766 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2767 gdbarch obstack instead of on the heap. Update commentary
2768 accordingly.
2769
38eebd71
JB
27702015-08-28 Joel Brobecker <brobecker@adacore.com>
2771
2772 GDB 7.10 released.
2773
d63dd61e
SM
27742015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2775
2776 * NEWS: Update entry about non-8-bits addressable memory.
2777
6f059256
UW
27782015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2779
2780 Revert:
2781 2014-11-06 Doug Evans <xdje42@gmail.com>
2782 * solib.c (solib_global_lookup): Fetch arch from objfile,
2783 not target_gdbarch.
2784
70987a92 27852015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2786
2787 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2788 attempt to relocate a TLS variable offset.
2789
70987a92 27902015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2791
2792 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2793 registered yet. Set inferior_ptid while calling target_read_memory.
2794
70987a92 27952015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2796
2797 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2798 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2799 * linux-nat.c (check_stopped_by_breakpoint): Use
2800 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2801
70987a92 28022015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2803
2804 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2805 thread was not yet discovered, use thread_from_lwp instead of
2806 calling thread_db_find_new_threads_1.
2807
f5cdf498
SM
28082015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2809
2810 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2811 statements.
2812
fd2ae5d6
SM
28132015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2814
2815 * NEWS: Document support for non-8-bits addressable memory.
2816
14d88147
PA
28172015-08-27 Pedro Alves <palves@redhat.com>
2818
2819 * configure.ac: Remove AC_TYPE_SIGNAL call.
2820 * configure, config.in: Regenerate.
2821
a40805d4
PA
28222015-08-27 Pedro Alves <palves@redhat.com>
2823
2824 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2825 * extension-priv.h: Include signal.h.
2826 (struct signal_handler) <handler>: Change type to sighandler_t.
2827 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2828 * inflow.c (sigint_ours, sigquit_ours): Change type to
2829 sighandler_t.
2830 (child_terminal_inferior): Remove casts.
2831 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2832 (osig): Change type to sighandler_t.
2833 * nto-procfs.c (ofunc): Change type to sighandler_t.
2834 (procfs_wait): Remove casts.
2835 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2836 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2837 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2838
0750520d
PA
28392015-08-27 Pedro Alves <palves@redhat.com>
2840
2841 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2842 * gnulib/aclocal.m4: Renegerate.
2843 * gnulib/config.in: Renegerate.
2844 * gnulib/configure: Renegerate.
2845 * gnulib/import/Makefile.am: Update.
2846 * gnulib/import/Makefile.in: Regenerate.
2847 * gnulib/import/m4/gnulib-cache.m4: Update.
2848 * gnulib/import/m4/gnulib-comp.m4: Update.
2849 * gnulib/import/m4/signal_h.m4: New file.
2850 * gnulib/import/signal.in.h: New file.
2851
a5c0808e
PA
28522015-08-27 Pedro Alves <palves@redhat.com>
2853
2854 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2855 (MIN_MEMORY_PACKET_SIZE): New.
2856 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2857 (get_memory_packet_size): Adjust. No longer limit the max packet
2858 size.
2859 (set_memory_packet_size): Adjust, and remove dead code.
2860 (remote_check_symbols): Use xmalloc and a cleanup instead of
2861 alloca.
2862 (remote_packet_size): No longer cap the packet size.
2863 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2864
cdaec3f3
LM
28652015-08-26 Luis Machado <lgustavo@codesourcery.com>
2866
2867 * compile/compile.c (compile_to_object): Mention language in
2868 error message.
2869
e9756d52
PP
28702015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2871
2872 * target.c (target_pre_inferior): Unset attach_flag.
2873
1dc7a623
SM
28742015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2875
2876 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2877 * gdbarch.c: Re-generate.
2878
8d749320
SM
28792015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2880
6711b7f8
SM
2881 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2882 function with the XNEW-family equivalent.
8d749320
SM
2883 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2884 * ada-exp.y (write_ambiguous_var): Likewise.
2885 * ada-lang.c (resolve_subexp): Likewise.
2886 (user_select_syms): Likewise.
2887 (assign_aggregate): Likewise.
2888 (ada_evaluate_subexp): Likewise.
2889 (cache_symbol): Likewise.
2890 * addrmap.c (allocate_key): Likewise.
2891 (addrmap_create_mutable): Likewise.
2892 * aix-thread.c (sync_threadlists): Likewise.
2893 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2894 (alpha_gdbarch_init): Likewise.
2895 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2896 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2897 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2898 * arm-tdep.c (push_stack_item): Likewise.
2899 (arm_displaced_step_copy_insn): Likewise.
2900 (arm_gdbarch_init): Likewise.
2901 (_initialize_arm_tdep): Likewise.
2902 * avr-tdep.c (push_stack_item): Likewise.
2903 * ax-general.c (new_agent_expr): Likewise.
2904 * block.c (block_initialize_namespace): Likewise.
2905 * breakpoint.c (alloc_counted_command_line): Likewise.
2906 (update_dprintf_command_list): Likewise.
2907 (parse_breakpoint_sals): Likewise.
2908 (decode_static_tracepoint_spec): Likewise.
2909 (until_break_command): Likewise.
2910 (clear_command): Likewise.
2911 (update_global_location_list): Likewise.
2912 (get_breakpoint_objfile_data) Likewise.
2913 * btrace.c (ftrace_new_function): Likewise.
2914 (btrace_set_insn_history): Likewise.
2915 (btrace_set_call_history): Likewise.
2916 * buildsym.c (add_symbol_to_list): Likewise.
2917 (record_pending_block): Likewise.
2918 (start_subfile): Likewise.
2919 (start_buildsym_compunit): Likewise.
2920 (push_subfile): Likewise.
2921 (end_symtab_get_static_block): Likewise.
2922 (buildsym_init): Likewise.
2923 * cli/cli-cmds.c (source_command): Likewise.
2924 * cli/cli-decode.c (add_cmd): Likewise.
2925 * cli/cli-script.c (build_command_line): Likewise.
2926 (setup_user_args): Likewise.
2927 (realloc_body_list): Likewise.
2928 (process_next_line): Likewise.
2929 (copy_command_lines): Likewise.
2930 * cli/cli-setshow.c (do_set_command): Likewise.
2931 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2932 * coffread.c (coff_locate_sections): Likewise.
2933 (coff_symtab_read): Likewise.
2934 (coff_read_struct_type): Likewise.
2935 * common/cleanups.c (make_my_cleanup2): Likewise.
2936 * common/common-exceptions.c (throw_it): Likewise.
2937 * common/filestuff.c (make_cleanup_close): Likewise.
2938 * common/format.c (parse_format_string): Likewise.
2939 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2940 * compile/compile-object-load.c (munmap_list_add): Likewise.
2941 (compile_object_load): Likewise.
2942 * compile/compile-object-run.c (compile_object_run): Likewise.
2943 * compile/compile.c (append_args): Likewise.
2944 * corefile.c (specify_exec_file_hook): Likewise.
2945 * cp-support.c (make_symbol_overload_list): Likewise.
2946 * cris-tdep.c (push_stack_item): Likewise.
2947 (cris_gdbarch_init): Likewise.
2948 * ctf.c (ctf_trace_file_writer_new): Likewise.
2949 * dbxread.c (init_header_files): Likewise.
2950 (add_new_header_file): Likewise.
2951 (init_bincl_list): Likewise.
2952 (dbx_end_psymtab): Likewise.
2953 (start_psymtab): Likewise.
2954 (dbx_end_psymtab): Likewise.
2955 * dcache.c (dcache_init): Likewise.
2956 * dictionary.c (dict_create_hashed): Likewise.
2957 (dict_create_hashed_expandable): Likewise.
2958 (dict_create_linear): Likewise.
2959 (dict_create_linear_expandable): Likewise.
2960 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2961 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2962 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2963 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2964 (decode_frame_entry_1): Likewise.
2965 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2966 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2967 * dwarf2read.c (dwarf2_has_info): Likewise.
2968 (create_signatured_type_table_from_index): Likewise.
2969 (dwarf2_read_index): Likewise.
2970 (dw2_get_file_names_reader): Likewise.
2971 (create_all_type_units): Likewise.
2972 (read_cutu_die_from_dwo): Likewise.
2973 (init_tu_and_read_dwo_dies): Likewise.
2974 (init_cutu_and_read_dies): Likewise.
2975 (create_all_comp_units): Likewise.
2976 (queue_comp_unit): Likewise.
2977 (inherit_abstract_dies): Likewise.
2978 (read_call_site_scope): Likewise.
2979 (dwarf2_add_field): Likewise.
2980 (dwarf2_add_typedef): Likewise.
2981 (dwarf2_add_member_fn): Likewise.
2982 (attr_to_dynamic_prop): Likewise.
2983 (abbrev_table_alloc_abbrev): Likewise.
2984 (abbrev_table_read_table): Likewise.
2985 (add_include_dir): Likewise.
2986 (add_file_name): Likewise.
2987 (dwarf_decode_line_header): Likewise.
2988 (dwarf2_const_value_attr): Likewise.
2989 (dwarf_alloc_block): Likewise.
2990 (parse_macro_definition): Likewise.
2991 (set_die_type): Likewise.
2992 (write_psymtabs_to_index): Likewise.
2993 (create_cus_from_index): Likewise.
2994 (dwarf2_create_include_psymtab): Likewise.
2995 (process_psymtab_comp_unit_reader): Likewise.
2996 (build_type_psymtab_dependencies): Likewise.
2997 (read_comp_units_from_section): Likewise.
2998 (compute_compunit_symtab_includes): Likewise.
2999 (create_dwo_unit_in_dwp_v1): Likewise.
3000 (create_dwo_unit_in_dwp_v2): Likewise.
3001 (read_func_scope): Likewise.
3002 (process_structure_scope): Likewise.
3003 (mark_common_block_symbol_computed): Likewise.
3004 (load_partial_dies): Likewise.
3005 (dwarf2_symbol_mark_computed): Likewise.
3006 * elfread.c (elf_symfile_segments): Likewise.
3007 (elf_read_minimal_symbols): Likewise.
3008 * environ.c (make_environ): Likewise.
3009 * eval.c (evaluate_subexp_standard): Likewise.
3010 * event-loop.c (create_file_handler): Likewise.
3011 (create_async_signal_handler): Likewise.
3012 (create_async_event_handler): Likewise.
3013 (create_timer): Likewise.
3014 * exec.c (build_section_table): Likewise.
3015 * fbsd-nat.c (fbsd_remember_child): Likewise.
3016 * fork-child.c (fork_inferior): Likewise.
3017 * frv-tdep.c (new_variant): Likewise.
3018 * gdbarch.sh (gdbarch_alloc): Likewise.
3019 (append_name): Likewise.
3020 * gdbtypes.c (rank_function): Likewise.
3021 (copy_type_recursive): Likewise.
3022 (add_dyn_prop): Likewise.
3023 * gnu-nat.c (make_proc): Likewise.
3024 (make_inf): Likewise.
3025 (gnu_write_inferior): Likewise.
3026 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3027 (build_std_type_info_type): Likewise.
3028 * guile/scm-param.c (compute_enum_list): Likewise.
3029 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3030 * guile/scm-value.c (gdbscm_value_call): Likewise.
3031 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3032 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3033 (read_unwind_info): Likewise.
3034 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3035 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3036 (call_function_by_hand_dummy): Likewise.
3037 * infcmd.c (step_once): Likewise.
3038 (finish_forward): Likewise.
3039 (attach_command): Likewise.
3040 (notice_new_inferior): Likewise.
3041 * inferior.c (add_inferior_silent): Likewise.
3042 * infrun.c (add_displaced_stepping_state): Likewise.
3043 (save_infcall_control_state): Likewise.
3044 (save_inferior_ptid): Likewise.
3045 (_initialize_infrun): Likewise.
3046 * jit.c (bfd_open_from_target_memory): Likewise.
3047 (jit_gdbarch_data_init): Likewise.
3048 * language.c (add_language): Likewise.
3049 * linespec.c (decode_line_2): Likewise.
3050 * linux-nat.c (add_to_pid_list): Likewise.
3051 (add_initial_lwp): Likewise.
3052 * linux-thread-db.c (add_thread_db_info): Likewise.
3053 (record_thread): Likewise.
3054 (info_auto_load_libthread_db): Likewise.
3055 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3057 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3058 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3059 * macrocmd.c (macro_define_command): Likewise.
3060 * macroexp.c (gather_arguments): Likewise.
3061 * macroscope.c (sal_macro_scope): Likewise.
3062 * macrotab.c (new_macro_table): Likewise.
3063 * mdebugread.c (push_parse_stack): Likewise.
3064 (parse_partial_symbols): Likewise.
3065 (parse_symbol): Likewise.
3066 (psymtab_to_symtab_1): Likewise.
3067 (new_block): Likewise.
3068 (new_psymtab): Likewise.
3069 (mdebug_build_psymtabs): Likewise.
3070 (add_pending): Likewise.
3071 (elfmdebug_build_psymtabs): Likewise.
3072 * mep-tdep.c (mep_gdbarch_init): Likewise.
3073 * mi/mi-main.c (mi_execute_command): Likewise.
3074 * mi/mi-parse.c (mi_parse_argv): Likewise.
3075 * minidebug.c (lzma_open): Likewise.
3076 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3077 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3078 * mips-tdep.c (mips_gdbarch_init): Likewise.
3079 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3080 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3081 * mt-tdep.c (mt_registers_info): Likewise.
3082 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3083 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3084 (linux_enable_pt): Likewise.
3085 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3086 (linux_xfer_osdata_processgroups): Likewise.
3087 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3088 * nto-procfs.c (procfs_meminfo): Likewise.
3089 * objc-lang.c (start_msglist): Likewise.
3090 (selectors_info): Likewise.
3091 (classes_info): Likewise.
3092 (find_methods): Likewise.
3093 * objfiles.c (allocate_objfile): Likewise.
3094 (update_section_map): Likewise.
3095 * osabi.c (gdbarch_register_osabi): Likewise.
3096 (gdbarch_register_osabi_sniffer): Likewise.
3097 * parse.c (start_arglist): Likewise.
3098 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3099 (hwdebug_insert_point): Likewise.
3100 * printcmd.c (display_command): Likewise.
3101 (ui_printf): Likewise.
3102 * procfs.c (create_procinfo): Likewise.
3103 (load_syscalls): Likewise.
3104 (proc_get_LDT_entry): Likewise.
3105 (proc_update_threads): Likewise.
3106 * prologue-value.c (make_pv_area): Likewise.
3107 (pv_area_store): Likewise.
3108 * psymtab.c (extend_psymbol_list): Likewise.
3109 (init_psymbol_list): Likewise.
3110 (allocate_psymtab): Likewise.
3111 * python/py-inferior.c (add_thread_object): Likewise.
3112 * python/py-param.c (compute_enum_values): Likewise.
3113 * python/py-value.c (valpy_call): Likewise.
3114 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3115 * python/python.c (ensure_python_env): Likewise.
3116 * record-btrace.c (record_btrace_start_replaying): Likewise.
3117 * record-full.c (record_full_reg_alloc): Likewise.
3118 (record_full_mem_alloc): Likewise.
3119 (record_full_end_alloc): Likewise.
3120 (record_full_core_xfer_partial): Likewise.
3121 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3122 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3123 * remote-notif.c (remote_notif_state_allocate): Likewise.
3124 * remote.c (demand_private_info): Likewise.
3125 (remote_notif_stop_alloc_reply): Likewise.
3126 (remote_enable_btrace): Likewise.
3127 * reverse.c (save_bookmark_command): Likewise.
3128 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3129 * rx-tdep.c (rx_gdbarch_init): Likewise.
3130 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3131 * ser-go32.c (dos_get_tty_state): Likewise.
3132 (dos_copy_tty_state): Likewise.
3133 * ser-mingw.c (ser_windows_open): Likewise.
3134 (ser_console_wait_handle): Likewise.
3135 (ser_console_get_tty_state): Likewise.
3136 (make_pipe_state): Likewise.
3137 (net_windows_open): Likewise.
3138 * ser-unix.c (hardwire_get_tty_state): Likewise.
3139 (hardwire_copy_tty_state): Likewise.
3140 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3141 * solib-dsbt.c (dsbt_current_sos): Likewise.
3142 (dsbt_relocate_main_executable): Likewise.
3143 * solib-frv.c (frv_current_sos): Likewise.
3144 (frv_relocate_main_executable): Likewise.
3145 * solib-spu.c (spu_bfd_fopen): Likewise.
3146 * solib-svr4.c (lm_info_read): Likewise.
3147 (svr4_copy_library_list): Likewise.
3148 (svr4_default_sos): Likewise.
3149 * source.c (find_source_lines): Likewise.
3150 (line_info): Likewise.
3151 (add_substitute_path_rule): Likewise.
3152 * spu-linux-nat.c (spu_bfd_open): Likewise.
3153 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3154 * stabsread.c (dbx_lookup_type): Likewise.
3155 (read_type): Likewise.
3156 (read_member_functions): Likewise.
3157 (read_struct_fields): Likewise.
3158 (read_baseclasses): Likewise.
3159 (read_args): Likewise.
3160 (_initialize_stabsread): Likewise.
3161 * stack.c (func_command): Likewise.
3162 * stap-probe.c (handle_stap_probe): Likewise.
3163 * symfile.c (addrs_section_sort): Likewise.
3164 (addr_info_make_relative): Likewise.
3165 (load_section_callback): Likewise.
3166 (add_symbol_file_command): Likewise.
3167 (init_filename_language_table): Likewise.
3168 * symtab.c (create_filename_seen_cache): Likewise.
3169 (sort_search_symbols_remove_dups): Likewise.
3170 (search_symbols): Likewise.
3171 * target.c (make_cleanup_restore_target_terminal): Likewise.
3172 * thread.c (new_thread): Likewise.
3173 (enable_thread_stack_temporaries): Likewise.
3174 (make_cleanup_restore_current_thread): Likewise.
3175 (thread_apply_all_command): Likewise.
3176 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3177 * top.c (gdb_readline_wrapper): Likewise.
3178 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3179 * tracepoint.c (trace_find_line_command): Likewise.
3180 (all_tracepoint_actions_and_cleanup): Likewise.
3181 (make_cleanup_restore_current_traceframe): Likewise.
3182 (get_uploaded_tp): Likewise.
3183 (get_uploaded_tsv): Likewise.
3184 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3185 (tui_alloc_win_info): Likewise.
3186 (tui_alloc_content): Likewise.
3187 (tui_add_content_elements): Likewise.
3188 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3189 (tui_set_disassem_content): Likewise.
3190 * ui-file.c (ui_file_new): Likewise.
3191 (stdio_file_new): Likewise.
3192 (tee_file_new): Likewise.
3193 * utils.c (make_cleanup_restore_integer): Likewise.
3194 (add_internal_problem_command): Likewise.
3195 * v850-tdep.c (v850_gdbarch_init): Likewise.
3196 * valops.c (find_oload_champ): Likewise.
3197 * value.c (allocate_value_lazy): Likewise.
3198 (record_latest_value): Likewise.
3199 (create_internalvar): Likewise.
3200 * varobj.c (install_variable): Likewise.
3201 (new_variable): Likewise.
3202 (new_root_variable): Likewise.
3203 (cppush): Likewise.
3204 (_initialize_varobj): Likewise.
3205 * windows-nat.c (windows_make_so): Likewise.
3206 * x86-nat.c (x86_add_process): Likewise.
3207 * xcoffread.c (arrange_linetable): Likewise.
3208 (allocate_include_entry): Likewise.
3209 (process_linenos): Likewise.
3210 (SYMBOL_DUP): Likewise.
3211 (xcoff_start_psymtab): Likewise.
3212 (xcoff_end_psymtab): Likewise.
3213 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3214 * xtensa-tdep.c (xtensa_register_type): Likewise.
3215 * gdbarch.c: Regenerate.
3216 * gdbarch.h: Regenerate.
3217
17d8546e
DB
32182015-08-25 Don Breazeal <donb@codesourcery.com>
3219
3220 * infrun.c (follow_exec): Re-order operations for
3221 handling follow-exec-mode "new".
3222 (handle_inferior_event_1): Assign ecs->event_thread
3223 to the current thread.
3224 * remote.c (get_remote_arch_state): Add an assertion.
3225
ba49e44b
PA
32262015-08-26 Pedro Alves <palves@redhat.com>
3227
3228 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3229
7541ab03 32302015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3231
7541ab03 3232 PR gdb/18804
abc56d60
PA
3233 * defs.h (maybe_quit): Declare.
3234 (QUIT): Now calls maybe_quit.
3235 * event-loop.c (clear_async_signal_handler)
3236 (async_signal_handler_is_marked): New functions.
3237 * event-loop.h (async_signal_handler_is_marked)
3238 (clear_async_signal_handler): New declarations.
3239 * remote.c (remote_check_pending_interrupt): New function.
3240 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3241 longer check whether the target is async. If waiting for a stop
3242 reply, and a Ctrl-C as been sent to the target, offer to
3243 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3244 Otherwise do not disconnect and throw a quit.
3245 (_initialize_remote): Install remote_check_pending_interrupt as
3246 to_check_pending_interrupt.
3247 * target.c (target_check_pending_interrupt): New function.
3248 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3249 field.
3250 (target_check_pending_interrupt): New declaration.
3251 * utils.c (maybe_quit): New function.
3252 * target-delegates.c: Regenerate.
3253
dfe7f77c
YQ
32542015-08-25 Yao Qi <yao.qi@linaro.org>
3255
3256 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3257 Rename local variable pid to tid, and get lwpid of lwp. Update
3258 debug output.
3259
63e43d3a
PMR
32602015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3261
3262 * ada-lang.c (ada_read_var_value): Add a var_block argument
3263 and pass it to default_read_var_value.
3264 * block.c (block_static_link): New accessor.
3265 * block.h (block_static_link): Declare it.
3266 * buildsym.c (finish_block_internal): Add a static_link
3267 argument. If there is a static link, associate it to the new
3268 block.
3269 (finish_block): Add a static link argument and pass it to
3270 finish_block_internal.
3271 (end_symtab_get_static_block): Update calls to finish_block and
3272 to finish_block_internal.
3273 (end_symtab_with_blockvector): Update call to
3274 finish_block_internal.
3275 * buildsym.h: Forward-declare struct dynamic_prop.
3276 (struct context_stack): Add a static_link field.
3277 (finish_block): Add a static link argument.
3278 * c-exp.y: Remove an obsolete comment (evaluation of variables
3279 already start from the selected frame, and now they climb *up*
3280 the call stack) and propagate the block information to the
3281 produced expression.
3282 * d-exp.y: Likewise.
3283 * f-exp.y: Likewise.
3284 * go-exp.y: Likewise.
3285 * jv-exp.y: Likewise.
3286 * m2-exp.y: Likewise.
3287 * p-exp.y: Likewise.
3288 * coffread.c (coff_symtab_read): Update calls to finish_block.
3289 * dbxread.c (process_one_symbol): Likewise.
3290 * xcoffread.c (read_xcoff_symtab): Likewise.
3291 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3292 "sym" parameter to struct block_symbol, update its uses and pass
3293 its block to calls to read_var_value.
3294 (convert_symbol_sym): Update the calls to convert_one_symbol.
3295 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3296 call to read_var_value.
3297 * dwarf2loc.c (block_op_get_frame_base): New.
3298 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3299 get_frame_base method.
3300 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3301 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3302 instead of the selected frame in order to evaluate the
3303 expression.
3304 (dwarf2_evaluate_property): Add a frame argument. Update call
3305 to dwarf2_locexpr_baton_eval to provide a frame in available and
3306 to handle the absence of address stack.
3307 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3308 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3309 declaration.
3310 (read_func_scope): Record any available static link description.
3311 Update call to finish_block.
3312 (read_lexical_block_scope): Update call to finish_block.
3313 * findvar.c (follow_static_link): New.
3314 (get_hosting_frame): New.
3315 (default_read_var_value): Add a var_block argument. Use
3316 get_hosting_frame to handle non-local references.
3317 (read_var_value): Add a var_block argument and pass it to the
3318 LA_READ_VAR_VALUE method.
3319 * gdbtypes.c (resolve_dynamic_range): Update calls to
3320 dwarf2_evaluate_property.
3321 (resolve_dynamic_type_internal): Likewise.
3322 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3323 read_var_value, passing it the block coming from symbol lookup.
3324 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3325 read_var_value (TODO).
3326 * infcmd.c (finish_command_continuation): Update call to
3327 read_var_value, passing it the block coming from symbol lookup.
3328 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3329 * language.h (struct language_defn): Add a var_block argument to
3330 the LA_READ_VAR_VALUE method.
3331 * objfiles.c (struct static_link_htab_entry): New.
3332 (static_link_htab_entry_hash): New.
3333 (static_link_htab_entry_eq): New.
3334 (objfile_register_static_link): New.
3335 (objfile_lookup_static_link): New.
3336 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3337 * objfiles.h: Include hashtab.h.
3338 (struct objfile): Add a static_links field.
3339 (objfile_register_static_link): New.
3340 (objfile_lookup_static_link): New.
3341 * printcmd.c (print_variable_and_value): Update call to
3342 read_var_value.
3343 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3344 * python/py-frame.c (frapy_read_var): Update call to
3345 read_var_value, passing it the block coming from symbol lookup.
3346 * python/py-framefilter.c (extract_sym): Add a sym_block
3347 parameter and set the pointed value to NULL (TODO).
3348 (enumerate_args): Update call to extract_sym.
3349 (enumerate_locals): Update calls to extract_sym and to
3350 read_var_value.
3351 * python/py-symbol.c (sympy_value): Update call to
3352 read_var_value (TODO).
3353 * stack.c (read_frame_local): Update call to read_var_value.
3354 (read_frame_arg): Likewise.
3355 (return_command): Likewise.
3356 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3357 method.
3358 (struct symbol): Add a block field.
3359 (SYMBOL_BLOCK): New accessor.
3360 * valops.c (value_of_variable): Remove frame/block handling and
3361 pass the block argument to read_var_value, which does this job
3362 now.
3363 (value_struct_elt_for_reference): Update calls to
3364 read_var_value.
3365 (value_of_this): Pass the block found to read_var_value.
3366 * value.h (read_var_value): Add a var_block argument.
3367 (default_read_var_value): Likewise.
3368
ed8b7b42
YQ
33692015-08-25 Yao Qi <yao.qi@linaro.org>
3370
3371 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3372 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3373 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3374
db3cb7cb
YQ
33752015-08-25 Yao Qi <yao.qi@linaro.org>
3376
3377 * Makefile.in (aarch64-liunx.o): New rule.
3378 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3379 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3380 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3381 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3382 extern.
3383 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3384 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3385 * nat/aarch64-linux.c: New file.
3386 * nat/aarch64-linux.h: New file.
3387
f6011a1c
YQ
33882015-08-25 Yao Qi <yao.qi@linaro.org>
3389
3390 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3391 lwp_arch_private_info and ptid_of_lwp.
3392
5e35436e
YQ
33932015-08-25 Yao Qi <yao.qi@linaro.org>
3394
3395 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3396 Move it to nat/aarch64-linux-hw-point.c.
3397 (debug_reg_change_callback): Likewise.
3398 (aarch64_notify_debug_reg_change): :Likewise.
3399 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3400 (aarch64_dr_update_callback_param): New.
3401 (debug_reg_change_callback): New function.
3402 (aarch64_notify_debug_reg_change): Likewise.
3403 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3404 Remove the declaration.
3405
4a8a7965
YQ
34062015-08-25 Yao Qi <yao.qi@linaro.org>
3407
3408 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3409 Call current_lwp_ptid.
3410
32a271ee
YQ
34112015-08-25 Yao Qi <yao.qi@linaro.org>
3412
3413 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3414 debug_printf.
3415
5e137137
YQ
34162015-08-25 Yao Qi <yao.qi@linaro.org>
3417
3418 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3419 ptid_get_pid rather than ptid_get_lwp.
3420
73b8c1fd
PA
34212015-08-24 Pedro Alves <palves@redhat.com>
3422
3423 * NEWS (New commands): Mention set/show remote
3424 multiprocess-extensions-packet.
3425 * remote.c (remote_query_supported): Only tell the server to use
3426 the multiprocess extensions if the user hasn't force-disabled them
3427 with "set remote multiprocess-extensions-packet off".
3428
4a626d0a
PA
34292015-08-24 Pedro Alves <palves@redhat.com>
3430
3431 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3432 1029a8112290f6eee9d7878a391c49db42c999bd.
3433 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3434 Regenerate.
3435 * gnulib/import/Makefile.am: Update.
3436 * gnulib/import/Makefile.in: Update.
3437 * gnulib/import/alloca.in.h: Update.
3438 * gnulib/import/basename-lgpl.c: Update.
3439 * gnulib/import/canonicalize-lgpl.c: Update.
3440 * gnulib/import/config.charset: Update.
3441 * gnulib/import/dirent.in.h: Update.
3442 * gnulib/import/dirfd.c: Update.
3443 * gnulib/import/dirname-lgpl.c: Update.
3444 * gnulib/import/dirname.h: Update.
3445 * gnulib/import/dosname.h: Update.
3446 * gnulib/import/errno.in.h: Update.
3447 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3448 * gnulib/import/extra/snippet/c++defs.h: Update.
3449 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3450 * gnulib/import/extra/update-copyright: Update.
3451 * gnulib/import/float+.h: Update.
3452 * gnulib/import/float.c: Update.
3453 * gnulib/import/float.in.h: Update.
3454 * gnulib/import/fnmatch.c: Update.
3455 * gnulib/import/fnmatch.in.h: Update.
3456 * gnulib/import/fnmatch_loop.c: Update.
3457 * gnulib/import/fpucw.h: Update.
3458 * gnulib/import/frexp.c: Update.
3459 * gnulib/import/frexpl.c: Update.
3460 * gnulib/import/gettimeofday.c: Update.
3461 * gnulib/import/inttypes.in.h: Update.
3462 * gnulib/import/isnan.c: Update.
3463 * gnulib/import/isnand-nolibm.h: Update.
3464 * gnulib/import/isnand.c: Update.
3465 * gnulib/import/isnanl-nolibm.h: Update.
3466 * gnulib/import/isnanl.c: Update.
3467 * gnulib/import/itold.c: Update.
3468 * gnulib/import/localcharset.c: Update.
3469 * gnulib/import/localcharset.h: Update.
3470 * gnulib/import/lstat.c: Update.
3471 * gnulib/import/m4/00gnulib.m4: Update.
3472 * gnulib/import/m4/absolute-header.m4: Update.
3473 * gnulib/import/m4/alloca.m4: Update.
3474 * gnulib/import/m4/canonicalize.m4: Update.
3475 * gnulib/import/m4/codeset.m4: Update.
3476 * gnulib/import/m4/configmake.m4: Update.
3477 * gnulib/import/m4/dirent_h.m4: Update.
3478 * gnulib/import/m4/dirfd.m4: Update.
3479 * gnulib/import/m4/dirname.m4: Update.
3480 * gnulib/import/m4/double-slash-root.m4: Update.
3481 * gnulib/import/m4/eealloc.m4: Update.
3482 * gnulib/import/m4/errno_h.m4: Update.
3483 * gnulib/import/m4/exponentd.m4: Update.
3484 * gnulib/import/m4/exponentl.m4: Update.
3485 * gnulib/import/m4/extensions.m4: Update.
3486 * gnulib/import/m4/extern-inline.m4: Update.
3487 * gnulib/import/m4/fcntl-o.m4: Update.
3488 * gnulib/import/m4/float_h.m4: Update.
3489 * gnulib/import/m4/fnmatch.m4: Update.
3490 * gnulib/import/m4/fpieee.m4: Update.
3491 * gnulib/import/m4/frexp.m4: Update.
3492 * gnulib/import/m4/frexpl.m4: Update.
3493 * gnulib/import/m4/gettimeofday.m4: Update.
3494 * gnulib/import/m4/glibc21.m4: Update.
3495 * gnulib/import/m4/gnulib-cache.m4: Update.
3496 * gnulib/import/m4/gnulib-common.m4: Update.
3497 * gnulib/import/m4/gnulib-comp.m4: Update.
3498 * gnulib/import/m4/gnulib-tool.m4: Update.
3499 * gnulib/import/m4/include_next.m4: Update.
3500 * gnulib/import/m4/inttypes-pri.m4: Update.
3501 * gnulib/import/m4/inttypes.m4: Update.
3502 * gnulib/import/m4/isnand.m4: Update.
3503 * gnulib/import/m4/isnanl.m4: Update.
3504 * gnulib/import/m4/largefile.m4: Update.
3505 * gnulib/import/m4/localcharset.m4: Update.
3506 * gnulib/import/m4/locale-fr.m4: Update.
3507 * gnulib/import/m4/locale-ja.m4: Update.
3508 * gnulib/import/m4/locale-zh.m4: Update.
3509 * gnulib/import/m4/longlong.m4: Update.
3510 * gnulib/import/m4/lstat.m4: Update.
3511 * gnulib/import/m4/malloc.m4: Update.
3512 * gnulib/import/m4/malloca.m4: Update.
3513 * gnulib/import/m4/math_h.m4: Update.
3514 * gnulib/import/m4/mbrtowc.m4: Update.
3515 * gnulib/import/m4/mbsinit.m4: Update.
3516 * gnulib/import/m4/mbsrtowcs.m4: Update.
3517 * gnulib/import/m4/mbstate_t.m4: Update.
3518 * gnulib/import/m4/memchr.m4: Update.
3519 * gnulib/import/m4/memmem.m4: Update.
3520 * gnulib/import/m4/mmap-anon.m4: Update.
3521 * gnulib/import/m4/multiarch.m4: Update.
3522 * gnulib/import/m4/nocrash.m4: Update.
3523 * gnulib/import/m4/off_t.m4: Update.
3524 * gnulib/import/m4/pathmax.m4: Update.
3525 * gnulib/import/m4/readlink.m4: Update.
3526 * gnulib/import/m4/rename.m4: Update.
3527 * gnulib/import/m4/rmdir.m4: Update.
3528 * gnulib/import/m4/ssize_t.m4: Update.
3529 * gnulib/import/m4/stat.m4: Update.
3530 * gnulib/import/m4/stdbool.m4: Update.
3531 * gnulib/import/m4/stddef_h.m4: Update.
3532 * gnulib/import/m4/stdint.m4: Update.
3533 * gnulib/import/m4/stdio_h.m4: Update.
3534 * gnulib/import/m4/stdlib_h.m4: Update.
3535 * gnulib/import/m4/string_h.m4: Update.
3536 * gnulib/import/m4/strstr.m4: Update.
3537 * gnulib/import/m4/strtok_r.m4: Update.
3538 * gnulib/import/m4/sys_socket_h.m4: Update.
3539 * gnulib/import/m4/sys_stat_h.m4: Update.
3540 * gnulib/import/m4/sys_time_h.m4: Update.
3541 * gnulib/import/m4/sys_types_h.m4: Update.
3542 * gnulib/import/m4/time_h.m4: Update.
3543 * gnulib/import/m4/unistd_h.m4: Update.
3544 * gnulib/import/m4/warn-on-use.m4: Update.
3545 * gnulib/import/m4/wchar_h.m4: Update.
3546 * gnulib/import/m4/wchar_t.m4: Update.
3547 * gnulib/import/m4/wctype_h.m4: Update.
3548 * gnulib/import/m4/wint_t.m4: Update.
3549 * gnulib/import/malloc.c: Update.
3550 * gnulib/import/malloca.c: Update.
3551 * gnulib/import/malloca.h: Update.
3552 * gnulib/import/math.in.h: Update.
3553 * gnulib/import/mbrtowc.c: Update.
3554 * gnulib/import/mbsinit.c: Update.
3555 * gnulib/import/mbsrtowcs-impl.h: Update.
3556 * gnulib/import/mbsrtowcs-state.c: Update.
3557 * gnulib/import/mbsrtowcs.c: Update.
3558 * gnulib/import/memchr.c: Update.
3559 * gnulib/import/memmem.c: Update.
3560 * gnulib/import/pathmax.h: Update.
3561 * gnulib/import/readlink.c: Update.
3562 * gnulib/import/ref-add.sin: Update.
3563 * gnulib/import/ref-del.sin: Update.
3564 * gnulib/import/rename.c: Update.
3565 * gnulib/import/rmdir.c: Update.
3566 * gnulib/import/same-inode.h: Update.
3567 * gnulib/import/stat.c: Update.
3568 * gnulib/import/stdbool.in.h: Update.
3569 * gnulib/import/stddef.in.h: Update.
3570 * gnulib/import/stdint.in.h: Update.
3571 * gnulib/import/stdio.c: Update.
3572 * gnulib/import/stdio.in.h: Update.
3573 * gnulib/import/stdlib.in.h: Update.
3574 * gnulib/import/str-two-way.h: Update.
3575 * gnulib/import/streq.h: Update.
3576 * gnulib/import/string.in.h: Update.
3577 * gnulib/import/stripslash.c: Update.
3578 * gnulib/import/strnlen1.c: Update.
3579 * gnulib/import/strnlen1.h: Update.
3580 * gnulib/import/strstr.c: Update.
3581 * gnulib/import/strtok_r.c: Update.
3582 * gnulib/import/sys_stat.in.h: Update.
3583 * gnulib/import/sys_time.in.h: Update.
3584 * gnulib/import/sys_types.in.h: Update.
3585 * gnulib/import/time.in.h: Update.
3586 * gnulib/import/unistd.in.h: Update.
3587 * gnulib/import/verify.h: Update.
3588 * gnulib/import/wchar.in.h: Update.
3589 * gnulib/import/wctype.in.h: Update.
3590 * gnulib/import/gettimeofday.c: New file.
3591 * gnulib/import/m4/absolute-header.m4: New file.
3592 * gnulib/import/m4/gettimeofday.m4: New file.
3593 * gnulib/import/m4/sys_socket_h.m4: New file.
3594 * gnulib/import/m4/sys_time_h.m4: New file.
3595 * gnulib/import/stdio.c: Delete file.
3596 * gnulib/import/sys_time.in.h: New file.
3597
438e1e42
PA
35982015-08-24 Pedro Alves <palves@redhat.com>
3599
3600 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3601 * common/gdb_sys_time.h: New file.
3602 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3603 * gdb_select.h: Likewise.
3604 * gdb_usleep.c: Likewise.
3605 * maint.c: Likewise.
3606 * mi/mi-main.c: Likewise.
3607 * mi/mi-parse.h: Likewise.
3608 * remote-fileio.c: Likewise.
3609 * remote-m32r-sdi.c: Likewise.
3610 * remote.c: Likewise.
3611 * ser-base.c: Likewise.
3612 * ser-pipe.c: Likewise.
3613 * ser-tcp.c: Likewise.
3614 * ser-unix.c: Likewise.
3615 * symfile.c: Likewise.
3616 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3617 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3618 * utils.c: Likewise.
3619
40e0b271
PA
36202015-08-24 Pedro Alves <palves@redhat.com>
3621
3622 * NEWS: Mention removed support for the various ROM monitors.
3623 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3624 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3625 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3626 gdb_target_obs.
3627 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3628 gdb_target_obs.
3629 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3630 dsrec.o from gdb_target_obs.
3631 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3632 from gdb_target_obs.
3633 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3634 gdb_target_obs.
3635 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3636 dink32-rom.o from gdb_target_obs.
3637 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3638 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3639 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3640 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3641
f8904751
PA
36422015-08-21 Pedro Alves <palves@redhat.com>
3643
3644 * frame.c (null_frame_id): Explicitly zero-initialize.
3645
049412e3
TT
36462015-08-21 Tom Tromey <tromey@redhat.com>
3647
3648 * dwarf2read.c (struct dwarf2_section_info): Rename field
3649 'asection' to 'section'.
3650 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3651 (dwarf2_locate_sections, dwarf2_locate_sections)
3652 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3653 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3654 (dwarf2_locate_v2_dwp_sections): Adjust.
3655
948578a9
PP
36562015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3657
3658 * top.h (gdb_in_secondary_prompt_p): Declare.
3659 * top.c (gdb_secondary_prompt_depth): Define.
3660 (gdb_in_secondary_prompt_p): Define.
3661 (gdb_readline_wrapper_cleanup): Decrement
3662 gdb_secondary_prompt_depth.
3663 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3664 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3665 are in a secondary prompt.
3666
7a8bcb88
PP
36672015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3668
3669 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3670 emit the newline.
3671
2d7711a3
GB
36722015-08-21 Gary Benson <gbenson@redhat.com>
3673
3674 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3675
4313b8c0
GB
36762015-08-21 Gary Benson <gbenson@redhat.com>
3677
3678 * target.h (struct target_ops) <to_fileio_open>: New argument
3679 warn_if_slow. Update comment. All implementations updated.
3680 (target_fileio_open_warn_if_slow): New declaration.
3681 * target.c (target_fileio_open): Renamed as...
3682 (target_fileio_open_1): ...this. New argument warn_if_slow.
3683 Pass warn_if_slow to implementation. Update debug printing.
3684 (target_fileio_open): New function.
3685 (target_fileio_open_warn_if_slow): Likewise.
3686 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3687 target_fileio_open_warn_if_slow.
3688
f36b8719
GB
36892015-08-21 Gary Benson <gbenson@redhat.com>
3690
3691 * nat/linux-namespaces.c (linux_mntns_access_fs):
3692 Do not overwrite old_chain.
3693
40045d91
MF
36942015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3695
3696 * arch/xtensa.h: New file.
3697 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3698 (ps_get_thread_area): New function.
3699 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3700 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3701 * xtensa-tdep.c (osabi.h): New #include.
3702 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3703 xtensa-specific hooks.
3704 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3705 member and move the structure to arch/xtensa.h.
3706
80152258
PA
37072015-08-21 Pedro Alves <palves@redhat.com>
3708
3709 * remote.c (struct readahead_cache): New.
3710 (struct remote_state) <readahead_cache>: New field.
3711 (remote_open_1): Invalidate the cache.
3712 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3713 functions.
3714 (remote_hostio_pwrite): Invalidate the readahead cache.
3715 (remote_hostio_pread): Rename to ...
3716 (remote_hostio_pread_vFile): ... this.
3717 (remote_hostio_pread_from_cache): New function.
3718 (remote_hostio_pread): Reimplement.
3719 (remote_hostio_close): Invalidate the readahead cache.
3720
88fc5eb7
MC
37212015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3722
3723 PR build/18843
3724 * procfs.c: Include "filestuff.h".
3725
6f1cb6ea
PP
37262015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3727
3728 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3729 curch.
3730 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3731 cur_line or curch, instead call wmove().
3732 (init_win_info) [CMD_WIN]: Likewise.
3733 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3734 instead call getcury().
3735 (tui_redisplay_readline): Don't set cur_line or curch.
3736 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3737 getcury().
3738 (tui_cont_sig): Remove call to wmove.
3739 (tui_getc): Don't read cur_line or curch, instead call getcury()
3740 or getyx(). Don't set curch.
3741 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3742 set cur_line or curch. Always move cursor to (0,0).
3743
221e1a37
PA
37442015-08-20 Pedro Alves <palves@redhat.com>
3745
3746 * infrun.c (print_target_wait_results): Make extern.
3747 * infrun.h (print_target_wait_results): Declare.
3748 * remote.c (set_stop_requested_callback): Delete.
3749 (process_initial_stop_replies): New function.
3750 (remote_start_remote): Use it.
3751 (stop_reply_queue_length): New function.
3752
40e3ad0e
PA
37532015-08-20 Pedro Alves <palves@redhat.com>
3754
3755 * dwarf2read.c (process_full_comp_unit): To tell whether
3756 start_subfile managed to deduce a language, test for
3757 language_unknown instead of language_c.
3758
af39b327
PMR
37592015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3760
3761 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3762 matches attributes.
3763
7d45c7c3
KB
37642015-08-19 Kevin Buettner <kevinb@redhat.com>
3765
3766 * dwarf2read.c (dwarf2_string_attr): New function.
3767 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3768 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3769 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3770 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3771 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3772
4d6cceb4
DE
37732015-08-18 Doug Evans <dje@google.com>
3774 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3775
3776 PR mi/18833
3777 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3778 if MI-like.
3779 * mi/mi-out.c: #include "vec.h".
3780 (ui_filep): New type.
3781 (DEV_VEC_P (ui_filep)): New type.
3782 (struct ui_out_data) <buffer, original_buffer>: Delete.
3783 (struct ui_out_data) <streams>: New member.
3784 (mi_ui_out_impl): Add data_destroy field.
3785 (mi_field_string, mi_field_fmt): Update.
3786 (mi_flush, mi_redirect, field_separator): Update.
3787 (mi_open, mi_close): Update.
3788 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3789 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3790 (mi_out_new): Call mi_out_data_ctor.
3791
26d56a93
SL
37922015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3793
3794 * remote.c (strprefix): New.
3795 (remote_parse_stop_reply): Use strprefix instead of strncmp
3796 to ensure exact match of keyword.
3797
566f5e3b
AB
37982015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3799
3800 * gdb_bfd.c (debug_bfd_cache): New variable.
3801 (show_bfd_cache_debug): New function.
3802 (gdb_bfd_open): Add debug logging.
3803 (gdb_bfd_ref): Likewise.
3804 (gdb_bfd_unref): Likewise.
3805 (_initialize_gdb_bfd): Add new set/show command.
3806 * NEWS: Mention new command.
3807
18989b3c
AB
38082015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * gdb_bfd.c (bfd_sharing): New variable.
3811 (show_bfd_sharing): New function.
3812 (gdb_bfd_open): Check bfd_sharing variable.
3813 (_initialize_gdb_bfd): Add new set/show command.
3814 * NEWS: Mention new command.
3815
c04fe68f
AB
38162015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3819 field.
3820 (struct gdb_bfd_cache_search): Likewise.
3821 (eq_bfd): Compare the size, inode, and device id fields.
3822 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3823 (gdb_bfd_ref): Likewise.
3824 (gdb_bfd_unref): Likewise.
3825
b2a33439
PA
38262015-08-18 Pedro Alves <palves@redhat.com>
3827
3828 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3829 target implements to_always_non_stop_p, call it.
3830 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3831 (x86_linux_create_target): Install it as to_always_non_stop_p
3832 method.
3833
71b57e37
DE
38342015-08-17 Doug Evans <dje@google.com>
3835
3836 * ui-out.c (default_ui_out_impl): Add comment.
3837
7f3706eb
IB
38382015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3839
3840 * d-exp.y (type_aggregate_p): New function.
3841 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3842 (classify_inner_name): Likewise.
3843 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3844
1762568f
DE
38452015-08-15 Doug Evans <xdje42@gmail.com>
3846
3847 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3848 updated.
3849 (add_psymbol_to_list): Ditto.
3850
8763cede
DE
38512015-08-15 Doug Evans <xdje42@gmail.com>
3852
3853 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3854 updated. Call end_psymtab_common.
3855 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3856 end_psymtab_common.
3857 (build_type_psymtabs_reader): Ditto.
3858 * psympriv.h (sort_pst_symbols): Delete.
3859 (end_psymtab_common): Declare.
3860 * psymtab.c (sort_pst_symbols): Make static.
3861 (end_psymtab_common): New function.
3862 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3863
51cdc993
DE
38642015-08-15 Doug Evans <xdje42@gmail.com>
3865
3866 * defs.h (LANGUAGE_BITS): Define.
3867 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3868 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3869 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3870 (minimal_symbol_type): Add nr_minsym_types.
3871 (MINSYM_TYPE_BITS): Define.
3872 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3873 (domain_enum_tag): Add NR_DOMAINS.
3874 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3875 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3876
95cf5869
DE
38772015-08-15 Doug Evans <xdje42@gmail.com>
3878
3879 * objfiles.h: Whitespace cleanup.
3880 * psympriv.h: Whitespace cleanup.
3881 * psymtab.c: Whitespace/coding convention cleanup.
3882
e3ae3c43
PP
38832015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3884
3885 * inferior.c (detach_inferior_command): Don't call
3886 any_thread_of_process when pid is 0.
3887 (kill_inferior_command): Likewise.
3888
6ff0ba5f
DE
38892015-08-14 Doug Evans <xdje42@gmail.com>
3890
3891 PR gdb/11833
3892 * NEWS: Document new /s modifier for the disassemble command.
3893 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3894 (_initialize_cli_cmds): Update online docs of disassemble command.
3895 * disasm.c: #include "source.h".
3896 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3897 All uses updated.
3898 (dis_line_entry): New struct.
3899 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3900 (allocate_dis_line_table): New functions.
3901 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3902 (dump_insns): New arg end_pc. All callers updated.
3903 (do_mixed_source_and_assembly_deprecated): Renamed from
3904 do_mixed_source_and_assembly. All callers updated.
3905 (do_mixed_source_and_assembly): New function.
3906 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3907 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3908 DISASSEMBLY_SOURCE. All uses updated.
3909 (DISASSEMBLY_SOURCE): New macro.
3910 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3911
b56ccc20
KS
39122015-08-14 Keith Seitz <keiths@redhat.com>
3913
3914 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3915 `typename' to `type_name' to avoid C++ reserved word.
3916
ebdad8fc
KS
39172015-08-14 Keith Seitz <keiths@redhat.com>
3918
3919 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3920 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3921 silence ARI errors.
3922
c0fe2ae7
IB
39232015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3924
3925 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3926 xstrprintf instead of malloc and sprintf.
3927 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3928 (lex_one_token): Likewise.
3929
a738da3a
MF
39302015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3931
3932 * solib-svr4.c (read_program_header): Add base_addr argument to
3933 report the runtime address of the segment.
3934 (find_program_interpreter): Update read_program_header call to pass
3935 a NULL pointer for the new argument.
3936 (scan_dyntag): Add ptr_addr argument to report the runtime address
3937 of the tag payload.
3938 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3939 read_program_header to get the base address of the dynamic segment.
3940 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3941 read_program_header.
3942 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3943
f8edc4ff
MF
39442015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3945
3946 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3947
444c1ed8
IB
39482015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3949
3950 * d-exp.y (%union): Add voidval.
3951 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3952 name in the lexing stage.
3953 (PostfixExpression): Move symbol completion handling in grammar here
3954 from PrimaryExpression.
3955 (PrimaryExpression): Move routines to handle resolving identifier
3956 tokens in the grammar here from push_expression_name.
3957 (IdentifierExp): Remove the handling of alternating '.' and identifier
3958 tokens.
3959 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3960 (BasicType): Remove C-style typename rules.
3961 (d_type_from_name, d_module_from_name, push_variable)
3962 (push_fieldnames, push_type_name, push_module_name)
3963 (push_expression_name): Remove.
3964 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3965 (token_and_value): New type.
3966 (token_fifo, popping, name_obstack): New globals.
3967 (classify_name): New function.
3968 (classify_inner_name): Likewise.
3969 (yylex): Likewise.
3970 (d_parse): Initialize token_fifo, popping and name_obstack.
3971
bc7c9fab
IB
39722015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3973
3974 * Makefile.in (SFILES): Add d-namespace.c.
3975 (COMMON_OBS): Add d-namespace.o.
3976 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3977 la_lookup_symbol_nonlocal callback function pointer.
3978 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3979 (d_lookup_nested_symbol): New declaration.
3980 * d-namespace.c: New file.
3981
3207396b
PA
39822015-08-13 Pedro Alves <palves@redhat.com>
3983
3984 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3985 cleanup after the decref cleanup, not before.
3986
5d8c3ed3
PMR
39872015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3988
3989 * ada-lang.c: Include namespace.h
3990 (aux_add_nonlocal_symbols): Fix a function name in comment.
3991 (ada_add_block_renamings): New.
3992 (add_nonlocal_symbols): Add global renamings handling.
3993 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3994 to...
3995 (ada_add_all_symbols): ... this new function.
3996 (ada_add_block_symbols): Try to match the input name against the
3997 "using directives list", perform a recursive symbol lookup on
3998 the matched declarations.
3999 * block.h (struct block): Move the_namespace to top-level as
4000 namespace_info. Remove the language_specific field.
4001 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4002 * buildsym.h (using_directives): Rename into...
4003 (local_using_directives): ... this.
4004 (global_using_directives): New.
4005 (struct context_stack): Rename the using_directives field into
4006 local_using_directives.
4007 * buildsym.c (finish_block_internal): Deal with the proper
4008 using directives repository (local or global).
4009 (prepare_for_building): Reset local_using_directives. Assert
4010 that there is no pending global using directive.
4011 (reset_symtab_globals): Reset global_using_directives and
4012 local_using_directives.
4013 (end_symtab_get_static_block): Don't ignore symtabs that have
4014 only using directives.
4015 (push_context): Update references to local_using_directives.
4016 (buildsym_init): Do not reset using_directives.
4017 * cp-support.c: Include namespace.h.
4018 * cp-support.h (struct using_direct): Move to namespace.h.
4019 (cp_add_using_directives): Move to namespace.h.
4020 * cp-namespace.c: Include namespace.h
4021 (cp_add_using_directive): Move to namespace.c, rename it to
4022 add_using_directive, add a "using_directives" argument and use
4023 it as the pending using directives repository. All callers
4024 updated.
4025 * dwarf2read.c (using_directives): New.
4026 (read_import_statement): Call using_directives.
4027 (read_func_scope): Update references to local_using_directives.
4028 (read_lexical_block_scope): Likewise.
4029 (read_namespace): Update the heading comment, call
4030 using_directives.
4031 * namespace.h: New file.
4032 * namespace.c: New file.
4033 * Makefile.in (SFILES): Add namespace.c.
4034 (COMMON_OBS): Add namespace.o
4035
4dafcdeb
JB
40362015-08-12 Joel Brobecker <brobecker@adacore.com>
4037
4038 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4039 compute RETADDR.
4040
67994074
KS
40412015-08-12 Keith Seitz <keiths@redhat.com>
4042
4043 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4044 reserved C++ keyword "explicit" to "explicit_loc".
4045 * breakpoint.c (create_overlay_event_breakpoint)
4046 (create_longjmp_master_breakpoint)
4047 (create_std_terminate_master_breakpoint)
4048 (create_exception_master_breakpoint, update_static_tracepoint):
4049 Rename reserved C++ keyword "explicit" to "explicit_loc".
4050 * completer.c (collect_explicit_location_matches)
4051 (explicit_location_completer): Rename reserved C++ keyword
4052 "explicit" to "explicit_loc".
4053 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4054 (canonicalize_linespec, create_sals_line_offset)
4055 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4056 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4057 "explicit" to "explicit_loc".
4058 * location.c (struct event_location) <explicit>: Rename to
4059 "explicit_loc".
4060 (initialize_explicit_location, new_explicit_location)
4061 (explicit_location_to_string_internal, explicit_location_to_linespec):
4062 Rename reserved C++ keyword "explicit" to "explicit_loc".
4063 * location.h (explicit_location_to_string)
4064 (explicit_location_to_linespec, initialize_explicit_location)
4065 (new_explicit_location): Rename reserved C++ keyword "explicit"
4066 to "explicit_loc".
4067 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4068 keyword "explicit" to "explicit_loc".
4069
59ecaff3
KS
40702015-08-12 Keith Seitz <keiths@redhat.com>
4071
4072 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4073 and only call decode_line_1 when it is non-NULL.
4074
244558af
LM
40752015-08-12 Luis Machado <lgustavo@codesourcery.com>
4076
4077 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4078 location address is not meaningful.
4079 (breakpoint_address_is_meaningful): Update comment.
4080
629500fa
KS
40812015-08-11 Keith Seitz <keiths@redhat.com>
4082
4083 * NEWS: Mention explicit locations.
4084 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4085 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4086 (_initialize_breakpoint): Update documentation for
4087 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4088
eb8c4e2e
KS
40892015-08-11 Keith Seitz <keiths@redhat.com>
4090
4091 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4092 explicit locations, options "--source", "--function",
4093 "--label", and "--line".
4094
87f0e720
KS
40952015-08-11 Keith Seitz <keiths@redhat.com>
4096
4097 * completer.c: Include location.h.
4098 (enum match_type): New enum.
4099 (location_completer): Rename to ...
4100 (linespec_completer): ... this.
4101 (collect_explicit_location_matches, backup_text_ptr)
4102 (explicit_location_completer): New functions.
4103 (location_completer): "New" function; handle linespec
4104 and explicit location completions.
4105 (complete_line_internal): Remove all location completer-specific
4106 handling.
4107 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4108 (find_toplevel_char): Export.
4109 (linespec_parse_line_offset): Export.
4110 Issue error if STRING is not numerical.
4111 (gdb_get_linespec_parser_quote_characters): New function.
4112 * linespec.h (linespec_parse_line_offset): Declare.
4113 (get_gdb_linespec_parser_quote_characters): Declare.
4114 (is_ada_operator): Declare.
4115 (find_toplevel_char): Declare.
4116 (linespec_lexer_lex_keyword): Declare.
4117 * location.c (explicit_to_event_location): New function.
4118 (explicit_location_lex_one): New function.
4119 (string_to_explicit_location): New function.
4120 (string_to_event_location): Handle explicit locations.
4121 * location.h (explicit_to_event_location): Declare.
4122 (string_to_explicit_location): Declare.
4123
00e52e53
KS
41242015-08-11 Keith Seitz <keiths@redhat.com>
4125
4126 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4127 linespec into explicit location.
4128 * breakpoint.c (create_overlay_breakpoint)
4129 (create_longjmp_master_breakpoint)
4130 (create_std_terminate_master_breakpoint)
4131 (create_exception_master_breakpoint): Convert linespec into explicit
4132 location.
4133 (update_static_tracepoint): Convert linespec into explicit location.
4134 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4135 location.h.
4136 (struct linespec) <expression, expr_pc, source_filename>
4137 <function_name, label_name, line_offset>: Replace with ...
4138 <explicit>: ... this.
4139 <is_linespec>: New member.
4140 (PARSER_EXPLICIT): New accessor macro.
4141 (undefined_label_error): New function.
4142 (source_file_not_found_error): New function.
4143 (linespec_parse_basic): The parser result is now an explicit location.
4144 Use PARSER_EXPLICIT to access it.
4145 Use undefined_label_error.
4146 (canonicalize_linespec): Convert canonical linespec into explicit
4147 location.
4148 Move string representation of location to explicit_location_to_linespec
4149 and use it and explicit_location_to_string to save string
4150 representations of the canonical location.
4151 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4152 explicit location. Update all references.
4153 (convert_explicit_location_to_sals): New function.
4154 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4155 result's explicit location.
4156 (linespec_state_constructor): Initialize is_linespec.
4157 Use PARSER_EXPLICIT.
4158 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4159 result.
4160 (event_location_to_sals): For linespec locations, set is_linespec.
4161 Handle explicit locations.
4162 (decode_objc): 'ls' contains an explicit location now. Update all
4163 references.
4164 (symtabs_from_filename): Use source_file_not_found_error.
4165 * location.c (struct event_location.u) <explicit>: New member.
4166 (initialize_explicit_location): New function.
4167 (initialize_event_location): Initialize explicit locations.
4168 (new_explicit_location, get_explicit_location)
4169 (get_explicit_location_const): New functions.
4170 (explicit_to_string_internal): New function; most of contents moved
4171 from canonicalize_linespec.
4172 (explicit_location_to_string): New function.
4173 (explicit_location_to_linespec): New function.
4174 (copy_event_location, delete_event_location)
4175 (event_location_to_string_const, event_location_empty_p): Handle
4176 explicit locations.
4177 * location.h (enum offset_relative_sign, struct line_offset): Move
4178 here from linespec.h.
4179 (enum event_location_type): Add EXPLICIT_LOCATION.
4180 (struct explicit_location): New structure.
4181 (explicit_location_to_string): Declare.
4182 (explicit_location_to_linespec): Declare.
4183 (new_explicit_location, get_explicit_locationp
4184 (get_explicit_location_const, initialize_explicit_location): Declare.
4185
5b56227b
KS
41862015-08-11 Keith Seitz <keiths@redhat.com>
4187
4188 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4189 linespec for stap probe to probe location.
4190 * breakpoint.c (create_longjmp_master_breakpoint)
4191 (create_exception_master_breakpoint): Likewise.
4192 (break_command_1): Remove local variable `arg_cp'.
4193 Check location type to set appropriate breakpoint ops methods.
4194 (trace_command): Likewise.
4195 * linespec.c (event_location_to_sals): Assert on probe locations.
4196 * location.c (EL_PROBE): Add macro definition.
4197 (new_probe_location, get_probe_location): New functions.
4198 (copy_event_location, delete_event_location, event_location_to_string)
4199 (string_to_event_location, event_location_empty_p): Handle probe
4200 locations.
4201 * location.h (enum event_location_type): Add PROBE_LOCATION.
4202 (new_probe_location, get_probe_location): Declare.
4203 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4204 Convert linespec into probe location.
4205
a06efdd6
KS
42062015-08-11 Keith Seitz <keiths@redhat.com>
4207
4208 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4209 Convert linespec to address location.
4210 * linespec.c (canonicalize_linespec): Do not handle address
4211 locations here.
4212 (convert_address_location_to_sals): New function; contents moved
4213 from ...
4214 (convert_linespc_to_sals): ... here.
4215 (parse_linespec): Remove address locations from linespec grammar.
4216 Remove handling of address locations.
4217 (linespec_lex_to_end): Remove handling of address linespecs.
4218 (event_location_to_sals): Handle ADDRESS_LOCATION.
4219 (linespec_expression_to_pc): Export.
4220 * linespec.h (linespec_expression_to_pc): Add declaration.
4221 * location.c (struct event_location.u) <address>: New member.
4222 (new_address_location, get_address_location): New functions.
4223 (copy_event_location, delete_event_location, event_location_to_string)
4224 (string_to_event_location, event_location_empty_p): Handle address
4225 locations.
4226 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4227 (new_address_location, get_address_location): Declare.
4228 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4229 to address location.
4230 * spu-tdep.c (spu_catch_start): Likewise.
4231
f00aae0f
KS
42322015-08-11 Keith Seitz <keiths@redhat.com>
4233
4234 * ax-gdb.c: Include location.h.
4235 (agent_command_1) Use linespec location instead of address
4236 string.
4237 * break-catch-throw.c: Include location.h.
4238 (re_set_exception_catchpoint): Use linespec locations instead
4239 of address strings.
4240 * breakpoint.c: Include location.h.
4241 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4242 (create_std_terminate_master_breakpoint)
4243 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4244 Use linespec location instead of address string.
4245 (print_breakpoint_location): Use locations and
4246 event_location_to_string.
4247 Print extra_string for pending locations for non-MI streams.
4248 (print_one_breakpoint_location): Use locations and
4249 event_location_to_string.
4250 (init_raw_breakpoint_without_location): Initialize b->location.
4251 (create_thread_event_breakpoint): Use linespec location instead of
4252 address string.
4253 (init_breakpoint_sal): Likewise.
4254 Only save extra_string if it is non-NULL and not the empty string.
4255 Use event_location_to_string instead of `addr_string'.
4256 Constify `p' and `endp'.
4257 Use skip_spaces_const/skip_space_const instead of non-const versions.
4258 Copy the location into the breakpoint.
4259 If LOCATION is NULL, save the breakpoint address as a linespec location
4260 instead of an address string.
4261 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4262 event_location. All uses updated.
4263 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4264 (parse_breakpoint_sals): Use locations instead of address strings.
4265 Remove check for empty linespec with conditional.
4266 Refactor.
4267 (decode_static_tracepoint_spec): Make argument const and update
4268 function.
4269 (create_breakpoint): Change `arg' to a struct event_location and
4270 rename.
4271 Remove `copy_arg' and `addr_start'.
4272 If EXTRA_STRING is empty, set it to NULL.
4273 Don't populate `canonical' for pending breakpoints.
4274 Pass `extra_string' to find_condition_and_thread.
4275 Clear `extra_string' if `rest' was NULL.
4276 Do not error with "garbage after location" if setting a dprintf
4277 breakpoint.
4278 Copy the location into the breakpoint instead of an address string.
4279 (break_command_1): Use string_to_event_location and pass this to
4280 create_breakpoint instead of an address string.
4281 Check against `arg_cp' for a probe linespec.
4282 (dprintf_command): Use string_to_event_location and pass this to
4283 create_breakpoint instead of an address string.
4284 Throw an exception if no format string was specified.
4285 (print_recreate_ranged_breakpoint): Use event_location_to_string
4286 instead of address strings.
4287 (break_range_command, until_break_command)
4288 (init_ada_exception_breakpoint): Use locations instead
4289 of address strings.
4290 (say_where): Print out extra_string for pending locations.
4291 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4292 the breakpoint.
4293 (base_breakpoint_create_sals_from_location): Use struct event_location
4294 instead of address string.
4295 Remove `addr_start' and `copy_arg' parameters.
4296 (base_breakpoint_decode_location): Use struct event_location instead of
4297 address string.
4298 (bkpt_re_set): Use locations instead of address strings.
4299 Use event_location_empty_p to check for unset location.
4300 (bkpt_print_recreate): Use event_location_to_string instead of
4301 an address string.
4302 Print out extra_string for pending locations.
4303 (bkpt_create_sals_from_location, bkpt_decode_location)
4304 (bkpt_probe_create_sals_from_location): Use struct event_location
4305 instead of address string.
4306 (bkpt_probe_decode_location): Use struct event_location instead of
4307 address string.
4308 (tracepoint_print_recreate): Use event_location_to_string to
4309 recreate the tracepoint.
4310 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4311 (tracepoint_probe_create_sals_from_location)
4312 (tracepoint_probe_decode_location): Use struct event_location
4313 instead of address string.
4314 (dprintf_print_recreate): Use event_location_to_string to recreate
4315 the dprintf.
4316 (dprintf_re_set): Remove check for valid/missing format string.
4317 (strace_marker_create_sals_from_location)
4318 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4319 (update_static_tracepoint): Use struct event_location instead of
4320 address string.
4321 (location_to_sals): Likewise.
4322 Pass `extra_string' to find_condition_and_thread.
4323 For newly resolved pending breakpoint locations, clear the location's
4324 string representation.
4325 Assert that the breakpoint's condition string is NULL when
4326 condition_not_parsed.
4327 (breakpoint_re_set_default, create_sals_from_location_default)
4328 (decode_location_default, trace_command, ftrace_command)
4329 (strace_command, create_tracepoint_from_upload): Use locations
4330 instead of address strings.
4331 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4332 Use struct event_location instead of address string.
4333 Update all uses.
4334 <decode_location>: Likewise.
4335 (struct breakpoint) <addr_string>: Change to struct event_location
4336 and rename `location'.
4337 <addr_string_range_end>: Change to struct event_location and rename
4338 `location_range_end'.
4339 (create_breakpoint): Use struct event_location instead of address
4340 string.
4341 * cli/cli-cmds.c: Include location.h.
4342 (edit_command, list_command): Use locations instead of address strings.
4343 * elfread.c: Include location.h.
4344 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4345 * guile/scm-breakpoint.c: Include location.h.
4346 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4347 (gdbscm_register_breakpoint): Use locations instead of address
4348 strings.
4349 * linespec.c: Include location.h.
4350 (struct ls_parser) <stream>: Change to const char *.
4351 (PARSER_STREAM): Update.
4352 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4353 keywords must be followed by whitespace.
4354 (canonicalize_linespec): Save a linespec location into `canonical'.
4355 Save a canonical linespec into `canonical'.
4356 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4357 All uses updated.
4358 Update function description.
4359 (linespec_parser_new): Initialize `parser'.
4360 Update initialization of parsing stream.
4361 (event_location_to_sals): New function.
4362 (decode_line_full): Change `argptr' to a struct event_location and
4363 rename it `location'.
4364 Use locations instead of address strings.
4365 Call event_location_to_sals instead of parse_linespec.
4366 (decode_line_1): Likewise.
4367 (decode_line_with_current_source, decode_line_with_last_displayed)
4368 Use locations instead of address strings.
4369 (decode_objc): Likewise.
4370 Change `argptr' to const char * and rename `arg'.
4371 (destroy_linespec_result): Delete the linespec result's location
4372 instead of freeing the address string.
4373 * linespec.h (struct linespec_result) <addr_string>: Change to
4374 struct event_location and rename to ...
4375 <location>: ... this.
4376 (decode_line_1, decode_line_full): Change `argptr' to struct
4377 event_location. All callers updated.
4378 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4379 (mi_cmd_break_insert_1): Use locations instead of address strings.
4380 Throw an error if there was "garbage" at the end of the specified
4381 linespec.
4382 * probe.c: Include location.h.
4383 (parse_probes): Change `argptr' to struct event_location.
4384 Use event locations instead of address strings.
4385 * probe.h (parse_probes): Change `argptr' to struct event_location.
4386 * python/py-breakpoint.c: Include location.h.
4387 (bppy_get_location): Constify local variable `str'.
4388 Use event_location_to_string.
4389 (bppy_init): Use locations instead of address strings.
4390 * python/py-finishbreakpoint.c: Include location.h.
4391 (bpfinishpy_init): Remove local variable `addr_str'.
4392 Use locations instead of address strings.
4393 * python/python.c: Include location.h.
4394 (gdbpy_decode_line): Use locations instead of address strings.
4395 * remote.c: Include location.h.
4396 (remote_download_tracepoint): Use locations instead of address
4397 strings.
4398 * spu-tdep.c: Include location.h.
4399 (spu_catch_start): Remove local variable `buf'.
4400 Use locations instead of address strings.
4401 * tracepoint.c: Include location.h.
4402 (scope_info): Use locations instead of address strings.
4403 (encode_source_string): Constify parameter `src'.
4404 * tracepoint.h (encode_source_string): Likewise.
4405
c7c1b3e9
KS
44062015-08-11 Keith Seitz <keiths@redhat.com>
4407
4408 * Makefile.in (SFILES): Add location.c.
4409 (HFILES_NO_SRCDIR): Add location.h.
4410 (COMMON_OBS): Add location.o.
4411 * linespec.c (linespec_lex_to_end): New function.
4412 * linespec.h (linespec_lex_to_end): Declare.
4413 * location.c: New file.
4414 * location.h: New file.
4415
5f700d83
KS
44162015-08-11 Keith Seitz <keiths@redhat.com>
4417
4418 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4419 Renamed to create_sals_from_location.
4420 <decode_linespec>: Renamed to decode_location.
4421 Update all callers.
4422 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4423 (create_sals_from_location_default): ... this.
4424 (addr_string_to_sals): Renamed to ...
4425 (location_to_sals): ... this.
4426 (decode_linespec_default): Renamed to ...
4427 (decode_location_default): ... this.
4428 (base_breakpoint_create_sals_from_address): Renamed to ...
4429 (base_breakpoint_create_sals_from_location): ... this.
4430 (bkpt_create_sals_from_address): Renamed to ...
4431 (bkpt_create_sals_from_location): ... this.
4432 (bkpt_decode_linespec): Renamed to ...
4433 (bkpt_decode_location): ... this.
4434 (bkpt_probe_create_sals_from_address): Renamed to ...
4435 (bkpt_probe_create_sals_from_location): ... this.
4436 (tracepoint_create_sals_from_address): Renamed to ...
4437 (tracepoint_create_sals_from_location): ... this.
4438 (tracepoint_decode_linespec): Renamed to ...
4439 (tracepoint_decode_location): ... this.
4440 (tracepoint_probe_create_sals_from_address): Renamed to ...
4441 (tracepoint_probe_create_sals_from_location): ... this.
4442 (tracepoint_probe_decode_linespec): Renamed to ...
4443 (tracepoint_probe_decode_location): ... this.
4444 (strace_marker_create_sals_from_address): Renamed to ...
4445 (strace_marker_create_sals_from_location): ... this.
4446 (decode_linespec_default): Renamed to ...
4447 (decode_location_default): ... this.
4448
e27852be
DE
44492015-08-10 Doug Evans <dje@google.com>
4450 Keith Seitz <keiths@redhat.com>
4451
4452 PR gdb/17960
4453 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4454 make_file_symbol_completion_list and made static.
4455 (make_file_symbol_completion_list): New function.
80af41e0 4456
fd7dcb94
JB
44572015-08-10 Joel Brobecker <brobecker@adacore.com>
4458
4459 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4460 trailing new-line at end of warning message.
4461 (proceed): Add i18n marker to error messages.
4462
f12899e9
PA
44632015-08-07 Pedro Alves <palves@redhat.com>
4464
4465 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4466
5ac21343
PA
44672015-08-07 Pedro Alves <palves@redhat.com>
4468
4469 * s390-linux-tdep.c (is_non_branch_ril)
4470 (s390_displaced_step_copy_insn): New functions.
4471 (s390_displaced_step_fixup): Update comment.
4472 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4473 gdbarch_displaced_step_copy_insn hook.
4474
7f03bd92
PA
44752015-08-07 Pedro Alves <palves@redhat.com>
4476
4477 * infrun.c (displaced_step_prepare_throw): Return -1 if
4478 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4479 comment.
4480 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4481 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4482 in file.
4483 (ppc_displaced_step_copy_insn): New function.
4484 (ppc_displaced_step_fixup): Update comment.
4485 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4486 gdbarch_displaced_step_copy_insn hook.
4487 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4488 NULL return.
4489 * gdbarch.h: Regenerate.
4490
3fc8eb30
PA
44912015-08-07 Pedro Alves <palves@redhat.com>
4492
4493 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4494 field.
4495 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4496 Return false if dispaced stepping failed before.
4497 (resume): Pass the current inferior to
4498 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4499 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4500 displaced_stepping_failed flag, and fall back to an in-line
4501 step-over.
4502
bfedc46a
PA
45032015-08-07 Pedro Alves <palves@redhat.com>
4504
4505 * darwin-nat.c (darwin_stop): Rename to ...
4506 (darwin_interrupt): ... this.
4507 (_initialize_darwin_inferior): Adjust.
4508 * gnu-nat.c (gnu_stop): Delete.
4509 (gnu_target): Don't install gnu_stop.
4510 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4511 (inf_ptrace_interrupt): ... this.
4512 (inf_ptrace_target): Adjust.
4513 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4514 target_stop.
4515 * linux-nat (linux_nat_stop): Rename to ...
4516 (linux_nat_interrupt): ... this.
4517 (linux_nat_stop): Reimplement.
4518 (linux_nat_add_target): Install linux_nat_interrupt.
4519 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4520 (nto_handle_sigint_twice): ... this.
4521 (nto_interrupt): Rename to ...
4522 (nto_handle_sigint): ... this. Call target_interrupt instead of
4523 target_stop.
4524 (procfs_wait): Adjust.
4525 (procfs_stop): Rename to ...
4526 (procfs_interrupt): ... this.
4527 (init_procfs_targets): Adjust.
4528 * procfs.c (procfs_stop): Rename to ...
4529 (procfs_interrupt): ... this.
4530 (procfs_target): Adjust.
4531 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4532 (m32r_interrupt): ... this.
4533 (init_m32r_ops): Adjust.
4534 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4535 (gdbsim_interrupt_inferior): ... this.
4536 (gdbsim_stop): Rename to ...
4537 (gdbsim_interrupt): ... this.
4538 (gdbsim_cntrl_c): Adjust.
4539 (init_gdbsim_ops): Adjust.
4540 * remote.c (sync_remote_interrupt): Adjust comments.
4541 (remote_stop_as): Rename to ...
4542 (remote_interrupt_as): ... this.
4543 (remote_stop): Adjust comment.
4544 (remote_interrupt): New function.
4545 (init_remote_ops): Install remote_interrupt.
4546 * target.c (target_interrupt): New function.
4547 * target.h (struct target_ops) <to_interrupt>: New field.
4548 (target_interrupt): New declaration.
4549 * windows-nat.c (windows_stop): Rename to ...
4550 (windows_interrupt): ... this.
4551 * target-delegates.c: Regenerate.
4552
d55007b5
PA
45532015-08-07 Pedro Alves <palves@redhat.com>
4554
4555 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4556 threads" as alternative to "switching back to stepped thread".
4557
fbea99ea
PA
45582015-08-07 Pedro Alves <palves@redhat.com>
4559
4560 * NEWS: Mention "maint set/show target-non-stop".
4561 * breakpoint.c (update_global_location_list): Check
4562 target_is_non_stop_p instead of non_stop.
4563 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4564 * infrun.c (show_can_use_displaced_stepping)
4565 (can_use_displaced_stepping_p, start_step_over_inferior):
4566 Likewise.
4567 (internal_resume_ptid): New function.
4568 (resume): Use it.
4569 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4570 all-stop mode but the target is always in non-stop mode, start all
4571 the other threads that are implicitly resumed too.
4572 (for_each_just_stopped_thread, fetch_inferior_event)
4573 (adjust_pc_after_break, stop_all_threads): Check
4574 target_is_non_stop_p instead of non_stop.
4575 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4576 with the target always in non-stop mode.
4577 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4578 instead of non_stop.
4579 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4580 instead of non_stop.
4581 (keep_going_stepped_thread): Use internal_resume_ptid.
4582 (stop_waiting): If in all-stop mode, and the target is in non-stop
4583 mode, stop all threads.
4584 (keep_going_pass): Likewise, when starting a new in-line step-over
4585 sequence.
4586 * linux-nat.c (get_pending_status, select_event_lwp)
4587 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4588 target_is_non_stop_p instead of non_stop.
4589 (linux_nat_always_non_stop_p): New function.
4590 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4591 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4592 * target-delegates.c: Regenerate.
4593 * target.c (target_is_non_stop_p): New function.
4594 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4595 (maint_set_target_non_stop_command)
4596 (maint_show_target_non_stop_command): New functions.
4597 (_initilize_target): Install "maint set/show target-non-stop"
4598 commands.
4599 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4600 (target_non_stop_enabled): New declaration.
4601 (target_is_non_stop_p): New declaration.
4602
372316f1
PA
46032015-08-07 Pedro Alves <pedro@codesourcery.com>
4604
4605 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4606 has a pending status, return true.
4607 * gdbthread.h: Include target/waitstatus.h.
4608 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4609 stop_pc>: New fields.
4610 (struct thread_info) <resumed>: New field.
4611 (set_resumed): Declare.
4612 * infrun.c: Include "event-loop.h".
4613 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4614 (infrun_async): New function.
4615 (clear_step_over_info): Add debug output.
4616 (displaced_step_in_progress_any_inferior): New function.
4617 (displaced_step_fixup): New returns int.
4618 (start_step_over): Handle in-line step-overs too. Assert the
4619 thread is marked resumed.
4620 (resume_cleanups): Clear the thread's resumed flag.
4621 (resume): Set the thread's resumed flag. Return early if the
4622 thread has a pending status. Allow stepping a breakpoint with no
4623 signal.
4624 (proceed): Adjust to check 'resumed' instead of 'executing'.
4625 (clear_proceed_status_thread): If the thread has a pending status,
4626 and that status is a finished step, discard the pending status.
4627 (clear_proceed_status): Don't clear step_over_info here.
4628 (random_pending_event_thread, do_target_wait): New functions.
4629 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4630 do_target_wait.
4631 (wait_one): New function.
4632 (THREAD_STOPPED_BY): New macro.
4633 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4634 (thread_stopped_by_hw_breakpoint): New functions.
4635 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4636 functions.
4637 (handle_inferior_event): Also call set_resumed(false) on all
4638 threads implicitly stopped by the event.
4639 (restart_threads, resumed_thread_with_pending_status): New
4640 functions.
4641 (finish_step_over): If we were doing an in-line step-over before,
4642 and no longer are after trying to start a new step-over, restart
4643 all threads. If we have multiple threads with pending events,
4644 save the current event and go through the event loop again.
4645 (handle_signal_stop): Return early if finish_step_over returns
4646 false.
4647 <random signal>: If we get a signal while stepping over a
4648 breakpoint in-line in non-stop mode, restart all threads. Clear
4649 step_over_info before delivering the signal.
4650 (keep_going_stepped_thread): Use internal_error instead of
4651 gdb_assert. Mark the thread as resumed.
4652 (keep_going_pass_signal): Assert the thread isn't already resumed.
4653 If some other thread is doing an in-line step-over, defer the
4654 resume. If we just started a new in-line step-over, stop all
4655 threads. Don't clear step_over_info.
4656 (infrun_async_inferior_event_handler): New function.
4657 (_initialize_infrun): Create async event handler with
4658 infrun_async_inferior_event_handler as callback.
4659 (infrun_async): New declaration.
4660 * target.c (target_async): New function.
4661 * target.h (target_async): Declare macro and readd as function
4662 declaration.
4663 * target/waitstatus.h (enum target_stop_reason)
4664 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4665 * thread.c (new_thread): Clear the new waitstatus field.
4666 (set_resumed): New function.
4667
2ac7589c
PA
46682015-08-07 Pedro Alves <palves@redhat.com>
4669
4670 * infrun.c (keep_going_stepped_thread): New function, factored out
4671 from ...
4672 (switch_back_to_stepped_thread): ... here.
4673
8b061563
PA
46742015-08-07 Pedro Alves <palves@redhat.com>
4675
4676 * infrun.c (currently_stepping): Extend intro comment.
4677 * target.h (target_resume): Extend intro comment.
4678
1afd5965
PA
46792015-08-07 Pedro Alves <palves@redhat.com>
4680
4681 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4682 of inferior_ptid. If the stepped thread vanished, return 0
4683 instead of resuming here. Use reset_ecs. Print the prev_pc and
4684 the current stop_pc in log message. Clear trap_expected if the
4685 thread advanced. Don't pass currently_stepping to
4686 do_target_resume.
4687
4d9d9d04
PA
46882015-08-07 Pedro Alves <palves@redhat.com>
4689
4690 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4691 * infrun.c (struct execution_control_state): Move higher up in the
4692 file.
4693 (reset_ecs): New function.
4694 (start_step_over): Now returns int. Rewrite to use
4695 keep_going_pass_signal instead of manually starting a displaced step.
4696 (resume): Don't call set_running here. If displaced stepping
4697 can't start now, clear trap_expected.
4698 (find_thread_needs_step_over): Delete function.
4699 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4700 If the current thread needs a step over, push it in the step-over
4701 chain. Don't set insert breakpoints nor call resume directly
4702 here. Instead rewrite to use start_step_over and
4703 keep_going_pass_signal.
4704 (finish_step_over): New function.
4705 (handle_signal_stop): Call finish_step_over instead of
4706 start_step_over.
4707 (switch_back_to_stepped_thread): If the event thread needs another
4708 step-over do that first. Use start_step_over.
4709 (keep_going_pass_signal): New function, factored out from ...
4710 (keep_going): ... here.
4711 (_initialize_infrun): Comment moved here.
4712 * thread.c (set_running_thread): New function.
4713 (set_running, finish_thread_state): Use set_running_thread.
4714
c2829269
PA
47152015-08-07 Pedro Alves <palves@redhat.com>
4716
4717 * gdbthread.h (struct thread_info) <step_over_prev,
4718 step_over_next>: New fields.
4719 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4720 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4721 declarations.
4722 * infrun.c (struct displaced_step_request): Delete.
4723 (struct displaced_step_inferior_state) <step_request_queue>:
4724 Delete field.
4725 (displaced_step_prepare): Assert that trap_expected is set. Use
4726 thread_step_over_chain_enqueue. Split starting a new displaced
4727 step to ...
4728 (start_step_over): ... this new function.
4729 (resume): Assert the thread isn't waiting for a step over already.
4730 (proceed): Assert the thread isn't waiting for a step over
4731 already.
4732 (infrun_thread_stop_requested): Adjust to remove threads from the
4733 embedded step-over chain.
4734 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4735 displaced_step_fixup.
4736 (handle_signal_stop): Call start_step_over after
4737 displaced_step_fixup.
4738 * infrun.h (step_over_queue_head): New declaration.
4739 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4740 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4741 (thread_step_over_chain_enqueue)
4742 (thread_step_over_chain_remove): New functions.
4743 (delete_thread_1): Remove thread from the step-over chain.
4744
6c4cfb24
PA
47452015-08-07 Pedro Alves <palves@redhat.com>
4746
4747 * infrun.c (thread_still_needs_step_over): Rename to ...
4748 (thread_still_needs_step_over_bp): ... this.
4749 (enum step_over_what): New.
4750 (thread_still_needs_step_over): Reimplement.
4751
567420d1
PA
47522015-08-07 Pedro Alves <palves@redhat.com>
4753
4754 * remote.c (remote_wait_as): If not waiting for a stop reply,
4755 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4756 requested, don't block waiting forever.
4757
d8dd4d5f
PA
47582015-08-07 Pedro Alves <pedro@codesourcery.com>
4759
4760 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4761 waitstatus pointers instead of an ecs. Adjust.
4762 (handle_inferior_event): Adjust caller.
4763
e1316e60
PA
47642015-08-07 Pedro Alves <palves@redhat.com>
4765
4766 * infrun.c (handle_inferior_event): If we get
4767 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4768 mode, mark all threads of the exiting process as not-executing.
4769 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4770 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4771 exiting process, if inferior_ptid still points at a process.
4772 * thread.c (struct current_thread_cleanup) <next>: New field.
4773 (current_thread_cleanup_chain): New global.
4774 (restore_current_thread_ptid_changed): New function.
4775 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4776 current_thread_cleanup_chain list.
4777 (make_cleanup_restore_current_thread): Add the cleanup data to the
4778 current_thread_cleanup_chain list.
4779 (_initialize_thread): Install restore_current_thread_ptid_changed
4780 as thread_ptid_changed observer.
4781
47e9c225
JB
47822015-08-07 Joel Brobecker <brobecker@adacore.com>
4783
4784 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4785 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4786 smaller than expected.
4787
06096720
AB
47882015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4789
4790 * stack.c (get_frame_language): Moved ...
4791 * frame.c (get_frame_language): ... to here.
4792 * language.h (get_frame_language): Declaration moved to frame.h.
4793 * frame.h: Add language.h include, for language enum.
4794 (get_frame_language): Declaration moved from language.h.
4795 * language.c: Add frame.h include.
4796 * top.c: Add frame.h include.
4797 * symtab.h (struct obj_section): Declare.
4798 (struct cmd_list_element): Declare.
4799
7ff38b1c
AB
48002015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4801
4802 * language.c (show_language_command): Find selected frame before
4803 asking for the language of that frame.
4804 (set_language_command): Likewise.
4805 * language.h (get_frame_language): Add frame parameter.
4806 * stack.c (get_frame_language): Add frame parameter, assert
4807 parameter is not NULL, update comment and reindent.
4808 * top.c (check_frame_language_change): Pass the selected frame
4809 into get_frame_language.
4810
da8c46d2
MM
48112015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4812
4813 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4814 (pt_btrace_insn_flags): New.
4815 (ftrace_add_pt): Call pt_btrace_insn_flags.
4816 * btrace.h (btrace_insn_flag): New.
4817 (btrace_insn) <flags>: New.
4818 * record-btrace.c (btrace_insn_history): Print insn prefix.
4819 * NEWS: Announce it.
4820
5599c404
MM
48212015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4822
4823 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4824 * configure: Regenerate.
4825
016a3251
DD
48262015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4827
4828 * Makefile.in (LIBICONV): Define.
4829 (CLIBS): Add LIBICONV.
4830 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4831 * configure: Regenerate.
4832
aead7601
SM
48332015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4834 Pedro Alves <palves@redhat.com>
4835
4836 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4837 (arm_set_abi): Likewise.
4838 * ax-general.c (ax_print): Likewise.
4839 * c-exp.y (exp : string_exp): Likewise.
4840 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4841 (do_compile_dwarf_expr_to_c): Likewise.
4842 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4843 Likewise.
4844 * dwarf2expr.c (execute_stack_op): Likewise.
4845 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4846 (disassemble_dwarf_expression): Likewise.
4847 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4848 (read_array_order): Likewise.
4849 (abbrev_table_read_table): Likewise.
4850 (read_attribute_value): Likewise.
4851 (skip_unknown_opcode): Likewise.
4852 (dwarf_decode_macro_bytes): Likewise.
4853 (dwarf_decode_macros): Likewise.
4854 * eval.c (value_f90_subarray): Likewise.
4855 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4856 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4857 * infrun.c (handle_command): Likewise.
4858 * memory-map.c (memory_map_start_memory): Likewise.
4859 * osabi.c (set_osabi): Likewise.
4860 * parse.c (operator_length_standard): Likewise.
4861 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4862 single return point.
4863 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4864 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4865 (gdbpy_lookup_global_symbol): Likewise.
4866 * record-full.c (record_full_restore): Likewise.
4867 * regcache.c (regcache_register_status): Likewise.
4868 (regcache_raw_read): Likewise.
4869 (regcache_cooked_read): Likewise.
4870 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4871 * symtab.c (initialize_ordinary_address_classes): Likewise.
4872 * target-debug.h (target_debug_print_signals): Likewise.
4873 * utils.c (do_restore_current_language): Likewise.
4874
ca0a5f0b
CD
48752015-08-06 Clem Dickey <clemd@acm.org>
4876
4877 PR python/17136
4878 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4879
05d999b0
SM
48802015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4881
4882 * complaints.c (enum complaint_series): Add newlines and remove
4883 out of date comment.
4884 (struct complaints) <series>: Change type to enum
4885 complaint_series and remove out of date comment.
4886 (symfile_complaint_hook): Use equivalent enum value
4887 ISOLATED_MESSAGE instead of 0.
4888
bf47e248
PA
48892015-08-06 Pedro Alves <palves@redhat.com>
4890
4891 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4892 returned > 0.
4893
b6b9ffcc
PL
48942015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4895
4896 * common/agent.c (symbol_list) <required>: Remove.
4897
863d01bd
PA
48982015-08-06 Pedro Alves <palves@redhat.com>
4899
4900 * target/waitstatus.h (enum target_stop_reason)
4901 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4902
0a39bb32
PA
49032015-08-05 Pedro Alves <palves@redhat.com>
4904 Joel Brobecker <brobecker@adacore.com>
4905
9d996aba 4906 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4907 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4908 case where BS->STOP is not set.
4909
260439cb
UW
49102015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4911
4912 * nat/gdb_thread_db.h: Add copyright header.
4913 Protect against multiple inclusion.
4914
d89fa914
YQ
49152015-08-05 Yao Qi <yao.qi@linaro.org>
4916
4917 * aarch64-linux-nat.c (get_thread_id): Remove.
4918 (debug_reg_change_callback): Call ptid_get_lwp instead of
4919 get_thread_id.
4920 (fetch_gregs_from_thread): Likewise.
4921 (store_gregs_to_thread): Likewise.
4922 (fetch_fpregs_from_thread): Likewise.
4923 (store_fpregs_to_thread): Likewise.
4924 (aarch64_linux_get_debug_reg_capacity): Likewise.
4925 * arm-linux-nat.c (get_thread_id): Remove.
4926 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4927 * xtensa-linux-nat.c (get_thread_id): Remove.
4928 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4929 * arm-linux-nat.c (get_thread_id): Remove.
4930 (GET_THREAD_ID): Remove.
4931 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4932 (store_fpregs, fetch_regs, store_regs): Likewise.
4933 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4934 (fetch_vfp_regs, store_vfp_regs): Likewise.
4935 (arm_linux_read_description): Likewise.
4936 (arm_linux_get_hwbp_cap): Likewise.
4937 * xtensa-linux-nat.c (get_thread_id): Remove.
4938 (GET_THREAD_ID): Remove.
4939 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4940 GET_THREAD_ID.
4941
4efd80aa
CS
49422015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4943
4944 * python/py-linetable.c: Fix case of Linetable to LineTable
4945 in docstrings and code comments.
4946 * python/py-symtab.c: Same.
4947
c6343a91
JK
49482015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4949
4950 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4951
978b9495
JK
49522015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4953
4954 PR gdb/18767
4955 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4956 use.
4957
96e9210f
PA
49582015-08-04 Pedro Alves <palves@redhat.com>
4959
4960 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4961 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4962 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4963 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4964 (td_thr_validate_ftype, td_thr_get_info_ftype)
4965 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4966 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4967 New typedefs.
4968 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4969 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4970 local macros and use them instead of verbose_dlsym and dlsym
4971 calls.
4972
af60a1ef
SL
49732015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4974
4975 * nios2-tdep.h: Include opcode/nios2.h here.
4976 (NIOS2_CDX_OPCODE_SIZE): New.
4977 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4978 * nios2-tdep.c: Don't include opcode/nios2.h here.
4979 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4980 4-byte read fails.
4981 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4982 (nios2_match_addi, nios2_match_orhi): Likewise.
4983 (nios2_match_stw, nios2_match_ldw): Likewise.
4984 (nios2_match_rdctl): Likewise.
4985 (nios2_match_stwm, nios2_match_ldwm): New.
4986 (nios2_match_branch): Add cases for R2 encodings.
4987 (nios2_match_jmpi, nios2_match_calli): Likewise.
4988 (nios2_match_jmpr, nios2_match_callr): Likewise.
4989 (nios2_match_break, nios2_match_trap): Likewise.
4990 (nios2_in_epilogue_p): Add R2 support.
4991 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4992 prologues.
4993 (nios2_breakpoint_from_pc): Handle R2 instructions.
4994 (nios2_get_next_pc): Likewise. Adjust call to
4995 tdep->syscall_next_pc.
4996 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4997 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4998 instruction field macros instead of literal hex values.
4999 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5000 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5001 Use size field from OP instead of assuming all instructions
5002 are the same size.
5003 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5004
1da03605
UW
50052015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5006
5007 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5008 variable warning with some compilers.
5009
8156fe7f
YQ
50102015-08-03 Yao Qi <yao.qi@linaro.org>
5011
5012 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5013 in comment. Replace "rw" with "type".
5014 (arm_linux_remove_watchpoint): Change type of "rw" to
5015 "enum target_hw_bp_type".
5016
835a09d9
PMR
50172015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5018
5019 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5020 lookup_symbol.
5021 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5022 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5023 * mt-tdep.c (mt_skip_prologue): Likewise.
5024 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5025
d12307c1
PMR
50262015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5027
5028 * ada-exp.y (write_object_renaming): Replace struct
5029 ada_symbol_info with struct block_symbol. Update field
5030 references accordingly.
5031 (block_lookup, select_possible_type_sym): Likewise.
5032 (find_primitive_type): Likewise. Also update call to
5033 ada_lookup_symbol to extract the symbol itself.
5034 (write_var_or_type, write_name_assoc): Likewise.
5035 * ada-lang.h (struct ada_symbol_info): Remove.
5036 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5037 struct block_symbol.
5038 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5039 (ada_lookup_symbol): Return struct block_symbol instead of a
5040 mere symbol.
5041 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5042 with struct block_symbol.
5043 (resolve_subexp, ada_resolve_function, sort_choices,
5044 user_select_syms, is_nonfunction, add_defn_to_vec,
5045 num_defns_collected, defns_collected,
5046 symbols_are_identical_enums, remove_extra_symbols,
5047 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5048 ada_lookup_symbol_list, ada_iterate_over_symbols,
5049 ada_lookup_encoded_symbol, get_var_value): Likewise.
5050 (ada_lookup_symbol): Return a block_symbol instead of a mere
5051 symbol. Replace struct ada_symbol_info with struct
5052 block_symbol.
5053 (ada_lookup_symbol_nonlocal): Likewise.
5054 (standard_lookup): Make block passing explicit through
5055 lookup_symbol_in_language.
5056 * ada-tasks.c (get_tcb_types_info): Update the calls to
5057 lookup_symbol_in_language to extract the mere symbol out of the
5058 returned value.
5059 (ada_tasks_inferior_data_sniffer): Likewise.
5060 * ax-gdb.c (gen_static_field): Likewise for the call to
5061 lookup_symbol.
a5fdf78a 5062 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5063 lookup functions.
5064 (gen_expr): Likewise.
5065 * c-exp.y: Likewise. Remove uses of block_found.
5066 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5067 (classify_name): Likewise. Rename the "sym" local variable to
5068 "bsym".
5069 * c-valprint.c (print_unpacked_pointer): Likewise.
5070 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5071 "sym" parameter from struct symbol * to struct block_symbol.
5072 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5073 block_symbol from lookup functions.
d12307c1
PMR
5074 (gcc_convert_symbol): Likewise. Update the call to
5075 convert_symbol_sym.
5076 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5077 struct block_symbol from lookup functions.
d12307c1
PMR
5078 * cp-namespace.c (cp_lookup_nested_symbol_1,
5079 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5080 cp_search_static_and_baseclasses,
5081 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5082 cp_lookup_symbol_imports_or_template,
5083 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5084 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5085 find_symbol_in_baseclass): Return struct block_symbol instead of
5086 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5087 functions.
5088 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5089 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5090 lookup functions.
5091 * cp-support.h (cp_lookup_symbol_nonlocal,
5092 cp_lookup_symbol_from_namespace,
5093 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5094 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5095 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5096 push_module_name):
a5fdf78a 5097 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5098 uses of block_found.
5099 * eval.c (evaluate_subexp_standard): Update call to
5100 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5101 * f-exp.y: Deal with struct block_symbol from lookup functions.
5102 Remove uses of block_found.
d12307c1
PMR
5103 (yylex): Likewise.
5104 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5105 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5106 struct block_symbol from lookup functions.
d12307c1
PMR
5107 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5108 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5109 (gdbscm_lookup_global_symbol): Likewise.
5110 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5111 * go-exp.y: Likewise. Remove uses of block_found.
5112 (package_name_p, classify_packaged_name, classify_name):
5113 Likewise.
5114 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5115 * jv-exp.y (push_variable): Likewise.
5116 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5117 * language.c (language_bool_type): Likewise.
5118 * language.h (struct language_defn): Update
a5fdf78a
PMR
5119 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5120 than a mere symbol.
5121 * linespec.c (find_label_symbols): Deal with struct block_symbol
5122 from lookup functions.
d12307c1
PMR
5123 * m2-exp.y: Likewise. Remove uses of block_found.
5124 (yylex): Likewise.
5125 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5126 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5127 * p-exp.y: Likewise. Remove uses of block_found.
5128 (yylex): Likewise.
5129 * p-valprint.c (pascal_val_print): Likewise.
5130 * parse.c (write_dollar_variable): Likewise. Remove uses of
5131 block_found.
5132 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5133 struct block_symbol.
5134 * printcmd.c (address_info): Deal with struct block_symbol from
5135 lookup functions.
d12307c1
PMR
5136 * python/py-frame.c (frapy_read_var): Likewise.
5137 * python/py-symbol.c (gdbpy_lookup_symbol,
5138 gdbpy_lookup_global_symbol): Likewise.
5139 * skip.c (skip_function_command): Likewise.
5140 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5141 block_symbol instead of a mere symbol.
d12307c1
PMR
5142 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5143 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5144 * solib.c (solib_global_lookup): Likewise.
5145 * solist.h (solib_global_lookup): Likewise.
5146 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5147 return a struct block_symbol rather than a mere symbol.
5148 * source.c (select_source_symtab): Deal with struct block_symbol
5149 from lookup functions.
d12307c1
PMR
5150 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5151 Likewise.
5152 * symfile.c (set_initial_language): Likewise.
5153 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5154 block_symbol.
d12307c1
PMR
5155 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5156 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5157 block_symbol.
d12307c1 5158 (block_found): Remove.
a5fdf78a 5159 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5160 cache slots.
a5fdf78a
PMR
5161 (symbol_cache_lookup): Return a struct block_symbol rather than
5162 a mere symbol.
d12307c1
PMR
5163 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5164 appropriately the cache slots. Update callers.
5165 (symbol_cache_dump): Update cache slots handling to the type
5166 change.
5167 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5168 lookup_symbol_aux, lookup_local_symbol,
5169 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5170 lookup_symbol_in_objfile_symtabs,
5171 lookup_symbol_in_objfile_from_linkage_name,
5172 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5173 lookup_symbol_in_static_block, lookup_static_symbol,
5174 lookup_global_symbol):
a5fdf78a
PMR
5175 Return a struct block_symbol rather than a mere symbol. Deal
5176 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5177 uses of block_found.
5178 (lookup_symbol_in_block): Remove uses of block_found.
5179 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5180 struct block_symbol.
d12307c1
PMR
5181 (lookup_symbol_global_iterator_cb): Update references to the
5182 RESULT field.
a5fdf78a 5183 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5184 functions.
a5fdf78a 5185 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5186 (block_found): Remove.
5187 (lookup_symbol_in_language, lookup_symbol,
5188 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5189 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5190 lookup_global_symbol_from_objfile): Return a struct block_symbol
5191 rather than just a mere symbol. Update comments to remove
5192 mentions of block_found.
d12307c1
PMR
5193 * valops.c (find_function_in_inferior,
5194 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5195 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5196 functions.
5197 * value.c (value_static_field, value_fn_field): Likewise.
5198
b1c59ddc
SM
51992015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5200
5201 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5202 instead of integer.
5203
f486487f 52042015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5205 Pedro Alves <palves@redhat.com>
f486487f
SM
5206
5207 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5208 type or value instead of integer.
5209 (aarch64_linux_insert_watchpoint): Likewise.
5210 (aarch64_linux_remove_watchpoint): Likewise.
5211 * ada-lang.c (ada_op_print_tab): Likewise.
5212 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5213 (amd64_linux_syscall_record_common): Likewise.
5214 * arch-utils.c (target_byte_order_user): Likewise.
5215 (default_byte_order): Likewise.
5216 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5217 (arm_linux_get_hwbp_type): Likewise.
5218 (arm_linux_hw_watchpoint_initialize): Likewise.
5219 (arm_linux_insert_watchpoint): Likewise.
5220 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5221 (arm_linux_syscall_record): Likewise.
5222 * breakpoint.c (update_watchpoint): Likewise.
5223 (breakpoint_here_p): Likewise.
5224 (bpstat_print): Likewise.
5225 (enable_breakpoint_disp): Likewise.
5226 * c-lang.c (c_op_print_tab): Likewise.
5227 * cli/cli-decode.c (add_info_alias): Likewise.
5228 * d-lang.c (d_op_print_tab): Likewise.
5229 * eval.c (evaluate_subexp_standard): Likewise.
5230 * f-exp.y (dot_ops): Likewise.
5231 (f77_keywords): Likewise.
5232 * f-lang.c (f_op_print_tab): Likewise.
5233 * go-lang.c (go_op_print_tab): Likewise.
5234 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5235 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5236 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5237 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5238 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5239 (struct scm_from_stringn_data): Likewise.
5240 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5241 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5242 (ia64_linux_remove_watchpoint): Likewise.
5243 (ia64_linux_can_use_hw_breakpoint): Likewise.
5244 * infrun.c (print_stop_event): Likewise.
5245 * jv-lang.c (java_op_print_tab): Likewise.
5246 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5247 * linux-nat.h (struct lwp_info): Likewise.
5248 * linux-thread-db.c (enable_thread_event): Likewise.
5249 * m2-lang.c (m2_op_print_tab): Likewise.
5250 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5251 (mi_cmd_stack_list_variables): Likewise.
5252 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5253 * mi/mi-out.c (mi_table_begin): Likewise.
5254 (mi_table_header): Likewise.
5255 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5256 (mips_linux_insert_watchpoint): Likewise.
5257 (mips_linux_remove_watchpoint): Likewise.
5258 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5259 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5260 (mips_linux_watch_type_to_irw): Likewise.
5261 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5262 (procfs_insert_hw_watchpoint): Likewise.
5263 (procfs_remove_hw_watchpoint): Likewise.
5264 (procfs_hw_watchpoint): Likewise.
5265 (procfs_can_use_hw_breakpoint): Likewise.
5266 (procfs_remove_hw_watchpoint): Likewise.
5267 (procfs_insert_hw_watchpoint): Likewise.
5268 * p-lang.c (pascal_op_print_tab): Likewise.
5269 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5270 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5271 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5272 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5273 (procfs_insert_watchpoint): Likewise.
5274 (procfs_remove_watchpoint): Likewise.
5275 * psymtab.c (recursively_search_psymtabs): Likewise.
5276 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5277 (m32r_insert_watchpoint): Likewise.
5278 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5279 (mips_insert_watchpoint): Likewise.
5280 (mips_remove_watchpoint): Likewise.
5281 * remote.c (watchpoint_to_Z_packet): Likewise.
5282 (remote_insert_watchpoint): Likewise.
5283 (remote_remove_watchpoint): Likewise.
5284 (remote_check_watch_resources): Likewise.
5285 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5286 (s390_remove_watchpoint): Likewise.
5287 (s390_can_use_hw_breakpoint): Likewise.
5288 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5289 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5290 * target.h (struct target_ops): Likewise.
5291 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5292 * ui-out.c (struct ui_out_hdr): Likewise.
5293 (append_header_to_list): Likewise.
5294 (get_next_header): Likewise.
5295 (verify_field): Likewise.
5296 (ui_out_begin): Likewise.
5297 (ui_out_field_int): Likewise.
5298 (ui_out_field_fmt_int): Likewise.
5299 (ui_out_field_skip): Likewise.
5300 (ui_out_field_string): Likewise.
5301 (ui_out_field_fmt): Likewise.
5302 * varobj.c (new_variable): Likewise.
5303 * x86-nat.c (x86_insert_watchpoint): Likewise.
5304 (x86_remove_watchpoint): Likewise.
5305 (x86_can_use_hw_breakpoint): Likewise.
5306 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5307 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5308 previously anonymous enumeration type..
5309 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5310 value.
5311 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5312 (target_debug_print_enum_bptype): New.
5313 * target-delegates.c: Regenerate.
5314
e1b5381f
SL
53152015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5316
5317 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5318 already says and disallow non-stack memory writes in the prologue.
5319
9aaf8e3a
SL
53202015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5321
5322 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5323 reflect how current GCC emits stack overflow checks. Match
5324 both trap and break instructions for backward compatbility.
5325 Disallow other trap and break instructions in the prologue.
5326
69dde7dc
PA
53272015-07-30 Pedro Alves <palves@redhat.com>
5328
5329 PR threads/18600
5330 * linux-nat.c (wait_lwp): Report to the core when thread group
5331 leader exits.
5332
4dd63d48
PA
53332015-07-30 Pedro Alves <palves@redhat.com>
5334 Simon Marchi <simon.marchi@ericsson.com>
5335
5336 PR threads/18600
5337 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5338 mark the new thread as resumed. Remove STOPPING parameter.
5339 (wait_lwp): Adjust call to linux_handle_extended_wait.
5340 (linux_nat_filter_event): Adjust call to
5341 linux_handle_extended_wait.
5342 (resume_stopped_resumed_lwps): Add debug output.
5343
6b940e6a
PL
53442015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5345
5346 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5347 isize argument.
5348 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5349 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5350 gdbarch_fast_tracepoint_valid_at.
5351 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5352 * gdbarch.h: Regenerate.
5353 * gdbarch.c: Regenerate.
5354 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5355 argument. Do not set it.
5356 * remote.c (remote_download_tracepoint): Adjust call to
5357 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5358 the instruction length.
5359
ec741292
YQ
53602015-07-30 Yao Qi <yao.qi@linaro.org>
5361
5362 * arm-tdep.h (enum gdb_regnum): Move it to ...
5363 * arch/arm.h: ... here. New file.
5364 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5365
0ea6402e
PL
53662015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5367
5368 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5369 Change its type to int *.
5370 (decode_br): Rename link argument to is_blr. Change its type to
5371 int *.
5372 (decode_cb): Rename op argument to is_cbnz. Change its type to
5373 int *.
5374 (decode_tb): Rename op argument to is_tbnz. Change its type to
5375 int *. Set is_tbnz to either 1 or 0.
5376 (aarch64_analyze_prologue): Change type of is_link to int. Add
5377 new variables is_cbnz and is_tbnz. Adjust call to
5378 aarch64_decode_cb and aarch64_decode_tb.
5379
aa58a496
SM
53802015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5381
5382 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5383 parameter.
5384 (mips_linux_new_thread): Likewise.
5385 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5386
18206ca3
PP
53872015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5388
5389 * top.c: Include "tui/tui.h".
5390 (undo_terminal_modifications_before_exit): New static function.
5391 (quit_force): Use it.
5392
7afa63c6
PP
53932015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5394
5395 * target.c (terminal_state): Initialize to terminal_is_ours.
5396
cc9f16aa
YQ
53972015-07-29 Yao Qi <yao.qi@linaro.org>
5398
5399 PR record/18691
5400 * dcache.c (dcache_read_memory_partial): Call
5401 raw_memory_xfer_partial.
5402 * target.c (raw_memory_xfer_partial): Make it non-static.
5403 * target.h (raw_memory_xfer_partial): Declare.
5404
3ae385af
SM
54052015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5406
5407 * c-valprint.c (c_val_print_array): Consider addressable memory
5408 unit size.
5409 (c_val_print_ptr): Likewise.
5410 (c_val_print_int): Likewise.
5411 * findvar.c (read_frame_register_value): Likewise.
5412 * valarith.c (find_size_for_pointer_math): Likewise.
5413 (value_ptrdiff): Likewise.
5414 (value_subscripted_rvalue): Likewise.
5415 * valops.c (read_value_memory): Likewise (and rename variables).
5416 (value_assign): Likewise.
5417 (value_repeat): Likewise.
5418 (value_array): Likewise.
5419 (value_slice): Likewise.
5420 * valprint.c (generic_val_print_ptr): Likewise.
5421 (generic_val_print_enum): Likewise.
5422 (generic_val_print_bool): Likewise.
5423 (generic_val_print_int): Likewise.
5424 (generic_val_print_char): Likewise.
5425 (generic_val_print_float): Likewise.
5426 (generic_val_print_decfloat): Likewise.
5427 (generic_val_print_complex): Likewise.
5428 (val_print_scalar_formatted): Likewise.
5429 (val_print_array_elements): Likewise.
5430 * value.c (set_value_parent): Likewise.
5431 (value_contents_copy_raw): Likewise.
5432 (set_internalvar_component): Likewise.
5433 (value_primitive_field): Likewise.
5434 (value_fetch_lazy): Likewise.
5435 * value.h (read_value_memory): Update comment.
5436
e512cdbd
SM
54372015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5438
5439 * value.c (get_value_arch): New function.
5440 * value.h (get_value_arch): New declaration.
5441
3723fda8
SM
54422015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5443
5444 * value.c (struct value): Update comments.
5445
2e056931
SM
54462015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5447
5448 * gdbtypes.c (type_length_units): New function.
5449 * gdbtypes.h (type_length_units): New declaration.
5450 (struct type) <length>: Update comment.
5451
0c87c0bf
SM
54522015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5453
5454 * valprint.c (generic_val_print): Factor out complex
5455 printing code to ...
5456 (generic_val_print_complex): ... this new function.
5457
9550ae5e
SM
54582015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5459
5460 * valprint.c (generic_val_print): Factor out decfloat
5461 printing code to ...
5462 (generic_val_print_decfloat): ... this new function.
5463
7784724b
SM
54642015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5465
5466 * valprint.c (generic_val_print): Factor out float
5467 printing code to ...
5468 (generic_val_print_float): ... this new function.
5469
385f5aff
SM
54702015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5471
5472 * valprint.c (generic_val_print): Factor out char
5473 printing code to ...
5474 (generic_val_print_char): ... this new function.
5475
b21b6342
SM
54762015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5477
5478 * valprint.c (generic_val_print): Factor out integer
5479 printing code to ...
5480 (generic_val_print_int): ... this new function.
5481
e5bead4b
SM
54822015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5483
5484 * valprint.c (generic_val_print): Factor out bool
5485 printing code to ...
5486 (generic_val_print_bool): ... this new function.
5487
4a8c372f
SM
54882015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * valprint.c (generic_val_print): Factor out function/method
5491 printing code to ...
5492 (generic_val_print_func): ... this new function.
5493
d93880bd
SM
54942015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5495
5496 * valprint.c (generic_val_print): Factor out flags
5497 printing code to ...
5498 (generic_val_print_flags): ... this new function.
5499
ef0bc0dd
SM
55002015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5501
5502 * valprint.c (generic_val_print): Factor out enum
5503 printing code to ...
5504 (generic_val_print_enum): ... this new function.
5505
fe43fede
SM
55062015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5507
5508 * valprint.c (generic_val_print): Factor out reference
5509 printing code to ...
5510 (generic_val_print_ref): ... this new function.
5511
45000ea2
SM
55122015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5513
5514 * valprint.c (generic_val_print): Factor out memberptr
5515 printing code to ...
5516 (generic_val_print_memberptr): ... this new function.
5517
81eb921a
SM
55182015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5519
5520 * valprint.c (generic_val_print): Factor out pointer
5521 printing code to ...
5522 (generic_val_print_ptr): ... this new function.
5523
557dbe8a
SM
55242015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5525
5526 * valprint.c (generic_val_print): Factor out array
5527 printing code to ...
5528 (generic_val_print_array): ... this new function.
5529
9f436164
SM
55302015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5531
5532 * valprint.c (generic_val_print): Factor out
5533 print_unpacked_pointer code to ...
5534 (print_unpacked_pointer): ... this new function.
5535
077836f7
PP
55362015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5537
5538 * event-top.c (handle_sigterm): Don't inspect
5539 target_can_async_p. Always set the quit flag and always mark
5540 the async signal handler.
5541
3a60804f
YQ
55422015-07-27 Yao Qi <yao.qi@linaro.org>
5543
5544 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5545
c9f35b34
KB
55462015-07-25 Kevin Buettner <kevinb@redhat.com>
5547
5548 * remote.c (read_ptid): Return null_ptid when no thread id
5549 is found.
5550 (remote_current_thread): Add log warning for malformed
5551 qC reply.
5552 (remote_start_remote): Add log warning when current thread
5553 not found.
5554
2b4cab86
PA
55552015-07-24 Pedro Alves <palves@redhat.com>
5556
5557 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5558 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5559 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5560
77598427
PA
55612015-07-24 Pedro Alves <palves@redhat.com>
5562
5563 PR gdb/18717
5564 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5565 is resumed, and extend the debug log.
5566
fe23c31f
PA
55672015-07-24 Pedro Alves <palves@redhat.com>
5568
5569 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5570
5826e159
PA
55712015-07-24 Pedro Alves <palves@redhat.com>
5572
5573 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5574 sys/ptrace.h.
5575 * alpha-linux-nat.c: Likewise.
5576 * amd64-linux-nat.c: Likewise.
5577 * arm-linux-nat.c: Likewise.
5578 * hppa-linux-nat.c: Likewise.
5579 * i386-linux-nat.c: Likewise.
5580 * ia64-linux-nat.c: Likewise.
5581 * linux-fork.c: Likewise.
5582 * linux-nat.c: Likewise.
5583 * m32r-linux-nat.c: Likewise.
5584 * m68klinux-nat.c: Likewise.
5585 * mips-linux-nat.c: Likewise.
5586 * nat/linux-btrace.c: Likewise.
5587 * nat/linux-ptrace.c: Likewise.
5588 * nat/linux-ptrace.h
5589 * nat/mips-linux-watch.c: Likewise.
5590 * nat/x86-linux-dregs.c: Likewise.
5591 * ppc-linux-nat.c: Likewise.
5592 * s390-linux-nat.c: Likewise.
5593 * spu-linux-nat.c: Likewise.
5594 * tilegx-linux-nat.c: Likewise.
5595 * x86-linux-nat.c: Likewise.
5596 * xtensa-linux-nat.c: Likewise.
5597
54019719
PA
55982015-07-24 Pedro Alves <palves@redhat.com>
5599
5600 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5601 __ptrace_request as first parameter type instead of int.
5602 (PTRACE_TYPE_ARG1): Define.
5603 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5604 that casts first argument to PTRACE_TYPE_ARG1.
5605 * config.in: Regenerate.
5606 * configure: Regenerate.
5607
e3790375
PA
56082015-07-24 Pedro Alves <palves@redhat.com>
5609
5610 * gdb_ptrace.h: Move ...
5611 * nat/gdb_ptrace.h: ... here.
5612 * inf-ptrace.c: Adjust.
5613
eb7aa561
PA
56142015-07-24 Pedro Alves <palves@redhat.com>
5615
5616 * acinclude.m4: Include ptrace.m4.
5617 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5618 * ptrace.m4: ... to this new file.
5619
cc12ce38
DE
56202015-07-23 Doug Evans <dje@google.com>
5621
5622 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5623 (load_cu): Handle dummy CUs.
5624 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5625 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5626
7b849db4
CS
56272015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5628
5629 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5630 documentation to say that it returns a list rather than
5631 a FrozenSet.
5632 (linetable_object_methods): Update the docstring of the
5633 "source_line" entry.
5634
d0d84780
PMR
56352015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5636
5637 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5638 type to the recursive call instead of the original (maybe
5639 TYPE_CODE_TYPEDEF) type.
5640
c2fbdc59
YQ
56412015-07-23 Yao Qi <yao.qi@linaro.org>
5642
5643 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5644 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5645 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5646
af1b22f3
YQ
56472015-07-21 Yao Qi <yao.qi@linaro.org>
5648
5649 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5650 Move it to nat/aarch64-linux-hw-point.c.
5651 (aarch64_linux_child_post_startup_inferior): Update.
5652 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5653 New function.
5654 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5655 Declare it.
5656
40e050d2
MM
56572015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5658
5659 * common/btrace-common.c (btrace_data_append): Change case label.
5660
3675a06a
YQ
56612015-07-20 Yao Qi <yao.qi@linaro.org>
5662
5663 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5664 Re-indent the code.
5665 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5666 "unsigned long long".
5667
b4e1fd61
KB
56682015-07-18 Kevin Buettner <kevinb@redhat.com>
5669
5670 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5671 to be set for SEC_ALLOC sections too.
5672
554717a3
YQ
56732015-07-17 Yao Qi <yao.qi@linaro.org>
5674
5675 * Makefile.in (HFILES_NO_SRCDIR): Add
5676 nat/aarch64-linux-hw-point.h.
5677 (aarch64-linux-hw-point.o): New rule.
5678 * nat/aarch64-linux-hw-point.h: New file.
5679 * nat/aarch64-linux-hw-point.c: New file.
5680 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5681 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5682 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5683 (AARCH64_HWP_ALIGNMENT): Likewise.
5684 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5685 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5686 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5687 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5688 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5689 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5690 (struct aarch64_debug_reg_state): Likewise.
5691 (struct arch_lwp_info): Likewise.
5692 (aarch64_linux_set_debug_regs): Likewise.
5693 (aarch64_notify_debug_reg_change): Remove static.
5694 (aarch64_align_watchpoint): Likewise.
5695 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5696 (aarch64_watchpoint_length): Likewise.
5697 (aarch64_point_encode_ctrl_reg): Likewise
5698 (aarch64_point_is_aligned): Likewise.
5699 (aarch64_dr_state_insert_one_point): Likewise.
5700 (aarch64_dr_state_remove_one_point): Likewise.
5701 (aarch64_handle_breakpoint): Likewise.
5702 (aarch64_handle_aligned_watchpoint): Likewise.
5703 (aarch64_handle_unaligned_watchpoint): Likewise.
5704 (aarch64_handle_watchpoint): Likewise.
5705 * config/aarch64/linux.mh (NAT_FILE): Add
5706 aarch64-linux-hw-point.o.
5707
c67ca4de
YQ
57082015-07-17 Yao Qi <yao.qi@linaro.org>
5709
5710 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5711 state and don't call aarch64_get_debug_reg_state. All callers
5712 update.
5713 (aarch64_linux_insert_hw_breakpoint): Call
5714 aarch64_get_debug_reg_state earlier.
5715 (aarch64_linux_remove_hw_breakpoint): Likewise.
5716 (aarch64_handle_aligned_watchpoint): Add argument state and
5717 don't call aarch64_get_debug_reg_state. All callers update.
5718 (aarch64_handle_unaligned_watchpoint): Likewise.
5719 (aarch64_handle_watchpoint): Add argument state.
5720 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5721 earlier.
5722 (aarch64_linux_remove_watchpoint): Likewise.
5723
25abf979
YQ
57242015-07-17 Yao Qi <yao.qi@linaro.org>
5725
5726 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5727 debug_printf.
5728 (aarch64_handle_unaligned_watchpoint): Likewise.
5729
2ecd81c2
YQ
57302015-07-17 Yao Qi <yao.qi@linaro.org>
5731
5732 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5733 argument type's type to 'enum target_hw_bp_type'.
5734 (aarch64_dr_state_remove_one_point): Likewise.
5735 (aarch64_handle_breakpoint): Likewise.
5736 (aarch64_linux_insert_hw_breakpoint): Likewise.
5737 (aarch64_linux_remove_hw_breakpoint): Likewise.
5738 (aarch64_handle_aligned_watchpoint): Likewise.
5739
e53b6938
YQ
57402015-07-17 Yao Qi <yao.qi@linaro.org>
5741
5742 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5743 ptid_get_pid instead of get_thread_id.
5744
6a49a997
YQ
57452015-07-17 Yao Qi <yao.qi@linaro.org>
5746
5747 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5748 (add_current_inferior_and_thread): Don't initialise ptid.
5749
4bcddace
PL
57502015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5751
5752 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5753 unavailable if invalid.
5754
db1ff28b
JK
57552015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 Revert the previous 6 commits:
5758 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5759 Move gdb_regex* to common/
5760 Prepare linux_find_memory_regions_full & co. for move
5761 Move linux_find_memory_regions_full & co.
5762 gdbserver build-id attribute generator
5763 Validate symbol file using build-id
5764
ca5268b6
JK
57652015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5766 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 Validate symbol file using build-id.
5769 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5770 and 'show validate-build-id'. Add build-id attribute.
5771 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5772 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5773 * solib-frv.c (_initialize_frv_solib): Ditto.
5774 * solib-spu.c (set_spu_solib_ops): Ditto.
5775 * solib-svr4.c: Include rsp-low.h.
5776 (NOTE_GNU_BUILD_ID_NAME): New define.
5777 (svr4_validate): New function.
5778 (svr4_copy_library_list): Duplicate field build_id.
5779 (library_list_start_library): Parse 'build-id' attribute.
5780 (svr4_library_attributes): Add 'build-id' attribute.
5781 (_initialize_svr4_solib): Assign validate value.
5782 * solib-target.c (solib.h): Include.
5783 (_initialize_solib_target): Assign validate value.
5784 * solib.c (validate_build_id, show_validate_build_id): New.
5785 (solib_map_sections): Use ops->validate.
5786 (clear_so): Free build_id.
5787 (default_solib_validate): New function.
5788 (_initialize_solib): Add "validate-build-id".
5789 * solib.h (default_solib_validate): New declaration.
5790 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5791 (target_so_ops): New field 'validate'.
5792
700ca40f
JK
57932015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5794 Jan Kratochvil <jan.kratochvil@redhat.com>
5795
5796 gdbserver build-id attribute generator.
5797 * features/library-list-svr4.dtd (library-list-svr4): New
5798 'build-id' attribute.
5799
9904185c
JK
58002015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5801 Jan Kratochvil <jan.kratochvil@redhat.com>
5802
5803 Move linux_find_memory_regions_full & co.
5804 * linux-tdep.c (nat/linux-maps.h): Include.
5805 (gdb_regex.h): Remove the include.
5806 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5807 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5808 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5809 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5810 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5811 and target/target.h.
5812 (struct smaps_vmflags, read_mapping, decode_vmflags)
5813 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5814 (linux_find_memory_regions_full): Move from linux-tdep.c.
5815 * nat/linux-maps.h (read_mapping): New declaration.
5816 (linux_find_memory_region_ftype, enum filterflags): Moved from
5817 linux-tdep.c.
5818 (linux_find_memory_regions_full): New declaration.
5819 * target.c (target/target-utils.h): Include.
5820 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5821 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5822 definitions to target/target-utils.c.
5823 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5824 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5825 from target.c.
5826 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5827 (read_alloc): New declaration.
5828 (read_stralloc_func_ftype): New typedef.
5829 (read_stralloc): New declaration.
5830 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5831
f7af1fcd
JK
58322015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5833 Jan Kratochvil <jan.kratochvil@redhat.com>
5834
5835 Prepare linux_find_memory_regions_full & co. for move.
5836 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5837 (linux_find_memory_regions_full): Change signature and prepare
5838 for moving to linux-maps.
5839 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5840 (linux_find_memory_regions_thunk): New.
5841 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5842 (linux_find_memory_regions_gdb): New.
5843 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5844 (linux_make_mappings_corefile_notes): Use
5845 linux_find_memory_regions_gdb.
5846 * target.c (read_alloc_pread_ftype): New typedef.
5847 (target_fileio_read_alloc_1_pread): New function.
5848 (read_alloc): Refactor from target_fileio_read_alloc_1.
5849 (read_stralloc_func_ftype): New typedef.
5850 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5851 (read_stralloc): Refactored from target_fileio_read_stralloc.
5852 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5853
6e5b4429
JK
58542015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5855
5856 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5857 common/gdb_regex.h.
5858 (COMMON_OBS): Add gdb_regex.o.
5859 (gdb_regex.o): New.
5860 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5861 --without-included-regex and USE_INCLUDED_REGEX.
5862 * common/gdb_regex.c: New file from utils.c functions.
5863 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5864 file wrapping define name.
5865 * configure: Rebuilt.
5866 * configure.ac (gdb_use_included_regex, --without-included-regex)
5867 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5868 * gdb_regex.h: Move it to common/gdb_regex.h.
5869 * utils.c: Remove include gdb_regex.h.
5870 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5871 (compile_rx_or_error): Move them to common/gdb_regex.c.
5872
ddc98fbf
JK
58732015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5874 Jan Kratochvil <jan.kratochvil@redhat.com>
5875
5876 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5877 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5878 common/target-utils.h.
5879 (COMMON_OBS): Add target-utils.o.
5880 (linux-maps.o, target-utils.o): New.
5881 * target/target-utils.c: New file.
5882 * target/target-utils.h: New file.
5883 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5884 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5885 * nat/linux-maps.c: New file.
5886 * nat/linux-maps.h: New file.
5887
e7b01ce0
MM
58882015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5889 Pedro Alves <palves@redhat.com>
5890
5891 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5892 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5893 (perf_event_read_bts): Change the type of SIZE and READ.
5894 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5895 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5896 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5897 mmap page.
5898 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5899 buffer size to UINT_MAX.
5900 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5901 DATA_TAIL.
5902 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5903 <last_head>: Change type.
5904 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5905 * common/btrace-common.c (btrace_data_append): Change the type of
5906 SIZE.
5907 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5908 check.
5909
f168693b
SM
59102015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5911
5912 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5913 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5914 with check_typedef.
5915 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5916 (ada_array_length): Likewise.
5917 (find_parallel_type_by_descriptive_type): Likewise.
5918 (ada_check_typedef): Likewise.
5919 * arm-tdep.c (arm_return_in_memory): Likewise.
5920 * ax-gdb.c (gen_trace_static_fields): Likewise.
5921 (gen_struct_ref_recursive): Likewise.
5922 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5923 (variable: block COLONCOLON name): Likewise.
5924 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5925 * c-lang.c (classify_type): Likewise.
5926 * c-typeprint.c (c_print_type): Likewise.
5927 (c_print_typedef): Likewise.
5928 (c_type_print_base): Likewise.
5929 * c-valprint.c (c_val_print): Likewise.
5930 * compile/compile-c-types.c (convert_type): Likewise.
5931 * compile/compile-object-load.c (get_out_value_type): Likewise.
5932 * completer.c (add_struct_fields): Likewise.
5933 (expression_completer): Likewise.
5934 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5935 (cp_lookup_nested_symbol_1): Likewise.
5936 (cp_lookup_nested_symbol): Likewise.
5937 * cp-valprint.c (cp_print_value_fields): Likewise.
5938 (cp_print_static_field): Likewise.
5939 * d-valprint.c (d_val_print): Likewise.
5940 * eval.c (evaluate_subexp_standard): Likewise.
5941 (evaluate_subexp_for_sizeof): Likewise.
5942 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5943 * f-typeprint.c (f_type_print_base): Likewise.
5944 * f-valprint.c (f_val_print): Likewise.
5945 * gdbtypes.c (get_discrete_bounds): Likewise.
5946 (create_array_type_with_stride): Likewise.
5947 (type_name_no_tag_or_error): Likewise.
5948 (lookup_struct_elt_type): Likewise.
5949 (get_unsigned_type_max): Likewise.
5950 (internal_type_vptr_fieldno): Likewise.
5951 (set_type_vptr_fieldno): Likewise.
5952 (internal_type_vptr_basetype): Likewise.
5953 (set_type_vptr_basetype): Likewise.
5954 (get_vptr_fieldno): Likewise.
5955 (is_integral_type): Likewise.
5956 (is_scalar_type): Likewise.
5957 (is_scalar_type_recursive): Likewise.
5958 (distance_to_ancestor): Likewise.
5959 (is_unique_ancestor_worker): Likewise.
5960 (check_types_equal): Likewise.
5961 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5962
45280282
IB
59632015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5964
5965 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5966 also test for language_d.
5967 (dwarf2_compute_name): Likewise.
5968 (read_func_scope): Likewise.
5969 (read_structure_type): Likewise.
5970 (new_symbol_full): Likewise.
5971 (determine_prefix): Likewise.
5972 (read_import_statement): Use dot as the separator for language_d.
5973 (typename_concat): Likewise, but don't prefix the D main function.
5974
99fe86f7
PB
59752015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5976
5977 * nat/linux-namespaces.c (setns): Rename from this ...
5978 (do_setns): ... to this. Support calling setns if it exists.
5979 (mnsh_handle_setns): Call do_setns.
5980
d5131498
YQ
59812015-07-13 Yao Qi <yao.qi@linaro.org>
5982
5983 * exec.c (exec_file_attach): Add period at the end of error
5984 message.
5985
97605e61
AB
59862015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5987
5988 * tui/tui-win.c (window_name_completer): New function.
5989 (focus_completer): Call window_name_completer. All old content
5990 moved into window_name_completer.
5991 (winheight_completer): New function.
5992 (_initialize_tui_win): Rename variable. Add completer to
5993 winheight command. Update doc string on winheight.
5994
8d6dbeb4
SL
59952015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5996
5997 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5998 all nios2 mach variants.
5999
a0e28e54
KB
60002015-07-10 Kevin Buettner <kevinb@redhat.com>
6001
6002 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6003 of target_read_memory.
6004
c101f28f
AB
60052015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6006
6007 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6008 string copy.
6009 (parse_scrolling_args): Likewise.
6010
150375dc
AB
60112015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6012
6013 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6014 names in this function.
6015
6dce28e4
AB
60162015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6017
6018 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6019 (CMD_NAME): Likewise.
6020 (DATA_NAME): Likewise.
6021 (DISASSEM_NAME): Likewise.
6022 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6023 (tui_set_win_height): Likewise.
6024 (parse_scrolling_args): Likewise.
6025
485668e5
MM
60262015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6027
6028 * record-btrace.c (record_btrace_goto_begin)
6029 (record_btrace_goto_end, record_btrace_goto): Move call to
6030 print_stack_frame ...
6031 (record_btrace_set_replay): ... here. Set stop_pc.
6032 * record-full.c (record_full_goto_entry): Set stop_pc.
6033
58d2eda5
PL
60342015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6035
6036 * NEWS: Mention support for tracepoints on aarch64-linux.
6037
7671bf47
PL
60382015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6039
6040 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6041 function. Return 1.
6042 (the_low_target): Install it.
6043
7890fb45
PL
60442015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6045
6046 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6047 * gdb.trace/collection.exp: Likewise.
6048 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6049 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6050 * gdb.trace/report.exp: Likewise.
6051 * gdb.trace/trace-break.exp: Likewise.
6052 * gdb.trace/unavailable.exp: Likewise.
6053 * gdb.trace/while-dyn.exp: Likewise.
6054
ea873d8e
PL
60552015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6056
6057 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6058 (aarch64_gen_return_address): New function.
6059 (aarch64_gdbarch_init): Hook it.
6060
02a2a705
PL
60612015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6062
6063 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6064 swallow NOT_AVAILABLE_ERROR.
6065 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6066 available_p is not set.
6067 (aarch64_stub_frame_unwind_stop_reason): New function.
6068 (aarch64_stub_unwind): Install it.
6069
7dfa3edc
PL
60702015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6071
6072 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6073 field.
6074 (aarch64_make_prologue_cache_1): New function, factored out from
6075 aarch64_make_prologue_cache. Do not allocate cache. Set
6076 available_p.
6077 (aarch64_make_prologue_cache): Reimplement wrapping
6078 aarch64_make_prologue_cache_1, and swallowing
6079 NOT_AVAILABLE_ERROR.
6080 (aarch64_prologue_frame_unwind_stop_reason): New function.
6081 Return UNWIND_UNAVAILABLE if available_p is not set.
6082 (aarch64_prologue_unwind): Install it.
6083 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6084 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6085 frame_id_build_unavailable_stack if available_p is not set.
6086
db634143
PL
60872015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6088
6089 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6090 fields.
6091 (aarch64_scan_prologue): Set prev_pc.
6092 (aarch64_make_prologue_cache): Set func.
6093 (aarch64_make_stub_cache): Set prev_pc.
6094 (aarch64_prologue_this_id): Remove local variables id, pc and
6095 func. Read prev_pc and func from cache.
6096 (aarch64_stub_this_id): Read prev_pc from cache.
6097
8b61f75d
PL
60982015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6099
6100 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6101 argument this_cache. Remove unused local variables reg and
6102 unwound_fp. Return early if this_cache is already set. Set
6103 this_cache.
6104 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6105
7c8edfae
PL
61062015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6107
6108 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6109 New argument this_cache. Return early if this_cache is already
6110 set. Set this_cache.
6111 (aarch64_prologue_this_id): Update call to
6112 aarch64_make_prologue_cache.
6113 (aarch64_prologue_prev_register): Likewise.
6114 (aarch64_normal_frame_base): Likewise.
6115
938c69a1
SM
61162015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6117
6118 * c-valprint.c (c_val_print): Factor out memberptr printing code
6119 from c_val_print to ...
6120 (c_val_print_memberptr): ... this new function.
6121
49f7fe28
SM
61222015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6123
6124 * c-valprint.c (c_val_print): Factor out int printing code to ...
6125 (c_val_print_int): ... this new function.
6126
9e4f353c
SM
61272015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6128
6129 * c-valprint.c (c_val_print): Factor out struct and union
6130 printing code to ...
6131 (c_val_print_struct): ... this new function ...
6132 (c_val_print_union): ... and this new function.
6133
1c67f032
SM
61342015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * c-valprint.c (c_val_print): Factor out pointer printing code
6137 to ...
6138 (c_val_print_ptr): ... this new function.
6139
0b6ef777
SM
61402015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * c-valprint.c (c_valprint): Factor our array printing code from
6143 c_val_print to ...
6144 (c_val_print_array): ... this new function.
6145
1033c33c
SM
61462015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6147
6148 * c-valprint.c (c_val_print): Factor out pointer printing code
6149 to ...
6150 (print_unpacked_pointer): ... this new function.
6151
f6b93c34
SM
61522015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6153
6154 * c-valprint.c (c_val_print): Remove an assignment to i and move
6155 its declaration.
6156
0f4576e3
YQ
61572015-07-09 Yao Qi <yao.qi@linaro.org>
6158
6159 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6160 argument ptid. Update comments. Caller update.
6161
37fdfe4c
MM
61622015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6163
6164 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6165 mnt packets.
6166
80a2b330
MM
61672015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6168
6169 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6170
4ab31498
SM
61712015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6172
6173 * progspace.c (delete_program_space): Add missing spaces.
6174
7a41607e
SM
61752015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * inferior.c (delete_inferior_1): Rename to ...
6178 (delete_inferior): ..., remove 'silent' parameter, delete
6179 program space when unused and remove call to prune_program_spaces.
6180 Remove the old, unused, delete_inferior.
6181 (delete_inferior_silent): Remove.
6182 (prune_inferiors): Change call from delete_inferior_1 to
6183 delete_inferior and remove 'silent' parameter. Remove call to
6184 prune_program_spaces.
6185 (remove_inferior_command): Idem.
6186 * inferior.h (delete_inferior_1): Rename to...
6187 (delete_inferior): ..., remove 'silent' parameter and remove the
6188 original delete_inferior.
6189 (delete_inferior_silent): Remove.
6190 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6191 delete_inferior_1 to delete_inferior and remove 'silent'
6192 parameter.
6193 * progspace.c (prune_program_spaces): Remove.
6194 (pspace_empty_p): Rename to...
6195 (program_space_empty_p): ... and make non-static.
6196 (delete_program_space): New.
6197 * progspace.h (prune_program_spaces): Remove declaration.
6198 (program_space_empty_p): New declaration.
6199 (delete_program_space): New declaration.
6200 * monitor.c (monitor_close): Replace call to
6201 delete_thread_silent and delete_inferior_silent with
6202 discard_all_inferiors.
6203
a9bd710f
PP
62042015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6205
6206 * defs.h (deprecated_register_changed_hook): Remove prototype.
6207 * interps.c (clear_iterpreter_hooks): Remove reference to
6208 deprecated_register_changed_hook.
6209 * top.c (deprecated_register_changed_hook): Remove prototype.
6210 * valops.c (value_assign): Remove reference to
6211 deprecated_register_changed_hook.
6212 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6213 Add comment documenting the function.
6214 (tui_register_changed_observer): Define.
6215 (tui_install_hooks): Remove reference to
6216 deprecated_register_changed_hook. Set
6217 tui_register_changed_observer.
6218 (tui_remove_hooks): Remove reference to
6219 deprecated_register_changed_hook. Unset
6220 tui_register_changed_observer.
6221
08464196
JK
62222015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6223
6224 PR compile/18484
6225 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6226
bcf5c1d9
RC
62272015-07-08 Robert O'Callahan <robert@ocallahan.org>
6228
6229 PR exp/18617
6230 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6231
e8643a45
MM
62322015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6233
6234 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6235
76fb6829
MM
62362015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6237
6238 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6239 Use safe_strerror() instead of strerror().
6240
82c40d4b
YQ
62412015-07-07 Yao Qi <yao.qi@linaro.org>
6242
6243 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6244 * features/arm-with-m-fpa-layout.c: Regenerated.
6245 * features/arm-with-m-vfp-d16.xml: Likewise.
6246 * features/arm-with-m-vfp-d16.c: Regenerated.
6247 * features/arm-with-m.xml: Likewise.
6248 * features/arm-with-m.c: Regenerated.
6249 * features/arm-with-neon.xml: Likewise.
6250 * features/arm-with-neon.c: Regenerated.
6251 * features/arm-with-vfpv2.xml: Likewise.
6252 * features/arm-with-vfpv2.c: Regenerated.
6253 * features/arm-with-vfpv3.xml: Likewise.
6254 * features/arm-with-vfpv3.c: Regenerated.
6255
607685ec
YQ
62562015-07-07 Yao Qi <yao.qi@linaro.org>
6257
6258 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6259 arm-linux-nat.c.
6260 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6261 elf/external.h.
6262 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6263 if target is 32-bit.
6264 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6265 if target is 32-bit.
6266 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6267 if target is 32-bit.
6268 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6269 if target is 32-bit.
6270 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6271 (aarch64_linux_read_description): Return the right target
6272 description.
6273 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6274 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6275 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6276 arm-linux-tdep.o.
6277
f1b67888
YQ
62782015-07-07 Yao Qi <yao.qi@linaro.org>
6279
6280 * aarch32-linux-nat.c: New file.
6281 * aarch32-linux-nat.h: New file.
6282 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6283 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6284 aarch32_gp_regcache_supply.
6285 (store_regs): Move code to aarch32-linux-nat.c. Call
6286 aarch32_gp_regcache_collect.
6287 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6288 aarch32_vfp_regcache_supply.
6289 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6290 aarch32_vfp_regcache_collect.
6291 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6292
179bfe82
YQ
62932015-07-07 Yao Qi <yao.qi@linaro.org>
6294
6295 * arm-linux-nat.c (store_fpregister): Remove.
6296 (store_register): Likewise.
6297 (fetch_fpregister): Likewise.
6298 (fetch_register): Likewise.
6299 (arm_linux_store_inferior_registers): Call store_regs and
6300 store_fpregs instead.
6301 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6302 fetch_regs instead.
6303
6008fc5f
AB
63042015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6305
6306 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6307 and focus commands.
6308
7c79d316
JB
63092015-07-06 Joel Brobecker <brobecker@adacore.com>
6310
6311 * NEWS: Create a new section for the next release branch.
6312 Rename the section of the current branch, now that it has
6313 been cut.
6314
f2232bea
JB
63152015-07-06 Joel Brobecker <brobecker@adacore.com>
6316
6317 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6318 * version.in: Bump version to 7.10.50.DATE-cvs.
6319
66c4b3e8
LM
63202015-07-06 Luis Machado <lgustavo@codesourcery.com>
6321
6322 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6323 breakpoints in a special way.
6324 (remove_breakpoint): Likewise.
6325 (mark_breakpoints_out): Likewise.
6326
bcd8537c
AB
63272015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6328
6329 * doc/gdb.texinfo (TUI): Add comma after @xref.
6330
10e9aaa3
AB
63312015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6334 instead of casting the structure type.
6335
8a13d42d
SM
63362015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6337
6338 * valops.c (search_struct_field): Remove OFFSET parameter.
6339 (value_cast_structs): Adjust calls to search_struct_field.
6340 (value_struct_elt): Same.
6341 (find_overload_match): Same.
6342
a844296a
SM
63432015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6344
6345 * value.c (value_fetch_lazy): Update comment, change return
6346 value to void.
6347 * value.h (value_fetch_lazy): Change return value to void.
6348
f41cbf58
AB
63492015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6352 (tui_win_name): Make parameter and result const.
6353 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6354
118ca224
PP
63552015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6356
6357 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6358 use printf_unfiltered.
6359 (set_mpx_cmd): Add missing trailing space to command string
6360 literal.
6361 (_initialize_i386_tdep): Give the "mpx" prefix command its
6362 correct name.
6363
1b485e67
KB
63642015-07-02 Kevin Buettner <kevinb@redhat.com>
6365
6366 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6367 (enum rx_frame_type): New.
6368 (struct rx_prologue): Add new field `frame_type'.
6369 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6370 parameter in the prologue struct. Add code for recording
6371 locations of PC and PSW for fast interrupt and exception frames.
6372 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6373 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6374 (rx_frame_type): New function.
6375 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6376 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6377 `this_cache'.
6378 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6379 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6380 RX_FRAME_TYPE_FAST_INTERRUPT.
6381 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6382 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6383 (rx_frame_unwind): Use rx_frame_sniffer instead of
6384 default_frame_sniffer.
6385 (rx_frame_unwind): New unwinder.
6386 (rx_gdbarch_init): Register new unwinder.
6387
0561fea4
KB
63882015-07-02 Kevin Buettner <kevinb@redhat.com>
6389
6390 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6391 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6392 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6393 and RX_FPSW_REGNUM.
6394 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6395
decf8d9a
JK
63962015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 Fix GCC false warning.
6399 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6400
2fd0f80d
YQ
64012015-07-02 Yao Qi <yao.qi@linaro.org>
6402
6403 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6404 typo in the debugging message.
6405
b0627500
MM
64062015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6407
6408 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6409 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6410 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6411 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6412 (btrace_maint_clear): New.
6413 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6414 (pt_print_packet, btrace_maint_decode_pt)
6415 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6416 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6417 (maint_btrace_packet_history_cmd)
6418 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6419 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6420 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6421 (maint_info_btrace_cmd, _initialize_btrace): New.
6422 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6423 (btrace_maint_packet_history, btrace_maint_info): New.
6424 (btrace_thread_info) <maint>: New.
6425 * NEWS: Announce it.
6426
9be54cae
MM
64272015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6428
6429 * btrace.c (btrace_fetch): Append the new trace data.
6430 (btrace_clear): Clear the stored trace data.
6431 * btrace.h (btrace_thread_info) <data>: New.
6432 * common/btrace-common.h (btrace_data_clear)
6433 (btrace_data_append): New.
6434 * common/btrace-common.c (btrace_data_clear)
6435 (btrace_data_append): New.
6436
010a18a1
MM
64372015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6438
6439 * nat/linux-btrace.c (linux_enable_bts): Check for
6440 PERF_ATTR_SIZE_VER5.
6441 Check for data_offset and data_size fields. Use them.
6442
b20a6524
MM
64432015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6444
6445 * NEWS: Announce new commands "record btrace pt" and "record pt".
6446 Announce new options "set|show record btrace pt buffer-size".
6447 * btrace.c: Include "rsp-low.h".
6448 Include "inttypes.h".
6449 (btrace_add_pc): Add forward declaration.
6450 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6451 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6452 (btrace_compute_ftrace_pt): New.
6453 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6454 (check_xml_btrace_version): Update version check.
6455 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6456 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6457 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6458 (btrace_pt_children): New.
6459 (btrace_children): Add support for "pt".
6460 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6461 (btrace_conf_children): Add support for "pt".
6462 * btrace.h: Include "intel-pt.h".
6463 (btrace_pt_error): New.
6464 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6465 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6466 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6467 (struct btrace_config_pt): New.
6468 (struct btrace_config)<pt>: New.
6469 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6470 (struct btrace_data)<pt>: New.
6471 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6472 (pt): New.
6473 * features/btrace.dtd (btrace)<pt>: New.
6474 (pt, pt-config, cpu): New.
6475 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6476 (perf_event_pt_event_type, kernel_supports_pt)
6477 (linux_supports_pt): New.
6478 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6479 (linux_enable_bts): Free tinfo on error.
6480 (linux_enable_pt): New.
6481 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6482 (linux_disable_pt): New.
6483 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6484 (linux_fill_btrace_pt_config, linux_read_pt): New.
6485 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6486 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6487 (struct btrace_target_info)<pt>: New.
6488 * record-btrace.c (set_record_btrace_pt_cmdlist)
6489 (show_record_btrace_pt_cmdlist): New.
6490 (record_btrace_print_pt_conf): New.
6491 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6492 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6493 (cmd_record_btrace_pt_start): New.
6494 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6495 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6496 (_initialize_record_btrace): Add new commands.
6497 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6498 (remote_protocol_features): Add "Qbtrace:pt".
6499 Add "Qbtrace-conf:pt:size".
6500 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6501 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6502 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6503 (_initialize_remote): Add new commands.
6504
58bfce93
MM
65052015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6506
6507 * configure.ac: check for libipt
6508 * configure: Regenerate.
6509 * config.in: Regenerate.
6510 * Makefile.in (LIBIPT): New.
6511 (CLIBS): Add $LIBIPT.
6512 * NEWS: document new configure options
6513
b0fd6b30
JK
65142015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6515
6516 * compile/compile-object-load.c (compile_object_load): Replace debug
6517 message "lookup undefined ELF symbol" by 3 more specific messages.
6518
e6280369
KB
65192015-07-01 Kevin Buettner <kevinb@redhat.com>
6520
6521 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6522 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6523 (rl78_gdbarch_init): Initialize rl78_psw_type.
6524
bbcbf914
PP
65252015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6526
6527 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6528 Update commentary. Always refresh the registers when frame
6529 information has changed.
6530 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6531 Change return type to int. Return 1 if frame information has
6532 changed, 0 otherwise.
6533 (tui_before_prompt): Update commentary.
6534 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6535 int.
6536
0986c744
PP
65372015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6538
6539 PR tui/13378
6540 * frame.c (select_frame): Remove reference to
6541 deprecated_selected_frame_level_changed_hook.
6542 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6543 declaration.
6544 * stack.c (deprecated_selected_frame_level_changed_hook):
6545 Likewise.
6546 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6547 Rename to ...
6548 (tui_refresh_frame_and_register_information): ... this. Bail
6549 out if there is no stack. Don't update register information
6550 unless registers_too_p is true.
6551 (tui_print_frame_info_listing_hook): Rename to ...
6552 (tui_dummy_print_frame_info_listing_hook): ... this.
6553 (tui_before_prompt): New function.
6554 (tui_normal_stop): New function.
6555 (tui_before_prompt_observer): New observer.
6556 (tui_normal_stop_observer): New observer.
6557 (tui_install_hooks): Set
6558 deprecated_print_frame_info_listing_hook to
6559 tui_dummy_print_frame_info_listing_hook. Register
6560 tui_before_prompt_observer to call tui_before_prompt and
6561 tui_normal_stop_observer to call tui_normal_stop. Remove
6562 reference to deprecated_selected_frame_level_changed_hook.
6563 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6564 and tui_normal_stop_observer. Remove reference to
6565 deprecated_selected_frame_level_changed_hook.
6566
b5fca6d7
PP
65672015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6568
6569 PR tui/13378
6570 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6571 return an int instead of void. Return whether the locator
6572 window has changed.
6573 (tui_show_frame_info): If the locator info has not changed, then
6574 bail out early to avoid refreshing the windows.
6575
c45613e3
PP
65762015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6577
6578 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6579 LOCATOR_WIN to tui_alloc_content.
6580
7b9be803
YQ
65812015-06-30 Yao Qi <yao.qi@linaro.org>
6582
6583 PR tdep/18605
6584 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6585 instructions.
6586
fd6e021d
KB
65872015-06-29 Kevin Buettner <kevinb@redhat.com>
6588
78ab7e9d
KB
6589 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6590 (rx_dwarf_reg_to_regnum): New function.
6591 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6592 unwinding.
fd6e021d 6593
28bf096c
PA
65942015-06-29 Pedro Alves <palves@redhat.com>
6595
6596 PR threads/18127
6597 * infcall.c (run_inferior_call): On infcall success, if the thread
6598 was marked stopped before, reset it back to stopped.
6599 * infrun.c (resume): Don't suppress the set_running calls when
6600 doing an infcall.
6601 (normal_stop): Only discard the finish_thread_state cleanup if the
6602 infcall succeeded.
6603
2880b51c 66042015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6605
6606 * MAINTAINERS (Write After Approval): Update my email address.
6607
ee93cd5e
KS
66082015-06-26 Keith Seitz <keiths@redhat.com>
6609 Doug Evans <dje@google.com>
6610
6611 PR 16253
6612 * block.c (block_lookup_symbol): For non-function blocks,
6613 continue to search for a symbol with an exact domain match
6614 Otherwise, return any previously found "best domain" symbol.
6615 (block_lookup_symbol_primary): Likewise.
6616
fc637f04
PP
66172015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6618
6619 * NEWS: Mention the new option "history remove-duplicates".
6620 * top.c (history_remove_duplicates): New static variable.
6621 (show_history_remove_duplicates): New static function.
6622 (gdb_add_history): Conditionally remove duplicate history
6623 entries.
6624 (init_main): Add "history remove-duplicates" option.
6625
2e52ae68
PP
66262015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6627
6628 * tui/tui-win.c (focus_completer): New static function.
6629 (_initialize_tui_win): Set the completion function of the
6630 "focus" command to focus_completer.
6631
6e22494e
JK
66322015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6635 and language_asm..
6636 * symtab.c (find_function_start_sal): Likewise.
6637
f8773be1
GB
66382015-06-25 Gary Benson <gbenson@redhat.com>
6639
6640 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6641 it is the empty string after trailing slashes have been stripped.
6642
a3be80c3
GB
66432015-06-25 Gary Benson <gbenson@redhat.com>
6644
6645 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6646 * infrun.c (follow_exec): Likewise.
6647 * remote.c (remote_filesystem_is_local): Likewise.
6648 * solib.c (solib_find_1): Likewise.
6649
32fad71f
KS
66502015-06-24 Keith Seitz <keiths@redhat.com>
6651
6652 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6653 return value from lrealpath.
6654
87d1b309
MF
66552015-06-24 Mike Frysinger <vapier@gentoo.org>
6656
6657 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6658
23bf70af
MF
66592015-06-24 Mike Frysinger <vapier@gentoo.org>
6660
6661 * remote-sim.c: Include gdb_bfd.h.
6662 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6663 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6664
5cd867b4
YQ
66652015-06-24 Yao Qi <yao.qi@linaro.org>
6666
6667 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6668 set_gdbarch_get_siginfo_type.
6669 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6670 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6671 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6672 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6673 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6674 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6675 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6676 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6677 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6678 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6679
dc06243f
GB
66802015-06-24 Gary Benson <gbenson@redhat.com>
6681
6682 * common/buffer.c (stdint.h): Do not include.
6683 * common/print-utils.c (stdint.h): Likewise.
6684 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6685 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6686 * ft32-tdep.c (gdb_assert.h): Likewise.
6687 * guile/scm-utils.c (stdint.h): Likewise.
6688 * i386-linux-tdep.c (stdint.h): Likewise.
6689 * i386-tdep.c (stdint.h): Likewise.
6690 * nat/linux-btrace.c (stdint.h): Likewise.
6691 * nat/linux-btrace.h (stdint.h): Likewise.
6692 * nat/linux-ptrace.c (stdint.h): Likewise.
6693 * nat/mips-linux-watch.h (stdint.h): Likewise.
6694 * ppc-linux-nat.c (stdint.h): Likewise.
6695 * python/python-internal.h (stdint.h): Likewise.
6696 * stub-termcap.c (stdlib.h): Likewise.
6697 * target/target.h (stdint.h): Likewise.
6698 * xtensa-linux-nat.c (stdint.h): Likewise.
6699
0fc26caf
PP
67002015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6701
6702 * top.c (init_history): Look at errno after calling strtol to
6703 properly map large GDBHISTSIZE values to infinity.
6704
a38fe4fe
DE
67052015-06-23 Doug Evans <dje@google.com>
6706
6707 * inferior.h (struct inferior_suspend_state): Delete, unused.
6708 All references deleted.
6709
7564fe45
MF
67102015-06-23 Mike Frysinger <vapier@gentoo.org>
6711
6712 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6713 (microblaze_push_dummy_call): Likewise.
6714 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6715 and set_gdbarch_push_dummy_call.
6716
0bdb2f78
YQ
67172015-06-23 Yao Qi <yao.qi@linaro.org>
6718
6719 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6720 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6721 (amd64_linux_store_inferior_registers): Likewise.
6722 * arm-linux-nat.c (fetch_fpregister): Likewise.
6723 (fetch_fpregs, store_fpregister): Likewise.
6724 (store_fpregister, store_fpregs): Likewise.
6725 (fetch_register, fetch_regs): Likewise.
6726 (store_register, store_regs): Likewise.
6727 (fetch_vfp_regs, store_vfp_regs): Likewise.
6728 (arm_linux_read_description): Check have_ptrace_getregset is
6729 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6730 or TRIBOOL_FALSE.
6731 * i386-linux-nat.c (fetch_xstateregs): Check
6732 have_ptrace_getregset is not TRIBOOL_TRUE.
6733 (store_xstateregs): Likewise.
6734 * linux-nat.c (have_ptrace_getregset): Change its type to
6735 enum tribool.
6736 * linux-nat.h (tribool): New enum.
6737 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6738 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6739
18a94d75
DE
67402015-06-19 Doug Evans <dje@google.com>
6741
6742 * NEWS: Mention Sun's version of stabs is no longer supported.
6743 * elfread.c (free_elfinfo): Delete. All uses updated.
6744 (elfstab_offset_sections): Delete. All uses updated.
6745 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6746 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6747 All uses updated.
6748 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6749 All callers updated.
6750
124e13d9
SM
67512015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6752
6753 * common/rsp-low.c (needs_escaping): New.
6754 (remote_escape_output): Add unit_size parameter. Refactor to
6755 support multi-byte addressable units. Rename parameters.
6756 * common/rsp-low.h (remote_escape_output): Add unit_size
6757 parameter and rename others. Update doc.
6758 * remote.c (align_for_efficient_write): New.
6759 (remote_write_bytes_aux): Add unit_size parameter and use it.
6760 Rename some variables. Update doc.
6761 (remote_xfer_partial): Get unit size and use it.
6762 (remote_read_bytes_1): Add unit_size parameter and use it.
6763 Rename some variables. Update doc.
6764 (remote_write_bytes): Same.
6765 (remote_xfer_live_readonly_partial): Same.
6766 (remote_read_bytes): Same.
6767 (remote_flash_write): Update call to remote_write_bytes_aux.
6768 (remote_write_qxfer): Update call to remote_escape_output.
6769 (remote_search_memory): Same.
6770 (remote_hostio_pwrite): Same.
6771
6ae88661
LM
67722015-06-17 Luis Machado <lgustavo@codesourcery.com>
6773
6774 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6775 locations as inserted.
6776 Update and expand comment about permanent locations.
6777 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6778 Move comment to add_location_to_breakpoint.
6779 (update_global_location_list): Don't error out if a permanent
6780 breakpoint is not marked inserted.
6781 Don't error out if a non-permanent breakpoint location is inserted on
6782 top of a permanent breakpoint.
6783
da4616f6
LM
67842015-06-17 Luis Machado <lgustavo@codesourcery.com>
6785
6786 * breakpoint.c (make_breakpoint_permanent): Remove unused
6787 function.
6788 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6789
bc460514
PP
67902015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6791
6792 PR gdb/16999
6793 * NEWS: Mention new GDBHISTSIZE behavior.
6794 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6795 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6796
b58c513b
PP
67972015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6798
6799 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6800 * top.c (init_history): Read from GDBHISTSIZE instead of
6801 HISTSIZE.
6802 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6803
2093d2d3
PP
68042015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6805
6806 * top.c (gdb_safe_append_history): Do not call
6807 history_truncate_file if the history is not stifled.
6808
fc248485
AA
68092015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6810
6811 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6812 * syscalls/s390x-linux.xml: Likewise.
6813
4da680ad
ME
68142015-06-16 Michael Eager <eager@eagercon.com>
6815
6816 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6817
0a75489f
PP
68182015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6819
6820 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6821 target_terminal_ours_for_output() before calling
6822 tui_show_frame_info(), and restore the original terminal
6823 settings afterwards.
6824
95855ca8
MS
68252015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6826
6827 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6828
cfc32360
SM
68292015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6830
6831 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6832 memory unit size.
6833 (mi_cmd_data_write_memory_bytes): Same.
6834
cb6f16cf
SM
68352015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * corefile.c (write_memory): Update doc.
6838 * gdbcore.h (write_memory): Same.
6839
31b7833d
JK
68402015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6843 (dump_mapping_p): Use it for parameter filterflags.
6844 (linux_find_memory_regions_full): Use it for variable filterflags.
6845
909c2cda
JK
68462015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6847 Jan Kratochvil <jan.kratochvil@redhat.com>
6848
6849 Merge multiple hex conversions.
6850 * monitor.c: Include rsp-low.h.
6851 (fromhex): Remove definition.
6852
03aef70f
JK
68532015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6854 Jan Kratochvil <jan.kratochvil@redhat.com>
6855
6856 Move utility functions to common/.
6857 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6858 Move defs to common/common-utils.c.
6859 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6860 (skip_to_space_const): Move decls to common/common-utils.h.
6861 * common/common-defs.h: Move include of common-types.h before
6862 common-utils.h.
6863 * common/common-utils.c: Include host-defs.h and ctype.h.
6864 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6865 from utils.c.
6866 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6867 cli/cli-utils.c.
6868 * common/common-utils.h (strtoulst): Move decl from utils.h.
6869 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6870 Move from cli/cli-utils.h.
6871 * common/host-defs.h: Include limits.h.
6872 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6873 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6874 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6875 common/common-utils.h.
6876 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6877 (strtoulst): Move to common/common-utils.c.
6878 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6879
d1168cc1
YQ
68802015-06-15 Yao Qi <yao.qi@linaro.org>
6881
6882 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6883
c74f7d1c
JT
68842015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6885
6886 * build-id.c: Don't include elf-bfd.h.
6887 (build_id_bfd_get): Use bfd_build_id.
6888 (build_id_verify): Ditto.
6889 * build-id.h: Ditto.
6890 (find_separate_debug_file_by_buildid): Ditto.
6891 * python/py-objfile.c: Don't include elf-bfd.h.
6892 (objfpy_get_build_id) Use bfd_build_id.
6893 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6894 * coffread.c: Include build-id.h.
6895 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6896
f20c58f5
JT
68972015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6898
6899 * windows-nat.c (do_windows_fetch_inferior_registers)
6900 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6901 conditional with __CYGWIN__.
6902
51f0e40d
AB
69032015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6904
6905 * completer.c: Add arch-utils.h include.
6906 (enum reg_completer_targets): New enum.
6907 (reg_or_group_completer_1): New function containing old
6908 reg_or_group_completer, add and use new parameter to control what
6909 is completed on. Use get_current_arch rather than architecture of
6910 currently selected frame.
6911 (reg_or_group_completer): Call new reg_or_group_completer_1.
6912 (reggroup_completer): Call new reg_or_group_completer_1.
6913 * completer.h (reggroup_completer): Add declaration.
6914 * tui/tui-regs.c: Add 'completer.h' include.
6915 (tui_reg_next_command): Renamed to...
6916 (tui_reg_next): ...this. Adjust parameters and return rather than
6917 display new group.
6918 (tui_reg_prev_command): Renamed to...
6919 (tui_reg_prev): ...this. Adjust parameters and return rather than
6920 display new group.
6921 (tui_reg_float_command): Delete.
6922 (tui_reg_general_command): Delete.
6923 (tui_reg_system_command): Delete.
6924 (tui_reg_command): Rewrite to perform switching of register group.
6925 Add header comment.
6926 (tuireglist): Remove.
6927 (tui_reggroup_completer): New function.
6928 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6929 creation of 'tui reg' command.
6930 * NEWS: Add comment about 'tui reg' changes.
6931
d309493c
SM
69322015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6933
6934 * target.c (target_read): Consider addressable unit size when
6935 reading from a memory object.
6936 (read_memory_robust): Same.
6937 (read_whatever_is_readable): Same.
6938 (target_write_with_progress): Consider addressable unit size
6939 when writing to a memory object.
6940 * target.h (target_read): Update documentation.
6941 (target_write): Add documentation.
6942
3374165f
SM
69432015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6944
6945 * arch-utils.h (default_addressable_memory_unit_size): New.
6946 * arch-utils.c (default_addressable_memory_unit_size): New.
6947 * gdbarch.sh (addressable_memory_unit_size): New.
6948 * gdbarch.h: Re-generate.
6949 * gdbarch.c: Re-generate.
6950
279a6fed
SM
69512015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6952
6953 * target.c (target_read): Rename variables and use
6954 TARGET_XFER_E_IO.
6955 (target_read_with_progress): Same.
6956 (read_memory_robust): Constify parameters and rename
6957 variables.
6958 (read_whatever_is_readable): Constify parameters,
6959 rename variables, adjust formatting.
6960 * target.h (read_memory_robust): Constify parameters.
6961
1e5338b6 69622015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6963
6964 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6965 synthetic (non-AltiVec) vector types.
6966 (ppc64_sysv_abi_return_value): Likewise.
6967
98aa42ee
AT
69682015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6969
6970 PR breakpoints/16465
6971 * breakpoint.c (create_breakpoint): Save extra_string for
6972 pending breakpoints.
6973
966f0aef
WT
69742015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6975
6976 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6977 and bt_mask to CORE_ADDR.
6978
6449ed0d
GB
69792015-06-11 Gary Benson <gbenson@redhat.com>
6980
6981 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6982 (mnsh_recv_message): Likewise.
6983
34f8ac9f
WT
69842015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6985
6986 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6987 long long int and plongest instead of %ll.
6988
198c808c
GB
69892015-06-11 Gary Benson <gbenson@redhat.com>
6990
6991 * nat/linux-namespaces.c (gdb_wait.h): New include.
6992 (sys/wait.h): Do not include.
6993
e815d2d2
SM
69942015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6995
6996 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6997 end_sequence is true.
6998
8847cac2
JK
69992015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7000
7001 Code cleanup.
7002 * solib-target.c (library_list_start_list): Use explicit NULL
7003 comparison.
7004
24c05f46
JK
70052015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7006
7007 * solib-target.c (library_list_start_list): Do not dereference
7008 variable version in its initialization. Make the VERSION check handle
7009 NULL.
7010 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7011
51aad7cc
GB
70122015-06-10 Gary Benson <gbenson@redhat.com>
7013
7014 * NEWS: Announce support for direct access of executable and
7015 shared library files when attaching to inferiors in containers
7016 on GNU/Linux systems.
7017
15a201c8
GB
70182015-06-10 Gary Benson <gbenson@redhat.com>
7019
7020 * remote.c (struct remote_state) <fs_pid>: New field.
7021 (new_remote_state): Initialize the above.
7022 (PACKET_vFile_setfs): New enum value.
7023 (remote_hostio_set_filesystem): New function.
7024 (remote_hostio_open): Call the above.
7025 (remote_hostio_unlink): Likewise.
7026 (remote_hostio_readlink): Likewise.
7027 (_initialize_remote): Register new "set/show remote
7028 hostio-setfs-packet" command.
7029 * NEWS: Announce new vFile:setfs packet.
7030
7a6a1731
GB
70312015-06-10 Gary Benson <gbenson@redhat.com>
7032
7033 * linux-nat.c (nat/linux-namespaces.h): New include.
7034 (fileio.h): Likewise.
7035 (linux_nat_filesystem_is_local): New function.
7036 (linux_nat_fileio_pid_of): Likewise.
7037 (linux_nat_fileio_open): Likewise.
7038 (linux_nat_fileio_readlink): Likewise.
7039 (linux_nat_fileio_unlink): Likewise.
7040 (linux_nat_add_target): Initialize to_filesystem_is_local,
7041 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7042 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7043 commands.
7044 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7045
07c138c8
GB
70462015-06-10 Gary Benson <gbenson@redhat.com>
7047
7048 * target.h (struct inferior): New forward declaration.
7049 (struct target_ops) <to_filesystem_is_local>: Update comment.
7050 (struct target_ops) <to_fileio_open>: New argument inf.
7051 Update comment. All implementations updated.
7052 (struct target_ops) <to_fileio_unlink>: Likewise.
7053 (struct target_ops) <to_fileio_readlink>: Likewise.
7054 (target_filesystem_is_local): Update comment.
7055 (target_fileio_open): New argument inf. Update comment.
7056 (target_fileio_unlink): Likewise.
7057 (target_fileio_readlink): Likewise.
7058 (target_fileio_read_alloc): Likewise.
7059 (target_fileio_read_stralloc): Likewise.
7060 * target.c (target_fileio_open): New argument inf.
7061 Pass inf to implementation. Update debug printing.
7062 (target_fileio_unlink): Likewise.
7063 (target_fileio_readlink): Likewise.
7064 (target_fileio_read_alloc_1): New argument inf. Pass inf
7065 to target_fileio_open.
7066 (target_fileio_read_alloc): New argument inf. Pass inf to
7067 target_fileio_read_alloc_1.
7068 (target_fileio_read_stralloc): Likewise.
7069 * gdb_bfd.c (inferior.h): New include.
7070 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7071 argument with new argument "inferior". Pass inferior to
7072 target_fileio_open.
7073 (gdb_bfd_open): Supply inferior argument to
7074 gdb_bfd_iovec_fileio_open.
7075 * linux-tdep.c (linux_info_proc): Supply inf argument to
7076 relevant target_fileio calls.
7077 (linux_find_memory_regions_full): Likewise.
7078 (linux_fill_prpsinfo): Likewise.
7079 * remote.c (remote_filesystem_is_local): Supply inf
7080 argument to remote_hostio_open.
7081 (remote_file_put): Likewise.
7082 (remote_file_get): Likewise.
7083 (remote_file_delete): Supply inf argument to
7084 remote_hostio_unlink.
7085
12e2a5fd
GB
70862015-06-10 Gary Benson <gbenson@redhat.com>
7087
7088 * inf-child.c (inf_child_fileio_open): Replace comment.
7089 (inf_child_fileio_pwrite): Likewise.
7090 (inf_child_fileio_pread): Likewise.
7091 (inf_child_fileio_fstat): Insert blank line before comment.
7092 (inf_child_fileio_close): Replace comment.
7093 (inf_child_fileio_unlink): Likewise.
7094 (inf_child_fileio_readlink): Likewise.
7095 * remote.c (remote_hostio_open): Likewise.
7096 (remote_hostio_pread): Likewise.
7097 (remote_hostio_pwrite): Likewise.
7098 (remote_hostio_close): Likewise.
7099 (remote_hostio_unlink): Likewise.
7100 (remote_hostio_readlink): Likewise.
7101 (remote_hostio_fstat): Likewise.
7102 (remote_filesystem_is_local): Likewise.
7103 * target.c (target_fileio_open): Likewise.
7104 (target_fileio_pwrite): Likewise.
7105 (target_fileio_pread): Likewise.
7106 (target_fileio_fstat): Insert blank line before comment.
7107 (target_fileio_close): Replace comment.
7108 (target_fileio_unlink): Likewise.
7109 (target_fileio_readlink): Likewise.
7110 (target_fileio_read_alloc): Likewise.
7111 (target_fileio_read_stralloc): Likewise.
7112
9bc3a976
GB
71132015-06-10 Gary Benson <gbenson@redhat.com>
7114
7115 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7116 (check_pid_namespace_match): Use linux_ns_same rather than
7117 linux_proc_pid_get_ns to spot PID namespace mismatches.
7118 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7119 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7120
4b8b5e72
GB
71212015-06-10 Gary Benson <gbenson@redhat.com>
7122
7123 * configure.ac (AC_CHECK_FUNCS): Add setns.
7124 * config.in: Regenerate.
7125 * configure: Likewise.
7126 * nat/linux-namespaces.h: New file.
7127 * nat/linux-namespaces.c: Likewise.
7128 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7129 (linux-namespaces.o): New rule.
7130 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7131 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7132 * config/arm/linux.mh (NATDEPFILES): Likewise.
7133 * config/i386/linux.mh (NATDEPFILES): Likewise.
7134 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7135 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7136 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7137 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7138 * config/mips/linux.mh (NATDEPFILES): Likewise.
7139 * config/pa/linux.mh (NATDEPFILES): Likewise.
7140 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7141 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7142 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7143 * config/s390/linux.mh (NATDEPFILES): Likewise.
7144 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7145 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7146 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7147 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7148
ca095836
GB
71492015-06-10 Gary Benson <gbenson@redhat.com>
7150
7151 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7152 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7153 (make_cleanup_close): Likewise.
7154 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7155 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7156 (make_cleanup_close): Likewise.
7157
5d9c55d3
JT
71582015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7159
7160 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7161 from SuspendThread().
7162
040ea00b
JT
71632015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7164
7165 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7166 from OutputDebugString.
7167
7d73c23c
WT
71682015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7169 Mircea Gherzan <mircea.gherzan@intel.com>
7170
7171 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7172 MPX_BT_MASK_32): New macros.
7173 (i386_mpx_set_bounds): New function that implements
7174 the command "set-mpx-bound".
7175 (i386_mpx_enabled): Helper function to test MPX availability.
7176 (i386_mpx_bd_base): Helper function to calculate the base directory
7177 address.
7178 (i386_mpx_get_bt_entry): Helper function to access a bound
7179 table entry.
7180 (i386_mpx_print_bounds): Effectively display bound information.
7181 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7182 "show mpx".
7183 (_initialize_i386_tdep):
7184 Add "bound" to the commands "show mpx" and "set mpx" commands.
7185 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7186 and "show mpx" commands.
7187 * NEWS: List new commands for MPX support.
7188
3ac2e371
GB
71892015-06-09 Gary Benson <gbenson@redhat.com>
7190
7191 * common/fileio.h (fileio_to_host_mode): New declaration.
7192 * common/fileio.c (fileio_to_host_mode): New Function.
7193 * inf-child.c (inf_child_fileio_open): Process mode argument
7194 with fileio_to_host_mode.
7195
ecef18c5
GB
71962015-06-09 Gary Benson <gbenson@redhat.com>
7197
7198 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7199 conditional.
7200
e3dd7556
GB
72012015-06-05 Gary Benson <gbenson@redhat.com>
7202
7203 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7204 * remote.c (remote_filesystem_is_local): ...here.
7205
5b74bf7d
YQ
72062015-06-04 Yao Qi <yao.qi@linaro.org>
7207
7208 * gdbarch.c: Regenerate it.
7209
7f361056
JK
72102015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7211
7212 * arch-utils.c (default_infcall_munmap): New.
7213 * arch-utils.h (default_infcall_munmap): New declaration.
7214 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7215 (munmap_list_free, munmap_listp_free_cleanup): New.
7216 (struct setup_sections_data): Add field munmap_list_headp.
7217 (setup_sections): Call munmap_list_add.
7218 (compile_object_load): New variable munmap_list_head, initialize
7219 setup_sections_data.munmap_list_headp, return munmap_list_head.
7220 * compile/compile-object-load.h (struct munmap_list): New declaration.
7221 (struct compile_module): Add field munmap_list_head.
7222 (munmap_list_free): New declaration.
7223 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7224 munmap_list_head.
7225 (do_module_cleanup): Call munmap_list_free.
7226 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7227 * gdbarch.c: Regenerate.
7228 * gdbarch.h: Regenerate.
7229 * gdbarch.sh (infcall_munmap): New.
7230 * linux-tdep.c (linux_infcall_munmap): New.
7231 (linux_init_abi): Install it.
7232
3b462ec2
SM
72332015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7234
7235 PR gdb/15564
7236 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7237
8d683210
YQ
72382015-06-02 Yao Qi <yao.qi@linaro.org>
7239
7240 * i386-linux-nat.c: Include linux-nat.h.
7241
e0619de6
JK
72422015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7243 Jan Kratochvil <jan.kratochvil@redhat.com>
7244
7245 PR symtab/18392
7246 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7247 assertion.
7248 * dwarf2loc.c (chain_candidate): Likewise.
7249
bd16da51
YQ
72502015-06-01 Yao Qi <yao.qi@linaro.org>
7251
7252 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7253 (store_vfp_regs): Use PTRACE_SETREGSET.
7254
df9d7ec9
YQ
72552015-06-01 Yao Qi <yao.qi@linaro.org>
7256
7257 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7258 (fetch_fpregs): Likewise.
7259 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7260 (store_fpregs): Likewise.
7261
10766686
YQ
72622015-06-01 Yao Qi <yao.qi@linaro.org>
7263
7264 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7265 (fetch_regs): Likewise.
7266 (store_regs): Use PTRACE_SETREGSET.
7267 (store_register): Likewise.
7268
7efe48d1
YQ
72692015-06-01 Yao Qi <yao.qi@linaro.org>
7270
7271 * arm-linux-nat.c (arm_linux_read_description): Check whether
7272 kernel supports PTRACE_GETREGSET.
7273
433bbbf8
YQ
72742015-06-01 Yao Qi <yao.qi@linaro.org>
7275
7276 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7277 * linux-nat.c: ... here.
7278 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7279 to ...
7280 * linux-nat.h: ... here.
7281
ca9b78ce
YQ
72822015-06-01 Yao Qi <yao.qi@linaro.org>
7283
7284 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7285 * i386-linux-nat.c: Likewise.
7286 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7287 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7288 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7289 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7290 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7291
99cee7b7
EZ
72922015-05-30 Eli Zaretskii <eliz@gnu.org>
7293
7294 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7295 compatible to what read_child and write_child return. This
7296 unbreaks that DJGPP build of GDB which was broken since v7.7.
7297
2147f5bd
MG
72982015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7299
7300 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7301
c8f6c93c
RM
73022015-05-29 Roland McGrath <mcgrathr@google.com>
7303
7304 PR gdb/18464
7305 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7306 rather than internal_error for an unrecognized value.
7307
8c6a948d
MF
73082015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7309
7310 * xtensa-tdep.c (xtensa_pseudo_register_read)
7311 (xtensa_pseudo_register_write): Don't alias last pseudo register
7312 to a1.
7313
8dd06f7a
DB
73142015-05-28 Don Breazeal <donb@codesourcery.com>
7315
7316 * infrun.c (follow_fork_inferior): Ensure the use of
7317 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7318 messages.
7319
a051152b
DE
73202015-05-28 Doug Evans <dje@google.com>
7321
7322 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7323
a56cc1ce
YQ
73242015-05-28 Yao Qi <yao.qi@linaro.org>
7325
7326 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7327 (arm_linux_fetch_inferior_registers): Use
7328 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7329 (arm_linux_store_inferior_registers): Likewise.
7330 (arm_linux_read_description): Don't set
7331 arm_linux_has_wmmx_registers.
7332 * arm-tdep.c (arm_gdbarch_init): Set
7333 tdep->have_wmmx_registers according target descriptions.
7334 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7335 field.
7336
330c6ca9
YQ
73372015-05-28 Yao Qi <yao.qi@linaro.org>
7338
7339 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7340 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7341 instead of arm_linux_vfp_register_count.
7342 (store_vfp_regs): Likewise.
7343 (arm_linux_fetch_inferior_registers): Likewise.
7344 (arm_linux_store_inferior_registers): Likewise.
7345 (arm_linux_read_description): Don't set
7346 arm_linux_vfp_register_count.
7347 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7348 Adjust.
7349 * arm-tdep.c (arm_gdbarch_init): Add assert on
7350 vfp_register_count.
7351 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7352 field to vfp_register_count. All users updated.
7353
d403db27
KH
73542015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7355
7356 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7357 ELFOSABI_GNU binaries.
7358
d9b3de22
DE
73592015-05-27 Doug Evans <dje@google.com>
7360
7361 * dwarf2read.c (lnp_state_machine): New typedef.
7362 (lnp_reader_state): New typedef.
7363 (dwarf_record_line_1): Renamed from dwarf_record_line.
7364 All callers updated.
7365 (dwarf_record_line): New function.
7366 (init_lnp_state_machine): New function.
7367 (check_line_address): Replace p_record_line parameter with state.
7368 All callers updated.
7369 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7370 Update to record state in lnp_state_machine.
7371
924c2928
DE
73722015-05-27 Doug Evans <dje@google.com>
7373
7374 * dwarf2read.c (record_line_ftype): New typedef.
7375 (check_line_address): New function.
7376 (dwarf_decode_lines_1): Call it.
7377
27e0867f
DE
73782015-05-27 Doug Evans <dje@google.com>
7379
7380 * NEWS: Mention "set debug dwarf-line".
7381 * dwarf2read.c (dwarf_line_debug): New static global.
7382 (add_include_dir): Add debug dwarf-line support.
7383 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7384 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7385
4dcabcc2
DE
73862015-05-27 Doug Evans <dje@google.com>
7387
7388 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7389 All callers updated.
7390 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7391 * cp-support.h (cp_lookup_nested_symbol): Update.
7392
b2e2f908
DE
73932015-05-27 Doug Evans <dje@google.com>
7394
7395 PR symtab/18258
7396 * block.c (block_find_symbol): New function.
7397 (block_find_non_opaque_type): Ditto.
7398 (block_find_non_opaque_type_preferred): Ditto.
7399 * block.h (block_symbol_matcher_ftype): New typedef.
7400 (block_find_symbol): Declare.
7401 (block_find_non_opaque_type): Ditto.
7402 (block_find_non_opaque_type_preferred): Ditto.
7403 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7404 * psymtab.c (psym_lookup_symbol): Ditto.
7405 * symtab.c (basic_lookup_transparent_type_1): New function.
7406 (basic_lookup_transparent_type): Call it.
7407
f62fce35
YQ
74082015-05-27 Yao Qi <yao.qi@linaro.org>
7409
7410 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7411 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7412
5d98d3cd
YQ
74132015-05-27 Yao Qi <yao.qi@linaro.org>
7414
7415 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7416 before operator &&.
7417 (aarch64_record_load_store): Likewise.
7418
82c7be31
DE
74192015-05-26 Doug Evans <dje@google.com>
7420
7421 PR c++/18141, c++/18417.
7422 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7423 a typedef.
7424
b4f54984
DE
74252015-05-26 Doug Evans <dje@google.com>
7426
7427 * NEWS: Add entries for command renamings.
7428 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7429 All uses updated.
7430 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7431 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7432 All uses updated.
7433 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7434 All callers updated. Fix spelling of DWARF in help text.
7435 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7436 All uses updated.
7437 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7438 All uses updated.
7439 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7440 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7441 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7442 All uses updated.
7443 (show_dwarf_always_disassemble): Renamed from
7444 show_dwarf2_always_disassemble. All callers updated.
7445 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7446 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7447 "set/show dwarf max-cache-age". Rename
7448 "set/show dwarf2 always-disassemble" to
7449 "set/show dwarf always-disassemble". Rename
7450 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7451 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7452
4ea6efe9
DE
74532015-05-26 Doug Evans <dje@google.com>
7454
7455 PR python/18438
7456 * python/py-lazy-string.c (stpy_convert_to_value): Use
7457 gdbpy_gdb_memory_error not PyExc_MemoryError.
7458 (gdbpy_create_lazy_string_object): Ditto.
7459
b93fd21d
AB
74602015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7461
7462 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7463
55b40027
AB
74642015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7465
7466 * tui/tui-regs.c (tui_reg_prev_command): New function.
7467 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7468 * reggroups.c (reggroup_prev): New function.
7469 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7470
99afc88b
OJ
74712015-05-26 Omair Javaid <omair.javaid@linaro.org>
7472 Yao Qi <yao.qi@linaro.org>
7473
7474 * aarch64-linux-tdep.c: Include linux-record.h and
7475 record-full.h.
7476 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7477 (aarch64_syscall): New enum.
7478 (aarch64_canonicalize_syscall): New function.
7479 (aarch64_all_but_pc_registers_record): New function.
7480 (aarch64_linux_syscall_record): New function.
7481 (aarch64_linux_init_abi): Install AArch64 process record
7482 handler. Update to handle syscall recording.
7483 * aarch64-tdep.c: Include record.h and record-full.h.
7484 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7485 (struct aarch64_mem_r): Define.
7486 (aarch64_record_result): New enum.
7487 (struct insn_decode_record): Define.
7488 (insn_decode_record): New typedef.
7489 (aarch64_record_data_proc_reg): New function.
7490 (aarch64_record_data_proc_imm): New function.
7491 (aarch64_record_branch_except_sys): New function.
7492 (aarch64_record_load_store): New function.
7493 (aarch64_record_data_proc_simd_fp): New function.
7494 (aarch64_record_asimd_load_store): New function.
7495 (aarch64_record_decode_insn_handler): New function.
7496 (deallocate_reg_mem): New function.
7497 (aarch64_process_record): New function.
7498 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7499 New field.
7500 (aarch64_process_record): New extern declaration.
7501 * configure.tgt: Add linux-record.o to gdb_target_obs.
7502 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7503
c16a3f52
OJ
75042015-05-26 Omair Javaid <omair.javaid@linaro.org>
7505
7506 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7507 targets.
7508
c9cf6e20
MG
75092015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7510
7511 * amd64-tdep.c: Replace in_function_epilogue_p with
7512 stack_frame_destroyed_p throughout.
7513 * arch-utils.c: Ditto.
7514 * arch-utils.h: Ditto.
7515 * arm-tdep.c: Ditto.
7516 * breakpoint.c: Ditto.
7517 * gdbarch.sh: Ditto.
7518 * hppa-tdep.c: Ditto.
7519 * i386-tdep.c: Ditto.
7520 * mips-tdep.c: Ditto.
7521 * nios2-tdep.c: Ditto.
7522 * rs6000-tdep.c: Ditto.
7523 * s390-linux-tdep.c: Ditto.
7524 * score-tdep.c: Ditto.
7525 * sh-tdep.c: Ditto.
7526 * sparc-tdep.c: Ditto.
7527 * sparc-tdep.h: Ditto.
7528 * sparc64-tdep.c: Ditto.
7529 * spu-tdep.c: Ditto.
7530 * tic6x-tdep.c: Ditto.
7531 * tilegx-tdep.c: Ditto.
7532 * xstormy16-tdep.c: Ditto.
7533 * gdbarch.c, gdbarch.h: Re-generated.
7534
a4ea0946
AB
75352015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7536
7537 * NEWS: Mention 'tui enable' and 'tui disable'.
7538 * tui/tui.c (tui_enable_command): New function.
7539 (tui_disable_command): New function.
7540 (_initialize_tui): New function.
7541
b75c69bb
AB
75422015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7543
7544 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7545
c1b009ee
AB
75462015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7549 buf_ptr is freed.
7550
880d1e40
AB
75512015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7554 into ...
7555 (tui_set_layout_for_display_command): ...here, before calling
7556 tui_set_layout. Only set the layout if gdb has not already
7557 entered the TUI_FAILURE state.
7558
a0145030
AB
75592015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * tui/tui-layout.c (layout_completer): New function.
7562 (_initialize_tui_layout): Set completer on layout command.
7563
7bd0be3a
AB
75642015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * tui/tui-layout.c (tui_set_layout): Remove
7567 tui_register_display_type parameter. Remove all checking of this
7568 parameter, and reindent function. Update header comment.
7569 (tui_set_layout_for_display_command): Rename to...
7570 (tui_set_layout_by_name): ...this, and don't check for different
7571 register class types, don't pass a tui_register_display_type to
7572 tui_set_layout. Update header comment.
7573 (layout_names): Remove register set specific names.
7574 * tui/tui-layout.h (tui_set_layout): Remove
7575 tui_register_display_type parameter.
7576 * tui/tui.c (tui_rl_change_windows): Don't pass a
7577 tui_register_display_type to tui_set_layout.
7578 (tui_rl_delete_other_windows): Likewise.
7579 (tui_enable): Likewise.
7580 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7581 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7582 (TUI_GENERAL_REGS_NAME): Remove.
7583 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7584 (TUI_SPECIAL_REGS_NAME): Remove.
7585 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7586 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7587 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7588 (enum tui_register_display_type): Remove.
7589 (struct tui_layout_def): Remove regs_display_type and
7590 float_regs_display_type fields.
7591 (struct tui_data_info): Remove regs_display_type field.
7592 (tui_layout_command): Use new name for
7593 tui_set_layout_for_display_command.
7594 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7595 (tui_clear_win_detail): Don't initialise removed fields of
7596 win_info.
7597 * tui/tui-regs.c (tui_show_registers): Use new name for
7598 tui_set_layout_for_display_command.
7599 * tui/tui.h (tui_set_layout_for_display_command): Rename
7600 declaration to...
7601 (tui_set_layout_by_name): ...this.
7602 * printcmd.c (display_command): Remove tui related layout call,
7603 and reindent.
7604
0b6e5e10
JB
76052015-05-20 Joel Brobecker <brobecker@adacore.com>
7606
7607 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7608 (handle_inferior_event): New function.
7609
1da0522e
JB
76102015-05-20 Joel Brobecker <brobecker@adacore.com>
7611
7612 * ada-lang.c (to_fixed_array_type): Rename local variable
7613 typename into type_name.
7614
5fe75eec
JK
76152015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7616
7617 Fix ASAN crash for gdb.compile/compile.exp.
7618 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7619
a4063588
JK
76202015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7621
7622 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7623 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7624 * compile/compile-object-load.c (setup_sections, compile_object_load):
7625 Likewise.
7626 * compile/compile.c (compile_to_object): Likewise.
7627
37442ce1
DE
76282015-05-16 Doug Evans <xdje42@gmail.com>
7629
7630 * NEWS: Mention support for unbuffered Guile memory ports.
7631 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7632 (ioscm_lseek_address): Improve overflow calculation.
7633 (gdbscm_memory_port_fill_input): Add assert.
7634 (gdbscm_memory_port_write): Handle unbuffered ports.
7635 Handle large writes identical to Guile's fport_write.
7636 (gdbscm_memory_port_seek): Fix seeking past end check.
7637 (gdbscm_memory_port_close): Handle closing unbuffered port.
7638 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7639 (ioscm_init_memory_port): Handle unbuffered ports.
7640 (ioscm_reinit_memory_port): Ditto.
7641 (ioscm_init_memory_port): Update size calculation.
7642 (gdbscm_open_memory): Support zero sized ports.
7643
d976bace
JK
76442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7647 variable compiler warnings.
7648
4d18dfad
JK
76492015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7652
36de76f9
JK
76532015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 Phil Muldoon <pmuldoon@redhat.com>
7655
7656 * NEWS (Changes since GDB 7.9): Add compile print.
7657 * compile/compile-c-support.c (add_code_header, add_code_footer)
7658 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7659 COMPILE_I_PRINT_VALUE_SCOPE.
7660 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7661 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7662 New.
7663 * compile/compile-object-load.c: Include block.h.
7664 (get_out_value_type): New function.
7665 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7666 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7667 OUT_VALUE_TYPE.
7668 * compile/compile-object-load.h (struct compile_module): Add fields
7669 out_value_addr and out_value_type.
7670 * compile/compile-object-run.c: Include valprint.h and compile.h.
7671 (struct do_module_cleanup): Add fields out_value_addr and
7672 out_value_type.
7673 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7674 COMPILE_I_PRINT_VALUE_SCOPE.
7675 (compile_object_run): Propagate out_value_addr and out_value_type.
7676 Pass OUT_VALUE_ADDR.
7677 * compile/compile.c: Include valprint.h.
7678 (compile_print_value, compile_print_command): New functions.
7679 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7680 (_initialize_compile): Update compile code help text. Install
7681 compile_print_command.
7682 * compile/compile.h (compile_print_value): New prototype.
7683 * defs.h (enum compile_i_scope_types): Add
7684 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7685
83d3415e
JK
76862015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7689 Rely on its parameter count.
7690 (compile_object_load): Replace lookup_minimal_symbol_text by
7691 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7692 return value.
7693 * compile/compile-object-load.h (struct compile_module): Replace
7694 func_addr by func_sym.
7695 * compile/compile-object-run.c: Include block.h.
7696 (compile_object_run): Reset module variable after it is freed. Use
7697 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7698
3a9558c4
JK
76992015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7700
7701 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7702 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7703 (c_compute_program): Call generate_register_struct after typedefs.
7704 * compile/compile-loc2c.c (push, pushf_register_address)
7705 (pushf_register): Cast to GCC_UINTPTR.
7706 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7707 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7708 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7709 * compile/compile.c (_initialize_compile): Enable warnings for
7710 COMPILE_ARGS.
7711
5c65b58a
JK
77122015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7713
7714 * cli/cli-script.c (execute_control_command): Update
7715 eval_compile_command caller.
7716 * compile/compile-object-load.c (compile_object_load): Add parameters
7717 scope and scope_data. Set them.
7718 * compile/compile-object-load.h (struct compile_module): Add fields
7719 scope and scope_data.
7720 (compile_object_load): Add parameters scope and scope_data.
7721 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7722 scope and scope_data.
7723 (compile_object_run): Propagate the fields scope and scope_data.
7724 * compile/compile.c (compile_file_command, compile_code_command):
7725 Update eval_compile_command callers.
7726 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7727 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7728 * defs.h (struct command_line): Add field scope_data.
7729
1c88ceb1
JK
77302015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7731
7732 * printcmd.c (struct format_data): Move it to valprint.h.
7733 (print_command_parse_format, print_value): New functions from ...
7734 (print_command_1): ... here. Call them.
7735 * valprint.h (struct format_data): Move it here from printcmd.c.
7736 (print_command_parse_format, print_value): New declarations.
7737
0b738f27
JK
77382015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7739
7740 * compile/compile-object-load.c (compile_object_load): Add
7741 COMPILE_DEBUG message.
7742
aa715135
JG
77432015-05-15 Jerome Guitton <guitton@adacore.com>
7744
7745 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7746 index to get element instead of enum value.
7747 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7748 of index to compute length, but enum values to compute bounds.
7749 (ada_array_length): Use enum position of index instead of enum value.
7750 (pos_atr): Move position computation to...
7751 (ada_evaluate_subexp): Use enum values to compute bounds.
7752 * gdbtypes.c (discrete_position): ...this new function.
7753 * gdbtypes.h (discrete_position): New function declaration.
7754 * valprint.c (val_print_array_elements): Call discrete_position
7755 to handle array indexed by non-contiguous enumeration types.
7756
931e5bc3
JG
77572015-05-15 Jerome Guitton <guitton@adacore.com>
7758
7759 * ada-lang.c (find_parallel_type_by_descriptive_type):
7760 Go through typedefs during lookup.
7761 (to_fixed_array_type): Add support for non-bit packed arrays
7762 as variable-length fields.
7763
4e63d0ac
PA
77642015-05-15 Pedro Alves <palves@redhat.com>
7765 Simon Marchi <simon.marchi@ericsson.com>
7766
7767 * event-loop.c (gdb_notifier) <next_file_handler,
7768 next_poll_fds_index>: New fields.
7769 (get_next_file_handler_to_handle_and_advance): New function.
7770 (delete_file_handler): If deleting the next file handler to
7771 handle, advance to the next file handler.
7772 (gdb_wait_for_event): Bail early if no event fired. Poll file
7773 handlers in round-robin fashion.
7774
52e48b36
PA
77752015-05-15 Pedro Alves <palves@redhat.com>
7776
7777 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7778 'private' to 'priv'.
7779
2465e12e
PA
77802015-05-15 Pedro Alves <palves@redhat.com>
7781
7782 * nat/linux-nat.h: Include "target/waitstatus.h".
7783
13fa0398
YZ
77842015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7785
7786 * python/py-unwind.c (struct reg_info): Move out of ...
7787 (struct cached_frame_info): ... this scope.
7788 (pending_frame_object_type, unwind_info_object_type): Make extern.
7789
9cd4d857
JB
77902015-05-15 Joel Brobecker <brobecker@adacore.com>
7791
7792 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7793 accumSize is never negative.
7794
e3555239
PP
77952015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7796
7797 * tui/tui-command.c: Remove include of <ctype.h>.
7798 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7799
08a76f8a
MG
78002015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7801
7802 * dwarf2read.c (die_needs_namespace): Return 1 for
7803 DW_TAG_inlined_subroutine.
7804
bd49952b
JK
78052015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7806
7807 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7808 (regcache_cpy_no_passthrough): Make it static, add function comment.
7809 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7810 (regcache_cpy_no_passthrough): Remove declaration.
7811
46c03469
JK
78122015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 * gdbthread.h (struct thread_control_state): Update comment for
7815 proceed_to_finish.
7816 * infcall.c (run_inferior_call): Update comment about
7817 proceed_to_finish.
7818 * infcmd.c (get_return_value): Update comment about stop_registers.
7819 (finish_forward): Update comment about proceed_to_finish.
7820 * infrun.c (stop_registers): Remove.
7821 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7822 * infrun.h (stop_registers): Remove.
7823
8a6c4031
JK
78242015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 * infcall.c (struct dummy_frame_context_saver)
7827 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7828 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7829 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7830 New.
7831 (call_function_by_hand_dummy): Move discard_cleanups of
7832 inf_status_cleanup before dummy_frame_push. Call
7833 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7834 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7835 * infcall.h (struct dummy_frame_context_saver)
7836 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7837 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7838 New declarations.
7839 * infcmd.c: Include infcall.h.
7840 (get_return_value): Add parameter ctx_saver, use it instead of
7841 stop_registers.
7842 (print_return_value): Add parameter ctx_saver, pass it.
7843 (struct finish_command_continuation_args): Add field ctx_saver.
7844 (finish_command_continuation): Update print_return_value caller.
7845 (finish_command_continuation_free_arg): Free also ctx_saver.
7846 (finish_forward): Call dummy_frame_context_saver_setup.
7847 * inferior.h (struct dummy_frame_context_saver): New declaration.
7848 (get_return_value): Add parameter ctx_saver.
7849 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7850 get_return_value caller.
7851
10989690
JK
78522015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7853
7854 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7855 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7856 (remove_dummy_frame): Process dtor_list.
7857 (pop_dummy_frame): Process dtor_list.
7858 (register_dummy_frame_dtor): Maintain dtor_list.
7859 (find_dummy_frame_dtor): Handle dtor_list.
7860 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7861 Update comments.
7862
5e970501
JK
78632015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7864
7865 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7866 registers_valid.
7867 (compile_object_run): Update do_module_cleanup caller.
7868 * dummy-frame.c: Include infcall.h.
7869 (struct dummy_frame): Update dtor comment.
7870 (remove_dummy_frame): Call dtor.
7871 (pop_dummy_frame): Update dtor caller.
7872 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7873 registers_valid.
7874
1c4eb778
JB
78752015-05-13 Joel Brobecker <brobecker@adacore.com>
7876
7877 GDB 7.9.1 released.
7878
f5f85ab9
JB
78792015-05-13 Joel Brobecker <brobecker@adacore.com>
7880
7881 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7882 Xmethods now being able to specify a result type to that new
7883 sectioin.
7884
242cd84c
PP
78852015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7886
7887 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7888 first before resizing the window.
e3555239 7889 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7890
78912015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7892
7893 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7894 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7895 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7896 dummy_dtor parameter.
7897 * infcall.h: Include dummy-frame.h.
7898 (call_function_by_hand_dummy_dtor_ftype): Remove.
7899 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7900 parameter.
7901
ebfd00d2
PP
79022015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7903
7904 PR gdb/17820
7905 * top.c (history_size_setshow_var): Change type to signed.
7906 Initialize to -2. Update documentation.
7907 (set_readline_history_size): Define.
7908 (set_history_size_command): Use it. Remove logic for handling
7909 out-of-range sizes.
7910 (init_history): Use set_readline_history_size(). Test for a
7911 value of -2 instead of 0 when determining whether to set a
7912 default history size.
7913 (init_main): Decode the argument of the "size" command as a
7914 zuinteger_unlimited.
7915
83769d0b
DE
79162015-05-12 Doug Evans <dje@google.com>
7917
7918 * dwarf2read.c (struct file_entry): Tweak comments.
7919 (get_debug_line_section): Tweak comments.
7920
0d71eef5
DB
79212015-05-12 Don Breazeal <donb@codesourcery.com>
7922
7923 * NEWS: Announce fork support in the RSP and support
7924 for fork debugging in extended mode.
7925
cbb8991c
DB
79262015-05-12 Don Breazeal <donb@codesourcery.com>
7927
7928 * remote.c (remote_insert_fork_catchpoint): New function.
7929 (remote_remove_fork_catchpoint): New function.
7930 (remote_insert_vfork_catchpoint): New function.
7931 (remote_remove_vfork_catchpoint): New function.
7932 (pending_fork_parent_callback): New function.
7933 (remove_new_fork_child): New function.
7934 (remote_update_thread_list): Call remote_notif_get_pending_events
7935 and remove_new_fork_child.
7936 (extended_remote_kill): Kill fork child when killing the
7937 parent before follow_fork completes.
7938 (init_extended_remote_ops): Initialize target vector with
7939 new fork catchpoint functions.
7940
c269dbdb
DB
79412015-05-12 Don Breazeal <donb@codesourcery.com>
7942
7943 * remote.c (remove_vfork_event_p): New function.
7944 (remote_follow_fork): Add vfork event type to event checking.
7945 (remote_parse_stop_reply): New stop reasons "vfork" and
7946 "vforkdone" for RSP 'T' Stop Reply Packet.
7947
de0d863e
DB
79482015-05-12 Don Breazeal <donb@codesourcery.com>
7949
7950 * linux-nat.c (linux_nat_ptrace_options): New function.
7951 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7952 Call linux_nat_ptrace_options and use different argument to
7953 linux_enable_event_reporting.
7954 (_initialize_linux_nat): Delete call to
7955 linux_ptrace_set_additional_flags.
c8f6c93c 7956 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7957 supported_ptrace_options.
7958 (additional_flags): Delete variable.
7959 (linux_check_ptrace_features): Use supported_ptrace_options.
7960 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7961 Likewise, and remove additional_flags check.
7962 (linux_enable_event_reporting): Change 'attached' argument to
7963 'options'. Use supported_ptrace_options.
c8f6c93c 7964 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7965 supported_ptrace_options.
7966 (linux_ptrace_set_additional_flags): Delete function.
7967 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7968 Delete function prototype.
7969 * remote.c (remote_fork_event_p): New function.
7970 (remote_detach_pid): New function.
7971 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7972 if doing detach-on-fork.
7973 (remote_follow_fork): New function.
7974 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7975 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7976 (init_extended_remote_ops): Initialize to_follow_fork.
7977
89245bc0
DB
79782015-05-12 Don Breazeal <donb@codesourcery.com>
7979
7980 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7981 from static to extern.
7982 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7983 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7984 * PACKET_vfork_event_feature>: New enumeration constants.
7985 (remote_protocol_features): Add table entries for new packets.
7986 (remote_query_supported): Add new feature queries to qSupported
7987 packet.
7988
835205d0
GB
79892015-05-12 Gary Benson <gbenson@redhat.com>
7990
7991 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7992 for fake PIDs as well as real ones.
7993 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7994
4c082a81
SC
79952015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7996
7997 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7998 * python/py-value.c (valpy_reference_value): New function.
7999 (valpy_const_value): Likewise.
8000 (value_object_methods): Add new methods.
8001 * value.c (make_cv_value): New function.
8002 * value.h (make_cv_value): Declare.
8003
afa6c9ab
SL
80042015-05-08 Yao Qi <yao@codesourcery.com>
8005 Sandra Loosemore <sandra@codesourcery.com>
8006
8007 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8008 to 'lh->include_dirs' before accessing to it.
8009 (psymtab_include_file_name): Likewise.
8010 (dwarf_decode_lines_1): Likewise.
8011 (dwarf_decode_lines): Likewise.
8012 (file_file_name): Likewise.
8013
35d54293
SL
80142015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8015
8016 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8017 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8018 (nios2_linux_rt_sigreturn_init): Adjust base address of
8019 register save area.
8020
b73c49b7
SL
80212015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8022
8023 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8024 "trap 31" as the breakpoint instruction on all targets.
8025
dd9f02a0
JK
80262015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 * infcmd.c (print_return_value): Remove unused declaration.
8029
6ad395a7
JB
80302015-05-08 Joel Brobecker <brobecker@adacore.com>
8031
8032 * dwarf2read.c (attr_to_dynamic_prop)
8033 <DW_AT_data_member_location>: Use read_type_die isntead of
8034 get_die_type.
8035
8344af1e
JB
80362015-05-08 Joel Brobecker <brobecker@adacore.com>
8037
8038 * ada-lang.c (ada_convert_actual): Add handling of formals
8039 passed inside an aligner type.
8040
80b0912b
JB
80412015-05-08 Joel Brobecker <brobecker@adacore.com>
8042
8043 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8044
df2eb078
SC
80452015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8046
8047 PR python/18291
8048 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8049 Print xmethod matcher status.
8050
2492f0d0
AA
80512015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8052
8053 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8054 register in the regcache when treating the PSWM register, and vice
8055 versa.
8056
1c56a84d
GB
80572015-05-07 Gary Benson <gbenson@redhat.com>
8058
8059 * linux-thread-db.c (struct thread_db_info)
8060 <td_ta_map_id2thr_p>: Remove field.
8061 (try_thread_db_load_1): Remove initialization for the above.
8062
74850322
GB
80632015-05-07 Gary Benson <gbenson@redhat.com>
8064
8065 * linux-thread-db.c (struct thread_db_info)
8066 <td_thr_validate_p>: Remove field.
8067 (try_thread_db_load_1): Remove initialization for the above.
8068
e26efa40
JK
80692015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8070
8071 * compile/compile-object-load.c (compile_object_load): Support
8072 mst_text_gnu_ifunc.
8073
851c9091
JK
80742015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8075
8076 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8077 const. Use new variables for the const compatibility.
8078 (eval_compile_command): Make the cmd_string parameter const.
8079 * compile/compile.h (eval_compile_command): Make the cmd_string
8080 parameter const.
8081
f218b647
JB
80822015-05-06 Joel Brobecker <brobecker@adacore.com>
8083
8084 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8085 comment.
8086 * top.c (deprecated_init_ui_hook): Delete.
8087 (gdb_init): Remove handling of deprecated_init_ui_hook.
8088 * interps.c (clear_interpreter_hooks): Remove handling of
8089 deprecated_init_ui_hook.
8090 * main.c (captured_main): Update comment.
8091
b30a0bc3
JB
80922015-05-06 Joel Brobecker <brobecker@adacore.com>
8093
8094 * solib.c (_initialize_solib): Add "info dll" alias creation.
8095 * windows-nat.c (set_windows_aliases): Delete.
8096 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8097 assignment.
8098 * NEWS: Add news entry about "info dll" now being available
8099 on all platforms.
8100
7c512744
JB
81012015-05-05 Joel Brobecker <brobecker@adacore.com>
8102
8103 * ada-lang.c (value_assign_to_component): Reformat and improve
8104 documentation. Remove all trailing spaces.
8105
0fa7fe50
JB
81062015-05-05 Joel Brobecker <brobecker@adacore.com>
8107
8108 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8109 Stop counting inlined frames as soon as an out-of-line function
8110 is found.
8111
3ea89b92
PMR
81122014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8113
8114 * dwarf2read.c (inherit_abstract_dies): Skip
8115 DW_TAG_GNU_call_site dies while inheriting children of an
8116 abstract DIE into a scope.
8117 (read_lexical_block_scope): Inherit abstract DIE's for
8118 lexical scopes.
8119
2478d075
JB
81202015-05-05 Joel Brobecker <brobecker@adacore.com>
8121
8122 * ada-valprint.c (val_print_packed_array_elements): Delete
8123 variable "len". Add a type-length check when comparing two
8124 consecutive elements of the array. Use the element's actual
8125 length in call to value_contents_eq.
8126 * ada-lang.c (ada_value_primitive_packed_val): Always return
8127 a value whose type has been resolved.
8128
fc958966
JB
81292015-05-05 Joel Brobecker <brobecker@adacore.com>
8130
8131 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8132 BIT_SIZE and LEN if the size of the resolved type is smaller
8133 than BIT_SIZE * HOST_CHAR_BIT.
8134
ca34b84f
JB
81352015-05-05 Joel Brobecker <brobecker@adacore.com>
8136
8137 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8138 correct address in call to value_at. Adjust call to
8139 value_address accordingly.
8140
62c67f3c
JB
81412015-05-05 Joel Brobecker <brobecker@adacore.com>
8142
8143 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8144 to print it.
8145
c3345124
JB
81462015-05-05 Joel Brobecker <brobecker@adacore.com>
8147
8148 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8149 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8150 pinfo->valaddr.
8151 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8152 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8153 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8154 Add handling of addr_stack->valaddr.
8155 (resolve_dynamic_type): Add "valaddr" parameter.
8156 Set pinfo.valaddr field.
8157 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8158 resolve_dynamic_type.
8159 (ada_discrete_type_low_bound): Likewise.
8160 * findvar.c (default_read_var_value): Likewise.
8161 * value.c (value_from_contents_and_address): Likewise.
8162
75ea5859
JB
81632015-05-05 Joel Brobecker <brobecker@adacore.com>
8164
8165 * gdbtypes.c (resolve_dynamic_array): Use
8166 create_array_type_with_stride instead of create_array_type.
8167
0952813b
DD
81682015-04-30 DJ Delorie <dj@redhat.com>
8169
8170 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8171 rl78_decode_opcode
8172
2ce1cdbf
DE
81732015-04-29 Doug Evans <dje@google.com>
8174
8175 PR python/18285
8176 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8177 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8178 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8179 * extension-priv.h (struct extension_language_ops)
8180 <get_xmethod_result_type>: New member.
8181 * extension.c (get_xmethod_result_type): New function.
8182 * extension.h (get_xmethod_result_type): Declare.
8183 * python/py-xmethods.c (get_result_type_method_name): New static
8184 global.
8185 (py_get_result_type_method_name): Ditto.
8186 (gdbpy_get_xmethod_result_type): New function.
8187 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8188 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8189 * python/python.c (python_extension_ops): Add
8190 gdbpy_get_xmethod_result_type.
8191 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8192 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8193 xmethods.
8194 (value_x_unop): Ditto.
8195 * value.c (result_type_of_xmethod): New function.
8196 * value.h (result_type_of_xmethod): Declare.
8197
998d2a3e
GB
81982015-04-29 Gary Benson <gbenson@redhat.com>
8199
8200 * solib.c (solib_find_1): Allow fd argument to be NULL.
8201 (exec_file_find): Update comment.
8202 (solib_find): Likewise.
8203 * exec.c (exec_file_locate_attach): Use NULL as fd
8204 argument to exec_file_find to avoid having to close
8205 the opened file.
8206 * infrun.c (follow_exec): Likewise.
8207
34f5f757
DE
82082015-04-28 Doug Evans <dje@google.com>
8209
8210 PR python/18299
8211 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8212 name or __name__ attributes. Handle gdb module as first argument.
8213
69b4374a
DE
82142015-04-28 Doug Evans <dje@google.com>
8215
8216 PR python/18089
8217 * python/py-prettyprint.c (print_children): Verify result of children
8218 iterator. Provide better error message.
8219 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8220 * python/python.c (gdbpy_print_python_errors_p): New function.
8221
5e7cf078
DE
82222015-04-28 Doug Evans <dje@google.com>
8223
8224 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8225
59fb7612
SS
82262015-04-28 Sasha Smundak <asmundak@google.com>
8227
8228 * NEWS: Mention gdb.Type.optimized_out method.
8229 * python/py-type.c (typy_optimized_out): New function.
8230
cea6e4f1
JB
82312015-04-28 John Baldwin <jhb@FreeBSD.org>
8232
8233 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8234
24b73f8e
PP
82352015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8236
8237 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8238 (initialize_utils): Move call of init_page_info() to ...
8239 * top.c (gdb_init): ... here.
8240
a88d0bb3
PP
82412015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8242
8243 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8244 (tui_sigwinch_handler): Still update our idea of
8245 the terminal's width and height even when TUI is not active.
8246
d6e5e7f7
PP
82472015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8248
8249 * utils.h (set_screen_width_and_height): Declare.
8250 * utils.c (set_screen_width_and_height): Define.
8251 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8252
ff862be4
GB
82532015-04-28 Gary Benson <gbenson@redhat.com>
8254
8255 * infrun.c (solist.h): New include.
8256 (follow_exec): Use exec_file_find to prefix execd_pathname
8257 with gdb_sysroot.
8258
2eb639cb
PP
82592015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8260
8261 * tui/tui-source.c (tui_set_source_content): Avoid calling
8262 strcpy() when offset is 0.
8263
97206799
PP
82642015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8265
8266 PR gdb/18155
8267 * tui/tui-data.c (tui_free_window): Don't free the locator
8268 window when passed an SRC_WIN or a DISASSEM_WIN.
8269
63ed8182
PP
82702015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8271
8272 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8273 (tui_win_content): Move declaration.
8274 (struct tui_gen_win_info): Give 'content' field the
8275 type tui_win_content.
8276 * tui/tui-data.c (init_content_element): Remove redundant and
8277 erroneous casts.
8278 (tui_add_content_elements): Remove erroneous cast.
8279 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8280 casts.
8281 (tui_get_begin_asm_address): Likewise.
8282 * tui/tui-regs.c (tui_show_registers): Likewise.
8283 (tui_show_register_group): Likewise.
8284 (tui_display_registers_from): Likewise.
8285 (tui_check_register_values): Likewise.
8286 * tui/tui-source.c (tui_set_source_content): Likewise.
8287 (tui_set_source_content_nil): Likewise.
8288 (tui_source_is_displayed): Likewise.
8289 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8290 (tui_set_locator_fullname): Likewise.
8291 (tui_set_locator_info): Likewise.
8292 (tui_show_frame_info): Likewise.
8293 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8294 (tui_show_source_line): Likewise.
8295 (tui_horizontal_source_scroll): Likewise.
8296 (tui_update_breakpoint_info): Likewise.
8297 (tui_set_exec_info_content): Likewise.
8298 (tui_show_exec_info_content): Likewise.
8299 (tui_alloc_source_buffer): Likewise.
8300 (tui_line_is_displayed): Likewise.
8301 (tui_addr_is_displayed): Likewise.
8302
d2b41ca0
JB
83032015-04-27 John Baldwin <jhb@FreeBSD.org>
8304
8305 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8306 event if PL_FLAG_EXEC is set.
8307 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8308 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8309 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8310 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8311 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8312
e58e05d6
JB
83132015-04-27 John Baldwin <jhb@FreeBSD.org>
8314
8315 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8316 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8317 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8318 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8319 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8320 [PT_LWPINFO] (fbsd_wait): New function.
8321 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8322 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8323 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8324 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8325 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8326 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8327 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8328 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8329 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8330 "fbsd_wait".
8331 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8332 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8333 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8334 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8335 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8336 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8337 Set "to_post_attach" to "fbsd_post_attach".
8338
8f60fe01
JB
83392015-04-27 John Baldwin <jhb@FreeBSD.org>
8340
8341 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8342 (fbsd_find_memory_regions): Mark static.
8343 (fbsd_nat_add_target): New function.
8344 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8345 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8346 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8347 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8348 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8349 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8350
5fbae7d1
GB
83512015-04-27 Gary Benson <gbenson@redhat.com>
8352
8353 * objfiles.c (allocate_objfile): Do not attempt to expand name
8354 if name is a "target:" filename.
8355 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8356 to load auto-load scripts for objfiles with "target:" filenames.
8357
417c80f9
AA
83582015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8359
8360 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8361 (enum s390_vector_abi_kind): New enum.
8362 (struct gdbarch_tdep)<vector_abi>: New field.
8363 (s390_effective_inner_type): Add parameter min_size. Stop
8364 unwrapping if the inner type is smaller than min_size.
8365 (s390_function_arg_float): Adjust call to
8366 s390_effective_inner_type.
8367 (s390_function_arg_vector): New function.
8368 (s390_function_arg_integer): Adjust comment.
8369 (struct s390_arg_state)<vr>: New field.
8370 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8371 arguments according to vector ABI when appropriate.
8372 (s390_push_dummy_call): Initialize the argument state's field
8373 'vr'. Adjust calls to s390_handle_arg.
8374 (s390_register_return_value): Handle vector return values.
8375 (s390_return_value): Apply the "register" return value convention
8376 to a vector when appropriate.
8377 (s390_gdbarch_init): Initialize tdep->vector_abi.
8378 * NEWS: Announce S390 vector ABI support.
8379
4e65a17e
AA
83802015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8381
8382 * s390-linux-tdep.c (s390_return_value_convention): Remove
8383 function. Inline its logic...
8384 (s390_return_value): ...here. Instead, move the handling of the
8385 "register" return value convention...
8386 (s390_register_return_value): ...here. New function.
8387
80f75320
AA
83882015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8389
8390 * s390-linux-tdep.c
8391 (is_float_singleton): Remove function. Move the "singleton" part
8392 of the logic...
8393 (s390_effective_inner_type): ...here. New function.
8394 (is_float_like): Remove function. Inline its logic...
8395 (s390_function_arg_float): ...here.
8396 (is_pointer_like, is_integer_like, is_struct_like): Remove
8397 functions. Inline their logic...
8398 (s390_function_arg_integer): ...here.
8399 (s390_function_arg_pass_by_reference): Remove function.
8400 (extend_simple_arg): Remove function.
8401 (alignment_of): Remove function.
8402 (struct s390_arg_state): New structure.
8403 (s390_handle_arg): New function.
8404 (s390_push_dummy_call): Move parameter placement logic to the new
8405 function s390_handle_arg. Call it for calculating the stack area
8406 sizes first, and again for actually writing the parameters.
8407
6dbc9c04
AA
84082015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8409
8410 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8411 false if the argument is zero.
8412
9e195661
PMR
84132015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8414
8415 * ada-lang.c (template_to_static_fixed_type): Return input type
8416 when it is already fixed. Cache the input type itself when not
8417 creating a static fixed copy. Make it explicit that we never
8418 molestate the input type.
8419 * gdbtypes.c (resolve_dynamic_struct): Reset the
8420 TYPE_TARGET_TYPE field for resolved copies.
8421
460efde1
JB
84222015-04-27 Joel Brobecker <brobecker@adacore.com>
8423
8424 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8425 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8426 (template_to_static_fixed_type): Call ada_check_typedef only
8427 when necessary.
8428
6faec16b
AB
84292015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8430
8431 * cli/cli-dump.c (srec_dump_command): Add internationalization
8432 mark ups.
8433 (ihex_dump_command): Likewise.
8434 (tekhex_dump_command): Likewise.
8435 (binary_dump_command): Likewise.
8436 (binary_append_command): Likewise.
8437
cf75d6c3
AB
84382015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * cli/cli-dump.c (verilog_cmdlist): New variable.
8441 (dump_verilog_memory): New function.
8442 (dump_verilog_value): New function.
8443 (verilog_dump_command): New function.
8444 (_initialize_cli_dump): Add new commands to support verilog dump
8445 format.
8446 * NEWS: Add entry for "dump verilog".
8447
8cd00c59
PMR
84482015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8449
8450 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8451 descriptive type when there is none.
8452
8900d71e
PP
84532015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8454
8455 * tui/tui-win.c (tui_async_resize_screen): Call
8456 rl_resize_terminal().
8457
f16eab5f
JT
84582015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8459
8460 * windows-nat.c (handle_output_debug_string): Don't change
8461 current_event.dwThreadId.
8462 (get_windows_debug_event): Use thread_id, rather than relying on
8463 current_event.dwThreadId being changed.
8464
68ffc902
JT
84652015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8466
8467 * windows-nat.c (windows_continue): Report an error if
8468 ContinueDebugEvent() fails.
8469
23942819
JT
84702015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8471
8472 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8473
e6ad66bd
JT
84742015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8475
8476 * windows-nat.c (get_windows_debug_event): Replace retval with
8477 thread_id throughout. Update stale comment.
8478
776704b9
JT
84792015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8480
8481 * windows-nat.c (get_windows_debug_event): Don't use ternary
8482 conditional operator.
8483
8aae4344
PM
84842015-04-21 Pierre Muller <muller@sourceware.org>
8485
8486 PR pascal/17815
8487 p-exp.y (yylex): Reorganize code to return the matched pattern
8488 for a field of this.
8489
819843c7
GB
84902015-04-21 Gary Benson <gbenson@redhat.com>
8491
8492 * common/fileio.h (fileio_to_host_openflags): New declaration.
8493 * common/fileio.c (fcntl.h): New include.
8494 (fileio_to_host_openflags): New function, factored out from...
8495 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8496 Single use updated.
8497
0bca7f99
KB
84982015-04-21 Kevin Buettner <kevinb@redhat.com>
8499
8500 * rl78-tdep.c (RL78_SP_ADDR): Define.
8501 (opc_reg_to_gdb_regnum): New static function.
8502 (rl78_analyze_prologue): Recognize instructions forming slightly
8503 more interesting prologues.
8504
e771e4be
PMR
85052015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8506
8507 Revert:
8508 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8509 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8510 TYPE_CODE_REF types so that they are not considered as dynamic
8511 depending on the referenced type.
8512 (resolve_dynamic_type_internal): Likewise.
8513
ee715b5a
PMR
85142015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8515
8516 Revert:
8517 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8518 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8519 "top_level" parameter.
8520 (resolve_dynamic_type_internal): Remove the unused "top_level"
8521 parameter. Update call to is_dynamic_type_internal.
8522 (is_dynamic_type): Update call to is_dynamic_type_internal.
8523 (resolve_dynamic_range): Update call to
8524 resolve_dynamic_type_internal.
8525 (resolve_dynamic_union): Likewise.
8526 (resolve_dynamic_struct): Likewise.
8527 (resolve_dynamic_type): Likewise.
8528
e31d7699
GKB
85292015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8530
8531 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8532 xmalloc.
8533
d214e5e7
TS
85342015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8535
110f9112
TS
8536 * reply_mig_hack.awk: Robustify parsing.
8537
d214e5e7
TS
8538 * reply_mig_hack.awk: Don't bother to declare an intermediate
8539 function pointer variable.
8540
8f61baf8
DE
85412015-04-17 Doug Evans <dje@google.com>
8542
8543 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8544 to "exec_displacement" to avoid confusion with inner use of the name.
8545
dbbf180a
YQ
85462015-04-17 Pedro Alves <palves@redhat.com>
8547
8548 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8549 if HW point of TYPE isn't supported.
8550
059790a0
YQ
85512015-04-17 Yao Qi <yao.qi@linaro.org>
8552 Pedro Alves <palves@redhat.com>
8553
8554 * target.h (target_can_use_hardware_watchpoint): Update comments.
8555 Remove trailing ";".
8556
1b6e6f5c
GB
85572015-04-17 Gary Benson <gbenson@redhat.com>
8558
8559 * remote.c (remote_add_inferior): New argument try_open_exec.
8560 If nonzero, attempt to open the inferior's executable file as
8561 the main executable if no main executable is open already.
8562 All callers updated.
8563 * NEWS: Mention that GDB now supports automatic location and
8564 retrieval of executable + files from remote targets.
8565
c78fa86a
GB
85662015-04-17 Gary Benson <gbenson@redhat.com>
8567
8568 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8569 * remote.c (PACKET_qXfer_exec_file): Likewise.
8570 (remote_protocol_features): Register the
8571 "qXfer:exec-file:read" feature.
8572 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8573 (remote_pid_to_exec_file): New function.
8574 (init_remote_ops): Initialize to_pid_to_exec_file.
8575 (_initialize_remote): Register new "set/show remote
8576 pid-to-exec-file-packet" command.
8577 * NEWS: Announce new qXfer:exec-file:read packet.
8578
e0d86d2c
GB
85792015-04-17 Gary Benson <gbenson@redhat.com>
8580
8581 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8582 New declaration.
8583 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8584 New function, factored out from...
8585 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8586
a9a5a3d1
GB
85872015-04-17 Gary Benson <gbenson@redhat.com>
8588
8589 * exec.c (solist.h): New include.
8590 (exec_file_locate_attach): Prefix absolute executable
8591 paths with gdb_sysroot if set.
8592 * NEWS: Mention that executable paths may be prepended
8593 with sysroot.
8594
af1900b0
GB
85952015-04-17 Gary Benson <gbenson@redhat.com>
8596
8597 * solist.h (exec_file_find): New declaration.
8598 * solib.c (solib_find_1): New function, factored out from...
8599 (solib_find): ...here.
8600 (exec_file_find): New function.
8601
a10de604
GB
86022015-04-17 Gary Benson <gbenson@redhat.com>
8603
8604 * gdbcore.h (exec_file_locate_attach): New declaration.
8605 * exec.c (exec_file_locate_attach): New function, factored
8606 out from...
8607 * infcmd.c (attach_command_post_wait): ...here.
8608
92209ddf
MF
86092015-04-17 Mike Frysinger <vapier@gentoo.org>
8610
8611 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8612
8550d3b3
YQ
86132015-04-16 Yao Qi <yao.qi@linaro.org>
8614
8615 * infrun.c (maybe_software_singlestep): Declare.
8616 (displaced_step_fixup): Call maybe_software_singlestep.
8617
30b3dd9d
DE
86182015-04-15 Doug Evans <dje@google.com>
8619
8620 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8621
61d96d7e
DE
86222015-04-15 Doug Evans <dje@google.com>
8623
8624 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8625
40d2f8d6
SM
86262015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8627
8628 * python/lib/gdb/command/unwinders.py: Add parentheses.
8629
6bbbba9b
YQ
86302015-04-15 Yao Qi <yao.qi@linaro.org>
8631
8632 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8633
2bb2dcab
YQ
86342015-04-15 Yao Qi <yao.qi@linaro.org>
8635
8636 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8637
41f071ef
YQ
86382015-04-15 Yao Qi <yao.qi@linaro.org>
8639
8640 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8641 dsc->insn_size instead of 4.
8642
326a5c7e
GB
86432015-04-14 Gary Benson <gbenson@redhat.com>
8644
8645 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8646 * minidebug.c (lzma_stat): Likewise.
8647 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8648 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8649
dd177e81
SS
86502015-04-13 Stan Shebs <stanshebs@google.com>
8651
8652 * MAINTAINERS: Update my email address.
8653
97de3545
JB
86542015-04-13 John Baldwin <jhb@FreeBSD.org>
8655
8656 * amd64-tdep.c (amd64_target_description): New function.
8657 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8658 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8659 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8660 x86 extended save area.
8661 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8662 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8663 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8664 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8665 "amd64fbsd_read_description".
8666 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8667 (amd64fbsd_supply_xstateregset): New function.
8668 (amd64fbsd_collect_xstateregset): New function.
8669 Add "amd64fbsd_xstateregset".
8670 (amd64fbsd_iterate_over_regset_sections): New function.
8671 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8672 "I386_FBSD_XSAVE_XCR0_OFFSET".
8673 Add "iterate_over_regset_sections" gdbarch method.
8674 Add "core_read_description" gdbarch method.
8675 * i386-tdep.c (i386_target_description): New function.
8676 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8677 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8678 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8679 x86 extended save area.
8680 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8681 * i386bsd-nat.h: Export i386bsd_xsave_len.
8682 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8683 (_initialize_i386fbsd_nat): Set "to_read_description" to
8684 "i386fbsd_read_description".
8685 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8686 (i386fbsd_core_read_description): New function.
8687 (i386fbsd_supply_xstateregset): New function.
8688 (i386fbsd_collect_xstateregset): New function.
8689 Add "i386fbsd_xstateregset".
8690 (i386fbsd_iterate_over_regset_sections): New function.
8691 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8692 "I386_FBSD_XSAVE_XCR0_OFFSET".
8693 Add "iterate_over_regset_sections" gdbarch method.
8694 Add "core_read_description" gdbarch method.
8695 * i386fbsd-tdep.h: New file.
8696
4f45d445
JK
86972015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8698
8699 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8700 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8701 conditional.
8702 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8703 and lb.
8704 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8705 va.
8706 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8707 conditional.
8708 * defs.h (xdb_commands): Remove declaration.
8709 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8710 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8711 * infcmd.c (run_no_args_command, go_command): Remove.
8712 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8713 * infrun.c (xdb_handle_command): Remove.
8714 (_initialize_infrun): Remove xdb_commands for lz and z.
8715 * main.c (xdb_commands): Remove variable.
8716 (captured_main): Remove "xdb" from long_options.
8717 (print_gdb_help): Remove --xdb from help.
8718 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8719 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8720 * stack.c (backtrace_full_command, args_plus_locals_info)
8721 (current_frame_command): Remove.
8722 (_initialize_stack): Remove xdb_commands for t, T and l.
8723 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8724 * thread.c (_initialize_thread): Remove xdb_commands condition.
8725 * tui/tui-layout.c (tui_toggle_layout_command)
8726 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8727 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8728 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8729 (tui_scroll_regs_backward_command): Remove.
8730 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8731 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8732 (_initialize_tui_win): Remove xdb_commands for U and w.
8733 * utils.c (pagination_on_command, pagination_off_command): Remove.
8734 (initialize_utils): Remove xdb_commands for am and sm.
8735
cb71640d
PA
87362015-04-10 Pedro Alves <palves@redhat.com>
8737
8738 * infrun.c (displaced_step_fixup): Switch to the event ptid
8739 earlier. If the thread stopped for a watchpoint and the
8740 target/arch has non-continuable watchpoints, cancel the displaced
8741 step.
8742 (resume): Don't start a displaced step if in-line step-over info
8743 is valid.
8744
8f572e5c
PA
87452015-04-10 Pedro Alves <palves@redhat.com>
8746
8747 * infrun.c (displaced_step_in_progress): New function.
8748 (do_target_resume): Advise target to report all signals if
8749 displaced stepping.
8750
8d707a12
PA
87512015-04-10 Pedro Alves <palves@redhat.com>
8752
8753 PR gdb/18216
8754 * infrun.c (process_event_stop_test): Don't assume a step-resume
8755 is set if tp->stepped_breakpoint is true.
8756
ef713951
YQ
87572015-04-10 Yao Qi <yao.qi@linaro.org>
8758
8759 * arm-tdep.c (install_alu_reg): Update comment.
8760 (thumb_copy_alu_reg): Remove local variable rn. Update
8761 debugging message. Use r2 instead of r1 in the modified
8762 instruction.
8763
906d60cf
PA
87642015-04-10 Pedro Alves <palves@redhat.com>
8765
8766 PR gdb/13858
8767 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8768 linux_displaced_step_location as gdbarch_displaced_step_location
8769 hook.
8770 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8771 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8772 * linux-tdep.c (linux_displaced_step_location): New function,
8773 based on ppc_linux_displaced_step_location.
8774 * linux-tdep.h (linux_displaced_step_location): New declaration.
8775 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8776 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8777 Delete.
8778 (ppc_linux_init_abi): Install linux_displaced_step_location as
8779 gdbarch_displaced_step_location hook, even without Cell/B.E..
8780 (_initialize_ppc_linux_tdep): Don't install
8781 ppc_linux_inferior_created as inferior_created observer.
8782 * s390-linux-tdep.c (s390_gdbarch_init): Install
8783 linux_displaced_step_location as gdbarch_displaced_step_location
8784 hook.
8785
7823a941
GB
87862015-04-09 Gary Benson <gbenson@redhat.com>
8787
8788 * common/common-remote-fileio.h: Rename to...
8789 * common/fileio.h: ...this. Update all references.
8790 (remote_fileio_to_fio_error): Rename to...
8791 (host_to_fileio_error): ...this.
8792 (remote_fileio_to_be): Rename to...
8793 (host_to_bigendian): ...this. Update all callers.
8794 (remote_fileio_to_fio_uint): Rename to...
8795 (host_to_fileio_uint): ...this. Update all callers.
8796 (remote_fileio_to_fio_time): Rename to...
8797 (host_to_fileio_time): ...this. Update all callers.
8798 (remote_fileio_to_fio_stat): Rename to...
8799 (host_to_fileio_stat): ...this.
8800 Update all references.
8801 * common/common-remote-fileio.c: Rename to...
8802 * common/fileio.c: ...this. Update all references.
8803 (remote_fileio_to_fio_error): Rename to...
8804 (host_to_fileio_error): ...this. Update all callers.
8805 (remote_fileio_mode_to_target): Rename to...
8806 (fileio_mode_pack): ...this. Update all callers.
8807 (remote_fileio_to_fio_mode): Rename to...
8808 (host_to_fileio_mode): ...this. Update all callers.
8809 (remote_fileio_to_fio_ulong): Rename to...
8810 (host_to_fileio_ulong): ...this. Update all callers.
8811 (remote_fileio_to_fio_stat): Rename to...
8812 (host_to_fileio_stat): ...this. Update all callers.
8813
f2983cc3
AW
88142015-04-09 Andy Wingo <wingo@igalia.com>
8815
8816 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8817 (frame_functions): Bind gdbscm_frame_read_register to
8818 frame-read-register.
8819 * guile/lib/gdb.scm (frame-read-register): Export.
8820
b88bb450
GB
88212015-04-09 Gary Benson <gbenson@redhat.com>
8822
8823 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8824 New declaration.
8825 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8826 New function, factored out the named functions below.
8827 * inf-child.c (gdb/fileio.h): Remove include.
8828 (common-remote-fileio.h): New include.
8829 (inf_child_errno_to_fileio_error): Remove function. Update
8830 all callers to use remote_fileio_to_fio_error.
8831 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8832
2f2680f3
AW
88332015-04-09 Andy Wingo <wingo@igalia.com>
8834
8835 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8836
5a2d4533
L
88372015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8838
8839 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8840 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8841 * configure: Regenerated.
8842
421693b0
PA
88432015-04-09 Pedro Alves <palves@redhat.com>
8844
8845 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8846 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8847 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8848 * gnulib/import/Makefile.am: Update.
8849 * gnulib/import/Makefile.in: Update.
8850 * gnulib/import/m4/gnulib-cache.m4: Update.
8851 * gnulib/import/m4/gnulib-comp.m4: Update.
8852 * gnulib/import/m4/strtok_r.m4: New file.
8853 * gnulib/import/strtok_r.c: New file.
8854
f543dc83
PA
88552015-04-09 Pedro Alves <palves@redhat.com>
8856
8857 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8858 "called too early to check prototype".
8859
6d62641c
SDJ
88602015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8861
8862 PR python/16699
8863 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8864 use a caching mechanism. Adjust comments and code to reflect
8865 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8866 (cmdpy_completer_handle_brkchars): Adjust call to
8867 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8868 (cmdpy_completer): Likewise.
8869
85558555
YQ
88702015-04-08 Yao Qi <yao.qi@linaro.org>
8871
8872 * spu-tdep.c (spu_gdbarch_init): Don't call
8873 set_gdbarch_cannot_step_breakpoint.
8874
d249a14a
SDJ
88752015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8876
8877 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8878
8a06aea7
PA
88792015-04-07 Pedro Alves <palves@redhat.com>
8880
8881 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8882 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8883 (delete_exited_threads): New declaration.
8884 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8885 * linux-nat.c (linux_nat_update_thread_list): New function.
8886 (linux_nat_add_target): Install it.
8887 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8888 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8889 (delete_exited_threads): New function.
8890
d9b67d9f
PA
88912015-04-07 Pedro Alves <pedro@codesourcery.com>
8892
8893 * infrun.c (resume) <displaced stepping debug output>: Get the
8894 leader thread's regcache, not resume_ptid's.
8895
2c26b84f
DE
88962015-04-06 Doug Evans <xdje42@gmail.com>
8897
8898 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8899 VAR_DOMAIN.
8900 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8901 Include symbol domain in debugging output.
8902
7a85168d
PA
89032015-04-06 Pedro Alves <palves@redhat.com>
8904 Bernd Edlinger <bernd.edlinger@hotmail.de>
8905
8906 * configure.ac: Remove the mingw32-specific stub-termcap.o
8907 fallback, and instead fallback to the stub termcap on all hosts.
8908 * configure: Regenerate.
8909 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8910 symbols.
8911
25755e2b
PMR
89122015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8913
8914 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8915 "top_level" parameter.
8916 (resolve_dynamic_type_internal): Remove the unused "top_level"
8917 parameter. Update call to is_dynamic_type_internal.
8918 (is_dynamic_type): Update call to is_dynamic_type_internal.
8919 (resolve_dynamic_range): Update call to
8920 resolve_dynamic_type_internal.
8921 (resolve_dynamic_union): Likewise.
8922 (resolve_dynamic_struct): Likewise.
8923 (resolve_dynamic_type): Likewise.
8924
961f4160
PMR
89252015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8926
8927 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8928 TYPE_CODE_REF types so that they are not considered as dynamic
8929 depending on the referenced type.
8930 (resolve_dynamic_type_internal): Likewise.
8931
39f3de7c
L
89322015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8933
8934 * Makefile.in (top_srcdir): New.
8935 * configure: Regenerated.
8936
599bd15c
GB
89372015-04-02 Gary Benson <gbenson@redhat.com>
8938
8939 * NEWS: Announce the new default sysroot of "target:".
8940
fed040c6
GB
89412015-04-02 Gary Benson <gbenson@redhat.com>
8942
8943 * main.c (captured_main): Set gdb_sysroot to "target:"
8944 if not otherwise set.
8945
64c0b5de
GB
89462015-04-02 Gary Benson <gbenson@redhat.com>
8947
8948 * exec.c (exec_file_attach): Support "target:" filenames.
8949
b57fbfba
GB
89502015-04-02 Gary Benson <gbenson@redhat.com>
8951
8952 * solib.c (solib_find): Strip "target:" prefix from sysroot
8953 if accessing local files.
8954
97a41605
GB
89552015-04-02 Gary Benson <gbenson@redhat.com>
8956
8957 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8958 checks and error messages.
8959
2938e6cf
GB
89602015-04-02 Gary Benson <gbenson@redhat.com>
8961
8962 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8963 (remote_filename_p): Remove declaration.
8964 (remote_bfd_open): Likewise.
8965 * remote.c (remote_bfd_iovec_open): Remove function.
8966 (remote_bfd_iovec_close): Likewise.
8967 (remote_bfd_iovec_pread): Likewise.
8968 (remote_bfd_iovec_stat): Likewise.
8969 (remote_filename_p): Likewise.
8970 (remote_bfd_open): Likewise.
8971 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8972 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8973 (gdb_bfd_open_maybe_remote): Remove function.
8974 (symfile_bfd_open): Replace remote filename check with
8975 target filename check.
8976 (reread_symbols): Use gdb_bfd_open.
8977 * build-id.c (gdbcore.h): New include.
8978 (build_id_to_debug_bfd): Use gdb_bfd_open.
8979 * infcmd.c (attach_command_post_wait): Remove remote filename
8980 check.
8981 * solib.c (solib_find): Replace remote-specific handling with
8982 target-specific handling. Update comments where necessary.
8983 (solib_bfd_open): Replace remote-specific handling with
8984 target-specific handling.
8985 (gdb_sysroot_changed): New function.
8986 (_initialize_solib): Call the above when gdb_sysroot changes.
8987 * windows-tdep.c (gdbcore.h): New include.
8988 (windows_xfer_shared_library): Use gdb_bfd_open.
8989
f08e97fe
GB
89902015-04-02 Gary Benson <gbenson@redhat.com>
8991
8992 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8993 (is_target_filename): New declaration.
8994 (gdb_bfd_has_target_filename): Likewise.
8995 (gdb_bfd_open): Update documentation comment.
8996 * gdb_bfd.c (target.h): New include.
8997 (gdb/fileio.h): Likewise.
8998 (is_target_filename): New function.
8999 (gdb_bfd_has_target_filename): Likewise.
9000 (fileio_errno_to_host): Likewise.
9001 (gdb_bfd_iovec_fileio_open): Likewise.
9002 (gdb_bfd_iovec_fileio_pread): Likewise.
9003 (gdb_bfd_iovec_fileio_close): Likewise.
9004 (gdb_bfd_iovec_fileio_fstat): Likewise.
9005 (gdb_bfd_open): Use target fileio to access paths prefixed
9006 with "target:" where necessary.
9007
4bd7dc42
GB
90082015-04-02 Gary Benson <gbenson@redhat.com>
9009
9010 * target.h (struct target_ops) <to_filesystem_is_local>:
9011 New field.
9012 (target_filesystem_is_local): New macro.
9013 * target-delegates.c: Regenerate.
9014 * remote.c (remote_filesystem_is_local): New function.
9015 (init_remote_ops): Initialize to_filesystem_is_local.
9016
9b15c1f0
GB
90172015-04-02 Gary Benson <gbenson@redhat.com>
9018
9019 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9020 (target_fileio_fstat): New declaration.
9021 * target.c (target_fileio_fstat): New function.
9022 * inf-child.c (inf_child_fileio_fstat): Likewise.
9023 (inf_child_target): Initialize to_fileio_fstat.
9024 * remote.c (init_remote_ops): Likewise.
9025
d11916aa
SS
90262015-04-01 Sasha Smundak <asmundak@google.com>
9027
9028 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9029 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9030 (py-unwind.o): New recipe.
9031 * NEWS: mention Python frame unwinding.
9032 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9033 gdb/unwinder.py and gdb/command/unwinder.py
9034 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9035 list.
9036 (execute_unwinders): New function.
9037 * python/lib/gdb/command/unwinders.py: New file.
9038 * python/lib/gdb/unwinder.py: New file.
9039 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9040 (objfpy_dealloc): Decrement frame_unwinders reference count.
9041 (objfpy_initialize): Create frame_unwinders list.
9042 (objfpy_get_frame_unwinders): New function.
9043 (objfpy_set_frame_unwinders): Ditto.
9044 (objfile_getset): Add frame_unwinders attribute to Objfile.
9045 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9046 (pspy_dealloc): Decrement frame_unwinders reference count.
9047 (pspy_initialize): Create frame_unwinders list.
9048 (pspy_get_frame_unwinders): New function.
9049 (pspy_set_frame_unwinders): Ditto.
9050 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9051 * python/py-unwind.c: New file.
9052 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9053 (objpy_get_frame_unwinders): New prototype.
9054 (gdbpy_initialize_unwind): New prototype.
9055 * python/python.c (gdbpy_apply_type_printers): Call
9056 gdbpy_initialize_unwind.
9057
6b403daa
PA
90582015-04-01 Pedro Alves <palves@redhat.com>
9059
9060 * infrun.c (resume): Check currently_stepping after clearing
9061 stepped_breakpoint, not before.
9062
1176ecec
PA
90632015-04-01 Pedro Alves <palves@redhat.com>
9064
9065 * infrun.c (print_target_wait_results): Print all the ptid
9066 elements.
9067
de1fe8c8
PA
90682015-04-01 Pedro Alves <palves@redhat.com>
9069
9070 * infrun.c (keep_going): Also discard cleanups if inserting
9071 breakpoints fails.
9072
e6f5c25b
PA
90732015-04-01 Pedro Alves <palves@redhat.com>
9074
9075 * infrun.c (wait_for_inferior): Install the
9076 finish_thread_state_cleanup cleanup across the whole function, not
9077 just around handle_inferior_event.
9078
1ac806b8
PA
90792015-04-01 Pedro Alves <palves@redhat.com>
9080
9081 * infrun.c (resume) <step past permanent breakpoint>: Use
9082 do_target_resume.
9083
2ee52aa4
PA
90842015-04-01 Pedro Alves <palves@redhat.com>
9085
9086 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9087
5445da1b
PMR
90882015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9089
9090 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9091
4eec2deb
PA
90922015-04-01 Pedro Alves <palves@redhat.com>
9093
9094 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9095 list if it was marked exited.
9096
afa59b79
L
90972015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9098
9099 * configure: Regenerated.
9100
df8411da
SDJ
91012015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9102 Jan Kratochvil <jan.kratochvil@redhat.com>
9103 Oleg Nesterov <oleg@redhat.com>
9104
9105 PR corefiles/16092
9106 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9107 New enum identifying the various options of the coredump_filter
9108 file.
9109 (struct smaps_vmflags): New struct.
9110 (use_coredump_filter): New variable.
9111 (decode_vmflags): New function.
9112 (mapping_is_anonymous_p): Likewise.
9113 (dump_mapping_p): Likewise.
9114 (linux_find_memory_regions_full): New variables
9115 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9116 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9117 parsing of its information. Implement memory mapping filtering
9118 based on its contents.
9119 (show_use_coredump_filter): New function.
9120 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9121 * NEWS: Mention the possibility of using the
9122 '/proc/PID/coredump_filter' file when generating a corefile.
9123 Mention new command 'set use-coredump-filter'.
9124
416f679e
SDJ
91252015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9126
9127 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9128 read_memory_unsigned_integer.
9129
711a72d3
L
91302015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9131
9132 * Makefile.in (ZLIB): New.
9133 (ZLIBINC): Likewise.
9134 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9135 (CLIBS): Add $(ZLIB).
9136 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9137 Add -lz to LIBS.
9138 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9139 * top.c (print_gdb_configuration): Remove --with-zlib and
9140 --without-zlib.
9141 * config.in: Regenerated.
9142 * configure: Likewise.
9143
d33279b3
AT
91442015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9145
9146 * NEWS: Mention info os cpus support.
9147 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9148 (struct osdata_type): Add cpus entry, reorder the entries in
9149 alphabetical order.
9150
71b30f27
MK
91512015-03-31 Matthias Klose <doko@ubuntu.com>
9152
9153 * compile/compile.c (compile_to_object): Allow triplets with or
9154 without vendor set.
9155
13ce9222
DE
91562015-03-30 Doug Evans <dje@google.com>
9157
9158 PR c++/18141
9159 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9160 klass in VAR_DOMAIN.
9161
20f796c9
GB
91622015-03-30 Gary Benson <gbenson@redhat.com>
9163
9164 * remote.c (remote_mourn_1): Remove function. Update all callers
9165 to use remote_mourn.
9166 (extended_remote_mourn_1): Remove function. Update all callers
9167 to use extended_remote_mourn.
9168 (extended_remote_attach_1): Remove function. Update all callers
9169 to use extended_remote_attach.
9170
49d45b20
JB
91712015-03-28 James Bowman <james.bowman@ftdichip.com>
9172
9173 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9174 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9175 (ALLDEPFILES): Add ft32-tdep.c.
9176 * configure.tgt: Add FT32 entry.
9177 * ft32-tdep.c: New file, FT32 target-dependent code.
9178 * ft32-tdep.h: New file, FT32 target-dependent code.
9179
1c4ff080
JK
91802015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9181
9182 Revert:
9183 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9184 Code cleanup.
9185 * printcmd.c (print_command_1): Move expr variable scope.
9186
79498702
JB
91872015-03-27 Joel Brobecker <brobecker@adacore.com>
9188
9189 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9190
ce9c0ca1
AK
91912015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9192
9193 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9194 sections.
9195
429e1e81
JB
91962015-03-26 Joel Brobecker <brobecker@adacore.com>
9197
9198 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9199 exception raised while parsing the probe arguments.
9200 Force parsing to be done using the C language parser.
9201 * expression.h (parse_expression_with_language): Declare.
9202 * parse.c (parse_expression_with_language): New function.
9203
4593441b
JT
92042015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9205
9206 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9207
ff908ebf
AW
92082015-03-26 Andy Wingo <wingo@igalia.com>
9209
9210 PR symtab/18148
9211 * dwarf2read.c (struct partial_die_info): Add has_const_value
9212 member.
9213 (add_partial_symbol): Don't punt on symbols that have const_value
9214 attributes.
9215 (read_partial_die): Detect DW_AT_const_value.
9216
f30d5c78
JK
92172015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9218
9219 Code cleanup.
9220 * printcmd.c (print_command_1): Move expr variable scope.
9221
8d89f51a
JK
92222015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9223
9224 Code cleanup.
9225 * printcmd.c (validate_format): Make the parameter cmdname const.
9226
0b736949
DB
92272015-03-26 Don Breazeal <donb@codesourcery.com>
9228
9229 * remote.c (_initialize_remote): Update comment.
9230
20d35291
PA
92312015-03-26 Pedro Alves <palves@redhat.com>
9232 Jon TURNEY <jon.turney@dronecode.org.uk>
9233
9234 * coffread.c (coff_symfile_read): When constructing the name of an
9235 import stub symbol from import symbol for amd64, only skip the
9236 char after _imp_ if the target is underscored (like i386) and the
9237 char is indeed the target's leading char.
9238
6a3753b3
PA
92392015-03-25 Pedro Alves <palves@redhat.com>
9240
9241 * target.h <to_async>: Replace 'callback' and 'context' parameters
9242 with boolean 'enable' parameter.
9243 (target_async): Replace CALLBACK and CONTEXT parameters with
9244 boolean ENABLE parameter.
9245 * inf-loop.c (inferior_event_handler): Adjust.
9246 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9247 (linux_nat_resume): Adjust.
9248 (async_client_callback, async_client_context): Delete.
9249 (handle_target_event): Call inferior_event_handler directly.
9250 (linux_nat_async): Replace 'callback' and 'context' parameters
9251 with boolean 'enable' parameter. Adjust. Remove references to
9252 async_client_callback and async_client_context.
9253 (linux_nat_close): Adjust.
9254 * record-btrace.c (record_btrace_async): Replace 'callback' and
9255 'context' parameters with boolean 'enable' parameter. Adjust.
9256 (record_btrace_resume): Adjust.
9257 * record-full.c (record_full_async): Replace 'callback' and
9258 'context' parameters with boolean 'enable' parameter. Adjust.
9259 (record_full_resume, record_full_core_resume): Adjust.
9260 * remote.c (struct remote_state) <async_client_callback,
9261 async_client_context>: Delete fields.
9262 (remote_start_remote, extended_remote_attach_1, remote_resume)
9263 (extended_remote_create_inferior): Adjust.
9264 (remote_async_serial_handler): Call inferior_event_handler
9265 directly.
9266 (remote_async): Replace 'callback' and 'context' parameters with
9267 boolean 'enable' parameter. Adjust.
9268 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9269 Adjust.
9270 * target-delegates.c: Regenerate.
9271
1c4b552b
GB
92722015-03-25 Gary Benson <gbenson@redhat.com>
9273 Pedro Alves <palves@redhat.com>
9274
9275 * target.c (fileio_ft_t): New typedef, define object vector.
9276 (fileio_fhandles): New static variable.
9277 (is_closed_fileio_fh): New macro.
9278 (lowest_closed_fd): New static variable.
9279 (acquire_fileio_fd): New function.
9280 (release_fileio_fd): Likewise.
9281 (fileio_fd_to_fh): New macro.
9282 (target_fileio_open): Wrap the file descriptor on success.
9283 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9284 (target_fileio_pread): Likewise.
9285 (target_fileio_close): Likewise.
9286
a25d8bf9
PA
92872015-03-24 Pedro Alves <palves@redhat.com>
9288
9289 * thread.c (thread_apply_all_command): Take exited threads into
9290 account.
9291
44a1ee51
PA
92922015-03-24 Pedro Alves <palves@redhat.com>
9293
9294 * infrun.c (resume, proceed): Mention
9295 switch_back_to_stepped_thread, not switch_back_to_stepping.
9296
f3263aa4
PA
92972015-03-24 Pedro Alves <palves@redhat.com>
9298
9299 * infrun.c (user_visible_resume_ptid): Rewrite going from
9300 most-locked to unlocked instead of the opposite. Move comment ...
9301 * infrun.h (user_visible_resume_ptid): ... here.
9302
2bf6fb9d
PA
93032015-03-24 Pedro Alves <palves@redhat.com>
9304
9305 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9306 to resume the event lwp. Use the lwp's ptid instead of the passed
9307 in (maybe wildcard) ptid.
9308 (stop_wait_callback): Tweak debug log output.
9309 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9310 TRAP_TRACE.
9311 (linux_nat_filter_event): In debug output, distinguish a
9312 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9313 before trying to resume the lwp.
9314
283a9958
JB
93152015-03-24 Joel Brobecker <brobecker@adacore.com>
9316
9317 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9318 pointer indirection.
9319 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9320 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9321
93a8e227
JB
93222015-03-24 Joel Brobecker <brobecker@adacore.com>
9323
9324 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9325 Renames DYN_ATTR_DATA_LOCATION.
9326 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9327 DYN_ATTR_DATA_LOCATION.
9328 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9329 instead of DYN_ATTR_DATA_LOCATION.
9330
64ce06e4
PA
93312015-03-24 Pedro Alves <palves@redhat.com>
9332
9333 * breakpoint.c (until_break_command): Adjust call to proceed.
9334 * gdbthread.h (struct thread_control_state) <stepping_command>:
9335 New field.
9336 * infcall.c (run_inferior_call): Adjust call to proceed.
9337 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9338 Adjust calls to proceed.
9339 (set_step_frame): Set the current thread's step_start_function
9340 here.
9341 (step_once): Adjust calls to proceed.
9342 (jump_command, signal_command, until_next_command)
9343 (finish_backward, finish_forward, proceed_after_attach_callback)
9344 (attach_command_post_wait): Adjust calls to proceed.
9345 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9346 (do_target_resume): New function, factored out from ...
9347 (resume): ... here. Remove 'step' parameter. Instead, check
9348 currently_stepping to determine whether the thread should be
9349 single-stepped.
9350 (proceed): Remove 'step' parameter and don't set the thread's
9351 step_start_function here. Adjust call to 'resume'.
9352 (handle_inferior_event): Adjust calls to 'resume'.
9353 (switch_back_to_stepped_thread): Use do_target_resume instead of
9354 'resume'.
9355 (keep_going): Adjust calls to 'resume'.
9356 * infrun.h (proceed): Remove 'step' parameter.
9357 (resume): Likewise.
9358 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9359 'resume'.
9360 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9361
856e7dd6
PA
93622015-03-24 Pedro Alves <palves@redhat.com>
9363
9364 * gdbthread.h (struct thread_control_state) <stepping_command>:
9365 New field.
9366 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9367 the thread's stepping_command field.
9368 * infrun.c (resume): Check the thread's stepping_command flag to
9369 determine which threads should be resumed. Rename 'entry_step'
9370 local to user_step.
9371 (clear_proceed_status_thread): Clear 'stepping_command'.
9372 (schedlock_applies): Change parameter type to struct thread_info
9373 pointer. Adjust.
9374 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9375 (switch_back_to_stepped_thread): Adjust calls to
9376 'schedlock_applies'.
9377 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9378
885eeb5b
PA
93792015-03-24 Pedro Alves <palves@redhat.com>
9380
9381 * infrun.c (step_start_function): Delete and ...
9382 * gdbthread.h (struct thread_control_state) <step_start_function>:
9383 ... now a field here.
9384 * infrun.c (clear_proceed_status_thread): Clear the thread's
9385 step_start_function.
9386 (proceed, process_event_stop_test, print_stop_event): Adjust.
9387
3333f03a
PA
93882015-03-24 Pedro Alves <palves@redhat.com>
9389
9390 * infrun.c (proceed): No longer handle negative step.
9391
369f6daa
GB
93922015-03-24 Gary Benson <gbenson@redhat.com>
9393
9394 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9395 (x86_linux_prepare_to_resume): Likewise.
9396 * x86-linux-nat.c (x86_linux_new_thread):
9397 Moved to nat/x86-linux.c.
9398 (x86_linux_prepare_to_resume): Likewise.
9399 * nat/x86-linux.c (x86_linux_new_thread): New function.
9400 (x86_linux_prepare_to_resume): Likewise.
9401
8e5d4070
GB
94022015-03-24 Gary Benson <gbenson@redhat.com>
9403
9404 * nat/x86-linux-dregs.h: New file.
9405 * nat/x86-linux-dregs.c: Likewise.
9406 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9407 (x86-linux-dregs.o): New rule.
9408 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9409 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9410 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9411 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9412 (x86_linux_dr_get): Likewise.
9413 (x86_linux_dr_set): Likewise.
9414 (x86_linux_dr_get_addr): Likewise.
9415 (x86_linux_dr_get_control): Likewise.
9416 (x86_linux_dr_get_status): Likewise.
9417 (update_debug_registers_callback): Likewise.
9418 (x86_linux_dr_set_control): Likewise.
9419 (x86_linux_dr_set_addr): Likewise.
9420 (x86_linux_update_debug_registers): Likewise.
9421
2b95d440
GB
94222015-03-24 Gary Benson <gbenson@redhat.com>
9423
9424 * x86-linux-nat.c (x86_linux_update_debug_registers):
9425 New function, factored out from...
9426 (x86_linux_prepare_to_resume): ...this.
9427
14b0bc68
GB
94282015-03-24 Gary Benson <gbenson@redhat.com>
9429
9430 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9431 (x86_linux_dr_set): Likewise.
9432 (x86_linux_dr_get_addr): Likewise.
9433 (x86_linux_dr_get_control): Likewise.
9434 (x86_linux_dr_get_status): Likewise.
9435 (update_debug_registers_callback): Likewise.
9436 (x86_linux_dr_set_control): Likewise.
9437 (x86_linux_dr_set_addr): Likewise.
9438 (x86_linux_prepare_to_resume): Likewise.
9439 (x86_linux_new_thread): Likewise.
9440
5dfe6ca8
GB
94412015-03-24 Gary Benson <gbenson@redhat.com>
9442
9443 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9444 (x86_linux_new_thread): Rename argument.
9445
4b134ca1
GB
94462015-03-24 Gary Benson <gbenson@redhat.com>
9447
9448 * nat/x86-linux.h: New file.
9449 * nat/x86-linux.c: Likewise.
9450 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9451 (x86-linux.o): New rule.
9452 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9453 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9454 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9455 (lwp_set_arch_private_info): New declaration.
9456 (lwp_arch_private_info): Likewise.
9457 * linux-nat.c (lwp_set_arch_private_info): New function.
9458 (lwp_arch_private_info): Likewise.
9459 * x86-linux-nat.c: Include nat/x86-linux.h.
9460 (arch_lwp_info): Removed structure.
9461 (update_debug_registers_callback):
9462 Use lwp_set_debug_registers_changed.
9463 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9464 and lwp_set_debug_registers_changed.
9465 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9466
cff068da
GB
94672015-03-24 Gary Benson <gbenson@redhat.com>
9468
9469 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9470 (lwp_is_stopped): Likewise.
9471 (lwp_stop_reason): Likewise.
9472 * linux-nat.c (ptid_of_lwp): New function.
9473 (lwp_is_stopped): Likewise.
9474 (lwp_is_stopped_by_watchpoint): Likewise.
9475 * x86-linux-nat.c (update_debug_registers_callback):
9476 Use lwp_is_stopped.
9477 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9478 lwp_stop_reason.
9479
b2f7c7e8
GB
94802015-03-24 Gary Benson <gbenson@redhat.com>
9481
9482 * linux-nat.h (linux_stop_lwp): Move declaration to...
9483 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9484
6d4ee8c6
GB
94852015-03-24 Gary Benson <gbenson@redhat.com>
9486
9487 * linux-nat.h: Include nat/linux-nat.h.
9488 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9489 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9490 (iterate_over_lwps_ftype): New typedef.
9491 (iterate_over_lwps): New declaration.
9492 * linux-nat.h (iterate_over_lwps): Update comment. Use
9493 iterate_over_lwps_ftype. Update callback return value check.
9494
70a0bb6b
GB
94952015-03-24 Gary Benson <gbenson@redhat.com>
9496
9497 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9498 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9499
7b669087
GB
95002015-03-24 Gary Benson <gbenson@redhat.com>
9501
9502 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9503 * linux-nat.c (current_lwp_ptid): New function.
9504 * x86-linux-nat.c: Include nat/linux-nat.h.
9505 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9506 (x86_linux_dr_get_control): Likewise.
9507 (x86_linux_dr_get_status): Likewise.
9508 (x86_linux_dr_set_control): Likewise.
9509 (x86_linux_dr_set_addr): Likewise.
9510
15630549
AT
95112015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9512
9513 PR breakpoints/16466
9514 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9515
8a4506c0
JB
95162015-03-23 Joel Brobecker <brobecker@adacore.com>
9517
9518 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9519 * ser-unix.c (hardwire_setparity): Likewise.
9520
236af5e3
YG
95212015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9522
9523 * NEWS: Mention set/show serial parity command.
9524 * monitor.c (monitor_open): Call serial_setparity.
9525 * remote.c (remote_open_1): Likewise.
9526 * ser-base.c (ser_base_serparity): New function.
9527 * ser-base.h (ser_base_setparity): Add declaration.
9528 * ser-go32.c (dos_ops): Set "setparity" field.
9529 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9530 state.Parity.
9531 (ser_windows_setparity): New function.
9532 (hardwire_ops): Add ser_windows_setparity.
9533 (tty_ops): Add NULL for setparity field.
9534 (pipe_ops): Add ser_base_setparity.
9535 (tcp_ops): Likewise.
9536 * ser-pipe.c (pipe_ops): Likewise.
9537 * ser-tcp.c (tcp_ops): Likewise.
9538 * ser-unix.c (hardwire_setparity): Add declaration.
9539 (hardwire_raw): Don't reset PARENB flag.
9540 (hardwire_setparity): New function.
9541 (hardwire_ops): Add hardwire_setparity.
9542 * serial.c (serial_setparity): New function.
9543 (serial_parity): New global.
9544 (parity_none, parity_odd, parity_even, parity_enums, parity):
9545 New static globals.
9546 (set_parity): New function.
9547 (_initialize_serial): Add set/show serial parity commands.
9548 * serial.h (GDBPARITY_NONE): Define.
9549 (GDBPARITY_ODD): Define.
9550 (GDBPARITY_EVEN): Define.
9551 (serial_setparity) Add declaration.
9552 (struct serial_ops): Add setparity field.
9553 * target.h (serial_parity): Add declaration.
9554
32b40af9
KS
95552015-03-23 Keith Seitz <keiths@redhat.com>
9556
9557 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9558
693dca06
KS
95592015-03-23 Keith Seitz <keiths@redhat.com>
9560
9561 * breakpoint.c (parse_breakpoint_sals): Use
9562 linespec_lexer_lex_keyword to ascertain if the user specified
9563 a NULL location.
9564 * linespec.c [IF_KEYWORD_INDEX]: Define.
9565 (linespec_lexer_lex_keyword): Export.
9566 (struct ls_parser) <keyword_ok>: Remove.
9567 A keyword is only a keyword if not followed by another keyword.
9568 (linespec_lexer_lex_one): Remove keyword_ok handling.
9569 Add comment explaining why the parsing stream is not advanced
9570 when a keyword is seen.
9571 (parse_linespec): Remove parser->keyword_ok.
9572 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9573
7e993ebf
KS
95742015-03-23 Keith Seitz <keiths@redhat.com>
9575
9576 PR gdb/18021
9577 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9578 if we find a static method with DW_AT_vtable_elem_location.
9579
b1a0f704
EZ
95802015-03-21 Eli Zaretskii <eliz@gnu.org>
9581
9582 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9583 before the second loop, to avoid undefined behavior. Reported by
9584 Anton Blanchard <anton@samba.org>.
9585
d9823cbb
KB
95862015-03-20 Keven Boell <keven.boell@intel.com>
9587
9588 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9589 data_location usage to linked list.
9590 (resolve_dynamic_type_internal): Adapt data_location to
9591 linked list.
9592 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9593 (copy_type_recursive, copy_type): Add copy of linked list.
9594 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9595 (struct dynamic_prop_list): New struct.
9596 * dwarf2read.c (set_die_type): Set data_location data.
9597
2e7bf1d7
PA
95982015-03-20 Pedro Alves <palves@redhat.com>
9599
9600 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9601 inner block and make it const.
9602 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9603
7a26bd4d
PA
96042015-03-20 Pedro Alves <palves@redhat.com>
9605
9606 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9607 * breakpoint.h (set_breakpoint_condition): Update declaration.
9608
cd46431b
PA
96092015-03-20 Pedro Alves <palves@redhat.com>
9610
9611 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9612
e28566f7
PA
96132015-03-20 Pedro Alves <palves@redhat.com>
9614
9615 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9616
f6fc92f6
PA
96172015-03-20 Pedro Alves <palves@redhat.com>
9618
9619 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9620
c32ed3ef
PA
96212015-03-20 Pedro Alves <palves@redhat.com>
9622
9623 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9624 (nto_init_solib_absolute_prefix): Likewise.
9625
53e78085
PA
96262015-03-20 Pedro Alves <palves@redhat.com>
9627
9628 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9629 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9630
bc23328c
JK
96312015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 * config/djgpp/README: Remove gdb.hp.
9634
e8ffc436
YQ
96352015-03-20 Yao Qi <yao.qi@linaro.org>
9636
9637 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9638 set_gdbarch_cannot_step_breakpoint.
9639
23f238d3
PA
96402015-03-19 Pedro Alves <palves@redhat.com>
9641
9642 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9643 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9644 instead call perror_with_name.
9645 (check_ptrace_stopped_lwp_gone): New function.
9646 (linux_resume_one_lwp): Reimplement as wrapper around
9647 linux_resume_one_lwp_throw that swallows errors if the LWP is
9648 gone.
9649 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9650 swallows errors if the LWP is gone. Use
9651 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9652
eb54c8bf
PA
96532015-03-19 Pedro Alves <palves@redhat.com>
9654
9655 * linux-nat.c (status_callback): Return early if the LWP has no
9656 status pending.
9657
b90fc188
PA
96582015-03-19 Pedro Alves <palves@redhat.com>
9659
9660 * linux-nat.c (select_event_lwp_callback): Update comment to no
9661 longer mention SIGTRAP.
9662
670f82d4
TG
96632015-03-18 Tristan Gingold <gingold@adacore.com>
9664
72f4393d
L
9665 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9666 redirection code to ...
9667 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9668 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9669
464b0089
GB
96702015-03-18 Gary Benson <gbenson@redhat.com>
9671
9672 (remote_protocol_features): Remove the "vFile:fstat" feature.
9673 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9674
f68f11b7
YQ
96752015-03-11 Yao Qi <yao.qi@linaro.org>
9676
9677 PR tdep/18107
9678 * aarch64-linux-tdep.c: Include xml-syscall.h
9679 (aarch64_linux_get_syscall_number): New function.
9680 (aarch64_linux_init_abi): Call
9681 set_gdbarch_get_syscall_number.
9682 * syscalls/aarch64-linux.xml: New file.
9683
393bd0c0
YG
96842015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9685
9686 * ser-base.h (ser_base_setstopbits): Change second argument name
9687 from "rate" to "num".
9688
7f3647e2
GB
96892015-03-17 Gary Benson <gbenson@redhat.com>
9690 Luke Allardyce <lukeallardyce@gmail.com>
9691
9692 PR gdb/18131
9693 * common/common-remote-fileio.h (sys/stat.h): New include.
9694 (stuct stat): Remove forward declaration.
9695
3ce5b6e2
JB
96962015-03-16 John Baldwin <jhb@FreeBSD.org>
9697
9698 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9699 before writing core register notes.
9700
d053f6be
YZ
97012015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9702 Pedro Alves <palves@redhat.com>
9703
9704 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9705 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9706 (tgoto): Wrap with extern "C".
9707
b1a921c8
PA
97082015-03-16 Pedro Alves <palves@redhat.com>
9709 Yuanhui Zhang <asmwarrior@gmail.com>
9710
9711 * stub-termcap.c (tputs): Change prototype.
9712
876d1cd7
YZ
97132015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9714 Pedro Alves <palves@redhat.com>
9715
9716 * windows-nat.c (struct thread_info_struct): Rename to ...
9717 (struct windows_thread_info_struct): ... this.
9718 (thread_info): Rename to ...
9719 (windows_thread_info): ... this.
9720 All users updated.
9721
0800b440
JK
97222015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9723 Pedro Alves <palves@redhat.com>
9724
9725 * NEWS: New Removed targets and native configurations.
9726
97272015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9728
9729 Remove HPUX.
9730 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9731 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9732 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9733 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9734 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9735 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9736 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9737 hppa-hpux-tdep.c.
9738 * config/ia64/hpux.mh: Remove file.
9739 * config/pa/hpux.mh: Remove file.
9740 * configure: Rebuilt.
9741 * configure.ac (dlgetmodinfo, somread.o): Remove.
9742 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9743 (ia64-*-hpux*): Remove its float format exception.
9744 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9745 * hppa-hpux-nat.c: Remove file.
9746 * hppa-hpux-tdep.c: Remove file.
9747 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9748 Move them here from hppa-tdep.h
9749 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9750 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9751 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9752 Move them to hppa-tdep.c.
9753 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9754 declarations.
9755 * ia64-hpux-nat.c: Remove file.
9756 * ia64-hpux-tdep.c: Remove file.
9757 * ia64-hpux-tdep.h: Remove file.
9758 * inf-ttrace.c: Remove file.
9759 * inf-ttrace.h: Remove file.
9760 * solib-ia64-hpux.c: Remove file.
9761 * solib-ia64-hpux.h: Remove file.
9762 * solib-pa64.c: Remove file.
9763 * solib-pa64.h: Remove file.
9764 * solib-som.c: Remove file.
9765 * solib-som.h: Remove file.
9766 * somread.c: Remove file.
9767
25268153
JB
97682015-03-13 John Baldwin <jhb@FreeBSD.org>
9769
9770 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9771 * config.in: Regenerate.
9772 * configure: Regenerate.
9773 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9774 define.
25268153
JB
9775 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9776 enumerate memory regions if present.
9777
773eacf5
JB
97782015-03-13 John Baldwin <jhb@FreeBSD.org>
9779
9780 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9781 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9782 expressions.
9783 (i386fbsd_sigtramp_p): Likewise.
9784
01b6bdb0
JB
97852015-03-12 John Baldwin <jhb@FreeBSD.org>
9786
9787 * MAINTAINERS (Write After Approval): Add John Baldwin.
9788
811a659a
GB
97892015-03-12 Gary Benson <gbenson@redhat.com>
9790
9791 * solib.c (_initialize_solib): Make "set/show sysroot" use
9792 add_setshow_optional_filename_cmd so it can be restored to
9793 empty after being set.
9794
10304ef3
SDJ
97952015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9796
9797 * Makefile.in (SFILES): New source break-catch-syscall.c.
9798 (COMMON_OBS): New object break-catch-syscall.o.
9799 * break-catch-syscall.c: New file.
9800 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9801 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9802 (struct syscall_catchpoint): Likewise.
9803 (dtor_catch_syscall): Likewise.
9804 (catch_syscall_inferior_data): Likewise.
9805 (struct catch_syscall_inferior_data): Likewise.
9806 (get_catch_syscall_inferior_data): Likewise.
9807 (catch_syscall_inferior_data_cleanup): Likewise.
9808 (insert_catch_syscall): Likewise.
9809 (remove_catch_syscall): Likewise.
9810 (breakpoint_hit_catch_syscall): Likewise.
9811 (print_it_catch_syscall): Likewise.
9812 (print_one_catch_syscall): Likewise.
9813 (print_mention_catch_syscall): Likewise.
9814 (print_recreate_catch_syscall): Likewise.
9815 (catch_syscall_breakpoint_ops): Likewise.
9816 (syscall_catchpoint_p): Likewise.
9817 (create_syscall_event_catchpoint): Likewise.
9818 (catch_syscall_split_args): Likewise.
9819 (catch_syscall_command_1): Likewise.
9820 (is_syscall_catchpoint_enabled): Likewise.
9821 (catch_syscall_enabled): Likewise.
9822 (catching_syscall_number): Likewise.
9823 (catch_syscall_completer): Likewise.
9824 (clear_syscall_counts): Likewise.
9825 (initialize_breakpoint_ops): Move initialization of syscall
9826 catchpoints to break-catch-syscall.c.
9827 (_initialize_breakpoint): Move code related to syscall catchpoints
9828 to break-catch-syscall.c.
9829
badd37ce
SDJ
98302015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9831
9832 * breakpoint.c (breakpoint_find_if): New function.
9833 * breakpoint.h (breakpoint_find_if): New prototype.
9834
0a93529c
GB
98352015-03-11 Gary Benson <gbenson@redhat.com>
9836
9837 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9838 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9839 (remote_fileio_to_host_ulong): Likewise.
9840 (remote_fileio_to_host_mode): Likewise.
9841 (remote_fileio_to_host_time): Likewise.
9842 (remote_fileio_to_host_stat): Likewise.
9843 * remote.c (PACKET_vFile_fstat): New enum value.
9844 (remote_protocol_features): Register the "vFile:fstat" feature.
9845 (remote_hostio_fstat): New function.
9846 (remote_bfd_iovec_stat): Use the above.
9847 (_initialize_remote): Register new "set/show remote
9848 hostio-fstat-packet" command.
9849 * symfile.c (separate_debug_file_exists): Update comment.
9850 * NEWS: Announce new vFile:fstat packet.
9851
791c0056
GB
98522015-03-11 Gary Benson <gbenson@redhat.com>
9853
9854 * common/common-remote-fileio.h: New file.
9855 * common/common-remote-fileio.c: Likewise.
9856 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9857 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9858 (COMMON_OBS): Add common-remote-fileio.o.
9859 (common-remote-fileio.o): New rule.
9860 * remote-fileio.h (common-remote-fileio.h): New include.
9861 * remote-fileio.c (gdb/fileio.h): Do not include.
9862 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9863 (remote_fileio_to_fio_uint): Likewise.
9864 (remote_fileio_to_fio_time): Likewise.
9865 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9866 (remote_fileio_to_fio_mode): Likewise.
9867 (remote_fileio_to_fio_ulong): Likewise.
9868 (remote_fileio_to_fio_stat): Likewise.
9869
1390d0ef
AW
98702015-03-11 Andy Wingo <wingo@igalia.com>
9871
9872 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9873 we were checking the cached type, not the cached dynamic type.
9874
84a4591a
AW
98752015-03-11 Andy Wingo <wingo@igalia.com>
9876
9877 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9878 other strings, as these are on the GC'd heap, and will be
9879 collected along with the smob.
9880
85642ba0
AW
98812015-03-11 Andy Wingo <wingo@igalia.com>
9882
9883 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9884 (objfile_functions): Bind gdbscm_objfile_progspace to
9885 objfile-progspace.
9886 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9887
92fab5a6
AW
98882015-03-11 Andy Wingo <wingo@igalia.com>
9889
9890 * guile/guile.c (_initialize_guile): Disable automatic
9891 finalization, if Guile offers us that possibility.
9892 * guile/guile.c (call_initialize_gdb_module):
9893 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9894 finalizers in appropriate places.
9895 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9896 scm_set_automatic_finalization_enabled.
9897 * configure: Regenerated.
9898
f054145e
AA
98992015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9900
9901 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9902 SAL, if possible.
9903
18396193
AA
99042015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9905
9906 * s390-linux-nat.c (struct arch_lwp_info): New.
9907 (s390_fix_watch_points): Rename to...
9908 (s390_prepare_to_resume): ...this. Skip the PER info update
9909 unless the watch points have changed.
9910 (s390_refresh_per_info, s390_new_thread): New functions.
9911 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9912 s390_fix_watch_points.
9913 (s390_remove_watchpoint): Likewise.
9914 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9915 Register s390_prepare_to_resume.
9916
9eb1356e
PA
99172015-03-09 Pedro Alves <palves@redhat.com>
9918
9919 Revert:
9920 2015-03-07 Pedro Alves <palves@redhat.com>
9921 * common/gdb_socket.h: New file.
9922 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9923 sys/socket.h.
9924 (net_open): Use union gdb_sockaddr_u.
9925
aac331e4
PA
99262015-03-07 Pedro Alves <palves@redhat.com>
9927
9928 * configure.ac (build_warnings): Move -Wmissing-prototypes
9929 -Wdeclaration-after-statement -Wmissing-parameter-type
9930 -Wold-style-declaration -Wold-style-definition to the C-specific
9931 set.
9932 * configure: Regenerate.
9933
366c75fc
PA
99342015-03-07 Pedro Alves <palves@redhat.com>
9935
9936 * common/gdb_socket.h: New file.
9937 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9938 sys/socket.h.
9939 (net_open): Use union gdb_sockaddr_u.
9940
72df25b2
PA
99412015-03-07 Pedro Alves <palves@redhat.com>
9942
9943 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9944 (exceptions_state_mc_action_iter)
9945 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9946 Don't define.
9947 [__cplusplus] (try_scope_depth): New global.
9948 [__cplusplus] (exception_try_scope_entry)
9949 (exception_try_scope_exit, gdb_exception_sliced_copy)
9950 (exception_rethrow): New functions.
9951 (throw_exception): In C++ mode, throw
9952 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9953 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9954 (throw_it): In C++ mode, use try_scope_depth.
9955 * common/common-exceptions.h [!__cplusplus]
9956 (exceptions_state_mc_action_iter)
9957 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9958 Don't declare.
9959 [__cplusplus] (exception_try_scope_entry)
9960 (exception_try_scope_exit, exception_rethrow): Declare.
9961 [__cplusplus] (struct exception_try_scope): New struct.
9962 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9963 C++ exceptions.
9964 (struct gdb_exception_RETURN_MASK_ALL)
9965 (struct gdb_exception_RETURN_MASK_ERROR)
9966 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9967
284e6217
PA
99682015-03-07 Pedro Alves <palves@redhat.com>
9969
9970 * main.c (handle_command_errors): Remove volatile qualifier from
9971 parameter.
9972
6c63c96a
PA
99732015-03-07 Pedro Alves <palves@redhat.com>
9974
9975 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9976 TRY and CATCH.
9977 * gdbtypes.c (safe_parse_type): Remove empty line.
9978 (types_deeply_equal):
9979 * guile/scm-frame.c (gdbscm_frame_name):
9980 * linux-thread-db.c (find_new_threads_once):
9981 * python/py-breakpoint.c (bppy_get_commands):
9982 * record-btrace.c (record_btrace_insert_breakpoint)
9983 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9984 (record_btrace_start_replaying): Adjust to avoid code between TRY
9985 and CATCH.
9986
492d29ea
PA
99872015-03-07 Pedro Alves <palves@redhat.com>
9988
9989 * common/common-exceptions.c (struct catcher) <exception>: No
9990 longer a pointer to volatile exception. Now an exception value.
9991 <mask>: Delete field.
9992 (exceptions_state_mc_init): Remove all parameters. Adjust.
9993 (exceptions_state_mc): No longer pop the catcher here.
9994 (exceptions_state_mc_catch): New function.
9995 (throw_exception): Adjust.
9996 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9997 all parameters.
9998 (exceptions_state_mc_catch): Declare.
9999 (TRY_CATCH): Rename to ...
10000 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10001 (CATCH, END_CATCH): New.
10002 All callers adjusted.
10003
ece957c8
TT
100042015-03-07 Tom Tromey <tromey@redhat.com>
10005
10006 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10007
7556d4a4
PA
100082015-03-07 Pedro Alves <palves@redhat.com>
10009
10010 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10011 (amd64_epilogue_frame_cache): Normal exception handling code.
10012 * break-catch-throw.c (check_status_exception_catchpoint)
10013 (re_set_exception_catchpoint): Ditto.
10014 * cli/cli-interp.c (safe_execute_command):
10015 * cli/cli-script.c (script_from_file): Ditto.
10016 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10017 Ditto.
10018 * compile/compile-object-run.c (compile_object_run): Ditto.
10019 * cp-abi.c (baseclass_offset): Ditto.
10020 * cp-valprint.c (cp_print_value): Ditto.
10021 * exceptions.c (catch_exceptions_with_msg):
10022 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10023 * frame.c (get_frame_address_in_block_if_available): Ditto.
10024 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10025 (i386_sigtramp_frame_cache): Ditto.
10026 * infcmd.c (post_create_inferior): Ditto.
10027 * linespec.c (parse_linespec, find_linespec_symbols):
10028 * p-valprint.c (pascal_object_print_value): Ditto.
10029 * parse.c (parse_expression_for_completion): Ditto.
10030 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10031 * remote.c (remote_get_noisy_reply): Ditto.
10032 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10033 * solib-svr4.c (solib_svr4_r_map): Ditto.
10034
f873665f 100352015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10036
10037 * common/common-utils.h (startswith): New inline function.
10038 All places where this logic was used updated to use the above.
10039
68901c4d
PA
100402015-03-05 Pedro Alves <palves@redhat.com>
10041
10042 PR gdb/18002
10043 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10044 after reading the breakpoint's shadow memory.
10045
2dcb2b1a
MK
100462015-03-05 Mark Kettenis <kettenis@gnu.org>
10047
10048 * hppabsd-nat.c: Remove file.
10049 * hppaobsd-nat.c: New file.
10050 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10051 hppaobsd-nat.c.
10052 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10053 hppaobsd-nat.o.
10054
527a273a
PA
100552015-03-04 Pedro Alves <palves@redhat.com>
10056
10057 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10058 (target_decr_pc_after_break): Delete declaration.
10059 * target.c (default_target_decr_pc_after_break)
10060 (target_decr_pc_after_break): Delete.
10061 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10062 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10063 * linux-thread-db.c (check_event): Likewise.
10064 * infrun.c (adjust_pc_after_break): Likewise.
10065 * darwin-nat.c (cancel_breakpoint): Likewise.
10066 * aix-thread.c (aix_thread_wait): Likewise.
10067 * target-delegates.c: Regenerate.
10068
faf09f01
PA
100692015-03-04 Pedro Alves <palves@redhat.com>
10070
10071 * linux-nat.c (save_sigtrap): Check for breakpoints before
10072 checking watchpoints.
10073 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10074 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10075 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10076 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10077 (linux_nat_stopped_by_sw_breakpoint)
10078 (linux_nat_supports_stopped_by_sw_breakpoint)
10079 (linux_nat_stopped_by_hw_breakpoint)
10080 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10081 (linux_nat_wait_1): Don't re-increment the PC if relying on
10082 SIGTRAP's siginfo->si_code.
10083 (linux_nat_add_target): Install new target methods.
10084 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10085 offset if the target already adjusted the PC.
10086 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10087 (GDB_ARCH_TRAP_BRKPT): New.
10088 (TRAP_HWBKPT): Define if not already defined.
10089
f7e6eed5
PA
100902015-03-04 Pedro Alves <palves@redhat.com>
10091
10092 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10093 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10094 Delete field.
10095 <stop_reason>: New field.
10096 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10097 (packet_set_cmd_state): New function.
10098 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10099 features.
10100 (remote_query_supported): If not disabled with the corresponding
10101 "set remote foo-packet" command, report support for the swbreak
10102 and hwbreak features.
10103 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10104 field.
10105 <stop_reason>: New field.
10106 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10107 (remote_wait_as): Adjust.
10108 (remote_stopped_by_sw_breakpoint)
10109 (remote_supports_stopped_by_sw_breakpoint)
10110 (remote_stopped_by_hw_breakpoint)
10111 (remote_supports_stopped_by_hw_breakpoint): New functions.
10112 (remote_stopped_by_watchpoint): New function.
10113 (init_remote_ops): Install them.
10114 (_initialize_remote): Register new "set/show remote
10115 swbreak-feature-packet" and "set/show remote
10116 swbreak-feature-packet" commands.
10117
9e8915c6
PA
101182015-03-04 Pedro Alves <palves@redhat.com>
10119
10120 * btrace.h: Include target/waitstatus.h.
10121 (struct btrace_thread_info) <stop_reason>: New field.
10122 * record-btrace.c (record_btrace_step_thread): Use
10123 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10124 (record_btrace_decr_pc_after_break): Delete.
10125 (record_btrace_stopped_by_sw_breakpoint)
10126 (record_btrace_supports_stopped_by_sw_breakpoint)
10127 (record_btrace_stopped_by_hw_breakpoint)
10128 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10129 (init_record_btrace_ops): Install them.
10130 * record-full.c (record_full_hw_watchpoint): Delete and replace
10131 with ...
10132 (record_full_stop_reason): ... this throughout.
10133 (record_full_exec_insn): Adjust.
10134 (record_full_wait_1): Adjust. No longer re-increment the PC.
10135 (record_full_wait_1): Adjust. Use
10136 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10137 (record_full_stopped_by_watchpoint): Adjust.
10138 (record_full_stopped_by_sw_breakpoint)
10139 (record_full_supports_stopped_by_sw_breakpoint)
10140 (record_full_supports_stopped_by_sw_breakpoint)
10141 (record_full_stopped_by_hw_breakpoint)
10142 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10143 (init_record_full_ops, init_record_full_core_ops): Install them.
10144 * record.c (record_check_stopped_by_breakpoint): New function.
10145 * record.h: Include target/waitstatus.h.
10146 (record_check_stopped_by_breakpoint): New declaration.
10147
15c66dd6
PA
101482015-03-04 Pedro Alves <palves@redhat.com>
10149
10150 enum lwp_stop_reason -> enum target_stop_reason
10151 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10152 (linux_nat_stopped_by_watchpoint, status_callback)
10153 (linux_nat_wait_1): Adjust.
10154 * linux-nat.h (enum lwp_stop_reason): Delete.
10155 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10156 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10157 * target/waitstatus.h (enum target_stop_reason): New.
10158
1cf4d951
PA
101592015-03-04 Pedro Alves <palves@redhat.com>
10160
10161 * breakpoint.c (need_moribund_for_location_type): New function.
10162 (bpstat_stop_status): Don't skipping checking moribund locations
10163 of breakpoint types which the target tell caused a stop.
10164 (program_breakpoint_here_p): New function, factored out from ...
10165 (bp_loc_is_permanent): ... this.
10166 (update_global_location_list): Don't create a moribund location if
10167 the target supports reporting stops of the type of the removed
10168 breakpoint.
10169 * breakpoint.h (program_breakpoint_here_p): New declaration.
10170 * infrun.c (adjust_pc_after_break): Return early if the target has
10171 already adjusted the PC. Add comments.
10172 (handle_signal_stop): If nothing explains a signal, and the target
10173 tells us the stop was caused by a software breakpoint, check if
10174 there's a breakpoint instruction in the memory. If so, adjust the
10175 PC before presenting the stop to the user. Otherwise, ignore the
10176 trap. If nothing explains a signal, and the target tells us the
10177 stop was caused by a hardware breakpoint, ignore the trap.
10178 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10179 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10180 to_supports_stopped_by_hw_breakpoint>: New fields.
10181 (target_stopped_by_sw_breakpoint)
10182 (target_supports_stopped_by_sw_breakpoint)
10183 (target_stopped_by_hw_breakpoint)
10184 (target_supports_stopped_by_hw_breakpoint): Define.
10185 * target-delegates.c: Regenerate.
10186
79639e11
PA
101872015-03-04 Pedro Alves <palves@redhat.com>
10188
10189 * infrun.c (follow_fork_inferior): Use the whole of the
10190 inferior_ptid and pending_follow.related_pid ptids instead of
10191 building ptids from the process components. Adjust verbose output
10192 to use target_pid_to_str.
10193 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10194 inferior_ptid and pending_follow.related_pid ptids instead of
10195 building ptids from the process components.
10196
e85e8e5e
MK
101972015-03-04 Mark Kettenis <kettenis@gnu.org>
10198
10199 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10200 (inf_ptrace_insert_fork_catchpoint): New function.
10201 (inf_ptrace_remove_fork_catchpoint): New function.
10202 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10203
87de11c0
AA
102042015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10205
10206 * s390-linux-tdep.c (s390_register_name): Return empty string
10207 instead of NULL for registers that shouldn't be visible.
10208
d851a69a
AA
102092015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10210
10211 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10212 XML file for 64-bit targets.
10213
b072f6c1
SM
102142015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10215
10216 * target.h (find_default_create_inferior): Remove declaration.
10217 (find_default_attach): Likewise.
10218
c1593e4f
PA
102192015-03-03 Pedro Alves <palves@redhat.com>
10220
10221 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10222 Use ptid_get_pid to get the overall process id when resuming all
10223 threads.
10224
90ad5e1d
PA
102252015-03-03 Pedro Alves <palves@redhat.com>
10226
10227 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10228 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10229 * inf-ptrace.c (get_ptrace_pid): New function.
10230 (inf_ptrace_resume): Use it.
10231 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10232 to the lower layer.
10233
d68e53f4
MM
102342015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10235
10236 * nat/linux-btrace.c: Include sys/utsname.h.
10237 (linux_determine_kernel_ptr_bits): New.
10238 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10239 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10240 ptr_bits.
10241
986b6601
MM
102422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10243
10244 * btrace.c (ftrace_update_function): Treat return as tailcall for
10245 "_dl_runtime_resolve".
10246
ce0dfbea
MM
102472015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10248
10249 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10250 * btrace.c (ftrace_debug): Do not print the line range.
10251 (ftrace_skip_file, ftrace_update_lines): Remove.
10252 (ftrace_new_function): Remove lbegin and lend initialization.
10253 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10254 * record-btrace.c (btrace_compute_src_line_range): New.
10255 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10256
95e50b27
PA
102572015-03-02 Pedro Alves <palves@redhat.com>
10258
10259 * infrun.c (follow_exec): Delete all threads of the process except
10260 the event thread. Extended comments.
10261
00e474c2
JB
102622015-03-02 Joel Brobecker <brobecker@adacore.com>
10263
10264 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10265
cc7039d3
JB
102662015-03-02 Joel Brobecker <brobecker@adacore.com>
10267
10268 * utils.h: Remove <stdbool.h> #include.
10269 (producer_is_gcc): Change return type to "int".
10270 * utils.c (producer_is_gcc): Change return type to int.
10271 Return 1 instead of true, and 0 instead of false.
10272 Adjust function documentation accordingly.
10273
550bdf96
AA
102742015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10275
10276 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10277 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10278 present.
10279 (s390_linux_store_inferior_registers): Likewise.
10280 (s390_get_hwcap): Remove function. Embed its logic...
10281 (s390_read_description): ...here. Yield a target description with
10282 vector registers if applicable.
10283 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10284 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10285 "features/s390x-tevx-linux64.c".
10286 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10287 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10288 for "GNU/Linux-specific registers".
10289 (s390_dwarf_reg_r0l): New enum value.
10290 (s390_dwarf_reg_to_regnum): Support vector registers.
10291 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10292 of GPR lower halves.
10293 (regnum_is_vxr_full): New function.
10294 (s390_register_name): New function.
10295 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10296 f0-f15 and v0l-v15l.
10297 (s390_pseudo_register_type): Likewise.
10298 (s390_pseudo_register_read): Likewise.
10299 (s390_pseudo_register_write): Likewise.
10300 (s390_value_from_register): Account for the fact that values are
10301 placed left-justified in vector registers.
10302 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10303 the vector reggroup and omit them from the general reggroup.
10304 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10305 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10306 (s390_iterate_over_regset_sections): Add iterations for the two
10307 new vector regsets.
10308 (s390_core_read_description): Yield a target description with
10309 vector registers if applicable.
10310 (s390_gdbarch_init): Handle target descriptions with vector
10311 registers. Add "register_name" gdbarch method.
10312 (_initialize_s390_tdep): Call new tdesc initialization functions.
10313 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10314 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10315 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10316 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10317 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10318 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10319 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10320 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10321 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10322 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10323 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10324 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10325 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10326 (S390_NUM_REGS): Adjust value.
10327 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10328 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10329 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10330 * NEWS: Announce S/390 vector register support.
10331
446899e4
AA
103322015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10333
10334 * features/s390-tevx-linux64.xml: New file.
10335 * features/s390-vx-linux64.xml: New file.
10336 * features/s390-vx.xml: New file.
10337 * features/s390x-tevx-linux64.xml: New file.
10338 * features/s390x-vx-linux64.xml: New file.
10339 * features/Makefile (WHICH): Add s390-vx-linux64,
10340 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10341 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10342 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10343 macros.
10344 * features/s390-tevx-linux64.c: New generated file.
10345 * features/s390-vx-linux64.c: Likewise.
10346 * features/s390x-tevx-linux64.c: Likewise.
10347 * features/s390x-vx-linux64.c: Likewise.
10348 * regformats/s390-tevx-linux64.dat: Likewise.
10349 * regformats/s390-vx-linux64.dat: Likewise.
10350 * regformats/s390x-tevx-linux64.dat: Likewise.
10351 * regformats/s390x-vx-linux64.dat: Likewise.
10352
b7236fbe
DE
103532015-02-28 Doug Evans <xdje42@gmail.com>
10354
10355 * symtab.h (struct symtab) <next>: Fix comment.
10356
02e62830
SM
103572015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10358
10359 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10360 python_GdbMethods.
10361
bf36a1e7
PA
103622015-02-27 Pedro Alves <palves@redhat.com>
10363
10364 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10365
ad6aff7d
PA
103662015-02-27 Pedro Alves <palves@redhat.com>
10367
10368 * common/common-exceptions.h (exception_none): Declare.
10369 * common/common-exceptions.c (exception_none): Moved from
10370 exceptions.c.
10371 (exceptions_state_mc_init): Use exception_none.
10372 * exceptions.c (exception_none): Move to
10373 common/common-exceptions.c.
10374 * exceptions.h (exception_none): Move to
10375 common/common-exceptions.h.
10376
97c18565
PA
103772015-02-27 Pedro Alves <palves@redhat.com>
10378
10379 * main.c (catch_command_errors, catch_command_errors_const):
10380 Remove 'mask' argument. Adjust.
10381 (captured_main): Adjust callers.
10382
e992c591
PA
103832015-02-27 Pedro Alves <palves@redhat.com>
10384
10385 * python/python-internal.h: Include "extension-priv.h".
10386
64166036
PA
103872015-02-27 Pedro Alves <palves@redhat.com>
10388
10389 * breakpoint.h (enum print_stop_action): Move further up in the
10390 file.
10391
8a526fa6
PA
103922015-02-27 Pedro Alves <palves@redhat.com>
10393
10394 * gdbarch.sh: Include regcache.h.
10395 * gdbarch.h: Regenerate.
10396
0fa9c223
PA
103972015-02-27 Pedro Alves <palves@redhat.com>
10398
10399 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10400 Remove duplicate const.
10401 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10402 duplicate const.
10403
7cf99fb1
PA
104042015-02-27 Pedro Alves <palves@redhat.com>
10405
10406 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10407 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10408 * features/feature_to_c.sh: Tag the generated xml_builtin array
10409 with extern const in C++ mode.
10410
1424c16e
TT
104112015-02-27 Tom Tromey <tromey@redhat.com>
10412
10413 * minidebug.c (struct lzma_stream): Rename to ...
10414 (struct gdb_lzma_stream): ... this.
10415 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10416
10367c7c
PA
104172015-02-27 Pedro Alves <palves@redhat.com>
10418
10419 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10420 function.
10421 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10422 (mi_cmd_stack_list_variables): Use it.
10423
4180215b
PA
104242015-02-27 Pedro Alves <palves@redhat.com>
10425
10426 * x86-linux-nat.c (u_debugreg_offset): New function.
10427 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10428
2f56f7c3
PA
104292015-02-27 Pedro Alves <palves@redhat.com>
10430
10431 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10432 declaration.
10433 Include break-common.h.
10434
570dc176
TT
104352015-02-27 Tom Tromey <tromey@redhat.com>
10436 Pedro Alves <palves@redhat.com>
10437
10438 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10439 local used to iterate over enums.
10440 * completer.c (signal_completer): Likewise.
10441 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10442 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10443 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10444 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10445 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10446 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10447 * tui-wingeneral.c (tui_refresh_all): Likewise.
10448
68c14faa
PA
104492015-02-27 Pedro Alves <palves@redhat.com>
10450
10451 * target.h: Include "infrun.h".
10452
749bab01
PA
104532015-02-27 Pedro Alves <palves@redhat.com>
10454
10455 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10456
3c14e5a3
PA
104572015-02-27 Pedro Alves <palves@redhat.com>
10458
10459 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10460 (IPA_SYM): Use it.
10461 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10462
56000a98
PA
104632015-02-27 Pedro Alves <palves@redhat.com>
10464
10465 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10466 cli_mld_erase_entire_line, and make it extern "C".
10467 * common/common-defs.h (EXTERN_C): New.
10468 * completer.c (_rl_completion_prefix_display_length)
10469 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10470 out of gdb_display_match_list_1.
10471 (_rl_qsort_string_compare): Move declaration out of
10472 gdb_display_match_list_1, and make it extern "C".
10473 * defs.h (re_comp): Use EXTERN_C.
10474 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10475 and make it extern "C".
10476 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10477 and make it extern "C".
10478 (main): Move declaration out of maintenance_set_profile_cmd.
10479 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10480 EXTERN_C.
10481
bcabf420
PA
104822015-02-27 Pedro Alves <palves@redhat.com>
10483
10484 * python/python.c (GdbMethods): Rename to ...
10485 (python_GdbMethods): ... this and make extern.
10486 (GdbModuleDef): Rename to ...
10487 (python_GdbModuleDef): ... this and make extern.
10488
928dbe07
PA
104892015-02-27 Pedro Alves <palves@redhat.com>
10490
10491 * record-btrace.c (set_record_btrace_cmdlist)
10492 (show_record_btrace_cmdlist): Remove redefinitions.
10493
52059ffd
TT
104942015-02-27 Tom Tromey <tromey@redhat.com>
10495 Pedro Alves <palves@redhat.com>
10496
10497 * dwarf2-frame.c (enum cfa_how_kind, struct
10498 dwarf2_frame_state_reg_info): Move out of struct
10499 dwarf2_frame_state.
10500 * dwarf2read.c (struct tu_stats): Move out of struct
10501 dwarf2_per_objfile.
10502 (struct file_entry): Move out of struct line_header.
10503 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10504 typedef_field_list): Move out of struct field_info.
10505 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10506 Move out of struct dynamic_prop.
10507 (union type_owner, union field_location, struct field, struct
10508 range_bounds, union type_specific): Move out of struct main_type.
10509 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10510 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10511 (struct call_site_target, union call_site_parameter_u, struct
10512 call_site_parameter): Move out of struct call_site.
10513 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10514 m32c_prologue.
10515 (enum srcdest_kind): Move out of struct srcdest.
10516 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10517 * prologue-value.h (enum prologue_value_kind): Move out of struct
10518 prologue_value.
10519 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10520 gdbarch_tdep.
10521 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10522 out of struct field_info.
10523 * symfile.h (struct other_sections): Move out of struct
10524 section_addr_info.
10525 * symtab.c (struct symbol_cache_slot): Move out struct
10526 block_symbol_cache.
10527 * target-descriptions.c (enum tdesc_type_kind): Move out of
10528 typedef struct tdesc_type.
10529 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10530 struct tui_line_or_address.
10531 * value.c (enum internalvar_kind, union internalvar_data): Move
10532 out of struct internalvar.
10533 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10534 gdbarch_tdep.
10535
fe978cb0
PA
105362015-02-27 Tom Tromey <tromey@redhat.com>
10537 Pedro Alves <palves@redhat.com>
10538
10539 Rename symbols whose names are reserved C++ keywords throughout.
10540
3bc3d82a
PA
105412015-02-27 Pedro Alves <palves@redhat.com>
10542
10543 * Makefile.in (COMPILER): New, get it from autoconf.
10544 (COMPILE.pre, CC_LD): Use COMPILER.
10545 (CXX): Get from autoconf instead.
10546 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10547 * acinclude.m4: Include build-with-cxx.m4.
10548 * build-with-cxx.m4: New file.
10549 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10550 Disable -Werror by default if building in C++ mode.
10551 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10552 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10553 Run supported-warning-flags tests with the C++ compiler.
10554 Save/restore CXXFLAGS too.
10555 * configure: Regenerate.
10556
07697489
PA
105572015-02-27 Pedro Alves <palves@redhat.com>
10558
10559 * libiberty.m4: New file.
10560 * acinclude.m4: Include libiberty.m4.
10561 * configure.ac: Call libiberty_INIT.
10562 * config.in, configure: Regenerate.
10563
60abeae4
AA
105642015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10565
10566 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10567 31-bit targets, but 64-bit targets as well.
10568 (s390_gnu_triplet_regexp): New function.
10569 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10570 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10571 method.
10572
f44466fb 105732015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10574
10575 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10576 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10577 from CONTEXT_DEBUGGER.
10578
0def5aaa
DE
105792015-02-26 Doug Evans <dje@google.com>
10580
10581 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10582 CHECK_TYPEDEF.
10583 (set_type_vptr_fieldno): Ditto.
10584 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10585 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10586
77b64a49
PA
105872015-02-26 Pedro Alves <palves@redhat.com>
10588
10589 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10590 * complaints.c (vcomplaint): Pass argument FMT directly to
10591 printf-like functions instead of complaint->fmt.
10592 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10593 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10594 * compile/compile-loc2c.c (pushf, unary, binary): Add
10595 ATTRIBUTE_PRINTF.
10596 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10597 to pushf.
10598 (BINARY): Pass string literal as format string to 'binary'.
10599 * compile/compile-object-load.c (link_callbacks_einfo): Add
10600 ATTRIBUTE_PRINTF.
10601 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10602
532f44ed
PA
106032015-02-26 Pedro Alves <palves@redhat.com>
10604
10605 * windows-termcap.c: Rename to ...
10606 * stub-termcap.c: ... this. Adjust header line.
10607 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10608 windows-termcap.c.
10609 * configure: Regenerate.
10610 * configure.ac: Refer to stub-termcap.o instead of
10611 windows-termcap.o.
10612 * gdb_curses.h: Mention stub-termcap.c instead of
10613 windows-termcap.c.
10614
081a1c2c
JK
106152015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10616
10617 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10618 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10619
2f41223f
AT
106202015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10621
10622 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10623
80c57053
JK
106242015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10627 bfd_canonicalize_symtab.
10628
cf424aef
JB
106292015-02-25 John Baldwin <jhb@FreeBSD.org>
10630
10631 * amd64fbsd-nat.c: Include sys/user.h.
10632 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10633 instead of KERN_PS_STRINGS to locate the signal trampoline.
10634 * i386fbsd-nat.c: Include sys/user.h.
10635 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10636 instead of KERN_PS_STRINGS to locate the signal trampoline.
10637 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10638 (amd64fbsd_sigtramp_p): New.
10639 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10640 longer set default values.
10641 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10642 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10643 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10644 (i386fbsd_freebsd4_sigtramp_start)
10645 (i386fbsd_freebsd4_sigtramp_middle)
10646 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10647 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10648 (i386fbsd_sigtramp_p): New.
10649 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10650 longer set default values.
10651 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10652
c5cb74ee
JB
106532015-02-25 John Baldwin <jhb@freebsd.org>
10654
10655 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10656 get_frame_register instead of frame_unwind_register_unsigned.
10657
17487d85
JK
106582015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 PR build/18033
10661 * compile/compile-c-support.c (c_compute_program): Change // comment.
10662 * compile/compile-object-load.c (setup_sections): Change // comment.
10663
9357a9e6
JB
106642015-02-26 Joel Brobecker <brobecker@adacore.com>
10665
10666 PR build/18033:
10667 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10668
1f10ba14
PA
106692015-02-23 Pedro Alves <palves@redhat.com>
10670
10671 * remote.c (skip_to_semicolon): New function.
10672 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10673 special case the stop reasons that look like hex numbers
10674 upfront. Instead handle real register numbers after matching
10675 all the known stop reasons.
10676
96553a0c
DE
106772015-02-21 Doug Evans <dje@google.com>
10678
10679 PR c++/17976, symtab/17821
10680 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10681 is_in_anonymous. All callers updated.
10682 (find_symbol_in_baseclass): Ditto.
10683 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10684 for symbols in an anonymous namespace.
10685 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10686 DW_AT_name directly.
10687 (dwarf2_name): Convert missing namespace name to
10688 CP_ANONYMOUS_NAMESPACE_STR.
10689
2db9a427
PA
106902015-02-20 Pedro Alves <palves@redhat.com>
10691
10692 * linux-nat.c (linux_handle_extended_wait): Call
10693 thread_db_notice_clone whenever a new clone LWP is detected.
10694 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10695 functions.
10696 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10697 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10698 (linux_unstop_all_lwps): Declare.
10699 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10700 (thread_get_info_callback): Delete.
10701 (thread_from_lwp): Use td_thr_get_info and record_thread.
10702 (thread_db_attach_lwp): Delete.
10703 (thread_db_notice_clone): New function.
10704 (try_thread_db_load_1): If /proc is mounted and shows the
10705 process'es task list, walk over all LWPs and call thread_from_lwp
10706 instead of relying on td_ta_thr_iter.
10707 (attach_thread): Don't call check_thread_signals here. Split the
10708 tail part of the function (which adds the thread to the core GDB
10709 thread list) to ...
10710 (record_thread): ... this function. Call check_thread_signals
10711 here.
10712 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10713 call thread_from_lwp.
10714 (thread_db_update_thread_list): Rename to ...
10715 (thread_db_update_thread_list_org): ... this.
10716 (thread_db_update_thread_list): New function.
10717 (thread_db_find_thread_from_tid): Delete.
10718 (thread_db_get_ada_task_ptid): Simplify.
10719 * nat/linux-procfs.c: Include <sys/stat.h>.
10720 (linux_proc_task_list_dir_exists): New function.
10721 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10722
3b27ef47
PA
107232015-02-20 Pedro Alves <palves@redhat.com>
10724
10725 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10726 main LWP. Handle the case of waitpid returning 0 if we're already
10727 attached to the LWP. Don't set the LWP's last_resume_kind to
10728 resume_stop if we already knew about the LWP.
10729 (linux_nat_filter_event): Add debug logs.
10730
1cc28231
PA
107312015-02-20 Pedro Alves <palves@redhat.com>
10732
10733 * target.h (forward_target_decr_pc_after_break): Delete
10734 declaration.
10735
5c5019c2
PA
107362015-02-20 Pedro Alves <palves@redhat.com>
10737
10738 PR threads/18006
10739 * linux-thread-db.c (thread_get_info_callback): Return early if
10740 the thread's lwp id is -1.
10741
f3978e91
JB
107422015-02-20 Joel Brobecker <brobecker@adacore.com>
10743
10744 GDB 7.9 released.
10745
ffdf88ec
SE
107462015-02-19 Steve Ellcey <sellcey@imgtec.com>
10747
10748 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10749 (dtrace_get_probes) Change type of variable 'dof'.
10750
c9587f88
AT
107512015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10752
10753 PR breakpoints/16812
10754 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10755 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10756 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10757
53cf2ee0
DT
107582015-02-19 David Taylor <dtaylor@emc.com>
10759
10760 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10761
acfe0940
PP
107622015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10763
10764 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10765 function.
10766 (tui_putc): Don't call tui_handle_resize_during_io.
10767 (tui_getc): Likewise.
10768 (tui_mld_getc): Likewise.
10769 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10770 (tui_sigwinch_token): New static variable.
10771 (tui_initialize_win): Adjust documentation. Set
10772 tui_sigwinch_token.
10773 (tui_async_resize_screen): New asynchronous callback.
10774 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10775 invoke tui_async_resize_screen.
10776
f6a88844
JM
107772015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10778
10779 * configure: Regenerated.
10780 * configure.ac: Use GDB_AC_TRANSFORM.
10781 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10782 * acinclude.m4: sinclude transform.m4.
10783 * transform.m4: New file.
10784 (GDB_AC_TRANSFORM): New macro.
10785
b05e3b0d
JM
107862015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10787
10788 * NEWS: Announce the support for DTrace SDT probes.
10789
c3e3045e
JM
107902015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10791
10792 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10793 (amd64_dtrace_parse_probe_argument): New function.
10794 (amd64_dtrace_probe_is_enabled): Likewise.
10795 (amd64_dtrace_enable_probe): Likewise.
10796 (amd64_dtrace_disable_probe): Likewise.
10797 (amd64_linux_init_abi): Register the
10798 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10799 `gdbarch_dtrace_disable_probe' and
10800 `gdbarch_dtrace_probe_is_enabled' hooks.
10801 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10802 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10803 (amd64_dtrace_enable_probe_sequence): Likewise.
10804 (amd64_dtrace_disable_probe_sequence): Likewise.
10805
d4777acb
JM
108062015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10807
10808 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10809 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10810 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10811 handle ELF files.
10812 * Makefile.in (SFILES): dtrace-probe.c added.
10813 * configure: Regenerate.
10814 * dtrace-probe.c: New file.
10815 (SHT_SUNW_dof): New constant.
10816 (dtrace_probe_type): New enum.
10817 (dtrace_probe_arg): New struct.
10818 (dtrace_probe_arg_s): New typedef.
10819 (struct dtrace_probe_enabler): New struct.
10820 (dtrace_probe_enabler_s): New typedef.
10821 (dtrace_probe): New struct.
10822 (dtrace_probe_is_linespec): New function.
10823 (dtrace_dof_sect_type): New enum.
10824 (dtrace_dof_dofh_ident): Likewise.
10825 (dtrace_dof_encoding): Likewise.
10826 (DTRACE_DOF_ENCODE_LSB): Likewise.
10827 (DTRACE_DOF_ENCODE_MSB): Likewise.
10828 (dtrace_dof_hdr): New struct.
10829 (dtrace_dof_sect): Likewise.
10830 (dtrace_dof_provider): Likewise.
10831 (dtrace_dof_probe): Likewise.
10832 (DOF_UINT): New macro.
10833 (DTRACE_DOF_PTR): Likewise.
10834 (DTRACE_DOF_SECT): Likewise.
10835 (dtrace_process_dof_probe): New function.
10836 (dtrace_process_dof): Likewise.
10837 (dtrace_build_arg_exprs): Likewise.
10838 (dtrace_get_arg): Likewise.
10839 (dtrace_get_probes): Likewise.
10840 (dtrace_get_probe_argument_count): Likewise.
10841 (dtrace_can_evaluate_probe_arguments): Likewise.
10842 (dtrace_evaluate_probe_argument): Likewise.
10843 (dtrace_compile_to_ax): Likewise.
10844 (dtrace_probe_destroy): Likewise.
10845 (dtrace_gen_info_probes_table_header): Likewise.
10846 (dtrace_gen_info_probes_table_values): Likewise.
10847 (dtrace_probe_is_enabled): Likewise.
10848 (dtrace_probe_ops): New variable.
10849 (info_probes_dtrace_command): New function.
10850 (_initialize_dtrace_probe): Likewise.
10851 (dtrace_type_name): Likewise.
10852
8b367e17
JM
108532015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10854
10855 * gdbarch.sh (dtrace_parse_probe_argument): New.
10856 (dtrace_probe_is_enabled): Likewise.
10857 (dtrace_enable_probe): Likewise.
10858 (dtrace_disable_probe): Likewise.
10859 * gdbarch.c: Regenerate.
10860 * gdbarch.h: Regenerate.
10861
9aca2ff8
JM
108622015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10863
10864 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10865 stap_probe_ops for `enable_probe' and `disable_probe'.
10866 * probe.c (enable_probes_command): New function.
10867 (disable_probes_command): Likewise.
10868 (_initialize_probe): Define the cli commands `enable probe' and
10869 `disable probe'.
10870 (parse_probe_linespec): New function.
10871 (info_probes_for_ops): Use parse_probe_linespec.
10872 * probe.h (probe_ops): New hooks `enable_probe' and
10873 `disable_probe'.
10874
03e98035
JM
108752015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10876
10877 * probe.c (compute_probe_arg): Moved from stap-probe.c
10878 (compile_probe_arg): Likewise.
10879 (probe_funcs): Likewise.
10880 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10881 (compile_probe_arg): Likewise.
10882 (probe_funcs): Likewise.
10883
6f9b8491
JM
108842015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10885
10886 * probe.c (print_ui_out_not_applicables): New function.
10887 (exists_probe_with_pops): Likewise.
10888 (info_probes_for_ops): Do not include column headers for probe
10889 types for which no probe has been actually found on any object.
10890 Also invoke `print_ui_out_not_applicables' in order to match the
10891 column rows with the header when probes of several types are
10892 listed.
10893 Print the "Type" column.
10894 * probe.h (probe_ops): Added a new probe operation `type_name'.
10895 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10896 (stap_type_name): New function.
10897
69efdff1
PP
108982015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10899
10900 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10901 (key_is_command_char): Delete.
10902
f8e5e23e
PA
109032015-02-17 Pedro Alves <palves@redhat.com>
10904
10905 * tui/tui.c (tui_enable): Resize windows before anything
10906 might show a window.
10907
9f2e0721
MO
109082015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10909
10910 PR gdb/17984
10911 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10912 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10913 call.
10914 * aarch64-tdep.h (tdesc_aarch64): Declare.
10915
171e6b1c
MW
109162015-02-12 Mark Wielaard <mjw@redhat.com>
10917
10918 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10919
d5ff0482
DE
109202015-02-13 Doug Evans <dje@google.com>
10921
10922 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10923 anonymous_namespace to is_in_anonymous for consistency with the rest
10924 of the file.
10925 (cp_lookup_bare_symbol): Fix typo in comment.
10926 (cp_search_static_and_baseclasses): Ditto.
10927 (search_symbol_list): Use vertical space in comment better.
10928 (reset_directive_searched): Ditto. Fix typo.
10929 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10930
9f04ac5f
YQ
109312015-02-13 Yao Qi <yao.qi@arm.com>
10932
10933 * MAINTAINERS: Update my email address.
10934
013d0319
DE
109352015-02-12 Doug Evans <dje@google.com>
10936
b615dd20 10937 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10938
9a7e538e
DE
109392015-02-12 Doug Evans <dje@google.com>
10940
10941 * completer.c (complete_line): Remove incorrect comment.
10942
e1fcd575
JK
109432015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10944
10945 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10946 (py_print_frame): Use RETURN_MASK_ERROR.
10947
b99bf4e3
JK
109482015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10949
10950 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10951 function comment. Wrap all function that can throw in cleanups.
10952 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10953 cleanups.
10954
800eb1ce
JK
109552015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10956
10957 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10958 Remove the error label.
10959
34019068
JK
109602015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10963 with goto first, indent the former else codepath left. Put variable
10964 'elided' to a new inner block.
10965
8d4a54e2
JK
109662015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10967
10968 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10969
18ad82c1
PA
109702015-02-11 Pedro Alves <palves@redhat.com>
10971
10972 * xcoffread.c (within_function): Delete.
10973
e36122e9
TT
109742015-02-11 Tom Tromey <tromey@redhat.com>
10975 Pedro Alves <palves@redhat.com>
10976
10977 * breakpoint.c (base_breakpoint_ops): Delete.
10978 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10979 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10980 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10981 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10982 * python/py-arch.c (arch_object_type): Make extern.
10983 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10984 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10985 * python/py-cmd.c (cmdpy_object_type): Make extern.
10986 * python/py-continueevent.c (continue_event_object_type)
10987 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10988 parameter. Update all callers.
10989 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10990 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10991 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10992 * python/py-function.c (fnpy_object_type): Make extern.
10993 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10994 * python/py-infevents.c (call_pre_event_object_type)
10995 (inferior_call_post_event_object_type).
10996 (memory_changed_event_object_type): Make extern.
10997 * python/py-infthread.c (thread_object_type): Make extern.
10998 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10999 * python/py-linetable.c (linetable_entry_object_type)
11000 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11001 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11002 (clear_objfiles_event_object_type): Make extern.
11003 * python/py-objfile.c (objfile_object_type): Make extern.
11004 * python/py-param.c (parmpy_object_type): Make extern.
11005 * python/py-progspace.c (pspace_object_type): Make extern.
11006 * python/py-signalevent.c (signal_event_object_type): Make extern.
11007 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11008 * python/py-type.c (type_object_type, field_object_type)
11009 (type_iterator_object_type): Make extern.
11010 * python/python.c (python_extension_script_ops)
11011 (python_extension_ops): Make extern.
11012 * stap-probe.c (stap_probe_ops): Make extern.
11013
0703599a
PA
110142015-02-11 Pedro Alves <pedro@codesourcery.com>
11015
11016 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11017 because the event thread is not the current thread.
11018
eaaf76ab
DE
110192015-02-11 Doug Evans <xdje42@gmail.com>
11020
11021 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11022 been initialized yet, return NULL.
11023
e7d52ed3
DE
110242015-02-11 Doug Evans <dje@google.com>
11025
11026 * symfile.h (new_symfile_objfile): Delete.
11027 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11028 All callers updated.
11029
fc6b1256
PP
110302015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11031
11032 * tui/tui-io.c (tui_handle_resize_during_io): Call
11033 tui_update_gdb_sizes() after resizing the screen.
11034 * tui/tui.c (tui_enable): Resize the terminal before
11035 calling tui_update_gdb_sizes().
11036
d9080678
PP
110372015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11038
11039 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11040 line before printing a newline.
11041
9f615e3a
MW
110422015-02-11 Mark Wielaard <mjw@redhat.com>
11043
11044 * utils.c (producer_is_gcc): Return true or false.
11045
d9080678 110462015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11047
11048 * utils.h (producer_is_gcc): Change return type to bool. Add major
11049 argument.
11050 * utils.c (producer_is_gcc): Likewise.
11051 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11052 * dwarf2read.c (check_producer): Likewise.
11053
b052c4fb
PA
110542015-02-10 Pedro Alves <palves@redhat.com>
11055
11056 * infrun.c (displaced_step_fixup): Switch to the event thread
11057 before calling gdbarch_displaced_step_fixup.
11058
3ac240d4
AT
110592015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11060
11061 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11062
c1cc6152
SM
110632015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11064
11065 * ada-varobj.c (ada_name_of_child): Constify parent.
11066 (ada_path_expr_of_child): Same.
11067 (ada_value_of_child): Same.
11068 (ada_type_of_child): Same.
11069 * c-varobj.c (c_is_path_expr_parent): Same.
11070 (c_describe_child): Same.
11071 (c_name_of_child): Same.
11072 (c_value_of_child): Same.
11073 (c_type_of_child): Same.
11074 (cplus_number_of_children): Same.
11075 (cplus_describe_child): Constify var.
11076 (cplus_name_of_child): Constify parent.
11077 (cplus_value_of_child): Same.
11078 (cplus_type_of_child): Same.
11079 * jv-varobj.c (java_name_of_child): Same.
11080 (java_value_of_child): Same.
11081 (java_type_of_child): Same.
11082 * varobj.c (value_of_child): Same.
11083 (varobj_default_is_path_expr_parent): Constify var, parent and return
11084 value.
11085 (varobj_get_path_expr): Constify var, modify path_expr through
11086 mutable_var.
11087 (install_new_value): Constify parent.
11088 (value_of_child): Constify parent.
11089 * varobj.h (struct varobj): Constify parent.
11090 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11091 type_of_child.
11092 (varobj_get_path_expr): Constify var.
11093 (varobj_get_path_expr_parent): Constify var and return value.
11094
c1ee9414
LM
110952015-02-10 Luis Machado <lgustavo@codesourcery.com>
11096
11097 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11098 (arm_prologue_this_id): Move PC and SP limit checks to
11099 arm_prologue_unwind_stop_reason.
11100 (arm_prologue_unwind) <stop_reason> : Set to
11101 arm_prologue_unwind_stop_reason.
11102
f7de9aab
MW
111032015-02-09 Mark Wielaard <mjw@redhat.com>
11104
11105 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11106 DW_LANG_Fortran08 as language_fortran.
11107
0b24eb2d
SDJ
111082015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11109
11110 PR remote/17946
11111 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11112 of pointer against char.
11113
a2c2acaf
MW
111142015-02-09 Mark Wielaard <mjw@redhat.com>
11115
11116 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11117 (c_type_print_modifier): Likewise.
11118 * dwarf2read.c (read_tag_atomic_type): New function.
11119 (read_type_die_1): Handle DW_TAG_atomic_type.
11120 * gdbtypes.c (make_atomic_type): New function.
11121 (recursive_dump_type): Handle TYPE_ATOMIC.
11122 * gdbtypes.h (enum type_flag_values): Renumber.
11123 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11124 (TYPE_ATOMIC): New macro.
11125 (make_atomic_type): Declare.
11126
31fd9caa
MM
111272015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11128
11129 * btrace.c (ftrace_find_call): Skip gaps.
11130 (ftrace_new_function): Initialize level.
11131 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11132 (ftrace_new_switch): Update
11133 level computation.
11134 (ftrace_new_gap): New.
11135 (ftrace_update_function): Create new function after gap.
11136 (btrace_compute_ftrace_bts): Create gap on error.
11137 (btrace_stitch_bts): Update parameters. Clear trace if it
11138 becomes empty.
11139 (btrace_stitch_trace): Update parameters. Update callers.
11140 (btrace_clear): Reset the number of gaps.
11141 (btrace_insn_get): Return NULL if the iterator points to a gap.
11142 (btrace_insn_number): Return zero if the iterator points to a gap.
11143 (btrace_insn_end): Allow gaps at the end.
11144 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11145 (btrace_find_insn_by_number): Assert that the found iterator does
11146 not point to a gap.
11147 (btrace_call_next, btrace_call_prev): Assert that the last function
11148 is not a gap.
11149 * btrace.h (btrace_bts_error): New.
11150 (btrace_function): Update comment.
11151 (btrace_function) <insn, insn_offset, number>: Update comment.
11152 (btrace_function) <errcode>: New.
11153 (btrace_thread_info) <ngaps>: New.
11154 (btrace_thread_info) <replay>: Update comment.
11155 (btrace_insn_get): Update comment.
11156 * record-btrace.c (btrace_ui_out_decode_error): New.
11157 (record_btrace_info): Print number of gaps.
11158 (btrace_insn_history, btrace_call_history): Call
11159 btrace_ui_out_decode_error for gaps.
11160 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11161
afb778a2
MM
111622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11163
11164 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11165 * nat/linux-btrace.c: (btrace_this_cpu): New.
11166 (cpu_supports_bts): Call btrace_this_cpu.
11167 (intel_supports_bts): Add cpu parameter.
11168
7d5c24b3
MM
111692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11170
11171 * btrace.h (btrace_insn_class): New.
11172 (btrace_insn) <size, iclass>: New.
11173 * btrace.c (ftrace_find_call): Update parameters. Update users.
11174 Use instruction classification.
11175 (ftrace_new_return): Update parameters. Update users.
11176 (ftrace_update_function): Update parameters. Update users. Use
11177 instruction classification.
11178 (ftrace_update_insns): Update parameters. Update users.
11179 (ftrace_classify_insn): New.
11180 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11181 TRY_CATCH around call to gdb_insn_length.
11182
76235df1
MM
111832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11184
11185 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11186 Update parameters. Update users.
11187
d33501a5
MM
111882015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11189
11190 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11191 (btrace_conf_bts_attributes): New.
11192 (btrace_conf_children): Add attributes.
11193 * common/btrace-common.h (btrace_config_bts): New.
11194 (btrace_config)<bts>: New.
11195 (btrace_config): Update comment.
11196 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11197 Use config.
11198 * features/btrace-conf.dtd: Increment version. Add size
11199 attribute to bts element.
11200 * record-btrace.c (set_record_btrace_bts_cmdlist,
11201 show_record_btrace_bts_cmdlist): New.
11202 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11203 record_btrace_print_conf, cmd_set_record_btrace_bts,
11204 cmd_show_record_btrace_bts): New.
11205 (record_btrace_info): Call record_btrace_print_conf.
11206 (_initialize_record_btrace): Add commands.
11207 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11208 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11209 (btrace_sync_conf): Synchronize bts size.
11210 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11211 * NEWS: Announce new commands and new packets.
11212
f4abbc16
MM
112132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11214
11215 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11216 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11217 (x86_linux_btrace_conf): New.
11218 (x86_linux_create_target): Initialize to_btrace_conf.
11219 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11220 Check format. Split into this and ...
11221 (linux_enable_bts): ... this.
11222 (linux_btrace_conf): New.
11223 (perf_event_skip_record): Renamed into ...
11224 (perf_event_skip_bts_record): ... this. Updated users.
11225 (linux_disable_btrace): Split into this and ...
11226 (linux_disable_bts): ... this.
11227 (linux_read_btrace): Check format.
11228 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11229 (linux_btrace_conf): New.
11230 (btrace_target_info)<ptid>: Moved.
11231 (btrace_target_info)<conf>: New.
11232 (btrace_target_info): Split into this and ...
11233 (btrace_tinfo_bts): ... this. Updated users.
11234 * btrace.c (btrace_enable): Update parameters.
11235 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11236 (btrace_conf_children, btrace_conf_attributes)
11237 (btrace_conf_elements): New.
11238 * btrace.h (btrace_enable): Update parameters.
11239 (btrace_conf, parse_xml_btrace_conf): New.
11240 * common/btrace-common.h (btrace_config): New.
11241 * feature/btrace-conf.dtd: New.
11242 * record-btrace.c (record_btrace_conf): New.
11243 (record_btrace_cmdlist): New.
11244 (record_btrace_enable_warn, record_btrace_open): Pass
11245 &record_btrace_conf.
11246 (record_btrace_info): Print recording format.
11247 (cmd_record_btrace_bts_start): New.
11248 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11249 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11250 Add "record bts" alias command.
11251 * remote.c (remote_state)<btrace_config>: New.
11252 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11253 (remote_protocol_features): Add qXfer:btrace-conf:read.
11254 (remote_open_1): Call remote_btrace_reset.
11255 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11256 (btrace_target_info)<conf>: New.
11257 (btrace_sync_conf, btrace_read_config): New.
11258 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11259 btrace_read_conf.
11260 (remote_btrace_conf): New.
11261 (init_remote_ops): Initialize to_btrace_conf.
11262 (_initialize_remote): Add qXfer:btrace-conf packet.
11263 * target.c (target_enable_btrace): Update parameters.
11264 (target_btrace_conf): New.
11265 * target.h (target_enable_btrace): Update parameters.
11266 (target_btrace_conf): New.
11267 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11268 (target_ops)<to_enable_btrace>: Update parameters and comment.
11269 (target_ops)<to_btrace_conf>: New.
11270 * target-delegates: Regenerate.
11271 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11272 (target_debug_print_const_struct_btrace_target_info_p): New.
11273 * NEWS: Announce new command and new packet.
11274
aadf7753
MM
112752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11276
11277 * nat/linux-btrace.h (perf_event_buffer): New.
11278 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11279 <bts>: ... this.
11280 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11281 (perf_event_buffer_size, perf_event_buffer_begin)
11282 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11283 Updated users.
11284 (perf_event_new_data): New.
11285
043c3577
MM
112862015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11287
11288 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11289 * record-btrace.c (record_btrace_open): Remove call to
11290 target_supports_btrace.
11291 * remote.c (remote_supports_btrace): Update parameters.
11292 * target.c (target_supports_btrace): Update parameters.
11293 * target.h (to_supports_btrace, target_supports_btrace): Update
11294 parameters.
11295 * target-delegates.c: Regenerate.
11296 * target-debug.h (target_debug_print_enum_btrace_format): New.
11297 * nat/linux-btrace.c
11298 (kernel_supports_btrace): Rename into ...
11299 (kernel_supports_bts): ... this. Update users. Update warning text.
11300 (intel_supports_btrace): Rename into ...
11301 (intel_supports_bts): ... this. Update users.
11302 (cpu_supports_btrace): Rename into ...
11303 (cpu_supports_bts): ... this. Update users.
11304 (linux_supports_btrace): Update parameters. Split into this and ...
11305 (linux_supports_bts): ... this.
11306 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11307
734b0e4b
MM
113082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11309
11310 * Makefile.in (SFILES): Add common/btrace-common.c.
11311 (COMMON_OBS): Add common/btrace-common.o.
11312 (btrace-common.o): Add build rules.
11313 * btrace.c (parse_xml_btrace): Update parameters.
11314 (parse_xml_btrace_block): Set format field.
11315 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11316 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11317 (btrace_compute_ftrace): Split into this and...
11318 (btrace_compute_ftrace_bts): ...this.
11319 (btrace_stitch_trace): Split into this and...
11320 (btrace_stitch_bts): ...this.
11321 * btrace.h (parse_xml_btrace): Update parameters.
11322 (make_cleanup_btrace_data): New.
11323 * common/btrace-common.c: New.
11324 * common/btrace-common.h: Include common-defs.h.
11325 (btrace_block_s): Update comment.
11326 (btrace_format): New.
11327 (btrace_format_string): New.
11328 (btrace_data_bts): New.
11329 (btrace_data): New.
11330 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11331 * remote.c (remote_read_btrace): Update parameters.
11332 * target.c (target_read_btrace): Update parameters.
11333 * target.h (target_read_btrace): Update parameters.
11334 (target_ops)<to_read_btrace>: Update parameters.
11335 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11336 * target-delegates.c: Regenerate.
11337 * target-debug (target_debug_print_struct_btrace_data_p): New.
11338 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11339 (linux_read_bts): ...this.
11340 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11341
bd2e0e9e
DE
113422015-02-06 Doug Evans <dje@google.com>
11343
11344 * remote-m32r-sdi.c: Include symfile.h.
11345
f176c4b5
DE
113462015-02-06 Doug Evans <dje@google.com>
11347
11348 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11349 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11350 to here.
11351
d6c146e9
PA
113522015-02-06 Pedro Alves <palves@redhat.com>
11353
11354 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11355
b9d61307
SM
113562015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11357
11358 PR gdb/15678
11359 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11360 (enable_count_command): Check args for NULL value.
11361
e9fbd043
DE
113622015-02-05 Doug Evans <xdje42@gmail.com>
11363
11364 * guile/scm-frame.c: Fix spelling errors in a comment.
11365
881d5d5d
JK
113662015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11367
11368 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11369 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11370 return type.
11371
20ba1ce6
PA
113722015-02-04 Pedro Alves <palves@redhat.com>
11373
11374 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11375 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11376 returns true.
11377 (resume_stopped_resumed_lwps): Don't check whether the thread is
11378 marked as executing.
11379 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11380
f962539a
AA
113812015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11382
11383 * regset.h (struct regset): Add flags field.
11384 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11385 * corelow.c (get_core_register_section): Add warning if the size
11386 exceeds the requested size and the regset does not have the
11387 REGSET_VARIABLE_SIZE flag set.
11388 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11389 flag.
11390 * armbsd-tdep.c (armbsd_gregset): Likewise.
11391 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11392 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11393 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11394 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11395
dde9acd6
AA
113962015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11397
11398 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11399 For ".reg-xstate", explicitly specify the requested section size
11400 via X86_XSTATE_SIZE instead of just 0 on input and
11401 X86_XSTATE_MAX_SIZE on output.
11402 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11403 Likewise.
11404
1528345d
AA
114052015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11406
11407 PR corefiles/17808:
11408 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11409 function type, particularly its SIZE parameter.
11410 * gdbarch.h: Regenerate.
11411 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11412 actual against required size using ">=" instead of "==".
11413 (amd64_collect_fpregset): Likewise.
11414 * i386-tdep.c (i386_supply_gregset): Likewise.
11415 (i386_collect_gregset): Likewise.
11416 (i386_supply_fpregset): Likewise.
11417 (i386_collect_fpregset): Likewise.
11418 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11419 (mips_fill_gregset_wrapper): Likewise.
11420 (mips_supply_fpregset_wrapper): Likewise.
11421 (mips_fill_fpregset_wrapper): Likewise.
11422 (mips64_supply_gregset_wrapper): Likewise.
11423 (mips64_fill_gregset_wrapper): Likewise.
11424 (mips64_supply_fpregset_wrapper): Likewise.
11425 (mips64_fill_fpregset_wrapper): Likewise.
11426 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11427 (am33_supply_fpregset_method): Likewise.
11428 (am33_collect_gregset_method): Likewise.
11429 (am33_collect_fpregset_method): Likewise.
11430
518be979
DE
114312015-02-04 Doug Evans <dje@google.com>
11432 Pedro Alves <palves@redhat.com>
11433 Eli Zaretskii <eliz@gnu.org>
11434
11435 PR tui/17810
11436 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11437 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11438 * tui/tui-file.c: #include tui/tui-command.h.
11439 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11440 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11441 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11442
80bd5fab
PA
114432015-02-04 Pedro Alves <palves@redhat.com>
11444
11445 Fix build breakage.
11446 * event-loop.c (gdb_do_one_event): Add default switch case.
11447
a7606d80
JK
114482015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11449
11450 Filter out inferior gcc option -fpreprocessed.
11451 * compile/compile.c (filter_args): New function.
11452 (get_args): Use it.
11453
70b66289
PA
114542015-02-03 Pedro Alves <palves@redhat.com>
11455
11456 * event-loop.c: Don't declare nor define a queue type for
11457 gdb_event_p.
11458 (event_queue): Delete.
11459 (create_event, create_file_event, gdb_event_xfree)
11460 (initialize_event_loop, process_event): Delete.
11461 (gdb_do_one_event): Return as soon as one event is handled.
11462 (handle_file_event): Change prototype. Used the passed in
11463 file_handler pointer and ready_mask instead of looping over all
11464 file handlers.
11465 (gdb_wait_for_event): Update the poll/select timeouts before
11466 blocking. Run event handlers directly instead of queueing events.
11467 Return as soon as one event is handled.
11468 (struct async_event_handler_data): Delete.
11469 (invoke_async_event_handler): Delete.
11470 (check_async_event_handlers): Change return type to int. Run
11471 event handlers directly instead of queueing events. Return as
11472 soon as one event is handled.
11473 (handle_timer_event): Delete.
11474 (update_wait_timeout): New function, factored out from
11475 poll_timers.
11476 (poll_timers): Reimplement.
11477 * event-loop.h (initialize_event_loop): Delete declaration.
11478 * top.c (gdb_init): Don't call initialize_event_loop.
11479
b7d2e916
PA
114802015-02-03 Pedro Alves <palves@redhat.com>
11481
11482 * event-loop.c (clear_async_event_handler): New function.
11483 * event-loop.h (clear_async_event_handler): New declaration.
11484 * record-btrace.c (record_btrace_async): New function.
11485 (init_record_btrace_ops): Install record_btrace_async.
11486 * record-full.c (record_full_async): New function.
11487 (record_full_resume): Don't mark the async event source here.
11488 (init_record_full_ops): Install record_full_async.
11489 (record_full_core_resume): Don't mark the async event source here.
11490 (init_record_full_core_ops): Install record_full_async.
11491 * remote.c (remote_async): Mark and clear the async stop reply
11492 queue event-loop token as appropriate.
11493
d9d41e78
PA
114942015-02-03 Pedro Alves <palves@redhat.com>
11495
11496 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11497 target_is_async_p instead of target_can_async.
11498 (linux_nat_wait): Use target_is_async_p instead of
11499 target_can_async. Don't enable async here.
11500 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11501 target_is_async_p instead of target_can_async.
11502
aa3de267
SM
115032015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11504
11505 * varobj.h (lang_varobj_ops): Mention which return values need
11506 to be freed.
11507
2c811c0f
JB
115082015-02-02 Joel Brobecker <brobecker@adacore.com>
11509
11510 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11511
b1eedac9
JB
115122015-02-02 Joel Brobecker <brobecker@adacore.com>
11513
11514 PR gdb/17856:
11515 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11516 results found in the cache.
11517
66c168ae
JB
115182015-02-02 Joel Brobecker <brobecker@adacore.com>
11519
11520 PR gdb/17854:
11521 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11522 when allocating a new one.
11523
4bdc02b2
TT
115242015-02-01 Tom Tromey <tom@tromey.com>
11525
11526 * MAINTAINERS: Remove myself.
11527
ae6ae975
DE
115282015-01-31 Doug Evans <xdje42@gmail.com>
11529
11530 * dwarf2read.c (process_structure_scope): Update setting of
11531 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11532 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11533 (set_type_vptr_fieldno): New function.
11534 (internal_type_vptr_basetype): New function.
11535 (set_type_vptr_basetype): New function.
11536 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11537 TYPE_VPTR_BASETYPE.
11538 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11539 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11540 (print_cplus_stuff): ... moved here.
11541 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11542 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11543 moved to ...
11544 (struct cplus_struct_type): ... here. All uses updated.
11545 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11546 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11547 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11548 * stabsread.c (read_tilde_fields): Update setting of
11549 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11550
09e2d7c7
DE
115512015-01-31 Doug Evans <xdje42@gmail.com>
11552
11553 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11554 to self_p.
11555 (cp_print_class_member): Rename local domain to self_type.
11556 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11557 domain_type to self_type.
11558 (set_die_type) <need_gnat_info>: Handle
11559 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11560 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11561 TYPE_SPECIFIC_SELF_TYPE.
11562 * gdbtypes.c (internal_type_self_type): New function.
11563 (set_type_self_type): New function.
11564 (smash_to_memberptr_type): Rename parameter domain to self_type.
11565 Update setting of TYPE_SELF_TYPE.
11566 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11567 (smash_to_method_type): Rename parameter domain to self_type.
11568 Update setting of TYPE_SELF_TYPE.
11569 (check_stub_method): Call smash_to_method_type.
11570 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11571 (copy_type_recursive): Ditto.
11572 * gdbtypes.h (enum type_specific_kind): New value
11573 TYPE_SPECIFIC_SELF_TYPE.
11574 (struct main_type) <type_specific>: New member self_type.
11575 (struct cplus_struct_type) <fn_field.type>: Update comment.
11576 (TYPE_SELF_TYPE): Rewrite.
11577 (internal_type_self_type, set_type_self_type): Declare.
11578 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11579 self_type.
11580 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11581 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11582 TYPE_TARGET_TYPE.
11583 * stabsread.c (read_member_functions): Mark methods with
11584 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11585 TYPE_SELF_TYPE.
11586
4bfb94b8
DE
115872015-01-31 Doug Evans <xdje42@gmail.com>
11588
11589 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11590 All uses updated.
11591
5f4ce105
DE
115922015-01-31 Doug Evans <xdje42@gmail.com>
11593
11594 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11595 or unions. Return zero if union.
11596 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11597 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11598 gnuv3_get_vtable.
11599 (compute_vtable_size): Assert only passed structs.
11600 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11601
f6b3afbf
DE
116022015-01-31 Doug Evans <xdje42@gmail.com>
11603
11604 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11605 kinds.
11606
cfb069a8
GB
116072015-01-31 Gary Benson <gbenson@redhat.com>
11608 Doug Evans <dje@google.com>
11609
11610 PR cli/9007
11611 PR cli/11920
11612 PR cli/15548
11613 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11614 reached.
11615 * common/common-exceptions.h (enum errors)
11616 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11617 * completer.h (get_max_completions_reached_message): New declaration.
11618 (max_completions): Likewise.
11619 (completion_tracker_t): New typedef.
11620 (new_completion_tracker): New declaration.
11621 (make_cleanup_free_completion_tracker): Likewise.
11622 (maybe_add_completion_enum): New enum.
11623 (maybe_add_completion): New declaration.
11624 (throw_max_completions_reached_error): Likewise.
11625 * completer.c (max_completions): New global variable.
11626 (new_completion_tracker): New function.
11627 (free_completion_tracker): Likewise.
11628 (make_cleanup_free_completion_tracker): Likewise.
11629 (maybe_add_completions): Likewise.
11630 (throw_max_completions_reached_error): Likewise.
11631 (complete_line): Remove duplicates and limit result to max_completions
11632 entries.
11633 (get_max_completions_reached_message): New function.
11634 (gdb_display_match_list): Handle max_completions.
11635 (_initialize_completer): New declaration and function.
11636 * symtab.c: Include completer.h.
11637 (completion_tracker): New static variable.
11638 (completion_list_add_name): Call maybe_add_completion.
11639 (default_make_symbol_completion_list_break_on_1): Renamed from
11640 default_make_symbol_completion_list_break_on. Maintain
11641 completion_tracker across calls to completion_list_add_name.
11642 (default_make_symbol_completion_list_break_on): New function.
11643 * top.c (init_main): Set rl_completion_display_matches_hook.
11644 * tui/tui-io.c: Include completer.h.
11645 (tui_old_rl_display_matches_hook): New static global.
11646 (tui_rl_display_match_list): Notify user if max-completions reached.
11647 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11648 * NEWS (New Options): Mention set/show max-completions.
11649
e11c72c7
GB
116502015-01-31 Gary Benson <gbenson@redhat.com>
11651
11652 * symtab.c (struct add_name_data) <code>: New field.
11653 Updated comments.
11654 (add_symtab_completions): New function.
11655 (symtab_expansion_callback): Likewise.
11656 (default_make_symbol_completion_list_break_on): Set datum.code.
11657 Move minimal symbol scan before calling expand_symtabs_matching.
11658 Scan known primary symtabs for externs and statics before calling
11659 expand_symtabs_matching. Pass symtab_expansion_callback as
11660 expansion_notify argument to expand_symtabs_matching. Do not scan
11661 primary symtabs for externs and statics after calling
11662 expand_symtabs_matching.
11663
276d885b
GB
116642015-01-31 Gary Benson <gbenson@redhat.com>
11665
11666 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11667 (struct quick_symbol_functions) <expand_symtabs_matching>:
11668 New argument expansion_notify. All uses updated.
11669 (expand_symtabs_matching): New argument expansion_notify.
11670 All uses updated.
11671 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11672 Also print expansion notify.
11673 * symtab.c (expand_symtabs_matching_via_partial): Call
11674 expansion_notify whenever a partial symbol table is expanded.
11675 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11676 expansion_notify whenever a symbol table is instantiated.
11677
82083d6d
DE
116782015-01-31 Doug Evans <xdje42@gmail.com>
11679
11680 * cli-out.c: #include completer.h, readline/readline.h.
11681 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11682 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11683 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11684 * cli-out.h (cli_display_match_list): Declare.
11685 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11686 (ELLIPSIS_LEN): Ditto.
11687 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11688 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11689 (gdb_fnprint, gdb_print_filename): Ditto.
11690 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11691 (gdb_display_match_list): Ditto.
11692 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11693 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11694 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11695 (match_list_displayer): New struct.
11696 (gdb_display_match_list): Declare.
11697 * top.c (init_main): Set rl_completion_display_matches_hook.
11698 * tui/tui-io.c: #include completer.h.
11699 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11700 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11701 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11702 (tui_mld_getc, tui_mld_read_key): Ditto.
11703 (tui_rl_display_match_list): Rewrite.
11704 (tui_handle_resize_during_io): New arg for_completion. All callers
11705 updated.
11706
f57d2163
DE
117072015-01-31 Doug Evans <xdje42@gmail.com>
11708
11709 Add symbol lookup cache.
11710 * NEWS: Document new options and commands.
11711 * symtab.c (symbol_cache_key): New static global.
11712 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11713 (SYMBOL_LOOKUP_FAILED): New macro.
11714 (symbol_cache_slot_state): New enum.
11715 (block_symbol_cache): New struct.
11716 (symbol_cache): New struct.
11717 (new_symbol_cache_size, symbol_cache_size): New static globals.
11718 (hash_symbol_entry, eq_symbol_entry): New functions.
11719 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11720 (make_symbol_cache, free_symbol_cache): New functions.
11721 (get_symbol_cache, symbol_cache_cleanup): New function.
11722 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11723 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11724 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11725 (symbol_cache_flush, symbol_cache_dump): New functions.
11726 (maintenance_print_symbol_cache): New function.
11727 (maintenance_flush_symbol_cache): New function.
11728 (symbol_cache_stats): New function.
11729 (maintenance_print_symbol_cache_statistics): New function.
11730 (symtab_new_objfile_observer): New function.
11731 (symtab_free_objfile_observer): New function.
11732 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11733 (_initialize_symtab): Init symbol_cache_key. New parameter
11734 maint symbol-cache-size. New maint commands print symbol-cache,
11735 print symbol-cache-statistics, flush-symbol-cache.
11736 Install new_objfile, free_objfile observers.
11737
e700d1b2
JB
117382015-01-31 Joel Brobecker <brobecker@adacore.com>
11739
11740 PR symtab/17855
11741 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11742 to end.
11743
9f050062
DE
117442015-01-31 Doug Evans <xdje42@gmail.com>
11745
11746 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11747 * auto-load.c: #include ctype.h.
11748 (struct auto_load_pspace_info): Replace member loaded_scripts with
11749 new members loaded_script_files, loaded_script_texts.
11750 (auto_load_pspace_data_cleanup): Update.
11751 (init_loaded_scripts_info): Update.
11752 (get_auto_load_pspace_data_for_loading): Update.
11753 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11754 updated.
11755 (maybe_add_script_text): New function.
11756 (clear_section_scripts): Update.
11757 (source_script_file, execute_script_contents): New functions.
11758 (source_section_scripts): Add support for
11759 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11760 (print_scripts): New function.
11761 (auto_load_info_scripts): Also print inlined scripts.
11762 (maybe_print_unsupported_script_warning): Renamed from
11763 unsupported_script_warning_print. All callers updated.
11764 (maybe_print_script_not_found_warning): Renamed from
11765 script_not_found_warning_print. All callers updated.
11766 * extension-priv.h (struct extension_language_script_ops): New member
11767 objfile_script_executor.
11768 * extension.c (ext_lang_objfile_script_executor): New function.
11769 * extension.h (objfile_script_executor_func): New typedef.
11770 (ext_lang_objfile_script_executor): Declare.
11771 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11772 * guile/guile.c (guile_extension_script_ops): Update.
11773 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11774 * python/python.c (python_extension_script_ops): Update.
11775 (gdbpy_execute_objfile_script): New function.
11776
312809f8
EZ
117772015-01-31 Eli Zaretskii <eliz@gnu.org>
11778
11779 * tui/tui-io.c (tui_expand_tabs): New function.
11780 (tui_puts, tui_redisplay_readline): Expand TABs into the
11781 appropriate number of spaces.
11782 * tui/tui-regs.c: Include tui-io.h.
11783 (tui_register_format): Call tui_expand_tabs to expand TABs into
11784 the appropriate number of spaces.
11785 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11786
b6577aab
DE
117872015-01-30 Doug Evans <dje@google.com>
11788
11789 * NEWS: "info source" command now display producer string if present.
11790 * source.c (source_info): Print producer string if present.
11791
6da58d3e
SM
117922015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11793
11794 * varobj.c (varobj_delete): Fix comment.
11795
837ce252
SM
117962015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11797
11798 * varobj.c (create_child): Modify comment.
11799
b09e2c59
SM
118002015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11801
11802 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11803 parameter.
11804 (ada_name_of_variable): Same.
11805 (ada_path_expr_of_child): Same.
11806 (ada_value_of_variable): Same.
11807 (ada_value_is_changeable_p): Same.
11808 (ada_value_has_mutated): Same.
11809 * c-varobj.c (varobj_is_anonymous_child): Same.
11810 (c_is_path_expr_parent): Same.
11811 (c_number_of_children): Same.
11812 (c_name_of_variable): Same.
11813 (c_path_expr_of_child): Same.
11814 (get_type): Same.
11815 (c_value_of_variable): Same.
11816 (cplus_number_of_children): Same.
11817 (cplus_name_of_variable): Same.
11818 (cplus_path_expr_of_child): Same.
11819 (cplus_value_of_variable): Same.
11820 * jv-varobj.c (java_number_of_children): Same.
11821 (java_name_of_variable): Same.
11822 (java_path_expr_of_child): Same.
11823 (java_value_of_variable): Same.
11824 * varobj.c (number_of_children): Same.
11825 (name_of_variable): Same.
11826 (is_root_p): Same.
11827 (varobj_ensure_python_env): Same.
11828 (varobj_get_objname): Same.
11829 (varobj_get_expression): Same.
11830 (varobj_get_display_format): Same.
11831 (varobj_get_display_hint): Same.
11832 (varobj_has_more): Same.
11833 (varobj_get_thread_id): Same.
11834 (varobj_get_frozen): Same.
11835 (dynamic_varobj_has_child_method): Same.
11836 (varobj_get_gdb_type): Same.
11837 (is_path_expr_parent): Same.
11838 (varobj_default_is_path_expr_parent): Same.
11839 (varobj_get_language): Same.
11840 (varobj_get_attributes): Same.
11841 (varobj_is_dynamic_p): Same.
11842 (varobj_get_child_range): Same.
11843 (varobj_value_has_mutated): Same.
11844 (varobj_get_value_type): Same.
11845 (number_of_children): Same.
11846 (name_of_variable): Same.
11847 (check_scope): Same.
11848 (varobj_editable_p): Same.
11849 (varobj_value_is_changeable_p): Same.
11850 (varobj_floating_p): Same.
11851 (varobj_default_value_is_changeable_p): Same.
11852
2568868e
SM
118532015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11854
11855 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11856 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11857 child->path_expr.
11858 (cplus_path_expr_of_child): Same.
11859
ca83fa81
SM
118602015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11861
11862 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11863 result.
11864 (mi_cmd_var_info_expression): Same.
11865 * varobj.c (varobj_get_expression): Mention in the comment that
11866 the result must by freed by the caller.
11867
afa269ae
SM
118682015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11869
11870 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11871 varobj_get_type.
11872 (varobj_update_one): Same.
11873 * varobj.c (update_type_if_necessary): Free curr_type_str and
11874 new_type_str.
11875 (varobj_get_type): Specify in comment that the result needs to be
11876 freed by the caller.
11877
cd366ee8
DE
118782015-01-29 Doug Evans <dje@google.com>
11879
11880 PR symtab/17890
11881 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11882
38360086
MW
118832015-01-25 Mark Wielaard <mjw@redhat.com>
11884
11885 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11886 * utils.c (producer_is_gcc_ge_4): Likewise.
11887 (producer_is_gcc): New function.
11888 * utils.h (producer_is_gcc): New declaration.
11889
df25ebbd
JB
118902015-01-29 Joel Brobecker <brobecker@adacore.com>
11891
11892 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11893 kind.
11894 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11895 parameter by "addr_stack" parameter.
11896 (resolve_dynamic_range): Replace "addr" parameter by
11897 "stack_addr" parameter. Update function documentation.
11898 Update code accordingly.
11899 (resolve_dynamic_array, resolve_dynamic_union)
11900 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11901 (resolve_dynamic_type): Update code, following the changes made
11902 to resolve_dynamic_type_internal's interface.
11903 * dwarf2loc.h (struct property_addr_info): New.
11904 (dwarf2_evaluate_property): Replace "address" parameter
11905 by "addr_stack" parameter. Adjust function documentation.
11906 (struct dwarf2_offset_baton): New.
11907 (struct dwarf2_property_baton): Update documentation of
11908 field "referenced_type" to be more general. New field
11909 "offset_info" in union data field.
11910 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11911 parameter by "addr_stack" parameter. Adjust code accordingly.
11912 Add support for PROP_ADDR_OFFSET properties.
11913 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11914 DW_AT_data_member_location attributes as well. Use case
11915 statements instead of if/else condition.
11916
4a0ca9ec
JB
119172015-01-29 Joel Brobecker <brobecker@adacore.com>
11918
11919 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11920 Return zero if PARENT_VALUE is NULL and parent_type's
11921 range type is dynamic.
11922
ddb87a81
JB
119232015-01-29 Joel Brobecker <brobecker@adacore.com>
11924
11925 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11926 nonzero if the type's subtype is dynamic.
11927 (resolve_dynamic_range): Also resolve the range's subtype.
11928
3d7ad9b4 119292015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11930
3d7ad9b4 11931 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11932 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11933
3a8b707a
DE
119342015-01-27 Doug Evans <dje@google.com>
11935
11936 * NEWS: Mention gdb.Objfile.username.
11937 * python/py-objfile.c (objfpy_get_username): New function.
11938 (objfile_getset): Add "username".
11939
d35b90fb
MW
119402015-01-24 Mark Wielaard <mjw@redhat.com>
11941
11942 * stack.c (return_command): Markup warning message with _.
11943
734ae125
DE
119442015-01-24 Doug Evans <xdje42@gmail.com>
11945
11946 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11947
527f3840
JK
119482015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11949
11950 Fix 100x slowdown regression on DWZ files.
11951 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11952 (struct line_header): Add offset and offset_in_dwz.
11953 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11954 (free_line_header_voidp): New declaration.
11955 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11956 functions.
11957 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11958 (handle_DW_AT_stmt_list): Use line_header_hash.
11959 (free_line_header_voidp): New function.
11960 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11961 (dwarf_decode_lines): New parameter decode_mapping, use it.
11962 (dwarf2_free_objfile): Free line_header_hash.
11963
f7e5394d
SM
119642015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11965
11966 PR gdb/17416
11967 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11968 value_ind.
11969
743649fd
MW
119702015-01-15 Mark Wielaard <mjw@redhat.com>
11971
11972 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11973 DW_AT_noreturn.
11974 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11975 calling_convention an 8 bit bit field.
11976 (TYPE_NO_RETURN): New macro.
11977 * infcmd.c (finish_command): Query if function does not return
11978 normally.
11979 * stack.c (return_command): Likewise.
11980
198297aa
PA
119812015-01-23 Pedro Alves <palves@redhat.com>
11982
11983 * linux-nat.c (linux_is_async_p): New macro.
11984 (linux_nat_is_async_p):
11985 (linux_nat_terminal_inferior): Check whether the target can async
11986 instead of whether it is already async.
11987 (linux_nat_terminal_ours): Don't check whether the target is
11988 async.
11989 (linux_async_pipe): Use linux_is_async_p.
11990
253828f1
JK
119912015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11992
11993 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11994 '-ascending'.
11995 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11996 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11997 Sort tp_array using tp_array_compar.
11998 (_initialize_thread): Extend thread_apply_all_command help.
11999
f0e8c4c5
JK
120002015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 * corelow.c (core_open): Call also thread_command.
12003 * gdbthread.h (thread_command): New prototype moved from ...
12004 * thread.c (thread_command): ... here.
12005 (thread_command): Make it global.
12006
03b79603
PA
120072015-01-22 Pedro Alves <palves@redhat.com>
12008
12009 * configure.ac [*mingw32*]: Check $curses_found instead of
12010 $prefer_curses.
12011 * configure: Regenerate.
12012 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12013 HAVE_NCURSES_NCURSES_H checks.
12014
6b8a872f
EZ
120152015-01-22 Eli Zaretskii <eliz@gnu.org>
12016
bbbbffbb 12017 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12018 fails with the 1st arg NULL, try again with "unknown". Don't test
12019 the "cup" capability: it isn't supported by the Windows port of
12020 ncurses, but the Windows console driver is still capable of
12021 supporting TUI.
12022
4b62a76e
JK
120232015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12024
12025 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12026
82a864f9
EZ
120272015-01-22 Eli Zaretskii <eliz@gnu.org>
12028
12029 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12030 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12031 reason that "make TAGS" is broken.
12032
b35018fd
CG
120332015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12034
12035 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12036 and check additional store instructions.
12037
ffbc4646
WW
120382015-01-21 Wei-cheng Wang <cole945@gmail.com>
12039
12040 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12041
ddeca1df
WW
120422015-01-21 Wei-cheng Wang <cole945@gmail.com>
12043
12044 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12045 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12046 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12047 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12048 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12049 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12050 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12051 ppc_process_record_op19, ppc_process_record_op31,
12052 ppc_process_record_op59, ppc_process_record_op60,
12053 ppc_process_record_op63): Likewise.
12054
049bb5de
JB
120552015-01-20 Joel Brobecker <brobecker@adacore.com>
12056
12057 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12058 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12059 strerror.
12060
42b87c63 120612015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12062
12063 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12064 ppc_process_record_op31, ppc_process_record_op59,
12065 ppc_process_record_op60, ppc_process_record_op63,
12066 ppc_process_record): Fix -Wformat warning.
12067 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12068 Remove unused variables.
12069
569340fc
CG
120702015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12071
12072 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12073
63413d85
EZ
120742015-01-19 Eli Zaretskii <eliz@gnu.org>
12075
12076 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12077 CONFIG_OBS if not building with a curses library.
12078 * configure: Regenerate.
12079
12080 * windows-termcap.c: Include defs.h. Make the whole body empty if
12081 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12082 HAVE_NCURSES_NCURSES_H is defined.
12083
16d8013c
JB
120842015-01-19 Joel Brobecker <brobecker@adacore.com>
12085
12086 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12087 from end of line to start of next line.
12088
cf90fd9a
WW
120892015-01-17 Wei-cheng Wang <cole945@gmail.com>
12090
12091 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12092 Scan PLT stub backward for reverse debugging.
12093 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12094
b4cdae6f
WW
120952015-01-17 Wei-cheng Wang <cole945@gmail.com>
12096 Ulrich Weigand <uweigand@de.ibm.com>
12097
12098 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12099 gdb_target_obs.
12100 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12101 record.
12102 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12103 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12104 (ppc_linux_init_abi): Set process_record, process_record_signal.
12105 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12106 ppc_linux_record_tdep to gdbarch_tdep.
12107 (ppc_process_record): New declaration.
12108 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12109 ppc_process_record_op19, ppc_process_record_op31,
12110 ppc_process_record_op59, ppc_process_record_op60,
12111 ppc_process_record_op63, ppc_process_record): New functions.
12112
2608dbf8
WW
121132015-01-17 Wei-cheng Wang <cole945@gmail.com>
12114
12115 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12116 rs6000_in_function_epilogue_frame_p and add an argument
12117 for frame_info.
12118 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12119 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12120 New functions.
12121 (rs6000_epilogue_frame_unwind): New.
12122 (rs6000_gdbarch_init): Append epilogue unwinder.
12123
4c347be6
SDJ
121242015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12125
12126 * nat/linux-personality.c: Replace "#ifndef
12127 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12128 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12129 systems.
12130
9f2850ba
EZ
121312015-01-16 Eli Zaretskii <eliz@gnu.org>
12132
6cdb25f4
EZ
12133 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12134 functions.
12135 (_initialize_tui_win) <border-kind, border-mode>:
12136 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12137 (tui_set_tab_width_command): Fix the commentary.
12138
6cdb25f4
EZ
12139 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12140
bf555842
EZ
12141 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12142 Doc fix.
cb86fcc1
EZ
12143 (tui_set_tab_width_command): Delete and recreate the source and
12144 the disassembly windows, to show the effect of the changed tab
12145 size immediately.
bf555842 12146
9f2850ba
EZ
12147 * tui/tui-data.h (LINE_PREFIX): Make shorter
12148 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12149 "Thread NNNNN.XXXX" thread ID notation on Windows.
12150
95761b2d
JK
121512015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12152
12153 Fix gcc-5 compilation.
12154 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12155
8cc73a39
SDJ
121562015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12157
12158 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12159 (linux-personality.o): New rule.
12160 * common/common-defs.h: Include <stdint.h>.
12161 * config/aarch64/linux.mh (NATDEPFILES): Include
12162 linux-personality.o.
12163 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12164 * config/arm/linux.mh (NATDEPFILES): Likewise.
12165 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12166 * config/i386/linux.mh (NATDEPFILES): Likewise.
12167 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12168 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12169 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12170 * config/mips/linux.mh (NATDEPFILES): Likewise.
12171 * config/pa/linux.mh (NATDEPFILES): Likewise.
12172 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12173 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12174 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12175 * config/s390/linux.mh (NATDEPFILES): Likewise.
12176 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12177 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12178 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12179 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12180 * defs.h: Remove #include <stdint.h> (moved to
12181 common/common-defs.h).
12182 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12183 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12184 nat/linux-personality.c).
12185 (linux_nat_create_inferior): Remove code to disable address space
12186 randomization (moved to nat/linux-personality.c). Create cleanup
12187 to disable address space randomization.
12188 * nat/linux-personality.c: New file.
12189 * nat/linux-personality.h: Likewise.
12190
fb23d554
SDJ
121912015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12192
12193 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12194 common/posix-strerror.c.
12195 (posix-strerror.o): New rule.
12196 (mingw-strerror.o): Likewise.
12197 * common/common-utils.h (safe_strerror): Move prototype to here,
12198 from utils.h.
12199 * common/common.host: New file.
12200 * common/mingw-strerror.c: Likewise.
12201 * common/posix-strerror.c: Likewise.
12202 * configure: Regenerated.
12203 * configure.ac: Source common/common.host. Add variable
12204 common_host_obs to gdb_host_obs.
12205 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12206 gdb/common/posix-strerror.c when warning about the use of
12207 strerror.
12208 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12209 common/mingw-strerror.c.
12210 * posix-hdep.c (safe_strerror): Remove definition; move it to
12211 common/posix-hdep.c.
12212 * utils.h (safe_strerror): Remove prototype; move to
12213 common/common-utils.h.
12214
3af8af43
JB
122152015-01-15 Joel Brobecker <brobecker@adacore.com>
12216
12217 GDB 7.8.2 released.
12218
bafffb51
JB
122192015-01-15 Joel Brobecker <brobecker@adacore.com>
12220
12221 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12222 ___XA type if the array has already been fixed.
12223
cdf43629
YQ
122242015-01-14 Yao Qi <yao@codesourcery.com>
12225
12226 * Makefile.in (ppc-linux.o): New rule.
12227 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12228 * configure.ac: AC_CHECK_FUNCS(getauxval).
12229 * config.in: Re-generated.
12230 * configure: Re-generated.
12231 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12232 Declare.
12233 * nat/ppc-linux.c: New file.
12234 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12235 Call ppc64_64bit_inferior_p.
12236
514c5338
YQ
122372015-01-14 Yao Qi <yao@codesourcery.com>
12238
12239 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12240 nat/ppc-linux.h.
12241 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12242 (PPC_FEATURE_HAS_DFP): Likewise.
12243 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12244 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12245 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12246 Include "nat/ppc-linux.h".
12247 * nat/ppc-linux.h: New file.
12248 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12249
5589af0e
PA
122502015-01-14 Pedro Alves <palves@redhat.com>
12251
12252 PR gdb/17525
12253 * breakpoint.c: Include "interps.h".
12254 (bpstat_do_actions_1): Also check whether the interpreter is
12255 async.
12256
6c400b59
PA
122572015-01-14 Pedro Alves <palves@redhat.com>
12258
12259 PR cli/17828
12260 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12261 reinstall if the interpreter is sync.
12262
e02c96a7
DE
122632015-01-13 Doug Evans <dje@google.com>
12264
12265 * objfiles.c (objfile_filename): New function.
12266 * objfiles.h (objfile_filename): Declare it.
12267 (objfile_name): Add function comment.
12268 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12269 bfd file name (which may be realpath'd), and the original name.
12270
3b2f13ff
JB
122712015-01-13 Joel Brobecker <brobecker@adacore.com>
12272
12273 * NEWS: Create a new section for the next release branch.
12274 Rename the section of the current branch, now that it has
12275 been cut.
12276
b4cfe7f8
JB
122772015-01-13 Joel Brobecker <brobecker@adacore.com>
12278
12279 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12280 * version.in: Bump version to 7.9.50.DATE-cvs.
12281
92fc2e69
JB
122822015-01-13 Joel Brobecker <brobecker@adacore.com>
12283
12284 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12285 Remove trailing new-line in argument of call to warning.
12286
f71f0b0d
JB
122872015-01-13 Joel Brobecker <brobecker@adacore.com>
12288
12289 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12290 new-line in argument of call to "warning".
12291
04dccad0
JB
122922015-01-13 Joel Brobecker <brobecker@adacore.com>
12293
12294 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12295 in static block, then try searching for primitive types.
12296
08b13bdd
PP
122972015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12298
12299 * top.h (gdb_add_history): Declare.
12300 * top.c (command_count): New variable.
12301 (gdb_add_history): New function.
12302 (gdb_safe_append_history): New static function.
12303 (quit_force): Call it.
12304 (command_line_input): Use gdb_add_history instead of
12305 add_history.
12306 * event-top.c (command_line_handler): Likewise.
12307
4ac15b59
JC
123082015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12309
12310 PR gdb/17046
12311 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12312 <setjmp.h> #include.
12313
005e54bb
DE
123142015-01-11 Doug Evans <xdje42@gmail.com>
12315
12316 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12317
439250fb
DE
123182015-01-11 Doug Evans <xdje42@gmail.com>
12319
12320 PR gdb/15830
12321 * NEWS: The "maint demangle" command is renamed as "demangle".
12322 * demangle.c: #include cli/cli-utils.h, language.h.
12323 (demangle_command): New function.
12324 (_initialize_demangle): Add new command "demangle".
12325 * maint.c (maintenance_demangle): Stub out.
12326 (_initialize_maint_cmds): Update help text for "maint demangle",
12327 and mark as deprecated.
12328
ebf3aa72
MK
123292015-01-11 Mark Kettenis <kettenis@gnu.org>
12330
12331 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12332 inferior_thread is a function.
12333
6bf045cd
PP
123342015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12335
12336 * Makefile.in (.y.c): Don't munge yacc's #line
12337 directives.
12338
588dcc3e
PP
123392015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12340
12341 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12342 to prompt for input.
12343 * tui/tui-hooks.c (tui_query_hook): Remove.
12344 (tui_install_hooks): Don't set deprecated_query_hook.
12345 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12346 height calculation. Always update the command window's cur_line.
12347
9c02b525
PA
123482015-01-09 Pedro Alves <palves@redhat.com>
12349
12350 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12351 function.
12352 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12353 declaration.
12354 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12355 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12356 stop_reason.
12357 (check_stopped_by_watchpoint): New function.
12358 (save_sigtrap): Reimplement.
12359 (linux_nat_stopped_by_watchpoint): Adjust.
12360 (linux_nat_lp_status_is_event): Delete.
12361 (stop_wait_callback): Only call save_sigtrap after storing the
12362 pending status.
12363 (status_callback): If the thread had been stopped for a breakpoint
12364 that has since been removed, discard the event and resume the LWP.
12365 (count_events_callback, select_event_lwp_callback): Use
12366 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12367 (cancel_breakpoint): Rename to ...
12368 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12369 stopped for a software breakpoint or hardware breakpoint.
12370 (select_event_lwp): Only give preference to the stepping LWP in
12371 all-stop mode. Adjust comments.
12372 (stop_and_resume_callback): Remove references to new_pending_p.
12373 (linux_nat_filter_event): Likewise. Leave exit events of the
12374 leader thread pending here. Handle signal short circuiting here.
12375 Only call save_sigtrap after storing the pending waitstatus.
12376 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12377 new_pending. Don't handle leaving events the caller is not
12378 interested in pending here, nor handle signal short-circuiting
12379 here. Also give equal priority to all LWPs that have had events
12380 in non-stop mode. If reporting a software breakpoint event,
12381 unadjust the LWP's PC.
12382 * linux-nat.h (enum lwp_stop_reason): New.
12383 (struct lwp_info) <stop_pc>: New field.
12384 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12385 (struct lwp_info) <stop_reason>: New field.
12386 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12387
8af756ef
PA
123882015-01-09 Pedro Alves <palves@redhat.com>
12389
12390 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12391 Set the LWP's 'resumed' flag.
12392
8a99810d
PA
123932015-01-09 Pedro Alves <palves@redhat.com>
12394
12395 * linux-nat.c (linux_resume_one_lwp): New function.
12396 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12397 (linux_nat_resume): Use lwp_status_pending_p and
12398 linux_resume_one_lwp.
12399 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12400 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12401 (status_callback, running_callback): Use lwp_status_pending_p.
12402 (lwp_status_pending_p): New function.
12403 (stop_and_resume_callback): Use lwp_status_pending_p.
12404 (linux_nat_filter_event): Use linux_resume_one_lwp.
12405 (linux_nat_wait_1): Always use status_callback to look for an LWP
12406 with a pending status. Use linux_resume_one_lwp.
12407 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12408 linux_resume_one_lwp.
12409
f7ce857f
PA
124102015-01-09 Pedro Alves <palves@redhat.com>
12411
12412 * breakpoint.c (bp_location_inserted_here_p): New function,
12413 factored out from ...
12414 (breakpoint_inserted_here_p): ... here. Use
12415 ALL_BP_LOCATIONS_AT_ADDR.
12416 (software_breakpoint_inserted_here_p): Use
12417 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12418
c1a747c1
PA
124192014-01-09 Pedro Alves <palves@redhat.com>
12420
12421 Skip enabling event reporting if the kernel supports
12422 PTRACE_EVENT_CLONE.
12423 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12424 (thread_db_use_events): New function.
12425 (try_thread_db_load_1): Check thread_db_use_events before enabling
12426 event reporting.
12427 (update_thread_state): New function.
12428 (attach_thread): Use it. Check thread_db_use_events before
12429 enabling event reporting.
12430 (thread_db_detach): Check thread_db_use_events before disabling
12431 event reporting.
12432 (find_new_threads_callback): Check thread_db_use_events before
12433 enabling event reporting. Update the thread's state if not using
12434 libthread_db events.
12435
a33e3959
PA
124362015-01-09 Pedro Alves <palves@redhat.com>
12437
12438 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12439 about to wait for is > 0.
12440 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12441 the kernel thread ID is -1.
12442
8784d563
PA
124432015-01-09 Pedro Alves <palves@redhat.com>
12444
12445 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12446 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12447 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12448 ptrace option flags.
12449 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12450 field.
12451 * nat/linux-procfs.c: Include <dirent.h>.
12452 (linux_proc_get_int): New parameter "warn". Handle it.
12453 (linux_proc_get_tgid): Adjust.
12454 (linux_proc_get_tracerpid): Rename to ...
12455 (linux_proc_get_tracerpid_nowarn): ... this.
12456 (linux_proc_pid_get_state): New function, factored out from
12457 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12458 and handle it.
12459 (linux_proc_pid_is_gone): New function.
12460 (linux_proc_pid_is_stopped): Adjust.
12461 (linux_proc_pid_is_zombie_maybe_warn)
12462 (linux_proc_pid_is_zombie_nowarn): New functions.
12463 (linux_proc_pid_is_zombie): Use
12464 linux_proc_pid_is_zombie_maybe_warn.
12465 (linux_proc_attach_tgid_threads): New function.
12466 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12467 (linux_proc_get_tracerpid): Rename to ...
12468 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12469 (linux_proc_pid_is_gone): New declaration.
12470 (linux_proc_pid_is_zombie): Update comment.
12471 (linux_proc_pid_is_zombie_nowarn): New declaration.
12472 (linux_proc_attach_lwp_func): New typedef.
12473 (linux_proc_attach_tgid_threads): New declaration.
12474 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12475 use nowarn functions.
12476 (linux_ptrace_attach_fail_reason_string): Move here from
12477 gdbserver/linux-low.c and rename.
12478 (ptrace_supports_feature): If the current ptrace options are not
12479 known yet, check them now, instead of asserting.
12480 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12481 Declare.
12482
883ed13e
PA
124832015-01-09 Pedro Alves <palves@redhat.com>
12484
12485 * linux-thread-db.c (thread_db_find_new_threads_silently)
12486 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12487 (find_new_threads_once): Print debug output on gdb_stdlog.
12488
1710aab8
CG
124892015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12490 Pedro Alves <palves@redhat.com>
12491
12492 * compile/compile.c: Include "gdb_wait.h".
12493 (do_rmdir): Check return value, and free 'zap'.
12494
b597c318
YQ
124952015-01-08 Pedro Alves <palves@redhat.com>
12496 Yao Qi <yao@codesourcery.com>
12497
12498 * dwarf2loc.c (indirect_pieced_value): Don't call
12499 gdb_sign_extend. Call extract_signed_integer instead.
12500 * utils.c (gdb_sign_extend): Remove.
12501 * utils.h (gdb_sign_extend): Remove declaration.
12502
025ac414
PM
125032015-01-07 Pierre Muller <muller@sourceware.org>
12504
12505 PR symtab/17811
12506 * stabsread.c (define_symbol): Set language for C++ special symbols.
12507
fa5af12a
PP
125082015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12509
12510 * inflow.c (initial_gdb_ttystate): Tweak comment.
12511
ea42d6f8
JB
125122015-01-07 Joel Brobecker <brobecker@adacore.com>
12513
12514 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12515 comment documenting function.
12516
6a06d660
PP
125172015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12518
12519 * terminal.h (set_initial_gdb_ttystate): Declare.
12520 * inflow.c (initial_gdb_ttystate): New static variable.
12521 (set_initial_gdb_ttystate): New setter.
12522 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12523 instead of our current terminal state.
12524 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12525
e810d75b
JB
125262015-01-07 Joel Brobecker <brobecker@adacore.com>
12527
12528 * guile/scm-type.c (tyscm_array_1): Add comment.
12529 * python/py-type.c (typy_array_1): Add comment.
12530
fce10a84
JB
125312015-01-06 Joel Brobecker <brobecker@adacore.com>
12532
12533 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12534 error if N2 is equal to N1 - 1.
12535
8503d6e1
JB
125362015-01-06 Joel Brobecker <brobecker@adacore.com>
12537
12538 * python/py-type.c (typy_array_1): Do not raise negative-length
12539 exception if N2 is equal to N1 - 1.
12540
4d29c0a8
DE
125412015-01-03 Doug Evans <xdje42@gmail.com>
12542
12543 * c-exp.y: Whitespace cleanup.
12544 (classify_inner_name): Remove extra ;.
12545
eaa6a9a4
MR
125462015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12547
12548 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12549 offset signed.
12550
02fe9972
DE
125512015-01-02 Doug Evans <dje@google.com>
12552
12553 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12554
e2ada9cb
DE
125552015-01-02 Doug Evans <dje@google.com>
12556
12557 * symtab.h (struct symbol): Fix typo in comment.
12558
32d0add0
JB
125592015-01-01 Joel Brobecker <brobecker@adacore.com>
12560
12561 Update year range in copyright notice of all files.
12562
76f2b779
JB
125632015-01-01 Joel Brobecker <brobecker@adacore.com>
12564
12565 * top.c (print_gdb_version): Update copyright year to 2015.
12566
077309e2 125672015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12568
077309e2 12569 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12570
077309e2 12571For older changes see ChangeLog-2014.
c906108c
SS
12572\f
12573Local Variables:
12574mode: change-log
12575left-margin: 8
12576fill-column: 74
12577version-control: never
57da7796 12578coding: utf-8
c906108c 12579End:
This page took 2.395496 seconds and 4 git commands to generate.