ada-lang.c: malloc/alloca casts for C++
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aa5c10ce
PA
12015-10-13 Pedro Alves <palves@redhat.com>
2
3 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
4 and alloca calls.
5
4666fec3
SM
62015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
9 write_memory with write_memory_unsigned_integer.
10
3953f15c
SM
112015-10-13 Simon Marchi <thundersim@gmail.com>
12
13 * solib-dsbt.c (cmp_name): Constify arguments.
14 * solib-frv.c (cmp_name): Likewise.
15 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
16 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
17 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
18 (gdb_bfd_lookup_symbol): Likewise.
19 * solib.h (gdb_bfd_lookup_symbol): Likewise.
20 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
21
a0d34a39
AB
222015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * stack.c (parse_frame_specification): Remove message parameter,
25 replace with fixed string in function body, update function
26 comment.
27 (frame_info): Remove message to parse_frame_specification.
28 (select_frame_command): Likewise.
29
edbbff4a
AB
302015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * stack.c (parse_frame_specification): Delete.
33 (parse_frame_specification_1): Rename to
34 parse_frame_specification.
35 (frame_info): Use parse_frame_specification.
36 (select_frame_command): Likewise.
37 (return_command): Use select_frame and print_stack_frame rather
38 than frame_command and select_frame_command.
39 (func_command): Use get_current_frame rather than
40 parse_frame_specification.
41
9d622bda
AB
422015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * stack.c (func_command): Return early when there is no ARG
45 string.
46
8d3fea16
AB
472015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * stack.c: Include safe-ctype.h not ctype.h.
50 (parse_frame_specification): Use ISSPACE not isspace.
51 (backtrace_command): Use TOLOWER not tolower.
52
f54b226f
SM
532015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * mep-tdep.c (current_me_module): Add cast.
56 (mep_gdbarch_init): Likewise.
57
6da660c7
SM
582015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * m32c-tdep.c (m32c_move_reg_t): Replace with...
61 (m32c_write_reg_t): ...this and...
62 (m32c_read_reg_t): ...this.
63 (struct m32c_reg): Update types of read and write.
64 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
65 adjust definition.
66 (m32c_banked_read): Likewise.
67 (m32c_sb_read): Likewise.
68 (m32c_part_read): Likewise.
69 (m32c_cat_read): Likewise.
70 (m32c_r3r2r1r0_read): Likewise.
71 (m32c_raw_write): Change declaration type to m32c_write_reg_t
72 and adjust definition.
73 (m32c_banked_write): Likewise.
74 (m32c_sb_write): Likewise.
75 (m32c_part_write): Likewise.
76 (m32c_cat_write): Likewise.
77 (m32c_r3r2r1r0_write): Likewise.
78
1f713e48
SM
792015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
82
cb65d272
SM
832015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
86 gdb_sys_no_syscall instead of -1.
87
eda14cf2
YQ
882015-10-12 Yao Qi <yao.qi@linaro.org>
89
90 * NEWS: Mention the change.
91
1c2e1515
YQ
922015-10-12 Yao Qi <yao.qi@linaro.org>
93
94 * arch/aarch64-insn.c (emit_load_store): Rename to ...
95 (aarch64_emit_load_store): ... it. All callers updated.
96
e1c587c3
YQ
972015-10-12 Yao Qi <yao.qi@linaro.org>
98
99 * arch/aarch64-insn.c (emit_insn): Rename to ...
100 (aarch64_emit_insn): ... it. All callers updated.
101
b6542f81
YQ
1022015-10-12 Yao Qi <yao.qi@linaro.org>
103
104 * aarch64-linux-tdep.c: Include arch-utils.h.
105 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
106 set_gdbarch_displaced_step_copy_insn,
107 set_gdbarch_displaced_step_fixup,
108 set_gdbarch_displaced_step_free_closure,
109 set_gdbarch_displaced_step_location,
110 and set_gdbarch_displaced_step_hw_singlestep.
111 * aarch64-tdep.c (struct displaced_step_closure): New.
112 (struct aarch64_displaced_step_data): New.
113 (aarch64_displaced_step_b): New function.
114 (aarch64_displaced_step_b_cond): Likewise.
115 (aarch64_register): Likewise.
116 (aarch64_displaced_step_cb): Likewise.
117 (aarch64_displaced_step_tb): Likewise.
118 (aarch64_displaced_step_adr): Likewise.
119 (aarch64_displaced_step_ldr_literal): Likewise.
120 (aarch64_displaced_step_others): Likewise.
121 (aarch64_displaced_step_copy_insn): Likewise.
122 (aarch64_displaced_step_fixup): Likewise.
123 (aarch64_displaced_step_hw_singlestep): Likewise.
124 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
125 (aarch64_displaced_step_copy_insn): Declare.
126 (aarch64_displaced_step_fixup): Declare.
127 (aarch64_displaced_step_hw_singlestep): Declare.
128 * arch/aarch64-insn.c (emit_insn): Moved from
129 gdbserver/linux-aarch64-low.c.
130 (emit_load_store): Likewise.
131 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
132 gdbserver/linux-aarch64-low.c.
133 (struct aarch64_register): Likewise.
134 (struct aarch64_memory_operand): Likewise.
135 (ENCODE): Likewise.
136 (can_encode_int32): New macro.
137 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
138 (emit_tb, emit_nop): Likewise.
139 (emit_insn): Declare.
140 (emit_load_store): Declare.
141
246994ce
YQ
1422015-10-12 Yao Qi <yao.qi@linaro.org>
143
144 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
145 gdbserver/linux-aarch64-low.c.
146 (aarch64_relocate_instruction): Likewise.
147 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
148 (struct aarch64_insn_data): Moved from
149 gdbserver/linux-aarch64-low.c.
150 (struct aarch64_insn_visitor): Likewise.
151 (aarch64_relocate_instruction): Declare.
152
2520f728
PMR
1532015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
154
155 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
156 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
157 to the returned value.
158
5b639dea
JB
1592015-10-09 Joel Brobecker <brobecker@adacore.com>
160
161 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
162 is large enough for BIT_SIZE. Update function comment.
163
0cafa88c
JB
1642015-10-09 Joel Brobecker <brobecker@adacore.com>
165
166 * ada-lang.c (ada_value_primitive_packed_val): Move
167 src_len variable to local block where used. Override
168 BIT_SIZE if bigger than size of resolved type.
169
220475ed
JB
1702015-10-09 Joel Brobecker <brobecker@adacore.com>
171
172 * gdbtypes.h (is_scalar_type): Add extern declaration.
173 * gdbtypes.c (is_scalar_type): Make non-static.
174 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
175 to compute IS_SCALAR instead of doing it ourselves.
176
d0a9e810
JB
1772015-10-09 Joel Brobecker <brobecker@adacore.com>
178
179 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
180 of case where TYPE is dynamic.
181
f93fca70
JB
1822015-10-09 Joel Brobecker <brobecker@adacore.com>
183
184 * ada-lang.c (ada_unpack_from_contents): New function,
185 extracted from ada_value_primitive_packed_val.
186 (ada_value_primitive_packed_val): Replace extracted out code
187 by call to ada_unpack_from_contents.
188
a1c95e6b
JB
1892015-10-09 Joel Brobecker <brobecker@adacore.com>
190
191 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
192 variable declarations.
193
fbd000da
JB
1942015-10-09 Joel Brobecker <brobecker@adacore.com>
195
196 * ada-lang.c (ada_value_primitive_packed_val): Change the type
197 of local variables src and unpacked to "gdb_type *" instead of
198 "unsigned char *".
199
086ca51f
JB
2002015-10-09 Joel Brobecker <brobecker@adacore.com>
201
202 * ada-lang.c (ada_value_primitive_packed_val): Make the name
203 of various local variables more explicit and consistent.
204 No real code change otherwise.
205
c5bcd278
SM
2062015-10-09 Simon Marchi <simon.marchi@ericsson.com>
207
208 * i386-tdep.h (struct gdbarch_tdep): Change type of
209 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
210
78c5b882
SM
2112015-10-09 Simon Marchi <simon.marchi@ericsson.com>
212
213 * cris-tdep.c (struct instruction_environment): Change type of
214 byte_order to enum bfd_endian.
215
f9fa37b3
SM
2162015-10-09 Simon Marchi <simon.marchi@ericsson.com>
217
218 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
219 enum gdb_syscall casts.
220
7c543f7b
SM
2212015-10-09 Simon Marchi <simon.marchi@ericsson.com>
222
223 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
224 * arm-tdep.c (struct stack_item): Likewise.
225 (push_stack_item): Add gdb_byte* cast.
226 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
227 (push_stack_item): Add gdb_byte* cast.
228 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
229 and add cast.
230 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
231 (push_stack_item): Add gdb_byte* cast.
232 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
233 add cast.
234 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
235 gdb_byte*.
236 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
237 gdb_byte* and remove unnecessary cast.
238 (h8300h_extract_return_value): Likewise.
239 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
240 (h8300h_store_return_value): Likewise.
241 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
242 gdb_byte* and remove unnecessary cast.
243 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
244 and add cast.
245 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
246 gdb_byte* and remove unnecessary cast.
247 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
248 valbuf.
249 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
250 (mep_pseudo_cr64_read): Likewise.
251 (mep_pseudo_csr_write): Likewise.
252 (mep_pseudo_cr32_write): Likewise.
253 (mep_pseudo_cr64_write): Likewise.
254 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
255 gdb_byte* and add cast.
256 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
257 gdb_byte* and remove unnecessary cast.
258 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
259 valbuf.
260 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
261 gdb_byte*.
262 * printcmd.c (void): Likewise.
263 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
264 gdb_byte* and add cast.
265 (infpy_write_memory): Likewise.
266 (infpy_search_memory): Likewise.
267 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
268 and add cast.
269 (regcache_raw_write_unsigned): Likewise.
270 (regcache_cooked_write_signed): Likewise.
271 (regcache_cooked_write_unsigned): Likewise.
272 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
273 gdb_byte*.
274
7567e115
SM
2752015-10-09 Simon Marchi <simon.marchi@ericsson.com>
276
277 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
278 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
279
f9acce4a
EZ
2802015-10-09 Eli Zaretskii <eliz@gnu.org>
281
282 * stack.c (print_stack_frame):
283 * utils.c (printchar): Fix typos in commentary.
284
d5d8c4e1
IB
2852015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
286
287 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
288 (PostfixExpression): Support `expr.sizeof' expressions.
289 (PrimaryExpression): Support `typeof(expr)' expressions.
290
4e7de155
MR
2912015-10-08 Maciej W. Rozycki <macro@imgtec.com>
292
293 * MAINTAINERS: Update my email address.
294
04c4fe8c
MM
2952015-10-08 Markus Metzger <markus.t.metzger@intel.com>
296
297 * record-btrace.c (record_btrace_resume): Fix void return.
298
f77ee802
YQ
2992015-10-07 Yao Qi <yao.qi@linaro.org>
300
301 * aarch64-tdep.c: Include opcode/aarch64.h.
302 (submask): Move it above.
303 (bit): Likewise.
304 (bits): Likewise.
305 (aarch64_software_single_step): Call aarch64_decode_insn.
306 Decode instruction by aarch64_inst instead of using
307 aarch64_decode_bcond and decode_masked_match.
308
cbd641ed
PS
3092015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
310
311 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
312 only when the file is binary.
313
ae4e2501 3142015-10-02 James Bowman <james.bowman@ftdichip.com>
315
316 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
317 subroutine handling.
318
dd0a637a
SM
3192015-10-01 Simon Marchi <simon.marchi@ericsson.com>
320
321 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
322
1fd60fc0
DE
3232015-09-30 Doug Evans <dje@google.com>
324
325 * dwarf2read.c (setup_type_unit_groups): Add comment.
326
398e0813
PA
3272015-09-30 Pedro Alves <palves@redhat.com>
328
329 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
330 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
331 (x86_linux_create_target): Don't install
332 x86_linux_always_non_stop_p.
333
6ab24463
DB
3342015-09-30 Don Breazeal <donb@codesourcery.com>
335
336 * remote.c (remote_parse_stop_reply): Call strprefix instead
337 of strncmp.
338
ede5f151
SM
3392015-09-30 Simon Marchi <simon.marchi@ericsson.com>
340
341 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
342 * gdbarch.h: Regenerate.
343 * i386-tdep.c (i386_gdbarch_init): Remove cast to
344 struct gdbarch_tdep_info *.
345 * mips-tdep.c (mips_gdbarch_init): Likewise.
346 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
347 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
348 * spu-multiarch.c (spu_gdbarch): Likewise.
349
51c935fa 3502015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
351
352 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
353 record a NULL value.
354
3b1ad7d5
KB
3552015-09-29 Kevin Buettner <kevinb@redhat.com>
356
357 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
358 and union arguments the same as pointer arguments when determining
359 size of argument.
360
86feccb9 3612015-09-29 James Bowman <james.bowman@ftdichip.com>
362
363 * ft32-tdep.c: #include "opcode/ft32.h".
364 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
365 (ft32_analyze_prologue): Use FT32_* macros.
366
2181a6c6
SM
3672015-09-28 Simon Marchi <simon.marchi@ericsson.com>
368
84d73afc 369 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
370 comment.
371
245af596
DE
3722015-09-28 Doug Evans <dje@google.com>
373
374 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
375
c402ef90
DE
3762015-09-28 Doug Evans <dje@google.com>
377
378 * common/filestuff.c (make_cleanup_close): Update comment.
379
bc84451b
SM
3802015-09-26 Simon Marchi <simark@nova.polymtl.ca>
381
382 * btrace.c (parse_xml_btrace_block): Fix cast of
383 xml_find_attribute's return value.
384 * memory-map.c (memory_map_start_memory): Likewise.
385 * solib-svr4.c (library_list_start_library): Likewise.
386 * solib-target.c (library_list_start_segment): Likewise.
387 (library_list_start_section): Likewise.
388 * tracepoint.c (traceframe_info_start_memory): Likewise.
389
ba587d55
IB
3902015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
391
392 * d-namespace.c (d_lookup_symbol): New arg langdef.
393 All callers updated. Support looking up symbol as a primitive type.
394 (lookup_module_scope): New arg langdef. All callers updated.
395 Call d_lookup_symbol directly for simple bare symbols.
396
19ba03f4
SM
3972015-09-25 Simon Marchi <simon.marchi@ericsson.com>
398
399 * macrocmd.c (print_macro_callback): Add cast(s).
400 * macrotab.c (macro_bcache_str): Likewise.
401 (new_macro_definition): Likewise.
402 * main.c (captured_main): Likewise.
403 * maint.c (print_bfd_section_info): Likewise.
404 * mdebugread.c (mdebug_build_psymtabs): Likewise.
405 (basic_type): Likewise.
406 * memattr.c (mem_region_cmp): Likewise.
407 * memory-map.c (memory_map_start_memory): Likewise.
408 (memory_map_end_memory): Likewise.
409 (memory_map_start_property): Likewise.
410 (memory_map_end_property): Likewise.
411 (clear_result): Likewise.
412 * memrange.c (compare_mem_ranges): Likewise.
413 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
414 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
415 * mi/mi-console.c (mi_console_file_delete): Likewise.
416 (mi_console_file_fputs): Likewise.
417 (mi_console_raw_packet): Likewise.
418 (mi_console_file_flush): Likewise.
419 (mi_console_set_raw): Likewise.
420 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
421 (mi_new_thread): Likewise.
422 (mi_thread_exit): Likewise.
423 (mi_record_changed): Likewise.
424 (mi_inferior_added): Likewise.
425 (mi_inferior_appeared): Likewise.
426 (mi_inferior_exit): Likewise.
427 (mi_inferior_removed): Likewise.
428 (mi_interp_data): Likewise.
429 (mi_on_normal_stop): Likewise.
430 (mi_traceframe_changed): Likewise.
431 (mi_tsv_created): Likewise.
432 (mi_tsv_deleted): Likewise.
433 (mi_tsv_modified): Likewise.
434 (mi_breakpoint_created): Likewise.
435 (mi_breakpoint_deleted): Likewise.
436 (mi_breakpoint_modified): Likewise.
437 (mi_output_running_pid): Likewise.
438 (mi_inferior_count): Likewise.
439 (mi_solib_loaded): Likewise.
440 (mi_solib_unloaded): Likewise.
441 (mi_command_param_changed): Likewise.
442 (mi_memory_changed): Likewise.
443 (report_initial_inferior): Likewise.
444 (mi_ui_out): Likewise.
445 (mi_set_logging): Likewise.
446 * mi/mi-main.c (collect_cores): Likewise.
447 (print_one_inferior): Likewise.
448 (free_vector_of_ints): Likewise.
449 (free_splay_tree): Likewise.
450 (mi_execute_command): Likewise.
451 * mi/mi-out.c (mi_table_body): Likewise.
452 (mi_table_end): Likewise.
453 (mi_table_header): Likewise.
454 (mi_begin): Likewise.
455 (mi_end): Likewise.
456 (mi_field_int): Likewise.
457 (mi_field_string): Likewise.
458 (mi_field_fmt): Likewise.
459 (mi_flush): Likewise.
460 (mi_redirect): Likewise.
461 (field_separator): Likewise.
462 (mi_open): Likewise.
463 (mi_close): Likewise.
464 (mi_out_buffered): Likewise.
465 (mi_out_rewind): Likewise.
466 (mi_out_put): Likewise.
467 (mi_version): Likewise.
468 (mi_out_data_dtor): Likewise.
469 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
470 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
471 * minidebug.c (lzma_open): Likewise.
472 (lzma_pread): Likewise.
473 (lzma_close): Likewise.
474 (lzma_stat): Likewise.
475 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
476 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
477 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
478 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
479 (mips_micro_frame_cache): Likewise.
480 (mips_insn32_frame_cache): Likewise.
481 (mips_stub_frame_cache): Likewise.
482 (gdb_print_insn_mips): Likewise.
483 (value_of_mips_user_reg): Likewise.
484 (mips_gdbarch_init): Likewise.
485 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
486 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
487 (mipsnbsd_supply_gregset): Likewise.
488 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
489 (am33_collect_gregset_method): Likewise.
490 (am33_collect_fpregset_method): Likewise.
491 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
492 * moxie-tdep.c (moxie_frame_cache): Likewise.
493 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
494 (msp430_analyze_frame_prologue): Likewise.
495 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
496 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
497 (nios2_collect_gregset): Likewise.
498 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
499 (nios2_stub_frame_cache): Likewise.
500 * objc-lang.c (find_methods): Likewise.
501 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
502 (get_objfile_pspace_data): Likewise.
503 (get_objfile_bfd_data): Likewise.
504 (objfile_bfd_data_free): Likewise.
505 (add_to_objfile_sections): Likewise.
506 (do_free_objfile_cleanup): Likewise.
507 (resume_section_map_updates_cleanup): Likewise.
508 * opencl-lang.c (builtin_opencl_type): Likewise.
509 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
510 * osdata.c (osdata_start_osdata): Likewise.
511 (osdata_start_item): Likewise.
512 (osdata_start_column): Likewise.
513 (osdata_end_column): Likewise.
514 (clear_parsing_data): Likewise.
515 (osdata_free_cleanup): Likewise.
516 * parse.c (type_stack_cleanup): Likewise.
517 (exp_uses_objfile_iter): Likewise.
518 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
519 (ppc_linux_collect_gregset): Likewise.
520 (ppu2spu_prev_arch): Likewise.
521 (ppu2spu_this_id): Likewise.
522 (ppu2spu_prev_register): Likewise.
523 (ppu2spu_unwind_register): Likewise.
524 (ppu2spu_sniffer): Likewise.
525 (ppu2spu_dealloc_cache): Likewise.
526 (ppc_linux_init_abi): Likewise.
527 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
528 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
529 * progspace.c (restore_program_space): Likewise.
530 * psymtab.c (find_pc_sect_psymtab): Likewise.
531 (compare_psymbols): Likewise.
532 (psymbol_bcache_full): Likewise.
533 (allocate_psymtab): Likewise.
534 (discard_psymtabs_upto): Likewise.
535 * python/py-block.c (set_block): Likewise.
536 (del_objfile_blocks): Likewise.
537 * python/py-breakpoint.c (build_bp_list): Likewise.
538 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
539 (build_inferior_list): Likewise.
540 (py_free_inferior): Likewise.
541 * python/py-objfile.c (py_free_objfile): Likewise.
542 (objfile_to_objfile_object): Likewise.
543 * python/py-prettyprint.c (py_restore_tstate): Likewise.
544 * python/py-progspace.c (py_free_pspace): Likewise.
545 (pspace_to_pspace_object): Likewise.
546 * python/py-symbol.c (set_symbol): Likewise.
547 (del_objfile_symbols): Likewise.
548 * python/py-symtab.c (set_sal): Likewise.
549 (set_symtab): Likewise.
550 (del_objfile_symtab): Likewise.
551 (del_objfile_sal): Likewise.
552 * python/py-type.c (save_objfile_types): Likewise.
553 (set_type): Likewise.
554 * python/py-unwind.c (pyuw_prev_register): Likewise.
555 (pyuw_on_new_gdbarch): Likewise.
556 * python/py-utils.c (py_decref): Likewise.
557 (py_xdecref): Likewise.
558 (gdb_py_generic_dict): Likewise.
559 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
560 (gdbpy_clone_xmethod_worker_data): Likewise.
561 (gdbpy_get_xmethod_arg_types): Likewise.
562 (gdbpy_get_xmethod_result_type): Likewise.
563 (gdbpy_invoke_xmethod): Likewise.
564 * python/python.c (gdbpy_apply_type_printers): Likewise.
565 (gdbpy_free_type_printers): Likewise.
566 * record-btrace.c (record_btrace_disable_callback): Likewise.
567 (bfcache_hash): Likewise.
568 (bfcache_eq): Likewise.
569 (btrace_get_frame_function): Likewise.
570 (record_btrace_frame_unwind_stop_reason): Likewise.
571 (record_btrace_frame_this_id): Likewise.
572 (record_btrace_frame_prev_register): Likewise.
573 (record_btrace_frame_dealloc_cache): Likewise.
574 * record-full.c (record_full_message_wrapper): Likewise.
575 (record_full_save_cleanups): Likewise.
576 * regcache.c (regcache_descr): Likewise.
577 (do_regcache_xfree): Likewise.
578 (do_regcache_invalidate): Likewise.
579 (do_cooked_read): Likewise.
580 (regcache_transfer_regset): Likewise.
581 * reggroups.c (reggroup_add): Likewise.
582 (reggroup_next): Likewise.
583 (reggroup_prev): Likewise.
584 * remote-fileio.c (do_remote_fileio_request): Likewise.
585 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
586 (do_notif_event_xfree): Likewise.
587 * remote.c (get_remote_arch_state): Likewise.
588 (remote_pspace_data_cleanup): Likewise.
589 (get_remote_exec_file): Likewise.
590 (set_pspace_remote_exec_file): Likewise.
591 (compare_pnums): Likewise.
592 (clear_threads_listing_context): Likewise.
593 (remote_newthread_step): Likewise.
594 (start_thread): Likewise.
595 (end_thread): Likewise.
596 (remove_child_of_pending_fork): Likewise.
597 (remove_stop_reply_for_inferior): Likewise.
598 (remove_stop_reply_of_remote_state): Likewise.
599 (remote_notif_remove_once_on_match): Likewise.
600 (stop_reply_match_ptid_and_ws): Likewise.
601 (kill_child_of_pending_fork): Likewise.
602 (register_remote_g_packet_guess): Likewise.
603 (remote_read_description_p): Likewise.
604 (remote_read_description): Likewise.
605 (free_actions_list_cleanup_wrapper): Likewise.
606 (remote_async_serial_handler): Likewise.
607 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
608 (rl78_analyze_frame_prologue): Likewise.
609 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
610 (ppc_supply_fpregset): Likewise.
611 (ppc_supply_vsxregset): Likewise.
612 (ppc_supply_vrregset): Likewise.
613 (ppc_collect_gregset): Likewise.
614 (ppc_collect_fpregset): Likewise.
615 (ppc_collect_vsxregset): Likewise.
616 (ppc_collect_vrregset): Likewise.
617 (e500_move_ev_register): Likewise.
618 (do_regcache_raw_write): Likewise.
619 (rs6000_frame_cache): Likewise.
620 (rs6000_epilogue_frame_cache): Likewise.
621 (rs6000_gdbarch_init): Likewise.
622 * rx-tdep.c (rx_get_opcode_byte): Likewise.
623 (rx_analyze_frame_prologue): Likewise.
624 (rx_frame_type): Likewise.
625 (rx_frame_sniffer_common): Likewise.
626 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
627 (s390_frame_unwind_cache): Likewise.
628 (s390_stub_frame_unwind_cache): Likewise.
629 (s390_sigtramp_frame_unwind_cache): Likewise.
630 * score-tdep.c (score_make_prologue_cache): Likewise.
631 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
632 (sentinel_frame_prev_arch): Likewise.
633 * ser-base.c (fd_event): Likewise.
634 (push_event): Likewise.
635 (ser_base_write): Likewise.
636 * ser-pipe.c (pipe_close): Likewise.
637 * serial.c (serial_write): Likewise.
638 * sh-tdep.c (sh_frame_cache): Likewise.
639 (sh_stub_this_id): Likewise.
640 * sh64-tdep.c (sh64_frame_cache): Likewise.
641 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
642 (library_list_start_library): Likewise.
643 (library_list_start_list): Likewise.
644 (solib_aix_free_library_list): Likewise.
645 * solib-darwin.c (get_darwin_info): Likewise.
646 * solib-dsbt.c (get_dsbt_info): Likewise.
647 * solib-spu.c (append_ocl_sos): Likewise.
648 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
649 (get_svr4_info): Likewise.
650 (library_list_start_library): Likewise.
651 (svr4_library_list_start_list): Likewise.
652 (hash_probe_and_action): Likewise.
653 (equal_probe_and_action): Likewise.
654 (svr4_update_solib_event_breakpoint): Likewise.
655 (set_solib_svr4_fetch_link_map_offsets): Likewise.
656 (svr4_fetch_link_map_offsets): Likewise.
657 (svr4_have_link_map_offsets): Likewise.
658 * solib-target.c (library_list_start_segment): Likewise.
659 (library_list_start_section): Likewise.
660 (library_list_start_library): Likewise.
661 (library_list_end_library): Likewise.
662 (library_list_start_list): Likewise.
663 (solib_target_free_library_list): Likewise.
664 * solib.c (solib_ops): Likewise.
665 (set_solib_ops): Likewise.
666 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
667 * sparc-tdep.c (sparc_frame_cache): Likewise.
668 (sparc32_frame_cache): Likewise.
669 (sparc32_supply_gregset): Likewise.
670 (sparc32_collect_gregset): Likewise.
671 (sparc32_supply_fpregset): Likewise.
672 (sparc32_collect_fpregset): Likewise.
673 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
674 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
675 (sparc64_collect_gregset): Likewise.
676 (sparc64_supply_fpregset): Likewise.
677 (sparc64_collect_fpregset): Likewise.
678 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
679 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
680 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
681 (sparc64obsd_trapframe_cache): Likewise.
682 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
683 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
684 * spu-multiarch.c (spu_gdbarch): Likewise.
685 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
686 (spu2ppu_prev_arch): Likewise.
687 (spu2ppu_this_id): Likewise.
688 (spu2ppu_prev_register): Likewise.
689 (spu2ppu_dealloc_cache): Likewise.
690 (spu_dis_asm_print_address): Likewise.
691 (gdb_print_insn_spu): Likewise.
692 (spu_get_overlay_table): Likewise.
693 * stabsread.c (rs6000_builtin_type): Likewise.
694 * stack.c (do_print_variable_and_value): Likewise.
695 * stap-probe.c (get_stap_base_address_1): Likewise.
696 * symfile-debug.c (debug_qf_has_symbols): Likewise.
697 (debug_qf_find_last_source_symtab): Likewise.
698 (debug_qf_forget_cached_source_info): Likewise.
699 (debug_qf_map_symtabs_matching_filename): Likewise.
700 (debug_qf_lookup_symbol): Likewise.
701 (debug_qf_print_stats): Likewise.
702 (debug_qf_dump): Likewise.
703 (debug_qf_relocate): Likewise.
704 (debug_qf_expand_symtabs_for_function): Likewise.
705 (debug_qf_expand_all_symtabs): Likewise.
706 (debug_qf_expand_symtabs_with_fullname): Likewise.
707 (debug_qf_map_matching_symbols): Likewise.
708 (debug_qf_expand_symtabs_matching): Likewise.
709 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
710 (debug_qf_map_symbol_filenames): Likewise.
711 (debug_sym_get_probes): Likewise.
712 (debug_sym_new_init): Likewise.
713 (debug_sym_init): Likewise.
714 (debug_sym_read): Likewise.
715 (debug_sym_read_psymbols): Likewise.
716 (debug_sym_finish): Likewise.
717 (debug_sym_offsets): Likewise.
718 (debug_sym_read_linetable): Likewise.
719 (debug_sym_relocate): Likewise.
720 (uninstall_symfile_debug_logging): Likewise.
721 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
722 * symfile.c (place_section): Likewise.
723 (add_section_size_callback): Likewise.
724 (load_progress): Likewise.
725 (load_section_callback): Likewise.
726 (clear_memory_write_data): Likewise.
727 (allocate_symtab): Likewise.
728 * symmisc.c (maintenance_expand_file_matcher): Likewise.
729 * symtab.c (lookup_symtab_callback): Likewise.
730 (hash_demangled_name_entry): Likewise.
731 (eq_demangled_name_entry): Likewise.
732 (get_symbol_cache): Likewise.
733 (symbol_cache_cleanup): Likewise.
734 (set_symbol_cache_size): Likewise.
735 (symbol_cache_flush): Likewise.
736 (maintenance_print_symbol_cache): Likewise.
737 (maintenance_print_symbol_cache_statistics): Likewise.
738 (delete_filename_seen_cache): Likewise.
739 (output_partial_symbol_filename): Likewise.
740 (search_symbols_file_matches): Likewise.
741 (search_symbols_name_matches): Likewise.
742 (do_free_completion_list): Likewise.
743 (maybe_add_partial_symtab_filename): Likewise.
744 (get_main_info): Likewise.
745 (main_info_cleanup): Likewise.
746 * target-dcache.c (target_dcache_cleanup): Likewise.
747 (target_dcache_init_p): Likewise.
748 (target_dcache_invalidate): Likewise.
749 (target_dcache_get): Likewise.
750 (target_dcache_get_or_init): Likewise.
751 * target-descriptions.c (target_find_description): Likewise.
752 (tdesc_find_type): Likewise.
753 (tdesc_data_cleanup): Likewise.
754 (tdesc_find_arch_register): Likewise.
755 (tdesc_register_name): Likewise.
756 (tdesc_register_type): Likewise.
757 (tdesc_register_reggroup_p): Likewise.
758 (set_tdesc_pseudo_register_name): Likewise.
759 (set_tdesc_pseudo_register_type): Likewise.
760 (set_tdesc_pseudo_register_reggroup_p): Likewise.
761 (tdesc_use_registers): Likewise.
762 (free_target_description): Likewise.
763 * target-memory.c (compare_block_starting_address): Likewise.
764 (cleanup_request_data): Likewise.
765 (cleanup_write_requests_vector): Likewise.
766 * target.c (open_target): Likewise.
767 (cleanup_restore_target_terminal): Likewise.
768 (free_memory_read_result_vector): Likewise.
769 * thread.c (disable_thread_stack_temporaries): Likewise.
770 (finish_thread_state_cleanup): Likewise.
771 (do_restore_current_thread_cleanup): Likewise.
772 (restore_current_thread_cleanup_dtor): Likewise.
773 (set_thread_refcount): Likewise.
774 (tp_array_compar): Likewise.
775 (do_captured_thread_select): Likewise.
776 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
777 (tic6x_stub_this_id): Likewise.
778 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
779 * top.c (do_restore_instream_cleanup): Likewise.
780 (gdb_readline_wrapper_cleanup): Likewise.
781 (kill_or_detach): Likewise.
782 (print_inferior_quit_action): Likewise.
783 * tracefile-tfile.c (match_blocktype): Likewise.
784 (build_traceframe_info): Likewise.
785 * tracefile.c (trace_file_writer_xfree): Likewise.
786 * tracepoint.c (memrange_cmp): Likewise.
787 (do_collect_symbol): Likewise.
788 (do_clear_collection_list): Likewise.
789 (do_restore_current_traceframe_cleanup): Likewise.
790 (restore_current_traceframe_cleanup_dtor): Likewise.
791 (free_current_marker): Likewise.
792 (traceframe_info_start_memory): Likewise.
793 (traceframe_info_start_tvar): Likewise.
794 (free_result): Likewise.
795 * tramp-frame.c (tramp_frame_cache): Likewise.
796 * tui/tui-file.c (tui_file_delete): Likewise.
797 (tui_fileopen): Likewise.
798 (tui_sfileopen): Likewise.
799 (tui_file_isatty): Likewise.
800 (tui_file_rewind): Likewise.
801 (tui_file_put): Likewise.
802 (tui_file_fputs): Likewise.
803 (tui_file_get_strbuf): Likewise.
804 (tui_file_adjust_strbuf): Likewise.
805 (tui_file_flush): Likewise.
806 * tui/tui-layout.c (make_command_window): Likewise.
807 (make_data_window): Likewise.
808 (show_source_disasm_command): Likewise.
809 (show_data): Likewise.
810 (make_source_or_disasm_window): Likewise.
811 (show_source_or_disasm_and_command): Likewise.
812 * tui/tui-out.c (tui_field_int): Likewise.
813 (tui_field_string): Likewise.
814 (tui_field_fmt): Likewise.
815 (tui_text): Likewise.
816 * typeprint.c (hash_typedef_field): Likewise.
817 (eq_typedef_field): Likewise.
818 (do_free_typedef_hash): Likewise.
819 (copy_typedef_hash_element): Likewise.
820 (do_free_global_table): Likewise.
821 (find_global_typedef): Likewise.
822 (find_typedef_in_hash): Likewise.
823 * ui-file.c (ui_file_write_for_put): Likewise.
824 (do_ui_file_xstrdup): Likewise.
825 (mem_file_delete): Likewise.
826 (mem_file_rewind): Likewise.
827 (mem_file_put): Likewise.
828 (mem_file_write): Likewise.
829 (stdio_file_delete): Likewise.
830 (stdio_file_flush): Likewise.
831 (stdio_file_read): Likewise.
832 (stdio_file_write): Likewise.
833 (stdio_file_write_async_safe): Likewise.
834 (stdio_file_fputs): Likewise.
835 (stdio_file_isatty): Likewise.
836 (stdio_file_fseek): Likewise.
837 (tee_file_delete): Likewise.
838 (tee_file_flush): Likewise.
839 (tee_file_write): Likewise.
840 (tee_file_fputs): Likewise.
841 (tee_file_isatty): Likewise.
842 * ui-out.c (do_cleanup_table_end): Likewise.
843 (do_cleanup_end): Likewise.
844 * user-regs.c (user_reg_add): Likewise.
845 (user_reg_map_name_to_regnum): Likewise.
846 (usernum_to_user_reg): Likewise.
847 (maintenance_print_user_registers): Likewise.
848 * utils.c (do_bfd_close_cleanup): Likewise.
849 (do_fclose_cleanup): Likewise.
850 (do_obstack_free): Likewise.
851 (do_ui_file_delete): Likewise.
852 (do_ui_out_redirect_pop): Likewise.
853 (do_free_section_addr_info): Likewise.
854 (restore_integer): Likewise.
855 (do_unpush_target): Likewise.
856 (do_htab_delete_cleanup): Likewise.
857 (do_restore_ui_file): Likewise.
858 (do_value_free): Likewise.
859 (do_free_so): Likewise.
860 (free_current_contents): Likewise.
861 (do_regfree_cleanup): Likewise.
862 (core_addr_hash): Likewise.
863 (core_addr_eq): Likewise.
864 (do_free_char_ptr_vec): Likewise.
865 * v850-tdep.c (v850_frame_cache): Likewise.
866 * varobj.c (do_free_variable_cleanup): Likewise.
867 * vax-tdep.c (vax_supply_gregset): Likewise.
868 (vax_frame_cache): Likewise.
869 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
870 * xml-support.c (gdb_xml_body_text): Likewise.
871 (gdb_xml_values_cleanup): Likewise.
872 (gdb_xml_start_element): Likewise.
873 (gdb_xml_start_element_wrapper): Likewise.
874 (gdb_xml_end_element): Likewise.
875 (gdb_xml_end_element_wrapper): Likewise.
876 (gdb_xml_cleanup): Likewise.
877 (gdb_xml_fetch_external_entity): Likewise.
878 (gdb_xml_parse_attr_enum): Likewise.
879 (xinclude_start_include): Likewise.
880 (xinclude_end_include): Likewise.
881 (xml_xinclude_default): Likewise.
882 (xml_xinclude_start_doctype): Likewise.
883 (xml_xinclude_end_doctype): Likewise.
884 (xml_xinclude_cleanup): Likewise.
885 (xml_fetch_content_from_file): Likewise.
886 * xml-syscall.c (free_syscalls_info): Likewise.
887 (syscall_start_syscall): Likewise.
888 * xml-tdesc.c (tdesc_end_arch): Likewise.
889 (tdesc_end_osabi): Likewise.
890 (tdesc_end_compatible): Likewise.
891 (tdesc_start_target): Likewise.
892 (tdesc_start_feature): Likewise.
893 (tdesc_start_reg): Likewise.
894 (tdesc_start_union): Likewise.
895 (tdesc_start_struct): Likewise.
896 (tdesc_start_flags): Likewise.
897 (tdesc_start_field): Likewise.
898 (tdesc_start_vector): Likewise.
899 (fetch_available_features_from_target): Likewise.
900 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
901 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
902 (xtensa_frame_cache): Likewise.
903 (xtensa_frame_prev_register): Likewise.
904 (xtensa_extract_return_value): Likewise.
905
9a3c8263
SM
9062015-09-25 Simon Marchi <simon.marchi@ericsson.com>
907
908 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
909 (aarch64_make_stub_cache): Likewise.
910 (value_of_aarch64_user_reg): Likewise.
911 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
912 (get_ada_inferior_data): Likewise.
913 (get_ada_pspace_data): Likewise.
914 (ada_pspace_data_cleanup): Likewise.
915 (ada_complete_symbol_matcher): Likewise.
916 (ada_exc_search_name_matches): Likewise.
917 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
918 (get_ada_tasks_inferior_data): Likewise.
919 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
920 (splay_obstack_alloc): Likewise.
921 (splay_obstack_free): Likewise.
922 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
923 (alpha_linux_collect_gregset): Likewise.
924 (alpha_linux_supply_fpregset): Likewise.
925 (alpha_linux_collect_fpregset): Likewise.
926 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
927 * alpha-tdep.c (alpha_lds): Likewise.
928 (alpha_sts): Likewise.
929 (alpha_sigtramp_frame_unwind_cache): Likewise.
930 (alpha_heuristic_frame_unwind_cache): Likewise.
931 (alpha_supply_int_regs): Likewise.
932 (alpha_fill_int_regs): Likewise.
933 (alpha_supply_fp_regs): Likewise.
934 (alpha_fill_fp_regs): Likewise.
935 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
936 (alphanbsd_aout_supply_gregset): Likewise.
937 (alphanbsd_supply_gregset): Likewise.
938 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
939 (amd64_x32_linux_init_abi): Likewise.
940 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
941 (amd64_collect_native_gregset): Likewise.
942 * amd64-tdep.c (amd64_frame_cache): Likewise.
943 (amd64_sigtramp_frame_cache): Likewise.
944 (amd64_epilogue_frame_cache): Likewise.
945 (amd64_supply_fxsave): Likewise.
946 (amd64_supply_xsave): Likewise.
947 (amd64_collect_fxsave): Likewise.
948 (amd64_collect_xsave): Likewise.
949 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
950 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
951 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
952 (arm_linux_collect_gregset): Likewise.
953 (arm_linux_supply_nwfpe): Likewise.
954 (arm_linux_collect_nwfpe): Likewise.
955 (arm_linux_supply_vfp): Likewise.
956 (arm_linux_collect_vfp): Likewise.
957 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
958 (arm_prologue_unwind_stop_reason): Likewise.
959 (arm_prologue_this_id): Likewise.
960 (arm_prologue_prev_register): Likewise.
961 (arm_exidx_data_free): Likewise.
962 (arm_find_exidx_entry): Likewise.
963 (arm_stub_this_id): Likewise.
964 (arm_m_exception_this_id): Likewise.
965 (arm_m_exception_prev_register): Likewise.
966 (arm_normal_frame_base): Likewise.
967 (gdb_print_insn_arm): Likewise.
968 (arm_objfile_data_free): Likewise.
969 (arm_record_special_symbol): Likewise.
970 (value_of_arm_user_reg): Likewise.
971 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
972 (armbsd_supply_gregset): Likewise.
973 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
974 (get_auto_load_pspace_data): Likewise.
975 (hash_loaded_script_entry): Likewise.
976 (eq_loaded_script_entry): Likewise.
977 (clear_section_scripts): Likewise.
978 (collect_matching_scripts): Likewise.
979 * auxv.c (auxv_inferior_data_cleanup): Likewise.
980 (get_auxv_inferior_data): Likewise.
981 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
982 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
983 * bfd-target.c (target_bfd_xfer_partial): Likewise.
984 (target_bfd_xclose): Likewise.
985 (target_bfd_get_section_table): Likewise.
986 * bfin-tdep.c (bfin_frame_cache): Likewise.
987 * block.c (find_block_in_blockvector): Likewise.
988 (call_site_for_pc): Likewise.
989 (block_find_non_opaque_type_preferred): Likewise.
990 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
991 (signal_catchpoint_remove_location): Likewise.
992 (signal_catchpoint_breakpoint_hit): Likewise.
993 (signal_catchpoint_print_one): Likewise.
994 (signal_catchpoint_print_mention): Likewise.
995 (signal_catchpoint_print_recreate): Likewise.
996 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
997 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
998 (bp_location_compare_addrs): Likewise.
999 (get_first_locp_gte_addr): Likewise.
1000 (check_tracepoint_command): Likewise.
1001 (do_map_commands_command): Likewise.
1002 (get_breakpoint_objfile_data): Likewise.
1003 (free_breakpoint_probes): Likewise.
1004 (do_captured_breakpoint_query): Likewise.
1005 (compare_breakpoints): Likewise.
1006 (bp_location_compare): Likewise.
1007 (bpstat_remove_breakpoint_callback): Likewise.
1008 (do_delete_breakpoint_cleanup): Likewise.
1009 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1010 (bsd_uthread_set_collect_uthread): Likewise.
1011 (bsd_uthread_activate): Likewise.
1012 (bsd_uthread_fetch_registers): Likewise.
1013 (bsd_uthread_store_registers): Likewise.
1014 * btrace.c (check_xml_btrace_version): Likewise.
1015 (parse_xml_btrace_block): Likewise.
1016 (parse_xml_btrace_pt_config_cpu): Likewise.
1017 (parse_xml_btrace_pt_raw): Likewise.
1018 (parse_xml_btrace_pt): Likewise.
1019 (parse_xml_btrace_conf_bts): Likewise.
1020 (parse_xml_btrace_conf_pt): Likewise.
1021 (do_btrace_data_cleanup): Likewise.
1022 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1023 * charset.c (cleanup_iconv): Likewise.
1024 (do_cleanup_iterator): Likewise.
1025 * cli-out.c (cli_uiout_dtor): Likewise.
1026 (cli_table_begin): Likewise.
1027 (cli_table_body): Likewise.
1028 (cli_table_end): Likewise.
1029 (cli_table_header): Likewise.
1030 (cli_begin): Likewise.
1031 (cli_end): Likewise.
1032 (cli_field_int): Likewise.
1033 (cli_field_skip): Likewise.
1034 (cli_field_string): Likewise.
1035 (cli_field_fmt): Likewise.
1036 (cli_spaces): Likewise.
1037 (cli_text): Likewise.
1038 (cli_message): Likewise.
1039 (cli_wrap_hint): Likewise.
1040 (cli_flush): Likewise.
1041 (cli_redirect): Likewise.
1042 (out_field_fmt): Likewise.
1043 (field_separator): Likewise.
1044 (cli_out_set_stream): Likewise.
1045 * cli/cli-cmds.c (compare_symtabs): Likewise.
1046 * cli/cli-dump.c (call_dump_func): Likewise.
1047 (restore_section_callback): Likewise.
1048 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1049 (do_restore_user_call_depth): Likewise.
1050 (do_free_command_lines_cleanup): Likewise.
1051 * coff-pe-read.c (get_section_vmas): Likewise.
1052 (pe_as16): Likewise.
1053 (pe_as32): Likewise.
1054 * coffread.c (coff_symfile_read): Likewise.
1055 * common/agent.c (agent_look_up_symbols): Likewise.
1056 * common/filestuff.c (do_close_cleanup): Likewise.
1057 * common/format.c (free_format_pieces_cleanup): Likewise.
1058 * common/vec.c (vec_o_reserve): Likewise.
1059 * compile/compile-c-support.c (print_one_macro): Likewise.
1060 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1061 (eq_symbol_error): Likewise.
1062 (del_symbol_error): Likewise.
1063 (error_symbol_once): Likewise.
1064 (gcc_convert_symbol): Likewise.
1065 (gcc_symbol_address): Likewise.
1066 (hash_symname): Likewise.
1067 (eq_symname): Likewise.
1068 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1069 (eq_type_map_instance): Likewise.
1070 (insert_type): Likewise.
1071 (convert_type): Likewise.
1072 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1073 (setup_sections): Likewise.
1074 (link_hash_table_free): Likewise.
1075 (copy_sections): Likewise.
1076 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1077 * compile/compile.c (compile_print_value): Likewise.
1078 (do_rmdir): Likewise.
1079 (cleanup_compile_instance): Likewise.
1080 (cleanup_unlink_file): Likewise.
1081 * completer.c (free_completion_tracker): Likewise.
1082 * corelow.c (add_to_spuid_list): Likewise.
1083 * cp-namespace.c (reset_directive_searched): Likewise.
1084 * cp-support.c (reset_directive_searched): Likewise.
1085 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1086 (cris_frame_unwind_cache): Likewise.
1087 * d-lang.c (builtin_d_type): Likewise.
1088 * d-namespace.c (reset_directive_searched): Likewise.
1089 * dbxread.c (dbx_free_symfile_info): Likewise.
1090 (do_free_bincl_list_cleanup): Likewise.
1091 * disasm.c (hash_dis_line_entry): Likewise.
1092 (eq_dis_line_entry): Likewise.
1093 (dis_asm_print_address): Likewise.
1094 (fprintf_disasm): Likewise.
1095 (do_ui_file_delete): Likewise.
1096 * doublest.c (convert_floatformat_to_doublest): Likewise.
1097 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1098 (dummy_frame_prev_register): Likewise.
1099 (dummy_frame_this_id): Likewise.
1100 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1101 (cache_eq): Likewise.
1102 (cache_find): Likewise.
1103 (tailcall_frame_this_id): Likewise.
1104 (dwarf2_tailcall_prev_register_first): Likewise.
1105 (tailcall_frame_prev_register): Likewise.
1106 (tailcall_frame_dealloc_cache): Likewise.
1107 (tailcall_frame_prev_arch): Likewise.
1108 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1109 (dwarf2_frame_set_init_reg): Likewise.
1110 (dwarf2_frame_init_reg): Likewise.
1111 (dwarf2_frame_set_signal_frame_p): Likewise.
1112 (dwarf2_frame_signal_frame_p): Likewise.
1113 (dwarf2_frame_set_adjust_regnum): Likewise.
1114 (dwarf2_frame_adjust_regnum): Likewise.
1115 (clear_pointer_cleanup): Likewise.
1116 (dwarf2_frame_cache): Likewise.
1117 (find_cie): Likewise.
1118 (dwarf2_frame_find_fde): Likewise.
1119 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1120 (free_dwarf_expr_context_cleanup): Likewise.
1121 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1122 (locexpr_get_frame_base): Likewise.
1123 (loclist_find_frame_base_location): Likewise.
1124 (loclist_get_frame_base): Likewise.
1125 (dwarf_expr_dwarf_call): Likewise.
1126 (dwarf_expr_get_base_type): Likewise.
1127 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1128 (dwarf_expr_get_obj_addr): Likewise.
1129 (entry_data_value_coerce_ref): Likewise.
1130 (entry_data_value_copy_closure): Likewise.
1131 (entry_data_value_free_closure): Likewise.
1132 (get_frame_address_in_block_wrapper): Likewise.
1133 (dwarf2_evaluate_property): Likewise.
1134 (dwarf2_compile_property_to_c): Likewise.
1135 (needs_frame_read_addr_from_reg): Likewise.
1136 (needs_frame_get_reg_value): Likewise.
1137 (needs_frame_frame_base): Likewise.
1138 (needs_frame_frame_cfa): Likewise.
1139 (needs_frame_tls_address): Likewise.
1140 (needs_frame_dwarf_call): Likewise.
1141 (needs_dwarf_reg_entry_value): Likewise.
1142 (get_ax_pc): Likewise.
1143 (locexpr_read_variable): Likewise.
1144 (locexpr_read_variable_at_entry): Likewise.
1145 (locexpr_read_needs_frame): Likewise.
1146 (locexpr_describe_location): Likewise.
1147 (locexpr_tracepoint_var_ref): Likewise.
1148 (locexpr_generate_c_location): Likewise.
1149 (loclist_read_variable): Likewise.
1150 (loclist_read_variable_at_entry): Likewise.
1151 (loclist_describe_location): Likewise.
1152 (loclist_tracepoint_var_ref): Likewise.
1153 (loclist_generate_c_location): Likewise.
1154 * dwarf2read.c (line_header_hash_voidp): Likewise.
1155 (line_header_eq_voidp): Likewise.
1156 (dwarf2_has_info): Likewise.
1157 (dwarf2_get_section_info): Likewise.
1158 (locate_dwz_sections): Likewise.
1159 (hash_file_name_entry): Likewise.
1160 (eq_file_name_entry): Likewise.
1161 (delete_file_name_entry): Likewise.
1162 (dw2_setup): Likewise.
1163 (dw2_get_file_names_reader): Likewise.
1164 (dw2_find_pc_sect_compunit_symtab): Likewise.
1165 (hash_signatured_type): Likewise.
1166 (eq_signatured_type): Likewise.
1167 (add_signatured_type_cu_to_table): Likewise.
1168 (create_debug_types_hash_table): Likewise.
1169 (lookup_dwo_signatured_type): Likewise.
1170 (lookup_dwp_signatured_type): Likewise.
1171 (lookup_signatured_type): Likewise.
1172 (hash_type_unit_group): Likewise.
1173 (eq_type_unit_group): Likewise.
1174 (get_type_unit_group): Likewise.
1175 (process_psymtab_comp_unit_reader): Likewise.
1176 (sort_tu_by_abbrev_offset): Likewise.
1177 (process_skeletonless_type_unit): Likewise.
1178 (psymtabs_addrmap_cleanup): Likewise.
1179 (dwarf2_read_symtab): Likewise.
1180 (psymtab_to_symtab_1): Likewise.
1181 (die_hash): Likewise.
1182 (die_eq): Likewise.
1183 (load_full_comp_unit_reader): Likewise.
1184 (reset_die_in_process): Likewise.
1185 (free_cu_line_header): Likewise.
1186 (handle_DW_AT_stmt_list): Likewise.
1187 (hash_dwo_file): Likewise.
1188 (eq_dwo_file): Likewise.
1189 (hash_dwo_unit): Likewise.
1190 (eq_dwo_unit): Likewise.
1191 (create_dwo_cu_reader): Likewise.
1192 (create_dwo_unit_in_dwp_v1): Likewise.
1193 (create_dwo_unit_in_dwp_v2): Likewise.
1194 (lookup_dwo_unit_in_dwp): Likewise.
1195 (dwarf2_locate_dwo_sections): Likewise.
1196 (dwarf2_locate_common_dwp_sections): Likewise.
1197 (dwarf2_locate_v2_dwp_sections): Likewise.
1198 (hash_dwp_loaded_cutus): Likewise.
1199 (eq_dwp_loaded_cutus): Likewise.
1200 (lookup_dwo_cutu): Likewise.
1201 (abbrev_table_free_cleanup): Likewise.
1202 (dwarf2_free_abbrev_table): Likewise.
1203 (find_partial_die_in_comp_unit): Likewise.
1204 (free_line_header_voidp): Likewise.
1205 (follow_die_offset): Likewise.
1206 (follow_die_sig_1): Likewise.
1207 (free_heap_comp_unit): Likewise.
1208 (free_stack_comp_unit): Likewise.
1209 (dwarf2_free_objfile): Likewise.
1210 (per_cu_offset_and_type_hash): Likewise.
1211 (per_cu_offset_and_type_eq): Likewise.
1212 (get_die_type_at_offset): Likewise.
1213 (partial_die_hash): Likewise.
1214 (partial_die_eq): Likewise.
1215 (dwarf2_per_objfile_free): Likewise.
1216 (hash_strtab_entry): Likewise.
1217 (eq_strtab_entry): Likewise.
1218 (add_string): Likewise.
1219 (hash_symtab_entry): Likewise.
1220 (eq_symtab_entry): Likewise.
1221 (delete_symtab_entry): Likewise.
1222 (cleanup_mapped_symtab): Likewise.
1223 (add_indices_to_cpool): Likewise.
1224 (hash_psymtab_cu_index): Likewise.
1225 (eq_psymtab_cu_index): Likewise.
1226 (add_address_entry_worker): Likewise.
1227 (unlink_if_set): Likewise.
1228 (write_one_signatured_type): Likewise.
1229 (save_gdb_index_command): Likewise.
1230 * elfread.c (elf_symtab_read): Likewise.
1231 (elf_gnu_ifunc_cache_hash): Likewise.
1232 (elf_gnu_ifunc_cache_eq): Likewise.
1233 (elf_gnu_ifunc_record_cache): Likewise.
1234 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1235 (elf_get_probes): Likewise.
1236 (probe_key_free): Likewise.
1237 * f-lang.c (builtin_f_type): Likewise.
1238 * frame-base.c (frame_base_append_sniffer): Likewise.
1239 (frame_base_set_default): Likewise.
1240 (frame_base_find_by_frame): Likewise.
1241 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1242 (frame_unwind_append_unwinder): Likewise.
1243 (frame_unwind_find_by_frame): Likewise.
1244 * frame.c (frame_addr_hash): Likewise.
1245 (frame_addr_hash_eq): Likewise.
1246 (frame_stash_find): Likewise.
1247 (do_frame_register_read): Likewise.
1248 (unwind_to_current_frame): Likewise.
1249 (frame_cleanup_after_sniffer): Likewise.
1250 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1251 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1252 * ft32-tdep.c (ft32_frame_cache): Likewise.
1253 * gcore.c (do_bfd_delete_cleanup): Likewise.
1254 (gcore_create_callback): Likewise.
1255 * gdb_bfd.c (hash_bfd): Likewise.
1256 (eq_bfd): Likewise.
1257 (gdb_bfd_open): Likewise.
1258 (free_one_bfd_section): Likewise.
1259 (gdb_bfd_ref): Likewise.
1260 (gdb_bfd_unref): Likewise.
1261 (get_section_descriptor): Likewise.
1262 (gdb_bfd_map_section): Likewise.
1263 (gdb_bfd_crc): Likewise.
1264 (gdb_bfd_mark_parent): Likewise.
1265 (gdb_bfd_record_inclusion): Likewise.
1266 (gdb_bfd_requires_relocations): Likewise.
1267 (print_one_bfd): Likewise.
1268 * gdbtypes.c (type_pair_hash): Likewise.
1269 (type_pair_eq): Likewise.
1270 (builtin_type): Likewise.
1271 (objfile_type): Likewise.
1272 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1273 (vtable_address_point_offset): Likewise.
1274 (gnuv3_get_vtable): Likewise.
1275 (hash_value_and_voffset): Likewise.
1276 (eq_value_and_voffset): Likewise.
1277 (compare_value_and_voffset): Likewise.
1278 (compute_vtable_size): Likewise.
1279 (gnuv3_get_typeid_type): Likewise.
1280 * go-lang.c (builtin_go_type): Likewise.
1281 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1282 (bkscm_eq_block_smob): Likewise.
1283 (bkscm_objfile_block_map): Likewise.
1284 (bkscm_del_objfile_blocks): Likewise.
1285 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1286 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1287 (gdbscm_disasm_print_address): Likewise.
1288 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1289 (frscm_eq_frame_smob): Likewise.
1290 (frscm_inferior_frame_map): Likewise.
1291 (frscm_del_inferior_frames): Likewise.
1292 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1293 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1294 (ofscm_objfile_smob_from_objfile): Likewise.
1295 * guile/scm-ports.c (ioscm_write): Likewise.
1296 (ioscm_file_port_delete): Likewise.
1297 (ioscm_file_port_rewind): Likewise.
1298 (ioscm_file_port_put): Likewise.
1299 (ioscm_file_port_write): Likewise.
1300 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1301 (psscm_pspace_smob_from_pspace): Likewise.
1302 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1303 (scscm_recording_unwind_handler): Likewise.
1304 (gdbscm_with_catch): Likewise.
1305 (scscm_call_0_body): Likewise.
1306 (scscm_call_1_body): Likewise.
1307 (scscm_call_2_body): Likewise.
1308 (scscm_call_3_body): Likewise.
1309 (scscm_call_4_body): Likewise.
1310 (scscm_apply_1_body): Likewise.
1311 (scscm_eval_scheme_string): Likewise.
1312 (gdbscm_safe_eval_string): Likewise.
1313 (scscm_source_scheme_script): Likewise.
1314 (gdbscm_safe_source_script): Likewise.
1315 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1316 (gdbscm_call_scm_from_stringn): Likewise.
1317 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1318 (syscm_eq_symbol_smob): Likewise.
1319 (syscm_get_symbol_map): Likewise.
1320 (syscm_del_objfile_symbols): Likewise.
1321 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1322 (stscm_eq_symtab_smob): Likewise.
1323 (stscm_objfile_symtab_map): Likewise.
1324 (stscm_del_objfile_symtabs): Likewise.
1325 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1326 (tyscm_eq_type_smob): Likewise.
1327 (tyscm_type_map): Likewise.
1328 (tyscm_copy_type_recursive): Likewise.
1329 (save_objfile_types): Likewise.
1330 * guile/scm-utils.c (extract_arg): Likewise.
1331 * h8300-tdep.c (h8300_frame_cache): Likewise.
1332 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1333 * hppa-tdep.c (compare_unwind_entries): Likewise.
1334 (find_unwind_entry): Likewise.
1335 (hppa_frame_cache): Likewise.
1336 (hppa_stub_frame_unwind_cache): Likewise.
1337 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1338 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1339 (hppaobsd_supply_fpregset): Likewise.
1340 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1341 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1342 * i386-tdep.c (i386_frame_cache): Likewise.
1343 (i386_epilogue_frame_cache): Likewise.
1344 (i386_sigtramp_frame_cache): Likewise.
1345 (i386_supply_gregset): Likewise.
1346 (i386_collect_gregset): Likewise.
1347 (i386_gdbarch_init): Likewise.
1348 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1349 (i386obsd_trapframe_cache): Likewise.
1350 * i387-tdep.c (i387_supply_fsave): Likewise.
1351 (i387_collect_fsave): Likewise.
1352 (i387_supply_fxsave): Likewise.
1353 (i387_collect_fxsave): Likewise.
1354 (i387_supply_xsave): Likewise.
1355 (i387_collect_xsave): Likewise.
1356 * ia64-tdep.c (ia64_frame_cache): Likewise.
1357 (ia64_sigtramp_frame_cache): Likewise.
1358 * infcmd.c (attach_command_continuation): Likewise.
1359 (attach_command_continuation_free_args): Likewise.
1360 * inferior.c (restore_inferior): Likewise.
1361 (delete_thread_of_inferior): Likewise.
1362 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1363 (get_inflow_inferior_data): Likewise.
1364 (inflow_inferior_exit): Likewise.
1365 * infrun.c (displaced_step_clear_cleanup): Likewise.
1366 (restore_current_uiout_cleanup): Likewise.
1367 (release_stop_context_cleanup): Likewise.
1368 (do_restore_infcall_suspend_state_cleanup): Likewise.
1369 (do_restore_infcall_control_state_cleanup): Likewise.
1370 (restore_inferior_ptid): Likewise.
1371 * inline-frame.c (block_starting_point_at): Likewise.
1372 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1373 * jit.c (get_jit_objfile_data): Likewise.
1374 (get_jit_program_space_data): Likewise.
1375 (jit_object_close_impl): Likewise.
1376 (jit_find_objf_with_entry_addr): Likewise.
1377 (jit_breakpoint_deleted): Likewise.
1378 (jit_unwind_reg_set_impl): Likewise.
1379 (jit_unwind_reg_get_impl): Likewise.
1380 (jit_dealloc_cache): Likewise.
1381 (jit_frame_sniffer): Likewise.
1382 (jit_frame_prev_register): Likewise.
1383 (jit_prepend_unwinder): Likewise.
1384 (jit_inferior_exit_hook): Likewise.
1385 (free_objfile_data): Likewise.
1386 * jv-lang.c (jv_per_objfile_free): Likewise.
1387 (get_dynamics_objfile): Likewise.
1388 (get_java_class_symtab): Likewise.
1389 (builtin_java_type): Likewise.
1390 * language.c (language_string_char_type): Likewise.
1391 (language_bool_type): Likewise.
1392 (language_lookup_primitive_type): Likewise.
1393 (language_lookup_primitive_type_as_symbol): Likewise.
1394 * linespec.c (hash_address_entry): Likewise.
1395 (eq_address_entry): Likewise.
1396 (iterate_inline_only): Likewise.
1397 (iterate_name_matcher): Likewise.
1398 (decode_line_2_compare_items): Likewise.
1399 (collect_one_symbol): Likewise.
1400 (compare_symbols): Likewise.
1401 (compare_msymbols): Likewise.
1402 (add_symtabs_to_list): Likewise.
1403 (collect_symbols): Likewise.
1404 (compare_msyms): Likewise.
1405 (add_minsym): Likewise.
1406 (cleanup_linespec_result): Likewise.
1407 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1408 * linux-nat.c (delete_lwp_cleanup): Likewise.
1409 (count_events_callback): Likewise.
1410 (select_event_lwp_callback): Likewise.
1411 (resume_stopped_resumed_lwps): Likewise.
1412 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1413 (invalidate_linux_cache_inf): Likewise.
1414 (get_linux_inferior_data): Likewise.
1415 (linux_find_memory_regions_thunk): Likewise.
1416 (linux_make_mappings_callback): Likewise.
1417 (linux_corefile_thread_callback): Likewise.
1418 (find_mapping_size): Likewise.
1419 * linux-thread-db.c (find_new_threads_callback): Likewise.
1420 * lm32-tdep.c (lm32_frame_cache): Likewise.
1421 * m2-lang.c (builtin_m2_type): Likewise.
1422 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1423 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1424 (m32r_linux_supply_gregset): Likewise.
1425 (m32r_linux_collect_gregset): Likewise.
1426 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1427 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1428 * m68k-tdep.c (m68k_frame_cache): Likewise.
1429 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1430 (m68kbsd_supply_gregset): Likewise.
1431 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1432 * m88k-tdep.c (m88k_frame_cache): Likewise.
1433 (m88k_supply_gregset): Likewise.
1434
224c3ddb
SM
14352015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1436
1437 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1438 to allocation result assignment.
1439 * ada-exp.y (write_object_renaming): Likewise.
1440 (write_ambiguous_var): Likewise.
1441 (ada_nget_field_index): Likewise.
1442 (write_var_or_type): Likewise.
1443 * ada-lang.c (ada_decode_symbol): Likewise.
1444 (ada_value_assign): Likewise.
1445 (value_pointer): Likewise.
1446 (cache_symbol): Likewise.
1447 (add_nonlocal_symbols): Likewise.
1448 (ada_name_for_lookup): Likewise.
1449 (symbol_completion_add): Likewise.
1450 (ada_to_fixed_type_1): Likewise.
1451 (ada_get_next_arg): Likewise.
1452 (defns_collected): Likewise.
1453 * ada-lex.l (processId): Likewise.
1454 (processString): Likewise.
1455 * ada-tasks.c (read_known_tasks_array): Likewise.
1456 (read_known_tasks_list): Likewise.
1457 * ada-typeprint.c (decoded_type_name): Likewise.
1458 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1459 * amd64-tdep.c (amd64_push_arguments): Likewise.
1460 (amd64_displaced_step_copy_insn): Likewise.
1461 (amd64_classify_insn_at): Likewise.
1462 (amd64_relocate_instruction): Likewise.
1463 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1464 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1465 (initialize_current_architecture): Likewise.
1466 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1467 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1468 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1469 (arm_push_dummy_call): Likewise.
1470 (extend_buffer_earlier): Likewise.
1471 (arm_adjust_breakpoint_address): Likewise.
1472 (arm_skip_stub): Likewise.
1473 * auto-load.c (filename_is_in_pattern): Likewise.
1474 (maybe_add_script_file): Likewise.
1475 (maybe_add_script_text): Likewise.
1476 (auto_load_objfile_script_1): Likewise.
1477 * auxv.c (ld_so_xfer_auxv): Likewise.
1478 * ax-general.c (new_agent_expr): Likewise.
1479 (grow_expr): Likewise.
1480 (ax_reg_mask): Likewise.
1481 * bcache.c (bcache_full): Likewise.
1482 * breakpoint.c (program_breakpoint_here_p): Likewise.
1483 * btrace.c (parse_xml_raw): Likewise.
1484 * build-id.c (build_id_to_debug_bfd): Likewise.
1485 * buildsym.c (end_symtab_with_blockvector): Likewise.
1486 * c-exp.y (string_exp): Likewise.
1487 (qualified_name): Likewise.
1488 (write_destructor_name): Likewise.
1489 (operator_stoken): Likewise.
1490 (parse_number): Likewise.
1491 (scan_macro_expansion): Likewise.
1492 (yylex): Likewise.
1493 (c_print_token): Likewise.
1494 * c-lang.c (c_get_string): Likewise.
1495 (emit_numeric_character): Likewise.
1496 * charset.c (wchar_iterate): Likewise.
1497 * cli/cli-cmds.c (complete_command): Likewise.
1498 (make_command): Likewise.
1499 * cli/cli-dump.c (restore_section_callback): Likewise.
1500 (restore_binary_file): Likewise.
1501 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1502 * cli/cli-script.c (execute_control_command): Likewise.
1503 * cli/cli-setshow.c (do_set_command): Likewise.
1504 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1505 (read_pe_exported_syms): Likewise.
1506 * coffread.c (coff_read_struct_type): Likewise.
1507 (coff_read_enum_type): Likewise.
1508 * common/btrace-common.c (btrace_data_append): Likewise.
1509 * common/buffer.c (buffer_grow): Likewise.
1510 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1511 * common/format.c (parse_format_string): Likewise.
1512 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1513 * common/xml-utils.c (xml_escape_text): Likewise.
1514 * compile/compile-object-load.c (copy_sections): Likewise.
1515 (compile_object_load): Likewise.
1516 * compile/compile-object-run.c (compile_object_run): Likewise.
1517 * completer.c (filename_completer): Likewise.
1518 * corefile.c (read_memory_typed_address): Likewise.
1519 (write_memory_unsigned_integer): Likewise.
1520 (write_memory_signed_integer): Likewise.
1521 (complete_set_gnutarget): Likewise.
1522 * corelow.c (get_core_register_section): Likewise.
1523 * cp-name-parser.y (d_grab): Likewise.
1524 (allocate_info): Likewise.
1525 (cp_new_demangle_parse_info): Likewise.
1526 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1527 (cp_lookup_symbol_in_namespace): Likewise.
1528 (lookup_namespace_scope): Likewise.
1529 (find_symbol_in_baseclass): Likewise.
1530 (cp_lookup_nested_symbol): Likewise.
1531 (cp_lookup_transparent_type_loop): Likewise.
1532 * cp-support.c (copy_string_to_obstack): Likewise.
1533 (make_symbol_overload_list): Likewise.
1534 (make_symbol_overload_list_namespace): Likewise.
1535 (make_symbol_overload_list_adl_namespace): Likewise.
1536 (first_component_command): Likewise.
1537 * cp-valprint.c (cp_print_value): Likewise.
1538 * ctf.c (ctf_xfer_partial): Likewise.
1539 * d-exp.y (StringExp): Likewise.
1540 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1541 (lookup_module_scope): Likewise.
1542 (find_symbol_in_baseclass): Likewise.
1543 (d_lookup_nested_symbol): Likewise.
1544 * dbxread.c (find_stab_function_addr): Likewise.
1545 (read_dbx_symtab): Likewise.
1546 (dbx_end_psymtab): Likewise.
1547 (cp_set_block_scope): Likewise.
1548 * dcache.c (dcache_alloc): Likewise.
1549 * demangle.c (_initialize_demangler): Likewise.
1550 * dicos-tdep.c (dicos_load_module_p): Likewise.
1551 * dictionary.c (dict_create_hashed_expandable): Likewise.
1552 (dict_create_linear_expandable): Likewise.
1553 (expand_hashtable): Likewise.
1554 (add_symbol_linear_expandable): Likewise.
1555 * dwarf2-frame.c (add_cie): Likewise.
1556 (add_fde): Likewise.
1557 (dwarf2_build_frame_info): Likewise.
1558 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1559 (dwarf_expr_fetch_address): Likewise.
1560 (add_piece): Likewise.
1561 (execute_stack_op): Likewise.
1562 * dwarf2loc.c (chain_candidate): Likewise.
1563 (dwarf_entry_parameter_to_value): Likewise.
1564 (read_pieced_value): Likewise.
1565 (write_pieced_value): Likewise.
1566 * dwarf2read.c (dwarf2_read_section): Likewise.
1567 (add_type_unit): Likewise.
1568 (read_comp_units_from_section): Likewise.
1569 (fixup_go_packaging): Likewise.
1570 (dwarf2_compute_name): Likewise.
1571 (dwarf2_physname): Likewise.
1572 (create_dwo_unit_in_dwp_v1): Likewise.
1573 (create_dwo_unit_in_dwp_v2): Likewise.
1574 (read_func_scope): Likewise.
1575 (read_call_site_scope): Likewise.
1576 (dwarf2_attach_fields_to_type): Likewise.
1577 (process_structure_scope): Likewise.
1578 (mark_common_block_symbol_computed): Likewise.
1579 (read_common_block): Likewise.
1580 (abbrev_table_read_table): Likewise.
1581 (guess_partial_die_structure_name): Likewise.
1582 (fixup_partial_die): Likewise.
1583 (add_file_name): Likewise.
1584 (dwarf2_const_value_data): Likewise.
1585 (dwarf2_const_value_attr): Likewise.
1586 (build_error_marker_type): Likewise.
1587 (guess_full_die_structure_name): Likewise.
1588 (anonymous_struct_prefix): Likewise.
1589 (typename_concat): Likewise.
1590 (dwarf2_canonicalize_name): Likewise.
1591 (dwarf2_name): Likewise.
1592 (write_constant_as_bytes): Likewise.
1593 (dwarf2_fetch_constant_bytes): Likewise.
1594 (copy_string): Likewise.
1595 (parse_macro_definition): Likewise.
1596 * elfread.c (elf_symfile_segments): Likewise.
1597 (elf_rel_plt_read): Likewise.
1598 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1599 (elf_gnu_ifunc_resolve_by_got): Likewise.
1600 (elf_read_minimal_symbols): Likewise.
1601 (elf_gnu_ifunc_record_cache): Likewise.
1602 * event-top.c (top_level_prompt): Likewise.
1603 (command_line_handler): Likewise.
1604 * exec.c (resize_section_table): Likewise.
1605 * expprint.c (print_subexp_standard): Likewise.
1606 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1607 * findcmd.c (parse_find_args): Likewise.
1608 * findvar.c (address_from_register): Likewise.
1609 * frame.c (get_prev_frame_always): Likewise.
1610 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1611 (get_section_descriptor): Likewise.
1612 * gdb_obstack.c (obconcat): Likewise.
1613 (obstack_strdup): Likewise.
1614 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1615 (create_set_type): Likewise.
1616 (lookup_unsigned_typename): Likewise.
1617 (lookup_signed_typename): Likewise.
1618 (resolve_dynamic_union): Likewise.
1619 (resolve_dynamic_struct): Likewise.
1620 (add_dyn_prop): Likewise.
1621 (copy_dynamic_prop_list): Likewise.
1622 (arch_flags_type): Likewise.
1623 (append_composite_type_field_raw): Likewise.
1624 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1625 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1626 * go-exp.y (string_exp): Likewise.
1627 * go-lang.c (go_demangle): Likewise.
1628 * guile/guile.c (compute_scheme_string): Likewise.
1629 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1630 (gdbscm_canonicalize_command_name): Likewise.
1631 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1632 (ioscm_init_memory_port): Likewise.
1633 (ioscm_reinit_memory_port): Likewise.
1634 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1635 (gdbscm_gc_dup_argv): Likewise.
1636 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1637 * hppa-tdep.c (internalize_unwinds): Likewise.
1638 (read_unwind_info): Likewise.
1639 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1640 (windows_core_xfer_shared_libraries): Likewise.
1641 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1642 (i386_stap_parse_special_token_triplet): Likewise.
1643 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1644 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1645 * inf-child.c (inf_child_fileio_readlink): Likewise.
1646 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1647 (inf_ptrace_store_register): Likewise.
1648 * infrun.c (follow_exec): Likewise.
1649 (displaced_step_prepare_throw): Likewise.
1650 (save_stop_context): Likewise.
1651 (save_infcall_suspend_state): Likewise.
1652 * jit.c (jit_read_descriptor): Likewise.
1653 (jit_read_code_entry): Likewise.
1654 (jit_symtab_line_mapping_add_impl): Likewise.
1655 (finalize_symtab): Likewise.
1656 (jit_unwind_reg_get_impl): Likewise.
1657 * jv-exp.y (QualifiedName): Likewise.
1658 * jv-lang.c (get_java_utf8_name): Likewise.
1659 (type_from_class): Likewise.
1660 (java_demangle_type_signature): Likewise.
1661 (java_class_name_from_physname): Likewise.
1662 * jv-typeprint.c (java_type_print_base): Likewise.
1663 * jv-valprint.c (java_value_print): Likewise.
1664 * language.c (add_language): Likewise.
1665 * linespec.c (add_sal_to_sals_basic): Likewise.
1666 (add_sal_to_sals): Likewise.
1667 (decode_objc): Likewise.
1668 (find_linespec_symbols): Likewise.
1669 * linux-fork.c (fork_save_infrun_state): Likewise.
1670 * linux-nat.c (linux_nat_detach): Likewise.
1671 (linux_nat_fileio_readlink): Likewise.
1672 * linux-record.c (record_linux_sockaddr): Likewise.
1673 (record_linux_msghdr): Likewise.
1674 (Do): Likewise.
1675 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1676 (linux_collect_regset_section_cb): Likewise.
1677 (linux_get_siginfo_data): Likewise.
1678 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1679 (try_thread_db_load_from_dir): Likewise.
1680 (thread_db_load_search): Likewise.
1681 (info_auto_load_libthread_db): Likewise.
1682 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1683 (m32c_m16c_pointer_to_address): Likewise.
1684 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1685 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1686 * machoread.c (macho_check_dsym): Likewise.
1687 * macroexp.c (resize_buffer): Likewise.
1688 (gather_arguments): Likewise.
1689 (maybe_expand): Likewise.
1690 * macrotab.c (new_macro_key): Likewise.
1691 (new_source_file): Likewise.
1692 (new_macro_definition): Likewise.
1693 * mdebugread.c (parse_symbol): Likewise.
1694 (parse_type): Likewise.
1695 (parse_partial_symbols): Likewise.
1696 (psymtab_to_symtab_1): Likewise.
1697 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1698 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1699 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1700 (mi_cmd_data_read_memory_bytes): Likewise.
1701 (mi_cmd_data_write_memory_bytes): Likewise.
1702 (mi_cmd_trace_frame_collected): Likewise.
1703 * mi/mi-parse.c (mi_parse_argv): Likewise.
1704 (mi_parse): Likewise.
1705 * minidebug.c (lzma_open): Likewise.
1706 (lzma_pread): Likewise.
1707 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1708 (mips_print_fp_register): Likewise.
1709 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1710 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1711 * mt-tdep.c (mt_register_name): Likewise.
1712 (mt_registers_info): Likewise.
1713 (mt_push_dummy_call): Likewise.
1714 * namespace.c (add_using_directive): Likewise.
1715 * nat/linux-btrace.c (perf_event_read): Likewise.
1716 (linux_enable_bts): Likewise.
1717 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1718 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1719 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1720 (nto_parse_redirection): Likewise.
1721 * objc-lang.c (objc_demangle): Likewise.
1722 (find_methods): Likewise.
1723 * objfiles.c (get_objfile_bfd_data): Likewise.
1724 (set_objfile_main_name): Likewise.
1725 (allocate_objfile): Likewise.
1726 (objfile_relocate): Likewise.
1727 (update_section_map): Likewise.
1728 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1729 * p-exp.y (exp): Likewise.
1730 (yylex): Likewise.
1731 * p-valprint.c (pascal_object_print_value): Likewise.
1732 * parse.c (initialize_expout): Likewise.
1733 (mark_completion_tag): Likewise.
1734 (copy_name): Likewise.
1735 (parse_float): Likewise.
1736 (type_stack_reserve): Likewise.
1737 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1738 (ppu2spu_prev_register): Likewise.
1739 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1740 * printcmd.c (printf_wide_c_string): Likewise.
1741 (printf_pointer): Likewise.
1742 * probe.c (parse_probes): Likewise.
1743 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1744 (cmdpy_init): Likewise.
1745 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1746 * python/py-symtab.c (set_sal): Likewise.
1747 * python/py-unwind.c (pyuw_sniffer): Likewise.
1748 * python/python.c (python_interactive_command): Likewise.
1749 (compute_python_string): Likewise.
1750 * ravenscar-thread.c (get_running_thread_id): Likewise.
1751 * record-full.c (record_full_exec_insn): Likewise.
1752 (record_full_core_open_1): Likewise.
1753 * regcache.c (regcache_raw_read_signed): Likewise.
1754 (regcache_raw_read_unsigned): Likewise.
1755 (regcache_cooked_read_signed): Likewise.
1756 (regcache_cooked_read_unsigned): Likewise.
1757 * remote-fileio.c (remote_fileio_func_open): Likewise.
1758 (remote_fileio_func_rename): Likewise.
1759 (remote_fileio_func_unlink): Likewise.
1760 (remote_fileio_func_stat): Likewise.
1761 (remote_fileio_func_system): Likewise.
1762 * remote-mips.c (mips_xfer_memory): Likewise.
1763 (mips_load_srec): Likewise.
1764 (pmon_end_download): Likewise.
1765 * remote.c (new_remote_state): Likewise.
1766 (map_regcache_remote_table): Likewise.
1767 (remote_register_number_and_offset): Likewise.
1768 (init_remote_state): Likewise.
1769 (get_memory_packet_size): Likewise.
1770 (remote_pass_signals): Likewise.
1771 (remote_program_signals): Likewise.
1772 (remote_start_remote): Likewise.
1773 (remote_check_symbols): Likewise.
1774 (remote_query_supported): Likewise.
1775 (extended_remote_attach): Likewise.
1776 (process_g_packet): Likewise.
1777 (store_registers_using_G): Likewise.
1778 (putpkt_binary): Likewise.
1779 (read_frame): Likewise.
1780 (compare_sections_command): Likewise.
1781 (remote_hostio_pread): Likewise.
1782 (remote_hostio_readlink): Likewise.
1783 (remote_file_put): Likewise.
1784 (remote_file_get): Likewise.
1785 (remote_pid_to_exec_file): Likewise.
1786 (_initialize_remote): Likewise.
1787 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1788 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1789 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1790 (bfd_uses_spe_extensions): Likewise.
1791 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1792 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1793 * solib-dsbt.c (decode_loadmap): Likewise.
1794 (fetch_loadmap): Likewise.
1795 (scan_dyntag): Likewise.
1796 (enable_break): Likewise.
1797 (dsbt_relocate_main_executable): Likewise.
1798 * solib-frv.c (fetch_loadmap): Likewise.
1799 (enable_break2): Likewise.
1800 (frv_relocate_main_executable): Likewise.
1801 * solib-spu.c (spu_relocate_main_executable): Likewise.
1802 (spu_bfd_open): Likewise.
1803 * solib-svr4.c (lm_info_read): Likewise.
1804 (read_program_header): Likewise.
1805 (find_program_interpreter): Likewise.
1806 (scan_dyntag): Likewise.
1807 (elf_locate_base): Likewise.
1808 (open_symbol_file_object): Likewise.
1809 (read_program_headers_from_bfd): Likewise.
1810 (svr4_relocate_main_executable): Likewise.
1811 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1812 * solib.c (solib_find_1): Likewise.
1813 (exec_file_find): Likewise.
1814 (solib_find): Likewise.
1815 * source.c (openp): Likewise.
1816 (print_source_lines_base): Likewise.
1817 (forward_search_command): Likewise.
1818 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1819 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1820 (spu_get_overlay_table): Likewise.
1821 * stabsread.c (patch_block_stabs): Likewise.
1822 (define_symbol): Likewise.
1823 (again:): Likewise.
1824 (read_member_functions): Likewise.
1825 (read_one_struct_field): Likewise.
1826 (read_enum_type): Likewise.
1827 (common_block_start): Likewise.
1828 * stack.c (read_frame_arg): Likewise.
1829 (backtrace_command): Likewise.
1830 * stap-probe.c (stap_parse_register_operand): Likewise.
1831 * symfile.c (syms_from_objfile_1): Likewise.
1832 (find_separate_debug_file): Likewise.
1833 (load_command): Likewise.
1834 (load_progress): Likewise.
1835 (load_section_callback): Likewise.
1836 (reread_symbols): Likewise.
1837 (add_filename_language): Likewise.
1838 (allocate_compunit_symtab): Likewise.
1839 (read_target_long_array): Likewise.
1840 (simple_read_overlay_table): Likewise.
1841 * symtab.c (symbol_set_names): Likewise.
1842 (resize_symbol_cache): Likewise.
1843 (rbreak_command): Likewise.
1844 (completion_list_add_name): Likewise.
1845 (completion_list_objc_symbol): Likewise.
1846 (add_filename_to_list): Likewise.
1847 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1848 * target-memory.c (target_write_memory_blocks): Likewise.
1849 * target.c (target_read_string): Likewise.
1850 (read_whatever_is_readable): Likewise.
1851 (target_read_alloc_1): Likewise.
1852 (simple_search_memory): Likewise.
1853 (target_fileio_read_alloc_1): Likewise.
1854 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1855 * top.c (command_line_input): Likewise.
1856 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1857 * tracefile.c (tracefile_fetch_registers): Likewise.
1858 * tracepoint.c (add_memrange): Likewise.
1859 (init_collection_list): Likewise.
1860 (add_aexpr): Likewise.
1861 (trace_dump_actions): Likewise.
1862 (parse_trace_status): Likewise.
1863 (parse_tracepoint_definition): Likewise.
1864 (parse_tsv_definition): Likewise.
1865 (parse_static_tracepoint_marker_definition): Likewise.
1866 * tui/tui-file.c (tui_sfileopen): Likewise.
1867 (tui_file_adjust_strbuf): Likewise.
1868 * tui/tui-io.c (tui_expand_tabs): Likewise.
1869 * tui/tui-source.c (tui_set_source_content): Likewise.
1870 * typeprint.c (find_global_typedef): Likewise.
1871 * ui-file.c (do_ui_file_xstrdup): Likewise.
1872 (ui_file_obsavestring): Likewise.
1873 (mem_file_write): Likewise.
1874 * utils.c (make_hex_string): Likewise.
1875 (get_regcomp_error): Likewise.
1876 (puts_filtered_tabular): Likewise.
1877 (gdb_realpath_keepfile): Likewise.
1878 (ldirname): Likewise.
1879 (gdb_bfd_errmsg): Likewise.
1880 (substitute_path_component): Likewise.
1881 * valops.c (search_struct_method): Likewise.
1882 (find_oload_champ_namespace_loop): Likewise.
1883 * valprint.c (print_decimal_chars): Likewise.
1884 (read_string): Likewise.
1885 (generic_emit_char): Likewise.
1886 * varobj.c (varobj_delete): Likewise.
1887 (varobj_value_get_print_value): Likewise.
1888 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1889 * windows-tdep.c (display_one_tib): Likewise.
1890 * xcoffread.c (read_xcoff_symtab): Likewise.
1891 (process_xcoff_symbol): Likewise.
1892 (swap_sym): Likewise.
1893 (scan_xcoff_symtab): Likewise.
1894 (xcoff_initial_scan): Likewise.
1895 * xml-support.c (gdb_xml_end_element): Likewise.
1896 (xml_process_xincludes): Likewise.
1897 (xml_fetch_content_from_file): Likewise.
1898 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1899 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1900
623fb775 19012015-09-23 James Bowman <james.bowman@ftdichip.com>
1902
1903 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1904 instead of builtin_func_ptr.
1905 (ft32_pointer_to_address): New function.
1906 (ft32_address_class_type_flags): New function.
1907 (ft32_address_class_type_flags_to_name): New function.
1908 (ft32_address_class_name_to_type_flags): New function.
1909 (ft32_gdbarch_init): Set tdep->pc_type. Call
1910 set_gdbarch_pointer_to_address,
1911 set_gdbarch_address_class_type_flags
1912 set_gdbarch_address_class_name_to_type_flags,
1913 and set_gdbarch_address_class_type_flags_to_name.
1914 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1915
e6c2c623
PMR
19162015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1917
1918 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1919 value is a reference, actually dereference it in order to get
1920 the underlying value.
1921
bc1f8cda
SM
19222015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1923
1924 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1925
acaa662f
SM
19262015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1929 * linespec.c (linespec_lexer_lex_string): Same.
1930
4d9d419e
PL
19312015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1932
1933 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1934
6ec5f4be
PL
19352015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1936
1937 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1938 variable. Call aarch64_decode_adr instead of
1939 aarch64_decode_adrp.
1940 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1941 (aarch64_decode_adr): New function declaration.
1942 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1943 (aarch64_decode_adr): New function, factored out from
1944 aarch64_decode_adrp to decode both adr and adrp instructions.
1945
787749ea
PL
19462015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1947
1948 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1949 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1950 (aarch64-insn.o): New rule.
1951 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1952 (aarch64*-*-linux*): Likewise.
1953 * arch/aarch64-insn.c: New file.
1954 * arch/aarch64-insn.h: New file.
1955 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1956 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1957 arch/aarch64-insn.h.
1958 (decode_add_sub_imm): Rename to ...
1959 (aarch64_decode_add_sub_imm): ... this.
1960 (decode_adrp): Rename to ...
1961 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1962 Declare in arch/aarch64-insn.h.
1963 (decode_b): Rename to ...
1964 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1965 Declare in arch/aarch64-insn.h.
1966 (decode_bcond): Rename to ...
1967 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1968 Declare in arch/aarch64-insn.h.
1969 (decode_br): Rename to ...
1970 (aarch64_decode_br): ... this.
1971 (decode_cb): Rename to ...
1972 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1973 Declare in arch/aarch64-insn.h.
1974 (decode_eret): Rename to ...
1975 (aarch64_decode_eret): ... this.
1976 (decode_movz): Rename to ...
1977 (aarch64_decode_movz): ... this.
1978 (decode_orr_shifted_register_x): Rename to ...
1979 (aarch64_decode_orr_shifted_register_x): ... this.
1980 (decode_ret): Rename to ...
1981 (aarch64_decode_ret): ... this.
1982 (decode_stp_offset): Rename to ...
1983 (aarch64_decode_stp_offset): ... this.
1984 (decode_stp_offset_wb): Rename to ...
1985 (aarch64_decode_stp_offset_wb): ... this.
1986 (decode_stur): Rename to ...
1987 (aarch64_decode_stur): ... this.
1988 (decode_tb): Rename to ...
1989 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1990 Declare in arch/aarch64-insn.h.
1991 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1992
183dc7ec
DE
19932015-09-20 Doug Evans <xdje42@gmail.com>
1994
1995 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1996
2ee7123e
DE
19972015-09-20 Doug Evans <xdje42@gmail.com>
1998
1999 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2000 variable name that collides with a parameter.
2001
7d1c9c9b
JB
20022015-09-20 Joel Brobecker <brobecker@adacore.com>
2003
2004 * dwarf2loc.c (locexpr_get_frame_base): Renames
2005 block_op_get_frame_base.
2006 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2007 block_op_get_frame_base by reference to locexpr_get_frame_base.
2008 (loclist_get_frame_base): New function, near identical copy of
2009 locexpr_get_frame_base.
2010 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2011 block_op_get_frame_base by reference to loclist_get_frame_base.
2012
7dc7c195
DE
20132015-09-19 Doug Evans <xdje42@gmail.com>
2014
2015 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2016 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2017
be550b6e
DE
20182015-09-18 Doug Evans <xdje42@gmail.com>
2019
2020 * linux-thread-db.c (record_thread): Return the created thread.
2021 (thread_from_lwp): Likewise.
2022 (thread_db_get_thread_local_address): Update.
2023
615b3f62
DE
20242015-09-18 Doug Evans <xdje42@gmail.com>
2025
2026 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2027 move only member demangled_name up. All uses updated.
2028
015d2e7e
DE
20292015-09-18 Doug Evans <xdje42@gmail.com>
2030
2031 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2032 kind of minimal symbol in the error message.
2033 * objfiles.c (objfile_flavour_name): New function.
2034 * objfiles.h (objfile_flavour_name): Declare.
2035
a0cc84cd
YQ
20362015-09-18 Yao Qi <yao.qi@linaro.org>
2037
2038 * nat/aarch64-linux.c: Include elf/common.h,
2039 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2040 (aarch64_ps_get_thread_area): New function.
2041 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2042 (aarch64_ps_get_thread_area): Declare.
2043 * aarch64-linux-nat.c (ps_get_thread_area): Call
2044 aarch64_ps_get_thread_area.
2045
d2939ba2
MM
20462015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2047
2048 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2049
f2665db5
MM
20502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2051
2052 * NEWS: Announce new scheduler-locking mode.
2053 * infrun.c (schedlock_replay): New.
2054 (scheduler_enums): Add schedlock_replay.
2055 (scheduler_mode): Change default to schedlock_replay.
2056 (user_visible_resume_ptid): Handle schedlock_replay.
2057 (clear_proceed_status_thread): Stop replaying if resumed thread is
2058 not replaying.
2059 (schedlock_applies): Handle schedlock_replay.
2060 (_initialize_infrun): Document new scheduler-locking mode.
2061 * record-btrace.c (record_btrace_resume): Remove code to stop other
2062 threads when not replaying the resumed thread.
2063
7ff27e9b
MM
20642015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2065
2066 * record-btrace.c ((record_btrace_will_replay): New.
2067 (init_record_btrace_ops): Initialize to_record_will_replay.
2068 * record-full.c ((record_full_will_replay): New.
2069 (init_record_full_ops): Initialize to_record_will_replay.
2070 * target-delegates.c: Regenerated.
2071 * target.c (target_record_will_replay): New.
2072 * target.h (struct target_ops) <to_record_will_replay>: New.
2073 (target_record_will_replay): New.
2074
797094dd
MM
20752015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2076
2077 * record-btrace.c (record_btrace_resume): Call
2078 target_record_stop_replaying.
2079 (record_btrace_stop_replaying_all): New.
2080 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2081 * record-full.c (record_full_stop_replaying): New.
2082 (init_record_full_ops ): Initialize to_record_stop_replaying.
2083 * target-delegates.c: Regenerated.
2084 * target.c (target_record_stop_replaying): New.
2085 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2086 (target_record_stop_replaying): New.
2087
4d10e986
MM
20882015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2089
2090 * record-btrace.c (record_btrace_xfer_partial)
2091 (record_btrace_store_registers, record_btrace_prepare_to_store):
2092 Call record_btrace_is_replaying with inferior_ptid instead of
2093 minus_one_ptid.
2094 (record_btrace_store_registers): Change error message.
2095
a52eab48
MM
20962015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2097
2098 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2099 Update users to pass minus_one_ptid.
2100 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2101 * record.c (cmd_record_delete): Pass inferior_ptid to
2102 target_record_is_replaying.
2103 * target-delegates.c: Regenerated.
2104 * target.c (target_record_is_replaying): Add ptid argument.
2105 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2106 argument.
2107 (target_record_is_replaying): Add ptid argument.
2108
cbb55fa7
MM
21092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2110
2111 * record-btrace.c (record_btrace_open): Remove non_stop check.
2112 * NEWS: Announce that record btrace supports non-stop mode.
2113
d1988021
MM
21142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2115
2116 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2117 in the TARKET_WAITKIND_NO_HISTORY case.
2118
a6b5be76
MM
21192015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2120
2121 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2122 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2123
ec71cc2f
MM
21242015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2125
2126 * record-btrace.c (get_thread_current_frame): New.
2127 (record_btrace_start_replaying): Call get_thread_current_frame.
2128
0ca912df
MM
21292015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2130
2131 * record-btrace.c (record_btrace_resume_thread): A move request
2132 overwrites a previous move request.
2133 (record_btrace_find_resume_thread): Removed.
2134 (record_btrace_resume): Resume all requested threads.
2135
e3cfc1c7
MM
21362015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2137
2138 * record-btrace.c: Include vec.h.
2139 (record_btrace_find_thread_to_move): Removed.
2140 (btrace_step_no_resumed, btrace_step_again)
2141 (record_btrace_stop_replaying_at_end): New.
2142 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2143 (record_btrace_single_step_forward): Remove calls to
2144 record_btrace_stop_replaying.
2145 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2146 BTHR_RCONT. Keep threads at the end of their history moving.
2147 (record_btrace_wait): Call record_btrace_step_thread for all threads
2148 until one reports an event. Call record_btrace_stop_replaying_at_end
2149 for the eventing thread.
2150
cf8f8f0c
MM
21512015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2152
2153 * record-btrace.c (record_btrace_single_step_forward): Return
2154 NO_HISTORY if a step brings us to the end of the execution history.
2155
011c71b6
MM
21562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2157
2158 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2159 to ...
2160 (record_btrace_single_step_forward): ... here and
2161 (record_btrace_single_step_backward): ... here.
2162
d825d248
MM
21632015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2164
2165 * record-btrace.c (btrace_step_spurious)
2166 (record_btrace_single_step_forward)
2167 (record_btrace_single_step_backward): New.
2168 (record_btrace_step_thread): Call record_btrace_single_step_forward
2169 and record_btrace_single_step_backward.
2170
3c615f99
MM
21712015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2172
2173 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2174 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2175
987e68b1
MM
21762015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2177
2178 * record-btrace.c (btrace_thread_flag_to_str)
2179 (record_btrace_cancel_resume): New.
2180 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2181 (record_btrace_resume): Print execution direction.
2182 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2183 (record_btrace_wait): Call record_btrace_cancel_resume.
2184
6e4879f0
MM
21852015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2186
2187 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2188 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2189 (record_btrace_find_thread_to_move): Also accept threads that have
2190 BTHR_STOP set.
2191 (btrace_step_stopped_on_request, record_btrace_stop): New.
2192 (record_btrace_step_thread): Support BTHR_STOP.
2193 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2194 (init_record_btrace_ops): Initialize to_stop.
2195
5953356c
MM
21962015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2197
2198 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2199 target_is_non_stop_p ().
2200
bfca584f
PMR
22012015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2202
2203 * ada-typeprint.c (print_array_type): Do not describe arrays as
2204 packed when they embed dynamic elements.
2205
5382cfab
PW
22062015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2207
2208 * symtab.h (address_class): Document that TLS variables
2209 are handled by LOC_UNRESOLVED.
2210 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2211 * printcmd.c (address_info): Don't relocate TLS variables.
2212
b277c936
PL
22132015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2214
2215 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2216 (decode_adrp): Likewise.
2217 (decode_b): Likewise.
2218 (decode_bcond): Likewise.
2219 (decode_br): Likewise.
2220 (decode_cb): Likewise.
2221 (decode_eret): Likewise.
2222 (decode_movz): Likewise.
2223 (decode_orr_shifted_register_x): Likewise.
2224 (decode_ret): Likewise.
2225 (decode_stp_offset): Likewise.
2226 (decode_stp_offset_wb): Likewise.
2227 (decode_stur): Likewise.
2228 (decode_tb): Likewise.
2229 (aarch64_analyze_prologue): Likewise.
2230 (pass_in_x): Likewise.
2231 (pass_in_v): Likewise.
2232 (pass_on_stack): Likewise.
2233 (aarch64_push_dummy_call): Likewise.
2234 (aarch64_extract_return_value): Likewise.
2235 (aarch64_store_return_value): Likewise.
2236 (aarch64_return_value): Likewise.
2237 (aarch64_record_asimd_load_store): Likewise.
2238 (aarch64_record_load_store): Likewise.
2239 (aarch64_record_data_proc_simd_fp): Likewise.
2240
141c5cc4
JK
22412015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2244 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2245 (ppc64_skip_trampoline_code_1): ... here.
2246 (ppc64_skip_trampoline_code): New wrapper function.
2247 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2248
750ce8d1
YQ
22492015-09-15 Yao Qi <yao.qi@linaro.org>
2250
2251 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2252 function.
2253 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2254 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2255 if target_can_do_single_step returns 1.
2256 * remote.c (struct vCont_action_support) <s, S>: New fields.
2257 (PACKET_vContSupported): New enum.
2258 (remote_protocol_features): New element for vContSupported.
2259 (remote_query_supported): Append "vContSupported+".
2260 (remote_vcont_probe): Remove support_s and support_S, use
2261 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2262 vCont packet if c and C actions are not supported.
2263 (remote_can_do_single_step): New function.
2264 (init_remote_ops): Install it to to_can_do_single_step.
2265 (_initialize_remote): Call add_packet_config_cmd.
2266 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2267 (target_can_do_single_step): New macro.
2268 * target-delegates.c: Re-generated.
2269
ade90bde
YQ
22702015-09-15 Yao Qi <yao.qi@linaro.org>
2271
2272 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2273 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2274 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2275 New function.
2276 (aarch64_siginfo_from_compat_siginfo): New function.
2277 * nat/aarch64-linux.h: Include signal.h.
2278 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2279 (compat_timer_t, compat_clock_t): Likewise.
2280 (struct compat_timeval): New.
2281 (union compat_sigval): New.
2282 (struct compat_siginfo): New.
2283 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2284 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2285 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2286 (cpt_si_band, cpt_si_fd): Likewise.
2287
4c2f2a79
PA
22882015-09-14 Pedro Alves <palves@redhat.com>
2289
2290 * infrun.c (current_stop_id): New global.
2291 (get_stop_id, new_stop_id): New functions.
2292 (fetch_inferior_event): Handle normal_stop proceeding the target.
2293 (struct stop_context): New.
2294 (save_stop_context, release_stop_context_cleanup)
2295 (stop_context_changed): New functions.
2296 (normal_stop): Return true if the hook-stop changes the stop
2297 context.
2298 * infrun.h (get_stop_id): Declare.
2299 (normal_stop): Now returns int. Add documentation.
2300
919e6dbe
PMR
23012015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2302
2303 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2304 comment. Handle packed arrays.
2305
b027a8fa
PA
23062015-09-14 Pedro Alves <palves@redhat.com>
2307
2308 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2309 mention of maint set/show target-non-stop.
2310
b459a59b
DB
23112015-09-11 Don Breazeal <donb@codesourcery.com>
2312
2313 * NEWS: Announce new remote packets for the exec-events
2314 feature and the exec-events feature and associated commands.
2315
d46addbb
DB
23162015-09-11 Don Breazeal <donb@codesourcery.com>
2317
2318 * remote.c (remote_exec_event_p): New function.
2319 (remote_insert_exec_catchpoint): New function.
2320 (remote_remove_exec_catchpoint): New function.
2321 (init_extended_remote_ops): Initialize extended_remote_ops
2322 members to_insert_exec_catchpoint and
2323 to_remove_exec_catchpoint.
2324
94585166
DB
23252015-09-11 Don Breazeal <donb@codesourcery.com>
2326 Luis Machado <lgustavo@codesourcery.com>
2327
2328 * infrun.c (follow_exec): Use process-style ptid for
2329 exec message. Call add_inferior_with_spaces and
2330 target_follow_exec.
2331 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2332 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2333 * remote.c (remote_pspace_data): New static variable.
2334 (remote_pspace_data_cleanup): New function.
2335 (get_remote_exec_file): New function.
2336 (set_remote_exec_file_1): New function.
2337 (set_remote_exec_file): New function.
2338 (show_remote_exec_file): New function.
2339 (remote_exec_file): Delete static variable.
2340 (anonymous enum) <PACKET_exec_event_feature>: New
2341 enumeration constant.
2342 (remote_protocol_features): Add entry for exec-events feature.
2343 (remote_query_supported): Add client side of qSupported query
2344 for exec-events feature.
2345 (remote_follow_exec): New function.
2346 (remote_parse_stop_reply): Handle 'exec' stop reason.
2347 (extended_remote_run, extended_remote_create_inferior): Call
2348 get_remote_exec_file and set_remote_exec_file_1.
2349 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2350 member.
2351 (_initialize_remote): Call
2352 register_program_space_data_with_cleanup. Call
2353 add_packet_config_cmd for remote exec-events feature.
2354 Modify call to add_setshow_string_noescape_cmd for exec-file
2355 to use new functions set_remote_exec_file and
2356 show_remote_exec_file.
2357 * target-debug.h, target-delegates.c: Regenerated.
2358 * target.c (target_follow_exec): New function.
2359 * target.h (struct target_ops) <to_follow_exec>: New member.
2360 (target_follow_exec): Declare new function.
2361
669e74e8
PL
23622015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2363
2364 * aarch64-tdep.c (decode_cb): Move up comment describing the
2365 encoding.
2366 (decode_tb): Fix a typo in comment above the function. Move up
2367 comment describing the encoding.
2368
4d50586d
PL
23692015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2370
2371 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2372
6dcaef99
MMN
23732015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2374
2375 PR gdb/18947
2376 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2377 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2378
5da1a4d3
SM
23792015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2380
2381 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2382 operations.
2383
108d56a4
SM
23842015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2385
2386 * ada-lang.c (ada_search_struct_field): Constify parameters
2387 and/or variables..
2388 (xget_renaming_scope): Likewise.
2389 (ada_is_redundant_range_encoding): Likewise.
2390 (scan_discrim_bound): Likewise.
2391 (to_fixed_range_type): Likewise.
2392
dd2e65cc
YQ
23932015-09-10 Yao Qi <yao.qi@linaro.org>
2394
2395 * breakpoint.c (download_tracepoint_locations): New local
2396 can_download_tracepoint. Check the result of
2397 target_can_download_tracepoint and save it in
2398 can_download_tracepoint if there are tracepoints to download.
2399 * linux-nat.h (enum tribool): Move it to ...
2400 * common/common-types.h: ... here.
2401
cfe75703
PA
24022015-09-09 Pedro Alves <palves@redhat.com>
2403
2404 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2405 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2406
a85a3079
PA
24072015-09-09 Pedro Alves <palves@redhat.com>
2408
2409 * continuations.c (add_continuation, restore_thread_cleanup)
2410 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2411 (do_all_continuations_thread, do_all_continuations)
2412 (discard_all_continuations_thread_callback)
2413 (discard_all_continuations_thread, discard_all_continuations)
2414 (add_intermediate_continuation)
2415 (do_all_intermediate_continuations_thread_callback)
2416 (do_all_intermediate_continuations_thread)
2417 (do_all_intermediate_continuations)
2418 (discard_all_intermediate_continuations_thread_callback)
2419 (discard_all_intermediate_continuations_thread)
2420 (discard_all_intermediate_continuations): Delete.
2421 * continuations.h (add_continuation, do_all_continuations)
2422 (do_all_continuations_thread, discard_all_continuations)
2423 (discard_all_continuations_thread, add_intermediate_continuation)
2424 (do_all_intermediate_continuations)
2425 (do_all_intermediate_continuations_thread)
2426 (discard_all_intermediate_continuations)
2427 (discard_all_intermediate_continuations_thread): Delete
2428 declarations.
2429 * event-top.c (stdin_event_handler): Delete references to
2430 continuations.
2431 * gdbthread.h (struct thread_info): Delete continuations and
2432 intermediate_continuations fields.
2433 * inf-loop.c (inferior_event_handler): Remove references to
2434 continuations.
2435 * infrun.c (infrun_thread_stop_requested_callback): Remove
2436 references to continuations.
2437 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2438 * thread.c: Don't include "continuations.h".
2439 (clear_thread_inferior_resources): Remove references to
2440 continuations.
2441
0700e23e
PA
24422015-09-09 Pedro Alves <palves@redhat.com>
2443
2444 * infcall.c (struct dummy_frame_context_saver): Delete.
2445 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2446 (dummy_frame_context_saver_drop)
2447 (dummy_frame_context_saver_cleanup)
2448 (dummy_frame_context_saver_get_regs)
2449 (dummy_frame_context_saver_setup): Delete.
2450 * infcall.h (dummy_frame_context_saver_drop)
2451 (dummy_frame_context_saver_cleanup)
2452 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2453 Delete.
2454 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2455 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2456 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2457
cfc31633
PA
24582015-09-09 Pedro Alves <palves@redhat.com>
2459
2460 * breakpoint.c: Include "thread-fsm.h".
2461 (struct until_break_command_continuation_args): Delete.
2462 (struct until_break_fsm): New.
2463 (until_break_fsm_ops): New global.
2464 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2465 (until_break_command_continuation): Delete.
2466 (until_break_fsm_clean_up): New function.
2467 (until_break_fsm_async_reply_reason): New function.
2468 (until_break_command): Adjust to create an until_break_fsm instead
2469 of a continuation.
2470 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2471 here.
2472 * infcmd.c (struct until_next_fsm): New.
2473 (until_next_fsm_ops): New global.
2474 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2475 (until_next_continuation): Delete.
2476 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2477 functions.
2478 (until_next_command): Adjust to create a new until_next_fsm
2479 instead of a continuation.
2480
388a7084
PA
24812015-09-09 Pedro Alves <palves@redhat.com>
2482
2483 * infcall.c: Include thread_fsm.h.
2484 (struct call_return_meta_info): New.
2485 (get_call_return_value): New function, factored out from
2486 call_function_by_hand_dummy.
2487 (struct call_thread_fsm): New.
2488 (call_thread_fsm_ops): New global.
2489 (new_call_thread_fsm, call_thread_fsm_should_stop)
2490 (call_thread_fsm_should_notify_stop): New functions.
2491 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2492 the thread.
2493 (call_function_by_hand_dummy): Create a new call_thread_fsm
2494 instance, associate it with the thread, and wait for the FSM to
2495 finish. If finished successfully, fetch the function's result
2496 value out of the FSM.
2497 * infrun.c (fetch_inferior_event): If the FSM says the stop
2498 shouldn't be notified, don't call normal_stop.
2499 (maybe_remove_breakpoints): New function, factored out from ...
2500 (normal_stop): ... here. Simplify.
2501 * infrun.h (maybe_remove_breakpoints): Declare.
2502 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2503 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2504 (thread_fsm_should_notify_stop): Declare.
2505
243a9253
PA
25062015-09-09 Pedro Alves <palves@redhat.com>
2507
2508 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2509 * breakpoint.c (handle_jit_event): Print debug output.
2510 (bpstat_what): Split event callback handling to ...
2511 (bpstat_run_callbacks): ... this new function.
2512 (momentary_bkpt_print_it): No longer handle bp_finish here.
2513 * breakpoint.h (bpstat_run_callbacks): Declare.
2514 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2515 <thread_fsm>: New field.
2516 (thread_cancel_execution_command): Declare.
2517 * infcmd.c: Include thread-fsm.h.
2518 (struct step_command_fsm): New.
2519 (step_command_fsm_ops): New global.
2520 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2521 (step_1): Adjust to use step_command_fsm_prepare and
2522 prepare_one_step.
2523 (struct step_1_continuation_args): Delete.
2524 (step_1_continuation): Delete.
2525 (step_command_fsm_should_stop): New function.
2526 (step_once): Delete.
2527 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2528 (prepare_one_step): New function, based on step_once.
2529 (until_next_command): Remove step_multi reference.
2530 (struct return_value_info): New.
2531 (print_return_value): Rename to ...
2532 (print_return_value_1): ... this. New struct return_value_info
2533 parameter. Adjust.
2534 (print_return_value): Reimplement as wrapper around
2535 print_return_value_1.
2536 (struct finish_command_fsm): New.
2537 (finish_command_continuation): Delete.
2538 (finish_command_fsm_ops): New global.
2539 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2540 functions.
2541 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2542 New.
2543 (finish_command_continuation_free_arg): Delete.
2544 (finish_command_fsm_async_reply_reason): New.
2545 (finish_backward, finish_forward): Change symbol parameter to a
2546 finish_command_fsm. Adjust.
2547 (finish_command): Create a finish_command_fsm. Adjust.
2548 * infrun.c: Include "thread-fsm.h".
2549 (clear_proceed_status_thread): Delete the thread's FSM.
2550 (infrun_thread_stop_requested_callback): Cancel the thread's
2551 execution command.
2552 (clean_up_just_stopped_threads_fsms): New function.
2553 (fetch_inferior_event): Handle the event_thread's should_stop
2554 method saying the command isn't done yet.
2555 (process_event_stop_test): Run breakpoint callbacks here.
2556 (print_stop_event): Rename to ...
2557 (print_stop_location): ... this.
2558 (restore_current_uiout_cleanup): New function.
2559 (print_stop_event): Reimplement.
2560 (normal_stop): No longer notify the end_stepping_range observers
2561 here handle "step N" nor "finish" here. No longer call
2562 print_stop_event here.
2563 * infrun.h (struct return_value_info): Forward declare.
2564 (print_return_value): Declare.
2565 (print_stop_event): Change prototype.
2566 * thread-fsm.c: New file.
2567 * thread-fsm.h: New file.
2568 * thread.c: Include "thread-fsm.h".
2569 (thread_cancel_execution_command): New function.
2570 (clear_thread_inferior_resources): Call it.
2571 * cli/cli-interp.c (cli_on_normal_stop): New function.
2572 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2573 observer.
2574 * mi/mi-interp.c: Include "thread-fsm.h".
2575 (restore_current_uiout_cleanup): Delete.
2576 (mi_on_normal_stop): If the thread has an FSM associated, and it
2577 finished, ask it for the async-reply-reason to print. Always call
2578 print_stop_event here, regardless of the top-level interpreter.
2579 Check bpstat_what to tell whether an asynchronous breakpoint hit
2580 triggered.
2581 * tui/tui-interp.c (tui_on_normal_stop): New function.
2582 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2583
0b333c5e
PA
25842015-09-09 Pedro Alves <palves@redhat.com>
2585
2586 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2587 check whether the target can async.
2588 * inf-loop.c (inferior_event_handler): Only call target_async if
2589 the target can async.
2590 * infcall.c: Include top.h and interps.h.
2591 (run_inferior_call): For the interpreter to sync mode while
2592 running the infcall. Call wait_sync_command_done instead of
2593 wait_for_inferior plus normal_stop.
2594 * infcmd.c (prepare_execution_command): Don't check whether the
2595 target can async when running in the foreground.
2596 (step_1): Delete synchronous case handling.
2597 (step_once): Always install a continuation, even in sync mode.
2598 (until_next_command, finish_forward): Don't check whether the
2599 target can async.
2600 (attach_command_post_wait, notice_new_inferior): Always install a
2601 continuation, even in sync mode.
2602 * infrun.c (mark_infrun_async_event_handler): New function.
2603 (proceed): In sync mode, mark infrun's event source instead of
2604 waiting for events here.
2605 (fetch_inferior_event): If the target can't async, do a blocking
2606 wait.
2607 (prepare_to_wait): In sync mode, mark infrun's event source.
2608 (infrun_async_inferior_event_handler): No longer bail out if the
2609 target can't async.
2610 * infrun.h (mark_infrun_async_event_handler): New declaration.
2611 * linux-nat.c (linux_nat_wait_1): Remove calls to
2612 set_sigint_trap/clear_sigint_trap.
2613 (linux_nat_terminal_inferior): No longer check whether the target
2614 can async.
2615 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2616 comment.
2617 (mi_execute_command_input_handler): No longer check whether the
2618 target is async. Update and simplify comment.
2619 * target.c (default_target_wait): New function.
2620 * target.h (struct target_ops) <to_wait>: Now defaults to
2621 default_target_wait.
2622 (default_target_wait): Declare.
2623 * top.c (wait_sync_command_done): New function, factored out from
2624 ...
2625 (maybe_wait_sync_command_done): ... this.
2626 * top.h (wait_sync_command_done): Declare.
2627 * target-delegates.c: Regenerate.
2628
0568462b
MM
26292015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2630
2631 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2632 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2633 Remove include of sys/utsname.h.
2634 (linux_determine_kernel_ptr_bits): Remove.
2635 (linux_determine_kernel_start): New.
2636 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2637 Update check.
2638 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2639 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2640 initialization.
2641 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2642 assignment.
2643
72e02483
PA
26442015-09-07 Pedro Alves <palves@redhat.com>
2645
2646 * guile/guile-internal.h (as_a_scm_t_subr): New.
2647 * guile/guile.c (misc_guile_functions): Use it.
2648 * guile/scm-arch.c (arch_functions): Use it.
2649 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2650 Use it.
2651 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2652 * guile/scm-cmd.c (command_functions): Use it.
2653 * guile/scm-disasm.c (disasm_functions): Use it.
2654 * guile/scm-exception.c (exception_functions)
2655 (private_exception_functions): Use it.
2656 * guile/scm-frame.c (frame_functions)
2657 * guile/scm-gsmob.c (gsmob_functions): Use it.
2658 * guile/scm-iterator.c (iterator_functions): Use it.
2659 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2660 * guile/scm-math.c (math_functions): Use it.
2661 * guile/scm-objfile.c (objfile_functions): Use it.
2662 * guile/scm-param.c (parameter_functions): Use it.
2663 * guile/scm-ports.c (port_functions, private_port_functions): Use
2664 it.
2665 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2666 * guile/scm-progspace.c (pspace_functions): Use it.
2667 * guile/scm-string.c (string_functions): Use it.
2668 * guile/scm-symbol.c (symbol_functions): Use it.
2669 * guile/scm-symtab.c (symtab_functions): Use it.
2670 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2671 it.
2672 * guile/scm-value.c (value_functions): Use it.
2673
e65b5245
AB
26742015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2677 (tui_next_win): Likewise.
2678 (tui_prev_win): Likewise.
2679 (tui_partial_win_by_name): Likewise.
2680 (tui_init_generic_part): Likewise.
2681 (init_content_element): Likewise.
2682 (tui_del_window): Likewise.
2683 (tui_free_window): Likewise.
2684 (tui_del_data_windows): Likewise.
2685 (tui_free_data_content): Likewise.
2686 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2687 * tui/tui-regs.c (tui_show_register_group): Likewise.
2688 * tui/tui-win.c (tui_resize_all): Likewise.
2689 (tui_set_focus): Likewise.
2690 (tui_set_win_height): Likewise.
2691 (make_invisible_and_set_new_height): Likewise.
2692 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2693 * tui/tui-wingeneral.c (make_visible): Likewise.
2694
b03e6ad9
AB
26952015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2698
be903358
AB
26992015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2702 pointer.
2703 * dbxread.c (dbx_end_psymtab): Likewise.
2704 * gnu-nat.c (gnu_write_inferior): Likewise.
2705 * mdebugread.c (cross_ref): Likewise.
2706 * p-valprint.c (pascal_val_print): Likewise.
2707 * xcoffread.c (xcoff_end_psymtab): Likewise.
2708
02f024f9
YQ
27092015-09-04 Yao Qi <yao.qi@linaro.org>
2710
2711 * NEWS: Mention the aarch64 multi-arch debugging support.
2712
cd7c1778
PMR
27132015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2714
2715 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2716 type instead of a TYPE_CODE_INT one for the string_char_type
2717 and the ada_primitive_type_char types.
2718
39edd165
YQ
27192015-09-03 Yao Qi <yao.qi@linaro.org>
2720
2721 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2722 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2723 aarch64_linux_region_ok_for_watchpoint.
2724 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2725 New function.
2726 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2727 Declare it.
2728
6c214e7c
PP
27292015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2730
2731 * gdb_obstack.h (obstack_strdup): Declare.
2732 * gdb_obstack.c (obstack_strdup): Define.
2733 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2734 * gdbarch.c: Regenerate.
2735 * gdbarch.h: Regenerate.
2736 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2737
eed8b28a
PP
27382015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2739
2740 * gdbtypes.c (copy_type_recursive): Update documentation.
2741
73c6b475
SDJ
27422015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2743
2744 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2745 as zero.
2746
ad1c917a
SDJ
27472015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2748
2749 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2750
3bd7e5b7
SDJ
27512015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2752
2753 * solib-svr4.c (solib_event_probe_action): Call
2754 get_probe_argument_count using TRY...CATCH.
2755 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2756
f469e8ce
SDJ
27572015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2758
2759 * probe.h (struct probe_ops) <get_probe_argument_count,
2760 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2761 the comment that the function can throw an exception.
2762 (get_probe_argument_count): Likewise.
2763 (evaluate_probe_argument): Likewise.
2764 * stap-probe.c (stap_get_opcode): Call error instead of
2765 internal_error.
2766 (stap_get_expected_argument_type): Likewise. Add argument
2767 'probe'. Improve error message by mentioning the probe's name.
2768 (stap_parse_probe_arguments): Adjust call to
2769 stap_get_expected_argument_type.
2770 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2771 not zero. Call internal_error if GDB requests an argument but the
2772 probe has no arguments.
2773
dc5c8746
PMR
27742015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2775
2776 * ada-lang.c (ada_resolve_function): Do not ask the user what
2777 match to use when in completion mode.
2778
136765ea
AB
27792015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2780
2781 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2782 cast of NULL.
2783
90b81c5f
MF
27842015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2785
2786 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2787 call_abi using XSHAL_ABI macro.
2788
1cd36e54
DE
27892015-08-29 Doug Evans <xdje42@gmail.com>
2790
2791 * symtab.h (struct symbol): Tweak comment.
2792
8f57eec2
PP
27932015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2794
2795 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2796 gdbarch obstack instead of on the heap. Update commentary
2797 accordingly.
2798
38eebd71
JB
27992015-08-28 Joel Brobecker <brobecker@adacore.com>
2800
2801 GDB 7.10 released.
2802
d63dd61e
SM
28032015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2804
2805 * NEWS: Update entry about non-8-bits addressable memory.
2806
6f059256
UW
28072015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2808
2809 Revert:
2810 2014-11-06 Doug Evans <xdje42@gmail.com>
2811 * solib.c (solib_global_lookup): Fetch arch from objfile,
2812 not target_gdbarch.
2813
70987a92 28142015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2815
2816 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2817 attempt to relocate a TLS variable offset.
2818
70987a92 28192015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2820
2821 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2822 registered yet. Set inferior_ptid while calling target_read_memory.
2823
70987a92 28242015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2825
2826 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2827 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2828 * linux-nat.c (check_stopped_by_breakpoint): Use
2829 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2830
70987a92 28312015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2832
2833 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2834 thread was not yet discovered, use thread_from_lwp instead of
2835 calling thread_db_find_new_threads_1.
2836
f5cdf498
SM
28372015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2838
2839 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2840 statements.
2841
fd2ae5d6
SM
28422015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2843
2844 * NEWS: Document support for non-8-bits addressable memory.
2845
14d88147
PA
28462015-08-27 Pedro Alves <palves@redhat.com>
2847
2848 * configure.ac: Remove AC_TYPE_SIGNAL call.
2849 * configure, config.in: Regenerate.
2850
a40805d4
PA
28512015-08-27 Pedro Alves <palves@redhat.com>
2852
2853 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2854 * extension-priv.h: Include signal.h.
2855 (struct signal_handler) <handler>: Change type to sighandler_t.
2856 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2857 * inflow.c (sigint_ours, sigquit_ours): Change type to
2858 sighandler_t.
2859 (child_terminal_inferior): Remove casts.
2860 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2861 (osig): Change type to sighandler_t.
2862 * nto-procfs.c (ofunc): Change type to sighandler_t.
2863 (procfs_wait): Remove casts.
2864 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2865 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2866 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2867
0750520d
PA
28682015-08-27 Pedro Alves <palves@redhat.com>
2869
2870 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2871 * gnulib/aclocal.m4: Renegerate.
2872 * gnulib/config.in: Renegerate.
2873 * gnulib/configure: Renegerate.
2874 * gnulib/import/Makefile.am: Update.
2875 * gnulib/import/Makefile.in: Regenerate.
2876 * gnulib/import/m4/gnulib-cache.m4: Update.
2877 * gnulib/import/m4/gnulib-comp.m4: Update.
2878 * gnulib/import/m4/signal_h.m4: New file.
2879 * gnulib/import/signal.in.h: New file.
2880
a5c0808e
PA
28812015-08-27 Pedro Alves <palves@redhat.com>
2882
2883 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2884 (MIN_MEMORY_PACKET_SIZE): New.
2885 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2886 (get_memory_packet_size): Adjust. No longer limit the max packet
2887 size.
2888 (set_memory_packet_size): Adjust, and remove dead code.
2889 (remote_check_symbols): Use xmalloc and a cleanup instead of
2890 alloca.
2891 (remote_packet_size): No longer cap the packet size.
2892 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2893
cdaec3f3
LM
28942015-08-26 Luis Machado <lgustavo@codesourcery.com>
2895
2896 * compile/compile.c (compile_to_object): Mention language in
2897 error message.
2898
e9756d52
PP
28992015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2900
2901 * target.c (target_pre_inferior): Unset attach_flag.
2902
1dc7a623
SM
29032015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2904
2905 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2906 * gdbarch.c: Re-generate.
2907
8d749320
SM
29082015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2909
6711b7f8
SM
2910 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2911 function with the XNEW-family equivalent.
8d749320
SM
2912 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2913 * ada-exp.y (write_ambiguous_var): Likewise.
2914 * ada-lang.c (resolve_subexp): Likewise.
2915 (user_select_syms): Likewise.
2916 (assign_aggregate): Likewise.
2917 (ada_evaluate_subexp): Likewise.
2918 (cache_symbol): Likewise.
2919 * addrmap.c (allocate_key): Likewise.
2920 (addrmap_create_mutable): Likewise.
2921 * aix-thread.c (sync_threadlists): Likewise.
2922 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2923 (alpha_gdbarch_init): Likewise.
2924 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2925 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2926 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2927 * arm-tdep.c (push_stack_item): Likewise.
2928 (arm_displaced_step_copy_insn): Likewise.
2929 (arm_gdbarch_init): Likewise.
2930 (_initialize_arm_tdep): Likewise.
2931 * avr-tdep.c (push_stack_item): Likewise.
2932 * ax-general.c (new_agent_expr): Likewise.
2933 * block.c (block_initialize_namespace): Likewise.
2934 * breakpoint.c (alloc_counted_command_line): Likewise.
2935 (update_dprintf_command_list): Likewise.
2936 (parse_breakpoint_sals): Likewise.
2937 (decode_static_tracepoint_spec): Likewise.
2938 (until_break_command): Likewise.
2939 (clear_command): Likewise.
2940 (update_global_location_list): Likewise.
2941 (get_breakpoint_objfile_data) Likewise.
2942 * btrace.c (ftrace_new_function): Likewise.
2943 (btrace_set_insn_history): Likewise.
2944 (btrace_set_call_history): Likewise.
2945 * buildsym.c (add_symbol_to_list): Likewise.
2946 (record_pending_block): Likewise.
2947 (start_subfile): Likewise.
2948 (start_buildsym_compunit): Likewise.
2949 (push_subfile): Likewise.
2950 (end_symtab_get_static_block): Likewise.
2951 (buildsym_init): Likewise.
2952 * cli/cli-cmds.c (source_command): Likewise.
2953 * cli/cli-decode.c (add_cmd): Likewise.
2954 * cli/cli-script.c (build_command_line): Likewise.
2955 (setup_user_args): Likewise.
2956 (realloc_body_list): Likewise.
2957 (process_next_line): Likewise.
2958 (copy_command_lines): Likewise.
2959 * cli/cli-setshow.c (do_set_command): Likewise.
2960 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2961 * coffread.c (coff_locate_sections): Likewise.
2962 (coff_symtab_read): Likewise.
2963 (coff_read_struct_type): Likewise.
2964 * common/cleanups.c (make_my_cleanup2): Likewise.
2965 * common/common-exceptions.c (throw_it): Likewise.
2966 * common/filestuff.c (make_cleanup_close): Likewise.
2967 * common/format.c (parse_format_string): Likewise.
2968 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2969 * compile/compile-object-load.c (munmap_list_add): Likewise.
2970 (compile_object_load): Likewise.
2971 * compile/compile-object-run.c (compile_object_run): Likewise.
2972 * compile/compile.c (append_args): Likewise.
2973 * corefile.c (specify_exec_file_hook): Likewise.
2974 * cp-support.c (make_symbol_overload_list): Likewise.
2975 * cris-tdep.c (push_stack_item): Likewise.
2976 (cris_gdbarch_init): Likewise.
2977 * ctf.c (ctf_trace_file_writer_new): Likewise.
2978 * dbxread.c (init_header_files): Likewise.
2979 (add_new_header_file): Likewise.
2980 (init_bincl_list): Likewise.
2981 (dbx_end_psymtab): Likewise.
2982 (start_psymtab): Likewise.
2983 (dbx_end_psymtab): Likewise.
2984 * dcache.c (dcache_init): Likewise.
2985 * dictionary.c (dict_create_hashed): Likewise.
2986 (dict_create_hashed_expandable): Likewise.
2987 (dict_create_linear): Likewise.
2988 (dict_create_linear_expandable): Likewise.
2989 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2990 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2991 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2992 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2993 (decode_frame_entry_1): Likewise.
2994 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2995 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2996 * dwarf2read.c (dwarf2_has_info): Likewise.
2997 (create_signatured_type_table_from_index): Likewise.
2998 (dwarf2_read_index): Likewise.
2999 (dw2_get_file_names_reader): Likewise.
3000 (create_all_type_units): Likewise.
3001 (read_cutu_die_from_dwo): Likewise.
3002 (init_tu_and_read_dwo_dies): Likewise.
3003 (init_cutu_and_read_dies): Likewise.
3004 (create_all_comp_units): Likewise.
3005 (queue_comp_unit): Likewise.
3006 (inherit_abstract_dies): Likewise.
3007 (read_call_site_scope): Likewise.
3008 (dwarf2_add_field): Likewise.
3009 (dwarf2_add_typedef): Likewise.
3010 (dwarf2_add_member_fn): Likewise.
3011 (attr_to_dynamic_prop): Likewise.
3012 (abbrev_table_alloc_abbrev): Likewise.
3013 (abbrev_table_read_table): Likewise.
3014 (add_include_dir): Likewise.
3015 (add_file_name): Likewise.
3016 (dwarf_decode_line_header): Likewise.
3017 (dwarf2_const_value_attr): Likewise.
3018 (dwarf_alloc_block): Likewise.
3019 (parse_macro_definition): Likewise.
3020 (set_die_type): Likewise.
3021 (write_psymtabs_to_index): Likewise.
3022 (create_cus_from_index): Likewise.
3023 (dwarf2_create_include_psymtab): Likewise.
3024 (process_psymtab_comp_unit_reader): Likewise.
3025 (build_type_psymtab_dependencies): Likewise.
3026 (read_comp_units_from_section): Likewise.
3027 (compute_compunit_symtab_includes): Likewise.
3028 (create_dwo_unit_in_dwp_v1): Likewise.
3029 (create_dwo_unit_in_dwp_v2): Likewise.
3030 (read_func_scope): Likewise.
3031 (process_structure_scope): Likewise.
3032 (mark_common_block_symbol_computed): Likewise.
3033 (load_partial_dies): Likewise.
3034 (dwarf2_symbol_mark_computed): Likewise.
3035 * elfread.c (elf_symfile_segments): Likewise.
3036 (elf_read_minimal_symbols): Likewise.
3037 * environ.c (make_environ): Likewise.
3038 * eval.c (evaluate_subexp_standard): Likewise.
3039 * event-loop.c (create_file_handler): Likewise.
3040 (create_async_signal_handler): Likewise.
3041 (create_async_event_handler): Likewise.
3042 (create_timer): Likewise.
3043 * exec.c (build_section_table): Likewise.
3044 * fbsd-nat.c (fbsd_remember_child): Likewise.
3045 * fork-child.c (fork_inferior): Likewise.
3046 * frv-tdep.c (new_variant): Likewise.
3047 * gdbarch.sh (gdbarch_alloc): Likewise.
3048 (append_name): Likewise.
3049 * gdbtypes.c (rank_function): Likewise.
3050 (copy_type_recursive): Likewise.
3051 (add_dyn_prop): Likewise.
3052 * gnu-nat.c (make_proc): Likewise.
3053 (make_inf): Likewise.
3054 (gnu_write_inferior): Likewise.
3055 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3056 (build_std_type_info_type): Likewise.
3057 * guile/scm-param.c (compute_enum_list): Likewise.
3058 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3059 * guile/scm-value.c (gdbscm_value_call): Likewise.
3060 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3061 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3062 (read_unwind_info): Likewise.
3063 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3064 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3065 (call_function_by_hand_dummy): Likewise.
3066 * infcmd.c (step_once): Likewise.
3067 (finish_forward): Likewise.
3068 (attach_command): Likewise.
3069 (notice_new_inferior): Likewise.
3070 * inferior.c (add_inferior_silent): Likewise.
3071 * infrun.c (add_displaced_stepping_state): Likewise.
3072 (save_infcall_control_state): Likewise.
3073 (save_inferior_ptid): Likewise.
3074 (_initialize_infrun): Likewise.
3075 * jit.c (bfd_open_from_target_memory): Likewise.
3076 (jit_gdbarch_data_init): Likewise.
3077 * language.c (add_language): Likewise.
3078 * linespec.c (decode_line_2): Likewise.
3079 * linux-nat.c (add_to_pid_list): Likewise.
3080 (add_initial_lwp): Likewise.
3081 * linux-thread-db.c (add_thread_db_info): Likewise.
3082 (record_thread): Likewise.
3083 (info_auto_load_libthread_db): Likewise.
3084 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3086 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3087 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3088 * macrocmd.c (macro_define_command): Likewise.
3089 * macroexp.c (gather_arguments): Likewise.
3090 * macroscope.c (sal_macro_scope): Likewise.
3091 * macrotab.c (new_macro_table): Likewise.
3092 * mdebugread.c (push_parse_stack): Likewise.
3093 (parse_partial_symbols): Likewise.
3094 (parse_symbol): Likewise.
3095 (psymtab_to_symtab_1): Likewise.
3096 (new_block): Likewise.
3097 (new_psymtab): Likewise.
3098 (mdebug_build_psymtabs): Likewise.
3099 (add_pending): Likewise.
3100 (elfmdebug_build_psymtabs): Likewise.
3101 * mep-tdep.c (mep_gdbarch_init): Likewise.
3102 * mi/mi-main.c (mi_execute_command): Likewise.
3103 * mi/mi-parse.c (mi_parse_argv): Likewise.
3104 * minidebug.c (lzma_open): Likewise.
3105 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3106 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3107 * mips-tdep.c (mips_gdbarch_init): Likewise.
3108 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3109 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3110 * mt-tdep.c (mt_registers_info): Likewise.
3111 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3112 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3113 (linux_enable_pt): Likewise.
3114 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3115 (linux_xfer_osdata_processgroups): Likewise.
3116 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3117 * nto-procfs.c (procfs_meminfo): Likewise.
3118 * objc-lang.c (start_msglist): Likewise.
3119 (selectors_info): Likewise.
3120 (classes_info): Likewise.
3121 (find_methods): Likewise.
3122 * objfiles.c (allocate_objfile): Likewise.
3123 (update_section_map): Likewise.
3124 * osabi.c (gdbarch_register_osabi): Likewise.
3125 (gdbarch_register_osabi_sniffer): Likewise.
3126 * parse.c (start_arglist): Likewise.
3127 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3128 (hwdebug_insert_point): Likewise.
3129 * printcmd.c (display_command): Likewise.
3130 (ui_printf): Likewise.
3131 * procfs.c (create_procinfo): Likewise.
3132 (load_syscalls): Likewise.
3133 (proc_get_LDT_entry): Likewise.
3134 (proc_update_threads): Likewise.
3135 * prologue-value.c (make_pv_area): Likewise.
3136 (pv_area_store): Likewise.
3137 * psymtab.c (extend_psymbol_list): Likewise.
3138 (init_psymbol_list): Likewise.
3139 (allocate_psymtab): Likewise.
3140 * python/py-inferior.c (add_thread_object): Likewise.
3141 * python/py-param.c (compute_enum_values): Likewise.
3142 * python/py-value.c (valpy_call): Likewise.
3143 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3144 * python/python.c (ensure_python_env): Likewise.
3145 * record-btrace.c (record_btrace_start_replaying): Likewise.
3146 * record-full.c (record_full_reg_alloc): Likewise.
3147 (record_full_mem_alloc): Likewise.
3148 (record_full_end_alloc): Likewise.
3149 (record_full_core_xfer_partial): Likewise.
3150 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3151 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3152 * remote-notif.c (remote_notif_state_allocate): Likewise.
3153 * remote.c (demand_private_info): Likewise.
3154 (remote_notif_stop_alloc_reply): Likewise.
3155 (remote_enable_btrace): Likewise.
3156 * reverse.c (save_bookmark_command): Likewise.
3157 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3158 * rx-tdep.c (rx_gdbarch_init): Likewise.
3159 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3160 * ser-go32.c (dos_get_tty_state): Likewise.
3161 (dos_copy_tty_state): Likewise.
3162 * ser-mingw.c (ser_windows_open): Likewise.
3163 (ser_console_wait_handle): Likewise.
3164 (ser_console_get_tty_state): Likewise.
3165 (make_pipe_state): Likewise.
3166 (net_windows_open): Likewise.
3167 * ser-unix.c (hardwire_get_tty_state): Likewise.
3168 (hardwire_copy_tty_state): Likewise.
3169 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3170 * solib-dsbt.c (dsbt_current_sos): Likewise.
3171 (dsbt_relocate_main_executable): Likewise.
3172 * solib-frv.c (frv_current_sos): Likewise.
3173 (frv_relocate_main_executable): Likewise.
3174 * solib-spu.c (spu_bfd_fopen): Likewise.
3175 * solib-svr4.c (lm_info_read): Likewise.
3176 (svr4_copy_library_list): Likewise.
3177 (svr4_default_sos): Likewise.
3178 * source.c (find_source_lines): Likewise.
3179 (line_info): Likewise.
3180 (add_substitute_path_rule): Likewise.
3181 * spu-linux-nat.c (spu_bfd_open): Likewise.
3182 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3183 * stabsread.c (dbx_lookup_type): Likewise.
3184 (read_type): Likewise.
3185 (read_member_functions): Likewise.
3186 (read_struct_fields): Likewise.
3187 (read_baseclasses): Likewise.
3188 (read_args): Likewise.
3189 (_initialize_stabsread): Likewise.
3190 * stack.c (func_command): Likewise.
3191 * stap-probe.c (handle_stap_probe): Likewise.
3192 * symfile.c (addrs_section_sort): Likewise.
3193 (addr_info_make_relative): Likewise.
3194 (load_section_callback): Likewise.
3195 (add_symbol_file_command): Likewise.
3196 (init_filename_language_table): Likewise.
3197 * symtab.c (create_filename_seen_cache): Likewise.
3198 (sort_search_symbols_remove_dups): Likewise.
3199 (search_symbols): Likewise.
3200 * target.c (make_cleanup_restore_target_terminal): Likewise.
3201 * thread.c (new_thread): Likewise.
3202 (enable_thread_stack_temporaries): Likewise.
3203 (make_cleanup_restore_current_thread): Likewise.
3204 (thread_apply_all_command): Likewise.
3205 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3206 * top.c (gdb_readline_wrapper): Likewise.
3207 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3208 * tracepoint.c (trace_find_line_command): Likewise.
3209 (all_tracepoint_actions_and_cleanup): Likewise.
3210 (make_cleanup_restore_current_traceframe): Likewise.
3211 (get_uploaded_tp): Likewise.
3212 (get_uploaded_tsv): Likewise.
3213 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3214 (tui_alloc_win_info): Likewise.
3215 (tui_alloc_content): Likewise.
3216 (tui_add_content_elements): Likewise.
3217 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3218 (tui_set_disassem_content): Likewise.
3219 * ui-file.c (ui_file_new): Likewise.
3220 (stdio_file_new): Likewise.
3221 (tee_file_new): Likewise.
3222 * utils.c (make_cleanup_restore_integer): Likewise.
3223 (add_internal_problem_command): Likewise.
3224 * v850-tdep.c (v850_gdbarch_init): Likewise.
3225 * valops.c (find_oload_champ): Likewise.
3226 * value.c (allocate_value_lazy): Likewise.
3227 (record_latest_value): Likewise.
3228 (create_internalvar): Likewise.
3229 * varobj.c (install_variable): Likewise.
3230 (new_variable): Likewise.
3231 (new_root_variable): Likewise.
3232 (cppush): Likewise.
3233 (_initialize_varobj): Likewise.
3234 * windows-nat.c (windows_make_so): Likewise.
3235 * x86-nat.c (x86_add_process): Likewise.
3236 * xcoffread.c (arrange_linetable): Likewise.
3237 (allocate_include_entry): Likewise.
3238 (process_linenos): Likewise.
3239 (SYMBOL_DUP): Likewise.
3240 (xcoff_start_psymtab): Likewise.
3241 (xcoff_end_psymtab): Likewise.
3242 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3243 * xtensa-tdep.c (xtensa_register_type): Likewise.
3244 * gdbarch.c: Regenerate.
3245 * gdbarch.h: Regenerate.
3246
17d8546e
DB
32472015-08-25 Don Breazeal <donb@codesourcery.com>
3248
3249 * infrun.c (follow_exec): Re-order operations for
3250 handling follow-exec-mode "new".
3251 (handle_inferior_event_1): Assign ecs->event_thread
3252 to the current thread.
3253 * remote.c (get_remote_arch_state): Add an assertion.
3254
ba49e44b
PA
32552015-08-26 Pedro Alves <palves@redhat.com>
3256
3257 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3258
7541ab03 32592015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3260
7541ab03 3261 PR gdb/18804
abc56d60
PA
3262 * defs.h (maybe_quit): Declare.
3263 (QUIT): Now calls maybe_quit.
3264 * event-loop.c (clear_async_signal_handler)
3265 (async_signal_handler_is_marked): New functions.
3266 * event-loop.h (async_signal_handler_is_marked)
3267 (clear_async_signal_handler): New declarations.
3268 * remote.c (remote_check_pending_interrupt): New function.
3269 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3270 longer check whether the target is async. If waiting for a stop
3271 reply, and a Ctrl-C as been sent to the target, offer to
3272 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3273 Otherwise do not disconnect and throw a quit.
3274 (_initialize_remote): Install remote_check_pending_interrupt as
3275 to_check_pending_interrupt.
3276 * target.c (target_check_pending_interrupt): New function.
3277 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3278 field.
3279 (target_check_pending_interrupt): New declaration.
3280 * utils.c (maybe_quit): New function.
3281 * target-delegates.c: Regenerate.
3282
dfe7f77c
YQ
32832015-08-25 Yao Qi <yao.qi@linaro.org>
3284
3285 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3286 Rename local variable pid to tid, and get lwpid of lwp. Update
3287 debug output.
3288
63e43d3a
PMR
32892015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3290
3291 * ada-lang.c (ada_read_var_value): Add a var_block argument
3292 and pass it to default_read_var_value.
3293 * block.c (block_static_link): New accessor.
3294 * block.h (block_static_link): Declare it.
3295 * buildsym.c (finish_block_internal): Add a static_link
3296 argument. If there is a static link, associate it to the new
3297 block.
3298 (finish_block): Add a static link argument and pass it to
3299 finish_block_internal.
3300 (end_symtab_get_static_block): Update calls to finish_block and
3301 to finish_block_internal.
3302 (end_symtab_with_blockvector): Update call to
3303 finish_block_internal.
3304 * buildsym.h: Forward-declare struct dynamic_prop.
3305 (struct context_stack): Add a static_link field.
3306 (finish_block): Add a static link argument.
3307 * c-exp.y: Remove an obsolete comment (evaluation of variables
3308 already start from the selected frame, and now they climb *up*
3309 the call stack) and propagate the block information to the
3310 produced expression.
3311 * d-exp.y: Likewise.
3312 * f-exp.y: Likewise.
3313 * go-exp.y: Likewise.
3314 * jv-exp.y: Likewise.
3315 * m2-exp.y: Likewise.
3316 * p-exp.y: Likewise.
3317 * coffread.c (coff_symtab_read): Update calls to finish_block.
3318 * dbxread.c (process_one_symbol): Likewise.
3319 * xcoffread.c (read_xcoff_symtab): Likewise.
3320 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3321 "sym" parameter to struct block_symbol, update its uses and pass
3322 its block to calls to read_var_value.
3323 (convert_symbol_sym): Update the calls to convert_one_symbol.
3324 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3325 call to read_var_value.
3326 * dwarf2loc.c (block_op_get_frame_base): New.
3327 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3328 get_frame_base method.
3329 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3330 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3331 instead of the selected frame in order to evaluate the
3332 expression.
3333 (dwarf2_evaluate_property): Add a frame argument. Update call
3334 to dwarf2_locexpr_baton_eval to provide a frame in available and
3335 to handle the absence of address stack.
3336 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3337 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3338 declaration.
3339 (read_func_scope): Record any available static link description.
3340 Update call to finish_block.
3341 (read_lexical_block_scope): Update call to finish_block.
3342 * findvar.c (follow_static_link): New.
3343 (get_hosting_frame): New.
3344 (default_read_var_value): Add a var_block argument. Use
3345 get_hosting_frame to handle non-local references.
3346 (read_var_value): Add a var_block argument and pass it to the
3347 LA_READ_VAR_VALUE method.
3348 * gdbtypes.c (resolve_dynamic_range): Update calls to
3349 dwarf2_evaluate_property.
3350 (resolve_dynamic_type_internal): Likewise.
3351 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3352 read_var_value, passing it the block coming from symbol lookup.
3353 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3354 read_var_value (TODO).
3355 * infcmd.c (finish_command_continuation): Update call to
3356 read_var_value, passing it the block coming from symbol lookup.
3357 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3358 * language.h (struct language_defn): Add a var_block argument to
3359 the LA_READ_VAR_VALUE method.
3360 * objfiles.c (struct static_link_htab_entry): New.
3361 (static_link_htab_entry_hash): New.
3362 (static_link_htab_entry_eq): New.
3363 (objfile_register_static_link): New.
3364 (objfile_lookup_static_link): New.
3365 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3366 * objfiles.h: Include hashtab.h.
3367 (struct objfile): Add a static_links field.
3368 (objfile_register_static_link): New.
3369 (objfile_lookup_static_link): New.
3370 * printcmd.c (print_variable_and_value): Update call to
3371 read_var_value.
3372 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3373 * python/py-frame.c (frapy_read_var): Update call to
3374 read_var_value, passing it the block coming from symbol lookup.
3375 * python/py-framefilter.c (extract_sym): Add a sym_block
3376 parameter and set the pointed value to NULL (TODO).
3377 (enumerate_args): Update call to extract_sym.
3378 (enumerate_locals): Update calls to extract_sym and to
3379 read_var_value.
3380 * python/py-symbol.c (sympy_value): Update call to
3381 read_var_value (TODO).
3382 * stack.c (read_frame_local): Update call to read_var_value.
3383 (read_frame_arg): Likewise.
3384 (return_command): Likewise.
3385 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3386 method.
3387 (struct symbol): Add a block field.
3388 (SYMBOL_BLOCK): New accessor.
3389 * valops.c (value_of_variable): Remove frame/block handling and
3390 pass the block argument to read_var_value, which does this job
3391 now.
3392 (value_struct_elt_for_reference): Update calls to
3393 read_var_value.
3394 (value_of_this): Pass the block found to read_var_value.
3395 * value.h (read_var_value): Add a var_block argument.
3396 (default_read_var_value): Likewise.
3397
ed8b7b42
YQ
33982015-08-25 Yao Qi <yao.qi@linaro.org>
3399
3400 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3401 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3402 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3403
db3cb7cb
YQ
34042015-08-25 Yao Qi <yao.qi@linaro.org>
3405
3406 * Makefile.in (aarch64-liunx.o): New rule.
3407 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3408 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3409 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3410 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3411 extern.
3412 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3413 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3414 * nat/aarch64-linux.c: New file.
3415 * nat/aarch64-linux.h: New file.
3416
f6011a1c
YQ
34172015-08-25 Yao Qi <yao.qi@linaro.org>
3418
3419 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3420 lwp_arch_private_info and ptid_of_lwp.
3421
5e35436e
YQ
34222015-08-25 Yao Qi <yao.qi@linaro.org>
3423
3424 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3425 Move it to nat/aarch64-linux-hw-point.c.
3426 (debug_reg_change_callback): Likewise.
3427 (aarch64_notify_debug_reg_change): :Likewise.
3428 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3429 (aarch64_dr_update_callback_param): New.
3430 (debug_reg_change_callback): New function.
3431 (aarch64_notify_debug_reg_change): Likewise.
3432 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3433 Remove the declaration.
3434
4a8a7965
YQ
34352015-08-25 Yao Qi <yao.qi@linaro.org>
3436
3437 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3438 Call current_lwp_ptid.
3439
32a271ee
YQ
34402015-08-25 Yao Qi <yao.qi@linaro.org>
3441
3442 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3443 debug_printf.
3444
5e137137
YQ
34452015-08-25 Yao Qi <yao.qi@linaro.org>
3446
3447 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3448 ptid_get_pid rather than ptid_get_lwp.
3449
73b8c1fd
PA
34502015-08-24 Pedro Alves <palves@redhat.com>
3451
3452 * NEWS (New commands): Mention set/show remote
3453 multiprocess-extensions-packet.
3454 * remote.c (remote_query_supported): Only tell the server to use
3455 the multiprocess extensions if the user hasn't force-disabled them
3456 with "set remote multiprocess-extensions-packet off".
3457
4a626d0a
PA
34582015-08-24 Pedro Alves <palves@redhat.com>
3459
3460 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3461 1029a8112290f6eee9d7878a391c49db42c999bd.
3462 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3463 Regenerate.
3464 * gnulib/import/Makefile.am: Update.
3465 * gnulib/import/Makefile.in: Update.
3466 * gnulib/import/alloca.in.h: Update.
3467 * gnulib/import/basename-lgpl.c: Update.
3468 * gnulib/import/canonicalize-lgpl.c: Update.
3469 * gnulib/import/config.charset: Update.
3470 * gnulib/import/dirent.in.h: Update.
3471 * gnulib/import/dirfd.c: Update.
3472 * gnulib/import/dirname-lgpl.c: Update.
3473 * gnulib/import/dirname.h: Update.
3474 * gnulib/import/dosname.h: Update.
3475 * gnulib/import/errno.in.h: Update.
3476 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3477 * gnulib/import/extra/snippet/c++defs.h: Update.
3478 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3479 * gnulib/import/extra/update-copyright: Update.
3480 * gnulib/import/float+.h: Update.
3481 * gnulib/import/float.c: Update.
3482 * gnulib/import/float.in.h: Update.
3483 * gnulib/import/fnmatch.c: Update.
3484 * gnulib/import/fnmatch.in.h: Update.
3485 * gnulib/import/fnmatch_loop.c: Update.
3486 * gnulib/import/fpucw.h: Update.
3487 * gnulib/import/frexp.c: Update.
3488 * gnulib/import/frexpl.c: Update.
3489 * gnulib/import/gettimeofday.c: Update.
3490 * gnulib/import/inttypes.in.h: Update.
3491 * gnulib/import/isnan.c: Update.
3492 * gnulib/import/isnand-nolibm.h: Update.
3493 * gnulib/import/isnand.c: Update.
3494 * gnulib/import/isnanl-nolibm.h: Update.
3495 * gnulib/import/isnanl.c: Update.
3496 * gnulib/import/itold.c: Update.
3497 * gnulib/import/localcharset.c: Update.
3498 * gnulib/import/localcharset.h: Update.
3499 * gnulib/import/lstat.c: Update.
3500 * gnulib/import/m4/00gnulib.m4: Update.
3501 * gnulib/import/m4/absolute-header.m4: Update.
3502 * gnulib/import/m4/alloca.m4: Update.
3503 * gnulib/import/m4/canonicalize.m4: Update.
3504 * gnulib/import/m4/codeset.m4: Update.
3505 * gnulib/import/m4/configmake.m4: Update.
3506 * gnulib/import/m4/dirent_h.m4: Update.
3507 * gnulib/import/m4/dirfd.m4: Update.
3508 * gnulib/import/m4/dirname.m4: Update.
3509 * gnulib/import/m4/double-slash-root.m4: Update.
3510 * gnulib/import/m4/eealloc.m4: Update.
3511 * gnulib/import/m4/errno_h.m4: Update.
3512 * gnulib/import/m4/exponentd.m4: Update.
3513 * gnulib/import/m4/exponentl.m4: Update.
3514 * gnulib/import/m4/extensions.m4: Update.
3515 * gnulib/import/m4/extern-inline.m4: Update.
3516 * gnulib/import/m4/fcntl-o.m4: Update.
3517 * gnulib/import/m4/float_h.m4: Update.
3518 * gnulib/import/m4/fnmatch.m4: Update.
3519 * gnulib/import/m4/fpieee.m4: Update.
3520 * gnulib/import/m4/frexp.m4: Update.
3521 * gnulib/import/m4/frexpl.m4: Update.
3522 * gnulib/import/m4/gettimeofday.m4: Update.
3523 * gnulib/import/m4/glibc21.m4: Update.
3524 * gnulib/import/m4/gnulib-cache.m4: Update.
3525 * gnulib/import/m4/gnulib-common.m4: Update.
3526 * gnulib/import/m4/gnulib-comp.m4: Update.
3527 * gnulib/import/m4/gnulib-tool.m4: Update.
3528 * gnulib/import/m4/include_next.m4: Update.
3529 * gnulib/import/m4/inttypes-pri.m4: Update.
3530 * gnulib/import/m4/inttypes.m4: Update.
3531 * gnulib/import/m4/isnand.m4: Update.
3532 * gnulib/import/m4/isnanl.m4: Update.
3533 * gnulib/import/m4/largefile.m4: Update.
3534 * gnulib/import/m4/localcharset.m4: Update.
3535 * gnulib/import/m4/locale-fr.m4: Update.
3536 * gnulib/import/m4/locale-ja.m4: Update.
3537 * gnulib/import/m4/locale-zh.m4: Update.
3538 * gnulib/import/m4/longlong.m4: Update.
3539 * gnulib/import/m4/lstat.m4: Update.
3540 * gnulib/import/m4/malloc.m4: Update.
3541 * gnulib/import/m4/malloca.m4: Update.
3542 * gnulib/import/m4/math_h.m4: Update.
3543 * gnulib/import/m4/mbrtowc.m4: Update.
3544 * gnulib/import/m4/mbsinit.m4: Update.
3545 * gnulib/import/m4/mbsrtowcs.m4: Update.
3546 * gnulib/import/m4/mbstate_t.m4: Update.
3547 * gnulib/import/m4/memchr.m4: Update.
3548 * gnulib/import/m4/memmem.m4: Update.
3549 * gnulib/import/m4/mmap-anon.m4: Update.
3550 * gnulib/import/m4/multiarch.m4: Update.
3551 * gnulib/import/m4/nocrash.m4: Update.
3552 * gnulib/import/m4/off_t.m4: Update.
3553 * gnulib/import/m4/pathmax.m4: Update.
3554 * gnulib/import/m4/readlink.m4: Update.
3555 * gnulib/import/m4/rename.m4: Update.
3556 * gnulib/import/m4/rmdir.m4: Update.
3557 * gnulib/import/m4/ssize_t.m4: Update.
3558 * gnulib/import/m4/stat.m4: Update.
3559 * gnulib/import/m4/stdbool.m4: Update.
3560 * gnulib/import/m4/stddef_h.m4: Update.
3561 * gnulib/import/m4/stdint.m4: Update.
3562 * gnulib/import/m4/stdio_h.m4: Update.
3563 * gnulib/import/m4/stdlib_h.m4: Update.
3564 * gnulib/import/m4/string_h.m4: Update.
3565 * gnulib/import/m4/strstr.m4: Update.
3566 * gnulib/import/m4/strtok_r.m4: Update.
3567 * gnulib/import/m4/sys_socket_h.m4: Update.
3568 * gnulib/import/m4/sys_stat_h.m4: Update.
3569 * gnulib/import/m4/sys_time_h.m4: Update.
3570 * gnulib/import/m4/sys_types_h.m4: Update.
3571 * gnulib/import/m4/time_h.m4: Update.
3572 * gnulib/import/m4/unistd_h.m4: Update.
3573 * gnulib/import/m4/warn-on-use.m4: Update.
3574 * gnulib/import/m4/wchar_h.m4: Update.
3575 * gnulib/import/m4/wchar_t.m4: Update.
3576 * gnulib/import/m4/wctype_h.m4: Update.
3577 * gnulib/import/m4/wint_t.m4: Update.
3578 * gnulib/import/malloc.c: Update.
3579 * gnulib/import/malloca.c: Update.
3580 * gnulib/import/malloca.h: Update.
3581 * gnulib/import/math.in.h: Update.
3582 * gnulib/import/mbrtowc.c: Update.
3583 * gnulib/import/mbsinit.c: Update.
3584 * gnulib/import/mbsrtowcs-impl.h: Update.
3585 * gnulib/import/mbsrtowcs-state.c: Update.
3586 * gnulib/import/mbsrtowcs.c: Update.
3587 * gnulib/import/memchr.c: Update.
3588 * gnulib/import/memmem.c: Update.
3589 * gnulib/import/pathmax.h: Update.
3590 * gnulib/import/readlink.c: Update.
3591 * gnulib/import/ref-add.sin: Update.
3592 * gnulib/import/ref-del.sin: Update.
3593 * gnulib/import/rename.c: Update.
3594 * gnulib/import/rmdir.c: Update.
3595 * gnulib/import/same-inode.h: Update.
3596 * gnulib/import/stat.c: Update.
3597 * gnulib/import/stdbool.in.h: Update.
3598 * gnulib/import/stddef.in.h: Update.
3599 * gnulib/import/stdint.in.h: Update.
3600 * gnulib/import/stdio.c: Update.
3601 * gnulib/import/stdio.in.h: Update.
3602 * gnulib/import/stdlib.in.h: Update.
3603 * gnulib/import/str-two-way.h: Update.
3604 * gnulib/import/streq.h: Update.
3605 * gnulib/import/string.in.h: Update.
3606 * gnulib/import/stripslash.c: Update.
3607 * gnulib/import/strnlen1.c: Update.
3608 * gnulib/import/strnlen1.h: Update.
3609 * gnulib/import/strstr.c: Update.
3610 * gnulib/import/strtok_r.c: Update.
3611 * gnulib/import/sys_stat.in.h: Update.
3612 * gnulib/import/sys_time.in.h: Update.
3613 * gnulib/import/sys_types.in.h: Update.
3614 * gnulib/import/time.in.h: Update.
3615 * gnulib/import/unistd.in.h: Update.
3616 * gnulib/import/verify.h: Update.
3617 * gnulib/import/wchar.in.h: Update.
3618 * gnulib/import/wctype.in.h: Update.
3619 * gnulib/import/gettimeofday.c: New file.
3620 * gnulib/import/m4/absolute-header.m4: New file.
3621 * gnulib/import/m4/gettimeofday.m4: New file.
3622 * gnulib/import/m4/sys_socket_h.m4: New file.
3623 * gnulib/import/m4/sys_time_h.m4: New file.
3624 * gnulib/import/stdio.c: Delete file.
3625 * gnulib/import/sys_time.in.h: New file.
3626
438e1e42
PA
36272015-08-24 Pedro Alves <palves@redhat.com>
3628
3629 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3630 * common/gdb_sys_time.h: New file.
3631 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3632 * gdb_select.h: Likewise.
3633 * gdb_usleep.c: Likewise.
3634 * maint.c: Likewise.
3635 * mi/mi-main.c: Likewise.
3636 * mi/mi-parse.h: Likewise.
3637 * remote-fileio.c: Likewise.
3638 * remote-m32r-sdi.c: Likewise.
3639 * remote.c: Likewise.
3640 * ser-base.c: Likewise.
3641 * ser-pipe.c: Likewise.
3642 * ser-tcp.c: Likewise.
3643 * ser-unix.c: Likewise.
3644 * symfile.c: Likewise.
3645 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3646 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3647 * utils.c: Likewise.
3648
40e0b271
PA
36492015-08-24 Pedro Alves <palves@redhat.com>
3650
3651 * NEWS: Mention removed support for the various ROM monitors.
3652 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3653 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3654 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3655 gdb_target_obs.
3656 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3657 gdb_target_obs.
3658 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3659 dsrec.o from gdb_target_obs.
3660 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3661 from gdb_target_obs.
3662 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3663 gdb_target_obs.
3664 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3665 dink32-rom.o from gdb_target_obs.
3666 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3667 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3668 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3669 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3670
f8904751
PA
36712015-08-21 Pedro Alves <palves@redhat.com>
3672
3673 * frame.c (null_frame_id): Explicitly zero-initialize.
3674
049412e3
TT
36752015-08-21 Tom Tromey <tromey@redhat.com>
3676
3677 * dwarf2read.c (struct dwarf2_section_info): Rename field
3678 'asection' to 'section'.
3679 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3680 (dwarf2_locate_sections, dwarf2_locate_sections)
3681 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3682 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3683 (dwarf2_locate_v2_dwp_sections): Adjust.
3684
948578a9
PP
36852015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3686
3687 * top.h (gdb_in_secondary_prompt_p): Declare.
3688 * top.c (gdb_secondary_prompt_depth): Define.
3689 (gdb_in_secondary_prompt_p): Define.
3690 (gdb_readline_wrapper_cleanup): Decrement
3691 gdb_secondary_prompt_depth.
3692 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3693 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3694 are in a secondary prompt.
3695
7a8bcb88
PP
36962015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3697
3698 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3699 emit the newline.
3700
2d7711a3
GB
37012015-08-21 Gary Benson <gbenson@redhat.com>
3702
3703 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3704
4313b8c0
GB
37052015-08-21 Gary Benson <gbenson@redhat.com>
3706
3707 * target.h (struct target_ops) <to_fileio_open>: New argument
3708 warn_if_slow. Update comment. All implementations updated.
3709 (target_fileio_open_warn_if_slow): New declaration.
3710 * target.c (target_fileio_open): Renamed as...
3711 (target_fileio_open_1): ...this. New argument warn_if_slow.
3712 Pass warn_if_slow to implementation. Update debug printing.
3713 (target_fileio_open): New function.
3714 (target_fileio_open_warn_if_slow): Likewise.
3715 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3716 target_fileio_open_warn_if_slow.
3717
f36b8719
GB
37182015-08-21 Gary Benson <gbenson@redhat.com>
3719
3720 * nat/linux-namespaces.c (linux_mntns_access_fs):
3721 Do not overwrite old_chain.
3722
40045d91
MF
37232015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3724
3725 * arch/xtensa.h: New file.
3726 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3727 (ps_get_thread_area): New function.
3728 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3729 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3730 * xtensa-tdep.c (osabi.h): New #include.
3731 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3732 xtensa-specific hooks.
3733 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3734 member and move the structure to arch/xtensa.h.
3735
80152258
PA
37362015-08-21 Pedro Alves <palves@redhat.com>
3737
3738 * remote.c (struct readahead_cache): New.
3739 (struct remote_state) <readahead_cache>: New field.
3740 (remote_open_1): Invalidate the cache.
3741 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3742 functions.
3743 (remote_hostio_pwrite): Invalidate the readahead cache.
3744 (remote_hostio_pread): Rename to ...
3745 (remote_hostio_pread_vFile): ... this.
3746 (remote_hostio_pread_from_cache): New function.
3747 (remote_hostio_pread): Reimplement.
3748 (remote_hostio_close): Invalidate the readahead cache.
3749
88fc5eb7
MC
37502015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3751
3752 PR build/18843
3753 * procfs.c: Include "filestuff.h".
3754
6f1cb6ea
PP
37552015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3756
3757 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3758 curch.
3759 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3760 cur_line or curch, instead call wmove().
3761 (init_win_info) [CMD_WIN]: Likewise.
3762 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3763 instead call getcury().
3764 (tui_redisplay_readline): Don't set cur_line or curch.
3765 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3766 getcury().
3767 (tui_cont_sig): Remove call to wmove.
3768 (tui_getc): Don't read cur_line or curch, instead call getcury()
3769 or getyx(). Don't set curch.
3770 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3771 set cur_line or curch. Always move cursor to (0,0).
3772
221e1a37
PA
37732015-08-20 Pedro Alves <palves@redhat.com>
3774
3775 * infrun.c (print_target_wait_results): Make extern.
3776 * infrun.h (print_target_wait_results): Declare.
3777 * remote.c (set_stop_requested_callback): Delete.
3778 (process_initial_stop_replies): New function.
3779 (remote_start_remote): Use it.
3780 (stop_reply_queue_length): New function.
3781
40e3ad0e
PA
37822015-08-20 Pedro Alves <palves@redhat.com>
3783
3784 * dwarf2read.c (process_full_comp_unit): To tell whether
3785 start_subfile managed to deduce a language, test for
3786 language_unknown instead of language_c.
3787
af39b327
PMR
37882015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3789
3790 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3791 matches attributes.
3792
7d45c7c3
KB
37932015-08-19 Kevin Buettner <kevinb@redhat.com>
3794
3795 * dwarf2read.c (dwarf2_string_attr): New function.
3796 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3797 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3798 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3799 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3800 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3801
4d6cceb4
DE
38022015-08-18 Doug Evans <dje@google.com>
3803 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3804
3805 PR mi/18833
3806 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3807 if MI-like.
3808 * mi/mi-out.c: #include "vec.h".
3809 (ui_filep): New type.
3810 (DEV_VEC_P (ui_filep)): New type.
3811 (struct ui_out_data) <buffer, original_buffer>: Delete.
3812 (struct ui_out_data) <streams>: New member.
3813 (mi_ui_out_impl): Add data_destroy field.
3814 (mi_field_string, mi_field_fmt): Update.
3815 (mi_flush, mi_redirect, field_separator): Update.
3816 (mi_open, mi_close): Update.
3817 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3818 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3819 (mi_out_new): Call mi_out_data_ctor.
3820
26d56a93
SL
38212015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3822
3823 * remote.c (strprefix): New.
3824 (remote_parse_stop_reply): Use strprefix instead of strncmp
3825 to ensure exact match of keyword.
3826
566f5e3b
AB
38272015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * gdb_bfd.c (debug_bfd_cache): New variable.
3830 (show_bfd_cache_debug): New function.
3831 (gdb_bfd_open): Add debug logging.
3832 (gdb_bfd_ref): Likewise.
3833 (gdb_bfd_unref): Likewise.
3834 (_initialize_gdb_bfd): Add new set/show command.
3835 * NEWS: Mention new command.
3836
18989b3c
AB
38372015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * gdb_bfd.c (bfd_sharing): New variable.
3840 (show_bfd_sharing): New function.
3841 (gdb_bfd_open): Check bfd_sharing variable.
3842 (_initialize_gdb_bfd): Add new set/show command.
3843 * NEWS: Mention new command.
3844
c04fe68f
AB
38452015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3846
3847 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3848 field.
3849 (struct gdb_bfd_cache_search): Likewise.
3850 (eq_bfd): Compare the size, inode, and device id fields.
3851 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3852 (gdb_bfd_ref): Likewise.
3853 (gdb_bfd_unref): Likewise.
3854
b2a33439
PA
38552015-08-18 Pedro Alves <palves@redhat.com>
3856
3857 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3858 target implements to_always_non_stop_p, call it.
3859 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3860 (x86_linux_create_target): Install it as to_always_non_stop_p
3861 method.
3862
71b57e37
DE
38632015-08-17 Doug Evans <dje@google.com>
3864
3865 * ui-out.c (default_ui_out_impl): Add comment.
3866
7f3706eb
IB
38672015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3868
3869 * d-exp.y (type_aggregate_p): New function.
3870 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3871 (classify_inner_name): Likewise.
3872 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3873
1762568f
DE
38742015-08-15 Doug Evans <xdje42@gmail.com>
3875
3876 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3877 updated.
3878 (add_psymbol_to_list): Ditto.
3879
8763cede
DE
38802015-08-15 Doug Evans <xdje42@gmail.com>
3881
3882 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3883 updated. Call end_psymtab_common.
3884 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3885 end_psymtab_common.
3886 (build_type_psymtabs_reader): Ditto.
3887 * psympriv.h (sort_pst_symbols): Delete.
3888 (end_psymtab_common): Declare.
3889 * psymtab.c (sort_pst_symbols): Make static.
3890 (end_psymtab_common): New function.
3891 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3892
51cdc993
DE
38932015-08-15 Doug Evans <xdje42@gmail.com>
3894
3895 * defs.h (LANGUAGE_BITS): Define.
3896 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3897 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3898 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3899 (minimal_symbol_type): Add nr_minsym_types.
3900 (MINSYM_TYPE_BITS): Define.
3901 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3902 (domain_enum_tag): Add NR_DOMAINS.
3903 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3904 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3905
95cf5869
DE
39062015-08-15 Doug Evans <xdje42@gmail.com>
3907
3908 * objfiles.h: Whitespace cleanup.
3909 * psympriv.h: Whitespace cleanup.
3910 * psymtab.c: Whitespace/coding convention cleanup.
3911
e3ae3c43
PP
39122015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3913
3914 * inferior.c (detach_inferior_command): Don't call
3915 any_thread_of_process when pid is 0.
3916 (kill_inferior_command): Likewise.
3917
6ff0ba5f
DE
39182015-08-14 Doug Evans <xdje42@gmail.com>
3919
3920 PR gdb/11833
3921 * NEWS: Document new /s modifier for the disassemble command.
3922 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3923 (_initialize_cli_cmds): Update online docs of disassemble command.
3924 * disasm.c: #include "source.h".
3925 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3926 All uses updated.
3927 (dis_line_entry): New struct.
3928 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3929 (allocate_dis_line_table): New functions.
3930 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3931 (dump_insns): New arg end_pc. All callers updated.
3932 (do_mixed_source_and_assembly_deprecated): Renamed from
3933 do_mixed_source_and_assembly. All callers updated.
3934 (do_mixed_source_and_assembly): New function.
3935 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3936 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3937 DISASSEMBLY_SOURCE. All uses updated.
3938 (DISASSEMBLY_SOURCE): New macro.
3939 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3940
b56ccc20
KS
39412015-08-14 Keith Seitz <keiths@redhat.com>
3942
3943 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3944 `typename' to `type_name' to avoid C++ reserved word.
3945
ebdad8fc
KS
39462015-08-14 Keith Seitz <keiths@redhat.com>
3947
3948 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3949 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3950 silence ARI errors.
3951
c0fe2ae7
IB
39522015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3953
3954 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3955 xstrprintf instead of malloc and sprintf.
3956 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3957 (lex_one_token): Likewise.
3958
a738da3a
MF
39592015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3960
3961 * solib-svr4.c (read_program_header): Add base_addr argument to
3962 report the runtime address of the segment.
3963 (find_program_interpreter): Update read_program_header call to pass
3964 a NULL pointer for the new argument.
3965 (scan_dyntag): Add ptr_addr argument to report the runtime address
3966 of the tag payload.
3967 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3968 read_program_header to get the base address of the dynamic segment.
3969 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3970 read_program_header.
3971 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3972
f8edc4ff
MF
39732015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3974
3975 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3976
444c1ed8
IB
39772015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3978
3979 * d-exp.y (%union): Add voidval.
3980 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3981 name in the lexing stage.
3982 (PostfixExpression): Move symbol completion handling in grammar here
3983 from PrimaryExpression.
3984 (PrimaryExpression): Move routines to handle resolving identifier
3985 tokens in the grammar here from push_expression_name.
3986 (IdentifierExp): Remove the handling of alternating '.' and identifier
3987 tokens.
3988 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3989 (BasicType): Remove C-style typename rules.
3990 (d_type_from_name, d_module_from_name, push_variable)
3991 (push_fieldnames, push_type_name, push_module_name)
3992 (push_expression_name): Remove.
3993 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3994 (token_and_value): New type.
3995 (token_fifo, popping, name_obstack): New globals.
3996 (classify_name): New function.
3997 (classify_inner_name): Likewise.
3998 (yylex): Likewise.
3999 (d_parse): Initialize token_fifo, popping and name_obstack.
4000
bc7c9fab
IB
40012015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4002
4003 * Makefile.in (SFILES): Add d-namespace.c.
4004 (COMMON_OBS): Add d-namespace.o.
4005 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4006 la_lookup_symbol_nonlocal callback function pointer.
4007 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4008 (d_lookup_nested_symbol): New declaration.
4009 * d-namespace.c: New file.
4010
3207396b
PA
40112015-08-13 Pedro Alves <palves@redhat.com>
4012
4013 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4014 cleanup after the decref cleanup, not before.
4015
5d8c3ed3
PMR
40162015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4017
4018 * ada-lang.c: Include namespace.h
4019 (aux_add_nonlocal_symbols): Fix a function name in comment.
4020 (ada_add_block_renamings): New.
4021 (add_nonlocal_symbols): Add global renamings handling.
4022 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4023 to...
4024 (ada_add_all_symbols): ... this new function.
4025 (ada_add_block_symbols): Try to match the input name against the
4026 "using directives list", perform a recursive symbol lookup on
4027 the matched declarations.
4028 * block.h (struct block): Move the_namespace to top-level as
4029 namespace_info. Remove the language_specific field.
4030 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4031 * buildsym.h (using_directives): Rename into...
4032 (local_using_directives): ... this.
4033 (global_using_directives): New.
4034 (struct context_stack): Rename the using_directives field into
4035 local_using_directives.
4036 * buildsym.c (finish_block_internal): Deal with the proper
4037 using directives repository (local or global).
4038 (prepare_for_building): Reset local_using_directives. Assert
4039 that there is no pending global using directive.
4040 (reset_symtab_globals): Reset global_using_directives and
4041 local_using_directives.
4042 (end_symtab_get_static_block): Don't ignore symtabs that have
4043 only using directives.
4044 (push_context): Update references to local_using_directives.
4045 (buildsym_init): Do not reset using_directives.
4046 * cp-support.c: Include namespace.h.
4047 * cp-support.h (struct using_direct): Move to namespace.h.
4048 (cp_add_using_directives): Move to namespace.h.
4049 * cp-namespace.c: Include namespace.h
4050 (cp_add_using_directive): Move to namespace.c, rename it to
4051 add_using_directive, add a "using_directives" argument and use
4052 it as the pending using directives repository. All callers
4053 updated.
4054 * dwarf2read.c (using_directives): New.
4055 (read_import_statement): Call using_directives.
4056 (read_func_scope): Update references to local_using_directives.
4057 (read_lexical_block_scope): Likewise.
4058 (read_namespace): Update the heading comment, call
4059 using_directives.
4060 * namespace.h: New file.
4061 * namespace.c: New file.
4062 * Makefile.in (SFILES): Add namespace.c.
4063 (COMMON_OBS): Add namespace.o
4064
4dafcdeb
JB
40652015-08-12 Joel Brobecker <brobecker@adacore.com>
4066
4067 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4068 compute RETADDR.
4069
67994074
KS
40702015-08-12 Keith Seitz <keiths@redhat.com>
4071
4072 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4073 reserved C++ keyword "explicit" to "explicit_loc".
4074 * breakpoint.c (create_overlay_event_breakpoint)
4075 (create_longjmp_master_breakpoint)
4076 (create_std_terminate_master_breakpoint)
4077 (create_exception_master_breakpoint, update_static_tracepoint):
4078 Rename reserved C++ keyword "explicit" to "explicit_loc".
4079 * completer.c (collect_explicit_location_matches)
4080 (explicit_location_completer): Rename reserved C++ keyword
4081 "explicit" to "explicit_loc".
4082 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4083 (canonicalize_linespec, create_sals_line_offset)
4084 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4085 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4086 "explicit" to "explicit_loc".
4087 * location.c (struct event_location) <explicit>: Rename to
4088 "explicit_loc".
4089 (initialize_explicit_location, new_explicit_location)
4090 (explicit_location_to_string_internal, explicit_location_to_linespec):
4091 Rename reserved C++ keyword "explicit" to "explicit_loc".
4092 * location.h (explicit_location_to_string)
4093 (explicit_location_to_linespec, initialize_explicit_location)
4094 (new_explicit_location): Rename reserved C++ keyword "explicit"
4095 to "explicit_loc".
4096 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4097 keyword "explicit" to "explicit_loc".
4098
59ecaff3
KS
40992015-08-12 Keith Seitz <keiths@redhat.com>
4100
4101 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4102 and only call decode_line_1 when it is non-NULL.
4103
244558af
LM
41042015-08-12 Luis Machado <lgustavo@codesourcery.com>
4105
4106 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4107 location address is not meaningful.
4108 (breakpoint_address_is_meaningful): Update comment.
4109
629500fa
KS
41102015-08-11 Keith Seitz <keiths@redhat.com>
4111
4112 * NEWS: Mention explicit locations.
4113 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4114 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4115 (_initialize_breakpoint): Update documentation for
4116 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4117
eb8c4e2e
KS
41182015-08-11 Keith Seitz <keiths@redhat.com>
4119
4120 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4121 explicit locations, options "--source", "--function",
4122 "--label", and "--line".
4123
87f0e720
KS
41242015-08-11 Keith Seitz <keiths@redhat.com>
4125
4126 * completer.c: Include location.h.
4127 (enum match_type): New enum.
4128 (location_completer): Rename to ...
4129 (linespec_completer): ... this.
4130 (collect_explicit_location_matches, backup_text_ptr)
4131 (explicit_location_completer): New functions.
4132 (location_completer): "New" function; handle linespec
4133 and explicit location completions.
4134 (complete_line_internal): Remove all location completer-specific
4135 handling.
4136 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4137 (find_toplevel_char): Export.
4138 (linespec_parse_line_offset): Export.
4139 Issue error if STRING is not numerical.
4140 (gdb_get_linespec_parser_quote_characters): New function.
4141 * linespec.h (linespec_parse_line_offset): Declare.
4142 (get_gdb_linespec_parser_quote_characters): Declare.
4143 (is_ada_operator): Declare.
4144 (find_toplevel_char): Declare.
4145 (linespec_lexer_lex_keyword): Declare.
4146 * location.c (explicit_to_event_location): New function.
4147 (explicit_location_lex_one): New function.
4148 (string_to_explicit_location): New function.
4149 (string_to_event_location): Handle explicit locations.
4150 * location.h (explicit_to_event_location): Declare.
4151 (string_to_explicit_location): Declare.
4152
00e52e53
KS
41532015-08-11 Keith Seitz <keiths@redhat.com>
4154
4155 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4156 linespec into explicit location.
4157 * breakpoint.c (create_overlay_breakpoint)
4158 (create_longjmp_master_breakpoint)
4159 (create_std_terminate_master_breakpoint)
4160 (create_exception_master_breakpoint): Convert linespec into explicit
4161 location.
4162 (update_static_tracepoint): Convert linespec into explicit location.
4163 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4164 location.h.
4165 (struct linespec) <expression, expr_pc, source_filename>
4166 <function_name, label_name, line_offset>: Replace with ...
4167 <explicit>: ... this.
4168 <is_linespec>: New member.
4169 (PARSER_EXPLICIT): New accessor macro.
4170 (undefined_label_error): New function.
4171 (source_file_not_found_error): New function.
4172 (linespec_parse_basic): The parser result is now an explicit location.
4173 Use PARSER_EXPLICIT to access it.
4174 Use undefined_label_error.
4175 (canonicalize_linespec): Convert canonical linespec into explicit
4176 location.
4177 Move string representation of location to explicit_location_to_linespec
4178 and use it and explicit_location_to_string to save string
4179 representations of the canonical location.
4180 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4181 explicit location. Update all references.
4182 (convert_explicit_location_to_sals): New function.
4183 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4184 result's explicit location.
4185 (linespec_state_constructor): Initialize is_linespec.
4186 Use PARSER_EXPLICIT.
4187 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4188 result.
4189 (event_location_to_sals): For linespec locations, set is_linespec.
4190 Handle explicit locations.
4191 (decode_objc): 'ls' contains an explicit location now. Update all
4192 references.
4193 (symtabs_from_filename): Use source_file_not_found_error.
4194 * location.c (struct event_location.u) <explicit>: New member.
4195 (initialize_explicit_location): New function.
4196 (initialize_event_location): Initialize explicit locations.
4197 (new_explicit_location, get_explicit_location)
4198 (get_explicit_location_const): New functions.
4199 (explicit_to_string_internal): New function; most of contents moved
4200 from canonicalize_linespec.
4201 (explicit_location_to_string): New function.
4202 (explicit_location_to_linespec): New function.
4203 (copy_event_location, delete_event_location)
4204 (event_location_to_string_const, event_location_empty_p): Handle
4205 explicit locations.
4206 * location.h (enum offset_relative_sign, struct line_offset): Move
4207 here from linespec.h.
4208 (enum event_location_type): Add EXPLICIT_LOCATION.
4209 (struct explicit_location): New structure.
4210 (explicit_location_to_string): Declare.
4211 (explicit_location_to_linespec): Declare.
4212 (new_explicit_location, get_explicit_locationp
4213 (get_explicit_location_const, initialize_explicit_location): Declare.
4214
5b56227b
KS
42152015-08-11 Keith Seitz <keiths@redhat.com>
4216
4217 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4218 linespec for stap probe to probe location.
4219 * breakpoint.c (create_longjmp_master_breakpoint)
4220 (create_exception_master_breakpoint): Likewise.
4221 (break_command_1): Remove local variable `arg_cp'.
4222 Check location type to set appropriate breakpoint ops methods.
4223 (trace_command): Likewise.
4224 * linespec.c (event_location_to_sals): Assert on probe locations.
4225 * location.c (EL_PROBE): Add macro definition.
4226 (new_probe_location, get_probe_location): New functions.
4227 (copy_event_location, delete_event_location, event_location_to_string)
4228 (string_to_event_location, event_location_empty_p): Handle probe
4229 locations.
4230 * location.h (enum event_location_type): Add PROBE_LOCATION.
4231 (new_probe_location, get_probe_location): Declare.
4232 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4233 Convert linespec into probe location.
4234
a06efdd6
KS
42352015-08-11 Keith Seitz <keiths@redhat.com>
4236
4237 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4238 Convert linespec to address location.
4239 * linespec.c (canonicalize_linespec): Do not handle address
4240 locations here.
4241 (convert_address_location_to_sals): New function; contents moved
4242 from ...
4243 (convert_linespc_to_sals): ... here.
4244 (parse_linespec): Remove address locations from linespec grammar.
4245 Remove handling of address locations.
4246 (linespec_lex_to_end): Remove handling of address linespecs.
4247 (event_location_to_sals): Handle ADDRESS_LOCATION.
4248 (linespec_expression_to_pc): Export.
4249 * linespec.h (linespec_expression_to_pc): Add declaration.
4250 * location.c (struct event_location.u) <address>: New member.
4251 (new_address_location, get_address_location): New functions.
4252 (copy_event_location, delete_event_location, event_location_to_string)
4253 (string_to_event_location, event_location_empty_p): Handle address
4254 locations.
4255 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4256 (new_address_location, get_address_location): Declare.
4257 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4258 to address location.
4259 * spu-tdep.c (spu_catch_start): Likewise.
4260
f00aae0f
KS
42612015-08-11 Keith Seitz <keiths@redhat.com>
4262
4263 * ax-gdb.c: Include location.h.
4264 (agent_command_1) Use linespec location instead of address
4265 string.
4266 * break-catch-throw.c: Include location.h.
4267 (re_set_exception_catchpoint): Use linespec locations instead
4268 of address strings.
4269 * breakpoint.c: Include location.h.
4270 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4271 (create_std_terminate_master_breakpoint)
4272 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4273 Use linespec location instead of address string.
4274 (print_breakpoint_location): Use locations and
4275 event_location_to_string.
4276 Print extra_string for pending locations for non-MI streams.
4277 (print_one_breakpoint_location): Use locations and
4278 event_location_to_string.
4279 (init_raw_breakpoint_without_location): Initialize b->location.
4280 (create_thread_event_breakpoint): Use linespec location instead of
4281 address string.
4282 (init_breakpoint_sal): Likewise.
4283 Only save extra_string if it is non-NULL and not the empty string.
4284 Use event_location_to_string instead of `addr_string'.
4285 Constify `p' and `endp'.
4286 Use skip_spaces_const/skip_space_const instead of non-const versions.
4287 Copy the location into the breakpoint.
4288 If LOCATION is NULL, save the breakpoint address as a linespec location
4289 instead of an address string.
4290 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4291 event_location. All uses updated.
4292 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4293 (parse_breakpoint_sals): Use locations instead of address strings.
4294 Remove check for empty linespec with conditional.
4295 Refactor.
4296 (decode_static_tracepoint_spec): Make argument const and update
4297 function.
4298 (create_breakpoint): Change `arg' to a struct event_location and
4299 rename.
4300 Remove `copy_arg' and `addr_start'.
4301 If EXTRA_STRING is empty, set it to NULL.
4302 Don't populate `canonical' for pending breakpoints.
4303 Pass `extra_string' to find_condition_and_thread.
4304 Clear `extra_string' if `rest' was NULL.
4305 Do not error with "garbage after location" if setting a dprintf
4306 breakpoint.
4307 Copy the location into the breakpoint instead of an address string.
4308 (break_command_1): Use string_to_event_location and pass this to
4309 create_breakpoint instead of an address string.
4310 Check against `arg_cp' for a probe linespec.
4311 (dprintf_command): Use string_to_event_location and pass this to
4312 create_breakpoint instead of an address string.
4313 Throw an exception if no format string was specified.
4314 (print_recreate_ranged_breakpoint): Use event_location_to_string
4315 instead of address strings.
4316 (break_range_command, until_break_command)
4317 (init_ada_exception_breakpoint): Use locations instead
4318 of address strings.
4319 (say_where): Print out extra_string for pending locations.
4320 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4321 the breakpoint.
4322 (base_breakpoint_create_sals_from_location): Use struct event_location
4323 instead of address string.
4324 Remove `addr_start' and `copy_arg' parameters.
4325 (base_breakpoint_decode_location): Use struct event_location instead of
4326 address string.
4327 (bkpt_re_set): Use locations instead of address strings.
4328 Use event_location_empty_p to check for unset location.
4329 (bkpt_print_recreate): Use event_location_to_string instead of
4330 an address string.
4331 Print out extra_string for pending locations.
4332 (bkpt_create_sals_from_location, bkpt_decode_location)
4333 (bkpt_probe_create_sals_from_location): Use struct event_location
4334 instead of address string.
4335 (bkpt_probe_decode_location): Use struct event_location instead of
4336 address string.
4337 (tracepoint_print_recreate): Use event_location_to_string to
4338 recreate the tracepoint.
4339 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4340 (tracepoint_probe_create_sals_from_location)
4341 (tracepoint_probe_decode_location): Use struct event_location
4342 instead of address string.
4343 (dprintf_print_recreate): Use event_location_to_string to recreate
4344 the dprintf.
4345 (dprintf_re_set): Remove check for valid/missing format string.
4346 (strace_marker_create_sals_from_location)
4347 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4348 (update_static_tracepoint): Use struct event_location instead of
4349 address string.
4350 (location_to_sals): Likewise.
4351 Pass `extra_string' to find_condition_and_thread.
4352 For newly resolved pending breakpoint locations, clear the location's
4353 string representation.
4354 Assert that the breakpoint's condition string is NULL when
4355 condition_not_parsed.
4356 (breakpoint_re_set_default, create_sals_from_location_default)
4357 (decode_location_default, trace_command, ftrace_command)
4358 (strace_command, create_tracepoint_from_upload): Use locations
4359 instead of address strings.
4360 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4361 Use struct event_location instead of address string.
4362 Update all uses.
4363 <decode_location>: Likewise.
4364 (struct breakpoint) <addr_string>: Change to struct event_location
4365 and rename `location'.
4366 <addr_string_range_end>: Change to struct event_location and rename
4367 `location_range_end'.
4368 (create_breakpoint): Use struct event_location instead of address
4369 string.
4370 * cli/cli-cmds.c: Include location.h.
4371 (edit_command, list_command): Use locations instead of address strings.
4372 * elfread.c: Include location.h.
4373 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4374 * guile/scm-breakpoint.c: Include location.h.
4375 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4376 (gdbscm_register_breakpoint): Use locations instead of address
4377 strings.
4378 * linespec.c: Include location.h.
4379 (struct ls_parser) <stream>: Change to const char *.
4380 (PARSER_STREAM): Update.
4381 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4382 keywords must be followed by whitespace.
4383 (canonicalize_linespec): Save a linespec location into `canonical'.
4384 Save a canonical linespec into `canonical'.
4385 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4386 All uses updated.
4387 Update function description.
4388 (linespec_parser_new): Initialize `parser'.
4389 Update initialization of parsing stream.
4390 (event_location_to_sals): New function.
4391 (decode_line_full): Change `argptr' to a struct event_location and
4392 rename it `location'.
4393 Use locations instead of address strings.
4394 Call event_location_to_sals instead of parse_linespec.
4395 (decode_line_1): Likewise.
4396 (decode_line_with_current_source, decode_line_with_last_displayed)
4397 Use locations instead of address strings.
4398 (decode_objc): Likewise.
4399 Change `argptr' to const char * and rename `arg'.
4400 (destroy_linespec_result): Delete the linespec result's location
4401 instead of freeing the address string.
4402 * linespec.h (struct linespec_result) <addr_string>: Change to
4403 struct event_location and rename to ...
4404 <location>: ... this.
4405 (decode_line_1, decode_line_full): Change `argptr' to struct
4406 event_location. All callers updated.
4407 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4408 (mi_cmd_break_insert_1): Use locations instead of address strings.
4409 Throw an error if there was "garbage" at the end of the specified
4410 linespec.
4411 * probe.c: Include location.h.
4412 (parse_probes): Change `argptr' to struct event_location.
4413 Use event locations instead of address strings.
4414 * probe.h (parse_probes): Change `argptr' to struct event_location.
4415 * python/py-breakpoint.c: Include location.h.
4416 (bppy_get_location): Constify local variable `str'.
4417 Use event_location_to_string.
4418 (bppy_init): Use locations instead of address strings.
4419 * python/py-finishbreakpoint.c: Include location.h.
4420 (bpfinishpy_init): Remove local variable `addr_str'.
4421 Use locations instead of address strings.
4422 * python/python.c: Include location.h.
4423 (gdbpy_decode_line): Use locations instead of address strings.
4424 * remote.c: Include location.h.
4425 (remote_download_tracepoint): Use locations instead of address
4426 strings.
4427 * spu-tdep.c: Include location.h.
4428 (spu_catch_start): Remove local variable `buf'.
4429 Use locations instead of address strings.
4430 * tracepoint.c: Include location.h.
4431 (scope_info): Use locations instead of address strings.
4432 (encode_source_string): Constify parameter `src'.
4433 * tracepoint.h (encode_source_string): Likewise.
4434
c7c1b3e9
KS
44352015-08-11 Keith Seitz <keiths@redhat.com>
4436
4437 * Makefile.in (SFILES): Add location.c.
4438 (HFILES_NO_SRCDIR): Add location.h.
4439 (COMMON_OBS): Add location.o.
4440 * linespec.c (linespec_lex_to_end): New function.
4441 * linespec.h (linespec_lex_to_end): Declare.
4442 * location.c: New file.
4443 * location.h: New file.
4444
5f700d83
KS
44452015-08-11 Keith Seitz <keiths@redhat.com>
4446
4447 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4448 Renamed to create_sals_from_location.
4449 <decode_linespec>: Renamed to decode_location.
4450 Update all callers.
4451 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4452 (create_sals_from_location_default): ... this.
4453 (addr_string_to_sals): Renamed to ...
4454 (location_to_sals): ... this.
4455 (decode_linespec_default): Renamed to ...
4456 (decode_location_default): ... this.
4457 (base_breakpoint_create_sals_from_address): Renamed to ...
4458 (base_breakpoint_create_sals_from_location): ... this.
4459 (bkpt_create_sals_from_address): Renamed to ...
4460 (bkpt_create_sals_from_location): ... this.
4461 (bkpt_decode_linespec): Renamed to ...
4462 (bkpt_decode_location): ... this.
4463 (bkpt_probe_create_sals_from_address): Renamed to ...
4464 (bkpt_probe_create_sals_from_location): ... this.
4465 (tracepoint_create_sals_from_address): Renamed to ...
4466 (tracepoint_create_sals_from_location): ... this.
4467 (tracepoint_decode_linespec): Renamed to ...
4468 (tracepoint_decode_location): ... this.
4469 (tracepoint_probe_create_sals_from_address): Renamed to ...
4470 (tracepoint_probe_create_sals_from_location): ... this.
4471 (tracepoint_probe_decode_linespec): Renamed to ...
4472 (tracepoint_probe_decode_location): ... this.
4473 (strace_marker_create_sals_from_address): Renamed to ...
4474 (strace_marker_create_sals_from_location): ... this.
4475 (decode_linespec_default): Renamed to ...
4476 (decode_location_default): ... this.
4477
e27852be
DE
44782015-08-10 Doug Evans <dje@google.com>
4479 Keith Seitz <keiths@redhat.com>
4480
4481 PR gdb/17960
4482 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4483 make_file_symbol_completion_list and made static.
4484 (make_file_symbol_completion_list): New function.
80af41e0 4485
fd7dcb94
JB
44862015-08-10 Joel Brobecker <brobecker@adacore.com>
4487
4488 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4489 trailing new-line at end of warning message.
4490 (proceed): Add i18n marker to error messages.
4491
f12899e9
PA
44922015-08-07 Pedro Alves <palves@redhat.com>
4493
4494 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4495
5ac21343
PA
44962015-08-07 Pedro Alves <palves@redhat.com>
4497
4498 * s390-linux-tdep.c (is_non_branch_ril)
4499 (s390_displaced_step_copy_insn): New functions.
4500 (s390_displaced_step_fixup): Update comment.
4501 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4502 gdbarch_displaced_step_copy_insn hook.
4503
7f03bd92
PA
45042015-08-07 Pedro Alves <palves@redhat.com>
4505
4506 * infrun.c (displaced_step_prepare_throw): Return -1 if
4507 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4508 comment.
4509 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4510 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4511 in file.
4512 (ppc_displaced_step_copy_insn): New function.
4513 (ppc_displaced_step_fixup): Update comment.
4514 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4515 gdbarch_displaced_step_copy_insn hook.
4516 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4517 NULL return.
4518 * gdbarch.h: Regenerate.
4519
3fc8eb30
PA
45202015-08-07 Pedro Alves <palves@redhat.com>
4521
4522 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4523 field.
4524 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4525 Return false if dispaced stepping failed before.
4526 (resume): Pass the current inferior to
4527 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4528 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4529 displaced_stepping_failed flag, and fall back to an in-line
4530 step-over.
4531
bfedc46a
PA
45322015-08-07 Pedro Alves <palves@redhat.com>
4533
4534 * darwin-nat.c (darwin_stop): Rename to ...
4535 (darwin_interrupt): ... this.
4536 (_initialize_darwin_inferior): Adjust.
4537 * gnu-nat.c (gnu_stop): Delete.
4538 (gnu_target): Don't install gnu_stop.
4539 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4540 (inf_ptrace_interrupt): ... this.
4541 (inf_ptrace_target): Adjust.
4542 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4543 target_stop.
4544 * linux-nat (linux_nat_stop): Rename to ...
4545 (linux_nat_interrupt): ... this.
4546 (linux_nat_stop): Reimplement.
4547 (linux_nat_add_target): Install linux_nat_interrupt.
4548 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4549 (nto_handle_sigint_twice): ... this.
4550 (nto_interrupt): Rename to ...
4551 (nto_handle_sigint): ... this. Call target_interrupt instead of
4552 target_stop.
4553 (procfs_wait): Adjust.
4554 (procfs_stop): Rename to ...
4555 (procfs_interrupt): ... this.
4556 (init_procfs_targets): Adjust.
4557 * procfs.c (procfs_stop): Rename to ...
4558 (procfs_interrupt): ... this.
4559 (procfs_target): Adjust.
4560 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4561 (m32r_interrupt): ... this.
4562 (init_m32r_ops): Adjust.
4563 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4564 (gdbsim_interrupt_inferior): ... this.
4565 (gdbsim_stop): Rename to ...
4566 (gdbsim_interrupt): ... this.
4567 (gdbsim_cntrl_c): Adjust.
4568 (init_gdbsim_ops): Adjust.
4569 * remote.c (sync_remote_interrupt): Adjust comments.
4570 (remote_stop_as): Rename to ...
4571 (remote_interrupt_as): ... this.
4572 (remote_stop): Adjust comment.
4573 (remote_interrupt): New function.
4574 (init_remote_ops): Install remote_interrupt.
4575 * target.c (target_interrupt): New function.
4576 * target.h (struct target_ops) <to_interrupt>: New field.
4577 (target_interrupt): New declaration.
4578 * windows-nat.c (windows_stop): Rename to ...
4579 (windows_interrupt): ... this.
4580 * target-delegates.c: Regenerate.
4581
d55007b5
PA
45822015-08-07 Pedro Alves <palves@redhat.com>
4583
4584 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4585 threads" as alternative to "switching back to stepped thread".
4586
fbea99ea
PA
45872015-08-07 Pedro Alves <palves@redhat.com>
4588
4589 * NEWS: Mention "maint set/show target-non-stop".
4590 * breakpoint.c (update_global_location_list): Check
4591 target_is_non_stop_p instead of non_stop.
4592 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4593 * infrun.c (show_can_use_displaced_stepping)
4594 (can_use_displaced_stepping_p, start_step_over_inferior):
4595 Likewise.
4596 (internal_resume_ptid): New function.
4597 (resume): Use it.
4598 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4599 all-stop mode but the target is always in non-stop mode, start all
4600 the other threads that are implicitly resumed too.
4601 (for_each_just_stopped_thread, fetch_inferior_event)
4602 (adjust_pc_after_break, stop_all_threads): Check
4603 target_is_non_stop_p instead of non_stop.
4604 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4605 with the target always in non-stop mode.
4606 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4607 instead of non_stop.
4608 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4609 instead of non_stop.
4610 (keep_going_stepped_thread): Use internal_resume_ptid.
4611 (stop_waiting): If in all-stop mode, and the target is in non-stop
4612 mode, stop all threads.
4613 (keep_going_pass): Likewise, when starting a new in-line step-over
4614 sequence.
4615 * linux-nat.c (get_pending_status, select_event_lwp)
4616 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4617 target_is_non_stop_p instead of non_stop.
4618 (linux_nat_always_non_stop_p): New function.
4619 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4620 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4621 * target-delegates.c: Regenerate.
4622 * target.c (target_is_non_stop_p): New function.
4623 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4624 (maint_set_target_non_stop_command)
4625 (maint_show_target_non_stop_command): New functions.
4626 (_initilize_target): Install "maint set/show target-non-stop"
4627 commands.
4628 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4629 (target_non_stop_enabled): New declaration.
4630 (target_is_non_stop_p): New declaration.
4631
372316f1
PA
46322015-08-07 Pedro Alves <pedro@codesourcery.com>
4633
4634 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4635 has a pending status, return true.
4636 * gdbthread.h: Include target/waitstatus.h.
4637 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4638 stop_pc>: New fields.
4639 (struct thread_info) <resumed>: New field.
4640 (set_resumed): Declare.
4641 * infrun.c: Include "event-loop.h".
4642 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4643 (infrun_async): New function.
4644 (clear_step_over_info): Add debug output.
4645 (displaced_step_in_progress_any_inferior): New function.
4646 (displaced_step_fixup): New returns int.
4647 (start_step_over): Handle in-line step-overs too. Assert the
4648 thread is marked resumed.
4649 (resume_cleanups): Clear the thread's resumed flag.
4650 (resume): Set the thread's resumed flag. Return early if the
4651 thread has a pending status. Allow stepping a breakpoint with no
4652 signal.
4653 (proceed): Adjust to check 'resumed' instead of 'executing'.
4654 (clear_proceed_status_thread): If the thread has a pending status,
4655 and that status is a finished step, discard the pending status.
4656 (clear_proceed_status): Don't clear step_over_info here.
4657 (random_pending_event_thread, do_target_wait): New functions.
4658 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4659 do_target_wait.
4660 (wait_one): New function.
4661 (THREAD_STOPPED_BY): New macro.
4662 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4663 (thread_stopped_by_hw_breakpoint): New functions.
4664 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4665 functions.
4666 (handle_inferior_event): Also call set_resumed(false) on all
4667 threads implicitly stopped by the event.
4668 (restart_threads, resumed_thread_with_pending_status): New
4669 functions.
4670 (finish_step_over): If we were doing an in-line step-over before,
4671 and no longer are after trying to start a new step-over, restart
4672 all threads. If we have multiple threads with pending events,
4673 save the current event and go through the event loop again.
4674 (handle_signal_stop): Return early if finish_step_over returns
4675 false.
4676 <random signal>: If we get a signal while stepping over a
4677 breakpoint in-line in non-stop mode, restart all threads. Clear
4678 step_over_info before delivering the signal.
4679 (keep_going_stepped_thread): Use internal_error instead of
4680 gdb_assert. Mark the thread as resumed.
4681 (keep_going_pass_signal): Assert the thread isn't already resumed.
4682 If some other thread is doing an in-line step-over, defer the
4683 resume. If we just started a new in-line step-over, stop all
4684 threads. Don't clear step_over_info.
4685 (infrun_async_inferior_event_handler): New function.
4686 (_initialize_infrun): Create async event handler with
4687 infrun_async_inferior_event_handler as callback.
4688 (infrun_async): New declaration.
4689 * target.c (target_async): New function.
4690 * target.h (target_async): Declare macro and readd as function
4691 declaration.
4692 * target/waitstatus.h (enum target_stop_reason)
4693 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4694 * thread.c (new_thread): Clear the new waitstatus field.
4695 (set_resumed): New function.
4696
2ac7589c
PA
46972015-08-07 Pedro Alves <palves@redhat.com>
4698
4699 * infrun.c (keep_going_stepped_thread): New function, factored out
4700 from ...
4701 (switch_back_to_stepped_thread): ... here.
4702
8b061563
PA
47032015-08-07 Pedro Alves <palves@redhat.com>
4704
4705 * infrun.c (currently_stepping): Extend intro comment.
4706 * target.h (target_resume): Extend intro comment.
4707
1afd5965
PA
47082015-08-07 Pedro Alves <palves@redhat.com>
4709
4710 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4711 of inferior_ptid. If the stepped thread vanished, return 0
4712 instead of resuming here. Use reset_ecs. Print the prev_pc and
4713 the current stop_pc in log message. Clear trap_expected if the
4714 thread advanced. Don't pass currently_stepping to
4715 do_target_resume.
4716
4d9d9d04
PA
47172015-08-07 Pedro Alves <palves@redhat.com>
4718
4719 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4720 * infrun.c (struct execution_control_state): Move higher up in the
4721 file.
4722 (reset_ecs): New function.
4723 (start_step_over): Now returns int. Rewrite to use
4724 keep_going_pass_signal instead of manually starting a displaced step.
4725 (resume): Don't call set_running here. If displaced stepping
4726 can't start now, clear trap_expected.
4727 (find_thread_needs_step_over): Delete function.
4728 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4729 If the current thread needs a step over, push it in the step-over
4730 chain. Don't set insert breakpoints nor call resume directly
4731 here. Instead rewrite to use start_step_over and
4732 keep_going_pass_signal.
4733 (finish_step_over): New function.
4734 (handle_signal_stop): Call finish_step_over instead of
4735 start_step_over.
4736 (switch_back_to_stepped_thread): If the event thread needs another
4737 step-over do that first. Use start_step_over.
4738 (keep_going_pass_signal): New function, factored out from ...
4739 (keep_going): ... here.
4740 (_initialize_infrun): Comment moved here.
4741 * thread.c (set_running_thread): New function.
4742 (set_running, finish_thread_state): Use set_running_thread.
4743
c2829269
PA
47442015-08-07 Pedro Alves <palves@redhat.com>
4745
4746 * gdbthread.h (struct thread_info) <step_over_prev,
4747 step_over_next>: New fields.
4748 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4749 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4750 declarations.
4751 * infrun.c (struct displaced_step_request): Delete.
4752 (struct displaced_step_inferior_state) <step_request_queue>:
4753 Delete field.
4754 (displaced_step_prepare): Assert that trap_expected is set. Use
4755 thread_step_over_chain_enqueue. Split starting a new displaced
4756 step to ...
4757 (start_step_over): ... this new function.
4758 (resume): Assert the thread isn't waiting for a step over already.
4759 (proceed): Assert the thread isn't waiting for a step over
4760 already.
4761 (infrun_thread_stop_requested): Adjust to remove threads from the
4762 embedded step-over chain.
4763 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4764 displaced_step_fixup.
4765 (handle_signal_stop): Call start_step_over after
4766 displaced_step_fixup.
4767 * infrun.h (step_over_queue_head): New declaration.
4768 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4769 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4770 (thread_step_over_chain_enqueue)
4771 (thread_step_over_chain_remove): New functions.
4772 (delete_thread_1): Remove thread from the step-over chain.
4773
6c4cfb24
PA
47742015-08-07 Pedro Alves <palves@redhat.com>
4775
4776 * infrun.c (thread_still_needs_step_over): Rename to ...
4777 (thread_still_needs_step_over_bp): ... this.
4778 (enum step_over_what): New.
4779 (thread_still_needs_step_over): Reimplement.
4780
567420d1
PA
47812015-08-07 Pedro Alves <palves@redhat.com>
4782
4783 * remote.c (remote_wait_as): If not waiting for a stop reply,
4784 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4785 requested, don't block waiting forever.
4786
d8dd4d5f
PA
47872015-08-07 Pedro Alves <pedro@codesourcery.com>
4788
4789 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4790 waitstatus pointers instead of an ecs. Adjust.
4791 (handle_inferior_event): Adjust caller.
4792
e1316e60
PA
47932015-08-07 Pedro Alves <palves@redhat.com>
4794
4795 * infrun.c (handle_inferior_event): If we get
4796 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4797 mode, mark all threads of the exiting process as not-executing.
4798 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4799 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4800 exiting process, if inferior_ptid still points at a process.
4801 * thread.c (struct current_thread_cleanup) <next>: New field.
4802 (current_thread_cleanup_chain): New global.
4803 (restore_current_thread_ptid_changed): New function.
4804 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4805 current_thread_cleanup_chain list.
4806 (make_cleanup_restore_current_thread): Add the cleanup data to the
4807 current_thread_cleanup_chain list.
4808 (_initialize_thread): Install restore_current_thread_ptid_changed
4809 as thread_ptid_changed observer.
4810
47e9c225
JB
48112015-08-07 Joel Brobecker <brobecker@adacore.com>
4812
4813 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4814 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4815 smaller than expected.
4816
06096720
AB
48172015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * stack.c (get_frame_language): Moved ...
4820 * frame.c (get_frame_language): ... to here.
4821 * language.h (get_frame_language): Declaration moved to frame.h.
4822 * frame.h: Add language.h include, for language enum.
4823 (get_frame_language): Declaration moved from language.h.
4824 * language.c: Add frame.h include.
4825 * top.c: Add frame.h include.
4826 * symtab.h (struct obj_section): Declare.
4827 (struct cmd_list_element): Declare.
4828
7ff38b1c
AB
48292015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * language.c (show_language_command): Find selected frame before
4832 asking for the language of that frame.
4833 (set_language_command): Likewise.
4834 * language.h (get_frame_language): Add frame parameter.
4835 * stack.c (get_frame_language): Add frame parameter, assert
4836 parameter is not NULL, update comment and reindent.
4837 * top.c (check_frame_language_change): Pass the selected frame
4838 into get_frame_language.
4839
da8c46d2
MM
48402015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4841
4842 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4843 (pt_btrace_insn_flags): New.
4844 (ftrace_add_pt): Call pt_btrace_insn_flags.
4845 * btrace.h (btrace_insn_flag): New.
4846 (btrace_insn) <flags>: New.
4847 * record-btrace.c (btrace_insn_history): Print insn prefix.
4848 * NEWS: Announce it.
4849
5599c404
MM
48502015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4851
4852 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4853 * configure: Regenerate.
4854
016a3251
DD
48552015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4856
4857 * Makefile.in (LIBICONV): Define.
4858 (CLIBS): Add LIBICONV.
4859 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4860 * configure: Regenerate.
4861
aead7601
SM
48622015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4863 Pedro Alves <palves@redhat.com>
4864
4865 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4866 (arm_set_abi): Likewise.
4867 * ax-general.c (ax_print): Likewise.
4868 * c-exp.y (exp : string_exp): Likewise.
4869 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4870 (do_compile_dwarf_expr_to_c): Likewise.
4871 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4872 Likewise.
4873 * dwarf2expr.c (execute_stack_op): Likewise.
4874 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4875 (disassemble_dwarf_expression): Likewise.
4876 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4877 (read_array_order): Likewise.
4878 (abbrev_table_read_table): Likewise.
4879 (read_attribute_value): Likewise.
4880 (skip_unknown_opcode): Likewise.
4881 (dwarf_decode_macro_bytes): Likewise.
4882 (dwarf_decode_macros): Likewise.
4883 * eval.c (value_f90_subarray): Likewise.
4884 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4885 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4886 * infrun.c (handle_command): Likewise.
4887 * memory-map.c (memory_map_start_memory): Likewise.
4888 * osabi.c (set_osabi): Likewise.
4889 * parse.c (operator_length_standard): Likewise.
4890 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4891 single return point.
4892 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4893 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4894 (gdbpy_lookup_global_symbol): Likewise.
4895 * record-full.c (record_full_restore): Likewise.
4896 * regcache.c (regcache_register_status): Likewise.
4897 (regcache_raw_read): Likewise.
4898 (regcache_cooked_read): Likewise.
4899 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4900 * symtab.c (initialize_ordinary_address_classes): Likewise.
4901 * target-debug.h (target_debug_print_signals): Likewise.
4902 * utils.c (do_restore_current_language): Likewise.
4903
ca0a5f0b
CD
49042015-08-06 Clem Dickey <clemd@acm.org>
4905
4906 PR python/17136
4907 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4908
05d999b0
SM
49092015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4910
4911 * complaints.c (enum complaint_series): Add newlines and remove
4912 out of date comment.
4913 (struct complaints) <series>: Change type to enum
4914 complaint_series and remove out of date comment.
4915 (symfile_complaint_hook): Use equivalent enum value
4916 ISOLATED_MESSAGE instead of 0.
4917
bf47e248
PA
49182015-08-06 Pedro Alves <palves@redhat.com>
4919
4920 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4921 returned > 0.
4922
b6b9ffcc
PL
49232015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4924
4925 * common/agent.c (symbol_list) <required>: Remove.
4926
863d01bd
PA
49272015-08-06 Pedro Alves <palves@redhat.com>
4928
4929 * target/waitstatus.h (enum target_stop_reason)
4930 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4931
0a39bb32
PA
49322015-08-05 Pedro Alves <palves@redhat.com>
4933 Joel Brobecker <brobecker@adacore.com>
4934
9d996aba 4935 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4936 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4937 case where BS->STOP is not set.
4938
260439cb
UW
49392015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4940
4941 * nat/gdb_thread_db.h: Add copyright header.
4942 Protect against multiple inclusion.
4943
d89fa914
YQ
49442015-08-05 Yao Qi <yao.qi@linaro.org>
4945
4946 * aarch64-linux-nat.c (get_thread_id): Remove.
4947 (debug_reg_change_callback): Call ptid_get_lwp instead of
4948 get_thread_id.
4949 (fetch_gregs_from_thread): Likewise.
4950 (store_gregs_to_thread): Likewise.
4951 (fetch_fpregs_from_thread): Likewise.
4952 (store_fpregs_to_thread): Likewise.
4953 (aarch64_linux_get_debug_reg_capacity): Likewise.
4954 * arm-linux-nat.c (get_thread_id): Remove.
4955 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4956 * xtensa-linux-nat.c (get_thread_id): Remove.
4957 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4958 * arm-linux-nat.c (get_thread_id): Remove.
4959 (GET_THREAD_ID): Remove.
4960 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4961 (store_fpregs, fetch_regs, store_regs): Likewise.
4962 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4963 (fetch_vfp_regs, store_vfp_regs): Likewise.
4964 (arm_linux_read_description): Likewise.
4965 (arm_linux_get_hwbp_cap): Likewise.
4966 * xtensa-linux-nat.c (get_thread_id): Remove.
4967 (GET_THREAD_ID): Remove.
4968 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4969 GET_THREAD_ID.
4970
4efd80aa
CS
49712015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4972
4973 * python/py-linetable.c: Fix case of Linetable to LineTable
4974 in docstrings and code comments.
4975 * python/py-symtab.c: Same.
4976
c6343a91
JK
49772015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4978
4979 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4980
978b9495
JK
49812015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4982
4983 PR gdb/18767
4984 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4985 use.
4986
96e9210f
PA
49872015-08-04 Pedro Alves <palves@redhat.com>
4988
4989 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4990 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4991 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4992 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4993 (td_thr_validate_ftype, td_thr_get_info_ftype)
4994 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4995 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4996 New typedefs.
4997 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4998 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4999 local macros and use them instead of verbose_dlsym and dlsym
5000 calls.
5001
af60a1ef
SL
50022015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5003
5004 * nios2-tdep.h: Include opcode/nios2.h here.
5005 (NIOS2_CDX_OPCODE_SIZE): New.
5006 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5007 * nios2-tdep.c: Don't include opcode/nios2.h here.
5008 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5009 4-byte read fails.
5010 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5011 (nios2_match_addi, nios2_match_orhi): Likewise.
5012 (nios2_match_stw, nios2_match_ldw): Likewise.
5013 (nios2_match_rdctl): Likewise.
5014 (nios2_match_stwm, nios2_match_ldwm): New.
5015 (nios2_match_branch): Add cases for R2 encodings.
5016 (nios2_match_jmpi, nios2_match_calli): Likewise.
5017 (nios2_match_jmpr, nios2_match_callr): Likewise.
5018 (nios2_match_break, nios2_match_trap): Likewise.
5019 (nios2_in_epilogue_p): Add R2 support.
5020 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5021 prologues.
5022 (nios2_breakpoint_from_pc): Handle R2 instructions.
5023 (nios2_get_next_pc): Likewise. Adjust call to
5024 tdep->syscall_next_pc.
5025 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5026 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5027 instruction field macros instead of literal hex values.
5028 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5029 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5030 Use size field from OP instead of assuming all instructions
5031 are the same size.
5032 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5033
1da03605
UW
50342015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5035
5036 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5037 variable warning with some compilers.
5038
8156fe7f
YQ
50392015-08-03 Yao Qi <yao.qi@linaro.org>
5040
5041 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5042 in comment. Replace "rw" with "type".
5043 (arm_linux_remove_watchpoint): Change type of "rw" to
5044 "enum target_hw_bp_type".
5045
835a09d9
PMR
50462015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5047
5048 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5049 lookup_symbol.
5050 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5051 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5052 * mt-tdep.c (mt_skip_prologue): Likewise.
5053 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5054
d12307c1
PMR
50552015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5056
5057 * ada-exp.y (write_object_renaming): Replace struct
5058 ada_symbol_info with struct block_symbol. Update field
5059 references accordingly.
5060 (block_lookup, select_possible_type_sym): Likewise.
5061 (find_primitive_type): Likewise. Also update call to
5062 ada_lookup_symbol to extract the symbol itself.
5063 (write_var_or_type, write_name_assoc): Likewise.
5064 * ada-lang.h (struct ada_symbol_info): Remove.
5065 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5066 struct block_symbol.
5067 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5068 (ada_lookup_symbol): Return struct block_symbol instead of a
5069 mere symbol.
5070 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5071 with struct block_symbol.
5072 (resolve_subexp, ada_resolve_function, sort_choices,
5073 user_select_syms, is_nonfunction, add_defn_to_vec,
5074 num_defns_collected, defns_collected,
5075 symbols_are_identical_enums, remove_extra_symbols,
5076 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5077 ada_lookup_symbol_list, ada_iterate_over_symbols,
5078 ada_lookup_encoded_symbol, get_var_value): Likewise.
5079 (ada_lookup_symbol): Return a block_symbol instead of a mere
5080 symbol. Replace struct ada_symbol_info with struct
5081 block_symbol.
5082 (ada_lookup_symbol_nonlocal): Likewise.
5083 (standard_lookup): Make block passing explicit through
5084 lookup_symbol_in_language.
5085 * ada-tasks.c (get_tcb_types_info): Update the calls to
5086 lookup_symbol_in_language to extract the mere symbol out of the
5087 returned value.
5088 (ada_tasks_inferior_data_sniffer): Likewise.
5089 * ax-gdb.c (gen_static_field): Likewise for the call to
5090 lookup_symbol.
a5fdf78a 5091 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5092 lookup functions.
5093 (gen_expr): Likewise.
5094 * c-exp.y: Likewise. Remove uses of block_found.
5095 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5096 (classify_name): Likewise. Rename the "sym" local variable to
5097 "bsym".
5098 * c-valprint.c (print_unpacked_pointer): Likewise.
5099 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5100 "sym" parameter from struct symbol * to struct block_symbol.
5101 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5102 block_symbol from lookup functions.
d12307c1
PMR
5103 (gcc_convert_symbol): Likewise. Update the call to
5104 convert_symbol_sym.
5105 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5106 struct block_symbol from lookup functions.
d12307c1
PMR
5107 * cp-namespace.c (cp_lookup_nested_symbol_1,
5108 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5109 cp_search_static_and_baseclasses,
5110 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5111 cp_lookup_symbol_imports_or_template,
5112 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5113 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5114 find_symbol_in_baseclass): Return struct block_symbol instead of
5115 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5116 functions.
5117 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5118 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5119 lookup functions.
5120 * cp-support.h (cp_lookup_symbol_nonlocal,
5121 cp_lookup_symbol_from_namespace,
5122 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5123 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5124 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5125 push_module_name):
a5fdf78a 5126 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5127 uses of block_found.
5128 * eval.c (evaluate_subexp_standard): Update call to
5129 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5130 * f-exp.y: Deal with struct block_symbol from lookup functions.
5131 Remove uses of block_found.
d12307c1
PMR
5132 (yylex): Likewise.
5133 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5134 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5135 struct block_symbol from lookup functions.
d12307c1
PMR
5136 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5137 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5138 (gdbscm_lookup_global_symbol): Likewise.
5139 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5140 * go-exp.y: Likewise. Remove uses of block_found.
5141 (package_name_p, classify_packaged_name, classify_name):
5142 Likewise.
5143 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5144 * jv-exp.y (push_variable): Likewise.
5145 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5146 * language.c (language_bool_type): Likewise.
5147 * language.h (struct language_defn): Update
a5fdf78a
PMR
5148 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5149 than a mere symbol.
5150 * linespec.c (find_label_symbols): Deal with struct block_symbol
5151 from lookup functions.
d12307c1
PMR
5152 * m2-exp.y: Likewise. Remove uses of block_found.
5153 (yylex): Likewise.
5154 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5155 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5156 * p-exp.y: Likewise. Remove uses of block_found.
5157 (yylex): Likewise.
5158 * p-valprint.c (pascal_val_print): Likewise.
5159 * parse.c (write_dollar_variable): Likewise. Remove uses of
5160 block_found.
5161 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5162 struct block_symbol.
5163 * printcmd.c (address_info): Deal with struct block_symbol from
5164 lookup functions.
d12307c1
PMR
5165 * python/py-frame.c (frapy_read_var): Likewise.
5166 * python/py-symbol.c (gdbpy_lookup_symbol,
5167 gdbpy_lookup_global_symbol): Likewise.
5168 * skip.c (skip_function_command): Likewise.
5169 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5170 block_symbol instead of a mere symbol.
d12307c1
PMR
5171 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5172 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5173 * solib.c (solib_global_lookup): Likewise.
5174 * solist.h (solib_global_lookup): Likewise.
5175 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5176 return a struct block_symbol rather than a mere symbol.
5177 * source.c (select_source_symtab): Deal with struct block_symbol
5178 from lookup functions.
d12307c1
PMR
5179 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5180 Likewise.
5181 * symfile.c (set_initial_language): Likewise.
5182 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5183 block_symbol.
d12307c1
PMR
5184 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5185 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5186 block_symbol.
d12307c1 5187 (block_found): Remove.
a5fdf78a 5188 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5189 cache slots.
a5fdf78a
PMR
5190 (symbol_cache_lookup): Return a struct block_symbol rather than
5191 a mere symbol.
d12307c1
PMR
5192 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5193 appropriately the cache slots. Update callers.
5194 (symbol_cache_dump): Update cache slots handling to the type
5195 change.
5196 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5197 lookup_symbol_aux, lookup_local_symbol,
5198 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5199 lookup_symbol_in_objfile_symtabs,
5200 lookup_symbol_in_objfile_from_linkage_name,
5201 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5202 lookup_symbol_in_static_block, lookup_static_symbol,
5203 lookup_global_symbol):
a5fdf78a
PMR
5204 Return a struct block_symbol rather than a mere symbol. Deal
5205 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5206 uses of block_found.
5207 (lookup_symbol_in_block): Remove uses of block_found.
5208 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5209 struct block_symbol.
d12307c1
PMR
5210 (lookup_symbol_global_iterator_cb): Update references to the
5211 RESULT field.
a5fdf78a 5212 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5213 functions.
a5fdf78a 5214 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5215 (block_found): Remove.
5216 (lookup_symbol_in_language, lookup_symbol,
5217 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5218 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5219 lookup_global_symbol_from_objfile): Return a struct block_symbol
5220 rather than just a mere symbol. Update comments to remove
5221 mentions of block_found.
d12307c1
PMR
5222 * valops.c (find_function_in_inferior,
5223 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5224 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5225 functions.
5226 * value.c (value_static_field, value_fn_field): Likewise.
5227
b1c59ddc
SM
52282015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5229
5230 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5231 instead of integer.
5232
f486487f 52332015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5234 Pedro Alves <palves@redhat.com>
f486487f
SM
5235
5236 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5237 type or value instead of integer.
5238 (aarch64_linux_insert_watchpoint): Likewise.
5239 (aarch64_linux_remove_watchpoint): Likewise.
5240 * ada-lang.c (ada_op_print_tab): Likewise.
5241 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5242 (amd64_linux_syscall_record_common): Likewise.
5243 * arch-utils.c (target_byte_order_user): Likewise.
5244 (default_byte_order): Likewise.
5245 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5246 (arm_linux_get_hwbp_type): Likewise.
5247 (arm_linux_hw_watchpoint_initialize): Likewise.
5248 (arm_linux_insert_watchpoint): Likewise.
5249 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5250 (arm_linux_syscall_record): Likewise.
5251 * breakpoint.c (update_watchpoint): Likewise.
5252 (breakpoint_here_p): Likewise.
5253 (bpstat_print): Likewise.
5254 (enable_breakpoint_disp): Likewise.
5255 * c-lang.c (c_op_print_tab): Likewise.
5256 * cli/cli-decode.c (add_info_alias): Likewise.
5257 * d-lang.c (d_op_print_tab): Likewise.
5258 * eval.c (evaluate_subexp_standard): Likewise.
5259 * f-exp.y (dot_ops): Likewise.
5260 (f77_keywords): Likewise.
5261 * f-lang.c (f_op_print_tab): Likewise.
5262 * go-lang.c (go_op_print_tab): Likewise.
5263 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5264 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5265 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5266 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5267 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5268 (struct scm_from_stringn_data): Likewise.
5269 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5270 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5271 (ia64_linux_remove_watchpoint): Likewise.
5272 (ia64_linux_can_use_hw_breakpoint): Likewise.
5273 * infrun.c (print_stop_event): Likewise.
5274 * jv-lang.c (java_op_print_tab): Likewise.
5275 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5276 * linux-nat.h (struct lwp_info): Likewise.
5277 * linux-thread-db.c (enable_thread_event): Likewise.
5278 * m2-lang.c (m2_op_print_tab): Likewise.
5279 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5280 (mi_cmd_stack_list_variables): Likewise.
5281 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5282 * mi/mi-out.c (mi_table_begin): Likewise.
5283 (mi_table_header): Likewise.
5284 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5285 (mips_linux_insert_watchpoint): Likewise.
5286 (mips_linux_remove_watchpoint): Likewise.
5287 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5288 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5289 (mips_linux_watch_type_to_irw): Likewise.
5290 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5291 (procfs_insert_hw_watchpoint): Likewise.
5292 (procfs_remove_hw_watchpoint): Likewise.
5293 (procfs_hw_watchpoint): Likewise.
5294 (procfs_can_use_hw_breakpoint): Likewise.
5295 (procfs_remove_hw_watchpoint): Likewise.
5296 (procfs_insert_hw_watchpoint): Likewise.
5297 * p-lang.c (pascal_op_print_tab): Likewise.
5298 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5299 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5300 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5301 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5302 (procfs_insert_watchpoint): Likewise.
5303 (procfs_remove_watchpoint): Likewise.
5304 * psymtab.c (recursively_search_psymtabs): Likewise.
5305 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5306 (m32r_insert_watchpoint): Likewise.
5307 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5308 (mips_insert_watchpoint): Likewise.
5309 (mips_remove_watchpoint): Likewise.
5310 * remote.c (watchpoint_to_Z_packet): Likewise.
5311 (remote_insert_watchpoint): Likewise.
5312 (remote_remove_watchpoint): Likewise.
5313 (remote_check_watch_resources): Likewise.
5314 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5315 (s390_remove_watchpoint): Likewise.
5316 (s390_can_use_hw_breakpoint): Likewise.
5317 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5318 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5319 * target.h (struct target_ops): Likewise.
5320 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5321 * ui-out.c (struct ui_out_hdr): Likewise.
5322 (append_header_to_list): Likewise.
5323 (get_next_header): Likewise.
5324 (verify_field): Likewise.
5325 (ui_out_begin): Likewise.
5326 (ui_out_field_int): Likewise.
5327 (ui_out_field_fmt_int): Likewise.
5328 (ui_out_field_skip): Likewise.
5329 (ui_out_field_string): Likewise.
5330 (ui_out_field_fmt): Likewise.
5331 * varobj.c (new_variable): Likewise.
5332 * x86-nat.c (x86_insert_watchpoint): Likewise.
5333 (x86_remove_watchpoint): Likewise.
5334 (x86_can_use_hw_breakpoint): Likewise.
5335 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5336 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5337 previously anonymous enumeration type..
5338 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5339 value.
5340 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5341 (target_debug_print_enum_bptype): New.
5342 * target-delegates.c: Regenerate.
5343
e1b5381f
SL
53442015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5345
5346 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5347 already says and disallow non-stack memory writes in the prologue.
5348
9aaf8e3a
SL
53492015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5350
5351 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5352 reflect how current GCC emits stack overflow checks. Match
5353 both trap and break instructions for backward compatbility.
5354 Disallow other trap and break instructions in the prologue.
5355
69dde7dc
PA
53562015-07-30 Pedro Alves <palves@redhat.com>
5357
5358 PR threads/18600
5359 * linux-nat.c (wait_lwp): Report to the core when thread group
5360 leader exits.
5361
4dd63d48
PA
53622015-07-30 Pedro Alves <palves@redhat.com>
5363 Simon Marchi <simon.marchi@ericsson.com>
5364
5365 PR threads/18600
5366 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5367 mark the new thread as resumed. Remove STOPPING parameter.
5368 (wait_lwp): Adjust call to linux_handle_extended_wait.
5369 (linux_nat_filter_event): Adjust call to
5370 linux_handle_extended_wait.
5371 (resume_stopped_resumed_lwps): Add debug output.
5372
6b940e6a
PL
53732015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5374
5375 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5376 isize argument.
5377 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5378 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5379 gdbarch_fast_tracepoint_valid_at.
5380 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5381 * gdbarch.h: Regenerate.
5382 * gdbarch.c: Regenerate.
5383 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5384 argument. Do not set it.
5385 * remote.c (remote_download_tracepoint): Adjust call to
5386 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5387 the instruction length.
5388
ec741292
YQ
53892015-07-30 Yao Qi <yao.qi@linaro.org>
5390
5391 * arm-tdep.h (enum gdb_regnum): Move it to ...
5392 * arch/arm.h: ... here. New file.
5393 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5394
0ea6402e
PL
53952015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5396
5397 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5398 Change its type to int *.
5399 (decode_br): Rename link argument to is_blr. Change its type to
5400 int *.
5401 (decode_cb): Rename op argument to is_cbnz. Change its type to
5402 int *.
5403 (decode_tb): Rename op argument to is_tbnz. Change its type to
5404 int *. Set is_tbnz to either 1 or 0.
5405 (aarch64_analyze_prologue): Change type of is_link to int. Add
5406 new variables is_cbnz and is_tbnz. Adjust call to
5407 aarch64_decode_cb and aarch64_decode_tb.
5408
aa58a496
SM
54092015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5410
5411 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5412 parameter.
5413 (mips_linux_new_thread): Likewise.
5414 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5415
18206ca3
PP
54162015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5417
5418 * top.c: Include "tui/tui.h".
5419 (undo_terminal_modifications_before_exit): New static function.
5420 (quit_force): Use it.
5421
7afa63c6
PP
54222015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5423
5424 * target.c (terminal_state): Initialize to terminal_is_ours.
5425
cc9f16aa
YQ
54262015-07-29 Yao Qi <yao.qi@linaro.org>
5427
5428 PR record/18691
5429 * dcache.c (dcache_read_memory_partial): Call
5430 raw_memory_xfer_partial.
5431 * target.c (raw_memory_xfer_partial): Make it non-static.
5432 * target.h (raw_memory_xfer_partial): Declare.
5433
3ae385af
SM
54342015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5435
5436 * c-valprint.c (c_val_print_array): Consider addressable memory
5437 unit size.
5438 (c_val_print_ptr): Likewise.
5439 (c_val_print_int): Likewise.
5440 * findvar.c (read_frame_register_value): Likewise.
5441 * valarith.c (find_size_for_pointer_math): Likewise.
5442 (value_ptrdiff): Likewise.
5443 (value_subscripted_rvalue): Likewise.
5444 * valops.c (read_value_memory): Likewise (and rename variables).
5445 (value_assign): Likewise.
5446 (value_repeat): Likewise.
5447 (value_array): Likewise.
5448 (value_slice): Likewise.
5449 * valprint.c (generic_val_print_ptr): Likewise.
5450 (generic_val_print_enum): Likewise.
5451 (generic_val_print_bool): Likewise.
5452 (generic_val_print_int): Likewise.
5453 (generic_val_print_char): Likewise.
5454 (generic_val_print_float): Likewise.
5455 (generic_val_print_decfloat): Likewise.
5456 (generic_val_print_complex): Likewise.
5457 (val_print_scalar_formatted): Likewise.
5458 (val_print_array_elements): Likewise.
5459 * value.c (set_value_parent): Likewise.
5460 (value_contents_copy_raw): Likewise.
5461 (set_internalvar_component): Likewise.
5462 (value_primitive_field): Likewise.
5463 (value_fetch_lazy): Likewise.
5464 * value.h (read_value_memory): Update comment.
5465
e512cdbd
SM
54662015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 * value.c (get_value_arch): New function.
5469 * value.h (get_value_arch): New declaration.
5470
3723fda8
SM
54712015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5472
5473 * value.c (struct value): Update comments.
5474
2e056931
SM
54752015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5476
5477 * gdbtypes.c (type_length_units): New function.
5478 * gdbtypes.h (type_length_units): New declaration.
5479 (struct type) <length>: Update comment.
5480
0c87c0bf
SM
54812015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5482
5483 * valprint.c (generic_val_print): Factor out complex
5484 printing code to ...
5485 (generic_val_print_complex): ... this new function.
5486
9550ae5e
SM
54872015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5488
5489 * valprint.c (generic_val_print): Factor out decfloat
5490 printing code to ...
5491 (generic_val_print_decfloat): ... this new function.
5492
7784724b
SM
54932015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5494
5495 * valprint.c (generic_val_print): Factor out float
5496 printing code to ...
5497 (generic_val_print_float): ... this new function.
5498
385f5aff
SM
54992015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5500
5501 * valprint.c (generic_val_print): Factor out char
5502 printing code to ...
5503 (generic_val_print_char): ... this new function.
5504
b21b6342
SM
55052015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5506
5507 * valprint.c (generic_val_print): Factor out integer
5508 printing code to ...
5509 (generic_val_print_int): ... this new function.
5510
e5bead4b
SM
55112015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5512
5513 * valprint.c (generic_val_print): Factor out bool
5514 printing code to ...
5515 (generic_val_print_bool): ... this new function.
5516
4a8c372f
SM
55172015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5518
5519 * valprint.c (generic_val_print): Factor out function/method
5520 printing code to ...
5521 (generic_val_print_func): ... this new function.
5522
d93880bd
SM
55232015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5524
5525 * valprint.c (generic_val_print): Factor out flags
5526 printing code to ...
5527 (generic_val_print_flags): ... this new function.
5528
ef0bc0dd
SM
55292015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5530
5531 * valprint.c (generic_val_print): Factor out enum
5532 printing code to ...
5533 (generic_val_print_enum): ... this new function.
5534
fe43fede
SM
55352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5536
5537 * valprint.c (generic_val_print): Factor out reference
5538 printing code to ...
5539 (generic_val_print_ref): ... this new function.
5540
45000ea2
SM
55412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5542
5543 * valprint.c (generic_val_print): Factor out memberptr
5544 printing code to ...
5545 (generic_val_print_memberptr): ... this new function.
5546
81eb921a
SM
55472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5548
5549 * valprint.c (generic_val_print): Factor out pointer
5550 printing code to ...
5551 (generic_val_print_ptr): ... this new function.
5552
557dbe8a
SM
55532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5554
5555 * valprint.c (generic_val_print): Factor out array
5556 printing code to ...
5557 (generic_val_print_array): ... this new function.
5558
9f436164
SM
55592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5560
5561 * valprint.c (generic_val_print): Factor out
5562 print_unpacked_pointer code to ...
5563 (print_unpacked_pointer): ... this new function.
5564
077836f7
PP
55652015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5566
5567 * event-top.c (handle_sigterm): Don't inspect
5568 target_can_async_p. Always set the quit flag and always mark
5569 the async signal handler.
5570
3a60804f
YQ
55712015-07-27 Yao Qi <yao.qi@linaro.org>
5572
5573 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5574
c9f35b34
KB
55752015-07-25 Kevin Buettner <kevinb@redhat.com>
5576
5577 * remote.c (read_ptid): Return null_ptid when no thread id
5578 is found.
5579 (remote_current_thread): Add log warning for malformed
5580 qC reply.
5581 (remote_start_remote): Add log warning when current thread
5582 not found.
5583
2b4cab86
PA
55842015-07-24 Pedro Alves <palves@redhat.com>
5585
5586 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5587 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5588 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5589
77598427
PA
55902015-07-24 Pedro Alves <palves@redhat.com>
5591
5592 PR gdb/18717
5593 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5594 is resumed, and extend the debug log.
5595
fe23c31f
PA
55962015-07-24 Pedro Alves <palves@redhat.com>
5597
5598 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5599
5826e159
PA
56002015-07-24 Pedro Alves <palves@redhat.com>
5601
5602 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5603 sys/ptrace.h.
5604 * alpha-linux-nat.c: Likewise.
5605 * amd64-linux-nat.c: Likewise.
5606 * arm-linux-nat.c: Likewise.
5607 * hppa-linux-nat.c: Likewise.
5608 * i386-linux-nat.c: Likewise.
5609 * ia64-linux-nat.c: Likewise.
5610 * linux-fork.c: Likewise.
5611 * linux-nat.c: Likewise.
5612 * m32r-linux-nat.c: Likewise.
5613 * m68klinux-nat.c: Likewise.
5614 * mips-linux-nat.c: Likewise.
5615 * nat/linux-btrace.c: Likewise.
5616 * nat/linux-ptrace.c: Likewise.
5617 * nat/linux-ptrace.h
5618 * nat/mips-linux-watch.c: Likewise.
5619 * nat/x86-linux-dregs.c: Likewise.
5620 * ppc-linux-nat.c: Likewise.
5621 * s390-linux-nat.c: Likewise.
5622 * spu-linux-nat.c: Likewise.
5623 * tilegx-linux-nat.c: Likewise.
5624 * x86-linux-nat.c: Likewise.
5625 * xtensa-linux-nat.c: Likewise.
5626
54019719
PA
56272015-07-24 Pedro Alves <palves@redhat.com>
5628
5629 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5630 __ptrace_request as first parameter type instead of int.
5631 (PTRACE_TYPE_ARG1): Define.
5632 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5633 that casts first argument to PTRACE_TYPE_ARG1.
5634 * config.in: Regenerate.
5635 * configure: Regenerate.
5636
e3790375
PA
56372015-07-24 Pedro Alves <palves@redhat.com>
5638
5639 * gdb_ptrace.h: Move ...
5640 * nat/gdb_ptrace.h: ... here.
5641 * inf-ptrace.c: Adjust.
5642
eb7aa561
PA
56432015-07-24 Pedro Alves <palves@redhat.com>
5644
5645 * acinclude.m4: Include ptrace.m4.
5646 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5647 * ptrace.m4: ... to this new file.
5648
cc12ce38
DE
56492015-07-23 Doug Evans <dje@google.com>
5650
5651 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5652 (load_cu): Handle dummy CUs.
5653 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5654 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5655
7b849db4
CS
56562015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5657
5658 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5659 documentation to say that it returns a list rather than
5660 a FrozenSet.
5661 (linetable_object_methods): Update the docstring of the
5662 "source_line" entry.
5663
d0d84780
PMR
56642015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5665
5666 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5667 type to the recursive call instead of the original (maybe
5668 TYPE_CODE_TYPEDEF) type.
5669
c2fbdc59
YQ
56702015-07-23 Yao Qi <yao.qi@linaro.org>
5671
5672 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5673 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5674 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5675
af1b22f3
YQ
56762015-07-21 Yao Qi <yao.qi@linaro.org>
5677
5678 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5679 Move it to nat/aarch64-linux-hw-point.c.
5680 (aarch64_linux_child_post_startup_inferior): Update.
5681 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5682 New function.
5683 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5684 Declare it.
5685
40e050d2
MM
56862015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5687
5688 * common/btrace-common.c (btrace_data_append): Change case label.
5689
3675a06a
YQ
56902015-07-20 Yao Qi <yao.qi@linaro.org>
5691
5692 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5693 Re-indent the code.
5694 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5695 "unsigned long long".
5696
b4e1fd61
KB
56972015-07-18 Kevin Buettner <kevinb@redhat.com>
5698
5699 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5700 to be set for SEC_ALLOC sections too.
5701
554717a3
YQ
57022015-07-17 Yao Qi <yao.qi@linaro.org>
5703
5704 * Makefile.in (HFILES_NO_SRCDIR): Add
5705 nat/aarch64-linux-hw-point.h.
5706 (aarch64-linux-hw-point.o): New rule.
5707 * nat/aarch64-linux-hw-point.h: New file.
5708 * nat/aarch64-linux-hw-point.c: New file.
5709 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5710 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5711 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5712 (AARCH64_HWP_ALIGNMENT): Likewise.
5713 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5714 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5715 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5716 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5717 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5718 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5719 (struct aarch64_debug_reg_state): Likewise.
5720 (struct arch_lwp_info): Likewise.
5721 (aarch64_linux_set_debug_regs): Likewise.
5722 (aarch64_notify_debug_reg_change): Remove static.
5723 (aarch64_align_watchpoint): Likewise.
5724 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5725 (aarch64_watchpoint_length): Likewise.
5726 (aarch64_point_encode_ctrl_reg): Likewise
5727 (aarch64_point_is_aligned): Likewise.
5728 (aarch64_dr_state_insert_one_point): Likewise.
5729 (aarch64_dr_state_remove_one_point): Likewise.
5730 (aarch64_handle_breakpoint): Likewise.
5731 (aarch64_handle_aligned_watchpoint): Likewise.
5732 (aarch64_handle_unaligned_watchpoint): Likewise.
5733 (aarch64_handle_watchpoint): Likewise.
5734 * config/aarch64/linux.mh (NAT_FILE): Add
5735 aarch64-linux-hw-point.o.
5736
c67ca4de
YQ
57372015-07-17 Yao Qi <yao.qi@linaro.org>
5738
5739 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5740 state and don't call aarch64_get_debug_reg_state. All callers
5741 update.
5742 (aarch64_linux_insert_hw_breakpoint): Call
5743 aarch64_get_debug_reg_state earlier.
5744 (aarch64_linux_remove_hw_breakpoint): Likewise.
5745 (aarch64_handle_aligned_watchpoint): Add argument state and
5746 don't call aarch64_get_debug_reg_state. All callers update.
5747 (aarch64_handle_unaligned_watchpoint): Likewise.
5748 (aarch64_handle_watchpoint): Add argument state.
5749 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5750 earlier.
5751 (aarch64_linux_remove_watchpoint): Likewise.
5752
25abf979
YQ
57532015-07-17 Yao Qi <yao.qi@linaro.org>
5754
5755 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5756 debug_printf.
5757 (aarch64_handle_unaligned_watchpoint): Likewise.
5758
2ecd81c2
YQ
57592015-07-17 Yao Qi <yao.qi@linaro.org>
5760
5761 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5762 argument type's type to 'enum target_hw_bp_type'.
5763 (aarch64_dr_state_remove_one_point): Likewise.
5764 (aarch64_handle_breakpoint): Likewise.
5765 (aarch64_linux_insert_hw_breakpoint): Likewise.
5766 (aarch64_linux_remove_hw_breakpoint): Likewise.
5767 (aarch64_handle_aligned_watchpoint): Likewise.
5768
e53b6938
YQ
57692015-07-17 Yao Qi <yao.qi@linaro.org>
5770
5771 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5772 ptid_get_pid instead of get_thread_id.
5773
6a49a997
YQ
57742015-07-17 Yao Qi <yao.qi@linaro.org>
5775
5776 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5777 (add_current_inferior_and_thread): Don't initialise ptid.
5778
4bcddace
PL
57792015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5780
5781 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5782 unavailable if invalid.
5783
db1ff28b
JK
57842015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5785
5786 Revert the previous 6 commits:
5787 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5788 Move gdb_regex* to common/
5789 Prepare linux_find_memory_regions_full & co. for move
5790 Move linux_find_memory_regions_full & co.
5791 gdbserver build-id attribute generator
5792 Validate symbol file using build-id
5793
ca5268b6
JK
57942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5795 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 Validate symbol file using build-id.
5798 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5799 and 'show validate-build-id'. Add build-id attribute.
5800 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5801 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5802 * solib-frv.c (_initialize_frv_solib): Ditto.
5803 * solib-spu.c (set_spu_solib_ops): Ditto.
5804 * solib-svr4.c: Include rsp-low.h.
5805 (NOTE_GNU_BUILD_ID_NAME): New define.
5806 (svr4_validate): New function.
5807 (svr4_copy_library_list): Duplicate field build_id.
5808 (library_list_start_library): Parse 'build-id' attribute.
5809 (svr4_library_attributes): Add 'build-id' attribute.
5810 (_initialize_svr4_solib): Assign validate value.
5811 * solib-target.c (solib.h): Include.
5812 (_initialize_solib_target): Assign validate value.
5813 * solib.c (validate_build_id, show_validate_build_id): New.
5814 (solib_map_sections): Use ops->validate.
5815 (clear_so): Free build_id.
5816 (default_solib_validate): New function.
5817 (_initialize_solib): Add "validate-build-id".
5818 * solib.h (default_solib_validate): New declaration.
5819 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5820 (target_so_ops): New field 'validate'.
5821
700ca40f
JK
58222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5823 Jan Kratochvil <jan.kratochvil@redhat.com>
5824
5825 gdbserver build-id attribute generator.
5826 * features/library-list-svr4.dtd (library-list-svr4): New
5827 'build-id' attribute.
5828
9904185c
JK
58292015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5830 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 Move linux_find_memory_regions_full & co.
5833 * linux-tdep.c (nat/linux-maps.h): Include.
5834 (gdb_regex.h): Remove the include.
5835 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5836 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5837 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5838 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5839 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5840 and target/target.h.
5841 (struct smaps_vmflags, read_mapping, decode_vmflags)
5842 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5843 (linux_find_memory_regions_full): Move from linux-tdep.c.
5844 * nat/linux-maps.h (read_mapping): New declaration.
5845 (linux_find_memory_region_ftype, enum filterflags): Moved from
5846 linux-tdep.c.
5847 (linux_find_memory_regions_full): New declaration.
5848 * target.c (target/target-utils.h): Include.
5849 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5850 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5851 definitions to target/target-utils.c.
5852 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5853 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5854 from target.c.
5855 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5856 (read_alloc): New declaration.
5857 (read_stralloc_func_ftype): New typedef.
5858 (read_stralloc): New declaration.
5859 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5860
f7af1fcd
JK
58612015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5862 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 Prepare linux_find_memory_regions_full & co. for move.
5865 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5866 (linux_find_memory_regions_full): Change signature and prepare
5867 for moving to linux-maps.
5868 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5869 (linux_find_memory_regions_thunk): New.
5870 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5871 (linux_find_memory_regions_gdb): New.
5872 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5873 (linux_make_mappings_corefile_notes): Use
5874 linux_find_memory_regions_gdb.
5875 * target.c (read_alloc_pread_ftype): New typedef.
5876 (target_fileio_read_alloc_1_pread): New function.
5877 (read_alloc): Refactor from target_fileio_read_alloc_1.
5878 (read_stralloc_func_ftype): New typedef.
5879 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5880 (read_stralloc): Refactored from target_fileio_read_stralloc.
5881 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5882
6e5b4429
JK
58832015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5884
5885 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5886 common/gdb_regex.h.
5887 (COMMON_OBS): Add gdb_regex.o.
5888 (gdb_regex.o): New.
5889 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5890 --without-included-regex and USE_INCLUDED_REGEX.
5891 * common/gdb_regex.c: New file from utils.c functions.
5892 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5893 file wrapping define name.
5894 * configure: Rebuilt.
5895 * configure.ac (gdb_use_included_regex, --without-included-regex)
5896 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5897 * gdb_regex.h: Move it to common/gdb_regex.h.
5898 * utils.c: Remove include gdb_regex.h.
5899 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5900 (compile_rx_or_error): Move them to common/gdb_regex.c.
5901
ddc98fbf
JK
59022015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5903 Jan Kratochvil <jan.kratochvil@redhat.com>
5904
5905 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5906 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5907 common/target-utils.h.
5908 (COMMON_OBS): Add target-utils.o.
5909 (linux-maps.o, target-utils.o): New.
5910 * target/target-utils.c: New file.
5911 * target/target-utils.h: New file.
5912 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5913 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5914 * nat/linux-maps.c: New file.
5915 * nat/linux-maps.h: New file.
5916
e7b01ce0
MM
59172015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5918 Pedro Alves <palves@redhat.com>
5919
5920 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5921 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5922 (perf_event_read_bts): Change the type of SIZE and READ.
5923 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5924 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5925 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5926 mmap page.
5927 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5928 buffer size to UINT_MAX.
5929 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5930 DATA_TAIL.
5931 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5932 <last_head>: Change type.
5933 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5934 * common/btrace-common.c (btrace_data_append): Change the type of
5935 SIZE.
5936 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5937 check.
5938
f168693b
SM
59392015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5940
5941 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5942 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5943 with check_typedef.
5944 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5945 (ada_array_length): Likewise.
5946 (find_parallel_type_by_descriptive_type): Likewise.
5947 (ada_check_typedef): Likewise.
5948 * arm-tdep.c (arm_return_in_memory): Likewise.
5949 * ax-gdb.c (gen_trace_static_fields): Likewise.
5950 (gen_struct_ref_recursive): Likewise.
5951 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5952 (variable: block COLONCOLON name): Likewise.
5953 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5954 * c-lang.c (classify_type): Likewise.
5955 * c-typeprint.c (c_print_type): Likewise.
5956 (c_print_typedef): Likewise.
5957 (c_type_print_base): Likewise.
5958 * c-valprint.c (c_val_print): Likewise.
5959 * compile/compile-c-types.c (convert_type): Likewise.
5960 * compile/compile-object-load.c (get_out_value_type): Likewise.
5961 * completer.c (add_struct_fields): Likewise.
5962 (expression_completer): Likewise.
5963 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5964 (cp_lookup_nested_symbol_1): Likewise.
5965 (cp_lookup_nested_symbol): Likewise.
5966 * cp-valprint.c (cp_print_value_fields): Likewise.
5967 (cp_print_static_field): Likewise.
5968 * d-valprint.c (d_val_print): Likewise.
5969 * eval.c (evaluate_subexp_standard): Likewise.
5970 (evaluate_subexp_for_sizeof): Likewise.
5971 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5972 * f-typeprint.c (f_type_print_base): Likewise.
5973 * f-valprint.c (f_val_print): Likewise.
5974 * gdbtypes.c (get_discrete_bounds): Likewise.
5975 (create_array_type_with_stride): Likewise.
5976 (type_name_no_tag_or_error): Likewise.
5977 (lookup_struct_elt_type): Likewise.
5978 (get_unsigned_type_max): Likewise.
5979 (internal_type_vptr_fieldno): Likewise.
5980 (set_type_vptr_fieldno): Likewise.
5981 (internal_type_vptr_basetype): Likewise.
5982 (set_type_vptr_basetype): Likewise.
5983 (get_vptr_fieldno): Likewise.
5984 (is_integral_type): Likewise.
5985 (is_scalar_type): Likewise.
5986 (is_scalar_type_recursive): Likewise.
5987 (distance_to_ancestor): Likewise.
5988 (is_unique_ancestor_worker): Likewise.
5989 (check_types_equal): Likewise.
5990 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5991
45280282
IB
59922015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5993
5994 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5995 also test for language_d.
5996 (dwarf2_compute_name): Likewise.
5997 (read_func_scope): Likewise.
5998 (read_structure_type): Likewise.
5999 (new_symbol_full): Likewise.
6000 (determine_prefix): Likewise.
6001 (read_import_statement): Use dot as the separator for language_d.
6002 (typename_concat): Likewise, but don't prefix the D main function.
6003
99fe86f7
PB
60042015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6005
6006 * nat/linux-namespaces.c (setns): Rename from this ...
6007 (do_setns): ... to this. Support calling setns if it exists.
6008 (mnsh_handle_setns): Call do_setns.
6009
d5131498
YQ
60102015-07-13 Yao Qi <yao.qi@linaro.org>
6011
6012 * exec.c (exec_file_attach): Add period at the end of error
6013 message.
6014
97605e61
AB
60152015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * tui/tui-win.c (window_name_completer): New function.
6018 (focus_completer): Call window_name_completer. All old content
6019 moved into window_name_completer.
6020 (winheight_completer): New function.
6021 (_initialize_tui_win): Rename variable. Add completer to
6022 winheight command. Update doc string on winheight.
6023
8d6dbeb4
SL
60242015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6025
6026 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6027 all nios2 mach variants.
6028
a0e28e54
KB
60292015-07-10 Kevin Buettner <kevinb@redhat.com>
6030
6031 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6032 of target_read_memory.
6033
c101f28f
AB
60342015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6037 string copy.
6038 (parse_scrolling_args): Likewise.
6039
150375dc
AB
60402015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6043 names in this function.
6044
6dce28e4
AB
60452015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6048 (CMD_NAME): Likewise.
6049 (DATA_NAME): Likewise.
6050 (DISASSEM_NAME): Likewise.
6051 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6052 (tui_set_win_height): Likewise.
6053 (parse_scrolling_args): Likewise.
6054
485668e5
MM
60552015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6056
6057 * record-btrace.c (record_btrace_goto_begin)
6058 (record_btrace_goto_end, record_btrace_goto): Move call to
6059 print_stack_frame ...
6060 (record_btrace_set_replay): ... here. Set stop_pc.
6061 * record-full.c (record_full_goto_entry): Set stop_pc.
6062
58d2eda5
PL
60632015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6064
6065 * NEWS: Mention support for tracepoints on aarch64-linux.
6066
7671bf47
PL
60672015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6068
6069 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6070 function. Return 1.
6071 (the_low_target): Install it.
6072
7890fb45
PL
60732015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6074
6075 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6076 * gdb.trace/collection.exp: Likewise.
6077 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6078 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6079 * gdb.trace/report.exp: Likewise.
6080 * gdb.trace/trace-break.exp: Likewise.
6081 * gdb.trace/unavailable.exp: Likewise.
6082 * gdb.trace/while-dyn.exp: Likewise.
6083
ea873d8e
PL
60842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6085
6086 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6087 (aarch64_gen_return_address): New function.
6088 (aarch64_gdbarch_init): Hook it.
6089
02a2a705
PL
60902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6091
6092 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6093 swallow NOT_AVAILABLE_ERROR.
6094 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6095 available_p is not set.
6096 (aarch64_stub_frame_unwind_stop_reason): New function.
6097 (aarch64_stub_unwind): Install it.
6098
7dfa3edc
PL
60992015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6100
6101 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6102 field.
6103 (aarch64_make_prologue_cache_1): New function, factored out from
6104 aarch64_make_prologue_cache. Do not allocate cache. Set
6105 available_p.
6106 (aarch64_make_prologue_cache): Reimplement wrapping
6107 aarch64_make_prologue_cache_1, and swallowing
6108 NOT_AVAILABLE_ERROR.
6109 (aarch64_prologue_frame_unwind_stop_reason): New function.
6110 Return UNWIND_UNAVAILABLE if available_p is not set.
6111 (aarch64_prologue_unwind): Install it.
6112 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6113 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6114 frame_id_build_unavailable_stack if available_p is not set.
6115
db634143
PL
61162015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6117
6118 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6119 fields.
6120 (aarch64_scan_prologue): Set prev_pc.
6121 (aarch64_make_prologue_cache): Set func.
6122 (aarch64_make_stub_cache): Set prev_pc.
6123 (aarch64_prologue_this_id): Remove local variables id, pc and
6124 func. Read prev_pc and func from cache.
6125 (aarch64_stub_this_id): Read prev_pc from cache.
6126
8b61f75d
PL
61272015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6128
6129 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6130 argument this_cache. Remove unused local variables reg and
6131 unwound_fp. Return early if this_cache is already set. Set
6132 this_cache.
6133 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6134
7c8edfae
PL
61352015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6136
6137 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6138 New argument this_cache. Return early if this_cache is already
6139 set. Set this_cache.
6140 (aarch64_prologue_this_id): Update call to
6141 aarch64_make_prologue_cache.
6142 (aarch64_prologue_prev_register): Likewise.
6143 (aarch64_normal_frame_base): Likewise.
6144
938c69a1
SM
61452015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6146
6147 * c-valprint.c (c_val_print): Factor out memberptr printing code
6148 from c_val_print to ...
6149 (c_val_print_memberptr): ... this new function.
6150
49f7fe28
SM
61512015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6152
6153 * c-valprint.c (c_val_print): Factor out int printing code to ...
6154 (c_val_print_int): ... this new function.
6155
9e4f353c
SM
61562015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * c-valprint.c (c_val_print): Factor out struct and union
6159 printing code to ...
6160 (c_val_print_struct): ... this new function ...
6161 (c_val_print_union): ... and this new function.
6162
1c67f032
SM
61632015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6164
6165 * c-valprint.c (c_val_print): Factor out pointer printing code
6166 to ...
6167 (c_val_print_ptr): ... this new function.
6168
0b6ef777
SM
61692015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6170
6171 * c-valprint.c (c_valprint): Factor our array printing code from
6172 c_val_print to ...
6173 (c_val_print_array): ... this new function.
6174
1033c33c
SM
61752015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * c-valprint.c (c_val_print): Factor out pointer printing code
6178 to ...
6179 (print_unpacked_pointer): ... this new function.
6180
f6b93c34
SM
61812015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6182
6183 * c-valprint.c (c_val_print): Remove an assignment to i and move
6184 its declaration.
6185
0f4576e3
YQ
61862015-07-09 Yao Qi <yao.qi@linaro.org>
6187
6188 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6189 argument ptid. Update comments. Caller update.
6190
37fdfe4c
MM
61912015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6192
6193 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6194 mnt packets.
6195
80a2b330
MM
61962015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6197
6198 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6199
4ab31498
SM
62002015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * progspace.c (delete_program_space): Add missing spaces.
6203
7a41607e
SM
62042015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * inferior.c (delete_inferior_1): Rename to ...
6207 (delete_inferior): ..., remove 'silent' parameter, delete
6208 program space when unused and remove call to prune_program_spaces.
6209 Remove the old, unused, delete_inferior.
6210 (delete_inferior_silent): Remove.
6211 (prune_inferiors): Change call from delete_inferior_1 to
6212 delete_inferior and remove 'silent' parameter. Remove call to
6213 prune_program_spaces.
6214 (remove_inferior_command): Idem.
6215 * inferior.h (delete_inferior_1): Rename to...
6216 (delete_inferior): ..., remove 'silent' parameter and remove the
6217 original delete_inferior.
6218 (delete_inferior_silent): Remove.
6219 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6220 delete_inferior_1 to delete_inferior and remove 'silent'
6221 parameter.
6222 * progspace.c (prune_program_spaces): Remove.
6223 (pspace_empty_p): Rename to...
6224 (program_space_empty_p): ... and make non-static.
6225 (delete_program_space): New.
6226 * progspace.h (prune_program_spaces): Remove declaration.
6227 (program_space_empty_p): New declaration.
6228 (delete_program_space): New declaration.
6229 * monitor.c (monitor_close): Replace call to
6230 delete_thread_silent and delete_inferior_silent with
6231 discard_all_inferiors.
6232
a9bd710f
PP
62332015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6234
6235 * defs.h (deprecated_register_changed_hook): Remove prototype.
6236 * interps.c (clear_iterpreter_hooks): Remove reference to
6237 deprecated_register_changed_hook.
6238 * top.c (deprecated_register_changed_hook): Remove prototype.
6239 * valops.c (value_assign): Remove reference to
6240 deprecated_register_changed_hook.
6241 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6242 Add comment documenting the function.
6243 (tui_register_changed_observer): Define.
6244 (tui_install_hooks): Remove reference to
6245 deprecated_register_changed_hook. Set
6246 tui_register_changed_observer.
6247 (tui_remove_hooks): Remove reference to
6248 deprecated_register_changed_hook. Unset
6249 tui_register_changed_observer.
6250
08464196
JK
62512015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 PR compile/18484
6254 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6255
bcf5c1d9
RC
62562015-07-08 Robert O'Callahan <robert@ocallahan.org>
6257
6258 PR exp/18617
6259 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6260
e8643a45
MM
62612015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6262
6263 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6264
76fb6829
MM
62652015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6266
6267 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6268 Use safe_strerror() instead of strerror().
6269
82c40d4b
YQ
62702015-07-07 Yao Qi <yao.qi@linaro.org>
6271
6272 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6273 * features/arm-with-m-fpa-layout.c: Regenerated.
6274 * features/arm-with-m-vfp-d16.xml: Likewise.
6275 * features/arm-with-m-vfp-d16.c: Regenerated.
6276 * features/arm-with-m.xml: Likewise.
6277 * features/arm-with-m.c: Regenerated.
6278 * features/arm-with-neon.xml: Likewise.
6279 * features/arm-with-neon.c: Regenerated.
6280 * features/arm-with-vfpv2.xml: Likewise.
6281 * features/arm-with-vfpv2.c: Regenerated.
6282 * features/arm-with-vfpv3.xml: Likewise.
6283 * features/arm-with-vfpv3.c: Regenerated.
6284
607685ec
YQ
62852015-07-07 Yao Qi <yao.qi@linaro.org>
6286
6287 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6288 arm-linux-nat.c.
6289 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6290 elf/external.h.
6291 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6292 if target is 32-bit.
6293 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6294 if target is 32-bit.
6295 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6296 if target is 32-bit.
6297 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6298 if target is 32-bit.
6299 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6300 (aarch64_linux_read_description): Return the right target
6301 description.
6302 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6303 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6304 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6305 arm-linux-tdep.o.
6306
f1b67888
YQ
63072015-07-07 Yao Qi <yao.qi@linaro.org>
6308
6309 * aarch32-linux-nat.c: New file.
6310 * aarch32-linux-nat.h: New file.
6311 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6312 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6313 aarch32_gp_regcache_supply.
6314 (store_regs): Move code to aarch32-linux-nat.c. Call
6315 aarch32_gp_regcache_collect.
6316 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6317 aarch32_vfp_regcache_supply.
6318 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6319 aarch32_vfp_regcache_collect.
6320 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6321
179bfe82
YQ
63222015-07-07 Yao Qi <yao.qi@linaro.org>
6323
6324 * arm-linux-nat.c (store_fpregister): Remove.
6325 (store_register): Likewise.
6326 (fetch_fpregister): Likewise.
6327 (fetch_register): Likewise.
6328 (arm_linux_store_inferior_registers): Call store_regs and
6329 store_fpregs instead.
6330 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6331 fetch_regs instead.
6332
6008fc5f
AB
63332015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6334
6335 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6336 and focus commands.
6337
7c79d316
JB
63382015-07-06 Joel Brobecker <brobecker@adacore.com>
6339
6340 * NEWS: Create a new section for the next release branch.
6341 Rename the section of the current branch, now that it has
6342 been cut.
6343
f2232bea
JB
63442015-07-06 Joel Brobecker <brobecker@adacore.com>
6345
6346 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6347 * version.in: Bump version to 7.10.50.DATE-cvs.
6348
66c4b3e8
LM
63492015-07-06 Luis Machado <lgustavo@codesourcery.com>
6350
6351 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6352 breakpoints in a special way.
6353 (remove_breakpoint): Likewise.
6354 (mark_breakpoints_out): Likewise.
6355
bcd8537c
AB
63562015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * doc/gdb.texinfo (TUI): Add comma after @xref.
6359
10e9aaa3
AB
63602015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6361
6362 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6363 instead of casting the structure type.
6364
8a13d42d
SM
63652015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6366
6367 * valops.c (search_struct_field): Remove OFFSET parameter.
6368 (value_cast_structs): Adjust calls to search_struct_field.
6369 (value_struct_elt): Same.
6370 (find_overload_match): Same.
6371
a844296a
SM
63722015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6373
6374 * value.c (value_fetch_lazy): Update comment, change return
6375 value to void.
6376 * value.h (value_fetch_lazy): Change return value to void.
6377
f41cbf58
AB
63782015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6381 (tui_win_name): Make parameter and result const.
6382 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6383
118ca224
PP
63842015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6385
6386 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6387 use printf_unfiltered.
6388 (set_mpx_cmd): Add missing trailing space to command string
6389 literal.
6390 (_initialize_i386_tdep): Give the "mpx" prefix command its
6391 correct name.
6392
1b485e67
KB
63932015-07-02 Kevin Buettner <kevinb@redhat.com>
6394
6395 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6396 (enum rx_frame_type): New.
6397 (struct rx_prologue): Add new field `frame_type'.
6398 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6399 parameter in the prologue struct. Add code for recording
6400 locations of PC and PSW for fast interrupt and exception frames.
6401 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6402 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6403 (rx_frame_type): New function.
6404 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6405 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6406 `this_cache'.
6407 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6408 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6409 RX_FRAME_TYPE_FAST_INTERRUPT.
6410 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6411 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6412 (rx_frame_unwind): Use rx_frame_sniffer instead of
6413 default_frame_sniffer.
6414 (rx_frame_unwind): New unwinder.
6415 (rx_gdbarch_init): Register new unwinder.
6416
0561fea4
KB
64172015-07-02 Kevin Buettner <kevinb@redhat.com>
6418
6419 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6420 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6421 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6422 and RX_FPSW_REGNUM.
6423 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6424
decf8d9a
JK
64252015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6426
6427 Fix GCC false warning.
6428 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6429
2fd0f80d
YQ
64302015-07-02 Yao Qi <yao.qi@linaro.org>
6431
6432 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6433 typo in the debugging message.
6434
b0627500
MM
64352015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6436
6437 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6438 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6439 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6440 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6441 (btrace_maint_clear): New.
6442 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6443 (pt_print_packet, btrace_maint_decode_pt)
6444 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6445 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6446 (maint_btrace_packet_history_cmd)
6447 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6448 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6449 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6450 (maint_info_btrace_cmd, _initialize_btrace): New.
6451 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6452 (btrace_maint_packet_history, btrace_maint_info): New.
6453 (btrace_thread_info) <maint>: New.
6454 * NEWS: Announce it.
6455
9be54cae
MM
64562015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6457
6458 * btrace.c (btrace_fetch): Append the new trace data.
6459 (btrace_clear): Clear the stored trace data.
6460 * btrace.h (btrace_thread_info) <data>: New.
6461 * common/btrace-common.h (btrace_data_clear)
6462 (btrace_data_append): New.
6463 * common/btrace-common.c (btrace_data_clear)
6464 (btrace_data_append): New.
6465
010a18a1
MM
64662015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6467
6468 * nat/linux-btrace.c (linux_enable_bts): Check for
6469 PERF_ATTR_SIZE_VER5.
6470 Check for data_offset and data_size fields. Use them.
6471
b20a6524
MM
64722015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6473
6474 * NEWS: Announce new commands "record btrace pt" and "record pt".
6475 Announce new options "set|show record btrace pt buffer-size".
6476 * btrace.c: Include "rsp-low.h".
6477 Include "inttypes.h".
6478 (btrace_add_pc): Add forward declaration.
6479 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6480 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6481 (btrace_compute_ftrace_pt): New.
6482 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6483 (check_xml_btrace_version): Update version check.
6484 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6485 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6486 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6487 (btrace_pt_children): New.
6488 (btrace_children): Add support for "pt".
6489 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6490 (btrace_conf_children): Add support for "pt".
6491 * btrace.h: Include "intel-pt.h".
6492 (btrace_pt_error): New.
6493 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6494 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6495 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6496 (struct btrace_config_pt): New.
6497 (struct btrace_config)<pt>: New.
6498 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6499 (struct btrace_data)<pt>: New.
6500 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6501 (pt): New.
6502 * features/btrace.dtd (btrace)<pt>: New.
6503 (pt, pt-config, cpu): New.
6504 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6505 (perf_event_pt_event_type, kernel_supports_pt)
6506 (linux_supports_pt): New.
6507 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6508 (linux_enable_bts): Free tinfo on error.
6509 (linux_enable_pt): New.
6510 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6511 (linux_disable_pt): New.
6512 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6513 (linux_fill_btrace_pt_config, linux_read_pt): New.
6514 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6515 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6516 (struct btrace_target_info)<pt>: New.
6517 * record-btrace.c (set_record_btrace_pt_cmdlist)
6518 (show_record_btrace_pt_cmdlist): New.
6519 (record_btrace_print_pt_conf): New.
6520 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6521 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6522 (cmd_record_btrace_pt_start): New.
6523 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6524 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6525 (_initialize_record_btrace): Add new commands.
6526 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6527 (remote_protocol_features): Add "Qbtrace:pt".
6528 Add "Qbtrace-conf:pt:size".
6529 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6530 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6531 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6532 (_initialize_remote): Add new commands.
6533
58bfce93
MM
65342015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6535
6536 * configure.ac: check for libipt
6537 * configure: Regenerate.
6538 * config.in: Regenerate.
6539 * Makefile.in (LIBIPT): New.
6540 (CLIBS): Add $LIBIPT.
6541 * NEWS: document new configure options
6542
b0fd6b30
JK
65432015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 * compile/compile-object-load.c (compile_object_load): Replace debug
6546 message "lookup undefined ELF symbol" by 3 more specific messages.
6547
e6280369
KB
65482015-07-01 Kevin Buettner <kevinb@redhat.com>
6549
6550 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6551 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6552 (rl78_gdbarch_init): Initialize rl78_psw_type.
6553
bbcbf914
PP
65542015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6555
6556 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6557 Update commentary. Always refresh the registers when frame
6558 information has changed.
6559 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6560 Change return type to int. Return 1 if frame information has
6561 changed, 0 otherwise.
6562 (tui_before_prompt): Update commentary.
6563 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6564 int.
6565
0986c744
PP
65662015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6567
6568 PR tui/13378
6569 * frame.c (select_frame): Remove reference to
6570 deprecated_selected_frame_level_changed_hook.
6571 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6572 declaration.
6573 * stack.c (deprecated_selected_frame_level_changed_hook):
6574 Likewise.
6575 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6576 Rename to ...
6577 (tui_refresh_frame_and_register_information): ... this. Bail
6578 out if there is no stack. Don't update register information
6579 unless registers_too_p is true.
6580 (tui_print_frame_info_listing_hook): Rename to ...
6581 (tui_dummy_print_frame_info_listing_hook): ... this.
6582 (tui_before_prompt): New function.
6583 (tui_normal_stop): New function.
6584 (tui_before_prompt_observer): New observer.
6585 (tui_normal_stop_observer): New observer.
6586 (tui_install_hooks): Set
6587 deprecated_print_frame_info_listing_hook to
6588 tui_dummy_print_frame_info_listing_hook. Register
6589 tui_before_prompt_observer to call tui_before_prompt and
6590 tui_normal_stop_observer to call tui_normal_stop. Remove
6591 reference to deprecated_selected_frame_level_changed_hook.
6592 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6593 and tui_normal_stop_observer. Remove reference to
6594 deprecated_selected_frame_level_changed_hook.
6595
b5fca6d7
PP
65962015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6597
6598 PR tui/13378
6599 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6600 return an int instead of void. Return whether the locator
6601 window has changed.
6602 (tui_show_frame_info): If the locator info has not changed, then
6603 bail out early to avoid refreshing the windows.
6604
c45613e3
PP
66052015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6606
6607 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6608 LOCATOR_WIN to tui_alloc_content.
6609
7b9be803
YQ
66102015-06-30 Yao Qi <yao.qi@linaro.org>
6611
6612 PR tdep/18605
6613 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6614 instructions.
6615
fd6e021d
KB
66162015-06-29 Kevin Buettner <kevinb@redhat.com>
6617
78ab7e9d
KB
6618 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6619 (rx_dwarf_reg_to_regnum): New function.
6620 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6621 unwinding.
fd6e021d 6622
28bf096c
PA
66232015-06-29 Pedro Alves <palves@redhat.com>
6624
6625 PR threads/18127
6626 * infcall.c (run_inferior_call): On infcall success, if the thread
6627 was marked stopped before, reset it back to stopped.
6628 * infrun.c (resume): Don't suppress the set_running calls when
6629 doing an infcall.
6630 (normal_stop): Only discard the finish_thread_state cleanup if the
6631 infcall succeeded.
6632
2880b51c 66332015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6634
6635 * MAINTAINERS (Write After Approval): Update my email address.
6636
ee93cd5e
KS
66372015-06-26 Keith Seitz <keiths@redhat.com>
6638 Doug Evans <dje@google.com>
6639
6640 PR 16253
6641 * block.c (block_lookup_symbol): For non-function blocks,
6642 continue to search for a symbol with an exact domain match
6643 Otherwise, return any previously found "best domain" symbol.
6644 (block_lookup_symbol_primary): Likewise.
6645
fc637f04
PP
66462015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6647
6648 * NEWS: Mention the new option "history remove-duplicates".
6649 * top.c (history_remove_duplicates): New static variable.
6650 (show_history_remove_duplicates): New static function.
6651 (gdb_add_history): Conditionally remove duplicate history
6652 entries.
6653 (init_main): Add "history remove-duplicates" option.
6654
2e52ae68
PP
66552015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6656
6657 * tui/tui-win.c (focus_completer): New static function.
6658 (_initialize_tui_win): Set the completion function of the
6659 "focus" command to focus_completer.
6660
6e22494e
JK
66612015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6662
6663 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6664 and language_asm..
6665 * symtab.c (find_function_start_sal): Likewise.
6666
f8773be1
GB
66672015-06-25 Gary Benson <gbenson@redhat.com>
6668
6669 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6670 it is the empty string after trailing slashes have been stripped.
6671
a3be80c3
GB
66722015-06-25 Gary Benson <gbenson@redhat.com>
6673
6674 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6675 * infrun.c (follow_exec): Likewise.
6676 * remote.c (remote_filesystem_is_local): Likewise.
6677 * solib.c (solib_find_1): Likewise.
6678
32fad71f
KS
66792015-06-24 Keith Seitz <keiths@redhat.com>
6680
6681 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6682 return value from lrealpath.
6683
87d1b309
MF
66842015-06-24 Mike Frysinger <vapier@gentoo.org>
6685
6686 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6687
23bf70af
MF
66882015-06-24 Mike Frysinger <vapier@gentoo.org>
6689
6690 * remote-sim.c: Include gdb_bfd.h.
6691 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6692 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6693
5cd867b4
YQ
66942015-06-24 Yao Qi <yao.qi@linaro.org>
6695
6696 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6697 set_gdbarch_get_siginfo_type.
6698 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6699 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6700 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6701 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6702 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6703 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6704 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6705 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6706 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6707 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6708
dc06243f
GB
67092015-06-24 Gary Benson <gbenson@redhat.com>
6710
6711 * common/buffer.c (stdint.h): Do not include.
6712 * common/print-utils.c (stdint.h): Likewise.
6713 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6714 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6715 * ft32-tdep.c (gdb_assert.h): Likewise.
6716 * guile/scm-utils.c (stdint.h): Likewise.
6717 * i386-linux-tdep.c (stdint.h): Likewise.
6718 * i386-tdep.c (stdint.h): Likewise.
6719 * nat/linux-btrace.c (stdint.h): Likewise.
6720 * nat/linux-btrace.h (stdint.h): Likewise.
6721 * nat/linux-ptrace.c (stdint.h): Likewise.
6722 * nat/mips-linux-watch.h (stdint.h): Likewise.
6723 * ppc-linux-nat.c (stdint.h): Likewise.
6724 * python/python-internal.h (stdint.h): Likewise.
6725 * stub-termcap.c (stdlib.h): Likewise.
6726 * target/target.h (stdint.h): Likewise.
6727 * xtensa-linux-nat.c (stdint.h): Likewise.
6728
0fc26caf
PP
67292015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6730
6731 * top.c (init_history): Look at errno after calling strtol to
6732 properly map large GDBHISTSIZE values to infinity.
6733
a38fe4fe
DE
67342015-06-23 Doug Evans <dje@google.com>
6735
6736 * inferior.h (struct inferior_suspend_state): Delete, unused.
6737 All references deleted.
6738
7564fe45
MF
67392015-06-23 Mike Frysinger <vapier@gentoo.org>
6740
6741 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6742 (microblaze_push_dummy_call): Likewise.
6743 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6744 and set_gdbarch_push_dummy_call.
6745
0bdb2f78
YQ
67462015-06-23 Yao Qi <yao.qi@linaro.org>
6747
6748 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6749 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6750 (amd64_linux_store_inferior_registers): Likewise.
6751 * arm-linux-nat.c (fetch_fpregister): Likewise.
6752 (fetch_fpregs, store_fpregister): Likewise.
6753 (store_fpregister, store_fpregs): Likewise.
6754 (fetch_register, fetch_regs): Likewise.
6755 (store_register, store_regs): Likewise.
6756 (fetch_vfp_regs, store_vfp_regs): Likewise.
6757 (arm_linux_read_description): Check have_ptrace_getregset is
6758 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6759 or TRIBOOL_FALSE.
6760 * i386-linux-nat.c (fetch_xstateregs): Check
6761 have_ptrace_getregset is not TRIBOOL_TRUE.
6762 (store_xstateregs): Likewise.
6763 * linux-nat.c (have_ptrace_getregset): Change its type to
6764 enum tribool.
6765 * linux-nat.h (tribool): New enum.
6766 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6767 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6768
18a94d75
DE
67692015-06-19 Doug Evans <dje@google.com>
6770
6771 * NEWS: Mention Sun's version of stabs is no longer supported.
6772 * elfread.c (free_elfinfo): Delete. All uses updated.
6773 (elfstab_offset_sections): Delete. All uses updated.
6774 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6775 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6776 All uses updated.
6777 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6778 All callers updated.
6779
124e13d9
SM
67802015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6781
6782 * common/rsp-low.c (needs_escaping): New.
6783 (remote_escape_output): Add unit_size parameter. Refactor to
6784 support multi-byte addressable units. Rename parameters.
6785 * common/rsp-low.h (remote_escape_output): Add unit_size
6786 parameter and rename others. Update doc.
6787 * remote.c (align_for_efficient_write): New.
6788 (remote_write_bytes_aux): Add unit_size parameter and use it.
6789 Rename some variables. Update doc.
6790 (remote_xfer_partial): Get unit size and use it.
6791 (remote_read_bytes_1): Add unit_size parameter and use it.
6792 Rename some variables. Update doc.
6793 (remote_write_bytes): Same.
6794 (remote_xfer_live_readonly_partial): Same.
6795 (remote_read_bytes): Same.
6796 (remote_flash_write): Update call to remote_write_bytes_aux.
6797 (remote_write_qxfer): Update call to remote_escape_output.
6798 (remote_search_memory): Same.
6799 (remote_hostio_pwrite): Same.
6800
6ae88661
LM
68012015-06-17 Luis Machado <lgustavo@codesourcery.com>
6802
6803 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6804 locations as inserted.
6805 Update and expand comment about permanent locations.
6806 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6807 Move comment to add_location_to_breakpoint.
6808 (update_global_location_list): Don't error out if a permanent
6809 breakpoint is not marked inserted.
6810 Don't error out if a non-permanent breakpoint location is inserted on
6811 top of a permanent breakpoint.
6812
da4616f6
LM
68132015-06-17 Luis Machado <lgustavo@codesourcery.com>
6814
6815 * breakpoint.c (make_breakpoint_permanent): Remove unused
6816 function.
6817 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6818
bc460514
PP
68192015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6820
6821 PR gdb/16999
6822 * NEWS: Mention new GDBHISTSIZE behavior.
6823 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6824 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6825
b58c513b
PP
68262015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6827
6828 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6829 * top.c (init_history): Read from GDBHISTSIZE instead of
6830 HISTSIZE.
6831 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6832
2093d2d3
PP
68332015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6834
6835 * top.c (gdb_safe_append_history): Do not call
6836 history_truncate_file if the history is not stifled.
6837
fc248485
AA
68382015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6839
6840 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6841 * syscalls/s390x-linux.xml: Likewise.
6842
4da680ad
ME
68432015-06-16 Michael Eager <eager@eagercon.com>
6844
6845 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6846
0a75489f
PP
68472015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6848
6849 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6850 target_terminal_ours_for_output() before calling
6851 tui_show_frame_info(), and restore the original terminal
6852 settings afterwards.
6853
95855ca8
MS
68542015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6855
6856 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6857
cfc32360
SM
68582015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6859
6860 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6861 memory unit size.
6862 (mi_cmd_data_write_memory_bytes): Same.
6863
cb6f16cf
SM
68642015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6865
6866 * corefile.c (write_memory): Update doc.
6867 * gdbcore.h (write_memory): Same.
6868
31b7833d
JK
68692015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6870
6871 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6872 (dump_mapping_p): Use it for parameter filterflags.
6873 (linux_find_memory_regions_full): Use it for variable filterflags.
6874
909c2cda
JK
68752015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6876 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Merge multiple hex conversions.
6879 * monitor.c: Include rsp-low.h.
6880 (fromhex): Remove definition.
6881
03aef70f
JK
68822015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6883 Jan Kratochvil <jan.kratochvil@redhat.com>
6884
6885 Move utility functions to common/.
6886 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6887 Move defs to common/common-utils.c.
6888 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6889 (skip_to_space_const): Move decls to common/common-utils.h.
6890 * common/common-defs.h: Move include of common-types.h before
6891 common-utils.h.
6892 * common/common-utils.c: Include host-defs.h and ctype.h.
6893 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6894 from utils.c.
6895 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6896 cli/cli-utils.c.
6897 * common/common-utils.h (strtoulst): Move decl from utils.h.
6898 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6899 Move from cli/cli-utils.h.
6900 * common/host-defs.h: Include limits.h.
6901 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6902 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6903 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6904 common/common-utils.h.
6905 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6906 (strtoulst): Move to common/common-utils.c.
6907 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6908
d1168cc1
YQ
69092015-06-15 Yao Qi <yao.qi@linaro.org>
6910
6911 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6912
c74f7d1c
JT
69132015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6914
6915 * build-id.c: Don't include elf-bfd.h.
6916 (build_id_bfd_get): Use bfd_build_id.
6917 (build_id_verify): Ditto.
6918 * build-id.h: Ditto.
6919 (find_separate_debug_file_by_buildid): Ditto.
6920 * python/py-objfile.c: Don't include elf-bfd.h.
6921 (objfpy_get_build_id) Use bfd_build_id.
6922 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6923 * coffread.c: Include build-id.h.
6924 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6925
f20c58f5
JT
69262015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6927
6928 * windows-nat.c (do_windows_fetch_inferior_registers)
6929 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6930 conditional with __CYGWIN__.
6931
51f0e40d
AB
69322015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * completer.c: Add arch-utils.h include.
6935 (enum reg_completer_targets): New enum.
6936 (reg_or_group_completer_1): New function containing old
6937 reg_or_group_completer, add and use new parameter to control what
6938 is completed on. Use get_current_arch rather than architecture of
6939 currently selected frame.
6940 (reg_or_group_completer): Call new reg_or_group_completer_1.
6941 (reggroup_completer): Call new reg_or_group_completer_1.
6942 * completer.h (reggroup_completer): Add declaration.
6943 * tui/tui-regs.c: Add 'completer.h' include.
6944 (tui_reg_next_command): Renamed to...
6945 (tui_reg_next): ...this. Adjust parameters and return rather than
6946 display new group.
6947 (tui_reg_prev_command): Renamed to...
6948 (tui_reg_prev): ...this. Adjust parameters and return rather than
6949 display new group.
6950 (tui_reg_float_command): Delete.
6951 (tui_reg_general_command): Delete.
6952 (tui_reg_system_command): Delete.
6953 (tui_reg_command): Rewrite to perform switching of register group.
6954 Add header comment.
6955 (tuireglist): Remove.
6956 (tui_reggroup_completer): New function.
6957 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6958 creation of 'tui reg' command.
6959 * NEWS: Add comment about 'tui reg' changes.
6960
d309493c
SM
69612015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6962
6963 * target.c (target_read): Consider addressable unit size when
6964 reading from a memory object.
6965 (read_memory_robust): Same.
6966 (read_whatever_is_readable): Same.
6967 (target_write_with_progress): Consider addressable unit size
6968 when writing to a memory object.
6969 * target.h (target_read): Update documentation.
6970 (target_write): Add documentation.
6971
3374165f
SM
69722015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6973
6974 * arch-utils.h (default_addressable_memory_unit_size): New.
6975 * arch-utils.c (default_addressable_memory_unit_size): New.
6976 * gdbarch.sh (addressable_memory_unit_size): New.
6977 * gdbarch.h: Re-generate.
6978 * gdbarch.c: Re-generate.
6979
279a6fed
SM
69802015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6981
6982 * target.c (target_read): Rename variables and use
6983 TARGET_XFER_E_IO.
6984 (target_read_with_progress): Same.
6985 (read_memory_robust): Constify parameters and rename
6986 variables.
6987 (read_whatever_is_readable): Constify parameters,
6988 rename variables, adjust formatting.
6989 * target.h (read_memory_robust): Constify parameters.
6990
1e5338b6 69912015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6992
6993 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6994 synthetic (non-AltiVec) vector types.
6995 (ppc64_sysv_abi_return_value): Likewise.
6996
98aa42ee
AT
69972015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6998
6999 PR breakpoints/16465
7000 * breakpoint.c (create_breakpoint): Save extra_string for
7001 pending breakpoints.
7002
966f0aef
WT
70032015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7004
7005 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7006 and bt_mask to CORE_ADDR.
7007
6449ed0d
GB
70082015-06-11 Gary Benson <gbenson@redhat.com>
7009
7010 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7011 (mnsh_recv_message): Likewise.
7012
34f8ac9f
WT
70132015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7014
7015 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7016 long long int and plongest instead of %ll.
7017
198c808c
GB
70182015-06-11 Gary Benson <gbenson@redhat.com>
7019
7020 * nat/linux-namespaces.c (gdb_wait.h): New include.
7021 (sys/wait.h): Do not include.
7022
e815d2d2
SM
70232015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7024
7025 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7026 end_sequence is true.
7027
8847cac2
JK
70282015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7029
7030 Code cleanup.
7031 * solib-target.c (library_list_start_list): Use explicit NULL
7032 comparison.
7033
24c05f46
JK
70342015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 * solib-target.c (library_list_start_list): Do not dereference
7037 variable version in its initialization. Make the VERSION check handle
7038 NULL.
7039 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7040
51aad7cc
GB
70412015-06-10 Gary Benson <gbenson@redhat.com>
7042
7043 * NEWS: Announce support for direct access of executable and
7044 shared library files when attaching to inferiors in containers
7045 on GNU/Linux systems.
7046
15a201c8
GB
70472015-06-10 Gary Benson <gbenson@redhat.com>
7048
7049 * remote.c (struct remote_state) <fs_pid>: New field.
7050 (new_remote_state): Initialize the above.
7051 (PACKET_vFile_setfs): New enum value.
7052 (remote_hostio_set_filesystem): New function.
7053 (remote_hostio_open): Call the above.
7054 (remote_hostio_unlink): Likewise.
7055 (remote_hostio_readlink): Likewise.
7056 (_initialize_remote): Register new "set/show remote
7057 hostio-setfs-packet" command.
7058 * NEWS: Announce new vFile:setfs packet.
7059
7a6a1731
GB
70602015-06-10 Gary Benson <gbenson@redhat.com>
7061
7062 * linux-nat.c (nat/linux-namespaces.h): New include.
7063 (fileio.h): Likewise.
7064 (linux_nat_filesystem_is_local): New function.
7065 (linux_nat_fileio_pid_of): Likewise.
7066 (linux_nat_fileio_open): Likewise.
7067 (linux_nat_fileio_readlink): Likewise.
7068 (linux_nat_fileio_unlink): Likewise.
7069 (linux_nat_add_target): Initialize to_filesystem_is_local,
7070 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7071 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7072 commands.
7073 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7074
07c138c8
GB
70752015-06-10 Gary Benson <gbenson@redhat.com>
7076
7077 * target.h (struct inferior): New forward declaration.
7078 (struct target_ops) <to_filesystem_is_local>: Update comment.
7079 (struct target_ops) <to_fileio_open>: New argument inf.
7080 Update comment. All implementations updated.
7081 (struct target_ops) <to_fileio_unlink>: Likewise.
7082 (struct target_ops) <to_fileio_readlink>: Likewise.
7083 (target_filesystem_is_local): Update comment.
7084 (target_fileio_open): New argument inf. Update comment.
7085 (target_fileio_unlink): Likewise.
7086 (target_fileio_readlink): Likewise.
7087 (target_fileio_read_alloc): Likewise.
7088 (target_fileio_read_stralloc): Likewise.
7089 * target.c (target_fileio_open): New argument inf.
7090 Pass inf to implementation. Update debug printing.
7091 (target_fileio_unlink): Likewise.
7092 (target_fileio_readlink): Likewise.
7093 (target_fileio_read_alloc_1): New argument inf. Pass inf
7094 to target_fileio_open.
7095 (target_fileio_read_alloc): New argument inf. Pass inf to
7096 target_fileio_read_alloc_1.
7097 (target_fileio_read_stralloc): Likewise.
7098 * gdb_bfd.c (inferior.h): New include.
7099 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7100 argument with new argument "inferior". Pass inferior to
7101 target_fileio_open.
7102 (gdb_bfd_open): Supply inferior argument to
7103 gdb_bfd_iovec_fileio_open.
7104 * linux-tdep.c (linux_info_proc): Supply inf argument to
7105 relevant target_fileio calls.
7106 (linux_find_memory_regions_full): Likewise.
7107 (linux_fill_prpsinfo): Likewise.
7108 * remote.c (remote_filesystem_is_local): Supply inf
7109 argument to remote_hostio_open.
7110 (remote_file_put): Likewise.
7111 (remote_file_get): Likewise.
7112 (remote_file_delete): Supply inf argument to
7113 remote_hostio_unlink.
7114
12e2a5fd
GB
71152015-06-10 Gary Benson <gbenson@redhat.com>
7116
7117 * inf-child.c (inf_child_fileio_open): Replace comment.
7118 (inf_child_fileio_pwrite): Likewise.
7119 (inf_child_fileio_pread): Likewise.
7120 (inf_child_fileio_fstat): Insert blank line before comment.
7121 (inf_child_fileio_close): Replace comment.
7122 (inf_child_fileio_unlink): Likewise.
7123 (inf_child_fileio_readlink): Likewise.
7124 * remote.c (remote_hostio_open): Likewise.
7125 (remote_hostio_pread): Likewise.
7126 (remote_hostio_pwrite): Likewise.
7127 (remote_hostio_close): Likewise.
7128 (remote_hostio_unlink): Likewise.
7129 (remote_hostio_readlink): Likewise.
7130 (remote_hostio_fstat): Likewise.
7131 (remote_filesystem_is_local): Likewise.
7132 * target.c (target_fileio_open): Likewise.
7133 (target_fileio_pwrite): Likewise.
7134 (target_fileio_pread): Likewise.
7135 (target_fileio_fstat): Insert blank line before comment.
7136 (target_fileio_close): Replace comment.
7137 (target_fileio_unlink): Likewise.
7138 (target_fileio_readlink): Likewise.
7139 (target_fileio_read_alloc): Likewise.
7140 (target_fileio_read_stralloc): Likewise.
7141
9bc3a976
GB
71422015-06-10 Gary Benson <gbenson@redhat.com>
7143
7144 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7145 (check_pid_namespace_match): Use linux_ns_same rather than
7146 linux_proc_pid_get_ns to spot PID namespace mismatches.
7147 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7148 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7149
4b8b5e72
GB
71502015-06-10 Gary Benson <gbenson@redhat.com>
7151
7152 * configure.ac (AC_CHECK_FUNCS): Add setns.
7153 * config.in: Regenerate.
7154 * configure: Likewise.
7155 * nat/linux-namespaces.h: New file.
7156 * nat/linux-namespaces.c: Likewise.
7157 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7158 (linux-namespaces.o): New rule.
7159 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7160 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7161 * config/arm/linux.mh (NATDEPFILES): Likewise.
7162 * config/i386/linux.mh (NATDEPFILES): Likewise.
7163 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7164 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7165 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7166 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7167 * config/mips/linux.mh (NATDEPFILES): Likewise.
7168 * config/pa/linux.mh (NATDEPFILES): Likewise.
7169 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7170 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7171 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7172 * config/s390/linux.mh (NATDEPFILES): Likewise.
7173 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7174 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7175 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7176 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7177
ca095836
GB
71782015-06-10 Gary Benson <gbenson@redhat.com>
7179
7180 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7181 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7182 (make_cleanup_close): Likewise.
7183 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7184 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7185 (make_cleanup_close): Likewise.
7186
5d9c55d3
JT
71872015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7188
7189 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7190 from SuspendThread().
7191
040ea00b
JT
71922015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7193
7194 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7195 from OutputDebugString.
7196
7d73c23c
WT
71972015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7198 Mircea Gherzan <mircea.gherzan@intel.com>
7199
7200 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7201 MPX_BT_MASK_32): New macros.
7202 (i386_mpx_set_bounds): New function that implements
7203 the command "set-mpx-bound".
7204 (i386_mpx_enabled): Helper function to test MPX availability.
7205 (i386_mpx_bd_base): Helper function to calculate the base directory
7206 address.
7207 (i386_mpx_get_bt_entry): Helper function to access a bound
7208 table entry.
7209 (i386_mpx_print_bounds): Effectively display bound information.
7210 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7211 "show mpx".
7212 (_initialize_i386_tdep):
7213 Add "bound" to the commands "show mpx" and "set mpx" commands.
7214 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7215 and "show mpx" commands.
7216 * NEWS: List new commands for MPX support.
7217
3ac2e371
GB
72182015-06-09 Gary Benson <gbenson@redhat.com>
7219
7220 * common/fileio.h (fileio_to_host_mode): New declaration.
7221 * common/fileio.c (fileio_to_host_mode): New Function.
7222 * inf-child.c (inf_child_fileio_open): Process mode argument
7223 with fileio_to_host_mode.
7224
ecef18c5
GB
72252015-06-09 Gary Benson <gbenson@redhat.com>
7226
7227 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7228 conditional.
7229
e3dd7556
GB
72302015-06-05 Gary Benson <gbenson@redhat.com>
7231
7232 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7233 * remote.c (remote_filesystem_is_local): ...here.
7234
5b74bf7d
YQ
72352015-06-04 Yao Qi <yao.qi@linaro.org>
7236
7237 * gdbarch.c: Regenerate it.
7238
7f361056
JK
72392015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7240
7241 * arch-utils.c (default_infcall_munmap): New.
7242 * arch-utils.h (default_infcall_munmap): New declaration.
7243 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7244 (munmap_list_free, munmap_listp_free_cleanup): New.
7245 (struct setup_sections_data): Add field munmap_list_headp.
7246 (setup_sections): Call munmap_list_add.
7247 (compile_object_load): New variable munmap_list_head, initialize
7248 setup_sections_data.munmap_list_headp, return munmap_list_head.
7249 * compile/compile-object-load.h (struct munmap_list): New declaration.
7250 (struct compile_module): Add field munmap_list_head.
7251 (munmap_list_free): New declaration.
7252 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7253 munmap_list_head.
7254 (do_module_cleanup): Call munmap_list_free.
7255 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7256 * gdbarch.c: Regenerate.
7257 * gdbarch.h: Regenerate.
7258 * gdbarch.sh (infcall_munmap): New.
7259 * linux-tdep.c (linux_infcall_munmap): New.
7260 (linux_init_abi): Install it.
7261
3b462ec2
SM
72622015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7263
7264 PR gdb/15564
7265 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7266
8d683210
YQ
72672015-06-02 Yao Qi <yao.qi@linaro.org>
7268
7269 * i386-linux-nat.c: Include linux-nat.h.
7270
e0619de6
JK
72712015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7272 Jan Kratochvil <jan.kratochvil@redhat.com>
7273
7274 PR symtab/18392
7275 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7276 assertion.
7277 * dwarf2loc.c (chain_candidate): Likewise.
7278
bd16da51
YQ
72792015-06-01 Yao Qi <yao.qi@linaro.org>
7280
7281 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7282 (store_vfp_regs): Use PTRACE_SETREGSET.
7283
df9d7ec9
YQ
72842015-06-01 Yao Qi <yao.qi@linaro.org>
7285
7286 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7287 (fetch_fpregs): Likewise.
7288 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7289 (store_fpregs): Likewise.
7290
10766686
YQ
72912015-06-01 Yao Qi <yao.qi@linaro.org>
7292
7293 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7294 (fetch_regs): Likewise.
7295 (store_regs): Use PTRACE_SETREGSET.
7296 (store_register): Likewise.
7297
7efe48d1
YQ
72982015-06-01 Yao Qi <yao.qi@linaro.org>
7299
7300 * arm-linux-nat.c (arm_linux_read_description): Check whether
7301 kernel supports PTRACE_GETREGSET.
7302
433bbbf8
YQ
73032015-06-01 Yao Qi <yao.qi@linaro.org>
7304
7305 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7306 * linux-nat.c: ... here.
7307 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7308 to ...
7309 * linux-nat.h: ... here.
7310
ca9b78ce
YQ
73112015-06-01 Yao Qi <yao.qi@linaro.org>
7312
7313 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7314 * i386-linux-nat.c: Likewise.
7315 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7316 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7317 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7318 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7319 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7320
99cee7b7
EZ
73212015-05-30 Eli Zaretskii <eliz@gnu.org>
7322
7323 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7324 compatible to what read_child and write_child return. This
7325 unbreaks that DJGPP build of GDB which was broken since v7.7.
7326
2147f5bd
MG
73272015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7328
7329 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7330
c8f6c93c
RM
73312015-05-29 Roland McGrath <mcgrathr@google.com>
7332
7333 PR gdb/18464
7334 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7335 rather than internal_error for an unrecognized value.
7336
8c6a948d
MF
73372015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7338
7339 * xtensa-tdep.c (xtensa_pseudo_register_read)
7340 (xtensa_pseudo_register_write): Don't alias last pseudo register
7341 to a1.
7342
8dd06f7a
DB
73432015-05-28 Don Breazeal <donb@codesourcery.com>
7344
7345 * infrun.c (follow_fork_inferior): Ensure the use of
7346 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7347 messages.
7348
a051152b
DE
73492015-05-28 Doug Evans <dje@google.com>
7350
7351 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7352
a56cc1ce
YQ
73532015-05-28 Yao Qi <yao.qi@linaro.org>
7354
7355 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7356 (arm_linux_fetch_inferior_registers): Use
7357 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7358 (arm_linux_store_inferior_registers): Likewise.
7359 (arm_linux_read_description): Don't set
7360 arm_linux_has_wmmx_registers.
7361 * arm-tdep.c (arm_gdbarch_init): Set
7362 tdep->have_wmmx_registers according target descriptions.
7363 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7364 field.
7365
330c6ca9
YQ
73662015-05-28 Yao Qi <yao.qi@linaro.org>
7367
7368 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7369 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7370 instead of arm_linux_vfp_register_count.
7371 (store_vfp_regs): Likewise.
7372 (arm_linux_fetch_inferior_registers): Likewise.
7373 (arm_linux_store_inferior_registers): Likewise.
7374 (arm_linux_read_description): Don't set
7375 arm_linux_vfp_register_count.
7376 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7377 Adjust.
7378 * arm-tdep.c (arm_gdbarch_init): Add assert on
7379 vfp_register_count.
7380 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7381 field to vfp_register_count. All users updated.
7382
d403db27
KH
73832015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7384
7385 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7386 ELFOSABI_GNU binaries.
7387
d9b3de22
DE
73882015-05-27 Doug Evans <dje@google.com>
7389
7390 * dwarf2read.c (lnp_state_machine): New typedef.
7391 (lnp_reader_state): New typedef.
7392 (dwarf_record_line_1): Renamed from dwarf_record_line.
7393 All callers updated.
7394 (dwarf_record_line): New function.
7395 (init_lnp_state_machine): New function.
7396 (check_line_address): Replace p_record_line parameter with state.
7397 All callers updated.
7398 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7399 Update to record state in lnp_state_machine.
7400
924c2928
DE
74012015-05-27 Doug Evans <dje@google.com>
7402
7403 * dwarf2read.c (record_line_ftype): New typedef.
7404 (check_line_address): New function.
7405 (dwarf_decode_lines_1): Call it.
7406
27e0867f
DE
74072015-05-27 Doug Evans <dje@google.com>
7408
7409 * NEWS: Mention "set debug dwarf-line".
7410 * dwarf2read.c (dwarf_line_debug): New static global.
7411 (add_include_dir): Add debug dwarf-line support.
7412 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7413 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7414
4dcabcc2
DE
74152015-05-27 Doug Evans <dje@google.com>
7416
7417 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7418 All callers updated.
7419 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7420 * cp-support.h (cp_lookup_nested_symbol): Update.
7421
b2e2f908
DE
74222015-05-27 Doug Evans <dje@google.com>
7423
7424 PR symtab/18258
7425 * block.c (block_find_symbol): New function.
7426 (block_find_non_opaque_type): Ditto.
7427 (block_find_non_opaque_type_preferred): Ditto.
7428 * block.h (block_symbol_matcher_ftype): New typedef.
7429 (block_find_symbol): Declare.
7430 (block_find_non_opaque_type): Ditto.
7431 (block_find_non_opaque_type_preferred): Ditto.
7432 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7433 * psymtab.c (psym_lookup_symbol): Ditto.
7434 * symtab.c (basic_lookup_transparent_type_1): New function.
7435 (basic_lookup_transparent_type): Call it.
7436
f62fce35
YQ
74372015-05-27 Yao Qi <yao.qi@linaro.org>
7438
7439 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7440 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7441
5d98d3cd
YQ
74422015-05-27 Yao Qi <yao.qi@linaro.org>
7443
7444 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7445 before operator &&.
7446 (aarch64_record_load_store): Likewise.
7447
82c7be31
DE
74482015-05-26 Doug Evans <dje@google.com>
7449
7450 PR c++/18141, c++/18417.
7451 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7452 a typedef.
7453
b4f54984
DE
74542015-05-26 Doug Evans <dje@google.com>
7455
7456 * NEWS: Add entries for command renamings.
7457 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7458 All uses updated.
7459 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7460 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7461 All uses updated.
7462 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7463 All callers updated. Fix spelling of DWARF in help text.
7464 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7465 All uses updated.
7466 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7467 All uses updated.
7468 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7469 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7470 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7471 All uses updated.
7472 (show_dwarf_always_disassemble): Renamed from
7473 show_dwarf2_always_disassemble. All callers updated.
7474 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7475 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7476 "set/show dwarf max-cache-age". Rename
7477 "set/show dwarf2 always-disassemble" to
7478 "set/show dwarf always-disassemble". Rename
7479 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7480 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7481
4ea6efe9
DE
74822015-05-26 Doug Evans <dje@google.com>
7483
7484 PR python/18438
7485 * python/py-lazy-string.c (stpy_convert_to_value): Use
7486 gdbpy_gdb_memory_error not PyExc_MemoryError.
7487 (gdbpy_create_lazy_string_object): Ditto.
7488
b93fd21d
AB
74892015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7490
7491 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7492
55b40027
AB
74932015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * tui/tui-regs.c (tui_reg_prev_command): New function.
7496 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7497 * reggroups.c (reggroup_prev): New function.
7498 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7499
99afc88b
OJ
75002015-05-26 Omair Javaid <omair.javaid@linaro.org>
7501 Yao Qi <yao.qi@linaro.org>
7502
7503 * aarch64-linux-tdep.c: Include linux-record.h and
7504 record-full.h.
7505 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7506 (aarch64_syscall): New enum.
7507 (aarch64_canonicalize_syscall): New function.
7508 (aarch64_all_but_pc_registers_record): New function.
7509 (aarch64_linux_syscall_record): New function.
7510 (aarch64_linux_init_abi): Install AArch64 process record
7511 handler. Update to handle syscall recording.
7512 * aarch64-tdep.c: Include record.h and record-full.h.
7513 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7514 (struct aarch64_mem_r): Define.
7515 (aarch64_record_result): New enum.
7516 (struct insn_decode_record): Define.
7517 (insn_decode_record): New typedef.
7518 (aarch64_record_data_proc_reg): New function.
7519 (aarch64_record_data_proc_imm): New function.
7520 (aarch64_record_branch_except_sys): New function.
7521 (aarch64_record_load_store): New function.
7522 (aarch64_record_data_proc_simd_fp): New function.
7523 (aarch64_record_asimd_load_store): New function.
7524 (aarch64_record_decode_insn_handler): New function.
7525 (deallocate_reg_mem): New function.
7526 (aarch64_process_record): New function.
7527 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7528 New field.
7529 (aarch64_process_record): New extern declaration.
7530 * configure.tgt: Add linux-record.o to gdb_target_obs.
7531 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7532
c16a3f52
OJ
75332015-05-26 Omair Javaid <omair.javaid@linaro.org>
7534
7535 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7536 targets.
7537
c9cf6e20
MG
75382015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7539
7540 * amd64-tdep.c: Replace in_function_epilogue_p with
7541 stack_frame_destroyed_p throughout.
7542 * arch-utils.c: Ditto.
7543 * arch-utils.h: Ditto.
7544 * arm-tdep.c: Ditto.
7545 * breakpoint.c: Ditto.
7546 * gdbarch.sh: Ditto.
7547 * hppa-tdep.c: Ditto.
7548 * i386-tdep.c: Ditto.
7549 * mips-tdep.c: Ditto.
7550 * nios2-tdep.c: Ditto.
7551 * rs6000-tdep.c: Ditto.
7552 * s390-linux-tdep.c: Ditto.
7553 * score-tdep.c: Ditto.
7554 * sh-tdep.c: Ditto.
7555 * sparc-tdep.c: Ditto.
7556 * sparc-tdep.h: Ditto.
7557 * sparc64-tdep.c: Ditto.
7558 * spu-tdep.c: Ditto.
7559 * tic6x-tdep.c: Ditto.
7560 * tilegx-tdep.c: Ditto.
7561 * xstormy16-tdep.c: Ditto.
7562 * gdbarch.c, gdbarch.h: Re-generated.
7563
a4ea0946
AB
75642015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * NEWS: Mention 'tui enable' and 'tui disable'.
7567 * tui/tui.c (tui_enable_command): New function.
7568 (tui_disable_command): New function.
7569 (_initialize_tui): New function.
7570
b75c69bb
AB
75712015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7572
7573 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7574
c1b009ee
AB
75752015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7576
7577 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7578 buf_ptr is freed.
7579
880d1e40
AB
75802015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7581
7582 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7583 into ...
7584 (tui_set_layout_for_display_command): ...here, before calling
7585 tui_set_layout. Only set the layout if gdb has not already
7586 entered the TUI_FAILURE state.
7587
a0145030
AB
75882015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7589
7590 * tui/tui-layout.c (layout_completer): New function.
7591 (_initialize_tui_layout): Set completer on layout command.
7592
7bd0be3a
AB
75932015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7594
7595 * tui/tui-layout.c (tui_set_layout): Remove
7596 tui_register_display_type parameter. Remove all checking of this
7597 parameter, and reindent function. Update header comment.
7598 (tui_set_layout_for_display_command): Rename to...
7599 (tui_set_layout_by_name): ...this, and don't check for different
7600 register class types, don't pass a tui_register_display_type to
7601 tui_set_layout. Update header comment.
7602 (layout_names): Remove register set specific names.
7603 * tui/tui-layout.h (tui_set_layout): Remove
7604 tui_register_display_type parameter.
7605 * tui/tui.c (tui_rl_change_windows): Don't pass a
7606 tui_register_display_type to tui_set_layout.
7607 (tui_rl_delete_other_windows): Likewise.
7608 (tui_enable): Likewise.
7609 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7610 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7611 (TUI_GENERAL_REGS_NAME): Remove.
7612 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7613 (TUI_SPECIAL_REGS_NAME): Remove.
7614 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7615 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7616 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7617 (enum tui_register_display_type): Remove.
7618 (struct tui_layout_def): Remove regs_display_type and
7619 float_regs_display_type fields.
7620 (struct tui_data_info): Remove regs_display_type field.
7621 (tui_layout_command): Use new name for
7622 tui_set_layout_for_display_command.
7623 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7624 (tui_clear_win_detail): Don't initialise removed fields of
7625 win_info.
7626 * tui/tui-regs.c (tui_show_registers): Use new name for
7627 tui_set_layout_for_display_command.
7628 * tui/tui.h (tui_set_layout_for_display_command): Rename
7629 declaration to...
7630 (tui_set_layout_by_name): ...this.
7631 * printcmd.c (display_command): Remove tui related layout call,
7632 and reindent.
7633
0b6e5e10
JB
76342015-05-20 Joel Brobecker <brobecker@adacore.com>
7635
7636 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7637 (handle_inferior_event): New function.
7638
1da0522e
JB
76392015-05-20 Joel Brobecker <brobecker@adacore.com>
7640
7641 * ada-lang.c (to_fixed_array_type): Rename local variable
7642 typename into type_name.
7643
5fe75eec
JK
76442015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 Fix ASAN crash for gdb.compile/compile.exp.
7647 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7648
a4063588
JK
76492015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7652 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7653 * compile/compile-object-load.c (setup_sections, compile_object_load):
7654 Likewise.
7655 * compile/compile.c (compile_to_object): Likewise.
7656
37442ce1
DE
76572015-05-16 Doug Evans <xdje42@gmail.com>
7658
7659 * NEWS: Mention support for unbuffered Guile memory ports.
7660 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7661 (ioscm_lseek_address): Improve overflow calculation.
7662 (gdbscm_memory_port_fill_input): Add assert.
7663 (gdbscm_memory_port_write): Handle unbuffered ports.
7664 Handle large writes identical to Guile's fport_write.
7665 (gdbscm_memory_port_seek): Fix seeking past end check.
7666 (gdbscm_memory_port_close): Handle closing unbuffered port.
7667 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7668 (ioscm_init_memory_port): Handle unbuffered ports.
7669 (ioscm_reinit_memory_port): Ditto.
7670 (ioscm_init_memory_port): Update size calculation.
7671 (gdbscm_open_memory): Support zero sized ports.
7672
d976bace
JK
76732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7676 variable compiler warnings.
7677
4d18dfad
JK
76782015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7679
7680 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7681
36de76f9
JK
76822015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7683 Phil Muldoon <pmuldoon@redhat.com>
7684
7685 * NEWS (Changes since GDB 7.9): Add compile print.
7686 * compile/compile-c-support.c (add_code_header, add_code_footer)
7687 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7688 COMPILE_I_PRINT_VALUE_SCOPE.
7689 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7690 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7691 New.
7692 * compile/compile-object-load.c: Include block.h.
7693 (get_out_value_type): New function.
7694 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7695 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7696 OUT_VALUE_TYPE.
7697 * compile/compile-object-load.h (struct compile_module): Add fields
7698 out_value_addr and out_value_type.
7699 * compile/compile-object-run.c: Include valprint.h and compile.h.
7700 (struct do_module_cleanup): Add fields out_value_addr and
7701 out_value_type.
7702 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7703 COMPILE_I_PRINT_VALUE_SCOPE.
7704 (compile_object_run): Propagate out_value_addr and out_value_type.
7705 Pass OUT_VALUE_ADDR.
7706 * compile/compile.c: Include valprint.h.
7707 (compile_print_value, compile_print_command): New functions.
7708 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7709 (_initialize_compile): Update compile code help text. Install
7710 compile_print_command.
7711 * compile/compile.h (compile_print_value): New prototype.
7712 * defs.h (enum compile_i_scope_types): Add
7713 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7714
83d3415e
JK
77152015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7716
7717 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7718 Rely on its parameter count.
7719 (compile_object_load): Replace lookup_minimal_symbol_text by
7720 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7721 return value.
7722 * compile/compile-object-load.h (struct compile_module): Replace
7723 func_addr by func_sym.
7724 * compile/compile-object-run.c: Include block.h.
7725 (compile_object_run): Reset module variable after it is freed. Use
7726 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7727
3a9558c4
JK
77282015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7731 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7732 (c_compute_program): Call generate_register_struct after typedefs.
7733 * compile/compile-loc2c.c (push, pushf_register_address)
7734 (pushf_register): Cast to GCC_UINTPTR.
7735 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7736 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7737 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7738 * compile/compile.c (_initialize_compile): Enable warnings for
7739 COMPILE_ARGS.
7740
5c65b58a
JK
77412015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 * cli/cli-script.c (execute_control_command): Update
7744 eval_compile_command caller.
7745 * compile/compile-object-load.c (compile_object_load): Add parameters
7746 scope and scope_data. Set them.
7747 * compile/compile-object-load.h (struct compile_module): Add fields
7748 scope and scope_data.
7749 (compile_object_load): Add parameters scope and scope_data.
7750 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7751 scope and scope_data.
7752 (compile_object_run): Propagate the fields scope and scope_data.
7753 * compile/compile.c (compile_file_command, compile_code_command):
7754 Update eval_compile_command callers.
7755 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7756 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7757 * defs.h (struct command_line): Add field scope_data.
7758
1c88ceb1
JK
77592015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7760
7761 * printcmd.c (struct format_data): Move it to valprint.h.
7762 (print_command_parse_format, print_value): New functions from ...
7763 (print_command_1): ... here. Call them.
7764 * valprint.h (struct format_data): Move it here from printcmd.c.
7765 (print_command_parse_format, print_value): New declarations.
7766
0b738f27
JK
77672015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7768
7769 * compile/compile-object-load.c (compile_object_load): Add
7770 COMPILE_DEBUG message.
7771
aa715135
JG
77722015-05-15 Jerome Guitton <guitton@adacore.com>
7773
7774 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7775 index to get element instead of enum value.
7776 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7777 of index to compute length, but enum values to compute bounds.
7778 (ada_array_length): Use enum position of index instead of enum value.
7779 (pos_atr): Move position computation to...
7780 (ada_evaluate_subexp): Use enum values to compute bounds.
7781 * gdbtypes.c (discrete_position): ...this new function.
7782 * gdbtypes.h (discrete_position): New function declaration.
7783 * valprint.c (val_print_array_elements): Call discrete_position
7784 to handle array indexed by non-contiguous enumeration types.
7785
931e5bc3
JG
77862015-05-15 Jerome Guitton <guitton@adacore.com>
7787
7788 * ada-lang.c (find_parallel_type_by_descriptive_type):
7789 Go through typedefs during lookup.
7790 (to_fixed_array_type): Add support for non-bit packed arrays
7791 as variable-length fields.
7792
4e63d0ac
PA
77932015-05-15 Pedro Alves <palves@redhat.com>
7794 Simon Marchi <simon.marchi@ericsson.com>
7795
7796 * event-loop.c (gdb_notifier) <next_file_handler,
7797 next_poll_fds_index>: New fields.
7798 (get_next_file_handler_to_handle_and_advance): New function.
7799 (delete_file_handler): If deleting the next file handler to
7800 handle, advance to the next file handler.
7801 (gdb_wait_for_event): Bail early if no event fired. Poll file
7802 handlers in round-robin fashion.
7803
52e48b36
PA
78042015-05-15 Pedro Alves <palves@redhat.com>
7805
7806 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7807 'private' to 'priv'.
7808
2465e12e
PA
78092015-05-15 Pedro Alves <palves@redhat.com>
7810
7811 * nat/linux-nat.h: Include "target/waitstatus.h".
7812
13fa0398
YZ
78132015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7814
7815 * python/py-unwind.c (struct reg_info): Move out of ...
7816 (struct cached_frame_info): ... this scope.
7817 (pending_frame_object_type, unwind_info_object_type): Make extern.
7818
9cd4d857
JB
78192015-05-15 Joel Brobecker <brobecker@adacore.com>
7820
7821 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7822 accumSize is never negative.
7823
e3555239
PP
78242015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7825
7826 * tui/tui-command.c: Remove include of <ctype.h>.
7827 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7828
08a76f8a
MG
78292015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7830
7831 * dwarf2read.c (die_needs_namespace): Return 1 for
7832 DW_TAG_inlined_subroutine.
7833
bd49952b
JK
78342015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7835
7836 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7837 (regcache_cpy_no_passthrough): Make it static, add function comment.
7838 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7839 (regcache_cpy_no_passthrough): Remove declaration.
7840
46c03469
JK
78412015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7842
7843 * gdbthread.h (struct thread_control_state): Update comment for
7844 proceed_to_finish.
7845 * infcall.c (run_inferior_call): Update comment about
7846 proceed_to_finish.
7847 * infcmd.c (get_return_value): Update comment about stop_registers.
7848 (finish_forward): Update comment about proceed_to_finish.
7849 * infrun.c (stop_registers): Remove.
7850 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7851 * infrun.h (stop_registers): Remove.
7852
8a6c4031
JK
78532015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7854
7855 * infcall.c (struct dummy_frame_context_saver)
7856 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7857 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7858 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7859 New.
7860 (call_function_by_hand_dummy): Move discard_cleanups of
7861 inf_status_cleanup before dummy_frame_push. Call
7862 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7863 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7864 * infcall.h (struct dummy_frame_context_saver)
7865 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7866 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7867 New declarations.
7868 * infcmd.c: Include infcall.h.
7869 (get_return_value): Add parameter ctx_saver, use it instead of
7870 stop_registers.
7871 (print_return_value): Add parameter ctx_saver, pass it.
7872 (struct finish_command_continuation_args): Add field ctx_saver.
7873 (finish_command_continuation): Update print_return_value caller.
7874 (finish_command_continuation_free_arg): Free also ctx_saver.
7875 (finish_forward): Call dummy_frame_context_saver_setup.
7876 * inferior.h (struct dummy_frame_context_saver): New declaration.
7877 (get_return_value): Add parameter ctx_saver.
7878 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7879 get_return_value caller.
7880
10989690
JK
78812015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7882
7883 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7884 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7885 (remove_dummy_frame): Process dtor_list.
7886 (pop_dummy_frame): Process dtor_list.
7887 (register_dummy_frame_dtor): Maintain dtor_list.
7888 (find_dummy_frame_dtor): Handle dtor_list.
7889 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7890 Update comments.
7891
5e970501
JK
78922015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7895 registers_valid.
7896 (compile_object_run): Update do_module_cleanup caller.
7897 * dummy-frame.c: Include infcall.h.
7898 (struct dummy_frame): Update dtor comment.
7899 (remove_dummy_frame): Call dtor.
7900 (pop_dummy_frame): Update dtor caller.
7901 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7902 registers_valid.
7903
1c4eb778
JB
79042015-05-13 Joel Brobecker <brobecker@adacore.com>
7905
7906 GDB 7.9.1 released.
7907
f5f85ab9
JB
79082015-05-13 Joel Brobecker <brobecker@adacore.com>
7909
7910 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7911 Xmethods now being able to specify a result type to that new
7912 sectioin.
7913
242cd84c
PP
79142015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7915
7916 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7917 first before resizing the window.
e3555239 7918 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7919
79202015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7921
7922 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7923 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7924 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7925 dummy_dtor parameter.
7926 * infcall.h: Include dummy-frame.h.
7927 (call_function_by_hand_dummy_dtor_ftype): Remove.
7928 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7929 parameter.
7930
ebfd00d2
PP
79312015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7932
7933 PR gdb/17820
7934 * top.c (history_size_setshow_var): Change type to signed.
7935 Initialize to -2. Update documentation.
7936 (set_readline_history_size): Define.
7937 (set_history_size_command): Use it. Remove logic for handling
7938 out-of-range sizes.
7939 (init_history): Use set_readline_history_size(). Test for a
7940 value of -2 instead of 0 when determining whether to set a
7941 default history size.
7942 (init_main): Decode the argument of the "size" command as a
7943 zuinteger_unlimited.
7944
83769d0b
DE
79452015-05-12 Doug Evans <dje@google.com>
7946
7947 * dwarf2read.c (struct file_entry): Tweak comments.
7948 (get_debug_line_section): Tweak comments.
7949
0d71eef5
DB
79502015-05-12 Don Breazeal <donb@codesourcery.com>
7951
7952 * NEWS: Announce fork support in the RSP and support
7953 for fork debugging in extended mode.
7954
cbb8991c
DB
79552015-05-12 Don Breazeal <donb@codesourcery.com>
7956
7957 * remote.c (remote_insert_fork_catchpoint): New function.
7958 (remote_remove_fork_catchpoint): New function.
7959 (remote_insert_vfork_catchpoint): New function.
7960 (remote_remove_vfork_catchpoint): New function.
7961 (pending_fork_parent_callback): New function.
7962 (remove_new_fork_child): New function.
7963 (remote_update_thread_list): Call remote_notif_get_pending_events
7964 and remove_new_fork_child.
7965 (extended_remote_kill): Kill fork child when killing the
7966 parent before follow_fork completes.
7967 (init_extended_remote_ops): Initialize target vector with
7968 new fork catchpoint functions.
7969
c269dbdb
DB
79702015-05-12 Don Breazeal <donb@codesourcery.com>
7971
7972 * remote.c (remove_vfork_event_p): New function.
7973 (remote_follow_fork): Add vfork event type to event checking.
7974 (remote_parse_stop_reply): New stop reasons "vfork" and
7975 "vforkdone" for RSP 'T' Stop Reply Packet.
7976
de0d863e
DB
79772015-05-12 Don Breazeal <donb@codesourcery.com>
7978
7979 * linux-nat.c (linux_nat_ptrace_options): New function.
7980 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7981 Call linux_nat_ptrace_options and use different argument to
7982 linux_enable_event_reporting.
7983 (_initialize_linux_nat): Delete call to
7984 linux_ptrace_set_additional_flags.
c8f6c93c 7985 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7986 supported_ptrace_options.
7987 (additional_flags): Delete variable.
7988 (linux_check_ptrace_features): Use supported_ptrace_options.
7989 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7990 Likewise, and remove additional_flags check.
7991 (linux_enable_event_reporting): Change 'attached' argument to
7992 'options'. Use supported_ptrace_options.
c8f6c93c 7993 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7994 supported_ptrace_options.
7995 (linux_ptrace_set_additional_flags): Delete function.
7996 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7997 Delete function prototype.
7998 * remote.c (remote_fork_event_p): New function.
7999 (remote_detach_pid): New function.
8000 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8001 if doing detach-on-fork.
8002 (remote_follow_fork): New function.
8003 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8004 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8005 (init_extended_remote_ops): Initialize to_follow_fork.
8006
89245bc0
DB
80072015-05-12 Don Breazeal <donb@codesourcery.com>
8008
8009 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8010 from static to extern.
8011 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8012 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8013 * PACKET_vfork_event_feature>: New enumeration constants.
8014 (remote_protocol_features): Add table entries for new packets.
8015 (remote_query_supported): Add new feature queries to qSupported
8016 packet.
8017
835205d0
GB
80182015-05-12 Gary Benson <gbenson@redhat.com>
8019
8020 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8021 for fake PIDs as well as real ones.
8022 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8023
4c082a81
SC
80242015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8025
8026 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8027 * python/py-value.c (valpy_reference_value): New function.
8028 (valpy_const_value): Likewise.
8029 (value_object_methods): Add new methods.
8030 * value.c (make_cv_value): New function.
8031 * value.h (make_cv_value): Declare.
8032
afa6c9ab
SL
80332015-05-08 Yao Qi <yao@codesourcery.com>
8034 Sandra Loosemore <sandra@codesourcery.com>
8035
8036 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8037 to 'lh->include_dirs' before accessing to it.
8038 (psymtab_include_file_name): Likewise.
8039 (dwarf_decode_lines_1): Likewise.
8040 (dwarf_decode_lines): Likewise.
8041 (file_file_name): Likewise.
8042
35d54293
SL
80432015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8044
8045 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8046 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8047 (nios2_linux_rt_sigreturn_init): Adjust base address of
8048 register save area.
8049
b73c49b7
SL
80502015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8051
8052 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8053 "trap 31" as the breakpoint instruction on all targets.
8054
dd9f02a0
JK
80552015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8056
8057 * infcmd.c (print_return_value): Remove unused declaration.
8058
6ad395a7
JB
80592015-05-08 Joel Brobecker <brobecker@adacore.com>
8060
8061 * dwarf2read.c (attr_to_dynamic_prop)
8062 <DW_AT_data_member_location>: Use read_type_die isntead of
8063 get_die_type.
8064
8344af1e
JB
80652015-05-08 Joel Brobecker <brobecker@adacore.com>
8066
8067 * ada-lang.c (ada_convert_actual): Add handling of formals
8068 passed inside an aligner type.
8069
80b0912b
JB
80702015-05-08 Joel Brobecker <brobecker@adacore.com>
8071
8072 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8073
df2eb078
SC
80742015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8075
8076 PR python/18291
8077 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8078 Print xmethod matcher status.
8079
2492f0d0
AA
80802015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8081
8082 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8083 register in the regcache when treating the PSWM register, and vice
8084 versa.
8085
1c56a84d
GB
80862015-05-07 Gary Benson <gbenson@redhat.com>
8087
8088 * linux-thread-db.c (struct thread_db_info)
8089 <td_ta_map_id2thr_p>: Remove field.
8090 (try_thread_db_load_1): Remove initialization for the above.
8091
74850322
GB
80922015-05-07 Gary Benson <gbenson@redhat.com>
8093
8094 * linux-thread-db.c (struct thread_db_info)
8095 <td_thr_validate_p>: Remove field.
8096 (try_thread_db_load_1): Remove initialization for the above.
8097
e26efa40
JK
80982015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8099
8100 * compile/compile-object-load.c (compile_object_load): Support
8101 mst_text_gnu_ifunc.
8102
851c9091
JK
81032015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8104
8105 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8106 const. Use new variables for the const compatibility.
8107 (eval_compile_command): Make the cmd_string parameter const.
8108 * compile/compile.h (eval_compile_command): Make the cmd_string
8109 parameter const.
8110
f218b647
JB
81112015-05-06 Joel Brobecker <brobecker@adacore.com>
8112
8113 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8114 comment.
8115 * top.c (deprecated_init_ui_hook): Delete.
8116 (gdb_init): Remove handling of deprecated_init_ui_hook.
8117 * interps.c (clear_interpreter_hooks): Remove handling of
8118 deprecated_init_ui_hook.
8119 * main.c (captured_main): Update comment.
8120
b30a0bc3
JB
81212015-05-06 Joel Brobecker <brobecker@adacore.com>
8122
8123 * solib.c (_initialize_solib): Add "info dll" alias creation.
8124 * windows-nat.c (set_windows_aliases): Delete.
8125 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8126 assignment.
8127 * NEWS: Add news entry about "info dll" now being available
8128 on all platforms.
8129
7c512744
JB
81302015-05-05 Joel Brobecker <brobecker@adacore.com>
8131
8132 * ada-lang.c (value_assign_to_component): Reformat and improve
8133 documentation. Remove all trailing spaces.
8134
0fa7fe50
JB
81352015-05-05 Joel Brobecker <brobecker@adacore.com>
8136
8137 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8138 Stop counting inlined frames as soon as an out-of-line function
8139 is found.
8140
3ea89b92
PMR
81412014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8142
8143 * dwarf2read.c (inherit_abstract_dies): Skip
8144 DW_TAG_GNU_call_site dies while inheriting children of an
8145 abstract DIE into a scope.
8146 (read_lexical_block_scope): Inherit abstract DIE's for
8147 lexical scopes.
8148
2478d075
JB
81492015-05-05 Joel Brobecker <brobecker@adacore.com>
8150
8151 * ada-valprint.c (val_print_packed_array_elements): Delete
8152 variable "len". Add a type-length check when comparing two
8153 consecutive elements of the array. Use the element's actual
8154 length in call to value_contents_eq.
8155 * ada-lang.c (ada_value_primitive_packed_val): Always return
8156 a value whose type has been resolved.
8157
fc958966
JB
81582015-05-05 Joel Brobecker <brobecker@adacore.com>
8159
8160 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8161 BIT_SIZE and LEN if the size of the resolved type is smaller
8162 than BIT_SIZE * HOST_CHAR_BIT.
8163
ca34b84f
JB
81642015-05-05 Joel Brobecker <brobecker@adacore.com>
8165
8166 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8167 correct address in call to value_at. Adjust call to
8168 value_address accordingly.
8169
62c67f3c
JB
81702015-05-05 Joel Brobecker <brobecker@adacore.com>
8171
8172 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8173 to print it.
8174
c3345124
JB
81752015-05-05 Joel Brobecker <brobecker@adacore.com>
8176
8177 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8178 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8179 pinfo->valaddr.
8180 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8181 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8182 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8183 Add handling of addr_stack->valaddr.
8184 (resolve_dynamic_type): Add "valaddr" parameter.
8185 Set pinfo.valaddr field.
8186 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8187 resolve_dynamic_type.
8188 (ada_discrete_type_low_bound): Likewise.
8189 * findvar.c (default_read_var_value): Likewise.
8190 * value.c (value_from_contents_and_address): Likewise.
8191
75ea5859
JB
81922015-05-05 Joel Brobecker <brobecker@adacore.com>
8193
8194 * gdbtypes.c (resolve_dynamic_array): Use
8195 create_array_type_with_stride instead of create_array_type.
8196
0952813b
DD
81972015-04-30 DJ Delorie <dj@redhat.com>
8198
8199 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8200 rl78_decode_opcode
8201
2ce1cdbf
DE
82022015-04-29 Doug Evans <dje@google.com>
8203
8204 PR python/18285
8205 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8206 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8207 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8208 * extension-priv.h (struct extension_language_ops)
8209 <get_xmethod_result_type>: New member.
8210 * extension.c (get_xmethod_result_type): New function.
8211 * extension.h (get_xmethod_result_type): Declare.
8212 * python/py-xmethods.c (get_result_type_method_name): New static
8213 global.
8214 (py_get_result_type_method_name): Ditto.
8215 (gdbpy_get_xmethod_result_type): New function.
8216 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8217 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8218 * python/python.c (python_extension_ops): Add
8219 gdbpy_get_xmethod_result_type.
8220 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8221 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8222 xmethods.
8223 (value_x_unop): Ditto.
8224 * value.c (result_type_of_xmethod): New function.
8225 * value.h (result_type_of_xmethod): Declare.
8226
998d2a3e
GB
82272015-04-29 Gary Benson <gbenson@redhat.com>
8228
8229 * solib.c (solib_find_1): Allow fd argument to be NULL.
8230 (exec_file_find): Update comment.
8231 (solib_find): Likewise.
8232 * exec.c (exec_file_locate_attach): Use NULL as fd
8233 argument to exec_file_find to avoid having to close
8234 the opened file.
8235 * infrun.c (follow_exec): Likewise.
8236
34f5f757
DE
82372015-04-28 Doug Evans <dje@google.com>
8238
8239 PR python/18299
8240 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8241 name or __name__ attributes. Handle gdb module as first argument.
8242
69b4374a
DE
82432015-04-28 Doug Evans <dje@google.com>
8244
8245 PR python/18089
8246 * python/py-prettyprint.c (print_children): Verify result of children
8247 iterator. Provide better error message.
8248 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8249 * python/python.c (gdbpy_print_python_errors_p): New function.
8250
5e7cf078
DE
82512015-04-28 Doug Evans <dje@google.com>
8252
8253 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8254
59fb7612
SS
82552015-04-28 Sasha Smundak <asmundak@google.com>
8256
8257 * NEWS: Mention gdb.Type.optimized_out method.
8258 * python/py-type.c (typy_optimized_out): New function.
8259
cea6e4f1
JB
82602015-04-28 John Baldwin <jhb@FreeBSD.org>
8261
8262 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8263
24b73f8e
PP
82642015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8265
8266 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8267 (initialize_utils): Move call of init_page_info() to ...
8268 * top.c (gdb_init): ... here.
8269
a88d0bb3
PP
82702015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8271
8272 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8273 (tui_sigwinch_handler): Still update our idea of
8274 the terminal's width and height even when TUI is not active.
8275
d6e5e7f7
PP
82762015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8277
8278 * utils.h (set_screen_width_and_height): Declare.
8279 * utils.c (set_screen_width_and_height): Define.
8280 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8281
ff862be4
GB
82822015-04-28 Gary Benson <gbenson@redhat.com>
8283
8284 * infrun.c (solist.h): New include.
8285 (follow_exec): Use exec_file_find to prefix execd_pathname
8286 with gdb_sysroot.
8287
2eb639cb
PP
82882015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8289
8290 * tui/tui-source.c (tui_set_source_content): Avoid calling
8291 strcpy() when offset is 0.
8292
97206799
PP
82932015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8294
8295 PR gdb/18155
8296 * tui/tui-data.c (tui_free_window): Don't free the locator
8297 window when passed an SRC_WIN or a DISASSEM_WIN.
8298
63ed8182
PP
82992015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8300
8301 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8302 (tui_win_content): Move declaration.
8303 (struct tui_gen_win_info): Give 'content' field the
8304 type tui_win_content.
8305 * tui/tui-data.c (init_content_element): Remove redundant and
8306 erroneous casts.
8307 (tui_add_content_elements): Remove erroneous cast.
8308 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8309 casts.
8310 (tui_get_begin_asm_address): Likewise.
8311 * tui/tui-regs.c (tui_show_registers): Likewise.
8312 (tui_show_register_group): Likewise.
8313 (tui_display_registers_from): Likewise.
8314 (tui_check_register_values): Likewise.
8315 * tui/tui-source.c (tui_set_source_content): Likewise.
8316 (tui_set_source_content_nil): Likewise.
8317 (tui_source_is_displayed): Likewise.
8318 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8319 (tui_set_locator_fullname): Likewise.
8320 (tui_set_locator_info): Likewise.
8321 (tui_show_frame_info): Likewise.
8322 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8323 (tui_show_source_line): Likewise.
8324 (tui_horizontal_source_scroll): Likewise.
8325 (tui_update_breakpoint_info): Likewise.
8326 (tui_set_exec_info_content): Likewise.
8327 (tui_show_exec_info_content): Likewise.
8328 (tui_alloc_source_buffer): Likewise.
8329 (tui_line_is_displayed): Likewise.
8330 (tui_addr_is_displayed): Likewise.
8331
d2b41ca0
JB
83322015-04-27 John Baldwin <jhb@FreeBSD.org>
8333
8334 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8335 event if PL_FLAG_EXEC is set.
8336 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8337 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8338 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8339 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8340 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8341
e58e05d6
JB
83422015-04-27 John Baldwin <jhb@FreeBSD.org>
8343
8344 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8345 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8346 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8347 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8348 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8349 [PT_LWPINFO] (fbsd_wait): New function.
8350 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8351 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8352 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8353 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8354 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8355 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8356 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8357 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8358 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8359 "fbsd_wait".
8360 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8361 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8362 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8363 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8364 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8365 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8366 Set "to_post_attach" to "fbsd_post_attach".
8367
8f60fe01
JB
83682015-04-27 John Baldwin <jhb@FreeBSD.org>
8369
8370 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8371 (fbsd_find_memory_regions): Mark static.
8372 (fbsd_nat_add_target): New function.
8373 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8374 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8375 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8376 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8377 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8378 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8379
5fbae7d1
GB
83802015-04-27 Gary Benson <gbenson@redhat.com>
8381
8382 * objfiles.c (allocate_objfile): Do not attempt to expand name
8383 if name is a "target:" filename.
8384 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8385 to load auto-load scripts for objfiles with "target:" filenames.
8386
417c80f9
AA
83872015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8388
8389 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8390 (enum s390_vector_abi_kind): New enum.
8391 (struct gdbarch_tdep)<vector_abi>: New field.
8392 (s390_effective_inner_type): Add parameter min_size. Stop
8393 unwrapping if the inner type is smaller than min_size.
8394 (s390_function_arg_float): Adjust call to
8395 s390_effective_inner_type.
8396 (s390_function_arg_vector): New function.
8397 (s390_function_arg_integer): Adjust comment.
8398 (struct s390_arg_state)<vr>: New field.
8399 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8400 arguments according to vector ABI when appropriate.
8401 (s390_push_dummy_call): Initialize the argument state's field
8402 'vr'. Adjust calls to s390_handle_arg.
8403 (s390_register_return_value): Handle vector return values.
8404 (s390_return_value): Apply the "register" return value convention
8405 to a vector when appropriate.
8406 (s390_gdbarch_init): Initialize tdep->vector_abi.
8407 * NEWS: Announce S390 vector ABI support.
8408
4e65a17e
AA
84092015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8410
8411 * s390-linux-tdep.c (s390_return_value_convention): Remove
8412 function. Inline its logic...
8413 (s390_return_value): ...here. Instead, move the handling of the
8414 "register" return value convention...
8415 (s390_register_return_value): ...here. New function.
8416
80f75320
AA
84172015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8418
8419 * s390-linux-tdep.c
8420 (is_float_singleton): Remove function. Move the "singleton" part
8421 of the logic...
8422 (s390_effective_inner_type): ...here. New function.
8423 (is_float_like): Remove function. Inline its logic...
8424 (s390_function_arg_float): ...here.
8425 (is_pointer_like, is_integer_like, is_struct_like): Remove
8426 functions. Inline their logic...
8427 (s390_function_arg_integer): ...here.
8428 (s390_function_arg_pass_by_reference): Remove function.
8429 (extend_simple_arg): Remove function.
8430 (alignment_of): Remove function.
8431 (struct s390_arg_state): New structure.
8432 (s390_handle_arg): New function.
8433 (s390_push_dummy_call): Move parameter placement logic to the new
8434 function s390_handle_arg. Call it for calculating the stack area
8435 sizes first, and again for actually writing the parameters.
8436
6dbc9c04
AA
84372015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8438
8439 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8440 false if the argument is zero.
8441
9e195661
PMR
84422015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8443
8444 * ada-lang.c (template_to_static_fixed_type): Return input type
8445 when it is already fixed. Cache the input type itself when not
8446 creating a static fixed copy. Make it explicit that we never
8447 molestate the input type.
8448 * gdbtypes.c (resolve_dynamic_struct): Reset the
8449 TYPE_TARGET_TYPE field for resolved copies.
8450
460efde1
JB
84512015-04-27 Joel Brobecker <brobecker@adacore.com>
8452
8453 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8454 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8455 (template_to_static_fixed_type): Call ada_check_typedef only
8456 when necessary.
8457
6faec16b
AB
84582015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * cli/cli-dump.c (srec_dump_command): Add internationalization
8461 mark ups.
8462 (ihex_dump_command): Likewise.
8463 (tekhex_dump_command): Likewise.
8464 (binary_dump_command): Likewise.
8465 (binary_append_command): Likewise.
8466
cf75d6c3
AB
84672015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 * cli/cli-dump.c (verilog_cmdlist): New variable.
8470 (dump_verilog_memory): New function.
8471 (dump_verilog_value): New function.
8472 (verilog_dump_command): New function.
8473 (_initialize_cli_dump): Add new commands to support verilog dump
8474 format.
8475 * NEWS: Add entry for "dump verilog".
8476
8cd00c59
PMR
84772015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8478
8479 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8480 descriptive type when there is none.
8481
8900d71e
PP
84822015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8483
8484 * tui/tui-win.c (tui_async_resize_screen): Call
8485 rl_resize_terminal().
8486
f16eab5f
JT
84872015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8488
8489 * windows-nat.c (handle_output_debug_string): Don't change
8490 current_event.dwThreadId.
8491 (get_windows_debug_event): Use thread_id, rather than relying on
8492 current_event.dwThreadId being changed.
8493
68ffc902
JT
84942015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8495
8496 * windows-nat.c (windows_continue): Report an error if
8497 ContinueDebugEvent() fails.
8498
23942819
JT
84992015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8500
8501 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8502
e6ad66bd
JT
85032015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8504
8505 * windows-nat.c (get_windows_debug_event): Replace retval with
8506 thread_id throughout. Update stale comment.
8507
776704b9
JT
85082015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8509
8510 * windows-nat.c (get_windows_debug_event): Don't use ternary
8511 conditional operator.
8512
8aae4344
PM
85132015-04-21 Pierre Muller <muller@sourceware.org>
8514
8515 PR pascal/17815
8516 p-exp.y (yylex): Reorganize code to return the matched pattern
8517 for a field of this.
8518
819843c7
GB
85192015-04-21 Gary Benson <gbenson@redhat.com>
8520
8521 * common/fileio.h (fileio_to_host_openflags): New declaration.
8522 * common/fileio.c (fcntl.h): New include.
8523 (fileio_to_host_openflags): New function, factored out from...
8524 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8525 Single use updated.
8526
0bca7f99
KB
85272015-04-21 Kevin Buettner <kevinb@redhat.com>
8528
8529 * rl78-tdep.c (RL78_SP_ADDR): Define.
8530 (opc_reg_to_gdb_regnum): New static function.
8531 (rl78_analyze_prologue): Recognize instructions forming slightly
8532 more interesting prologues.
8533
e771e4be
PMR
85342015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8535
8536 Revert:
8537 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8538 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8539 TYPE_CODE_REF types so that they are not considered as dynamic
8540 depending on the referenced type.
8541 (resolve_dynamic_type_internal): Likewise.
8542
ee715b5a
PMR
85432015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8544
8545 Revert:
8546 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8547 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8548 "top_level" parameter.
8549 (resolve_dynamic_type_internal): Remove the unused "top_level"
8550 parameter. Update call to is_dynamic_type_internal.
8551 (is_dynamic_type): Update call to is_dynamic_type_internal.
8552 (resolve_dynamic_range): Update call to
8553 resolve_dynamic_type_internal.
8554 (resolve_dynamic_union): Likewise.
8555 (resolve_dynamic_struct): Likewise.
8556 (resolve_dynamic_type): Likewise.
8557
e31d7699
GKB
85582015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8559
8560 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8561 xmalloc.
8562
d214e5e7
TS
85632015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8564
110f9112
TS
8565 * reply_mig_hack.awk: Robustify parsing.
8566
d214e5e7
TS
8567 * reply_mig_hack.awk: Don't bother to declare an intermediate
8568 function pointer variable.
8569
8f61baf8
DE
85702015-04-17 Doug Evans <dje@google.com>
8571
8572 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8573 to "exec_displacement" to avoid confusion with inner use of the name.
8574
dbbf180a
YQ
85752015-04-17 Pedro Alves <palves@redhat.com>
8576
8577 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8578 if HW point of TYPE isn't supported.
8579
059790a0
YQ
85802015-04-17 Yao Qi <yao.qi@linaro.org>
8581 Pedro Alves <palves@redhat.com>
8582
8583 * target.h (target_can_use_hardware_watchpoint): Update comments.
8584 Remove trailing ";".
8585
1b6e6f5c
GB
85862015-04-17 Gary Benson <gbenson@redhat.com>
8587
8588 * remote.c (remote_add_inferior): New argument try_open_exec.
8589 If nonzero, attempt to open the inferior's executable file as
8590 the main executable if no main executable is open already.
8591 All callers updated.
8592 * NEWS: Mention that GDB now supports automatic location and
8593 retrieval of executable + files from remote targets.
8594
c78fa86a
GB
85952015-04-17 Gary Benson <gbenson@redhat.com>
8596
8597 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8598 * remote.c (PACKET_qXfer_exec_file): Likewise.
8599 (remote_protocol_features): Register the
8600 "qXfer:exec-file:read" feature.
8601 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8602 (remote_pid_to_exec_file): New function.
8603 (init_remote_ops): Initialize to_pid_to_exec_file.
8604 (_initialize_remote): Register new "set/show remote
8605 pid-to-exec-file-packet" command.
8606 * NEWS: Announce new qXfer:exec-file:read packet.
8607
e0d86d2c
GB
86082015-04-17 Gary Benson <gbenson@redhat.com>
8609
8610 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8611 New declaration.
8612 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8613 New function, factored out from...
8614 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8615
a9a5a3d1
GB
86162015-04-17 Gary Benson <gbenson@redhat.com>
8617
8618 * exec.c (solist.h): New include.
8619 (exec_file_locate_attach): Prefix absolute executable
8620 paths with gdb_sysroot if set.
8621 * NEWS: Mention that executable paths may be prepended
8622 with sysroot.
8623
af1900b0
GB
86242015-04-17 Gary Benson <gbenson@redhat.com>
8625
8626 * solist.h (exec_file_find): New declaration.
8627 * solib.c (solib_find_1): New function, factored out from...
8628 (solib_find): ...here.
8629 (exec_file_find): New function.
8630
a10de604
GB
86312015-04-17 Gary Benson <gbenson@redhat.com>
8632
8633 * gdbcore.h (exec_file_locate_attach): New declaration.
8634 * exec.c (exec_file_locate_attach): New function, factored
8635 out from...
8636 * infcmd.c (attach_command_post_wait): ...here.
8637
92209ddf
MF
86382015-04-17 Mike Frysinger <vapier@gentoo.org>
8639
8640 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8641
8550d3b3
YQ
86422015-04-16 Yao Qi <yao.qi@linaro.org>
8643
8644 * infrun.c (maybe_software_singlestep): Declare.
8645 (displaced_step_fixup): Call maybe_software_singlestep.
8646
30b3dd9d
DE
86472015-04-15 Doug Evans <dje@google.com>
8648
8649 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8650
61d96d7e
DE
86512015-04-15 Doug Evans <dje@google.com>
8652
8653 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8654
40d2f8d6
SM
86552015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8656
8657 * python/lib/gdb/command/unwinders.py: Add parentheses.
8658
6bbbba9b
YQ
86592015-04-15 Yao Qi <yao.qi@linaro.org>
8660
8661 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8662
2bb2dcab
YQ
86632015-04-15 Yao Qi <yao.qi@linaro.org>
8664
8665 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8666
41f071ef
YQ
86672015-04-15 Yao Qi <yao.qi@linaro.org>
8668
8669 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8670 dsc->insn_size instead of 4.
8671
326a5c7e
GB
86722015-04-14 Gary Benson <gbenson@redhat.com>
8673
8674 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8675 * minidebug.c (lzma_stat): Likewise.
8676 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8677 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8678
dd177e81
SS
86792015-04-13 Stan Shebs <stanshebs@google.com>
8680
8681 * MAINTAINERS: Update my email address.
8682
97de3545
JB
86832015-04-13 John Baldwin <jhb@FreeBSD.org>
8684
8685 * amd64-tdep.c (amd64_target_description): New function.
8686 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8687 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8688 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8689 x86 extended save area.
8690 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8691 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8692 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8693 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8694 "amd64fbsd_read_description".
8695 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8696 (amd64fbsd_supply_xstateregset): New function.
8697 (amd64fbsd_collect_xstateregset): New function.
8698 Add "amd64fbsd_xstateregset".
8699 (amd64fbsd_iterate_over_regset_sections): New function.
8700 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8701 "I386_FBSD_XSAVE_XCR0_OFFSET".
8702 Add "iterate_over_regset_sections" gdbarch method.
8703 Add "core_read_description" gdbarch method.
8704 * i386-tdep.c (i386_target_description): New function.
8705 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8706 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8707 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8708 x86 extended save area.
8709 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8710 * i386bsd-nat.h: Export i386bsd_xsave_len.
8711 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8712 (_initialize_i386fbsd_nat): Set "to_read_description" to
8713 "i386fbsd_read_description".
8714 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8715 (i386fbsd_core_read_description): New function.
8716 (i386fbsd_supply_xstateregset): New function.
8717 (i386fbsd_collect_xstateregset): New function.
8718 Add "i386fbsd_xstateregset".
8719 (i386fbsd_iterate_over_regset_sections): New function.
8720 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8721 "I386_FBSD_XSAVE_XCR0_OFFSET".
8722 Add "iterate_over_regset_sections" gdbarch method.
8723 Add "core_read_description" gdbarch method.
8724 * i386fbsd-tdep.h: New file.
8725
4f45d445
JK
87262015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8729 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8730 conditional.
8731 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8732 and lb.
8733 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8734 va.
8735 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8736 conditional.
8737 * defs.h (xdb_commands): Remove declaration.
8738 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8739 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8740 * infcmd.c (run_no_args_command, go_command): Remove.
8741 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8742 * infrun.c (xdb_handle_command): Remove.
8743 (_initialize_infrun): Remove xdb_commands for lz and z.
8744 * main.c (xdb_commands): Remove variable.
8745 (captured_main): Remove "xdb" from long_options.
8746 (print_gdb_help): Remove --xdb from help.
8747 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8748 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8749 * stack.c (backtrace_full_command, args_plus_locals_info)
8750 (current_frame_command): Remove.
8751 (_initialize_stack): Remove xdb_commands for t, T and l.
8752 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8753 * thread.c (_initialize_thread): Remove xdb_commands condition.
8754 * tui/tui-layout.c (tui_toggle_layout_command)
8755 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8756 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8757 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8758 (tui_scroll_regs_backward_command): Remove.
8759 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8760 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8761 (_initialize_tui_win): Remove xdb_commands for U and w.
8762 * utils.c (pagination_on_command, pagination_off_command): Remove.
8763 (initialize_utils): Remove xdb_commands for am and sm.
8764
cb71640d
PA
87652015-04-10 Pedro Alves <palves@redhat.com>
8766
8767 * infrun.c (displaced_step_fixup): Switch to the event ptid
8768 earlier. If the thread stopped for a watchpoint and the
8769 target/arch has non-continuable watchpoints, cancel the displaced
8770 step.
8771 (resume): Don't start a displaced step if in-line step-over info
8772 is valid.
8773
8f572e5c
PA
87742015-04-10 Pedro Alves <palves@redhat.com>
8775
8776 * infrun.c (displaced_step_in_progress): New function.
8777 (do_target_resume): Advise target to report all signals if
8778 displaced stepping.
8779
8d707a12
PA
87802015-04-10 Pedro Alves <palves@redhat.com>
8781
8782 PR gdb/18216
8783 * infrun.c (process_event_stop_test): Don't assume a step-resume
8784 is set if tp->stepped_breakpoint is true.
8785
ef713951
YQ
87862015-04-10 Yao Qi <yao.qi@linaro.org>
8787
8788 * arm-tdep.c (install_alu_reg): Update comment.
8789 (thumb_copy_alu_reg): Remove local variable rn. Update
8790 debugging message. Use r2 instead of r1 in the modified
8791 instruction.
8792
906d60cf
PA
87932015-04-10 Pedro Alves <palves@redhat.com>
8794
8795 PR gdb/13858
8796 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8797 linux_displaced_step_location as gdbarch_displaced_step_location
8798 hook.
8799 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8800 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8801 * linux-tdep.c (linux_displaced_step_location): New function,
8802 based on ppc_linux_displaced_step_location.
8803 * linux-tdep.h (linux_displaced_step_location): New declaration.
8804 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8805 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8806 Delete.
8807 (ppc_linux_init_abi): Install linux_displaced_step_location as
8808 gdbarch_displaced_step_location hook, even without Cell/B.E..
8809 (_initialize_ppc_linux_tdep): Don't install
8810 ppc_linux_inferior_created as inferior_created observer.
8811 * s390-linux-tdep.c (s390_gdbarch_init): Install
8812 linux_displaced_step_location as gdbarch_displaced_step_location
8813 hook.
8814
7823a941
GB
88152015-04-09 Gary Benson <gbenson@redhat.com>
8816
8817 * common/common-remote-fileio.h: Rename to...
8818 * common/fileio.h: ...this. Update all references.
8819 (remote_fileio_to_fio_error): Rename to...
8820 (host_to_fileio_error): ...this.
8821 (remote_fileio_to_be): Rename to...
8822 (host_to_bigendian): ...this. Update all callers.
8823 (remote_fileio_to_fio_uint): Rename to...
8824 (host_to_fileio_uint): ...this. Update all callers.
8825 (remote_fileio_to_fio_time): Rename to...
8826 (host_to_fileio_time): ...this. Update all callers.
8827 (remote_fileio_to_fio_stat): Rename to...
8828 (host_to_fileio_stat): ...this.
8829 Update all references.
8830 * common/common-remote-fileio.c: Rename to...
8831 * common/fileio.c: ...this. Update all references.
8832 (remote_fileio_to_fio_error): Rename to...
8833 (host_to_fileio_error): ...this. Update all callers.
8834 (remote_fileio_mode_to_target): Rename to...
8835 (fileio_mode_pack): ...this. Update all callers.
8836 (remote_fileio_to_fio_mode): Rename to...
8837 (host_to_fileio_mode): ...this. Update all callers.
8838 (remote_fileio_to_fio_ulong): Rename to...
8839 (host_to_fileio_ulong): ...this. Update all callers.
8840 (remote_fileio_to_fio_stat): Rename to...
8841 (host_to_fileio_stat): ...this. Update all callers.
8842
f2983cc3
AW
88432015-04-09 Andy Wingo <wingo@igalia.com>
8844
8845 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8846 (frame_functions): Bind gdbscm_frame_read_register to
8847 frame-read-register.
8848 * guile/lib/gdb.scm (frame-read-register): Export.
8849
b88bb450
GB
88502015-04-09 Gary Benson <gbenson@redhat.com>
8851
8852 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8853 New declaration.
8854 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8855 New function, factored out the named functions below.
8856 * inf-child.c (gdb/fileio.h): Remove include.
8857 (common-remote-fileio.h): New include.
8858 (inf_child_errno_to_fileio_error): Remove function. Update
8859 all callers to use remote_fileio_to_fio_error.
8860 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8861
2f2680f3
AW
88622015-04-09 Andy Wingo <wingo@igalia.com>
8863
8864 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8865
5a2d4533
L
88662015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8867
8868 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8869 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8870 * configure: Regenerated.
8871
421693b0
PA
88722015-04-09 Pedro Alves <palves@redhat.com>
8873
8874 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8875 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8876 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8877 * gnulib/import/Makefile.am: Update.
8878 * gnulib/import/Makefile.in: Update.
8879 * gnulib/import/m4/gnulib-cache.m4: Update.
8880 * gnulib/import/m4/gnulib-comp.m4: Update.
8881 * gnulib/import/m4/strtok_r.m4: New file.
8882 * gnulib/import/strtok_r.c: New file.
8883
f543dc83
PA
88842015-04-09 Pedro Alves <palves@redhat.com>
8885
8886 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8887 "called too early to check prototype".
8888
6d62641c
SDJ
88892015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8890
8891 PR python/16699
8892 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8893 use a caching mechanism. Adjust comments and code to reflect
8894 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8895 (cmdpy_completer_handle_brkchars): Adjust call to
8896 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8897 (cmdpy_completer): Likewise.
8898
85558555
YQ
88992015-04-08 Yao Qi <yao.qi@linaro.org>
8900
8901 * spu-tdep.c (spu_gdbarch_init): Don't call
8902 set_gdbarch_cannot_step_breakpoint.
8903
d249a14a
SDJ
89042015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8905
8906 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8907
8a06aea7
PA
89082015-04-07 Pedro Alves <palves@redhat.com>
8909
8910 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8911 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8912 (delete_exited_threads): New declaration.
8913 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8914 * linux-nat.c (linux_nat_update_thread_list): New function.
8915 (linux_nat_add_target): Install it.
8916 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8917 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8918 (delete_exited_threads): New function.
8919
d9b67d9f
PA
89202015-04-07 Pedro Alves <pedro@codesourcery.com>
8921
8922 * infrun.c (resume) <displaced stepping debug output>: Get the
8923 leader thread's regcache, not resume_ptid's.
8924
2c26b84f
DE
89252015-04-06 Doug Evans <xdje42@gmail.com>
8926
8927 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8928 VAR_DOMAIN.
8929 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8930 Include symbol domain in debugging output.
8931
7a85168d
PA
89322015-04-06 Pedro Alves <palves@redhat.com>
8933 Bernd Edlinger <bernd.edlinger@hotmail.de>
8934
8935 * configure.ac: Remove the mingw32-specific stub-termcap.o
8936 fallback, and instead fallback to the stub termcap on all hosts.
8937 * configure: Regenerate.
8938 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8939 symbols.
8940
25755e2b
PMR
89412015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8942
8943 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8944 "top_level" parameter.
8945 (resolve_dynamic_type_internal): Remove the unused "top_level"
8946 parameter. Update call to is_dynamic_type_internal.
8947 (is_dynamic_type): Update call to is_dynamic_type_internal.
8948 (resolve_dynamic_range): Update call to
8949 resolve_dynamic_type_internal.
8950 (resolve_dynamic_union): Likewise.
8951 (resolve_dynamic_struct): Likewise.
8952 (resolve_dynamic_type): Likewise.
8953
961f4160
PMR
89542015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8955
8956 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8957 TYPE_CODE_REF types so that they are not considered as dynamic
8958 depending on the referenced type.
8959 (resolve_dynamic_type_internal): Likewise.
8960
39f3de7c
L
89612015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8962
8963 * Makefile.in (top_srcdir): New.
8964 * configure: Regenerated.
8965
599bd15c
GB
89662015-04-02 Gary Benson <gbenson@redhat.com>
8967
8968 * NEWS: Announce the new default sysroot of "target:".
8969
fed040c6
GB
89702015-04-02 Gary Benson <gbenson@redhat.com>
8971
8972 * main.c (captured_main): Set gdb_sysroot to "target:"
8973 if not otherwise set.
8974
64c0b5de
GB
89752015-04-02 Gary Benson <gbenson@redhat.com>
8976
8977 * exec.c (exec_file_attach): Support "target:" filenames.
8978
b57fbfba
GB
89792015-04-02 Gary Benson <gbenson@redhat.com>
8980
8981 * solib.c (solib_find): Strip "target:" prefix from sysroot
8982 if accessing local files.
8983
97a41605
GB
89842015-04-02 Gary Benson <gbenson@redhat.com>
8985
8986 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8987 checks and error messages.
8988
2938e6cf
GB
89892015-04-02 Gary Benson <gbenson@redhat.com>
8990
8991 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8992 (remote_filename_p): Remove declaration.
8993 (remote_bfd_open): Likewise.
8994 * remote.c (remote_bfd_iovec_open): Remove function.
8995 (remote_bfd_iovec_close): Likewise.
8996 (remote_bfd_iovec_pread): Likewise.
8997 (remote_bfd_iovec_stat): Likewise.
8998 (remote_filename_p): Likewise.
8999 (remote_bfd_open): Likewise.
9000 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9001 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9002 (gdb_bfd_open_maybe_remote): Remove function.
9003 (symfile_bfd_open): Replace remote filename check with
9004 target filename check.
9005 (reread_symbols): Use gdb_bfd_open.
9006 * build-id.c (gdbcore.h): New include.
9007 (build_id_to_debug_bfd): Use gdb_bfd_open.
9008 * infcmd.c (attach_command_post_wait): Remove remote filename
9009 check.
9010 * solib.c (solib_find): Replace remote-specific handling with
9011 target-specific handling. Update comments where necessary.
9012 (solib_bfd_open): Replace remote-specific handling with
9013 target-specific handling.
9014 (gdb_sysroot_changed): New function.
9015 (_initialize_solib): Call the above when gdb_sysroot changes.
9016 * windows-tdep.c (gdbcore.h): New include.
9017 (windows_xfer_shared_library): Use gdb_bfd_open.
9018
f08e97fe
GB
90192015-04-02 Gary Benson <gbenson@redhat.com>
9020
9021 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9022 (is_target_filename): New declaration.
9023 (gdb_bfd_has_target_filename): Likewise.
9024 (gdb_bfd_open): Update documentation comment.
9025 * gdb_bfd.c (target.h): New include.
9026 (gdb/fileio.h): Likewise.
9027 (is_target_filename): New function.
9028 (gdb_bfd_has_target_filename): Likewise.
9029 (fileio_errno_to_host): Likewise.
9030 (gdb_bfd_iovec_fileio_open): Likewise.
9031 (gdb_bfd_iovec_fileio_pread): Likewise.
9032 (gdb_bfd_iovec_fileio_close): Likewise.
9033 (gdb_bfd_iovec_fileio_fstat): Likewise.
9034 (gdb_bfd_open): Use target fileio to access paths prefixed
9035 with "target:" where necessary.
9036
4bd7dc42
GB
90372015-04-02 Gary Benson <gbenson@redhat.com>
9038
9039 * target.h (struct target_ops) <to_filesystem_is_local>:
9040 New field.
9041 (target_filesystem_is_local): New macro.
9042 * target-delegates.c: Regenerate.
9043 * remote.c (remote_filesystem_is_local): New function.
9044 (init_remote_ops): Initialize to_filesystem_is_local.
9045
9b15c1f0
GB
90462015-04-02 Gary Benson <gbenson@redhat.com>
9047
9048 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9049 (target_fileio_fstat): New declaration.
9050 * target.c (target_fileio_fstat): New function.
9051 * inf-child.c (inf_child_fileio_fstat): Likewise.
9052 (inf_child_target): Initialize to_fileio_fstat.
9053 * remote.c (init_remote_ops): Likewise.
9054
d11916aa
SS
90552015-04-01 Sasha Smundak <asmundak@google.com>
9056
9057 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9058 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9059 (py-unwind.o): New recipe.
9060 * NEWS: mention Python frame unwinding.
9061 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9062 gdb/unwinder.py and gdb/command/unwinder.py
9063 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9064 list.
9065 (execute_unwinders): New function.
9066 * python/lib/gdb/command/unwinders.py: New file.
9067 * python/lib/gdb/unwinder.py: New file.
9068 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9069 (objfpy_dealloc): Decrement frame_unwinders reference count.
9070 (objfpy_initialize): Create frame_unwinders list.
9071 (objfpy_get_frame_unwinders): New function.
9072 (objfpy_set_frame_unwinders): Ditto.
9073 (objfile_getset): Add frame_unwinders attribute to Objfile.
9074 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9075 (pspy_dealloc): Decrement frame_unwinders reference count.
9076 (pspy_initialize): Create frame_unwinders list.
9077 (pspy_get_frame_unwinders): New function.
9078 (pspy_set_frame_unwinders): Ditto.
9079 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9080 * python/py-unwind.c: New file.
9081 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9082 (objpy_get_frame_unwinders): New prototype.
9083 (gdbpy_initialize_unwind): New prototype.
9084 * python/python.c (gdbpy_apply_type_printers): Call
9085 gdbpy_initialize_unwind.
9086
6b403daa
PA
90872015-04-01 Pedro Alves <palves@redhat.com>
9088
9089 * infrun.c (resume): Check currently_stepping after clearing
9090 stepped_breakpoint, not before.
9091
1176ecec
PA
90922015-04-01 Pedro Alves <palves@redhat.com>
9093
9094 * infrun.c (print_target_wait_results): Print all the ptid
9095 elements.
9096
de1fe8c8
PA
90972015-04-01 Pedro Alves <palves@redhat.com>
9098
9099 * infrun.c (keep_going): Also discard cleanups if inserting
9100 breakpoints fails.
9101
e6f5c25b
PA
91022015-04-01 Pedro Alves <palves@redhat.com>
9103
9104 * infrun.c (wait_for_inferior): Install the
9105 finish_thread_state_cleanup cleanup across the whole function, not
9106 just around handle_inferior_event.
9107
1ac806b8
PA
91082015-04-01 Pedro Alves <palves@redhat.com>
9109
9110 * infrun.c (resume) <step past permanent breakpoint>: Use
9111 do_target_resume.
9112
2ee52aa4
PA
91132015-04-01 Pedro Alves <palves@redhat.com>
9114
9115 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9116
5445da1b
PMR
91172015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9118
9119 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9120
4eec2deb
PA
91212015-04-01 Pedro Alves <palves@redhat.com>
9122
9123 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9124 list if it was marked exited.
9125
afa59b79
L
91262015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 * configure: Regenerated.
9129
df8411da
SDJ
91302015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9131 Jan Kratochvil <jan.kratochvil@redhat.com>
9132 Oleg Nesterov <oleg@redhat.com>
9133
9134 PR corefiles/16092
9135 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9136 New enum identifying the various options of the coredump_filter
9137 file.
9138 (struct smaps_vmflags): New struct.
9139 (use_coredump_filter): New variable.
9140 (decode_vmflags): New function.
9141 (mapping_is_anonymous_p): Likewise.
9142 (dump_mapping_p): Likewise.
9143 (linux_find_memory_regions_full): New variables
9144 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9145 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9146 parsing of its information. Implement memory mapping filtering
9147 based on its contents.
9148 (show_use_coredump_filter): New function.
9149 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9150 * NEWS: Mention the possibility of using the
9151 '/proc/PID/coredump_filter' file when generating a corefile.
9152 Mention new command 'set use-coredump-filter'.
9153
416f679e
SDJ
91542015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9155
9156 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9157 read_memory_unsigned_integer.
9158
711a72d3
L
91592015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 * Makefile.in (ZLIB): New.
9162 (ZLIBINC): Likewise.
9163 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9164 (CLIBS): Add $(ZLIB).
9165 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9166 Add -lz to LIBS.
9167 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9168 * top.c (print_gdb_configuration): Remove --with-zlib and
9169 --without-zlib.
9170 * config.in: Regenerated.
9171 * configure: Likewise.
9172
d33279b3
AT
91732015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9174
9175 * NEWS: Mention info os cpus support.
9176 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9177 (struct osdata_type): Add cpus entry, reorder the entries in
9178 alphabetical order.
9179
71b30f27
MK
91802015-03-31 Matthias Klose <doko@ubuntu.com>
9181
9182 * compile/compile.c (compile_to_object): Allow triplets with or
9183 without vendor set.
9184
13ce9222
DE
91852015-03-30 Doug Evans <dje@google.com>
9186
9187 PR c++/18141
9188 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9189 klass in VAR_DOMAIN.
9190
20f796c9
GB
91912015-03-30 Gary Benson <gbenson@redhat.com>
9192
9193 * remote.c (remote_mourn_1): Remove function. Update all callers
9194 to use remote_mourn.
9195 (extended_remote_mourn_1): Remove function. Update all callers
9196 to use extended_remote_mourn.
9197 (extended_remote_attach_1): Remove function. Update all callers
9198 to use extended_remote_attach.
9199
49d45b20
JB
92002015-03-28 James Bowman <james.bowman@ftdichip.com>
9201
9202 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9203 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9204 (ALLDEPFILES): Add ft32-tdep.c.
9205 * configure.tgt: Add FT32 entry.
9206 * ft32-tdep.c: New file, FT32 target-dependent code.
9207 * ft32-tdep.h: New file, FT32 target-dependent code.
9208
1c4ff080
JK
92092015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 Revert:
9212 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9213 Code cleanup.
9214 * printcmd.c (print_command_1): Move expr variable scope.
9215
79498702
JB
92162015-03-27 Joel Brobecker <brobecker@adacore.com>
9217
9218 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9219
ce9c0ca1
AK
92202015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9221
9222 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9223 sections.
9224
429e1e81
JB
92252015-03-26 Joel Brobecker <brobecker@adacore.com>
9226
9227 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9228 exception raised while parsing the probe arguments.
9229 Force parsing to be done using the C language parser.
9230 * expression.h (parse_expression_with_language): Declare.
9231 * parse.c (parse_expression_with_language): New function.
9232
4593441b
JT
92332015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9234
9235 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9236
ff908ebf
AW
92372015-03-26 Andy Wingo <wingo@igalia.com>
9238
9239 PR symtab/18148
9240 * dwarf2read.c (struct partial_die_info): Add has_const_value
9241 member.
9242 (add_partial_symbol): Don't punt on symbols that have const_value
9243 attributes.
9244 (read_partial_die): Detect DW_AT_const_value.
9245
f30d5c78
JK
92462015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 Code cleanup.
9249 * printcmd.c (print_command_1): Move expr variable scope.
9250
8d89f51a
JK
92512015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9252
9253 Code cleanup.
9254 * printcmd.c (validate_format): Make the parameter cmdname const.
9255
0b736949
DB
92562015-03-26 Don Breazeal <donb@codesourcery.com>
9257
9258 * remote.c (_initialize_remote): Update comment.
9259
20d35291
PA
92602015-03-26 Pedro Alves <palves@redhat.com>
9261 Jon TURNEY <jon.turney@dronecode.org.uk>
9262
9263 * coffread.c (coff_symfile_read): When constructing the name of an
9264 import stub symbol from import symbol for amd64, only skip the
9265 char after _imp_ if the target is underscored (like i386) and the
9266 char is indeed the target's leading char.
9267
6a3753b3
PA
92682015-03-25 Pedro Alves <palves@redhat.com>
9269
9270 * target.h <to_async>: Replace 'callback' and 'context' parameters
9271 with boolean 'enable' parameter.
9272 (target_async): Replace CALLBACK and CONTEXT parameters with
9273 boolean ENABLE parameter.
9274 * inf-loop.c (inferior_event_handler): Adjust.
9275 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9276 (linux_nat_resume): Adjust.
9277 (async_client_callback, async_client_context): Delete.
9278 (handle_target_event): Call inferior_event_handler directly.
9279 (linux_nat_async): Replace 'callback' and 'context' parameters
9280 with boolean 'enable' parameter. Adjust. Remove references to
9281 async_client_callback and async_client_context.
9282 (linux_nat_close): Adjust.
9283 * record-btrace.c (record_btrace_async): Replace 'callback' and
9284 'context' parameters with boolean 'enable' parameter. Adjust.
9285 (record_btrace_resume): Adjust.
9286 * record-full.c (record_full_async): Replace 'callback' and
9287 'context' parameters with boolean 'enable' parameter. Adjust.
9288 (record_full_resume, record_full_core_resume): Adjust.
9289 * remote.c (struct remote_state) <async_client_callback,
9290 async_client_context>: Delete fields.
9291 (remote_start_remote, extended_remote_attach_1, remote_resume)
9292 (extended_remote_create_inferior): Adjust.
9293 (remote_async_serial_handler): Call inferior_event_handler
9294 directly.
9295 (remote_async): Replace 'callback' and 'context' parameters with
9296 boolean 'enable' parameter. Adjust.
9297 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9298 Adjust.
9299 * target-delegates.c: Regenerate.
9300
1c4b552b
GB
93012015-03-25 Gary Benson <gbenson@redhat.com>
9302 Pedro Alves <palves@redhat.com>
9303
9304 * target.c (fileio_ft_t): New typedef, define object vector.
9305 (fileio_fhandles): New static variable.
9306 (is_closed_fileio_fh): New macro.
9307 (lowest_closed_fd): New static variable.
9308 (acquire_fileio_fd): New function.
9309 (release_fileio_fd): Likewise.
9310 (fileio_fd_to_fh): New macro.
9311 (target_fileio_open): Wrap the file descriptor on success.
9312 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9313 (target_fileio_pread): Likewise.
9314 (target_fileio_close): Likewise.
9315
a25d8bf9
PA
93162015-03-24 Pedro Alves <palves@redhat.com>
9317
9318 * thread.c (thread_apply_all_command): Take exited threads into
9319 account.
9320
44a1ee51
PA
93212015-03-24 Pedro Alves <palves@redhat.com>
9322
9323 * infrun.c (resume, proceed): Mention
9324 switch_back_to_stepped_thread, not switch_back_to_stepping.
9325
f3263aa4
PA
93262015-03-24 Pedro Alves <palves@redhat.com>
9327
9328 * infrun.c (user_visible_resume_ptid): Rewrite going from
9329 most-locked to unlocked instead of the opposite. Move comment ...
9330 * infrun.h (user_visible_resume_ptid): ... here.
9331
2bf6fb9d
PA
93322015-03-24 Pedro Alves <palves@redhat.com>
9333
9334 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9335 to resume the event lwp. Use the lwp's ptid instead of the passed
9336 in (maybe wildcard) ptid.
9337 (stop_wait_callback): Tweak debug log output.
9338 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9339 TRAP_TRACE.
9340 (linux_nat_filter_event): In debug output, distinguish a
9341 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9342 before trying to resume the lwp.
9343
283a9958
JB
93442015-03-24 Joel Brobecker <brobecker@adacore.com>
9345
9346 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9347 pointer indirection.
9348 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9349 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9350
93a8e227
JB
93512015-03-24 Joel Brobecker <brobecker@adacore.com>
9352
9353 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9354 Renames DYN_ATTR_DATA_LOCATION.
9355 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9356 DYN_ATTR_DATA_LOCATION.
9357 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9358 instead of DYN_ATTR_DATA_LOCATION.
9359
64ce06e4
PA
93602015-03-24 Pedro Alves <palves@redhat.com>
9361
9362 * breakpoint.c (until_break_command): Adjust call to proceed.
9363 * gdbthread.h (struct thread_control_state) <stepping_command>:
9364 New field.
9365 * infcall.c (run_inferior_call): Adjust call to proceed.
9366 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9367 Adjust calls to proceed.
9368 (set_step_frame): Set the current thread's step_start_function
9369 here.
9370 (step_once): Adjust calls to proceed.
9371 (jump_command, signal_command, until_next_command)
9372 (finish_backward, finish_forward, proceed_after_attach_callback)
9373 (attach_command_post_wait): Adjust calls to proceed.
9374 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9375 (do_target_resume): New function, factored out from ...
9376 (resume): ... here. Remove 'step' parameter. Instead, check
9377 currently_stepping to determine whether the thread should be
9378 single-stepped.
9379 (proceed): Remove 'step' parameter and don't set the thread's
9380 step_start_function here. Adjust call to 'resume'.
9381 (handle_inferior_event): Adjust calls to 'resume'.
9382 (switch_back_to_stepped_thread): Use do_target_resume instead of
9383 'resume'.
9384 (keep_going): Adjust calls to 'resume'.
9385 * infrun.h (proceed): Remove 'step' parameter.
9386 (resume): Likewise.
9387 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9388 'resume'.
9389 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9390
856e7dd6
PA
93912015-03-24 Pedro Alves <palves@redhat.com>
9392
9393 * gdbthread.h (struct thread_control_state) <stepping_command>:
9394 New field.
9395 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9396 the thread's stepping_command field.
9397 * infrun.c (resume): Check the thread's stepping_command flag to
9398 determine which threads should be resumed. Rename 'entry_step'
9399 local to user_step.
9400 (clear_proceed_status_thread): Clear 'stepping_command'.
9401 (schedlock_applies): Change parameter type to struct thread_info
9402 pointer. Adjust.
9403 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9404 (switch_back_to_stepped_thread): Adjust calls to
9405 'schedlock_applies'.
9406 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9407
885eeb5b
PA
94082015-03-24 Pedro Alves <palves@redhat.com>
9409
9410 * infrun.c (step_start_function): Delete and ...
9411 * gdbthread.h (struct thread_control_state) <step_start_function>:
9412 ... now a field here.
9413 * infrun.c (clear_proceed_status_thread): Clear the thread's
9414 step_start_function.
9415 (proceed, process_event_stop_test, print_stop_event): Adjust.
9416
3333f03a
PA
94172015-03-24 Pedro Alves <palves@redhat.com>
9418
9419 * infrun.c (proceed): No longer handle negative step.
9420
369f6daa
GB
94212015-03-24 Gary Benson <gbenson@redhat.com>
9422
9423 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9424 (x86_linux_prepare_to_resume): Likewise.
9425 * x86-linux-nat.c (x86_linux_new_thread):
9426 Moved to nat/x86-linux.c.
9427 (x86_linux_prepare_to_resume): Likewise.
9428 * nat/x86-linux.c (x86_linux_new_thread): New function.
9429 (x86_linux_prepare_to_resume): Likewise.
9430
8e5d4070
GB
94312015-03-24 Gary Benson <gbenson@redhat.com>
9432
9433 * nat/x86-linux-dregs.h: New file.
9434 * nat/x86-linux-dregs.c: Likewise.
9435 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9436 (x86-linux-dregs.o): New rule.
9437 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9438 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9439 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9440 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9441 (x86_linux_dr_get): Likewise.
9442 (x86_linux_dr_set): Likewise.
9443 (x86_linux_dr_get_addr): Likewise.
9444 (x86_linux_dr_get_control): Likewise.
9445 (x86_linux_dr_get_status): Likewise.
9446 (update_debug_registers_callback): Likewise.
9447 (x86_linux_dr_set_control): Likewise.
9448 (x86_linux_dr_set_addr): Likewise.
9449 (x86_linux_update_debug_registers): Likewise.
9450
2b95d440
GB
94512015-03-24 Gary Benson <gbenson@redhat.com>
9452
9453 * x86-linux-nat.c (x86_linux_update_debug_registers):
9454 New function, factored out from...
9455 (x86_linux_prepare_to_resume): ...this.
9456
14b0bc68
GB
94572015-03-24 Gary Benson <gbenson@redhat.com>
9458
9459 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9460 (x86_linux_dr_set): Likewise.
9461 (x86_linux_dr_get_addr): Likewise.
9462 (x86_linux_dr_get_control): Likewise.
9463 (x86_linux_dr_get_status): Likewise.
9464 (update_debug_registers_callback): Likewise.
9465 (x86_linux_dr_set_control): Likewise.
9466 (x86_linux_dr_set_addr): Likewise.
9467 (x86_linux_prepare_to_resume): Likewise.
9468 (x86_linux_new_thread): Likewise.
9469
5dfe6ca8
GB
94702015-03-24 Gary Benson <gbenson@redhat.com>
9471
9472 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9473 (x86_linux_new_thread): Rename argument.
9474
4b134ca1
GB
94752015-03-24 Gary Benson <gbenson@redhat.com>
9476
9477 * nat/x86-linux.h: New file.
9478 * nat/x86-linux.c: Likewise.
9479 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9480 (x86-linux.o): New rule.
9481 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9482 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9483 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9484 (lwp_set_arch_private_info): New declaration.
9485 (lwp_arch_private_info): Likewise.
9486 * linux-nat.c (lwp_set_arch_private_info): New function.
9487 (lwp_arch_private_info): Likewise.
9488 * x86-linux-nat.c: Include nat/x86-linux.h.
9489 (arch_lwp_info): Removed structure.
9490 (update_debug_registers_callback):
9491 Use lwp_set_debug_registers_changed.
9492 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9493 and lwp_set_debug_registers_changed.
9494 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9495
cff068da
GB
94962015-03-24 Gary Benson <gbenson@redhat.com>
9497
9498 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9499 (lwp_is_stopped): Likewise.
9500 (lwp_stop_reason): Likewise.
9501 * linux-nat.c (ptid_of_lwp): New function.
9502 (lwp_is_stopped): Likewise.
9503 (lwp_is_stopped_by_watchpoint): Likewise.
9504 * x86-linux-nat.c (update_debug_registers_callback):
9505 Use lwp_is_stopped.
9506 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9507 lwp_stop_reason.
9508
b2f7c7e8
GB
95092015-03-24 Gary Benson <gbenson@redhat.com>
9510
9511 * linux-nat.h (linux_stop_lwp): Move declaration to...
9512 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9513
6d4ee8c6
GB
95142015-03-24 Gary Benson <gbenson@redhat.com>
9515
9516 * linux-nat.h: Include nat/linux-nat.h.
9517 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9518 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9519 (iterate_over_lwps_ftype): New typedef.
9520 (iterate_over_lwps): New declaration.
9521 * linux-nat.h (iterate_over_lwps): Update comment. Use
9522 iterate_over_lwps_ftype. Update callback return value check.
9523
70a0bb6b
GB
95242015-03-24 Gary Benson <gbenson@redhat.com>
9525
9526 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9527 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9528
7b669087
GB
95292015-03-24 Gary Benson <gbenson@redhat.com>
9530
9531 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9532 * linux-nat.c (current_lwp_ptid): New function.
9533 * x86-linux-nat.c: Include nat/linux-nat.h.
9534 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9535 (x86_linux_dr_get_control): Likewise.
9536 (x86_linux_dr_get_status): Likewise.
9537 (x86_linux_dr_set_control): Likewise.
9538 (x86_linux_dr_set_addr): Likewise.
9539
15630549
AT
95402015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9541
9542 PR breakpoints/16466
9543 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9544
8a4506c0
JB
95452015-03-23 Joel Brobecker <brobecker@adacore.com>
9546
9547 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9548 * ser-unix.c (hardwire_setparity): Likewise.
9549
236af5e3
YG
95502015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9551
9552 * NEWS: Mention set/show serial parity command.
9553 * monitor.c (monitor_open): Call serial_setparity.
9554 * remote.c (remote_open_1): Likewise.
9555 * ser-base.c (ser_base_serparity): New function.
9556 * ser-base.h (ser_base_setparity): Add declaration.
9557 * ser-go32.c (dos_ops): Set "setparity" field.
9558 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9559 state.Parity.
9560 (ser_windows_setparity): New function.
9561 (hardwire_ops): Add ser_windows_setparity.
9562 (tty_ops): Add NULL for setparity field.
9563 (pipe_ops): Add ser_base_setparity.
9564 (tcp_ops): Likewise.
9565 * ser-pipe.c (pipe_ops): Likewise.
9566 * ser-tcp.c (tcp_ops): Likewise.
9567 * ser-unix.c (hardwire_setparity): Add declaration.
9568 (hardwire_raw): Don't reset PARENB flag.
9569 (hardwire_setparity): New function.
9570 (hardwire_ops): Add hardwire_setparity.
9571 * serial.c (serial_setparity): New function.
9572 (serial_parity): New global.
9573 (parity_none, parity_odd, parity_even, parity_enums, parity):
9574 New static globals.
9575 (set_parity): New function.
9576 (_initialize_serial): Add set/show serial parity commands.
9577 * serial.h (GDBPARITY_NONE): Define.
9578 (GDBPARITY_ODD): Define.
9579 (GDBPARITY_EVEN): Define.
9580 (serial_setparity) Add declaration.
9581 (struct serial_ops): Add setparity field.
9582 * target.h (serial_parity): Add declaration.
9583
32b40af9
KS
95842015-03-23 Keith Seitz <keiths@redhat.com>
9585
9586 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9587
693dca06
KS
95882015-03-23 Keith Seitz <keiths@redhat.com>
9589
9590 * breakpoint.c (parse_breakpoint_sals): Use
9591 linespec_lexer_lex_keyword to ascertain if the user specified
9592 a NULL location.
9593 * linespec.c [IF_KEYWORD_INDEX]: Define.
9594 (linespec_lexer_lex_keyword): Export.
9595 (struct ls_parser) <keyword_ok>: Remove.
9596 A keyword is only a keyword if not followed by another keyword.
9597 (linespec_lexer_lex_one): Remove keyword_ok handling.
9598 Add comment explaining why the parsing stream is not advanced
9599 when a keyword is seen.
9600 (parse_linespec): Remove parser->keyword_ok.
9601 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9602
7e993ebf
KS
96032015-03-23 Keith Seitz <keiths@redhat.com>
9604
9605 PR gdb/18021
9606 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9607 if we find a static method with DW_AT_vtable_elem_location.
9608
b1a0f704
EZ
96092015-03-21 Eli Zaretskii <eliz@gnu.org>
9610
9611 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9612 before the second loop, to avoid undefined behavior. Reported by
9613 Anton Blanchard <anton@samba.org>.
9614
d9823cbb
KB
96152015-03-20 Keven Boell <keven.boell@intel.com>
9616
9617 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9618 data_location usage to linked list.
9619 (resolve_dynamic_type_internal): Adapt data_location to
9620 linked list.
9621 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9622 (copy_type_recursive, copy_type): Add copy of linked list.
9623 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9624 (struct dynamic_prop_list): New struct.
9625 * dwarf2read.c (set_die_type): Set data_location data.
9626
2e7bf1d7
PA
96272015-03-20 Pedro Alves <palves@redhat.com>
9628
9629 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9630 inner block and make it const.
9631 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9632
7a26bd4d
PA
96332015-03-20 Pedro Alves <palves@redhat.com>
9634
9635 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9636 * breakpoint.h (set_breakpoint_condition): Update declaration.
9637
cd46431b
PA
96382015-03-20 Pedro Alves <palves@redhat.com>
9639
9640 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9641
e28566f7
PA
96422015-03-20 Pedro Alves <palves@redhat.com>
9643
9644 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9645
f6fc92f6
PA
96462015-03-20 Pedro Alves <palves@redhat.com>
9647
9648 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9649
c32ed3ef
PA
96502015-03-20 Pedro Alves <palves@redhat.com>
9651
9652 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9653 (nto_init_solib_absolute_prefix): Likewise.
9654
53e78085
PA
96552015-03-20 Pedro Alves <palves@redhat.com>
9656
9657 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9658 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9659
bc23328c
JK
96602015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 * config/djgpp/README: Remove gdb.hp.
9663
e8ffc436
YQ
96642015-03-20 Yao Qi <yao.qi@linaro.org>
9665
9666 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9667 set_gdbarch_cannot_step_breakpoint.
9668
23f238d3
PA
96692015-03-19 Pedro Alves <palves@redhat.com>
9670
9671 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9672 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9673 instead call perror_with_name.
9674 (check_ptrace_stopped_lwp_gone): New function.
9675 (linux_resume_one_lwp): Reimplement as wrapper around
9676 linux_resume_one_lwp_throw that swallows errors if the LWP is
9677 gone.
9678 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9679 swallows errors if the LWP is gone. Use
9680 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9681
eb54c8bf
PA
96822015-03-19 Pedro Alves <palves@redhat.com>
9683
9684 * linux-nat.c (status_callback): Return early if the LWP has no
9685 status pending.
9686
b90fc188
PA
96872015-03-19 Pedro Alves <palves@redhat.com>
9688
9689 * linux-nat.c (select_event_lwp_callback): Update comment to no
9690 longer mention SIGTRAP.
9691
670f82d4
TG
96922015-03-18 Tristan Gingold <gingold@adacore.com>
9693
72f4393d
L
9694 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9695 redirection code to ...
9696 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9697 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9698
464b0089
GB
96992015-03-18 Gary Benson <gbenson@redhat.com>
9700
9701 (remote_protocol_features): Remove the "vFile:fstat" feature.
9702 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9703
f68f11b7
YQ
97042015-03-11 Yao Qi <yao.qi@linaro.org>
9705
9706 PR tdep/18107
9707 * aarch64-linux-tdep.c: Include xml-syscall.h
9708 (aarch64_linux_get_syscall_number): New function.
9709 (aarch64_linux_init_abi): Call
9710 set_gdbarch_get_syscall_number.
9711 * syscalls/aarch64-linux.xml: New file.
9712
393bd0c0
YG
97132015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9714
9715 * ser-base.h (ser_base_setstopbits): Change second argument name
9716 from "rate" to "num".
9717
7f3647e2
GB
97182015-03-17 Gary Benson <gbenson@redhat.com>
9719 Luke Allardyce <lukeallardyce@gmail.com>
9720
9721 PR gdb/18131
9722 * common/common-remote-fileio.h (sys/stat.h): New include.
9723 (stuct stat): Remove forward declaration.
9724
3ce5b6e2
JB
97252015-03-16 John Baldwin <jhb@FreeBSD.org>
9726
9727 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9728 before writing core register notes.
9729
d053f6be
YZ
97302015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9731 Pedro Alves <palves@redhat.com>
9732
9733 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9734 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9735 (tgoto): Wrap with extern "C".
9736
b1a921c8
PA
97372015-03-16 Pedro Alves <palves@redhat.com>
9738 Yuanhui Zhang <asmwarrior@gmail.com>
9739
9740 * stub-termcap.c (tputs): Change prototype.
9741
876d1cd7
YZ
97422015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9743 Pedro Alves <palves@redhat.com>
9744
9745 * windows-nat.c (struct thread_info_struct): Rename to ...
9746 (struct windows_thread_info_struct): ... this.
9747 (thread_info): Rename to ...
9748 (windows_thread_info): ... this.
9749 All users updated.
9750
0800b440
JK
97512015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9752 Pedro Alves <palves@redhat.com>
9753
9754 * NEWS: New Removed targets and native configurations.
9755
97562015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9757
9758 Remove HPUX.
9759 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9760 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9761 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9762 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9763 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9764 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9765 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9766 hppa-hpux-tdep.c.
9767 * config/ia64/hpux.mh: Remove file.
9768 * config/pa/hpux.mh: Remove file.
9769 * configure: Rebuilt.
9770 * configure.ac (dlgetmodinfo, somread.o): Remove.
9771 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9772 (ia64-*-hpux*): Remove its float format exception.
9773 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9774 * hppa-hpux-nat.c: Remove file.
9775 * hppa-hpux-tdep.c: Remove file.
9776 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9777 Move them here from hppa-tdep.h
9778 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9779 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9780 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9781 Move them to hppa-tdep.c.
9782 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9783 declarations.
9784 * ia64-hpux-nat.c: Remove file.
9785 * ia64-hpux-tdep.c: Remove file.
9786 * ia64-hpux-tdep.h: Remove file.
9787 * inf-ttrace.c: Remove file.
9788 * inf-ttrace.h: Remove file.
9789 * solib-ia64-hpux.c: Remove file.
9790 * solib-ia64-hpux.h: Remove file.
9791 * solib-pa64.c: Remove file.
9792 * solib-pa64.h: Remove file.
9793 * solib-som.c: Remove file.
9794 * solib-som.h: Remove file.
9795 * somread.c: Remove file.
9796
25268153
JB
97972015-03-13 John Baldwin <jhb@FreeBSD.org>
9798
9799 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9800 * config.in: Regenerate.
9801 * configure: Regenerate.
9802 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9803 define.
25268153
JB
9804 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9805 enumerate memory regions if present.
9806
773eacf5
JB
98072015-03-13 John Baldwin <jhb@FreeBSD.org>
9808
9809 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9810 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9811 expressions.
9812 (i386fbsd_sigtramp_p): Likewise.
9813
01b6bdb0
JB
98142015-03-12 John Baldwin <jhb@FreeBSD.org>
9815
9816 * MAINTAINERS (Write After Approval): Add John Baldwin.
9817
811a659a
GB
98182015-03-12 Gary Benson <gbenson@redhat.com>
9819
9820 * solib.c (_initialize_solib): Make "set/show sysroot" use
9821 add_setshow_optional_filename_cmd so it can be restored to
9822 empty after being set.
9823
10304ef3
SDJ
98242015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9825
9826 * Makefile.in (SFILES): New source break-catch-syscall.c.
9827 (COMMON_OBS): New object break-catch-syscall.o.
9828 * break-catch-syscall.c: New file.
9829 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9830 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9831 (struct syscall_catchpoint): Likewise.
9832 (dtor_catch_syscall): Likewise.
9833 (catch_syscall_inferior_data): Likewise.
9834 (struct catch_syscall_inferior_data): Likewise.
9835 (get_catch_syscall_inferior_data): Likewise.
9836 (catch_syscall_inferior_data_cleanup): Likewise.
9837 (insert_catch_syscall): Likewise.
9838 (remove_catch_syscall): Likewise.
9839 (breakpoint_hit_catch_syscall): Likewise.
9840 (print_it_catch_syscall): Likewise.
9841 (print_one_catch_syscall): Likewise.
9842 (print_mention_catch_syscall): Likewise.
9843 (print_recreate_catch_syscall): Likewise.
9844 (catch_syscall_breakpoint_ops): Likewise.
9845 (syscall_catchpoint_p): Likewise.
9846 (create_syscall_event_catchpoint): Likewise.
9847 (catch_syscall_split_args): Likewise.
9848 (catch_syscall_command_1): Likewise.
9849 (is_syscall_catchpoint_enabled): Likewise.
9850 (catch_syscall_enabled): Likewise.
9851 (catching_syscall_number): Likewise.
9852 (catch_syscall_completer): Likewise.
9853 (clear_syscall_counts): Likewise.
9854 (initialize_breakpoint_ops): Move initialization of syscall
9855 catchpoints to break-catch-syscall.c.
9856 (_initialize_breakpoint): Move code related to syscall catchpoints
9857 to break-catch-syscall.c.
9858
badd37ce
SDJ
98592015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9860
9861 * breakpoint.c (breakpoint_find_if): New function.
9862 * breakpoint.h (breakpoint_find_if): New prototype.
9863
0a93529c
GB
98642015-03-11 Gary Benson <gbenson@redhat.com>
9865
9866 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9867 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9868 (remote_fileio_to_host_ulong): Likewise.
9869 (remote_fileio_to_host_mode): Likewise.
9870 (remote_fileio_to_host_time): Likewise.
9871 (remote_fileio_to_host_stat): Likewise.
9872 * remote.c (PACKET_vFile_fstat): New enum value.
9873 (remote_protocol_features): Register the "vFile:fstat" feature.
9874 (remote_hostio_fstat): New function.
9875 (remote_bfd_iovec_stat): Use the above.
9876 (_initialize_remote): Register new "set/show remote
9877 hostio-fstat-packet" command.
9878 * symfile.c (separate_debug_file_exists): Update comment.
9879 * NEWS: Announce new vFile:fstat packet.
9880
791c0056
GB
98812015-03-11 Gary Benson <gbenson@redhat.com>
9882
9883 * common/common-remote-fileio.h: New file.
9884 * common/common-remote-fileio.c: Likewise.
9885 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9886 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9887 (COMMON_OBS): Add common-remote-fileio.o.
9888 (common-remote-fileio.o): New rule.
9889 * remote-fileio.h (common-remote-fileio.h): New include.
9890 * remote-fileio.c (gdb/fileio.h): Do not include.
9891 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9892 (remote_fileio_to_fio_uint): Likewise.
9893 (remote_fileio_to_fio_time): Likewise.
9894 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9895 (remote_fileio_to_fio_mode): Likewise.
9896 (remote_fileio_to_fio_ulong): Likewise.
9897 (remote_fileio_to_fio_stat): Likewise.
9898
1390d0ef
AW
98992015-03-11 Andy Wingo <wingo@igalia.com>
9900
9901 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9902 we were checking the cached type, not the cached dynamic type.
9903
84a4591a
AW
99042015-03-11 Andy Wingo <wingo@igalia.com>
9905
9906 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9907 other strings, as these are on the GC'd heap, and will be
9908 collected along with the smob.
9909
85642ba0
AW
99102015-03-11 Andy Wingo <wingo@igalia.com>
9911
9912 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9913 (objfile_functions): Bind gdbscm_objfile_progspace to
9914 objfile-progspace.
9915 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9916
92fab5a6
AW
99172015-03-11 Andy Wingo <wingo@igalia.com>
9918
9919 * guile/guile.c (_initialize_guile): Disable automatic
9920 finalization, if Guile offers us that possibility.
9921 * guile/guile.c (call_initialize_gdb_module):
9922 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9923 finalizers in appropriate places.
9924 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9925 scm_set_automatic_finalization_enabled.
9926 * configure: Regenerated.
9927
f054145e
AA
99282015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9929
9930 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9931 SAL, if possible.
9932
18396193
AA
99332015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9934
9935 * s390-linux-nat.c (struct arch_lwp_info): New.
9936 (s390_fix_watch_points): Rename to...
9937 (s390_prepare_to_resume): ...this. Skip the PER info update
9938 unless the watch points have changed.
9939 (s390_refresh_per_info, s390_new_thread): New functions.
9940 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9941 s390_fix_watch_points.
9942 (s390_remove_watchpoint): Likewise.
9943 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9944 Register s390_prepare_to_resume.
9945
9eb1356e
PA
99462015-03-09 Pedro Alves <palves@redhat.com>
9947
9948 Revert:
9949 2015-03-07 Pedro Alves <palves@redhat.com>
9950 * common/gdb_socket.h: New file.
9951 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9952 sys/socket.h.
9953 (net_open): Use union gdb_sockaddr_u.
9954
aac331e4
PA
99552015-03-07 Pedro Alves <palves@redhat.com>
9956
9957 * configure.ac (build_warnings): Move -Wmissing-prototypes
9958 -Wdeclaration-after-statement -Wmissing-parameter-type
9959 -Wold-style-declaration -Wold-style-definition to the C-specific
9960 set.
9961 * configure: Regenerate.
9962
366c75fc
PA
99632015-03-07 Pedro Alves <palves@redhat.com>
9964
9965 * common/gdb_socket.h: New file.
9966 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9967 sys/socket.h.
9968 (net_open): Use union gdb_sockaddr_u.
9969
72df25b2
PA
99702015-03-07 Pedro Alves <palves@redhat.com>
9971
9972 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9973 (exceptions_state_mc_action_iter)
9974 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9975 Don't define.
9976 [__cplusplus] (try_scope_depth): New global.
9977 [__cplusplus] (exception_try_scope_entry)
9978 (exception_try_scope_exit, gdb_exception_sliced_copy)
9979 (exception_rethrow): New functions.
9980 (throw_exception): In C++ mode, throw
9981 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9982 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9983 (throw_it): In C++ mode, use try_scope_depth.
9984 * common/common-exceptions.h [!__cplusplus]
9985 (exceptions_state_mc_action_iter)
9986 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9987 Don't declare.
9988 [__cplusplus] (exception_try_scope_entry)
9989 (exception_try_scope_exit, exception_rethrow): Declare.
9990 [__cplusplus] (struct exception_try_scope): New struct.
9991 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9992 C++ exceptions.
9993 (struct gdb_exception_RETURN_MASK_ALL)
9994 (struct gdb_exception_RETURN_MASK_ERROR)
9995 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9996
284e6217
PA
99972015-03-07 Pedro Alves <palves@redhat.com>
9998
9999 * main.c (handle_command_errors): Remove volatile qualifier from
10000 parameter.
10001
6c63c96a
PA
100022015-03-07 Pedro Alves <palves@redhat.com>
10003
10004 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10005 TRY and CATCH.
10006 * gdbtypes.c (safe_parse_type): Remove empty line.
10007 (types_deeply_equal):
10008 * guile/scm-frame.c (gdbscm_frame_name):
10009 * linux-thread-db.c (find_new_threads_once):
10010 * python/py-breakpoint.c (bppy_get_commands):
10011 * record-btrace.c (record_btrace_insert_breakpoint)
10012 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10013 (record_btrace_start_replaying): Adjust to avoid code between TRY
10014 and CATCH.
10015
492d29ea
PA
100162015-03-07 Pedro Alves <palves@redhat.com>
10017
10018 * common/common-exceptions.c (struct catcher) <exception>: No
10019 longer a pointer to volatile exception. Now an exception value.
10020 <mask>: Delete field.
10021 (exceptions_state_mc_init): Remove all parameters. Adjust.
10022 (exceptions_state_mc): No longer pop the catcher here.
10023 (exceptions_state_mc_catch): New function.
10024 (throw_exception): Adjust.
10025 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10026 all parameters.
10027 (exceptions_state_mc_catch): Declare.
10028 (TRY_CATCH): Rename to ...
10029 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10030 (CATCH, END_CATCH): New.
10031 All callers adjusted.
10032
ece957c8
TT
100332015-03-07 Tom Tromey <tromey@redhat.com>
10034
10035 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10036
7556d4a4
PA
100372015-03-07 Pedro Alves <palves@redhat.com>
10038
10039 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10040 (amd64_epilogue_frame_cache): Normal exception handling code.
10041 * break-catch-throw.c (check_status_exception_catchpoint)
10042 (re_set_exception_catchpoint): Ditto.
10043 * cli/cli-interp.c (safe_execute_command):
10044 * cli/cli-script.c (script_from_file): Ditto.
10045 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10046 Ditto.
10047 * compile/compile-object-run.c (compile_object_run): Ditto.
10048 * cp-abi.c (baseclass_offset): Ditto.
10049 * cp-valprint.c (cp_print_value): Ditto.
10050 * exceptions.c (catch_exceptions_with_msg):
10051 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10052 * frame.c (get_frame_address_in_block_if_available): Ditto.
10053 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10054 (i386_sigtramp_frame_cache): Ditto.
10055 * infcmd.c (post_create_inferior): Ditto.
10056 * linespec.c (parse_linespec, find_linespec_symbols):
10057 * p-valprint.c (pascal_object_print_value): Ditto.
10058 * parse.c (parse_expression_for_completion): Ditto.
10059 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10060 * remote.c (remote_get_noisy_reply): Ditto.
10061 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10062 * solib-svr4.c (solib_svr4_r_map): Ditto.
10063
f873665f 100642015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10065
10066 * common/common-utils.h (startswith): New inline function.
10067 All places where this logic was used updated to use the above.
10068
68901c4d
PA
100692015-03-05 Pedro Alves <palves@redhat.com>
10070
10071 PR gdb/18002
10072 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10073 after reading the breakpoint's shadow memory.
10074
2dcb2b1a
MK
100752015-03-05 Mark Kettenis <kettenis@gnu.org>
10076
10077 * hppabsd-nat.c: Remove file.
10078 * hppaobsd-nat.c: New file.
10079 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10080 hppaobsd-nat.c.
10081 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10082 hppaobsd-nat.o.
10083
527a273a
PA
100842015-03-04 Pedro Alves <palves@redhat.com>
10085
10086 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10087 (target_decr_pc_after_break): Delete declaration.
10088 * target.c (default_target_decr_pc_after_break)
10089 (target_decr_pc_after_break): Delete.
10090 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10091 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10092 * linux-thread-db.c (check_event): Likewise.
10093 * infrun.c (adjust_pc_after_break): Likewise.
10094 * darwin-nat.c (cancel_breakpoint): Likewise.
10095 * aix-thread.c (aix_thread_wait): Likewise.
10096 * target-delegates.c: Regenerate.
10097
faf09f01
PA
100982015-03-04 Pedro Alves <palves@redhat.com>
10099
10100 * linux-nat.c (save_sigtrap): Check for breakpoints before
10101 checking watchpoints.
10102 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10103 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10104 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10105 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10106 (linux_nat_stopped_by_sw_breakpoint)
10107 (linux_nat_supports_stopped_by_sw_breakpoint)
10108 (linux_nat_stopped_by_hw_breakpoint)
10109 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10110 (linux_nat_wait_1): Don't re-increment the PC if relying on
10111 SIGTRAP's siginfo->si_code.
10112 (linux_nat_add_target): Install new target methods.
10113 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10114 offset if the target already adjusted the PC.
10115 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10116 (GDB_ARCH_TRAP_BRKPT): New.
10117 (TRAP_HWBKPT): Define if not already defined.
10118
f7e6eed5
PA
101192015-03-04 Pedro Alves <palves@redhat.com>
10120
10121 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10122 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10123 Delete field.
10124 <stop_reason>: New field.
10125 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10126 (packet_set_cmd_state): New function.
10127 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10128 features.
10129 (remote_query_supported): If not disabled with the corresponding
10130 "set remote foo-packet" command, report support for the swbreak
10131 and hwbreak features.
10132 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10133 field.
10134 <stop_reason>: New field.
10135 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10136 (remote_wait_as): Adjust.
10137 (remote_stopped_by_sw_breakpoint)
10138 (remote_supports_stopped_by_sw_breakpoint)
10139 (remote_stopped_by_hw_breakpoint)
10140 (remote_supports_stopped_by_hw_breakpoint): New functions.
10141 (remote_stopped_by_watchpoint): New function.
10142 (init_remote_ops): Install them.
10143 (_initialize_remote): Register new "set/show remote
10144 swbreak-feature-packet" and "set/show remote
10145 swbreak-feature-packet" commands.
10146
9e8915c6
PA
101472015-03-04 Pedro Alves <palves@redhat.com>
10148
10149 * btrace.h: Include target/waitstatus.h.
10150 (struct btrace_thread_info) <stop_reason>: New field.
10151 * record-btrace.c (record_btrace_step_thread): Use
10152 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10153 (record_btrace_decr_pc_after_break): Delete.
10154 (record_btrace_stopped_by_sw_breakpoint)
10155 (record_btrace_supports_stopped_by_sw_breakpoint)
10156 (record_btrace_stopped_by_hw_breakpoint)
10157 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10158 (init_record_btrace_ops): Install them.
10159 * record-full.c (record_full_hw_watchpoint): Delete and replace
10160 with ...
10161 (record_full_stop_reason): ... this throughout.
10162 (record_full_exec_insn): Adjust.
10163 (record_full_wait_1): Adjust. No longer re-increment the PC.
10164 (record_full_wait_1): Adjust. Use
10165 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10166 (record_full_stopped_by_watchpoint): Adjust.
10167 (record_full_stopped_by_sw_breakpoint)
10168 (record_full_supports_stopped_by_sw_breakpoint)
10169 (record_full_supports_stopped_by_sw_breakpoint)
10170 (record_full_stopped_by_hw_breakpoint)
10171 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10172 (init_record_full_ops, init_record_full_core_ops): Install them.
10173 * record.c (record_check_stopped_by_breakpoint): New function.
10174 * record.h: Include target/waitstatus.h.
10175 (record_check_stopped_by_breakpoint): New declaration.
10176
15c66dd6
PA
101772015-03-04 Pedro Alves <palves@redhat.com>
10178
10179 enum lwp_stop_reason -> enum target_stop_reason
10180 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10181 (linux_nat_stopped_by_watchpoint, status_callback)
10182 (linux_nat_wait_1): Adjust.
10183 * linux-nat.h (enum lwp_stop_reason): Delete.
10184 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10185 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10186 * target/waitstatus.h (enum target_stop_reason): New.
10187
1cf4d951
PA
101882015-03-04 Pedro Alves <palves@redhat.com>
10189
10190 * breakpoint.c (need_moribund_for_location_type): New function.
10191 (bpstat_stop_status): Don't skipping checking moribund locations
10192 of breakpoint types which the target tell caused a stop.
10193 (program_breakpoint_here_p): New function, factored out from ...
10194 (bp_loc_is_permanent): ... this.
10195 (update_global_location_list): Don't create a moribund location if
10196 the target supports reporting stops of the type of the removed
10197 breakpoint.
10198 * breakpoint.h (program_breakpoint_here_p): New declaration.
10199 * infrun.c (adjust_pc_after_break): Return early if the target has
10200 already adjusted the PC. Add comments.
10201 (handle_signal_stop): If nothing explains a signal, and the target
10202 tells us the stop was caused by a software breakpoint, check if
10203 there's a breakpoint instruction in the memory. If so, adjust the
10204 PC before presenting the stop to the user. Otherwise, ignore the
10205 trap. If nothing explains a signal, and the target tells us the
10206 stop was caused by a hardware breakpoint, ignore the trap.
10207 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10208 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10209 to_supports_stopped_by_hw_breakpoint>: New fields.
10210 (target_stopped_by_sw_breakpoint)
10211 (target_supports_stopped_by_sw_breakpoint)
10212 (target_stopped_by_hw_breakpoint)
10213 (target_supports_stopped_by_hw_breakpoint): Define.
10214 * target-delegates.c: Regenerate.
10215
79639e11
PA
102162015-03-04 Pedro Alves <palves@redhat.com>
10217
10218 * infrun.c (follow_fork_inferior): Use the whole of the
10219 inferior_ptid and pending_follow.related_pid ptids instead of
10220 building ptids from the process components. Adjust verbose output
10221 to use target_pid_to_str.
10222 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10223 inferior_ptid and pending_follow.related_pid ptids instead of
10224 building ptids from the process components.
10225
e85e8e5e
MK
102262015-03-04 Mark Kettenis <kettenis@gnu.org>
10227
10228 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10229 (inf_ptrace_insert_fork_catchpoint): New function.
10230 (inf_ptrace_remove_fork_catchpoint): New function.
10231 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10232
87de11c0
AA
102332015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10234
10235 * s390-linux-tdep.c (s390_register_name): Return empty string
10236 instead of NULL for registers that shouldn't be visible.
10237
d851a69a
AA
102382015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10239
10240 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10241 XML file for 64-bit targets.
10242
b072f6c1
SM
102432015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10244
10245 * target.h (find_default_create_inferior): Remove declaration.
10246 (find_default_attach): Likewise.
10247
c1593e4f
PA
102482015-03-03 Pedro Alves <palves@redhat.com>
10249
10250 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10251 Use ptid_get_pid to get the overall process id when resuming all
10252 threads.
10253
90ad5e1d
PA
102542015-03-03 Pedro Alves <palves@redhat.com>
10255
10256 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10257 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10258 * inf-ptrace.c (get_ptrace_pid): New function.
10259 (inf_ptrace_resume): Use it.
10260 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10261 to the lower layer.
10262
d68e53f4
MM
102632015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10264
10265 * nat/linux-btrace.c: Include sys/utsname.h.
10266 (linux_determine_kernel_ptr_bits): New.
10267 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10268 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10269 ptr_bits.
10270
986b6601
MM
102712015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10272
10273 * btrace.c (ftrace_update_function): Treat return as tailcall for
10274 "_dl_runtime_resolve".
10275
ce0dfbea
MM
102762015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10277
10278 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10279 * btrace.c (ftrace_debug): Do not print the line range.
10280 (ftrace_skip_file, ftrace_update_lines): Remove.
10281 (ftrace_new_function): Remove lbegin and lend initialization.
10282 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10283 * record-btrace.c (btrace_compute_src_line_range): New.
10284 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10285
95e50b27
PA
102862015-03-02 Pedro Alves <palves@redhat.com>
10287
10288 * infrun.c (follow_exec): Delete all threads of the process except
10289 the event thread. Extended comments.
10290
00e474c2
JB
102912015-03-02 Joel Brobecker <brobecker@adacore.com>
10292
10293 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10294
cc7039d3
JB
102952015-03-02 Joel Brobecker <brobecker@adacore.com>
10296
10297 * utils.h: Remove <stdbool.h> #include.
10298 (producer_is_gcc): Change return type to "int".
10299 * utils.c (producer_is_gcc): Change return type to int.
10300 Return 1 instead of true, and 0 instead of false.
10301 Adjust function documentation accordingly.
10302
550bdf96
AA
103032015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10304
10305 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10306 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10307 present.
10308 (s390_linux_store_inferior_registers): Likewise.
10309 (s390_get_hwcap): Remove function. Embed its logic...
10310 (s390_read_description): ...here. Yield a target description with
10311 vector registers if applicable.
10312 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10313 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10314 "features/s390x-tevx-linux64.c".
10315 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10316 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10317 for "GNU/Linux-specific registers".
10318 (s390_dwarf_reg_r0l): New enum value.
10319 (s390_dwarf_reg_to_regnum): Support vector registers.
10320 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10321 of GPR lower halves.
10322 (regnum_is_vxr_full): New function.
10323 (s390_register_name): New function.
10324 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10325 f0-f15 and v0l-v15l.
10326 (s390_pseudo_register_type): Likewise.
10327 (s390_pseudo_register_read): Likewise.
10328 (s390_pseudo_register_write): Likewise.
10329 (s390_value_from_register): Account for the fact that values are
10330 placed left-justified in vector registers.
10331 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10332 the vector reggroup and omit them from the general reggroup.
10333 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10334 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10335 (s390_iterate_over_regset_sections): Add iterations for the two
10336 new vector regsets.
10337 (s390_core_read_description): Yield a target description with
10338 vector registers if applicable.
10339 (s390_gdbarch_init): Handle target descriptions with vector
10340 registers. Add "register_name" gdbarch method.
10341 (_initialize_s390_tdep): Call new tdesc initialization functions.
10342 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10343 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10344 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10345 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10346 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10347 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10348 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10349 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10350 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10351 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10352 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10353 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10354 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10355 (S390_NUM_REGS): Adjust value.
10356 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10357 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10358 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10359 * NEWS: Announce S/390 vector register support.
10360
446899e4
AA
103612015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10362
10363 * features/s390-tevx-linux64.xml: New file.
10364 * features/s390-vx-linux64.xml: New file.
10365 * features/s390-vx.xml: New file.
10366 * features/s390x-tevx-linux64.xml: New file.
10367 * features/s390x-vx-linux64.xml: New file.
10368 * features/Makefile (WHICH): Add s390-vx-linux64,
10369 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10370 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10371 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10372 macros.
10373 * features/s390-tevx-linux64.c: New generated file.
10374 * features/s390-vx-linux64.c: Likewise.
10375 * features/s390x-tevx-linux64.c: Likewise.
10376 * features/s390x-vx-linux64.c: Likewise.
10377 * regformats/s390-tevx-linux64.dat: Likewise.
10378 * regformats/s390-vx-linux64.dat: Likewise.
10379 * regformats/s390x-tevx-linux64.dat: Likewise.
10380 * regformats/s390x-vx-linux64.dat: Likewise.
10381
b7236fbe
DE
103822015-02-28 Doug Evans <xdje42@gmail.com>
10383
10384 * symtab.h (struct symtab) <next>: Fix comment.
10385
02e62830
SM
103862015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10387
10388 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10389 python_GdbMethods.
10390
bf36a1e7
PA
103912015-02-27 Pedro Alves <palves@redhat.com>
10392
10393 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10394
ad6aff7d
PA
103952015-02-27 Pedro Alves <palves@redhat.com>
10396
10397 * common/common-exceptions.h (exception_none): Declare.
10398 * common/common-exceptions.c (exception_none): Moved from
10399 exceptions.c.
10400 (exceptions_state_mc_init): Use exception_none.
10401 * exceptions.c (exception_none): Move to
10402 common/common-exceptions.c.
10403 * exceptions.h (exception_none): Move to
10404 common/common-exceptions.h.
10405
97c18565
PA
104062015-02-27 Pedro Alves <palves@redhat.com>
10407
10408 * main.c (catch_command_errors, catch_command_errors_const):
10409 Remove 'mask' argument. Adjust.
10410 (captured_main): Adjust callers.
10411
e992c591
PA
104122015-02-27 Pedro Alves <palves@redhat.com>
10413
10414 * python/python-internal.h: Include "extension-priv.h".
10415
64166036
PA
104162015-02-27 Pedro Alves <palves@redhat.com>
10417
10418 * breakpoint.h (enum print_stop_action): Move further up in the
10419 file.
10420
8a526fa6
PA
104212015-02-27 Pedro Alves <palves@redhat.com>
10422
10423 * gdbarch.sh: Include regcache.h.
10424 * gdbarch.h: Regenerate.
10425
0fa9c223
PA
104262015-02-27 Pedro Alves <palves@redhat.com>
10427
10428 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10429 Remove duplicate const.
10430 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10431 duplicate const.
10432
7cf99fb1
PA
104332015-02-27 Pedro Alves <palves@redhat.com>
10434
10435 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10436 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10437 * features/feature_to_c.sh: Tag the generated xml_builtin array
10438 with extern const in C++ mode.
10439
1424c16e
TT
104402015-02-27 Tom Tromey <tromey@redhat.com>
10441
10442 * minidebug.c (struct lzma_stream): Rename to ...
10443 (struct gdb_lzma_stream): ... this.
10444 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10445
10367c7c
PA
104462015-02-27 Pedro Alves <palves@redhat.com>
10447
10448 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10449 function.
10450 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10451 (mi_cmd_stack_list_variables): Use it.
10452
4180215b
PA
104532015-02-27 Pedro Alves <palves@redhat.com>
10454
10455 * x86-linux-nat.c (u_debugreg_offset): New function.
10456 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10457
2f56f7c3
PA
104582015-02-27 Pedro Alves <palves@redhat.com>
10459
10460 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10461 declaration.
10462 Include break-common.h.
10463
570dc176
TT
104642015-02-27 Tom Tromey <tromey@redhat.com>
10465 Pedro Alves <palves@redhat.com>
10466
10467 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10468 local used to iterate over enums.
10469 * completer.c (signal_completer): Likewise.
10470 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10471 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10472 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10473 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10474 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10475 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10476 * tui-wingeneral.c (tui_refresh_all): Likewise.
10477
68c14faa
PA
104782015-02-27 Pedro Alves <palves@redhat.com>
10479
10480 * target.h: Include "infrun.h".
10481
749bab01
PA
104822015-02-27 Pedro Alves <palves@redhat.com>
10483
10484 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10485
3c14e5a3
PA
104862015-02-27 Pedro Alves <palves@redhat.com>
10487
10488 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10489 (IPA_SYM): Use it.
10490 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10491
56000a98
PA
104922015-02-27 Pedro Alves <palves@redhat.com>
10493
10494 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10495 cli_mld_erase_entire_line, and make it extern "C".
10496 * common/common-defs.h (EXTERN_C): New.
10497 * completer.c (_rl_completion_prefix_display_length)
10498 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10499 out of gdb_display_match_list_1.
10500 (_rl_qsort_string_compare): Move declaration out of
10501 gdb_display_match_list_1, and make it extern "C".
10502 * defs.h (re_comp): Use EXTERN_C.
10503 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10504 and make it extern "C".
10505 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10506 and make it extern "C".
10507 (main): Move declaration out of maintenance_set_profile_cmd.
10508 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10509 EXTERN_C.
10510
bcabf420
PA
105112015-02-27 Pedro Alves <palves@redhat.com>
10512
10513 * python/python.c (GdbMethods): Rename to ...
10514 (python_GdbMethods): ... this and make extern.
10515 (GdbModuleDef): Rename to ...
10516 (python_GdbModuleDef): ... this and make extern.
10517
928dbe07
PA
105182015-02-27 Pedro Alves <palves@redhat.com>
10519
10520 * record-btrace.c (set_record_btrace_cmdlist)
10521 (show_record_btrace_cmdlist): Remove redefinitions.
10522
52059ffd
TT
105232015-02-27 Tom Tromey <tromey@redhat.com>
10524 Pedro Alves <palves@redhat.com>
10525
10526 * dwarf2-frame.c (enum cfa_how_kind, struct
10527 dwarf2_frame_state_reg_info): Move out of struct
10528 dwarf2_frame_state.
10529 * dwarf2read.c (struct tu_stats): Move out of struct
10530 dwarf2_per_objfile.
10531 (struct file_entry): Move out of struct line_header.
10532 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10533 typedef_field_list): Move out of struct field_info.
10534 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10535 Move out of struct dynamic_prop.
10536 (union type_owner, union field_location, struct field, struct
10537 range_bounds, union type_specific): Move out of struct main_type.
10538 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10539 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10540 (struct call_site_target, union call_site_parameter_u, struct
10541 call_site_parameter): Move out of struct call_site.
10542 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10543 m32c_prologue.
10544 (enum srcdest_kind): Move out of struct srcdest.
10545 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10546 * prologue-value.h (enum prologue_value_kind): Move out of struct
10547 prologue_value.
10548 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10549 gdbarch_tdep.
10550 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10551 out of struct field_info.
10552 * symfile.h (struct other_sections): Move out of struct
10553 section_addr_info.
10554 * symtab.c (struct symbol_cache_slot): Move out struct
10555 block_symbol_cache.
10556 * target-descriptions.c (enum tdesc_type_kind): Move out of
10557 typedef struct tdesc_type.
10558 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10559 struct tui_line_or_address.
10560 * value.c (enum internalvar_kind, union internalvar_data): Move
10561 out of struct internalvar.
10562 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10563 gdbarch_tdep.
10564
fe978cb0
PA
105652015-02-27 Tom Tromey <tromey@redhat.com>
10566 Pedro Alves <palves@redhat.com>
10567
10568 Rename symbols whose names are reserved C++ keywords throughout.
10569
3bc3d82a
PA
105702015-02-27 Pedro Alves <palves@redhat.com>
10571
10572 * Makefile.in (COMPILER): New, get it from autoconf.
10573 (COMPILE.pre, CC_LD): Use COMPILER.
10574 (CXX): Get from autoconf instead.
10575 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10576 * acinclude.m4: Include build-with-cxx.m4.
10577 * build-with-cxx.m4: New file.
10578 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10579 Disable -Werror by default if building in C++ mode.
10580 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10581 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10582 Run supported-warning-flags tests with the C++ compiler.
10583 Save/restore CXXFLAGS too.
10584 * configure: Regenerate.
10585
07697489
PA
105862015-02-27 Pedro Alves <palves@redhat.com>
10587
10588 * libiberty.m4: New file.
10589 * acinclude.m4: Include libiberty.m4.
10590 * configure.ac: Call libiberty_INIT.
10591 * config.in, configure: Regenerate.
10592
60abeae4
AA
105932015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10594
10595 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10596 31-bit targets, but 64-bit targets as well.
10597 (s390_gnu_triplet_regexp): New function.
10598 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10599 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10600 method.
10601
f44466fb 106022015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10603
10604 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10605 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10606 from CONTEXT_DEBUGGER.
10607
0def5aaa
DE
106082015-02-26 Doug Evans <dje@google.com>
10609
10610 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10611 CHECK_TYPEDEF.
10612 (set_type_vptr_fieldno): Ditto.
10613 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10614 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10615
77b64a49
PA
106162015-02-26 Pedro Alves <palves@redhat.com>
10617
10618 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10619 * complaints.c (vcomplaint): Pass argument FMT directly to
10620 printf-like functions instead of complaint->fmt.
10621 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10622 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10623 * compile/compile-loc2c.c (pushf, unary, binary): Add
10624 ATTRIBUTE_PRINTF.
10625 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10626 to pushf.
10627 (BINARY): Pass string literal as format string to 'binary'.
10628 * compile/compile-object-load.c (link_callbacks_einfo): Add
10629 ATTRIBUTE_PRINTF.
10630 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10631
532f44ed
PA
106322015-02-26 Pedro Alves <palves@redhat.com>
10633
10634 * windows-termcap.c: Rename to ...
10635 * stub-termcap.c: ... this. Adjust header line.
10636 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10637 windows-termcap.c.
10638 * configure: Regenerate.
10639 * configure.ac: Refer to stub-termcap.o instead of
10640 windows-termcap.o.
10641 * gdb_curses.h: Mention stub-termcap.c instead of
10642 windows-termcap.c.
10643
081a1c2c
JK
106442015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10647 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10648
2f41223f
AT
106492015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10650
10651 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10652
80c57053
JK
106532015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10654
10655 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10656 bfd_canonicalize_symtab.
10657
cf424aef
JB
106582015-02-25 John Baldwin <jhb@FreeBSD.org>
10659
10660 * amd64fbsd-nat.c: Include sys/user.h.
10661 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10662 instead of KERN_PS_STRINGS to locate the signal trampoline.
10663 * i386fbsd-nat.c: Include sys/user.h.
10664 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10665 instead of KERN_PS_STRINGS to locate the signal trampoline.
10666 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10667 (amd64fbsd_sigtramp_p): New.
10668 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10669 longer set default values.
10670 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10671 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10672 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10673 (i386fbsd_freebsd4_sigtramp_start)
10674 (i386fbsd_freebsd4_sigtramp_middle)
10675 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10676 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10677 (i386fbsd_sigtramp_p): New.
10678 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10679 longer set default values.
10680 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10681
c5cb74ee
JB
106822015-02-25 John Baldwin <jhb@freebsd.org>
10683
10684 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10685 get_frame_register instead of frame_unwind_register_unsigned.
10686
17487d85
JK
106872015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10688
10689 PR build/18033
10690 * compile/compile-c-support.c (c_compute_program): Change // comment.
10691 * compile/compile-object-load.c (setup_sections): Change // comment.
10692
9357a9e6
JB
106932015-02-26 Joel Brobecker <brobecker@adacore.com>
10694
10695 PR build/18033:
10696 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10697
1f10ba14
PA
106982015-02-23 Pedro Alves <palves@redhat.com>
10699
10700 * remote.c (skip_to_semicolon): New function.
10701 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10702 special case the stop reasons that look like hex numbers
10703 upfront. Instead handle real register numbers after matching
10704 all the known stop reasons.
10705
96553a0c
DE
107062015-02-21 Doug Evans <dje@google.com>
10707
10708 PR c++/17976, symtab/17821
10709 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10710 is_in_anonymous. All callers updated.
10711 (find_symbol_in_baseclass): Ditto.
10712 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10713 for symbols in an anonymous namespace.
10714 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10715 DW_AT_name directly.
10716 (dwarf2_name): Convert missing namespace name to
10717 CP_ANONYMOUS_NAMESPACE_STR.
10718
2db9a427
PA
107192015-02-20 Pedro Alves <palves@redhat.com>
10720
10721 * linux-nat.c (linux_handle_extended_wait): Call
10722 thread_db_notice_clone whenever a new clone LWP is detected.
10723 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10724 functions.
10725 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10726 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10727 (linux_unstop_all_lwps): Declare.
10728 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10729 (thread_get_info_callback): Delete.
10730 (thread_from_lwp): Use td_thr_get_info and record_thread.
10731 (thread_db_attach_lwp): Delete.
10732 (thread_db_notice_clone): New function.
10733 (try_thread_db_load_1): If /proc is mounted and shows the
10734 process'es task list, walk over all LWPs and call thread_from_lwp
10735 instead of relying on td_ta_thr_iter.
10736 (attach_thread): Don't call check_thread_signals here. Split the
10737 tail part of the function (which adds the thread to the core GDB
10738 thread list) to ...
10739 (record_thread): ... this function. Call check_thread_signals
10740 here.
10741 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10742 call thread_from_lwp.
10743 (thread_db_update_thread_list): Rename to ...
10744 (thread_db_update_thread_list_org): ... this.
10745 (thread_db_update_thread_list): New function.
10746 (thread_db_find_thread_from_tid): Delete.
10747 (thread_db_get_ada_task_ptid): Simplify.
10748 * nat/linux-procfs.c: Include <sys/stat.h>.
10749 (linux_proc_task_list_dir_exists): New function.
10750 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10751
3b27ef47
PA
107522015-02-20 Pedro Alves <palves@redhat.com>
10753
10754 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10755 main LWP. Handle the case of waitpid returning 0 if we're already
10756 attached to the LWP. Don't set the LWP's last_resume_kind to
10757 resume_stop if we already knew about the LWP.
10758 (linux_nat_filter_event): Add debug logs.
10759
1cc28231
PA
107602015-02-20 Pedro Alves <palves@redhat.com>
10761
10762 * target.h (forward_target_decr_pc_after_break): Delete
10763 declaration.
10764
5c5019c2
PA
107652015-02-20 Pedro Alves <palves@redhat.com>
10766
10767 PR threads/18006
10768 * linux-thread-db.c (thread_get_info_callback): Return early if
10769 the thread's lwp id is -1.
10770
f3978e91
JB
107712015-02-20 Joel Brobecker <brobecker@adacore.com>
10772
10773 GDB 7.9 released.
10774
ffdf88ec
SE
107752015-02-19 Steve Ellcey <sellcey@imgtec.com>
10776
10777 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10778 (dtrace_get_probes) Change type of variable 'dof'.
10779
c9587f88
AT
107802015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10781
10782 PR breakpoints/16812
10783 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10784 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10785 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10786
53cf2ee0
DT
107872015-02-19 David Taylor <dtaylor@emc.com>
10788
10789 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10790
acfe0940
PP
107912015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10792
10793 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10794 function.
10795 (tui_putc): Don't call tui_handle_resize_during_io.
10796 (tui_getc): Likewise.
10797 (tui_mld_getc): Likewise.
10798 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10799 (tui_sigwinch_token): New static variable.
10800 (tui_initialize_win): Adjust documentation. Set
10801 tui_sigwinch_token.
10802 (tui_async_resize_screen): New asynchronous callback.
10803 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10804 invoke tui_async_resize_screen.
10805
f6a88844
JM
108062015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10807
10808 * configure: Regenerated.
10809 * configure.ac: Use GDB_AC_TRANSFORM.
10810 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10811 * acinclude.m4: sinclude transform.m4.
10812 * transform.m4: New file.
10813 (GDB_AC_TRANSFORM): New macro.
10814
b05e3b0d
JM
108152015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10816
10817 * NEWS: Announce the support for DTrace SDT probes.
10818
c3e3045e
JM
108192015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10820
10821 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10822 (amd64_dtrace_parse_probe_argument): New function.
10823 (amd64_dtrace_probe_is_enabled): Likewise.
10824 (amd64_dtrace_enable_probe): Likewise.
10825 (amd64_dtrace_disable_probe): Likewise.
10826 (amd64_linux_init_abi): Register the
10827 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10828 `gdbarch_dtrace_disable_probe' and
10829 `gdbarch_dtrace_probe_is_enabled' hooks.
10830 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10831 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10832 (amd64_dtrace_enable_probe_sequence): Likewise.
10833 (amd64_dtrace_disable_probe_sequence): Likewise.
10834
d4777acb
JM
108352015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10836
10837 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10838 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10839 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10840 handle ELF files.
10841 * Makefile.in (SFILES): dtrace-probe.c added.
10842 * configure: Regenerate.
10843 * dtrace-probe.c: New file.
10844 (SHT_SUNW_dof): New constant.
10845 (dtrace_probe_type): New enum.
10846 (dtrace_probe_arg): New struct.
10847 (dtrace_probe_arg_s): New typedef.
10848 (struct dtrace_probe_enabler): New struct.
10849 (dtrace_probe_enabler_s): New typedef.
10850 (dtrace_probe): New struct.
10851 (dtrace_probe_is_linespec): New function.
10852 (dtrace_dof_sect_type): New enum.
10853 (dtrace_dof_dofh_ident): Likewise.
10854 (dtrace_dof_encoding): Likewise.
10855 (DTRACE_DOF_ENCODE_LSB): Likewise.
10856 (DTRACE_DOF_ENCODE_MSB): Likewise.
10857 (dtrace_dof_hdr): New struct.
10858 (dtrace_dof_sect): Likewise.
10859 (dtrace_dof_provider): Likewise.
10860 (dtrace_dof_probe): Likewise.
10861 (DOF_UINT): New macro.
10862 (DTRACE_DOF_PTR): Likewise.
10863 (DTRACE_DOF_SECT): Likewise.
10864 (dtrace_process_dof_probe): New function.
10865 (dtrace_process_dof): Likewise.
10866 (dtrace_build_arg_exprs): Likewise.
10867 (dtrace_get_arg): Likewise.
10868 (dtrace_get_probes): Likewise.
10869 (dtrace_get_probe_argument_count): Likewise.
10870 (dtrace_can_evaluate_probe_arguments): Likewise.
10871 (dtrace_evaluate_probe_argument): Likewise.
10872 (dtrace_compile_to_ax): Likewise.
10873 (dtrace_probe_destroy): Likewise.
10874 (dtrace_gen_info_probes_table_header): Likewise.
10875 (dtrace_gen_info_probes_table_values): Likewise.
10876 (dtrace_probe_is_enabled): Likewise.
10877 (dtrace_probe_ops): New variable.
10878 (info_probes_dtrace_command): New function.
10879 (_initialize_dtrace_probe): Likewise.
10880 (dtrace_type_name): Likewise.
10881
8b367e17
JM
108822015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10883
10884 * gdbarch.sh (dtrace_parse_probe_argument): New.
10885 (dtrace_probe_is_enabled): Likewise.
10886 (dtrace_enable_probe): Likewise.
10887 (dtrace_disable_probe): Likewise.
10888 * gdbarch.c: Regenerate.
10889 * gdbarch.h: Regenerate.
10890
9aca2ff8
JM
108912015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10892
10893 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10894 stap_probe_ops for `enable_probe' and `disable_probe'.
10895 * probe.c (enable_probes_command): New function.
10896 (disable_probes_command): Likewise.
10897 (_initialize_probe): Define the cli commands `enable probe' and
10898 `disable probe'.
10899 (parse_probe_linespec): New function.
10900 (info_probes_for_ops): Use parse_probe_linespec.
10901 * probe.h (probe_ops): New hooks `enable_probe' and
10902 `disable_probe'.
10903
03e98035
JM
109042015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10905
10906 * probe.c (compute_probe_arg): Moved from stap-probe.c
10907 (compile_probe_arg): Likewise.
10908 (probe_funcs): Likewise.
10909 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10910 (compile_probe_arg): Likewise.
10911 (probe_funcs): Likewise.
10912
6f9b8491
JM
109132015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10914
10915 * probe.c (print_ui_out_not_applicables): New function.
10916 (exists_probe_with_pops): Likewise.
10917 (info_probes_for_ops): Do not include column headers for probe
10918 types for which no probe has been actually found on any object.
10919 Also invoke `print_ui_out_not_applicables' in order to match the
10920 column rows with the header when probes of several types are
10921 listed.
10922 Print the "Type" column.
10923 * probe.h (probe_ops): Added a new probe operation `type_name'.
10924 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10925 (stap_type_name): New function.
10926
69efdff1
PP
109272015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10928
10929 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10930 (key_is_command_char): Delete.
10931
f8e5e23e
PA
109322015-02-17 Pedro Alves <palves@redhat.com>
10933
10934 * tui/tui.c (tui_enable): Resize windows before anything
10935 might show a window.
10936
9f2e0721
MO
109372015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10938
10939 PR gdb/17984
10940 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10941 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10942 call.
10943 * aarch64-tdep.h (tdesc_aarch64): Declare.
10944
171e6b1c
MW
109452015-02-12 Mark Wielaard <mjw@redhat.com>
10946
10947 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10948
d5ff0482
DE
109492015-02-13 Doug Evans <dje@google.com>
10950
10951 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10952 anonymous_namespace to is_in_anonymous for consistency with the rest
10953 of the file.
10954 (cp_lookup_bare_symbol): Fix typo in comment.
10955 (cp_search_static_and_baseclasses): Ditto.
10956 (search_symbol_list): Use vertical space in comment better.
10957 (reset_directive_searched): Ditto. Fix typo.
10958 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10959
9f04ac5f
YQ
109602015-02-13 Yao Qi <yao.qi@arm.com>
10961
10962 * MAINTAINERS: Update my email address.
10963
013d0319
DE
109642015-02-12 Doug Evans <dje@google.com>
10965
b615dd20 10966 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10967
9a7e538e
DE
109682015-02-12 Doug Evans <dje@google.com>
10969
10970 * completer.c (complete_line): Remove incorrect comment.
10971
e1fcd575
JK
109722015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10973
10974 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10975 (py_print_frame): Use RETURN_MASK_ERROR.
10976
b99bf4e3
JK
109772015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10980 function comment. Wrap all function that can throw in cleanups.
10981 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10982 cleanups.
10983
800eb1ce
JK
109842015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10985
10986 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10987 Remove the error label.
10988
34019068
JK
109892015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10992 with goto first, indent the former else codepath left. Put variable
10993 'elided' to a new inner block.
10994
8d4a54e2
JK
109952015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10998
18ad82c1
PA
109992015-02-11 Pedro Alves <palves@redhat.com>
11000
11001 * xcoffread.c (within_function): Delete.
11002
e36122e9
TT
110032015-02-11 Tom Tromey <tromey@redhat.com>
11004 Pedro Alves <palves@redhat.com>
11005
11006 * breakpoint.c (base_breakpoint_ops): Delete.
11007 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11008 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11009 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11010 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11011 * python/py-arch.c (arch_object_type): Make extern.
11012 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11013 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11014 * python/py-cmd.c (cmdpy_object_type): Make extern.
11015 * python/py-continueevent.c (continue_event_object_type)
11016 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11017 parameter. Update all callers.
11018 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11019 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11020 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11021 * python/py-function.c (fnpy_object_type): Make extern.
11022 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11023 * python/py-infevents.c (call_pre_event_object_type)
11024 (inferior_call_post_event_object_type).
11025 (memory_changed_event_object_type): Make extern.
11026 * python/py-infthread.c (thread_object_type): Make extern.
11027 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11028 * python/py-linetable.c (linetable_entry_object_type)
11029 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11030 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11031 (clear_objfiles_event_object_type): Make extern.
11032 * python/py-objfile.c (objfile_object_type): Make extern.
11033 * python/py-param.c (parmpy_object_type): Make extern.
11034 * python/py-progspace.c (pspace_object_type): Make extern.
11035 * python/py-signalevent.c (signal_event_object_type): Make extern.
11036 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11037 * python/py-type.c (type_object_type, field_object_type)
11038 (type_iterator_object_type): Make extern.
11039 * python/python.c (python_extension_script_ops)
11040 (python_extension_ops): Make extern.
11041 * stap-probe.c (stap_probe_ops): Make extern.
11042
0703599a
PA
110432015-02-11 Pedro Alves <pedro@codesourcery.com>
11044
11045 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11046 because the event thread is not the current thread.
11047
eaaf76ab
DE
110482015-02-11 Doug Evans <xdje42@gmail.com>
11049
11050 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11051 been initialized yet, return NULL.
11052
e7d52ed3
DE
110532015-02-11 Doug Evans <dje@google.com>
11054
11055 * symfile.h (new_symfile_objfile): Delete.
11056 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11057 All callers updated.
11058
fc6b1256
PP
110592015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11060
11061 * tui/tui-io.c (tui_handle_resize_during_io): Call
11062 tui_update_gdb_sizes() after resizing the screen.
11063 * tui/tui.c (tui_enable): Resize the terminal before
11064 calling tui_update_gdb_sizes().
11065
d9080678
PP
110662015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11067
11068 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11069 line before printing a newline.
11070
9f615e3a
MW
110712015-02-11 Mark Wielaard <mjw@redhat.com>
11072
11073 * utils.c (producer_is_gcc): Return true or false.
11074
d9080678 110752015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11076
11077 * utils.h (producer_is_gcc): Change return type to bool. Add major
11078 argument.
11079 * utils.c (producer_is_gcc): Likewise.
11080 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11081 * dwarf2read.c (check_producer): Likewise.
11082
b052c4fb
PA
110832015-02-10 Pedro Alves <palves@redhat.com>
11084
11085 * infrun.c (displaced_step_fixup): Switch to the event thread
11086 before calling gdbarch_displaced_step_fixup.
11087
3ac240d4
AT
110882015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11089
11090 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11091
c1cc6152
SM
110922015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11093
11094 * ada-varobj.c (ada_name_of_child): Constify parent.
11095 (ada_path_expr_of_child): Same.
11096 (ada_value_of_child): Same.
11097 (ada_type_of_child): Same.
11098 * c-varobj.c (c_is_path_expr_parent): Same.
11099 (c_describe_child): Same.
11100 (c_name_of_child): Same.
11101 (c_value_of_child): Same.
11102 (c_type_of_child): Same.
11103 (cplus_number_of_children): Same.
11104 (cplus_describe_child): Constify var.
11105 (cplus_name_of_child): Constify parent.
11106 (cplus_value_of_child): Same.
11107 (cplus_type_of_child): Same.
11108 * jv-varobj.c (java_name_of_child): Same.
11109 (java_value_of_child): Same.
11110 (java_type_of_child): Same.
11111 * varobj.c (value_of_child): Same.
11112 (varobj_default_is_path_expr_parent): Constify var, parent and return
11113 value.
11114 (varobj_get_path_expr): Constify var, modify path_expr through
11115 mutable_var.
11116 (install_new_value): Constify parent.
11117 (value_of_child): Constify parent.
11118 * varobj.h (struct varobj): Constify parent.
11119 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11120 type_of_child.
11121 (varobj_get_path_expr): Constify var.
11122 (varobj_get_path_expr_parent): Constify var and return value.
11123
c1ee9414
LM
111242015-02-10 Luis Machado <lgustavo@codesourcery.com>
11125
11126 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11127 (arm_prologue_this_id): Move PC and SP limit checks to
11128 arm_prologue_unwind_stop_reason.
11129 (arm_prologue_unwind) <stop_reason> : Set to
11130 arm_prologue_unwind_stop_reason.
11131
f7de9aab
MW
111322015-02-09 Mark Wielaard <mjw@redhat.com>
11133
11134 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11135 DW_LANG_Fortran08 as language_fortran.
11136
0b24eb2d
SDJ
111372015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11138
11139 PR remote/17946
11140 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11141 of pointer against char.
11142
a2c2acaf
MW
111432015-02-09 Mark Wielaard <mjw@redhat.com>
11144
11145 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11146 (c_type_print_modifier): Likewise.
11147 * dwarf2read.c (read_tag_atomic_type): New function.
11148 (read_type_die_1): Handle DW_TAG_atomic_type.
11149 * gdbtypes.c (make_atomic_type): New function.
11150 (recursive_dump_type): Handle TYPE_ATOMIC.
11151 * gdbtypes.h (enum type_flag_values): Renumber.
11152 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11153 (TYPE_ATOMIC): New macro.
11154 (make_atomic_type): Declare.
11155
31fd9caa
MM
111562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11157
11158 * btrace.c (ftrace_find_call): Skip gaps.
11159 (ftrace_new_function): Initialize level.
11160 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11161 (ftrace_new_switch): Update
11162 level computation.
11163 (ftrace_new_gap): New.
11164 (ftrace_update_function): Create new function after gap.
11165 (btrace_compute_ftrace_bts): Create gap on error.
11166 (btrace_stitch_bts): Update parameters. Clear trace if it
11167 becomes empty.
11168 (btrace_stitch_trace): Update parameters. Update callers.
11169 (btrace_clear): Reset the number of gaps.
11170 (btrace_insn_get): Return NULL if the iterator points to a gap.
11171 (btrace_insn_number): Return zero if the iterator points to a gap.
11172 (btrace_insn_end): Allow gaps at the end.
11173 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11174 (btrace_find_insn_by_number): Assert that the found iterator does
11175 not point to a gap.
11176 (btrace_call_next, btrace_call_prev): Assert that the last function
11177 is not a gap.
11178 * btrace.h (btrace_bts_error): New.
11179 (btrace_function): Update comment.
11180 (btrace_function) <insn, insn_offset, number>: Update comment.
11181 (btrace_function) <errcode>: New.
11182 (btrace_thread_info) <ngaps>: New.
11183 (btrace_thread_info) <replay>: Update comment.
11184 (btrace_insn_get): Update comment.
11185 * record-btrace.c (btrace_ui_out_decode_error): New.
11186 (record_btrace_info): Print number of gaps.
11187 (btrace_insn_history, btrace_call_history): Call
11188 btrace_ui_out_decode_error for gaps.
11189 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11190
afb778a2
MM
111912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11192
11193 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11194 * nat/linux-btrace.c: (btrace_this_cpu): New.
11195 (cpu_supports_bts): Call btrace_this_cpu.
11196 (intel_supports_bts): Add cpu parameter.
11197
7d5c24b3
MM
111982015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11199
11200 * btrace.h (btrace_insn_class): New.
11201 (btrace_insn) <size, iclass>: New.
11202 * btrace.c (ftrace_find_call): Update parameters. Update users.
11203 Use instruction classification.
11204 (ftrace_new_return): Update parameters. Update users.
11205 (ftrace_update_function): Update parameters. Update users. Use
11206 instruction classification.
11207 (ftrace_update_insns): Update parameters. Update users.
11208 (ftrace_classify_insn): New.
11209 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11210 TRY_CATCH around call to gdb_insn_length.
11211
76235df1
MM
112122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11213
11214 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11215 Update parameters. Update users.
11216
d33501a5
MM
112172015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11218
11219 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11220 (btrace_conf_bts_attributes): New.
11221 (btrace_conf_children): Add attributes.
11222 * common/btrace-common.h (btrace_config_bts): New.
11223 (btrace_config)<bts>: New.
11224 (btrace_config): Update comment.
11225 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11226 Use config.
11227 * features/btrace-conf.dtd: Increment version. Add size
11228 attribute to bts element.
11229 * record-btrace.c (set_record_btrace_bts_cmdlist,
11230 show_record_btrace_bts_cmdlist): New.
11231 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11232 record_btrace_print_conf, cmd_set_record_btrace_bts,
11233 cmd_show_record_btrace_bts): New.
11234 (record_btrace_info): Call record_btrace_print_conf.
11235 (_initialize_record_btrace): Add commands.
11236 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11237 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11238 (btrace_sync_conf): Synchronize bts size.
11239 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11240 * NEWS: Announce new commands and new packets.
11241
f4abbc16
MM
112422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11243
11244 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11245 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11246 (x86_linux_btrace_conf): New.
11247 (x86_linux_create_target): Initialize to_btrace_conf.
11248 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11249 Check format. Split into this and ...
11250 (linux_enable_bts): ... this.
11251 (linux_btrace_conf): New.
11252 (perf_event_skip_record): Renamed into ...
11253 (perf_event_skip_bts_record): ... this. Updated users.
11254 (linux_disable_btrace): Split into this and ...
11255 (linux_disable_bts): ... this.
11256 (linux_read_btrace): Check format.
11257 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11258 (linux_btrace_conf): New.
11259 (btrace_target_info)<ptid>: Moved.
11260 (btrace_target_info)<conf>: New.
11261 (btrace_target_info): Split into this and ...
11262 (btrace_tinfo_bts): ... this. Updated users.
11263 * btrace.c (btrace_enable): Update parameters.
11264 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11265 (btrace_conf_children, btrace_conf_attributes)
11266 (btrace_conf_elements): New.
11267 * btrace.h (btrace_enable): Update parameters.
11268 (btrace_conf, parse_xml_btrace_conf): New.
11269 * common/btrace-common.h (btrace_config): New.
11270 * feature/btrace-conf.dtd: New.
11271 * record-btrace.c (record_btrace_conf): New.
11272 (record_btrace_cmdlist): New.
11273 (record_btrace_enable_warn, record_btrace_open): Pass
11274 &record_btrace_conf.
11275 (record_btrace_info): Print recording format.
11276 (cmd_record_btrace_bts_start): New.
11277 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11278 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11279 Add "record bts" alias command.
11280 * remote.c (remote_state)<btrace_config>: New.
11281 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11282 (remote_protocol_features): Add qXfer:btrace-conf:read.
11283 (remote_open_1): Call remote_btrace_reset.
11284 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11285 (btrace_target_info)<conf>: New.
11286 (btrace_sync_conf, btrace_read_config): New.
11287 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11288 btrace_read_conf.
11289 (remote_btrace_conf): New.
11290 (init_remote_ops): Initialize to_btrace_conf.
11291 (_initialize_remote): Add qXfer:btrace-conf packet.
11292 * target.c (target_enable_btrace): Update parameters.
11293 (target_btrace_conf): New.
11294 * target.h (target_enable_btrace): Update parameters.
11295 (target_btrace_conf): New.
11296 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11297 (target_ops)<to_enable_btrace>: Update parameters and comment.
11298 (target_ops)<to_btrace_conf>: New.
11299 * target-delegates: Regenerate.
11300 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11301 (target_debug_print_const_struct_btrace_target_info_p): New.
11302 * NEWS: Announce new command and new packet.
11303
aadf7753
MM
113042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11305
11306 * nat/linux-btrace.h (perf_event_buffer): New.
11307 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11308 <bts>: ... this.
11309 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11310 (perf_event_buffer_size, perf_event_buffer_begin)
11311 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11312 Updated users.
11313 (perf_event_new_data): New.
11314
043c3577
MM
113152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11318 * record-btrace.c (record_btrace_open): Remove call to
11319 target_supports_btrace.
11320 * remote.c (remote_supports_btrace): Update parameters.
11321 * target.c (target_supports_btrace): Update parameters.
11322 * target.h (to_supports_btrace, target_supports_btrace): Update
11323 parameters.
11324 * target-delegates.c: Regenerate.
11325 * target-debug.h (target_debug_print_enum_btrace_format): New.
11326 * nat/linux-btrace.c
11327 (kernel_supports_btrace): Rename into ...
11328 (kernel_supports_bts): ... this. Update users. Update warning text.
11329 (intel_supports_btrace): Rename into ...
11330 (intel_supports_bts): ... this. Update users.
11331 (cpu_supports_btrace): Rename into ...
11332 (cpu_supports_bts): ... this. Update users.
11333 (linux_supports_btrace): Update parameters. Split into this and ...
11334 (linux_supports_bts): ... this.
11335 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11336
734b0e4b
MM
113372015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11338
11339 * Makefile.in (SFILES): Add common/btrace-common.c.
11340 (COMMON_OBS): Add common/btrace-common.o.
11341 (btrace-common.o): Add build rules.
11342 * btrace.c (parse_xml_btrace): Update parameters.
11343 (parse_xml_btrace_block): Set format field.
11344 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11345 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11346 (btrace_compute_ftrace): Split into this and...
11347 (btrace_compute_ftrace_bts): ...this.
11348 (btrace_stitch_trace): Split into this and...
11349 (btrace_stitch_bts): ...this.
11350 * btrace.h (parse_xml_btrace): Update parameters.
11351 (make_cleanup_btrace_data): New.
11352 * common/btrace-common.c: New.
11353 * common/btrace-common.h: Include common-defs.h.
11354 (btrace_block_s): Update comment.
11355 (btrace_format): New.
11356 (btrace_format_string): New.
11357 (btrace_data_bts): New.
11358 (btrace_data): New.
11359 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11360 * remote.c (remote_read_btrace): Update parameters.
11361 * target.c (target_read_btrace): Update parameters.
11362 * target.h (target_read_btrace): Update parameters.
11363 (target_ops)<to_read_btrace>: Update parameters.
11364 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11365 * target-delegates.c: Regenerate.
11366 * target-debug (target_debug_print_struct_btrace_data_p): New.
11367 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11368 (linux_read_bts): ...this.
11369 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11370
bd2e0e9e
DE
113712015-02-06 Doug Evans <dje@google.com>
11372
11373 * remote-m32r-sdi.c: Include symfile.h.
11374
f176c4b5
DE
113752015-02-06 Doug Evans <dje@google.com>
11376
11377 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11378 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11379 to here.
11380
d6c146e9
PA
113812015-02-06 Pedro Alves <palves@redhat.com>
11382
11383 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11384
b9d61307
SM
113852015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11386
11387 PR gdb/15678
11388 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11389 (enable_count_command): Check args for NULL value.
11390
e9fbd043
DE
113912015-02-05 Doug Evans <xdje42@gmail.com>
11392
11393 * guile/scm-frame.c: Fix spelling errors in a comment.
11394
881d5d5d
JK
113952015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11396
11397 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11398 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11399 return type.
11400
20ba1ce6
PA
114012015-02-04 Pedro Alves <palves@redhat.com>
11402
11403 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11404 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11405 returns true.
11406 (resume_stopped_resumed_lwps): Don't check whether the thread is
11407 marked as executing.
11408 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11409
f962539a
AA
114102015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11411
11412 * regset.h (struct regset): Add flags field.
11413 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11414 * corelow.c (get_core_register_section): Add warning if the size
11415 exceeds the requested size and the regset does not have the
11416 REGSET_VARIABLE_SIZE flag set.
11417 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11418 flag.
11419 * armbsd-tdep.c (armbsd_gregset): Likewise.
11420 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11421 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11422 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11423 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11424
dde9acd6
AA
114252015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11426
11427 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11428 For ".reg-xstate", explicitly specify the requested section size
11429 via X86_XSTATE_SIZE instead of just 0 on input and
11430 X86_XSTATE_MAX_SIZE on output.
11431 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11432 Likewise.
11433
1528345d
AA
114342015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11435
11436 PR corefiles/17808:
11437 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11438 function type, particularly its SIZE parameter.
11439 * gdbarch.h: Regenerate.
11440 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11441 actual against required size using ">=" instead of "==".
11442 (amd64_collect_fpregset): Likewise.
11443 * i386-tdep.c (i386_supply_gregset): Likewise.
11444 (i386_collect_gregset): Likewise.
11445 (i386_supply_fpregset): Likewise.
11446 (i386_collect_fpregset): Likewise.
11447 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11448 (mips_fill_gregset_wrapper): Likewise.
11449 (mips_supply_fpregset_wrapper): Likewise.
11450 (mips_fill_fpregset_wrapper): Likewise.
11451 (mips64_supply_gregset_wrapper): Likewise.
11452 (mips64_fill_gregset_wrapper): Likewise.
11453 (mips64_supply_fpregset_wrapper): Likewise.
11454 (mips64_fill_fpregset_wrapper): Likewise.
11455 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11456 (am33_supply_fpregset_method): Likewise.
11457 (am33_collect_gregset_method): Likewise.
11458 (am33_collect_fpregset_method): Likewise.
11459
518be979
DE
114602015-02-04 Doug Evans <dje@google.com>
11461 Pedro Alves <palves@redhat.com>
11462 Eli Zaretskii <eliz@gnu.org>
11463
11464 PR tui/17810
11465 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11466 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11467 * tui/tui-file.c: #include tui/tui-command.h.
11468 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11469 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11470 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11471
80bd5fab
PA
114722015-02-04 Pedro Alves <palves@redhat.com>
11473
11474 Fix build breakage.
11475 * event-loop.c (gdb_do_one_event): Add default switch case.
11476
a7606d80
JK
114772015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11478
11479 Filter out inferior gcc option -fpreprocessed.
11480 * compile/compile.c (filter_args): New function.
11481 (get_args): Use it.
11482
70b66289
PA
114832015-02-03 Pedro Alves <palves@redhat.com>
11484
11485 * event-loop.c: Don't declare nor define a queue type for
11486 gdb_event_p.
11487 (event_queue): Delete.
11488 (create_event, create_file_event, gdb_event_xfree)
11489 (initialize_event_loop, process_event): Delete.
11490 (gdb_do_one_event): Return as soon as one event is handled.
11491 (handle_file_event): Change prototype. Used the passed in
11492 file_handler pointer and ready_mask instead of looping over all
11493 file handlers.
11494 (gdb_wait_for_event): Update the poll/select timeouts before
11495 blocking. Run event handlers directly instead of queueing events.
11496 Return as soon as one event is handled.
11497 (struct async_event_handler_data): Delete.
11498 (invoke_async_event_handler): Delete.
11499 (check_async_event_handlers): Change return type to int. Run
11500 event handlers directly instead of queueing events. Return as
11501 soon as one event is handled.
11502 (handle_timer_event): Delete.
11503 (update_wait_timeout): New function, factored out from
11504 poll_timers.
11505 (poll_timers): Reimplement.
11506 * event-loop.h (initialize_event_loop): Delete declaration.
11507 * top.c (gdb_init): Don't call initialize_event_loop.
11508
b7d2e916
PA
115092015-02-03 Pedro Alves <palves@redhat.com>
11510
11511 * event-loop.c (clear_async_event_handler): New function.
11512 * event-loop.h (clear_async_event_handler): New declaration.
11513 * record-btrace.c (record_btrace_async): New function.
11514 (init_record_btrace_ops): Install record_btrace_async.
11515 * record-full.c (record_full_async): New function.
11516 (record_full_resume): Don't mark the async event source here.
11517 (init_record_full_ops): Install record_full_async.
11518 (record_full_core_resume): Don't mark the async event source here.
11519 (init_record_full_core_ops): Install record_full_async.
11520 * remote.c (remote_async): Mark and clear the async stop reply
11521 queue event-loop token as appropriate.
11522
d9d41e78
PA
115232015-02-03 Pedro Alves <palves@redhat.com>
11524
11525 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11526 target_is_async_p instead of target_can_async.
11527 (linux_nat_wait): Use target_is_async_p instead of
11528 target_can_async. Don't enable async here.
11529 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11530 target_is_async_p instead of target_can_async.
11531
aa3de267
SM
115322015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11533
11534 * varobj.h (lang_varobj_ops): Mention which return values need
11535 to be freed.
11536
2c811c0f
JB
115372015-02-02 Joel Brobecker <brobecker@adacore.com>
11538
11539 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11540
b1eedac9
JB
115412015-02-02 Joel Brobecker <brobecker@adacore.com>
11542
11543 PR gdb/17856:
11544 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11545 results found in the cache.
11546
66c168ae
JB
115472015-02-02 Joel Brobecker <brobecker@adacore.com>
11548
11549 PR gdb/17854:
11550 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11551 when allocating a new one.
11552
4bdc02b2
TT
115532015-02-01 Tom Tromey <tom@tromey.com>
11554
11555 * MAINTAINERS: Remove myself.
11556
ae6ae975
DE
115572015-01-31 Doug Evans <xdje42@gmail.com>
11558
11559 * dwarf2read.c (process_structure_scope): Update setting of
11560 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11561 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11562 (set_type_vptr_fieldno): New function.
11563 (internal_type_vptr_basetype): New function.
11564 (set_type_vptr_basetype): New function.
11565 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11566 TYPE_VPTR_BASETYPE.
11567 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11568 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11569 (print_cplus_stuff): ... moved here.
11570 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11571 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11572 moved to ...
11573 (struct cplus_struct_type): ... here. All uses updated.
11574 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11575 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11576 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11577 * stabsread.c (read_tilde_fields): Update setting of
11578 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11579
09e2d7c7
DE
115802015-01-31 Doug Evans <xdje42@gmail.com>
11581
11582 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11583 to self_p.
11584 (cp_print_class_member): Rename local domain to self_type.
11585 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11586 domain_type to self_type.
11587 (set_die_type) <need_gnat_info>: Handle
11588 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11589 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11590 TYPE_SPECIFIC_SELF_TYPE.
11591 * gdbtypes.c (internal_type_self_type): New function.
11592 (set_type_self_type): New function.
11593 (smash_to_memberptr_type): Rename parameter domain to self_type.
11594 Update setting of TYPE_SELF_TYPE.
11595 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11596 (smash_to_method_type): Rename parameter domain to self_type.
11597 Update setting of TYPE_SELF_TYPE.
11598 (check_stub_method): Call smash_to_method_type.
11599 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11600 (copy_type_recursive): Ditto.
11601 * gdbtypes.h (enum type_specific_kind): New value
11602 TYPE_SPECIFIC_SELF_TYPE.
11603 (struct main_type) <type_specific>: New member self_type.
11604 (struct cplus_struct_type) <fn_field.type>: Update comment.
11605 (TYPE_SELF_TYPE): Rewrite.
11606 (internal_type_self_type, set_type_self_type): Declare.
11607 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11608 self_type.
11609 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11610 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11611 TYPE_TARGET_TYPE.
11612 * stabsread.c (read_member_functions): Mark methods with
11613 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11614 TYPE_SELF_TYPE.
11615
4bfb94b8
DE
116162015-01-31 Doug Evans <xdje42@gmail.com>
11617
11618 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11619 All uses updated.
11620
5f4ce105
DE
116212015-01-31 Doug Evans <xdje42@gmail.com>
11622
11623 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11624 or unions. Return zero if union.
11625 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11626 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11627 gnuv3_get_vtable.
11628 (compute_vtable_size): Assert only passed structs.
11629 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11630
f6b3afbf
DE
116312015-01-31 Doug Evans <xdje42@gmail.com>
11632
11633 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11634 kinds.
11635
cfb069a8
GB
116362015-01-31 Gary Benson <gbenson@redhat.com>
11637 Doug Evans <dje@google.com>
11638
11639 PR cli/9007
11640 PR cli/11920
11641 PR cli/15548
11642 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11643 reached.
11644 * common/common-exceptions.h (enum errors)
11645 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11646 * completer.h (get_max_completions_reached_message): New declaration.
11647 (max_completions): Likewise.
11648 (completion_tracker_t): New typedef.
11649 (new_completion_tracker): New declaration.
11650 (make_cleanup_free_completion_tracker): Likewise.
11651 (maybe_add_completion_enum): New enum.
11652 (maybe_add_completion): New declaration.
11653 (throw_max_completions_reached_error): Likewise.
11654 * completer.c (max_completions): New global variable.
11655 (new_completion_tracker): New function.
11656 (free_completion_tracker): Likewise.
11657 (make_cleanup_free_completion_tracker): Likewise.
11658 (maybe_add_completions): Likewise.
11659 (throw_max_completions_reached_error): Likewise.
11660 (complete_line): Remove duplicates and limit result to max_completions
11661 entries.
11662 (get_max_completions_reached_message): New function.
11663 (gdb_display_match_list): Handle max_completions.
11664 (_initialize_completer): New declaration and function.
11665 * symtab.c: Include completer.h.
11666 (completion_tracker): New static variable.
11667 (completion_list_add_name): Call maybe_add_completion.
11668 (default_make_symbol_completion_list_break_on_1): Renamed from
11669 default_make_symbol_completion_list_break_on. Maintain
11670 completion_tracker across calls to completion_list_add_name.
11671 (default_make_symbol_completion_list_break_on): New function.
11672 * top.c (init_main): Set rl_completion_display_matches_hook.
11673 * tui/tui-io.c: Include completer.h.
11674 (tui_old_rl_display_matches_hook): New static global.
11675 (tui_rl_display_match_list): Notify user if max-completions reached.
11676 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11677 * NEWS (New Options): Mention set/show max-completions.
11678
e11c72c7
GB
116792015-01-31 Gary Benson <gbenson@redhat.com>
11680
11681 * symtab.c (struct add_name_data) <code>: New field.
11682 Updated comments.
11683 (add_symtab_completions): New function.
11684 (symtab_expansion_callback): Likewise.
11685 (default_make_symbol_completion_list_break_on): Set datum.code.
11686 Move minimal symbol scan before calling expand_symtabs_matching.
11687 Scan known primary symtabs for externs and statics before calling
11688 expand_symtabs_matching. Pass symtab_expansion_callback as
11689 expansion_notify argument to expand_symtabs_matching. Do not scan
11690 primary symtabs for externs and statics after calling
11691 expand_symtabs_matching.
11692
276d885b
GB
116932015-01-31 Gary Benson <gbenson@redhat.com>
11694
11695 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11696 (struct quick_symbol_functions) <expand_symtabs_matching>:
11697 New argument expansion_notify. All uses updated.
11698 (expand_symtabs_matching): New argument expansion_notify.
11699 All uses updated.
11700 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11701 Also print expansion notify.
11702 * symtab.c (expand_symtabs_matching_via_partial): Call
11703 expansion_notify whenever a partial symbol table is expanded.
11704 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11705 expansion_notify whenever a symbol table is instantiated.
11706
82083d6d
DE
117072015-01-31 Doug Evans <xdje42@gmail.com>
11708
11709 * cli-out.c: #include completer.h, readline/readline.h.
11710 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11711 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11712 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11713 * cli-out.h (cli_display_match_list): Declare.
11714 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11715 (ELLIPSIS_LEN): Ditto.
11716 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11717 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11718 (gdb_fnprint, gdb_print_filename): Ditto.
11719 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11720 (gdb_display_match_list): Ditto.
11721 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11722 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11723 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11724 (match_list_displayer): New struct.
11725 (gdb_display_match_list): Declare.
11726 * top.c (init_main): Set rl_completion_display_matches_hook.
11727 * tui/tui-io.c: #include completer.h.
11728 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11729 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11730 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11731 (tui_mld_getc, tui_mld_read_key): Ditto.
11732 (tui_rl_display_match_list): Rewrite.
11733 (tui_handle_resize_during_io): New arg for_completion. All callers
11734 updated.
11735
f57d2163
DE
117362015-01-31 Doug Evans <xdje42@gmail.com>
11737
11738 Add symbol lookup cache.
11739 * NEWS: Document new options and commands.
11740 * symtab.c (symbol_cache_key): New static global.
11741 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11742 (SYMBOL_LOOKUP_FAILED): New macro.
11743 (symbol_cache_slot_state): New enum.
11744 (block_symbol_cache): New struct.
11745 (symbol_cache): New struct.
11746 (new_symbol_cache_size, symbol_cache_size): New static globals.
11747 (hash_symbol_entry, eq_symbol_entry): New functions.
11748 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11749 (make_symbol_cache, free_symbol_cache): New functions.
11750 (get_symbol_cache, symbol_cache_cleanup): New function.
11751 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11752 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11753 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11754 (symbol_cache_flush, symbol_cache_dump): New functions.
11755 (maintenance_print_symbol_cache): New function.
11756 (maintenance_flush_symbol_cache): New function.
11757 (symbol_cache_stats): New function.
11758 (maintenance_print_symbol_cache_statistics): New function.
11759 (symtab_new_objfile_observer): New function.
11760 (symtab_free_objfile_observer): New function.
11761 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11762 (_initialize_symtab): Init symbol_cache_key. New parameter
11763 maint symbol-cache-size. New maint commands print symbol-cache,
11764 print symbol-cache-statistics, flush-symbol-cache.
11765 Install new_objfile, free_objfile observers.
11766
e700d1b2
JB
117672015-01-31 Joel Brobecker <brobecker@adacore.com>
11768
11769 PR symtab/17855
11770 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11771 to end.
11772
9f050062
DE
117732015-01-31 Doug Evans <xdje42@gmail.com>
11774
11775 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11776 * auto-load.c: #include ctype.h.
11777 (struct auto_load_pspace_info): Replace member loaded_scripts with
11778 new members loaded_script_files, loaded_script_texts.
11779 (auto_load_pspace_data_cleanup): Update.
11780 (init_loaded_scripts_info): Update.
11781 (get_auto_load_pspace_data_for_loading): Update.
11782 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11783 updated.
11784 (maybe_add_script_text): New function.
11785 (clear_section_scripts): Update.
11786 (source_script_file, execute_script_contents): New functions.
11787 (source_section_scripts): Add support for
11788 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11789 (print_scripts): New function.
11790 (auto_load_info_scripts): Also print inlined scripts.
11791 (maybe_print_unsupported_script_warning): Renamed from
11792 unsupported_script_warning_print. All callers updated.
11793 (maybe_print_script_not_found_warning): Renamed from
11794 script_not_found_warning_print. All callers updated.
11795 * extension-priv.h (struct extension_language_script_ops): New member
11796 objfile_script_executor.
11797 * extension.c (ext_lang_objfile_script_executor): New function.
11798 * extension.h (objfile_script_executor_func): New typedef.
11799 (ext_lang_objfile_script_executor): Declare.
11800 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11801 * guile/guile.c (guile_extension_script_ops): Update.
11802 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11803 * python/python.c (python_extension_script_ops): Update.
11804 (gdbpy_execute_objfile_script): New function.
11805
312809f8
EZ
118062015-01-31 Eli Zaretskii <eliz@gnu.org>
11807
11808 * tui/tui-io.c (tui_expand_tabs): New function.
11809 (tui_puts, tui_redisplay_readline): Expand TABs into the
11810 appropriate number of spaces.
11811 * tui/tui-regs.c: Include tui-io.h.
11812 (tui_register_format): Call tui_expand_tabs to expand TABs into
11813 the appropriate number of spaces.
11814 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11815
b6577aab
DE
118162015-01-30 Doug Evans <dje@google.com>
11817
11818 * NEWS: "info source" command now display producer string if present.
11819 * source.c (source_info): Print producer string if present.
11820
6da58d3e
SM
118212015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11822
11823 * varobj.c (varobj_delete): Fix comment.
11824
837ce252
SM
118252015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11826
11827 * varobj.c (create_child): Modify comment.
11828
b09e2c59
SM
118292015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11830
11831 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11832 parameter.
11833 (ada_name_of_variable): Same.
11834 (ada_path_expr_of_child): Same.
11835 (ada_value_of_variable): Same.
11836 (ada_value_is_changeable_p): Same.
11837 (ada_value_has_mutated): Same.
11838 * c-varobj.c (varobj_is_anonymous_child): Same.
11839 (c_is_path_expr_parent): Same.
11840 (c_number_of_children): Same.
11841 (c_name_of_variable): Same.
11842 (c_path_expr_of_child): Same.
11843 (get_type): Same.
11844 (c_value_of_variable): Same.
11845 (cplus_number_of_children): Same.
11846 (cplus_name_of_variable): Same.
11847 (cplus_path_expr_of_child): Same.
11848 (cplus_value_of_variable): Same.
11849 * jv-varobj.c (java_number_of_children): Same.
11850 (java_name_of_variable): Same.
11851 (java_path_expr_of_child): Same.
11852 (java_value_of_variable): Same.
11853 * varobj.c (number_of_children): Same.
11854 (name_of_variable): Same.
11855 (is_root_p): Same.
11856 (varobj_ensure_python_env): Same.
11857 (varobj_get_objname): Same.
11858 (varobj_get_expression): Same.
11859 (varobj_get_display_format): Same.
11860 (varobj_get_display_hint): Same.
11861 (varobj_has_more): Same.
11862 (varobj_get_thread_id): Same.
11863 (varobj_get_frozen): Same.
11864 (dynamic_varobj_has_child_method): Same.
11865 (varobj_get_gdb_type): Same.
11866 (is_path_expr_parent): Same.
11867 (varobj_default_is_path_expr_parent): Same.
11868 (varobj_get_language): Same.
11869 (varobj_get_attributes): Same.
11870 (varobj_is_dynamic_p): Same.
11871 (varobj_get_child_range): Same.
11872 (varobj_value_has_mutated): Same.
11873 (varobj_get_value_type): Same.
11874 (number_of_children): Same.
11875 (name_of_variable): Same.
11876 (check_scope): Same.
11877 (varobj_editable_p): Same.
11878 (varobj_value_is_changeable_p): Same.
11879 (varobj_floating_p): Same.
11880 (varobj_default_value_is_changeable_p): Same.
11881
2568868e
SM
118822015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11883
11884 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11885 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11886 child->path_expr.
11887 (cplus_path_expr_of_child): Same.
11888
ca83fa81
SM
118892015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11890
11891 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11892 result.
11893 (mi_cmd_var_info_expression): Same.
11894 * varobj.c (varobj_get_expression): Mention in the comment that
11895 the result must by freed by the caller.
11896
afa269ae
SM
118972015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11898
11899 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11900 varobj_get_type.
11901 (varobj_update_one): Same.
11902 * varobj.c (update_type_if_necessary): Free curr_type_str and
11903 new_type_str.
11904 (varobj_get_type): Specify in comment that the result needs to be
11905 freed by the caller.
11906
cd366ee8
DE
119072015-01-29 Doug Evans <dje@google.com>
11908
11909 PR symtab/17890
11910 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11911
38360086
MW
119122015-01-25 Mark Wielaard <mjw@redhat.com>
11913
11914 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11915 * utils.c (producer_is_gcc_ge_4): Likewise.
11916 (producer_is_gcc): New function.
11917 * utils.h (producer_is_gcc): New declaration.
11918
df25ebbd
JB
119192015-01-29 Joel Brobecker <brobecker@adacore.com>
11920
11921 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11922 kind.
11923 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11924 parameter by "addr_stack" parameter.
11925 (resolve_dynamic_range): Replace "addr" parameter by
11926 "stack_addr" parameter. Update function documentation.
11927 Update code accordingly.
11928 (resolve_dynamic_array, resolve_dynamic_union)
11929 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11930 (resolve_dynamic_type): Update code, following the changes made
11931 to resolve_dynamic_type_internal's interface.
11932 * dwarf2loc.h (struct property_addr_info): New.
11933 (dwarf2_evaluate_property): Replace "address" parameter
11934 by "addr_stack" parameter. Adjust function documentation.
11935 (struct dwarf2_offset_baton): New.
11936 (struct dwarf2_property_baton): Update documentation of
11937 field "referenced_type" to be more general. New field
11938 "offset_info" in union data field.
11939 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11940 parameter by "addr_stack" parameter. Adjust code accordingly.
11941 Add support for PROP_ADDR_OFFSET properties.
11942 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11943 DW_AT_data_member_location attributes as well. Use case
11944 statements instead of if/else condition.
11945
4a0ca9ec
JB
119462015-01-29 Joel Brobecker <brobecker@adacore.com>
11947
11948 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11949 Return zero if PARENT_VALUE is NULL and parent_type's
11950 range type is dynamic.
11951
ddb87a81
JB
119522015-01-29 Joel Brobecker <brobecker@adacore.com>
11953
11954 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11955 nonzero if the type's subtype is dynamic.
11956 (resolve_dynamic_range): Also resolve the range's subtype.
11957
3d7ad9b4 119582015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11959
3d7ad9b4 11960 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11961 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11962
3a8b707a
DE
119632015-01-27 Doug Evans <dje@google.com>
11964
11965 * NEWS: Mention gdb.Objfile.username.
11966 * python/py-objfile.c (objfpy_get_username): New function.
11967 (objfile_getset): Add "username".
11968
d35b90fb
MW
119692015-01-24 Mark Wielaard <mjw@redhat.com>
11970
11971 * stack.c (return_command): Markup warning message with _.
11972
734ae125
DE
119732015-01-24 Doug Evans <xdje42@gmail.com>
11974
11975 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11976
527f3840
JK
119772015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11978
11979 Fix 100x slowdown regression on DWZ files.
11980 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11981 (struct line_header): Add offset and offset_in_dwz.
11982 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11983 (free_line_header_voidp): New declaration.
11984 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11985 functions.
11986 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11987 (handle_DW_AT_stmt_list): Use line_header_hash.
11988 (free_line_header_voidp): New function.
11989 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11990 (dwarf_decode_lines): New parameter decode_mapping, use it.
11991 (dwarf2_free_objfile): Free line_header_hash.
11992
f7e5394d
SM
119932015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11994
11995 PR gdb/17416
11996 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11997 value_ind.
11998
743649fd
MW
119992015-01-15 Mark Wielaard <mjw@redhat.com>
12000
12001 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12002 DW_AT_noreturn.
12003 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12004 calling_convention an 8 bit bit field.
12005 (TYPE_NO_RETURN): New macro.
12006 * infcmd.c (finish_command): Query if function does not return
12007 normally.
12008 * stack.c (return_command): Likewise.
12009
198297aa
PA
120102015-01-23 Pedro Alves <palves@redhat.com>
12011
12012 * linux-nat.c (linux_is_async_p): New macro.
12013 (linux_nat_is_async_p):
12014 (linux_nat_terminal_inferior): Check whether the target can async
12015 instead of whether it is already async.
12016 (linux_nat_terminal_ours): Don't check whether the target is
12017 async.
12018 (linux_async_pipe): Use linux_is_async_p.
12019
253828f1
JK
120202015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12023 '-ascending'.
12024 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12025 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12026 Sort tp_array using tp_array_compar.
12027 (_initialize_thread): Extend thread_apply_all_command help.
12028
f0e8c4c5
JK
120292015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12030
12031 * corelow.c (core_open): Call also thread_command.
12032 * gdbthread.h (thread_command): New prototype moved from ...
12033 * thread.c (thread_command): ... here.
12034 (thread_command): Make it global.
12035
03b79603
PA
120362015-01-22 Pedro Alves <palves@redhat.com>
12037
12038 * configure.ac [*mingw32*]: Check $curses_found instead of
12039 $prefer_curses.
12040 * configure: Regenerate.
12041 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12042 HAVE_NCURSES_NCURSES_H checks.
12043
6b8a872f
EZ
120442015-01-22 Eli Zaretskii <eliz@gnu.org>
12045
bbbbffbb 12046 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12047 fails with the 1st arg NULL, try again with "unknown". Don't test
12048 the "cup" capability: it isn't supported by the Windows port of
12049 ncurses, but the Windows console driver is still capable of
12050 supporting TUI.
12051
4b62a76e
JK
120522015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12053
12054 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12055
82a864f9
EZ
120562015-01-22 Eli Zaretskii <eliz@gnu.org>
12057
12058 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12059 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12060 reason that "make TAGS" is broken.
12061
b35018fd
CG
120622015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12063
12064 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12065 and check additional store instructions.
12066
ffbc4646
WW
120672015-01-21 Wei-cheng Wang <cole945@gmail.com>
12068
12069 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12070
ddeca1df
WW
120712015-01-21 Wei-cheng Wang <cole945@gmail.com>
12072
12073 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12074 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12075 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12076 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12077 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12078 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12079 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12080 ppc_process_record_op19, ppc_process_record_op31,
12081 ppc_process_record_op59, ppc_process_record_op60,
12082 ppc_process_record_op63): Likewise.
12083
049bb5de
JB
120842015-01-20 Joel Brobecker <brobecker@adacore.com>
12085
12086 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12087 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12088 strerror.
12089
42b87c63 120902015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12091
12092 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12093 ppc_process_record_op31, ppc_process_record_op59,
12094 ppc_process_record_op60, ppc_process_record_op63,
12095 ppc_process_record): Fix -Wformat warning.
12096 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12097 Remove unused variables.
12098
569340fc
CG
120992015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12100
12101 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12102
63413d85
EZ
121032015-01-19 Eli Zaretskii <eliz@gnu.org>
12104
12105 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12106 CONFIG_OBS if not building with a curses library.
12107 * configure: Regenerate.
12108
12109 * windows-termcap.c: Include defs.h. Make the whole body empty if
12110 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12111 HAVE_NCURSES_NCURSES_H is defined.
12112
16d8013c
JB
121132015-01-19 Joel Brobecker <brobecker@adacore.com>
12114
12115 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12116 from end of line to start of next line.
12117
cf90fd9a
WW
121182015-01-17 Wei-cheng Wang <cole945@gmail.com>
12119
12120 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12121 Scan PLT stub backward for reverse debugging.
12122 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12123
b4cdae6f
WW
121242015-01-17 Wei-cheng Wang <cole945@gmail.com>
12125 Ulrich Weigand <uweigand@de.ibm.com>
12126
12127 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12128 gdb_target_obs.
12129 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12130 record.
12131 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12132 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12133 (ppc_linux_init_abi): Set process_record, process_record_signal.
12134 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12135 ppc_linux_record_tdep to gdbarch_tdep.
12136 (ppc_process_record): New declaration.
12137 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12138 ppc_process_record_op19, ppc_process_record_op31,
12139 ppc_process_record_op59, ppc_process_record_op60,
12140 ppc_process_record_op63, ppc_process_record): New functions.
12141
2608dbf8
WW
121422015-01-17 Wei-cheng Wang <cole945@gmail.com>
12143
12144 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12145 rs6000_in_function_epilogue_frame_p and add an argument
12146 for frame_info.
12147 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12148 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12149 New functions.
12150 (rs6000_epilogue_frame_unwind): New.
12151 (rs6000_gdbarch_init): Append epilogue unwinder.
12152
4c347be6
SDJ
121532015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12154
12155 * nat/linux-personality.c: Replace "#ifndef
12156 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12157 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12158 systems.
12159
9f2850ba
EZ
121602015-01-16 Eli Zaretskii <eliz@gnu.org>
12161
6cdb25f4
EZ
12162 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12163 functions.
12164 (_initialize_tui_win) <border-kind, border-mode>:
12165 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12166 (tui_set_tab_width_command): Fix the commentary.
12167
6cdb25f4
EZ
12168 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12169
bf555842
EZ
12170 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12171 Doc fix.
cb86fcc1
EZ
12172 (tui_set_tab_width_command): Delete and recreate the source and
12173 the disassembly windows, to show the effect of the changed tab
12174 size immediately.
bf555842 12175
9f2850ba
EZ
12176 * tui/tui-data.h (LINE_PREFIX): Make shorter
12177 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12178 "Thread NNNNN.XXXX" thread ID notation on Windows.
12179
95761b2d
JK
121802015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 Fix gcc-5 compilation.
12183 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12184
8cc73a39
SDJ
121852015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12186
12187 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12188 (linux-personality.o): New rule.
12189 * common/common-defs.h: Include <stdint.h>.
12190 * config/aarch64/linux.mh (NATDEPFILES): Include
12191 linux-personality.o.
12192 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12193 * config/arm/linux.mh (NATDEPFILES): Likewise.
12194 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12195 * config/i386/linux.mh (NATDEPFILES): Likewise.
12196 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12197 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12198 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12199 * config/mips/linux.mh (NATDEPFILES): Likewise.
12200 * config/pa/linux.mh (NATDEPFILES): Likewise.
12201 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12202 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12203 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12204 * config/s390/linux.mh (NATDEPFILES): Likewise.
12205 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12206 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12207 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12208 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12209 * defs.h: Remove #include <stdint.h> (moved to
12210 common/common-defs.h).
12211 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12212 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12213 nat/linux-personality.c).
12214 (linux_nat_create_inferior): Remove code to disable address space
12215 randomization (moved to nat/linux-personality.c). Create cleanup
12216 to disable address space randomization.
12217 * nat/linux-personality.c: New file.
12218 * nat/linux-personality.h: Likewise.
12219
fb23d554
SDJ
122202015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12221
12222 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12223 common/posix-strerror.c.
12224 (posix-strerror.o): New rule.
12225 (mingw-strerror.o): Likewise.
12226 * common/common-utils.h (safe_strerror): Move prototype to here,
12227 from utils.h.
12228 * common/common.host: New file.
12229 * common/mingw-strerror.c: Likewise.
12230 * common/posix-strerror.c: Likewise.
12231 * configure: Regenerated.
12232 * configure.ac: Source common/common.host. Add variable
12233 common_host_obs to gdb_host_obs.
12234 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12235 gdb/common/posix-strerror.c when warning about the use of
12236 strerror.
12237 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12238 common/mingw-strerror.c.
12239 * posix-hdep.c (safe_strerror): Remove definition; move it to
12240 common/posix-hdep.c.
12241 * utils.h (safe_strerror): Remove prototype; move to
12242 common/common-utils.h.
12243
3af8af43
JB
122442015-01-15 Joel Brobecker <brobecker@adacore.com>
12245
12246 GDB 7.8.2 released.
12247
bafffb51
JB
122482015-01-15 Joel Brobecker <brobecker@adacore.com>
12249
12250 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12251 ___XA type if the array has already been fixed.
12252
cdf43629
YQ
122532015-01-14 Yao Qi <yao@codesourcery.com>
12254
12255 * Makefile.in (ppc-linux.o): New rule.
12256 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12257 * configure.ac: AC_CHECK_FUNCS(getauxval).
12258 * config.in: Re-generated.
12259 * configure: Re-generated.
12260 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12261 Declare.
12262 * nat/ppc-linux.c: New file.
12263 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12264 Call ppc64_64bit_inferior_p.
12265
514c5338
YQ
122662015-01-14 Yao Qi <yao@codesourcery.com>
12267
12268 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12269 nat/ppc-linux.h.
12270 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12271 (PPC_FEATURE_HAS_DFP): Likewise.
12272 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12273 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12274 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12275 Include "nat/ppc-linux.h".
12276 * nat/ppc-linux.h: New file.
12277 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12278
5589af0e
PA
122792015-01-14 Pedro Alves <palves@redhat.com>
12280
12281 PR gdb/17525
12282 * breakpoint.c: Include "interps.h".
12283 (bpstat_do_actions_1): Also check whether the interpreter is
12284 async.
12285
6c400b59
PA
122862015-01-14 Pedro Alves <palves@redhat.com>
12287
12288 PR cli/17828
12289 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12290 reinstall if the interpreter is sync.
12291
e02c96a7
DE
122922015-01-13 Doug Evans <dje@google.com>
12293
12294 * objfiles.c (objfile_filename): New function.
12295 * objfiles.h (objfile_filename): Declare it.
12296 (objfile_name): Add function comment.
12297 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12298 bfd file name (which may be realpath'd), and the original name.
12299
3b2f13ff
JB
123002015-01-13 Joel Brobecker <brobecker@adacore.com>
12301
12302 * NEWS: Create a new section for the next release branch.
12303 Rename the section of the current branch, now that it has
12304 been cut.
12305
b4cfe7f8
JB
123062015-01-13 Joel Brobecker <brobecker@adacore.com>
12307
12308 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12309 * version.in: Bump version to 7.9.50.DATE-cvs.
12310
92fc2e69
JB
123112015-01-13 Joel Brobecker <brobecker@adacore.com>
12312
12313 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12314 Remove trailing new-line in argument of call to warning.
12315
f71f0b0d
JB
123162015-01-13 Joel Brobecker <brobecker@adacore.com>
12317
12318 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12319 new-line in argument of call to "warning".
12320
04dccad0
JB
123212015-01-13 Joel Brobecker <brobecker@adacore.com>
12322
12323 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12324 in static block, then try searching for primitive types.
12325
08b13bdd
PP
123262015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12327
12328 * top.h (gdb_add_history): Declare.
12329 * top.c (command_count): New variable.
12330 (gdb_add_history): New function.
12331 (gdb_safe_append_history): New static function.
12332 (quit_force): Call it.
12333 (command_line_input): Use gdb_add_history instead of
12334 add_history.
12335 * event-top.c (command_line_handler): Likewise.
12336
4ac15b59
JC
123372015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12338
12339 PR gdb/17046
12340 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12341 <setjmp.h> #include.
12342
005e54bb
DE
123432015-01-11 Doug Evans <xdje42@gmail.com>
12344
12345 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12346
439250fb
DE
123472015-01-11 Doug Evans <xdje42@gmail.com>
12348
12349 PR gdb/15830
12350 * NEWS: The "maint demangle" command is renamed as "demangle".
12351 * demangle.c: #include cli/cli-utils.h, language.h.
12352 (demangle_command): New function.
12353 (_initialize_demangle): Add new command "demangle".
12354 * maint.c (maintenance_demangle): Stub out.
12355 (_initialize_maint_cmds): Update help text for "maint demangle",
12356 and mark as deprecated.
12357
ebf3aa72
MK
123582015-01-11 Mark Kettenis <kettenis@gnu.org>
12359
12360 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12361 inferior_thread is a function.
12362
6bf045cd
PP
123632015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12364
12365 * Makefile.in (.y.c): Don't munge yacc's #line
12366 directives.
12367
588dcc3e
PP
123682015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12369
12370 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12371 to prompt for input.
12372 * tui/tui-hooks.c (tui_query_hook): Remove.
12373 (tui_install_hooks): Don't set deprecated_query_hook.
12374 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12375 height calculation. Always update the command window's cur_line.
12376
9c02b525
PA
123772015-01-09 Pedro Alves <palves@redhat.com>
12378
12379 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12380 function.
12381 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12382 declaration.
12383 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12384 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12385 stop_reason.
12386 (check_stopped_by_watchpoint): New function.
12387 (save_sigtrap): Reimplement.
12388 (linux_nat_stopped_by_watchpoint): Adjust.
12389 (linux_nat_lp_status_is_event): Delete.
12390 (stop_wait_callback): Only call save_sigtrap after storing the
12391 pending status.
12392 (status_callback): If the thread had been stopped for a breakpoint
12393 that has since been removed, discard the event and resume the LWP.
12394 (count_events_callback, select_event_lwp_callback): Use
12395 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12396 (cancel_breakpoint): Rename to ...
12397 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12398 stopped for a software breakpoint or hardware breakpoint.
12399 (select_event_lwp): Only give preference to the stepping LWP in
12400 all-stop mode. Adjust comments.
12401 (stop_and_resume_callback): Remove references to new_pending_p.
12402 (linux_nat_filter_event): Likewise. Leave exit events of the
12403 leader thread pending here. Handle signal short circuiting here.
12404 Only call save_sigtrap after storing the pending waitstatus.
12405 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12406 new_pending. Don't handle leaving events the caller is not
12407 interested in pending here, nor handle signal short-circuiting
12408 here. Also give equal priority to all LWPs that have had events
12409 in non-stop mode. If reporting a software breakpoint event,
12410 unadjust the LWP's PC.
12411 * linux-nat.h (enum lwp_stop_reason): New.
12412 (struct lwp_info) <stop_pc>: New field.
12413 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12414 (struct lwp_info) <stop_reason>: New field.
12415 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12416
8af756ef
PA
124172015-01-09 Pedro Alves <palves@redhat.com>
12418
12419 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12420 Set the LWP's 'resumed' flag.
12421
8a99810d
PA
124222015-01-09 Pedro Alves <palves@redhat.com>
12423
12424 * linux-nat.c (linux_resume_one_lwp): New function.
12425 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12426 (linux_nat_resume): Use lwp_status_pending_p and
12427 linux_resume_one_lwp.
12428 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12429 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12430 (status_callback, running_callback): Use lwp_status_pending_p.
12431 (lwp_status_pending_p): New function.
12432 (stop_and_resume_callback): Use lwp_status_pending_p.
12433 (linux_nat_filter_event): Use linux_resume_one_lwp.
12434 (linux_nat_wait_1): Always use status_callback to look for an LWP
12435 with a pending status. Use linux_resume_one_lwp.
12436 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12437 linux_resume_one_lwp.
12438
f7ce857f
PA
124392015-01-09 Pedro Alves <palves@redhat.com>
12440
12441 * breakpoint.c (bp_location_inserted_here_p): New function,
12442 factored out from ...
12443 (breakpoint_inserted_here_p): ... here. Use
12444 ALL_BP_LOCATIONS_AT_ADDR.
12445 (software_breakpoint_inserted_here_p): Use
12446 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12447
c1a747c1
PA
124482014-01-09 Pedro Alves <palves@redhat.com>
12449
12450 Skip enabling event reporting if the kernel supports
12451 PTRACE_EVENT_CLONE.
12452 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12453 (thread_db_use_events): New function.
12454 (try_thread_db_load_1): Check thread_db_use_events before enabling
12455 event reporting.
12456 (update_thread_state): New function.
12457 (attach_thread): Use it. Check thread_db_use_events before
12458 enabling event reporting.
12459 (thread_db_detach): Check thread_db_use_events before disabling
12460 event reporting.
12461 (find_new_threads_callback): Check thread_db_use_events before
12462 enabling event reporting. Update the thread's state if not using
12463 libthread_db events.
12464
a33e3959
PA
124652015-01-09 Pedro Alves <palves@redhat.com>
12466
12467 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12468 about to wait for is > 0.
12469 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12470 the kernel thread ID is -1.
12471
8784d563
PA
124722015-01-09 Pedro Alves <palves@redhat.com>
12473
12474 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12475 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12476 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12477 ptrace option flags.
12478 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12479 field.
12480 * nat/linux-procfs.c: Include <dirent.h>.
12481 (linux_proc_get_int): New parameter "warn". Handle it.
12482 (linux_proc_get_tgid): Adjust.
12483 (linux_proc_get_tracerpid): Rename to ...
12484 (linux_proc_get_tracerpid_nowarn): ... this.
12485 (linux_proc_pid_get_state): New function, factored out from
12486 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12487 and handle it.
12488 (linux_proc_pid_is_gone): New function.
12489 (linux_proc_pid_is_stopped): Adjust.
12490 (linux_proc_pid_is_zombie_maybe_warn)
12491 (linux_proc_pid_is_zombie_nowarn): New functions.
12492 (linux_proc_pid_is_zombie): Use
12493 linux_proc_pid_is_zombie_maybe_warn.
12494 (linux_proc_attach_tgid_threads): New function.
12495 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12496 (linux_proc_get_tracerpid): Rename to ...
12497 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12498 (linux_proc_pid_is_gone): New declaration.
12499 (linux_proc_pid_is_zombie): Update comment.
12500 (linux_proc_pid_is_zombie_nowarn): New declaration.
12501 (linux_proc_attach_lwp_func): New typedef.
12502 (linux_proc_attach_tgid_threads): New declaration.
12503 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12504 use nowarn functions.
12505 (linux_ptrace_attach_fail_reason_string): Move here from
12506 gdbserver/linux-low.c and rename.
12507 (ptrace_supports_feature): If the current ptrace options are not
12508 known yet, check them now, instead of asserting.
12509 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12510 Declare.
12511
883ed13e
PA
125122015-01-09 Pedro Alves <palves@redhat.com>
12513
12514 * linux-thread-db.c (thread_db_find_new_threads_silently)
12515 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12516 (find_new_threads_once): Print debug output on gdb_stdlog.
12517
1710aab8
CG
125182015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12519 Pedro Alves <palves@redhat.com>
12520
12521 * compile/compile.c: Include "gdb_wait.h".
12522 (do_rmdir): Check return value, and free 'zap'.
12523
b597c318
YQ
125242015-01-08 Pedro Alves <palves@redhat.com>
12525 Yao Qi <yao@codesourcery.com>
12526
12527 * dwarf2loc.c (indirect_pieced_value): Don't call
12528 gdb_sign_extend. Call extract_signed_integer instead.
12529 * utils.c (gdb_sign_extend): Remove.
12530 * utils.h (gdb_sign_extend): Remove declaration.
12531
025ac414
PM
125322015-01-07 Pierre Muller <muller@sourceware.org>
12533
12534 PR symtab/17811
12535 * stabsread.c (define_symbol): Set language for C++ special symbols.
12536
fa5af12a
PP
125372015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12538
12539 * inflow.c (initial_gdb_ttystate): Tweak comment.
12540
ea42d6f8
JB
125412015-01-07 Joel Brobecker <brobecker@adacore.com>
12542
12543 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12544 comment documenting function.
12545
6a06d660
PP
125462015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12547
12548 * terminal.h (set_initial_gdb_ttystate): Declare.
12549 * inflow.c (initial_gdb_ttystate): New static variable.
12550 (set_initial_gdb_ttystate): New setter.
12551 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12552 instead of our current terminal state.
12553 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12554
e810d75b
JB
125552015-01-07 Joel Brobecker <brobecker@adacore.com>
12556
12557 * guile/scm-type.c (tyscm_array_1): Add comment.
12558 * python/py-type.c (typy_array_1): Add comment.
12559
fce10a84
JB
125602015-01-06 Joel Brobecker <brobecker@adacore.com>
12561
12562 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12563 error if N2 is equal to N1 - 1.
12564
8503d6e1
JB
125652015-01-06 Joel Brobecker <brobecker@adacore.com>
12566
12567 * python/py-type.c (typy_array_1): Do not raise negative-length
12568 exception if N2 is equal to N1 - 1.
12569
4d29c0a8
DE
125702015-01-03 Doug Evans <xdje42@gmail.com>
12571
12572 * c-exp.y: Whitespace cleanup.
12573 (classify_inner_name): Remove extra ;.
12574
eaa6a9a4
MR
125752015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12576
12577 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12578 offset signed.
12579
02fe9972
DE
125802015-01-02 Doug Evans <dje@google.com>
12581
12582 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12583
e2ada9cb
DE
125842015-01-02 Doug Evans <dje@google.com>
12585
12586 * symtab.h (struct symbol): Fix typo in comment.
12587
32d0add0
JB
125882015-01-01 Joel Brobecker <brobecker@adacore.com>
12589
12590 Update year range in copyright notice of all files.
12591
76f2b779
JB
125922015-01-01 Joel Brobecker <brobecker@adacore.com>
12593
12594 * top.c (print_gdb_version): Update copyright year to 2015.
12595
077309e2 125962015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12597
077309e2 12598 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12599
077309e2 12600For older changes see ChangeLog-2014.
c906108c
SS
12601\f
12602Local Variables:
12603mode: change-log
12604left-margin: 8
12605fill-column: 74
12606version-control: never
57da7796 12607coding: utf-8
c906108c 12608End:
This page took 2.717754 seconds and 4 git commands to generate.