aarch64 multi-arch part 6: HW breakpoint on unaligned address
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8d689ee5
YQ
12015-10-15 Yao Qi <yao.qi@linaro.org>
2
3 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
4 Call gdbarch_breakpoint_from_pc to instruction length.
5 (aarch64_linux_remove_hw_breakpoint): Likewise.
6 * common/common-regcache.h (regcache_register_size): Declare.
7 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
8 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
9 the process is 32bit, otherwise set alignment to 4.
10 (aarch64_handle_breakpoint): Update comments.
11 * regcache.c (regcache_register_size): New function.
12
89fdc87f
AR
132015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
14
15 * gdbarch.sh (core_regset_section): Remove.
16 * gdbarch.h: Regenerate.
17
6448a3e4
YQ
182015-10-14 Yao Qi <yao.qi@linaro.org>
19
20 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
21 out of it.
22 (enum aarch64_memory_operand_type): New.
23
33f914a1
DE
242015-10-13 David Edelsohn <dje.gcc@gmail.com>
25
26 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
27
e6a959d6
PA
282015-10-13 Pedro Alves <palves@redhat.com>
29
30 * ada-lang.c (ada_enum_name): Constify local.
31 * ada-typeprint.c (print_range_bound): Constify locals.
32 * c-varobj.c (c_describe_child): Likewise.
33 * cli/cli-setshow.c (do_set_command): Likewise.
34 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
35 * dwarf2read.c (find_file_and_directory): Likewise.
36 (anonymous_struct_prefix, dwarf2_name): Likewise.
37 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
38 * go-lang.c (unpack_mangled_go_symbol): Likewise.
39 * jv-typeprint.c (java_type_print_base): Likewise.
40 * ser-tcp.c (net_open): Likewise.
41 * symfile.c (deduce_language_from_filename): Likewise.
42 * symtab.c (gdb_mangle_name): Likewise.
43 * tui/tui-io.c (tui_redisplay_readline): Likewise.
44
170742de
PA
452015-10-13 Pedro Alves <palves@redhat.com>
46
47 * infrun.c (restore_execution_direction): New function.
48 (fetch_inferior_event): Use it instead of
49 make_cleanup_restore_integer.
50 (execution_direction): Change type to enum
51 exec_direction_kind.
52 * infrun.h (execution_direction): Likewise.
53
bfb1c796
PA
542015-10-13 Pedro Alves <palves@redhat.com>
55
56 * ada-lang.c (ada_value_primitive_packed_val): Constify
57 locals. Use value_contents_writeable. Remove casts.
58
aa5c10ce
PA
592015-10-13 Pedro Alves <palves@redhat.com>
60
61 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
62 and alloca calls.
63
4666fec3
SM
642015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
67 write_memory with write_memory_unsigned_integer.
68
38bc8217 692015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
70
71 * solib-dsbt.c (cmp_name): Constify arguments.
72 * solib-frv.c (cmp_name): Likewise.
73 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
74 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
75 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
76 (gdb_bfd_lookup_symbol): Likewise.
77 * solib.h (gdb_bfd_lookup_symbol): Likewise.
78 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
79
a0d34a39
AB
802015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * stack.c (parse_frame_specification): Remove message parameter,
83 replace with fixed string in function body, update function
84 comment.
85 (frame_info): Remove message to parse_frame_specification.
86 (select_frame_command): Likewise.
87
edbbff4a
AB
882015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
89
90 * stack.c (parse_frame_specification): Delete.
91 (parse_frame_specification_1): Rename to
92 parse_frame_specification.
93 (frame_info): Use parse_frame_specification.
94 (select_frame_command): Likewise.
95 (return_command): Use select_frame and print_stack_frame rather
96 than frame_command and select_frame_command.
97 (func_command): Use get_current_frame rather than
98 parse_frame_specification.
99
9d622bda
AB
1002015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * stack.c (func_command): Return early when there is no ARG
103 string.
104
8d3fea16
AB
1052015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
106
107 * stack.c: Include safe-ctype.h not ctype.h.
108 (parse_frame_specification): Use ISSPACE not isspace.
109 (backtrace_command): Use TOLOWER not tolower.
110
f54b226f
SM
1112015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * mep-tdep.c (current_me_module): Add cast.
114 (mep_gdbarch_init): Likewise.
115
6da660c7
SM
1162015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * m32c-tdep.c (m32c_move_reg_t): Replace with...
119 (m32c_write_reg_t): ...this and...
120 (m32c_read_reg_t): ...this.
121 (struct m32c_reg): Update types of read and write.
122 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
123 adjust definition.
124 (m32c_banked_read): Likewise.
125 (m32c_sb_read): Likewise.
126 (m32c_part_read): Likewise.
127 (m32c_cat_read): Likewise.
128 (m32c_r3r2r1r0_read): Likewise.
129 (m32c_raw_write): Change declaration type to m32c_write_reg_t
130 and adjust definition.
131 (m32c_banked_write): Likewise.
132 (m32c_sb_write): Likewise.
133 (m32c_part_write): Likewise.
134 (m32c_cat_write): Likewise.
135 (m32c_r3r2r1r0_write): Likewise.
136
1f713e48
SM
1372015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
140
cb65d272
SM
1412015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
144 gdb_sys_no_syscall instead of -1.
145
eda14cf2
YQ
1462015-10-12 Yao Qi <yao.qi@linaro.org>
147
148 * NEWS: Mention the change.
149
1c2e1515
YQ
1502015-10-12 Yao Qi <yao.qi@linaro.org>
151
152 * arch/aarch64-insn.c (emit_load_store): Rename to ...
153 (aarch64_emit_load_store): ... it. All callers updated.
154
e1c587c3
YQ
1552015-10-12 Yao Qi <yao.qi@linaro.org>
156
157 * arch/aarch64-insn.c (emit_insn): Rename to ...
158 (aarch64_emit_insn): ... it. All callers updated.
159
b6542f81
YQ
1602015-10-12 Yao Qi <yao.qi@linaro.org>
161
162 * aarch64-linux-tdep.c: Include arch-utils.h.
163 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
164 set_gdbarch_displaced_step_copy_insn,
165 set_gdbarch_displaced_step_fixup,
166 set_gdbarch_displaced_step_free_closure,
167 set_gdbarch_displaced_step_location,
168 and set_gdbarch_displaced_step_hw_singlestep.
169 * aarch64-tdep.c (struct displaced_step_closure): New.
170 (struct aarch64_displaced_step_data): New.
171 (aarch64_displaced_step_b): New function.
172 (aarch64_displaced_step_b_cond): Likewise.
173 (aarch64_register): Likewise.
174 (aarch64_displaced_step_cb): Likewise.
175 (aarch64_displaced_step_tb): Likewise.
176 (aarch64_displaced_step_adr): Likewise.
177 (aarch64_displaced_step_ldr_literal): Likewise.
178 (aarch64_displaced_step_others): Likewise.
179 (aarch64_displaced_step_copy_insn): Likewise.
180 (aarch64_displaced_step_fixup): Likewise.
181 (aarch64_displaced_step_hw_singlestep): Likewise.
182 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
183 (aarch64_displaced_step_copy_insn): Declare.
184 (aarch64_displaced_step_fixup): Declare.
185 (aarch64_displaced_step_hw_singlestep): Declare.
186 * arch/aarch64-insn.c (emit_insn): Moved from
187 gdbserver/linux-aarch64-low.c.
188 (emit_load_store): Likewise.
189 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
190 gdbserver/linux-aarch64-low.c.
191 (struct aarch64_register): Likewise.
192 (struct aarch64_memory_operand): Likewise.
193 (ENCODE): Likewise.
194 (can_encode_int32): New macro.
195 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
196 (emit_tb, emit_nop): Likewise.
197 (emit_insn): Declare.
198 (emit_load_store): Declare.
199
246994ce
YQ
2002015-10-12 Yao Qi <yao.qi@linaro.org>
201
202 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
203 gdbserver/linux-aarch64-low.c.
204 (aarch64_relocate_instruction): Likewise.
205 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
206 (struct aarch64_insn_data): Moved from
207 gdbserver/linux-aarch64-low.c.
208 (struct aarch64_insn_visitor): Likewise.
209 (aarch64_relocate_instruction): Declare.
210
2520f728
PMR
2112015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
212
213 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
214 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
215 to the returned value.
216
5b639dea
JB
2172015-10-09 Joel Brobecker <brobecker@adacore.com>
218
219 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
220 is large enough for BIT_SIZE. Update function comment.
221
0cafa88c
JB
2222015-10-09 Joel Brobecker <brobecker@adacore.com>
223
224 * ada-lang.c (ada_value_primitive_packed_val): Move
225 src_len variable to local block where used. Override
226 BIT_SIZE if bigger than size of resolved type.
227
220475ed
JB
2282015-10-09 Joel Brobecker <brobecker@adacore.com>
229
230 * gdbtypes.h (is_scalar_type): Add extern declaration.
231 * gdbtypes.c (is_scalar_type): Make non-static.
232 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
233 to compute IS_SCALAR instead of doing it ourselves.
234
d0a9e810
JB
2352015-10-09 Joel Brobecker <brobecker@adacore.com>
236
237 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
238 of case where TYPE is dynamic.
239
f93fca70
JB
2402015-10-09 Joel Brobecker <brobecker@adacore.com>
241
242 * ada-lang.c (ada_unpack_from_contents): New function,
243 extracted from ada_value_primitive_packed_val.
244 (ada_value_primitive_packed_val): Replace extracted out code
245 by call to ada_unpack_from_contents.
246
a1c95e6b
JB
2472015-10-09 Joel Brobecker <brobecker@adacore.com>
248
249 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
250 variable declarations.
251
fbd000da
JB
2522015-10-09 Joel Brobecker <brobecker@adacore.com>
253
254 * ada-lang.c (ada_value_primitive_packed_val): Change the type
255 of local variables src and unpacked to "gdb_type *" instead of
256 "unsigned char *".
257
086ca51f
JB
2582015-10-09 Joel Brobecker <brobecker@adacore.com>
259
260 * ada-lang.c (ada_value_primitive_packed_val): Make the name
261 of various local variables more explicit and consistent.
262 No real code change otherwise.
263
c5bcd278
SM
2642015-10-09 Simon Marchi <simon.marchi@ericsson.com>
265
266 * i386-tdep.h (struct gdbarch_tdep): Change type of
267 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
268
78c5b882
SM
2692015-10-09 Simon Marchi <simon.marchi@ericsson.com>
270
271 * cris-tdep.c (struct instruction_environment): Change type of
272 byte_order to enum bfd_endian.
273
f9fa37b3
SM
2742015-10-09 Simon Marchi <simon.marchi@ericsson.com>
275
276 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
277 enum gdb_syscall casts.
278
7c543f7b
SM
2792015-10-09 Simon Marchi <simon.marchi@ericsson.com>
280
281 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
282 * arm-tdep.c (struct stack_item): Likewise.
283 (push_stack_item): Add gdb_byte* cast.
284 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
285 (push_stack_item): Add gdb_byte* cast.
286 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
287 and add cast.
288 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
289 (push_stack_item): Add gdb_byte* cast.
290 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
291 add cast.
292 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
293 gdb_byte*.
294 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
295 gdb_byte* and remove unnecessary cast.
296 (h8300h_extract_return_value): Likewise.
297 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
298 (h8300h_store_return_value): Likewise.
299 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
300 gdb_byte* and remove unnecessary cast.
301 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
302 and add cast.
303 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
304 gdb_byte* and remove unnecessary cast.
305 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
306 valbuf.
307 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
308 (mep_pseudo_cr64_read): Likewise.
309 (mep_pseudo_csr_write): Likewise.
310 (mep_pseudo_cr32_write): Likewise.
311 (mep_pseudo_cr64_write): Likewise.
312 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
313 gdb_byte* and add cast.
314 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
315 gdb_byte* and remove unnecessary cast.
316 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
317 valbuf.
318 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
319 gdb_byte*.
320 * printcmd.c (void): Likewise.
321 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
322 gdb_byte* and add cast.
323 (infpy_write_memory): Likewise.
324 (infpy_search_memory): Likewise.
325 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
326 and add cast.
327 (regcache_raw_write_unsigned): Likewise.
328 (regcache_cooked_write_signed): Likewise.
329 (regcache_cooked_write_unsigned): Likewise.
330 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
331 gdb_byte*.
332
7567e115
SM
3332015-10-09 Simon Marchi <simon.marchi@ericsson.com>
334
335 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
336 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
337
f9acce4a
EZ
3382015-10-09 Eli Zaretskii <eliz@gnu.org>
339
340 * stack.c (print_stack_frame):
341 * utils.c (printchar): Fix typos in commentary.
342
d5d8c4e1
IB
3432015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
344
345 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
346 (PostfixExpression): Support `expr.sizeof' expressions.
347 (PrimaryExpression): Support `typeof(expr)' expressions.
348
4e7de155
MR
3492015-10-08 Maciej W. Rozycki <macro@imgtec.com>
350
351 * MAINTAINERS: Update my email address.
352
04c4fe8c
MM
3532015-10-08 Markus Metzger <markus.t.metzger@intel.com>
354
355 * record-btrace.c (record_btrace_resume): Fix void return.
356
f77ee802
YQ
3572015-10-07 Yao Qi <yao.qi@linaro.org>
358
359 * aarch64-tdep.c: Include opcode/aarch64.h.
360 (submask): Move it above.
361 (bit): Likewise.
362 (bits): Likewise.
363 (aarch64_software_single_step): Call aarch64_decode_insn.
364 Decode instruction by aarch64_inst instead of using
365 aarch64_decode_bcond and decode_masked_match.
366
cbd641ed
PS
3672015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
368
369 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
370 only when the file is binary.
371
ae4e2501 3722015-10-02 James Bowman <james.bowman@ftdichip.com>
373
374 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
375 subroutine handling.
376
dd0a637a
SM
3772015-10-01 Simon Marchi <simon.marchi@ericsson.com>
378
379 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
380
1fd60fc0
DE
3812015-09-30 Doug Evans <dje@google.com>
382
383 * dwarf2read.c (setup_type_unit_groups): Add comment.
384
398e0813
PA
3852015-09-30 Pedro Alves <palves@redhat.com>
386
387 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
388 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
389 (x86_linux_create_target): Don't install
390 x86_linux_always_non_stop_p.
391
6ab24463
DB
3922015-09-30 Don Breazeal <donb@codesourcery.com>
393
394 * remote.c (remote_parse_stop_reply): Call strprefix instead
395 of strncmp.
396
ede5f151
SM
3972015-09-30 Simon Marchi <simon.marchi@ericsson.com>
398
399 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
400 * gdbarch.h: Regenerate.
401 * i386-tdep.c (i386_gdbarch_init): Remove cast to
402 struct gdbarch_tdep_info *.
403 * mips-tdep.c (mips_gdbarch_init): Likewise.
404 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
405 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
406 * spu-multiarch.c (spu_gdbarch): Likewise.
407
51c935fa 4082015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
409
410 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
411 record a NULL value.
412
3b1ad7d5
KB
4132015-09-29 Kevin Buettner <kevinb@redhat.com>
414
415 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
416 and union arguments the same as pointer arguments when determining
417 size of argument.
418
86feccb9 4192015-09-29 James Bowman <james.bowman@ftdichip.com>
420
421 * ft32-tdep.c: #include "opcode/ft32.h".
422 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
423 (ft32_analyze_prologue): Use FT32_* macros.
424
2181a6c6
SM
4252015-09-28 Simon Marchi <simon.marchi@ericsson.com>
426
84d73afc 427 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
428 comment.
429
245af596
DE
4302015-09-28 Doug Evans <dje@google.com>
431
432 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
433
c402ef90
DE
4342015-09-28 Doug Evans <dje@google.com>
435
436 * common/filestuff.c (make_cleanup_close): Update comment.
437
38bc8217 4382015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
439
440 * btrace.c (parse_xml_btrace_block): Fix cast of
441 xml_find_attribute's return value.
442 * memory-map.c (memory_map_start_memory): Likewise.
443 * solib-svr4.c (library_list_start_library): Likewise.
444 * solib-target.c (library_list_start_segment): Likewise.
445 (library_list_start_section): Likewise.
446 * tracepoint.c (traceframe_info_start_memory): Likewise.
447
ba587d55
IB
4482015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
449
450 * d-namespace.c (d_lookup_symbol): New arg langdef.
451 All callers updated. Support looking up symbol as a primitive type.
452 (lookup_module_scope): New arg langdef. All callers updated.
453 Call d_lookup_symbol directly for simple bare symbols.
454
19ba03f4
SM
4552015-09-25 Simon Marchi <simon.marchi@ericsson.com>
456
457 * macrocmd.c (print_macro_callback): Add cast(s).
458 * macrotab.c (macro_bcache_str): Likewise.
459 (new_macro_definition): Likewise.
460 * main.c (captured_main): Likewise.
461 * maint.c (print_bfd_section_info): Likewise.
462 * mdebugread.c (mdebug_build_psymtabs): Likewise.
463 (basic_type): Likewise.
464 * memattr.c (mem_region_cmp): Likewise.
465 * memory-map.c (memory_map_start_memory): Likewise.
466 (memory_map_end_memory): Likewise.
467 (memory_map_start_property): Likewise.
468 (memory_map_end_property): Likewise.
469 (clear_result): Likewise.
470 * memrange.c (compare_mem_ranges): Likewise.
471 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
472 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
473 * mi/mi-console.c (mi_console_file_delete): Likewise.
474 (mi_console_file_fputs): Likewise.
475 (mi_console_raw_packet): Likewise.
476 (mi_console_file_flush): Likewise.
477 (mi_console_set_raw): Likewise.
478 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
479 (mi_new_thread): Likewise.
480 (mi_thread_exit): Likewise.
481 (mi_record_changed): Likewise.
482 (mi_inferior_added): Likewise.
483 (mi_inferior_appeared): Likewise.
484 (mi_inferior_exit): Likewise.
485 (mi_inferior_removed): Likewise.
486 (mi_interp_data): Likewise.
487 (mi_on_normal_stop): Likewise.
488 (mi_traceframe_changed): Likewise.
489 (mi_tsv_created): Likewise.
490 (mi_tsv_deleted): Likewise.
491 (mi_tsv_modified): Likewise.
492 (mi_breakpoint_created): Likewise.
493 (mi_breakpoint_deleted): Likewise.
494 (mi_breakpoint_modified): Likewise.
495 (mi_output_running_pid): Likewise.
496 (mi_inferior_count): Likewise.
497 (mi_solib_loaded): Likewise.
498 (mi_solib_unloaded): Likewise.
499 (mi_command_param_changed): Likewise.
500 (mi_memory_changed): Likewise.
501 (report_initial_inferior): Likewise.
502 (mi_ui_out): Likewise.
503 (mi_set_logging): Likewise.
504 * mi/mi-main.c (collect_cores): Likewise.
505 (print_one_inferior): Likewise.
506 (free_vector_of_ints): Likewise.
507 (free_splay_tree): Likewise.
508 (mi_execute_command): Likewise.
509 * mi/mi-out.c (mi_table_body): Likewise.
510 (mi_table_end): Likewise.
511 (mi_table_header): Likewise.
512 (mi_begin): Likewise.
513 (mi_end): Likewise.
514 (mi_field_int): Likewise.
515 (mi_field_string): Likewise.
516 (mi_field_fmt): Likewise.
517 (mi_flush): Likewise.
518 (mi_redirect): Likewise.
519 (field_separator): Likewise.
520 (mi_open): Likewise.
521 (mi_close): Likewise.
522 (mi_out_buffered): Likewise.
523 (mi_out_rewind): Likewise.
524 (mi_out_put): Likewise.
525 (mi_version): Likewise.
526 (mi_out_data_dtor): Likewise.
527 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
528 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
529 * minidebug.c (lzma_open): Likewise.
530 (lzma_pread): Likewise.
531 (lzma_close): Likewise.
532 (lzma_stat): Likewise.
533 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
534 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
535 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
536 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
537 (mips_micro_frame_cache): Likewise.
538 (mips_insn32_frame_cache): Likewise.
539 (mips_stub_frame_cache): Likewise.
540 (gdb_print_insn_mips): Likewise.
541 (value_of_mips_user_reg): Likewise.
542 (mips_gdbarch_init): Likewise.
543 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
544 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
545 (mipsnbsd_supply_gregset): Likewise.
546 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
547 (am33_collect_gregset_method): Likewise.
548 (am33_collect_fpregset_method): Likewise.
549 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
550 * moxie-tdep.c (moxie_frame_cache): Likewise.
551 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
552 (msp430_analyze_frame_prologue): Likewise.
553 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
554 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
555 (nios2_collect_gregset): Likewise.
556 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
557 (nios2_stub_frame_cache): Likewise.
558 * objc-lang.c (find_methods): Likewise.
559 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
560 (get_objfile_pspace_data): Likewise.
561 (get_objfile_bfd_data): Likewise.
562 (objfile_bfd_data_free): Likewise.
563 (add_to_objfile_sections): Likewise.
564 (do_free_objfile_cleanup): Likewise.
565 (resume_section_map_updates_cleanup): Likewise.
566 * opencl-lang.c (builtin_opencl_type): Likewise.
567 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
568 * osdata.c (osdata_start_osdata): Likewise.
569 (osdata_start_item): Likewise.
570 (osdata_start_column): Likewise.
571 (osdata_end_column): Likewise.
572 (clear_parsing_data): Likewise.
573 (osdata_free_cleanup): Likewise.
574 * parse.c (type_stack_cleanup): Likewise.
575 (exp_uses_objfile_iter): Likewise.
576 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
577 (ppc_linux_collect_gregset): Likewise.
578 (ppu2spu_prev_arch): Likewise.
579 (ppu2spu_this_id): Likewise.
580 (ppu2spu_prev_register): Likewise.
581 (ppu2spu_unwind_register): Likewise.
582 (ppu2spu_sniffer): Likewise.
583 (ppu2spu_dealloc_cache): Likewise.
584 (ppc_linux_init_abi): Likewise.
585 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
586 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
587 * progspace.c (restore_program_space): Likewise.
588 * psymtab.c (find_pc_sect_psymtab): Likewise.
589 (compare_psymbols): Likewise.
590 (psymbol_bcache_full): Likewise.
591 (allocate_psymtab): Likewise.
592 (discard_psymtabs_upto): Likewise.
593 * python/py-block.c (set_block): Likewise.
594 (del_objfile_blocks): Likewise.
595 * python/py-breakpoint.c (build_bp_list): Likewise.
596 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
597 (build_inferior_list): Likewise.
598 (py_free_inferior): Likewise.
599 * python/py-objfile.c (py_free_objfile): Likewise.
600 (objfile_to_objfile_object): Likewise.
601 * python/py-prettyprint.c (py_restore_tstate): Likewise.
602 * python/py-progspace.c (py_free_pspace): Likewise.
603 (pspace_to_pspace_object): Likewise.
604 * python/py-symbol.c (set_symbol): Likewise.
605 (del_objfile_symbols): Likewise.
606 * python/py-symtab.c (set_sal): Likewise.
607 (set_symtab): Likewise.
608 (del_objfile_symtab): Likewise.
609 (del_objfile_sal): Likewise.
610 * python/py-type.c (save_objfile_types): Likewise.
611 (set_type): Likewise.
612 * python/py-unwind.c (pyuw_prev_register): Likewise.
613 (pyuw_on_new_gdbarch): Likewise.
614 * python/py-utils.c (py_decref): Likewise.
615 (py_xdecref): Likewise.
616 (gdb_py_generic_dict): Likewise.
617 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
618 (gdbpy_clone_xmethod_worker_data): Likewise.
619 (gdbpy_get_xmethod_arg_types): Likewise.
620 (gdbpy_get_xmethod_result_type): Likewise.
621 (gdbpy_invoke_xmethod): Likewise.
622 * python/python.c (gdbpy_apply_type_printers): Likewise.
623 (gdbpy_free_type_printers): Likewise.
624 * record-btrace.c (record_btrace_disable_callback): Likewise.
625 (bfcache_hash): Likewise.
626 (bfcache_eq): Likewise.
627 (btrace_get_frame_function): Likewise.
628 (record_btrace_frame_unwind_stop_reason): Likewise.
629 (record_btrace_frame_this_id): Likewise.
630 (record_btrace_frame_prev_register): Likewise.
631 (record_btrace_frame_dealloc_cache): Likewise.
632 * record-full.c (record_full_message_wrapper): Likewise.
633 (record_full_save_cleanups): Likewise.
634 * regcache.c (regcache_descr): Likewise.
635 (do_regcache_xfree): Likewise.
636 (do_regcache_invalidate): Likewise.
637 (do_cooked_read): Likewise.
638 (regcache_transfer_regset): Likewise.
639 * reggroups.c (reggroup_add): Likewise.
640 (reggroup_next): Likewise.
641 (reggroup_prev): Likewise.
642 * remote-fileio.c (do_remote_fileio_request): Likewise.
643 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
644 (do_notif_event_xfree): Likewise.
645 * remote.c (get_remote_arch_state): Likewise.
646 (remote_pspace_data_cleanup): Likewise.
647 (get_remote_exec_file): Likewise.
648 (set_pspace_remote_exec_file): Likewise.
649 (compare_pnums): Likewise.
650 (clear_threads_listing_context): Likewise.
651 (remote_newthread_step): Likewise.
652 (start_thread): Likewise.
653 (end_thread): Likewise.
654 (remove_child_of_pending_fork): Likewise.
655 (remove_stop_reply_for_inferior): Likewise.
656 (remove_stop_reply_of_remote_state): Likewise.
657 (remote_notif_remove_once_on_match): Likewise.
658 (stop_reply_match_ptid_and_ws): Likewise.
659 (kill_child_of_pending_fork): Likewise.
660 (register_remote_g_packet_guess): Likewise.
661 (remote_read_description_p): Likewise.
662 (remote_read_description): Likewise.
663 (free_actions_list_cleanup_wrapper): Likewise.
664 (remote_async_serial_handler): Likewise.
665 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
666 (rl78_analyze_frame_prologue): Likewise.
667 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
668 (ppc_supply_fpregset): Likewise.
669 (ppc_supply_vsxregset): Likewise.
670 (ppc_supply_vrregset): Likewise.
671 (ppc_collect_gregset): Likewise.
672 (ppc_collect_fpregset): Likewise.
673 (ppc_collect_vsxregset): Likewise.
674 (ppc_collect_vrregset): Likewise.
675 (e500_move_ev_register): Likewise.
676 (do_regcache_raw_write): Likewise.
677 (rs6000_frame_cache): Likewise.
678 (rs6000_epilogue_frame_cache): Likewise.
679 (rs6000_gdbarch_init): Likewise.
680 * rx-tdep.c (rx_get_opcode_byte): Likewise.
681 (rx_analyze_frame_prologue): Likewise.
682 (rx_frame_type): Likewise.
683 (rx_frame_sniffer_common): Likewise.
684 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
685 (s390_frame_unwind_cache): Likewise.
686 (s390_stub_frame_unwind_cache): Likewise.
687 (s390_sigtramp_frame_unwind_cache): Likewise.
688 * score-tdep.c (score_make_prologue_cache): Likewise.
689 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
690 (sentinel_frame_prev_arch): Likewise.
691 * ser-base.c (fd_event): Likewise.
692 (push_event): Likewise.
693 (ser_base_write): Likewise.
694 * ser-pipe.c (pipe_close): Likewise.
695 * serial.c (serial_write): Likewise.
696 * sh-tdep.c (sh_frame_cache): Likewise.
697 (sh_stub_this_id): Likewise.
698 * sh64-tdep.c (sh64_frame_cache): Likewise.
699 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
700 (library_list_start_library): Likewise.
701 (library_list_start_list): Likewise.
702 (solib_aix_free_library_list): Likewise.
703 * solib-darwin.c (get_darwin_info): Likewise.
704 * solib-dsbt.c (get_dsbt_info): Likewise.
705 * solib-spu.c (append_ocl_sos): Likewise.
706 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
707 (get_svr4_info): Likewise.
708 (library_list_start_library): Likewise.
709 (svr4_library_list_start_list): Likewise.
710 (hash_probe_and_action): Likewise.
711 (equal_probe_and_action): Likewise.
712 (svr4_update_solib_event_breakpoint): Likewise.
713 (set_solib_svr4_fetch_link_map_offsets): Likewise.
714 (svr4_fetch_link_map_offsets): Likewise.
715 (svr4_have_link_map_offsets): Likewise.
716 * solib-target.c (library_list_start_segment): Likewise.
717 (library_list_start_section): Likewise.
718 (library_list_start_library): Likewise.
719 (library_list_end_library): Likewise.
720 (library_list_start_list): Likewise.
721 (solib_target_free_library_list): Likewise.
722 * solib.c (solib_ops): Likewise.
723 (set_solib_ops): Likewise.
724 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
725 * sparc-tdep.c (sparc_frame_cache): Likewise.
726 (sparc32_frame_cache): Likewise.
727 (sparc32_supply_gregset): Likewise.
728 (sparc32_collect_gregset): Likewise.
729 (sparc32_supply_fpregset): Likewise.
730 (sparc32_collect_fpregset): Likewise.
731 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
732 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
733 (sparc64_collect_gregset): Likewise.
734 (sparc64_supply_fpregset): Likewise.
735 (sparc64_collect_fpregset): Likewise.
736 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
737 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
738 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
739 (sparc64obsd_trapframe_cache): Likewise.
740 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
741 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
742 * spu-multiarch.c (spu_gdbarch): Likewise.
743 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
744 (spu2ppu_prev_arch): Likewise.
745 (spu2ppu_this_id): Likewise.
746 (spu2ppu_prev_register): Likewise.
747 (spu2ppu_dealloc_cache): Likewise.
748 (spu_dis_asm_print_address): Likewise.
749 (gdb_print_insn_spu): Likewise.
750 (spu_get_overlay_table): Likewise.
751 * stabsread.c (rs6000_builtin_type): Likewise.
752 * stack.c (do_print_variable_and_value): Likewise.
753 * stap-probe.c (get_stap_base_address_1): Likewise.
754 * symfile-debug.c (debug_qf_has_symbols): Likewise.
755 (debug_qf_find_last_source_symtab): Likewise.
756 (debug_qf_forget_cached_source_info): Likewise.
757 (debug_qf_map_symtabs_matching_filename): Likewise.
758 (debug_qf_lookup_symbol): Likewise.
759 (debug_qf_print_stats): Likewise.
760 (debug_qf_dump): Likewise.
761 (debug_qf_relocate): Likewise.
762 (debug_qf_expand_symtabs_for_function): Likewise.
763 (debug_qf_expand_all_symtabs): Likewise.
764 (debug_qf_expand_symtabs_with_fullname): Likewise.
765 (debug_qf_map_matching_symbols): Likewise.
766 (debug_qf_expand_symtabs_matching): Likewise.
767 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
768 (debug_qf_map_symbol_filenames): Likewise.
769 (debug_sym_get_probes): Likewise.
770 (debug_sym_new_init): Likewise.
771 (debug_sym_init): Likewise.
772 (debug_sym_read): Likewise.
773 (debug_sym_read_psymbols): Likewise.
774 (debug_sym_finish): Likewise.
775 (debug_sym_offsets): Likewise.
776 (debug_sym_read_linetable): Likewise.
777 (debug_sym_relocate): Likewise.
778 (uninstall_symfile_debug_logging): Likewise.
779 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
780 * symfile.c (place_section): Likewise.
781 (add_section_size_callback): Likewise.
782 (load_progress): Likewise.
783 (load_section_callback): Likewise.
784 (clear_memory_write_data): Likewise.
785 (allocate_symtab): Likewise.
786 * symmisc.c (maintenance_expand_file_matcher): Likewise.
787 * symtab.c (lookup_symtab_callback): Likewise.
788 (hash_demangled_name_entry): Likewise.
789 (eq_demangled_name_entry): Likewise.
790 (get_symbol_cache): Likewise.
791 (symbol_cache_cleanup): Likewise.
792 (set_symbol_cache_size): Likewise.
793 (symbol_cache_flush): Likewise.
794 (maintenance_print_symbol_cache): Likewise.
795 (maintenance_print_symbol_cache_statistics): Likewise.
796 (delete_filename_seen_cache): Likewise.
797 (output_partial_symbol_filename): Likewise.
798 (search_symbols_file_matches): Likewise.
799 (search_symbols_name_matches): Likewise.
800 (do_free_completion_list): Likewise.
801 (maybe_add_partial_symtab_filename): Likewise.
802 (get_main_info): Likewise.
803 (main_info_cleanup): Likewise.
804 * target-dcache.c (target_dcache_cleanup): Likewise.
805 (target_dcache_init_p): Likewise.
806 (target_dcache_invalidate): Likewise.
807 (target_dcache_get): Likewise.
808 (target_dcache_get_or_init): Likewise.
809 * target-descriptions.c (target_find_description): Likewise.
810 (tdesc_find_type): Likewise.
811 (tdesc_data_cleanup): Likewise.
812 (tdesc_find_arch_register): Likewise.
813 (tdesc_register_name): Likewise.
814 (tdesc_register_type): Likewise.
815 (tdesc_register_reggroup_p): Likewise.
816 (set_tdesc_pseudo_register_name): Likewise.
817 (set_tdesc_pseudo_register_type): Likewise.
818 (set_tdesc_pseudo_register_reggroup_p): Likewise.
819 (tdesc_use_registers): Likewise.
820 (free_target_description): Likewise.
821 * target-memory.c (compare_block_starting_address): Likewise.
822 (cleanup_request_data): Likewise.
823 (cleanup_write_requests_vector): Likewise.
824 * target.c (open_target): Likewise.
825 (cleanup_restore_target_terminal): Likewise.
826 (free_memory_read_result_vector): Likewise.
827 * thread.c (disable_thread_stack_temporaries): Likewise.
828 (finish_thread_state_cleanup): Likewise.
829 (do_restore_current_thread_cleanup): Likewise.
830 (restore_current_thread_cleanup_dtor): Likewise.
831 (set_thread_refcount): Likewise.
832 (tp_array_compar): Likewise.
833 (do_captured_thread_select): Likewise.
834 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
835 (tic6x_stub_this_id): Likewise.
836 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
837 * top.c (do_restore_instream_cleanup): Likewise.
838 (gdb_readline_wrapper_cleanup): Likewise.
839 (kill_or_detach): Likewise.
840 (print_inferior_quit_action): Likewise.
841 * tracefile-tfile.c (match_blocktype): Likewise.
842 (build_traceframe_info): Likewise.
843 * tracefile.c (trace_file_writer_xfree): Likewise.
844 * tracepoint.c (memrange_cmp): Likewise.
845 (do_collect_symbol): Likewise.
846 (do_clear_collection_list): Likewise.
847 (do_restore_current_traceframe_cleanup): Likewise.
848 (restore_current_traceframe_cleanup_dtor): Likewise.
849 (free_current_marker): Likewise.
850 (traceframe_info_start_memory): Likewise.
851 (traceframe_info_start_tvar): Likewise.
852 (free_result): Likewise.
853 * tramp-frame.c (tramp_frame_cache): Likewise.
854 * tui/tui-file.c (tui_file_delete): Likewise.
855 (tui_fileopen): Likewise.
856 (tui_sfileopen): Likewise.
857 (tui_file_isatty): Likewise.
858 (tui_file_rewind): Likewise.
859 (tui_file_put): Likewise.
860 (tui_file_fputs): Likewise.
861 (tui_file_get_strbuf): Likewise.
862 (tui_file_adjust_strbuf): Likewise.
863 (tui_file_flush): Likewise.
864 * tui/tui-layout.c (make_command_window): Likewise.
865 (make_data_window): Likewise.
866 (show_source_disasm_command): Likewise.
867 (show_data): Likewise.
868 (make_source_or_disasm_window): Likewise.
869 (show_source_or_disasm_and_command): Likewise.
870 * tui/tui-out.c (tui_field_int): Likewise.
871 (tui_field_string): Likewise.
872 (tui_field_fmt): Likewise.
873 (tui_text): Likewise.
874 * typeprint.c (hash_typedef_field): Likewise.
875 (eq_typedef_field): Likewise.
876 (do_free_typedef_hash): Likewise.
877 (copy_typedef_hash_element): Likewise.
878 (do_free_global_table): Likewise.
879 (find_global_typedef): Likewise.
880 (find_typedef_in_hash): Likewise.
881 * ui-file.c (ui_file_write_for_put): Likewise.
882 (do_ui_file_xstrdup): Likewise.
883 (mem_file_delete): Likewise.
884 (mem_file_rewind): Likewise.
885 (mem_file_put): Likewise.
886 (mem_file_write): Likewise.
887 (stdio_file_delete): Likewise.
888 (stdio_file_flush): Likewise.
889 (stdio_file_read): Likewise.
890 (stdio_file_write): Likewise.
891 (stdio_file_write_async_safe): Likewise.
892 (stdio_file_fputs): Likewise.
893 (stdio_file_isatty): Likewise.
894 (stdio_file_fseek): Likewise.
895 (tee_file_delete): Likewise.
896 (tee_file_flush): Likewise.
897 (tee_file_write): Likewise.
898 (tee_file_fputs): Likewise.
899 (tee_file_isatty): Likewise.
900 * ui-out.c (do_cleanup_table_end): Likewise.
901 (do_cleanup_end): Likewise.
902 * user-regs.c (user_reg_add): Likewise.
903 (user_reg_map_name_to_regnum): Likewise.
904 (usernum_to_user_reg): Likewise.
905 (maintenance_print_user_registers): Likewise.
906 * utils.c (do_bfd_close_cleanup): Likewise.
907 (do_fclose_cleanup): Likewise.
908 (do_obstack_free): Likewise.
909 (do_ui_file_delete): Likewise.
910 (do_ui_out_redirect_pop): Likewise.
911 (do_free_section_addr_info): Likewise.
912 (restore_integer): Likewise.
913 (do_unpush_target): Likewise.
914 (do_htab_delete_cleanup): Likewise.
915 (do_restore_ui_file): Likewise.
916 (do_value_free): Likewise.
917 (do_free_so): Likewise.
918 (free_current_contents): Likewise.
919 (do_regfree_cleanup): Likewise.
920 (core_addr_hash): Likewise.
921 (core_addr_eq): Likewise.
922 (do_free_char_ptr_vec): Likewise.
923 * v850-tdep.c (v850_frame_cache): Likewise.
924 * varobj.c (do_free_variable_cleanup): Likewise.
925 * vax-tdep.c (vax_supply_gregset): Likewise.
926 (vax_frame_cache): Likewise.
927 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
928 * xml-support.c (gdb_xml_body_text): Likewise.
929 (gdb_xml_values_cleanup): Likewise.
930 (gdb_xml_start_element): Likewise.
931 (gdb_xml_start_element_wrapper): Likewise.
932 (gdb_xml_end_element): Likewise.
933 (gdb_xml_end_element_wrapper): Likewise.
934 (gdb_xml_cleanup): Likewise.
935 (gdb_xml_fetch_external_entity): Likewise.
936 (gdb_xml_parse_attr_enum): Likewise.
937 (xinclude_start_include): Likewise.
938 (xinclude_end_include): Likewise.
939 (xml_xinclude_default): Likewise.
940 (xml_xinclude_start_doctype): Likewise.
941 (xml_xinclude_end_doctype): Likewise.
942 (xml_xinclude_cleanup): Likewise.
943 (xml_fetch_content_from_file): Likewise.
944 * xml-syscall.c (free_syscalls_info): Likewise.
945 (syscall_start_syscall): Likewise.
946 * xml-tdesc.c (tdesc_end_arch): Likewise.
947 (tdesc_end_osabi): Likewise.
948 (tdesc_end_compatible): Likewise.
949 (tdesc_start_target): Likewise.
950 (tdesc_start_feature): Likewise.
951 (tdesc_start_reg): Likewise.
952 (tdesc_start_union): Likewise.
953 (tdesc_start_struct): Likewise.
954 (tdesc_start_flags): Likewise.
955 (tdesc_start_field): Likewise.
956 (tdesc_start_vector): Likewise.
957 (fetch_available_features_from_target): Likewise.
958 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
959 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
960 (xtensa_frame_cache): Likewise.
961 (xtensa_frame_prev_register): Likewise.
962 (xtensa_extract_return_value): Likewise.
963
9a3c8263
SM
9642015-09-25 Simon Marchi <simon.marchi@ericsson.com>
965
966 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
967 (aarch64_make_stub_cache): Likewise.
968 (value_of_aarch64_user_reg): Likewise.
969 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
970 (get_ada_inferior_data): Likewise.
971 (get_ada_pspace_data): Likewise.
972 (ada_pspace_data_cleanup): Likewise.
973 (ada_complete_symbol_matcher): Likewise.
974 (ada_exc_search_name_matches): Likewise.
975 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
976 (get_ada_tasks_inferior_data): Likewise.
977 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
978 (splay_obstack_alloc): Likewise.
979 (splay_obstack_free): Likewise.
980 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
981 (alpha_linux_collect_gregset): Likewise.
982 (alpha_linux_supply_fpregset): Likewise.
983 (alpha_linux_collect_fpregset): Likewise.
984 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
985 * alpha-tdep.c (alpha_lds): Likewise.
986 (alpha_sts): Likewise.
987 (alpha_sigtramp_frame_unwind_cache): Likewise.
988 (alpha_heuristic_frame_unwind_cache): Likewise.
989 (alpha_supply_int_regs): Likewise.
990 (alpha_fill_int_regs): Likewise.
991 (alpha_supply_fp_regs): Likewise.
992 (alpha_fill_fp_regs): Likewise.
993 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
994 (alphanbsd_aout_supply_gregset): Likewise.
995 (alphanbsd_supply_gregset): Likewise.
996 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
997 (amd64_x32_linux_init_abi): Likewise.
998 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
999 (amd64_collect_native_gregset): Likewise.
1000 * amd64-tdep.c (amd64_frame_cache): Likewise.
1001 (amd64_sigtramp_frame_cache): Likewise.
1002 (amd64_epilogue_frame_cache): Likewise.
1003 (amd64_supply_fxsave): Likewise.
1004 (amd64_supply_xsave): Likewise.
1005 (amd64_collect_fxsave): Likewise.
1006 (amd64_collect_xsave): Likewise.
1007 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1008 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1009 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1010 (arm_linux_collect_gregset): Likewise.
1011 (arm_linux_supply_nwfpe): Likewise.
1012 (arm_linux_collect_nwfpe): Likewise.
1013 (arm_linux_supply_vfp): Likewise.
1014 (arm_linux_collect_vfp): Likewise.
1015 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1016 (arm_prologue_unwind_stop_reason): Likewise.
1017 (arm_prologue_this_id): Likewise.
1018 (arm_prologue_prev_register): Likewise.
1019 (arm_exidx_data_free): Likewise.
1020 (arm_find_exidx_entry): Likewise.
1021 (arm_stub_this_id): Likewise.
1022 (arm_m_exception_this_id): Likewise.
1023 (arm_m_exception_prev_register): Likewise.
1024 (arm_normal_frame_base): Likewise.
1025 (gdb_print_insn_arm): Likewise.
1026 (arm_objfile_data_free): Likewise.
1027 (arm_record_special_symbol): Likewise.
1028 (value_of_arm_user_reg): Likewise.
1029 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1030 (armbsd_supply_gregset): Likewise.
1031 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1032 (get_auto_load_pspace_data): Likewise.
1033 (hash_loaded_script_entry): Likewise.
1034 (eq_loaded_script_entry): Likewise.
1035 (clear_section_scripts): Likewise.
1036 (collect_matching_scripts): Likewise.
1037 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1038 (get_auxv_inferior_data): Likewise.
1039 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1040 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1041 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1042 (target_bfd_xclose): Likewise.
1043 (target_bfd_get_section_table): Likewise.
1044 * bfin-tdep.c (bfin_frame_cache): Likewise.
1045 * block.c (find_block_in_blockvector): Likewise.
1046 (call_site_for_pc): Likewise.
1047 (block_find_non_opaque_type_preferred): Likewise.
1048 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1049 (signal_catchpoint_remove_location): Likewise.
1050 (signal_catchpoint_breakpoint_hit): Likewise.
1051 (signal_catchpoint_print_one): Likewise.
1052 (signal_catchpoint_print_mention): Likewise.
1053 (signal_catchpoint_print_recreate): Likewise.
1054 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1055 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1056 (bp_location_compare_addrs): Likewise.
1057 (get_first_locp_gte_addr): Likewise.
1058 (check_tracepoint_command): Likewise.
1059 (do_map_commands_command): Likewise.
1060 (get_breakpoint_objfile_data): Likewise.
1061 (free_breakpoint_probes): Likewise.
1062 (do_captured_breakpoint_query): Likewise.
1063 (compare_breakpoints): Likewise.
1064 (bp_location_compare): Likewise.
1065 (bpstat_remove_breakpoint_callback): Likewise.
1066 (do_delete_breakpoint_cleanup): Likewise.
1067 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1068 (bsd_uthread_set_collect_uthread): Likewise.
1069 (bsd_uthread_activate): Likewise.
1070 (bsd_uthread_fetch_registers): Likewise.
1071 (bsd_uthread_store_registers): Likewise.
1072 * btrace.c (check_xml_btrace_version): Likewise.
1073 (parse_xml_btrace_block): Likewise.
1074 (parse_xml_btrace_pt_config_cpu): Likewise.
1075 (parse_xml_btrace_pt_raw): Likewise.
1076 (parse_xml_btrace_pt): Likewise.
1077 (parse_xml_btrace_conf_bts): Likewise.
1078 (parse_xml_btrace_conf_pt): Likewise.
1079 (do_btrace_data_cleanup): Likewise.
1080 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1081 * charset.c (cleanup_iconv): Likewise.
1082 (do_cleanup_iterator): Likewise.
1083 * cli-out.c (cli_uiout_dtor): Likewise.
1084 (cli_table_begin): Likewise.
1085 (cli_table_body): Likewise.
1086 (cli_table_end): Likewise.
1087 (cli_table_header): Likewise.
1088 (cli_begin): Likewise.
1089 (cli_end): Likewise.
1090 (cli_field_int): Likewise.
1091 (cli_field_skip): Likewise.
1092 (cli_field_string): Likewise.
1093 (cli_field_fmt): Likewise.
1094 (cli_spaces): Likewise.
1095 (cli_text): Likewise.
1096 (cli_message): Likewise.
1097 (cli_wrap_hint): Likewise.
1098 (cli_flush): Likewise.
1099 (cli_redirect): Likewise.
1100 (out_field_fmt): Likewise.
1101 (field_separator): Likewise.
1102 (cli_out_set_stream): Likewise.
1103 * cli/cli-cmds.c (compare_symtabs): Likewise.
1104 * cli/cli-dump.c (call_dump_func): Likewise.
1105 (restore_section_callback): Likewise.
1106 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1107 (do_restore_user_call_depth): Likewise.
1108 (do_free_command_lines_cleanup): Likewise.
1109 * coff-pe-read.c (get_section_vmas): Likewise.
1110 (pe_as16): Likewise.
1111 (pe_as32): Likewise.
1112 * coffread.c (coff_symfile_read): Likewise.
1113 * common/agent.c (agent_look_up_symbols): Likewise.
1114 * common/filestuff.c (do_close_cleanup): Likewise.
1115 * common/format.c (free_format_pieces_cleanup): Likewise.
1116 * common/vec.c (vec_o_reserve): Likewise.
1117 * compile/compile-c-support.c (print_one_macro): Likewise.
1118 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1119 (eq_symbol_error): Likewise.
1120 (del_symbol_error): Likewise.
1121 (error_symbol_once): Likewise.
1122 (gcc_convert_symbol): Likewise.
1123 (gcc_symbol_address): Likewise.
1124 (hash_symname): Likewise.
1125 (eq_symname): Likewise.
1126 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1127 (eq_type_map_instance): Likewise.
1128 (insert_type): Likewise.
1129 (convert_type): Likewise.
1130 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1131 (setup_sections): Likewise.
1132 (link_hash_table_free): Likewise.
1133 (copy_sections): Likewise.
1134 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1135 * compile/compile.c (compile_print_value): Likewise.
1136 (do_rmdir): Likewise.
1137 (cleanup_compile_instance): Likewise.
1138 (cleanup_unlink_file): Likewise.
1139 * completer.c (free_completion_tracker): Likewise.
1140 * corelow.c (add_to_spuid_list): Likewise.
1141 * cp-namespace.c (reset_directive_searched): Likewise.
1142 * cp-support.c (reset_directive_searched): Likewise.
1143 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1144 (cris_frame_unwind_cache): Likewise.
1145 * d-lang.c (builtin_d_type): Likewise.
1146 * d-namespace.c (reset_directive_searched): Likewise.
1147 * dbxread.c (dbx_free_symfile_info): Likewise.
1148 (do_free_bincl_list_cleanup): Likewise.
1149 * disasm.c (hash_dis_line_entry): Likewise.
1150 (eq_dis_line_entry): Likewise.
1151 (dis_asm_print_address): Likewise.
1152 (fprintf_disasm): Likewise.
1153 (do_ui_file_delete): Likewise.
1154 * doublest.c (convert_floatformat_to_doublest): Likewise.
1155 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1156 (dummy_frame_prev_register): Likewise.
1157 (dummy_frame_this_id): Likewise.
1158 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1159 (cache_eq): Likewise.
1160 (cache_find): Likewise.
1161 (tailcall_frame_this_id): Likewise.
1162 (dwarf2_tailcall_prev_register_first): Likewise.
1163 (tailcall_frame_prev_register): Likewise.
1164 (tailcall_frame_dealloc_cache): Likewise.
1165 (tailcall_frame_prev_arch): Likewise.
1166 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1167 (dwarf2_frame_set_init_reg): Likewise.
1168 (dwarf2_frame_init_reg): Likewise.
1169 (dwarf2_frame_set_signal_frame_p): Likewise.
1170 (dwarf2_frame_signal_frame_p): Likewise.
1171 (dwarf2_frame_set_adjust_regnum): Likewise.
1172 (dwarf2_frame_adjust_regnum): Likewise.
1173 (clear_pointer_cleanup): Likewise.
1174 (dwarf2_frame_cache): Likewise.
1175 (find_cie): Likewise.
1176 (dwarf2_frame_find_fde): Likewise.
1177 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1178 (free_dwarf_expr_context_cleanup): Likewise.
1179 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1180 (locexpr_get_frame_base): Likewise.
1181 (loclist_find_frame_base_location): Likewise.
1182 (loclist_get_frame_base): Likewise.
1183 (dwarf_expr_dwarf_call): Likewise.
1184 (dwarf_expr_get_base_type): Likewise.
1185 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1186 (dwarf_expr_get_obj_addr): Likewise.
1187 (entry_data_value_coerce_ref): Likewise.
1188 (entry_data_value_copy_closure): Likewise.
1189 (entry_data_value_free_closure): Likewise.
1190 (get_frame_address_in_block_wrapper): Likewise.
1191 (dwarf2_evaluate_property): Likewise.
1192 (dwarf2_compile_property_to_c): Likewise.
1193 (needs_frame_read_addr_from_reg): Likewise.
1194 (needs_frame_get_reg_value): Likewise.
1195 (needs_frame_frame_base): Likewise.
1196 (needs_frame_frame_cfa): Likewise.
1197 (needs_frame_tls_address): Likewise.
1198 (needs_frame_dwarf_call): Likewise.
1199 (needs_dwarf_reg_entry_value): Likewise.
1200 (get_ax_pc): Likewise.
1201 (locexpr_read_variable): Likewise.
1202 (locexpr_read_variable_at_entry): Likewise.
1203 (locexpr_read_needs_frame): Likewise.
1204 (locexpr_describe_location): Likewise.
1205 (locexpr_tracepoint_var_ref): Likewise.
1206 (locexpr_generate_c_location): Likewise.
1207 (loclist_read_variable): Likewise.
1208 (loclist_read_variable_at_entry): Likewise.
1209 (loclist_describe_location): Likewise.
1210 (loclist_tracepoint_var_ref): Likewise.
1211 (loclist_generate_c_location): Likewise.
1212 * dwarf2read.c (line_header_hash_voidp): Likewise.
1213 (line_header_eq_voidp): Likewise.
1214 (dwarf2_has_info): Likewise.
1215 (dwarf2_get_section_info): Likewise.
1216 (locate_dwz_sections): Likewise.
1217 (hash_file_name_entry): Likewise.
1218 (eq_file_name_entry): Likewise.
1219 (delete_file_name_entry): Likewise.
1220 (dw2_setup): Likewise.
1221 (dw2_get_file_names_reader): Likewise.
1222 (dw2_find_pc_sect_compunit_symtab): Likewise.
1223 (hash_signatured_type): Likewise.
1224 (eq_signatured_type): Likewise.
1225 (add_signatured_type_cu_to_table): Likewise.
1226 (create_debug_types_hash_table): Likewise.
1227 (lookup_dwo_signatured_type): Likewise.
1228 (lookup_dwp_signatured_type): Likewise.
1229 (lookup_signatured_type): Likewise.
1230 (hash_type_unit_group): Likewise.
1231 (eq_type_unit_group): Likewise.
1232 (get_type_unit_group): Likewise.
1233 (process_psymtab_comp_unit_reader): Likewise.
1234 (sort_tu_by_abbrev_offset): Likewise.
1235 (process_skeletonless_type_unit): Likewise.
1236 (psymtabs_addrmap_cleanup): Likewise.
1237 (dwarf2_read_symtab): Likewise.
1238 (psymtab_to_symtab_1): Likewise.
1239 (die_hash): Likewise.
1240 (die_eq): Likewise.
1241 (load_full_comp_unit_reader): Likewise.
1242 (reset_die_in_process): Likewise.
1243 (free_cu_line_header): Likewise.
1244 (handle_DW_AT_stmt_list): Likewise.
1245 (hash_dwo_file): Likewise.
1246 (eq_dwo_file): Likewise.
1247 (hash_dwo_unit): Likewise.
1248 (eq_dwo_unit): Likewise.
1249 (create_dwo_cu_reader): Likewise.
1250 (create_dwo_unit_in_dwp_v1): Likewise.
1251 (create_dwo_unit_in_dwp_v2): Likewise.
1252 (lookup_dwo_unit_in_dwp): Likewise.
1253 (dwarf2_locate_dwo_sections): Likewise.
1254 (dwarf2_locate_common_dwp_sections): Likewise.
1255 (dwarf2_locate_v2_dwp_sections): Likewise.
1256 (hash_dwp_loaded_cutus): Likewise.
1257 (eq_dwp_loaded_cutus): Likewise.
1258 (lookup_dwo_cutu): Likewise.
1259 (abbrev_table_free_cleanup): Likewise.
1260 (dwarf2_free_abbrev_table): Likewise.
1261 (find_partial_die_in_comp_unit): Likewise.
1262 (free_line_header_voidp): Likewise.
1263 (follow_die_offset): Likewise.
1264 (follow_die_sig_1): Likewise.
1265 (free_heap_comp_unit): Likewise.
1266 (free_stack_comp_unit): Likewise.
1267 (dwarf2_free_objfile): Likewise.
1268 (per_cu_offset_and_type_hash): Likewise.
1269 (per_cu_offset_and_type_eq): Likewise.
1270 (get_die_type_at_offset): Likewise.
1271 (partial_die_hash): Likewise.
1272 (partial_die_eq): Likewise.
1273 (dwarf2_per_objfile_free): Likewise.
1274 (hash_strtab_entry): Likewise.
1275 (eq_strtab_entry): Likewise.
1276 (add_string): Likewise.
1277 (hash_symtab_entry): Likewise.
1278 (eq_symtab_entry): Likewise.
1279 (delete_symtab_entry): Likewise.
1280 (cleanup_mapped_symtab): Likewise.
1281 (add_indices_to_cpool): Likewise.
1282 (hash_psymtab_cu_index): Likewise.
1283 (eq_psymtab_cu_index): Likewise.
1284 (add_address_entry_worker): Likewise.
1285 (unlink_if_set): Likewise.
1286 (write_one_signatured_type): Likewise.
1287 (save_gdb_index_command): Likewise.
1288 * elfread.c (elf_symtab_read): Likewise.
1289 (elf_gnu_ifunc_cache_hash): Likewise.
1290 (elf_gnu_ifunc_cache_eq): Likewise.
1291 (elf_gnu_ifunc_record_cache): Likewise.
1292 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1293 (elf_get_probes): Likewise.
1294 (probe_key_free): Likewise.
1295 * f-lang.c (builtin_f_type): Likewise.
1296 * frame-base.c (frame_base_append_sniffer): Likewise.
1297 (frame_base_set_default): Likewise.
1298 (frame_base_find_by_frame): Likewise.
1299 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1300 (frame_unwind_append_unwinder): Likewise.
1301 (frame_unwind_find_by_frame): Likewise.
1302 * frame.c (frame_addr_hash): Likewise.
1303 (frame_addr_hash_eq): Likewise.
1304 (frame_stash_find): Likewise.
1305 (do_frame_register_read): Likewise.
1306 (unwind_to_current_frame): Likewise.
1307 (frame_cleanup_after_sniffer): Likewise.
1308 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1309 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1310 * ft32-tdep.c (ft32_frame_cache): Likewise.
1311 * gcore.c (do_bfd_delete_cleanup): Likewise.
1312 (gcore_create_callback): Likewise.
1313 * gdb_bfd.c (hash_bfd): Likewise.
1314 (eq_bfd): Likewise.
1315 (gdb_bfd_open): Likewise.
1316 (free_one_bfd_section): Likewise.
1317 (gdb_bfd_ref): Likewise.
1318 (gdb_bfd_unref): Likewise.
1319 (get_section_descriptor): Likewise.
1320 (gdb_bfd_map_section): Likewise.
1321 (gdb_bfd_crc): Likewise.
1322 (gdb_bfd_mark_parent): Likewise.
1323 (gdb_bfd_record_inclusion): Likewise.
1324 (gdb_bfd_requires_relocations): Likewise.
1325 (print_one_bfd): Likewise.
1326 * gdbtypes.c (type_pair_hash): Likewise.
1327 (type_pair_eq): Likewise.
1328 (builtin_type): Likewise.
1329 (objfile_type): Likewise.
1330 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1331 (vtable_address_point_offset): Likewise.
1332 (gnuv3_get_vtable): Likewise.
1333 (hash_value_and_voffset): Likewise.
1334 (eq_value_and_voffset): Likewise.
1335 (compare_value_and_voffset): Likewise.
1336 (compute_vtable_size): Likewise.
1337 (gnuv3_get_typeid_type): Likewise.
1338 * go-lang.c (builtin_go_type): Likewise.
1339 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1340 (bkscm_eq_block_smob): Likewise.
1341 (bkscm_objfile_block_map): Likewise.
1342 (bkscm_del_objfile_blocks): Likewise.
1343 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1344 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1345 (gdbscm_disasm_print_address): Likewise.
1346 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1347 (frscm_eq_frame_smob): Likewise.
1348 (frscm_inferior_frame_map): Likewise.
1349 (frscm_del_inferior_frames): Likewise.
1350 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1351 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1352 (ofscm_objfile_smob_from_objfile): Likewise.
1353 * guile/scm-ports.c (ioscm_write): Likewise.
1354 (ioscm_file_port_delete): Likewise.
1355 (ioscm_file_port_rewind): Likewise.
1356 (ioscm_file_port_put): Likewise.
1357 (ioscm_file_port_write): Likewise.
1358 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1359 (psscm_pspace_smob_from_pspace): Likewise.
1360 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1361 (scscm_recording_unwind_handler): Likewise.
1362 (gdbscm_with_catch): Likewise.
1363 (scscm_call_0_body): Likewise.
1364 (scscm_call_1_body): Likewise.
1365 (scscm_call_2_body): Likewise.
1366 (scscm_call_3_body): Likewise.
1367 (scscm_call_4_body): Likewise.
1368 (scscm_apply_1_body): Likewise.
1369 (scscm_eval_scheme_string): Likewise.
1370 (gdbscm_safe_eval_string): Likewise.
1371 (scscm_source_scheme_script): Likewise.
1372 (gdbscm_safe_source_script): Likewise.
1373 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1374 (gdbscm_call_scm_from_stringn): Likewise.
1375 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1376 (syscm_eq_symbol_smob): Likewise.
1377 (syscm_get_symbol_map): Likewise.
1378 (syscm_del_objfile_symbols): Likewise.
1379 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1380 (stscm_eq_symtab_smob): Likewise.
1381 (stscm_objfile_symtab_map): Likewise.
1382 (stscm_del_objfile_symtabs): Likewise.
1383 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1384 (tyscm_eq_type_smob): Likewise.
1385 (tyscm_type_map): Likewise.
1386 (tyscm_copy_type_recursive): Likewise.
1387 (save_objfile_types): Likewise.
1388 * guile/scm-utils.c (extract_arg): Likewise.
1389 * h8300-tdep.c (h8300_frame_cache): Likewise.
1390 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1391 * hppa-tdep.c (compare_unwind_entries): Likewise.
1392 (find_unwind_entry): Likewise.
1393 (hppa_frame_cache): Likewise.
1394 (hppa_stub_frame_unwind_cache): Likewise.
1395 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1396 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1397 (hppaobsd_supply_fpregset): Likewise.
1398 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1399 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1400 * i386-tdep.c (i386_frame_cache): Likewise.
1401 (i386_epilogue_frame_cache): Likewise.
1402 (i386_sigtramp_frame_cache): Likewise.
1403 (i386_supply_gregset): Likewise.
1404 (i386_collect_gregset): Likewise.
1405 (i386_gdbarch_init): Likewise.
1406 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1407 (i386obsd_trapframe_cache): Likewise.
1408 * i387-tdep.c (i387_supply_fsave): Likewise.
1409 (i387_collect_fsave): Likewise.
1410 (i387_supply_fxsave): Likewise.
1411 (i387_collect_fxsave): Likewise.
1412 (i387_supply_xsave): Likewise.
1413 (i387_collect_xsave): Likewise.
1414 * ia64-tdep.c (ia64_frame_cache): Likewise.
1415 (ia64_sigtramp_frame_cache): Likewise.
1416 * infcmd.c (attach_command_continuation): Likewise.
1417 (attach_command_continuation_free_args): Likewise.
1418 * inferior.c (restore_inferior): Likewise.
1419 (delete_thread_of_inferior): Likewise.
1420 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1421 (get_inflow_inferior_data): Likewise.
1422 (inflow_inferior_exit): Likewise.
1423 * infrun.c (displaced_step_clear_cleanup): Likewise.
1424 (restore_current_uiout_cleanup): Likewise.
1425 (release_stop_context_cleanup): Likewise.
1426 (do_restore_infcall_suspend_state_cleanup): Likewise.
1427 (do_restore_infcall_control_state_cleanup): Likewise.
1428 (restore_inferior_ptid): Likewise.
1429 * inline-frame.c (block_starting_point_at): Likewise.
1430 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1431 * jit.c (get_jit_objfile_data): Likewise.
1432 (get_jit_program_space_data): Likewise.
1433 (jit_object_close_impl): Likewise.
1434 (jit_find_objf_with_entry_addr): Likewise.
1435 (jit_breakpoint_deleted): Likewise.
1436 (jit_unwind_reg_set_impl): Likewise.
1437 (jit_unwind_reg_get_impl): Likewise.
1438 (jit_dealloc_cache): Likewise.
1439 (jit_frame_sniffer): Likewise.
1440 (jit_frame_prev_register): Likewise.
1441 (jit_prepend_unwinder): Likewise.
1442 (jit_inferior_exit_hook): Likewise.
1443 (free_objfile_data): Likewise.
1444 * jv-lang.c (jv_per_objfile_free): Likewise.
1445 (get_dynamics_objfile): Likewise.
1446 (get_java_class_symtab): Likewise.
1447 (builtin_java_type): Likewise.
1448 * language.c (language_string_char_type): Likewise.
1449 (language_bool_type): Likewise.
1450 (language_lookup_primitive_type): Likewise.
1451 (language_lookup_primitive_type_as_symbol): Likewise.
1452 * linespec.c (hash_address_entry): Likewise.
1453 (eq_address_entry): Likewise.
1454 (iterate_inline_only): Likewise.
1455 (iterate_name_matcher): Likewise.
1456 (decode_line_2_compare_items): Likewise.
1457 (collect_one_symbol): Likewise.
1458 (compare_symbols): Likewise.
1459 (compare_msymbols): Likewise.
1460 (add_symtabs_to_list): Likewise.
1461 (collect_symbols): Likewise.
1462 (compare_msyms): Likewise.
1463 (add_minsym): Likewise.
1464 (cleanup_linespec_result): Likewise.
1465 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1466 * linux-nat.c (delete_lwp_cleanup): Likewise.
1467 (count_events_callback): Likewise.
1468 (select_event_lwp_callback): Likewise.
1469 (resume_stopped_resumed_lwps): Likewise.
1470 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1471 (invalidate_linux_cache_inf): Likewise.
1472 (get_linux_inferior_data): Likewise.
1473 (linux_find_memory_regions_thunk): Likewise.
1474 (linux_make_mappings_callback): Likewise.
1475 (linux_corefile_thread_callback): Likewise.
1476 (find_mapping_size): Likewise.
1477 * linux-thread-db.c (find_new_threads_callback): Likewise.
1478 * lm32-tdep.c (lm32_frame_cache): Likewise.
1479 * m2-lang.c (builtin_m2_type): Likewise.
1480 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1481 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1482 (m32r_linux_supply_gregset): Likewise.
1483 (m32r_linux_collect_gregset): Likewise.
1484 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1485 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1486 * m68k-tdep.c (m68k_frame_cache): Likewise.
1487 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1488 (m68kbsd_supply_gregset): Likewise.
1489 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1490 * m88k-tdep.c (m88k_frame_cache): Likewise.
1491 (m88k_supply_gregset): Likewise.
1492
224c3ddb
SM
14932015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1494
1495 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1496 to allocation result assignment.
1497 * ada-exp.y (write_object_renaming): Likewise.
1498 (write_ambiguous_var): Likewise.
1499 (ada_nget_field_index): Likewise.
1500 (write_var_or_type): Likewise.
1501 * ada-lang.c (ada_decode_symbol): Likewise.
1502 (ada_value_assign): Likewise.
1503 (value_pointer): Likewise.
1504 (cache_symbol): Likewise.
1505 (add_nonlocal_symbols): Likewise.
1506 (ada_name_for_lookup): Likewise.
1507 (symbol_completion_add): Likewise.
1508 (ada_to_fixed_type_1): Likewise.
1509 (ada_get_next_arg): Likewise.
1510 (defns_collected): Likewise.
1511 * ada-lex.l (processId): Likewise.
1512 (processString): Likewise.
1513 * ada-tasks.c (read_known_tasks_array): Likewise.
1514 (read_known_tasks_list): Likewise.
1515 * ada-typeprint.c (decoded_type_name): Likewise.
1516 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1517 * amd64-tdep.c (amd64_push_arguments): Likewise.
1518 (amd64_displaced_step_copy_insn): Likewise.
1519 (amd64_classify_insn_at): Likewise.
1520 (amd64_relocate_instruction): Likewise.
1521 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1522 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1523 (initialize_current_architecture): Likewise.
1524 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1525 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1526 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1527 (arm_push_dummy_call): Likewise.
1528 (extend_buffer_earlier): Likewise.
1529 (arm_adjust_breakpoint_address): Likewise.
1530 (arm_skip_stub): Likewise.
1531 * auto-load.c (filename_is_in_pattern): Likewise.
1532 (maybe_add_script_file): Likewise.
1533 (maybe_add_script_text): Likewise.
1534 (auto_load_objfile_script_1): Likewise.
1535 * auxv.c (ld_so_xfer_auxv): Likewise.
1536 * ax-general.c (new_agent_expr): Likewise.
1537 (grow_expr): Likewise.
1538 (ax_reg_mask): Likewise.
1539 * bcache.c (bcache_full): Likewise.
1540 * breakpoint.c (program_breakpoint_here_p): Likewise.
1541 * btrace.c (parse_xml_raw): Likewise.
1542 * build-id.c (build_id_to_debug_bfd): Likewise.
1543 * buildsym.c (end_symtab_with_blockvector): Likewise.
1544 * c-exp.y (string_exp): Likewise.
1545 (qualified_name): Likewise.
1546 (write_destructor_name): Likewise.
1547 (operator_stoken): Likewise.
1548 (parse_number): Likewise.
1549 (scan_macro_expansion): Likewise.
1550 (yylex): Likewise.
1551 (c_print_token): Likewise.
1552 * c-lang.c (c_get_string): Likewise.
1553 (emit_numeric_character): Likewise.
1554 * charset.c (wchar_iterate): Likewise.
1555 * cli/cli-cmds.c (complete_command): Likewise.
1556 (make_command): Likewise.
1557 * cli/cli-dump.c (restore_section_callback): Likewise.
1558 (restore_binary_file): Likewise.
1559 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1560 * cli/cli-script.c (execute_control_command): Likewise.
1561 * cli/cli-setshow.c (do_set_command): Likewise.
1562 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1563 (read_pe_exported_syms): Likewise.
1564 * coffread.c (coff_read_struct_type): Likewise.
1565 (coff_read_enum_type): Likewise.
1566 * common/btrace-common.c (btrace_data_append): Likewise.
1567 * common/buffer.c (buffer_grow): Likewise.
1568 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1569 * common/format.c (parse_format_string): Likewise.
1570 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1571 * common/xml-utils.c (xml_escape_text): Likewise.
1572 * compile/compile-object-load.c (copy_sections): Likewise.
1573 (compile_object_load): Likewise.
1574 * compile/compile-object-run.c (compile_object_run): Likewise.
1575 * completer.c (filename_completer): Likewise.
1576 * corefile.c (read_memory_typed_address): Likewise.
1577 (write_memory_unsigned_integer): Likewise.
1578 (write_memory_signed_integer): Likewise.
1579 (complete_set_gnutarget): Likewise.
1580 * corelow.c (get_core_register_section): Likewise.
1581 * cp-name-parser.y (d_grab): Likewise.
1582 (allocate_info): Likewise.
1583 (cp_new_demangle_parse_info): Likewise.
1584 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1585 (cp_lookup_symbol_in_namespace): Likewise.
1586 (lookup_namespace_scope): Likewise.
1587 (find_symbol_in_baseclass): Likewise.
1588 (cp_lookup_nested_symbol): Likewise.
1589 (cp_lookup_transparent_type_loop): Likewise.
1590 * cp-support.c (copy_string_to_obstack): Likewise.
1591 (make_symbol_overload_list): Likewise.
1592 (make_symbol_overload_list_namespace): Likewise.
1593 (make_symbol_overload_list_adl_namespace): Likewise.
1594 (first_component_command): Likewise.
1595 * cp-valprint.c (cp_print_value): Likewise.
1596 * ctf.c (ctf_xfer_partial): Likewise.
1597 * d-exp.y (StringExp): Likewise.
1598 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1599 (lookup_module_scope): Likewise.
1600 (find_symbol_in_baseclass): Likewise.
1601 (d_lookup_nested_symbol): Likewise.
1602 * dbxread.c (find_stab_function_addr): Likewise.
1603 (read_dbx_symtab): Likewise.
1604 (dbx_end_psymtab): Likewise.
1605 (cp_set_block_scope): Likewise.
1606 * dcache.c (dcache_alloc): Likewise.
1607 * demangle.c (_initialize_demangler): Likewise.
1608 * dicos-tdep.c (dicos_load_module_p): Likewise.
1609 * dictionary.c (dict_create_hashed_expandable): Likewise.
1610 (dict_create_linear_expandable): Likewise.
1611 (expand_hashtable): Likewise.
1612 (add_symbol_linear_expandable): Likewise.
1613 * dwarf2-frame.c (add_cie): Likewise.
1614 (add_fde): Likewise.
1615 (dwarf2_build_frame_info): Likewise.
1616 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1617 (dwarf_expr_fetch_address): Likewise.
1618 (add_piece): Likewise.
1619 (execute_stack_op): Likewise.
1620 * dwarf2loc.c (chain_candidate): Likewise.
1621 (dwarf_entry_parameter_to_value): Likewise.
1622 (read_pieced_value): Likewise.
1623 (write_pieced_value): Likewise.
1624 * dwarf2read.c (dwarf2_read_section): Likewise.
1625 (add_type_unit): Likewise.
1626 (read_comp_units_from_section): Likewise.
1627 (fixup_go_packaging): Likewise.
1628 (dwarf2_compute_name): Likewise.
1629 (dwarf2_physname): Likewise.
1630 (create_dwo_unit_in_dwp_v1): Likewise.
1631 (create_dwo_unit_in_dwp_v2): Likewise.
1632 (read_func_scope): Likewise.
1633 (read_call_site_scope): Likewise.
1634 (dwarf2_attach_fields_to_type): Likewise.
1635 (process_structure_scope): Likewise.
1636 (mark_common_block_symbol_computed): Likewise.
1637 (read_common_block): Likewise.
1638 (abbrev_table_read_table): Likewise.
1639 (guess_partial_die_structure_name): Likewise.
1640 (fixup_partial_die): Likewise.
1641 (add_file_name): Likewise.
1642 (dwarf2_const_value_data): Likewise.
1643 (dwarf2_const_value_attr): Likewise.
1644 (build_error_marker_type): Likewise.
1645 (guess_full_die_structure_name): Likewise.
1646 (anonymous_struct_prefix): Likewise.
1647 (typename_concat): Likewise.
1648 (dwarf2_canonicalize_name): Likewise.
1649 (dwarf2_name): Likewise.
1650 (write_constant_as_bytes): Likewise.
1651 (dwarf2_fetch_constant_bytes): Likewise.
1652 (copy_string): Likewise.
1653 (parse_macro_definition): Likewise.
1654 * elfread.c (elf_symfile_segments): Likewise.
1655 (elf_rel_plt_read): Likewise.
1656 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1657 (elf_gnu_ifunc_resolve_by_got): Likewise.
1658 (elf_read_minimal_symbols): Likewise.
1659 (elf_gnu_ifunc_record_cache): Likewise.
1660 * event-top.c (top_level_prompt): Likewise.
1661 (command_line_handler): Likewise.
1662 * exec.c (resize_section_table): Likewise.
1663 * expprint.c (print_subexp_standard): Likewise.
1664 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1665 * findcmd.c (parse_find_args): Likewise.
1666 * findvar.c (address_from_register): Likewise.
1667 * frame.c (get_prev_frame_always): Likewise.
1668 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1669 (get_section_descriptor): Likewise.
1670 * gdb_obstack.c (obconcat): Likewise.
1671 (obstack_strdup): Likewise.
1672 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1673 (create_set_type): Likewise.
1674 (lookup_unsigned_typename): Likewise.
1675 (lookup_signed_typename): Likewise.
1676 (resolve_dynamic_union): Likewise.
1677 (resolve_dynamic_struct): Likewise.
1678 (add_dyn_prop): Likewise.
1679 (copy_dynamic_prop_list): Likewise.
1680 (arch_flags_type): Likewise.
1681 (append_composite_type_field_raw): Likewise.
1682 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1683 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1684 * go-exp.y (string_exp): Likewise.
1685 * go-lang.c (go_demangle): Likewise.
1686 * guile/guile.c (compute_scheme_string): Likewise.
1687 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1688 (gdbscm_canonicalize_command_name): Likewise.
1689 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1690 (ioscm_init_memory_port): Likewise.
1691 (ioscm_reinit_memory_port): Likewise.
1692 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1693 (gdbscm_gc_dup_argv): Likewise.
1694 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1695 * hppa-tdep.c (internalize_unwinds): Likewise.
1696 (read_unwind_info): Likewise.
1697 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1698 (windows_core_xfer_shared_libraries): Likewise.
1699 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1700 (i386_stap_parse_special_token_triplet): Likewise.
1701 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1702 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1703 * inf-child.c (inf_child_fileio_readlink): Likewise.
1704 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1705 (inf_ptrace_store_register): Likewise.
1706 * infrun.c (follow_exec): Likewise.
1707 (displaced_step_prepare_throw): Likewise.
1708 (save_stop_context): Likewise.
1709 (save_infcall_suspend_state): Likewise.
1710 * jit.c (jit_read_descriptor): Likewise.
1711 (jit_read_code_entry): Likewise.
1712 (jit_symtab_line_mapping_add_impl): Likewise.
1713 (finalize_symtab): Likewise.
1714 (jit_unwind_reg_get_impl): Likewise.
1715 * jv-exp.y (QualifiedName): Likewise.
1716 * jv-lang.c (get_java_utf8_name): Likewise.
1717 (type_from_class): Likewise.
1718 (java_demangle_type_signature): Likewise.
1719 (java_class_name_from_physname): Likewise.
1720 * jv-typeprint.c (java_type_print_base): Likewise.
1721 * jv-valprint.c (java_value_print): Likewise.
1722 * language.c (add_language): Likewise.
1723 * linespec.c (add_sal_to_sals_basic): Likewise.
1724 (add_sal_to_sals): Likewise.
1725 (decode_objc): Likewise.
1726 (find_linespec_symbols): Likewise.
1727 * linux-fork.c (fork_save_infrun_state): Likewise.
1728 * linux-nat.c (linux_nat_detach): Likewise.
1729 (linux_nat_fileio_readlink): Likewise.
1730 * linux-record.c (record_linux_sockaddr): Likewise.
1731 (record_linux_msghdr): Likewise.
1732 (Do): Likewise.
1733 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1734 (linux_collect_regset_section_cb): Likewise.
1735 (linux_get_siginfo_data): Likewise.
1736 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1737 (try_thread_db_load_from_dir): Likewise.
1738 (thread_db_load_search): Likewise.
1739 (info_auto_load_libthread_db): Likewise.
1740 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1741 (m32c_m16c_pointer_to_address): Likewise.
1742 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1743 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1744 * machoread.c (macho_check_dsym): Likewise.
1745 * macroexp.c (resize_buffer): Likewise.
1746 (gather_arguments): Likewise.
1747 (maybe_expand): Likewise.
1748 * macrotab.c (new_macro_key): Likewise.
1749 (new_source_file): Likewise.
1750 (new_macro_definition): Likewise.
1751 * mdebugread.c (parse_symbol): Likewise.
1752 (parse_type): Likewise.
1753 (parse_partial_symbols): Likewise.
1754 (psymtab_to_symtab_1): Likewise.
1755 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1756 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1757 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1758 (mi_cmd_data_read_memory_bytes): Likewise.
1759 (mi_cmd_data_write_memory_bytes): Likewise.
1760 (mi_cmd_trace_frame_collected): Likewise.
1761 * mi/mi-parse.c (mi_parse_argv): Likewise.
1762 (mi_parse): Likewise.
1763 * minidebug.c (lzma_open): Likewise.
1764 (lzma_pread): Likewise.
1765 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1766 (mips_print_fp_register): Likewise.
1767 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1768 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1769 * mt-tdep.c (mt_register_name): Likewise.
1770 (mt_registers_info): Likewise.
1771 (mt_push_dummy_call): Likewise.
1772 * namespace.c (add_using_directive): Likewise.
1773 * nat/linux-btrace.c (perf_event_read): Likewise.
1774 (linux_enable_bts): Likewise.
1775 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1776 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1777 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1778 (nto_parse_redirection): Likewise.
1779 * objc-lang.c (objc_demangle): Likewise.
1780 (find_methods): Likewise.
1781 * objfiles.c (get_objfile_bfd_data): Likewise.
1782 (set_objfile_main_name): Likewise.
1783 (allocate_objfile): Likewise.
1784 (objfile_relocate): Likewise.
1785 (update_section_map): Likewise.
1786 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1787 * p-exp.y (exp): Likewise.
1788 (yylex): Likewise.
1789 * p-valprint.c (pascal_object_print_value): Likewise.
1790 * parse.c (initialize_expout): Likewise.
1791 (mark_completion_tag): Likewise.
1792 (copy_name): Likewise.
1793 (parse_float): Likewise.
1794 (type_stack_reserve): Likewise.
1795 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1796 (ppu2spu_prev_register): Likewise.
1797 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1798 * printcmd.c (printf_wide_c_string): Likewise.
1799 (printf_pointer): Likewise.
1800 * probe.c (parse_probes): Likewise.
1801 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1802 (cmdpy_init): Likewise.
1803 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1804 * python/py-symtab.c (set_sal): Likewise.
1805 * python/py-unwind.c (pyuw_sniffer): Likewise.
1806 * python/python.c (python_interactive_command): Likewise.
1807 (compute_python_string): Likewise.
1808 * ravenscar-thread.c (get_running_thread_id): Likewise.
1809 * record-full.c (record_full_exec_insn): Likewise.
1810 (record_full_core_open_1): Likewise.
1811 * regcache.c (regcache_raw_read_signed): Likewise.
1812 (regcache_raw_read_unsigned): Likewise.
1813 (regcache_cooked_read_signed): Likewise.
1814 (regcache_cooked_read_unsigned): Likewise.
1815 * remote-fileio.c (remote_fileio_func_open): Likewise.
1816 (remote_fileio_func_rename): Likewise.
1817 (remote_fileio_func_unlink): Likewise.
1818 (remote_fileio_func_stat): Likewise.
1819 (remote_fileio_func_system): Likewise.
1820 * remote-mips.c (mips_xfer_memory): Likewise.
1821 (mips_load_srec): Likewise.
1822 (pmon_end_download): Likewise.
1823 * remote.c (new_remote_state): Likewise.
1824 (map_regcache_remote_table): Likewise.
1825 (remote_register_number_and_offset): Likewise.
1826 (init_remote_state): Likewise.
1827 (get_memory_packet_size): Likewise.
1828 (remote_pass_signals): Likewise.
1829 (remote_program_signals): Likewise.
1830 (remote_start_remote): Likewise.
1831 (remote_check_symbols): Likewise.
1832 (remote_query_supported): Likewise.
1833 (extended_remote_attach): Likewise.
1834 (process_g_packet): Likewise.
1835 (store_registers_using_G): Likewise.
1836 (putpkt_binary): Likewise.
1837 (read_frame): Likewise.
1838 (compare_sections_command): Likewise.
1839 (remote_hostio_pread): Likewise.
1840 (remote_hostio_readlink): Likewise.
1841 (remote_file_put): Likewise.
1842 (remote_file_get): Likewise.
1843 (remote_pid_to_exec_file): Likewise.
1844 (_initialize_remote): Likewise.
1845 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1846 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1847 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1848 (bfd_uses_spe_extensions): Likewise.
1849 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1850 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1851 * solib-dsbt.c (decode_loadmap): Likewise.
1852 (fetch_loadmap): Likewise.
1853 (scan_dyntag): Likewise.
1854 (enable_break): Likewise.
1855 (dsbt_relocate_main_executable): Likewise.
1856 * solib-frv.c (fetch_loadmap): Likewise.
1857 (enable_break2): Likewise.
1858 (frv_relocate_main_executable): Likewise.
1859 * solib-spu.c (spu_relocate_main_executable): Likewise.
1860 (spu_bfd_open): Likewise.
1861 * solib-svr4.c (lm_info_read): Likewise.
1862 (read_program_header): Likewise.
1863 (find_program_interpreter): Likewise.
1864 (scan_dyntag): Likewise.
1865 (elf_locate_base): Likewise.
1866 (open_symbol_file_object): Likewise.
1867 (read_program_headers_from_bfd): Likewise.
1868 (svr4_relocate_main_executable): Likewise.
1869 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1870 * solib.c (solib_find_1): Likewise.
1871 (exec_file_find): Likewise.
1872 (solib_find): Likewise.
1873 * source.c (openp): Likewise.
1874 (print_source_lines_base): Likewise.
1875 (forward_search_command): Likewise.
1876 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1877 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1878 (spu_get_overlay_table): Likewise.
1879 * stabsread.c (patch_block_stabs): Likewise.
1880 (define_symbol): Likewise.
1881 (again:): Likewise.
1882 (read_member_functions): Likewise.
1883 (read_one_struct_field): Likewise.
1884 (read_enum_type): Likewise.
1885 (common_block_start): Likewise.
1886 * stack.c (read_frame_arg): Likewise.
1887 (backtrace_command): Likewise.
1888 * stap-probe.c (stap_parse_register_operand): Likewise.
1889 * symfile.c (syms_from_objfile_1): Likewise.
1890 (find_separate_debug_file): Likewise.
1891 (load_command): Likewise.
1892 (load_progress): Likewise.
1893 (load_section_callback): Likewise.
1894 (reread_symbols): Likewise.
1895 (add_filename_language): Likewise.
1896 (allocate_compunit_symtab): Likewise.
1897 (read_target_long_array): Likewise.
1898 (simple_read_overlay_table): Likewise.
1899 * symtab.c (symbol_set_names): Likewise.
1900 (resize_symbol_cache): Likewise.
1901 (rbreak_command): Likewise.
1902 (completion_list_add_name): Likewise.
1903 (completion_list_objc_symbol): Likewise.
1904 (add_filename_to_list): Likewise.
1905 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1906 * target-memory.c (target_write_memory_blocks): Likewise.
1907 * target.c (target_read_string): Likewise.
1908 (read_whatever_is_readable): Likewise.
1909 (target_read_alloc_1): Likewise.
1910 (simple_search_memory): Likewise.
1911 (target_fileio_read_alloc_1): Likewise.
1912 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1913 * top.c (command_line_input): Likewise.
1914 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1915 * tracefile.c (tracefile_fetch_registers): Likewise.
1916 * tracepoint.c (add_memrange): Likewise.
1917 (init_collection_list): Likewise.
1918 (add_aexpr): Likewise.
1919 (trace_dump_actions): Likewise.
1920 (parse_trace_status): Likewise.
1921 (parse_tracepoint_definition): Likewise.
1922 (parse_tsv_definition): Likewise.
1923 (parse_static_tracepoint_marker_definition): Likewise.
1924 * tui/tui-file.c (tui_sfileopen): Likewise.
1925 (tui_file_adjust_strbuf): Likewise.
1926 * tui/tui-io.c (tui_expand_tabs): Likewise.
1927 * tui/tui-source.c (tui_set_source_content): Likewise.
1928 * typeprint.c (find_global_typedef): Likewise.
1929 * ui-file.c (do_ui_file_xstrdup): Likewise.
1930 (ui_file_obsavestring): Likewise.
1931 (mem_file_write): Likewise.
1932 * utils.c (make_hex_string): Likewise.
1933 (get_regcomp_error): Likewise.
1934 (puts_filtered_tabular): Likewise.
1935 (gdb_realpath_keepfile): Likewise.
1936 (ldirname): Likewise.
1937 (gdb_bfd_errmsg): Likewise.
1938 (substitute_path_component): Likewise.
1939 * valops.c (search_struct_method): Likewise.
1940 (find_oload_champ_namespace_loop): Likewise.
1941 * valprint.c (print_decimal_chars): Likewise.
1942 (read_string): Likewise.
1943 (generic_emit_char): Likewise.
1944 * varobj.c (varobj_delete): Likewise.
1945 (varobj_value_get_print_value): Likewise.
1946 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1947 * windows-tdep.c (display_one_tib): Likewise.
1948 * xcoffread.c (read_xcoff_symtab): Likewise.
1949 (process_xcoff_symbol): Likewise.
1950 (swap_sym): Likewise.
1951 (scan_xcoff_symtab): Likewise.
1952 (xcoff_initial_scan): Likewise.
1953 * xml-support.c (gdb_xml_end_element): Likewise.
1954 (xml_process_xincludes): Likewise.
1955 (xml_fetch_content_from_file): Likewise.
1956 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1957 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1958
623fb775 19592015-09-23 James Bowman <james.bowman@ftdichip.com>
1960
1961 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1962 instead of builtin_func_ptr.
1963 (ft32_pointer_to_address): New function.
1964 (ft32_address_class_type_flags): New function.
1965 (ft32_address_class_type_flags_to_name): New function.
1966 (ft32_address_class_name_to_type_flags): New function.
1967 (ft32_gdbarch_init): Set tdep->pc_type. Call
1968 set_gdbarch_pointer_to_address,
1969 set_gdbarch_address_class_type_flags
1970 set_gdbarch_address_class_name_to_type_flags,
1971 and set_gdbarch_address_class_type_flags_to_name.
1972 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1973
e6c2c623
PMR
19742015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1975
1976 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1977 value is a reference, actually dereference it in order to get
1978 the underlying value.
1979
bc1f8cda
SM
19802015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1981
1982 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1983
acaa662f
SM
19842015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1985
1986 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1987 * linespec.c (linespec_lexer_lex_string): Same.
1988
4d9d419e
PL
19892015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1990
1991 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1992
6ec5f4be
PL
19932015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1994
1995 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1996 variable. Call aarch64_decode_adr instead of
1997 aarch64_decode_adrp.
1998 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1999 (aarch64_decode_adr): New function declaration.
2000 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2001 (aarch64_decode_adr): New function, factored out from
2002 aarch64_decode_adrp to decode both adr and adrp instructions.
2003
787749ea
PL
20042015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2005
2006 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2007 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2008 (aarch64-insn.o): New rule.
2009 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2010 (aarch64*-*-linux*): Likewise.
2011 * arch/aarch64-insn.c: New file.
2012 * arch/aarch64-insn.h: New file.
2013 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2014 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2015 arch/aarch64-insn.h.
2016 (decode_add_sub_imm): Rename to ...
2017 (aarch64_decode_add_sub_imm): ... this.
2018 (decode_adrp): Rename to ...
2019 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2020 Declare in arch/aarch64-insn.h.
2021 (decode_b): Rename to ...
2022 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2023 Declare in arch/aarch64-insn.h.
2024 (decode_bcond): Rename to ...
2025 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2026 Declare in arch/aarch64-insn.h.
2027 (decode_br): Rename to ...
2028 (aarch64_decode_br): ... this.
2029 (decode_cb): Rename to ...
2030 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2031 Declare in arch/aarch64-insn.h.
2032 (decode_eret): Rename to ...
2033 (aarch64_decode_eret): ... this.
2034 (decode_movz): Rename to ...
2035 (aarch64_decode_movz): ... this.
2036 (decode_orr_shifted_register_x): Rename to ...
2037 (aarch64_decode_orr_shifted_register_x): ... this.
2038 (decode_ret): Rename to ...
2039 (aarch64_decode_ret): ... this.
2040 (decode_stp_offset): Rename to ...
2041 (aarch64_decode_stp_offset): ... this.
2042 (decode_stp_offset_wb): Rename to ...
2043 (aarch64_decode_stp_offset_wb): ... this.
2044 (decode_stur): Rename to ...
2045 (aarch64_decode_stur): ... this.
2046 (decode_tb): Rename to ...
2047 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2048 Declare in arch/aarch64-insn.h.
2049 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2050
183dc7ec
DE
20512015-09-20 Doug Evans <xdje42@gmail.com>
2052
2053 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2054
2ee7123e
DE
20552015-09-20 Doug Evans <xdje42@gmail.com>
2056
2057 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2058 variable name that collides with a parameter.
2059
7d1c9c9b
JB
20602015-09-20 Joel Brobecker <brobecker@adacore.com>
2061
2062 * dwarf2loc.c (locexpr_get_frame_base): Renames
2063 block_op_get_frame_base.
2064 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2065 block_op_get_frame_base by reference to locexpr_get_frame_base.
2066 (loclist_get_frame_base): New function, near identical copy of
2067 locexpr_get_frame_base.
2068 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2069 block_op_get_frame_base by reference to loclist_get_frame_base.
2070
7dc7c195
DE
20712015-09-19 Doug Evans <xdje42@gmail.com>
2072
2073 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2074 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2075
be550b6e
DE
20762015-09-18 Doug Evans <xdje42@gmail.com>
2077
2078 * linux-thread-db.c (record_thread): Return the created thread.
2079 (thread_from_lwp): Likewise.
2080 (thread_db_get_thread_local_address): Update.
2081
615b3f62
DE
20822015-09-18 Doug Evans <xdje42@gmail.com>
2083
2084 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2085 move only member demangled_name up. All uses updated.
2086
015d2e7e
DE
20872015-09-18 Doug Evans <xdje42@gmail.com>
2088
2089 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2090 kind of minimal symbol in the error message.
2091 * objfiles.c (objfile_flavour_name): New function.
2092 * objfiles.h (objfile_flavour_name): Declare.
2093
a0cc84cd
YQ
20942015-09-18 Yao Qi <yao.qi@linaro.org>
2095
2096 * nat/aarch64-linux.c: Include elf/common.h,
2097 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2098 (aarch64_ps_get_thread_area): New function.
2099 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2100 (aarch64_ps_get_thread_area): Declare.
2101 * aarch64-linux-nat.c (ps_get_thread_area): Call
2102 aarch64_ps_get_thread_area.
2103
d2939ba2
MM
21042015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2105
2106 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2107
f2665db5
MM
21082015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2109
2110 * NEWS: Announce new scheduler-locking mode.
2111 * infrun.c (schedlock_replay): New.
2112 (scheduler_enums): Add schedlock_replay.
2113 (scheduler_mode): Change default to schedlock_replay.
2114 (user_visible_resume_ptid): Handle schedlock_replay.
2115 (clear_proceed_status_thread): Stop replaying if resumed thread is
2116 not replaying.
2117 (schedlock_applies): Handle schedlock_replay.
2118 (_initialize_infrun): Document new scheduler-locking mode.
2119 * record-btrace.c (record_btrace_resume): Remove code to stop other
2120 threads when not replaying the resumed thread.
2121
7ff27e9b
MM
21222015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2123
2124 * record-btrace.c ((record_btrace_will_replay): New.
2125 (init_record_btrace_ops): Initialize to_record_will_replay.
2126 * record-full.c ((record_full_will_replay): New.
2127 (init_record_full_ops): Initialize to_record_will_replay.
2128 * target-delegates.c: Regenerated.
2129 * target.c (target_record_will_replay): New.
2130 * target.h (struct target_ops) <to_record_will_replay>: New.
2131 (target_record_will_replay): New.
2132
797094dd
MM
21332015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2134
2135 * record-btrace.c (record_btrace_resume): Call
2136 target_record_stop_replaying.
2137 (record_btrace_stop_replaying_all): New.
2138 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2139 * record-full.c (record_full_stop_replaying): New.
2140 (init_record_full_ops ): Initialize to_record_stop_replaying.
2141 * target-delegates.c: Regenerated.
2142 * target.c (target_record_stop_replaying): New.
2143 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2144 (target_record_stop_replaying): New.
2145
4d10e986
MM
21462015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2147
2148 * record-btrace.c (record_btrace_xfer_partial)
2149 (record_btrace_store_registers, record_btrace_prepare_to_store):
2150 Call record_btrace_is_replaying with inferior_ptid instead of
2151 minus_one_ptid.
2152 (record_btrace_store_registers): Change error message.
2153
a52eab48
MM
21542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2155
2156 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2157 Update users to pass minus_one_ptid.
2158 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2159 * record.c (cmd_record_delete): Pass inferior_ptid to
2160 target_record_is_replaying.
2161 * target-delegates.c: Regenerated.
2162 * target.c (target_record_is_replaying): Add ptid argument.
2163 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2164 argument.
2165 (target_record_is_replaying): Add ptid argument.
2166
cbb55fa7
MM
21672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2168
2169 * record-btrace.c (record_btrace_open): Remove non_stop check.
2170 * NEWS: Announce that record btrace supports non-stop mode.
2171
d1988021
MM
21722015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2173
2174 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2175 in the TARKET_WAITKIND_NO_HISTORY case.
2176
a6b5be76
MM
21772015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2178
2179 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2180 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2181
ec71cc2f
MM
21822015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2183
2184 * record-btrace.c (get_thread_current_frame): New.
2185 (record_btrace_start_replaying): Call get_thread_current_frame.
2186
0ca912df
MM
21872015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2188
2189 * record-btrace.c (record_btrace_resume_thread): A move request
2190 overwrites a previous move request.
2191 (record_btrace_find_resume_thread): Removed.
2192 (record_btrace_resume): Resume all requested threads.
2193
e3cfc1c7
MM
21942015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2195
2196 * record-btrace.c: Include vec.h.
2197 (record_btrace_find_thread_to_move): Removed.
2198 (btrace_step_no_resumed, btrace_step_again)
2199 (record_btrace_stop_replaying_at_end): New.
2200 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2201 (record_btrace_single_step_forward): Remove calls to
2202 record_btrace_stop_replaying.
2203 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2204 BTHR_RCONT. Keep threads at the end of their history moving.
2205 (record_btrace_wait): Call record_btrace_step_thread for all threads
2206 until one reports an event. Call record_btrace_stop_replaying_at_end
2207 for the eventing thread.
2208
cf8f8f0c
MM
22092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2210
2211 * record-btrace.c (record_btrace_single_step_forward): Return
2212 NO_HISTORY if a step brings us to the end of the execution history.
2213
011c71b6
MM
22142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2215
2216 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2217 to ...
2218 (record_btrace_single_step_forward): ... here and
2219 (record_btrace_single_step_backward): ... here.
2220
d825d248
MM
22212015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2222
2223 * record-btrace.c (btrace_step_spurious)
2224 (record_btrace_single_step_forward)
2225 (record_btrace_single_step_backward): New.
2226 (record_btrace_step_thread): Call record_btrace_single_step_forward
2227 and record_btrace_single_step_backward.
2228
3c615f99
MM
22292015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2230
2231 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2232 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2233
987e68b1
MM
22342015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2235
2236 * record-btrace.c (btrace_thread_flag_to_str)
2237 (record_btrace_cancel_resume): New.
2238 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2239 (record_btrace_resume): Print execution direction.
2240 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2241 (record_btrace_wait): Call record_btrace_cancel_resume.
2242
6e4879f0
MM
22432015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2244
2245 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2246 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2247 (record_btrace_find_thread_to_move): Also accept threads that have
2248 BTHR_STOP set.
2249 (btrace_step_stopped_on_request, record_btrace_stop): New.
2250 (record_btrace_step_thread): Support BTHR_STOP.
2251 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2252 (init_record_btrace_ops): Initialize to_stop.
2253
5953356c
MM
22542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2255
2256 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2257 target_is_non_stop_p ().
2258
bfca584f
PMR
22592015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2260
2261 * ada-typeprint.c (print_array_type): Do not describe arrays as
2262 packed when they embed dynamic elements.
2263
5382cfab
PW
22642015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2265
2266 * symtab.h (address_class): Document that TLS variables
2267 are handled by LOC_UNRESOLVED.
2268 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2269 * printcmd.c (address_info): Don't relocate TLS variables.
2270
b277c936
PL
22712015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2272
2273 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2274 (decode_adrp): Likewise.
2275 (decode_b): Likewise.
2276 (decode_bcond): Likewise.
2277 (decode_br): Likewise.
2278 (decode_cb): Likewise.
2279 (decode_eret): Likewise.
2280 (decode_movz): Likewise.
2281 (decode_orr_shifted_register_x): Likewise.
2282 (decode_ret): Likewise.
2283 (decode_stp_offset): Likewise.
2284 (decode_stp_offset_wb): Likewise.
2285 (decode_stur): Likewise.
2286 (decode_tb): Likewise.
2287 (aarch64_analyze_prologue): Likewise.
2288 (pass_in_x): Likewise.
2289 (pass_in_v): Likewise.
2290 (pass_on_stack): Likewise.
2291 (aarch64_push_dummy_call): Likewise.
2292 (aarch64_extract_return_value): Likewise.
2293 (aarch64_store_return_value): Likewise.
2294 (aarch64_return_value): Likewise.
2295 (aarch64_record_asimd_load_store): Likewise.
2296 (aarch64_record_load_store): Likewise.
2297 (aarch64_record_data_proc_simd_fp): Likewise.
2298
141c5cc4
JK
22992015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2302 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2303 (ppc64_skip_trampoline_code_1): ... here.
2304 (ppc64_skip_trampoline_code): New wrapper function.
2305 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2306
750ce8d1
YQ
23072015-09-15 Yao Qi <yao.qi@linaro.org>
2308
2309 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2310 function.
2311 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2312 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2313 if target_can_do_single_step returns 1.
2314 * remote.c (struct vCont_action_support) <s, S>: New fields.
2315 (PACKET_vContSupported): New enum.
2316 (remote_protocol_features): New element for vContSupported.
2317 (remote_query_supported): Append "vContSupported+".
2318 (remote_vcont_probe): Remove support_s and support_S, use
2319 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2320 vCont packet if c and C actions are not supported.
2321 (remote_can_do_single_step): New function.
2322 (init_remote_ops): Install it to to_can_do_single_step.
2323 (_initialize_remote): Call add_packet_config_cmd.
2324 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2325 (target_can_do_single_step): New macro.
2326 * target-delegates.c: Re-generated.
2327
ade90bde
YQ
23282015-09-15 Yao Qi <yao.qi@linaro.org>
2329
2330 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2331 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2332 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2333 New function.
2334 (aarch64_siginfo_from_compat_siginfo): New function.
2335 * nat/aarch64-linux.h: Include signal.h.
2336 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2337 (compat_timer_t, compat_clock_t): Likewise.
2338 (struct compat_timeval): New.
2339 (union compat_sigval): New.
2340 (struct compat_siginfo): New.
2341 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2342 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2343 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2344 (cpt_si_band, cpt_si_fd): Likewise.
2345
4c2f2a79
PA
23462015-09-14 Pedro Alves <palves@redhat.com>
2347
2348 * infrun.c (current_stop_id): New global.
2349 (get_stop_id, new_stop_id): New functions.
2350 (fetch_inferior_event): Handle normal_stop proceeding the target.
2351 (struct stop_context): New.
2352 (save_stop_context, release_stop_context_cleanup)
2353 (stop_context_changed): New functions.
2354 (normal_stop): Return true if the hook-stop changes the stop
2355 context.
2356 * infrun.h (get_stop_id): Declare.
2357 (normal_stop): Now returns int. Add documentation.
2358
919e6dbe
PMR
23592015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2360
2361 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2362 comment. Handle packed arrays.
2363
b027a8fa
PA
23642015-09-14 Pedro Alves <palves@redhat.com>
2365
2366 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2367 mention of maint set/show target-non-stop.
2368
b459a59b
DB
23692015-09-11 Don Breazeal <donb@codesourcery.com>
2370
2371 * NEWS: Announce new remote packets for the exec-events
2372 feature and the exec-events feature and associated commands.
2373
d46addbb
DB
23742015-09-11 Don Breazeal <donb@codesourcery.com>
2375
2376 * remote.c (remote_exec_event_p): New function.
2377 (remote_insert_exec_catchpoint): New function.
2378 (remote_remove_exec_catchpoint): New function.
2379 (init_extended_remote_ops): Initialize extended_remote_ops
2380 members to_insert_exec_catchpoint and
2381 to_remove_exec_catchpoint.
2382
94585166
DB
23832015-09-11 Don Breazeal <donb@codesourcery.com>
2384 Luis Machado <lgustavo@codesourcery.com>
2385
2386 * infrun.c (follow_exec): Use process-style ptid for
2387 exec message. Call add_inferior_with_spaces and
2388 target_follow_exec.
2389 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2390 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2391 * remote.c (remote_pspace_data): New static variable.
2392 (remote_pspace_data_cleanup): New function.
2393 (get_remote_exec_file): New function.
2394 (set_remote_exec_file_1): New function.
2395 (set_remote_exec_file): New function.
2396 (show_remote_exec_file): New function.
2397 (remote_exec_file): Delete static variable.
2398 (anonymous enum) <PACKET_exec_event_feature>: New
2399 enumeration constant.
2400 (remote_protocol_features): Add entry for exec-events feature.
2401 (remote_query_supported): Add client side of qSupported query
2402 for exec-events feature.
2403 (remote_follow_exec): New function.
2404 (remote_parse_stop_reply): Handle 'exec' stop reason.
2405 (extended_remote_run, extended_remote_create_inferior): Call
2406 get_remote_exec_file and set_remote_exec_file_1.
2407 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2408 member.
2409 (_initialize_remote): Call
2410 register_program_space_data_with_cleanup. Call
2411 add_packet_config_cmd for remote exec-events feature.
2412 Modify call to add_setshow_string_noescape_cmd for exec-file
2413 to use new functions set_remote_exec_file and
2414 show_remote_exec_file.
2415 * target-debug.h, target-delegates.c: Regenerated.
2416 * target.c (target_follow_exec): New function.
2417 * target.h (struct target_ops) <to_follow_exec>: New member.
2418 (target_follow_exec): Declare new function.
2419
669e74e8
PL
24202015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2421
2422 * aarch64-tdep.c (decode_cb): Move up comment describing the
2423 encoding.
2424 (decode_tb): Fix a typo in comment above the function. Move up
2425 comment describing the encoding.
2426
4d50586d
PL
24272015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2428
2429 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2430
6dcaef99
MMN
24312015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2432
2433 PR gdb/18947
2434 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2435 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2436
5da1a4d3
SM
24372015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2440 operations.
2441
108d56a4
SM
24422015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 * ada-lang.c (ada_search_struct_field): Constify parameters
2445 and/or variables..
2446 (xget_renaming_scope): Likewise.
2447 (ada_is_redundant_range_encoding): Likewise.
2448 (scan_discrim_bound): Likewise.
2449 (to_fixed_range_type): Likewise.
2450
dd2e65cc
YQ
24512015-09-10 Yao Qi <yao.qi@linaro.org>
2452
2453 * breakpoint.c (download_tracepoint_locations): New local
2454 can_download_tracepoint. Check the result of
2455 target_can_download_tracepoint and save it in
2456 can_download_tracepoint if there are tracepoints to download.
2457 * linux-nat.h (enum tribool): Move it to ...
2458 * common/common-types.h: ... here.
2459
cfe75703
PA
24602015-09-09 Pedro Alves <palves@redhat.com>
2461
2462 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2463 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2464
a85a3079
PA
24652015-09-09 Pedro Alves <palves@redhat.com>
2466
2467 * continuations.c (add_continuation, restore_thread_cleanup)
2468 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2469 (do_all_continuations_thread, do_all_continuations)
2470 (discard_all_continuations_thread_callback)
2471 (discard_all_continuations_thread, discard_all_continuations)
2472 (add_intermediate_continuation)
2473 (do_all_intermediate_continuations_thread_callback)
2474 (do_all_intermediate_continuations_thread)
2475 (do_all_intermediate_continuations)
2476 (discard_all_intermediate_continuations_thread_callback)
2477 (discard_all_intermediate_continuations_thread)
2478 (discard_all_intermediate_continuations): Delete.
2479 * continuations.h (add_continuation, do_all_continuations)
2480 (do_all_continuations_thread, discard_all_continuations)
2481 (discard_all_continuations_thread, add_intermediate_continuation)
2482 (do_all_intermediate_continuations)
2483 (do_all_intermediate_continuations_thread)
2484 (discard_all_intermediate_continuations)
2485 (discard_all_intermediate_continuations_thread): Delete
2486 declarations.
2487 * event-top.c (stdin_event_handler): Delete references to
2488 continuations.
2489 * gdbthread.h (struct thread_info): Delete continuations and
2490 intermediate_continuations fields.
2491 * inf-loop.c (inferior_event_handler): Remove references to
2492 continuations.
2493 * infrun.c (infrun_thread_stop_requested_callback): Remove
2494 references to continuations.
2495 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2496 * thread.c: Don't include "continuations.h".
2497 (clear_thread_inferior_resources): Remove references to
2498 continuations.
2499
0700e23e
PA
25002015-09-09 Pedro Alves <palves@redhat.com>
2501
2502 * infcall.c (struct dummy_frame_context_saver): Delete.
2503 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2504 (dummy_frame_context_saver_drop)
2505 (dummy_frame_context_saver_cleanup)
2506 (dummy_frame_context_saver_get_regs)
2507 (dummy_frame_context_saver_setup): Delete.
2508 * infcall.h (dummy_frame_context_saver_drop)
2509 (dummy_frame_context_saver_cleanup)
2510 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2511 Delete.
2512 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2513 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2514 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2515
cfc31633
PA
25162015-09-09 Pedro Alves <palves@redhat.com>
2517
2518 * breakpoint.c: Include "thread-fsm.h".
2519 (struct until_break_command_continuation_args): Delete.
2520 (struct until_break_fsm): New.
2521 (until_break_fsm_ops): New global.
2522 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2523 (until_break_command_continuation): Delete.
2524 (until_break_fsm_clean_up): New function.
2525 (until_break_fsm_async_reply_reason): New function.
2526 (until_break_command): Adjust to create an until_break_fsm instead
2527 of a continuation.
2528 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2529 here.
2530 * infcmd.c (struct until_next_fsm): New.
2531 (until_next_fsm_ops): New global.
2532 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2533 (until_next_continuation): Delete.
2534 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2535 functions.
2536 (until_next_command): Adjust to create a new until_next_fsm
2537 instead of a continuation.
2538
388a7084
PA
25392015-09-09 Pedro Alves <palves@redhat.com>
2540
2541 * infcall.c: Include thread_fsm.h.
2542 (struct call_return_meta_info): New.
2543 (get_call_return_value): New function, factored out from
2544 call_function_by_hand_dummy.
2545 (struct call_thread_fsm): New.
2546 (call_thread_fsm_ops): New global.
2547 (new_call_thread_fsm, call_thread_fsm_should_stop)
2548 (call_thread_fsm_should_notify_stop): New functions.
2549 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2550 the thread.
2551 (call_function_by_hand_dummy): Create a new call_thread_fsm
2552 instance, associate it with the thread, and wait for the FSM to
2553 finish. If finished successfully, fetch the function's result
2554 value out of the FSM.
2555 * infrun.c (fetch_inferior_event): If the FSM says the stop
2556 shouldn't be notified, don't call normal_stop.
2557 (maybe_remove_breakpoints): New function, factored out from ...
2558 (normal_stop): ... here. Simplify.
2559 * infrun.h (maybe_remove_breakpoints): Declare.
2560 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2561 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2562 (thread_fsm_should_notify_stop): Declare.
2563
243a9253
PA
25642015-09-09 Pedro Alves <palves@redhat.com>
2565
2566 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2567 * breakpoint.c (handle_jit_event): Print debug output.
2568 (bpstat_what): Split event callback handling to ...
2569 (bpstat_run_callbacks): ... this new function.
2570 (momentary_bkpt_print_it): No longer handle bp_finish here.
2571 * breakpoint.h (bpstat_run_callbacks): Declare.
2572 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2573 <thread_fsm>: New field.
2574 (thread_cancel_execution_command): Declare.
2575 * infcmd.c: Include thread-fsm.h.
2576 (struct step_command_fsm): New.
2577 (step_command_fsm_ops): New global.
2578 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2579 (step_1): Adjust to use step_command_fsm_prepare and
2580 prepare_one_step.
2581 (struct step_1_continuation_args): Delete.
2582 (step_1_continuation): Delete.
2583 (step_command_fsm_should_stop): New function.
2584 (step_once): Delete.
2585 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2586 (prepare_one_step): New function, based on step_once.
2587 (until_next_command): Remove step_multi reference.
2588 (struct return_value_info): New.
2589 (print_return_value): Rename to ...
2590 (print_return_value_1): ... this. New struct return_value_info
2591 parameter. Adjust.
2592 (print_return_value): Reimplement as wrapper around
2593 print_return_value_1.
2594 (struct finish_command_fsm): New.
2595 (finish_command_continuation): Delete.
2596 (finish_command_fsm_ops): New global.
2597 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2598 functions.
2599 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2600 New.
2601 (finish_command_continuation_free_arg): Delete.
2602 (finish_command_fsm_async_reply_reason): New.
2603 (finish_backward, finish_forward): Change symbol parameter to a
2604 finish_command_fsm. Adjust.
2605 (finish_command): Create a finish_command_fsm. Adjust.
2606 * infrun.c: Include "thread-fsm.h".
2607 (clear_proceed_status_thread): Delete the thread's FSM.
2608 (infrun_thread_stop_requested_callback): Cancel the thread's
2609 execution command.
2610 (clean_up_just_stopped_threads_fsms): New function.
2611 (fetch_inferior_event): Handle the event_thread's should_stop
2612 method saying the command isn't done yet.
2613 (process_event_stop_test): Run breakpoint callbacks here.
2614 (print_stop_event): Rename to ...
2615 (print_stop_location): ... this.
2616 (restore_current_uiout_cleanup): New function.
2617 (print_stop_event): Reimplement.
2618 (normal_stop): No longer notify the end_stepping_range observers
2619 here handle "step N" nor "finish" here. No longer call
2620 print_stop_event here.
2621 * infrun.h (struct return_value_info): Forward declare.
2622 (print_return_value): Declare.
2623 (print_stop_event): Change prototype.
2624 * thread-fsm.c: New file.
2625 * thread-fsm.h: New file.
2626 * thread.c: Include "thread-fsm.h".
2627 (thread_cancel_execution_command): New function.
2628 (clear_thread_inferior_resources): Call it.
2629 * cli/cli-interp.c (cli_on_normal_stop): New function.
2630 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2631 observer.
2632 * mi/mi-interp.c: Include "thread-fsm.h".
2633 (restore_current_uiout_cleanup): Delete.
2634 (mi_on_normal_stop): If the thread has an FSM associated, and it
2635 finished, ask it for the async-reply-reason to print. Always call
2636 print_stop_event here, regardless of the top-level interpreter.
2637 Check bpstat_what to tell whether an asynchronous breakpoint hit
2638 triggered.
2639 * tui/tui-interp.c (tui_on_normal_stop): New function.
2640 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2641
0b333c5e
PA
26422015-09-09 Pedro Alves <palves@redhat.com>
2643
2644 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2645 check whether the target can async.
2646 * inf-loop.c (inferior_event_handler): Only call target_async if
2647 the target can async.
2648 * infcall.c: Include top.h and interps.h.
2649 (run_inferior_call): For the interpreter to sync mode while
2650 running the infcall. Call wait_sync_command_done instead of
2651 wait_for_inferior plus normal_stop.
2652 * infcmd.c (prepare_execution_command): Don't check whether the
2653 target can async when running in the foreground.
2654 (step_1): Delete synchronous case handling.
2655 (step_once): Always install a continuation, even in sync mode.
2656 (until_next_command, finish_forward): Don't check whether the
2657 target can async.
2658 (attach_command_post_wait, notice_new_inferior): Always install a
2659 continuation, even in sync mode.
2660 * infrun.c (mark_infrun_async_event_handler): New function.
2661 (proceed): In sync mode, mark infrun's event source instead of
2662 waiting for events here.
2663 (fetch_inferior_event): If the target can't async, do a blocking
2664 wait.
2665 (prepare_to_wait): In sync mode, mark infrun's event source.
2666 (infrun_async_inferior_event_handler): No longer bail out if the
2667 target can't async.
2668 * infrun.h (mark_infrun_async_event_handler): New declaration.
2669 * linux-nat.c (linux_nat_wait_1): Remove calls to
2670 set_sigint_trap/clear_sigint_trap.
2671 (linux_nat_terminal_inferior): No longer check whether the target
2672 can async.
2673 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2674 comment.
2675 (mi_execute_command_input_handler): No longer check whether the
2676 target is async. Update and simplify comment.
2677 * target.c (default_target_wait): New function.
2678 * target.h (struct target_ops) <to_wait>: Now defaults to
2679 default_target_wait.
2680 (default_target_wait): Declare.
2681 * top.c (wait_sync_command_done): New function, factored out from
2682 ...
2683 (maybe_wait_sync_command_done): ... this.
2684 * top.h (wait_sync_command_done): Declare.
2685 * target-delegates.c: Regenerate.
2686
0568462b
MM
26872015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2688
2689 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2690 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2691 Remove include of sys/utsname.h.
2692 (linux_determine_kernel_ptr_bits): Remove.
2693 (linux_determine_kernel_start): New.
2694 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2695 Update check.
2696 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2697 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2698 initialization.
2699 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2700 assignment.
2701
72e02483
PA
27022015-09-07 Pedro Alves <palves@redhat.com>
2703
2704 * guile/guile-internal.h (as_a_scm_t_subr): New.
2705 * guile/guile.c (misc_guile_functions): Use it.
2706 * guile/scm-arch.c (arch_functions): Use it.
2707 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2708 Use it.
2709 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2710 * guile/scm-cmd.c (command_functions): Use it.
2711 * guile/scm-disasm.c (disasm_functions): Use it.
2712 * guile/scm-exception.c (exception_functions)
2713 (private_exception_functions): Use it.
2714 * guile/scm-frame.c (frame_functions)
2715 * guile/scm-gsmob.c (gsmob_functions): Use it.
2716 * guile/scm-iterator.c (iterator_functions): Use it.
2717 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2718 * guile/scm-math.c (math_functions): Use it.
2719 * guile/scm-objfile.c (objfile_functions): Use it.
2720 * guile/scm-param.c (parameter_functions): Use it.
2721 * guile/scm-ports.c (port_functions, private_port_functions): Use
2722 it.
2723 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2724 * guile/scm-progspace.c (pspace_functions): Use it.
2725 * guile/scm-string.c (string_functions): Use it.
2726 * guile/scm-symbol.c (symbol_functions): Use it.
2727 * guile/scm-symtab.c (symtab_functions): Use it.
2728 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2729 it.
2730 * guile/scm-value.c (value_functions): Use it.
2731
e65b5245
AB
27322015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2735 (tui_next_win): Likewise.
2736 (tui_prev_win): Likewise.
2737 (tui_partial_win_by_name): Likewise.
2738 (tui_init_generic_part): Likewise.
2739 (init_content_element): Likewise.
2740 (tui_del_window): Likewise.
2741 (tui_free_window): Likewise.
2742 (tui_del_data_windows): Likewise.
2743 (tui_free_data_content): Likewise.
2744 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2745 * tui/tui-regs.c (tui_show_register_group): Likewise.
2746 * tui/tui-win.c (tui_resize_all): Likewise.
2747 (tui_set_focus): Likewise.
2748 (tui_set_win_height): Likewise.
2749 (make_invisible_and_set_new_height): Likewise.
2750 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2751 * tui/tui-wingeneral.c (make_visible): Likewise.
2752
b03e6ad9
AB
27532015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2754
2755 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2756
be903358
AB
27572015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2760 pointer.
2761 * dbxread.c (dbx_end_psymtab): Likewise.
2762 * gnu-nat.c (gnu_write_inferior): Likewise.
2763 * mdebugread.c (cross_ref): Likewise.
2764 * p-valprint.c (pascal_val_print): Likewise.
2765 * xcoffread.c (xcoff_end_psymtab): Likewise.
2766
02f024f9
YQ
27672015-09-04 Yao Qi <yao.qi@linaro.org>
2768
2769 * NEWS: Mention the aarch64 multi-arch debugging support.
2770
cd7c1778
PMR
27712015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2772
2773 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2774 type instead of a TYPE_CODE_INT one for the string_char_type
2775 and the ada_primitive_type_char types.
2776
39edd165
YQ
27772015-09-03 Yao Qi <yao.qi@linaro.org>
2778
2779 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2780 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2781 aarch64_linux_region_ok_for_watchpoint.
2782 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2783 New function.
2784 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2785 Declare it.
2786
6c214e7c
PP
27872015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2788
2789 * gdb_obstack.h (obstack_strdup): Declare.
2790 * gdb_obstack.c (obstack_strdup): Define.
2791 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2792 * gdbarch.c: Regenerate.
2793 * gdbarch.h: Regenerate.
2794 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2795
eed8b28a
PP
27962015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2797
2798 * gdbtypes.c (copy_type_recursive): Update documentation.
2799
73c6b475
SDJ
28002015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2801
2802 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2803 as zero.
2804
ad1c917a
SDJ
28052015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2806
2807 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2808
3bd7e5b7
SDJ
28092015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2810
2811 * solib-svr4.c (solib_event_probe_action): Call
2812 get_probe_argument_count using TRY...CATCH.
2813 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2814
f469e8ce
SDJ
28152015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2816
2817 * probe.h (struct probe_ops) <get_probe_argument_count,
2818 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2819 the comment that the function can throw an exception.
2820 (get_probe_argument_count): Likewise.
2821 (evaluate_probe_argument): Likewise.
2822 * stap-probe.c (stap_get_opcode): Call error instead of
2823 internal_error.
2824 (stap_get_expected_argument_type): Likewise. Add argument
2825 'probe'. Improve error message by mentioning the probe's name.
2826 (stap_parse_probe_arguments): Adjust call to
2827 stap_get_expected_argument_type.
2828 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2829 not zero. Call internal_error if GDB requests an argument but the
2830 probe has no arguments.
2831
dc5c8746
PMR
28322015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2833
2834 * ada-lang.c (ada_resolve_function): Do not ask the user what
2835 match to use when in completion mode.
2836
136765ea
AB
28372015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2840 cast of NULL.
2841
90b81c5f
MF
28422015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2843
2844 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2845 call_abi using XSHAL_ABI macro.
2846
1cd36e54
DE
28472015-08-29 Doug Evans <xdje42@gmail.com>
2848
2849 * symtab.h (struct symbol): Tweak comment.
2850
8f57eec2
PP
28512015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2852
2853 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2854 gdbarch obstack instead of on the heap. Update commentary
2855 accordingly.
2856
38eebd71
JB
28572015-08-28 Joel Brobecker <brobecker@adacore.com>
2858
2859 GDB 7.10 released.
2860
d63dd61e
SM
28612015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2862
2863 * NEWS: Update entry about non-8-bits addressable memory.
2864
6f059256
UW
28652015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2866
2867 Revert:
2868 2014-11-06 Doug Evans <xdje42@gmail.com>
2869 * solib.c (solib_global_lookup): Fetch arch from objfile,
2870 not target_gdbarch.
2871
70987a92 28722015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2873
2874 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2875 attempt to relocate a TLS variable offset.
2876
70987a92 28772015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2878
2879 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2880 registered yet. Set inferior_ptid while calling target_read_memory.
2881
70987a92 28822015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2883
2884 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2885 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2886 * linux-nat.c (check_stopped_by_breakpoint): Use
2887 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2888
70987a92 28892015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2890
2891 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2892 thread was not yet discovered, use thread_from_lwp instead of
2893 calling thread_db_find_new_threads_1.
2894
f5cdf498
SM
28952015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2896
2897 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2898 statements.
2899
fd2ae5d6
SM
29002015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2901
2902 * NEWS: Document support for non-8-bits addressable memory.
2903
14d88147
PA
29042015-08-27 Pedro Alves <palves@redhat.com>
2905
2906 * configure.ac: Remove AC_TYPE_SIGNAL call.
2907 * configure, config.in: Regenerate.
2908
a40805d4
PA
29092015-08-27 Pedro Alves <palves@redhat.com>
2910
2911 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2912 * extension-priv.h: Include signal.h.
2913 (struct signal_handler) <handler>: Change type to sighandler_t.
2914 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2915 * inflow.c (sigint_ours, sigquit_ours): Change type to
2916 sighandler_t.
2917 (child_terminal_inferior): Remove casts.
2918 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2919 (osig): Change type to sighandler_t.
2920 * nto-procfs.c (ofunc): Change type to sighandler_t.
2921 (procfs_wait): Remove casts.
2922 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2923 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2924 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2925
0750520d
PA
29262015-08-27 Pedro Alves <palves@redhat.com>
2927
2928 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2929 * gnulib/aclocal.m4: Renegerate.
2930 * gnulib/config.in: Renegerate.
2931 * gnulib/configure: Renegerate.
2932 * gnulib/import/Makefile.am: Update.
2933 * gnulib/import/Makefile.in: Regenerate.
2934 * gnulib/import/m4/gnulib-cache.m4: Update.
2935 * gnulib/import/m4/gnulib-comp.m4: Update.
2936 * gnulib/import/m4/signal_h.m4: New file.
2937 * gnulib/import/signal.in.h: New file.
2938
a5c0808e
PA
29392015-08-27 Pedro Alves <palves@redhat.com>
2940
2941 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2942 (MIN_MEMORY_PACKET_SIZE): New.
2943 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2944 (get_memory_packet_size): Adjust. No longer limit the max packet
2945 size.
2946 (set_memory_packet_size): Adjust, and remove dead code.
2947 (remote_check_symbols): Use xmalloc and a cleanup instead of
2948 alloca.
2949 (remote_packet_size): No longer cap the packet size.
2950 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2951
cdaec3f3
LM
29522015-08-26 Luis Machado <lgustavo@codesourcery.com>
2953
2954 * compile/compile.c (compile_to_object): Mention language in
2955 error message.
2956
e9756d52
PP
29572015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2958
2959 * target.c (target_pre_inferior): Unset attach_flag.
2960
1dc7a623
SM
29612015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2962
2963 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2964 * gdbarch.c: Re-generate.
2965
8d749320
SM
29662015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2967
6711b7f8
SM
2968 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2969 function with the XNEW-family equivalent.
8d749320
SM
2970 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2971 * ada-exp.y (write_ambiguous_var): Likewise.
2972 * ada-lang.c (resolve_subexp): Likewise.
2973 (user_select_syms): Likewise.
2974 (assign_aggregate): Likewise.
2975 (ada_evaluate_subexp): Likewise.
2976 (cache_symbol): Likewise.
2977 * addrmap.c (allocate_key): Likewise.
2978 (addrmap_create_mutable): Likewise.
2979 * aix-thread.c (sync_threadlists): Likewise.
2980 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2981 (alpha_gdbarch_init): Likewise.
2982 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2983 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2984 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2985 * arm-tdep.c (push_stack_item): Likewise.
2986 (arm_displaced_step_copy_insn): Likewise.
2987 (arm_gdbarch_init): Likewise.
2988 (_initialize_arm_tdep): Likewise.
2989 * avr-tdep.c (push_stack_item): Likewise.
2990 * ax-general.c (new_agent_expr): Likewise.
2991 * block.c (block_initialize_namespace): Likewise.
2992 * breakpoint.c (alloc_counted_command_line): Likewise.
2993 (update_dprintf_command_list): Likewise.
2994 (parse_breakpoint_sals): Likewise.
2995 (decode_static_tracepoint_spec): Likewise.
2996 (until_break_command): Likewise.
2997 (clear_command): Likewise.
2998 (update_global_location_list): Likewise.
2999 (get_breakpoint_objfile_data) Likewise.
3000 * btrace.c (ftrace_new_function): Likewise.
3001 (btrace_set_insn_history): Likewise.
3002 (btrace_set_call_history): Likewise.
3003 * buildsym.c (add_symbol_to_list): Likewise.
3004 (record_pending_block): Likewise.
3005 (start_subfile): Likewise.
3006 (start_buildsym_compunit): Likewise.
3007 (push_subfile): Likewise.
3008 (end_symtab_get_static_block): Likewise.
3009 (buildsym_init): Likewise.
3010 * cli/cli-cmds.c (source_command): Likewise.
3011 * cli/cli-decode.c (add_cmd): Likewise.
3012 * cli/cli-script.c (build_command_line): Likewise.
3013 (setup_user_args): Likewise.
3014 (realloc_body_list): Likewise.
3015 (process_next_line): Likewise.
3016 (copy_command_lines): Likewise.
3017 * cli/cli-setshow.c (do_set_command): Likewise.
3018 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3019 * coffread.c (coff_locate_sections): Likewise.
3020 (coff_symtab_read): Likewise.
3021 (coff_read_struct_type): Likewise.
3022 * common/cleanups.c (make_my_cleanup2): Likewise.
3023 * common/common-exceptions.c (throw_it): Likewise.
3024 * common/filestuff.c (make_cleanup_close): Likewise.
3025 * common/format.c (parse_format_string): Likewise.
3026 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3027 * compile/compile-object-load.c (munmap_list_add): Likewise.
3028 (compile_object_load): Likewise.
3029 * compile/compile-object-run.c (compile_object_run): Likewise.
3030 * compile/compile.c (append_args): Likewise.
3031 * corefile.c (specify_exec_file_hook): Likewise.
3032 * cp-support.c (make_symbol_overload_list): Likewise.
3033 * cris-tdep.c (push_stack_item): Likewise.
3034 (cris_gdbarch_init): Likewise.
3035 * ctf.c (ctf_trace_file_writer_new): Likewise.
3036 * dbxread.c (init_header_files): Likewise.
3037 (add_new_header_file): Likewise.
3038 (init_bincl_list): Likewise.
3039 (dbx_end_psymtab): Likewise.
3040 (start_psymtab): Likewise.
3041 (dbx_end_psymtab): Likewise.
3042 * dcache.c (dcache_init): Likewise.
3043 * dictionary.c (dict_create_hashed): Likewise.
3044 (dict_create_hashed_expandable): Likewise.
3045 (dict_create_linear): Likewise.
3046 (dict_create_linear_expandable): Likewise.
3047 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3048 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3049 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3050 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3051 (decode_frame_entry_1): Likewise.
3052 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3053 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3054 * dwarf2read.c (dwarf2_has_info): Likewise.
3055 (create_signatured_type_table_from_index): Likewise.
3056 (dwarf2_read_index): Likewise.
3057 (dw2_get_file_names_reader): Likewise.
3058 (create_all_type_units): Likewise.
3059 (read_cutu_die_from_dwo): Likewise.
3060 (init_tu_and_read_dwo_dies): Likewise.
3061 (init_cutu_and_read_dies): Likewise.
3062 (create_all_comp_units): Likewise.
3063 (queue_comp_unit): Likewise.
3064 (inherit_abstract_dies): Likewise.
3065 (read_call_site_scope): Likewise.
3066 (dwarf2_add_field): Likewise.
3067 (dwarf2_add_typedef): Likewise.
3068 (dwarf2_add_member_fn): Likewise.
3069 (attr_to_dynamic_prop): Likewise.
3070 (abbrev_table_alloc_abbrev): Likewise.
3071 (abbrev_table_read_table): Likewise.
3072 (add_include_dir): Likewise.
3073 (add_file_name): Likewise.
3074 (dwarf_decode_line_header): Likewise.
3075 (dwarf2_const_value_attr): Likewise.
3076 (dwarf_alloc_block): Likewise.
3077 (parse_macro_definition): Likewise.
3078 (set_die_type): Likewise.
3079 (write_psymtabs_to_index): Likewise.
3080 (create_cus_from_index): Likewise.
3081 (dwarf2_create_include_psymtab): Likewise.
3082 (process_psymtab_comp_unit_reader): Likewise.
3083 (build_type_psymtab_dependencies): Likewise.
3084 (read_comp_units_from_section): Likewise.
3085 (compute_compunit_symtab_includes): Likewise.
3086 (create_dwo_unit_in_dwp_v1): Likewise.
3087 (create_dwo_unit_in_dwp_v2): Likewise.
3088 (read_func_scope): Likewise.
3089 (process_structure_scope): Likewise.
3090 (mark_common_block_symbol_computed): Likewise.
3091 (load_partial_dies): Likewise.
3092 (dwarf2_symbol_mark_computed): Likewise.
3093 * elfread.c (elf_symfile_segments): Likewise.
3094 (elf_read_minimal_symbols): Likewise.
3095 * environ.c (make_environ): Likewise.
3096 * eval.c (evaluate_subexp_standard): Likewise.
3097 * event-loop.c (create_file_handler): Likewise.
3098 (create_async_signal_handler): Likewise.
3099 (create_async_event_handler): Likewise.
3100 (create_timer): Likewise.
3101 * exec.c (build_section_table): Likewise.
3102 * fbsd-nat.c (fbsd_remember_child): Likewise.
3103 * fork-child.c (fork_inferior): Likewise.
3104 * frv-tdep.c (new_variant): Likewise.
3105 * gdbarch.sh (gdbarch_alloc): Likewise.
3106 (append_name): Likewise.
3107 * gdbtypes.c (rank_function): Likewise.
3108 (copy_type_recursive): Likewise.
3109 (add_dyn_prop): Likewise.
3110 * gnu-nat.c (make_proc): Likewise.
3111 (make_inf): Likewise.
3112 (gnu_write_inferior): Likewise.
3113 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3114 (build_std_type_info_type): Likewise.
3115 * guile/scm-param.c (compute_enum_list): Likewise.
3116 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3117 * guile/scm-value.c (gdbscm_value_call): Likewise.
3118 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3119 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3120 (read_unwind_info): Likewise.
3121 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3122 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3123 (call_function_by_hand_dummy): Likewise.
3124 * infcmd.c (step_once): Likewise.
3125 (finish_forward): Likewise.
3126 (attach_command): Likewise.
3127 (notice_new_inferior): Likewise.
3128 * inferior.c (add_inferior_silent): Likewise.
3129 * infrun.c (add_displaced_stepping_state): Likewise.
3130 (save_infcall_control_state): Likewise.
3131 (save_inferior_ptid): Likewise.
3132 (_initialize_infrun): Likewise.
3133 * jit.c (bfd_open_from_target_memory): Likewise.
3134 (jit_gdbarch_data_init): Likewise.
3135 * language.c (add_language): Likewise.
3136 * linespec.c (decode_line_2): Likewise.
3137 * linux-nat.c (add_to_pid_list): Likewise.
3138 (add_initial_lwp): Likewise.
3139 * linux-thread-db.c (add_thread_db_info): Likewise.
3140 (record_thread): Likewise.
3141 (info_auto_load_libthread_db): Likewise.
3142 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3144 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3145 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3146 * macrocmd.c (macro_define_command): Likewise.
3147 * macroexp.c (gather_arguments): Likewise.
3148 * macroscope.c (sal_macro_scope): Likewise.
3149 * macrotab.c (new_macro_table): Likewise.
3150 * mdebugread.c (push_parse_stack): Likewise.
3151 (parse_partial_symbols): Likewise.
3152 (parse_symbol): Likewise.
3153 (psymtab_to_symtab_1): Likewise.
3154 (new_block): Likewise.
3155 (new_psymtab): Likewise.
3156 (mdebug_build_psymtabs): Likewise.
3157 (add_pending): Likewise.
3158 (elfmdebug_build_psymtabs): Likewise.
3159 * mep-tdep.c (mep_gdbarch_init): Likewise.
3160 * mi/mi-main.c (mi_execute_command): Likewise.
3161 * mi/mi-parse.c (mi_parse_argv): Likewise.
3162 * minidebug.c (lzma_open): Likewise.
3163 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3164 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3165 * mips-tdep.c (mips_gdbarch_init): Likewise.
3166 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3167 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3168 * mt-tdep.c (mt_registers_info): Likewise.
3169 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3170 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3171 (linux_enable_pt): Likewise.
3172 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3173 (linux_xfer_osdata_processgroups): Likewise.
3174 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3175 * nto-procfs.c (procfs_meminfo): Likewise.
3176 * objc-lang.c (start_msglist): Likewise.
3177 (selectors_info): Likewise.
3178 (classes_info): Likewise.
3179 (find_methods): Likewise.
3180 * objfiles.c (allocate_objfile): Likewise.
3181 (update_section_map): Likewise.
3182 * osabi.c (gdbarch_register_osabi): Likewise.
3183 (gdbarch_register_osabi_sniffer): Likewise.
3184 * parse.c (start_arglist): Likewise.
3185 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3186 (hwdebug_insert_point): Likewise.
3187 * printcmd.c (display_command): Likewise.
3188 (ui_printf): Likewise.
3189 * procfs.c (create_procinfo): Likewise.
3190 (load_syscalls): Likewise.
3191 (proc_get_LDT_entry): Likewise.
3192 (proc_update_threads): Likewise.
3193 * prologue-value.c (make_pv_area): Likewise.
3194 (pv_area_store): Likewise.
3195 * psymtab.c (extend_psymbol_list): Likewise.
3196 (init_psymbol_list): Likewise.
3197 (allocate_psymtab): Likewise.
3198 * python/py-inferior.c (add_thread_object): Likewise.
3199 * python/py-param.c (compute_enum_values): Likewise.
3200 * python/py-value.c (valpy_call): Likewise.
3201 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3202 * python/python.c (ensure_python_env): Likewise.
3203 * record-btrace.c (record_btrace_start_replaying): Likewise.
3204 * record-full.c (record_full_reg_alloc): Likewise.
3205 (record_full_mem_alloc): Likewise.
3206 (record_full_end_alloc): Likewise.
3207 (record_full_core_xfer_partial): Likewise.
3208 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3209 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3210 * remote-notif.c (remote_notif_state_allocate): Likewise.
3211 * remote.c (demand_private_info): Likewise.
3212 (remote_notif_stop_alloc_reply): Likewise.
3213 (remote_enable_btrace): Likewise.
3214 * reverse.c (save_bookmark_command): Likewise.
3215 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3216 * rx-tdep.c (rx_gdbarch_init): Likewise.
3217 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3218 * ser-go32.c (dos_get_tty_state): Likewise.
3219 (dos_copy_tty_state): Likewise.
3220 * ser-mingw.c (ser_windows_open): Likewise.
3221 (ser_console_wait_handle): Likewise.
3222 (ser_console_get_tty_state): Likewise.
3223 (make_pipe_state): Likewise.
3224 (net_windows_open): Likewise.
3225 * ser-unix.c (hardwire_get_tty_state): Likewise.
3226 (hardwire_copy_tty_state): Likewise.
3227 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3228 * solib-dsbt.c (dsbt_current_sos): Likewise.
3229 (dsbt_relocate_main_executable): Likewise.
3230 * solib-frv.c (frv_current_sos): Likewise.
3231 (frv_relocate_main_executable): Likewise.
3232 * solib-spu.c (spu_bfd_fopen): Likewise.
3233 * solib-svr4.c (lm_info_read): Likewise.
3234 (svr4_copy_library_list): Likewise.
3235 (svr4_default_sos): Likewise.
3236 * source.c (find_source_lines): Likewise.
3237 (line_info): Likewise.
3238 (add_substitute_path_rule): Likewise.
3239 * spu-linux-nat.c (spu_bfd_open): Likewise.
3240 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3241 * stabsread.c (dbx_lookup_type): Likewise.
3242 (read_type): Likewise.
3243 (read_member_functions): Likewise.
3244 (read_struct_fields): Likewise.
3245 (read_baseclasses): Likewise.
3246 (read_args): Likewise.
3247 (_initialize_stabsread): Likewise.
3248 * stack.c (func_command): Likewise.
3249 * stap-probe.c (handle_stap_probe): Likewise.
3250 * symfile.c (addrs_section_sort): Likewise.
3251 (addr_info_make_relative): Likewise.
3252 (load_section_callback): Likewise.
3253 (add_symbol_file_command): Likewise.
3254 (init_filename_language_table): Likewise.
3255 * symtab.c (create_filename_seen_cache): Likewise.
3256 (sort_search_symbols_remove_dups): Likewise.
3257 (search_symbols): Likewise.
3258 * target.c (make_cleanup_restore_target_terminal): Likewise.
3259 * thread.c (new_thread): Likewise.
3260 (enable_thread_stack_temporaries): Likewise.
3261 (make_cleanup_restore_current_thread): Likewise.
3262 (thread_apply_all_command): Likewise.
3263 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3264 * top.c (gdb_readline_wrapper): Likewise.
3265 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3266 * tracepoint.c (trace_find_line_command): Likewise.
3267 (all_tracepoint_actions_and_cleanup): Likewise.
3268 (make_cleanup_restore_current_traceframe): Likewise.
3269 (get_uploaded_tp): Likewise.
3270 (get_uploaded_tsv): Likewise.
3271 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3272 (tui_alloc_win_info): Likewise.
3273 (tui_alloc_content): Likewise.
3274 (tui_add_content_elements): Likewise.
3275 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3276 (tui_set_disassem_content): Likewise.
3277 * ui-file.c (ui_file_new): Likewise.
3278 (stdio_file_new): Likewise.
3279 (tee_file_new): Likewise.
3280 * utils.c (make_cleanup_restore_integer): Likewise.
3281 (add_internal_problem_command): Likewise.
3282 * v850-tdep.c (v850_gdbarch_init): Likewise.
3283 * valops.c (find_oload_champ): Likewise.
3284 * value.c (allocate_value_lazy): Likewise.
3285 (record_latest_value): Likewise.
3286 (create_internalvar): Likewise.
3287 * varobj.c (install_variable): Likewise.
3288 (new_variable): Likewise.
3289 (new_root_variable): Likewise.
3290 (cppush): Likewise.
3291 (_initialize_varobj): Likewise.
3292 * windows-nat.c (windows_make_so): Likewise.
3293 * x86-nat.c (x86_add_process): Likewise.
3294 * xcoffread.c (arrange_linetable): Likewise.
3295 (allocate_include_entry): Likewise.
3296 (process_linenos): Likewise.
3297 (SYMBOL_DUP): Likewise.
3298 (xcoff_start_psymtab): Likewise.
3299 (xcoff_end_psymtab): Likewise.
3300 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3301 * xtensa-tdep.c (xtensa_register_type): Likewise.
3302 * gdbarch.c: Regenerate.
3303 * gdbarch.h: Regenerate.
3304
17d8546e
DB
33052015-08-25 Don Breazeal <donb@codesourcery.com>
3306
3307 * infrun.c (follow_exec): Re-order operations for
3308 handling follow-exec-mode "new".
3309 (handle_inferior_event_1): Assign ecs->event_thread
3310 to the current thread.
3311 * remote.c (get_remote_arch_state): Add an assertion.
3312
ba49e44b
PA
33132015-08-26 Pedro Alves <palves@redhat.com>
3314
3315 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3316
7541ab03 33172015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3318
7541ab03 3319 PR gdb/18804
abc56d60
PA
3320 * defs.h (maybe_quit): Declare.
3321 (QUIT): Now calls maybe_quit.
3322 * event-loop.c (clear_async_signal_handler)
3323 (async_signal_handler_is_marked): New functions.
3324 * event-loop.h (async_signal_handler_is_marked)
3325 (clear_async_signal_handler): New declarations.
3326 * remote.c (remote_check_pending_interrupt): New function.
3327 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3328 longer check whether the target is async. If waiting for a stop
3329 reply, and a Ctrl-C as been sent to the target, offer to
3330 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3331 Otherwise do not disconnect and throw a quit.
3332 (_initialize_remote): Install remote_check_pending_interrupt as
3333 to_check_pending_interrupt.
3334 * target.c (target_check_pending_interrupt): New function.
3335 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3336 field.
3337 (target_check_pending_interrupt): New declaration.
3338 * utils.c (maybe_quit): New function.
3339 * target-delegates.c: Regenerate.
3340
dfe7f77c
YQ
33412015-08-25 Yao Qi <yao.qi@linaro.org>
3342
3343 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3344 Rename local variable pid to tid, and get lwpid of lwp. Update
3345 debug output.
3346
63e43d3a
PMR
33472015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3348
3349 * ada-lang.c (ada_read_var_value): Add a var_block argument
3350 and pass it to default_read_var_value.
3351 * block.c (block_static_link): New accessor.
3352 * block.h (block_static_link): Declare it.
3353 * buildsym.c (finish_block_internal): Add a static_link
3354 argument. If there is a static link, associate it to the new
3355 block.
3356 (finish_block): Add a static link argument and pass it to
3357 finish_block_internal.
3358 (end_symtab_get_static_block): Update calls to finish_block and
3359 to finish_block_internal.
3360 (end_symtab_with_blockvector): Update call to
3361 finish_block_internal.
3362 * buildsym.h: Forward-declare struct dynamic_prop.
3363 (struct context_stack): Add a static_link field.
3364 (finish_block): Add a static link argument.
3365 * c-exp.y: Remove an obsolete comment (evaluation of variables
3366 already start from the selected frame, and now they climb *up*
3367 the call stack) and propagate the block information to the
3368 produced expression.
3369 * d-exp.y: Likewise.
3370 * f-exp.y: Likewise.
3371 * go-exp.y: Likewise.
3372 * jv-exp.y: Likewise.
3373 * m2-exp.y: Likewise.
3374 * p-exp.y: Likewise.
3375 * coffread.c (coff_symtab_read): Update calls to finish_block.
3376 * dbxread.c (process_one_symbol): Likewise.
3377 * xcoffread.c (read_xcoff_symtab): Likewise.
3378 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3379 "sym" parameter to struct block_symbol, update its uses and pass
3380 its block to calls to read_var_value.
3381 (convert_symbol_sym): Update the calls to convert_one_symbol.
3382 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3383 call to read_var_value.
3384 * dwarf2loc.c (block_op_get_frame_base): New.
3385 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3386 get_frame_base method.
3387 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3388 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3389 instead of the selected frame in order to evaluate the
3390 expression.
3391 (dwarf2_evaluate_property): Add a frame argument. Update call
3392 to dwarf2_locexpr_baton_eval to provide a frame in available and
3393 to handle the absence of address stack.
3394 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3395 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3396 declaration.
3397 (read_func_scope): Record any available static link description.
3398 Update call to finish_block.
3399 (read_lexical_block_scope): Update call to finish_block.
3400 * findvar.c (follow_static_link): New.
3401 (get_hosting_frame): New.
3402 (default_read_var_value): Add a var_block argument. Use
3403 get_hosting_frame to handle non-local references.
3404 (read_var_value): Add a var_block argument and pass it to the
3405 LA_READ_VAR_VALUE method.
3406 * gdbtypes.c (resolve_dynamic_range): Update calls to
3407 dwarf2_evaluate_property.
3408 (resolve_dynamic_type_internal): Likewise.
3409 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3410 read_var_value, passing it the block coming from symbol lookup.
3411 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3412 read_var_value (TODO).
3413 * infcmd.c (finish_command_continuation): Update call to
3414 read_var_value, passing it the block coming from symbol lookup.
3415 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3416 * language.h (struct language_defn): Add a var_block argument to
3417 the LA_READ_VAR_VALUE method.
3418 * objfiles.c (struct static_link_htab_entry): New.
3419 (static_link_htab_entry_hash): New.
3420 (static_link_htab_entry_eq): New.
3421 (objfile_register_static_link): New.
3422 (objfile_lookup_static_link): New.
3423 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3424 * objfiles.h: Include hashtab.h.
3425 (struct objfile): Add a static_links field.
3426 (objfile_register_static_link): New.
3427 (objfile_lookup_static_link): New.
3428 * printcmd.c (print_variable_and_value): Update call to
3429 read_var_value.
3430 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3431 * python/py-frame.c (frapy_read_var): Update call to
3432 read_var_value, passing it the block coming from symbol lookup.
3433 * python/py-framefilter.c (extract_sym): Add a sym_block
3434 parameter and set the pointed value to NULL (TODO).
3435 (enumerate_args): Update call to extract_sym.
3436 (enumerate_locals): Update calls to extract_sym and to
3437 read_var_value.
3438 * python/py-symbol.c (sympy_value): Update call to
3439 read_var_value (TODO).
3440 * stack.c (read_frame_local): Update call to read_var_value.
3441 (read_frame_arg): Likewise.
3442 (return_command): Likewise.
3443 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3444 method.
3445 (struct symbol): Add a block field.
3446 (SYMBOL_BLOCK): New accessor.
3447 * valops.c (value_of_variable): Remove frame/block handling and
3448 pass the block argument to read_var_value, which does this job
3449 now.
3450 (value_struct_elt_for_reference): Update calls to
3451 read_var_value.
3452 (value_of_this): Pass the block found to read_var_value.
3453 * value.h (read_var_value): Add a var_block argument.
3454 (default_read_var_value): Likewise.
3455
ed8b7b42
YQ
34562015-08-25 Yao Qi <yao.qi@linaro.org>
3457
3458 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3459 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3460 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3461
db3cb7cb
YQ
34622015-08-25 Yao Qi <yao.qi@linaro.org>
3463
3464 * Makefile.in (aarch64-liunx.o): New rule.
3465 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3466 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3467 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3468 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3469 extern.
3470 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3471 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3472 * nat/aarch64-linux.c: New file.
3473 * nat/aarch64-linux.h: New file.
3474
f6011a1c
YQ
34752015-08-25 Yao Qi <yao.qi@linaro.org>
3476
3477 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3478 lwp_arch_private_info and ptid_of_lwp.
3479
5e35436e
YQ
34802015-08-25 Yao Qi <yao.qi@linaro.org>
3481
3482 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3483 Move it to nat/aarch64-linux-hw-point.c.
3484 (debug_reg_change_callback): Likewise.
3485 (aarch64_notify_debug_reg_change): :Likewise.
3486 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3487 (aarch64_dr_update_callback_param): New.
3488 (debug_reg_change_callback): New function.
3489 (aarch64_notify_debug_reg_change): Likewise.
3490 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3491 Remove the declaration.
3492
4a8a7965
YQ
34932015-08-25 Yao Qi <yao.qi@linaro.org>
3494
3495 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3496 Call current_lwp_ptid.
3497
32a271ee
YQ
34982015-08-25 Yao Qi <yao.qi@linaro.org>
3499
3500 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3501 debug_printf.
3502
5e137137
YQ
35032015-08-25 Yao Qi <yao.qi@linaro.org>
3504
3505 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3506 ptid_get_pid rather than ptid_get_lwp.
3507
73b8c1fd
PA
35082015-08-24 Pedro Alves <palves@redhat.com>
3509
3510 * NEWS (New commands): Mention set/show remote
3511 multiprocess-extensions-packet.
3512 * remote.c (remote_query_supported): Only tell the server to use
3513 the multiprocess extensions if the user hasn't force-disabled them
3514 with "set remote multiprocess-extensions-packet off".
3515
4a626d0a
PA
35162015-08-24 Pedro Alves <palves@redhat.com>
3517
3518 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3519 1029a8112290f6eee9d7878a391c49db42c999bd.
3520 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3521 Regenerate.
3522 * gnulib/import/Makefile.am: Update.
3523 * gnulib/import/Makefile.in: Update.
3524 * gnulib/import/alloca.in.h: Update.
3525 * gnulib/import/basename-lgpl.c: Update.
3526 * gnulib/import/canonicalize-lgpl.c: Update.
3527 * gnulib/import/config.charset: Update.
3528 * gnulib/import/dirent.in.h: Update.
3529 * gnulib/import/dirfd.c: Update.
3530 * gnulib/import/dirname-lgpl.c: Update.
3531 * gnulib/import/dirname.h: Update.
3532 * gnulib/import/dosname.h: Update.
3533 * gnulib/import/errno.in.h: Update.
3534 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3535 * gnulib/import/extra/snippet/c++defs.h: Update.
3536 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3537 * gnulib/import/extra/update-copyright: Update.
3538 * gnulib/import/float+.h: Update.
3539 * gnulib/import/float.c: Update.
3540 * gnulib/import/float.in.h: Update.
3541 * gnulib/import/fnmatch.c: Update.
3542 * gnulib/import/fnmatch.in.h: Update.
3543 * gnulib/import/fnmatch_loop.c: Update.
3544 * gnulib/import/fpucw.h: Update.
3545 * gnulib/import/frexp.c: Update.
3546 * gnulib/import/frexpl.c: Update.
3547 * gnulib/import/gettimeofday.c: Update.
3548 * gnulib/import/inttypes.in.h: Update.
3549 * gnulib/import/isnan.c: Update.
3550 * gnulib/import/isnand-nolibm.h: Update.
3551 * gnulib/import/isnand.c: Update.
3552 * gnulib/import/isnanl-nolibm.h: Update.
3553 * gnulib/import/isnanl.c: Update.
3554 * gnulib/import/itold.c: Update.
3555 * gnulib/import/localcharset.c: Update.
3556 * gnulib/import/localcharset.h: Update.
3557 * gnulib/import/lstat.c: Update.
3558 * gnulib/import/m4/00gnulib.m4: Update.
3559 * gnulib/import/m4/absolute-header.m4: Update.
3560 * gnulib/import/m4/alloca.m4: Update.
3561 * gnulib/import/m4/canonicalize.m4: Update.
3562 * gnulib/import/m4/codeset.m4: Update.
3563 * gnulib/import/m4/configmake.m4: Update.
3564 * gnulib/import/m4/dirent_h.m4: Update.
3565 * gnulib/import/m4/dirfd.m4: Update.
3566 * gnulib/import/m4/dirname.m4: Update.
3567 * gnulib/import/m4/double-slash-root.m4: Update.
3568 * gnulib/import/m4/eealloc.m4: Update.
3569 * gnulib/import/m4/errno_h.m4: Update.
3570 * gnulib/import/m4/exponentd.m4: Update.
3571 * gnulib/import/m4/exponentl.m4: Update.
3572 * gnulib/import/m4/extensions.m4: Update.
3573 * gnulib/import/m4/extern-inline.m4: Update.
3574 * gnulib/import/m4/fcntl-o.m4: Update.
3575 * gnulib/import/m4/float_h.m4: Update.
3576 * gnulib/import/m4/fnmatch.m4: Update.
3577 * gnulib/import/m4/fpieee.m4: Update.
3578 * gnulib/import/m4/frexp.m4: Update.
3579 * gnulib/import/m4/frexpl.m4: Update.
3580 * gnulib/import/m4/gettimeofday.m4: Update.
3581 * gnulib/import/m4/glibc21.m4: Update.
3582 * gnulib/import/m4/gnulib-cache.m4: Update.
3583 * gnulib/import/m4/gnulib-common.m4: Update.
3584 * gnulib/import/m4/gnulib-comp.m4: Update.
3585 * gnulib/import/m4/gnulib-tool.m4: Update.
3586 * gnulib/import/m4/include_next.m4: Update.
3587 * gnulib/import/m4/inttypes-pri.m4: Update.
3588 * gnulib/import/m4/inttypes.m4: Update.
3589 * gnulib/import/m4/isnand.m4: Update.
3590 * gnulib/import/m4/isnanl.m4: Update.
3591 * gnulib/import/m4/largefile.m4: Update.
3592 * gnulib/import/m4/localcharset.m4: Update.
3593 * gnulib/import/m4/locale-fr.m4: Update.
3594 * gnulib/import/m4/locale-ja.m4: Update.
3595 * gnulib/import/m4/locale-zh.m4: Update.
3596 * gnulib/import/m4/longlong.m4: Update.
3597 * gnulib/import/m4/lstat.m4: Update.
3598 * gnulib/import/m4/malloc.m4: Update.
3599 * gnulib/import/m4/malloca.m4: Update.
3600 * gnulib/import/m4/math_h.m4: Update.
3601 * gnulib/import/m4/mbrtowc.m4: Update.
3602 * gnulib/import/m4/mbsinit.m4: Update.
3603 * gnulib/import/m4/mbsrtowcs.m4: Update.
3604 * gnulib/import/m4/mbstate_t.m4: Update.
3605 * gnulib/import/m4/memchr.m4: Update.
3606 * gnulib/import/m4/memmem.m4: Update.
3607 * gnulib/import/m4/mmap-anon.m4: Update.
3608 * gnulib/import/m4/multiarch.m4: Update.
3609 * gnulib/import/m4/nocrash.m4: Update.
3610 * gnulib/import/m4/off_t.m4: Update.
3611 * gnulib/import/m4/pathmax.m4: Update.
3612 * gnulib/import/m4/readlink.m4: Update.
3613 * gnulib/import/m4/rename.m4: Update.
3614 * gnulib/import/m4/rmdir.m4: Update.
3615 * gnulib/import/m4/ssize_t.m4: Update.
3616 * gnulib/import/m4/stat.m4: Update.
3617 * gnulib/import/m4/stdbool.m4: Update.
3618 * gnulib/import/m4/stddef_h.m4: Update.
3619 * gnulib/import/m4/stdint.m4: Update.
3620 * gnulib/import/m4/stdio_h.m4: Update.
3621 * gnulib/import/m4/stdlib_h.m4: Update.
3622 * gnulib/import/m4/string_h.m4: Update.
3623 * gnulib/import/m4/strstr.m4: Update.
3624 * gnulib/import/m4/strtok_r.m4: Update.
3625 * gnulib/import/m4/sys_socket_h.m4: Update.
3626 * gnulib/import/m4/sys_stat_h.m4: Update.
3627 * gnulib/import/m4/sys_time_h.m4: Update.
3628 * gnulib/import/m4/sys_types_h.m4: Update.
3629 * gnulib/import/m4/time_h.m4: Update.
3630 * gnulib/import/m4/unistd_h.m4: Update.
3631 * gnulib/import/m4/warn-on-use.m4: Update.
3632 * gnulib/import/m4/wchar_h.m4: Update.
3633 * gnulib/import/m4/wchar_t.m4: Update.
3634 * gnulib/import/m4/wctype_h.m4: Update.
3635 * gnulib/import/m4/wint_t.m4: Update.
3636 * gnulib/import/malloc.c: Update.
3637 * gnulib/import/malloca.c: Update.
3638 * gnulib/import/malloca.h: Update.
3639 * gnulib/import/math.in.h: Update.
3640 * gnulib/import/mbrtowc.c: Update.
3641 * gnulib/import/mbsinit.c: Update.
3642 * gnulib/import/mbsrtowcs-impl.h: Update.
3643 * gnulib/import/mbsrtowcs-state.c: Update.
3644 * gnulib/import/mbsrtowcs.c: Update.
3645 * gnulib/import/memchr.c: Update.
3646 * gnulib/import/memmem.c: Update.
3647 * gnulib/import/pathmax.h: Update.
3648 * gnulib/import/readlink.c: Update.
3649 * gnulib/import/ref-add.sin: Update.
3650 * gnulib/import/ref-del.sin: Update.
3651 * gnulib/import/rename.c: Update.
3652 * gnulib/import/rmdir.c: Update.
3653 * gnulib/import/same-inode.h: Update.
3654 * gnulib/import/stat.c: Update.
3655 * gnulib/import/stdbool.in.h: Update.
3656 * gnulib/import/stddef.in.h: Update.
3657 * gnulib/import/stdint.in.h: Update.
3658 * gnulib/import/stdio.c: Update.
3659 * gnulib/import/stdio.in.h: Update.
3660 * gnulib/import/stdlib.in.h: Update.
3661 * gnulib/import/str-two-way.h: Update.
3662 * gnulib/import/streq.h: Update.
3663 * gnulib/import/string.in.h: Update.
3664 * gnulib/import/stripslash.c: Update.
3665 * gnulib/import/strnlen1.c: Update.
3666 * gnulib/import/strnlen1.h: Update.
3667 * gnulib/import/strstr.c: Update.
3668 * gnulib/import/strtok_r.c: Update.
3669 * gnulib/import/sys_stat.in.h: Update.
3670 * gnulib/import/sys_time.in.h: Update.
3671 * gnulib/import/sys_types.in.h: Update.
3672 * gnulib/import/time.in.h: Update.
3673 * gnulib/import/unistd.in.h: Update.
3674 * gnulib/import/verify.h: Update.
3675 * gnulib/import/wchar.in.h: Update.
3676 * gnulib/import/wctype.in.h: Update.
3677 * gnulib/import/gettimeofday.c: New file.
3678 * gnulib/import/m4/absolute-header.m4: New file.
3679 * gnulib/import/m4/gettimeofday.m4: New file.
3680 * gnulib/import/m4/sys_socket_h.m4: New file.
3681 * gnulib/import/m4/sys_time_h.m4: New file.
3682 * gnulib/import/stdio.c: Delete file.
3683 * gnulib/import/sys_time.in.h: New file.
3684
438e1e42
PA
36852015-08-24 Pedro Alves <palves@redhat.com>
3686
3687 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3688 * common/gdb_sys_time.h: New file.
3689 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3690 * gdb_select.h: Likewise.
3691 * gdb_usleep.c: Likewise.
3692 * maint.c: Likewise.
3693 * mi/mi-main.c: Likewise.
3694 * mi/mi-parse.h: Likewise.
3695 * remote-fileio.c: Likewise.
3696 * remote-m32r-sdi.c: Likewise.
3697 * remote.c: Likewise.
3698 * ser-base.c: Likewise.
3699 * ser-pipe.c: Likewise.
3700 * ser-tcp.c: Likewise.
3701 * ser-unix.c: Likewise.
3702 * symfile.c: Likewise.
3703 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3704 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3705 * utils.c: Likewise.
3706
40e0b271
PA
37072015-08-24 Pedro Alves <palves@redhat.com>
3708
3709 * NEWS: Mention removed support for the various ROM monitors.
3710 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3711 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3712 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3713 gdb_target_obs.
3714 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3715 gdb_target_obs.
3716 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3717 dsrec.o from gdb_target_obs.
3718 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3719 from gdb_target_obs.
3720 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3721 gdb_target_obs.
3722 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3723 dink32-rom.o from gdb_target_obs.
3724 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3725 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3726 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3727 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3728
f8904751
PA
37292015-08-21 Pedro Alves <palves@redhat.com>
3730
3731 * frame.c (null_frame_id): Explicitly zero-initialize.
3732
049412e3
TT
37332015-08-21 Tom Tromey <tromey@redhat.com>
3734
3735 * dwarf2read.c (struct dwarf2_section_info): Rename field
3736 'asection' to 'section'.
3737 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3738 (dwarf2_locate_sections, dwarf2_locate_sections)
3739 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3740 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3741 (dwarf2_locate_v2_dwp_sections): Adjust.
3742
948578a9
PP
37432015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3744
3745 * top.h (gdb_in_secondary_prompt_p): Declare.
3746 * top.c (gdb_secondary_prompt_depth): Define.
3747 (gdb_in_secondary_prompt_p): Define.
3748 (gdb_readline_wrapper_cleanup): Decrement
3749 gdb_secondary_prompt_depth.
3750 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3751 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3752 are in a secondary prompt.
3753
7a8bcb88
PP
37542015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3755
3756 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3757 emit the newline.
3758
2d7711a3
GB
37592015-08-21 Gary Benson <gbenson@redhat.com>
3760
3761 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3762
4313b8c0
GB
37632015-08-21 Gary Benson <gbenson@redhat.com>
3764
3765 * target.h (struct target_ops) <to_fileio_open>: New argument
3766 warn_if_slow. Update comment. All implementations updated.
3767 (target_fileio_open_warn_if_slow): New declaration.
3768 * target.c (target_fileio_open): Renamed as...
3769 (target_fileio_open_1): ...this. New argument warn_if_slow.
3770 Pass warn_if_slow to implementation. Update debug printing.
3771 (target_fileio_open): New function.
3772 (target_fileio_open_warn_if_slow): Likewise.
3773 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3774 target_fileio_open_warn_if_slow.
3775
f36b8719
GB
37762015-08-21 Gary Benson <gbenson@redhat.com>
3777
3778 * nat/linux-namespaces.c (linux_mntns_access_fs):
3779 Do not overwrite old_chain.
3780
40045d91
MF
37812015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3782
3783 * arch/xtensa.h: New file.
3784 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3785 (ps_get_thread_area): New function.
3786 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3787 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3788 * xtensa-tdep.c (osabi.h): New #include.
3789 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3790 xtensa-specific hooks.
3791 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3792 member and move the structure to arch/xtensa.h.
3793
80152258
PA
37942015-08-21 Pedro Alves <palves@redhat.com>
3795
3796 * remote.c (struct readahead_cache): New.
3797 (struct remote_state) <readahead_cache>: New field.
3798 (remote_open_1): Invalidate the cache.
3799 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3800 functions.
3801 (remote_hostio_pwrite): Invalidate the readahead cache.
3802 (remote_hostio_pread): Rename to ...
3803 (remote_hostio_pread_vFile): ... this.
3804 (remote_hostio_pread_from_cache): New function.
3805 (remote_hostio_pread): Reimplement.
3806 (remote_hostio_close): Invalidate the readahead cache.
3807
88fc5eb7
MC
38082015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3809
3810 PR build/18843
3811 * procfs.c: Include "filestuff.h".
3812
6f1cb6ea
PP
38132015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3814
3815 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3816 curch.
3817 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3818 cur_line or curch, instead call wmove().
3819 (init_win_info) [CMD_WIN]: Likewise.
3820 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3821 instead call getcury().
3822 (tui_redisplay_readline): Don't set cur_line or curch.
3823 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3824 getcury().
3825 (tui_cont_sig): Remove call to wmove.
3826 (tui_getc): Don't read cur_line or curch, instead call getcury()
3827 or getyx(). Don't set curch.
3828 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3829 set cur_line or curch. Always move cursor to (0,0).
3830
221e1a37
PA
38312015-08-20 Pedro Alves <palves@redhat.com>
3832
3833 * infrun.c (print_target_wait_results): Make extern.
3834 * infrun.h (print_target_wait_results): Declare.
3835 * remote.c (set_stop_requested_callback): Delete.
3836 (process_initial_stop_replies): New function.
3837 (remote_start_remote): Use it.
3838 (stop_reply_queue_length): New function.
3839
40e3ad0e
PA
38402015-08-20 Pedro Alves <palves@redhat.com>
3841
3842 * dwarf2read.c (process_full_comp_unit): To tell whether
3843 start_subfile managed to deduce a language, test for
3844 language_unknown instead of language_c.
3845
af39b327
PMR
38462015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3847
3848 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3849 matches attributes.
3850
7d45c7c3
KB
38512015-08-19 Kevin Buettner <kevinb@redhat.com>
3852
3853 * dwarf2read.c (dwarf2_string_attr): New function.
3854 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3855 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3856 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3857 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3858 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3859
4d6cceb4
DE
38602015-08-18 Doug Evans <dje@google.com>
3861 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3862
3863 PR mi/18833
3864 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3865 if MI-like.
3866 * mi/mi-out.c: #include "vec.h".
3867 (ui_filep): New type.
3868 (DEV_VEC_P (ui_filep)): New type.
3869 (struct ui_out_data) <buffer, original_buffer>: Delete.
3870 (struct ui_out_data) <streams>: New member.
3871 (mi_ui_out_impl): Add data_destroy field.
3872 (mi_field_string, mi_field_fmt): Update.
3873 (mi_flush, mi_redirect, field_separator): Update.
3874 (mi_open, mi_close): Update.
3875 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3876 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3877 (mi_out_new): Call mi_out_data_ctor.
3878
26d56a93
SL
38792015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3880
3881 * remote.c (strprefix): New.
3882 (remote_parse_stop_reply): Use strprefix instead of strncmp
3883 to ensure exact match of keyword.
3884
566f5e3b
AB
38852015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3886
3887 * gdb_bfd.c (debug_bfd_cache): New variable.
3888 (show_bfd_cache_debug): New function.
3889 (gdb_bfd_open): Add debug logging.
3890 (gdb_bfd_ref): Likewise.
3891 (gdb_bfd_unref): Likewise.
3892 (_initialize_gdb_bfd): Add new set/show command.
3893 * NEWS: Mention new command.
3894
18989b3c
AB
38952015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * gdb_bfd.c (bfd_sharing): New variable.
3898 (show_bfd_sharing): New function.
3899 (gdb_bfd_open): Check bfd_sharing variable.
3900 (_initialize_gdb_bfd): Add new set/show command.
3901 * NEWS: Mention new command.
3902
c04fe68f
AB
39032015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3906 field.
3907 (struct gdb_bfd_cache_search): Likewise.
3908 (eq_bfd): Compare the size, inode, and device id fields.
3909 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3910 (gdb_bfd_ref): Likewise.
3911 (gdb_bfd_unref): Likewise.
3912
b2a33439
PA
39132015-08-18 Pedro Alves <palves@redhat.com>
3914
3915 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3916 target implements to_always_non_stop_p, call it.
3917 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3918 (x86_linux_create_target): Install it as to_always_non_stop_p
3919 method.
3920
71b57e37
DE
39212015-08-17 Doug Evans <dje@google.com>
3922
3923 * ui-out.c (default_ui_out_impl): Add comment.
3924
7f3706eb
IB
39252015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3926
3927 * d-exp.y (type_aggregate_p): New function.
3928 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3929 (classify_inner_name): Likewise.
3930 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3931
1762568f
DE
39322015-08-15 Doug Evans <xdje42@gmail.com>
3933
3934 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3935 updated.
3936 (add_psymbol_to_list): Ditto.
3937
8763cede
DE
39382015-08-15 Doug Evans <xdje42@gmail.com>
3939
3940 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3941 updated. Call end_psymtab_common.
3942 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3943 end_psymtab_common.
3944 (build_type_psymtabs_reader): Ditto.
3945 * psympriv.h (sort_pst_symbols): Delete.
3946 (end_psymtab_common): Declare.
3947 * psymtab.c (sort_pst_symbols): Make static.
3948 (end_psymtab_common): New function.
3949 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3950
51cdc993
DE
39512015-08-15 Doug Evans <xdje42@gmail.com>
3952
3953 * defs.h (LANGUAGE_BITS): Define.
3954 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3955 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3956 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3957 (minimal_symbol_type): Add nr_minsym_types.
3958 (MINSYM_TYPE_BITS): Define.
3959 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3960 (domain_enum_tag): Add NR_DOMAINS.
3961 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3962 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3963
95cf5869
DE
39642015-08-15 Doug Evans <xdje42@gmail.com>
3965
3966 * objfiles.h: Whitespace cleanup.
3967 * psympriv.h: Whitespace cleanup.
3968 * psymtab.c: Whitespace/coding convention cleanup.
3969
e3ae3c43
PP
39702015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3971
3972 * inferior.c (detach_inferior_command): Don't call
3973 any_thread_of_process when pid is 0.
3974 (kill_inferior_command): Likewise.
3975
6ff0ba5f
DE
39762015-08-14 Doug Evans <xdje42@gmail.com>
3977
3978 PR gdb/11833
3979 * NEWS: Document new /s modifier for the disassemble command.
3980 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3981 (_initialize_cli_cmds): Update online docs of disassemble command.
3982 * disasm.c: #include "source.h".
3983 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3984 All uses updated.
3985 (dis_line_entry): New struct.
3986 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3987 (allocate_dis_line_table): New functions.
3988 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3989 (dump_insns): New arg end_pc. All callers updated.
3990 (do_mixed_source_and_assembly_deprecated): Renamed from
3991 do_mixed_source_and_assembly. All callers updated.
3992 (do_mixed_source_and_assembly): New function.
3993 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3994 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3995 DISASSEMBLY_SOURCE. All uses updated.
3996 (DISASSEMBLY_SOURCE): New macro.
3997 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3998
b56ccc20
KS
39992015-08-14 Keith Seitz <keiths@redhat.com>
4000
4001 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4002 `typename' to `type_name' to avoid C++ reserved word.
4003
ebdad8fc
KS
40042015-08-14 Keith Seitz <keiths@redhat.com>
4005
4006 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4007 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4008 silence ARI errors.
4009
c0fe2ae7
IB
40102015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4011
4012 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4013 xstrprintf instead of malloc and sprintf.
4014 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4015 (lex_one_token): Likewise.
4016
a738da3a
MF
40172015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4018
4019 * solib-svr4.c (read_program_header): Add base_addr argument to
4020 report the runtime address of the segment.
4021 (find_program_interpreter): Update read_program_header call to pass
4022 a NULL pointer for the new argument.
4023 (scan_dyntag): Add ptr_addr argument to report the runtime address
4024 of the tag payload.
4025 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4026 read_program_header to get the base address of the dynamic segment.
4027 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4028 read_program_header.
4029 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4030
f8edc4ff
MF
40312015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4032
4033 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4034
444c1ed8
IB
40352015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4036
4037 * d-exp.y (%union): Add voidval.
4038 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4039 name in the lexing stage.
4040 (PostfixExpression): Move symbol completion handling in grammar here
4041 from PrimaryExpression.
4042 (PrimaryExpression): Move routines to handle resolving identifier
4043 tokens in the grammar here from push_expression_name.
4044 (IdentifierExp): Remove the handling of alternating '.' and identifier
4045 tokens.
4046 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4047 (BasicType): Remove C-style typename rules.
4048 (d_type_from_name, d_module_from_name, push_variable)
4049 (push_fieldnames, push_type_name, push_module_name)
4050 (push_expression_name): Remove.
4051 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4052 (token_and_value): New type.
4053 (token_fifo, popping, name_obstack): New globals.
4054 (classify_name): New function.
4055 (classify_inner_name): Likewise.
4056 (yylex): Likewise.
4057 (d_parse): Initialize token_fifo, popping and name_obstack.
4058
bc7c9fab
IB
40592015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4060
4061 * Makefile.in (SFILES): Add d-namespace.c.
4062 (COMMON_OBS): Add d-namespace.o.
4063 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4064 la_lookup_symbol_nonlocal callback function pointer.
4065 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4066 (d_lookup_nested_symbol): New declaration.
4067 * d-namespace.c: New file.
4068
3207396b
PA
40692015-08-13 Pedro Alves <palves@redhat.com>
4070
4071 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4072 cleanup after the decref cleanup, not before.
4073
5d8c3ed3
PMR
40742015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4075
4076 * ada-lang.c: Include namespace.h
4077 (aux_add_nonlocal_symbols): Fix a function name in comment.
4078 (ada_add_block_renamings): New.
4079 (add_nonlocal_symbols): Add global renamings handling.
4080 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4081 to...
4082 (ada_add_all_symbols): ... this new function.
4083 (ada_add_block_symbols): Try to match the input name against the
4084 "using directives list", perform a recursive symbol lookup on
4085 the matched declarations.
4086 * block.h (struct block): Move the_namespace to top-level as
4087 namespace_info. Remove the language_specific field.
4088 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4089 * buildsym.h (using_directives): Rename into...
4090 (local_using_directives): ... this.
4091 (global_using_directives): New.
4092 (struct context_stack): Rename the using_directives field into
4093 local_using_directives.
4094 * buildsym.c (finish_block_internal): Deal with the proper
4095 using directives repository (local or global).
4096 (prepare_for_building): Reset local_using_directives. Assert
4097 that there is no pending global using directive.
4098 (reset_symtab_globals): Reset global_using_directives and
4099 local_using_directives.
4100 (end_symtab_get_static_block): Don't ignore symtabs that have
4101 only using directives.
4102 (push_context): Update references to local_using_directives.
4103 (buildsym_init): Do not reset using_directives.
4104 * cp-support.c: Include namespace.h.
4105 * cp-support.h (struct using_direct): Move to namespace.h.
4106 (cp_add_using_directives): Move to namespace.h.
4107 * cp-namespace.c: Include namespace.h
4108 (cp_add_using_directive): Move to namespace.c, rename it to
4109 add_using_directive, add a "using_directives" argument and use
4110 it as the pending using directives repository. All callers
4111 updated.
4112 * dwarf2read.c (using_directives): New.
4113 (read_import_statement): Call using_directives.
4114 (read_func_scope): Update references to local_using_directives.
4115 (read_lexical_block_scope): Likewise.
4116 (read_namespace): Update the heading comment, call
4117 using_directives.
4118 * namespace.h: New file.
4119 * namespace.c: New file.
4120 * Makefile.in (SFILES): Add namespace.c.
4121 (COMMON_OBS): Add namespace.o
4122
4dafcdeb
JB
41232015-08-12 Joel Brobecker <brobecker@adacore.com>
4124
4125 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4126 compute RETADDR.
4127
67994074
KS
41282015-08-12 Keith Seitz <keiths@redhat.com>
4129
4130 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4131 reserved C++ keyword "explicit" to "explicit_loc".
4132 * breakpoint.c (create_overlay_event_breakpoint)
4133 (create_longjmp_master_breakpoint)
4134 (create_std_terminate_master_breakpoint)
4135 (create_exception_master_breakpoint, update_static_tracepoint):
4136 Rename reserved C++ keyword "explicit" to "explicit_loc".
4137 * completer.c (collect_explicit_location_matches)
4138 (explicit_location_completer): Rename reserved C++ keyword
4139 "explicit" to "explicit_loc".
4140 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4141 (canonicalize_linespec, create_sals_line_offset)
4142 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4143 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4144 "explicit" to "explicit_loc".
4145 * location.c (struct event_location) <explicit>: Rename to
4146 "explicit_loc".
4147 (initialize_explicit_location, new_explicit_location)
4148 (explicit_location_to_string_internal, explicit_location_to_linespec):
4149 Rename reserved C++ keyword "explicit" to "explicit_loc".
4150 * location.h (explicit_location_to_string)
4151 (explicit_location_to_linespec, initialize_explicit_location)
4152 (new_explicit_location): Rename reserved C++ keyword "explicit"
4153 to "explicit_loc".
4154 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4155 keyword "explicit" to "explicit_loc".
4156
59ecaff3
KS
41572015-08-12 Keith Seitz <keiths@redhat.com>
4158
4159 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4160 and only call decode_line_1 when it is non-NULL.
4161
244558af
LM
41622015-08-12 Luis Machado <lgustavo@codesourcery.com>
4163
4164 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4165 location address is not meaningful.
4166 (breakpoint_address_is_meaningful): Update comment.
4167
629500fa
KS
41682015-08-11 Keith Seitz <keiths@redhat.com>
4169
4170 * NEWS: Mention explicit locations.
4171 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4172 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4173 (_initialize_breakpoint): Update documentation for
4174 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4175
eb8c4e2e
KS
41762015-08-11 Keith Seitz <keiths@redhat.com>
4177
4178 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4179 explicit locations, options "--source", "--function",
4180 "--label", and "--line".
4181
87f0e720
KS
41822015-08-11 Keith Seitz <keiths@redhat.com>
4183
4184 * completer.c: Include location.h.
4185 (enum match_type): New enum.
4186 (location_completer): Rename to ...
4187 (linespec_completer): ... this.
4188 (collect_explicit_location_matches, backup_text_ptr)
4189 (explicit_location_completer): New functions.
4190 (location_completer): "New" function; handle linespec
4191 and explicit location completions.
4192 (complete_line_internal): Remove all location completer-specific
4193 handling.
4194 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4195 (find_toplevel_char): Export.
4196 (linespec_parse_line_offset): Export.
4197 Issue error if STRING is not numerical.
4198 (gdb_get_linespec_parser_quote_characters): New function.
4199 * linespec.h (linespec_parse_line_offset): Declare.
4200 (get_gdb_linespec_parser_quote_characters): Declare.
4201 (is_ada_operator): Declare.
4202 (find_toplevel_char): Declare.
4203 (linespec_lexer_lex_keyword): Declare.
4204 * location.c (explicit_to_event_location): New function.
4205 (explicit_location_lex_one): New function.
4206 (string_to_explicit_location): New function.
4207 (string_to_event_location): Handle explicit locations.
4208 * location.h (explicit_to_event_location): Declare.
4209 (string_to_explicit_location): Declare.
4210
00e52e53
KS
42112015-08-11 Keith Seitz <keiths@redhat.com>
4212
4213 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4214 linespec into explicit location.
4215 * breakpoint.c (create_overlay_breakpoint)
4216 (create_longjmp_master_breakpoint)
4217 (create_std_terminate_master_breakpoint)
4218 (create_exception_master_breakpoint): Convert linespec into explicit
4219 location.
4220 (update_static_tracepoint): Convert linespec into explicit location.
4221 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4222 location.h.
4223 (struct linespec) <expression, expr_pc, source_filename>
4224 <function_name, label_name, line_offset>: Replace with ...
4225 <explicit>: ... this.
4226 <is_linespec>: New member.
4227 (PARSER_EXPLICIT): New accessor macro.
4228 (undefined_label_error): New function.
4229 (source_file_not_found_error): New function.
4230 (linespec_parse_basic): The parser result is now an explicit location.
4231 Use PARSER_EXPLICIT to access it.
4232 Use undefined_label_error.
4233 (canonicalize_linespec): Convert canonical linespec into explicit
4234 location.
4235 Move string representation of location to explicit_location_to_linespec
4236 and use it and explicit_location_to_string to save string
4237 representations of the canonical location.
4238 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4239 explicit location. Update all references.
4240 (convert_explicit_location_to_sals): New function.
4241 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4242 result's explicit location.
4243 (linespec_state_constructor): Initialize is_linespec.
4244 Use PARSER_EXPLICIT.
4245 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4246 result.
4247 (event_location_to_sals): For linespec locations, set is_linespec.
4248 Handle explicit locations.
4249 (decode_objc): 'ls' contains an explicit location now. Update all
4250 references.
4251 (symtabs_from_filename): Use source_file_not_found_error.
4252 * location.c (struct event_location.u) <explicit>: New member.
4253 (initialize_explicit_location): New function.
4254 (initialize_event_location): Initialize explicit locations.
4255 (new_explicit_location, get_explicit_location)
4256 (get_explicit_location_const): New functions.
4257 (explicit_to_string_internal): New function; most of contents moved
4258 from canonicalize_linespec.
4259 (explicit_location_to_string): New function.
4260 (explicit_location_to_linespec): New function.
4261 (copy_event_location, delete_event_location)
4262 (event_location_to_string_const, event_location_empty_p): Handle
4263 explicit locations.
4264 * location.h (enum offset_relative_sign, struct line_offset): Move
4265 here from linespec.h.
4266 (enum event_location_type): Add EXPLICIT_LOCATION.
4267 (struct explicit_location): New structure.
4268 (explicit_location_to_string): Declare.
4269 (explicit_location_to_linespec): Declare.
4270 (new_explicit_location, get_explicit_locationp
4271 (get_explicit_location_const, initialize_explicit_location): Declare.
4272
5b56227b
KS
42732015-08-11 Keith Seitz <keiths@redhat.com>
4274
4275 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4276 linespec for stap probe to probe location.
4277 * breakpoint.c (create_longjmp_master_breakpoint)
4278 (create_exception_master_breakpoint): Likewise.
4279 (break_command_1): Remove local variable `arg_cp'.
4280 Check location type to set appropriate breakpoint ops methods.
4281 (trace_command): Likewise.
4282 * linespec.c (event_location_to_sals): Assert on probe locations.
4283 * location.c (EL_PROBE): Add macro definition.
4284 (new_probe_location, get_probe_location): New functions.
4285 (copy_event_location, delete_event_location, event_location_to_string)
4286 (string_to_event_location, event_location_empty_p): Handle probe
4287 locations.
4288 * location.h (enum event_location_type): Add PROBE_LOCATION.
4289 (new_probe_location, get_probe_location): Declare.
4290 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4291 Convert linespec into probe location.
4292
a06efdd6
KS
42932015-08-11 Keith Seitz <keiths@redhat.com>
4294
4295 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4296 Convert linespec to address location.
4297 * linespec.c (canonicalize_linespec): Do not handle address
4298 locations here.
4299 (convert_address_location_to_sals): New function; contents moved
4300 from ...
4301 (convert_linespc_to_sals): ... here.
4302 (parse_linespec): Remove address locations from linespec grammar.
4303 Remove handling of address locations.
4304 (linespec_lex_to_end): Remove handling of address linespecs.
4305 (event_location_to_sals): Handle ADDRESS_LOCATION.
4306 (linespec_expression_to_pc): Export.
4307 * linespec.h (linespec_expression_to_pc): Add declaration.
4308 * location.c (struct event_location.u) <address>: New member.
4309 (new_address_location, get_address_location): New functions.
4310 (copy_event_location, delete_event_location, event_location_to_string)
4311 (string_to_event_location, event_location_empty_p): Handle address
4312 locations.
4313 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4314 (new_address_location, get_address_location): Declare.
4315 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4316 to address location.
4317 * spu-tdep.c (spu_catch_start): Likewise.
4318
f00aae0f
KS
43192015-08-11 Keith Seitz <keiths@redhat.com>
4320
4321 * ax-gdb.c: Include location.h.
4322 (agent_command_1) Use linespec location instead of address
4323 string.
4324 * break-catch-throw.c: Include location.h.
4325 (re_set_exception_catchpoint): Use linespec locations instead
4326 of address strings.
4327 * breakpoint.c: Include location.h.
4328 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4329 (create_std_terminate_master_breakpoint)
4330 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4331 Use linespec location instead of address string.
4332 (print_breakpoint_location): Use locations and
4333 event_location_to_string.
4334 Print extra_string for pending locations for non-MI streams.
4335 (print_one_breakpoint_location): Use locations and
4336 event_location_to_string.
4337 (init_raw_breakpoint_without_location): Initialize b->location.
4338 (create_thread_event_breakpoint): Use linespec location instead of
4339 address string.
4340 (init_breakpoint_sal): Likewise.
4341 Only save extra_string if it is non-NULL and not the empty string.
4342 Use event_location_to_string instead of `addr_string'.
4343 Constify `p' and `endp'.
4344 Use skip_spaces_const/skip_space_const instead of non-const versions.
4345 Copy the location into the breakpoint.
4346 If LOCATION is NULL, save the breakpoint address as a linespec location
4347 instead of an address string.
4348 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4349 event_location. All uses updated.
4350 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4351 (parse_breakpoint_sals): Use locations instead of address strings.
4352 Remove check for empty linespec with conditional.
4353 Refactor.
4354 (decode_static_tracepoint_spec): Make argument const and update
4355 function.
4356 (create_breakpoint): Change `arg' to a struct event_location and
4357 rename.
4358 Remove `copy_arg' and `addr_start'.
4359 If EXTRA_STRING is empty, set it to NULL.
4360 Don't populate `canonical' for pending breakpoints.
4361 Pass `extra_string' to find_condition_and_thread.
4362 Clear `extra_string' if `rest' was NULL.
4363 Do not error with "garbage after location" if setting a dprintf
4364 breakpoint.
4365 Copy the location into the breakpoint instead of an address string.
4366 (break_command_1): Use string_to_event_location and pass this to
4367 create_breakpoint instead of an address string.
4368 Check against `arg_cp' for a probe linespec.
4369 (dprintf_command): Use string_to_event_location and pass this to
4370 create_breakpoint instead of an address string.
4371 Throw an exception if no format string was specified.
4372 (print_recreate_ranged_breakpoint): Use event_location_to_string
4373 instead of address strings.
4374 (break_range_command, until_break_command)
4375 (init_ada_exception_breakpoint): Use locations instead
4376 of address strings.
4377 (say_where): Print out extra_string for pending locations.
4378 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4379 the breakpoint.
4380 (base_breakpoint_create_sals_from_location): Use struct event_location
4381 instead of address string.
4382 Remove `addr_start' and `copy_arg' parameters.
4383 (base_breakpoint_decode_location): Use struct event_location instead of
4384 address string.
4385 (bkpt_re_set): Use locations instead of address strings.
4386 Use event_location_empty_p to check for unset location.
4387 (bkpt_print_recreate): Use event_location_to_string instead of
4388 an address string.
4389 Print out extra_string for pending locations.
4390 (bkpt_create_sals_from_location, bkpt_decode_location)
4391 (bkpt_probe_create_sals_from_location): Use struct event_location
4392 instead of address string.
4393 (bkpt_probe_decode_location): Use struct event_location instead of
4394 address string.
4395 (tracepoint_print_recreate): Use event_location_to_string to
4396 recreate the tracepoint.
4397 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4398 (tracepoint_probe_create_sals_from_location)
4399 (tracepoint_probe_decode_location): Use struct event_location
4400 instead of address string.
4401 (dprintf_print_recreate): Use event_location_to_string to recreate
4402 the dprintf.
4403 (dprintf_re_set): Remove check for valid/missing format string.
4404 (strace_marker_create_sals_from_location)
4405 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4406 (update_static_tracepoint): Use struct event_location instead of
4407 address string.
4408 (location_to_sals): Likewise.
4409 Pass `extra_string' to find_condition_and_thread.
4410 For newly resolved pending breakpoint locations, clear the location's
4411 string representation.
4412 Assert that the breakpoint's condition string is NULL when
4413 condition_not_parsed.
4414 (breakpoint_re_set_default, create_sals_from_location_default)
4415 (decode_location_default, trace_command, ftrace_command)
4416 (strace_command, create_tracepoint_from_upload): Use locations
4417 instead of address strings.
4418 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4419 Use struct event_location instead of address string.
4420 Update all uses.
4421 <decode_location>: Likewise.
4422 (struct breakpoint) <addr_string>: Change to struct event_location
4423 and rename `location'.
4424 <addr_string_range_end>: Change to struct event_location and rename
4425 `location_range_end'.
4426 (create_breakpoint): Use struct event_location instead of address
4427 string.
4428 * cli/cli-cmds.c: Include location.h.
4429 (edit_command, list_command): Use locations instead of address strings.
4430 * elfread.c: Include location.h.
4431 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4432 * guile/scm-breakpoint.c: Include location.h.
4433 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4434 (gdbscm_register_breakpoint): Use locations instead of address
4435 strings.
4436 * linespec.c: Include location.h.
4437 (struct ls_parser) <stream>: Change to const char *.
4438 (PARSER_STREAM): Update.
4439 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4440 keywords must be followed by whitespace.
4441 (canonicalize_linespec): Save a linespec location into `canonical'.
4442 Save a canonical linespec into `canonical'.
4443 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4444 All uses updated.
4445 Update function description.
4446 (linespec_parser_new): Initialize `parser'.
4447 Update initialization of parsing stream.
4448 (event_location_to_sals): New function.
4449 (decode_line_full): Change `argptr' to a struct event_location and
4450 rename it `location'.
4451 Use locations instead of address strings.
4452 Call event_location_to_sals instead of parse_linespec.
4453 (decode_line_1): Likewise.
4454 (decode_line_with_current_source, decode_line_with_last_displayed)
4455 Use locations instead of address strings.
4456 (decode_objc): Likewise.
4457 Change `argptr' to const char * and rename `arg'.
4458 (destroy_linespec_result): Delete the linespec result's location
4459 instead of freeing the address string.
4460 * linespec.h (struct linespec_result) <addr_string>: Change to
4461 struct event_location and rename to ...
4462 <location>: ... this.
4463 (decode_line_1, decode_line_full): Change `argptr' to struct
4464 event_location. All callers updated.
4465 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4466 (mi_cmd_break_insert_1): Use locations instead of address strings.
4467 Throw an error if there was "garbage" at the end of the specified
4468 linespec.
4469 * probe.c: Include location.h.
4470 (parse_probes): Change `argptr' to struct event_location.
4471 Use event locations instead of address strings.
4472 * probe.h (parse_probes): Change `argptr' to struct event_location.
4473 * python/py-breakpoint.c: Include location.h.
4474 (bppy_get_location): Constify local variable `str'.
4475 Use event_location_to_string.
4476 (bppy_init): Use locations instead of address strings.
4477 * python/py-finishbreakpoint.c: Include location.h.
4478 (bpfinishpy_init): Remove local variable `addr_str'.
4479 Use locations instead of address strings.
4480 * python/python.c: Include location.h.
4481 (gdbpy_decode_line): Use locations instead of address strings.
4482 * remote.c: Include location.h.
4483 (remote_download_tracepoint): Use locations instead of address
4484 strings.
4485 * spu-tdep.c: Include location.h.
4486 (spu_catch_start): Remove local variable `buf'.
4487 Use locations instead of address strings.
4488 * tracepoint.c: Include location.h.
4489 (scope_info): Use locations instead of address strings.
4490 (encode_source_string): Constify parameter `src'.
4491 * tracepoint.h (encode_source_string): Likewise.
4492
c7c1b3e9
KS
44932015-08-11 Keith Seitz <keiths@redhat.com>
4494
4495 * Makefile.in (SFILES): Add location.c.
4496 (HFILES_NO_SRCDIR): Add location.h.
4497 (COMMON_OBS): Add location.o.
4498 * linespec.c (linespec_lex_to_end): New function.
4499 * linespec.h (linespec_lex_to_end): Declare.
4500 * location.c: New file.
4501 * location.h: New file.
4502
5f700d83
KS
45032015-08-11 Keith Seitz <keiths@redhat.com>
4504
4505 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4506 Renamed to create_sals_from_location.
4507 <decode_linespec>: Renamed to decode_location.
4508 Update all callers.
4509 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4510 (create_sals_from_location_default): ... this.
4511 (addr_string_to_sals): Renamed to ...
4512 (location_to_sals): ... this.
4513 (decode_linespec_default): Renamed to ...
4514 (decode_location_default): ... this.
4515 (base_breakpoint_create_sals_from_address): Renamed to ...
4516 (base_breakpoint_create_sals_from_location): ... this.
4517 (bkpt_create_sals_from_address): Renamed to ...
4518 (bkpt_create_sals_from_location): ... this.
4519 (bkpt_decode_linespec): Renamed to ...
4520 (bkpt_decode_location): ... this.
4521 (bkpt_probe_create_sals_from_address): Renamed to ...
4522 (bkpt_probe_create_sals_from_location): ... this.
4523 (tracepoint_create_sals_from_address): Renamed to ...
4524 (tracepoint_create_sals_from_location): ... this.
4525 (tracepoint_decode_linespec): Renamed to ...
4526 (tracepoint_decode_location): ... this.
4527 (tracepoint_probe_create_sals_from_address): Renamed to ...
4528 (tracepoint_probe_create_sals_from_location): ... this.
4529 (tracepoint_probe_decode_linespec): Renamed to ...
4530 (tracepoint_probe_decode_location): ... this.
4531 (strace_marker_create_sals_from_address): Renamed to ...
4532 (strace_marker_create_sals_from_location): ... this.
4533 (decode_linespec_default): Renamed to ...
4534 (decode_location_default): ... this.
4535
e27852be
DE
45362015-08-10 Doug Evans <dje@google.com>
4537 Keith Seitz <keiths@redhat.com>
4538
4539 PR gdb/17960
4540 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4541 make_file_symbol_completion_list and made static.
4542 (make_file_symbol_completion_list): New function.
80af41e0 4543
fd7dcb94
JB
45442015-08-10 Joel Brobecker <brobecker@adacore.com>
4545
4546 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4547 trailing new-line at end of warning message.
4548 (proceed): Add i18n marker to error messages.
4549
f12899e9
PA
45502015-08-07 Pedro Alves <palves@redhat.com>
4551
4552 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4553
5ac21343
PA
45542015-08-07 Pedro Alves <palves@redhat.com>
4555
4556 * s390-linux-tdep.c (is_non_branch_ril)
4557 (s390_displaced_step_copy_insn): New functions.
4558 (s390_displaced_step_fixup): Update comment.
4559 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4560 gdbarch_displaced_step_copy_insn hook.
4561
7f03bd92
PA
45622015-08-07 Pedro Alves <palves@redhat.com>
4563
4564 * infrun.c (displaced_step_prepare_throw): Return -1 if
4565 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4566 comment.
4567 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4568 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4569 in file.
4570 (ppc_displaced_step_copy_insn): New function.
4571 (ppc_displaced_step_fixup): Update comment.
4572 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4573 gdbarch_displaced_step_copy_insn hook.
4574 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4575 NULL return.
4576 * gdbarch.h: Regenerate.
4577
3fc8eb30
PA
45782015-08-07 Pedro Alves <palves@redhat.com>
4579
4580 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4581 field.
4582 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4583 Return false if dispaced stepping failed before.
4584 (resume): Pass the current inferior to
4585 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4586 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4587 displaced_stepping_failed flag, and fall back to an in-line
4588 step-over.
4589
bfedc46a
PA
45902015-08-07 Pedro Alves <palves@redhat.com>
4591
4592 * darwin-nat.c (darwin_stop): Rename to ...
4593 (darwin_interrupt): ... this.
4594 (_initialize_darwin_inferior): Adjust.
4595 * gnu-nat.c (gnu_stop): Delete.
4596 (gnu_target): Don't install gnu_stop.
4597 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4598 (inf_ptrace_interrupt): ... this.
4599 (inf_ptrace_target): Adjust.
4600 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4601 target_stop.
4602 * linux-nat (linux_nat_stop): Rename to ...
4603 (linux_nat_interrupt): ... this.
4604 (linux_nat_stop): Reimplement.
4605 (linux_nat_add_target): Install linux_nat_interrupt.
4606 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4607 (nto_handle_sigint_twice): ... this.
4608 (nto_interrupt): Rename to ...
4609 (nto_handle_sigint): ... this. Call target_interrupt instead of
4610 target_stop.
4611 (procfs_wait): Adjust.
4612 (procfs_stop): Rename to ...
4613 (procfs_interrupt): ... this.
4614 (init_procfs_targets): Adjust.
4615 * procfs.c (procfs_stop): Rename to ...
4616 (procfs_interrupt): ... this.
4617 (procfs_target): Adjust.
4618 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4619 (m32r_interrupt): ... this.
4620 (init_m32r_ops): Adjust.
4621 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4622 (gdbsim_interrupt_inferior): ... this.
4623 (gdbsim_stop): Rename to ...
4624 (gdbsim_interrupt): ... this.
4625 (gdbsim_cntrl_c): Adjust.
4626 (init_gdbsim_ops): Adjust.
4627 * remote.c (sync_remote_interrupt): Adjust comments.
4628 (remote_stop_as): Rename to ...
4629 (remote_interrupt_as): ... this.
4630 (remote_stop): Adjust comment.
4631 (remote_interrupt): New function.
4632 (init_remote_ops): Install remote_interrupt.
4633 * target.c (target_interrupt): New function.
4634 * target.h (struct target_ops) <to_interrupt>: New field.
4635 (target_interrupt): New declaration.
4636 * windows-nat.c (windows_stop): Rename to ...
4637 (windows_interrupt): ... this.
4638 * target-delegates.c: Regenerate.
4639
d55007b5
PA
46402015-08-07 Pedro Alves <palves@redhat.com>
4641
4642 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4643 threads" as alternative to "switching back to stepped thread".
4644
fbea99ea
PA
46452015-08-07 Pedro Alves <palves@redhat.com>
4646
4647 * NEWS: Mention "maint set/show target-non-stop".
4648 * breakpoint.c (update_global_location_list): Check
4649 target_is_non_stop_p instead of non_stop.
4650 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4651 * infrun.c (show_can_use_displaced_stepping)
4652 (can_use_displaced_stepping_p, start_step_over_inferior):
4653 Likewise.
4654 (internal_resume_ptid): New function.
4655 (resume): Use it.
4656 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4657 all-stop mode but the target is always in non-stop mode, start all
4658 the other threads that are implicitly resumed too.
4659 (for_each_just_stopped_thread, fetch_inferior_event)
4660 (adjust_pc_after_break, stop_all_threads): Check
4661 target_is_non_stop_p instead of non_stop.
4662 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4663 with the target always in non-stop mode.
4664 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4665 instead of non_stop.
4666 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4667 instead of non_stop.
4668 (keep_going_stepped_thread): Use internal_resume_ptid.
4669 (stop_waiting): If in all-stop mode, and the target is in non-stop
4670 mode, stop all threads.
4671 (keep_going_pass): Likewise, when starting a new in-line step-over
4672 sequence.
4673 * linux-nat.c (get_pending_status, select_event_lwp)
4674 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4675 target_is_non_stop_p instead of non_stop.
4676 (linux_nat_always_non_stop_p): New function.
4677 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4678 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4679 * target-delegates.c: Regenerate.
4680 * target.c (target_is_non_stop_p): New function.
4681 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4682 (maint_set_target_non_stop_command)
4683 (maint_show_target_non_stop_command): New functions.
4684 (_initilize_target): Install "maint set/show target-non-stop"
4685 commands.
4686 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4687 (target_non_stop_enabled): New declaration.
4688 (target_is_non_stop_p): New declaration.
4689
372316f1
PA
46902015-08-07 Pedro Alves <pedro@codesourcery.com>
4691
4692 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4693 has a pending status, return true.
4694 * gdbthread.h: Include target/waitstatus.h.
4695 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4696 stop_pc>: New fields.
4697 (struct thread_info) <resumed>: New field.
4698 (set_resumed): Declare.
4699 * infrun.c: Include "event-loop.h".
4700 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4701 (infrun_async): New function.
4702 (clear_step_over_info): Add debug output.
4703 (displaced_step_in_progress_any_inferior): New function.
4704 (displaced_step_fixup): New returns int.
4705 (start_step_over): Handle in-line step-overs too. Assert the
4706 thread is marked resumed.
4707 (resume_cleanups): Clear the thread's resumed flag.
4708 (resume): Set the thread's resumed flag. Return early if the
4709 thread has a pending status. Allow stepping a breakpoint with no
4710 signal.
4711 (proceed): Adjust to check 'resumed' instead of 'executing'.
4712 (clear_proceed_status_thread): If the thread has a pending status,
4713 and that status is a finished step, discard the pending status.
4714 (clear_proceed_status): Don't clear step_over_info here.
4715 (random_pending_event_thread, do_target_wait): New functions.
4716 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4717 do_target_wait.
4718 (wait_one): New function.
4719 (THREAD_STOPPED_BY): New macro.
4720 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4721 (thread_stopped_by_hw_breakpoint): New functions.
4722 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4723 functions.
4724 (handle_inferior_event): Also call set_resumed(false) on all
4725 threads implicitly stopped by the event.
4726 (restart_threads, resumed_thread_with_pending_status): New
4727 functions.
4728 (finish_step_over): If we were doing an in-line step-over before,
4729 and no longer are after trying to start a new step-over, restart
4730 all threads. If we have multiple threads with pending events,
4731 save the current event and go through the event loop again.
4732 (handle_signal_stop): Return early if finish_step_over returns
4733 false.
4734 <random signal>: If we get a signal while stepping over a
4735 breakpoint in-line in non-stop mode, restart all threads. Clear
4736 step_over_info before delivering the signal.
4737 (keep_going_stepped_thread): Use internal_error instead of
4738 gdb_assert. Mark the thread as resumed.
4739 (keep_going_pass_signal): Assert the thread isn't already resumed.
4740 If some other thread is doing an in-line step-over, defer the
4741 resume. If we just started a new in-line step-over, stop all
4742 threads. Don't clear step_over_info.
4743 (infrun_async_inferior_event_handler): New function.
4744 (_initialize_infrun): Create async event handler with
4745 infrun_async_inferior_event_handler as callback.
4746 (infrun_async): New declaration.
4747 * target.c (target_async): New function.
4748 * target.h (target_async): Declare macro and readd as function
4749 declaration.
4750 * target/waitstatus.h (enum target_stop_reason)
4751 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4752 * thread.c (new_thread): Clear the new waitstatus field.
4753 (set_resumed): New function.
4754
2ac7589c
PA
47552015-08-07 Pedro Alves <palves@redhat.com>
4756
4757 * infrun.c (keep_going_stepped_thread): New function, factored out
4758 from ...
4759 (switch_back_to_stepped_thread): ... here.
4760
8b061563
PA
47612015-08-07 Pedro Alves <palves@redhat.com>
4762
4763 * infrun.c (currently_stepping): Extend intro comment.
4764 * target.h (target_resume): Extend intro comment.
4765
1afd5965
PA
47662015-08-07 Pedro Alves <palves@redhat.com>
4767
4768 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4769 of inferior_ptid. If the stepped thread vanished, return 0
4770 instead of resuming here. Use reset_ecs. Print the prev_pc and
4771 the current stop_pc in log message. Clear trap_expected if the
4772 thread advanced. Don't pass currently_stepping to
4773 do_target_resume.
4774
4d9d9d04
PA
47752015-08-07 Pedro Alves <palves@redhat.com>
4776
4777 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4778 * infrun.c (struct execution_control_state): Move higher up in the
4779 file.
4780 (reset_ecs): New function.
4781 (start_step_over): Now returns int. Rewrite to use
4782 keep_going_pass_signal instead of manually starting a displaced step.
4783 (resume): Don't call set_running here. If displaced stepping
4784 can't start now, clear trap_expected.
4785 (find_thread_needs_step_over): Delete function.
4786 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4787 If the current thread needs a step over, push it in the step-over
4788 chain. Don't set insert breakpoints nor call resume directly
4789 here. Instead rewrite to use start_step_over and
4790 keep_going_pass_signal.
4791 (finish_step_over): New function.
4792 (handle_signal_stop): Call finish_step_over instead of
4793 start_step_over.
4794 (switch_back_to_stepped_thread): If the event thread needs another
4795 step-over do that first. Use start_step_over.
4796 (keep_going_pass_signal): New function, factored out from ...
4797 (keep_going): ... here.
4798 (_initialize_infrun): Comment moved here.
4799 * thread.c (set_running_thread): New function.
4800 (set_running, finish_thread_state): Use set_running_thread.
4801
c2829269
PA
48022015-08-07 Pedro Alves <palves@redhat.com>
4803
4804 * gdbthread.h (struct thread_info) <step_over_prev,
4805 step_over_next>: New fields.
4806 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4807 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4808 declarations.
4809 * infrun.c (struct displaced_step_request): Delete.
4810 (struct displaced_step_inferior_state) <step_request_queue>:
4811 Delete field.
4812 (displaced_step_prepare): Assert that trap_expected is set. Use
4813 thread_step_over_chain_enqueue. Split starting a new displaced
4814 step to ...
4815 (start_step_over): ... this new function.
4816 (resume): Assert the thread isn't waiting for a step over already.
4817 (proceed): Assert the thread isn't waiting for a step over
4818 already.
4819 (infrun_thread_stop_requested): Adjust to remove threads from the
4820 embedded step-over chain.
4821 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4822 displaced_step_fixup.
4823 (handle_signal_stop): Call start_step_over after
4824 displaced_step_fixup.
4825 * infrun.h (step_over_queue_head): New declaration.
4826 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4827 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4828 (thread_step_over_chain_enqueue)
4829 (thread_step_over_chain_remove): New functions.
4830 (delete_thread_1): Remove thread from the step-over chain.
4831
6c4cfb24
PA
48322015-08-07 Pedro Alves <palves@redhat.com>
4833
4834 * infrun.c (thread_still_needs_step_over): Rename to ...
4835 (thread_still_needs_step_over_bp): ... this.
4836 (enum step_over_what): New.
4837 (thread_still_needs_step_over): Reimplement.
4838
567420d1
PA
48392015-08-07 Pedro Alves <palves@redhat.com>
4840
4841 * remote.c (remote_wait_as): If not waiting for a stop reply,
4842 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4843 requested, don't block waiting forever.
4844
d8dd4d5f
PA
48452015-08-07 Pedro Alves <pedro@codesourcery.com>
4846
4847 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4848 waitstatus pointers instead of an ecs. Adjust.
4849 (handle_inferior_event): Adjust caller.
4850
e1316e60
PA
48512015-08-07 Pedro Alves <palves@redhat.com>
4852
4853 * infrun.c (handle_inferior_event): If we get
4854 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4855 mode, mark all threads of the exiting process as not-executing.
4856 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4857 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4858 exiting process, if inferior_ptid still points at a process.
4859 * thread.c (struct current_thread_cleanup) <next>: New field.
4860 (current_thread_cleanup_chain): New global.
4861 (restore_current_thread_ptid_changed): New function.
4862 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4863 current_thread_cleanup_chain list.
4864 (make_cleanup_restore_current_thread): Add the cleanup data to the
4865 current_thread_cleanup_chain list.
4866 (_initialize_thread): Install restore_current_thread_ptid_changed
4867 as thread_ptid_changed observer.
4868
47e9c225
JB
48692015-08-07 Joel Brobecker <brobecker@adacore.com>
4870
4871 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4872 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4873 smaller than expected.
4874
06096720
AB
48752015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4876
4877 * stack.c (get_frame_language): Moved ...
4878 * frame.c (get_frame_language): ... to here.
4879 * language.h (get_frame_language): Declaration moved to frame.h.
4880 * frame.h: Add language.h include, for language enum.
4881 (get_frame_language): Declaration moved from language.h.
4882 * language.c: Add frame.h include.
4883 * top.c: Add frame.h include.
4884 * symtab.h (struct obj_section): Declare.
4885 (struct cmd_list_element): Declare.
4886
7ff38b1c
AB
48872015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4888
4889 * language.c (show_language_command): Find selected frame before
4890 asking for the language of that frame.
4891 (set_language_command): Likewise.
4892 * language.h (get_frame_language): Add frame parameter.
4893 * stack.c (get_frame_language): Add frame parameter, assert
4894 parameter is not NULL, update comment and reindent.
4895 * top.c (check_frame_language_change): Pass the selected frame
4896 into get_frame_language.
4897
da8c46d2
MM
48982015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4899
4900 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4901 (pt_btrace_insn_flags): New.
4902 (ftrace_add_pt): Call pt_btrace_insn_flags.
4903 * btrace.h (btrace_insn_flag): New.
4904 (btrace_insn) <flags>: New.
4905 * record-btrace.c (btrace_insn_history): Print insn prefix.
4906 * NEWS: Announce it.
4907
5599c404
MM
49082015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4909
4910 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4911 * configure: Regenerate.
4912
016a3251
DD
49132015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4914
4915 * Makefile.in (LIBICONV): Define.
4916 (CLIBS): Add LIBICONV.
4917 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4918 * configure: Regenerate.
4919
aead7601
SM
49202015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4921 Pedro Alves <palves@redhat.com>
4922
4923 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4924 (arm_set_abi): Likewise.
4925 * ax-general.c (ax_print): Likewise.
4926 * c-exp.y (exp : string_exp): Likewise.
4927 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4928 (do_compile_dwarf_expr_to_c): Likewise.
4929 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4930 Likewise.
4931 * dwarf2expr.c (execute_stack_op): Likewise.
4932 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4933 (disassemble_dwarf_expression): Likewise.
4934 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4935 (read_array_order): Likewise.
4936 (abbrev_table_read_table): Likewise.
4937 (read_attribute_value): Likewise.
4938 (skip_unknown_opcode): Likewise.
4939 (dwarf_decode_macro_bytes): Likewise.
4940 (dwarf_decode_macros): Likewise.
4941 * eval.c (value_f90_subarray): Likewise.
4942 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4943 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4944 * infrun.c (handle_command): Likewise.
4945 * memory-map.c (memory_map_start_memory): Likewise.
4946 * osabi.c (set_osabi): Likewise.
4947 * parse.c (operator_length_standard): Likewise.
4948 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4949 single return point.
4950 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4951 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4952 (gdbpy_lookup_global_symbol): Likewise.
4953 * record-full.c (record_full_restore): Likewise.
4954 * regcache.c (regcache_register_status): Likewise.
4955 (regcache_raw_read): Likewise.
4956 (regcache_cooked_read): Likewise.
4957 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4958 * symtab.c (initialize_ordinary_address_classes): Likewise.
4959 * target-debug.h (target_debug_print_signals): Likewise.
4960 * utils.c (do_restore_current_language): Likewise.
4961
ca0a5f0b
CD
49622015-08-06 Clem Dickey <clemd@acm.org>
4963
4964 PR python/17136
4965 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4966
05d999b0
SM
49672015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 * complaints.c (enum complaint_series): Add newlines and remove
4970 out of date comment.
4971 (struct complaints) <series>: Change type to enum
4972 complaint_series and remove out of date comment.
4973 (symfile_complaint_hook): Use equivalent enum value
4974 ISOLATED_MESSAGE instead of 0.
4975
bf47e248
PA
49762015-08-06 Pedro Alves <palves@redhat.com>
4977
4978 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4979 returned > 0.
4980
b6b9ffcc
PL
49812015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4982
4983 * common/agent.c (symbol_list) <required>: Remove.
4984
863d01bd
PA
49852015-08-06 Pedro Alves <palves@redhat.com>
4986
4987 * target/waitstatus.h (enum target_stop_reason)
4988 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4989
0a39bb32
PA
49902015-08-05 Pedro Alves <palves@redhat.com>
4991 Joel Brobecker <brobecker@adacore.com>
4992
9d996aba 4993 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4994 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4995 case where BS->STOP is not set.
4996
260439cb
UW
49972015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4998
4999 * nat/gdb_thread_db.h: Add copyright header.
5000 Protect against multiple inclusion.
5001
d89fa914
YQ
50022015-08-05 Yao Qi <yao.qi@linaro.org>
5003
5004 * aarch64-linux-nat.c (get_thread_id): Remove.
5005 (debug_reg_change_callback): Call ptid_get_lwp instead of
5006 get_thread_id.
5007 (fetch_gregs_from_thread): Likewise.
5008 (store_gregs_to_thread): Likewise.
5009 (fetch_fpregs_from_thread): Likewise.
5010 (store_fpregs_to_thread): Likewise.
5011 (aarch64_linux_get_debug_reg_capacity): Likewise.
5012 * arm-linux-nat.c (get_thread_id): Remove.
5013 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5014 * xtensa-linux-nat.c (get_thread_id): Remove.
5015 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5016 * arm-linux-nat.c (get_thread_id): Remove.
5017 (GET_THREAD_ID): Remove.
5018 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5019 (store_fpregs, fetch_regs, store_regs): Likewise.
5020 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5021 (fetch_vfp_regs, store_vfp_regs): Likewise.
5022 (arm_linux_read_description): Likewise.
5023 (arm_linux_get_hwbp_cap): Likewise.
5024 * xtensa-linux-nat.c (get_thread_id): Remove.
5025 (GET_THREAD_ID): Remove.
5026 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5027 GET_THREAD_ID.
5028
4efd80aa
CS
50292015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5030
5031 * python/py-linetable.c: Fix case of Linetable to LineTable
5032 in docstrings and code comments.
5033 * python/py-symtab.c: Same.
5034
c6343a91
JK
50352015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5036
5037 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5038
978b9495
JK
50392015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 PR gdb/18767
5042 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5043 use.
5044
96e9210f
PA
50452015-08-04 Pedro Alves <palves@redhat.com>
5046
5047 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5048 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5049 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5050 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5051 (td_thr_validate_ftype, td_thr_get_info_ftype)
5052 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5053 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5054 New typedefs.
5055 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5056 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5057 local macros and use them instead of verbose_dlsym and dlsym
5058 calls.
5059
af60a1ef
SL
50602015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5061
5062 * nios2-tdep.h: Include opcode/nios2.h here.
5063 (NIOS2_CDX_OPCODE_SIZE): New.
5064 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5065 * nios2-tdep.c: Don't include opcode/nios2.h here.
5066 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5067 4-byte read fails.
5068 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5069 (nios2_match_addi, nios2_match_orhi): Likewise.
5070 (nios2_match_stw, nios2_match_ldw): Likewise.
5071 (nios2_match_rdctl): Likewise.
5072 (nios2_match_stwm, nios2_match_ldwm): New.
5073 (nios2_match_branch): Add cases for R2 encodings.
5074 (nios2_match_jmpi, nios2_match_calli): Likewise.
5075 (nios2_match_jmpr, nios2_match_callr): Likewise.
5076 (nios2_match_break, nios2_match_trap): Likewise.
5077 (nios2_in_epilogue_p): Add R2 support.
5078 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5079 prologues.
5080 (nios2_breakpoint_from_pc): Handle R2 instructions.
5081 (nios2_get_next_pc): Likewise. Adjust call to
5082 tdep->syscall_next_pc.
5083 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5084 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5085 instruction field macros instead of literal hex values.
5086 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5087 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5088 Use size field from OP instead of assuming all instructions
5089 are the same size.
5090 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5091
1da03605
UW
50922015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5093
5094 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5095 variable warning with some compilers.
5096
8156fe7f
YQ
50972015-08-03 Yao Qi <yao.qi@linaro.org>
5098
5099 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5100 in comment. Replace "rw" with "type".
5101 (arm_linux_remove_watchpoint): Change type of "rw" to
5102 "enum target_hw_bp_type".
5103
835a09d9
PMR
51042015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5105
5106 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5107 lookup_symbol.
5108 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5109 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5110 * mt-tdep.c (mt_skip_prologue): Likewise.
5111 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5112
d12307c1
PMR
51132015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5114
5115 * ada-exp.y (write_object_renaming): Replace struct
5116 ada_symbol_info with struct block_symbol. Update field
5117 references accordingly.
5118 (block_lookup, select_possible_type_sym): Likewise.
5119 (find_primitive_type): Likewise. Also update call to
5120 ada_lookup_symbol to extract the symbol itself.
5121 (write_var_or_type, write_name_assoc): Likewise.
5122 * ada-lang.h (struct ada_symbol_info): Remove.
5123 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5124 struct block_symbol.
5125 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5126 (ada_lookup_symbol): Return struct block_symbol instead of a
5127 mere symbol.
5128 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5129 with struct block_symbol.
5130 (resolve_subexp, ada_resolve_function, sort_choices,
5131 user_select_syms, is_nonfunction, add_defn_to_vec,
5132 num_defns_collected, defns_collected,
5133 symbols_are_identical_enums, remove_extra_symbols,
5134 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5135 ada_lookup_symbol_list, ada_iterate_over_symbols,
5136 ada_lookup_encoded_symbol, get_var_value): Likewise.
5137 (ada_lookup_symbol): Return a block_symbol instead of a mere
5138 symbol. Replace struct ada_symbol_info with struct
5139 block_symbol.
5140 (ada_lookup_symbol_nonlocal): Likewise.
5141 (standard_lookup): Make block passing explicit through
5142 lookup_symbol_in_language.
5143 * ada-tasks.c (get_tcb_types_info): Update the calls to
5144 lookup_symbol_in_language to extract the mere symbol out of the
5145 returned value.
5146 (ada_tasks_inferior_data_sniffer): Likewise.
5147 * ax-gdb.c (gen_static_field): Likewise for the call to
5148 lookup_symbol.
a5fdf78a 5149 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5150 lookup functions.
5151 (gen_expr): Likewise.
5152 * c-exp.y: Likewise. Remove uses of block_found.
5153 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5154 (classify_name): Likewise. Rename the "sym" local variable to
5155 "bsym".
5156 * c-valprint.c (print_unpacked_pointer): Likewise.
5157 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5158 "sym" parameter from struct symbol * to struct block_symbol.
5159 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5160 block_symbol from lookup functions.
d12307c1
PMR
5161 (gcc_convert_symbol): Likewise. Update the call to
5162 convert_symbol_sym.
5163 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5164 struct block_symbol from lookup functions.
d12307c1
PMR
5165 * cp-namespace.c (cp_lookup_nested_symbol_1,
5166 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5167 cp_search_static_and_baseclasses,
5168 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5169 cp_lookup_symbol_imports_or_template,
5170 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5171 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5172 find_symbol_in_baseclass): Return struct block_symbol instead of
5173 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5174 functions.
5175 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5176 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5177 lookup functions.
5178 * cp-support.h (cp_lookup_symbol_nonlocal,
5179 cp_lookup_symbol_from_namespace,
5180 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5181 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5182 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5183 push_module_name):
a5fdf78a 5184 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5185 uses of block_found.
5186 * eval.c (evaluate_subexp_standard): Update call to
5187 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5188 * f-exp.y: Deal with struct block_symbol from lookup functions.
5189 Remove uses of block_found.
d12307c1
PMR
5190 (yylex): Likewise.
5191 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5192 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5193 struct block_symbol from lookup functions.
d12307c1
PMR
5194 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5195 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5196 (gdbscm_lookup_global_symbol): Likewise.
5197 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5198 * go-exp.y: Likewise. Remove uses of block_found.
5199 (package_name_p, classify_packaged_name, classify_name):
5200 Likewise.
5201 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5202 * jv-exp.y (push_variable): Likewise.
5203 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5204 * language.c (language_bool_type): Likewise.
5205 * language.h (struct language_defn): Update
a5fdf78a
PMR
5206 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5207 than a mere symbol.
5208 * linespec.c (find_label_symbols): Deal with struct block_symbol
5209 from lookup functions.
d12307c1
PMR
5210 * m2-exp.y: Likewise. Remove uses of block_found.
5211 (yylex): Likewise.
5212 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5213 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5214 * p-exp.y: Likewise. Remove uses of block_found.
5215 (yylex): Likewise.
5216 * p-valprint.c (pascal_val_print): Likewise.
5217 * parse.c (write_dollar_variable): Likewise. Remove uses of
5218 block_found.
5219 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5220 struct block_symbol.
5221 * printcmd.c (address_info): Deal with struct block_symbol from
5222 lookup functions.
d12307c1
PMR
5223 * python/py-frame.c (frapy_read_var): Likewise.
5224 * python/py-symbol.c (gdbpy_lookup_symbol,
5225 gdbpy_lookup_global_symbol): Likewise.
5226 * skip.c (skip_function_command): Likewise.
5227 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5228 block_symbol instead of a mere symbol.
d12307c1
PMR
5229 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5230 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5231 * solib.c (solib_global_lookup): Likewise.
5232 * solist.h (solib_global_lookup): Likewise.
5233 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5234 return a struct block_symbol rather than a mere symbol.
5235 * source.c (select_source_symtab): Deal with struct block_symbol
5236 from lookup functions.
d12307c1
PMR
5237 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5238 Likewise.
5239 * symfile.c (set_initial_language): Likewise.
5240 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5241 block_symbol.
d12307c1
PMR
5242 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5243 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5244 block_symbol.
d12307c1 5245 (block_found): Remove.
a5fdf78a 5246 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5247 cache slots.
a5fdf78a
PMR
5248 (symbol_cache_lookup): Return a struct block_symbol rather than
5249 a mere symbol.
d12307c1
PMR
5250 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5251 appropriately the cache slots. Update callers.
5252 (symbol_cache_dump): Update cache slots handling to the type
5253 change.
5254 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5255 lookup_symbol_aux, lookup_local_symbol,
5256 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5257 lookup_symbol_in_objfile_symtabs,
5258 lookup_symbol_in_objfile_from_linkage_name,
5259 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5260 lookup_symbol_in_static_block, lookup_static_symbol,
5261 lookup_global_symbol):
a5fdf78a
PMR
5262 Return a struct block_symbol rather than a mere symbol. Deal
5263 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5264 uses of block_found.
5265 (lookup_symbol_in_block): Remove uses of block_found.
5266 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5267 struct block_symbol.
d12307c1
PMR
5268 (lookup_symbol_global_iterator_cb): Update references to the
5269 RESULT field.
a5fdf78a 5270 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5271 functions.
a5fdf78a 5272 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5273 (block_found): Remove.
5274 (lookup_symbol_in_language, lookup_symbol,
5275 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5276 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5277 lookup_global_symbol_from_objfile): Return a struct block_symbol
5278 rather than just a mere symbol. Update comments to remove
5279 mentions of block_found.
d12307c1
PMR
5280 * valops.c (find_function_in_inferior,
5281 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5282 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5283 functions.
5284 * value.c (value_static_field, value_fn_field): Likewise.
5285
b1c59ddc
SM
52862015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5287
5288 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5289 instead of integer.
5290
f486487f 52912015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5292 Pedro Alves <palves@redhat.com>
f486487f
SM
5293
5294 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5295 type or value instead of integer.
5296 (aarch64_linux_insert_watchpoint): Likewise.
5297 (aarch64_linux_remove_watchpoint): Likewise.
5298 * ada-lang.c (ada_op_print_tab): Likewise.
5299 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5300 (amd64_linux_syscall_record_common): Likewise.
5301 * arch-utils.c (target_byte_order_user): Likewise.
5302 (default_byte_order): Likewise.
5303 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5304 (arm_linux_get_hwbp_type): Likewise.
5305 (arm_linux_hw_watchpoint_initialize): Likewise.
5306 (arm_linux_insert_watchpoint): Likewise.
5307 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5308 (arm_linux_syscall_record): Likewise.
5309 * breakpoint.c (update_watchpoint): Likewise.
5310 (breakpoint_here_p): Likewise.
5311 (bpstat_print): Likewise.
5312 (enable_breakpoint_disp): Likewise.
5313 * c-lang.c (c_op_print_tab): Likewise.
5314 * cli/cli-decode.c (add_info_alias): Likewise.
5315 * d-lang.c (d_op_print_tab): Likewise.
5316 * eval.c (evaluate_subexp_standard): Likewise.
5317 * f-exp.y (dot_ops): Likewise.
5318 (f77_keywords): Likewise.
5319 * f-lang.c (f_op_print_tab): Likewise.
5320 * go-lang.c (go_op_print_tab): Likewise.
5321 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5322 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5323 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5324 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5325 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5326 (struct scm_from_stringn_data): Likewise.
5327 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5328 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5329 (ia64_linux_remove_watchpoint): Likewise.
5330 (ia64_linux_can_use_hw_breakpoint): Likewise.
5331 * infrun.c (print_stop_event): Likewise.
5332 * jv-lang.c (java_op_print_tab): Likewise.
5333 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5334 * linux-nat.h (struct lwp_info): Likewise.
5335 * linux-thread-db.c (enable_thread_event): Likewise.
5336 * m2-lang.c (m2_op_print_tab): Likewise.
5337 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5338 (mi_cmd_stack_list_variables): Likewise.
5339 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5340 * mi/mi-out.c (mi_table_begin): Likewise.
5341 (mi_table_header): Likewise.
5342 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5343 (mips_linux_insert_watchpoint): Likewise.
5344 (mips_linux_remove_watchpoint): Likewise.
5345 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5346 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5347 (mips_linux_watch_type_to_irw): Likewise.
5348 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5349 (procfs_insert_hw_watchpoint): Likewise.
5350 (procfs_remove_hw_watchpoint): Likewise.
5351 (procfs_hw_watchpoint): Likewise.
5352 (procfs_can_use_hw_breakpoint): Likewise.
5353 (procfs_remove_hw_watchpoint): Likewise.
5354 (procfs_insert_hw_watchpoint): Likewise.
5355 * p-lang.c (pascal_op_print_tab): Likewise.
5356 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5357 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5358 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5359 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5360 (procfs_insert_watchpoint): Likewise.
5361 (procfs_remove_watchpoint): Likewise.
5362 * psymtab.c (recursively_search_psymtabs): Likewise.
5363 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5364 (m32r_insert_watchpoint): Likewise.
5365 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5366 (mips_insert_watchpoint): Likewise.
5367 (mips_remove_watchpoint): Likewise.
5368 * remote.c (watchpoint_to_Z_packet): Likewise.
5369 (remote_insert_watchpoint): Likewise.
5370 (remote_remove_watchpoint): Likewise.
5371 (remote_check_watch_resources): Likewise.
5372 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5373 (s390_remove_watchpoint): Likewise.
5374 (s390_can_use_hw_breakpoint): Likewise.
5375 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5376 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5377 * target.h (struct target_ops): Likewise.
5378 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5379 * ui-out.c (struct ui_out_hdr): Likewise.
5380 (append_header_to_list): Likewise.
5381 (get_next_header): Likewise.
5382 (verify_field): Likewise.
5383 (ui_out_begin): Likewise.
5384 (ui_out_field_int): Likewise.
5385 (ui_out_field_fmt_int): Likewise.
5386 (ui_out_field_skip): Likewise.
5387 (ui_out_field_string): Likewise.
5388 (ui_out_field_fmt): Likewise.
5389 * varobj.c (new_variable): Likewise.
5390 * x86-nat.c (x86_insert_watchpoint): Likewise.
5391 (x86_remove_watchpoint): Likewise.
5392 (x86_can_use_hw_breakpoint): Likewise.
5393 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5394 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5395 previously anonymous enumeration type..
5396 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5397 value.
5398 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5399 (target_debug_print_enum_bptype): New.
5400 * target-delegates.c: Regenerate.
5401
e1b5381f
SL
54022015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5403
5404 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5405 already says and disallow non-stack memory writes in the prologue.
5406
9aaf8e3a
SL
54072015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5408
5409 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5410 reflect how current GCC emits stack overflow checks. Match
5411 both trap and break instructions for backward compatbility.
5412 Disallow other trap and break instructions in the prologue.
5413
69dde7dc
PA
54142015-07-30 Pedro Alves <palves@redhat.com>
5415
5416 PR threads/18600
5417 * linux-nat.c (wait_lwp): Report to the core when thread group
5418 leader exits.
5419
4dd63d48
PA
54202015-07-30 Pedro Alves <palves@redhat.com>
5421 Simon Marchi <simon.marchi@ericsson.com>
5422
5423 PR threads/18600
5424 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5425 mark the new thread as resumed. Remove STOPPING parameter.
5426 (wait_lwp): Adjust call to linux_handle_extended_wait.
5427 (linux_nat_filter_event): Adjust call to
5428 linux_handle_extended_wait.
5429 (resume_stopped_resumed_lwps): Add debug output.
5430
6b940e6a
PL
54312015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5432
5433 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5434 isize argument.
5435 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5436 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5437 gdbarch_fast_tracepoint_valid_at.
5438 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5439 * gdbarch.h: Regenerate.
5440 * gdbarch.c: Regenerate.
5441 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5442 argument. Do not set it.
5443 * remote.c (remote_download_tracepoint): Adjust call to
5444 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5445 the instruction length.
5446
ec741292
YQ
54472015-07-30 Yao Qi <yao.qi@linaro.org>
5448
5449 * arm-tdep.h (enum gdb_regnum): Move it to ...
5450 * arch/arm.h: ... here. New file.
5451 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5452
0ea6402e
PL
54532015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5454
5455 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5456 Change its type to int *.
5457 (decode_br): Rename link argument to is_blr. Change its type to
5458 int *.
5459 (decode_cb): Rename op argument to is_cbnz. Change its type to
5460 int *.
5461 (decode_tb): Rename op argument to is_tbnz. Change its type to
5462 int *. Set is_tbnz to either 1 or 0.
5463 (aarch64_analyze_prologue): Change type of is_link to int. Add
5464 new variables is_cbnz and is_tbnz. Adjust call to
5465 aarch64_decode_cb and aarch64_decode_tb.
5466
aa58a496
SM
54672015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5468
5469 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5470 parameter.
5471 (mips_linux_new_thread): Likewise.
5472 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5473
18206ca3
PP
54742015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5475
5476 * top.c: Include "tui/tui.h".
5477 (undo_terminal_modifications_before_exit): New static function.
5478 (quit_force): Use it.
5479
7afa63c6
PP
54802015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5481
5482 * target.c (terminal_state): Initialize to terminal_is_ours.
5483
cc9f16aa
YQ
54842015-07-29 Yao Qi <yao.qi@linaro.org>
5485
5486 PR record/18691
5487 * dcache.c (dcache_read_memory_partial): Call
5488 raw_memory_xfer_partial.
5489 * target.c (raw_memory_xfer_partial): Make it non-static.
5490 * target.h (raw_memory_xfer_partial): Declare.
5491
3ae385af
SM
54922015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5493
5494 * c-valprint.c (c_val_print_array): Consider addressable memory
5495 unit size.
5496 (c_val_print_ptr): Likewise.
5497 (c_val_print_int): Likewise.
5498 * findvar.c (read_frame_register_value): Likewise.
5499 * valarith.c (find_size_for_pointer_math): Likewise.
5500 (value_ptrdiff): Likewise.
5501 (value_subscripted_rvalue): Likewise.
5502 * valops.c (read_value_memory): Likewise (and rename variables).
5503 (value_assign): Likewise.
5504 (value_repeat): Likewise.
5505 (value_array): Likewise.
5506 (value_slice): Likewise.
5507 * valprint.c (generic_val_print_ptr): Likewise.
5508 (generic_val_print_enum): Likewise.
5509 (generic_val_print_bool): Likewise.
5510 (generic_val_print_int): Likewise.
5511 (generic_val_print_char): Likewise.
5512 (generic_val_print_float): Likewise.
5513 (generic_val_print_decfloat): Likewise.
5514 (generic_val_print_complex): Likewise.
5515 (val_print_scalar_formatted): Likewise.
5516 (val_print_array_elements): Likewise.
5517 * value.c (set_value_parent): Likewise.
5518 (value_contents_copy_raw): Likewise.
5519 (set_internalvar_component): Likewise.
5520 (value_primitive_field): Likewise.
5521 (value_fetch_lazy): Likewise.
5522 * value.h (read_value_memory): Update comment.
5523
e512cdbd
SM
55242015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5525
5526 * value.c (get_value_arch): New function.
5527 * value.h (get_value_arch): New declaration.
5528
3723fda8
SM
55292015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5530
5531 * value.c (struct value): Update comments.
5532
2e056931
SM
55332015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5534
5535 * gdbtypes.c (type_length_units): New function.
5536 * gdbtypes.h (type_length_units): New declaration.
5537 (struct type) <length>: Update comment.
5538
0c87c0bf
SM
55392015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5540
5541 * valprint.c (generic_val_print): Factor out complex
5542 printing code to ...
5543 (generic_val_print_complex): ... this new function.
5544
9550ae5e
SM
55452015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5546
5547 * valprint.c (generic_val_print): Factor out decfloat
5548 printing code to ...
5549 (generic_val_print_decfloat): ... this new function.
5550
7784724b
SM
55512015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5552
5553 * valprint.c (generic_val_print): Factor out float
5554 printing code to ...
5555 (generic_val_print_float): ... this new function.
5556
385f5aff
SM
55572015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5558
5559 * valprint.c (generic_val_print): Factor out char
5560 printing code to ...
5561 (generic_val_print_char): ... this new function.
5562
b21b6342
SM
55632015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5564
5565 * valprint.c (generic_val_print): Factor out integer
5566 printing code to ...
5567 (generic_val_print_int): ... this new function.
5568
e5bead4b
SM
55692015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5570
5571 * valprint.c (generic_val_print): Factor out bool
5572 printing code to ...
5573 (generic_val_print_bool): ... this new function.
5574
4a8c372f
SM
55752015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5576
5577 * valprint.c (generic_val_print): Factor out function/method
5578 printing code to ...
5579 (generic_val_print_func): ... this new function.
5580
d93880bd
SM
55812015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5582
5583 * valprint.c (generic_val_print): Factor out flags
5584 printing code to ...
5585 (generic_val_print_flags): ... this new function.
5586
ef0bc0dd
SM
55872015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5588
5589 * valprint.c (generic_val_print): Factor out enum
5590 printing code to ...
5591 (generic_val_print_enum): ... this new function.
5592
fe43fede
SM
55932015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5594
5595 * valprint.c (generic_val_print): Factor out reference
5596 printing code to ...
5597 (generic_val_print_ref): ... this new function.
5598
45000ea2
SM
55992015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5600
5601 * valprint.c (generic_val_print): Factor out memberptr
5602 printing code to ...
5603 (generic_val_print_memberptr): ... this new function.
5604
81eb921a
SM
56052015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5606
5607 * valprint.c (generic_val_print): Factor out pointer
5608 printing code to ...
5609 (generic_val_print_ptr): ... this new function.
5610
557dbe8a
SM
56112015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5612
5613 * valprint.c (generic_val_print): Factor out array
5614 printing code to ...
5615 (generic_val_print_array): ... this new function.
5616
9f436164
SM
56172015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5618
5619 * valprint.c (generic_val_print): Factor out
5620 print_unpacked_pointer code to ...
5621 (print_unpacked_pointer): ... this new function.
5622
077836f7
PP
56232015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5624
5625 * event-top.c (handle_sigterm): Don't inspect
5626 target_can_async_p. Always set the quit flag and always mark
5627 the async signal handler.
5628
3a60804f
YQ
56292015-07-27 Yao Qi <yao.qi@linaro.org>
5630
5631 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5632
c9f35b34
KB
56332015-07-25 Kevin Buettner <kevinb@redhat.com>
5634
5635 * remote.c (read_ptid): Return null_ptid when no thread id
5636 is found.
5637 (remote_current_thread): Add log warning for malformed
5638 qC reply.
5639 (remote_start_remote): Add log warning when current thread
5640 not found.
5641
2b4cab86
PA
56422015-07-24 Pedro Alves <palves@redhat.com>
5643
5644 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5645 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5646 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5647
77598427
PA
56482015-07-24 Pedro Alves <palves@redhat.com>
5649
5650 PR gdb/18717
5651 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5652 is resumed, and extend the debug log.
5653
fe23c31f
PA
56542015-07-24 Pedro Alves <palves@redhat.com>
5655
5656 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5657
5826e159
PA
56582015-07-24 Pedro Alves <palves@redhat.com>
5659
5660 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5661 sys/ptrace.h.
5662 * alpha-linux-nat.c: Likewise.
5663 * amd64-linux-nat.c: Likewise.
5664 * arm-linux-nat.c: Likewise.
5665 * hppa-linux-nat.c: Likewise.
5666 * i386-linux-nat.c: Likewise.
5667 * ia64-linux-nat.c: Likewise.
5668 * linux-fork.c: Likewise.
5669 * linux-nat.c: Likewise.
5670 * m32r-linux-nat.c: Likewise.
5671 * m68klinux-nat.c: Likewise.
5672 * mips-linux-nat.c: Likewise.
5673 * nat/linux-btrace.c: Likewise.
5674 * nat/linux-ptrace.c: Likewise.
5675 * nat/linux-ptrace.h
5676 * nat/mips-linux-watch.c: Likewise.
5677 * nat/x86-linux-dregs.c: Likewise.
5678 * ppc-linux-nat.c: Likewise.
5679 * s390-linux-nat.c: Likewise.
5680 * spu-linux-nat.c: Likewise.
5681 * tilegx-linux-nat.c: Likewise.
5682 * x86-linux-nat.c: Likewise.
5683 * xtensa-linux-nat.c: Likewise.
5684
54019719
PA
56852015-07-24 Pedro Alves <palves@redhat.com>
5686
5687 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5688 __ptrace_request as first parameter type instead of int.
5689 (PTRACE_TYPE_ARG1): Define.
5690 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5691 that casts first argument to PTRACE_TYPE_ARG1.
5692 * config.in: Regenerate.
5693 * configure: Regenerate.
5694
e3790375
PA
56952015-07-24 Pedro Alves <palves@redhat.com>
5696
5697 * gdb_ptrace.h: Move ...
5698 * nat/gdb_ptrace.h: ... here.
5699 * inf-ptrace.c: Adjust.
5700
eb7aa561
PA
57012015-07-24 Pedro Alves <palves@redhat.com>
5702
5703 * acinclude.m4: Include ptrace.m4.
5704 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5705 * ptrace.m4: ... to this new file.
5706
cc12ce38
DE
57072015-07-23 Doug Evans <dje@google.com>
5708
5709 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5710 (load_cu): Handle dummy CUs.
5711 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5712 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5713
7b849db4
CS
57142015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5715
5716 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5717 documentation to say that it returns a list rather than
5718 a FrozenSet.
5719 (linetable_object_methods): Update the docstring of the
5720 "source_line" entry.
5721
d0d84780
PMR
57222015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5723
5724 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5725 type to the recursive call instead of the original (maybe
5726 TYPE_CODE_TYPEDEF) type.
5727
c2fbdc59
YQ
57282015-07-23 Yao Qi <yao.qi@linaro.org>
5729
5730 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5731 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5732 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5733
af1b22f3
YQ
57342015-07-21 Yao Qi <yao.qi@linaro.org>
5735
5736 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5737 Move it to nat/aarch64-linux-hw-point.c.
5738 (aarch64_linux_child_post_startup_inferior): Update.
5739 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5740 New function.
5741 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5742 Declare it.
5743
40e050d2
MM
57442015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5745
5746 * common/btrace-common.c (btrace_data_append): Change case label.
5747
3675a06a
YQ
57482015-07-20 Yao Qi <yao.qi@linaro.org>
5749
5750 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5751 Re-indent the code.
5752 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5753 "unsigned long long".
5754
b4e1fd61
KB
57552015-07-18 Kevin Buettner <kevinb@redhat.com>
5756
5757 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5758 to be set for SEC_ALLOC sections too.
5759
554717a3
YQ
57602015-07-17 Yao Qi <yao.qi@linaro.org>
5761
5762 * Makefile.in (HFILES_NO_SRCDIR): Add
5763 nat/aarch64-linux-hw-point.h.
5764 (aarch64-linux-hw-point.o): New rule.
5765 * nat/aarch64-linux-hw-point.h: New file.
5766 * nat/aarch64-linux-hw-point.c: New file.
5767 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5768 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5769 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5770 (AARCH64_HWP_ALIGNMENT): Likewise.
5771 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5772 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5773 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5774 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5775 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5776 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5777 (struct aarch64_debug_reg_state): Likewise.
5778 (struct arch_lwp_info): Likewise.
5779 (aarch64_linux_set_debug_regs): Likewise.
5780 (aarch64_notify_debug_reg_change): Remove static.
5781 (aarch64_align_watchpoint): Likewise.
5782 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5783 (aarch64_watchpoint_length): Likewise.
5784 (aarch64_point_encode_ctrl_reg): Likewise
5785 (aarch64_point_is_aligned): Likewise.
5786 (aarch64_dr_state_insert_one_point): Likewise.
5787 (aarch64_dr_state_remove_one_point): Likewise.
5788 (aarch64_handle_breakpoint): Likewise.
5789 (aarch64_handle_aligned_watchpoint): Likewise.
5790 (aarch64_handle_unaligned_watchpoint): Likewise.
5791 (aarch64_handle_watchpoint): Likewise.
5792 * config/aarch64/linux.mh (NAT_FILE): Add
5793 aarch64-linux-hw-point.o.
5794
c67ca4de
YQ
57952015-07-17 Yao Qi <yao.qi@linaro.org>
5796
5797 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5798 state and don't call aarch64_get_debug_reg_state. All callers
5799 update.
5800 (aarch64_linux_insert_hw_breakpoint): Call
5801 aarch64_get_debug_reg_state earlier.
5802 (aarch64_linux_remove_hw_breakpoint): Likewise.
5803 (aarch64_handle_aligned_watchpoint): Add argument state and
5804 don't call aarch64_get_debug_reg_state. All callers update.
5805 (aarch64_handle_unaligned_watchpoint): Likewise.
5806 (aarch64_handle_watchpoint): Add argument state.
5807 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5808 earlier.
5809 (aarch64_linux_remove_watchpoint): Likewise.
5810
25abf979
YQ
58112015-07-17 Yao Qi <yao.qi@linaro.org>
5812
5813 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5814 debug_printf.
5815 (aarch64_handle_unaligned_watchpoint): Likewise.
5816
2ecd81c2
YQ
58172015-07-17 Yao Qi <yao.qi@linaro.org>
5818
5819 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5820 argument type's type to 'enum target_hw_bp_type'.
5821 (aarch64_dr_state_remove_one_point): Likewise.
5822 (aarch64_handle_breakpoint): Likewise.
5823 (aarch64_linux_insert_hw_breakpoint): Likewise.
5824 (aarch64_linux_remove_hw_breakpoint): Likewise.
5825 (aarch64_handle_aligned_watchpoint): Likewise.
5826
e53b6938
YQ
58272015-07-17 Yao Qi <yao.qi@linaro.org>
5828
5829 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5830 ptid_get_pid instead of get_thread_id.
5831
6a49a997
YQ
58322015-07-17 Yao Qi <yao.qi@linaro.org>
5833
5834 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5835 (add_current_inferior_and_thread): Don't initialise ptid.
5836
4bcddace
PL
58372015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5838
5839 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5840 unavailable if invalid.
5841
db1ff28b
JK
58422015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 Revert the previous 6 commits:
5845 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5846 Move gdb_regex* to common/
5847 Prepare linux_find_memory_regions_full & co. for move
5848 Move linux_find_memory_regions_full & co.
5849 gdbserver build-id attribute generator
5850 Validate symbol file using build-id
5851
ca5268b6
JK
58522015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5853 Jan Kratochvil <jan.kratochvil@redhat.com>
5854
5855 Validate symbol file using build-id.
5856 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5857 and 'show validate-build-id'. Add build-id attribute.
5858 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5859 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5860 * solib-frv.c (_initialize_frv_solib): Ditto.
5861 * solib-spu.c (set_spu_solib_ops): Ditto.
5862 * solib-svr4.c: Include rsp-low.h.
5863 (NOTE_GNU_BUILD_ID_NAME): New define.
5864 (svr4_validate): New function.
5865 (svr4_copy_library_list): Duplicate field build_id.
5866 (library_list_start_library): Parse 'build-id' attribute.
5867 (svr4_library_attributes): Add 'build-id' attribute.
5868 (_initialize_svr4_solib): Assign validate value.
5869 * solib-target.c (solib.h): Include.
5870 (_initialize_solib_target): Assign validate value.
5871 * solib.c (validate_build_id, show_validate_build_id): New.
5872 (solib_map_sections): Use ops->validate.
5873 (clear_so): Free build_id.
5874 (default_solib_validate): New function.
5875 (_initialize_solib): Add "validate-build-id".
5876 * solib.h (default_solib_validate): New declaration.
5877 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5878 (target_so_ops): New field 'validate'.
5879
700ca40f
JK
58802015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5881 Jan Kratochvil <jan.kratochvil@redhat.com>
5882
5883 gdbserver build-id attribute generator.
5884 * features/library-list-svr4.dtd (library-list-svr4): New
5885 'build-id' attribute.
5886
9904185c
JK
58872015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5888 Jan Kratochvil <jan.kratochvil@redhat.com>
5889
5890 Move linux_find_memory_regions_full & co.
5891 * linux-tdep.c (nat/linux-maps.h): Include.
5892 (gdb_regex.h): Remove the include.
5893 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5894 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5895 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5896 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5897 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5898 and target/target.h.
5899 (struct smaps_vmflags, read_mapping, decode_vmflags)
5900 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5901 (linux_find_memory_regions_full): Move from linux-tdep.c.
5902 * nat/linux-maps.h (read_mapping): New declaration.
5903 (linux_find_memory_region_ftype, enum filterflags): Moved from
5904 linux-tdep.c.
5905 (linux_find_memory_regions_full): New declaration.
5906 * target.c (target/target-utils.h): Include.
5907 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5908 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5909 definitions to target/target-utils.c.
5910 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5911 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5912 from target.c.
5913 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5914 (read_alloc): New declaration.
5915 (read_stralloc_func_ftype): New typedef.
5916 (read_stralloc): New declaration.
5917 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5918
f7af1fcd
JK
59192015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5920 Jan Kratochvil <jan.kratochvil@redhat.com>
5921
5922 Prepare linux_find_memory_regions_full & co. for move.
5923 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5924 (linux_find_memory_regions_full): Change signature and prepare
5925 for moving to linux-maps.
5926 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5927 (linux_find_memory_regions_thunk): New.
5928 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5929 (linux_find_memory_regions_gdb): New.
5930 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5931 (linux_make_mappings_corefile_notes): Use
5932 linux_find_memory_regions_gdb.
5933 * target.c (read_alloc_pread_ftype): New typedef.
5934 (target_fileio_read_alloc_1_pread): New function.
5935 (read_alloc): Refactor from target_fileio_read_alloc_1.
5936 (read_stralloc_func_ftype): New typedef.
5937 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5938 (read_stralloc): Refactored from target_fileio_read_stralloc.
5939 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5940
6e5b4429
JK
59412015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5942
5943 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5944 common/gdb_regex.h.
5945 (COMMON_OBS): Add gdb_regex.o.
5946 (gdb_regex.o): New.
5947 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5948 --without-included-regex and USE_INCLUDED_REGEX.
5949 * common/gdb_regex.c: New file from utils.c functions.
5950 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5951 file wrapping define name.
5952 * configure: Rebuilt.
5953 * configure.ac (gdb_use_included_regex, --without-included-regex)
5954 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5955 * gdb_regex.h: Move it to common/gdb_regex.h.
5956 * utils.c: Remove include gdb_regex.h.
5957 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5958 (compile_rx_or_error): Move them to common/gdb_regex.c.
5959
ddc98fbf
JK
59602015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5961 Jan Kratochvil <jan.kratochvil@redhat.com>
5962
5963 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5964 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5965 common/target-utils.h.
5966 (COMMON_OBS): Add target-utils.o.
5967 (linux-maps.o, target-utils.o): New.
5968 * target/target-utils.c: New file.
5969 * target/target-utils.h: New file.
5970 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5971 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5972 * nat/linux-maps.c: New file.
5973 * nat/linux-maps.h: New file.
5974
e7b01ce0
MM
59752015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5976 Pedro Alves <palves@redhat.com>
5977
5978 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5979 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5980 (perf_event_read_bts): Change the type of SIZE and READ.
5981 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5982 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5983 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5984 mmap page.
5985 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5986 buffer size to UINT_MAX.
5987 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5988 DATA_TAIL.
5989 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5990 <last_head>: Change type.
5991 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5992 * common/btrace-common.c (btrace_data_append): Change the type of
5993 SIZE.
5994 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5995 check.
5996
f168693b
SM
59972015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6000 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6001 with check_typedef.
6002 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6003 (ada_array_length): Likewise.
6004 (find_parallel_type_by_descriptive_type): Likewise.
6005 (ada_check_typedef): Likewise.
6006 * arm-tdep.c (arm_return_in_memory): Likewise.
6007 * ax-gdb.c (gen_trace_static_fields): Likewise.
6008 (gen_struct_ref_recursive): Likewise.
6009 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6010 (variable: block COLONCOLON name): Likewise.
6011 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6012 * c-lang.c (classify_type): Likewise.
6013 * c-typeprint.c (c_print_type): Likewise.
6014 (c_print_typedef): Likewise.
6015 (c_type_print_base): Likewise.
6016 * c-valprint.c (c_val_print): Likewise.
6017 * compile/compile-c-types.c (convert_type): Likewise.
6018 * compile/compile-object-load.c (get_out_value_type): Likewise.
6019 * completer.c (add_struct_fields): Likewise.
6020 (expression_completer): Likewise.
6021 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6022 (cp_lookup_nested_symbol_1): Likewise.
6023 (cp_lookup_nested_symbol): Likewise.
6024 * cp-valprint.c (cp_print_value_fields): Likewise.
6025 (cp_print_static_field): Likewise.
6026 * d-valprint.c (d_val_print): Likewise.
6027 * eval.c (evaluate_subexp_standard): Likewise.
6028 (evaluate_subexp_for_sizeof): Likewise.
6029 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6030 * f-typeprint.c (f_type_print_base): Likewise.
6031 * f-valprint.c (f_val_print): Likewise.
6032 * gdbtypes.c (get_discrete_bounds): Likewise.
6033 (create_array_type_with_stride): Likewise.
6034 (type_name_no_tag_or_error): Likewise.
6035 (lookup_struct_elt_type): Likewise.
6036 (get_unsigned_type_max): Likewise.
6037 (internal_type_vptr_fieldno): Likewise.
6038 (set_type_vptr_fieldno): Likewise.
6039 (internal_type_vptr_basetype): Likewise.
6040 (set_type_vptr_basetype): Likewise.
6041 (get_vptr_fieldno): Likewise.
6042 (is_integral_type): Likewise.
6043 (is_scalar_type): Likewise.
6044 (is_scalar_type_recursive): Likewise.
6045 (distance_to_ancestor): Likewise.
6046 (is_unique_ancestor_worker): Likewise.
6047 (check_types_equal): Likewise.
6048 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6049
45280282
IB
60502015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6051
6052 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6053 also test for language_d.
6054 (dwarf2_compute_name): Likewise.
6055 (read_func_scope): Likewise.
6056 (read_structure_type): Likewise.
6057 (new_symbol_full): Likewise.
6058 (determine_prefix): Likewise.
6059 (read_import_statement): Use dot as the separator for language_d.
6060 (typename_concat): Likewise, but don't prefix the D main function.
6061
99fe86f7
PB
60622015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6063
6064 * nat/linux-namespaces.c (setns): Rename from this ...
6065 (do_setns): ... to this. Support calling setns if it exists.
6066 (mnsh_handle_setns): Call do_setns.
6067
d5131498
YQ
60682015-07-13 Yao Qi <yao.qi@linaro.org>
6069
6070 * exec.c (exec_file_attach): Add period at the end of error
6071 message.
6072
97605e61
AB
60732015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6074
6075 * tui/tui-win.c (window_name_completer): New function.
6076 (focus_completer): Call window_name_completer. All old content
6077 moved into window_name_completer.
6078 (winheight_completer): New function.
6079 (_initialize_tui_win): Rename variable. Add completer to
6080 winheight command. Update doc string on winheight.
6081
8d6dbeb4
SL
60822015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6083
6084 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6085 all nios2 mach variants.
6086
a0e28e54
KB
60872015-07-10 Kevin Buettner <kevinb@redhat.com>
6088
6089 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6090 of target_read_memory.
6091
c101f28f
AB
60922015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6095 string copy.
6096 (parse_scrolling_args): Likewise.
6097
150375dc
AB
60982015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6099
6100 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6101 names in this function.
6102
6dce28e4
AB
61032015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6104
6105 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6106 (CMD_NAME): Likewise.
6107 (DATA_NAME): Likewise.
6108 (DISASSEM_NAME): Likewise.
6109 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6110 (tui_set_win_height): Likewise.
6111 (parse_scrolling_args): Likewise.
6112
485668e5
MM
61132015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6114
6115 * record-btrace.c (record_btrace_goto_begin)
6116 (record_btrace_goto_end, record_btrace_goto): Move call to
6117 print_stack_frame ...
6118 (record_btrace_set_replay): ... here. Set stop_pc.
6119 * record-full.c (record_full_goto_entry): Set stop_pc.
6120
58d2eda5
PL
61212015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6122
6123 * NEWS: Mention support for tracepoints on aarch64-linux.
6124
7671bf47
PL
61252015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6126
6127 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6128 function. Return 1.
6129 (the_low_target): Install it.
6130
7890fb45
PL
61312015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6132
6133 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6134 * gdb.trace/collection.exp: Likewise.
6135 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6136 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6137 * gdb.trace/report.exp: Likewise.
6138 * gdb.trace/trace-break.exp: Likewise.
6139 * gdb.trace/unavailable.exp: Likewise.
6140 * gdb.trace/while-dyn.exp: Likewise.
6141
ea873d8e
PL
61422015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6143
6144 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6145 (aarch64_gen_return_address): New function.
6146 (aarch64_gdbarch_init): Hook it.
6147
02a2a705
PL
61482015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6149
6150 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6151 swallow NOT_AVAILABLE_ERROR.
6152 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6153 available_p is not set.
6154 (aarch64_stub_frame_unwind_stop_reason): New function.
6155 (aarch64_stub_unwind): Install it.
6156
7dfa3edc
PL
61572015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6158
6159 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6160 field.
6161 (aarch64_make_prologue_cache_1): New function, factored out from
6162 aarch64_make_prologue_cache. Do not allocate cache. Set
6163 available_p.
6164 (aarch64_make_prologue_cache): Reimplement wrapping
6165 aarch64_make_prologue_cache_1, and swallowing
6166 NOT_AVAILABLE_ERROR.
6167 (aarch64_prologue_frame_unwind_stop_reason): New function.
6168 Return UNWIND_UNAVAILABLE if available_p is not set.
6169 (aarch64_prologue_unwind): Install it.
6170 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6171 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6172 frame_id_build_unavailable_stack if available_p is not set.
6173
db634143
PL
61742015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6175
6176 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6177 fields.
6178 (aarch64_scan_prologue): Set prev_pc.
6179 (aarch64_make_prologue_cache): Set func.
6180 (aarch64_make_stub_cache): Set prev_pc.
6181 (aarch64_prologue_this_id): Remove local variables id, pc and
6182 func. Read prev_pc and func from cache.
6183 (aarch64_stub_this_id): Read prev_pc from cache.
6184
8b61f75d
PL
61852015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6186
6187 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6188 argument this_cache. Remove unused local variables reg and
6189 unwound_fp. Return early if this_cache is already set. Set
6190 this_cache.
6191 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6192
7c8edfae
PL
61932015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6194
6195 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6196 New argument this_cache. Return early if this_cache is already
6197 set. Set this_cache.
6198 (aarch64_prologue_this_id): Update call to
6199 aarch64_make_prologue_cache.
6200 (aarch64_prologue_prev_register): Likewise.
6201 (aarch64_normal_frame_base): Likewise.
6202
938c69a1
SM
62032015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6204
6205 * c-valprint.c (c_val_print): Factor out memberptr printing code
6206 from c_val_print to ...
6207 (c_val_print_memberptr): ... this new function.
6208
49f7fe28
SM
62092015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6210
6211 * c-valprint.c (c_val_print): Factor out int printing code to ...
6212 (c_val_print_int): ... this new function.
6213
9e4f353c
SM
62142015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * c-valprint.c (c_val_print): Factor out struct and union
6217 printing code to ...
6218 (c_val_print_struct): ... this new function ...
6219 (c_val_print_union): ... and this new function.
6220
1c67f032
SM
62212015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6222
6223 * c-valprint.c (c_val_print): Factor out pointer printing code
6224 to ...
6225 (c_val_print_ptr): ... this new function.
6226
0b6ef777
SM
62272015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * c-valprint.c (c_valprint): Factor our array printing code from
6230 c_val_print to ...
6231 (c_val_print_array): ... this new function.
6232
1033c33c
SM
62332015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6234
6235 * c-valprint.c (c_val_print): Factor out pointer printing code
6236 to ...
6237 (print_unpacked_pointer): ... this new function.
6238
f6b93c34
SM
62392015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6240
6241 * c-valprint.c (c_val_print): Remove an assignment to i and move
6242 its declaration.
6243
0f4576e3
YQ
62442015-07-09 Yao Qi <yao.qi@linaro.org>
6245
6246 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6247 argument ptid. Update comments. Caller update.
6248
37fdfe4c
MM
62492015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6250
6251 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6252 mnt packets.
6253
80a2b330
MM
62542015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6255
6256 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6257
4ab31498
SM
62582015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6259
6260 * progspace.c (delete_program_space): Add missing spaces.
6261
7a41607e
SM
62622015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6263
6264 * inferior.c (delete_inferior_1): Rename to ...
6265 (delete_inferior): ..., remove 'silent' parameter, delete
6266 program space when unused and remove call to prune_program_spaces.
6267 Remove the old, unused, delete_inferior.
6268 (delete_inferior_silent): Remove.
6269 (prune_inferiors): Change call from delete_inferior_1 to
6270 delete_inferior and remove 'silent' parameter. Remove call to
6271 prune_program_spaces.
6272 (remove_inferior_command): Idem.
6273 * inferior.h (delete_inferior_1): Rename to...
6274 (delete_inferior): ..., remove 'silent' parameter and remove the
6275 original delete_inferior.
6276 (delete_inferior_silent): Remove.
6277 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6278 delete_inferior_1 to delete_inferior and remove 'silent'
6279 parameter.
6280 * progspace.c (prune_program_spaces): Remove.
6281 (pspace_empty_p): Rename to...
6282 (program_space_empty_p): ... and make non-static.
6283 (delete_program_space): New.
6284 * progspace.h (prune_program_spaces): Remove declaration.
6285 (program_space_empty_p): New declaration.
6286 (delete_program_space): New declaration.
6287 * monitor.c (monitor_close): Replace call to
6288 delete_thread_silent and delete_inferior_silent with
6289 discard_all_inferiors.
6290
a9bd710f
PP
62912015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6292
6293 * defs.h (deprecated_register_changed_hook): Remove prototype.
6294 * interps.c (clear_iterpreter_hooks): Remove reference to
6295 deprecated_register_changed_hook.
6296 * top.c (deprecated_register_changed_hook): Remove prototype.
6297 * valops.c (value_assign): Remove reference to
6298 deprecated_register_changed_hook.
6299 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6300 Add comment documenting the function.
6301 (tui_register_changed_observer): Define.
6302 (tui_install_hooks): Remove reference to
6303 deprecated_register_changed_hook. Set
6304 tui_register_changed_observer.
6305 (tui_remove_hooks): Remove reference to
6306 deprecated_register_changed_hook. Unset
6307 tui_register_changed_observer.
6308
08464196
JK
63092015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6310
6311 PR compile/18484
6312 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6313
bcf5c1d9
RC
63142015-07-08 Robert O'Callahan <robert@ocallahan.org>
6315
6316 PR exp/18617
6317 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6318
e8643a45
MM
63192015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6320
6321 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6322
76fb6829
MM
63232015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6324
6325 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6326 Use safe_strerror() instead of strerror().
6327
82c40d4b
YQ
63282015-07-07 Yao Qi <yao.qi@linaro.org>
6329
6330 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6331 * features/arm-with-m-fpa-layout.c: Regenerated.
6332 * features/arm-with-m-vfp-d16.xml: Likewise.
6333 * features/arm-with-m-vfp-d16.c: Regenerated.
6334 * features/arm-with-m.xml: Likewise.
6335 * features/arm-with-m.c: Regenerated.
6336 * features/arm-with-neon.xml: Likewise.
6337 * features/arm-with-neon.c: Regenerated.
6338 * features/arm-with-vfpv2.xml: Likewise.
6339 * features/arm-with-vfpv2.c: Regenerated.
6340 * features/arm-with-vfpv3.xml: Likewise.
6341 * features/arm-with-vfpv3.c: Regenerated.
6342
607685ec
YQ
63432015-07-07 Yao Qi <yao.qi@linaro.org>
6344
6345 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6346 arm-linux-nat.c.
6347 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6348 elf/external.h.
6349 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6350 if target is 32-bit.
6351 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6352 if target is 32-bit.
6353 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6354 if target is 32-bit.
6355 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6356 if target is 32-bit.
6357 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6358 (aarch64_linux_read_description): Return the right target
6359 description.
6360 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6361 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6362 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6363 arm-linux-tdep.o.
6364
f1b67888
YQ
63652015-07-07 Yao Qi <yao.qi@linaro.org>
6366
6367 * aarch32-linux-nat.c: New file.
6368 * aarch32-linux-nat.h: New file.
6369 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6370 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6371 aarch32_gp_regcache_supply.
6372 (store_regs): Move code to aarch32-linux-nat.c. Call
6373 aarch32_gp_regcache_collect.
6374 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6375 aarch32_vfp_regcache_supply.
6376 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6377 aarch32_vfp_regcache_collect.
6378 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6379
179bfe82
YQ
63802015-07-07 Yao Qi <yao.qi@linaro.org>
6381
6382 * arm-linux-nat.c (store_fpregister): Remove.
6383 (store_register): Likewise.
6384 (fetch_fpregister): Likewise.
6385 (fetch_register): Likewise.
6386 (arm_linux_store_inferior_registers): Call store_regs and
6387 store_fpregs instead.
6388 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6389 fetch_regs instead.
6390
6008fc5f
AB
63912015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6394 and focus commands.
6395
7c79d316
JB
63962015-07-06 Joel Brobecker <brobecker@adacore.com>
6397
6398 * NEWS: Create a new section for the next release branch.
6399 Rename the section of the current branch, now that it has
6400 been cut.
6401
f2232bea
JB
64022015-07-06 Joel Brobecker <brobecker@adacore.com>
6403
6404 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6405 * version.in: Bump version to 7.10.50.DATE-cvs.
6406
66c4b3e8
LM
64072015-07-06 Luis Machado <lgustavo@codesourcery.com>
6408
6409 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6410 breakpoints in a special way.
6411 (remove_breakpoint): Likewise.
6412 (mark_breakpoints_out): Likewise.
6413
bcd8537c
AB
64142015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6415
6416 * doc/gdb.texinfo (TUI): Add comma after @xref.
6417
10e9aaa3
AB
64182015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6421 instead of casting the structure type.
6422
8a13d42d
SM
64232015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6424
6425 * valops.c (search_struct_field): Remove OFFSET parameter.
6426 (value_cast_structs): Adjust calls to search_struct_field.
6427 (value_struct_elt): Same.
6428 (find_overload_match): Same.
6429
a844296a
SM
64302015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * value.c (value_fetch_lazy): Update comment, change return
6433 value to void.
6434 * value.h (value_fetch_lazy): Change return value to void.
6435
f41cbf58
AB
64362015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6439 (tui_win_name): Make parameter and result const.
6440 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6441
118ca224
PP
64422015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6443
6444 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6445 use printf_unfiltered.
6446 (set_mpx_cmd): Add missing trailing space to command string
6447 literal.
6448 (_initialize_i386_tdep): Give the "mpx" prefix command its
6449 correct name.
6450
1b485e67
KB
64512015-07-02 Kevin Buettner <kevinb@redhat.com>
6452
6453 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6454 (enum rx_frame_type): New.
6455 (struct rx_prologue): Add new field `frame_type'.
6456 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6457 parameter in the prologue struct. Add code for recording
6458 locations of PC and PSW for fast interrupt and exception frames.
6459 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6460 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6461 (rx_frame_type): New function.
6462 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6463 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6464 `this_cache'.
6465 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6466 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6467 RX_FRAME_TYPE_FAST_INTERRUPT.
6468 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6469 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6470 (rx_frame_unwind): Use rx_frame_sniffer instead of
6471 default_frame_sniffer.
6472 (rx_frame_unwind): New unwinder.
6473 (rx_gdbarch_init): Register new unwinder.
6474
0561fea4
KB
64752015-07-02 Kevin Buettner <kevinb@redhat.com>
6476
6477 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6478 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6479 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6480 and RX_FPSW_REGNUM.
6481 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6482
decf8d9a
JK
64832015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6484
6485 Fix GCC false warning.
6486 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6487
2fd0f80d
YQ
64882015-07-02 Yao Qi <yao.qi@linaro.org>
6489
6490 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6491 typo in the debugging message.
6492
b0627500
MM
64932015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6494
6495 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6496 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6497 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6498 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6499 (btrace_maint_clear): New.
6500 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6501 (pt_print_packet, btrace_maint_decode_pt)
6502 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6503 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6504 (maint_btrace_packet_history_cmd)
6505 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6506 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6507 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6508 (maint_info_btrace_cmd, _initialize_btrace): New.
6509 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6510 (btrace_maint_packet_history, btrace_maint_info): New.
6511 (btrace_thread_info) <maint>: New.
6512 * NEWS: Announce it.
6513
9be54cae
MM
65142015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6515
6516 * btrace.c (btrace_fetch): Append the new trace data.
6517 (btrace_clear): Clear the stored trace data.
6518 * btrace.h (btrace_thread_info) <data>: New.
6519 * common/btrace-common.h (btrace_data_clear)
6520 (btrace_data_append): New.
6521 * common/btrace-common.c (btrace_data_clear)
6522 (btrace_data_append): New.
6523
010a18a1
MM
65242015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6525
6526 * nat/linux-btrace.c (linux_enable_bts): Check for
6527 PERF_ATTR_SIZE_VER5.
6528 Check for data_offset and data_size fields. Use them.
6529
b20a6524
MM
65302015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6531
6532 * NEWS: Announce new commands "record btrace pt" and "record pt".
6533 Announce new options "set|show record btrace pt buffer-size".
6534 * btrace.c: Include "rsp-low.h".
6535 Include "inttypes.h".
6536 (btrace_add_pc): Add forward declaration.
6537 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6538 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6539 (btrace_compute_ftrace_pt): New.
6540 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6541 (check_xml_btrace_version): Update version check.
6542 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6543 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6544 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6545 (btrace_pt_children): New.
6546 (btrace_children): Add support for "pt".
6547 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6548 (btrace_conf_children): Add support for "pt".
6549 * btrace.h: Include "intel-pt.h".
6550 (btrace_pt_error): New.
6551 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6552 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6553 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6554 (struct btrace_config_pt): New.
6555 (struct btrace_config)<pt>: New.
6556 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6557 (struct btrace_data)<pt>: New.
6558 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6559 (pt): New.
6560 * features/btrace.dtd (btrace)<pt>: New.
6561 (pt, pt-config, cpu): New.
6562 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6563 (perf_event_pt_event_type, kernel_supports_pt)
6564 (linux_supports_pt): New.
6565 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6566 (linux_enable_bts): Free tinfo on error.
6567 (linux_enable_pt): New.
6568 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6569 (linux_disable_pt): New.
6570 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6571 (linux_fill_btrace_pt_config, linux_read_pt): New.
6572 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6573 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6574 (struct btrace_target_info)<pt>: New.
6575 * record-btrace.c (set_record_btrace_pt_cmdlist)
6576 (show_record_btrace_pt_cmdlist): New.
6577 (record_btrace_print_pt_conf): New.
6578 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6579 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6580 (cmd_record_btrace_pt_start): New.
6581 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6582 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6583 (_initialize_record_btrace): Add new commands.
6584 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6585 (remote_protocol_features): Add "Qbtrace:pt".
6586 Add "Qbtrace-conf:pt:size".
6587 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6588 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6589 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6590 (_initialize_remote): Add new commands.
6591
58bfce93
MM
65922015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6593
6594 * configure.ac: check for libipt
6595 * configure: Regenerate.
6596 * config.in: Regenerate.
6597 * Makefile.in (LIBIPT): New.
6598 (CLIBS): Add $LIBIPT.
6599 * NEWS: document new configure options
6600
b0fd6b30
JK
66012015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6602
6603 * compile/compile-object-load.c (compile_object_load): Replace debug
6604 message "lookup undefined ELF symbol" by 3 more specific messages.
6605
e6280369
KB
66062015-07-01 Kevin Buettner <kevinb@redhat.com>
6607
6608 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6609 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6610 (rl78_gdbarch_init): Initialize rl78_psw_type.
6611
bbcbf914
PP
66122015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6613
6614 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6615 Update commentary. Always refresh the registers when frame
6616 information has changed.
6617 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6618 Change return type to int. Return 1 if frame information has
6619 changed, 0 otherwise.
6620 (tui_before_prompt): Update commentary.
6621 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6622 int.
6623
0986c744
PP
66242015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6625
6626 PR tui/13378
6627 * frame.c (select_frame): Remove reference to
6628 deprecated_selected_frame_level_changed_hook.
6629 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6630 declaration.
6631 * stack.c (deprecated_selected_frame_level_changed_hook):
6632 Likewise.
6633 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6634 Rename to ...
6635 (tui_refresh_frame_and_register_information): ... this. Bail
6636 out if there is no stack. Don't update register information
6637 unless registers_too_p is true.
6638 (tui_print_frame_info_listing_hook): Rename to ...
6639 (tui_dummy_print_frame_info_listing_hook): ... this.
6640 (tui_before_prompt): New function.
6641 (tui_normal_stop): New function.
6642 (tui_before_prompt_observer): New observer.
6643 (tui_normal_stop_observer): New observer.
6644 (tui_install_hooks): Set
6645 deprecated_print_frame_info_listing_hook to
6646 tui_dummy_print_frame_info_listing_hook. Register
6647 tui_before_prompt_observer to call tui_before_prompt and
6648 tui_normal_stop_observer to call tui_normal_stop. Remove
6649 reference to deprecated_selected_frame_level_changed_hook.
6650 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6651 and tui_normal_stop_observer. Remove reference to
6652 deprecated_selected_frame_level_changed_hook.
6653
b5fca6d7
PP
66542015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6655
6656 PR tui/13378
6657 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6658 return an int instead of void. Return whether the locator
6659 window has changed.
6660 (tui_show_frame_info): If the locator info has not changed, then
6661 bail out early to avoid refreshing the windows.
6662
c45613e3
PP
66632015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6664
6665 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6666 LOCATOR_WIN to tui_alloc_content.
6667
7b9be803
YQ
66682015-06-30 Yao Qi <yao.qi@linaro.org>
6669
6670 PR tdep/18605
6671 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6672 instructions.
6673
fd6e021d
KB
66742015-06-29 Kevin Buettner <kevinb@redhat.com>
6675
78ab7e9d
KB
6676 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6677 (rx_dwarf_reg_to_regnum): New function.
6678 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6679 unwinding.
fd6e021d 6680
28bf096c
PA
66812015-06-29 Pedro Alves <palves@redhat.com>
6682
6683 PR threads/18127
6684 * infcall.c (run_inferior_call): On infcall success, if the thread
6685 was marked stopped before, reset it back to stopped.
6686 * infrun.c (resume): Don't suppress the set_running calls when
6687 doing an infcall.
6688 (normal_stop): Only discard the finish_thread_state cleanup if the
6689 infcall succeeded.
6690
2880b51c 66912015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6692
6693 * MAINTAINERS (Write After Approval): Update my email address.
6694
ee93cd5e
KS
66952015-06-26 Keith Seitz <keiths@redhat.com>
6696 Doug Evans <dje@google.com>
6697
6698 PR 16253
6699 * block.c (block_lookup_symbol): For non-function blocks,
6700 continue to search for a symbol with an exact domain match
6701 Otherwise, return any previously found "best domain" symbol.
6702 (block_lookup_symbol_primary): Likewise.
6703
fc637f04
PP
67042015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6705
6706 * NEWS: Mention the new option "history remove-duplicates".
6707 * top.c (history_remove_duplicates): New static variable.
6708 (show_history_remove_duplicates): New static function.
6709 (gdb_add_history): Conditionally remove duplicate history
6710 entries.
6711 (init_main): Add "history remove-duplicates" option.
6712
2e52ae68
PP
67132015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6714
6715 * tui/tui-win.c (focus_completer): New static function.
6716 (_initialize_tui_win): Set the completion function of the
6717 "focus" command to focus_completer.
6718
6e22494e
JK
67192015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6720
6721 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6722 and language_asm..
6723 * symtab.c (find_function_start_sal): Likewise.
6724
f8773be1
GB
67252015-06-25 Gary Benson <gbenson@redhat.com>
6726
6727 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6728 it is the empty string after trailing slashes have been stripped.
6729
a3be80c3
GB
67302015-06-25 Gary Benson <gbenson@redhat.com>
6731
6732 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6733 * infrun.c (follow_exec): Likewise.
6734 * remote.c (remote_filesystem_is_local): Likewise.
6735 * solib.c (solib_find_1): Likewise.
6736
32fad71f
KS
67372015-06-24 Keith Seitz <keiths@redhat.com>
6738
6739 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6740 return value from lrealpath.
6741
87d1b309
MF
67422015-06-24 Mike Frysinger <vapier@gentoo.org>
6743
6744 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6745
23bf70af
MF
67462015-06-24 Mike Frysinger <vapier@gentoo.org>
6747
6748 * remote-sim.c: Include gdb_bfd.h.
6749 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6750 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6751
5cd867b4
YQ
67522015-06-24 Yao Qi <yao.qi@linaro.org>
6753
6754 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6755 set_gdbarch_get_siginfo_type.
6756 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6757 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6758 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6759 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6760 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6761 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6762 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6763 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6764 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6765 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6766
dc06243f
GB
67672015-06-24 Gary Benson <gbenson@redhat.com>
6768
6769 * common/buffer.c (stdint.h): Do not include.
6770 * common/print-utils.c (stdint.h): Likewise.
6771 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6772 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6773 * ft32-tdep.c (gdb_assert.h): Likewise.
6774 * guile/scm-utils.c (stdint.h): Likewise.
6775 * i386-linux-tdep.c (stdint.h): Likewise.
6776 * i386-tdep.c (stdint.h): Likewise.
6777 * nat/linux-btrace.c (stdint.h): Likewise.
6778 * nat/linux-btrace.h (stdint.h): Likewise.
6779 * nat/linux-ptrace.c (stdint.h): Likewise.
6780 * nat/mips-linux-watch.h (stdint.h): Likewise.
6781 * ppc-linux-nat.c (stdint.h): Likewise.
6782 * python/python-internal.h (stdint.h): Likewise.
6783 * stub-termcap.c (stdlib.h): Likewise.
6784 * target/target.h (stdint.h): Likewise.
6785 * xtensa-linux-nat.c (stdint.h): Likewise.
6786
0fc26caf
PP
67872015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6788
6789 * top.c (init_history): Look at errno after calling strtol to
6790 properly map large GDBHISTSIZE values to infinity.
6791
a38fe4fe
DE
67922015-06-23 Doug Evans <dje@google.com>
6793
6794 * inferior.h (struct inferior_suspend_state): Delete, unused.
6795 All references deleted.
6796
7564fe45
MF
67972015-06-23 Mike Frysinger <vapier@gentoo.org>
6798
6799 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6800 (microblaze_push_dummy_call): Likewise.
6801 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6802 and set_gdbarch_push_dummy_call.
6803
0bdb2f78
YQ
68042015-06-23 Yao Qi <yao.qi@linaro.org>
6805
6806 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6807 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6808 (amd64_linux_store_inferior_registers): Likewise.
6809 * arm-linux-nat.c (fetch_fpregister): Likewise.
6810 (fetch_fpregs, store_fpregister): Likewise.
6811 (store_fpregister, store_fpregs): Likewise.
6812 (fetch_register, fetch_regs): Likewise.
6813 (store_register, store_regs): Likewise.
6814 (fetch_vfp_regs, store_vfp_regs): Likewise.
6815 (arm_linux_read_description): Check have_ptrace_getregset is
6816 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6817 or TRIBOOL_FALSE.
6818 * i386-linux-nat.c (fetch_xstateregs): Check
6819 have_ptrace_getregset is not TRIBOOL_TRUE.
6820 (store_xstateregs): Likewise.
6821 * linux-nat.c (have_ptrace_getregset): Change its type to
6822 enum tribool.
6823 * linux-nat.h (tribool): New enum.
6824 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6825 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6826
18a94d75
DE
68272015-06-19 Doug Evans <dje@google.com>
6828
6829 * NEWS: Mention Sun's version of stabs is no longer supported.
6830 * elfread.c (free_elfinfo): Delete. All uses updated.
6831 (elfstab_offset_sections): Delete. All uses updated.
6832 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6833 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6834 All uses updated.
6835 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6836 All callers updated.
6837
124e13d9
SM
68382015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6839
6840 * common/rsp-low.c (needs_escaping): New.
6841 (remote_escape_output): Add unit_size parameter. Refactor to
6842 support multi-byte addressable units. Rename parameters.
6843 * common/rsp-low.h (remote_escape_output): Add unit_size
6844 parameter and rename others. Update doc.
6845 * remote.c (align_for_efficient_write): New.
6846 (remote_write_bytes_aux): Add unit_size parameter and use it.
6847 Rename some variables. Update doc.
6848 (remote_xfer_partial): Get unit size and use it.
6849 (remote_read_bytes_1): Add unit_size parameter and use it.
6850 Rename some variables. Update doc.
6851 (remote_write_bytes): Same.
6852 (remote_xfer_live_readonly_partial): Same.
6853 (remote_read_bytes): Same.
6854 (remote_flash_write): Update call to remote_write_bytes_aux.
6855 (remote_write_qxfer): Update call to remote_escape_output.
6856 (remote_search_memory): Same.
6857 (remote_hostio_pwrite): Same.
6858
6ae88661
LM
68592015-06-17 Luis Machado <lgustavo@codesourcery.com>
6860
6861 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6862 locations as inserted.
6863 Update and expand comment about permanent locations.
6864 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6865 Move comment to add_location_to_breakpoint.
6866 (update_global_location_list): Don't error out if a permanent
6867 breakpoint is not marked inserted.
6868 Don't error out if a non-permanent breakpoint location is inserted on
6869 top of a permanent breakpoint.
6870
da4616f6
LM
68712015-06-17 Luis Machado <lgustavo@codesourcery.com>
6872
6873 * breakpoint.c (make_breakpoint_permanent): Remove unused
6874 function.
6875 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6876
bc460514
PP
68772015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6878
6879 PR gdb/16999
6880 * NEWS: Mention new GDBHISTSIZE behavior.
6881 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6882 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6883
b58c513b
PP
68842015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6885
6886 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6887 * top.c (init_history): Read from GDBHISTSIZE instead of
6888 HISTSIZE.
6889 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6890
2093d2d3
PP
68912015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6892
6893 * top.c (gdb_safe_append_history): Do not call
6894 history_truncate_file if the history is not stifled.
6895
fc248485
AA
68962015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6897
6898 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6899 * syscalls/s390x-linux.xml: Likewise.
6900
4da680ad
ME
69012015-06-16 Michael Eager <eager@eagercon.com>
6902
6903 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6904
0a75489f
PP
69052015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6906
6907 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6908 target_terminal_ours_for_output() before calling
6909 tui_show_frame_info(), and restore the original terminal
6910 settings afterwards.
6911
95855ca8
MS
69122015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6913
6914 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6915
cfc32360
SM
69162015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6917
6918 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6919 memory unit size.
6920 (mi_cmd_data_write_memory_bytes): Same.
6921
cb6f16cf
SM
69222015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * corefile.c (write_memory): Update doc.
6925 * gdbcore.h (write_memory): Same.
6926
31b7833d
JK
69272015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6928
6929 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6930 (dump_mapping_p): Use it for parameter filterflags.
6931 (linux_find_memory_regions_full): Use it for variable filterflags.
6932
909c2cda
JK
69332015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6934 Jan Kratochvil <jan.kratochvil@redhat.com>
6935
6936 Merge multiple hex conversions.
6937 * monitor.c: Include rsp-low.h.
6938 (fromhex): Remove definition.
6939
03aef70f
JK
69402015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6941 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 Move utility functions to common/.
6944 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6945 Move defs to common/common-utils.c.
6946 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6947 (skip_to_space_const): Move decls to common/common-utils.h.
6948 * common/common-defs.h: Move include of common-types.h before
6949 common-utils.h.
6950 * common/common-utils.c: Include host-defs.h and ctype.h.
6951 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6952 from utils.c.
6953 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6954 cli/cli-utils.c.
6955 * common/common-utils.h (strtoulst): Move decl from utils.h.
6956 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6957 Move from cli/cli-utils.h.
6958 * common/host-defs.h: Include limits.h.
6959 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6960 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6961 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6962 common/common-utils.h.
6963 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6964 (strtoulst): Move to common/common-utils.c.
6965 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6966
d1168cc1
YQ
69672015-06-15 Yao Qi <yao.qi@linaro.org>
6968
6969 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6970
c74f7d1c
JT
69712015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6972
6973 * build-id.c: Don't include elf-bfd.h.
6974 (build_id_bfd_get): Use bfd_build_id.
6975 (build_id_verify): Ditto.
6976 * build-id.h: Ditto.
6977 (find_separate_debug_file_by_buildid): Ditto.
6978 * python/py-objfile.c: Don't include elf-bfd.h.
6979 (objfpy_get_build_id) Use bfd_build_id.
6980 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6981 * coffread.c: Include build-id.h.
6982 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6983
f20c58f5
JT
69842015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6985
6986 * windows-nat.c (do_windows_fetch_inferior_registers)
6987 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6988 conditional with __CYGWIN__.
6989
51f0e40d
AB
69902015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6991
6992 * completer.c: Add arch-utils.h include.
6993 (enum reg_completer_targets): New enum.
6994 (reg_or_group_completer_1): New function containing old
6995 reg_or_group_completer, add and use new parameter to control what
6996 is completed on. Use get_current_arch rather than architecture of
6997 currently selected frame.
6998 (reg_or_group_completer): Call new reg_or_group_completer_1.
6999 (reggroup_completer): Call new reg_or_group_completer_1.
7000 * completer.h (reggroup_completer): Add declaration.
7001 * tui/tui-regs.c: Add 'completer.h' include.
7002 (tui_reg_next_command): Renamed to...
7003 (tui_reg_next): ...this. Adjust parameters and return rather than
7004 display new group.
7005 (tui_reg_prev_command): Renamed to...
7006 (tui_reg_prev): ...this. Adjust parameters and return rather than
7007 display new group.
7008 (tui_reg_float_command): Delete.
7009 (tui_reg_general_command): Delete.
7010 (tui_reg_system_command): Delete.
7011 (tui_reg_command): Rewrite to perform switching of register group.
7012 Add header comment.
7013 (tuireglist): Remove.
7014 (tui_reggroup_completer): New function.
7015 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7016 creation of 'tui reg' command.
7017 * NEWS: Add comment about 'tui reg' changes.
7018
d309493c
SM
70192015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7020
7021 * target.c (target_read): Consider addressable unit size when
7022 reading from a memory object.
7023 (read_memory_robust): Same.
7024 (read_whatever_is_readable): Same.
7025 (target_write_with_progress): Consider addressable unit size
7026 when writing to a memory object.
7027 * target.h (target_read): Update documentation.
7028 (target_write): Add documentation.
7029
3374165f
SM
70302015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7031
7032 * arch-utils.h (default_addressable_memory_unit_size): New.
7033 * arch-utils.c (default_addressable_memory_unit_size): New.
7034 * gdbarch.sh (addressable_memory_unit_size): New.
7035 * gdbarch.h: Re-generate.
7036 * gdbarch.c: Re-generate.
7037
279a6fed
SM
70382015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * target.c (target_read): Rename variables and use
7041 TARGET_XFER_E_IO.
7042 (target_read_with_progress): Same.
7043 (read_memory_robust): Constify parameters and rename
7044 variables.
7045 (read_whatever_is_readable): Constify parameters,
7046 rename variables, adjust formatting.
7047 * target.h (read_memory_robust): Constify parameters.
7048
1e5338b6 70492015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7050
7051 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7052 synthetic (non-AltiVec) vector types.
7053 (ppc64_sysv_abi_return_value): Likewise.
7054
98aa42ee
AT
70552015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7056
7057 PR breakpoints/16465
7058 * breakpoint.c (create_breakpoint): Save extra_string for
7059 pending breakpoints.
7060
966f0aef
WT
70612015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7062
7063 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7064 and bt_mask to CORE_ADDR.
7065
6449ed0d
GB
70662015-06-11 Gary Benson <gbenson@redhat.com>
7067
7068 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7069 (mnsh_recv_message): Likewise.
7070
34f8ac9f
WT
70712015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7072
7073 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7074 long long int and plongest instead of %ll.
7075
198c808c
GB
70762015-06-11 Gary Benson <gbenson@redhat.com>
7077
7078 * nat/linux-namespaces.c (gdb_wait.h): New include.
7079 (sys/wait.h): Do not include.
7080
e815d2d2
SM
70812015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7082
7083 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7084 end_sequence is true.
7085
8847cac2
JK
70862015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7087
7088 Code cleanup.
7089 * solib-target.c (library_list_start_list): Use explicit NULL
7090 comparison.
7091
24c05f46
JK
70922015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7093
7094 * solib-target.c (library_list_start_list): Do not dereference
7095 variable version in its initialization. Make the VERSION check handle
7096 NULL.
7097 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7098
51aad7cc
GB
70992015-06-10 Gary Benson <gbenson@redhat.com>
7100
7101 * NEWS: Announce support for direct access of executable and
7102 shared library files when attaching to inferiors in containers
7103 on GNU/Linux systems.
7104
15a201c8
GB
71052015-06-10 Gary Benson <gbenson@redhat.com>
7106
7107 * remote.c (struct remote_state) <fs_pid>: New field.
7108 (new_remote_state): Initialize the above.
7109 (PACKET_vFile_setfs): New enum value.
7110 (remote_hostio_set_filesystem): New function.
7111 (remote_hostio_open): Call the above.
7112 (remote_hostio_unlink): Likewise.
7113 (remote_hostio_readlink): Likewise.
7114 (_initialize_remote): Register new "set/show remote
7115 hostio-setfs-packet" command.
7116 * NEWS: Announce new vFile:setfs packet.
7117
7a6a1731
GB
71182015-06-10 Gary Benson <gbenson@redhat.com>
7119
7120 * linux-nat.c (nat/linux-namespaces.h): New include.
7121 (fileio.h): Likewise.
7122 (linux_nat_filesystem_is_local): New function.
7123 (linux_nat_fileio_pid_of): Likewise.
7124 (linux_nat_fileio_open): Likewise.
7125 (linux_nat_fileio_readlink): Likewise.
7126 (linux_nat_fileio_unlink): Likewise.
7127 (linux_nat_add_target): Initialize to_filesystem_is_local,
7128 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7129 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7130 commands.
7131 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7132
07c138c8
GB
71332015-06-10 Gary Benson <gbenson@redhat.com>
7134
7135 * target.h (struct inferior): New forward declaration.
7136 (struct target_ops) <to_filesystem_is_local>: Update comment.
7137 (struct target_ops) <to_fileio_open>: New argument inf.
7138 Update comment. All implementations updated.
7139 (struct target_ops) <to_fileio_unlink>: Likewise.
7140 (struct target_ops) <to_fileio_readlink>: Likewise.
7141 (target_filesystem_is_local): Update comment.
7142 (target_fileio_open): New argument inf. Update comment.
7143 (target_fileio_unlink): Likewise.
7144 (target_fileio_readlink): Likewise.
7145 (target_fileio_read_alloc): Likewise.
7146 (target_fileio_read_stralloc): Likewise.
7147 * target.c (target_fileio_open): New argument inf.
7148 Pass inf to implementation. Update debug printing.
7149 (target_fileio_unlink): Likewise.
7150 (target_fileio_readlink): Likewise.
7151 (target_fileio_read_alloc_1): New argument inf. Pass inf
7152 to target_fileio_open.
7153 (target_fileio_read_alloc): New argument inf. Pass inf to
7154 target_fileio_read_alloc_1.
7155 (target_fileio_read_stralloc): Likewise.
7156 * gdb_bfd.c (inferior.h): New include.
7157 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7158 argument with new argument "inferior". Pass inferior to
7159 target_fileio_open.
7160 (gdb_bfd_open): Supply inferior argument to
7161 gdb_bfd_iovec_fileio_open.
7162 * linux-tdep.c (linux_info_proc): Supply inf argument to
7163 relevant target_fileio calls.
7164 (linux_find_memory_regions_full): Likewise.
7165 (linux_fill_prpsinfo): Likewise.
7166 * remote.c (remote_filesystem_is_local): Supply inf
7167 argument to remote_hostio_open.
7168 (remote_file_put): Likewise.
7169 (remote_file_get): Likewise.
7170 (remote_file_delete): Supply inf argument to
7171 remote_hostio_unlink.
7172
12e2a5fd
GB
71732015-06-10 Gary Benson <gbenson@redhat.com>
7174
7175 * inf-child.c (inf_child_fileio_open): Replace comment.
7176 (inf_child_fileio_pwrite): Likewise.
7177 (inf_child_fileio_pread): Likewise.
7178 (inf_child_fileio_fstat): Insert blank line before comment.
7179 (inf_child_fileio_close): Replace comment.
7180 (inf_child_fileio_unlink): Likewise.
7181 (inf_child_fileio_readlink): Likewise.
7182 * remote.c (remote_hostio_open): Likewise.
7183 (remote_hostio_pread): Likewise.
7184 (remote_hostio_pwrite): Likewise.
7185 (remote_hostio_close): Likewise.
7186 (remote_hostio_unlink): Likewise.
7187 (remote_hostio_readlink): Likewise.
7188 (remote_hostio_fstat): Likewise.
7189 (remote_filesystem_is_local): Likewise.
7190 * target.c (target_fileio_open): Likewise.
7191 (target_fileio_pwrite): Likewise.
7192 (target_fileio_pread): Likewise.
7193 (target_fileio_fstat): Insert blank line before comment.
7194 (target_fileio_close): Replace comment.
7195 (target_fileio_unlink): Likewise.
7196 (target_fileio_readlink): Likewise.
7197 (target_fileio_read_alloc): Likewise.
7198 (target_fileio_read_stralloc): Likewise.
7199
9bc3a976
GB
72002015-06-10 Gary Benson <gbenson@redhat.com>
7201
7202 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7203 (check_pid_namespace_match): Use linux_ns_same rather than
7204 linux_proc_pid_get_ns to spot PID namespace mismatches.
7205 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7206 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7207
4b8b5e72
GB
72082015-06-10 Gary Benson <gbenson@redhat.com>
7209
7210 * configure.ac (AC_CHECK_FUNCS): Add setns.
7211 * config.in: Regenerate.
7212 * configure: Likewise.
7213 * nat/linux-namespaces.h: New file.
7214 * nat/linux-namespaces.c: Likewise.
7215 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7216 (linux-namespaces.o): New rule.
7217 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7218 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7219 * config/arm/linux.mh (NATDEPFILES): Likewise.
7220 * config/i386/linux.mh (NATDEPFILES): Likewise.
7221 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7222 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7223 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7224 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7225 * config/mips/linux.mh (NATDEPFILES): Likewise.
7226 * config/pa/linux.mh (NATDEPFILES): Likewise.
7227 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7228 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7229 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7230 * config/s390/linux.mh (NATDEPFILES): Likewise.
7231 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7232 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7233 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7234 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7235
ca095836
GB
72362015-06-10 Gary Benson <gbenson@redhat.com>
7237
7238 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7239 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7240 (make_cleanup_close): Likewise.
7241 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7242 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7243 (make_cleanup_close): Likewise.
7244
5d9c55d3
JT
72452015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7246
7247 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7248 from SuspendThread().
7249
040ea00b
JT
72502015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7251
7252 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7253 from OutputDebugString.
7254
7d73c23c
WT
72552015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7256 Mircea Gherzan <mircea.gherzan@intel.com>
7257
7258 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7259 MPX_BT_MASK_32): New macros.
7260 (i386_mpx_set_bounds): New function that implements
7261 the command "set-mpx-bound".
7262 (i386_mpx_enabled): Helper function to test MPX availability.
7263 (i386_mpx_bd_base): Helper function to calculate the base directory
7264 address.
7265 (i386_mpx_get_bt_entry): Helper function to access a bound
7266 table entry.
7267 (i386_mpx_print_bounds): Effectively display bound information.
7268 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7269 "show mpx".
7270 (_initialize_i386_tdep):
7271 Add "bound" to the commands "show mpx" and "set mpx" commands.
7272 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7273 and "show mpx" commands.
7274 * NEWS: List new commands for MPX support.
7275
3ac2e371
GB
72762015-06-09 Gary Benson <gbenson@redhat.com>
7277
7278 * common/fileio.h (fileio_to_host_mode): New declaration.
7279 * common/fileio.c (fileio_to_host_mode): New Function.
7280 * inf-child.c (inf_child_fileio_open): Process mode argument
7281 with fileio_to_host_mode.
7282
ecef18c5
GB
72832015-06-09 Gary Benson <gbenson@redhat.com>
7284
7285 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7286 conditional.
7287
e3dd7556
GB
72882015-06-05 Gary Benson <gbenson@redhat.com>
7289
7290 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7291 * remote.c (remote_filesystem_is_local): ...here.
7292
5b74bf7d
YQ
72932015-06-04 Yao Qi <yao.qi@linaro.org>
7294
7295 * gdbarch.c: Regenerate it.
7296
7f361056
JK
72972015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 * arch-utils.c (default_infcall_munmap): New.
7300 * arch-utils.h (default_infcall_munmap): New declaration.
7301 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7302 (munmap_list_free, munmap_listp_free_cleanup): New.
7303 (struct setup_sections_data): Add field munmap_list_headp.
7304 (setup_sections): Call munmap_list_add.
7305 (compile_object_load): New variable munmap_list_head, initialize
7306 setup_sections_data.munmap_list_headp, return munmap_list_head.
7307 * compile/compile-object-load.h (struct munmap_list): New declaration.
7308 (struct compile_module): Add field munmap_list_head.
7309 (munmap_list_free): New declaration.
7310 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7311 munmap_list_head.
7312 (do_module_cleanup): Call munmap_list_free.
7313 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7314 * gdbarch.c: Regenerate.
7315 * gdbarch.h: Regenerate.
7316 * gdbarch.sh (infcall_munmap): New.
7317 * linux-tdep.c (linux_infcall_munmap): New.
7318 (linux_init_abi): Install it.
7319
3b462ec2
SM
73202015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7321
7322 PR gdb/15564
7323 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7324
8d683210
YQ
73252015-06-02 Yao Qi <yao.qi@linaro.org>
7326
7327 * i386-linux-nat.c: Include linux-nat.h.
7328
e0619de6
JK
73292015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7330 Jan Kratochvil <jan.kratochvil@redhat.com>
7331
7332 PR symtab/18392
7333 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7334 assertion.
7335 * dwarf2loc.c (chain_candidate): Likewise.
7336
bd16da51
YQ
73372015-06-01 Yao Qi <yao.qi@linaro.org>
7338
7339 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7340 (store_vfp_regs): Use PTRACE_SETREGSET.
7341
df9d7ec9
YQ
73422015-06-01 Yao Qi <yao.qi@linaro.org>
7343
7344 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7345 (fetch_fpregs): Likewise.
7346 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7347 (store_fpregs): Likewise.
7348
10766686
YQ
73492015-06-01 Yao Qi <yao.qi@linaro.org>
7350
7351 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7352 (fetch_regs): Likewise.
7353 (store_regs): Use PTRACE_SETREGSET.
7354 (store_register): Likewise.
7355
7efe48d1
YQ
73562015-06-01 Yao Qi <yao.qi@linaro.org>
7357
7358 * arm-linux-nat.c (arm_linux_read_description): Check whether
7359 kernel supports PTRACE_GETREGSET.
7360
433bbbf8
YQ
73612015-06-01 Yao Qi <yao.qi@linaro.org>
7362
7363 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7364 * linux-nat.c: ... here.
7365 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7366 to ...
7367 * linux-nat.h: ... here.
7368
ca9b78ce
YQ
73692015-06-01 Yao Qi <yao.qi@linaro.org>
7370
7371 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7372 * i386-linux-nat.c: Likewise.
7373 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7374 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7375 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7376 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7377 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7378
99cee7b7
EZ
73792015-05-30 Eli Zaretskii <eliz@gnu.org>
7380
7381 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7382 compatible to what read_child and write_child return. This
7383 unbreaks that DJGPP build of GDB which was broken since v7.7.
7384
2147f5bd
MG
73852015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7386
7387 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7388
c8f6c93c
RM
73892015-05-29 Roland McGrath <mcgrathr@google.com>
7390
7391 PR gdb/18464
7392 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7393 rather than internal_error for an unrecognized value.
7394
8c6a948d
MF
73952015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7396
7397 * xtensa-tdep.c (xtensa_pseudo_register_read)
7398 (xtensa_pseudo_register_write): Don't alias last pseudo register
7399 to a1.
7400
8dd06f7a
DB
74012015-05-28 Don Breazeal <donb@codesourcery.com>
7402
7403 * infrun.c (follow_fork_inferior): Ensure the use of
7404 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7405 messages.
7406
a051152b
DE
74072015-05-28 Doug Evans <dje@google.com>
7408
7409 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7410
a56cc1ce
YQ
74112015-05-28 Yao Qi <yao.qi@linaro.org>
7412
7413 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7414 (arm_linux_fetch_inferior_registers): Use
7415 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7416 (arm_linux_store_inferior_registers): Likewise.
7417 (arm_linux_read_description): Don't set
7418 arm_linux_has_wmmx_registers.
7419 * arm-tdep.c (arm_gdbarch_init): Set
7420 tdep->have_wmmx_registers according target descriptions.
7421 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7422 field.
7423
330c6ca9
YQ
74242015-05-28 Yao Qi <yao.qi@linaro.org>
7425
7426 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7427 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7428 instead of arm_linux_vfp_register_count.
7429 (store_vfp_regs): Likewise.
7430 (arm_linux_fetch_inferior_registers): Likewise.
7431 (arm_linux_store_inferior_registers): Likewise.
7432 (arm_linux_read_description): Don't set
7433 arm_linux_vfp_register_count.
7434 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7435 Adjust.
7436 * arm-tdep.c (arm_gdbarch_init): Add assert on
7437 vfp_register_count.
7438 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7439 field to vfp_register_count. All users updated.
7440
d403db27
KH
74412015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7442
7443 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7444 ELFOSABI_GNU binaries.
7445
d9b3de22
DE
74462015-05-27 Doug Evans <dje@google.com>
7447
7448 * dwarf2read.c (lnp_state_machine): New typedef.
7449 (lnp_reader_state): New typedef.
7450 (dwarf_record_line_1): Renamed from dwarf_record_line.
7451 All callers updated.
7452 (dwarf_record_line): New function.
7453 (init_lnp_state_machine): New function.
7454 (check_line_address): Replace p_record_line parameter with state.
7455 All callers updated.
7456 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7457 Update to record state in lnp_state_machine.
7458
924c2928
DE
74592015-05-27 Doug Evans <dje@google.com>
7460
7461 * dwarf2read.c (record_line_ftype): New typedef.
7462 (check_line_address): New function.
7463 (dwarf_decode_lines_1): Call it.
7464
27e0867f
DE
74652015-05-27 Doug Evans <dje@google.com>
7466
7467 * NEWS: Mention "set debug dwarf-line".
7468 * dwarf2read.c (dwarf_line_debug): New static global.
7469 (add_include_dir): Add debug dwarf-line support.
7470 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7471 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7472
4dcabcc2
DE
74732015-05-27 Doug Evans <dje@google.com>
7474
7475 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7476 All callers updated.
7477 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7478 * cp-support.h (cp_lookup_nested_symbol): Update.
7479
b2e2f908
DE
74802015-05-27 Doug Evans <dje@google.com>
7481
7482 PR symtab/18258
7483 * block.c (block_find_symbol): New function.
7484 (block_find_non_opaque_type): Ditto.
7485 (block_find_non_opaque_type_preferred): Ditto.
7486 * block.h (block_symbol_matcher_ftype): New typedef.
7487 (block_find_symbol): Declare.
7488 (block_find_non_opaque_type): Ditto.
7489 (block_find_non_opaque_type_preferred): Ditto.
7490 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7491 * psymtab.c (psym_lookup_symbol): Ditto.
7492 * symtab.c (basic_lookup_transparent_type_1): New function.
7493 (basic_lookup_transparent_type): Call it.
7494
f62fce35
YQ
74952015-05-27 Yao Qi <yao.qi@linaro.org>
7496
7497 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7498 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7499
5d98d3cd
YQ
75002015-05-27 Yao Qi <yao.qi@linaro.org>
7501
7502 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7503 before operator &&.
7504 (aarch64_record_load_store): Likewise.
7505
82c7be31
DE
75062015-05-26 Doug Evans <dje@google.com>
7507
7508 PR c++/18141, c++/18417.
7509 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7510 a typedef.
7511
b4f54984
DE
75122015-05-26 Doug Evans <dje@google.com>
7513
7514 * NEWS: Add entries for command renamings.
7515 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7516 All uses updated.
7517 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7518 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7519 All uses updated.
7520 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7521 All callers updated. Fix spelling of DWARF in help text.
7522 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7523 All uses updated.
7524 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7525 All uses updated.
7526 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7527 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7528 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7529 All uses updated.
7530 (show_dwarf_always_disassemble): Renamed from
7531 show_dwarf2_always_disassemble. All callers updated.
7532 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7533 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7534 "set/show dwarf max-cache-age". Rename
7535 "set/show dwarf2 always-disassemble" to
7536 "set/show dwarf always-disassemble". Rename
7537 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7538 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7539
4ea6efe9
DE
75402015-05-26 Doug Evans <dje@google.com>
7541
7542 PR python/18438
7543 * python/py-lazy-string.c (stpy_convert_to_value): Use
7544 gdbpy_gdb_memory_error not PyExc_MemoryError.
7545 (gdbpy_create_lazy_string_object): Ditto.
7546
b93fd21d
AB
75472015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7550
55b40027
AB
75512015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * tui/tui-regs.c (tui_reg_prev_command): New function.
7554 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7555 * reggroups.c (reggroup_prev): New function.
7556 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7557
99afc88b
OJ
75582015-05-26 Omair Javaid <omair.javaid@linaro.org>
7559 Yao Qi <yao.qi@linaro.org>
7560
7561 * aarch64-linux-tdep.c: Include linux-record.h and
7562 record-full.h.
7563 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7564 (aarch64_syscall): New enum.
7565 (aarch64_canonicalize_syscall): New function.
7566 (aarch64_all_but_pc_registers_record): New function.
7567 (aarch64_linux_syscall_record): New function.
7568 (aarch64_linux_init_abi): Install AArch64 process record
7569 handler. Update to handle syscall recording.
7570 * aarch64-tdep.c: Include record.h and record-full.h.
7571 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7572 (struct aarch64_mem_r): Define.
7573 (aarch64_record_result): New enum.
7574 (struct insn_decode_record): Define.
7575 (insn_decode_record): New typedef.
7576 (aarch64_record_data_proc_reg): New function.
7577 (aarch64_record_data_proc_imm): New function.
7578 (aarch64_record_branch_except_sys): New function.
7579 (aarch64_record_load_store): New function.
7580 (aarch64_record_data_proc_simd_fp): New function.
7581 (aarch64_record_asimd_load_store): New function.
7582 (aarch64_record_decode_insn_handler): New function.
7583 (deallocate_reg_mem): New function.
7584 (aarch64_process_record): New function.
7585 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7586 New field.
7587 (aarch64_process_record): New extern declaration.
7588 * configure.tgt: Add linux-record.o to gdb_target_obs.
7589 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7590
c16a3f52
OJ
75912015-05-26 Omair Javaid <omair.javaid@linaro.org>
7592
7593 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7594 targets.
7595
c9cf6e20
MG
75962015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7597
7598 * amd64-tdep.c: Replace in_function_epilogue_p with
7599 stack_frame_destroyed_p throughout.
7600 * arch-utils.c: Ditto.
7601 * arch-utils.h: Ditto.
7602 * arm-tdep.c: Ditto.
7603 * breakpoint.c: Ditto.
7604 * gdbarch.sh: Ditto.
7605 * hppa-tdep.c: Ditto.
7606 * i386-tdep.c: Ditto.
7607 * mips-tdep.c: Ditto.
7608 * nios2-tdep.c: Ditto.
7609 * rs6000-tdep.c: Ditto.
7610 * s390-linux-tdep.c: Ditto.
7611 * score-tdep.c: Ditto.
7612 * sh-tdep.c: Ditto.
7613 * sparc-tdep.c: Ditto.
7614 * sparc-tdep.h: Ditto.
7615 * sparc64-tdep.c: Ditto.
7616 * spu-tdep.c: Ditto.
7617 * tic6x-tdep.c: Ditto.
7618 * tilegx-tdep.c: Ditto.
7619 * xstormy16-tdep.c: Ditto.
7620 * gdbarch.c, gdbarch.h: Re-generated.
7621
a4ea0946
AB
76222015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * NEWS: Mention 'tui enable' and 'tui disable'.
7625 * tui/tui.c (tui_enable_command): New function.
7626 (tui_disable_command): New function.
7627 (_initialize_tui): New function.
7628
b75c69bb
AB
76292015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7632
c1b009ee
AB
76332015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7634
7635 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7636 buf_ptr is freed.
7637
880d1e40
AB
76382015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7639
7640 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7641 into ...
7642 (tui_set_layout_for_display_command): ...here, before calling
7643 tui_set_layout. Only set the layout if gdb has not already
7644 entered the TUI_FAILURE state.
7645
a0145030
AB
76462015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * tui/tui-layout.c (layout_completer): New function.
7649 (_initialize_tui_layout): Set completer on layout command.
7650
7bd0be3a
AB
76512015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7652
7653 * tui/tui-layout.c (tui_set_layout): Remove
7654 tui_register_display_type parameter. Remove all checking of this
7655 parameter, and reindent function. Update header comment.
7656 (tui_set_layout_for_display_command): Rename to...
7657 (tui_set_layout_by_name): ...this, and don't check for different
7658 register class types, don't pass a tui_register_display_type to
7659 tui_set_layout. Update header comment.
7660 (layout_names): Remove register set specific names.
7661 * tui/tui-layout.h (tui_set_layout): Remove
7662 tui_register_display_type parameter.
7663 * tui/tui.c (tui_rl_change_windows): Don't pass a
7664 tui_register_display_type to tui_set_layout.
7665 (tui_rl_delete_other_windows): Likewise.
7666 (tui_enable): Likewise.
7667 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7668 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7669 (TUI_GENERAL_REGS_NAME): Remove.
7670 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7671 (TUI_SPECIAL_REGS_NAME): Remove.
7672 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7673 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7674 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7675 (enum tui_register_display_type): Remove.
7676 (struct tui_layout_def): Remove regs_display_type and
7677 float_regs_display_type fields.
7678 (struct tui_data_info): Remove regs_display_type field.
7679 (tui_layout_command): Use new name for
7680 tui_set_layout_for_display_command.
7681 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7682 (tui_clear_win_detail): Don't initialise removed fields of
7683 win_info.
7684 * tui/tui-regs.c (tui_show_registers): Use new name for
7685 tui_set_layout_for_display_command.
7686 * tui/tui.h (tui_set_layout_for_display_command): Rename
7687 declaration to...
7688 (tui_set_layout_by_name): ...this.
7689 * printcmd.c (display_command): Remove tui related layout call,
7690 and reindent.
7691
0b6e5e10
JB
76922015-05-20 Joel Brobecker <brobecker@adacore.com>
7693
7694 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7695 (handle_inferior_event): New function.
7696
1da0522e
JB
76972015-05-20 Joel Brobecker <brobecker@adacore.com>
7698
7699 * ada-lang.c (to_fixed_array_type): Rename local variable
7700 typename into type_name.
7701
5fe75eec
JK
77022015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 Fix ASAN crash for gdb.compile/compile.exp.
7705 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7706
a4063588
JK
77072015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7708
7709 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7710 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7711 * compile/compile-object-load.c (setup_sections, compile_object_load):
7712 Likewise.
7713 * compile/compile.c (compile_to_object): Likewise.
7714
37442ce1
DE
77152015-05-16 Doug Evans <xdje42@gmail.com>
7716
7717 * NEWS: Mention support for unbuffered Guile memory ports.
7718 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7719 (ioscm_lseek_address): Improve overflow calculation.
7720 (gdbscm_memory_port_fill_input): Add assert.
7721 (gdbscm_memory_port_write): Handle unbuffered ports.
7722 Handle large writes identical to Guile's fport_write.
7723 (gdbscm_memory_port_seek): Fix seeking past end check.
7724 (gdbscm_memory_port_close): Handle closing unbuffered port.
7725 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7726 (ioscm_init_memory_port): Handle unbuffered ports.
7727 (ioscm_reinit_memory_port): Ditto.
7728 (ioscm_init_memory_port): Update size calculation.
7729 (gdbscm_open_memory): Support zero sized ports.
7730
d976bace
JK
77312015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7732
7733 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7734 variable compiler warnings.
7735
4d18dfad
JK
77362015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7739
36de76f9
JK
77402015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7741 Phil Muldoon <pmuldoon@redhat.com>
7742
7743 * NEWS (Changes since GDB 7.9): Add compile print.
7744 * compile/compile-c-support.c (add_code_header, add_code_footer)
7745 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7746 COMPILE_I_PRINT_VALUE_SCOPE.
7747 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7748 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7749 New.
7750 * compile/compile-object-load.c: Include block.h.
7751 (get_out_value_type): New function.
7752 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7753 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7754 OUT_VALUE_TYPE.
7755 * compile/compile-object-load.h (struct compile_module): Add fields
7756 out_value_addr and out_value_type.
7757 * compile/compile-object-run.c: Include valprint.h and compile.h.
7758 (struct do_module_cleanup): Add fields out_value_addr and
7759 out_value_type.
7760 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7761 COMPILE_I_PRINT_VALUE_SCOPE.
7762 (compile_object_run): Propagate out_value_addr and out_value_type.
7763 Pass OUT_VALUE_ADDR.
7764 * compile/compile.c: Include valprint.h.
7765 (compile_print_value, compile_print_command): New functions.
7766 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7767 (_initialize_compile): Update compile code help text. Install
7768 compile_print_command.
7769 * compile/compile.h (compile_print_value): New prototype.
7770 * defs.h (enum compile_i_scope_types): Add
7771 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7772
83d3415e
JK
77732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7774
7775 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7776 Rely on its parameter count.
7777 (compile_object_load): Replace lookup_minimal_symbol_text by
7778 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7779 return value.
7780 * compile/compile-object-load.h (struct compile_module): Replace
7781 func_addr by func_sym.
7782 * compile/compile-object-run.c: Include block.h.
7783 (compile_object_run): Reset module variable after it is freed. Use
7784 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7785
3a9558c4
JK
77862015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7789 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7790 (c_compute_program): Call generate_register_struct after typedefs.
7791 * compile/compile-loc2c.c (push, pushf_register_address)
7792 (pushf_register): Cast to GCC_UINTPTR.
7793 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7794 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7795 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7796 * compile/compile.c (_initialize_compile): Enable warnings for
7797 COMPILE_ARGS.
7798
5c65b58a
JK
77992015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7800
7801 * cli/cli-script.c (execute_control_command): Update
7802 eval_compile_command caller.
7803 * compile/compile-object-load.c (compile_object_load): Add parameters
7804 scope and scope_data. Set them.
7805 * compile/compile-object-load.h (struct compile_module): Add fields
7806 scope and scope_data.
7807 (compile_object_load): Add parameters scope and scope_data.
7808 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7809 scope and scope_data.
7810 (compile_object_run): Propagate the fields scope and scope_data.
7811 * compile/compile.c (compile_file_command, compile_code_command):
7812 Update eval_compile_command callers.
7813 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7814 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7815 * defs.h (struct command_line): Add field scope_data.
7816
1c88ceb1
JK
78172015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 * printcmd.c (struct format_data): Move it to valprint.h.
7820 (print_command_parse_format, print_value): New functions from ...
7821 (print_command_1): ... here. Call them.
7822 * valprint.h (struct format_data): Move it here from printcmd.c.
7823 (print_command_parse_format, print_value): New declarations.
7824
0b738f27
JK
78252015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 * compile/compile-object-load.c (compile_object_load): Add
7828 COMPILE_DEBUG message.
7829
aa715135
JG
78302015-05-15 Jerome Guitton <guitton@adacore.com>
7831
7832 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7833 index to get element instead of enum value.
7834 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7835 of index to compute length, but enum values to compute bounds.
7836 (ada_array_length): Use enum position of index instead of enum value.
7837 (pos_atr): Move position computation to...
7838 (ada_evaluate_subexp): Use enum values to compute bounds.
7839 * gdbtypes.c (discrete_position): ...this new function.
7840 * gdbtypes.h (discrete_position): New function declaration.
7841 * valprint.c (val_print_array_elements): Call discrete_position
7842 to handle array indexed by non-contiguous enumeration types.
7843
931e5bc3
JG
78442015-05-15 Jerome Guitton <guitton@adacore.com>
7845
7846 * ada-lang.c (find_parallel_type_by_descriptive_type):
7847 Go through typedefs during lookup.
7848 (to_fixed_array_type): Add support for non-bit packed arrays
7849 as variable-length fields.
7850
4e63d0ac
PA
78512015-05-15 Pedro Alves <palves@redhat.com>
7852 Simon Marchi <simon.marchi@ericsson.com>
7853
7854 * event-loop.c (gdb_notifier) <next_file_handler,
7855 next_poll_fds_index>: New fields.
7856 (get_next_file_handler_to_handle_and_advance): New function.
7857 (delete_file_handler): If deleting the next file handler to
7858 handle, advance to the next file handler.
7859 (gdb_wait_for_event): Bail early if no event fired. Poll file
7860 handlers in round-robin fashion.
7861
52e48b36
PA
78622015-05-15 Pedro Alves <palves@redhat.com>
7863
7864 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7865 'private' to 'priv'.
7866
2465e12e
PA
78672015-05-15 Pedro Alves <palves@redhat.com>
7868
7869 * nat/linux-nat.h: Include "target/waitstatus.h".
7870
13fa0398
YZ
78712015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7872
7873 * python/py-unwind.c (struct reg_info): Move out of ...
7874 (struct cached_frame_info): ... this scope.
7875 (pending_frame_object_type, unwind_info_object_type): Make extern.
7876
9cd4d857
JB
78772015-05-15 Joel Brobecker <brobecker@adacore.com>
7878
7879 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7880 accumSize is never negative.
7881
e3555239
PP
78822015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7883
7884 * tui/tui-command.c: Remove include of <ctype.h>.
7885 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7886
08a76f8a
MG
78872015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7888
7889 * dwarf2read.c (die_needs_namespace): Return 1 for
7890 DW_TAG_inlined_subroutine.
7891
bd49952b
JK
78922015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7893
7894 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7895 (regcache_cpy_no_passthrough): Make it static, add function comment.
7896 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7897 (regcache_cpy_no_passthrough): Remove declaration.
7898
46c03469
JK
78992015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7900
7901 * gdbthread.h (struct thread_control_state): Update comment for
7902 proceed_to_finish.
7903 * infcall.c (run_inferior_call): Update comment about
7904 proceed_to_finish.
7905 * infcmd.c (get_return_value): Update comment about stop_registers.
7906 (finish_forward): Update comment about proceed_to_finish.
7907 * infrun.c (stop_registers): Remove.
7908 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7909 * infrun.h (stop_registers): Remove.
7910
8a6c4031
JK
79112015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 * infcall.c (struct dummy_frame_context_saver)
7914 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7915 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7916 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7917 New.
7918 (call_function_by_hand_dummy): Move discard_cleanups of
7919 inf_status_cleanup before dummy_frame_push. Call
7920 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7921 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7922 * infcall.h (struct dummy_frame_context_saver)
7923 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7924 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7925 New declarations.
7926 * infcmd.c: Include infcall.h.
7927 (get_return_value): Add parameter ctx_saver, use it instead of
7928 stop_registers.
7929 (print_return_value): Add parameter ctx_saver, pass it.
7930 (struct finish_command_continuation_args): Add field ctx_saver.
7931 (finish_command_continuation): Update print_return_value caller.
7932 (finish_command_continuation_free_arg): Free also ctx_saver.
7933 (finish_forward): Call dummy_frame_context_saver_setup.
7934 * inferior.h (struct dummy_frame_context_saver): New declaration.
7935 (get_return_value): Add parameter ctx_saver.
7936 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7937 get_return_value caller.
7938
10989690
JK
79392015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7942 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7943 (remove_dummy_frame): Process dtor_list.
7944 (pop_dummy_frame): Process dtor_list.
7945 (register_dummy_frame_dtor): Maintain dtor_list.
7946 (find_dummy_frame_dtor): Handle dtor_list.
7947 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7948 Update comments.
7949
5e970501
JK
79502015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7953 registers_valid.
7954 (compile_object_run): Update do_module_cleanup caller.
7955 * dummy-frame.c: Include infcall.h.
7956 (struct dummy_frame): Update dtor comment.
7957 (remove_dummy_frame): Call dtor.
7958 (pop_dummy_frame): Update dtor caller.
7959 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7960 registers_valid.
7961
1c4eb778
JB
79622015-05-13 Joel Brobecker <brobecker@adacore.com>
7963
7964 GDB 7.9.1 released.
7965
f5f85ab9
JB
79662015-05-13 Joel Brobecker <brobecker@adacore.com>
7967
7968 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7969 Xmethods now being able to specify a result type to that new
7970 sectioin.
7971
242cd84c
PP
79722015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7973
7974 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7975 first before resizing the window.
e3555239 7976 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7977
79782015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7979
7980 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7981 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7982 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7983 dummy_dtor parameter.
7984 * infcall.h: Include dummy-frame.h.
7985 (call_function_by_hand_dummy_dtor_ftype): Remove.
7986 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7987 parameter.
7988
ebfd00d2
PP
79892015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7990
7991 PR gdb/17820
7992 * top.c (history_size_setshow_var): Change type to signed.
7993 Initialize to -2. Update documentation.
7994 (set_readline_history_size): Define.
7995 (set_history_size_command): Use it. Remove logic for handling
7996 out-of-range sizes.
7997 (init_history): Use set_readline_history_size(). Test for a
7998 value of -2 instead of 0 when determining whether to set a
7999 default history size.
8000 (init_main): Decode the argument of the "size" command as a
8001 zuinteger_unlimited.
8002
83769d0b
DE
80032015-05-12 Doug Evans <dje@google.com>
8004
8005 * dwarf2read.c (struct file_entry): Tweak comments.
8006 (get_debug_line_section): Tweak comments.
8007
0d71eef5
DB
80082015-05-12 Don Breazeal <donb@codesourcery.com>
8009
8010 * NEWS: Announce fork support in the RSP and support
8011 for fork debugging in extended mode.
8012
cbb8991c
DB
80132015-05-12 Don Breazeal <donb@codesourcery.com>
8014
8015 * remote.c (remote_insert_fork_catchpoint): New function.
8016 (remote_remove_fork_catchpoint): New function.
8017 (remote_insert_vfork_catchpoint): New function.
8018 (remote_remove_vfork_catchpoint): New function.
8019 (pending_fork_parent_callback): New function.
8020 (remove_new_fork_child): New function.
8021 (remote_update_thread_list): Call remote_notif_get_pending_events
8022 and remove_new_fork_child.
8023 (extended_remote_kill): Kill fork child when killing the
8024 parent before follow_fork completes.
8025 (init_extended_remote_ops): Initialize target vector with
8026 new fork catchpoint functions.
8027
c269dbdb
DB
80282015-05-12 Don Breazeal <donb@codesourcery.com>
8029
8030 * remote.c (remove_vfork_event_p): New function.
8031 (remote_follow_fork): Add vfork event type to event checking.
8032 (remote_parse_stop_reply): New stop reasons "vfork" and
8033 "vforkdone" for RSP 'T' Stop Reply Packet.
8034
de0d863e
DB
80352015-05-12 Don Breazeal <donb@codesourcery.com>
8036
8037 * linux-nat.c (linux_nat_ptrace_options): New function.
8038 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8039 Call linux_nat_ptrace_options and use different argument to
8040 linux_enable_event_reporting.
8041 (_initialize_linux_nat): Delete call to
8042 linux_ptrace_set_additional_flags.
c8f6c93c 8043 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8044 supported_ptrace_options.
8045 (additional_flags): Delete variable.
8046 (linux_check_ptrace_features): Use supported_ptrace_options.
8047 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8048 Likewise, and remove additional_flags check.
8049 (linux_enable_event_reporting): Change 'attached' argument to
8050 'options'. Use supported_ptrace_options.
c8f6c93c 8051 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8052 supported_ptrace_options.
8053 (linux_ptrace_set_additional_flags): Delete function.
8054 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8055 Delete function prototype.
8056 * remote.c (remote_fork_event_p): New function.
8057 (remote_detach_pid): New function.
8058 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8059 if doing detach-on-fork.
8060 (remote_follow_fork): New function.
8061 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8062 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8063 (init_extended_remote_ops): Initialize to_follow_fork.
8064
89245bc0
DB
80652015-05-12 Don Breazeal <donb@codesourcery.com>
8066
8067 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8068 from static to extern.
8069 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8070 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8071 * PACKET_vfork_event_feature>: New enumeration constants.
8072 (remote_protocol_features): Add table entries for new packets.
8073 (remote_query_supported): Add new feature queries to qSupported
8074 packet.
8075
835205d0
GB
80762015-05-12 Gary Benson <gbenson@redhat.com>
8077
8078 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8079 for fake PIDs as well as real ones.
8080 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8081
4c082a81
SC
80822015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8083
8084 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8085 * python/py-value.c (valpy_reference_value): New function.
8086 (valpy_const_value): Likewise.
8087 (value_object_methods): Add new methods.
8088 * value.c (make_cv_value): New function.
8089 * value.h (make_cv_value): Declare.
8090
afa6c9ab
SL
80912015-05-08 Yao Qi <yao@codesourcery.com>
8092 Sandra Loosemore <sandra@codesourcery.com>
8093
8094 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8095 to 'lh->include_dirs' before accessing to it.
8096 (psymtab_include_file_name): Likewise.
8097 (dwarf_decode_lines_1): Likewise.
8098 (dwarf_decode_lines): Likewise.
8099 (file_file_name): Likewise.
8100
35d54293
SL
81012015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8102
8103 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8104 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8105 (nios2_linux_rt_sigreturn_init): Adjust base address of
8106 register save area.
8107
b73c49b7
SL
81082015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8109
8110 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8111 "trap 31" as the breakpoint instruction on all targets.
8112
dd9f02a0
JK
81132015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * infcmd.c (print_return_value): Remove unused declaration.
8116
6ad395a7
JB
81172015-05-08 Joel Brobecker <brobecker@adacore.com>
8118
8119 * dwarf2read.c (attr_to_dynamic_prop)
8120 <DW_AT_data_member_location>: Use read_type_die isntead of
8121 get_die_type.
8122
8344af1e
JB
81232015-05-08 Joel Brobecker <brobecker@adacore.com>
8124
8125 * ada-lang.c (ada_convert_actual): Add handling of formals
8126 passed inside an aligner type.
8127
80b0912b
JB
81282015-05-08 Joel Brobecker <brobecker@adacore.com>
8129
8130 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8131
df2eb078
SC
81322015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8133
8134 PR python/18291
8135 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8136 Print xmethod matcher status.
8137
2492f0d0
AA
81382015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8139
8140 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8141 register in the regcache when treating the PSWM register, and vice
8142 versa.
8143
1c56a84d
GB
81442015-05-07 Gary Benson <gbenson@redhat.com>
8145
8146 * linux-thread-db.c (struct thread_db_info)
8147 <td_ta_map_id2thr_p>: Remove field.
8148 (try_thread_db_load_1): Remove initialization for the above.
8149
74850322
GB
81502015-05-07 Gary Benson <gbenson@redhat.com>
8151
8152 * linux-thread-db.c (struct thread_db_info)
8153 <td_thr_validate_p>: Remove field.
8154 (try_thread_db_load_1): Remove initialization for the above.
8155
e26efa40
JK
81562015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8157
8158 * compile/compile-object-load.c (compile_object_load): Support
8159 mst_text_gnu_ifunc.
8160
851c9091
JK
81612015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8162
8163 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8164 const. Use new variables for the const compatibility.
8165 (eval_compile_command): Make the cmd_string parameter const.
8166 * compile/compile.h (eval_compile_command): Make the cmd_string
8167 parameter const.
8168
f218b647
JB
81692015-05-06 Joel Brobecker <brobecker@adacore.com>
8170
8171 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8172 comment.
8173 * top.c (deprecated_init_ui_hook): Delete.
8174 (gdb_init): Remove handling of deprecated_init_ui_hook.
8175 * interps.c (clear_interpreter_hooks): Remove handling of
8176 deprecated_init_ui_hook.
8177 * main.c (captured_main): Update comment.
8178
b30a0bc3
JB
81792015-05-06 Joel Brobecker <brobecker@adacore.com>
8180
8181 * solib.c (_initialize_solib): Add "info dll" alias creation.
8182 * windows-nat.c (set_windows_aliases): Delete.
8183 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8184 assignment.
8185 * NEWS: Add news entry about "info dll" now being available
8186 on all platforms.
8187
7c512744
JB
81882015-05-05 Joel Brobecker <brobecker@adacore.com>
8189
8190 * ada-lang.c (value_assign_to_component): Reformat and improve
8191 documentation. Remove all trailing spaces.
8192
0fa7fe50
JB
81932015-05-05 Joel Brobecker <brobecker@adacore.com>
8194
8195 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8196 Stop counting inlined frames as soon as an out-of-line function
8197 is found.
8198
3ea89b92
PMR
81992014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8200
8201 * dwarf2read.c (inherit_abstract_dies): Skip
8202 DW_TAG_GNU_call_site dies while inheriting children of an
8203 abstract DIE into a scope.
8204 (read_lexical_block_scope): Inherit abstract DIE's for
8205 lexical scopes.
8206
2478d075
JB
82072015-05-05 Joel Brobecker <brobecker@adacore.com>
8208
8209 * ada-valprint.c (val_print_packed_array_elements): Delete
8210 variable "len". Add a type-length check when comparing two
8211 consecutive elements of the array. Use the element's actual
8212 length in call to value_contents_eq.
8213 * ada-lang.c (ada_value_primitive_packed_val): Always return
8214 a value whose type has been resolved.
8215
fc958966
JB
82162015-05-05 Joel Brobecker <brobecker@adacore.com>
8217
8218 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8219 BIT_SIZE and LEN if the size of the resolved type is smaller
8220 than BIT_SIZE * HOST_CHAR_BIT.
8221
ca34b84f
JB
82222015-05-05 Joel Brobecker <brobecker@adacore.com>
8223
8224 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8225 correct address in call to value_at. Adjust call to
8226 value_address accordingly.
8227
62c67f3c
JB
82282015-05-05 Joel Brobecker <brobecker@adacore.com>
8229
8230 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8231 to print it.
8232
c3345124
JB
82332015-05-05 Joel Brobecker <brobecker@adacore.com>
8234
8235 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8236 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8237 pinfo->valaddr.
8238 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8239 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8240 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8241 Add handling of addr_stack->valaddr.
8242 (resolve_dynamic_type): Add "valaddr" parameter.
8243 Set pinfo.valaddr field.
8244 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8245 resolve_dynamic_type.
8246 (ada_discrete_type_low_bound): Likewise.
8247 * findvar.c (default_read_var_value): Likewise.
8248 * value.c (value_from_contents_and_address): Likewise.
8249
75ea5859
JB
82502015-05-05 Joel Brobecker <brobecker@adacore.com>
8251
8252 * gdbtypes.c (resolve_dynamic_array): Use
8253 create_array_type_with_stride instead of create_array_type.
8254
0952813b
DD
82552015-04-30 DJ Delorie <dj@redhat.com>
8256
8257 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8258 rl78_decode_opcode
8259
2ce1cdbf
DE
82602015-04-29 Doug Evans <dje@google.com>
8261
8262 PR python/18285
8263 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8264 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8265 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8266 * extension-priv.h (struct extension_language_ops)
8267 <get_xmethod_result_type>: New member.
8268 * extension.c (get_xmethod_result_type): New function.
8269 * extension.h (get_xmethod_result_type): Declare.
8270 * python/py-xmethods.c (get_result_type_method_name): New static
8271 global.
8272 (py_get_result_type_method_name): Ditto.
8273 (gdbpy_get_xmethod_result_type): New function.
8274 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8275 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8276 * python/python.c (python_extension_ops): Add
8277 gdbpy_get_xmethod_result_type.
8278 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8279 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8280 xmethods.
8281 (value_x_unop): Ditto.
8282 * value.c (result_type_of_xmethod): New function.
8283 * value.h (result_type_of_xmethod): Declare.
8284
998d2a3e
GB
82852015-04-29 Gary Benson <gbenson@redhat.com>
8286
8287 * solib.c (solib_find_1): Allow fd argument to be NULL.
8288 (exec_file_find): Update comment.
8289 (solib_find): Likewise.
8290 * exec.c (exec_file_locate_attach): Use NULL as fd
8291 argument to exec_file_find to avoid having to close
8292 the opened file.
8293 * infrun.c (follow_exec): Likewise.
8294
34f5f757
DE
82952015-04-28 Doug Evans <dje@google.com>
8296
8297 PR python/18299
8298 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8299 name or __name__ attributes. Handle gdb module as first argument.
8300
69b4374a
DE
83012015-04-28 Doug Evans <dje@google.com>
8302
8303 PR python/18089
8304 * python/py-prettyprint.c (print_children): Verify result of children
8305 iterator. Provide better error message.
8306 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8307 * python/python.c (gdbpy_print_python_errors_p): New function.
8308
5e7cf078
DE
83092015-04-28 Doug Evans <dje@google.com>
8310
8311 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8312
59fb7612
SS
83132015-04-28 Sasha Smundak <asmundak@google.com>
8314
8315 * NEWS: Mention gdb.Type.optimized_out method.
8316 * python/py-type.c (typy_optimized_out): New function.
8317
cea6e4f1
JB
83182015-04-28 John Baldwin <jhb@FreeBSD.org>
8319
8320 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8321
24b73f8e
PP
83222015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8323
8324 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8325 (initialize_utils): Move call of init_page_info() to ...
8326 * top.c (gdb_init): ... here.
8327
a88d0bb3
PP
83282015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8329
8330 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8331 (tui_sigwinch_handler): Still update our idea of
8332 the terminal's width and height even when TUI is not active.
8333
d6e5e7f7
PP
83342015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8335
8336 * utils.h (set_screen_width_and_height): Declare.
8337 * utils.c (set_screen_width_and_height): Define.
8338 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8339
ff862be4
GB
83402015-04-28 Gary Benson <gbenson@redhat.com>
8341
8342 * infrun.c (solist.h): New include.
8343 (follow_exec): Use exec_file_find to prefix execd_pathname
8344 with gdb_sysroot.
8345
2eb639cb
PP
83462015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8347
8348 * tui/tui-source.c (tui_set_source_content): Avoid calling
8349 strcpy() when offset is 0.
8350
97206799
PP
83512015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8352
8353 PR gdb/18155
8354 * tui/tui-data.c (tui_free_window): Don't free the locator
8355 window when passed an SRC_WIN or a DISASSEM_WIN.
8356
63ed8182
PP
83572015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8358
8359 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8360 (tui_win_content): Move declaration.
8361 (struct tui_gen_win_info): Give 'content' field the
8362 type tui_win_content.
8363 * tui/tui-data.c (init_content_element): Remove redundant and
8364 erroneous casts.
8365 (tui_add_content_elements): Remove erroneous cast.
8366 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8367 casts.
8368 (tui_get_begin_asm_address): Likewise.
8369 * tui/tui-regs.c (tui_show_registers): Likewise.
8370 (tui_show_register_group): Likewise.
8371 (tui_display_registers_from): Likewise.
8372 (tui_check_register_values): Likewise.
8373 * tui/tui-source.c (tui_set_source_content): Likewise.
8374 (tui_set_source_content_nil): Likewise.
8375 (tui_source_is_displayed): Likewise.
8376 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8377 (tui_set_locator_fullname): Likewise.
8378 (tui_set_locator_info): Likewise.
8379 (tui_show_frame_info): Likewise.
8380 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8381 (tui_show_source_line): Likewise.
8382 (tui_horizontal_source_scroll): Likewise.
8383 (tui_update_breakpoint_info): Likewise.
8384 (tui_set_exec_info_content): Likewise.
8385 (tui_show_exec_info_content): Likewise.
8386 (tui_alloc_source_buffer): Likewise.
8387 (tui_line_is_displayed): Likewise.
8388 (tui_addr_is_displayed): Likewise.
8389
d2b41ca0
JB
83902015-04-27 John Baldwin <jhb@FreeBSD.org>
8391
8392 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8393 event if PL_FLAG_EXEC is set.
8394 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8395 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8396 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8397 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8398 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8399
e58e05d6
JB
84002015-04-27 John Baldwin <jhb@FreeBSD.org>
8401
8402 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8403 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8404 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8405 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8406 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8407 [PT_LWPINFO] (fbsd_wait): New function.
8408 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8409 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8410 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8411 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8412 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8413 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8414 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8415 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8416 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8417 "fbsd_wait".
8418 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8419 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8420 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8421 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8422 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8423 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8424 Set "to_post_attach" to "fbsd_post_attach".
8425
8f60fe01
JB
84262015-04-27 John Baldwin <jhb@FreeBSD.org>
8427
8428 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8429 (fbsd_find_memory_regions): Mark static.
8430 (fbsd_nat_add_target): New function.
8431 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8432 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8433 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8434 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8435 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8436 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8437
5fbae7d1
GB
84382015-04-27 Gary Benson <gbenson@redhat.com>
8439
8440 * objfiles.c (allocate_objfile): Do not attempt to expand name
8441 if name is a "target:" filename.
8442 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8443 to load auto-load scripts for objfiles with "target:" filenames.
8444
417c80f9
AA
84452015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8446
8447 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8448 (enum s390_vector_abi_kind): New enum.
8449 (struct gdbarch_tdep)<vector_abi>: New field.
8450 (s390_effective_inner_type): Add parameter min_size. Stop
8451 unwrapping if the inner type is smaller than min_size.
8452 (s390_function_arg_float): Adjust call to
8453 s390_effective_inner_type.
8454 (s390_function_arg_vector): New function.
8455 (s390_function_arg_integer): Adjust comment.
8456 (struct s390_arg_state)<vr>: New field.
8457 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8458 arguments according to vector ABI when appropriate.
8459 (s390_push_dummy_call): Initialize the argument state's field
8460 'vr'. Adjust calls to s390_handle_arg.
8461 (s390_register_return_value): Handle vector return values.
8462 (s390_return_value): Apply the "register" return value convention
8463 to a vector when appropriate.
8464 (s390_gdbarch_init): Initialize tdep->vector_abi.
8465 * NEWS: Announce S390 vector ABI support.
8466
4e65a17e
AA
84672015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8468
8469 * s390-linux-tdep.c (s390_return_value_convention): Remove
8470 function. Inline its logic...
8471 (s390_return_value): ...here. Instead, move the handling of the
8472 "register" return value convention...
8473 (s390_register_return_value): ...here. New function.
8474
80f75320
AA
84752015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8476
8477 * s390-linux-tdep.c
8478 (is_float_singleton): Remove function. Move the "singleton" part
8479 of the logic...
8480 (s390_effective_inner_type): ...here. New function.
8481 (is_float_like): Remove function. Inline its logic...
8482 (s390_function_arg_float): ...here.
8483 (is_pointer_like, is_integer_like, is_struct_like): Remove
8484 functions. Inline their logic...
8485 (s390_function_arg_integer): ...here.
8486 (s390_function_arg_pass_by_reference): Remove function.
8487 (extend_simple_arg): Remove function.
8488 (alignment_of): Remove function.
8489 (struct s390_arg_state): New structure.
8490 (s390_handle_arg): New function.
8491 (s390_push_dummy_call): Move parameter placement logic to the new
8492 function s390_handle_arg. Call it for calculating the stack area
8493 sizes first, and again for actually writing the parameters.
8494
6dbc9c04
AA
84952015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8496
8497 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8498 false if the argument is zero.
8499
9e195661
PMR
85002015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8501
8502 * ada-lang.c (template_to_static_fixed_type): Return input type
8503 when it is already fixed. Cache the input type itself when not
8504 creating a static fixed copy. Make it explicit that we never
8505 molestate the input type.
8506 * gdbtypes.c (resolve_dynamic_struct): Reset the
8507 TYPE_TARGET_TYPE field for resolved copies.
8508
460efde1
JB
85092015-04-27 Joel Brobecker <brobecker@adacore.com>
8510
8511 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8512 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8513 (template_to_static_fixed_type): Call ada_check_typedef only
8514 when necessary.
8515
6faec16b
AB
85162015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * cli/cli-dump.c (srec_dump_command): Add internationalization
8519 mark ups.
8520 (ihex_dump_command): Likewise.
8521 (tekhex_dump_command): Likewise.
8522 (binary_dump_command): Likewise.
8523 (binary_append_command): Likewise.
8524
cf75d6c3
AB
85252015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8526
8527 * cli/cli-dump.c (verilog_cmdlist): New variable.
8528 (dump_verilog_memory): New function.
8529 (dump_verilog_value): New function.
8530 (verilog_dump_command): New function.
8531 (_initialize_cli_dump): Add new commands to support verilog dump
8532 format.
8533 * NEWS: Add entry for "dump verilog".
8534
8cd00c59
PMR
85352015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8536
8537 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8538 descriptive type when there is none.
8539
8900d71e
PP
85402015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8541
8542 * tui/tui-win.c (tui_async_resize_screen): Call
8543 rl_resize_terminal().
8544
f16eab5f
JT
85452015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8546
8547 * windows-nat.c (handle_output_debug_string): Don't change
8548 current_event.dwThreadId.
8549 (get_windows_debug_event): Use thread_id, rather than relying on
8550 current_event.dwThreadId being changed.
8551
68ffc902
JT
85522015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8553
8554 * windows-nat.c (windows_continue): Report an error if
8555 ContinueDebugEvent() fails.
8556
23942819
JT
85572015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8558
8559 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8560
e6ad66bd
JT
85612015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8562
8563 * windows-nat.c (get_windows_debug_event): Replace retval with
8564 thread_id throughout. Update stale comment.
8565
776704b9
JT
85662015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8567
8568 * windows-nat.c (get_windows_debug_event): Don't use ternary
8569 conditional operator.
8570
8aae4344
PM
85712015-04-21 Pierre Muller <muller@sourceware.org>
8572
8573 PR pascal/17815
8574 p-exp.y (yylex): Reorganize code to return the matched pattern
8575 for a field of this.
8576
819843c7
GB
85772015-04-21 Gary Benson <gbenson@redhat.com>
8578
8579 * common/fileio.h (fileio_to_host_openflags): New declaration.
8580 * common/fileio.c (fcntl.h): New include.
8581 (fileio_to_host_openflags): New function, factored out from...
8582 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8583 Single use updated.
8584
0bca7f99
KB
85852015-04-21 Kevin Buettner <kevinb@redhat.com>
8586
8587 * rl78-tdep.c (RL78_SP_ADDR): Define.
8588 (opc_reg_to_gdb_regnum): New static function.
8589 (rl78_analyze_prologue): Recognize instructions forming slightly
8590 more interesting prologues.
8591
e771e4be
PMR
85922015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8593
8594 Revert:
8595 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8596 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8597 TYPE_CODE_REF types so that they are not considered as dynamic
8598 depending on the referenced type.
8599 (resolve_dynamic_type_internal): Likewise.
8600
ee715b5a
PMR
86012015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8602
8603 Revert:
8604 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8605 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8606 "top_level" parameter.
8607 (resolve_dynamic_type_internal): Remove the unused "top_level"
8608 parameter. Update call to is_dynamic_type_internal.
8609 (is_dynamic_type): Update call to is_dynamic_type_internal.
8610 (resolve_dynamic_range): Update call to
8611 resolve_dynamic_type_internal.
8612 (resolve_dynamic_union): Likewise.
8613 (resolve_dynamic_struct): Likewise.
8614 (resolve_dynamic_type): Likewise.
8615
e31d7699
GKB
86162015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8617
8618 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8619 xmalloc.
8620
d214e5e7
TS
86212015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8622
110f9112
TS
8623 * reply_mig_hack.awk: Robustify parsing.
8624
d214e5e7
TS
8625 * reply_mig_hack.awk: Don't bother to declare an intermediate
8626 function pointer variable.
8627
8f61baf8
DE
86282015-04-17 Doug Evans <dje@google.com>
8629
8630 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8631 to "exec_displacement" to avoid confusion with inner use of the name.
8632
dbbf180a
YQ
86332015-04-17 Pedro Alves <palves@redhat.com>
8634
8635 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8636 if HW point of TYPE isn't supported.
8637
059790a0
YQ
86382015-04-17 Yao Qi <yao.qi@linaro.org>
8639 Pedro Alves <palves@redhat.com>
8640
8641 * target.h (target_can_use_hardware_watchpoint): Update comments.
8642 Remove trailing ";".
8643
1b6e6f5c
GB
86442015-04-17 Gary Benson <gbenson@redhat.com>
8645
8646 * remote.c (remote_add_inferior): New argument try_open_exec.
8647 If nonzero, attempt to open the inferior's executable file as
8648 the main executable if no main executable is open already.
8649 All callers updated.
8650 * NEWS: Mention that GDB now supports automatic location and
8651 retrieval of executable + files from remote targets.
8652
c78fa86a
GB
86532015-04-17 Gary Benson <gbenson@redhat.com>
8654
8655 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8656 * remote.c (PACKET_qXfer_exec_file): Likewise.
8657 (remote_protocol_features): Register the
8658 "qXfer:exec-file:read" feature.
8659 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8660 (remote_pid_to_exec_file): New function.
8661 (init_remote_ops): Initialize to_pid_to_exec_file.
8662 (_initialize_remote): Register new "set/show remote
8663 pid-to-exec-file-packet" command.
8664 * NEWS: Announce new qXfer:exec-file:read packet.
8665
e0d86d2c
GB
86662015-04-17 Gary Benson <gbenson@redhat.com>
8667
8668 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8669 New declaration.
8670 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8671 New function, factored out from...
8672 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8673
a9a5a3d1
GB
86742015-04-17 Gary Benson <gbenson@redhat.com>
8675
8676 * exec.c (solist.h): New include.
8677 (exec_file_locate_attach): Prefix absolute executable
8678 paths with gdb_sysroot if set.
8679 * NEWS: Mention that executable paths may be prepended
8680 with sysroot.
8681
af1900b0
GB
86822015-04-17 Gary Benson <gbenson@redhat.com>
8683
8684 * solist.h (exec_file_find): New declaration.
8685 * solib.c (solib_find_1): New function, factored out from...
8686 (solib_find): ...here.
8687 (exec_file_find): New function.
8688
a10de604
GB
86892015-04-17 Gary Benson <gbenson@redhat.com>
8690
8691 * gdbcore.h (exec_file_locate_attach): New declaration.
8692 * exec.c (exec_file_locate_attach): New function, factored
8693 out from...
8694 * infcmd.c (attach_command_post_wait): ...here.
8695
92209ddf
MF
86962015-04-17 Mike Frysinger <vapier@gentoo.org>
8697
8698 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8699
8550d3b3
YQ
87002015-04-16 Yao Qi <yao.qi@linaro.org>
8701
8702 * infrun.c (maybe_software_singlestep): Declare.
8703 (displaced_step_fixup): Call maybe_software_singlestep.
8704
30b3dd9d
DE
87052015-04-15 Doug Evans <dje@google.com>
8706
8707 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8708
61d96d7e
DE
87092015-04-15 Doug Evans <dje@google.com>
8710
8711 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8712
40d2f8d6
SM
87132015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8714
8715 * python/lib/gdb/command/unwinders.py: Add parentheses.
8716
6bbbba9b
YQ
87172015-04-15 Yao Qi <yao.qi@linaro.org>
8718
8719 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8720
2bb2dcab
YQ
87212015-04-15 Yao Qi <yao.qi@linaro.org>
8722
8723 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8724
41f071ef
YQ
87252015-04-15 Yao Qi <yao.qi@linaro.org>
8726
8727 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8728 dsc->insn_size instead of 4.
8729
326a5c7e
GB
87302015-04-14 Gary Benson <gbenson@redhat.com>
8731
8732 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8733 * minidebug.c (lzma_stat): Likewise.
8734 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8735 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8736
dd177e81
SS
87372015-04-13 Stan Shebs <stanshebs@google.com>
8738
8739 * MAINTAINERS: Update my email address.
8740
97de3545
JB
87412015-04-13 John Baldwin <jhb@FreeBSD.org>
8742
8743 * amd64-tdep.c (amd64_target_description): New function.
8744 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8745 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8746 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8747 x86 extended save area.
8748 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8749 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8750 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8751 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8752 "amd64fbsd_read_description".
8753 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8754 (amd64fbsd_supply_xstateregset): New function.
8755 (amd64fbsd_collect_xstateregset): New function.
8756 Add "amd64fbsd_xstateregset".
8757 (amd64fbsd_iterate_over_regset_sections): New function.
8758 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8759 "I386_FBSD_XSAVE_XCR0_OFFSET".
8760 Add "iterate_over_regset_sections" gdbarch method.
8761 Add "core_read_description" gdbarch method.
8762 * i386-tdep.c (i386_target_description): New function.
8763 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8764 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8765 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8766 x86 extended save area.
8767 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8768 * i386bsd-nat.h: Export i386bsd_xsave_len.
8769 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8770 (_initialize_i386fbsd_nat): Set "to_read_description" to
8771 "i386fbsd_read_description".
8772 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8773 (i386fbsd_core_read_description): New function.
8774 (i386fbsd_supply_xstateregset): New function.
8775 (i386fbsd_collect_xstateregset): New function.
8776 Add "i386fbsd_xstateregset".
8777 (i386fbsd_iterate_over_regset_sections): New function.
8778 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8779 "I386_FBSD_XSAVE_XCR0_OFFSET".
8780 Add "iterate_over_regset_sections" gdbarch method.
8781 Add "core_read_description" gdbarch method.
8782 * i386fbsd-tdep.h: New file.
8783
4f45d445
JK
87842015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8785
8786 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8787 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8788 conditional.
8789 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8790 and lb.
8791 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8792 va.
8793 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8794 conditional.
8795 * defs.h (xdb_commands): Remove declaration.
8796 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8797 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8798 * infcmd.c (run_no_args_command, go_command): Remove.
8799 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8800 * infrun.c (xdb_handle_command): Remove.
8801 (_initialize_infrun): Remove xdb_commands for lz and z.
8802 * main.c (xdb_commands): Remove variable.
8803 (captured_main): Remove "xdb" from long_options.
8804 (print_gdb_help): Remove --xdb from help.
8805 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8806 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8807 * stack.c (backtrace_full_command, args_plus_locals_info)
8808 (current_frame_command): Remove.
8809 (_initialize_stack): Remove xdb_commands for t, T and l.
8810 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8811 * thread.c (_initialize_thread): Remove xdb_commands condition.
8812 * tui/tui-layout.c (tui_toggle_layout_command)
8813 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8814 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8815 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8816 (tui_scroll_regs_backward_command): Remove.
8817 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8818 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8819 (_initialize_tui_win): Remove xdb_commands for U and w.
8820 * utils.c (pagination_on_command, pagination_off_command): Remove.
8821 (initialize_utils): Remove xdb_commands for am and sm.
8822
cb71640d
PA
88232015-04-10 Pedro Alves <palves@redhat.com>
8824
8825 * infrun.c (displaced_step_fixup): Switch to the event ptid
8826 earlier. If the thread stopped for a watchpoint and the
8827 target/arch has non-continuable watchpoints, cancel the displaced
8828 step.
8829 (resume): Don't start a displaced step if in-line step-over info
8830 is valid.
8831
8f572e5c
PA
88322015-04-10 Pedro Alves <palves@redhat.com>
8833
8834 * infrun.c (displaced_step_in_progress): New function.
8835 (do_target_resume): Advise target to report all signals if
8836 displaced stepping.
8837
8d707a12
PA
88382015-04-10 Pedro Alves <palves@redhat.com>
8839
8840 PR gdb/18216
8841 * infrun.c (process_event_stop_test): Don't assume a step-resume
8842 is set if tp->stepped_breakpoint is true.
8843
ef713951
YQ
88442015-04-10 Yao Qi <yao.qi@linaro.org>
8845
8846 * arm-tdep.c (install_alu_reg): Update comment.
8847 (thumb_copy_alu_reg): Remove local variable rn. Update
8848 debugging message. Use r2 instead of r1 in the modified
8849 instruction.
8850
906d60cf
PA
88512015-04-10 Pedro Alves <palves@redhat.com>
8852
8853 PR gdb/13858
8854 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8855 linux_displaced_step_location as gdbarch_displaced_step_location
8856 hook.
8857 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8858 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8859 * linux-tdep.c (linux_displaced_step_location): New function,
8860 based on ppc_linux_displaced_step_location.
8861 * linux-tdep.h (linux_displaced_step_location): New declaration.
8862 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8863 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8864 Delete.
8865 (ppc_linux_init_abi): Install linux_displaced_step_location as
8866 gdbarch_displaced_step_location hook, even without Cell/B.E..
8867 (_initialize_ppc_linux_tdep): Don't install
8868 ppc_linux_inferior_created as inferior_created observer.
8869 * s390-linux-tdep.c (s390_gdbarch_init): Install
8870 linux_displaced_step_location as gdbarch_displaced_step_location
8871 hook.
8872
7823a941
GB
88732015-04-09 Gary Benson <gbenson@redhat.com>
8874
8875 * common/common-remote-fileio.h: Rename to...
8876 * common/fileio.h: ...this. Update all references.
8877 (remote_fileio_to_fio_error): Rename to...
8878 (host_to_fileio_error): ...this.
8879 (remote_fileio_to_be): Rename to...
8880 (host_to_bigendian): ...this. Update all callers.
8881 (remote_fileio_to_fio_uint): Rename to...
8882 (host_to_fileio_uint): ...this. Update all callers.
8883 (remote_fileio_to_fio_time): Rename to...
8884 (host_to_fileio_time): ...this. Update all callers.
8885 (remote_fileio_to_fio_stat): Rename to...
8886 (host_to_fileio_stat): ...this.
8887 Update all references.
8888 * common/common-remote-fileio.c: Rename to...
8889 * common/fileio.c: ...this. Update all references.
8890 (remote_fileio_to_fio_error): Rename to...
8891 (host_to_fileio_error): ...this. Update all callers.
8892 (remote_fileio_mode_to_target): Rename to...
8893 (fileio_mode_pack): ...this. Update all callers.
8894 (remote_fileio_to_fio_mode): Rename to...
8895 (host_to_fileio_mode): ...this. Update all callers.
8896 (remote_fileio_to_fio_ulong): Rename to...
8897 (host_to_fileio_ulong): ...this. Update all callers.
8898 (remote_fileio_to_fio_stat): Rename to...
8899 (host_to_fileio_stat): ...this. Update all callers.
8900
f2983cc3
AW
89012015-04-09 Andy Wingo <wingo@igalia.com>
8902
8903 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8904 (frame_functions): Bind gdbscm_frame_read_register to
8905 frame-read-register.
8906 * guile/lib/gdb.scm (frame-read-register): Export.
8907
b88bb450
GB
89082015-04-09 Gary Benson <gbenson@redhat.com>
8909
8910 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8911 New declaration.
8912 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8913 New function, factored out the named functions below.
8914 * inf-child.c (gdb/fileio.h): Remove include.
8915 (common-remote-fileio.h): New include.
8916 (inf_child_errno_to_fileio_error): Remove function. Update
8917 all callers to use remote_fileio_to_fio_error.
8918 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8919
2f2680f3
AW
89202015-04-09 Andy Wingo <wingo@igalia.com>
8921
8922 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8923
5a2d4533
L
89242015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8925
8926 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8927 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8928 * configure: Regenerated.
8929
421693b0
PA
89302015-04-09 Pedro Alves <palves@redhat.com>
8931
8932 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8933 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8934 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8935 * gnulib/import/Makefile.am: Update.
8936 * gnulib/import/Makefile.in: Update.
8937 * gnulib/import/m4/gnulib-cache.m4: Update.
8938 * gnulib/import/m4/gnulib-comp.m4: Update.
8939 * gnulib/import/m4/strtok_r.m4: New file.
8940 * gnulib/import/strtok_r.c: New file.
8941
f543dc83
PA
89422015-04-09 Pedro Alves <palves@redhat.com>
8943
8944 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8945 "called too early to check prototype".
8946
6d62641c
SDJ
89472015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8948
8949 PR python/16699
8950 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8951 use a caching mechanism. Adjust comments and code to reflect
8952 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8953 (cmdpy_completer_handle_brkchars): Adjust call to
8954 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8955 (cmdpy_completer): Likewise.
8956
85558555
YQ
89572015-04-08 Yao Qi <yao.qi@linaro.org>
8958
8959 * spu-tdep.c (spu_gdbarch_init): Don't call
8960 set_gdbarch_cannot_step_breakpoint.
8961
d249a14a
SDJ
89622015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8963
8964 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8965
8a06aea7
PA
89662015-04-07 Pedro Alves <palves@redhat.com>
8967
8968 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8969 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8970 (delete_exited_threads): New declaration.
8971 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8972 * linux-nat.c (linux_nat_update_thread_list): New function.
8973 (linux_nat_add_target): Install it.
8974 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8975 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8976 (delete_exited_threads): New function.
8977
d9b67d9f
PA
89782015-04-07 Pedro Alves <pedro@codesourcery.com>
8979
8980 * infrun.c (resume) <displaced stepping debug output>: Get the
8981 leader thread's regcache, not resume_ptid's.
8982
2c26b84f
DE
89832015-04-06 Doug Evans <xdje42@gmail.com>
8984
8985 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8986 VAR_DOMAIN.
8987 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8988 Include symbol domain in debugging output.
8989
7a85168d
PA
89902015-04-06 Pedro Alves <palves@redhat.com>
8991 Bernd Edlinger <bernd.edlinger@hotmail.de>
8992
8993 * configure.ac: Remove the mingw32-specific stub-termcap.o
8994 fallback, and instead fallback to the stub termcap on all hosts.
8995 * configure: Regenerate.
8996 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8997 symbols.
8998
25755e2b
PMR
89992015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9000
9001 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9002 "top_level" parameter.
9003 (resolve_dynamic_type_internal): Remove the unused "top_level"
9004 parameter. Update call to is_dynamic_type_internal.
9005 (is_dynamic_type): Update call to is_dynamic_type_internal.
9006 (resolve_dynamic_range): Update call to
9007 resolve_dynamic_type_internal.
9008 (resolve_dynamic_union): Likewise.
9009 (resolve_dynamic_struct): Likewise.
9010 (resolve_dynamic_type): Likewise.
9011
961f4160
PMR
90122015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9013
9014 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9015 TYPE_CODE_REF types so that they are not considered as dynamic
9016 depending on the referenced type.
9017 (resolve_dynamic_type_internal): Likewise.
9018
39f3de7c
L
90192015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9020
9021 * Makefile.in (top_srcdir): New.
9022 * configure: Regenerated.
9023
599bd15c
GB
90242015-04-02 Gary Benson <gbenson@redhat.com>
9025
9026 * NEWS: Announce the new default sysroot of "target:".
9027
fed040c6
GB
90282015-04-02 Gary Benson <gbenson@redhat.com>
9029
9030 * main.c (captured_main): Set gdb_sysroot to "target:"
9031 if not otherwise set.
9032
64c0b5de
GB
90332015-04-02 Gary Benson <gbenson@redhat.com>
9034
9035 * exec.c (exec_file_attach): Support "target:" filenames.
9036
b57fbfba
GB
90372015-04-02 Gary Benson <gbenson@redhat.com>
9038
9039 * solib.c (solib_find): Strip "target:" prefix from sysroot
9040 if accessing local files.
9041
97a41605
GB
90422015-04-02 Gary Benson <gbenson@redhat.com>
9043
9044 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9045 checks and error messages.
9046
2938e6cf
GB
90472015-04-02 Gary Benson <gbenson@redhat.com>
9048
9049 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9050 (remote_filename_p): Remove declaration.
9051 (remote_bfd_open): Likewise.
9052 * remote.c (remote_bfd_iovec_open): Remove function.
9053 (remote_bfd_iovec_close): Likewise.
9054 (remote_bfd_iovec_pread): Likewise.
9055 (remote_bfd_iovec_stat): Likewise.
9056 (remote_filename_p): Likewise.
9057 (remote_bfd_open): Likewise.
9058 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9059 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9060 (gdb_bfd_open_maybe_remote): Remove function.
9061 (symfile_bfd_open): Replace remote filename check with
9062 target filename check.
9063 (reread_symbols): Use gdb_bfd_open.
9064 * build-id.c (gdbcore.h): New include.
9065 (build_id_to_debug_bfd): Use gdb_bfd_open.
9066 * infcmd.c (attach_command_post_wait): Remove remote filename
9067 check.
9068 * solib.c (solib_find): Replace remote-specific handling with
9069 target-specific handling. Update comments where necessary.
9070 (solib_bfd_open): Replace remote-specific handling with
9071 target-specific handling.
9072 (gdb_sysroot_changed): New function.
9073 (_initialize_solib): Call the above when gdb_sysroot changes.
9074 * windows-tdep.c (gdbcore.h): New include.
9075 (windows_xfer_shared_library): Use gdb_bfd_open.
9076
f08e97fe
GB
90772015-04-02 Gary Benson <gbenson@redhat.com>
9078
9079 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9080 (is_target_filename): New declaration.
9081 (gdb_bfd_has_target_filename): Likewise.
9082 (gdb_bfd_open): Update documentation comment.
9083 * gdb_bfd.c (target.h): New include.
9084 (gdb/fileio.h): Likewise.
9085 (is_target_filename): New function.
9086 (gdb_bfd_has_target_filename): Likewise.
9087 (fileio_errno_to_host): Likewise.
9088 (gdb_bfd_iovec_fileio_open): Likewise.
9089 (gdb_bfd_iovec_fileio_pread): Likewise.
9090 (gdb_bfd_iovec_fileio_close): Likewise.
9091 (gdb_bfd_iovec_fileio_fstat): Likewise.
9092 (gdb_bfd_open): Use target fileio to access paths prefixed
9093 with "target:" where necessary.
9094
4bd7dc42
GB
90952015-04-02 Gary Benson <gbenson@redhat.com>
9096
9097 * target.h (struct target_ops) <to_filesystem_is_local>:
9098 New field.
9099 (target_filesystem_is_local): New macro.
9100 * target-delegates.c: Regenerate.
9101 * remote.c (remote_filesystem_is_local): New function.
9102 (init_remote_ops): Initialize to_filesystem_is_local.
9103
9b15c1f0
GB
91042015-04-02 Gary Benson <gbenson@redhat.com>
9105
9106 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9107 (target_fileio_fstat): New declaration.
9108 * target.c (target_fileio_fstat): New function.
9109 * inf-child.c (inf_child_fileio_fstat): Likewise.
9110 (inf_child_target): Initialize to_fileio_fstat.
9111 * remote.c (init_remote_ops): Likewise.
9112
d11916aa
SS
91132015-04-01 Sasha Smundak <asmundak@google.com>
9114
9115 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9116 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9117 (py-unwind.o): New recipe.
9118 * NEWS: mention Python frame unwinding.
9119 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9120 gdb/unwinder.py and gdb/command/unwinder.py
9121 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9122 list.
9123 (execute_unwinders): New function.
9124 * python/lib/gdb/command/unwinders.py: New file.
9125 * python/lib/gdb/unwinder.py: New file.
9126 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9127 (objfpy_dealloc): Decrement frame_unwinders reference count.
9128 (objfpy_initialize): Create frame_unwinders list.
9129 (objfpy_get_frame_unwinders): New function.
9130 (objfpy_set_frame_unwinders): Ditto.
9131 (objfile_getset): Add frame_unwinders attribute to Objfile.
9132 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9133 (pspy_dealloc): Decrement frame_unwinders reference count.
9134 (pspy_initialize): Create frame_unwinders list.
9135 (pspy_get_frame_unwinders): New function.
9136 (pspy_set_frame_unwinders): Ditto.
9137 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9138 * python/py-unwind.c: New file.
9139 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9140 (objpy_get_frame_unwinders): New prototype.
9141 (gdbpy_initialize_unwind): New prototype.
9142 * python/python.c (gdbpy_apply_type_printers): Call
9143 gdbpy_initialize_unwind.
9144
6b403daa
PA
91452015-04-01 Pedro Alves <palves@redhat.com>
9146
9147 * infrun.c (resume): Check currently_stepping after clearing
9148 stepped_breakpoint, not before.
9149
1176ecec
PA
91502015-04-01 Pedro Alves <palves@redhat.com>
9151
9152 * infrun.c (print_target_wait_results): Print all the ptid
9153 elements.
9154
de1fe8c8
PA
91552015-04-01 Pedro Alves <palves@redhat.com>
9156
9157 * infrun.c (keep_going): Also discard cleanups if inserting
9158 breakpoints fails.
9159
e6f5c25b
PA
91602015-04-01 Pedro Alves <palves@redhat.com>
9161
9162 * infrun.c (wait_for_inferior): Install the
9163 finish_thread_state_cleanup cleanup across the whole function, not
9164 just around handle_inferior_event.
9165
1ac806b8
PA
91662015-04-01 Pedro Alves <palves@redhat.com>
9167
9168 * infrun.c (resume) <step past permanent breakpoint>: Use
9169 do_target_resume.
9170
2ee52aa4
PA
91712015-04-01 Pedro Alves <palves@redhat.com>
9172
9173 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9174
5445da1b
PMR
91752015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9176
9177 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9178
4eec2deb
PA
91792015-04-01 Pedro Alves <palves@redhat.com>
9180
9181 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9182 list if it was marked exited.
9183
afa59b79
L
91842015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9185
9186 * configure: Regenerated.
9187
df8411da
SDJ
91882015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9189 Jan Kratochvil <jan.kratochvil@redhat.com>
9190 Oleg Nesterov <oleg@redhat.com>
9191
9192 PR corefiles/16092
9193 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9194 New enum identifying the various options of the coredump_filter
9195 file.
9196 (struct smaps_vmflags): New struct.
9197 (use_coredump_filter): New variable.
9198 (decode_vmflags): New function.
9199 (mapping_is_anonymous_p): Likewise.
9200 (dump_mapping_p): Likewise.
9201 (linux_find_memory_regions_full): New variables
9202 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9203 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9204 parsing of its information. Implement memory mapping filtering
9205 based on its contents.
9206 (show_use_coredump_filter): New function.
9207 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9208 * NEWS: Mention the possibility of using the
9209 '/proc/PID/coredump_filter' file when generating a corefile.
9210 Mention new command 'set use-coredump-filter'.
9211
416f679e
SDJ
92122015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9213
9214 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9215 read_memory_unsigned_integer.
9216
711a72d3
L
92172015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9218
9219 * Makefile.in (ZLIB): New.
9220 (ZLIBINC): Likewise.
9221 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9222 (CLIBS): Add $(ZLIB).
9223 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9224 Add -lz to LIBS.
9225 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9226 * top.c (print_gdb_configuration): Remove --with-zlib and
9227 --without-zlib.
9228 * config.in: Regenerated.
9229 * configure: Likewise.
9230
d33279b3
AT
92312015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9232
9233 * NEWS: Mention info os cpus support.
9234 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9235 (struct osdata_type): Add cpus entry, reorder the entries in
9236 alphabetical order.
9237
71b30f27
MK
92382015-03-31 Matthias Klose <doko@ubuntu.com>
9239
9240 * compile/compile.c (compile_to_object): Allow triplets with or
9241 without vendor set.
9242
13ce9222
DE
92432015-03-30 Doug Evans <dje@google.com>
9244
9245 PR c++/18141
9246 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9247 klass in VAR_DOMAIN.
9248
20f796c9
GB
92492015-03-30 Gary Benson <gbenson@redhat.com>
9250
9251 * remote.c (remote_mourn_1): Remove function. Update all callers
9252 to use remote_mourn.
9253 (extended_remote_mourn_1): Remove function. Update all callers
9254 to use extended_remote_mourn.
9255 (extended_remote_attach_1): Remove function. Update all callers
9256 to use extended_remote_attach.
9257
49d45b20
JB
92582015-03-28 James Bowman <james.bowman@ftdichip.com>
9259
9260 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9261 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9262 (ALLDEPFILES): Add ft32-tdep.c.
9263 * configure.tgt: Add FT32 entry.
9264 * ft32-tdep.c: New file, FT32 target-dependent code.
9265 * ft32-tdep.h: New file, FT32 target-dependent code.
9266
1c4ff080
JK
92672015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9268
9269 Revert:
9270 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9271 Code cleanup.
9272 * printcmd.c (print_command_1): Move expr variable scope.
9273
79498702
JB
92742015-03-27 Joel Brobecker <brobecker@adacore.com>
9275
9276 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9277
ce9c0ca1
AK
92782015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9279
9280 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9281 sections.
9282
429e1e81
JB
92832015-03-26 Joel Brobecker <brobecker@adacore.com>
9284
9285 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9286 exception raised while parsing the probe arguments.
9287 Force parsing to be done using the C language parser.
9288 * expression.h (parse_expression_with_language): Declare.
9289 * parse.c (parse_expression_with_language): New function.
9290
4593441b
JT
92912015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9292
9293 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9294
ff908ebf
AW
92952015-03-26 Andy Wingo <wingo@igalia.com>
9296
9297 PR symtab/18148
9298 * dwarf2read.c (struct partial_die_info): Add has_const_value
9299 member.
9300 (add_partial_symbol): Don't punt on symbols that have const_value
9301 attributes.
9302 (read_partial_die): Detect DW_AT_const_value.
9303
f30d5c78
JK
93042015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 Code cleanup.
9307 * printcmd.c (print_command_1): Move expr variable scope.
9308
8d89f51a
JK
93092015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9310
9311 Code cleanup.
9312 * printcmd.c (validate_format): Make the parameter cmdname const.
9313
0b736949
DB
93142015-03-26 Don Breazeal <donb@codesourcery.com>
9315
9316 * remote.c (_initialize_remote): Update comment.
9317
20d35291
PA
93182015-03-26 Pedro Alves <palves@redhat.com>
9319 Jon TURNEY <jon.turney@dronecode.org.uk>
9320
9321 * coffread.c (coff_symfile_read): When constructing the name of an
9322 import stub symbol from import symbol for amd64, only skip the
9323 char after _imp_ if the target is underscored (like i386) and the
9324 char is indeed the target's leading char.
9325
6a3753b3
PA
93262015-03-25 Pedro Alves <palves@redhat.com>
9327
9328 * target.h <to_async>: Replace 'callback' and 'context' parameters
9329 with boolean 'enable' parameter.
9330 (target_async): Replace CALLBACK and CONTEXT parameters with
9331 boolean ENABLE parameter.
9332 * inf-loop.c (inferior_event_handler): Adjust.
9333 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9334 (linux_nat_resume): Adjust.
9335 (async_client_callback, async_client_context): Delete.
9336 (handle_target_event): Call inferior_event_handler directly.
9337 (linux_nat_async): Replace 'callback' and 'context' parameters
9338 with boolean 'enable' parameter. Adjust. Remove references to
9339 async_client_callback and async_client_context.
9340 (linux_nat_close): Adjust.
9341 * record-btrace.c (record_btrace_async): Replace 'callback' and
9342 'context' parameters with boolean 'enable' parameter. Adjust.
9343 (record_btrace_resume): Adjust.
9344 * record-full.c (record_full_async): Replace 'callback' and
9345 'context' parameters with boolean 'enable' parameter. Adjust.
9346 (record_full_resume, record_full_core_resume): Adjust.
9347 * remote.c (struct remote_state) <async_client_callback,
9348 async_client_context>: Delete fields.
9349 (remote_start_remote, extended_remote_attach_1, remote_resume)
9350 (extended_remote_create_inferior): Adjust.
9351 (remote_async_serial_handler): Call inferior_event_handler
9352 directly.
9353 (remote_async): Replace 'callback' and 'context' parameters with
9354 boolean 'enable' parameter. Adjust.
9355 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9356 Adjust.
9357 * target-delegates.c: Regenerate.
9358
1c4b552b
GB
93592015-03-25 Gary Benson <gbenson@redhat.com>
9360 Pedro Alves <palves@redhat.com>
9361
9362 * target.c (fileio_ft_t): New typedef, define object vector.
9363 (fileio_fhandles): New static variable.
9364 (is_closed_fileio_fh): New macro.
9365 (lowest_closed_fd): New static variable.
9366 (acquire_fileio_fd): New function.
9367 (release_fileio_fd): Likewise.
9368 (fileio_fd_to_fh): New macro.
9369 (target_fileio_open): Wrap the file descriptor on success.
9370 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9371 (target_fileio_pread): Likewise.
9372 (target_fileio_close): Likewise.
9373
a25d8bf9
PA
93742015-03-24 Pedro Alves <palves@redhat.com>
9375
9376 * thread.c (thread_apply_all_command): Take exited threads into
9377 account.
9378
44a1ee51
PA
93792015-03-24 Pedro Alves <palves@redhat.com>
9380
9381 * infrun.c (resume, proceed): Mention
9382 switch_back_to_stepped_thread, not switch_back_to_stepping.
9383
f3263aa4
PA
93842015-03-24 Pedro Alves <palves@redhat.com>
9385
9386 * infrun.c (user_visible_resume_ptid): Rewrite going from
9387 most-locked to unlocked instead of the opposite. Move comment ...
9388 * infrun.h (user_visible_resume_ptid): ... here.
9389
2bf6fb9d
PA
93902015-03-24 Pedro Alves <palves@redhat.com>
9391
9392 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9393 to resume the event lwp. Use the lwp's ptid instead of the passed
9394 in (maybe wildcard) ptid.
9395 (stop_wait_callback): Tweak debug log output.
9396 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9397 TRAP_TRACE.
9398 (linux_nat_filter_event): In debug output, distinguish a
9399 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9400 before trying to resume the lwp.
9401
283a9958
JB
94022015-03-24 Joel Brobecker <brobecker@adacore.com>
9403
9404 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9405 pointer indirection.
9406 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9407 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9408
93a8e227
JB
94092015-03-24 Joel Brobecker <brobecker@adacore.com>
9410
9411 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9412 Renames DYN_ATTR_DATA_LOCATION.
9413 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9414 DYN_ATTR_DATA_LOCATION.
9415 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9416 instead of DYN_ATTR_DATA_LOCATION.
9417
64ce06e4
PA
94182015-03-24 Pedro Alves <palves@redhat.com>
9419
9420 * breakpoint.c (until_break_command): Adjust call to proceed.
9421 * gdbthread.h (struct thread_control_state) <stepping_command>:
9422 New field.
9423 * infcall.c (run_inferior_call): Adjust call to proceed.
9424 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9425 Adjust calls to proceed.
9426 (set_step_frame): Set the current thread's step_start_function
9427 here.
9428 (step_once): Adjust calls to proceed.
9429 (jump_command, signal_command, until_next_command)
9430 (finish_backward, finish_forward, proceed_after_attach_callback)
9431 (attach_command_post_wait): Adjust calls to proceed.
9432 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9433 (do_target_resume): New function, factored out from ...
9434 (resume): ... here. Remove 'step' parameter. Instead, check
9435 currently_stepping to determine whether the thread should be
9436 single-stepped.
9437 (proceed): Remove 'step' parameter and don't set the thread's
9438 step_start_function here. Adjust call to 'resume'.
9439 (handle_inferior_event): Adjust calls to 'resume'.
9440 (switch_back_to_stepped_thread): Use do_target_resume instead of
9441 'resume'.
9442 (keep_going): Adjust calls to 'resume'.
9443 * infrun.h (proceed): Remove 'step' parameter.
9444 (resume): Likewise.
9445 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9446 'resume'.
9447 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9448
856e7dd6
PA
94492015-03-24 Pedro Alves <palves@redhat.com>
9450
9451 * gdbthread.h (struct thread_control_state) <stepping_command>:
9452 New field.
9453 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9454 the thread's stepping_command field.
9455 * infrun.c (resume): Check the thread's stepping_command flag to
9456 determine which threads should be resumed. Rename 'entry_step'
9457 local to user_step.
9458 (clear_proceed_status_thread): Clear 'stepping_command'.
9459 (schedlock_applies): Change parameter type to struct thread_info
9460 pointer. Adjust.
9461 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9462 (switch_back_to_stepped_thread): Adjust calls to
9463 'schedlock_applies'.
9464 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9465
885eeb5b
PA
94662015-03-24 Pedro Alves <palves@redhat.com>
9467
9468 * infrun.c (step_start_function): Delete and ...
9469 * gdbthread.h (struct thread_control_state) <step_start_function>:
9470 ... now a field here.
9471 * infrun.c (clear_proceed_status_thread): Clear the thread's
9472 step_start_function.
9473 (proceed, process_event_stop_test, print_stop_event): Adjust.
9474
3333f03a
PA
94752015-03-24 Pedro Alves <palves@redhat.com>
9476
9477 * infrun.c (proceed): No longer handle negative step.
9478
369f6daa
GB
94792015-03-24 Gary Benson <gbenson@redhat.com>
9480
9481 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9482 (x86_linux_prepare_to_resume): Likewise.
9483 * x86-linux-nat.c (x86_linux_new_thread):
9484 Moved to nat/x86-linux.c.
9485 (x86_linux_prepare_to_resume): Likewise.
9486 * nat/x86-linux.c (x86_linux_new_thread): New function.
9487 (x86_linux_prepare_to_resume): Likewise.
9488
8e5d4070
GB
94892015-03-24 Gary Benson <gbenson@redhat.com>
9490
9491 * nat/x86-linux-dregs.h: New file.
9492 * nat/x86-linux-dregs.c: Likewise.
9493 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9494 (x86-linux-dregs.o): New rule.
9495 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9496 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9497 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9498 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9499 (x86_linux_dr_get): Likewise.
9500 (x86_linux_dr_set): Likewise.
9501 (x86_linux_dr_get_addr): Likewise.
9502 (x86_linux_dr_get_control): Likewise.
9503 (x86_linux_dr_get_status): Likewise.
9504 (update_debug_registers_callback): Likewise.
9505 (x86_linux_dr_set_control): Likewise.
9506 (x86_linux_dr_set_addr): Likewise.
9507 (x86_linux_update_debug_registers): Likewise.
9508
2b95d440
GB
95092015-03-24 Gary Benson <gbenson@redhat.com>
9510
9511 * x86-linux-nat.c (x86_linux_update_debug_registers):
9512 New function, factored out from...
9513 (x86_linux_prepare_to_resume): ...this.
9514
14b0bc68
GB
95152015-03-24 Gary Benson <gbenson@redhat.com>
9516
9517 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9518 (x86_linux_dr_set): Likewise.
9519 (x86_linux_dr_get_addr): Likewise.
9520 (x86_linux_dr_get_control): Likewise.
9521 (x86_linux_dr_get_status): Likewise.
9522 (update_debug_registers_callback): Likewise.
9523 (x86_linux_dr_set_control): Likewise.
9524 (x86_linux_dr_set_addr): Likewise.
9525 (x86_linux_prepare_to_resume): Likewise.
9526 (x86_linux_new_thread): Likewise.
9527
5dfe6ca8
GB
95282015-03-24 Gary Benson <gbenson@redhat.com>
9529
9530 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9531 (x86_linux_new_thread): Rename argument.
9532
4b134ca1
GB
95332015-03-24 Gary Benson <gbenson@redhat.com>
9534
9535 * nat/x86-linux.h: New file.
9536 * nat/x86-linux.c: Likewise.
9537 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9538 (x86-linux.o): New rule.
9539 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9540 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9541 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9542 (lwp_set_arch_private_info): New declaration.
9543 (lwp_arch_private_info): Likewise.
9544 * linux-nat.c (lwp_set_arch_private_info): New function.
9545 (lwp_arch_private_info): Likewise.
9546 * x86-linux-nat.c: Include nat/x86-linux.h.
9547 (arch_lwp_info): Removed structure.
9548 (update_debug_registers_callback):
9549 Use lwp_set_debug_registers_changed.
9550 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9551 and lwp_set_debug_registers_changed.
9552 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9553
cff068da
GB
95542015-03-24 Gary Benson <gbenson@redhat.com>
9555
9556 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9557 (lwp_is_stopped): Likewise.
9558 (lwp_stop_reason): Likewise.
9559 * linux-nat.c (ptid_of_lwp): New function.
9560 (lwp_is_stopped): Likewise.
9561 (lwp_is_stopped_by_watchpoint): Likewise.
9562 * x86-linux-nat.c (update_debug_registers_callback):
9563 Use lwp_is_stopped.
9564 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9565 lwp_stop_reason.
9566
b2f7c7e8
GB
95672015-03-24 Gary Benson <gbenson@redhat.com>
9568
9569 * linux-nat.h (linux_stop_lwp): Move declaration to...
9570 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9571
6d4ee8c6
GB
95722015-03-24 Gary Benson <gbenson@redhat.com>
9573
9574 * linux-nat.h: Include nat/linux-nat.h.
9575 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9576 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9577 (iterate_over_lwps_ftype): New typedef.
9578 (iterate_over_lwps): New declaration.
9579 * linux-nat.h (iterate_over_lwps): Update comment. Use
9580 iterate_over_lwps_ftype. Update callback return value check.
9581
70a0bb6b
GB
95822015-03-24 Gary Benson <gbenson@redhat.com>
9583
9584 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9585 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9586
7b669087
GB
95872015-03-24 Gary Benson <gbenson@redhat.com>
9588
9589 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9590 * linux-nat.c (current_lwp_ptid): New function.
9591 * x86-linux-nat.c: Include nat/linux-nat.h.
9592 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9593 (x86_linux_dr_get_control): Likewise.
9594 (x86_linux_dr_get_status): Likewise.
9595 (x86_linux_dr_set_control): Likewise.
9596 (x86_linux_dr_set_addr): Likewise.
9597
15630549
AT
95982015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9599
9600 PR breakpoints/16466
9601 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9602
8a4506c0
JB
96032015-03-23 Joel Brobecker <brobecker@adacore.com>
9604
9605 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9606 * ser-unix.c (hardwire_setparity): Likewise.
9607
236af5e3
YG
96082015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9609
9610 * NEWS: Mention set/show serial parity command.
9611 * monitor.c (monitor_open): Call serial_setparity.
9612 * remote.c (remote_open_1): Likewise.
9613 * ser-base.c (ser_base_serparity): New function.
9614 * ser-base.h (ser_base_setparity): Add declaration.
9615 * ser-go32.c (dos_ops): Set "setparity" field.
9616 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9617 state.Parity.
9618 (ser_windows_setparity): New function.
9619 (hardwire_ops): Add ser_windows_setparity.
9620 (tty_ops): Add NULL for setparity field.
9621 (pipe_ops): Add ser_base_setparity.
9622 (tcp_ops): Likewise.
9623 * ser-pipe.c (pipe_ops): Likewise.
9624 * ser-tcp.c (tcp_ops): Likewise.
9625 * ser-unix.c (hardwire_setparity): Add declaration.
9626 (hardwire_raw): Don't reset PARENB flag.
9627 (hardwire_setparity): New function.
9628 (hardwire_ops): Add hardwire_setparity.
9629 * serial.c (serial_setparity): New function.
9630 (serial_parity): New global.
9631 (parity_none, parity_odd, parity_even, parity_enums, parity):
9632 New static globals.
9633 (set_parity): New function.
9634 (_initialize_serial): Add set/show serial parity commands.
9635 * serial.h (GDBPARITY_NONE): Define.
9636 (GDBPARITY_ODD): Define.
9637 (GDBPARITY_EVEN): Define.
9638 (serial_setparity) Add declaration.
9639 (struct serial_ops): Add setparity field.
9640 * target.h (serial_parity): Add declaration.
9641
32b40af9
KS
96422015-03-23 Keith Seitz <keiths@redhat.com>
9643
9644 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9645
693dca06
KS
96462015-03-23 Keith Seitz <keiths@redhat.com>
9647
9648 * breakpoint.c (parse_breakpoint_sals): Use
9649 linespec_lexer_lex_keyword to ascertain if the user specified
9650 a NULL location.
9651 * linespec.c [IF_KEYWORD_INDEX]: Define.
9652 (linespec_lexer_lex_keyword): Export.
9653 (struct ls_parser) <keyword_ok>: Remove.
9654 A keyword is only a keyword if not followed by another keyword.
9655 (linespec_lexer_lex_one): Remove keyword_ok handling.
9656 Add comment explaining why the parsing stream is not advanced
9657 when a keyword is seen.
9658 (parse_linespec): Remove parser->keyword_ok.
9659 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9660
7e993ebf
KS
96612015-03-23 Keith Seitz <keiths@redhat.com>
9662
9663 PR gdb/18021
9664 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9665 if we find a static method with DW_AT_vtable_elem_location.
9666
b1a0f704
EZ
96672015-03-21 Eli Zaretskii <eliz@gnu.org>
9668
9669 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9670 before the second loop, to avoid undefined behavior. Reported by
9671 Anton Blanchard <anton@samba.org>.
9672
d9823cbb
KB
96732015-03-20 Keven Boell <keven.boell@intel.com>
9674
9675 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9676 data_location usage to linked list.
9677 (resolve_dynamic_type_internal): Adapt data_location to
9678 linked list.
9679 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9680 (copy_type_recursive, copy_type): Add copy of linked list.
9681 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9682 (struct dynamic_prop_list): New struct.
9683 * dwarf2read.c (set_die_type): Set data_location data.
9684
2e7bf1d7
PA
96852015-03-20 Pedro Alves <palves@redhat.com>
9686
9687 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9688 inner block and make it const.
9689 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9690
7a26bd4d
PA
96912015-03-20 Pedro Alves <palves@redhat.com>
9692
9693 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9694 * breakpoint.h (set_breakpoint_condition): Update declaration.
9695
cd46431b
PA
96962015-03-20 Pedro Alves <palves@redhat.com>
9697
9698 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9699
e28566f7
PA
97002015-03-20 Pedro Alves <palves@redhat.com>
9701
9702 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9703
f6fc92f6
PA
97042015-03-20 Pedro Alves <palves@redhat.com>
9705
9706 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9707
c32ed3ef
PA
97082015-03-20 Pedro Alves <palves@redhat.com>
9709
9710 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9711 (nto_init_solib_absolute_prefix): Likewise.
9712
53e78085
PA
97132015-03-20 Pedro Alves <palves@redhat.com>
9714
9715 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9716 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9717
bc23328c
JK
97182015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * config/djgpp/README: Remove gdb.hp.
9721
e8ffc436
YQ
97222015-03-20 Yao Qi <yao.qi@linaro.org>
9723
9724 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9725 set_gdbarch_cannot_step_breakpoint.
9726
23f238d3
PA
97272015-03-19 Pedro Alves <palves@redhat.com>
9728
9729 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9730 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9731 instead call perror_with_name.
9732 (check_ptrace_stopped_lwp_gone): New function.
9733 (linux_resume_one_lwp): Reimplement as wrapper around
9734 linux_resume_one_lwp_throw that swallows errors if the LWP is
9735 gone.
9736 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9737 swallows errors if the LWP is gone. Use
9738 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9739
eb54c8bf
PA
97402015-03-19 Pedro Alves <palves@redhat.com>
9741
9742 * linux-nat.c (status_callback): Return early if the LWP has no
9743 status pending.
9744
b90fc188
PA
97452015-03-19 Pedro Alves <palves@redhat.com>
9746
9747 * linux-nat.c (select_event_lwp_callback): Update comment to no
9748 longer mention SIGTRAP.
9749
670f82d4
TG
97502015-03-18 Tristan Gingold <gingold@adacore.com>
9751
72f4393d
L
9752 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9753 redirection code to ...
9754 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9755 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9756
464b0089
GB
97572015-03-18 Gary Benson <gbenson@redhat.com>
9758
9759 (remote_protocol_features): Remove the "vFile:fstat" feature.
9760 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9761
f68f11b7
YQ
97622015-03-11 Yao Qi <yao.qi@linaro.org>
9763
9764 PR tdep/18107
9765 * aarch64-linux-tdep.c: Include xml-syscall.h
9766 (aarch64_linux_get_syscall_number): New function.
9767 (aarch64_linux_init_abi): Call
9768 set_gdbarch_get_syscall_number.
9769 * syscalls/aarch64-linux.xml: New file.
9770
393bd0c0
YG
97712015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9772
9773 * ser-base.h (ser_base_setstopbits): Change second argument name
9774 from "rate" to "num".
9775
7f3647e2
GB
97762015-03-17 Gary Benson <gbenson@redhat.com>
9777 Luke Allardyce <lukeallardyce@gmail.com>
9778
9779 PR gdb/18131
9780 * common/common-remote-fileio.h (sys/stat.h): New include.
9781 (stuct stat): Remove forward declaration.
9782
3ce5b6e2
JB
97832015-03-16 John Baldwin <jhb@FreeBSD.org>
9784
9785 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9786 before writing core register notes.
9787
d053f6be
YZ
97882015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9789 Pedro Alves <palves@redhat.com>
9790
9791 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9792 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9793 (tgoto): Wrap with extern "C".
9794
b1a921c8
PA
97952015-03-16 Pedro Alves <palves@redhat.com>
9796 Yuanhui Zhang <asmwarrior@gmail.com>
9797
9798 * stub-termcap.c (tputs): Change prototype.
9799
876d1cd7
YZ
98002015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9801 Pedro Alves <palves@redhat.com>
9802
9803 * windows-nat.c (struct thread_info_struct): Rename to ...
9804 (struct windows_thread_info_struct): ... this.
9805 (thread_info): Rename to ...
9806 (windows_thread_info): ... this.
9807 All users updated.
9808
0800b440
JK
98092015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9810 Pedro Alves <palves@redhat.com>
9811
9812 * NEWS: New Removed targets and native configurations.
9813
98142015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9815
9816 Remove HPUX.
9817 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9818 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9819 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9820 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9821 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9822 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9823 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9824 hppa-hpux-tdep.c.
9825 * config/ia64/hpux.mh: Remove file.
9826 * config/pa/hpux.mh: Remove file.
9827 * configure: Rebuilt.
9828 * configure.ac (dlgetmodinfo, somread.o): Remove.
9829 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9830 (ia64-*-hpux*): Remove its float format exception.
9831 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9832 * hppa-hpux-nat.c: Remove file.
9833 * hppa-hpux-tdep.c: Remove file.
9834 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9835 Move them here from hppa-tdep.h
9836 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9837 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9838 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9839 Move them to hppa-tdep.c.
9840 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9841 declarations.
9842 * ia64-hpux-nat.c: Remove file.
9843 * ia64-hpux-tdep.c: Remove file.
9844 * ia64-hpux-tdep.h: Remove file.
9845 * inf-ttrace.c: Remove file.
9846 * inf-ttrace.h: Remove file.
9847 * solib-ia64-hpux.c: Remove file.
9848 * solib-ia64-hpux.h: Remove file.
9849 * solib-pa64.c: Remove file.
9850 * solib-pa64.h: Remove file.
9851 * solib-som.c: Remove file.
9852 * solib-som.h: Remove file.
9853 * somread.c: Remove file.
9854
25268153
JB
98552015-03-13 John Baldwin <jhb@FreeBSD.org>
9856
9857 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9858 * config.in: Regenerate.
9859 * configure: Regenerate.
9860 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9861 define.
25268153
JB
9862 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9863 enumerate memory regions if present.
9864
773eacf5
JB
98652015-03-13 John Baldwin <jhb@FreeBSD.org>
9866
9867 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9868 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9869 expressions.
9870 (i386fbsd_sigtramp_p): Likewise.
9871
01b6bdb0
JB
98722015-03-12 John Baldwin <jhb@FreeBSD.org>
9873
9874 * MAINTAINERS (Write After Approval): Add John Baldwin.
9875
811a659a
GB
98762015-03-12 Gary Benson <gbenson@redhat.com>
9877
9878 * solib.c (_initialize_solib): Make "set/show sysroot" use
9879 add_setshow_optional_filename_cmd so it can be restored to
9880 empty after being set.
9881
10304ef3
SDJ
98822015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9883
9884 * Makefile.in (SFILES): New source break-catch-syscall.c.
9885 (COMMON_OBS): New object break-catch-syscall.o.
9886 * break-catch-syscall.c: New file.
9887 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9888 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9889 (struct syscall_catchpoint): Likewise.
9890 (dtor_catch_syscall): Likewise.
9891 (catch_syscall_inferior_data): Likewise.
9892 (struct catch_syscall_inferior_data): Likewise.
9893 (get_catch_syscall_inferior_data): Likewise.
9894 (catch_syscall_inferior_data_cleanup): Likewise.
9895 (insert_catch_syscall): Likewise.
9896 (remove_catch_syscall): Likewise.
9897 (breakpoint_hit_catch_syscall): Likewise.
9898 (print_it_catch_syscall): Likewise.
9899 (print_one_catch_syscall): Likewise.
9900 (print_mention_catch_syscall): Likewise.
9901 (print_recreate_catch_syscall): Likewise.
9902 (catch_syscall_breakpoint_ops): Likewise.
9903 (syscall_catchpoint_p): Likewise.
9904 (create_syscall_event_catchpoint): Likewise.
9905 (catch_syscall_split_args): Likewise.
9906 (catch_syscall_command_1): Likewise.
9907 (is_syscall_catchpoint_enabled): Likewise.
9908 (catch_syscall_enabled): Likewise.
9909 (catching_syscall_number): Likewise.
9910 (catch_syscall_completer): Likewise.
9911 (clear_syscall_counts): Likewise.
9912 (initialize_breakpoint_ops): Move initialization of syscall
9913 catchpoints to break-catch-syscall.c.
9914 (_initialize_breakpoint): Move code related to syscall catchpoints
9915 to break-catch-syscall.c.
9916
badd37ce
SDJ
99172015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9918
9919 * breakpoint.c (breakpoint_find_if): New function.
9920 * breakpoint.h (breakpoint_find_if): New prototype.
9921
0a93529c
GB
99222015-03-11 Gary Benson <gbenson@redhat.com>
9923
9924 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9925 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9926 (remote_fileio_to_host_ulong): Likewise.
9927 (remote_fileio_to_host_mode): Likewise.
9928 (remote_fileio_to_host_time): Likewise.
9929 (remote_fileio_to_host_stat): Likewise.
9930 * remote.c (PACKET_vFile_fstat): New enum value.
9931 (remote_protocol_features): Register the "vFile:fstat" feature.
9932 (remote_hostio_fstat): New function.
9933 (remote_bfd_iovec_stat): Use the above.
9934 (_initialize_remote): Register new "set/show remote
9935 hostio-fstat-packet" command.
9936 * symfile.c (separate_debug_file_exists): Update comment.
9937 * NEWS: Announce new vFile:fstat packet.
9938
791c0056
GB
99392015-03-11 Gary Benson <gbenson@redhat.com>
9940
9941 * common/common-remote-fileio.h: New file.
9942 * common/common-remote-fileio.c: Likewise.
9943 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9944 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9945 (COMMON_OBS): Add common-remote-fileio.o.
9946 (common-remote-fileio.o): New rule.
9947 * remote-fileio.h (common-remote-fileio.h): New include.
9948 * remote-fileio.c (gdb/fileio.h): Do not include.
9949 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9950 (remote_fileio_to_fio_uint): Likewise.
9951 (remote_fileio_to_fio_time): Likewise.
9952 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9953 (remote_fileio_to_fio_mode): Likewise.
9954 (remote_fileio_to_fio_ulong): Likewise.
9955 (remote_fileio_to_fio_stat): Likewise.
9956
1390d0ef
AW
99572015-03-11 Andy Wingo <wingo@igalia.com>
9958
9959 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9960 we were checking the cached type, not the cached dynamic type.
9961
84a4591a
AW
99622015-03-11 Andy Wingo <wingo@igalia.com>
9963
9964 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9965 other strings, as these are on the GC'd heap, and will be
9966 collected along with the smob.
9967
85642ba0
AW
99682015-03-11 Andy Wingo <wingo@igalia.com>
9969
9970 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9971 (objfile_functions): Bind gdbscm_objfile_progspace to
9972 objfile-progspace.
9973 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9974
92fab5a6
AW
99752015-03-11 Andy Wingo <wingo@igalia.com>
9976
9977 * guile/guile.c (_initialize_guile): Disable automatic
9978 finalization, if Guile offers us that possibility.
9979 * guile/guile.c (call_initialize_gdb_module):
9980 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9981 finalizers in appropriate places.
9982 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9983 scm_set_automatic_finalization_enabled.
9984 * configure: Regenerated.
9985
f054145e
AA
99862015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9987
9988 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9989 SAL, if possible.
9990
18396193
AA
99912015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9992
9993 * s390-linux-nat.c (struct arch_lwp_info): New.
9994 (s390_fix_watch_points): Rename to...
9995 (s390_prepare_to_resume): ...this. Skip the PER info update
9996 unless the watch points have changed.
9997 (s390_refresh_per_info, s390_new_thread): New functions.
9998 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9999 s390_fix_watch_points.
10000 (s390_remove_watchpoint): Likewise.
10001 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10002 Register s390_prepare_to_resume.
10003
9eb1356e
PA
100042015-03-09 Pedro Alves <palves@redhat.com>
10005
10006 Revert:
10007 2015-03-07 Pedro Alves <palves@redhat.com>
10008 * common/gdb_socket.h: New file.
10009 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10010 sys/socket.h.
10011 (net_open): Use union gdb_sockaddr_u.
10012
aac331e4
PA
100132015-03-07 Pedro Alves <palves@redhat.com>
10014
10015 * configure.ac (build_warnings): Move -Wmissing-prototypes
10016 -Wdeclaration-after-statement -Wmissing-parameter-type
10017 -Wold-style-declaration -Wold-style-definition to the C-specific
10018 set.
10019 * configure: Regenerate.
10020
366c75fc
PA
100212015-03-07 Pedro Alves <palves@redhat.com>
10022
10023 * common/gdb_socket.h: New file.
10024 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10025 sys/socket.h.
10026 (net_open): Use union gdb_sockaddr_u.
10027
72df25b2
PA
100282015-03-07 Pedro Alves <palves@redhat.com>
10029
10030 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10031 (exceptions_state_mc_action_iter)
10032 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10033 Don't define.
10034 [__cplusplus] (try_scope_depth): New global.
10035 [__cplusplus] (exception_try_scope_entry)
10036 (exception_try_scope_exit, gdb_exception_sliced_copy)
10037 (exception_rethrow): New functions.
10038 (throw_exception): In C++ mode, throw
10039 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10040 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10041 (throw_it): In C++ mode, use try_scope_depth.
10042 * common/common-exceptions.h [!__cplusplus]
10043 (exceptions_state_mc_action_iter)
10044 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10045 Don't declare.
10046 [__cplusplus] (exception_try_scope_entry)
10047 (exception_try_scope_exit, exception_rethrow): Declare.
10048 [__cplusplus] (struct exception_try_scope): New struct.
10049 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10050 C++ exceptions.
10051 (struct gdb_exception_RETURN_MASK_ALL)
10052 (struct gdb_exception_RETURN_MASK_ERROR)
10053 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10054
284e6217
PA
100552015-03-07 Pedro Alves <palves@redhat.com>
10056
10057 * main.c (handle_command_errors): Remove volatile qualifier from
10058 parameter.
10059
6c63c96a
PA
100602015-03-07 Pedro Alves <palves@redhat.com>
10061
10062 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10063 TRY and CATCH.
10064 * gdbtypes.c (safe_parse_type): Remove empty line.
10065 (types_deeply_equal):
10066 * guile/scm-frame.c (gdbscm_frame_name):
10067 * linux-thread-db.c (find_new_threads_once):
10068 * python/py-breakpoint.c (bppy_get_commands):
10069 * record-btrace.c (record_btrace_insert_breakpoint)
10070 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10071 (record_btrace_start_replaying): Adjust to avoid code between TRY
10072 and CATCH.
10073
492d29ea
PA
100742015-03-07 Pedro Alves <palves@redhat.com>
10075
10076 * common/common-exceptions.c (struct catcher) <exception>: No
10077 longer a pointer to volatile exception. Now an exception value.
10078 <mask>: Delete field.
10079 (exceptions_state_mc_init): Remove all parameters. Adjust.
10080 (exceptions_state_mc): No longer pop the catcher here.
10081 (exceptions_state_mc_catch): New function.
10082 (throw_exception): Adjust.
10083 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10084 all parameters.
10085 (exceptions_state_mc_catch): Declare.
10086 (TRY_CATCH): Rename to ...
10087 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10088 (CATCH, END_CATCH): New.
10089 All callers adjusted.
10090
ece957c8
TT
100912015-03-07 Tom Tromey <tromey@redhat.com>
10092
10093 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10094
7556d4a4
PA
100952015-03-07 Pedro Alves <palves@redhat.com>
10096
10097 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10098 (amd64_epilogue_frame_cache): Normal exception handling code.
10099 * break-catch-throw.c (check_status_exception_catchpoint)
10100 (re_set_exception_catchpoint): Ditto.
10101 * cli/cli-interp.c (safe_execute_command):
10102 * cli/cli-script.c (script_from_file): Ditto.
10103 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10104 Ditto.
10105 * compile/compile-object-run.c (compile_object_run): Ditto.
10106 * cp-abi.c (baseclass_offset): Ditto.
10107 * cp-valprint.c (cp_print_value): Ditto.
10108 * exceptions.c (catch_exceptions_with_msg):
10109 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10110 * frame.c (get_frame_address_in_block_if_available): Ditto.
10111 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10112 (i386_sigtramp_frame_cache): Ditto.
10113 * infcmd.c (post_create_inferior): Ditto.
10114 * linespec.c (parse_linespec, find_linespec_symbols):
10115 * p-valprint.c (pascal_object_print_value): Ditto.
10116 * parse.c (parse_expression_for_completion): Ditto.
10117 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10118 * remote.c (remote_get_noisy_reply): Ditto.
10119 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10120 * solib-svr4.c (solib_svr4_r_map): Ditto.
10121
f873665f 101222015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10123
10124 * common/common-utils.h (startswith): New inline function.
10125 All places where this logic was used updated to use the above.
10126
68901c4d
PA
101272015-03-05 Pedro Alves <palves@redhat.com>
10128
10129 PR gdb/18002
10130 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10131 after reading the breakpoint's shadow memory.
10132
2dcb2b1a
MK
101332015-03-05 Mark Kettenis <kettenis@gnu.org>
10134
10135 * hppabsd-nat.c: Remove file.
10136 * hppaobsd-nat.c: New file.
10137 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10138 hppaobsd-nat.c.
10139 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10140 hppaobsd-nat.o.
10141
527a273a
PA
101422015-03-04 Pedro Alves <palves@redhat.com>
10143
10144 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10145 (target_decr_pc_after_break): Delete declaration.
10146 * target.c (default_target_decr_pc_after_break)
10147 (target_decr_pc_after_break): Delete.
10148 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10149 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10150 * linux-thread-db.c (check_event): Likewise.
10151 * infrun.c (adjust_pc_after_break): Likewise.
10152 * darwin-nat.c (cancel_breakpoint): Likewise.
10153 * aix-thread.c (aix_thread_wait): Likewise.
10154 * target-delegates.c: Regenerate.
10155
faf09f01
PA
101562015-03-04 Pedro Alves <palves@redhat.com>
10157
10158 * linux-nat.c (save_sigtrap): Check for breakpoints before
10159 checking watchpoints.
10160 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10161 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10162 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10163 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10164 (linux_nat_stopped_by_sw_breakpoint)
10165 (linux_nat_supports_stopped_by_sw_breakpoint)
10166 (linux_nat_stopped_by_hw_breakpoint)
10167 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10168 (linux_nat_wait_1): Don't re-increment the PC if relying on
10169 SIGTRAP's siginfo->si_code.
10170 (linux_nat_add_target): Install new target methods.
10171 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10172 offset if the target already adjusted the PC.
10173 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10174 (GDB_ARCH_TRAP_BRKPT): New.
10175 (TRAP_HWBKPT): Define if not already defined.
10176
f7e6eed5
PA
101772015-03-04 Pedro Alves <palves@redhat.com>
10178
10179 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10180 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10181 Delete field.
10182 <stop_reason>: New field.
10183 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10184 (packet_set_cmd_state): New function.
10185 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10186 features.
10187 (remote_query_supported): If not disabled with the corresponding
10188 "set remote foo-packet" command, report support for the swbreak
10189 and hwbreak features.
10190 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10191 field.
10192 <stop_reason>: New field.
10193 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10194 (remote_wait_as): Adjust.
10195 (remote_stopped_by_sw_breakpoint)
10196 (remote_supports_stopped_by_sw_breakpoint)
10197 (remote_stopped_by_hw_breakpoint)
10198 (remote_supports_stopped_by_hw_breakpoint): New functions.
10199 (remote_stopped_by_watchpoint): New function.
10200 (init_remote_ops): Install them.
10201 (_initialize_remote): Register new "set/show remote
10202 swbreak-feature-packet" and "set/show remote
10203 swbreak-feature-packet" commands.
10204
9e8915c6
PA
102052015-03-04 Pedro Alves <palves@redhat.com>
10206
10207 * btrace.h: Include target/waitstatus.h.
10208 (struct btrace_thread_info) <stop_reason>: New field.
10209 * record-btrace.c (record_btrace_step_thread): Use
10210 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10211 (record_btrace_decr_pc_after_break): Delete.
10212 (record_btrace_stopped_by_sw_breakpoint)
10213 (record_btrace_supports_stopped_by_sw_breakpoint)
10214 (record_btrace_stopped_by_hw_breakpoint)
10215 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10216 (init_record_btrace_ops): Install them.
10217 * record-full.c (record_full_hw_watchpoint): Delete and replace
10218 with ...
10219 (record_full_stop_reason): ... this throughout.
10220 (record_full_exec_insn): Adjust.
10221 (record_full_wait_1): Adjust. No longer re-increment the PC.
10222 (record_full_wait_1): Adjust. Use
10223 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10224 (record_full_stopped_by_watchpoint): Adjust.
10225 (record_full_stopped_by_sw_breakpoint)
10226 (record_full_supports_stopped_by_sw_breakpoint)
10227 (record_full_supports_stopped_by_sw_breakpoint)
10228 (record_full_stopped_by_hw_breakpoint)
10229 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10230 (init_record_full_ops, init_record_full_core_ops): Install them.
10231 * record.c (record_check_stopped_by_breakpoint): New function.
10232 * record.h: Include target/waitstatus.h.
10233 (record_check_stopped_by_breakpoint): New declaration.
10234
15c66dd6
PA
102352015-03-04 Pedro Alves <palves@redhat.com>
10236
10237 enum lwp_stop_reason -> enum target_stop_reason
10238 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10239 (linux_nat_stopped_by_watchpoint, status_callback)
10240 (linux_nat_wait_1): Adjust.
10241 * linux-nat.h (enum lwp_stop_reason): Delete.
10242 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10243 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10244 * target/waitstatus.h (enum target_stop_reason): New.
10245
1cf4d951
PA
102462015-03-04 Pedro Alves <palves@redhat.com>
10247
10248 * breakpoint.c (need_moribund_for_location_type): New function.
10249 (bpstat_stop_status): Don't skipping checking moribund locations
10250 of breakpoint types which the target tell caused a stop.
10251 (program_breakpoint_here_p): New function, factored out from ...
10252 (bp_loc_is_permanent): ... this.
10253 (update_global_location_list): Don't create a moribund location if
10254 the target supports reporting stops of the type of the removed
10255 breakpoint.
10256 * breakpoint.h (program_breakpoint_here_p): New declaration.
10257 * infrun.c (adjust_pc_after_break): Return early if the target has
10258 already adjusted the PC. Add comments.
10259 (handle_signal_stop): If nothing explains a signal, and the target
10260 tells us the stop was caused by a software breakpoint, check if
10261 there's a breakpoint instruction in the memory. If so, adjust the
10262 PC before presenting the stop to the user. Otherwise, ignore the
10263 trap. If nothing explains a signal, and the target tells us the
10264 stop was caused by a hardware breakpoint, ignore the trap.
10265 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10266 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10267 to_supports_stopped_by_hw_breakpoint>: New fields.
10268 (target_stopped_by_sw_breakpoint)
10269 (target_supports_stopped_by_sw_breakpoint)
10270 (target_stopped_by_hw_breakpoint)
10271 (target_supports_stopped_by_hw_breakpoint): Define.
10272 * target-delegates.c: Regenerate.
10273
79639e11
PA
102742015-03-04 Pedro Alves <palves@redhat.com>
10275
10276 * infrun.c (follow_fork_inferior): Use the whole of the
10277 inferior_ptid and pending_follow.related_pid ptids instead of
10278 building ptids from the process components. Adjust verbose output
10279 to use target_pid_to_str.
10280 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10281 inferior_ptid and pending_follow.related_pid ptids instead of
10282 building ptids from the process components.
10283
e85e8e5e
MK
102842015-03-04 Mark Kettenis <kettenis@gnu.org>
10285
10286 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10287 (inf_ptrace_insert_fork_catchpoint): New function.
10288 (inf_ptrace_remove_fork_catchpoint): New function.
10289 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10290
87de11c0
AA
102912015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10292
10293 * s390-linux-tdep.c (s390_register_name): Return empty string
10294 instead of NULL for registers that shouldn't be visible.
10295
d851a69a
AA
102962015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10297
10298 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10299 XML file for 64-bit targets.
10300
b072f6c1
SM
103012015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10302
10303 * target.h (find_default_create_inferior): Remove declaration.
10304 (find_default_attach): Likewise.
10305
c1593e4f
PA
103062015-03-03 Pedro Alves <palves@redhat.com>
10307
10308 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10309 Use ptid_get_pid to get the overall process id when resuming all
10310 threads.
10311
90ad5e1d
PA
103122015-03-03 Pedro Alves <palves@redhat.com>
10313
10314 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10315 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10316 * inf-ptrace.c (get_ptrace_pid): New function.
10317 (inf_ptrace_resume): Use it.
10318 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10319 to the lower layer.
10320
d68e53f4
MM
103212015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10322
10323 * nat/linux-btrace.c: Include sys/utsname.h.
10324 (linux_determine_kernel_ptr_bits): New.
10325 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10326 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10327 ptr_bits.
10328
986b6601
MM
103292015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10330
10331 * btrace.c (ftrace_update_function): Treat return as tailcall for
10332 "_dl_runtime_resolve".
10333
ce0dfbea
MM
103342015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10335
10336 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10337 * btrace.c (ftrace_debug): Do not print the line range.
10338 (ftrace_skip_file, ftrace_update_lines): Remove.
10339 (ftrace_new_function): Remove lbegin and lend initialization.
10340 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10341 * record-btrace.c (btrace_compute_src_line_range): New.
10342 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10343
95e50b27
PA
103442015-03-02 Pedro Alves <palves@redhat.com>
10345
10346 * infrun.c (follow_exec): Delete all threads of the process except
10347 the event thread. Extended comments.
10348
00e474c2
JB
103492015-03-02 Joel Brobecker <brobecker@adacore.com>
10350
10351 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10352
cc7039d3
JB
103532015-03-02 Joel Brobecker <brobecker@adacore.com>
10354
10355 * utils.h: Remove <stdbool.h> #include.
10356 (producer_is_gcc): Change return type to "int".
10357 * utils.c (producer_is_gcc): Change return type to int.
10358 Return 1 instead of true, and 0 instead of false.
10359 Adjust function documentation accordingly.
10360
550bdf96
AA
103612015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10362
10363 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10364 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10365 present.
10366 (s390_linux_store_inferior_registers): Likewise.
10367 (s390_get_hwcap): Remove function. Embed its logic...
10368 (s390_read_description): ...here. Yield a target description with
10369 vector registers if applicable.
10370 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10371 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10372 "features/s390x-tevx-linux64.c".
10373 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10374 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10375 for "GNU/Linux-specific registers".
10376 (s390_dwarf_reg_r0l): New enum value.
10377 (s390_dwarf_reg_to_regnum): Support vector registers.
10378 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10379 of GPR lower halves.
10380 (regnum_is_vxr_full): New function.
10381 (s390_register_name): New function.
10382 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10383 f0-f15 and v0l-v15l.
10384 (s390_pseudo_register_type): Likewise.
10385 (s390_pseudo_register_read): Likewise.
10386 (s390_pseudo_register_write): Likewise.
10387 (s390_value_from_register): Account for the fact that values are
10388 placed left-justified in vector registers.
10389 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10390 the vector reggroup and omit them from the general reggroup.
10391 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10392 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10393 (s390_iterate_over_regset_sections): Add iterations for the two
10394 new vector regsets.
10395 (s390_core_read_description): Yield a target description with
10396 vector registers if applicable.
10397 (s390_gdbarch_init): Handle target descriptions with vector
10398 registers. Add "register_name" gdbarch method.
10399 (_initialize_s390_tdep): Call new tdesc initialization functions.
10400 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10401 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10402 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10403 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10404 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10405 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10406 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10407 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10408 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10409 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10410 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10411 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10412 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10413 (S390_NUM_REGS): Adjust value.
10414 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10415 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10416 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10417 * NEWS: Announce S/390 vector register support.
10418
446899e4
AA
104192015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10420
10421 * features/s390-tevx-linux64.xml: New file.
10422 * features/s390-vx-linux64.xml: New file.
10423 * features/s390-vx.xml: New file.
10424 * features/s390x-tevx-linux64.xml: New file.
10425 * features/s390x-vx-linux64.xml: New file.
10426 * features/Makefile (WHICH): Add s390-vx-linux64,
10427 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10428 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10429 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10430 macros.
10431 * features/s390-tevx-linux64.c: New generated file.
10432 * features/s390-vx-linux64.c: Likewise.
10433 * features/s390x-tevx-linux64.c: Likewise.
10434 * features/s390x-vx-linux64.c: Likewise.
10435 * regformats/s390-tevx-linux64.dat: Likewise.
10436 * regformats/s390-vx-linux64.dat: Likewise.
10437 * regformats/s390x-tevx-linux64.dat: Likewise.
10438 * regformats/s390x-vx-linux64.dat: Likewise.
10439
b7236fbe
DE
104402015-02-28 Doug Evans <xdje42@gmail.com>
10441
10442 * symtab.h (struct symtab) <next>: Fix comment.
10443
02e62830
SM
104442015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10445
10446 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10447 python_GdbMethods.
10448
bf36a1e7
PA
104492015-02-27 Pedro Alves <palves@redhat.com>
10450
10451 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10452
ad6aff7d
PA
104532015-02-27 Pedro Alves <palves@redhat.com>
10454
10455 * common/common-exceptions.h (exception_none): Declare.
10456 * common/common-exceptions.c (exception_none): Moved from
10457 exceptions.c.
10458 (exceptions_state_mc_init): Use exception_none.
10459 * exceptions.c (exception_none): Move to
10460 common/common-exceptions.c.
10461 * exceptions.h (exception_none): Move to
10462 common/common-exceptions.h.
10463
97c18565
PA
104642015-02-27 Pedro Alves <palves@redhat.com>
10465
10466 * main.c (catch_command_errors, catch_command_errors_const):
10467 Remove 'mask' argument. Adjust.
10468 (captured_main): Adjust callers.
10469
e992c591
PA
104702015-02-27 Pedro Alves <palves@redhat.com>
10471
10472 * python/python-internal.h: Include "extension-priv.h".
10473
64166036
PA
104742015-02-27 Pedro Alves <palves@redhat.com>
10475
10476 * breakpoint.h (enum print_stop_action): Move further up in the
10477 file.
10478
8a526fa6
PA
104792015-02-27 Pedro Alves <palves@redhat.com>
10480
10481 * gdbarch.sh: Include regcache.h.
10482 * gdbarch.h: Regenerate.
10483
0fa9c223
PA
104842015-02-27 Pedro Alves <palves@redhat.com>
10485
10486 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10487 Remove duplicate const.
10488 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10489 duplicate const.
10490
7cf99fb1
PA
104912015-02-27 Pedro Alves <palves@redhat.com>
10492
10493 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10494 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10495 * features/feature_to_c.sh: Tag the generated xml_builtin array
10496 with extern const in C++ mode.
10497
1424c16e
TT
104982015-02-27 Tom Tromey <tromey@redhat.com>
10499
10500 * minidebug.c (struct lzma_stream): Rename to ...
10501 (struct gdb_lzma_stream): ... this.
10502 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10503
10367c7c
PA
105042015-02-27 Pedro Alves <palves@redhat.com>
10505
10506 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10507 function.
10508 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10509 (mi_cmd_stack_list_variables): Use it.
10510
4180215b
PA
105112015-02-27 Pedro Alves <palves@redhat.com>
10512
10513 * x86-linux-nat.c (u_debugreg_offset): New function.
10514 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10515
2f56f7c3
PA
105162015-02-27 Pedro Alves <palves@redhat.com>
10517
10518 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10519 declaration.
10520 Include break-common.h.
10521
570dc176
TT
105222015-02-27 Tom Tromey <tromey@redhat.com>
10523 Pedro Alves <palves@redhat.com>
10524
10525 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10526 local used to iterate over enums.
10527 * completer.c (signal_completer): Likewise.
10528 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10529 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10530 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10531 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10532 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10533 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10534 * tui-wingeneral.c (tui_refresh_all): Likewise.
10535
68c14faa
PA
105362015-02-27 Pedro Alves <palves@redhat.com>
10537
10538 * target.h: Include "infrun.h".
10539
749bab01
PA
105402015-02-27 Pedro Alves <palves@redhat.com>
10541
10542 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10543
3c14e5a3
PA
105442015-02-27 Pedro Alves <palves@redhat.com>
10545
10546 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10547 (IPA_SYM): Use it.
10548 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10549
56000a98
PA
105502015-02-27 Pedro Alves <palves@redhat.com>
10551
10552 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10553 cli_mld_erase_entire_line, and make it extern "C".
10554 * common/common-defs.h (EXTERN_C): New.
10555 * completer.c (_rl_completion_prefix_display_length)
10556 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10557 out of gdb_display_match_list_1.
10558 (_rl_qsort_string_compare): Move declaration out of
10559 gdb_display_match_list_1, and make it extern "C".
10560 * defs.h (re_comp): Use EXTERN_C.
10561 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10562 and make it extern "C".
10563 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10564 and make it extern "C".
10565 (main): Move declaration out of maintenance_set_profile_cmd.
10566 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10567 EXTERN_C.
10568
bcabf420
PA
105692015-02-27 Pedro Alves <palves@redhat.com>
10570
10571 * python/python.c (GdbMethods): Rename to ...
10572 (python_GdbMethods): ... this and make extern.
10573 (GdbModuleDef): Rename to ...
10574 (python_GdbModuleDef): ... this and make extern.
10575
928dbe07
PA
105762015-02-27 Pedro Alves <palves@redhat.com>
10577
10578 * record-btrace.c (set_record_btrace_cmdlist)
10579 (show_record_btrace_cmdlist): Remove redefinitions.
10580
52059ffd
TT
105812015-02-27 Tom Tromey <tromey@redhat.com>
10582 Pedro Alves <palves@redhat.com>
10583
10584 * dwarf2-frame.c (enum cfa_how_kind, struct
10585 dwarf2_frame_state_reg_info): Move out of struct
10586 dwarf2_frame_state.
10587 * dwarf2read.c (struct tu_stats): Move out of struct
10588 dwarf2_per_objfile.
10589 (struct file_entry): Move out of struct line_header.
10590 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10591 typedef_field_list): Move out of struct field_info.
10592 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10593 Move out of struct dynamic_prop.
10594 (union type_owner, union field_location, struct field, struct
10595 range_bounds, union type_specific): Move out of struct main_type.
10596 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10597 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10598 (struct call_site_target, union call_site_parameter_u, struct
10599 call_site_parameter): Move out of struct call_site.
10600 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10601 m32c_prologue.
10602 (enum srcdest_kind): Move out of struct srcdest.
10603 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10604 * prologue-value.h (enum prologue_value_kind): Move out of struct
10605 prologue_value.
10606 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10607 gdbarch_tdep.
10608 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10609 out of struct field_info.
10610 * symfile.h (struct other_sections): Move out of struct
10611 section_addr_info.
10612 * symtab.c (struct symbol_cache_slot): Move out struct
10613 block_symbol_cache.
10614 * target-descriptions.c (enum tdesc_type_kind): Move out of
10615 typedef struct tdesc_type.
10616 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10617 struct tui_line_or_address.
10618 * value.c (enum internalvar_kind, union internalvar_data): Move
10619 out of struct internalvar.
10620 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10621 gdbarch_tdep.
10622
fe978cb0
PA
106232015-02-27 Tom Tromey <tromey@redhat.com>
10624 Pedro Alves <palves@redhat.com>
10625
10626 Rename symbols whose names are reserved C++ keywords throughout.
10627
3bc3d82a
PA
106282015-02-27 Pedro Alves <palves@redhat.com>
10629
10630 * Makefile.in (COMPILER): New, get it from autoconf.
10631 (COMPILE.pre, CC_LD): Use COMPILER.
10632 (CXX): Get from autoconf instead.
10633 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10634 * acinclude.m4: Include build-with-cxx.m4.
10635 * build-with-cxx.m4: New file.
10636 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10637 Disable -Werror by default if building in C++ mode.
10638 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10639 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10640 Run supported-warning-flags tests with the C++ compiler.
10641 Save/restore CXXFLAGS too.
10642 * configure: Regenerate.
10643
07697489
PA
106442015-02-27 Pedro Alves <palves@redhat.com>
10645
10646 * libiberty.m4: New file.
10647 * acinclude.m4: Include libiberty.m4.
10648 * configure.ac: Call libiberty_INIT.
10649 * config.in, configure: Regenerate.
10650
60abeae4
AA
106512015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10652
10653 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10654 31-bit targets, but 64-bit targets as well.
10655 (s390_gnu_triplet_regexp): New function.
10656 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10657 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10658 method.
10659
f44466fb 106602015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10661
10662 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10663 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10664 from CONTEXT_DEBUGGER.
10665
0def5aaa
DE
106662015-02-26 Doug Evans <dje@google.com>
10667
10668 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10669 CHECK_TYPEDEF.
10670 (set_type_vptr_fieldno): Ditto.
10671 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10672 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10673
77b64a49
PA
106742015-02-26 Pedro Alves <palves@redhat.com>
10675
10676 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10677 * complaints.c (vcomplaint): Pass argument FMT directly to
10678 printf-like functions instead of complaint->fmt.
10679 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10680 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10681 * compile/compile-loc2c.c (pushf, unary, binary): Add
10682 ATTRIBUTE_PRINTF.
10683 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10684 to pushf.
10685 (BINARY): Pass string literal as format string to 'binary'.
10686 * compile/compile-object-load.c (link_callbacks_einfo): Add
10687 ATTRIBUTE_PRINTF.
10688 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10689
532f44ed
PA
106902015-02-26 Pedro Alves <palves@redhat.com>
10691
10692 * windows-termcap.c: Rename to ...
10693 * stub-termcap.c: ... this. Adjust header line.
10694 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10695 windows-termcap.c.
10696 * configure: Regenerate.
10697 * configure.ac: Refer to stub-termcap.o instead of
10698 windows-termcap.o.
10699 * gdb_curses.h: Mention stub-termcap.c instead of
10700 windows-termcap.c.
10701
081a1c2c
JK
107022015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10703
10704 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10705 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10706
2f41223f
AT
107072015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10708
10709 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10710
80c57053
JK
107112015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10712
10713 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10714 bfd_canonicalize_symtab.
10715
cf424aef
JB
107162015-02-25 John Baldwin <jhb@FreeBSD.org>
10717
10718 * amd64fbsd-nat.c: Include sys/user.h.
10719 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10720 instead of KERN_PS_STRINGS to locate the signal trampoline.
10721 * i386fbsd-nat.c: Include sys/user.h.
10722 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10723 instead of KERN_PS_STRINGS to locate the signal trampoline.
10724 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10725 (amd64fbsd_sigtramp_p): New.
10726 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10727 longer set default values.
10728 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10729 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10730 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10731 (i386fbsd_freebsd4_sigtramp_start)
10732 (i386fbsd_freebsd4_sigtramp_middle)
10733 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10734 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10735 (i386fbsd_sigtramp_p): New.
10736 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10737 longer set default values.
10738 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10739
c5cb74ee
JB
107402015-02-25 John Baldwin <jhb@freebsd.org>
10741
10742 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10743 get_frame_register instead of frame_unwind_register_unsigned.
10744
17487d85
JK
107452015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10746
10747 PR build/18033
10748 * compile/compile-c-support.c (c_compute_program): Change // comment.
10749 * compile/compile-object-load.c (setup_sections): Change // comment.
10750
9357a9e6
JB
107512015-02-26 Joel Brobecker <brobecker@adacore.com>
10752
10753 PR build/18033:
10754 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10755
1f10ba14
PA
107562015-02-23 Pedro Alves <palves@redhat.com>
10757
10758 * remote.c (skip_to_semicolon): New function.
10759 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10760 special case the stop reasons that look like hex numbers
10761 upfront. Instead handle real register numbers after matching
10762 all the known stop reasons.
10763
96553a0c
DE
107642015-02-21 Doug Evans <dje@google.com>
10765
10766 PR c++/17976, symtab/17821
10767 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10768 is_in_anonymous. All callers updated.
10769 (find_symbol_in_baseclass): Ditto.
10770 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10771 for symbols in an anonymous namespace.
10772 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10773 DW_AT_name directly.
10774 (dwarf2_name): Convert missing namespace name to
10775 CP_ANONYMOUS_NAMESPACE_STR.
10776
2db9a427
PA
107772015-02-20 Pedro Alves <palves@redhat.com>
10778
10779 * linux-nat.c (linux_handle_extended_wait): Call
10780 thread_db_notice_clone whenever a new clone LWP is detected.
10781 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10782 functions.
10783 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10784 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10785 (linux_unstop_all_lwps): Declare.
10786 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10787 (thread_get_info_callback): Delete.
10788 (thread_from_lwp): Use td_thr_get_info and record_thread.
10789 (thread_db_attach_lwp): Delete.
10790 (thread_db_notice_clone): New function.
10791 (try_thread_db_load_1): If /proc is mounted and shows the
10792 process'es task list, walk over all LWPs and call thread_from_lwp
10793 instead of relying on td_ta_thr_iter.
10794 (attach_thread): Don't call check_thread_signals here. Split the
10795 tail part of the function (which adds the thread to the core GDB
10796 thread list) to ...
10797 (record_thread): ... this function. Call check_thread_signals
10798 here.
10799 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10800 call thread_from_lwp.
10801 (thread_db_update_thread_list): Rename to ...
10802 (thread_db_update_thread_list_org): ... this.
10803 (thread_db_update_thread_list): New function.
10804 (thread_db_find_thread_from_tid): Delete.
10805 (thread_db_get_ada_task_ptid): Simplify.
10806 * nat/linux-procfs.c: Include <sys/stat.h>.
10807 (linux_proc_task_list_dir_exists): New function.
10808 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10809
3b27ef47
PA
108102015-02-20 Pedro Alves <palves@redhat.com>
10811
10812 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10813 main LWP. Handle the case of waitpid returning 0 if we're already
10814 attached to the LWP. Don't set the LWP's last_resume_kind to
10815 resume_stop if we already knew about the LWP.
10816 (linux_nat_filter_event): Add debug logs.
10817
1cc28231
PA
108182015-02-20 Pedro Alves <palves@redhat.com>
10819
10820 * target.h (forward_target_decr_pc_after_break): Delete
10821 declaration.
10822
5c5019c2
PA
108232015-02-20 Pedro Alves <palves@redhat.com>
10824
10825 PR threads/18006
10826 * linux-thread-db.c (thread_get_info_callback): Return early if
10827 the thread's lwp id is -1.
10828
f3978e91
JB
108292015-02-20 Joel Brobecker <brobecker@adacore.com>
10830
10831 GDB 7.9 released.
10832
ffdf88ec
SE
108332015-02-19 Steve Ellcey <sellcey@imgtec.com>
10834
10835 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10836 (dtrace_get_probes) Change type of variable 'dof'.
10837
c9587f88
AT
108382015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10839
10840 PR breakpoints/16812
10841 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10842 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10843 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10844
53cf2ee0
DT
108452015-02-19 David Taylor <dtaylor@emc.com>
10846
10847 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10848
acfe0940
PP
108492015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10850
10851 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10852 function.
10853 (tui_putc): Don't call tui_handle_resize_during_io.
10854 (tui_getc): Likewise.
10855 (tui_mld_getc): Likewise.
10856 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10857 (tui_sigwinch_token): New static variable.
10858 (tui_initialize_win): Adjust documentation. Set
10859 tui_sigwinch_token.
10860 (tui_async_resize_screen): New asynchronous callback.
10861 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10862 invoke tui_async_resize_screen.
10863
f6a88844
JM
108642015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10865
10866 * configure: Regenerated.
10867 * configure.ac: Use GDB_AC_TRANSFORM.
10868 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10869 * acinclude.m4: sinclude transform.m4.
10870 * transform.m4: New file.
10871 (GDB_AC_TRANSFORM): New macro.
10872
b05e3b0d
JM
108732015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10874
10875 * NEWS: Announce the support for DTrace SDT probes.
10876
c3e3045e
JM
108772015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10878
10879 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10880 (amd64_dtrace_parse_probe_argument): New function.
10881 (amd64_dtrace_probe_is_enabled): Likewise.
10882 (amd64_dtrace_enable_probe): Likewise.
10883 (amd64_dtrace_disable_probe): Likewise.
10884 (amd64_linux_init_abi): Register the
10885 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10886 `gdbarch_dtrace_disable_probe' and
10887 `gdbarch_dtrace_probe_is_enabled' hooks.
10888 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10889 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10890 (amd64_dtrace_enable_probe_sequence): Likewise.
10891 (amd64_dtrace_disable_probe_sequence): Likewise.
10892
d4777acb
JM
108932015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10894
10895 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10896 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10897 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10898 handle ELF files.
10899 * Makefile.in (SFILES): dtrace-probe.c added.
10900 * configure: Regenerate.
10901 * dtrace-probe.c: New file.
10902 (SHT_SUNW_dof): New constant.
10903 (dtrace_probe_type): New enum.
10904 (dtrace_probe_arg): New struct.
10905 (dtrace_probe_arg_s): New typedef.
10906 (struct dtrace_probe_enabler): New struct.
10907 (dtrace_probe_enabler_s): New typedef.
10908 (dtrace_probe): New struct.
10909 (dtrace_probe_is_linespec): New function.
10910 (dtrace_dof_sect_type): New enum.
10911 (dtrace_dof_dofh_ident): Likewise.
10912 (dtrace_dof_encoding): Likewise.
10913 (DTRACE_DOF_ENCODE_LSB): Likewise.
10914 (DTRACE_DOF_ENCODE_MSB): Likewise.
10915 (dtrace_dof_hdr): New struct.
10916 (dtrace_dof_sect): Likewise.
10917 (dtrace_dof_provider): Likewise.
10918 (dtrace_dof_probe): Likewise.
10919 (DOF_UINT): New macro.
10920 (DTRACE_DOF_PTR): Likewise.
10921 (DTRACE_DOF_SECT): Likewise.
10922 (dtrace_process_dof_probe): New function.
10923 (dtrace_process_dof): Likewise.
10924 (dtrace_build_arg_exprs): Likewise.
10925 (dtrace_get_arg): Likewise.
10926 (dtrace_get_probes): Likewise.
10927 (dtrace_get_probe_argument_count): Likewise.
10928 (dtrace_can_evaluate_probe_arguments): Likewise.
10929 (dtrace_evaluate_probe_argument): Likewise.
10930 (dtrace_compile_to_ax): Likewise.
10931 (dtrace_probe_destroy): Likewise.
10932 (dtrace_gen_info_probes_table_header): Likewise.
10933 (dtrace_gen_info_probes_table_values): Likewise.
10934 (dtrace_probe_is_enabled): Likewise.
10935 (dtrace_probe_ops): New variable.
10936 (info_probes_dtrace_command): New function.
10937 (_initialize_dtrace_probe): Likewise.
10938 (dtrace_type_name): Likewise.
10939
8b367e17
JM
109402015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10941
10942 * gdbarch.sh (dtrace_parse_probe_argument): New.
10943 (dtrace_probe_is_enabled): Likewise.
10944 (dtrace_enable_probe): Likewise.
10945 (dtrace_disable_probe): Likewise.
10946 * gdbarch.c: Regenerate.
10947 * gdbarch.h: Regenerate.
10948
9aca2ff8
JM
109492015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10950
10951 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10952 stap_probe_ops for `enable_probe' and `disable_probe'.
10953 * probe.c (enable_probes_command): New function.
10954 (disable_probes_command): Likewise.
10955 (_initialize_probe): Define the cli commands `enable probe' and
10956 `disable probe'.
10957 (parse_probe_linespec): New function.
10958 (info_probes_for_ops): Use parse_probe_linespec.
10959 * probe.h (probe_ops): New hooks `enable_probe' and
10960 `disable_probe'.
10961
03e98035
JM
109622015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10963
10964 * probe.c (compute_probe_arg): Moved from stap-probe.c
10965 (compile_probe_arg): Likewise.
10966 (probe_funcs): Likewise.
10967 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10968 (compile_probe_arg): Likewise.
10969 (probe_funcs): Likewise.
10970
6f9b8491
JM
109712015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10972
10973 * probe.c (print_ui_out_not_applicables): New function.
10974 (exists_probe_with_pops): Likewise.
10975 (info_probes_for_ops): Do not include column headers for probe
10976 types for which no probe has been actually found on any object.
10977 Also invoke `print_ui_out_not_applicables' in order to match the
10978 column rows with the header when probes of several types are
10979 listed.
10980 Print the "Type" column.
10981 * probe.h (probe_ops): Added a new probe operation `type_name'.
10982 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10983 (stap_type_name): New function.
10984
69efdff1
PP
109852015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10986
10987 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10988 (key_is_command_char): Delete.
10989
f8e5e23e
PA
109902015-02-17 Pedro Alves <palves@redhat.com>
10991
10992 * tui/tui.c (tui_enable): Resize windows before anything
10993 might show a window.
10994
9f2e0721
MO
109952015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10996
10997 PR gdb/17984
10998 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10999 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11000 call.
11001 * aarch64-tdep.h (tdesc_aarch64): Declare.
11002
171e6b1c
MW
110032015-02-12 Mark Wielaard <mjw@redhat.com>
11004
11005 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11006
d5ff0482
DE
110072015-02-13 Doug Evans <dje@google.com>
11008
11009 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11010 anonymous_namespace to is_in_anonymous for consistency with the rest
11011 of the file.
11012 (cp_lookup_bare_symbol): Fix typo in comment.
11013 (cp_search_static_and_baseclasses): Ditto.
11014 (search_symbol_list): Use vertical space in comment better.
11015 (reset_directive_searched): Ditto. Fix typo.
11016 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11017
9f04ac5f
YQ
110182015-02-13 Yao Qi <yao.qi@arm.com>
11019
11020 * MAINTAINERS: Update my email address.
11021
013d0319
DE
110222015-02-12 Doug Evans <dje@google.com>
11023
b615dd20 11024 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11025
9a7e538e
DE
110262015-02-12 Doug Evans <dje@google.com>
11027
11028 * completer.c (complete_line): Remove incorrect comment.
11029
e1fcd575
JK
110302015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11031
11032 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11033 (py_print_frame): Use RETURN_MASK_ERROR.
11034
b99bf4e3
JK
110352015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11036
11037 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11038 function comment. Wrap all function that can throw in cleanups.
11039 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11040 cleanups.
11041
800eb1ce
JK
110422015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11043
11044 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11045 Remove the error label.
11046
34019068
JK
110472015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11048
11049 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11050 with goto first, indent the former else codepath left. Put variable
11051 'elided' to a new inner block.
11052
8d4a54e2
JK
110532015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11054
11055 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11056
18ad82c1
PA
110572015-02-11 Pedro Alves <palves@redhat.com>
11058
11059 * xcoffread.c (within_function): Delete.
11060
e36122e9
TT
110612015-02-11 Tom Tromey <tromey@redhat.com>
11062 Pedro Alves <palves@redhat.com>
11063
11064 * breakpoint.c (base_breakpoint_ops): Delete.
11065 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11066 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11067 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11068 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11069 * python/py-arch.c (arch_object_type): Make extern.
11070 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11071 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11072 * python/py-cmd.c (cmdpy_object_type): Make extern.
11073 * python/py-continueevent.c (continue_event_object_type)
11074 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11075 parameter. Update all callers.
11076 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11077 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11078 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11079 * python/py-function.c (fnpy_object_type): Make extern.
11080 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11081 * python/py-infevents.c (call_pre_event_object_type)
11082 (inferior_call_post_event_object_type).
11083 (memory_changed_event_object_type): Make extern.
11084 * python/py-infthread.c (thread_object_type): Make extern.
11085 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11086 * python/py-linetable.c (linetable_entry_object_type)
11087 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11088 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11089 (clear_objfiles_event_object_type): Make extern.
11090 * python/py-objfile.c (objfile_object_type): Make extern.
11091 * python/py-param.c (parmpy_object_type): Make extern.
11092 * python/py-progspace.c (pspace_object_type): Make extern.
11093 * python/py-signalevent.c (signal_event_object_type): Make extern.
11094 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11095 * python/py-type.c (type_object_type, field_object_type)
11096 (type_iterator_object_type): Make extern.
11097 * python/python.c (python_extension_script_ops)
11098 (python_extension_ops): Make extern.
11099 * stap-probe.c (stap_probe_ops): Make extern.
11100
0703599a
PA
111012015-02-11 Pedro Alves <pedro@codesourcery.com>
11102
11103 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11104 because the event thread is not the current thread.
11105
eaaf76ab
DE
111062015-02-11 Doug Evans <xdje42@gmail.com>
11107
11108 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11109 been initialized yet, return NULL.
11110
e7d52ed3
DE
111112015-02-11 Doug Evans <dje@google.com>
11112
11113 * symfile.h (new_symfile_objfile): Delete.
11114 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11115 All callers updated.
11116
fc6b1256
PP
111172015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11118
11119 * tui/tui-io.c (tui_handle_resize_during_io): Call
11120 tui_update_gdb_sizes() after resizing the screen.
11121 * tui/tui.c (tui_enable): Resize the terminal before
11122 calling tui_update_gdb_sizes().
11123
d9080678
PP
111242015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11125
11126 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11127 line before printing a newline.
11128
9f615e3a
MW
111292015-02-11 Mark Wielaard <mjw@redhat.com>
11130
11131 * utils.c (producer_is_gcc): Return true or false.
11132
d9080678 111332015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11134
11135 * utils.h (producer_is_gcc): Change return type to bool. Add major
11136 argument.
11137 * utils.c (producer_is_gcc): Likewise.
11138 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11139 * dwarf2read.c (check_producer): Likewise.
11140
b052c4fb
PA
111412015-02-10 Pedro Alves <palves@redhat.com>
11142
11143 * infrun.c (displaced_step_fixup): Switch to the event thread
11144 before calling gdbarch_displaced_step_fixup.
11145
3ac240d4
AT
111462015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11147
11148 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11149
c1cc6152
SM
111502015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11151
11152 * ada-varobj.c (ada_name_of_child): Constify parent.
11153 (ada_path_expr_of_child): Same.
11154 (ada_value_of_child): Same.
11155 (ada_type_of_child): Same.
11156 * c-varobj.c (c_is_path_expr_parent): Same.
11157 (c_describe_child): Same.
11158 (c_name_of_child): Same.
11159 (c_value_of_child): Same.
11160 (c_type_of_child): Same.
11161 (cplus_number_of_children): Same.
11162 (cplus_describe_child): Constify var.
11163 (cplus_name_of_child): Constify parent.
11164 (cplus_value_of_child): Same.
11165 (cplus_type_of_child): Same.
11166 * jv-varobj.c (java_name_of_child): Same.
11167 (java_value_of_child): Same.
11168 (java_type_of_child): Same.
11169 * varobj.c (value_of_child): Same.
11170 (varobj_default_is_path_expr_parent): Constify var, parent and return
11171 value.
11172 (varobj_get_path_expr): Constify var, modify path_expr through
11173 mutable_var.
11174 (install_new_value): Constify parent.
11175 (value_of_child): Constify parent.
11176 * varobj.h (struct varobj): Constify parent.
11177 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11178 type_of_child.
11179 (varobj_get_path_expr): Constify var.
11180 (varobj_get_path_expr_parent): Constify var and return value.
11181
c1ee9414
LM
111822015-02-10 Luis Machado <lgustavo@codesourcery.com>
11183
11184 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11185 (arm_prologue_this_id): Move PC and SP limit checks to
11186 arm_prologue_unwind_stop_reason.
11187 (arm_prologue_unwind) <stop_reason> : Set to
11188 arm_prologue_unwind_stop_reason.
11189
f7de9aab
MW
111902015-02-09 Mark Wielaard <mjw@redhat.com>
11191
11192 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11193 DW_LANG_Fortran08 as language_fortran.
11194
0b24eb2d
SDJ
111952015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11196
11197 PR remote/17946
11198 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11199 of pointer against char.
11200
a2c2acaf
MW
112012015-02-09 Mark Wielaard <mjw@redhat.com>
11202
11203 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11204 (c_type_print_modifier): Likewise.
11205 * dwarf2read.c (read_tag_atomic_type): New function.
11206 (read_type_die_1): Handle DW_TAG_atomic_type.
11207 * gdbtypes.c (make_atomic_type): New function.
11208 (recursive_dump_type): Handle TYPE_ATOMIC.
11209 * gdbtypes.h (enum type_flag_values): Renumber.
11210 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11211 (TYPE_ATOMIC): New macro.
11212 (make_atomic_type): Declare.
11213
31fd9caa
MM
112142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11215
11216 * btrace.c (ftrace_find_call): Skip gaps.
11217 (ftrace_new_function): Initialize level.
11218 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11219 (ftrace_new_switch): Update
11220 level computation.
11221 (ftrace_new_gap): New.
11222 (ftrace_update_function): Create new function after gap.
11223 (btrace_compute_ftrace_bts): Create gap on error.
11224 (btrace_stitch_bts): Update parameters. Clear trace if it
11225 becomes empty.
11226 (btrace_stitch_trace): Update parameters. Update callers.
11227 (btrace_clear): Reset the number of gaps.
11228 (btrace_insn_get): Return NULL if the iterator points to a gap.
11229 (btrace_insn_number): Return zero if the iterator points to a gap.
11230 (btrace_insn_end): Allow gaps at the end.
11231 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11232 (btrace_find_insn_by_number): Assert that the found iterator does
11233 not point to a gap.
11234 (btrace_call_next, btrace_call_prev): Assert that the last function
11235 is not a gap.
11236 * btrace.h (btrace_bts_error): New.
11237 (btrace_function): Update comment.
11238 (btrace_function) <insn, insn_offset, number>: Update comment.
11239 (btrace_function) <errcode>: New.
11240 (btrace_thread_info) <ngaps>: New.
11241 (btrace_thread_info) <replay>: Update comment.
11242 (btrace_insn_get): Update comment.
11243 * record-btrace.c (btrace_ui_out_decode_error): New.
11244 (record_btrace_info): Print number of gaps.
11245 (btrace_insn_history, btrace_call_history): Call
11246 btrace_ui_out_decode_error for gaps.
11247 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11248
afb778a2
MM
112492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11250
11251 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11252 * nat/linux-btrace.c: (btrace_this_cpu): New.
11253 (cpu_supports_bts): Call btrace_this_cpu.
11254 (intel_supports_bts): Add cpu parameter.
11255
7d5c24b3
MM
112562015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11257
11258 * btrace.h (btrace_insn_class): New.
11259 (btrace_insn) <size, iclass>: New.
11260 * btrace.c (ftrace_find_call): Update parameters. Update users.
11261 Use instruction classification.
11262 (ftrace_new_return): Update parameters. Update users.
11263 (ftrace_update_function): Update parameters. Update users. Use
11264 instruction classification.
11265 (ftrace_update_insns): Update parameters. Update users.
11266 (ftrace_classify_insn): New.
11267 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11268 TRY_CATCH around call to gdb_insn_length.
11269
76235df1
MM
112702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11271
11272 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11273 Update parameters. Update users.
11274
d33501a5
MM
112752015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11276
11277 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11278 (btrace_conf_bts_attributes): New.
11279 (btrace_conf_children): Add attributes.
11280 * common/btrace-common.h (btrace_config_bts): New.
11281 (btrace_config)<bts>: New.
11282 (btrace_config): Update comment.
11283 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11284 Use config.
11285 * features/btrace-conf.dtd: Increment version. Add size
11286 attribute to bts element.
11287 * record-btrace.c (set_record_btrace_bts_cmdlist,
11288 show_record_btrace_bts_cmdlist): New.
11289 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11290 record_btrace_print_conf, cmd_set_record_btrace_bts,
11291 cmd_show_record_btrace_bts): New.
11292 (record_btrace_info): Call record_btrace_print_conf.
11293 (_initialize_record_btrace): Add commands.
11294 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11295 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11296 (btrace_sync_conf): Synchronize bts size.
11297 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11298 * NEWS: Announce new commands and new packets.
11299
f4abbc16
MM
113002015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11301
11302 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11303 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11304 (x86_linux_btrace_conf): New.
11305 (x86_linux_create_target): Initialize to_btrace_conf.
11306 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11307 Check format. Split into this and ...
11308 (linux_enable_bts): ... this.
11309 (linux_btrace_conf): New.
11310 (perf_event_skip_record): Renamed into ...
11311 (perf_event_skip_bts_record): ... this. Updated users.
11312 (linux_disable_btrace): Split into this and ...
11313 (linux_disable_bts): ... this.
11314 (linux_read_btrace): Check format.
11315 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11316 (linux_btrace_conf): New.
11317 (btrace_target_info)<ptid>: Moved.
11318 (btrace_target_info)<conf>: New.
11319 (btrace_target_info): Split into this and ...
11320 (btrace_tinfo_bts): ... this. Updated users.
11321 * btrace.c (btrace_enable): Update parameters.
11322 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11323 (btrace_conf_children, btrace_conf_attributes)
11324 (btrace_conf_elements): New.
11325 * btrace.h (btrace_enable): Update parameters.
11326 (btrace_conf, parse_xml_btrace_conf): New.
11327 * common/btrace-common.h (btrace_config): New.
11328 * feature/btrace-conf.dtd: New.
11329 * record-btrace.c (record_btrace_conf): New.
11330 (record_btrace_cmdlist): New.
11331 (record_btrace_enable_warn, record_btrace_open): Pass
11332 &record_btrace_conf.
11333 (record_btrace_info): Print recording format.
11334 (cmd_record_btrace_bts_start): New.
11335 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11336 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11337 Add "record bts" alias command.
11338 * remote.c (remote_state)<btrace_config>: New.
11339 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11340 (remote_protocol_features): Add qXfer:btrace-conf:read.
11341 (remote_open_1): Call remote_btrace_reset.
11342 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11343 (btrace_target_info)<conf>: New.
11344 (btrace_sync_conf, btrace_read_config): New.
11345 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11346 btrace_read_conf.
11347 (remote_btrace_conf): New.
11348 (init_remote_ops): Initialize to_btrace_conf.
11349 (_initialize_remote): Add qXfer:btrace-conf packet.
11350 * target.c (target_enable_btrace): Update parameters.
11351 (target_btrace_conf): New.
11352 * target.h (target_enable_btrace): Update parameters.
11353 (target_btrace_conf): New.
11354 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11355 (target_ops)<to_enable_btrace>: Update parameters and comment.
11356 (target_ops)<to_btrace_conf>: New.
11357 * target-delegates: Regenerate.
11358 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11359 (target_debug_print_const_struct_btrace_target_info_p): New.
11360 * NEWS: Announce new command and new packet.
11361
aadf7753
MM
113622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11363
11364 * nat/linux-btrace.h (perf_event_buffer): New.
11365 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11366 <bts>: ... this.
11367 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11368 (perf_event_buffer_size, perf_event_buffer_begin)
11369 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11370 Updated users.
11371 (perf_event_new_data): New.
11372
043c3577
MM
113732015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11374
11375 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11376 * record-btrace.c (record_btrace_open): Remove call to
11377 target_supports_btrace.
11378 * remote.c (remote_supports_btrace): Update parameters.
11379 * target.c (target_supports_btrace): Update parameters.
11380 * target.h (to_supports_btrace, target_supports_btrace): Update
11381 parameters.
11382 * target-delegates.c: Regenerate.
11383 * target-debug.h (target_debug_print_enum_btrace_format): New.
11384 * nat/linux-btrace.c
11385 (kernel_supports_btrace): Rename into ...
11386 (kernel_supports_bts): ... this. Update users. Update warning text.
11387 (intel_supports_btrace): Rename into ...
11388 (intel_supports_bts): ... this. Update users.
11389 (cpu_supports_btrace): Rename into ...
11390 (cpu_supports_bts): ... this. Update users.
11391 (linux_supports_btrace): Update parameters. Split into this and ...
11392 (linux_supports_bts): ... this.
11393 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11394
734b0e4b
MM
113952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11396
11397 * Makefile.in (SFILES): Add common/btrace-common.c.
11398 (COMMON_OBS): Add common/btrace-common.o.
11399 (btrace-common.o): Add build rules.
11400 * btrace.c (parse_xml_btrace): Update parameters.
11401 (parse_xml_btrace_block): Set format field.
11402 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11403 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11404 (btrace_compute_ftrace): Split into this and...
11405 (btrace_compute_ftrace_bts): ...this.
11406 (btrace_stitch_trace): Split into this and...
11407 (btrace_stitch_bts): ...this.
11408 * btrace.h (parse_xml_btrace): Update parameters.
11409 (make_cleanup_btrace_data): New.
11410 * common/btrace-common.c: New.
11411 * common/btrace-common.h: Include common-defs.h.
11412 (btrace_block_s): Update comment.
11413 (btrace_format): New.
11414 (btrace_format_string): New.
11415 (btrace_data_bts): New.
11416 (btrace_data): New.
11417 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11418 * remote.c (remote_read_btrace): Update parameters.
11419 * target.c (target_read_btrace): Update parameters.
11420 * target.h (target_read_btrace): Update parameters.
11421 (target_ops)<to_read_btrace>: Update parameters.
11422 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11423 * target-delegates.c: Regenerate.
11424 * target-debug (target_debug_print_struct_btrace_data_p): New.
11425 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11426 (linux_read_bts): ...this.
11427 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11428
bd2e0e9e
DE
114292015-02-06 Doug Evans <dje@google.com>
11430
11431 * remote-m32r-sdi.c: Include symfile.h.
11432
f176c4b5
DE
114332015-02-06 Doug Evans <dje@google.com>
11434
11435 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11436 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11437 to here.
11438
d6c146e9
PA
114392015-02-06 Pedro Alves <palves@redhat.com>
11440
11441 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11442
b9d61307
SM
114432015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11444
11445 PR gdb/15678
11446 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11447 (enable_count_command): Check args for NULL value.
11448
e9fbd043
DE
114492015-02-05 Doug Evans <xdje42@gmail.com>
11450
11451 * guile/scm-frame.c: Fix spelling errors in a comment.
11452
881d5d5d
JK
114532015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11454
11455 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11456 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11457 return type.
11458
20ba1ce6
PA
114592015-02-04 Pedro Alves <palves@redhat.com>
11460
11461 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11462 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11463 returns true.
11464 (resume_stopped_resumed_lwps): Don't check whether the thread is
11465 marked as executing.
11466 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11467
f962539a
AA
114682015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11469
11470 * regset.h (struct regset): Add flags field.
11471 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11472 * corelow.c (get_core_register_section): Add warning if the size
11473 exceeds the requested size and the regset does not have the
11474 REGSET_VARIABLE_SIZE flag set.
11475 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11476 flag.
11477 * armbsd-tdep.c (armbsd_gregset): Likewise.
11478 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11479 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11480 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11481 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11482
dde9acd6
AA
114832015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11484
11485 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11486 For ".reg-xstate", explicitly specify the requested section size
11487 via X86_XSTATE_SIZE instead of just 0 on input and
11488 X86_XSTATE_MAX_SIZE on output.
11489 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11490 Likewise.
11491
1528345d
AA
114922015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11493
11494 PR corefiles/17808:
11495 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11496 function type, particularly its SIZE parameter.
11497 * gdbarch.h: Regenerate.
11498 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11499 actual against required size using ">=" instead of "==".
11500 (amd64_collect_fpregset): Likewise.
11501 * i386-tdep.c (i386_supply_gregset): Likewise.
11502 (i386_collect_gregset): Likewise.
11503 (i386_supply_fpregset): Likewise.
11504 (i386_collect_fpregset): Likewise.
11505 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11506 (mips_fill_gregset_wrapper): Likewise.
11507 (mips_supply_fpregset_wrapper): Likewise.
11508 (mips_fill_fpregset_wrapper): Likewise.
11509 (mips64_supply_gregset_wrapper): Likewise.
11510 (mips64_fill_gregset_wrapper): Likewise.
11511 (mips64_supply_fpregset_wrapper): Likewise.
11512 (mips64_fill_fpregset_wrapper): Likewise.
11513 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11514 (am33_supply_fpregset_method): Likewise.
11515 (am33_collect_gregset_method): Likewise.
11516 (am33_collect_fpregset_method): Likewise.
11517
518be979
DE
115182015-02-04 Doug Evans <dje@google.com>
11519 Pedro Alves <palves@redhat.com>
11520 Eli Zaretskii <eliz@gnu.org>
11521
11522 PR tui/17810
11523 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11524 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11525 * tui/tui-file.c: #include tui/tui-command.h.
11526 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11527 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11528 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11529
80bd5fab
PA
115302015-02-04 Pedro Alves <palves@redhat.com>
11531
11532 Fix build breakage.
11533 * event-loop.c (gdb_do_one_event): Add default switch case.
11534
a7606d80
JK
115352015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11536
11537 Filter out inferior gcc option -fpreprocessed.
11538 * compile/compile.c (filter_args): New function.
11539 (get_args): Use it.
11540
70b66289
PA
115412015-02-03 Pedro Alves <palves@redhat.com>
11542
11543 * event-loop.c: Don't declare nor define a queue type for
11544 gdb_event_p.
11545 (event_queue): Delete.
11546 (create_event, create_file_event, gdb_event_xfree)
11547 (initialize_event_loop, process_event): Delete.
11548 (gdb_do_one_event): Return as soon as one event is handled.
11549 (handle_file_event): Change prototype. Used the passed in
11550 file_handler pointer and ready_mask instead of looping over all
11551 file handlers.
11552 (gdb_wait_for_event): Update the poll/select timeouts before
11553 blocking. Run event handlers directly instead of queueing events.
11554 Return as soon as one event is handled.
11555 (struct async_event_handler_data): Delete.
11556 (invoke_async_event_handler): Delete.
11557 (check_async_event_handlers): Change return type to int. Run
11558 event handlers directly instead of queueing events. Return as
11559 soon as one event is handled.
11560 (handle_timer_event): Delete.
11561 (update_wait_timeout): New function, factored out from
11562 poll_timers.
11563 (poll_timers): Reimplement.
11564 * event-loop.h (initialize_event_loop): Delete declaration.
11565 * top.c (gdb_init): Don't call initialize_event_loop.
11566
b7d2e916
PA
115672015-02-03 Pedro Alves <palves@redhat.com>
11568
11569 * event-loop.c (clear_async_event_handler): New function.
11570 * event-loop.h (clear_async_event_handler): New declaration.
11571 * record-btrace.c (record_btrace_async): New function.
11572 (init_record_btrace_ops): Install record_btrace_async.
11573 * record-full.c (record_full_async): New function.
11574 (record_full_resume): Don't mark the async event source here.
11575 (init_record_full_ops): Install record_full_async.
11576 (record_full_core_resume): Don't mark the async event source here.
11577 (init_record_full_core_ops): Install record_full_async.
11578 * remote.c (remote_async): Mark and clear the async stop reply
11579 queue event-loop token as appropriate.
11580
d9d41e78
PA
115812015-02-03 Pedro Alves <palves@redhat.com>
11582
11583 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11584 target_is_async_p instead of target_can_async.
11585 (linux_nat_wait): Use target_is_async_p instead of
11586 target_can_async. Don't enable async here.
11587 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11588 target_is_async_p instead of target_can_async.
11589
aa3de267
SM
115902015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11591
11592 * varobj.h (lang_varobj_ops): Mention which return values need
11593 to be freed.
11594
2c811c0f
JB
115952015-02-02 Joel Brobecker <brobecker@adacore.com>
11596
11597 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11598
b1eedac9
JB
115992015-02-02 Joel Brobecker <brobecker@adacore.com>
11600
11601 PR gdb/17856:
11602 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11603 results found in the cache.
11604
66c168ae
JB
116052015-02-02 Joel Brobecker <brobecker@adacore.com>
11606
11607 PR gdb/17854:
11608 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11609 when allocating a new one.
11610
4bdc02b2
TT
116112015-02-01 Tom Tromey <tom@tromey.com>
11612
11613 * MAINTAINERS: Remove myself.
11614
ae6ae975
DE
116152015-01-31 Doug Evans <xdje42@gmail.com>
11616
11617 * dwarf2read.c (process_structure_scope): Update setting of
11618 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11619 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11620 (set_type_vptr_fieldno): New function.
11621 (internal_type_vptr_basetype): New function.
11622 (set_type_vptr_basetype): New function.
11623 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11624 TYPE_VPTR_BASETYPE.
11625 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11626 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11627 (print_cplus_stuff): ... moved here.
11628 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11629 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11630 moved to ...
11631 (struct cplus_struct_type): ... here. All uses updated.
11632 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11633 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11634 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11635 * stabsread.c (read_tilde_fields): Update setting of
11636 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11637
09e2d7c7
DE
116382015-01-31 Doug Evans <xdje42@gmail.com>
11639
11640 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11641 to self_p.
11642 (cp_print_class_member): Rename local domain to self_type.
11643 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11644 domain_type to self_type.
11645 (set_die_type) <need_gnat_info>: Handle
11646 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11647 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11648 TYPE_SPECIFIC_SELF_TYPE.
11649 * gdbtypes.c (internal_type_self_type): New function.
11650 (set_type_self_type): New function.
11651 (smash_to_memberptr_type): Rename parameter domain to self_type.
11652 Update setting of TYPE_SELF_TYPE.
11653 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11654 (smash_to_method_type): Rename parameter domain to self_type.
11655 Update setting of TYPE_SELF_TYPE.
11656 (check_stub_method): Call smash_to_method_type.
11657 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11658 (copy_type_recursive): Ditto.
11659 * gdbtypes.h (enum type_specific_kind): New value
11660 TYPE_SPECIFIC_SELF_TYPE.
11661 (struct main_type) <type_specific>: New member self_type.
11662 (struct cplus_struct_type) <fn_field.type>: Update comment.
11663 (TYPE_SELF_TYPE): Rewrite.
11664 (internal_type_self_type, set_type_self_type): Declare.
11665 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11666 self_type.
11667 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11668 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11669 TYPE_TARGET_TYPE.
11670 * stabsread.c (read_member_functions): Mark methods with
11671 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11672 TYPE_SELF_TYPE.
11673
4bfb94b8
DE
116742015-01-31 Doug Evans <xdje42@gmail.com>
11675
11676 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11677 All uses updated.
11678
5f4ce105
DE
116792015-01-31 Doug Evans <xdje42@gmail.com>
11680
11681 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11682 or unions. Return zero if union.
11683 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11684 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11685 gnuv3_get_vtable.
11686 (compute_vtable_size): Assert only passed structs.
11687 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11688
f6b3afbf
DE
116892015-01-31 Doug Evans <xdje42@gmail.com>
11690
11691 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11692 kinds.
11693
cfb069a8
GB
116942015-01-31 Gary Benson <gbenson@redhat.com>
11695 Doug Evans <dje@google.com>
11696
11697 PR cli/9007
11698 PR cli/11920
11699 PR cli/15548
11700 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11701 reached.
11702 * common/common-exceptions.h (enum errors)
11703 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11704 * completer.h (get_max_completions_reached_message): New declaration.
11705 (max_completions): Likewise.
11706 (completion_tracker_t): New typedef.
11707 (new_completion_tracker): New declaration.
11708 (make_cleanup_free_completion_tracker): Likewise.
11709 (maybe_add_completion_enum): New enum.
11710 (maybe_add_completion): New declaration.
11711 (throw_max_completions_reached_error): Likewise.
11712 * completer.c (max_completions): New global variable.
11713 (new_completion_tracker): New function.
11714 (free_completion_tracker): Likewise.
11715 (make_cleanup_free_completion_tracker): Likewise.
11716 (maybe_add_completions): Likewise.
11717 (throw_max_completions_reached_error): Likewise.
11718 (complete_line): Remove duplicates and limit result to max_completions
11719 entries.
11720 (get_max_completions_reached_message): New function.
11721 (gdb_display_match_list): Handle max_completions.
11722 (_initialize_completer): New declaration and function.
11723 * symtab.c: Include completer.h.
11724 (completion_tracker): New static variable.
11725 (completion_list_add_name): Call maybe_add_completion.
11726 (default_make_symbol_completion_list_break_on_1): Renamed from
11727 default_make_symbol_completion_list_break_on. Maintain
11728 completion_tracker across calls to completion_list_add_name.
11729 (default_make_symbol_completion_list_break_on): New function.
11730 * top.c (init_main): Set rl_completion_display_matches_hook.
11731 * tui/tui-io.c: Include completer.h.
11732 (tui_old_rl_display_matches_hook): New static global.
11733 (tui_rl_display_match_list): Notify user if max-completions reached.
11734 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11735 * NEWS (New Options): Mention set/show max-completions.
11736
e11c72c7
GB
117372015-01-31 Gary Benson <gbenson@redhat.com>
11738
11739 * symtab.c (struct add_name_data) <code>: New field.
11740 Updated comments.
11741 (add_symtab_completions): New function.
11742 (symtab_expansion_callback): Likewise.
11743 (default_make_symbol_completion_list_break_on): Set datum.code.
11744 Move minimal symbol scan before calling expand_symtabs_matching.
11745 Scan known primary symtabs for externs and statics before calling
11746 expand_symtabs_matching. Pass symtab_expansion_callback as
11747 expansion_notify argument to expand_symtabs_matching. Do not scan
11748 primary symtabs for externs and statics after calling
11749 expand_symtabs_matching.
11750
276d885b
GB
117512015-01-31 Gary Benson <gbenson@redhat.com>
11752
11753 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11754 (struct quick_symbol_functions) <expand_symtabs_matching>:
11755 New argument expansion_notify. All uses updated.
11756 (expand_symtabs_matching): New argument expansion_notify.
11757 All uses updated.
11758 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11759 Also print expansion notify.
11760 * symtab.c (expand_symtabs_matching_via_partial): Call
11761 expansion_notify whenever a partial symbol table is expanded.
11762 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11763 expansion_notify whenever a symbol table is instantiated.
11764
82083d6d
DE
117652015-01-31 Doug Evans <xdje42@gmail.com>
11766
11767 * cli-out.c: #include completer.h, readline/readline.h.
11768 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11769 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11770 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11771 * cli-out.h (cli_display_match_list): Declare.
11772 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11773 (ELLIPSIS_LEN): Ditto.
11774 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11775 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11776 (gdb_fnprint, gdb_print_filename): Ditto.
11777 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11778 (gdb_display_match_list): Ditto.
11779 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11780 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11781 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11782 (match_list_displayer): New struct.
11783 (gdb_display_match_list): Declare.
11784 * top.c (init_main): Set rl_completion_display_matches_hook.
11785 * tui/tui-io.c: #include completer.h.
11786 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11787 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11788 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11789 (tui_mld_getc, tui_mld_read_key): Ditto.
11790 (tui_rl_display_match_list): Rewrite.
11791 (tui_handle_resize_during_io): New arg for_completion. All callers
11792 updated.
11793
f57d2163
DE
117942015-01-31 Doug Evans <xdje42@gmail.com>
11795
11796 Add symbol lookup cache.
11797 * NEWS: Document new options and commands.
11798 * symtab.c (symbol_cache_key): New static global.
11799 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11800 (SYMBOL_LOOKUP_FAILED): New macro.
11801 (symbol_cache_slot_state): New enum.
11802 (block_symbol_cache): New struct.
11803 (symbol_cache): New struct.
11804 (new_symbol_cache_size, symbol_cache_size): New static globals.
11805 (hash_symbol_entry, eq_symbol_entry): New functions.
11806 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11807 (make_symbol_cache, free_symbol_cache): New functions.
11808 (get_symbol_cache, symbol_cache_cleanup): New function.
11809 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11810 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11811 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11812 (symbol_cache_flush, symbol_cache_dump): New functions.
11813 (maintenance_print_symbol_cache): New function.
11814 (maintenance_flush_symbol_cache): New function.
11815 (symbol_cache_stats): New function.
11816 (maintenance_print_symbol_cache_statistics): New function.
11817 (symtab_new_objfile_observer): New function.
11818 (symtab_free_objfile_observer): New function.
11819 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11820 (_initialize_symtab): Init symbol_cache_key. New parameter
11821 maint symbol-cache-size. New maint commands print symbol-cache,
11822 print symbol-cache-statistics, flush-symbol-cache.
11823 Install new_objfile, free_objfile observers.
11824
e700d1b2
JB
118252015-01-31 Joel Brobecker <brobecker@adacore.com>
11826
11827 PR symtab/17855
11828 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11829 to end.
11830
9f050062
DE
118312015-01-31 Doug Evans <xdje42@gmail.com>
11832
11833 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11834 * auto-load.c: #include ctype.h.
11835 (struct auto_load_pspace_info): Replace member loaded_scripts with
11836 new members loaded_script_files, loaded_script_texts.
11837 (auto_load_pspace_data_cleanup): Update.
11838 (init_loaded_scripts_info): Update.
11839 (get_auto_load_pspace_data_for_loading): Update.
11840 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11841 updated.
11842 (maybe_add_script_text): New function.
11843 (clear_section_scripts): Update.
11844 (source_script_file, execute_script_contents): New functions.
11845 (source_section_scripts): Add support for
11846 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11847 (print_scripts): New function.
11848 (auto_load_info_scripts): Also print inlined scripts.
11849 (maybe_print_unsupported_script_warning): Renamed from
11850 unsupported_script_warning_print. All callers updated.
11851 (maybe_print_script_not_found_warning): Renamed from
11852 script_not_found_warning_print. All callers updated.
11853 * extension-priv.h (struct extension_language_script_ops): New member
11854 objfile_script_executor.
11855 * extension.c (ext_lang_objfile_script_executor): New function.
11856 * extension.h (objfile_script_executor_func): New typedef.
11857 (ext_lang_objfile_script_executor): Declare.
11858 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11859 * guile/guile.c (guile_extension_script_ops): Update.
11860 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11861 * python/python.c (python_extension_script_ops): Update.
11862 (gdbpy_execute_objfile_script): New function.
11863
312809f8
EZ
118642015-01-31 Eli Zaretskii <eliz@gnu.org>
11865
11866 * tui/tui-io.c (tui_expand_tabs): New function.
11867 (tui_puts, tui_redisplay_readline): Expand TABs into the
11868 appropriate number of spaces.
11869 * tui/tui-regs.c: Include tui-io.h.
11870 (tui_register_format): Call tui_expand_tabs to expand TABs into
11871 the appropriate number of spaces.
11872 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11873
b6577aab
DE
118742015-01-30 Doug Evans <dje@google.com>
11875
11876 * NEWS: "info source" command now display producer string if present.
11877 * source.c (source_info): Print producer string if present.
11878
6da58d3e
SM
118792015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11880
11881 * varobj.c (varobj_delete): Fix comment.
11882
837ce252
SM
118832015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11884
11885 * varobj.c (create_child): Modify comment.
11886
b09e2c59
SM
118872015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11888
11889 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11890 parameter.
11891 (ada_name_of_variable): Same.
11892 (ada_path_expr_of_child): Same.
11893 (ada_value_of_variable): Same.
11894 (ada_value_is_changeable_p): Same.
11895 (ada_value_has_mutated): Same.
11896 * c-varobj.c (varobj_is_anonymous_child): Same.
11897 (c_is_path_expr_parent): Same.
11898 (c_number_of_children): Same.
11899 (c_name_of_variable): Same.
11900 (c_path_expr_of_child): Same.
11901 (get_type): Same.
11902 (c_value_of_variable): Same.
11903 (cplus_number_of_children): Same.
11904 (cplus_name_of_variable): Same.
11905 (cplus_path_expr_of_child): Same.
11906 (cplus_value_of_variable): Same.
11907 * jv-varobj.c (java_number_of_children): Same.
11908 (java_name_of_variable): Same.
11909 (java_path_expr_of_child): Same.
11910 (java_value_of_variable): Same.
11911 * varobj.c (number_of_children): Same.
11912 (name_of_variable): Same.
11913 (is_root_p): Same.
11914 (varobj_ensure_python_env): Same.
11915 (varobj_get_objname): Same.
11916 (varobj_get_expression): Same.
11917 (varobj_get_display_format): Same.
11918 (varobj_get_display_hint): Same.
11919 (varobj_has_more): Same.
11920 (varobj_get_thread_id): Same.
11921 (varobj_get_frozen): Same.
11922 (dynamic_varobj_has_child_method): Same.
11923 (varobj_get_gdb_type): Same.
11924 (is_path_expr_parent): Same.
11925 (varobj_default_is_path_expr_parent): Same.
11926 (varobj_get_language): Same.
11927 (varobj_get_attributes): Same.
11928 (varobj_is_dynamic_p): Same.
11929 (varobj_get_child_range): Same.
11930 (varobj_value_has_mutated): Same.
11931 (varobj_get_value_type): Same.
11932 (number_of_children): Same.
11933 (name_of_variable): Same.
11934 (check_scope): Same.
11935 (varobj_editable_p): Same.
11936 (varobj_value_is_changeable_p): Same.
11937 (varobj_floating_p): Same.
11938 (varobj_default_value_is_changeable_p): Same.
11939
2568868e
SM
119402015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11941
11942 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11943 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11944 child->path_expr.
11945 (cplus_path_expr_of_child): Same.
11946
ca83fa81
SM
119472015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11948
11949 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11950 result.
11951 (mi_cmd_var_info_expression): Same.
11952 * varobj.c (varobj_get_expression): Mention in the comment that
11953 the result must by freed by the caller.
11954
afa269ae
SM
119552015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11956
11957 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11958 varobj_get_type.
11959 (varobj_update_one): Same.
11960 * varobj.c (update_type_if_necessary): Free curr_type_str and
11961 new_type_str.
11962 (varobj_get_type): Specify in comment that the result needs to be
11963 freed by the caller.
11964
cd366ee8
DE
119652015-01-29 Doug Evans <dje@google.com>
11966
11967 PR symtab/17890
11968 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11969
38360086
MW
119702015-01-25 Mark Wielaard <mjw@redhat.com>
11971
11972 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11973 * utils.c (producer_is_gcc_ge_4): Likewise.
11974 (producer_is_gcc): New function.
11975 * utils.h (producer_is_gcc): New declaration.
11976
df25ebbd
JB
119772015-01-29 Joel Brobecker <brobecker@adacore.com>
11978
11979 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11980 kind.
11981 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11982 parameter by "addr_stack" parameter.
11983 (resolve_dynamic_range): Replace "addr" parameter by
11984 "stack_addr" parameter. Update function documentation.
11985 Update code accordingly.
11986 (resolve_dynamic_array, resolve_dynamic_union)
11987 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11988 (resolve_dynamic_type): Update code, following the changes made
11989 to resolve_dynamic_type_internal's interface.
11990 * dwarf2loc.h (struct property_addr_info): New.
11991 (dwarf2_evaluate_property): Replace "address" parameter
11992 by "addr_stack" parameter. Adjust function documentation.
11993 (struct dwarf2_offset_baton): New.
11994 (struct dwarf2_property_baton): Update documentation of
11995 field "referenced_type" to be more general. New field
11996 "offset_info" in union data field.
11997 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11998 parameter by "addr_stack" parameter. Adjust code accordingly.
11999 Add support for PROP_ADDR_OFFSET properties.
12000 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12001 DW_AT_data_member_location attributes as well. Use case
12002 statements instead of if/else condition.
12003
4a0ca9ec
JB
120042015-01-29 Joel Brobecker <brobecker@adacore.com>
12005
12006 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12007 Return zero if PARENT_VALUE is NULL and parent_type's
12008 range type is dynamic.
12009
ddb87a81
JB
120102015-01-29 Joel Brobecker <brobecker@adacore.com>
12011
12012 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12013 nonzero if the type's subtype is dynamic.
12014 (resolve_dynamic_range): Also resolve the range's subtype.
12015
3d7ad9b4 120162015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12017
3d7ad9b4 12018 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12019 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12020
3a8b707a
DE
120212015-01-27 Doug Evans <dje@google.com>
12022
12023 * NEWS: Mention gdb.Objfile.username.
12024 * python/py-objfile.c (objfpy_get_username): New function.
12025 (objfile_getset): Add "username".
12026
d35b90fb
MW
120272015-01-24 Mark Wielaard <mjw@redhat.com>
12028
12029 * stack.c (return_command): Markup warning message with _.
12030
734ae125
DE
120312015-01-24 Doug Evans <xdje42@gmail.com>
12032
12033 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12034
527f3840
JK
120352015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12036
12037 Fix 100x slowdown regression on DWZ files.
12038 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12039 (struct line_header): Add offset and offset_in_dwz.
12040 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12041 (free_line_header_voidp): New declaration.
12042 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12043 functions.
12044 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12045 (handle_DW_AT_stmt_list): Use line_header_hash.
12046 (free_line_header_voidp): New function.
12047 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12048 (dwarf_decode_lines): New parameter decode_mapping, use it.
12049 (dwarf2_free_objfile): Free line_header_hash.
12050
f7e5394d
SM
120512015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12052
12053 PR gdb/17416
12054 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12055 value_ind.
12056
743649fd
MW
120572015-01-15 Mark Wielaard <mjw@redhat.com>
12058
12059 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12060 DW_AT_noreturn.
12061 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12062 calling_convention an 8 bit bit field.
12063 (TYPE_NO_RETURN): New macro.
12064 * infcmd.c (finish_command): Query if function does not return
12065 normally.
12066 * stack.c (return_command): Likewise.
12067
198297aa
PA
120682015-01-23 Pedro Alves <palves@redhat.com>
12069
12070 * linux-nat.c (linux_is_async_p): New macro.
12071 (linux_nat_is_async_p):
12072 (linux_nat_terminal_inferior): Check whether the target can async
12073 instead of whether it is already async.
12074 (linux_nat_terminal_ours): Don't check whether the target is
12075 async.
12076 (linux_async_pipe): Use linux_is_async_p.
12077
253828f1
JK
120782015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12079
12080 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12081 '-ascending'.
12082 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12083 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12084 Sort tp_array using tp_array_compar.
12085 (_initialize_thread): Extend thread_apply_all_command help.
12086
f0e8c4c5
JK
120872015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12088
12089 * corelow.c (core_open): Call also thread_command.
12090 * gdbthread.h (thread_command): New prototype moved from ...
12091 * thread.c (thread_command): ... here.
12092 (thread_command): Make it global.
12093
03b79603
PA
120942015-01-22 Pedro Alves <palves@redhat.com>
12095
12096 * configure.ac [*mingw32*]: Check $curses_found instead of
12097 $prefer_curses.
12098 * configure: Regenerate.
12099 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12100 HAVE_NCURSES_NCURSES_H checks.
12101
6b8a872f
EZ
121022015-01-22 Eli Zaretskii <eliz@gnu.org>
12103
bbbbffbb 12104 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12105 fails with the 1st arg NULL, try again with "unknown". Don't test
12106 the "cup" capability: it isn't supported by the Windows port of
12107 ncurses, but the Windows console driver is still capable of
12108 supporting TUI.
12109
4b62a76e
JK
121102015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12111
12112 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12113
82a864f9
EZ
121142015-01-22 Eli Zaretskii <eliz@gnu.org>
12115
12116 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12117 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12118 reason that "make TAGS" is broken.
12119
b35018fd
CG
121202015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12121
12122 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12123 and check additional store instructions.
12124
ffbc4646
WW
121252015-01-21 Wei-cheng Wang <cole945@gmail.com>
12126
12127 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12128
ddeca1df
WW
121292015-01-21 Wei-cheng Wang <cole945@gmail.com>
12130
12131 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12132 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12133 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12134 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12135 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12136 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12137 rs6000_epilogue_frame_sniffer, 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): Likewise.
12141
049bb5de
JB
121422015-01-20 Joel Brobecker <brobecker@adacore.com>
12143
12144 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12145 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12146 strerror.
12147
42b87c63 121482015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12149
12150 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12151 ppc_process_record_op31, ppc_process_record_op59,
12152 ppc_process_record_op60, ppc_process_record_op63,
12153 ppc_process_record): Fix -Wformat warning.
12154 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12155 Remove unused variables.
12156
569340fc
CG
121572015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12158
12159 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12160
63413d85
EZ
121612015-01-19 Eli Zaretskii <eliz@gnu.org>
12162
12163 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12164 CONFIG_OBS if not building with a curses library.
12165 * configure: Regenerate.
12166
12167 * windows-termcap.c: Include defs.h. Make the whole body empty if
12168 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12169 HAVE_NCURSES_NCURSES_H is defined.
12170
16d8013c
JB
121712015-01-19 Joel Brobecker <brobecker@adacore.com>
12172
12173 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12174 from end of line to start of next line.
12175
cf90fd9a
WW
121762015-01-17 Wei-cheng Wang <cole945@gmail.com>
12177
12178 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12179 Scan PLT stub backward for reverse debugging.
12180 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12181
b4cdae6f
WW
121822015-01-17 Wei-cheng Wang <cole945@gmail.com>
12183 Ulrich Weigand <uweigand@de.ibm.com>
12184
12185 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12186 gdb_target_obs.
12187 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12188 record.
12189 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12190 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12191 (ppc_linux_init_abi): Set process_record, process_record_signal.
12192 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12193 ppc_linux_record_tdep to gdbarch_tdep.
12194 (ppc_process_record): New declaration.
12195 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12196 ppc_process_record_op19, ppc_process_record_op31,
12197 ppc_process_record_op59, ppc_process_record_op60,
12198 ppc_process_record_op63, ppc_process_record): New functions.
12199
2608dbf8
WW
122002015-01-17 Wei-cheng Wang <cole945@gmail.com>
12201
12202 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12203 rs6000_in_function_epilogue_frame_p and add an argument
12204 for frame_info.
12205 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12206 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12207 New functions.
12208 (rs6000_epilogue_frame_unwind): New.
12209 (rs6000_gdbarch_init): Append epilogue unwinder.
12210
4c347be6
SDJ
122112015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12212
12213 * nat/linux-personality.c: Replace "#ifndef
12214 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12215 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12216 systems.
12217
9f2850ba
EZ
122182015-01-16 Eli Zaretskii <eliz@gnu.org>
12219
6cdb25f4
EZ
12220 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12221 functions.
12222 (_initialize_tui_win) <border-kind, border-mode>:
12223 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12224 (tui_set_tab_width_command): Fix the commentary.
12225
6cdb25f4
EZ
12226 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12227
bf555842
EZ
12228 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12229 Doc fix.
cb86fcc1
EZ
12230 (tui_set_tab_width_command): Delete and recreate the source and
12231 the disassembly windows, to show the effect of the changed tab
12232 size immediately.
bf555842 12233
9f2850ba
EZ
12234 * tui/tui-data.h (LINE_PREFIX): Make shorter
12235 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12236 "Thread NNNNN.XXXX" thread ID notation on Windows.
12237
95761b2d
JK
122382015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12239
12240 Fix gcc-5 compilation.
12241 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12242
8cc73a39
SDJ
122432015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12244
12245 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12246 (linux-personality.o): New rule.
12247 * common/common-defs.h: Include <stdint.h>.
12248 * config/aarch64/linux.mh (NATDEPFILES): Include
12249 linux-personality.o.
12250 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12251 * config/arm/linux.mh (NATDEPFILES): Likewise.
12252 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12253 * config/i386/linux.mh (NATDEPFILES): Likewise.
12254 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12255 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12256 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12257 * config/mips/linux.mh (NATDEPFILES): Likewise.
12258 * config/pa/linux.mh (NATDEPFILES): Likewise.
12259 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12260 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12261 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12262 * config/s390/linux.mh (NATDEPFILES): Likewise.
12263 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12264 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12265 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12266 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12267 * defs.h: Remove #include <stdint.h> (moved to
12268 common/common-defs.h).
12269 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12270 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12271 nat/linux-personality.c).
12272 (linux_nat_create_inferior): Remove code to disable address space
12273 randomization (moved to nat/linux-personality.c). Create cleanup
12274 to disable address space randomization.
12275 * nat/linux-personality.c: New file.
12276 * nat/linux-personality.h: Likewise.
12277
fb23d554
SDJ
122782015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12279
12280 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12281 common/posix-strerror.c.
12282 (posix-strerror.o): New rule.
12283 (mingw-strerror.o): Likewise.
12284 * common/common-utils.h (safe_strerror): Move prototype to here,
12285 from utils.h.
12286 * common/common.host: New file.
12287 * common/mingw-strerror.c: Likewise.
12288 * common/posix-strerror.c: Likewise.
12289 * configure: Regenerated.
12290 * configure.ac: Source common/common.host. Add variable
12291 common_host_obs to gdb_host_obs.
12292 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12293 gdb/common/posix-strerror.c when warning about the use of
12294 strerror.
12295 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12296 common/mingw-strerror.c.
12297 * posix-hdep.c (safe_strerror): Remove definition; move it to
12298 common/posix-hdep.c.
12299 * utils.h (safe_strerror): Remove prototype; move to
12300 common/common-utils.h.
12301
3af8af43
JB
123022015-01-15 Joel Brobecker <brobecker@adacore.com>
12303
12304 GDB 7.8.2 released.
12305
bafffb51
JB
123062015-01-15 Joel Brobecker <brobecker@adacore.com>
12307
12308 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12309 ___XA type if the array has already been fixed.
12310
cdf43629
YQ
123112015-01-14 Yao Qi <yao@codesourcery.com>
12312
12313 * Makefile.in (ppc-linux.o): New rule.
12314 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12315 * configure.ac: AC_CHECK_FUNCS(getauxval).
12316 * config.in: Re-generated.
12317 * configure: Re-generated.
12318 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12319 Declare.
12320 * nat/ppc-linux.c: New file.
12321 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12322 Call ppc64_64bit_inferior_p.
12323
514c5338
YQ
123242015-01-14 Yao Qi <yao@codesourcery.com>
12325
12326 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12327 nat/ppc-linux.h.
12328 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12329 (PPC_FEATURE_HAS_DFP): Likewise.
12330 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12331 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12332 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12333 Include "nat/ppc-linux.h".
12334 * nat/ppc-linux.h: New file.
12335 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12336
5589af0e
PA
123372015-01-14 Pedro Alves <palves@redhat.com>
12338
12339 PR gdb/17525
12340 * breakpoint.c: Include "interps.h".
12341 (bpstat_do_actions_1): Also check whether the interpreter is
12342 async.
12343
6c400b59
PA
123442015-01-14 Pedro Alves <palves@redhat.com>
12345
12346 PR cli/17828
12347 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12348 reinstall if the interpreter is sync.
12349
e02c96a7
DE
123502015-01-13 Doug Evans <dje@google.com>
12351
12352 * objfiles.c (objfile_filename): New function.
12353 * objfiles.h (objfile_filename): Declare it.
12354 (objfile_name): Add function comment.
12355 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12356 bfd file name (which may be realpath'd), and the original name.
12357
3b2f13ff
JB
123582015-01-13 Joel Brobecker <brobecker@adacore.com>
12359
12360 * NEWS: Create a new section for the next release branch.
12361 Rename the section of the current branch, now that it has
12362 been cut.
12363
b4cfe7f8
JB
123642015-01-13 Joel Brobecker <brobecker@adacore.com>
12365
12366 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12367 * version.in: Bump version to 7.9.50.DATE-cvs.
12368
92fc2e69
JB
123692015-01-13 Joel Brobecker <brobecker@adacore.com>
12370
12371 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12372 Remove trailing new-line in argument of call to warning.
12373
f71f0b0d
JB
123742015-01-13 Joel Brobecker <brobecker@adacore.com>
12375
12376 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12377 new-line in argument of call to "warning".
12378
04dccad0
JB
123792015-01-13 Joel Brobecker <brobecker@adacore.com>
12380
12381 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12382 in static block, then try searching for primitive types.
12383
08b13bdd
PP
123842015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12385
12386 * top.h (gdb_add_history): Declare.
12387 * top.c (command_count): New variable.
12388 (gdb_add_history): New function.
12389 (gdb_safe_append_history): New static function.
12390 (quit_force): Call it.
12391 (command_line_input): Use gdb_add_history instead of
12392 add_history.
12393 * event-top.c (command_line_handler): Likewise.
12394
4ac15b59
JC
123952015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12396
12397 PR gdb/17046
12398 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12399 <setjmp.h> #include.
12400
005e54bb
DE
124012015-01-11 Doug Evans <xdje42@gmail.com>
12402
12403 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12404
439250fb
DE
124052015-01-11 Doug Evans <xdje42@gmail.com>
12406
12407 PR gdb/15830
12408 * NEWS: The "maint demangle" command is renamed as "demangle".
12409 * demangle.c: #include cli/cli-utils.h, language.h.
12410 (demangle_command): New function.
12411 (_initialize_demangle): Add new command "demangle".
12412 * maint.c (maintenance_demangle): Stub out.
12413 (_initialize_maint_cmds): Update help text for "maint demangle",
12414 and mark as deprecated.
12415
ebf3aa72
MK
124162015-01-11 Mark Kettenis <kettenis@gnu.org>
12417
12418 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12419 inferior_thread is a function.
12420
6bf045cd
PP
124212015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12422
12423 * Makefile.in (.y.c): Don't munge yacc's #line
12424 directives.
12425
588dcc3e
PP
124262015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12427
12428 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12429 to prompt for input.
12430 * tui/tui-hooks.c (tui_query_hook): Remove.
12431 (tui_install_hooks): Don't set deprecated_query_hook.
12432 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12433 height calculation. Always update the command window's cur_line.
12434
9c02b525
PA
124352015-01-09 Pedro Alves <palves@redhat.com>
12436
12437 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12438 function.
12439 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12440 declaration.
12441 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12442 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12443 stop_reason.
12444 (check_stopped_by_watchpoint): New function.
12445 (save_sigtrap): Reimplement.
12446 (linux_nat_stopped_by_watchpoint): Adjust.
12447 (linux_nat_lp_status_is_event): Delete.
12448 (stop_wait_callback): Only call save_sigtrap after storing the
12449 pending status.
12450 (status_callback): If the thread had been stopped for a breakpoint
12451 that has since been removed, discard the event and resume the LWP.
12452 (count_events_callback, select_event_lwp_callback): Use
12453 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12454 (cancel_breakpoint): Rename to ...
12455 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12456 stopped for a software breakpoint or hardware breakpoint.
12457 (select_event_lwp): Only give preference to the stepping LWP in
12458 all-stop mode. Adjust comments.
12459 (stop_and_resume_callback): Remove references to new_pending_p.
12460 (linux_nat_filter_event): Likewise. Leave exit events of the
12461 leader thread pending here. Handle signal short circuiting here.
12462 Only call save_sigtrap after storing the pending waitstatus.
12463 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12464 new_pending. Don't handle leaving events the caller is not
12465 interested in pending here, nor handle signal short-circuiting
12466 here. Also give equal priority to all LWPs that have had events
12467 in non-stop mode. If reporting a software breakpoint event,
12468 unadjust the LWP's PC.
12469 * linux-nat.h (enum lwp_stop_reason): New.
12470 (struct lwp_info) <stop_pc>: New field.
12471 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12472 (struct lwp_info) <stop_reason>: New field.
12473 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12474
8af756ef
PA
124752015-01-09 Pedro Alves <palves@redhat.com>
12476
12477 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12478 Set the LWP's 'resumed' flag.
12479
8a99810d
PA
124802015-01-09 Pedro Alves <palves@redhat.com>
12481
12482 * linux-nat.c (linux_resume_one_lwp): New function.
12483 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12484 (linux_nat_resume): Use lwp_status_pending_p and
12485 linux_resume_one_lwp.
12486 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12487 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12488 (status_callback, running_callback): Use lwp_status_pending_p.
12489 (lwp_status_pending_p): New function.
12490 (stop_and_resume_callback): Use lwp_status_pending_p.
12491 (linux_nat_filter_event): Use linux_resume_one_lwp.
12492 (linux_nat_wait_1): Always use status_callback to look for an LWP
12493 with a pending status. Use linux_resume_one_lwp.
12494 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12495 linux_resume_one_lwp.
12496
f7ce857f
PA
124972015-01-09 Pedro Alves <palves@redhat.com>
12498
12499 * breakpoint.c (bp_location_inserted_here_p): New function,
12500 factored out from ...
12501 (breakpoint_inserted_here_p): ... here. Use
12502 ALL_BP_LOCATIONS_AT_ADDR.
12503 (software_breakpoint_inserted_here_p): Use
12504 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12505
c1a747c1
PA
125062014-01-09 Pedro Alves <palves@redhat.com>
12507
12508 Skip enabling event reporting if the kernel supports
12509 PTRACE_EVENT_CLONE.
12510 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12511 (thread_db_use_events): New function.
12512 (try_thread_db_load_1): Check thread_db_use_events before enabling
12513 event reporting.
12514 (update_thread_state): New function.
12515 (attach_thread): Use it. Check thread_db_use_events before
12516 enabling event reporting.
12517 (thread_db_detach): Check thread_db_use_events before disabling
12518 event reporting.
12519 (find_new_threads_callback): Check thread_db_use_events before
12520 enabling event reporting. Update the thread's state if not using
12521 libthread_db events.
12522
a33e3959
PA
125232015-01-09 Pedro Alves <palves@redhat.com>
12524
12525 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12526 about to wait for is > 0.
12527 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12528 the kernel thread ID is -1.
12529
8784d563
PA
125302015-01-09 Pedro Alves <palves@redhat.com>
12531
12532 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12533 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12534 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12535 ptrace option flags.
12536 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12537 field.
12538 * nat/linux-procfs.c: Include <dirent.h>.
12539 (linux_proc_get_int): New parameter "warn". Handle it.
12540 (linux_proc_get_tgid): Adjust.
12541 (linux_proc_get_tracerpid): Rename to ...
12542 (linux_proc_get_tracerpid_nowarn): ... this.
12543 (linux_proc_pid_get_state): New function, factored out from
12544 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12545 and handle it.
12546 (linux_proc_pid_is_gone): New function.
12547 (linux_proc_pid_is_stopped): Adjust.
12548 (linux_proc_pid_is_zombie_maybe_warn)
12549 (linux_proc_pid_is_zombie_nowarn): New functions.
12550 (linux_proc_pid_is_zombie): Use
12551 linux_proc_pid_is_zombie_maybe_warn.
12552 (linux_proc_attach_tgid_threads): New function.
12553 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12554 (linux_proc_get_tracerpid): Rename to ...
12555 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12556 (linux_proc_pid_is_gone): New declaration.
12557 (linux_proc_pid_is_zombie): Update comment.
12558 (linux_proc_pid_is_zombie_nowarn): New declaration.
12559 (linux_proc_attach_lwp_func): New typedef.
12560 (linux_proc_attach_tgid_threads): New declaration.
12561 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12562 use nowarn functions.
12563 (linux_ptrace_attach_fail_reason_string): Move here from
12564 gdbserver/linux-low.c and rename.
12565 (ptrace_supports_feature): If the current ptrace options are not
12566 known yet, check them now, instead of asserting.
12567 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12568 Declare.
12569
883ed13e
PA
125702015-01-09 Pedro Alves <palves@redhat.com>
12571
12572 * linux-thread-db.c (thread_db_find_new_threads_silently)
12573 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12574 (find_new_threads_once): Print debug output on gdb_stdlog.
12575
1710aab8
CG
125762015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12577 Pedro Alves <palves@redhat.com>
12578
12579 * compile/compile.c: Include "gdb_wait.h".
12580 (do_rmdir): Check return value, and free 'zap'.
12581
b597c318
YQ
125822015-01-08 Pedro Alves <palves@redhat.com>
12583 Yao Qi <yao@codesourcery.com>
12584
12585 * dwarf2loc.c (indirect_pieced_value): Don't call
12586 gdb_sign_extend. Call extract_signed_integer instead.
12587 * utils.c (gdb_sign_extend): Remove.
12588 * utils.h (gdb_sign_extend): Remove declaration.
12589
025ac414
PM
125902015-01-07 Pierre Muller <muller@sourceware.org>
12591
12592 PR symtab/17811
12593 * stabsread.c (define_symbol): Set language for C++ special symbols.
12594
fa5af12a
PP
125952015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12596
12597 * inflow.c (initial_gdb_ttystate): Tweak comment.
12598
ea42d6f8
JB
125992015-01-07 Joel Brobecker <brobecker@adacore.com>
12600
12601 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12602 comment documenting function.
12603
6a06d660
PP
126042015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12605
12606 * terminal.h (set_initial_gdb_ttystate): Declare.
12607 * inflow.c (initial_gdb_ttystate): New static variable.
12608 (set_initial_gdb_ttystate): New setter.
12609 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12610 instead of our current terminal state.
12611 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12612
e810d75b
JB
126132015-01-07 Joel Brobecker <brobecker@adacore.com>
12614
12615 * guile/scm-type.c (tyscm_array_1): Add comment.
12616 * python/py-type.c (typy_array_1): Add comment.
12617
fce10a84
JB
126182015-01-06 Joel Brobecker <brobecker@adacore.com>
12619
12620 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12621 error if N2 is equal to N1 - 1.
12622
8503d6e1
JB
126232015-01-06 Joel Brobecker <brobecker@adacore.com>
12624
12625 * python/py-type.c (typy_array_1): Do not raise negative-length
12626 exception if N2 is equal to N1 - 1.
12627
4d29c0a8
DE
126282015-01-03 Doug Evans <xdje42@gmail.com>
12629
12630 * c-exp.y: Whitespace cleanup.
12631 (classify_inner_name): Remove extra ;.
12632
eaa6a9a4
MR
126332015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12634
12635 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12636 offset signed.
12637
02fe9972
DE
126382015-01-02 Doug Evans <dje@google.com>
12639
12640 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12641
e2ada9cb
DE
126422015-01-02 Doug Evans <dje@google.com>
12643
12644 * symtab.h (struct symbol): Fix typo in comment.
12645
32d0add0
JB
126462015-01-01 Joel Brobecker <brobecker@adacore.com>
12647
12648 Update year range in copyright notice of all files.
12649
76f2b779
JB
126502015-01-01 Joel Brobecker <brobecker@adacore.com>
12651
12652 * top.c (print_gdb_version): Update copyright year to 2015.
12653
077309e2 126542015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12655
077309e2 12656 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12657
077309e2 12658For older changes see ChangeLog-2014.
c906108c
SS
12659\f
12660Local Variables:
12661mode: change-log
12662left-margin: 8
12663fill-column: 74
12664version-control: never
57da7796 12665coding: utf-8
c906108c 12666End:
This page took 2.681751 seconds and 4 git commands to generate.