gdb/Windows: use windows_wait/windows_resume directly in initial startup
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c72f45d1
PA
12015-10-22 Pedro Alves <palves@redhat.com>
2
3 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
4 windows_wait and windows_resume directly instead of
5 wait_for_inferior and resume.
6
60905b1e
SM
72015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * xtensa-tdep.h (XTREG): Add casts.
10 (XTREG_END): Likewise.
11
5af9928d
SM
122015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
15
3e45d68b
SM
162015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
19
709476c3
SM
202015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
23 buf to gdb_byte*.
24 (supply_32bit_reg): Add cast.
25 (mips64_fill_gregset): Likewise.
26
bed91f4d
SM
272015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
28
29 PR python/18073
30 * python/py-type.c (typy_get_composite): Allow returning a
31 function type.
32
3f2f83dd
KB
332015-10-21 Keven Boell <keven.boell@intel.com>
34
35 * dwarf2read.c (set_die_type): Add read of
36 DW_AT_allocated and DW_AT_associated.
37 * f-typeprint.c: New include of typeprint.h
38 (f_print_type): Add check for allocated/associated
39 status of type.
40 (f_type_print_varspec_suffix): Add check for
41 * gdbtypes.c (create_array_type_with_stride):
42 Add check for valid data location of type in
43 case allocated or associated attributes are set.
44 Length of an array should be only calculated if
45 allocated or associated is resolved as true.
46 (is_dynamic_type_internal): Add check for allocated/
47 associated.
48 (resolve_dynamic_array): Evaluate allocated/associated
49 properties.
50 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
51 <DYN_PROP_ASSOCIATED>: New enums.
52 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
53 (type_not_allocated): New function.
54 (type_not_associated): New function.
55 * valarith.c (value_subscripted_rvalue): Add check for
56 allocated/associated.
57 * valprint.c: New include of typeprint.h.
58 (valprint_check_validity): Add check for allocated/associated.
59 (value_check_printable): Add check for allocated/
60 associated.
61 * typeprint.h (val_print_not_allocated): New function.
62 (val_print_not_associated): New function.
63 * typeprint.c (val_print_not_allocated): New function.
64 (val_print_not_associated): New function.
65
8689682c
AT
662015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
67
68 * Makefile.in: Add arm.c/o.
69 * arch/arm.c: New file.
70 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
71 (MAKE_THUMB_ADDR): Likewise.
72 (UNMAKE_THUMB_ADDR): Likewise.
73 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
74 (IS_THUMB_ADDR): Move to arm.h.
75 (MAKE_THUMB_ADDR): Likewise.
76 (UNMAKE_THUMB_ADDR): Likewise.
77 * configure.tgt: Add arm.o to all ARM configs.
78
80f0110c
YQ
792015-10-21 Yao Qi <yao.qi@linaro.org>
80
81 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
82 Remove argument exp_vCont_s.
83 * gdb.base/range-stepping.exp: Callers updated.
84 * gdb.trace/range-stepping.exp: Likewise.
85
d7161de4
AR
862015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
87
88 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
89 (nto_sniff_abi_note_section): New function.
90 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
91 binary.
92
a9889169
AR
932015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
94
95 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
96 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
97 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
98 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
99 New functions.
100 (_initialize_nto_tdep): New forward declaration, new function.
101 * nto-tdep.h (struct nto_inferior_data): New struct.
102 (nto_inferior_data): New function declaration.
103
5f3ff4f8
JK
1042015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
105
106 * findvar.c (address_from_register): Check REGNUM validity.
107
e5343fde
AR
1082015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
109
110 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
111 (init_procfs_targets): Wire new function.
112
8a6c0ccd
AR
1132015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
114
115 * nto-procfs.c (sys/auxv.h): Include.
116 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
117 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
118 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
119
609c3040
AR
1202015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
121
122 * nto-procfs.c (nto_procfs_path): Rename to...
123 (nodestr): ... this, and change type.
124 (nto_node): Use new variable and logic accordingly.
125 (procfs_open_1): Use new variable name. Use local buffer to construct
126 procfrs path.
127 (procfs_pidlist): Use NODESTR to construct procfs path.
128 (procfs_files_info): Use NODESTR to output meaningful text.
129 (do_attach): Construct procfs using NODESTR.
130 (procfs_create_inferior): Compare pointer to NULL.
131
bfd09d20
JS
1322015-10-19 Josh Stone <jistone@redhat.com>
133
134 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
135 return state, even when not actively catching syscalls at all.
136 (linux_handle_extended_wait): Mark syscall_state like an entry.
137 (wait_lwp): Set syscall_state ignored for other traps.
138 (linux_nat_filter_event): Likewise.
139
29090fb6
LM
1402015-10-19 Luis Machado <lgustavo@codesourcery.com>
141
142 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
143 when handling 'E', 'T', 'S', 'X' and 'W' packets.
144 Do not set rs->waiting_for_stop_reply back to 1.
145
774ee6d2
AR
1462015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
147
148 * nto-procfs.c (common/filestuff.h): Include.
149 (procfs_can_use_hw_breakpoint): Fix enum name.
150 (procfs_open_1): Fix compiler warning.
151 (procfs_pidlist): Make static.
152 (procfs_meminfo): Make static, fix type name, add missing argument.
153 (procfs_store_registers): Make static.
154 (procfs_thread_info): Remove unused function.
155 (_initialize_procfs): Forward declare.
156
e66acfb1
YQ
1572015-10-16 Yao Qi <yao.qi@arm.com>
158
159 * MAINTAINERS: Update my email address.
160
8d689ee5
YQ
1612015-10-15 Yao Qi <yao.qi@linaro.org>
162
163 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
164 Call gdbarch_breakpoint_from_pc to instruction length.
165 (aarch64_linux_remove_hw_breakpoint): Likewise.
166 * common/common-regcache.h (regcache_register_size): Declare.
167 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
168 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
169 the process is 32bit, otherwise set alignment to 4.
170 (aarch64_handle_breakpoint): Update comments.
171 * regcache.c (regcache_register_size): New function.
172
89fdc87f
AR
1732015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
174
175 * gdbarch.sh (core_regset_section): Remove.
176 * gdbarch.h: Regenerate.
177
6448a3e4
YQ
1782015-10-14 Yao Qi <yao.qi@linaro.org>
179
180 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
181 out of it.
182 (enum aarch64_memory_operand_type): New.
183
33f914a1
DE
1842015-10-13 David Edelsohn <dje.gcc@gmail.com>
185
186 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
187
e6a959d6
PA
1882015-10-13 Pedro Alves <palves@redhat.com>
189
190 * ada-lang.c (ada_enum_name): Constify local.
191 * ada-typeprint.c (print_range_bound): Constify locals.
192 * c-varobj.c (c_describe_child): Likewise.
193 * cli/cli-setshow.c (do_set_command): Likewise.
194 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
195 * dwarf2read.c (find_file_and_directory): Likewise.
196 (anonymous_struct_prefix, dwarf2_name): Likewise.
197 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
198 * go-lang.c (unpack_mangled_go_symbol): Likewise.
199 * jv-typeprint.c (java_type_print_base): Likewise.
200 * ser-tcp.c (net_open): Likewise.
201 * symfile.c (deduce_language_from_filename): Likewise.
202 * symtab.c (gdb_mangle_name): Likewise.
203 * tui/tui-io.c (tui_redisplay_readline): Likewise.
204
170742de
PA
2052015-10-13 Pedro Alves <palves@redhat.com>
206
207 * infrun.c (restore_execution_direction): New function.
208 (fetch_inferior_event): Use it instead of
209 make_cleanup_restore_integer.
210 (execution_direction): Change type to enum
211 exec_direction_kind.
212 * infrun.h (execution_direction): Likewise.
213
bfb1c796
PA
2142015-10-13 Pedro Alves <palves@redhat.com>
215
216 * ada-lang.c (ada_value_primitive_packed_val): Constify
217 locals. Use value_contents_writeable. Remove casts.
218
aa5c10ce
PA
2192015-10-13 Pedro Alves <palves@redhat.com>
220
221 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
222 and alloca calls.
223
4666fec3
SM
2242015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
227 write_memory with write_memory_unsigned_integer.
228
38bc8217 2292015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
230
231 * solib-dsbt.c (cmp_name): Constify arguments.
232 * solib-frv.c (cmp_name): Likewise.
233 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
234 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
235 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
236 (gdb_bfd_lookup_symbol): Likewise.
237 * solib.h (gdb_bfd_lookup_symbol): Likewise.
238 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
239
a0d34a39
AB
2402015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * stack.c (parse_frame_specification): Remove message parameter,
243 replace with fixed string in function body, update function
244 comment.
245 (frame_info): Remove message to parse_frame_specification.
246 (select_frame_command): Likewise.
247
edbbff4a
AB
2482015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * stack.c (parse_frame_specification): Delete.
251 (parse_frame_specification_1): Rename to
252 parse_frame_specification.
253 (frame_info): Use parse_frame_specification.
254 (select_frame_command): Likewise.
255 (return_command): Use select_frame and print_stack_frame rather
256 than frame_command and select_frame_command.
257 (func_command): Use get_current_frame rather than
258 parse_frame_specification.
259
9d622bda
AB
2602015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * stack.c (func_command): Return early when there is no ARG
263 string.
264
8d3fea16
AB
2652015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * stack.c: Include safe-ctype.h not ctype.h.
268 (parse_frame_specification): Use ISSPACE not isspace.
269 (backtrace_command): Use TOLOWER not tolower.
270
f54b226f
SM
2712015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * mep-tdep.c (current_me_module): Add cast.
274 (mep_gdbarch_init): Likewise.
275
6da660c7
SM
2762015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * m32c-tdep.c (m32c_move_reg_t): Replace with...
279 (m32c_write_reg_t): ...this and...
280 (m32c_read_reg_t): ...this.
281 (struct m32c_reg): Update types of read and write.
282 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
283 adjust definition.
284 (m32c_banked_read): Likewise.
285 (m32c_sb_read): Likewise.
286 (m32c_part_read): Likewise.
287 (m32c_cat_read): Likewise.
288 (m32c_r3r2r1r0_read): Likewise.
289 (m32c_raw_write): Change declaration type to m32c_write_reg_t
290 and adjust definition.
291 (m32c_banked_write): Likewise.
292 (m32c_sb_write): Likewise.
293 (m32c_part_write): Likewise.
294 (m32c_cat_write): Likewise.
295 (m32c_r3r2r1r0_write): Likewise.
296
1f713e48
SM
2972015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
298
299 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
300
cb65d272
SM
3012015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
304 gdb_sys_no_syscall instead of -1.
305
eda14cf2
YQ
3062015-10-12 Yao Qi <yao.qi@linaro.org>
307
308 * NEWS: Mention the change.
309
1c2e1515
YQ
3102015-10-12 Yao Qi <yao.qi@linaro.org>
311
312 * arch/aarch64-insn.c (emit_load_store): Rename to ...
313 (aarch64_emit_load_store): ... it. All callers updated.
314
e1c587c3
YQ
3152015-10-12 Yao Qi <yao.qi@linaro.org>
316
317 * arch/aarch64-insn.c (emit_insn): Rename to ...
318 (aarch64_emit_insn): ... it. All callers updated.
319
b6542f81
YQ
3202015-10-12 Yao Qi <yao.qi@linaro.org>
321
322 * aarch64-linux-tdep.c: Include arch-utils.h.
323 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
324 set_gdbarch_displaced_step_copy_insn,
325 set_gdbarch_displaced_step_fixup,
326 set_gdbarch_displaced_step_free_closure,
327 set_gdbarch_displaced_step_location,
328 and set_gdbarch_displaced_step_hw_singlestep.
329 * aarch64-tdep.c (struct displaced_step_closure): New.
330 (struct aarch64_displaced_step_data): New.
331 (aarch64_displaced_step_b): New function.
332 (aarch64_displaced_step_b_cond): Likewise.
333 (aarch64_register): Likewise.
334 (aarch64_displaced_step_cb): Likewise.
335 (aarch64_displaced_step_tb): Likewise.
336 (aarch64_displaced_step_adr): Likewise.
337 (aarch64_displaced_step_ldr_literal): Likewise.
338 (aarch64_displaced_step_others): Likewise.
339 (aarch64_displaced_step_copy_insn): Likewise.
340 (aarch64_displaced_step_fixup): Likewise.
341 (aarch64_displaced_step_hw_singlestep): Likewise.
342 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
343 (aarch64_displaced_step_copy_insn): Declare.
344 (aarch64_displaced_step_fixup): Declare.
345 (aarch64_displaced_step_hw_singlestep): Declare.
346 * arch/aarch64-insn.c (emit_insn): Moved from
347 gdbserver/linux-aarch64-low.c.
348 (emit_load_store): Likewise.
349 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
350 gdbserver/linux-aarch64-low.c.
351 (struct aarch64_register): Likewise.
352 (struct aarch64_memory_operand): Likewise.
353 (ENCODE): Likewise.
354 (can_encode_int32): New macro.
355 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
356 (emit_tb, emit_nop): Likewise.
357 (emit_insn): Declare.
358 (emit_load_store): Declare.
359
246994ce
YQ
3602015-10-12 Yao Qi <yao.qi@linaro.org>
361
362 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
363 gdbserver/linux-aarch64-low.c.
364 (aarch64_relocate_instruction): Likewise.
365 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
366 (struct aarch64_insn_data): Moved from
367 gdbserver/linux-aarch64-low.c.
368 (struct aarch64_insn_visitor): Likewise.
369 (aarch64_relocate_instruction): Declare.
370
2520f728
PMR
3712015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
372
373 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
374 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
375 to the returned value.
376
5b639dea
JB
3772015-10-09 Joel Brobecker <brobecker@adacore.com>
378
379 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
380 is large enough for BIT_SIZE. Update function comment.
381
0cafa88c
JB
3822015-10-09 Joel Brobecker <brobecker@adacore.com>
383
384 * ada-lang.c (ada_value_primitive_packed_val): Move
385 src_len variable to local block where used. Override
386 BIT_SIZE if bigger than size of resolved type.
387
220475ed
JB
3882015-10-09 Joel Brobecker <brobecker@adacore.com>
389
390 * gdbtypes.h (is_scalar_type): Add extern declaration.
391 * gdbtypes.c (is_scalar_type): Make non-static.
392 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
393 to compute IS_SCALAR instead of doing it ourselves.
394
d0a9e810
JB
3952015-10-09 Joel Brobecker <brobecker@adacore.com>
396
397 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
398 of case where TYPE is dynamic.
399
f93fca70
JB
4002015-10-09 Joel Brobecker <brobecker@adacore.com>
401
402 * ada-lang.c (ada_unpack_from_contents): New function,
403 extracted from ada_value_primitive_packed_val.
404 (ada_value_primitive_packed_val): Replace extracted out code
405 by call to ada_unpack_from_contents.
406
a1c95e6b
JB
4072015-10-09 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
410 variable declarations.
411
fbd000da
JB
4122015-10-09 Joel Brobecker <brobecker@adacore.com>
413
414 * ada-lang.c (ada_value_primitive_packed_val): Change the type
415 of local variables src and unpacked to "gdb_type *" instead of
416 "unsigned char *".
417
086ca51f
JB
4182015-10-09 Joel Brobecker <brobecker@adacore.com>
419
420 * ada-lang.c (ada_value_primitive_packed_val): Make the name
421 of various local variables more explicit and consistent.
422 No real code change otherwise.
423
c5bcd278
SM
4242015-10-09 Simon Marchi <simon.marchi@ericsson.com>
425
426 * i386-tdep.h (struct gdbarch_tdep): Change type of
427 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
428
78c5b882
SM
4292015-10-09 Simon Marchi <simon.marchi@ericsson.com>
430
431 * cris-tdep.c (struct instruction_environment): Change type of
432 byte_order to enum bfd_endian.
433
f9fa37b3
SM
4342015-10-09 Simon Marchi <simon.marchi@ericsson.com>
435
436 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
437 enum gdb_syscall casts.
438
7c543f7b
SM
4392015-10-09 Simon Marchi <simon.marchi@ericsson.com>
440
441 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
442 * arm-tdep.c (struct stack_item): Likewise.
443 (push_stack_item): Add gdb_byte* cast.
444 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
445 (push_stack_item): Add gdb_byte* cast.
446 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
447 and add cast.
448 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
449 (push_stack_item): Add gdb_byte* cast.
450 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
451 add cast.
452 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
453 gdb_byte*.
454 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
455 gdb_byte* and remove unnecessary cast.
456 (h8300h_extract_return_value): Likewise.
457 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
458 (h8300h_store_return_value): Likewise.
459 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
460 gdb_byte* and remove unnecessary cast.
461 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
462 and add cast.
463 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
464 gdb_byte* and remove unnecessary cast.
465 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
466 valbuf.
467 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
468 (mep_pseudo_cr64_read): Likewise.
469 (mep_pseudo_csr_write): Likewise.
470 (mep_pseudo_cr32_write): Likewise.
471 (mep_pseudo_cr64_write): Likewise.
472 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
473 gdb_byte* and add cast.
474 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
475 gdb_byte* and remove unnecessary cast.
476 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
477 valbuf.
478 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
479 gdb_byte*.
480 * printcmd.c (void): Likewise.
481 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
482 gdb_byte* and add cast.
483 (infpy_write_memory): Likewise.
484 (infpy_search_memory): Likewise.
485 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
486 and add cast.
487 (regcache_raw_write_unsigned): Likewise.
488 (regcache_cooked_write_signed): Likewise.
489 (regcache_cooked_write_unsigned): Likewise.
490 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
491 gdb_byte*.
492
7567e115
SM
4932015-10-09 Simon Marchi <simon.marchi@ericsson.com>
494
495 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
496 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
497
f9acce4a
EZ
4982015-10-09 Eli Zaretskii <eliz@gnu.org>
499
500 * stack.c (print_stack_frame):
501 * utils.c (printchar): Fix typos in commentary.
502
d5d8c4e1
IB
5032015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
504
505 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
506 (PostfixExpression): Support `expr.sizeof' expressions.
507 (PrimaryExpression): Support `typeof(expr)' expressions.
508
4e7de155
MR
5092015-10-08 Maciej W. Rozycki <macro@imgtec.com>
510
511 * MAINTAINERS: Update my email address.
512
04c4fe8c
MM
5132015-10-08 Markus Metzger <markus.t.metzger@intel.com>
514
515 * record-btrace.c (record_btrace_resume): Fix void return.
516
f77ee802
YQ
5172015-10-07 Yao Qi <yao.qi@linaro.org>
518
519 * aarch64-tdep.c: Include opcode/aarch64.h.
520 (submask): Move it above.
521 (bit): Likewise.
522 (bits): Likewise.
523 (aarch64_software_single_step): Call aarch64_decode_insn.
524 Decode instruction by aarch64_inst instead of using
525 aarch64_decode_bcond and decode_masked_match.
526
cbd641ed
PS
5272015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
528
529 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
530 only when the file is binary.
531
ae4e2501 5322015-10-02 James Bowman <james.bowman@ftdichip.com>
533
534 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
535 subroutine handling.
536
dd0a637a
SM
5372015-10-01 Simon Marchi <simon.marchi@ericsson.com>
538
539 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
540
1fd60fc0
DE
5412015-09-30 Doug Evans <dje@google.com>
542
543 * dwarf2read.c (setup_type_unit_groups): Add comment.
544
398e0813
PA
5452015-09-30 Pedro Alves <palves@redhat.com>
546
547 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
548 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
549 (x86_linux_create_target): Don't install
550 x86_linux_always_non_stop_p.
551
6ab24463
DB
5522015-09-30 Don Breazeal <donb@codesourcery.com>
553
554 * remote.c (remote_parse_stop_reply): Call strprefix instead
555 of strncmp.
556
ede5f151
SM
5572015-09-30 Simon Marchi <simon.marchi@ericsson.com>
558
559 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
560 * gdbarch.h: Regenerate.
561 * i386-tdep.c (i386_gdbarch_init): Remove cast to
562 struct gdbarch_tdep_info *.
563 * mips-tdep.c (mips_gdbarch_init): Likewise.
564 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
565 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
566 * spu-multiarch.c (spu_gdbarch): Likewise.
567
51c935fa 5682015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
569
570 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
571 record a NULL value.
572
3b1ad7d5
KB
5732015-09-29 Kevin Buettner <kevinb@redhat.com>
574
575 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
576 and union arguments the same as pointer arguments when determining
577 size of argument.
578
86feccb9 5792015-09-29 James Bowman <james.bowman@ftdichip.com>
580
581 * ft32-tdep.c: #include "opcode/ft32.h".
582 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
583 (ft32_analyze_prologue): Use FT32_* macros.
584
2181a6c6
SM
5852015-09-28 Simon Marchi <simon.marchi@ericsson.com>
586
84d73afc 587 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
588 comment.
589
245af596
DE
5902015-09-28 Doug Evans <dje@google.com>
591
592 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
593
c402ef90
DE
5942015-09-28 Doug Evans <dje@google.com>
595
596 * common/filestuff.c (make_cleanup_close): Update comment.
597
38bc8217 5982015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
599
600 * btrace.c (parse_xml_btrace_block): Fix cast of
601 xml_find_attribute's return value.
602 * memory-map.c (memory_map_start_memory): Likewise.
603 * solib-svr4.c (library_list_start_library): Likewise.
604 * solib-target.c (library_list_start_segment): Likewise.
605 (library_list_start_section): Likewise.
606 * tracepoint.c (traceframe_info_start_memory): Likewise.
607
ba587d55
IB
6082015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
609
610 * d-namespace.c (d_lookup_symbol): New arg langdef.
611 All callers updated. Support looking up symbol as a primitive type.
612 (lookup_module_scope): New arg langdef. All callers updated.
613 Call d_lookup_symbol directly for simple bare symbols.
614
19ba03f4
SM
6152015-09-25 Simon Marchi <simon.marchi@ericsson.com>
616
617 * macrocmd.c (print_macro_callback): Add cast(s).
618 * macrotab.c (macro_bcache_str): Likewise.
619 (new_macro_definition): Likewise.
620 * main.c (captured_main): Likewise.
621 * maint.c (print_bfd_section_info): Likewise.
622 * mdebugread.c (mdebug_build_psymtabs): Likewise.
623 (basic_type): Likewise.
624 * memattr.c (mem_region_cmp): Likewise.
625 * memory-map.c (memory_map_start_memory): Likewise.
626 (memory_map_end_memory): Likewise.
627 (memory_map_start_property): Likewise.
628 (memory_map_end_property): Likewise.
629 (clear_result): Likewise.
630 * memrange.c (compare_mem_ranges): Likewise.
631 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
632 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
633 * mi/mi-console.c (mi_console_file_delete): Likewise.
634 (mi_console_file_fputs): Likewise.
635 (mi_console_raw_packet): Likewise.
636 (mi_console_file_flush): Likewise.
637 (mi_console_set_raw): Likewise.
638 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
639 (mi_new_thread): Likewise.
640 (mi_thread_exit): Likewise.
641 (mi_record_changed): Likewise.
642 (mi_inferior_added): Likewise.
643 (mi_inferior_appeared): Likewise.
644 (mi_inferior_exit): Likewise.
645 (mi_inferior_removed): Likewise.
646 (mi_interp_data): Likewise.
647 (mi_on_normal_stop): Likewise.
648 (mi_traceframe_changed): Likewise.
649 (mi_tsv_created): Likewise.
650 (mi_tsv_deleted): Likewise.
651 (mi_tsv_modified): Likewise.
652 (mi_breakpoint_created): Likewise.
653 (mi_breakpoint_deleted): Likewise.
654 (mi_breakpoint_modified): Likewise.
655 (mi_output_running_pid): Likewise.
656 (mi_inferior_count): Likewise.
657 (mi_solib_loaded): Likewise.
658 (mi_solib_unloaded): Likewise.
659 (mi_command_param_changed): Likewise.
660 (mi_memory_changed): Likewise.
661 (report_initial_inferior): Likewise.
662 (mi_ui_out): Likewise.
663 (mi_set_logging): Likewise.
664 * mi/mi-main.c (collect_cores): Likewise.
665 (print_one_inferior): Likewise.
666 (free_vector_of_ints): Likewise.
667 (free_splay_tree): Likewise.
668 (mi_execute_command): Likewise.
669 * mi/mi-out.c (mi_table_body): Likewise.
670 (mi_table_end): Likewise.
671 (mi_table_header): Likewise.
672 (mi_begin): Likewise.
673 (mi_end): Likewise.
674 (mi_field_int): Likewise.
675 (mi_field_string): Likewise.
676 (mi_field_fmt): Likewise.
677 (mi_flush): Likewise.
678 (mi_redirect): Likewise.
679 (field_separator): Likewise.
680 (mi_open): Likewise.
681 (mi_close): Likewise.
682 (mi_out_buffered): Likewise.
683 (mi_out_rewind): Likewise.
684 (mi_out_put): Likewise.
685 (mi_version): Likewise.
686 (mi_out_data_dtor): Likewise.
687 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
688 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
689 * minidebug.c (lzma_open): Likewise.
690 (lzma_pread): Likewise.
691 (lzma_close): Likewise.
692 (lzma_stat): Likewise.
693 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
694 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
695 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
696 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
697 (mips_micro_frame_cache): Likewise.
698 (mips_insn32_frame_cache): Likewise.
699 (mips_stub_frame_cache): Likewise.
700 (gdb_print_insn_mips): Likewise.
701 (value_of_mips_user_reg): Likewise.
702 (mips_gdbarch_init): Likewise.
703 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
704 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
705 (mipsnbsd_supply_gregset): Likewise.
706 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
707 (am33_collect_gregset_method): Likewise.
708 (am33_collect_fpregset_method): Likewise.
709 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
710 * moxie-tdep.c (moxie_frame_cache): Likewise.
711 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
712 (msp430_analyze_frame_prologue): Likewise.
713 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
714 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
715 (nios2_collect_gregset): Likewise.
716 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
717 (nios2_stub_frame_cache): Likewise.
718 * objc-lang.c (find_methods): Likewise.
719 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
720 (get_objfile_pspace_data): Likewise.
721 (get_objfile_bfd_data): Likewise.
722 (objfile_bfd_data_free): Likewise.
723 (add_to_objfile_sections): Likewise.
724 (do_free_objfile_cleanup): Likewise.
725 (resume_section_map_updates_cleanup): Likewise.
726 * opencl-lang.c (builtin_opencl_type): Likewise.
727 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
728 * osdata.c (osdata_start_osdata): Likewise.
729 (osdata_start_item): Likewise.
730 (osdata_start_column): Likewise.
731 (osdata_end_column): Likewise.
732 (clear_parsing_data): Likewise.
733 (osdata_free_cleanup): Likewise.
734 * parse.c (type_stack_cleanup): Likewise.
735 (exp_uses_objfile_iter): Likewise.
736 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
737 (ppc_linux_collect_gregset): Likewise.
738 (ppu2spu_prev_arch): Likewise.
739 (ppu2spu_this_id): Likewise.
740 (ppu2spu_prev_register): Likewise.
741 (ppu2spu_unwind_register): Likewise.
742 (ppu2spu_sniffer): Likewise.
743 (ppu2spu_dealloc_cache): Likewise.
744 (ppc_linux_init_abi): Likewise.
745 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
746 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
747 * progspace.c (restore_program_space): Likewise.
748 * psymtab.c (find_pc_sect_psymtab): Likewise.
749 (compare_psymbols): Likewise.
750 (psymbol_bcache_full): Likewise.
751 (allocate_psymtab): Likewise.
752 (discard_psymtabs_upto): Likewise.
753 * python/py-block.c (set_block): Likewise.
754 (del_objfile_blocks): Likewise.
755 * python/py-breakpoint.c (build_bp_list): Likewise.
756 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
757 (build_inferior_list): Likewise.
758 (py_free_inferior): Likewise.
759 * python/py-objfile.c (py_free_objfile): Likewise.
760 (objfile_to_objfile_object): Likewise.
761 * python/py-prettyprint.c (py_restore_tstate): Likewise.
762 * python/py-progspace.c (py_free_pspace): Likewise.
763 (pspace_to_pspace_object): Likewise.
764 * python/py-symbol.c (set_symbol): Likewise.
765 (del_objfile_symbols): Likewise.
766 * python/py-symtab.c (set_sal): Likewise.
767 (set_symtab): Likewise.
768 (del_objfile_symtab): Likewise.
769 (del_objfile_sal): Likewise.
770 * python/py-type.c (save_objfile_types): Likewise.
771 (set_type): Likewise.
772 * python/py-unwind.c (pyuw_prev_register): Likewise.
773 (pyuw_on_new_gdbarch): Likewise.
774 * python/py-utils.c (py_decref): Likewise.
775 (py_xdecref): Likewise.
776 (gdb_py_generic_dict): Likewise.
777 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
778 (gdbpy_clone_xmethod_worker_data): Likewise.
779 (gdbpy_get_xmethod_arg_types): Likewise.
780 (gdbpy_get_xmethod_result_type): Likewise.
781 (gdbpy_invoke_xmethod): Likewise.
782 * python/python.c (gdbpy_apply_type_printers): Likewise.
783 (gdbpy_free_type_printers): Likewise.
784 * record-btrace.c (record_btrace_disable_callback): Likewise.
785 (bfcache_hash): Likewise.
786 (bfcache_eq): Likewise.
787 (btrace_get_frame_function): Likewise.
788 (record_btrace_frame_unwind_stop_reason): Likewise.
789 (record_btrace_frame_this_id): Likewise.
790 (record_btrace_frame_prev_register): Likewise.
791 (record_btrace_frame_dealloc_cache): Likewise.
792 * record-full.c (record_full_message_wrapper): Likewise.
793 (record_full_save_cleanups): Likewise.
794 * regcache.c (regcache_descr): Likewise.
795 (do_regcache_xfree): Likewise.
796 (do_regcache_invalidate): Likewise.
797 (do_cooked_read): Likewise.
798 (regcache_transfer_regset): Likewise.
799 * reggroups.c (reggroup_add): Likewise.
800 (reggroup_next): Likewise.
801 (reggroup_prev): Likewise.
802 * remote-fileio.c (do_remote_fileio_request): Likewise.
803 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
804 (do_notif_event_xfree): Likewise.
805 * remote.c (get_remote_arch_state): Likewise.
806 (remote_pspace_data_cleanup): Likewise.
807 (get_remote_exec_file): Likewise.
808 (set_pspace_remote_exec_file): Likewise.
809 (compare_pnums): Likewise.
810 (clear_threads_listing_context): Likewise.
811 (remote_newthread_step): Likewise.
812 (start_thread): Likewise.
813 (end_thread): Likewise.
814 (remove_child_of_pending_fork): Likewise.
815 (remove_stop_reply_for_inferior): Likewise.
816 (remove_stop_reply_of_remote_state): Likewise.
817 (remote_notif_remove_once_on_match): Likewise.
818 (stop_reply_match_ptid_and_ws): Likewise.
819 (kill_child_of_pending_fork): Likewise.
820 (register_remote_g_packet_guess): Likewise.
821 (remote_read_description_p): Likewise.
822 (remote_read_description): Likewise.
823 (free_actions_list_cleanup_wrapper): Likewise.
824 (remote_async_serial_handler): Likewise.
825 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
826 (rl78_analyze_frame_prologue): Likewise.
827 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
828 (ppc_supply_fpregset): Likewise.
829 (ppc_supply_vsxregset): Likewise.
830 (ppc_supply_vrregset): Likewise.
831 (ppc_collect_gregset): Likewise.
832 (ppc_collect_fpregset): Likewise.
833 (ppc_collect_vsxregset): Likewise.
834 (ppc_collect_vrregset): Likewise.
835 (e500_move_ev_register): Likewise.
836 (do_regcache_raw_write): Likewise.
837 (rs6000_frame_cache): Likewise.
838 (rs6000_epilogue_frame_cache): Likewise.
839 (rs6000_gdbarch_init): Likewise.
840 * rx-tdep.c (rx_get_opcode_byte): Likewise.
841 (rx_analyze_frame_prologue): Likewise.
842 (rx_frame_type): Likewise.
843 (rx_frame_sniffer_common): Likewise.
844 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
845 (s390_frame_unwind_cache): Likewise.
846 (s390_stub_frame_unwind_cache): Likewise.
847 (s390_sigtramp_frame_unwind_cache): Likewise.
848 * score-tdep.c (score_make_prologue_cache): Likewise.
849 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
850 (sentinel_frame_prev_arch): Likewise.
851 * ser-base.c (fd_event): Likewise.
852 (push_event): Likewise.
853 (ser_base_write): Likewise.
854 * ser-pipe.c (pipe_close): Likewise.
855 * serial.c (serial_write): Likewise.
856 * sh-tdep.c (sh_frame_cache): Likewise.
857 (sh_stub_this_id): Likewise.
858 * sh64-tdep.c (sh64_frame_cache): Likewise.
859 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
860 (library_list_start_library): Likewise.
861 (library_list_start_list): Likewise.
862 (solib_aix_free_library_list): Likewise.
863 * solib-darwin.c (get_darwin_info): Likewise.
864 * solib-dsbt.c (get_dsbt_info): Likewise.
865 * solib-spu.c (append_ocl_sos): Likewise.
866 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
867 (get_svr4_info): Likewise.
868 (library_list_start_library): Likewise.
869 (svr4_library_list_start_list): Likewise.
870 (hash_probe_and_action): Likewise.
871 (equal_probe_and_action): Likewise.
872 (svr4_update_solib_event_breakpoint): Likewise.
873 (set_solib_svr4_fetch_link_map_offsets): Likewise.
874 (svr4_fetch_link_map_offsets): Likewise.
875 (svr4_have_link_map_offsets): Likewise.
876 * solib-target.c (library_list_start_segment): Likewise.
877 (library_list_start_section): Likewise.
878 (library_list_start_library): Likewise.
879 (library_list_end_library): Likewise.
880 (library_list_start_list): Likewise.
881 (solib_target_free_library_list): Likewise.
882 * solib.c (solib_ops): Likewise.
883 (set_solib_ops): Likewise.
884 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
885 * sparc-tdep.c (sparc_frame_cache): Likewise.
886 (sparc32_frame_cache): Likewise.
887 (sparc32_supply_gregset): Likewise.
888 (sparc32_collect_gregset): Likewise.
889 (sparc32_supply_fpregset): Likewise.
890 (sparc32_collect_fpregset): Likewise.
891 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
892 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
893 (sparc64_collect_gregset): Likewise.
894 (sparc64_supply_fpregset): Likewise.
895 (sparc64_collect_fpregset): Likewise.
896 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
897 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
898 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
899 (sparc64obsd_trapframe_cache): Likewise.
900 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
901 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
902 * spu-multiarch.c (spu_gdbarch): Likewise.
903 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
904 (spu2ppu_prev_arch): Likewise.
905 (spu2ppu_this_id): Likewise.
906 (spu2ppu_prev_register): Likewise.
907 (spu2ppu_dealloc_cache): Likewise.
908 (spu_dis_asm_print_address): Likewise.
909 (gdb_print_insn_spu): Likewise.
910 (spu_get_overlay_table): Likewise.
911 * stabsread.c (rs6000_builtin_type): Likewise.
912 * stack.c (do_print_variable_and_value): Likewise.
913 * stap-probe.c (get_stap_base_address_1): Likewise.
914 * symfile-debug.c (debug_qf_has_symbols): Likewise.
915 (debug_qf_find_last_source_symtab): Likewise.
916 (debug_qf_forget_cached_source_info): Likewise.
917 (debug_qf_map_symtabs_matching_filename): Likewise.
918 (debug_qf_lookup_symbol): Likewise.
919 (debug_qf_print_stats): Likewise.
920 (debug_qf_dump): Likewise.
921 (debug_qf_relocate): Likewise.
922 (debug_qf_expand_symtabs_for_function): Likewise.
923 (debug_qf_expand_all_symtabs): Likewise.
924 (debug_qf_expand_symtabs_with_fullname): Likewise.
925 (debug_qf_map_matching_symbols): Likewise.
926 (debug_qf_expand_symtabs_matching): Likewise.
927 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
928 (debug_qf_map_symbol_filenames): Likewise.
929 (debug_sym_get_probes): Likewise.
930 (debug_sym_new_init): Likewise.
931 (debug_sym_init): Likewise.
932 (debug_sym_read): Likewise.
933 (debug_sym_read_psymbols): Likewise.
934 (debug_sym_finish): Likewise.
935 (debug_sym_offsets): Likewise.
936 (debug_sym_read_linetable): Likewise.
937 (debug_sym_relocate): Likewise.
938 (uninstall_symfile_debug_logging): Likewise.
939 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
940 * symfile.c (place_section): Likewise.
941 (add_section_size_callback): Likewise.
942 (load_progress): Likewise.
943 (load_section_callback): Likewise.
944 (clear_memory_write_data): Likewise.
945 (allocate_symtab): Likewise.
946 * symmisc.c (maintenance_expand_file_matcher): Likewise.
947 * symtab.c (lookup_symtab_callback): Likewise.
948 (hash_demangled_name_entry): Likewise.
949 (eq_demangled_name_entry): Likewise.
950 (get_symbol_cache): Likewise.
951 (symbol_cache_cleanup): Likewise.
952 (set_symbol_cache_size): Likewise.
953 (symbol_cache_flush): Likewise.
954 (maintenance_print_symbol_cache): Likewise.
955 (maintenance_print_symbol_cache_statistics): Likewise.
956 (delete_filename_seen_cache): Likewise.
957 (output_partial_symbol_filename): Likewise.
958 (search_symbols_file_matches): Likewise.
959 (search_symbols_name_matches): Likewise.
960 (do_free_completion_list): Likewise.
961 (maybe_add_partial_symtab_filename): Likewise.
962 (get_main_info): Likewise.
963 (main_info_cleanup): Likewise.
964 * target-dcache.c (target_dcache_cleanup): Likewise.
965 (target_dcache_init_p): Likewise.
966 (target_dcache_invalidate): Likewise.
967 (target_dcache_get): Likewise.
968 (target_dcache_get_or_init): Likewise.
969 * target-descriptions.c (target_find_description): Likewise.
970 (tdesc_find_type): Likewise.
971 (tdesc_data_cleanup): Likewise.
972 (tdesc_find_arch_register): Likewise.
973 (tdesc_register_name): Likewise.
974 (tdesc_register_type): Likewise.
975 (tdesc_register_reggroup_p): Likewise.
976 (set_tdesc_pseudo_register_name): Likewise.
977 (set_tdesc_pseudo_register_type): Likewise.
978 (set_tdesc_pseudo_register_reggroup_p): Likewise.
979 (tdesc_use_registers): Likewise.
980 (free_target_description): Likewise.
981 * target-memory.c (compare_block_starting_address): Likewise.
982 (cleanup_request_data): Likewise.
983 (cleanup_write_requests_vector): Likewise.
984 * target.c (open_target): Likewise.
985 (cleanup_restore_target_terminal): Likewise.
986 (free_memory_read_result_vector): Likewise.
987 * thread.c (disable_thread_stack_temporaries): Likewise.
988 (finish_thread_state_cleanup): Likewise.
989 (do_restore_current_thread_cleanup): Likewise.
990 (restore_current_thread_cleanup_dtor): Likewise.
991 (set_thread_refcount): Likewise.
992 (tp_array_compar): Likewise.
993 (do_captured_thread_select): Likewise.
994 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
995 (tic6x_stub_this_id): Likewise.
996 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
997 * top.c (do_restore_instream_cleanup): Likewise.
998 (gdb_readline_wrapper_cleanup): Likewise.
999 (kill_or_detach): Likewise.
1000 (print_inferior_quit_action): Likewise.
1001 * tracefile-tfile.c (match_blocktype): Likewise.
1002 (build_traceframe_info): Likewise.
1003 * tracefile.c (trace_file_writer_xfree): Likewise.
1004 * tracepoint.c (memrange_cmp): Likewise.
1005 (do_collect_symbol): Likewise.
1006 (do_clear_collection_list): Likewise.
1007 (do_restore_current_traceframe_cleanup): Likewise.
1008 (restore_current_traceframe_cleanup_dtor): Likewise.
1009 (free_current_marker): Likewise.
1010 (traceframe_info_start_memory): Likewise.
1011 (traceframe_info_start_tvar): Likewise.
1012 (free_result): Likewise.
1013 * tramp-frame.c (tramp_frame_cache): Likewise.
1014 * tui/tui-file.c (tui_file_delete): Likewise.
1015 (tui_fileopen): Likewise.
1016 (tui_sfileopen): Likewise.
1017 (tui_file_isatty): Likewise.
1018 (tui_file_rewind): Likewise.
1019 (tui_file_put): Likewise.
1020 (tui_file_fputs): Likewise.
1021 (tui_file_get_strbuf): Likewise.
1022 (tui_file_adjust_strbuf): Likewise.
1023 (tui_file_flush): Likewise.
1024 * tui/tui-layout.c (make_command_window): Likewise.
1025 (make_data_window): Likewise.
1026 (show_source_disasm_command): Likewise.
1027 (show_data): Likewise.
1028 (make_source_or_disasm_window): Likewise.
1029 (show_source_or_disasm_and_command): Likewise.
1030 * tui/tui-out.c (tui_field_int): Likewise.
1031 (tui_field_string): Likewise.
1032 (tui_field_fmt): Likewise.
1033 (tui_text): Likewise.
1034 * typeprint.c (hash_typedef_field): Likewise.
1035 (eq_typedef_field): Likewise.
1036 (do_free_typedef_hash): Likewise.
1037 (copy_typedef_hash_element): Likewise.
1038 (do_free_global_table): Likewise.
1039 (find_global_typedef): Likewise.
1040 (find_typedef_in_hash): Likewise.
1041 * ui-file.c (ui_file_write_for_put): Likewise.
1042 (do_ui_file_xstrdup): Likewise.
1043 (mem_file_delete): Likewise.
1044 (mem_file_rewind): Likewise.
1045 (mem_file_put): Likewise.
1046 (mem_file_write): Likewise.
1047 (stdio_file_delete): Likewise.
1048 (stdio_file_flush): Likewise.
1049 (stdio_file_read): Likewise.
1050 (stdio_file_write): Likewise.
1051 (stdio_file_write_async_safe): Likewise.
1052 (stdio_file_fputs): Likewise.
1053 (stdio_file_isatty): Likewise.
1054 (stdio_file_fseek): Likewise.
1055 (tee_file_delete): Likewise.
1056 (tee_file_flush): Likewise.
1057 (tee_file_write): Likewise.
1058 (tee_file_fputs): Likewise.
1059 (tee_file_isatty): Likewise.
1060 * ui-out.c (do_cleanup_table_end): Likewise.
1061 (do_cleanup_end): Likewise.
1062 * user-regs.c (user_reg_add): Likewise.
1063 (user_reg_map_name_to_regnum): Likewise.
1064 (usernum_to_user_reg): Likewise.
1065 (maintenance_print_user_registers): Likewise.
1066 * utils.c (do_bfd_close_cleanup): Likewise.
1067 (do_fclose_cleanup): Likewise.
1068 (do_obstack_free): Likewise.
1069 (do_ui_file_delete): Likewise.
1070 (do_ui_out_redirect_pop): Likewise.
1071 (do_free_section_addr_info): Likewise.
1072 (restore_integer): Likewise.
1073 (do_unpush_target): Likewise.
1074 (do_htab_delete_cleanup): Likewise.
1075 (do_restore_ui_file): Likewise.
1076 (do_value_free): Likewise.
1077 (do_free_so): Likewise.
1078 (free_current_contents): Likewise.
1079 (do_regfree_cleanup): Likewise.
1080 (core_addr_hash): Likewise.
1081 (core_addr_eq): Likewise.
1082 (do_free_char_ptr_vec): Likewise.
1083 * v850-tdep.c (v850_frame_cache): Likewise.
1084 * varobj.c (do_free_variable_cleanup): Likewise.
1085 * vax-tdep.c (vax_supply_gregset): Likewise.
1086 (vax_frame_cache): Likewise.
1087 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1088 * xml-support.c (gdb_xml_body_text): Likewise.
1089 (gdb_xml_values_cleanup): Likewise.
1090 (gdb_xml_start_element): Likewise.
1091 (gdb_xml_start_element_wrapper): Likewise.
1092 (gdb_xml_end_element): Likewise.
1093 (gdb_xml_end_element_wrapper): Likewise.
1094 (gdb_xml_cleanup): Likewise.
1095 (gdb_xml_fetch_external_entity): Likewise.
1096 (gdb_xml_parse_attr_enum): Likewise.
1097 (xinclude_start_include): Likewise.
1098 (xinclude_end_include): Likewise.
1099 (xml_xinclude_default): Likewise.
1100 (xml_xinclude_start_doctype): Likewise.
1101 (xml_xinclude_end_doctype): Likewise.
1102 (xml_xinclude_cleanup): Likewise.
1103 (xml_fetch_content_from_file): Likewise.
1104 * xml-syscall.c (free_syscalls_info): Likewise.
1105 (syscall_start_syscall): Likewise.
1106 * xml-tdesc.c (tdesc_end_arch): Likewise.
1107 (tdesc_end_osabi): Likewise.
1108 (tdesc_end_compatible): Likewise.
1109 (tdesc_start_target): Likewise.
1110 (tdesc_start_feature): Likewise.
1111 (tdesc_start_reg): Likewise.
1112 (tdesc_start_union): Likewise.
1113 (tdesc_start_struct): Likewise.
1114 (tdesc_start_flags): Likewise.
1115 (tdesc_start_field): Likewise.
1116 (tdesc_start_vector): Likewise.
1117 (fetch_available_features_from_target): Likewise.
1118 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1119 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1120 (xtensa_frame_cache): Likewise.
1121 (xtensa_frame_prev_register): Likewise.
1122 (xtensa_extract_return_value): Likewise.
1123
9a3c8263
SM
11242015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1125
1126 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1127 (aarch64_make_stub_cache): Likewise.
1128 (value_of_aarch64_user_reg): Likewise.
1129 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1130 (get_ada_inferior_data): Likewise.
1131 (get_ada_pspace_data): Likewise.
1132 (ada_pspace_data_cleanup): Likewise.
1133 (ada_complete_symbol_matcher): Likewise.
1134 (ada_exc_search_name_matches): Likewise.
1135 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1136 (get_ada_tasks_inferior_data): Likewise.
1137 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1138 (splay_obstack_alloc): Likewise.
1139 (splay_obstack_free): Likewise.
1140 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1141 (alpha_linux_collect_gregset): Likewise.
1142 (alpha_linux_supply_fpregset): Likewise.
1143 (alpha_linux_collect_fpregset): Likewise.
1144 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1145 * alpha-tdep.c (alpha_lds): Likewise.
1146 (alpha_sts): Likewise.
1147 (alpha_sigtramp_frame_unwind_cache): Likewise.
1148 (alpha_heuristic_frame_unwind_cache): Likewise.
1149 (alpha_supply_int_regs): Likewise.
1150 (alpha_fill_int_regs): Likewise.
1151 (alpha_supply_fp_regs): Likewise.
1152 (alpha_fill_fp_regs): Likewise.
1153 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1154 (alphanbsd_aout_supply_gregset): Likewise.
1155 (alphanbsd_supply_gregset): Likewise.
1156 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1157 (amd64_x32_linux_init_abi): Likewise.
1158 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1159 (amd64_collect_native_gregset): Likewise.
1160 * amd64-tdep.c (amd64_frame_cache): Likewise.
1161 (amd64_sigtramp_frame_cache): Likewise.
1162 (amd64_epilogue_frame_cache): Likewise.
1163 (amd64_supply_fxsave): Likewise.
1164 (amd64_supply_xsave): Likewise.
1165 (amd64_collect_fxsave): Likewise.
1166 (amd64_collect_xsave): Likewise.
1167 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1168 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1169 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1170 (arm_linux_collect_gregset): Likewise.
1171 (arm_linux_supply_nwfpe): Likewise.
1172 (arm_linux_collect_nwfpe): Likewise.
1173 (arm_linux_supply_vfp): Likewise.
1174 (arm_linux_collect_vfp): Likewise.
1175 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1176 (arm_prologue_unwind_stop_reason): Likewise.
1177 (arm_prologue_this_id): Likewise.
1178 (arm_prologue_prev_register): Likewise.
1179 (arm_exidx_data_free): Likewise.
1180 (arm_find_exidx_entry): Likewise.
1181 (arm_stub_this_id): Likewise.
1182 (arm_m_exception_this_id): Likewise.
1183 (arm_m_exception_prev_register): Likewise.
1184 (arm_normal_frame_base): Likewise.
1185 (gdb_print_insn_arm): Likewise.
1186 (arm_objfile_data_free): Likewise.
1187 (arm_record_special_symbol): Likewise.
1188 (value_of_arm_user_reg): Likewise.
1189 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1190 (armbsd_supply_gregset): Likewise.
1191 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1192 (get_auto_load_pspace_data): Likewise.
1193 (hash_loaded_script_entry): Likewise.
1194 (eq_loaded_script_entry): Likewise.
1195 (clear_section_scripts): Likewise.
1196 (collect_matching_scripts): Likewise.
1197 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1198 (get_auxv_inferior_data): Likewise.
1199 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1200 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1201 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1202 (target_bfd_xclose): Likewise.
1203 (target_bfd_get_section_table): Likewise.
1204 * bfin-tdep.c (bfin_frame_cache): Likewise.
1205 * block.c (find_block_in_blockvector): Likewise.
1206 (call_site_for_pc): Likewise.
1207 (block_find_non_opaque_type_preferred): Likewise.
1208 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1209 (signal_catchpoint_remove_location): Likewise.
1210 (signal_catchpoint_breakpoint_hit): Likewise.
1211 (signal_catchpoint_print_one): Likewise.
1212 (signal_catchpoint_print_mention): Likewise.
1213 (signal_catchpoint_print_recreate): Likewise.
1214 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1215 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1216 (bp_location_compare_addrs): Likewise.
1217 (get_first_locp_gte_addr): Likewise.
1218 (check_tracepoint_command): Likewise.
1219 (do_map_commands_command): Likewise.
1220 (get_breakpoint_objfile_data): Likewise.
1221 (free_breakpoint_probes): Likewise.
1222 (do_captured_breakpoint_query): Likewise.
1223 (compare_breakpoints): Likewise.
1224 (bp_location_compare): Likewise.
1225 (bpstat_remove_breakpoint_callback): Likewise.
1226 (do_delete_breakpoint_cleanup): Likewise.
1227 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1228 (bsd_uthread_set_collect_uthread): Likewise.
1229 (bsd_uthread_activate): Likewise.
1230 (bsd_uthread_fetch_registers): Likewise.
1231 (bsd_uthread_store_registers): Likewise.
1232 * btrace.c (check_xml_btrace_version): Likewise.
1233 (parse_xml_btrace_block): Likewise.
1234 (parse_xml_btrace_pt_config_cpu): Likewise.
1235 (parse_xml_btrace_pt_raw): Likewise.
1236 (parse_xml_btrace_pt): Likewise.
1237 (parse_xml_btrace_conf_bts): Likewise.
1238 (parse_xml_btrace_conf_pt): Likewise.
1239 (do_btrace_data_cleanup): Likewise.
1240 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1241 * charset.c (cleanup_iconv): Likewise.
1242 (do_cleanup_iterator): Likewise.
1243 * cli-out.c (cli_uiout_dtor): Likewise.
1244 (cli_table_begin): Likewise.
1245 (cli_table_body): Likewise.
1246 (cli_table_end): Likewise.
1247 (cli_table_header): Likewise.
1248 (cli_begin): Likewise.
1249 (cli_end): Likewise.
1250 (cli_field_int): Likewise.
1251 (cli_field_skip): Likewise.
1252 (cli_field_string): Likewise.
1253 (cli_field_fmt): Likewise.
1254 (cli_spaces): Likewise.
1255 (cli_text): Likewise.
1256 (cli_message): Likewise.
1257 (cli_wrap_hint): Likewise.
1258 (cli_flush): Likewise.
1259 (cli_redirect): Likewise.
1260 (out_field_fmt): Likewise.
1261 (field_separator): Likewise.
1262 (cli_out_set_stream): Likewise.
1263 * cli/cli-cmds.c (compare_symtabs): Likewise.
1264 * cli/cli-dump.c (call_dump_func): Likewise.
1265 (restore_section_callback): Likewise.
1266 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1267 (do_restore_user_call_depth): Likewise.
1268 (do_free_command_lines_cleanup): Likewise.
1269 * coff-pe-read.c (get_section_vmas): Likewise.
1270 (pe_as16): Likewise.
1271 (pe_as32): Likewise.
1272 * coffread.c (coff_symfile_read): Likewise.
1273 * common/agent.c (agent_look_up_symbols): Likewise.
1274 * common/filestuff.c (do_close_cleanup): Likewise.
1275 * common/format.c (free_format_pieces_cleanup): Likewise.
1276 * common/vec.c (vec_o_reserve): Likewise.
1277 * compile/compile-c-support.c (print_one_macro): Likewise.
1278 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1279 (eq_symbol_error): Likewise.
1280 (del_symbol_error): Likewise.
1281 (error_symbol_once): Likewise.
1282 (gcc_convert_symbol): Likewise.
1283 (gcc_symbol_address): Likewise.
1284 (hash_symname): Likewise.
1285 (eq_symname): Likewise.
1286 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1287 (eq_type_map_instance): Likewise.
1288 (insert_type): Likewise.
1289 (convert_type): Likewise.
1290 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1291 (setup_sections): Likewise.
1292 (link_hash_table_free): Likewise.
1293 (copy_sections): Likewise.
1294 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1295 * compile/compile.c (compile_print_value): Likewise.
1296 (do_rmdir): Likewise.
1297 (cleanup_compile_instance): Likewise.
1298 (cleanup_unlink_file): Likewise.
1299 * completer.c (free_completion_tracker): Likewise.
1300 * corelow.c (add_to_spuid_list): Likewise.
1301 * cp-namespace.c (reset_directive_searched): Likewise.
1302 * cp-support.c (reset_directive_searched): Likewise.
1303 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1304 (cris_frame_unwind_cache): Likewise.
1305 * d-lang.c (builtin_d_type): Likewise.
1306 * d-namespace.c (reset_directive_searched): Likewise.
1307 * dbxread.c (dbx_free_symfile_info): Likewise.
1308 (do_free_bincl_list_cleanup): Likewise.
1309 * disasm.c (hash_dis_line_entry): Likewise.
1310 (eq_dis_line_entry): Likewise.
1311 (dis_asm_print_address): Likewise.
1312 (fprintf_disasm): Likewise.
1313 (do_ui_file_delete): Likewise.
1314 * doublest.c (convert_floatformat_to_doublest): Likewise.
1315 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1316 (dummy_frame_prev_register): Likewise.
1317 (dummy_frame_this_id): Likewise.
1318 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1319 (cache_eq): Likewise.
1320 (cache_find): Likewise.
1321 (tailcall_frame_this_id): Likewise.
1322 (dwarf2_tailcall_prev_register_first): Likewise.
1323 (tailcall_frame_prev_register): Likewise.
1324 (tailcall_frame_dealloc_cache): Likewise.
1325 (tailcall_frame_prev_arch): Likewise.
1326 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1327 (dwarf2_frame_set_init_reg): Likewise.
1328 (dwarf2_frame_init_reg): Likewise.
1329 (dwarf2_frame_set_signal_frame_p): Likewise.
1330 (dwarf2_frame_signal_frame_p): Likewise.
1331 (dwarf2_frame_set_adjust_regnum): Likewise.
1332 (dwarf2_frame_adjust_regnum): Likewise.
1333 (clear_pointer_cleanup): Likewise.
1334 (dwarf2_frame_cache): Likewise.
1335 (find_cie): Likewise.
1336 (dwarf2_frame_find_fde): Likewise.
1337 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1338 (free_dwarf_expr_context_cleanup): Likewise.
1339 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1340 (locexpr_get_frame_base): Likewise.
1341 (loclist_find_frame_base_location): Likewise.
1342 (loclist_get_frame_base): Likewise.
1343 (dwarf_expr_dwarf_call): Likewise.
1344 (dwarf_expr_get_base_type): Likewise.
1345 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1346 (dwarf_expr_get_obj_addr): Likewise.
1347 (entry_data_value_coerce_ref): Likewise.
1348 (entry_data_value_copy_closure): Likewise.
1349 (entry_data_value_free_closure): Likewise.
1350 (get_frame_address_in_block_wrapper): Likewise.
1351 (dwarf2_evaluate_property): Likewise.
1352 (dwarf2_compile_property_to_c): Likewise.
1353 (needs_frame_read_addr_from_reg): Likewise.
1354 (needs_frame_get_reg_value): Likewise.
1355 (needs_frame_frame_base): Likewise.
1356 (needs_frame_frame_cfa): Likewise.
1357 (needs_frame_tls_address): Likewise.
1358 (needs_frame_dwarf_call): Likewise.
1359 (needs_dwarf_reg_entry_value): Likewise.
1360 (get_ax_pc): Likewise.
1361 (locexpr_read_variable): Likewise.
1362 (locexpr_read_variable_at_entry): Likewise.
1363 (locexpr_read_needs_frame): Likewise.
1364 (locexpr_describe_location): Likewise.
1365 (locexpr_tracepoint_var_ref): Likewise.
1366 (locexpr_generate_c_location): Likewise.
1367 (loclist_read_variable): Likewise.
1368 (loclist_read_variable_at_entry): Likewise.
1369 (loclist_describe_location): Likewise.
1370 (loclist_tracepoint_var_ref): Likewise.
1371 (loclist_generate_c_location): Likewise.
1372 * dwarf2read.c (line_header_hash_voidp): Likewise.
1373 (line_header_eq_voidp): Likewise.
1374 (dwarf2_has_info): Likewise.
1375 (dwarf2_get_section_info): Likewise.
1376 (locate_dwz_sections): Likewise.
1377 (hash_file_name_entry): Likewise.
1378 (eq_file_name_entry): Likewise.
1379 (delete_file_name_entry): Likewise.
1380 (dw2_setup): Likewise.
1381 (dw2_get_file_names_reader): Likewise.
1382 (dw2_find_pc_sect_compunit_symtab): Likewise.
1383 (hash_signatured_type): Likewise.
1384 (eq_signatured_type): Likewise.
1385 (add_signatured_type_cu_to_table): Likewise.
1386 (create_debug_types_hash_table): Likewise.
1387 (lookup_dwo_signatured_type): Likewise.
1388 (lookup_dwp_signatured_type): Likewise.
1389 (lookup_signatured_type): Likewise.
1390 (hash_type_unit_group): Likewise.
1391 (eq_type_unit_group): Likewise.
1392 (get_type_unit_group): Likewise.
1393 (process_psymtab_comp_unit_reader): Likewise.
1394 (sort_tu_by_abbrev_offset): Likewise.
1395 (process_skeletonless_type_unit): Likewise.
1396 (psymtabs_addrmap_cleanup): Likewise.
1397 (dwarf2_read_symtab): Likewise.
1398 (psymtab_to_symtab_1): Likewise.
1399 (die_hash): Likewise.
1400 (die_eq): Likewise.
1401 (load_full_comp_unit_reader): Likewise.
1402 (reset_die_in_process): Likewise.
1403 (free_cu_line_header): Likewise.
1404 (handle_DW_AT_stmt_list): Likewise.
1405 (hash_dwo_file): Likewise.
1406 (eq_dwo_file): Likewise.
1407 (hash_dwo_unit): Likewise.
1408 (eq_dwo_unit): Likewise.
1409 (create_dwo_cu_reader): Likewise.
1410 (create_dwo_unit_in_dwp_v1): Likewise.
1411 (create_dwo_unit_in_dwp_v2): Likewise.
1412 (lookup_dwo_unit_in_dwp): Likewise.
1413 (dwarf2_locate_dwo_sections): Likewise.
1414 (dwarf2_locate_common_dwp_sections): Likewise.
1415 (dwarf2_locate_v2_dwp_sections): Likewise.
1416 (hash_dwp_loaded_cutus): Likewise.
1417 (eq_dwp_loaded_cutus): Likewise.
1418 (lookup_dwo_cutu): Likewise.
1419 (abbrev_table_free_cleanup): Likewise.
1420 (dwarf2_free_abbrev_table): Likewise.
1421 (find_partial_die_in_comp_unit): Likewise.
1422 (free_line_header_voidp): Likewise.
1423 (follow_die_offset): Likewise.
1424 (follow_die_sig_1): Likewise.
1425 (free_heap_comp_unit): Likewise.
1426 (free_stack_comp_unit): Likewise.
1427 (dwarf2_free_objfile): Likewise.
1428 (per_cu_offset_and_type_hash): Likewise.
1429 (per_cu_offset_and_type_eq): Likewise.
1430 (get_die_type_at_offset): Likewise.
1431 (partial_die_hash): Likewise.
1432 (partial_die_eq): Likewise.
1433 (dwarf2_per_objfile_free): Likewise.
1434 (hash_strtab_entry): Likewise.
1435 (eq_strtab_entry): Likewise.
1436 (add_string): Likewise.
1437 (hash_symtab_entry): Likewise.
1438 (eq_symtab_entry): Likewise.
1439 (delete_symtab_entry): Likewise.
1440 (cleanup_mapped_symtab): Likewise.
1441 (add_indices_to_cpool): Likewise.
1442 (hash_psymtab_cu_index): Likewise.
1443 (eq_psymtab_cu_index): Likewise.
1444 (add_address_entry_worker): Likewise.
1445 (unlink_if_set): Likewise.
1446 (write_one_signatured_type): Likewise.
1447 (save_gdb_index_command): Likewise.
1448 * elfread.c (elf_symtab_read): Likewise.
1449 (elf_gnu_ifunc_cache_hash): Likewise.
1450 (elf_gnu_ifunc_cache_eq): Likewise.
1451 (elf_gnu_ifunc_record_cache): Likewise.
1452 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1453 (elf_get_probes): Likewise.
1454 (probe_key_free): Likewise.
1455 * f-lang.c (builtin_f_type): Likewise.
1456 * frame-base.c (frame_base_append_sniffer): Likewise.
1457 (frame_base_set_default): Likewise.
1458 (frame_base_find_by_frame): Likewise.
1459 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1460 (frame_unwind_append_unwinder): Likewise.
1461 (frame_unwind_find_by_frame): Likewise.
1462 * frame.c (frame_addr_hash): Likewise.
1463 (frame_addr_hash_eq): Likewise.
1464 (frame_stash_find): Likewise.
1465 (do_frame_register_read): Likewise.
1466 (unwind_to_current_frame): Likewise.
1467 (frame_cleanup_after_sniffer): Likewise.
1468 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1469 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1470 * ft32-tdep.c (ft32_frame_cache): Likewise.
1471 * gcore.c (do_bfd_delete_cleanup): Likewise.
1472 (gcore_create_callback): Likewise.
1473 * gdb_bfd.c (hash_bfd): Likewise.
1474 (eq_bfd): Likewise.
1475 (gdb_bfd_open): Likewise.
1476 (free_one_bfd_section): Likewise.
1477 (gdb_bfd_ref): Likewise.
1478 (gdb_bfd_unref): Likewise.
1479 (get_section_descriptor): Likewise.
1480 (gdb_bfd_map_section): Likewise.
1481 (gdb_bfd_crc): Likewise.
1482 (gdb_bfd_mark_parent): Likewise.
1483 (gdb_bfd_record_inclusion): Likewise.
1484 (gdb_bfd_requires_relocations): Likewise.
1485 (print_one_bfd): Likewise.
1486 * gdbtypes.c (type_pair_hash): Likewise.
1487 (type_pair_eq): Likewise.
1488 (builtin_type): Likewise.
1489 (objfile_type): Likewise.
1490 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1491 (vtable_address_point_offset): Likewise.
1492 (gnuv3_get_vtable): Likewise.
1493 (hash_value_and_voffset): Likewise.
1494 (eq_value_and_voffset): Likewise.
1495 (compare_value_and_voffset): Likewise.
1496 (compute_vtable_size): Likewise.
1497 (gnuv3_get_typeid_type): Likewise.
1498 * go-lang.c (builtin_go_type): Likewise.
1499 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1500 (bkscm_eq_block_smob): Likewise.
1501 (bkscm_objfile_block_map): Likewise.
1502 (bkscm_del_objfile_blocks): Likewise.
1503 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1504 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1505 (gdbscm_disasm_print_address): Likewise.
1506 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1507 (frscm_eq_frame_smob): Likewise.
1508 (frscm_inferior_frame_map): Likewise.
1509 (frscm_del_inferior_frames): Likewise.
1510 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1511 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1512 (ofscm_objfile_smob_from_objfile): Likewise.
1513 * guile/scm-ports.c (ioscm_write): Likewise.
1514 (ioscm_file_port_delete): Likewise.
1515 (ioscm_file_port_rewind): Likewise.
1516 (ioscm_file_port_put): Likewise.
1517 (ioscm_file_port_write): Likewise.
1518 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1519 (psscm_pspace_smob_from_pspace): Likewise.
1520 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1521 (scscm_recording_unwind_handler): Likewise.
1522 (gdbscm_with_catch): Likewise.
1523 (scscm_call_0_body): Likewise.
1524 (scscm_call_1_body): Likewise.
1525 (scscm_call_2_body): Likewise.
1526 (scscm_call_3_body): Likewise.
1527 (scscm_call_4_body): Likewise.
1528 (scscm_apply_1_body): Likewise.
1529 (scscm_eval_scheme_string): Likewise.
1530 (gdbscm_safe_eval_string): Likewise.
1531 (scscm_source_scheme_script): Likewise.
1532 (gdbscm_safe_source_script): Likewise.
1533 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1534 (gdbscm_call_scm_from_stringn): Likewise.
1535 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1536 (syscm_eq_symbol_smob): Likewise.
1537 (syscm_get_symbol_map): Likewise.
1538 (syscm_del_objfile_symbols): Likewise.
1539 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1540 (stscm_eq_symtab_smob): Likewise.
1541 (stscm_objfile_symtab_map): Likewise.
1542 (stscm_del_objfile_symtabs): Likewise.
1543 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1544 (tyscm_eq_type_smob): Likewise.
1545 (tyscm_type_map): Likewise.
1546 (tyscm_copy_type_recursive): Likewise.
1547 (save_objfile_types): Likewise.
1548 * guile/scm-utils.c (extract_arg): Likewise.
1549 * h8300-tdep.c (h8300_frame_cache): Likewise.
1550 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1551 * hppa-tdep.c (compare_unwind_entries): Likewise.
1552 (find_unwind_entry): Likewise.
1553 (hppa_frame_cache): Likewise.
1554 (hppa_stub_frame_unwind_cache): Likewise.
1555 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1556 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1557 (hppaobsd_supply_fpregset): Likewise.
1558 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1559 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1560 * i386-tdep.c (i386_frame_cache): Likewise.
1561 (i386_epilogue_frame_cache): Likewise.
1562 (i386_sigtramp_frame_cache): Likewise.
1563 (i386_supply_gregset): Likewise.
1564 (i386_collect_gregset): Likewise.
1565 (i386_gdbarch_init): Likewise.
1566 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1567 (i386obsd_trapframe_cache): Likewise.
1568 * i387-tdep.c (i387_supply_fsave): Likewise.
1569 (i387_collect_fsave): Likewise.
1570 (i387_supply_fxsave): Likewise.
1571 (i387_collect_fxsave): Likewise.
1572 (i387_supply_xsave): Likewise.
1573 (i387_collect_xsave): Likewise.
1574 * ia64-tdep.c (ia64_frame_cache): Likewise.
1575 (ia64_sigtramp_frame_cache): Likewise.
1576 * infcmd.c (attach_command_continuation): Likewise.
1577 (attach_command_continuation_free_args): Likewise.
1578 * inferior.c (restore_inferior): Likewise.
1579 (delete_thread_of_inferior): Likewise.
1580 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1581 (get_inflow_inferior_data): Likewise.
1582 (inflow_inferior_exit): Likewise.
1583 * infrun.c (displaced_step_clear_cleanup): Likewise.
1584 (restore_current_uiout_cleanup): Likewise.
1585 (release_stop_context_cleanup): Likewise.
1586 (do_restore_infcall_suspend_state_cleanup): Likewise.
1587 (do_restore_infcall_control_state_cleanup): Likewise.
1588 (restore_inferior_ptid): Likewise.
1589 * inline-frame.c (block_starting_point_at): Likewise.
1590 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1591 * jit.c (get_jit_objfile_data): Likewise.
1592 (get_jit_program_space_data): Likewise.
1593 (jit_object_close_impl): Likewise.
1594 (jit_find_objf_with_entry_addr): Likewise.
1595 (jit_breakpoint_deleted): Likewise.
1596 (jit_unwind_reg_set_impl): Likewise.
1597 (jit_unwind_reg_get_impl): Likewise.
1598 (jit_dealloc_cache): Likewise.
1599 (jit_frame_sniffer): Likewise.
1600 (jit_frame_prev_register): Likewise.
1601 (jit_prepend_unwinder): Likewise.
1602 (jit_inferior_exit_hook): Likewise.
1603 (free_objfile_data): Likewise.
1604 * jv-lang.c (jv_per_objfile_free): Likewise.
1605 (get_dynamics_objfile): Likewise.
1606 (get_java_class_symtab): Likewise.
1607 (builtin_java_type): Likewise.
1608 * language.c (language_string_char_type): Likewise.
1609 (language_bool_type): Likewise.
1610 (language_lookup_primitive_type): Likewise.
1611 (language_lookup_primitive_type_as_symbol): Likewise.
1612 * linespec.c (hash_address_entry): Likewise.
1613 (eq_address_entry): Likewise.
1614 (iterate_inline_only): Likewise.
1615 (iterate_name_matcher): Likewise.
1616 (decode_line_2_compare_items): Likewise.
1617 (collect_one_symbol): Likewise.
1618 (compare_symbols): Likewise.
1619 (compare_msymbols): Likewise.
1620 (add_symtabs_to_list): Likewise.
1621 (collect_symbols): Likewise.
1622 (compare_msyms): Likewise.
1623 (add_minsym): Likewise.
1624 (cleanup_linespec_result): Likewise.
1625 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1626 * linux-nat.c (delete_lwp_cleanup): Likewise.
1627 (count_events_callback): Likewise.
1628 (select_event_lwp_callback): Likewise.
1629 (resume_stopped_resumed_lwps): Likewise.
1630 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1631 (invalidate_linux_cache_inf): Likewise.
1632 (get_linux_inferior_data): Likewise.
1633 (linux_find_memory_regions_thunk): Likewise.
1634 (linux_make_mappings_callback): Likewise.
1635 (linux_corefile_thread_callback): Likewise.
1636 (find_mapping_size): Likewise.
1637 * linux-thread-db.c (find_new_threads_callback): Likewise.
1638 * lm32-tdep.c (lm32_frame_cache): Likewise.
1639 * m2-lang.c (builtin_m2_type): Likewise.
1640 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1641 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1642 (m32r_linux_supply_gregset): Likewise.
1643 (m32r_linux_collect_gregset): Likewise.
1644 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1645 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1646 * m68k-tdep.c (m68k_frame_cache): Likewise.
1647 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1648 (m68kbsd_supply_gregset): Likewise.
1649 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1650 * m88k-tdep.c (m88k_frame_cache): Likewise.
1651 (m88k_supply_gregset): Likewise.
1652
224c3ddb
SM
16532015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1654
1655 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1656 to allocation result assignment.
1657 * ada-exp.y (write_object_renaming): Likewise.
1658 (write_ambiguous_var): Likewise.
1659 (ada_nget_field_index): Likewise.
1660 (write_var_or_type): Likewise.
1661 * ada-lang.c (ada_decode_symbol): Likewise.
1662 (ada_value_assign): Likewise.
1663 (value_pointer): Likewise.
1664 (cache_symbol): Likewise.
1665 (add_nonlocal_symbols): Likewise.
1666 (ada_name_for_lookup): Likewise.
1667 (symbol_completion_add): Likewise.
1668 (ada_to_fixed_type_1): Likewise.
1669 (ada_get_next_arg): Likewise.
1670 (defns_collected): Likewise.
1671 * ada-lex.l (processId): Likewise.
1672 (processString): Likewise.
1673 * ada-tasks.c (read_known_tasks_array): Likewise.
1674 (read_known_tasks_list): Likewise.
1675 * ada-typeprint.c (decoded_type_name): Likewise.
1676 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1677 * amd64-tdep.c (amd64_push_arguments): Likewise.
1678 (amd64_displaced_step_copy_insn): Likewise.
1679 (amd64_classify_insn_at): Likewise.
1680 (amd64_relocate_instruction): Likewise.
1681 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1682 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1683 (initialize_current_architecture): Likewise.
1684 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1685 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1686 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1687 (arm_push_dummy_call): Likewise.
1688 (extend_buffer_earlier): Likewise.
1689 (arm_adjust_breakpoint_address): Likewise.
1690 (arm_skip_stub): Likewise.
1691 * auto-load.c (filename_is_in_pattern): Likewise.
1692 (maybe_add_script_file): Likewise.
1693 (maybe_add_script_text): Likewise.
1694 (auto_load_objfile_script_1): Likewise.
1695 * auxv.c (ld_so_xfer_auxv): Likewise.
1696 * ax-general.c (new_agent_expr): Likewise.
1697 (grow_expr): Likewise.
1698 (ax_reg_mask): Likewise.
1699 * bcache.c (bcache_full): Likewise.
1700 * breakpoint.c (program_breakpoint_here_p): Likewise.
1701 * btrace.c (parse_xml_raw): Likewise.
1702 * build-id.c (build_id_to_debug_bfd): Likewise.
1703 * buildsym.c (end_symtab_with_blockvector): Likewise.
1704 * c-exp.y (string_exp): Likewise.
1705 (qualified_name): Likewise.
1706 (write_destructor_name): Likewise.
1707 (operator_stoken): Likewise.
1708 (parse_number): Likewise.
1709 (scan_macro_expansion): Likewise.
1710 (yylex): Likewise.
1711 (c_print_token): Likewise.
1712 * c-lang.c (c_get_string): Likewise.
1713 (emit_numeric_character): Likewise.
1714 * charset.c (wchar_iterate): Likewise.
1715 * cli/cli-cmds.c (complete_command): Likewise.
1716 (make_command): Likewise.
1717 * cli/cli-dump.c (restore_section_callback): Likewise.
1718 (restore_binary_file): Likewise.
1719 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1720 * cli/cli-script.c (execute_control_command): Likewise.
1721 * cli/cli-setshow.c (do_set_command): Likewise.
1722 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1723 (read_pe_exported_syms): Likewise.
1724 * coffread.c (coff_read_struct_type): Likewise.
1725 (coff_read_enum_type): Likewise.
1726 * common/btrace-common.c (btrace_data_append): Likewise.
1727 * common/buffer.c (buffer_grow): Likewise.
1728 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1729 * common/format.c (parse_format_string): Likewise.
1730 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1731 * common/xml-utils.c (xml_escape_text): Likewise.
1732 * compile/compile-object-load.c (copy_sections): Likewise.
1733 (compile_object_load): Likewise.
1734 * compile/compile-object-run.c (compile_object_run): Likewise.
1735 * completer.c (filename_completer): Likewise.
1736 * corefile.c (read_memory_typed_address): Likewise.
1737 (write_memory_unsigned_integer): Likewise.
1738 (write_memory_signed_integer): Likewise.
1739 (complete_set_gnutarget): Likewise.
1740 * corelow.c (get_core_register_section): Likewise.
1741 * cp-name-parser.y (d_grab): Likewise.
1742 (allocate_info): Likewise.
1743 (cp_new_demangle_parse_info): Likewise.
1744 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1745 (cp_lookup_symbol_in_namespace): Likewise.
1746 (lookup_namespace_scope): Likewise.
1747 (find_symbol_in_baseclass): Likewise.
1748 (cp_lookup_nested_symbol): Likewise.
1749 (cp_lookup_transparent_type_loop): Likewise.
1750 * cp-support.c (copy_string_to_obstack): Likewise.
1751 (make_symbol_overload_list): Likewise.
1752 (make_symbol_overload_list_namespace): Likewise.
1753 (make_symbol_overload_list_adl_namespace): Likewise.
1754 (first_component_command): Likewise.
1755 * cp-valprint.c (cp_print_value): Likewise.
1756 * ctf.c (ctf_xfer_partial): Likewise.
1757 * d-exp.y (StringExp): Likewise.
1758 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1759 (lookup_module_scope): Likewise.
1760 (find_symbol_in_baseclass): Likewise.
1761 (d_lookup_nested_symbol): Likewise.
1762 * dbxread.c (find_stab_function_addr): Likewise.
1763 (read_dbx_symtab): Likewise.
1764 (dbx_end_psymtab): Likewise.
1765 (cp_set_block_scope): Likewise.
1766 * dcache.c (dcache_alloc): Likewise.
1767 * demangle.c (_initialize_demangler): Likewise.
1768 * dicos-tdep.c (dicos_load_module_p): Likewise.
1769 * dictionary.c (dict_create_hashed_expandable): Likewise.
1770 (dict_create_linear_expandable): Likewise.
1771 (expand_hashtable): Likewise.
1772 (add_symbol_linear_expandable): Likewise.
1773 * dwarf2-frame.c (add_cie): Likewise.
1774 (add_fde): Likewise.
1775 (dwarf2_build_frame_info): Likewise.
1776 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1777 (dwarf_expr_fetch_address): Likewise.
1778 (add_piece): Likewise.
1779 (execute_stack_op): Likewise.
1780 * dwarf2loc.c (chain_candidate): Likewise.
1781 (dwarf_entry_parameter_to_value): Likewise.
1782 (read_pieced_value): Likewise.
1783 (write_pieced_value): Likewise.
1784 * dwarf2read.c (dwarf2_read_section): Likewise.
1785 (add_type_unit): Likewise.
1786 (read_comp_units_from_section): Likewise.
1787 (fixup_go_packaging): Likewise.
1788 (dwarf2_compute_name): Likewise.
1789 (dwarf2_physname): Likewise.
1790 (create_dwo_unit_in_dwp_v1): Likewise.
1791 (create_dwo_unit_in_dwp_v2): Likewise.
1792 (read_func_scope): Likewise.
1793 (read_call_site_scope): Likewise.
1794 (dwarf2_attach_fields_to_type): Likewise.
1795 (process_structure_scope): Likewise.
1796 (mark_common_block_symbol_computed): Likewise.
1797 (read_common_block): Likewise.
1798 (abbrev_table_read_table): Likewise.
1799 (guess_partial_die_structure_name): Likewise.
1800 (fixup_partial_die): Likewise.
1801 (add_file_name): Likewise.
1802 (dwarf2_const_value_data): Likewise.
1803 (dwarf2_const_value_attr): Likewise.
1804 (build_error_marker_type): Likewise.
1805 (guess_full_die_structure_name): Likewise.
1806 (anonymous_struct_prefix): Likewise.
1807 (typename_concat): Likewise.
1808 (dwarf2_canonicalize_name): Likewise.
1809 (dwarf2_name): Likewise.
1810 (write_constant_as_bytes): Likewise.
1811 (dwarf2_fetch_constant_bytes): Likewise.
1812 (copy_string): Likewise.
1813 (parse_macro_definition): Likewise.
1814 * elfread.c (elf_symfile_segments): Likewise.
1815 (elf_rel_plt_read): Likewise.
1816 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1817 (elf_gnu_ifunc_resolve_by_got): Likewise.
1818 (elf_read_minimal_symbols): Likewise.
1819 (elf_gnu_ifunc_record_cache): Likewise.
1820 * event-top.c (top_level_prompt): Likewise.
1821 (command_line_handler): Likewise.
1822 * exec.c (resize_section_table): Likewise.
1823 * expprint.c (print_subexp_standard): Likewise.
1824 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1825 * findcmd.c (parse_find_args): Likewise.
1826 * findvar.c (address_from_register): Likewise.
1827 * frame.c (get_prev_frame_always): Likewise.
1828 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1829 (get_section_descriptor): Likewise.
1830 * gdb_obstack.c (obconcat): Likewise.
1831 (obstack_strdup): Likewise.
1832 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1833 (create_set_type): Likewise.
1834 (lookup_unsigned_typename): Likewise.
1835 (lookup_signed_typename): Likewise.
1836 (resolve_dynamic_union): Likewise.
1837 (resolve_dynamic_struct): Likewise.
1838 (add_dyn_prop): Likewise.
1839 (copy_dynamic_prop_list): Likewise.
1840 (arch_flags_type): Likewise.
1841 (append_composite_type_field_raw): Likewise.
1842 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1843 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1844 * go-exp.y (string_exp): Likewise.
1845 * go-lang.c (go_demangle): Likewise.
1846 * guile/guile.c (compute_scheme_string): Likewise.
1847 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1848 (gdbscm_canonicalize_command_name): Likewise.
1849 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1850 (ioscm_init_memory_port): Likewise.
1851 (ioscm_reinit_memory_port): Likewise.
1852 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1853 (gdbscm_gc_dup_argv): Likewise.
1854 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1855 * hppa-tdep.c (internalize_unwinds): Likewise.
1856 (read_unwind_info): Likewise.
1857 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1858 (windows_core_xfer_shared_libraries): Likewise.
1859 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1860 (i386_stap_parse_special_token_triplet): Likewise.
1861 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1862 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1863 * inf-child.c (inf_child_fileio_readlink): Likewise.
1864 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1865 (inf_ptrace_store_register): Likewise.
1866 * infrun.c (follow_exec): Likewise.
1867 (displaced_step_prepare_throw): Likewise.
1868 (save_stop_context): Likewise.
1869 (save_infcall_suspend_state): Likewise.
1870 * jit.c (jit_read_descriptor): Likewise.
1871 (jit_read_code_entry): Likewise.
1872 (jit_symtab_line_mapping_add_impl): Likewise.
1873 (finalize_symtab): Likewise.
1874 (jit_unwind_reg_get_impl): Likewise.
1875 * jv-exp.y (QualifiedName): Likewise.
1876 * jv-lang.c (get_java_utf8_name): Likewise.
1877 (type_from_class): Likewise.
1878 (java_demangle_type_signature): Likewise.
1879 (java_class_name_from_physname): Likewise.
1880 * jv-typeprint.c (java_type_print_base): Likewise.
1881 * jv-valprint.c (java_value_print): Likewise.
1882 * language.c (add_language): Likewise.
1883 * linespec.c (add_sal_to_sals_basic): Likewise.
1884 (add_sal_to_sals): Likewise.
1885 (decode_objc): Likewise.
1886 (find_linespec_symbols): Likewise.
1887 * linux-fork.c (fork_save_infrun_state): Likewise.
1888 * linux-nat.c (linux_nat_detach): Likewise.
1889 (linux_nat_fileio_readlink): Likewise.
1890 * linux-record.c (record_linux_sockaddr): Likewise.
1891 (record_linux_msghdr): Likewise.
1892 (Do): Likewise.
1893 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1894 (linux_collect_regset_section_cb): Likewise.
1895 (linux_get_siginfo_data): Likewise.
1896 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1897 (try_thread_db_load_from_dir): Likewise.
1898 (thread_db_load_search): Likewise.
1899 (info_auto_load_libthread_db): Likewise.
1900 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1901 (m32c_m16c_pointer_to_address): Likewise.
1902 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1903 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1904 * machoread.c (macho_check_dsym): Likewise.
1905 * macroexp.c (resize_buffer): Likewise.
1906 (gather_arguments): Likewise.
1907 (maybe_expand): Likewise.
1908 * macrotab.c (new_macro_key): Likewise.
1909 (new_source_file): Likewise.
1910 (new_macro_definition): Likewise.
1911 * mdebugread.c (parse_symbol): Likewise.
1912 (parse_type): Likewise.
1913 (parse_partial_symbols): Likewise.
1914 (psymtab_to_symtab_1): Likewise.
1915 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1916 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1917 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1918 (mi_cmd_data_read_memory_bytes): Likewise.
1919 (mi_cmd_data_write_memory_bytes): Likewise.
1920 (mi_cmd_trace_frame_collected): Likewise.
1921 * mi/mi-parse.c (mi_parse_argv): Likewise.
1922 (mi_parse): Likewise.
1923 * minidebug.c (lzma_open): Likewise.
1924 (lzma_pread): Likewise.
1925 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1926 (mips_print_fp_register): Likewise.
1927 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1928 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1929 * mt-tdep.c (mt_register_name): Likewise.
1930 (mt_registers_info): Likewise.
1931 (mt_push_dummy_call): Likewise.
1932 * namespace.c (add_using_directive): Likewise.
1933 * nat/linux-btrace.c (perf_event_read): Likewise.
1934 (linux_enable_bts): Likewise.
1935 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1936 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1937 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1938 (nto_parse_redirection): Likewise.
1939 * objc-lang.c (objc_demangle): Likewise.
1940 (find_methods): Likewise.
1941 * objfiles.c (get_objfile_bfd_data): Likewise.
1942 (set_objfile_main_name): Likewise.
1943 (allocate_objfile): Likewise.
1944 (objfile_relocate): Likewise.
1945 (update_section_map): Likewise.
1946 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1947 * p-exp.y (exp): Likewise.
1948 (yylex): Likewise.
1949 * p-valprint.c (pascal_object_print_value): Likewise.
1950 * parse.c (initialize_expout): Likewise.
1951 (mark_completion_tag): Likewise.
1952 (copy_name): Likewise.
1953 (parse_float): Likewise.
1954 (type_stack_reserve): Likewise.
1955 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1956 (ppu2spu_prev_register): Likewise.
1957 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1958 * printcmd.c (printf_wide_c_string): Likewise.
1959 (printf_pointer): Likewise.
1960 * probe.c (parse_probes): Likewise.
1961 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1962 (cmdpy_init): Likewise.
1963 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1964 * python/py-symtab.c (set_sal): Likewise.
1965 * python/py-unwind.c (pyuw_sniffer): Likewise.
1966 * python/python.c (python_interactive_command): Likewise.
1967 (compute_python_string): Likewise.
1968 * ravenscar-thread.c (get_running_thread_id): Likewise.
1969 * record-full.c (record_full_exec_insn): Likewise.
1970 (record_full_core_open_1): Likewise.
1971 * regcache.c (regcache_raw_read_signed): Likewise.
1972 (regcache_raw_read_unsigned): Likewise.
1973 (regcache_cooked_read_signed): Likewise.
1974 (regcache_cooked_read_unsigned): Likewise.
1975 * remote-fileio.c (remote_fileio_func_open): Likewise.
1976 (remote_fileio_func_rename): Likewise.
1977 (remote_fileio_func_unlink): Likewise.
1978 (remote_fileio_func_stat): Likewise.
1979 (remote_fileio_func_system): Likewise.
1980 * remote-mips.c (mips_xfer_memory): Likewise.
1981 (mips_load_srec): Likewise.
1982 (pmon_end_download): Likewise.
1983 * remote.c (new_remote_state): Likewise.
1984 (map_regcache_remote_table): Likewise.
1985 (remote_register_number_and_offset): Likewise.
1986 (init_remote_state): Likewise.
1987 (get_memory_packet_size): Likewise.
1988 (remote_pass_signals): Likewise.
1989 (remote_program_signals): Likewise.
1990 (remote_start_remote): Likewise.
1991 (remote_check_symbols): Likewise.
1992 (remote_query_supported): Likewise.
1993 (extended_remote_attach): Likewise.
1994 (process_g_packet): Likewise.
1995 (store_registers_using_G): Likewise.
1996 (putpkt_binary): Likewise.
1997 (read_frame): Likewise.
1998 (compare_sections_command): Likewise.
1999 (remote_hostio_pread): Likewise.
2000 (remote_hostio_readlink): Likewise.
2001 (remote_file_put): Likewise.
2002 (remote_file_get): Likewise.
2003 (remote_pid_to_exec_file): Likewise.
2004 (_initialize_remote): Likewise.
2005 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2006 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2007 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2008 (bfd_uses_spe_extensions): Likewise.
2009 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2010 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2011 * solib-dsbt.c (decode_loadmap): Likewise.
2012 (fetch_loadmap): Likewise.
2013 (scan_dyntag): Likewise.
2014 (enable_break): Likewise.
2015 (dsbt_relocate_main_executable): Likewise.
2016 * solib-frv.c (fetch_loadmap): Likewise.
2017 (enable_break2): Likewise.
2018 (frv_relocate_main_executable): Likewise.
2019 * solib-spu.c (spu_relocate_main_executable): Likewise.
2020 (spu_bfd_open): Likewise.
2021 * solib-svr4.c (lm_info_read): Likewise.
2022 (read_program_header): Likewise.
2023 (find_program_interpreter): Likewise.
2024 (scan_dyntag): Likewise.
2025 (elf_locate_base): Likewise.
2026 (open_symbol_file_object): Likewise.
2027 (read_program_headers_from_bfd): Likewise.
2028 (svr4_relocate_main_executable): Likewise.
2029 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2030 * solib.c (solib_find_1): Likewise.
2031 (exec_file_find): Likewise.
2032 (solib_find): Likewise.
2033 * source.c (openp): Likewise.
2034 (print_source_lines_base): Likewise.
2035 (forward_search_command): Likewise.
2036 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2037 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2038 (spu_get_overlay_table): Likewise.
2039 * stabsread.c (patch_block_stabs): Likewise.
2040 (define_symbol): Likewise.
2041 (again:): Likewise.
2042 (read_member_functions): Likewise.
2043 (read_one_struct_field): Likewise.
2044 (read_enum_type): Likewise.
2045 (common_block_start): Likewise.
2046 * stack.c (read_frame_arg): Likewise.
2047 (backtrace_command): Likewise.
2048 * stap-probe.c (stap_parse_register_operand): Likewise.
2049 * symfile.c (syms_from_objfile_1): Likewise.
2050 (find_separate_debug_file): Likewise.
2051 (load_command): Likewise.
2052 (load_progress): Likewise.
2053 (load_section_callback): Likewise.
2054 (reread_symbols): Likewise.
2055 (add_filename_language): Likewise.
2056 (allocate_compunit_symtab): Likewise.
2057 (read_target_long_array): Likewise.
2058 (simple_read_overlay_table): Likewise.
2059 * symtab.c (symbol_set_names): Likewise.
2060 (resize_symbol_cache): Likewise.
2061 (rbreak_command): Likewise.
2062 (completion_list_add_name): Likewise.
2063 (completion_list_objc_symbol): Likewise.
2064 (add_filename_to_list): Likewise.
2065 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2066 * target-memory.c (target_write_memory_blocks): Likewise.
2067 * target.c (target_read_string): Likewise.
2068 (read_whatever_is_readable): Likewise.
2069 (target_read_alloc_1): Likewise.
2070 (simple_search_memory): Likewise.
2071 (target_fileio_read_alloc_1): Likewise.
2072 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2073 * top.c (command_line_input): Likewise.
2074 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2075 * tracefile.c (tracefile_fetch_registers): Likewise.
2076 * tracepoint.c (add_memrange): Likewise.
2077 (init_collection_list): Likewise.
2078 (add_aexpr): Likewise.
2079 (trace_dump_actions): Likewise.
2080 (parse_trace_status): Likewise.
2081 (parse_tracepoint_definition): Likewise.
2082 (parse_tsv_definition): Likewise.
2083 (parse_static_tracepoint_marker_definition): Likewise.
2084 * tui/tui-file.c (tui_sfileopen): Likewise.
2085 (tui_file_adjust_strbuf): Likewise.
2086 * tui/tui-io.c (tui_expand_tabs): Likewise.
2087 * tui/tui-source.c (tui_set_source_content): Likewise.
2088 * typeprint.c (find_global_typedef): Likewise.
2089 * ui-file.c (do_ui_file_xstrdup): Likewise.
2090 (ui_file_obsavestring): Likewise.
2091 (mem_file_write): Likewise.
2092 * utils.c (make_hex_string): Likewise.
2093 (get_regcomp_error): Likewise.
2094 (puts_filtered_tabular): Likewise.
2095 (gdb_realpath_keepfile): Likewise.
2096 (ldirname): Likewise.
2097 (gdb_bfd_errmsg): Likewise.
2098 (substitute_path_component): Likewise.
2099 * valops.c (search_struct_method): Likewise.
2100 (find_oload_champ_namespace_loop): Likewise.
2101 * valprint.c (print_decimal_chars): Likewise.
2102 (read_string): Likewise.
2103 (generic_emit_char): Likewise.
2104 * varobj.c (varobj_delete): Likewise.
2105 (varobj_value_get_print_value): Likewise.
2106 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2107 * windows-tdep.c (display_one_tib): Likewise.
2108 * xcoffread.c (read_xcoff_symtab): Likewise.
2109 (process_xcoff_symbol): Likewise.
2110 (swap_sym): Likewise.
2111 (scan_xcoff_symtab): Likewise.
2112 (xcoff_initial_scan): Likewise.
2113 * xml-support.c (gdb_xml_end_element): Likewise.
2114 (xml_process_xincludes): Likewise.
2115 (xml_fetch_content_from_file): Likewise.
2116 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2117 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2118
623fb775 21192015-09-23 James Bowman <james.bowman@ftdichip.com>
2120
2121 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2122 instead of builtin_func_ptr.
2123 (ft32_pointer_to_address): New function.
2124 (ft32_address_class_type_flags): New function.
2125 (ft32_address_class_type_flags_to_name): New function.
2126 (ft32_address_class_name_to_type_flags): New function.
2127 (ft32_gdbarch_init): Set tdep->pc_type. Call
2128 set_gdbarch_pointer_to_address,
2129 set_gdbarch_address_class_type_flags
2130 set_gdbarch_address_class_name_to_type_flags,
2131 and set_gdbarch_address_class_type_flags_to_name.
2132 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2133
e6c2c623
PMR
21342015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2135
2136 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2137 value is a reference, actually dereference it in order to get
2138 the underlying value.
2139
bc1f8cda
SM
21402015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2141
2142 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2143
acaa662f
SM
21442015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2145
2146 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2147 * linespec.c (linespec_lexer_lex_string): Same.
2148
4d9d419e
PL
21492015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2150
2151 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2152
6ec5f4be
PL
21532015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2154
2155 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2156 variable. Call aarch64_decode_adr instead of
2157 aarch64_decode_adrp.
2158 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2159 (aarch64_decode_adr): New function declaration.
2160 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2161 (aarch64_decode_adr): New function, factored out from
2162 aarch64_decode_adrp to decode both adr and adrp instructions.
2163
787749ea
PL
21642015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2165
2166 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2167 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2168 (aarch64-insn.o): New rule.
2169 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2170 (aarch64*-*-linux*): Likewise.
2171 * arch/aarch64-insn.c: New file.
2172 * arch/aarch64-insn.h: New file.
2173 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2174 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2175 arch/aarch64-insn.h.
2176 (decode_add_sub_imm): Rename to ...
2177 (aarch64_decode_add_sub_imm): ... this.
2178 (decode_adrp): Rename to ...
2179 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2180 Declare in arch/aarch64-insn.h.
2181 (decode_b): Rename to ...
2182 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2183 Declare in arch/aarch64-insn.h.
2184 (decode_bcond): Rename to ...
2185 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2186 Declare in arch/aarch64-insn.h.
2187 (decode_br): Rename to ...
2188 (aarch64_decode_br): ... this.
2189 (decode_cb): Rename to ...
2190 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2191 Declare in arch/aarch64-insn.h.
2192 (decode_eret): Rename to ...
2193 (aarch64_decode_eret): ... this.
2194 (decode_movz): Rename to ...
2195 (aarch64_decode_movz): ... this.
2196 (decode_orr_shifted_register_x): Rename to ...
2197 (aarch64_decode_orr_shifted_register_x): ... this.
2198 (decode_ret): Rename to ...
2199 (aarch64_decode_ret): ... this.
2200 (decode_stp_offset): Rename to ...
2201 (aarch64_decode_stp_offset): ... this.
2202 (decode_stp_offset_wb): Rename to ...
2203 (aarch64_decode_stp_offset_wb): ... this.
2204 (decode_stur): Rename to ...
2205 (aarch64_decode_stur): ... this.
2206 (decode_tb): Rename to ...
2207 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2208 Declare in arch/aarch64-insn.h.
2209 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2210
183dc7ec
DE
22112015-09-20 Doug Evans <xdje42@gmail.com>
2212
2213 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2214
2ee7123e
DE
22152015-09-20 Doug Evans <xdje42@gmail.com>
2216
2217 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2218 variable name that collides with a parameter.
2219
7d1c9c9b
JB
22202015-09-20 Joel Brobecker <brobecker@adacore.com>
2221
2222 * dwarf2loc.c (locexpr_get_frame_base): Renames
2223 block_op_get_frame_base.
2224 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2225 block_op_get_frame_base by reference to locexpr_get_frame_base.
2226 (loclist_get_frame_base): New function, near identical copy of
2227 locexpr_get_frame_base.
2228 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2229 block_op_get_frame_base by reference to loclist_get_frame_base.
2230
7dc7c195
DE
22312015-09-19 Doug Evans <xdje42@gmail.com>
2232
2233 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2234 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2235
be550b6e
DE
22362015-09-18 Doug Evans <xdje42@gmail.com>
2237
2238 * linux-thread-db.c (record_thread): Return the created thread.
2239 (thread_from_lwp): Likewise.
2240 (thread_db_get_thread_local_address): Update.
2241
615b3f62
DE
22422015-09-18 Doug Evans <xdje42@gmail.com>
2243
2244 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2245 move only member demangled_name up. All uses updated.
2246
015d2e7e
DE
22472015-09-18 Doug Evans <xdje42@gmail.com>
2248
2249 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2250 kind of minimal symbol in the error message.
2251 * objfiles.c (objfile_flavour_name): New function.
2252 * objfiles.h (objfile_flavour_name): Declare.
2253
a0cc84cd
YQ
22542015-09-18 Yao Qi <yao.qi@linaro.org>
2255
2256 * nat/aarch64-linux.c: Include elf/common.h,
2257 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2258 (aarch64_ps_get_thread_area): New function.
2259 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2260 (aarch64_ps_get_thread_area): Declare.
2261 * aarch64-linux-nat.c (ps_get_thread_area): Call
2262 aarch64_ps_get_thread_area.
2263
d2939ba2
MM
22642015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2265
2266 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2267
f2665db5
MM
22682015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2269
2270 * NEWS: Announce new scheduler-locking mode.
2271 * infrun.c (schedlock_replay): New.
2272 (scheduler_enums): Add schedlock_replay.
2273 (scheduler_mode): Change default to schedlock_replay.
2274 (user_visible_resume_ptid): Handle schedlock_replay.
2275 (clear_proceed_status_thread): Stop replaying if resumed thread is
2276 not replaying.
2277 (schedlock_applies): Handle schedlock_replay.
2278 (_initialize_infrun): Document new scheduler-locking mode.
2279 * record-btrace.c (record_btrace_resume): Remove code to stop other
2280 threads when not replaying the resumed thread.
2281
7ff27e9b
MM
22822015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2283
2284 * record-btrace.c ((record_btrace_will_replay): New.
2285 (init_record_btrace_ops): Initialize to_record_will_replay.
2286 * record-full.c ((record_full_will_replay): New.
2287 (init_record_full_ops): Initialize to_record_will_replay.
2288 * target-delegates.c: Regenerated.
2289 * target.c (target_record_will_replay): New.
2290 * target.h (struct target_ops) <to_record_will_replay>: New.
2291 (target_record_will_replay): New.
2292
797094dd
MM
22932015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2294
2295 * record-btrace.c (record_btrace_resume): Call
2296 target_record_stop_replaying.
2297 (record_btrace_stop_replaying_all): New.
2298 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2299 * record-full.c (record_full_stop_replaying): New.
2300 (init_record_full_ops ): Initialize to_record_stop_replaying.
2301 * target-delegates.c: Regenerated.
2302 * target.c (target_record_stop_replaying): New.
2303 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2304 (target_record_stop_replaying): New.
2305
4d10e986
MM
23062015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2307
2308 * record-btrace.c (record_btrace_xfer_partial)
2309 (record_btrace_store_registers, record_btrace_prepare_to_store):
2310 Call record_btrace_is_replaying with inferior_ptid instead of
2311 minus_one_ptid.
2312 (record_btrace_store_registers): Change error message.
2313
a52eab48
MM
23142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2315
2316 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2317 Update users to pass minus_one_ptid.
2318 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2319 * record.c (cmd_record_delete): Pass inferior_ptid to
2320 target_record_is_replaying.
2321 * target-delegates.c: Regenerated.
2322 * target.c (target_record_is_replaying): Add ptid argument.
2323 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2324 argument.
2325 (target_record_is_replaying): Add ptid argument.
2326
cbb55fa7
MM
23272015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2328
2329 * record-btrace.c (record_btrace_open): Remove non_stop check.
2330 * NEWS: Announce that record btrace supports non-stop mode.
2331
d1988021
MM
23322015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2333
2334 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2335 in the TARKET_WAITKIND_NO_HISTORY case.
2336
a6b5be76
MM
23372015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2338
2339 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2340 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2341
ec71cc2f
MM
23422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2343
2344 * record-btrace.c (get_thread_current_frame): New.
2345 (record_btrace_start_replaying): Call get_thread_current_frame.
2346
0ca912df
MM
23472015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2348
2349 * record-btrace.c (record_btrace_resume_thread): A move request
2350 overwrites a previous move request.
2351 (record_btrace_find_resume_thread): Removed.
2352 (record_btrace_resume): Resume all requested threads.
2353
e3cfc1c7
MM
23542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2355
2356 * record-btrace.c: Include vec.h.
2357 (record_btrace_find_thread_to_move): Removed.
2358 (btrace_step_no_resumed, btrace_step_again)
2359 (record_btrace_stop_replaying_at_end): New.
2360 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2361 (record_btrace_single_step_forward): Remove calls to
2362 record_btrace_stop_replaying.
2363 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2364 BTHR_RCONT. Keep threads at the end of their history moving.
2365 (record_btrace_wait): Call record_btrace_step_thread for all threads
2366 until one reports an event. Call record_btrace_stop_replaying_at_end
2367 for the eventing thread.
2368
cf8f8f0c
MM
23692015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2370
2371 * record-btrace.c (record_btrace_single_step_forward): Return
2372 NO_HISTORY if a step brings us to the end of the execution history.
2373
011c71b6
MM
23742015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2375
2376 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2377 to ...
2378 (record_btrace_single_step_forward): ... here and
2379 (record_btrace_single_step_backward): ... here.
2380
d825d248
MM
23812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2382
2383 * record-btrace.c (btrace_step_spurious)
2384 (record_btrace_single_step_forward)
2385 (record_btrace_single_step_backward): New.
2386 (record_btrace_step_thread): Call record_btrace_single_step_forward
2387 and record_btrace_single_step_backward.
2388
3c615f99
MM
23892015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2390
2391 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2392 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2393
987e68b1
MM
23942015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2395
2396 * record-btrace.c (btrace_thread_flag_to_str)
2397 (record_btrace_cancel_resume): New.
2398 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2399 (record_btrace_resume): Print execution direction.
2400 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2401 (record_btrace_wait): Call record_btrace_cancel_resume.
2402
6e4879f0
MM
24032015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2404
2405 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2406 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2407 (record_btrace_find_thread_to_move): Also accept threads that have
2408 BTHR_STOP set.
2409 (btrace_step_stopped_on_request, record_btrace_stop): New.
2410 (record_btrace_step_thread): Support BTHR_STOP.
2411 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2412 (init_record_btrace_ops): Initialize to_stop.
2413
5953356c
MM
24142015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2415
2416 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2417 target_is_non_stop_p ().
2418
bfca584f
PMR
24192015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2420
2421 * ada-typeprint.c (print_array_type): Do not describe arrays as
2422 packed when they embed dynamic elements.
2423
5382cfab
PW
24242015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2425
2426 * symtab.h (address_class): Document that TLS variables
2427 are handled by LOC_UNRESOLVED.
2428 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2429 * printcmd.c (address_info): Don't relocate TLS variables.
2430
b277c936
PL
24312015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2432
2433 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2434 (decode_adrp): Likewise.
2435 (decode_b): Likewise.
2436 (decode_bcond): Likewise.
2437 (decode_br): Likewise.
2438 (decode_cb): Likewise.
2439 (decode_eret): Likewise.
2440 (decode_movz): Likewise.
2441 (decode_orr_shifted_register_x): Likewise.
2442 (decode_ret): Likewise.
2443 (decode_stp_offset): Likewise.
2444 (decode_stp_offset_wb): Likewise.
2445 (decode_stur): Likewise.
2446 (decode_tb): Likewise.
2447 (aarch64_analyze_prologue): Likewise.
2448 (pass_in_x): Likewise.
2449 (pass_in_v): Likewise.
2450 (pass_on_stack): Likewise.
2451 (aarch64_push_dummy_call): Likewise.
2452 (aarch64_extract_return_value): Likewise.
2453 (aarch64_store_return_value): Likewise.
2454 (aarch64_return_value): Likewise.
2455 (aarch64_record_asimd_load_store): Likewise.
2456 (aarch64_record_load_store): Likewise.
2457 (aarch64_record_data_proc_simd_fp): Likewise.
2458
141c5cc4
JK
24592015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2462 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2463 (ppc64_skip_trampoline_code_1): ... here.
2464 (ppc64_skip_trampoline_code): New wrapper function.
2465 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2466
750ce8d1
YQ
24672015-09-15 Yao Qi <yao.qi@linaro.org>
2468
2469 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2470 function.
2471 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2472 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2473 if target_can_do_single_step returns 1.
2474 * remote.c (struct vCont_action_support) <s, S>: New fields.
2475 (PACKET_vContSupported): New enum.
2476 (remote_protocol_features): New element for vContSupported.
2477 (remote_query_supported): Append "vContSupported+".
2478 (remote_vcont_probe): Remove support_s and support_S, use
2479 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2480 vCont packet if c and C actions are not supported.
2481 (remote_can_do_single_step): New function.
2482 (init_remote_ops): Install it to to_can_do_single_step.
2483 (_initialize_remote): Call add_packet_config_cmd.
2484 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2485 (target_can_do_single_step): New macro.
2486 * target-delegates.c: Re-generated.
2487
ade90bde
YQ
24882015-09-15 Yao Qi <yao.qi@linaro.org>
2489
2490 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2491 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2492 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2493 New function.
2494 (aarch64_siginfo_from_compat_siginfo): New function.
2495 * nat/aarch64-linux.h: Include signal.h.
2496 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2497 (compat_timer_t, compat_clock_t): Likewise.
2498 (struct compat_timeval): New.
2499 (union compat_sigval): New.
2500 (struct compat_siginfo): New.
2501 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2502 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2503 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2504 (cpt_si_band, cpt_si_fd): Likewise.
2505
4c2f2a79
PA
25062015-09-14 Pedro Alves <palves@redhat.com>
2507
2508 * infrun.c (current_stop_id): New global.
2509 (get_stop_id, new_stop_id): New functions.
2510 (fetch_inferior_event): Handle normal_stop proceeding the target.
2511 (struct stop_context): New.
2512 (save_stop_context, release_stop_context_cleanup)
2513 (stop_context_changed): New functions.
2514 (normal_stop): Return true if the hook-stop changes the stop
2515 context.
2516 * infrun.h (get_stop_id): Declare.
2517 (normal_stop): Now returns int. Add documentation.
2518
919e6dbe
PMR
25192015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2520
2521 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2522 comment. Handle packed arrays.
2523
b027a8fa
PA
25242015-09-14 Pedro Alves <palves@redhat.com>
2525
2526 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2527 mention of maint set/show target-non-stop.
2528
b459a59b
DB
25292015-09-11 Don Breazeal <donb@codesourcery.com>
2530
2531 * NEWS: Announce new remote packets for the exec-events
2532 feature and the exec-events feature and associated commands.
2533
d46addbb
DB
25342015-09-11 Don Breazeal <donb@codesourcery.com>
2535
2536 * remote.c (remote_exec_event_p): New function.
2537 (remote_insert_exec_catchpoint): New function.
2538 (remote_remove_exec_catchpoint): New function.
2539 (init_extended_remote_ops): Initialize extended_remote_ops
2540 members to_insert_exec_catchpoint and
2541 to_remove_exec_catchpoint.
2542
94585166
DB
25432015-09-11 Don Breazeal <donb@codesourcery.com>
2544 Luis Machado <lgustavo@codesourcery.com>
2545
2546 * infrun.c (follow_exec): Use process-style ptid for
2547 exec message. Call add_inferior_with_spaces and
2548 target_follow_exec.
2549 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2550 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2551 * remote.c (remote_pspace_data): New static variable.
2552 (remote_pspace_data_cleanup): New function.
2553 (get_remote_exec_file): New function.
2554 (set_remote_exec_file_1): New function.
2555 (set_remote_exec_file): New function.
2556 (show_remote_exec_file): New function.
2557 (remote_exec_file): Delete static variable.
2558 (anonymous enum) <PACKET_exec_event_feature>: New
2559 enumeration constant.
2560 (remote_protocol_features): Add entry for exec-events feature.
2561 (remote_query_supported): Add client side of qSupported query
2562 for exec-events feature.
2563 (remote_follow_exec): New function.
2564 (remote_parse_stop_reply): Handle 'exec' stop reason.
2565 (extended_remote_run, extended_remote_create_inferior): Call
2566 get_remote_exec_file and set_remote_exec_file_1.
2567 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2568 member.
2569 (_initialize_remote): Call
2570 register_program_space_data_with_cleanup. Call
2571 add_packet_config_cmd for remote exec-events feature.
2572 Modify call to add_setshow_string_noescape_cmd for exec-file
2573 to use new functions set_remote_exec_file and
2574 show_remote_exec_file.
2575 * target-debug.h, target-delegates.c: Regenerated.
2576 * target.c (target_follow_exec): New function.
2577 * target.h (struct target_ops) <to_follow_exec>: New member.
2578 (target_follow_exec): Declare new function.
2579
669e74e8
PL
25802015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2581
2582 * aarch64-tdep.c (decode_cb): Move up comment describing the
2583 encoding.
2584 (decode_tb): Fix a typo in comment above the function. Move up
2585 comment describing the encoding.
2586
4d50586d
PL
25872015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2588
2589 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2590
6dcaef99
MMN
25912015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2592
2593 PR gdb/18947
2594 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2595 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2596
5da1a4d3
SM
25972015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2598
2599 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2600 operations.
2601
108d56a4
SM
26022015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2603
2604 * ada-lang.c (ada_search_struct_field): Constify parameters
2605 and/or variables..
2606 (xget_renaming_scope): Likewise.
2607 (ada_is_redundant_range_encoding): Likewise.
2608 (scan_discrim_bound): Likewise.
2609 (to_fixed_range_type): Likewise.
2610
dd2e65cc
YQ
26112015-09-10 Yao Qi <yao.qi@linaro.org>
2612
2613 * breakpoint.c (download_tracepoint_locations): New local
2614 can_download_tracepoint. Check the result of
2615 target_can_download_tracepoint and save it in
2616 can_download_tracepoint if there are tracepoints to download.
2617 * linux-nat.h (enum tribool): Move it to ...
2618 * common/common-types.h: ... here.
2619
cfe75703
PA
26202015-09-09 Pedro Alves <palves@redhat.com>
2621
2622 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2623 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2624
a85a3079
PA
26252015-09-09 Pedro Alves <palves@redhat.com>
2626
2627 * continuations.c (add_continuation, restore_thread_cleanup)
2628 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2629 (do_all_continuations_thread, do_all_continuations)
2630 (discard_all_continuations_thread_callback)
2631 (discard_all_continuations_thread, discard_all_continuations)
2632 (add_intermediate_continuation)
2633 (do_all_intermediate_continuations_thread_callback)
2634 (do_all_intermediate_continuations_thread)
2635 (do_all_intermediate_continuations)
2636 (discard_all_intermediate_continuations_thread_callback)
2637 (discard_all_intermediate_continuations_thread)
2638 (discard_all_intermediate_continuations): Delete.
2639 * continuations.h (add_continuation, do_all_continuations)
2640 (do_all_continuations_thread, discard_all_continuations)
2641 (discard_all_continuations_thread, add_intermediate_continuation)
2642 (do_all_intermediate_continuations)
2643 (do_all_intermediate_continuations_thread)
2644 (discard_all_intermediate_continuations)
2645 (discard_all_intermediate_continuations_thread): Delete
2646 declarations.
2647 * event-top.c (stdin_event_handler): Delete references to
2648 continuations.
2649 * gdbthread.h (struct thread_info): Delete continuations and
2650 intermediate_continuations fields.
2651 * inf-loop.c (inferior_event_handler): Remove references to
2652 continuations.
2653 * infrun.c (infrun_thread_stop_requested_callback): Remove
2654 references to continuations.
2655 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2656 * thread.c: Don't include "continuations.h".
2657 (clear_thread_inferior_resources): Remove references to
2658 continuations.
2659
0700e23e
PA
26602015-09-09 Pedro Alves <palves@redhat.com>
2661
2662 * infcall.c (struct dummy_frame_context_saver): Delete.
2663 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2664 (dummy_frame_context_saver_drop)
2665 (dummy_frame_context_saver_cleanup)
2666 (dummy_frame_context_saver_get_regs)
2667 (dummy_frame_context_saver_setup): Delete.
2668 * infcall.h (dummy_frame_context_saver_drop)
2669 (dummy_frame_context_saver_cleanup)
2670 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2671 Delete.
2672 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2673 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2674 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2675
cfc31633
PA
26762015-09-09 Pedro Alves <palves@redhat.com>
2677
2678 * breakpoint.c: Include "thread-fsm.h".
2679 (struct until_break_command_continuation_args): Delete.
2680 (struct until_break_fsm): New.
2681 (until_break_fsm_ops): New global.
2682 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2683 (until_break_command_continuation): Delete.
2684 (until_break_fsm_clean_up): New function.
2685 (until_break_fsm_async_reply_reason): New function.
2686 (until_break_command): Adjust to create an until_break_fsm instead
2687 of a continuation.
2688 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2689 here.
2690 * infcmd.c (struct until_next_fsm): New.
2691 (until_next_fsm_ops): New global.
2692 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2693 (until_next_continuation): Delete.
2694 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2695 functions.
2696 (until_next_command): Adjust to create a new until_next_fsm
2697 instead of a continuation.
2698
388a7084
PA
26992015-09-09 Pedro Alves <palves@redhat.com>
2700
2701 * infcall.c: Include thread_fsm.h.
2702 (struct call_return_meta_info): New.
2703 (get_call_return_value): New function, factored out from
2704 call_function_by_hand_dummy.
2705 (struct call_thread_fsm): New.
2706 (call_thread_fsm_ops): New global.
2707 (new_call_thread_fsm, call_thread_fsm_should_stop)
2708 (call_thread_fsm_should_notify_stop): New functions.
2709 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2710 the thread.
2711 (call_function_by_hand_dummy): Create a new call_thread_fsm
2712 instance, associate it with the thread, and wait for the FSM to
2713 finish. If finished successfully, fetch the function's result
2714 value out of the FSM.
2715 * infrun.c (fetch_inferior_event): If the FSM says the stop
2716 shouldn't be notified, don't call normal_stop.
2717 (maybe_remove_breakpoints): New function, factored out from ...
2718 (normal_stop): ... here. Simplify.
2719 * infrun.h (maybe_remove_breakpoints): Declare.
2720 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2721 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2722 (thread_fsm_should_notify_stop): Declare.
2723
243a9253
PA
27242015-09-09 Pedro Alves <palves@redhat.com>
2725
2726 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2727 * breakpoint.c (handle_jit_event): Print debug output.
2728 (bpstat_what): Split event callback handling to ...
2729 (bpstat_run_callbacks): ... this new function.
2730 (momentary_bkpt_print_it): No longer handle bp_finish here.
2731 * breakpoint.h (bpstat_run_callbacks): Declare.
2732 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2733 <thread_fsm>: New field.
2734 (thread_cancel_execution_command): Declare.
2735 * infcmd.c: Include thread-fsm.h.
2736 (struct step_command_fsm): New.
2737 (step_command_fsm_ops): New global.
2738 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2739 (step_1): Adjust to use step_command_fsm_prepare and
2740 prepare_one_step.
2741 (struct step_1_continuation_args): Delete.
2742 (step_1_continuation): Delete.
2743 (step_command_fsm_should_stop): New function.
2744 (step_once): Delete.
2745 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2746 (prepare_one_step): New function, based on step_once.
2747 (until_next_command): Remove step_multi reference.
2748 (struct return_value_info): New.
2749 (print_return_value): Rename to ...
2750 (print_return_value_1): ... this. New struct return_value_info
2751 parameter. Adjust.
2752 (print_return_value): Reimplement as wrapper around
2753 print_return_value_1.
2754 (struct finish_command_fsm): New.
2755 (finish_command_continuation): Delete.
2756 (finish_command_fsm_ops): New global.
2757 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2758 functions.
2759 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2760 New.
2761 (finish_command_continuation_free_arg): Delete.
2762 (finish_command_fsm_async_reply_reason): New.
2763 (finish_backward, finish_forward): Change symbol parameter to a
2764 finish_command_fsm. Adjust.
2765 (finish_command): Create a finish_command_fsm. Adjust.
2766 * infrun.c: Include "thread-fsm.h".
2767 (clear_proceed_status_thread): Delete the thread's FSM.
2768 (infrun_thread_stop_requested_callback): Cancel the thread's
2769 execution command.
2770 (clean_up_just_stopped_threads_fsms): New function.
2771 (fetch_inferior_event): Handle the event_thread's should_stop
2772 method saying the command isn't done yet.
2773 (process_event_stop_test): Run breakpoint callbacks here.
2774 (print_stop_event): Rename to ...
2775 (print_stop_location): ... this.
2776 (restore_current_uiout_cleanup): New function.
2777 (print_stop_event): Reimplement.
2778 (normal_stop): No longer notify the end_stepping_range observers
2779 here handle "step N" nor "finish" here. No longer call
2780 print_stop_event here.
2781 * infrun.h (struct return_value_info): Forward declare.
2782 (print_return_value): Declare.
2783 (print_stop_event): Change prototype.
2784 * thread-fsm.c: New file.
2785 * thread-fsm.h: New file.
2786 * thread.c: Include "thread-fsm.h".
2787 (thread_cancel_execution_command): New function.
2788 (clear_thread_inferior_resources): Call it.
2789 * cli/cli-interp.c (cli_on_normal_stop): New function.
2790 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2791 observer.
2792 * mi/mi-interp.c: Include "thread-fsm.h".
2793 (restore_current_uiout_cleanup): Delete.
2794 (mi_on_normal_stop): If the thread has an FSM associated, and it
2795 finished, ask it for the async-reply-reason to print. Always call
2796 print_stop_event here, regardless of the top-level interpreter.
2797 Check bpstat_what to tell whether an asynchronous breakpoint hit
2798 triggered.
2799 * tui/tui-interp.c (tui_on_normal_stop): New function.
2800 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2801
0b333c5e
PA
28022015-09-09 Pedro Alves <palves@redhat.com>
2803
2804 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2805 check whether the target can async.
2806 * inf-loop.c (inferior_event_handler): Only call target_async if
2807 the target can async.
2808 * infcall.c: Include top.h and interps.h.
2809 (run_inferior_call): For the interpreter to sync mode while
2810 running the infcall. Call wait_sync_command_done instead of
2811 wait_for_inferior plus normal_stop.
2812 * infcmd.c (prepare_execution_command): Don't check whether the
2813 target can async when running in the foreground.
2814 (step_1): Delete synchronous case handling.
2815 (step_once): Always install a continuation, even in sync mode.
2816 (until_next_command, finish_forward): Don't check whether the
2817 target can async.
2818 (attach_command_post_wait, notice_new_inferior): Always install a
2819 continuation, even in sync mode.
2820 * infrun.c (mark_infrun_async_event_handler): New function.
2821 (proceed): In sync mode, mark infrun's event source instead of
2822 waiting for events here.
2823 (fetch_inferior_event): If the target can't async, do a blocking
2824 wait.
2825 (prepare_to_wait): In sync mode, mark infrun's event source.
2826 (infrun_async_inferior_event_handler): No longer bail out if the
2827 target can't async.
2828 * infrun.h (mark_infrun_async_event_handler): New declaration.
2829 * linux-nat.c (linux_nat_wait_1): Remove calls to
2830 set_sigint_trap/clear_sigint_trap.
2831 (linux_nat_terminal_inferior): No longer check whether the target
2832 can async.
2833 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2834 comment.
2835 (mi_execute_command_input_handler): No longer check whether the
2836 target is async. Update and simplify comment.
2837 * target.c (default_target_wait): New function.
2838 * target.h (struct target_ops) <to_wait>: Now defaults to
2839 default_target_wait.
2840 (default_target_wait): Declare.
2841 * top.c (wait_sync_command_done): New function, factored out from
2842 ...
2843 (maybe_wait_sync_command_done): ... this.
2844 * top.h (wait_sync_command_done): Declare.
2845 * target-delegates.c: Regenerate.
2846
0568462b
MM
28472015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2848
2849 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2850 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2851 Remove include of sys/utsname.h.
2852 (linux_determine_kernel_ptr_bits): Remove.
2853 (linux_determine_kernel_start): New.
2854 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2855 Update check.
2856 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2857 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2858 initialization.
2859 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2860 assignment.
2861
72e02483
PA
28622015-09-07 Pedro Alves <palves@redhat.com>
2863
2864 * guile/guile-internal.h (as_a_scm_t_subr): New.
2865 * guile/guile.c (misc_guile_functions): Use it.
2866 * guile/scm-arch.c (arch_functions): Use it.
2867 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2868 Use it.
2869 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2870 * guile/scm-cmd.c (command_functions): Use it.
2871 * guile/scm-disasm.c (disasm_functions): Use it.
2872 * guile/scm-exception.c (exception_functions)
2873 (private_exception_functions): Use it.
2874 * guile/scm-frame.c (frame_functions)
2875 * guile/scm-gsmob.c (gsmob_functions): Use it.
2876 * guile/scm-iterator.c (iterator_functions): Use it.
2877 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2878 * guile/scm-math.c (math_functions): Use it.
2879 * guile/scm-objfile.c (objfile_functions): Use it.
2880 * guile/scm-param.c (parameter_functions): Use it.
2881 * guile/scm-ports.c (port_functions, private_port_functions): Use
2882 it.
2883 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2884 * guile/scm-progspace.c (pspace_functions): Use it.
2885 * guile/scm-string.c (string_functions): Use it.
2886 * guile/scm-symbol.c (symbol_functions): Use it.
2887 * guile/scm-symtab.c (symtab_functions): Use it.
2888 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2889 it.
2890 * guile/scm-value.c (value_functions): Use it.
2891
e65b5245
AB
28922015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2895 (tui_next_win): Likewise.
2896 (tui_prev_win): Likewise.
2897 (tui_partial_win_by_name): Likewise.
2898 (tui_init_generic_part): Likewise.
2899 (init_content_element): Likewise.
2900 (tui_del_window): Likewise.
2901 (tui_free_window): Likewise.
2902 (tui_del_data_windows): Likewise.
2903 (tui_free_data_content): Likewise.
2904 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2905 * tui/tui-regs.c (tui_show_register_group): Likewise.
2906 * tui/tui-win.c (tui_resize_all): Likewise.
2907 (tui_set_focus): Likewise.
2908 (tui_set_win_height): Likewise.
2909 (make_invisible_and_set_new_height): Likewise.
2910 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2911 * tui/tui-wingeneral.c (make_visible): Likewise.
2912
b03e6ad9
AB
29132015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2916
be903358
AB
29172015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2920 pointer.
2921 * dbxread.c (dbx_end_psymtab): Likewise.
2922 * gnu-nat.c (gnu_write_inferior): Likewise.
2923 * mdebugread.c (cross_ref): Likewise.
2924 * p-valprint.c (pascal_val_print): Likewise.
2925 * xcoffread.c (xcoff_end_psymtab): Likewise.
2926
02f024f9
YQ
29272015-09-04 Yao Qi <yao.qi@linaro.org>
2928
2929 * NEWS: Mention the aarch64 multi-arch debugging support.
2930
cd7c1778
PMR
29312015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2932
2933 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2934 type instead of a TYPE_CODE_INT one for the string_char_type
2935 and the ada_primitive_type_char types.
2936
39edd165
YQ
29372015-09-03 Yao Qi <yao.qi@linaro.org>
2938
2939 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2940 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2941 aarch64_linux_region_ok_for_watchpoint.
2942 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2943 New function.
2944 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2945 Declare it.
2946
6c214e7c
PP
29472015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2948
2949 * gdb_obstack.h (obstack_strdup): Declare.
2950 * gdb_obstack.c (obstack_strdup): Define.
2951 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2952 * gdbarch.c: Regenerate.
2953 * gdbarch.h: Regenerate.
2954 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2955
eed8b28a
PP
29562015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2957
2958 * gdbtypes.c (copy_type_recursive): Update documentation.
2959
73c6b475
SDJ
29602015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2961
2962 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2963 as zero.
2964
ad1c917a
SDJ
29652015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2966
2967 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2968
3bd7e5b7
SDJ
29692015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2970
2971 * solib-svr4.c (solib_event_probe_action): Call
2972 get_probe_argument_count using TRY...CATCH.
2973 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2974
f469e8ce
SDJ
29752015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2976
2977 * probe.h (struct probe_ops) <get_probe_argument_count,
2978 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2979 the comment that the function can throw an exception.
2980 (get_probe_argument_count): Likewise.
2981 (evaluate_probe_argument): Likewise.
2982 * stap-probe.c (stap_get_opcode): Call error instead of
2983 internal_error.
2984 (stap_get_expected_argument_type): Likewise. Add argument
2985 'probe'. Improve error message by mentioning the probe's name.
2986 (stap_parse_probe_arguments): Adjust call to
2987 stap_get_expected_argument_type.
2988 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2989 not zero. Call internal_error if GDB requests an argument but the
2990 probe has no arguments.
2991
dc5c8746
PMR
29922015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2993
2994 * ada-lang.c (ada_resolve_function): Do not ask the user what
2995 match to use when in completion mode.
2996
136765ea
AB
29972015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3000 cast of NULL.
3001
90b81c5f
MF
30022015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3003
3004 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3005 call_abi using XSHAL_ABI macro.
3006
1cd36e54
DE
30072015-08-29 Doug Evans <xdje42@gmail.com>
3008
3009 * symtab.h (struct symbol): Tweak comment.
3010
8f57eec2
PP
30112015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3012
3013 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3014 gdbarch obstack instead of on the heap. Update commentary
3015 accordingly.
3016
38eebd71
JB
30172015-08-28 Joel Brobecker <brobecker@adacore.com>
3018
3019 GDB 7.10 released.
3020
d63dd61e
SM
30212015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3022
3023 * NEWS: Update entry about non-8-bits addressable memory.
3024
6f059256
UW
30252015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3026
3027 Revert:
3028 2014-11-06 Doug Evans <xdje42@gmail.com>
3029 * solib.c (solib_global_lookup): Fetch arch from objfile,
3030 not target_gdbarch.
3031
70987a92 30322015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3033
3034 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3035 attempt to relocate a TLS variable offset.
3036
70987a92 30372015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3038
3039 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3040 registered yet. Set inferior_ptid while calling target_read_memory.
3041
70987a92 30422015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3043
3044 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3045 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3046 * linux-nat.c (check_stopped_by_breakpoint): Use
3047 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3048
70987a92 30492015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3050
3051 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3052 thread was not yet discovered, use thread_from_lwp instead of
3053 calling thread_db_find_new_threads_1.
3054
f5cdf498
SM
30552015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3056
3057 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3058 statements.
3059
fd2ae5d6
SM
30602015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3061
3062 * NEWS: Document support for non-8-bits addressable memory.
3063
14d88147
PA
30642015-08-27 Pedro Alves <palves@redhat.com>
3065
3066 * configure.ac: Remove AC_TYPE_SIGNAL call.
3067 * configure, config.in: Regenerate.
3068
a40805d4
PA
30692015-08-27 Pedro Alves <palves@redhat.com>
3070
3071 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3072 * extension-priv.h: Include signal.h.
3073 (struct signal_handler) <handler>: Change type to sighandler_t.
3074 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3075 * inflow.c (sigint_ours, sigquit_ours): Change type to
3076 sighandler_t.
3077 (child_terminal_inferior): Remove casts.
3078 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3079 (osig): Change type to sighandler_t.
3080 * nto-procfs.c (ofunc): Change type to sighandler_t.
3081 (procfs_wait): Remove casts.
3082 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3083 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3084 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3085
0750520d
PA
30862015-08-27 Pedro Alves <palves@redhat.com>
3087
3088 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3089 * gnulib/aclocal.m4: Renegerate.
3090 * gnulib/config.in: Renegerate.
3091 * gnulib/configure: Renegerate.
3092 * gnulib/import/Makefile.am: Update.
3093 * gnulib/import/Makefile.in: Regenerate.
3094 * gnulib/import/m4/gnulib-cache.m4: Update.
3095 * gnulib/import/m4/gnulib-comp.m4: Update.
3096 * gnulib/import/m4/signal_h.m4: New file.
3097 * gnulib/import/signal.in.h: New file.
3098
a5c0808e
PA
30992015-08-27 Pedro Alves <palves@redhat.com>
3100
3101 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3102 (MIN_MEMORY_PACKET_SIZE): New.
3103 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3104 (get_memory_packet_size): Adjust. No longer limit the max packet
3105 size.
3106 (set_memory_packet_size): Adjust, and remove dead code.
3107 (remote_check_symbols): Use xmalloc and a cleanup instead of
3108 alloca.
3109 (remote_packet_size): No longer cap the packet size.
3110 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3111
cdaec3f3
LM
31122015-08-26 Luis Machado <lgustavo@codesourcery.com>
3113
3114 * compile/compile.c (compile_to_object): Mention language in
3115 error message.
3116
e9756d52
PP
31172015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3118
3119 * target.c (target_pre_inferior): Unset attach_flag.
3120
1dc7a623
SM
31212015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3122
3123 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3124 * gdbarch.c: Re-generate.
3125
8d749320
SM
31262015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3127
6711b7f8
SM
3128 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3129 function with the XNEW-family equivalent.
8d749320
SM
3130 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3131 * ada-exp.y (write_ambiguous_var): Likewise.
3132 * ada-lang.c (resolve_subexp): Likewise.
3133 (user_select_syms): Likewise.
3134 (assign_aggregate): Likewise.
3135 (ada_evaluate_subexp): Likewise.
3136 (cache_symbol): Likewise.
3137 * addrmap.c (allocate_key): Likewise.
3138 (addrmap_create_mutable): Likewise.
3139 * aix-thread.c (sync_threadlists): Likewise.
3140 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3141 (alpha_gdbarch_init): Likewise.
3142 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3143 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3144 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3145 * arm-tdep.c (push_stack_item): Likewise.
3146 (arm_displaced_step_copy_insn): Likewise.
3147 (arm_gdbarch_init): Likewise.
3148 (_initialize_arm_tdep): Likewise.
3149 * avr-tdep.c (push_stack_item): Likewise.
3150 * ax-general.c (new_agent_expr): Likewise.
3151 * block.c (block_initialize_namespace): Likewise.
3152 * breakpoint.c (alloc_counted_command_line): Likewise.
3153 (update_dprintf_command_list): Likewise.
3154 (parse_breakpoint_sals): Likewise.
3155 (decode_static_tracepoint_spec): Likewise.
3156 (until_break_command): Likewise.
3157 (clear_command): Likewise.
3158 (update_global_location_list): Likewise.
3159 (get_breakpoint_objfile_data) Likewise.
3160 * btrace.c (ftrace_new_function): Likewise.
3161 (btrace_set_insn_history): Likewise.
3162 (btrace_set_call_history): Likewise.
3163 * buildsym.c (add_symbol_to_list): Likewise.
3164 (record_pending_block): Likewise.
3165 (start_subfile): Likewise.
3166 (start_buildsym_compunit): Likewise.
3167 (push_subfile): Likewise.
3168 (end_symtab_get_static_block): Likewise.
3169 (buildsym_init): Likewise.
3170 * cli/cli-cmds.c (source_command): Likewise.
3171 * cli/cli-decode.c (add_cmd): Likewise.
3172 * cli/cli-script.c (build_command_line): Likewise.
3173 (setup_user_args): Likewise.
3174 (realloc_body_list): Likewise.
3175 (process_next_line): Likewise.
3176 (copy_command_lines): Likewise.
3177 * cli/cli-setshow.c (do_set_command): Likewise.
3178 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3179 * coffread.c (coff_locate_sections): Likewise.
3180 (coff_symtab_read): Likewise.
3181 (coff_read_struct_type): Likewise.
3182 * common/cleanups.c (make_my_cleanup2): Likewise.
3183 * common/common-exceptions.c (throw_it): Likewise.
3184 * common/filestuff.c (make_cleanup_close): Likewise.
3185 * common/format.c (parse_format_string): Likewise.
3186 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3187 * compile/compile-object-load.c (munmap_list_add): Likewise.
3188 (compile_object_load): Likewise.
3189 * compile/compile-object-run.c (compile_object_run): Likewise.
3190 * compile/compile.c (append_args): Likewise.
3191 * corefile.c (specify_exec_file_hook): Likewise.
3192 * cp-support.c (make_symbol_overload_list): Likewise.
3193 * cris-tdep.c (push_stack_item): Likewise.
3194 (cris_gdbarch_init): Likewise.
3195 * ctf.c (ctf_trace_file_writer_new): Likewise.
3196 * dbxread.c (init_header_files): Likewise.
3197 (add_new_header_file): Likewise.
3198 (init_bincl_list): Likewise.
3199 (dbx_end_psymtab): Likewise.
3200 (start_psymtab): Likewise.
3201 (dbx_end_psymtab): Likewise.
3202 * dcache.c (dcache_init): Likewise.
3203 * dictionary.c (dict_create_hashed): Likewise.
3204 (dict_create_hashed_expandable): Likewise.
3205 (dict_create_linear): Likewise.
3206 (dict_create_linear_expandable): Likewise.
3207 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3208 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3209 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3210 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3211 (decode_frame_entry_1): Likewise.
3212 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3213 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3214 * dwarf2read.c (dwarf2_has_info): Likewise.
3215 (create_signatured_type_table_from_index): Likewise.
3216 (dwarf2_read_index): Likewise.
3217 (dw2_get_file_names_reader): Likewise.
3218 (create_all_type_units): Likewise.
3219 (read_cutu_die_from_dwo): Likewise.
3220 (init_tu_and_read_dwo_dies): Likewise.
3221 (init_cutu_and_read_dies): Likewise.
3222 (create_all_comp_units): Likewise.
3223 (queue_comp_unit): Likewise.
3224 (inherit_abstract_dies): Likewise.
3225 (read_call_site_scope): Likewise.
3226 (dwarf2_add_field): Likewise.
3227 (dwarf2_add_typedef): Likewise.
3228 (dwarf2_add_member_fn): Likewise.
3229 (attr_to_dynamic_prop): Likewise.
3230 (abbrev_table_alloc_abbrev): Likewise.
3231 (abbrev_table_read_table): Likewise.
3232 (add_include_dir): Likewise.
3233 (add_file_name): Likewise.
3234 (dwarf_decode_line_header): Likewise.
3235 (dwarf2_const_value_attr): Likewise.
3236 (dwarf_alloc_block): Likewise.
3237 (parse_macro_definition): Likewise.
3238 (set_die_type): Likewise.
3239 (write_psymtabs_to_index): Likewise.
3240 (create_cus_from_index): Likewise.
3241 (dwarf2_create_include_psymtab): Likewise.
3242 (process_psymtab_comp_unit_reader): Likewise.
3243 (build_type_psymtab_dependencies): Likewise.
3244 (read_comp_units_from_section): Likewise.
3245 (compute_compunit_symtab_includes): Likewise.
3246 (create_dwo_unit_in_dwp_v1): Likewise.
3247 (create_dwo_unit_in_dwp_v2): Likewise.
3248 (read_func_scope): Likewise.
3249 (process_structure_scope): Likewise.
3250 (mark_common_block_symbol_computed): Likewise.
3251 (load_partial_dies): Likewise.
3252 (dwarf2_symbol_mark_computed): Likewise.
3253 * elfread.c (elf_symfile_segments): Likewise.
3254 (elf_read_minimal_symbols): Likewise.
3255 * environ.c (make_environ): Likewise.
3256 * eval.c (evaluate_subexp_standard): Likewise.
3257 * event-loop.c (create_file_handler): Likewise.
3258 (create_async_signal_handler): Likewise.
3259 (create_async_event_handler): Likewise.
3260 (create_timer): Likewise.
3261 * exec.c (build_section_table): Likewise.
3262 * fbsd-nat.c (fbsd_remember_child): Likewise.
3263 * fork-child.c (fork_inferior): Likewise.
3264 * frv-tdep.c (new_variant): Likewise.
3265 * gdbarch.sh (gdbarch_alloc): Likewise.
3266 (append_name): Likewise.
3267 * gdbtypes.c (rank_function): Likewise.
3268 (copy_type_recursive): Likewise.
3269 (add_dyn_prop): Likewise.
3270 * gnu-nat.c (make_proc): Likewise.
3271 (make_inf): Likewise.
3272 (gnu_write_inferior): Likewise.
3273 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3274 (build_std_type_info_type): Likewise.
3275 * guile/scm-param.c (compute_enum_list): Likewise.
3276 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3277 * guile/scm-value.c (gdbscm_value_call): Likewise.
3278 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3279 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3280 (read_unwind_info): Likewise.
3281 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3282 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3283 (call_function_by_hand_dummy): Likewise.
3284 * infcmd.c (step_once): Likewise.
3285 (finish_forward): Likewise.
3286 (attach_command): Likewise.
3287 (notice_new_inferior): Likewise.
3288 * inferior.c (add_inferior_silent): Likewise.
3289 * infrun.c (add_displaced_stepping_state): Likewise.
3290 (save_infcall_control_state): Likewise.
3291 (save_inferior_ptid): Likewise.
3292 (_initialize_infrun): Likewise.
3293 * jit.c (bfd_open_from_target_memory): Likewise.
3294 (jit_gdbarch_data_init): Likewise.
3295 * language.c (add_language): Likewise.
3296 * linespec.c (decode_line_2): Likewise.
3297 * linux-nat.c (add_to_pid_list): Likewise.
3298 (add_initial_lwp): Likewise.
3299 * linux-thread-db.c (add_thread_db_info): Likewise.
3300 (record_thread): Likewise.
3301 (info_auto_load_libthread_db): Likewise.
3302 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3304 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3305 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3306 * macrocmd.c (macro_define_command): Likewise.
3307 * macroexp.c (gather_arguments): Likewise.
3308 * macroscope.c (sal_macro_scope): Likewise.
3309 * macrotab.c (new_macro_table): Likewise.
3310 * mdebugread.c (push_parse_stack): Likewise.
3311 (parse_partial_symbols): Likewise.
3312 (parse_symbol): Likewise.
3313 (psymtab_to_symtab_1): Likewise.
3314 (new_block): Likewise.
3315 (new_psymtab): Likewise.
3316 (mdebug_build_psymtabs): Likewise.
3317 (add_pending): Likewise.
3318 (elfmdebug_build_psymtabs): Likewise.
3319 * mep-tdep.c (mep_gdbarch_init): Likewise.
3320 * mi/mi-main.c (mi_execute_command): Likewise.
3321 * mi/mi-parse.c (mi_parse_argv): Likewise.
3322 * minidebug.c (lzma_open): Likewise.
3323 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3324 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3325 * mips-tdep.c (mips_gdbarch_init): Likewise.
3326 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3327 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3328 * mt-tdep.c (mt_registers_info): Likewise.
3329 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3330 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3331 (linux_enable_pt): Likewise.
3332 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3333 (linux_xfer_osdata_processgroups): Likewise.
3334 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3335 * nto-procfs.c (procfs_meminfo): Likewise.
3336 * objc-lang.c (start_msglist): Likewise.
3337 (selectors_info): Likewise.
3338 (classes_info): Likewise.
3339 (find_methods): Likewise.
3340 * objfiles.c (allocate_objfile): Likewise.
3341 (update_section_map): Likewise.
3342 * osabi.c (gdbarch_register_osabi): Likewise.
3343 (gdbarch_register_osabi_sniffer): Likewise.
3344 * parse.c (start_arglist): Likewise.
3345 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3346 (hwdebug_insert_point): Likewise.
3347 * printcmd.c (display_command): Likewise.
3348 (ui_printf): Likewise.
3349 * procfs.c (create_procinfo): Likewise.
3350 (load_syscalls): Likewise.
3351 (proc_get_LDT_entry): Likewise.
3352 (proc_update_threads): Likewise.
3353 * prologue-value.c (make_pv_area): Likewise.
3354 (pv_area_store): Likewise.
3355 * psymtab.c (extend_psymbol_list): Likewise.
3356 (init_psymbol_list): Likewise.
3357 (allocate_psymtab): Likewise.
3358 * python/py-inferior.c (add_thread_object): Likewise.
3359 * python/py-param.c (compute_enum_values): Likewise.
3360 * python/py-value.c (valpy_call): Likewise.
3361 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3362 * python/python.c (ensure_python_env): Likewise.
3363 * record-btrace.c (record_btrace_start_replaying): Likewise.
3364 * record-full.c (record_full_reg_alloc): Likewise.
3365 (record_full_mem_alloc): Likewise.
3366 (record_full_end_alloc): Likewise.
3367 (record_full_core_xfer_partial): Likewise.
3368 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3369 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3370 * remote-notif.c (remote_notif_state_allocate): Likewise.
3371 * remote.c (demand_private_info): Likewise.
3372 (remote_notif_stop_alloc_reply): Likewise.
3373 (remote_enable_btrace): Likewise.
3374 * reverse.c (save_bookmark_command): Likewise.
3375 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3376 * rx-tdep.c (rx_gdbarch_init): Likewise.
3377 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3378 * ser-go32.c (dos_get_tty_state): Likewise.
3379 (dos_copy_tty_state): Likewise.
3380 * ser-mingw.c (ser_windows_open): Likewise.
3381 (ser_console_wait_handle): Likewise.
3382 (ser_console_get_tty_state): Likewise.
3383 (make_pipe_state): Likewise.
3384 (net_windows_open): Likewise.
3385 * ser-unix.c (hardwire_get_tty_state): Likewise.
3386 (hardwire_copy_tty_state): Likewise.
3387 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3388 * solib-dsbt.c (dsbt_current_sos): Likewise.
3389 (dsbt_relocate_main_executable): Likewise.
3390 * solib-frv.c (frv_current_sos): Likewise.
3391 (frv_relocate_main_executable): Likewise.
3392 * solib-spu.c (spu_bfd_fopen): Likewise.
3393 * solib-svr4.c (lm_info_read): Likewise.
3394 (svr4_copy_library_list): Likewise.
3395 (svr4_default_sos): Likewise.
3396 * source.c (find_source_lines): Likewise.
3397 (line_info): Likewise.
3398 (add_substitute_path_rule): Likewise.
3399 * spu-linux-nat.c (spu_bfd_open): Likewise.
3400 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3401 * stabsread.c (dbx_lookup_type): Likewise.
3402 (read_type): Likewise.
3403 (read_member_functions): Likewise.
3404 (read_struct_fields): Likewise.
3405 (read_baseclasses): Likewise.
3406 (read_args): Likewise.
3407 (_initialize_stabsread): Likewise.
3408 * stack.c (func_command): Likewise.
3409 * stap-probe.c (handle_stap_probe): Likewise.
3410 * symfile.c (addrs_section_sort): Likewise.
3411 (addr_info_make_relative): Likewise.
3412 (load_section_callback): Likewise.
3413 (add_symbol_file_command): Likewise.
3414 (init_filename_language_table): Likewise.
3415 * symtab.c (create_filename_seen_cache): Likewise.
3416 (sort_search_symbols_remove_dups): Likewise.
3417 (search_symbols): Likewise.
3418 * target.c (make_cleanup_restore_target_terminal): Likewise.
3419 * thread.c (new_thread): Likewise.
3420 (enable_thread_stack_temporaries): Likewise.
3421 (make_cleanup_restore_current_thread): Likewise.
3422 (thread_apply_all_command): Likewise.
3423 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3424 * top.c (gdb_readline_wrapper): Likewise.
3425 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3426 * tracepoint.c (trace_find_line_command): Likewise.
3427 (all_tracepoint_actions_and_cleanup): Likewise.
3428 (make_cleanup_restore_current_traceframe): Likewise.
3429 (get_uploaded_tp): Likewise.
3430 (get_uploaded_tsv): Likewise.
3431 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3432 (tui_alloc_win_info): Likewise.
3433 (tui_alloc_content): Likewise.
3434 (tui_add_content_elements): Likewise.
3435 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3436 (tui_set_disassem_content): Likewise.
3437 * ui-file.c (ui_file_new): Likewise.
3438 (stdio_file_new): Likewise.
3439 (tee_file_new): Likewise.
3440 * utils.c (make_cleanup_restore_integer): Likewise.
3441 (add_internal_problem_command): Likewise.
3442 * v850-tdep.c (v850_gdbarch_init): Likewise.
3443 * valops.c (find_oload_champ): Likewise.
3444 * value.c (allocate_value_lazy): Likewise.
3445 (record_latest_value): Likewise.
3446 (create_internalvar): Likewise.
3447 * varobj.c (install_variable): Likewise.
3448 (new_variable): Likewise.
3449 (new_root_variable): Likewise.
3450 (cppush): Likewise.
3451 (_initialize_varobj): Likewise.
3452 * windows-nat.c (windows_make_so): Likewise.
3453 * x86-nat.c (x86_add_process): Likewise.
3454 * xcoffread.c (arrange_linetable): Likewise.
3455 (allocate_include_entry): Likewise.
3456 (process_linenos): Likewise.
3457 (SYMBOL_DUP): Likewise.
3458 (xcoff_start_psymtab): Likewise.
3459 (xcoff_end_psymtab): Likewise.
3460 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3461 * xtensa-tdep.c (xtensa_register_type): Likewise.
3462 * gdbarch.c: Regenerate.
3463 * gdbarch.h: Regenerate.
3464
17d8546e
DB
34652015-08-25 Don Breazeal <donb@codesourcery.com>
3466
3467 * infrun.c (follow_exec): Re-order operations for
3468 handling follow-exec-mode "new".
3469 (handle_inferior_event_1): Assign ecs->event_thread
3470 to the current thread.
3471 * remote.c (get_remote_arch_state): Add an assertion.
3472
ba49e44b
PA
34732015-08-26 Pedro Alves <palves@redhat.com>
3474
3475 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3476
7541ab03 34772015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3478
7541ab03 3479 PR gdb/18804
abc56d60
PA
3480 * defs.h (maybe_quit): Declare.
3481 (QUIT): Now calls maybe_quit.
3482 * event-loop.c (clear_async_signal_handler)
3483 (async_signal_handler_is_marked): New functions.
3484 * event-loop.h (async_signal_handler_is_marked)
3485 (clear_async_signal_handler): New declarations.
3486 * remote.c (remote_check_pending_interrupt): New function.
3487 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3488 longer check whether the target is async. If waiting for a stop
3489 reply, and a Ctrl-C as been sent to the target, offer to
3490 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3491 Otherwise do not disconnect and throw a quit.
3492 (_initialize_remote): Install remote_check_pending_interrupt as
3493 to_check_pending_interrupt.
3494 * target.c (target_check_pending_interrupt): New function.
3495 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3496 field.
3497 (target_check_pending_interrupt): New declaration.
3498 * utils.c (maybe_quit): New function.
3499 * target-delegates.c: Regenerate.
3500
dfe7f77c
YQ
35012015-08-25 Yao Qi <yao.qi@linaro.org>
3502
3503 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3504 Rename local variable pid to tid, and get lwpid of lwp. Update
3505 debug output.
3506
63e43d3a
PMR
35072015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3508
3509 * ada-lang.c (ada_read_var_value): Add a var_block argument
3510 and pass it to default_read_var_value.
3511 * block.c (block_static_link): New accessor.
3512 * block.h (block_static_link): Declare it.
3513 * buildsym.c (finish_block_internal): Add a static_link
3514 argument. If there is a static link, associate it to the new
3515 block.
3516 (finish_block): Add a static link argument and pass it to
3517 finish_block_internal.
3518 (end_symtab_get_static_block): Update calls to finish_block and
3519 to finish_block_internal.
3520 (end_symtab_with_blockvector): Update call to
3521 finish_block_internal.
3522 * buildsym.h: Forward-declare struct dynamic_prop.
3523 (struct context_stack): Add a static_link field.
3524 (finish_block): Add a static link argument.
3525 * c-exp.y: Remove an obsolete comment (evaluation of variables
3526 already start from the selected frame, and now they climb *up*
3527 the call stack) and propagate the block information to the
3528 produced expression.
3529 * d-exp.y: Likewise.
3530 * f-exp.y: Likewise.
3531 * go-exp.y: Likewise.
3532 * jv-exp.y: Likewise.
3533 * m2-exp.y: Likewise.
3534 * p-exp.y: Likewise.
3535 * coffread.c (coff_symtab_read): Update calls to finish_block.
3536 * dbxread.c (process_one_symbol): Likewise.
3537 * xcoffread.c (read_xcoff_symtab): Likewise.
3538 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3539 "sym" parameter to struct block_symbol, update its uses and pass
3540 its block to calls to read_var_value.
3541 (convert_symbol_sym): Update the calls to convert_one_symbol.
3542 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3543 call to read_var_value.
3544 * dwarf2loc.c (block_op_get_frame_base): New.
3545 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3546 get_frame_base method.
3547 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3548 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3549 instead of the selected frame in order to evaluate the
3550 expression.
3551 (dwarf2_evaluate_property): Add a frame argument. Update call
3552 to dwarf2_locexpr_baton_eval to provide a frame in available and
3553 to handle the absence of address stack.
3554 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3555 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3556 declaration.
3557 (read_func_scope): Record any available static link description.
3558 Update call to finish_block.
3559 (read_lexical_block_scope): Update call to finish_block.
3560 * findvar.c (follow_static_link): New.
3561 (get_hosting_frame): New.
3562 (default_read_var_value): Add a var_block argument. Use
3563 get_hosting_frame to handle non-local references.
3564 (read_var_value): Add a var_block argument and pass it to the
3565 LA_READ_VAR_VALUE method.
3566 * gdbtypes.c (resolve_dynamic_range): Update calls to
3567 dwarf2_evaluate_property.
3568 (resolve_dynamic_type_internal): Likewise.
3569 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3570 read_var_value, passing it the block coming from symbol lookup.
3571 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3572 read_var_value (TODO).
3573 * infcmd.c (finish_command_continuation): Update call to
3574 read_var_value, passing it the block coming from symbol lookup.
3575 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3576 * language.h (struct language_defn): Add a var_block argument to
3577 the LA_READ_VAR_VALUE method.
3578 * objfiles.c (struct static_link_htab_entry): New.
3579 (static_link_htab_entry_hash): New.
3580 (static_link_htab_entry_eq): New.
3581 (objfile_register_static_link): New.
3582 (objfile_lookup_static_link): New.
3583 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3584 * objfiles.h: Include hashtab.h.
3585 (struct objfile): Add a static_links field.
3586 (objfile_register_static_link): New.
3587 (objfile_lookup_static_link): New.
3588 * printcmd.c (print_variable_and_value): Update call to
3589 read_var_value.
3590 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3591 * python/py-frame.c (frapy_read_var): Update call to
3592 read_var_value, passing it the block coming from symbol lookup.
3593 * python/py-framefilter.c (extract_sym): Add a sym_block
3594 parameter and set the pointed value to NULL (TODO).
3595 (enumerate_args): Update call to extract_sym.
3596 (enumerate_locals): Update calls to extract_sym and to
3597 read_var_value.
3598 * python/py-symbol.c (sympy_value): Update call to
3599 read_var_value (TODO).
3600 * stack.c (read_frame_local): Update call to read_var_value.
3601 (read_frame_arg): Likewise.
3602 (return_command): Likewise.
3603 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3604 method.
3605 (struct symbol): Add a block field.
3606 (SYMBOL_BLOCK): New accessor.
3607 * valops.c (value_of_variable): Remove frame/block handling and
3608 pass the block argument to read_var_value, which does this job
3609 now.
3610 (value_struct_elt_for_reference): Update calls to
3611 read_var_value.
3612 (value_of_this): Pass the block found to read_var_value.
3613 * value.h (read_var_value): Add a var_block argument.
3614 (default_read_var_value): Likewise.
3615
ed8b7b42
YQ
36162015-08-25 Yao Qi <yao.qi@linaro.org>
3617
3618 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3619 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3620 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3621
db3cb7cb
YQ
36222015-08-25 Yao Qi <yao.qi@linaro.org>
3623
3624 * Makefile.in (aarch64-liunx.o): New rule.
3625 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3626 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3627 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3628 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3629 extern.
3630 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3631 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3632 * nat/aarch64-linux.c: New file.
3633 * nat/aarch64-linux.h: New file.
3634
f6011a1c
YQ
36352015-08-25 Yao Qi <yao.qi@linaro.org>
3636
3637 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3638 lwp_arch_private_info and ptid_of_lwp.
3639
5e35436e
YQ
36402015-08-25 Yao Qi <yao.qi@linaro.org>
3641
3642 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3643 Move it to nat/aarch64-linux-hw-point.c.
3644 (debug_reg_change_callback): Likewise.
3645 (aarch64_notify_debug_reg_change): :Likewise.
3646 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3647 (aarch64_dr_update_callback_param): New.
3648 (debug_reg_change_callback): New function.
3649 (aarch64_notify_debug_reg_change): Likewise.
3650 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3651 Remove the declaration.
3652
4a8a7965
YQ
36532015-08-25 Yao Qi <yao.qi@linaro.org>
3654
3655 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3656 Call current_lwp_ptid.
3657
32a271ee
YQ
36582015-08-25 Yao Qi <yao.qi@linaro.org>
3659
3660 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3661 debug_printf.
3662
5e137137
YQ
36632015-08-25 Yao Qi <yao.qi@linaro.org>
3664
3665 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3666 ptid_get_pid rather than ptid_get_lwp.
3667
73b8c1fd
PA
36682015-08-24 Pedro Alves <palves@redhat.com>
3669
3670 * NEWS (New commands): Mention set/show remote
3671 multiprocess-extensions-packet.
3672 * remote.c (remote_query_supported): Only tell the server to use
3673 the multiprocess extensions if the user hasn't force-disabled them
3674 with "set remote multiprocess-extensions-packet off".
3675
4a626d0a
PA
36762015-08-24 Pedro Alves <palves@redhat.com>
3677
3678 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3679 1029a8112290f6eee9d7878a391c49db42c999bd.
3680 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3681 Regenerate.
3682 * gnulib/import/Makefile.am: Update.
3683 * gnulib/import/Makefile.in: Update.
3684 * gnulib/import/alloca.in.h: Update.
3685 * gnulib/import/basename-lgpl.c: Update.
3686 * gnulib/import/canonicalize-lgpl.c: Update.
3687 * gnulib/import/config.charset: Update.
3688 * gnulib/import/dirent.in.h: Update.
3689 * gnulib/import/dirfd.c: Update.
3690 * gnulib/import/dirname-lgpl.c: Update.
3691 * gnulib/import/dirname.h: Update.
3692 * gnulib/import/dosname.h: Update.
3693 * gnulib/import/errno.in.h: Update.
3694 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3695 * gnulib/import/extra/snippet/c++defs.h: Update.
3696 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3697 * gnulib/import/extra/update-copyright: Update.
3698 * gnulib/import/float+.h: Update.
3699 * gnulib/import/float.c: Update.
3700 * gnulib/import/float.in.h: Update.
3701 * gnulib/import/fnmatch.c: Update.
3702 * gnulib/import/fnmatch.in.h: Update.
3703 * gnulib/import/fnmatch_loop.c: Update.
3704 * gnulib/import/fpucw.h: Update.
3705 * gnulib/import/frexp.c: Update.
3706 * gnulib/import/frexpl.c: Update.
3707 * gnulib/import/gettimeofday.c: Update.
3708 * gnulib/import/inttypes.in.h: Update.
3709 * gnulib/import/isnan.c: Update.
3710 * gnulib/import/isnand-nolibm.h: Update.
3711 * gnulib/import/isnand.c: Update.
3712 * gnulib/import/isnanl-nolibm.h: Update.
3713 * gnulib/import/isnanl.c: Update.
3714 * gnulib/import/itold.c: Update.
3715 * gnulib/import/localcharset.c: Update.
3716 * gnulib/import/localcharset.h: Update.
3717 * gnulib/import/lstat.c: Update.
3718 * gnulib/import/m4/00gnulib.m4: Update.
3719 * gnulib/import/m4/absolute-header.m4: Update.
3720 * gnulib/import/m4/alloca.m4: Update.
3721 * gnulib/import/m4/canonicalize.m4: Update.
3722 * gnulib/import/m4/codeset.m4: Update.
3723 * gnulib/import/m4/configmake.m4: Update.
3724 * gnulib/import/m4/dirent_h.m4: Update.
3725 * gnulib/import/m4/dirfd.m4: Update.
3726 * gnulib/import/m4/dirname.m4: Update.
3727 * gnulib/import/m4/double-slash-root.m4: Update.
3728 * gnulib/import/m4/eealloc.m4: Update.
3729 * gnulib/import/m4/errno_h.m4: Update.
3730 * gnulib/import/m4/exponentd.m4: Update.
3731 * gnulib/import/m4/exponentl.m4: Update.
3732 * gnulib/import/m4/extensions.m4: Update.
3733 * gnulib/import/m4/extern-inline.m4: Update.
3734 * gnulib/import/m4/fcntl-o.m4: Update.
3735 * gnulib/import/m4/float_h.m4: Update.
3736 * gnulib/import/m4/fnmatch.m4: Update.
3737 * gnulib/import/m4/fpieee.m4: Update.
3738 * gnulib/import/m4/frexp.m4: Update.
3739 * gnulib/import/m4/frexpl.m4: Update.
3740 * gnulib/import/m4/gettimeofday.m4: Update.
3741 * gnulib/import/m4/glibc21.m4: Update.
3742 * gnulib/import/m4/gnulib-cache.m4: Update.
3743 * gnulib/import/m4/gnulib-common.m4: Update.
3744 * gnulib/import/m4/gnulib-comp.m4: Update.
3745 * gnulib/import/m4/gnulib-tool.m4: Update.
3746 * gnulib/import/m4/include_next.m4: Update.
3747 * gnulib/import/m4/inttypes-pri.m4: Update.
3748 * gnulib/import/m4/inttypes.m4: Update.
3749 * gnulib/import/m4/isnand.m4: Update.
3750 * gnulib/import/m4/isnanl.m4: Update.
3751 * gnulib/import/m4/largefile.m4: Update.
3752 * gnulib/import/m4/localcharset.m4: Update.
3753 * gnulib/import/m4/locale-fr.m4: Update.
3754 * gnulib/import/m4/locale-ja.m4: Update.
3755 * gnulib/import/m4/locale-zh.m4: Update.
3756 * gnulib/import/m4/longlong.m4: Update.
3757 * gnulib/import/m4/lstat.m4: Update.
3758 * gnulib/import/m4/malloc.m4: Update.
3759 * gnulib/import/m4/malloca.m4: Update.
3760 * gnulib/import/m4/math_h.m4: Update.
3761 * gnulib/import/m4/mbrtowc.m4: Update.
3762 * gnulib/import/m4/mbsinit.m4: Update.
3763 * gnulib/import/m4/mbsrtowcs.m4: Update.
3764 * gnulib/import/m4/mbstate_t.m4: Update.
3765 * gnulib/import/m4/memchr.m4: Update.
3766 * gnulib/import/m4/memmem.m4: Update.
3767 * gnulib/import/m4/mmap-anon.m4: Update.
3768 * gnulib/import/m4/multiarch.m4: Update.
3769 * gnulib/import/m4/nocrash.m4: Update.
3770 * gnulib/import/m4/off_t.m4: Update.
3771 * gnulib/import/m4/pathmax.m4: Update.
3772 * gnulib/import/m4/readlink.m4: Update.
3773 * gnulib/import/m4/rename.m4: Update.
3774 * gnulib/import/m4/rmdir.m4: Update.
3775 * gnulib/import/m4/ssize_t.m4: Update.
3776 * gnulib/import/m4/stat.m4: Update.
3777 * gnulib/import/m4/stdbool.m4: Update.
3778 * gnulib/import/m4/stddef_h.m4: Update.
3779 * gnulib/import/m4/stdint.m4: Update.
3780 * gnulib/import/m4/stdio_h.m4: Update.
3781 * gnulib/import/m4/stdlib_h.m4: Update.
3782 * gnulib/import/m4/string_h.m4: Update.
3783 * gnulib/import/m4/strstr.m4: Update.
3784 * gnulib/import/m4/strtok_r.m4: Update.
3785 * gnulib/import/m4/sys_socket_h.m4: Update.
3786 * gnulib/import/m4/sys_stat_h.m4: Update.
3787 * gnulib/import/m4/sys_time_h.m4: Update.
3788 * gnulib/import/m4/sys_types_h.m4: Update.
3789 * gnulib/import/m4/time_h.m4: Update.
3790 * gnulib/import/m4/unistd_h.m4: Update.
3791 * gnulib/import/m4/warn-on-use.m4: Update.
3792 * gnulib/import/m4/wchar_h.m4: Update.
3793 * gnulib/import/m4/wchar_t.m4: Update.
3794 * gnulib/import/m4/wctype_h.m4: Update.
3795 * gnulib/import/m4/wint_t.m4: Update.
3796 * gnulib/import/malloc.c: Update.
3797 * gnulib/import/malloca.c: Update.
3798 * gnulib/import/malloca.h: Update.
3799 * gnulib/import/math.in.h: Update.
3800 * gnulib/import/mbrtowc.c: Update.
3801 * gnulib/import/mbsinit.c: Update.
3802 * gnulib/import/mbsrtowcs-impl.h: Update.
3803 * gnulib/import/mbsrtowcs-state.c: Update.
3804 * gnulib/import/mbsrtowcs.c: Update.
3805 * gnulib/import/memchr.c: Update.
3806 * gnulib/import/memmem.c: Update.
3807 * gnulib/import/pathmax.h: Update.
3808 * gnulib/import/readlink.c: Update.
3809 * gnulib/import/ref-add.sin: Update.
3810 * gnulib/import/ref-del.sin: Update.
3811 * gnulib/import/rename.c: Update.
3812 * gnulib/import/rmdir.c: Update.
3813 * gnulib/import/same-inode.h: Update.
3814 * gnulib/import/stat.c: Update.
3815 * gnulib/import/stdbool.in.h: Update.
3816 * gnulib/import/stddef.in.h: Update.
3817 * gnulib/import/stdint.in.h: Update.
3818 * gnulib/import/stdio.c: Update.
3819 * gnulib/import/stdio.in.h: Update.
3820 * gnulib/import/stdlib.in.h: Update.
3821 * gnulib/import/str-two-way.h: Update.
3822 * gnulib/import/streq.h: Update.
3823 * gnulib/import/string.in.h: Update.
3824 * gnulib/import/stripslash.c: Update.
3825 * gnulib/import/strnlen1.c: Update.
3826 * gnulib/import/strnlen1.h: Update.
3827 * gnulib/import/strstr.c: Update.
3828 * gnulib/import/strtok_r.c: Update.
3829 * gnulib/import/sys_stat.in.h: Update.
3830 * gnulib/import/sys_time.in.h: Update.
3831 * gnulib/import/sys_types.in.h: Update.
3832 * gnulib/import/time.in.h: Update.
3833 * gnulib/import/unistd.in.h: Update.
3834 * gnulib/import/verify.h: Update.
3835 * gnulib/import/wchar.in.h: Update.
3836 * gnulib/import/wctype.in.h: Update.
3837 * gnulib/import/gettimeofday.c: New file.
3838 * gnulib/import/m4/absolute-header.m4: New file.
3839 * gnulib/import/m4/gettimeofday.m4: New file.
3840 * gnulib/import/m4/sys_socket_h.m4: New file.
3841 * gnulib/import/m4/sys_time_h.m4: New file.
3842 * gnulib/import/stdio.c: Delete file.
3843 * gnulib/import/sys_time.in.h: New file.
3844
438e1e42
PA
38452015-08-24 Pedro Alves <palves@redhat.com>
3846
3847 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3848 * common/gdb_sys_time.h: New file.
3849 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3850 * gdb_select.h: Likewise.
3851 * gdb_usleep.c: Likewise.
3852 * maint.c: Likewise.
3853 * mi/mi-main.c: Likewise.
3854 * mi/mi-parse.h: Likewise.
3855 * remote-fileio.c: Likewise.
3856 * remote-m32r-sdi.c: Likewise.
3857 * remote.c: Likewise.
3858 * ser-base.c: Likewise.
3859 * ser-pipe.c: Likewise.
3860 * ser-tcp.c: Likewise.
3861 * ser-unix.c: Likewise.
3862 * symfile.c: Likewise.
3863 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3864 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3865 * utils.c: Likewise.
3866
40e0b271
PA
38672015-08-24 Pedro Alves <palves@redhat.com>
3868
3869 * NEWS: Mention removed support for the various ROM monitors.
3870 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3871 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3872 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3873 gdb_target_obs.
3874 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3875 gdb_target_obs.
3876 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3877 dsrec.o from gdb_target_obs.
3878 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3879 from gdb_target_obs.
3880 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3881 gdb_target_obs.
3882 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3883 dink32-rom.o from gdb_target_obs.
3884 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3885 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3886 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3887 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3888
f8904751
PA
38892015-08-21 Pedro Alves <palves@redhat.com>
3890
3891 * frame.c (null_frame_id): Explicitly zero-initialize.
3892
049412e3
TT
38932015-08-21 Tom Tromey <tromey@redhat.com>
3894
3895 * dwarf2read.c (struct dwarf2_section_info): Rename field
3896 'asection' to 'section'.
3897 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3898 (dwarf2_locate_sections, dwarf2_locate_sections)
3899 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3900 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3901 (dwarf2_locate_v2_dwp_sections): Adjust.
3902
948578a9
PP
39032015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3904
3905 * top.h (gdb_in_secondary_prompt_p): Declare.
3906 * top.c (gdb_secondary_prompt_depth): Define.
3907 (gdb_in_secondary_prompt_p): Define.
3908 (gdb_readline_wrapper_cleanup): Decrement
3909 gdb_secondary_prompt_depth.
3910 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3911 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3912 are in a secondary prompt.
3913
7a8bcb88
PP
39142015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3915
3916 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3917 emit the newline.
3918
2d7711a3
GB
39192015-08-21 Gary Benson <gbenson@redhat.com>
3920
3921 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3922
4313b8c0
GB
39232015-08-21 Gary Benson <gbenson@redhat.com>
3924
3925 * target.h (struct target_ops) <to_fileio_open>: New argument
3926 warn_if_slow. Update comment. All implementations updated.
3927 (target_fileio_open_warn_if_slow): New declaration.
3928 * target.c (target_fileio_open): Renamed as...
3929 (target_fileio_open_1): ...this. New argument warn_if_slow.
3930 Pass warn_if_slow to implementation. Update debug printing.
3931 (target_fileio_open): New function.
3932 (target_fileio_open_warn_if_slow): Likewise.
3933 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3934 target_fileio_open_warn_if_slow.
3935
f36b8719
GB
39362015-08-21 Gary Benson <gbenson@redhat.com>
3937
3938 * nat/linux-namespaces.c (linux_mntns_access_fs):
3939 Do not overwrite old_chain.
3940
40045d91
MF
39412015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3942
3943 * arch/xtensa.h: New file.
3944 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3945 (ps_get_thread_area): New function.
3946 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3947 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3948 * xtensa-tdep.c (osabi.h): New #include.
3949 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3950 xtensa-specific hooks.
3951 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3952 member and move the structure to arch/xtensa.h.
3953
80152258
PA
39542015-08-21 Pedro Alves <palves@redhat.com>
3955
3956 * remote.c (struct readahead_cache): New.
3957 (struct remote_state) <readahead_cache>: New field.
3958 (remote_open_1): Invalidate the cache.
3959 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3960 functions.
3961 (remote_hostio_pwrite): Invalidate the readahead cache.
3962 (remote_hostio_pread): Rename to ...
3963 (remote_hostio_pread_vFile): ... this.
3964 (remote_hostio_pread_from_cache): New function.
3965 (remote_hostio_pread): Reimplement.
3966 (remote_hostio_close): Invalidate the readahead cache.
3967
88fc5eb7
MC
39682015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3969
3970 PR build/18843
3971 * procfs.c: Include "filestuff.h".
3972
6f1cb6ea
PP
39732015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3974
3975 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3976 curch.
3977 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3978 cur_line or curch, instead call wmove().
3979 (init_win_info) [CMD_WIN]: Likewise.
3980 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3981 instead call getcury().
3982 (tui_redisplay_readline): Don't set cur_line or curch.
3983 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3984 getcury().
3985 (tui_cont_sig): Remove call to wmove.
3986 (tui_getc): Don't read cur_line or curch, instead call getcury()
3987 or getyx(). Don't set curch.
3988 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3989 set cur_line or curch. Always move cursor to (0,0).
3990
221e1a37
PA
39912015-08-20 Pedro Alves <palves@redhat.com>
3992
3993 * infrun.c (print_target_wait_results): Make extern.
3994 * infrun.h (print_target_wait_results): Declare.
3995 * remote.c (set_stop_requested_callback): Delete.
3996 (process_initial_stop_replies): New function.
3997 (remote_start_remote): Use it.
3998 (stop_reply_queue_length): New function.
3999
40e3ad0e
PA
40002015-08-20 Pedro Alves <palves@redhat.com>
4001
4002 * dwarf2read.c (process_full_comp_unit): To tell whether
4003 start_subfile managed to deduce a language, test for
4004 language_unknown instead of language_c.
4005
af39b327
PMR
40062015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4007
4008 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4009 matches attributes.
4010
7d45c7c3
KB
40112015-08-19 Kevin Buettner <kevinb@redhat.com>
4012
4013 * dwarf2read.c (dwarf2_string_attr): New function.
4014 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4015 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4016 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4017 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4018 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4019
4d6cceb4
DE
40202015-08-18 Doug Evans <dje@google.com>
4021 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4022
4023 PR mi/18833
4024 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4025 if MI-like.
4026 * mi/mi-out.c: #include "vec.h".
4027 (ui_filep): New type.
4028 (DEV_VEC_P (ui_filep)): New type.
4029 (struct ui_out_data) <buffer, original_buffer>: Delete.
4030 (struct ui_out_data) <streams>: New member.
4031 (mi_ui_out_impl): Add data_destroy field.
4032 (mi_field_string, mi_field_fmt): Update.
4033 (mi_flush, mi_redirect, field_separator): Update.
4034 (mi_open, mi_close): Update.
4035 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4036 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4037 (mi_out_new): Call mi_out_data_ctor.
4038
26d56a93
SL
40392015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4040
4041 * remote.c (strprefix): New.
4042 (remote_parse_stop_reply): Use strprefix instead of strncmp
4043 to ensure exact match of keyword.
4044
566f5e3b
AB
40452015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * gdb_bfd.c (debug_bfd_cache): New variable.
4048 (show_bfd_cache_debug): New function.
4049 (gdb_bfd_open): Add debug logging.
4050 (gdb_bfd_ref): Likewise.
4051 (gdb_bfd_unref): Likewise.
4052 (_initialize_gdb_bfd): Add new set/show command.
4053 * NEWS: Mention new command.
4054
18989b3c
AB
40552015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * gdb_bfd.c (bfd_sharing): New variable.
4058 (show_bfd_sharing): New function.
4059 (gdb_bfd_open): Check bfd_sharing variable.
4060 (_initialize_gdb_bfd): Add new set/show command.
4061 * NEWS: Mention new command.
4062
c04fe68f
AB
40632015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4064
4065 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4066 field.
4067 (struct gdb_bfd_cache_search): Likewise.
4068 (eq_bfd): Compare the size, inode, and device id fields.
4069 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4070 (gdb_bfd_ref): Likewise.
4071 (gdb_bfd_unref): Likewise.
4072
b2a33439
PA
40732015-08-18 Pedro Alves <palves@redhat.com>
4074
4075 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4076 target implements to_always_non_stop_p, call it.
4077 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4078 (x86_linux_create_target): Install it as to_always_non_stop_p
4079 method.
4080
71b57e37
DE
40812015-08-17 Doug Evans <dje@google.com>
4082
4083 * ui-out.c (default_ui_out_impl): Add comment.
4084
7f3706eb
IB
40852015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4086
4087 * d-exp.y (type_aggregate_p): New function.
4088 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4089 (classify_inner_name): Likewise.
4090 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4091
1762568f
DE
40922015-08-15 Doug Evans <xdje42@gmail.com>
4093
4094 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4095 updated.
4096 (add_psymbol_to_list): Ditto.
4097
8763cede
DE
40982015-08-15 Doug Evans <xdje42@gmail.com>
4099
4100 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4101 updated. Call end_psymtab_common.
4102 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4103 end_psymtab_common.
4104 (build_type_psymtabs_reader): Ditto.
4105 * psympriv.h (sort_pst_symbols): Delete.
4106 (end_psymtab_common): Declare.
4107 * psymtab.c (sort_pst_symbols): Make static.
4108 (end_psymtab_common): New function.
4109 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4110
51cdc993
DE
41112015-08-15 Doug Evans <xdje42@gmail.com>
4112
4113 * defs.h (LANGUAGE_BITS): Define.
4114 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4115 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4116 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4117 (minimal_symbol_type): Add nr_minsym_types.
4118 (MINSYM_TYPE_BITS): Define.
4119 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4120 (domain_enum_tag): Add NR_DOMAINS.
4121 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4122 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4123
95cf5869
DE
41242015-08-15 Doug Evans <xdje42@gmail.com>
4125
4126 * objfiles.h: Whitespace cleanup.
4127 * psympriv.h: Whitespace cleanup.
4128 * psymtab.c: Whitespace/coding convention cleanup.
4129
e3ae3c43
PP
41302015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4131
4132 * inferior.c (detach_inferior_command): Don't call
4133 any_thread_of_process when pid is 0.
4134 (kill_inferior_command): Likewise.
4135
6ff0ba5f
DE
41362015-08-14 Doug Evans <xdje42@gmail.com>
4137
4138 PR gdb/11833
4139 * NEWS: Document new /s modifier for the disassemble command.
4140 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4141 (_initialize_cli_cmds): Update online docs of disassemble command.
4142 * disasm.c: #include "source.h".
4143 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4144 All uses updated.
4145 (dis_line_entry): New struct.
4146 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4147 (allocate_dis_line_table): New functions.
4148 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4149 (dump_insns): New arg end_pc. All callers updated.
4150 (do_mixed_source_and_assembly_deprecated): Renamed from
4151 do_mixed_source_and_assembly. All callers updated.
4152 (do_mixed_source_and_assembly): New function.
4153 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4154 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4155 DISASSEMBLY_SOURCE. All uses updated.
4156 (DISASSEMBLY_SOURCE): New macro.
4157 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4158
b56ccc20
KS
41592015-08-14 Keith Seitz <keiths@redhat.com>
4160
4161 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4162 `typename' to `type_name' to avoid C++ reserved word.
4163
ebdad8fc
KS
41642015-08-14 Keith Seitz <keiths@redhat.com>
4165
4166 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4167 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4168 silence ARI errors.
4169
c0fe2ae7
IB
41702015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4171
4172 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4173 xstrprintf instead of malloc and sprintf.
4174 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4175 (lex_one_token): Likewise.
4176
a738da3a
MF
41772015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4178
4179 * solib-svr4.c (read_program_header): Add base_addr argument to
4180 report the runtime address of the segment.
4181 (find_program_interpreter): Update read_program_header call to pass
4182 a NULL pointer for the new argument.
4183 (scan_dyntag): Add ptr_addr argument to report the runtime address
4184 of the tag payload.
4185 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4186 read_program_header to get the base address of the dynamic segment.
4187 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4188 read_program_header.
4189 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4190
f8edc4ff
MF
41912015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4192
4193 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4194
444c1ed8
IB
41952015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4196
4197 * d-exp.y (%union): Add voidval.
4198 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4199 name in the lexing stage.
4200 (PostfixExpression): Move symbol completion handling in grammar here
4201 from PrimaryExpression.
4202 (PrimaryExpression): Move routines to handle resolving identifier
4203 tokens in the grammar here from push_expression_name.
4204 (IdentifierExp): Remove the handling of alternating '.' and identifier
4205 tokens.
4206 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4207 (BasicType): Remove C-style typename rules.
4208 (d_type_from_name, d_module_from_name, push_variable)
4209 (push_fieldnames, push_type_name, push_module_name)
4210 (push_expression_name): Remove.
4211 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4212 (token_and_value): New type.
4213 (token_fifo, popping, name_obstack): New globals.
4214 (classify_name): New function.
4215 (classify_inner_name): Likewise.
4216 (yylex): Likewise.
4217 (d_parse): Initialize token_fifo, popping and name_obstack.
4218
bc7c9fab
IB
42192015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4220
4221 * Makefile.in (SFILES): Add d-namespace.c.
4222 (COMMON_OBS): Add d-namespace.o.
4223 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4224 la_lookup_symbol_nonlocal callback function pointer.
4225 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4226 (d_lookup_nested_symbol): New declaration.
4227 * d-namespace.c: New file.
4228
3207396b
PA
42292015-08-13 Pedro Alves <palves@redhat.com>
4230
4231 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4232 cleanup after the decref cleanup, not before.
4233
5d8c3ed3
PMR
42342015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4235
4236 * ada-lang.c: Include namespace.h
4237 (aux_add_nonlocal_symbols): Fix a function name in comment.
4238 (ada_add_block_renamings): New.
4239 (add_nonlocal_symbols): Add global renamings handling.
4240 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4241 to...
4242 (ada_add_all_symbols): ... this new function.
4243 (ada_add_block_symbols): Try to match the input name against the
4244 "using directives list", perform a recursive symbol lookup on
4245 the matched declarations.
4246 * block.h (struct block): Move the_namespace to top-level as
4247 namespace_info. Remove the language_specific field.
4248 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4249 * buildsym.h (using_directives): Rename into...
4250 (local_using_directives): ... this.
4251 (global_using_directives): New.
4252 (struct context_stack): Rename the using_directives field into
4253 local_using_directives.
4254 * buildsym.c (finish_block_internal): Deal with the proper
4255 using directives repository (local or global).
4256 (prepare_for_building): Reset local_using_directives. Assert
4257 that there is no pending global using directive.
4258 (reset_symtab_globals): Reset global_using_directives and
4259 local_using_directives.
4260 (end_symtab_get_static_block): Don't ignore symtabs that have
4261 only using directives.
4262 (push_context): Update references to local_using_directives.
4263 (buildsym_init): Do not reset using_directives.
4264 * cp-support.c: Include namespace.h.
4265 * cp-support.h (struct using_direct): Move to namespace.h.
4266 (cp_add_using_directives): Move to namespace.h.
4267 * cp-namespace.c: Include namespace.h
4268 (cp_add_using_directive): Move to namespace.c, rename it to
4269 add_using_directive, add a "using_directives" argument and use
4270 it as the pending using directives repository. All callers
4271 updated.
4272 * dwarf2read.c (using_directives): New.
4273 (read_import_statement): Call using_directives.
4274 (read_func_scope): Update references to local_using_directives.
4275 (read_lexical_block_scope): Likewise.
4276 (read_namespace): Update the heading comment, call
4277 using_directives.
4278 * namespace.h: New file.
4279 * namespace.c: New file.
4280 * Makefile.in (SFILES): Add namespace.c.
4281 (COMMON_OBS): Add namespace.o
4282
4dafcdeb
JB
42832015-08-12 Joel Brobecker <brobecker@adacore.com>
4284
4285 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4286 compute RETADDR.
4287
67994074
KS
42882015-08-12 Keith Seitz <keiths@redhat.com>
4289
4290 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4291 reserved C++ keyword "explicit" to "explicit_loc".
4292 * breakpoint.c (create_overlay_event_breakpoint)
4293 (create_longjmp_master_breakpoint)
4294 (create_std_terminate_master_breakpoint)
4295 (create_exception_master_breakpoint, update_static_tracepoint):
4296 Rename reserved C++ keyword "explicit" to "explicit_loc".
4297 * completer.c (collect_explicit_location_matches)
4298 (explicit_location_completer): Rename reserved C++ keyword
4299 "explicit" to "explicit_loc".
4300 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4301 (canonicalize_linespec, create_sals_line_offset)
4302 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4303 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4304 "explicit" to "explicit_loc".
4305 * location.c (struct event_location) <explicit>: Rename to
4306 "explicit_loc".
4307 (initialize_explicit_location, new_explicit_location)
4308 (explicit_location_to_string_internal, explicit_location_to_linespec):
4309 Rename reserved C++ keyword "explicit" to "explicit_loc".
4310 * location.h (explicit_location_to_string)
4311 (explicit_location_to_linespec, initialize_explicit_location)
4312 (new_explicit_location): Rename reserved C++ keyword "explicit"
4313 to "explicit_loc".
4314 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4315 keyword "explicit" to "explicit_loc".
4316
59ecaff3
KS
43172015-08-12 Keith Seitz <keiths@redhat.com>
4318
4319 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4320 and only call decode_line_1 when it is non-NULL.
4321
244558af
LM
43222015-08-12 Luis Machado <lgustavo@codesourcery.com>
4323
4324 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4325 location address is not meaningful.
4326 (breakpoint_address_is_meaningful): Update comment.
4327
629500fa
KS
43282015-08-11 Keith Seitz <keiths@redhat.com>
4329
4330 * NEWS: Mention explicit locations.
4331 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4332 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4333 (_initialize_breakpoint): Update documentation for
4334 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4335
eb8c4e2e
KS
43362015-08-11 Keith Seitz <keiths@redhat.com>
4337
4338 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4339 explicit locations, options "--source", "--function",
4340 "--label", and "--line".
4341
87f0e720
KS
43422015-08-11 Keith Seitz <keiths@redhat.com>
4343
4344 * completer.c: Include location.h.
4345 (enum match_type): New enum.
4346 (location_completer): Rename to ...
4347 (linespec_completer): ... this.
4348 (collect_explicit_location_matches, backup_text_ptr)
4349 (explicit_location_completer): New functions.
4350 (location_completer): "New" function; handle linespec
4351 and explicit location completions.
4352 (complete_line_internal): Remove all location completer-specific
4353 handling.
4354 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4355 (find_toplevel_char): Export.
4356 (linespec_parse_line_offset): Export.
4357 Issue error if STRING is not numerical.
4358 (gdb_get_linespec_parser_quote_characters): New function.
4359 * linespec.h (linespec_parse_line_offset): Declare.
4360 (get_gdb_linespec_parser_quote_characters): Declare.
4361 (is_ada_operator): Declare.
4362 (find_toplevel_char): Declare.
4363 (linespec_lexer_lex_keyword): Declare.
4364 * location.c (explicit_to_event_location): New function.
4365 (explicit_location_lex_one): New function.
4366 (string_to_explicit_location): New function.
4367 (string_to_event_location): Handle explicit locations.
4368 * location.h (explicit_to_event_location): Declare.
4369 (string_to_explicit_location): Declare.
4370
00e52e53
KS
43712015-08-11 Keith Seitz <keiths@redhat.com>
4372
4373 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4374 linespec into explicit location.
4375 * breakpoint.c (create_overlay_breakpoint)
4376 (create_longjmp_master_breakpoint)
4377 (create_std_terminate_master_breakpoint)
4378 (create_exception_master_breakpoint): Convert linespec into explicit
4379 location.
4380 (update_static_tracepoint): Convert linespec into explicit location.
4381 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4382 location.h.
4383 (struct linespec) <expression, expr_pc, source_filename>
4384 <function_name, label_name, line_offset>: Replace with ...
4385 <explicit>: ... this.
4386 <is_linespec>: New member.
4387 (PARSER_EXPLICIT): New accessor macro.
4388 (undefined_label_error): New function.
4389 (source_file_not_found_error): New function.
4390 (linespec_parse_basic): The parser result is now an explicit location.
4391 Use PARSER_EXPLICIT to access it.
4392 Use undefined_label_error.
4393 (canonicalize_linespec): Convert canonical linespec into explicit
4394 location.
4395 Move string representation of location to explicit_location_to_linespec
4396 and use it and explicit_location_to_string to save string
4397 representations of the canonical location.
4398 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4399 explicit location. Update all references.
4400 (convert_explicit_location_to_sals): New function.
4401 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4402 result's explicit location.
4403 (linespec_state_constructor): Initialize is_linespec.
4404 Use PARSER_EXPLICIT.
4405 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4406 result.
4407 (event_location_to_sals): For linespec locations, set is_linespec.
4408 Handle explicit locations.
4409 (decode_objc): 'ls' contains an explicit location now. Update all
4410 references.
4411 (symtabs_from_filename): Use source_file_not_found_error.
4412 * location.c (struct event_location.u) <explicit>: New member.
4413 (initialize_explicit_location): New function.
4414 (initialize_event_location): Initialize explicit locations.
4415 (new_explicit_location, get_explicit_location)
4416 (get_explicit_location_const): New functions.
4417 (explicit_to_string_internal): New function; most of contents moved
4418 from canonicalize_linespec.
4419 (explicit_location_to_string): New function.
4420 (explicit_location_to_linespec): New function.
4421 (copy_event_location, delete_event_location)
4422 (event_location_to_string_const, event_location_empty_p): Handle
4423 explicit locations.
4424 * location.h (enum offset_relative_sign, struct line_offset): Move
4425 here from linespec.h.
4426 (enum event_location_type): Add EXPLICIT_LOCATION.
4427 (struct explicit_location): New structure.
4428 (explicit_location_to_string): Declare.
4429 (explicit_location_to_linespec): Declare.
4430 (new_explicit_location, get_explicit_locationp
4431 (get_explicit_location_const, initialize_explicit_location): Declare.
4432
5b56227b
KS
44332015-08-11 Keith Seitz <keiths@redhat.com>
4434
4435 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4436 linespec for stap probe to probe location.
4437 * breakpoint.c (create_longjmp_master_breakpoint)
4438 (create_exception_master_breakpoint): Likewise.
4439 (break_command_1): Remove local variable `arg_cp'.
4440 Check location type to set appropriate breakpoint ops methods.
4441 (trace_command): Likewise.
4442 * linespec.c (event_location_to_sals): Assert on probe locations.
4443 * location.c (EL_PROBE): Add macro definition.
4444 (new_probe_location, get_probe_location): New functions.
4445 (copy_event_location, delete_event_location, event_location_to_string)
4446 (string_to_event_location, event_location_empty_p): Handle probe
4447 locations.
4448 * location.h (enum event_location_type): Add PROBE_LOCATION.
4449 (new_probe_location, get_probe_location): Declare.
4450 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4451 Convert linespec into probe location.
4452
a06efdd6
KS
44532015-08-11 Keith Seitz <keiths@redhat.com>
4454
4455 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4456 Convert linespec to address location.
4457 * linespec.c (canonicalize_linespec): Do not handle address
4458 locations here.
4459 (convert_address_location_to_sals): New function; contents moved
4460 from ...
4461 (convert_linespc_to_sals): ... here.
4462 (parse_linespec): Remove address locations from linespec grammar.
4463 Remove handling of address locations.
4464 (linespec_lex_to_end): Remove handling of address linespecs.
4465 (event_location_to_sals): Handle ADDRESS_LOCATION.
4466 (linespec_expression_to_pc): Export.
4467 * linespec.h (linespec_expression_to_pc): Add declaration.
4468 * location.c (struct event_location.u) <address>: New member.
4469 (new_address_location, get_address_location): New functions.
4470 (copy_event_location, delete_event_location, event_location_to_string)
4471 (string_to_event_location, event_location_empty_p): Handle address
4472 locations.
4473 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4474 (new_address_location, get_address_location): Declare.
4475 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4476 to address location.
4477 * spu-tdep.c (spu_catch_start): Likewise.
4478
f00aae0f
KS
44792015-08-11 Keith Seitz <keiths@redhat.com>
4480
4481 * ax-gdb.c: Include location.h.
4482 (agent_command_1) Use linespec location instead of address
4483 string.
4484 * break-catch-throw.c: Include location.h.
4485 (re_set_exception_catchpoint): Use linespec locations instead
4486 of address strings.
4487 * breakpoint.c: Include location.h.
4488 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4489 (create_std_terminate_master_breakpoint)
4490 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4491 Use linespec location instead of address string.
4492 (print_breakpoint_location): Use locations and
4493 event_location_to_string.
4494 Print extra_string for pending locations for non-MI streams.
4495 (print_one_breakpoint_location): Use locations and
4496 event_location_to_string.
4497 (init_raw_breakpoint_without_location): Initialize b->location.
4498 (create_thread_event_breakpoint): Use linespec location instead of
4499 address string.
4500 (init_breakpoint_sal): Likewise.
4501 Only save extra_string if it is non-NULL and not the empty string.
4502 Use event_location_to_string instead of `addr_string'.
4503 Constify `p' and `endp'.
4504 Use skip_spaces_const/skip_space_const instead of non-const versions.
4505 Copy the location into the breakpoint.
4506 If LOCATION is NULL, save the breakpoint address as a linespec location
4507 instead of an address string.
4508 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4509 event_location. All uses updated.
4510 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4511 (parse_breakpoint_sals): Use locations instead of address strings.
4512 Remove check for empty linespec with conditional.
4513 Refactor.
4514 (decode_static_tracepoint_spec): Make argument const and update
4515 function.
4516 (create_breakpoint): Change `arg' to a struct event_location and
4517 rename.
4518 Remove `copy_arg' and `addr_start'.
4519 If EXTRA_STRING is empty, set it to NULL.
4520 Don't populate `canonical' for pending breakpoints.
4521 Pass `extra_string' to find_condition_and_thread.
4522 Clear `extra_string' if `rest' was NULL.
4523 Do not error with "garbage after location" if setting a dprintf
4524 breakpoint.
4525 Copy the location into the breakpoint instead of an address string.
4526 (break_command_1): Use string_to_event_location and pass this to
4527 create_breakpoint instead of an address string.
4528 Check against `arg_cp' for a probe linespec.
4529 (dprintf_command): Use string_to_event_location and pass this to
4530 create_breakpoint instead of an address string.
4531 Throw an exception if no format string was specified.
4532 (print_recreate_ranged_breakpoint): Use event_location_to_string
4533 instead of address strings.
4534 (break_range_command, until_break_command)
4535 (init_ada_exception_breakpoint): Use locations instead
4536 of address strings.
4537 (say_where): Print out extra_string for pending locations.
4538 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4539 the breakpoint.
4540 (base_breakpoint_create_sals_from_location): Use struct event_location
4541 instead of address string.
4542 Remove `addr_start' and `copy_arg' parameters.
4543 (base_breakpoint_decode_location): Use struct event_location instead of
4544 address string.
4545 (bkpt_re_set): Use locations instead of address strings.
4546 Use event_location_empty_p to check for unset location.
4547 (bkpt_print_recreate): Use event_location_to_string instead of
4548 an address string.
4549 Print out extra_string for pending locations.
4550 (bkpt_create_sals_from_location, bkpt_decode_location)
4551 (bkpt_probe_create_sals_from_location): Use struct event_location
4552 instead of address string.
4553 (bkpt_probe_decode_location): Use struct event_location instead of
4554 address string.
4555 (tracepoint_print_recreate): Use event_location_to_string to
4556 recreate the tracepoint.
4557 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4558 (tracepoint_probe_create_sals_from_location)
4559 (tracepoint_probe_decode_location): Use struct event_location
4560 instead of address string.
4561 (dprintf_print_recreate): Use event_location_to_string to recreate
4562 the dprintf.
4563 (dprintf_re_set): Remove check for valid/missing format string.
4564 (strace_marker_create_sals_from_location)
4565 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4566 (update_static_tracepoint): Use struct event_location instead of
4567 address string.
4568 (location_to_sals): Likewise.
4569 Pass `extra_string' to find_condition_and_thread.
4570 For newly resolved pending breakpoint locations, clear the location's
4571 string representation.
4572 Assert that the breakpoint's condition string is NULL when
4573 condition_not_parsed.
4574 (breakpoint_re_set_default, create_sals_from_location_default)
4575 (decode_location_default, trace_command, ftrace_command)
4576 (strace_command, create_tracepoint_from_upload): Use locations
4577 instead of address strings.
4578 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4579 Use struct event_location instead of address string.
4580 Update all uses.
4581 <decode_location>: Likewise.
4582 (struct breakpoint) <addr_string>: Change to struct event_location
4583 and rename `location'.
4584 <addr_string_range_end>: Change to struct event_location and rename
4585 `location_range_end'.
4586 (create_breakpoint): Use struct event_location instead of address
4587 string.
4588 * cli/cli-cmds.c: Include location.h.
4589 (edit_command, list_command): Use locations instead of address strings.
4590 * elfread.c: Include location.h.
4591 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4592 * guile/scm-breakpoint.c: Include location.h.
4593 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4594 (gdbscm_register_breakpoint): Use locations instead of address
4595 strings.
4596 * linespec.c: Include location.h.
4597 (struct ls_parser) <stream>: Change to const char *.
4598 (PARSER_STREAM): Update.
4599 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4600 keywords must be followed by whitespace.
4601 (canonicalize_linespec): Save a linespec location into `canonical'.
4602 Save a canonical linespec into `canonical'.
4603 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4604 All uses updated.
4605 Update function description.
4606 (linespec_parser_new): Initialize `parser'.
4607 Update initialization of parsing stream.
4608 (event_location_to_sals): New function.
4609 (decode_line_full): Change `argptr' to a struct event_location and
4610 rename it `location'.
4611 Use locations instead of address strings.
4612 Call event_location_to_sals instead of parse_linespec.
4613 (decode_line_1): Likewise.
4614 (decode_line_with_current_source, decode_line_with_last_displayed)
4615 Use locations instead of address strings.
4616 (decode_objc): Likewise.
4617 Change `argptr' to const char * and rename `arg'.
4618 (destroy_linespec_result): Delete the linespec result's location
4619 instead of freeing the address string.
4620 * linespec.h (struct linespec_result) <addr_string>: Change to
4621 struct event_location and rename to ...
4622 <location>: ... this.
4623 (decode_line_1, decode_line_full): Change `argptr' to struct
4624 event_location. All callers updated.
4625 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4626 (mi_cmd_break_insert_1): Use locations instead of address strings.
4627 Throw an error if there was "garbage" at the end of the specified
4628 linespec.
4629 * probe.c: Include location.h.
4630 (parse_probes): Change `argptr' to struct event_location.
4631 Use event locations instead of address strings.
4632 * probe.h (parse_probes): Change `argptr' to struct event_location.
4633 * python/py-breakpoint.c: Include location.h.
4634 (bppy_get_location): Constify local variable `str'.
4635 Use event_location_to_string.
4636 (bppy_init): Use locations instead of address strings.
4637 * python/py-finishbreakpoint.c: Include location.h.
4638 (bpfinishpy_init): Remove local variable `addr_str'.
4639 Use locations instead of address strings.
4640 * python/python.c: Include location.h.
4641 (gdbpy_decode_line): Use locations instead of address strings.
4642 * remote.c: Include location.h.
4643 (remote_download_tracepoint): Use locations instead of address
4644 strings.
4645 * spu-tdep.c: Include location.h.
4646 (spu_catch_start): Remove local variable `buf'.
4647 Use locations instead of address strings.
4648 * tracepoint.c: Include location.h.
4649 (scope_info): Use locations instead of address strings.
4650 (encode_source_string): Constify parameter `src'.
4651 * tracepoint.h (encode_source_string): Likewise.
4652
c7c1b3e9
KS
46532015-08-11 Keith Seitz <keiths@redhat.com>
4654
4655 * Makefile.in (SFILES): Add location.c.
4656 (HFILES_NO_SRCDIR): Add location.h.
4657 (COMMON_OBS): Add location.o.
4658 * linespec.c (linespec_lex_to_end): New function.
4659 * linespec.h (linespec_lex_to_end): Declare.
4660 * location.c: New file.
4661 * location.h: New file.
4662
5f700d83
KS
46632015-08-11 Keith Seitz <keiths@redhat.com>
4664
4665 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4666 Renamed to create_sals_from_location.
4667 <decode_linespec>: Renamed to decode_location.
4668 Update all callers.
4669 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4670 (create_sals_from_location_default): ... this.
4671 (addr_string_to_sals): Renamed to ...
4672 (location_to_sals): ... this.
4673 (decode_linespec_default): Renamed to ...
4674 (decode_location_default): ... this.
4675 (base_breakpoint_create_sals_from_address): Renamed to ...
4676 (base_breakpoint_create_sals_from_location): ... this.
4677 (bkpt_create_sals_from_address): Renamed to ...
4678 (bkpt_create_sals_from_location): ... this.
4679 (bkpt_decode_linespec): Renamed to ...
4680 (bkpt_decode_location): ... this.
4681 (bkpt_probe_create_sals_from_address): Renamed to ...
4682 (bkpt_probe_create_sals_from_location): ... this.
4683 (tracepoint_create_sals_from_address): Renamed to ...
4684 (tracepoint_create_sals_from_location): ... this.
4685 (tracepoint_decode_linespec): Renamed to ...
4686 (tracepoint_decode_location): ... this.
4687 (tracepoint_probe_create_sals_from_address): Renamed to ...
4688 (tracepoint_probe_create_sals_from_location): ... this.
4689 (tracepoint_probe_decode_linespec): Renamed to ...
4690 (tracepoint_probe_decode_location): ... this.
4691 (strace_marker_create_sals_from_address): Renamed to ...
4692 (strace_marker_create_sals_from_location): ... this.
4693 (decode_linespec_default): Renamed to ...
4694 (decode_location_default): ... this.
4695
e27852be
DE
46962015-08-10 Doug Evans <dje@google.com>
4697 Keith Seitz <keiths@redhat.com>
4698
4699 PR gdb/17960
4700 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4701 make_file_symbol_completion_list and made static.
4702 (make_file_symbol_completion_list): New function.
80af41e0 4703
fd7dcb94
JB
47042015-08-10 Joel Brobecker <brobecker@adacore.com>
4705
4706 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4707 trailing new-line at end of warning message.
4708 (proceed): Add i18n marker to error messages.
4709
f12899e9
PA
47102015-08-07 Pedro Alves <palves@redhat.com>
4711
4712 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4713
5ac21343
PA
47142015-08-07 Pedro Alves <palves@redhat.com>
4715
4716 * s390-linux-tdep.c (is_non_branch_ril)
4717 (s390_displaced_step_copy_insn): New functions.
4718 (s390_displaced_step_fixup): Update comment.
4719 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4720 gdbarch_displaced_step_copy_insn hook.
4721
7f03bd92
PA
47222015-08-07 Pedro Alves <palves@redhat.com>
4723
4724 * infrun.c (displaced_step_prepare_throw): Return -1 if
4725 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4726 comment.
4727 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4728 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4729 in file.
4730 (ppc_displaced_step_copy_insn): New function.
4731 (ppc_displaced_step_fixup): Update comment.
4732 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4733 gdbarch_displaced_step_copy_insn hook.
4734 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4735 NULL return.
4736 * gdbarch.h: Regenerate.
4737
3fc8eb30
PA
47382015-08-07 Pedro Alves <palves@redhat.com>
4739
4740 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4741 field.
4742 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4743 Return false if dispaced stepping failed before.
4744 (resume): Pass the current inferior to
4745 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4746 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4747 displaced_stepping_failed flag, and fall back to an in-line
4748 step-over.
4749
bfedc46a
PA
47502015-08-07 Pedro Alves <palves@redhat.com>
4751
4752 * darwin-nat.c (darwin_stop): Rename to ...
4753 (darwin_interrupt): ... this.
4754 (_initialize_darwin_inferior): Adjust.
4755 * gnu-nat.c (gnu_stop): Delete.
4756 (gnu_target): Don't install gnu_stop.
4757 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4758 (inf_ptrace_interrupt): ... this.
4759 (inf_ptrace_target): Adjust.
4760 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4761 target_stop.
4762 * linux-nat (linux_nat_stop): Rename to ...
4763 (linux_nat_interrupt): ... this.
4764 (linux_nat_stop): Reimplement.
4765 (linux_nat_add_target): Install linux_nat_interrupt.
4766 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4767 (nto_handle_sigint_twice): ... this.
4768 (nto_interrupt): Rename to ...
4769 (nto_handle_sigint): ... this. Call target_interrupt instead of
4770 target_stop.
4771 (procfs_wait): Adjust.
4772 (procfs_stop): Rename to ...
4773 (procfs_interrupt): ... this.
4774 (init_procfs_targets): Adjust.
4775 * procfs.c (procfs_stop): Rename to ...
4776 (procfs_interrupt): ... this.
4777 (procfs_target): Adjust.
4778 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4779 (m32r_interrupt): ... this.
4780 (init_m32r_ops): Adjust.
4781 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4782 (gdbsim_interrupt_inferior): ... this.
4783 (gdbsim_stop): Rename to ...
4784 (gdbsim_interrupt): ... this.
4785 (gdbsim_cntrl_c): Adjust.
4786 (init_gdbsim_ops): Adjust.
4787 * remote.c (sync_remote_interrupt): Adjust comments.
4788 (remote_stop_as): Rename to ...
4789 (remote_interrupt_as): ... this.
4790 (remote_stop): Adjust comment.
4791 (remote_interrupt): New function.
4792 (init_remote_ops): Install remote_interrupt.
4793 * target.c (target_interrupt): New function.
4794 * target.h (struct target_ops) <to_interrupt>: New field.
4795 (target_interrupt): New declaration.
4796 * windows-nat.c (windows_stop): Rename to ...
4797 (windows_interrupt): ... this.
4798 * target-delegates.c: Regenerate.
4799
d55007b5
PA
48002015-08-07 Pedro Alves <palves@redhat.com>
4801
4802 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4803 threads" as alternative to "switching back to stepped thread".
4804
fbea99ea
PA
48052015-08-07 Pedro Alves <palves@redhat.com>
4806
4807 * NEWS: Mention "maint set/show target-non-stop".
4808 * breakpoint.c (update_global_location_list): Check
4809 target_is_non_stop_p instead of non_stop.
4810 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4811 * infrun.c (show_can_use_displaced_stepping)
4812 (can_use_displaced_stepping_p, start_step_over_inferior):
4813 Likewise.
4814 (internal_resume_ptid): New function.
4815 (resume): Use it.
4816 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4817 all-stop mode but the target is always in non-stop mode, start all
4818 the other threads that are implicitly resumed too.
4819 (for_each_just_stopped_thread, fetch_inferior_event)
4820 (adjust_pc_after_break, stop_all_threads): Check
4821 target_is_non_stop_p instead of non_stop.
4822 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4823 with the target always in non-stop mode.
4824 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4825 instead of non_stop.
4826 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4827 instead of non_stop.
4828 (keep_going_stepped_thread): Use internal_resume_ptid.
4829 (stop_waiting): If in all-stop mode, and the target is in non-stop
4830 mode, stop all threads.
4831 (keep_going_pass): Likewise, when starting a new in-line step-over
4832 sequence.
4833 * linux-nat.c (get_pending_status, select_event_lwp)
4834 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4835 target_is_non_stop_p instead of non_stop.
4836 (linux_nat_always_non_stop_p): New function.
4837 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4838 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4839 * target-delegates.c: Regenerate.
4840 * target.c (target_is_non_stop_p): New function.
4841 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4842 (maint_set_target_non_stop_command)
4843 (maint_show_target_non_stop_command): New functions.
4844 (_initilize_target): Install "maint set/show target-non-stop"
4845 commands.
4846 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4847 (target_non_stop_enabled): New declaration.
4848 (target_is_non_stop_p): New declaration.
4849
372316f1
PA
48502015-08-07 Pedro Alves <pedro@codesourcery.com>
4851
4852 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4853 has a pending status, return true.
4854 * gdbthread.h: Include target/waitstatus.h.
4855 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4856 stop_pc>: New fields.
4857 (struct thread_info) <resumed>: New field.
4858 (set_resumed): Declare.
4859 * infrun.c: Include "event-loop.h".
4860 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4861 (infrun_async): New function.
4862 (clear_step_over_info): Add debug output.
4863 (displaced_step_in_progress_any_inferior): New function.
4864 (displaced_step_fixup): New returns int.
4865 (start_step_over): Handle in-line step-overs too. Assert the
4866 thread is marked resumed.
4867 (resume_cleanups): Clear the thread's resumed flag.
4868 (resume): Set the thread's resumed flag. Return early if the
4869 thread has a pending status. Allow stepping a breakpoint with no
4870 signal.
4871 (proceed): Adjust to check 'resumed' instead of 'executing'.
4872 (clear_proceed_status_thread): If the thread has a pending status,
4873 and that status is a finished step, discard the pending status.
4874 (clear_proceed_status): Don't clear step_over_info here.
4875 (random_pending_event_thread, do_target_wait): New functions.
4876 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4877 do_target_wait.
4878 (wait_one): New function.
4879 (THREAD_STOPPED_BY): New macro.
4880 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4881 (thread_stopped_by_hw_breakpoint): New functions.
4882 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4883 functions.
4884 (handle_inferior_event): Also call set_resumed(false) on all
4885 threads implicitly stopped by the event.
4886 (restart_threads, resumed_thread_with_pending_status): New
4887 functions.
4888 (finish_step_over): If we were doing an in-line step-over before,
4889 and no longer are after trying to start a new step-over, restart
4890 all threads. If we have multiple threads with pending events,
4891 save the current event and go through the event loop again.
4892 (handle_signal_stop): Return early if finish_step_over returns
4893 false.
4894 <random signal>: If we get a signal while stepping over a
4895 breakpoint in-line in non-stop mode, restart all threads. Clear
4896 step_over_info before delivering the signal.
4897 (keep_going_stepped_thread): Use internal_error instead of
4898 gdb_assert. Mark the thread as resumed.
4899 (keep_going_pass_signal): Assert the thread isn't already resumed.
4900 If some other thread is doing an in-line step-over, defer the
4901 resume. If we just started a new in-line step-over, stop all
4902 threads. Don't clear step_over_info.
4903 (infrun_async_inferior_event_handler): New function.
4904 (_initialize_infrun): Create async event handler with
4905 infrun_async_inferior_event_handler as callback.
4906 (infrun_async): New declaration.
4907 * target.c (target_async): New function.
4908 * target.h (target_async): Declare macro and readd as function
4909 declaration.
4910 * target/waitstatus.h (enum target_stop_reason)
4911 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4912 * thread.c (new_thread): Clear the new waitstatus field.
4913 (set_resumed): New function.
4914
2ac7589c
PA
49152015-08-07 Pedro Alves <palves@redhat.com>
4916
4917 * infrun.c (keep_going_stepped_thread): New function, factored out
4918 from ...
4919 (switch_back_to_stepped_thread): ... here.
4920
8b061563
PA
49212015-08-07 Pedro Alves <palves@redhat.com>
4922
4923 * infrun.c (currently_stepping): Extend intro comment.
4924 * target.h (target_resume): Extend intro comment.
4925
1afd5965
PA
49262015-08-07 Pedro Alves <palves@redhat.com>
4927
4928 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4929 of inferior_ptid. If the stepped thread vanished, return 0
4930 instead of resuming here. Use reset_ecs. Print the prev_pc and
4931 the current stop_pc in log message. Clear trap_expected if the
4932 thread advanced. Don't pass currently_stepping to
4933 do_target_resume.
4934
4d9d9d04
PA
49352015-08-07 Pedro Alves <palves@redhat.com>
4936
4937 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4938 * infrun.c (struct execution_control_state): Move higher up in the
4939 file.
4940 (reset_ecs): New function.
4941 (start_step_over): Now returns int. Rewrite to use
4942 keep_going_pass_signal instead of manually starting a displaced step.
4943 (resume): Don't call set_running here. If displaced stepping
4944 can't start now, clear trap_expected.
4945 (find_thread_needs_step_over): Delete function.
4946 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4947 If the current thread needs a step over, push it in the step-over
4948 chain. Don't set insert breakpoints nor call resume directly
4949 here. Instead rewrite to use start_step_over and
4950 keep_going_pass_signal.
4951 (finish_step_over): New function.
4952 (handle_signal_stop): Call finish_step_over instead of
4953 start_step_over.
4954 (switch_back_to_stepped_thread): If the event thread needs another
4955 step-over do that first. Use start_step_over.
4956 (keep_going_pass_signal): New function, factored out from ...
4957 (keep_going): ... here.
4958 (_initialize_infrun): Comment moved here.
4959 * thread.c (set_running_thread): New function.
4960 (set_running, finish_thread_state): Use set_running_thread.
4961
c2829269
PA
49622015-08-07 Pedro Alves <palves@redhat.com>
4963
4964 * gdbthread.h (struct thread_info) <step_over_prev,
4965 step_over_next>: New fields.
4966 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4967 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4968 declarations.
4969 * infrun.c (struct displaced_step_request): Delete.
4970 (struct displaced_step_inferior_state) <step_request_queue>:
4971 Delete field.
4972 (displaced_step_prepare): Assert that trap_expected is set. Use
4973 thread_step_over_chain_enqueue. Split starting a new displaced
4974 step to ...
4975 (start_step_over): ... this new function.
4976 (resume): Assert the thread isn't waiting for a step over already.
4977 (proceed): Assert the thread isn't waiting for a step over
4978 already.
4979 (infrun_thread_stop_requested): Adjust to remove threads from the
4980 embedded step-over chain.
4981 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4982 displaced_step_fixup.
4983 (handle_signal_stop): Call start_step_over after
4984 displaced_step_fixup.
4985 * infrun.h (step_over_queue_head): New declaration.
4986 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4987 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4988 (thread_step_over_chain_enqueue)
4989 (thread_step_over_chain_remove): New functions.
4990 (delete_thread_1): Remove thread from the step-over chain.
4991
6c4cfb24
PA
49922015-08-07 Pedro Alves <palves@redhat.com>
4993
4994 * infrun.c (thread_still_needs_step_over): Rename to ...
4995 (thread_still_needs_step_over_bp): ... this.
4996 (enum step_over_what): New.
4997 (thread_still_needs_step_over): Reimplement.
4998
567420d1
PA
49992015-08-07 Pedro Alves <palves@redhat.com>
5000
5001 * remote.c (remote_wait_as): If not waiting for a stop reply,
5002 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5003 requested, don't block waiting forever.
5004
d8dd4d5f
PA
50052015-08-07 Pedro Alves <pedro@codesourcery.com>
5006
5007 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5008 waitstatus pointers instead of an ecs. Adjust.
5009 (handle_inferior_event): Adjust caller.
5010
e1316e60
PA
50112015-08-07 Pedro Alves <palves@redhat.com>
5012
5013 * infrun.c (handle_inferior_event): If we get
5014 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5015 mode, mark all threads of the exiting process as not-executing.
5016 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5017 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5018 exiting process, if inferior_ptid still points at a process.
5019 * thread.c (struct current_thread_cleanup) <next>: New field.
5020 (current_thread_cleanup_chain): New global.
5021 (restore_current_thread_ptid_changed): New function.
5022 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5023 current_thread_cleanup_chain list.
5024 (make_cleanup_restore_current_thread): Add the cleanup data to the
5025 current_thread_cleanup_chain list.
5026 (_initialize_thread): Install restore_current_thread_ptid_changed
5027 as thread_ptid_changed observer.
5028
47e9c225
JB
50292015-08-07 Joel Brobecker <brobecker@adacore.com>
5030
5031 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5032 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5033 smaller than expected.
5034
06096720
AB
50352015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5036
5037 * stack.c (get_frame_language): Moved ...
5038 * frame.c (get_frame_language): ... to here.
5039 * language.h (get_frame_language): Declaration moved to frame.h.
5040 * frame.h: Add language.h include, for language enum.
5041 (get_frame_language): Declaration moved from language.h.
5042 * language.c: Add frame.h include.
5043 * top.c: Add frame.h include.
5044 * symtab.h (struct obj_section): Declare.
5045 (struct cmd_list_element): Declare.
5046
7ff38b1c
AB
50472015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * language.c (show_language_command): Find selected frame before
5050 asking for the language of that frame.
5051 (set_language_command): Likewise.
5052 * language.h (get_frame_language): Add frame parameter.
5053 * stack.c (get_frame_language): Add frame parameter, assert
5054 parameter is not NULL, update comment and reindent.
5055 * top.c (check_frame_language_change): Pass the selected frame
5056 into get_frame_language.
5057
da8c46d2
MM
50582015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5059
5060 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5061 (pt_btrace_insn_flags): New.
5062 (ftrace_add_pt): Call pt_btrace_insn_flags.
5063 * btrace.h (btrace_insn_flag): New.
5064 (btrace_insn) <flags>: New.
5065 * record-btrace.c (btrace_insn_history): Print insn prefix.
5066 * NEWS: Announce it.
5067
5599c404
MM
50682015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5069
5070 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5071 * configure: Regenerate.
5072
016a3251
DD
50732015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5074
5075 * Makefile.in (LIBICONV): Define.
5076 (CLIBS): Add LIBICONV.
5077 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5078 * configure: Regenerate.
5079
aead7601
SM
50802015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5081 Pedro Alves <palves@redhat.com>
5082
5083 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5084 (arm_set_abi): Likewise.
5085 * ax-general.c (ax_print): Likewise.
5086 * c-exp.y (exp : string_exp): Likewise.
5087 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5088 (do_compile_dwarf_expr_to_c): Likewise.
5089 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5090 Likewise.
5091 * dwarf2expr.c (execute_stack_op): Likewise.
5092 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5093 (disassemble_dwarf_expression): Likewise.
5094 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5095 (read_array_order): Likewise.
5096 (abbrev_table_read_table): Likewise.
5097 (read_attribute_value): Likewise.
5098 (skip_unknown_opcode): Likewise.
5099 (dwarf_decode_macro_bytes): Likewise.
5100 (dwarf_decode_macros): Likewise.
5101 * eval.c (value_f90_subarray): Likewise.
5102 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5103 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5104 * infrun.c (handle_command): Likewise.
5105 * memory-map.c (memory_map_start_memory): Likewise.
5106 * osabi.c (set_osabi): Likewise.
5107 * parse.c (operator_length_standard): Likewise.
5108 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5109 single return point.
5110 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5111 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5112 (gdbpy_lookup_global_symbol): Likewise.
5113 * record-full.c (record_full_restore): Likewise.
5114 * regcache.c (regcache_register_status): Likewise.
5115 (regcache_raw_read): Likewise.
5116 (regcache_cooked_read): Likewise.
5117 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5118 * symtab.c (initialize_ordinary_address_classes): Likewise.
5119 * target-debug.h (target_debug_print_signals): Likewise.
5120 * utils.c (do_restore_current_language): Likewise.
5121
ca0a5f0b
CD
51222015-08-06 Clem Dickey <clemd@acm.org>
5123
5124 PR python/17136
5125 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5126
05d999b0
SM
51272015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5128
5129 * complaints.c (enum complaint_series): Add newlines and remove
5130 out of date comment.
5131 (struct complaints) <series>: Change type to enum
5132 complaint_series and remove out of date comment.
5133 (symfile_complaint_hook): Use equivalent enum value
5134 ISOLATED_MESSAGE instead of 0.
5135
bf47e248
PA
51362015-08-06 Pedro Alves <palves@redhat.com>
5137
5138 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5139 returned > 0.
5140
b6b9ffcc
PL
51412015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5142
5143 * common/agent.c (symbol_list) <required>: Remove.
5144
863d01bd
PA
51452015-08-06 Pedro Alves <palves@redhat.com>
5146
5147 * target/waitstatus.h (enum target_stop_reason)
5148 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5149
0a39bb32
PA
51502015-08-05 Pedro Alves <palves@redhat.com>
5151 Joel Brobecker <brobecker@adacore.com>
5152
9d996aba 5153 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5154 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5155 case where BS->STOP is not set.
5156
260439cb
UW
51572015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5158
5159 * nat/gdb_thread_db.h: Add copyright header.
5160 Protect against multiple inclusion.
5161
d89fa914
YQ
51622015-08-05 Yao Qi <yao.qi@linaro.org>
5163
5164 * aarch64-linux-nat.c (get_thread_id): Remove.
5165 (debug_reg_change_callback): Call ptid_get_lwp instead of
5166 get_thread_id.
5167 (fetch_gregs_from_thread): Likewise.
5168 (store_gregs_to_thread): Likewise.
5169 (fetch_fpregs_from_thread): Likewise.
5170 (store_fpregs_to_thread): Likewise.
5171 (aarch64_linux_get_debug_reg_capacity): Likewise.
5172 * arm-linux-nat.c (get_thread_id): Remove.
5173 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5174 * xtensa-linux-nat.c (get_thread_id): Remove.
5175 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5176 * arm-linux-nat.c (get_thread_id): Remove.
5177 (GET_THREAD_ID): Remove.
5178 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5179 (store_fpregs, fetch_regs, store_regs): Likewise.
5180 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5181 (fetch_vfp_regs, store_vfp_regs): Likewise.
5182 (arm_linux_read_description): Likewise.
5183 (arm_linux_get_hwbp_cap): Likewise.
5184 * xtensa-linux-nat.c (get_thread_id): Remove.
5185 (GET_THREAD_ID): Remove.
5186 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5187 GET_THREAD_ID.
5188
4efd80aa
CS
51892015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5190
5191 * python/py-linetable.c: Fix case of Linetable to LineTable
5192 in docstrings and code comments.
5193 * python/py-symtab.c: Same.
5194
c6343a91
JK
51952015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5196
5197 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5198
978b9495
JK
51992015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5200
5201 PR gdb/18767
5202 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5203 use.
5204
96e9210f
PA
52052015-08-04 Pedro Alves <palves@redhat.com>
5206
5207 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5208 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5209 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5210 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5211 (td_thr_validate_ftype, td_thr_get_info_ftype)
5212 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5213 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5214 New typedefs.
5215 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5216 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5217 local macros and use them instead of verbose_dlsym and dlsym
5218 calls.
5219
af60a1ef
SL
52202015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5221
5222 * nios2-tdep.h: Include opcode/nios2.h here.
5223 (NIOS2_CDX_OPCODE_SIZE): New.
5224 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5225 * nios2-tdep.c: Don't include opcode/nios2.h here.
5226 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5227 4-byte read fails.
5228 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5229 (nios2_match_addi, nios2_match_orhi): Likewise.
5230 (nios2_match_stw, nios2_match_ldw): Likewise.
5231 (nios2_match_rdctl): Likewise.
5232 (nios2_match_stwm, nios2_match_ldwm): New.
5233 (nios2_match_branch): Add cases for R2 encodings.
5234 (nios2_match_jmpi, nios2_match_calli): Likewise.
5235 (nios2_match_jmpr, nios2_match_callr): Likewise.
5236 (nios2_match_break, nios2_match_trap): Likewise.
5237 (nios2_in_epilogue_p): Add R2 support.
5238 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5239 prologues.
5240 (nios2_breakpoint_from_pc): Handle R2 instructions.
5241 (nios2_get_next_pc): Likewise. Adjust call to
5242 tdep->syscall_next_pc.
5243 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5244 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5245 instruction field macros instead of literal hex values.
5246 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5247 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5248 Use size field from OP instead of assuming all instructions
5249 are the same size.
5250 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5251
1da03605
UW
52522015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5253
5254 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5255 variable warning with some compilers.
5256
8156fe7f
YQ
52572015-08-03 Yao Qi <yao.qi@linaro.org>
5258
5259 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5260 in comment. Replace "rw" with "type".
5261 (arm_linux_remove_watchpoint): Change type of "rw" to
5262 "enum target_hw_bp_type".
5263
835a09d9
PMR
52642015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5265
5266 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5267 lookup_symbol.
5268 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5269 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5270 * mt-tdep.c (mt_skip_prologue): Likewise.
5271 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5272
d12307c1
PMR
52732015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5274
5275 * ada-exp.y (write_object_renaming): Replace struct
5276 ada_symbol_info with struct block_symbol. Update field
5277 references accordingly.
5278 (block_lookup, select_possible_type_sym): Likewise.
5279 (find_primitive_type): Likewise. Also update call to
5280 ada_lookup_symbol to extract the symbol itself.
5281 (write_var_or_type, write_name_assoc): Likewise.
5282 * ada-lang.h (struct ada_symbol_info): Remove.
5283 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5284 struct block_symbol.
5285 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5286 (ada_lookup_symbol): Return struct block_symbol instead of a
5287 mere symbol.
5288 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5289 with struct block_symbol.
5290 (resolve_subexp, ada_resolve_function, sort_choices,
5291 user_select_syms, is_nonfunction, add_defn_to_vec,
5292 num_defns_collected, defns_collected,
5293 symbols_are_identical_enums, remove_extra_symbols,
5294 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5295 ada_lookup_symbol_list, ada_iterate_over_symbols,
5296 ada_lookup_encoded_symbol, get_var_value): Likewise.
5297 (ada_lookup_symbol): Return a block_symbol instead of a mere
5298 symbol. Replace struct ada_symbol_info with struct
5299 block_symbol.
5300 (ada_lookup_symbol_nonlocal): Likewise.
5301 (standard_lookup): Make block passing explicit through
5302 lookup_symbol_in_language.
5303 * ada-tasks.c (get_tcb_types_info): Update the calls to
5304 lookup_symbol_in_language to extract the mere symbol out of the
5305 returned value.
5306 (ada_tasks_inferior_data_sniffer): Likewise.
5307 * ax-gdb.c (gen_static_field): Likewise for the call to
5308 lookup_symbol.
a5fdf78a 5309 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5310 lookup functions.
5311 (gen_expr): Likewise.
5312 * c-exp.y: Likewise. Remove uses of block_found.
5313 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5314 (classify_name): Likewise. Rename the "sym" local variable to
5315 "bsym".
5316 * c-valprint.c (print_unpacked_pointer): Likewise.
5317 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5318 "sym" parameter from struct symbol * to struct block_symbol.
5319 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5320 block_symbol from lookup functions.
d12307c1
PMR
5321 (gcc_convert_symbol): Likewise. Update the call to
5322 convert_symbol_sym.
5323 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5324 struct block_symbol from lookup functions.
d12307c1
PMR
5325 * cp-namespace.c (cp_lookup_nested_symbol_1,
5326 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5327 cp_search_static_and_baseclasses,
5328 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5329 cp_lookup_symbol_imports_or_template,
5330 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5331 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5332 find_symbol_in_baseclass): Return struct block_symbol instead of
5333 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5334 functions.
5335 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5336 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5337 lookup functions.
5338 * cp-support.h (cp_lookup_symbol_nonlocal,
5339 cp_lookup_symbol_from_namespace,
5340 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5341 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5342 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5343 push_module_name):
a5fdf78a 5344 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5345 uses of block_found.
5346 * eval.c (evaluate_subexp_standard): Update call to
5347 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5348 * f-exp.y: Deal with struct block_symbol from lookup functions.
5349 Remove uses of block_found.
d12307c1
PMR
5350 (yylex): Likewise.
5351 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5352 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5353 struct block_symbol from lookup functions.
d12307c1
PMR
5354 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5355 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5356 (gdbscm_lookup_global_symbol): Likewise.
5357 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5358 * go-exp.y: Likewise. Remove uses of block_found.
5359 (package_name_p, classify_packaged_name, classify_name):
5360 Likewise.
5361 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5362 * jv-exp.y (push_variable): Likewise.
5363 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5364 * language.c (language_bool_type): Likewise.
5365 * language.h (struct language_defn): Update
a5fdf78a
PMR
5366 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5367 than a mere symbol.
5368 * linespec.c (find_label_symbols): Deal with struct block_symbol
5369 from lookup functions.
d12307c1
PMR
5370 * m2-exp.y: Likewise. Remove uses of block_found.
5371 (yylex): Likewise.
5372 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5373 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5374 * p-exp.y: Likewise. Remove uses of block_found.
5375 (yylex): Likewise.
5376 * p-valprint.c (pascal_val_print): Likewise.
5377 * parse.c (write_dollar_variable): Likewise. Remove uses of
5378 block_found.
5379 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5380 struct block_symbol.
5381 * printcmd.c (address_info): Deal with struct block_symbol from
5382 lookup functions.
d12307c1
PMR
5383 * python/py-frame.c (frapy_read_var): Likewise.
5384 * python/py-symbol.c (gdbpy_lookup_symbol,
5385 gdbpy_lookup_global_symbol): Likewise.
5386 * skip.c (skip_function_command): Likewise.
5387 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5388 block_symbol instead of a mere symbol.
d12307c1
PMR
5389 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5390 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5391 * solib.c (solib_global_lookup): Likewise.
5392 * solist.h (solib_global_lookup): Likewise.
5393 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5394 return a struct block_symbol rather than a mere symbol.
5395 * source.c (select_source_symtab): Deal with struct block_symbol
5396 from lookup functions.
d12307c1
PMR
5397 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5398 Likewise.
5399 * symfile.c (set_initial_language): Likewise.
5400 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5401 block_symbol.
d12307c1
PMR
5402 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5403 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5404 block_symbol.
d12307c1 5405 (block_found): Remove.
a5fdf78a 5406 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5407 cache slots.
a5fdf78a
PMR
5408 (symbol_cache_lookup): Return a struct block_symbol rather than
5409 a mere symbol.
d12307c1
PMR
5410 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5411 appropriately the cache slots. Update callers.
5412 (symbol_cache_dump): Update cache slots handling to the type
5413 change.
5414 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5415 lookup_symbol_aux, lookup_local_symbol,
5416 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5417 lookup_symbol_in_objfile_symtabs,
5418 lookup_symbol_in_objfile_from_linkage_name,
5419 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5420 lookup_symbol_in_static_block, lookup_static_symbol,
5421 lookup_global_symbol):
a5fdf78a
PMR
5422 Return a struct block_symbol rather than a mere symbol. Deal
5423 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5424 uses of block_found.
5425 (lookup_symbol_in_block): Remove uses of block_found.
5426 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5427 struct block_symbol.
d12307c1
PMR
5428 (lookup_symbol_global_iterator_cb): Update references to the
5429 RESULT field.
a5fdf78a 5430 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5431 functions.
a5fdf78a 5432 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5433 (block_found): Remove.
5434 (lookup_symbol_in_language, lookup_symbol,
5435 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5436 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5437 lookup_global_symbol_from_objfile): Return a struct block_symbol
5438 rather than just a mere symbol. Update comments to remove
5439 mentions of block_found.
d12307c1
PMR
5440 * valops.c (find_function_in_inferior,
5441 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5442 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5443 functions.
5444 * value.c (value_static_field, value_fn_field): Likewise.
5445
b1c59ddc
SM
54462015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5447
5448 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5449 instead of integer.
5450
f486487f 54512015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5452 Pedro Alves <palves@redhat.com>
f486487f
SM
5453
5454 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5455 type or value instead of integer.
5456 (aarch64_linux_insert_watchpoint): Likewise.
5457 (aarch64_linux_remove_watchpoint): Likewise.
5458 * ada-lang.c (ada_op_print_tab): Likewise.
5459 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5460 (amd64_linux_syscall_record_common): Likewise.
5461 * arch-utils.c (target_byte_order_user): Likewise.
5462 (default_byte_order): Likewise.
5463 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5464 (arm_linux_get_hwbp_type): Likewise.
5465 (arm_linux_hw_watchpoint_initialize): Likewise.
5466 (arm_linux_insert_watchpoint): Likewise.
5467 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5468 (arm_linux_syscall_record): Likewise.
5469 * breakpoint.c (update_watchpoint): Likewise.
5470 (breakpoint_here_p): Likewise.
5471 (bpstat_print): Likewise.
5472 (enable_breakpoint_disp): Likewise.
5473 * c-lang.c (c_op_print_tab): Likewise.
5474 * cli/cli-decode.c (add_info_alias): Likewise.
5475 * d-lang.c (d_op_print_tab): Likewise.
5476 * eval.c (evaluate_subexp_standard): Likewise.
5477 * f-exp.y (dot_ops): Likewise.
5478 (f77_keywords): Likewise.
5479 * f-lang.c (f_op_print_tab): Likewise.
5480 * go-lang.c (go_op_print_tab): Likewise.
5481 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5482 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5483 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5484 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5485 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5486 (struct scm_from_stringn_data): Likewise.
5487 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5488 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5489 (ia64_linux_remove_watchpoint): Likewise.
5490 (ia64_linux_can_use_hw_breakpoint): Likewise.
5491 * infrun.c (print_stop_event): Likewise.
5492 * jv-lang.c (java_op_print_tab): Likewise.
5493 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5494 * linux-nat.h (struct lwp_info): Likewise.
5495 * linux-thread-db.c (enable_thread_event): Likewise.
5496 * m2-lang.c (m2_op_print_tab): Likewise.
5497 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5498 (mi_cmd_stack_list_variables): Likewise.
5499 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5500 * mi/mi-out.c (mi_table_begin): Likewise.
5501 (mi_table_header): Likewise.
5502 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5503 (mips_linux_insert_watchpoint): Likewise.
5504 (mips_linux_remove_watchpoint): Likewise.
5505 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5506 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5507 (mips_linux_watch_type_to_irw): Likewise.
5508 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5509 (procfs_insert_hw_watchpoint): Likewise.
5510 (procfs_remove_hw_watchpoint): Likewise.
5511 (procfs_hw_watchpoint): Likewise.
5512 (procfs_can_use_hw_breakpoint): Likewise.
5513 (procfs_remove_hw_watchpoint): Likewise.
5514 (procfs_insert_hw_watchpoint): Likewise.
5515 * p-lang.c (pascal_op_print_tab): Likewise.
5516 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5517 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5518 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5519 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5520 (procfs_insert_watchpoint): Likewise.
5521 (procfs_remove_watchpoint): Likewise.
5522 * psymtab.c (recursively_search_psymtabs): Likewise.
5523 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5524 (m32r_insert_watchpoint): Likewise.
5525 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5526 (mips_insert_watchpoint): Likewise.
5527 (mips_remove_watchpoint): Likewise.
5528 * remote.c (watchpoint_to_Z_packet): Likewise.
5529 (remote_insert_watchpoint): Likewise.
5530 (remote_remove_watchpoint): Likewise.
5531 (remote_check_watch_resources): Likewise.
5532 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5533 (s390_remove_watchpoint): Likewise.
5534 (s390_can_use_hw_breakpoint): Likewise.
5535 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5536 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5537 * target.h (struct target_ops): Likewise.
5538 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5539 * ui-out.c (struct ui_out_hdr): Likewise.
5540 (append_header_to_list): Likewise.
5541 (get_next_header): Likewise.
5542 (verify_field): Likewise.
5543 (ui_out_begin): Likewise.
5544 (ui_out_field_int): Likewise.
5545 (ui_out_field_fmt_int): Likewise.
5546 (ui_out_field_skip): Likewise.
5547 (ui_out_field_string): Likewise.
5548 (ui_out_field_fmt): Likewise.
5549 * varobj.c (new_variable): Likewise.
5550 * x86-nat.c (x86_insert_watchpoint): Likewise.
5551 (x86_remove_watchpoint): Likewise.
5552 (x86_can_use_hw_breakpoint): Likewise.
5553 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5554 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5555 previously anonymous enumeration type..
5556 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5557 value.
5558 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5559 (target_debug_print_enum_bptype): New.
5560 * target-delegates.c: Regenerate.
5561
e1b5381f
SL
55622015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5563
5564 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5565 already says and disallow non-stack memory writes in the prologue.
5566
9aaf8e3a
SL
55672015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5568
5569 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5570 reflect how current GCC emits stack overflow checks. Match
5571 both trap and break instructions for backward compatbility.
5572 Disallow other trap and break instructions in the prologue.
5573
69dde7dc
PA
55742015-07-30 Pedro Alves <palves@redhat.com>
5575
5576 PR threads/18600
5577 * linux-nat.c (wait_lwp): Report to the core when thread group
5578 leader exits.
5579
4dd63d48
PA
55802015-07-30 Pedro Alves <palves@redhat.com>
5581 Simon Marchi <simon.marchi@ericsson.com>
5582
5583 PR threads/18600
5584 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5585 mark the new thread as resumed. Remove STOPPING parameter.
5586 (wait_lwp): Adjust call to linux_handle_extended_wait.
5587 (linux_nat_filter_event): Adjust call to
5588 linux_handle_extended_wait.
5589 (resume_stopped_resumed_lwps): Add debug output.
5590
6b940e6a
PL
55912015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5592
5593 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5594 isize argument.
5595 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5596 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5597 gdbarch_fast_tracepoint_valid_at.
5598 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5599 * gdbarch.h: Regenerate.
5600 * gdbarch.c: Regenerate.
5601 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5602 argument. Do not set it.
5603 * remote.c (remote_download_tracepoint): Adjust call to
5604 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5605 the instruction length.
5606
ec741292
YQ
56072015-07-30 Yao Qi <yao.qi@linaro.org>
5608
5609 * arm-tdep.h (enum gdb_regnum): Move it to ...
5610 * arch/arm.h: ... here. New file.
5611 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5612
0ea6402e
PL
56132015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5614
5615 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5616 Change its type to int *.
5617 (decode_br): Rename link argument to is_blr. Change its type to
5618 int *.
5619 (decode_cb): Rename op argument to is_cbnz. Change its type to
5620 int *.
5621 (decode_tb): Rename op argument to is_tbnz. Change its type to
5622 int *. Set is_tbnz to either 1 or 0.
5623 (aarch64_analyze_prologue): Change type of is_link to int. Add
5624 new variables is_cbnz and is_tbnz. Adjust call to
5625 aarch64_decode_cb and aarch64_decode_tb.
5626
aa58a496
SM
56272015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5628
5629 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5630 parameter.
5631 (mips_linux_new_thread): Likewise.
5632 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5633
18206ca3
PP
56342015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5635
5636 * top.c: Include "tui/tui.h".
5637 (undo_terminal_modifications_before_exit): New static function.
5638 (quit_force): Use it.
5639
7afa63c6
PP
56402015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5641
5642 * target.c (terminal_state): Initialize to terminal_is_ours.
5643
cc9f16aa
YQ
56442015-07-29 Yao Qi <yao.qi@linaro.org>
5645
5646 PR record/18691
5647 * dcache.c (dcache_read_memory_partial): Call
5648 raw_memory_xfer_partial.
5649 * target.c (raw_memory_xfer_partial): Make it non-static.
5650 * target.h (raw_memory_xfer_partial): Declare.
5651
3ae385af
SM
56522015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * c-valprint.c (c_val_print_array): Consider addressable memory
5655 unit size.
5656 (c_val_print_ptr): Likewise.
5657 (c_val_print_int): Likewise.
5658 * findvar.c (read_frame_register_value): Likewise.
5659 * valarith.c (find_size_for_pointer_math): Likewise.
5660 (value_ptrdiff): Likewise.
5661 (value_subscripted_rvalue): Likewise.
5662 * valops.c (read_value_memory): Likewise (and rename variables).
5663 (value_assign): Likewise.
5664 (value_repeat): Likewise.
5665 (value_array): Likewise.
5666 (value_slice): Likewise.
5667 * valprint.c (generic_val_print_ptr): Likewise.
5668 (generic_val_print_enum): Likewise.
5669 (generic_val_print_bool): Likewise.
5670 (generic_val_print_int): Likewise.
5671 (generic_val_print_char): Likewise.
5672 (generic_val_print_float): Likewise.
5673 (generic_val_print_decfloat): Likewise.
5674 (generic_val_print_complex): Likewise.
5675 (val_print_scalar_formatted): Likewise.
5676 (val_print_array_elements): Likewise.
5677 * value.c (set_value_parent): Likewise.
5678 (value_contents_copy_raw): Likewise.
5679 (set_internalvar_component): Likewise.
5680 (value_primitive_field): Likewise.
5681 (value_fetch_lazy): Likewise.
5682 * value.h (read_value_memory): Update comment.
5683
e512cdbd
SM
56842015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5685
5686 * value.c (get_value_arch): New function.
5687 * value.h (get_value_arch): New declaration.
5688
3723fda8
SM
56892015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5690
5691 * value.c (struct value): Update comments.
5692
2e056931
SM
56932015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * gdbtypes.c (type_length_units): New function.
5696 * gdbtypes.h (type_length_units): New declaration.
5697 (struct type) <length>: Update comment.
5698
0c87c0bf
SM
56992015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5700
5701 * valprint.c (generic_val_print): Factor out complex
5702 printing code to ...
5703 (generic_val_print_complex): ... this new function.
5704
9550ae5e
SM
57052015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5706
5707 * valprint.c (generic_val_print): Factor out decfloat
5708 printing code to ...
5709 (generic_val_print_decfloat): ... this new function.
5710
7784724b
SM
57112015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5712
5713 * valprint.c (generic_val_print): Factor out float
5714 printing code to ...
5715 (generic_val_print_float): ... this new function.
5716
385f5aff
SM
57172015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * valprint.c (generic_val_print): Factor out char
5720 printing code to ...
5721 (generic_val_print_char): ... this new function.
5722
b21b6342
SM
57232015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5724
5725 * valprint.c (generic_val_print): Factor out integer
5726 printing code to ...
5727 (generic_val_print_int): ... this new function.
5728
e5bead4b
SM
57292015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5730
5731 * valprint.c (generic_val_print): Factor out bool
5732 printing code to ...
5733 (generic_val_print_bool): ... this new function.
5734
4a8c372f
SM
57352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5736
5737 * valprint.c (generic_val_print): Factor out function/method
5738 printing code to ...
5739 (generic_val_print_func): ... this new function.
5740
d93880bd
SM
57412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5742
5743 * valprint.c (generic_val_print): Factor out flags
5744 printing code to ...
5745 (generic_val_print_flags): ... this new function.
5746
ef0bc0dd
SM
57472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5748
5749 * valprint.c (generic_val_print): Factor out enum
5750 printing code to ...
5751 (generic_val_print_enum): ... this new function.
5752
fe43fede
SM
57532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * valprint.c (generic_val_print): Factor out reference
5756 printing code to ...
5757 (generic_val_print_ref): ... this new function.
5758
45000ea2
SM
57592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5760
5761 * valprint.c (generic_val_print): Factor out memberptr
5762 printing code to ...
5763 (generic_val_print_memberptr): ... this new function.
5764
81eb921a
SM
57652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5766
5767 * valprint.c (generic_val_print): Factor out pointer
5768 printing code to ...
5769 (generic_val_print_ptr): ... this new function.
5770
557dbe8a
SM
57712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5772
5773 * valprint.c (generic_val_print): Factor out array
5774 printing code to ...
5775 (generic_val_print_array): ... this new function.
5776
9f436164
SM
57772015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * valprint.c (generic_val_print): Factor out
5780 print_unpacked_pointer code to ...
5781 (print_unpacked_pointer): ... this new function.
5782
077836f7
PP
57832015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5784
5785 * event-top.c (handle_sigterm): Don't inspect
5786 target_can_async_p. Always set the quit flag and always mark
5787 the async signal handler.
5788
3a60804f
YQ
57892015-07-27 Yao Qi <yao.qi@linaro.org>
5790
5791 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5792
c9f35b34
KB
57932015-07-25 Kevin Buettner <kevinb@redhat.com>
5794
5795 * remote.c (read_ptid): Return null_ptid when no thread id
5796 is found.
5797 (remote_current_thread): Add log warning for malformed
5798 qC reply.
5799 (remote_start_remote): Add log warning when current thread
5800 not found.
5801
2b4cab86
PA
58022015-07-24 Pedro Alves <palves@redhat.com>
5803
5804 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5805 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5806 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5807
77598427
PA
58082015-07-24 Pedro Alves <palves@redhat.com>
5809
5810 PR gdb/18717
5811 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5812 is resumed, and extend the debug log.
5813
fe23c31f
PA
58142015-07-24 Pedro Alves <palves@redhat.com>
5815
5816 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5817
5826e159
PA
58182015-07-24 Pedro Alves <palves@redhat.com>
5819
5820 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5821 sys/ptrace.h.
5822 * alpha-linux-nat.c: Likewise.
5823 * amd64-linux-nat.c: Likewise.
5824 * arm-linux-nat.c: Likewise.
5825 * hppa-linux-nat.c: Likewise.
5826 * i386-linux-nat.c: Likewise.
5827 * ia64-linux-nat.c: Likewise.
5828 * linux-fork.c: Likewise.
5829 * linux-nat.c: Likewise.
5830 * m32r-linux-nat.c: Likewise.
5831 * m68klinux-nat.c: Likewise.
5832 * mips-linux-nat.c: Likewise.
5833 * nat/linux-btrace.c: Likewise.
5834 * nat/linux-ptrace.c: Likewise.
5835 * nat/linux-ptrace.h
5836 * nat/mips-linux-watch.c: Likewise.
5837 * nat/x86-linux-dregs.c: Likewise.
5838 * ppc-linux-nat.c: Likewise.
5839 * s390-linux-nat.c: Likewise.
5840 * spu-linux-nat.c: Likewise.
5841 * tilegx-linux-nat.c: Likewise.
5842 * x86-linux-nat.c: Likewise.
5843 * xtensa-linux-nat.c: Likewise.
5844
54019719
PA
58452015-07-24 Pedro Alves <palves@redhat.com>
5846
5847 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5848 __ptrace_request as first parameter type instead of int.
5849 (PTRACE_TYPE_ARG1): Define.
5850 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5851 that casts first argument to PTRACE_TYPE_ARG1.
5852 * config.in: Regenerate.
5853 * configure: Regenerate.
5854
e3790375
PA
58552015-07-24 Pedro Alves <palves@redhat.com>
5856
5857 * gdb_ptrace.h: Move ...
5858 * nat/gdb_ptrace.h: ... here.
5859 * inf-ptrace.c: Adjust.
5860
eb7aa561
PA
58612015-07-24 Pedro Alves <palves@redhat.com>
5862
5863 * acinclude.m4: Include ptrace.m4.
5864 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5865 * ptrace.m4: ... to this new file.
5866
cc12ce38
DE
58672015-07-23 Doug Evans <dje@google.com>
5868
5869 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5870 (load_cu): Handle dummy CUs.
5871 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5872 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5873
7b849db4
CS
58742015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5875
5876 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5877 documentation to say that it returns a list rather than
5878 a FrozenSet.
5879 (linetable_object_methods): Update the docstring of the
5880 "source_line" entry.
5881
d0d84780
PMR
58822015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5883
5884 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5885 type to the recursive call instead of the original (maybe
5886 TYPE_CODE_TYPEDEF) type.
5887
c2fbdc59
YQ
58882015-07-23 Yao Qi <yao.qi@linaro.org>
5889
5890 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5891 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5892 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5893
af1b22f3
YQ
58942015-07-21 Yao Qi <yao.qi@linaro.org>
5895
5896 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5897 Move it to nat/aarch64-linux-hw-point.c.
5898 (aarch64_linux_child_post_startup_inferior): Update.
5899 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5900 New function.
5901 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5902 Declare it.
5903
40e050d2
MM
59042015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5905
5906 * common/btrace-common.c (btrace_data_append): Change case label.
5907
3675a06a
YQ
59082015-07-20 Yao Qi <yao.qi@linaro.org>
5909
5910 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5911 Re-indent the code.
5912 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5913 "unsigned long long".
5914
b4e1fd61
KB
59152015-07-18 Kevin Buettner <kevinb@redhat.com>
5916
5917 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5918 to be set for SEC_ALLOC sections too.
5919
554717a3
YQ
59202015-07-17 Yao Qi <yao.qi@linaro.org>
5921
5922 * Makefile.in (HFILES_NO_SRCDIR): Add
5923 nat/aarch64-linux-hw-point.h.
5924 (aarch64-linux-hw-point.o): New rule.
5925 * nat/aarch64-linux-hw-point.h: New file.
5926 * nat/aarch64-linux-hw-point.c: New file.
5927 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5928 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5929 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5930 (AARCH64_HWP_ALIGNMENT): Likewise.
5931 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5932 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5933 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5934 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5935 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5936 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5937 (struct aarch64_debug_reg_state): Likewise.
5938 (struct arch_lwp_info): Likewise.
5939 (aarch64_linux_set_debug_regs): Likewise.
5940 (aarch64_notify_debug_reg_change): Remove static.
5941 (aarch64_align_watchpoint): Likewise.
5942 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5943 (aarch64_watchpoint_length): Likewise.
5944 (aarch64_point_encode_ctrl_reg): Likewise
5945 (aarch64_point_is_aligned): Likewise.
5946 (aarch64_dr_state_insert_one_point): Likewise.
5947 (aarch64_dr_state_remove_one_point): Likewise.
5948 (aarch64_handle_breakpoint): Likewise.
5949 (aarch64_handle_aligned_watchpoint): Likewise.
5950 (aarch64_handle_unaligned_watchpoint): Likewise.
5951 (aarch64_handle_watchpoint): Likewise.
5952 * config/aarch64/linux.mh (NAT_FILE): Add
5953 aarch64-linux-hw-point.o.
5954
c67ca4de
YQ
59552015-07-17 Yao Qi <yao.qi@linaro.org>
5956
5957 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5958 state and don't call aarch64_get_debug_reg_state. All callers
5959 update.
5960 (aarch64_linux_insert_hw_breakpoint): Call
5961 aarch64_get_debug_reg_state earlier.
5962 (aarch64_linux_remove_hw_breakpoint): Likewise.
5963 (aarch64_handle_aligned_watchpoint): Add argument state and
5964 don't call aarch64_get_debug_reg_state. All callers update.
5965 (aarch64_handle_unaligned_watchpoint): Likewise.
5966 (aarch64_handle_watchpoint): Add argument state.
5967 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5968 earlier.
5969 (aarch64_linux_remove_watchpoint): Likewise.
5970
25abf979
YQ
59712015-07-17 Yao Qi <yao.qi@linaro.org>
5972
5973 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5974 debug_printf.
5975 (aarch64_handle_unaligned_watchpoint): Likewise.
5976
2ecd81c2
YQ
59772015-07-17 Yao Qi <yao.qi@linaro.org>
5978
5979 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5980 argument type's type to 'enum target_hw_bp_type'.
5981 (aarch64_dr_state_remove_one_point): Likewise.
5982 (aarch64_handle_breakpoint): Likewise.
5983 (aarch64_linux_insert_hw_breakpoint): Likewise.
5984 (aarch64_linux_remove_hw_breakpoint): Likewise.
5985 (aarch64_handle_aligned_watchpoint): Likewise.
5986
e53b6938
YQ
59872015-07-17 Yao Qi <yao.qi@linaro.org>
5988
5989 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5990 ptid_get_pid instead of get_thread_id.
5991
6a49a997
YQ
59922015-07-17 Yao Qi <yao.qi@linaro.org>
5993
5994 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5995 (add_current_inferior_and_thread): Don't initialise ptid.
5996
4bcddace
PL
59972015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5998
5999 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6000 unavailable if invalid.
6001
db1ff28b
JK
60022015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6003
6004 Revert the previous 6 commits:
6005 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6006 Move gdb_regex* to common/
6007 Prepare linux_find_memory_regions_full & co. for move
6008 Move linux_find_memory_regions_full & co.
6009 gdbserver build-id attribute generator
6010 Validate symbol file using build-id
6011
ca5268b6
JK
60122015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6013 Jan Kratochvil <jan.kratochvil@redhat.com>
6014
6015 Validate symbol file using build-id.
6016 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6017 and 'show validate-build-id'. Add build-id attribute.
6018 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6019 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6020 * solib-frv.c (_initialize_frv_solib): Ditto.
6021 * solib-spu.c (set_spu_solib_ops): Ditto.
6022 * solib-svr4.c: Include rsp-low.h.
6023 (NOTE_GNU_BUILD_ID_NAME): New define.
6024 (svr4_validate): New function.
6025 (svr4_copy_library_list): Duplicate field build_id.
6026 (library_list_start_library): Parse 'build-id' attribute.
6027 (svr4_library_attributes): Add 'build-id' attribute.
6028 (_initialize_svr4_solib): Assign validate value.
6029 * solib-target.c (solib.h): Include.
6030 (_initialize_solib_target): Assign validate value.
6031 * solib.c (validate_build_id, show_validate_build_id): New.
6032 (solib_map_sections): Use ops->validate.
6033 (clear_so): Free build_id.
6034 (default_solib_validate): New function.
6035 (_initialize_solib): Add "validate-build-id".
6036 * solib.h (default_solib_validate): New declaration.
6037 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6038 (target_so_ops): New field 'validate'.
6039
700ca40f
JK
60402015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6041 Jan Kratochvil <jan.kratochvil@redhat.com>
6042
6043 gdbserver build-id attribute generator.
6044 * features/library-list-svr4.dtd (library-list-svr4): New
6045 'build-id' attribute.
6046
9904185c
JK
60472015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6048 Jan Kratochvil <jan.kratochvil@redhat.com>
6049
6050 Move linux_find_memory_regions_full & co.
6051 * linux-tdep.c (nat/linux-maps.h): Include.
6052 (gdb_regex.h): Remove the include.
6053 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6054 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6055 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6056 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6057 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6058 and target/target.h.
6059 (struct smaps_vmflags, read_mapping, decode_vmflags)
6060 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6061 (linux_find_memory_regions_full): Move from linux-tdep.c.
6062 * nat/linux-maps.h (read_mapping): New declaration.
6063 (linux_find_memory_region_ftype, enum filterflags): Moved from
6064 linux-tdep.c.
6065 (linux_find_memory_regions_full): New declaration.
6066 * target.c (target/target-utils.h): Include.
6067 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6068 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6069 definitions to target/target-utils.c.
6070 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6071 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6072 from target.c.
6073 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6074 (read_alloc): New declaration.
6075 (read_stralloc_func_ftype): New typedef.
6076 (read_stralloc): New declaration.
6077 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6078
f7af1fcd
JK
60792015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6080 Jan Kratochvil <jan.kratochvil@redhat.com>
6081
6082 Prepare linux_find_memory_regions_full & co. for move.
6083 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6084 (linux_find_memory_regions_full): Change signature and prepare
6085 for moving to linux-maps.
6086 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6087 (linux_find_memory_regions_thunk): New.
6088 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6089 (linux_find_memory_regions_gdb): New.
6090 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6091 (linux_make_mappings_corefile_notes): Use
6092 linux_find_memory_regions_gdb.
6093 * target.c (read_alloc_pread_ftype): New typedef.
6094 (target_fileio_read_alloc_1_pread): New function.
6095 (read_alloc): Refactor from target_fileio_read_alloc_1.
6096 (read_stralloc_func_ftype): New typedef.
6097 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6098 (read_stralloc): Refactored from target_fileio_read_stralloc.
6099 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6100
6e5b4429
JK
61012015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6102
6103 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6104 common/gdb_regex.h.
6105 (COMMON_OBS): Add gdb_regex.o.
6106 (gdb_regex.o): New.
6107 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6108 --without-included-regex and USE_INCLUDED_REGEX.
6109 * common/gdb_regex.c: New file from utils.c functions.
6110 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6111 file wrapping define name.
6112 * configure: Rebuilt.
6113 * configure.ac (gdb_use_included_regex, --without-included-regex)
6114 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6115 * gdb_regex.h: Move it to common/gdb_regex.h.
6116 * utils.c: Remove include gdb_regex.h.
6117 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6118 (compile_rx_or_error): Move them to common/gdb_regex.c.
6119
ddc98fbf
JK
61202015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6121 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6124 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6125 common/target-utils.h.
6126 (COMMON_OBS): Add target-utils.o.
6127 (linux-maps.o, target-utils.o): New.
6128 * target/target-utils.c: New file.
6129 * target/target-utils.h: New file.
6130 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6131 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6132 * nat/linux-maps.c: New file.
6133 * nat/linux-maps.h: New file.
6134
e7b01ce0
MM
61352015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6136 Pedro Alves <palves@redhat.com>
6137
6138 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6139 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6140 (perf_event_read_bts): Change the type of SIZE and READ.
6141 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6142 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6143 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6144 mmap page.
6145 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6146 buffer size to UINT_MAX.
6147 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6148 DATA_TAIL.
6149 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6150 <last_head>: Change type.
6151 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6152 * common/btrace-common.c (btrace_data_append): Change the type of
6153 SIZE.
6154 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6155 check.
6156
f168693b
SM
61572015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6160 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6161 with check_typedef.
6162 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6163 (ada_array_length): Likewise.
6164 (find_parallel_type_by_descriptive_type): Likewise.
6165 (ada_check_typedef): Likewise.
6166 * arm-tdep.c (arm_return_in_memory): Likewise.
6167 * ax-gdb.c (gen_trace_static_fields): Likewise.
6168 (gen_struct_ref_recursive): Likewise.
6169 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6170 (variable: block COLONCOLON name): Likewise.
6171 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6172 * c-lang.c (classify_type): Likewise.
6173 * c-typeprint.c (c_print_type): Likewise.
6174 (c_print_typedef): Likewise.
6175 (c_type_print_base): Likewise.
6176 * c-valprint.c (c_val_print): Likewise.
6177 * compile/compile-c-types.c (convert_type): Likewise.
6178 * compile/compile-object-load.c (get_out_value_type): Likewise.
6179 * completer.c (add_struct_fields): Likewise.
6180 (expression_completer): Likewise.
6181 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6182 (cp_lookup_nested_symbol_1): Likewise.
6183 (cp_lookup_nested_symbol): Likewise.
6184 * cp-valprint.c (cp_print_value_fields): Likewise.
6185 (cp_print_static_field): Likewise.
6186 * d-valprint.c (d_val_print): Likewise.
6187 * eval.c (evaluate_subexp_standard): Likewise.
6188 (evaluate_subexp_for_sizeof): Likewise.
6189 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6190 * f-typeprint.c (f_type_print_base): Likewise.
6191 * f-valprint.c (f_val_print): Likewise.
6192 * gdbtypes.c (get_discrete_bounds): Likewise.
6193 (create_array_type_with_stride): Likewise.
6194 (type_name_no_tag_or_error): Likewise.
6195 (lookup_struct_elt_type): Likewise.
6196 (get_unsigned_type_max): Likewise.
6197 (internal_type_vptr_fieldno): Likewise.
6198 (set_type_vptr_fieldno): Likewise.
6199 (internal_type_vptr_basetype): Likewise.
6200 (set_type_vptr_basetype): Likewise.
6201 (get_vptr_fieldno): Likewise.
6202 (is_integral_type): Likewise.
6203 (is_scalar_type): Likewise.
6204 (is_scalar_type_recursive): Likewise.
6205 (distance_to_ancestor): Likewise.
6206 (is_unique_ancestor_worker): Likewise.
6207 (check_types_equal): Likewise.
6208 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6209
45280282
IB
62102015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6211
6212 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6213 also test for language_d.
6214 (dwarf2_compute_name): Likewise.
6215 (read_func_scope): Likewise.
6216 (read_structure_type): Likewise.
6217 (new_symbol_full): Likewise.
6218 (determine_prefix): Likewise.
6219 (read_import_statement): Use dot as the separator for language_d.
6220 (typename_concat): Likewise, but don't prefix the D main function.
6221
99fe86f7
PB
62222015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6223
6224 * nat/linux-namespaces.c (setns): Rename from this ...
6225 (do_setns): ... to this. Support calling setns if it exists.
6226 (mnsh_handle_setns): Call do_setns.
6227
d5131498
YQ
62282015-07-13 Yao Qi <yao.qi@linaro.org>
6229
6230 * exec.c (exec_file_attach): Add period at the end of error
6231 message.
6232
97605e61
AB
62332015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6234
6235 * tui/tui-win.c (window_name_completer): New function.
6236 (focus_completer): Call window_name_completer. All old content
6237 moved into window_name_completer.
6238 (winheight_completer): New function.
6239 (_initialize_tui_win): Rename variable. Add completer to
6240 winheight command. Update doc string on winheight.
6241
8d6dbeb4
SL
62422015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6243
6244 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6245 all nios2 mach variants.
6246
a0e28e54
KB
62472015-07-10 Kevin Buettner <kevinb@redhat.com>
6248
6249 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6250 of target_read_memory.
6251
c101f28f
AB
62522015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6255 string copy.
6256 (parse_scrolling_args): Likewise.
6257
150375dc
AB
62582015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6259
6260 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6261 names in this function.
6262
6dce28e4
AB
62632015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6266 (CMD_NAME): Likewise.
6267 (DATA_NAME): Likewise.
6268 (DISASSEM_NAME): Likewise.
6269 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6270 (tui_set_win_height): Likewise.
6271 (parse_scrolling_args): Likewise.
6272
485668e5
MM
62732015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6274
6275 * record-btrace.c (record_btrace_goto_begin)
6276 (record_btrace_goto_end, record_btrace_goto): Move call to
6277 print_stack_frame ...
6278 (record_btrace_set_replay): ... here. Set stop_pc.
6279 * record-full.c (record_full_goto_entry): Set stop_pc.
6280
58d2eda5
PL
62812015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6282
6283 * NEWS: Mention support for tracepoints on aarch64-linux.
6284
7671bf47
PL
62852015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6286
6287 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6288 function. Return 1.
6289 (the_low_target): Install it.
6290
7890fb45
PL
62912015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6292
6293 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6294 * gdb.trace/collection.exp: Likewise.
6295 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6296 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6297 * gdb.trace/report.exp: Likewise.
6298 * gdb.trace/trace-break.exp: Likewise.
6299 * gdb.trace/unavailable.exp: Likewise.
6300 * gdb.trace/while-dyn.exp: Likewise.
6301
ea873d8e
PL
63022015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6303
6304 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6305 (aarch64_gen_return_address): New function.
6306 (aarch64_gdbarch_init): Hook it.
6307
02a2a705
PL
63082015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6309
6310 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6311 swallow NOT_AVAILABLE_ERROR.
6312 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6313 available_p is not set.
6314 (aarch64_stub_frame_unwind_stop_reason): New function.
6315 (aarch64_stub_unwind): Install it.
6316
7dfa3edc
PL
63172015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6318
6319 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6320 field.
6321 (aarch64_make_prologue_cache_1): New function, factored out from
6322 aarch64_make_prologue_cache. Do not allocate cache. Set
6323 available_p.
6324 (aarch64_make_prologue_cache): Reimplement wrapping
6325 aarch64_make_prologue_cache_1, and swallowing
6326 NOT_AVAILABLE_ERROR.
6327 (aarch64_prologue_frame_unwind_stop_reason): New function.
6328 Return UNWIND_UNAVAILABLE if available_p is not set.
6329 (aarch64_prologue_unwind): Install it.
6330 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6331 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6332 frame_id_build_unavailable_stack if available_p is not set.
6333
db634143
PL
63342015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6335
6336 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6337 fields.
6338 (aarch64_scan_prologue): Set prev_pc.
6339 (aarch64_make_prologue_cache): Set func.
6340 (aarch64_make_stub_cache): Set prev_pc.
6341 (aarch64_prologue_this_id): Remove local variables id, pc and
6342 func. Read prev_pc and func from cache.
6343 (aarch64_stub_this_id): Read prev_pc from cache.
6344
8b61f75d
PL
63452015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6346
6347 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6348 argument this_cache. Remove unused local variables reg and
6349 unwound_fp. Return early if this_cache is already set. Set
6350 this_cache.
6351 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6352
7c8edfae
PL
63532015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6354
6355 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6356 New argument this_cache. Return early if this_cache is already
6357 set. Set this_cache.
6358 (aarch64_prologue_this_id): Update call to
6359 aarch64_make_prologue_cache.
6360 (aarch64_prologue_prev_register): Likewise.
6361 (aarch64_normal_frame_base): Likewise.
6362
938c69a1
SM
63632015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6364
6365 * c-valprint.c (c_val_print): Factor out memberptr printing code
6366 from c_val_print to ...
6367 (c_val_print_memberptr): ... this new function.
6368
49f7fe28
SM
63692015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6370
6371 * c-valprint.c (c_val_print): Factor out int printing code to ...
6372 (c_val_print_int): ... this new function.
6373
9e4f353c
SM
63742015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * c-valprint.c (c_val_print): Factor out struct and union
6377 printing code to ...
6378 (c_val_print_struct): ... this new function ...
6379 (c_val_print_union): ... and this new function.
6380
1c67f032
SM
63812015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * c-valprint.c (c_val_print): Factor out pointer printing code
6384 to ...
6385 (c_val_print_ptr): ... this new function.
6386
0b6ef777
SM
63872015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6388
6389 * c-valprint.c (c_valprint): Factor our array printing code from
6390 c_val_print to ...
6391 (c_val_print_array): ... this new function.
6392
1033c33c
SM
63932015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * c-valprint.c (c_val_print): Factor out pointer printing code
6396 to ...
6397 (print_unpacked_pointer): ... this new function.
6398
f6b93c34
SM
63992015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * c-valprint.c (c_val_print): Remove an assignment to i and move
6402 its declaration.
6403
0f4576e3
YQ
64042015-07-09 Yao Qi <yao.qi@linaro.org>
6405
6406 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6407 argument ptid. Update comments. Caller update.
6408
37fdfe4c
MM
64092015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6410
6411 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6412 mnt packets.
6413
80a2b330
MM
64142015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6415
6416 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6417
4ab31498
SM
64182015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * progspace.c (delete_program_space): Add missing spaces.
6421
7a41607e
SM
64222015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * inferior.c (delete_inferior_1): Rename to ...
6425 (delete_inferior): ..., remove 'silent' parameter, delete
6426 program space when unused and remove call to prune_program_spaces.
6427 Remove the old, unused, delete_inferior.
6428 (delete_inferior_silent): Remove.
6429 (prune_inferiors): Change call from delete_inferior_1 to
6430 delete_inferior and remove 'silent' parameter. Remove call to
6431 prune_program_spaces.
6432 (remove_inferior_command): Idem.
6433 * inferior.h (delete_inferior_1): Rename to...
6434 (delete_inferior): ..., remove 'silent' parameter and remove the
6435 original delete_inferior.
6436 (delete_inferior_silent): Remove.
6437 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6438 delete_inferior_1 to delete_inferior and remove 'silent'
6439 parameter.
6440 * progspace.c (prune_program_spaces): Remove.
6441 (pspace_empty_p): Rename to...
6442 (program_space_empty_p): ... and make non-static.
6443 (delete_program_space): New.
6444 * progspace.h (prune_program_spaces): Remove declaration.
6445 (program_space_empty_p): New declaration.
6446 (delete_program_space): New declaration.
6447 * monitor.c (monitor_close): Replace call to
6448 delete_thread_silent and delete_inferior_silent with
6449 discard_all_inferiors.
6450
a9bd710f
PP
64512015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6452
6453 * defs.h (deprecated_register_changed_hook): Remove prototype.
6454 * interps.c (clear_iterpreter_hooks): Remove reference to
6455 deprecated_register_changed_hook.
6456 * top.c (deprecated_register_changed_hook): Remove prototype.
6457 * valops.c (value_assign): Remove reference to
6458 deprecated_register_changed_hook.
6459 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6460 Add comment documenting the function.
6461 (tui_register_changed_observer): Define.
6462 (tui_install_hooks): Remove reference to
6463 deprecated_register_changed_hook. Set
6464 tui_register_changed_observer.
6465 (tui_remove_hooks): Remove reference to
6466 deprecated_register_changed_hook. Unset
6467 tui_register_changed_observer.
6468
08464196
JK
64692015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6470
6471 PR compile/18484
6472 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6473
bcf5c1d9
RC
64742015-07-08 Robert O'Callahan <robert@ocallahan.org>
6475
6476 PR exp/18617
6477 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6478
e8643a45
MM
64792015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6480
6481 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6482
76fb6829
MM
64832015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6484
6485 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6486 Use safe_strerror() instead of strerror().
6487
82c40d4b
YQ
64882015-07-07 Yao Qi <yao.qi@linaro.org>
6489
6490 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6491 * features/arm-with-m-fpa-layout.c: Regenerated.
6492 * features/arm-with-m-vfp-d16.xml: Likewise.
6493 * features/arm-with-m-vfp-d16.c: Regenerated.
6494 * features/arm-with-m.xml: Likewise.
6495 * features/arm-with-m.c: Regenerated.
6496 * features/arm-with-neon.xml: Likewise.
6497 * features/arm-with-neon.c: Regenerated.
6498 * features/arm-with-vfpv2.xml: Likewise.
6499 * features/arm-with-vfpv2.c: Regenerated.
6500 * features/arm-with-vfpv3.xml: Likewise.
6501 * features/arm-with-vfpv3.c: Regenerated.
6502
607685ec
YQ
65032015-07-07 Yao Qi <yao.qi@linaro.org>
6504
6505 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6506 arm-linux-nat.c.
6507 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6508 elf/external.h.
6509 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6510 if target is 32-bit.
6511 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6512 if target is 32-bit.
6513 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6514 if target is 32-bit.
6515 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6516 if target is 32-bit.
6517 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6518 (aarch64_linux_read_description): Return the right target
6519 description.
6520 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6521 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6522 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6523 arm-linux-tdep.o.
6524
f1b67888
YQ
65252015-07-07 Yao Qi <yao.qi@linaro.org>
6526
6527 * aarch32-linux-nat.c: New file.
6528 * aarch32-linux-nat.h: New file.
6529 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6530 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6531 aarch32_gp_regcache_supply.
6532 (store_regs): Move code to aarch32-linux-nat.c. Call
6533 aarch32_gp_regcache_collect.
6534 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6535 aarch32_vfp_regcache_supply.
6536 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6537 aarch32_vfp_regcache_collect.
6538 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6539
179bfe82
YQ
65402015-07-07 Yao Qi <yao.qi@linaro.org>
6541
6542 * arm-linux-nat.c (store_fpregister): Remove.
6543 (store_register): Likewise.
6544 (fetch_fpregister): Likewise.
6545 (fetch_register): Likewise.
6546 (arm_linux_store_inferior_registers): Call store_regs and
6547 store_fpregs instead.
6548 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6549 fetch_regs instead.
6550
6008fc5f
AB
65512015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6552
6553 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6554 and focus commands.
6555
7c79d316
JB
65562015-07-06 Joel Brobecker <brobecker@adacore.com>
6557
6558 * NEWS: Create a new section for the next release branch.
6559 Rename the section of the current branch, now that it has
6560 been cut.
6561
f2232bea
JB
65622015-07-06 Joel Brobecker <brobecker@adacore.com>
6563
6564 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6565 * version.in: Bump version to 7.10.50.DATE-cvs.
6566
66c4b3e8
LM
65672015-07-06 Luis Machado <lgustavo@codesourcery.com>
6568
6569 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6570 breakpoints in a special way.
6571 (remove_breakpoint): Likewise.
6572 (mark_breakpoints_out): Likewise.
6573
bcd8537c
AB
65742015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * doc/gdb.texinfo (TUI): Add comma after @xref.
6577
10e9aaa3
AB
65782015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6579
6580 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6581 instead of casting the structure type.
6582
8a13d42d
SM
65832015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * valops.c (search_struct_field): Remove OFFSET parameter.
6586 (value_cast_structs): Adjust calls to search_struct_field.
6587 (value_struct_elt): Same.
6588 (find_overload_match): Same.
6589
a844296a
SM
65902015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6591
6592 * value.c (value_fetch_lazy): Update comment, change return
6593 value to void.
6594 * value.h (value_fetch_lazy): Change return value to void.
6595
f41cbf58
AB
65962015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6599 (tui_win_name): Make parameter and result const.
6600 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6601
118ca224
PP
66022015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6603
6604 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6605 use printf_unfiltered.
6606 (set_mpx_cmd): Add missing trailing space to command string
6607 literal.
6608 (_initialize_i386_tdep): Give the "mpx" prefix command its
6609 correct name.
6610
1b485e67
KB
66112015-07-02 Kevin Buettner <kevinb@redhat.com>
6612
6613 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6614 (enum rx_frame_type): New.
6615 (struct rx_prologue): Add new field `frame_type'.
6616 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6617 parameter in the prologue struct. Add code for recording
6618 locations of PC and PSW for fast interrupt and exception frames.
6619 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6620 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6621 (rx_frame_type): New function.
6622 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6623 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6624 `this_cache'.
6625 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6626 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6627 RX_FRAME_TYPE_FAST_INTERRUPT.
6628 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6629 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6630 (rx_frame_unwind): Use rx_frame_sniffer instead of
6631 default_frame_sniffer.
6632 (rx_frame_unwind): New unwinder.
6633 (rx_gdbarch_init): Register new unwinder.
6634
0561fea4
KB
66352015-07-02 Kevin Buettner <kevinb@redhat.com>
6636
6637 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6638 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6639 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6640 and RX_FPSW_REGNUM.
6641 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6642
decf8d9a
JK
66432015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6644
6645 Fix GCC false warning.
6646 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6647
2fd0f80d
YQ
66482015-07-02 Yao Qi <yao.qi@linaro.org>
6649
6650 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6651 typo in the debugging message.
6652
b0627500
MM
66532015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6654
6655 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6656 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6657 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6658 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6659 (btrace_maint_clear): New.
6660 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6661 (pt_print_packet, btrace_maint_decode_pt)
6662 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6663 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6664 (maint_btrace_packet_history_cmd)
6665 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6666 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6667 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6668 (maint_info_btrace_cmd, _initialize_btrace): New.
6669 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6670 (btrace_maint_packet_history, btrace_maint_info): New.
6671 (btrace_thread_info) <maint>: New.
6672 * NEWS: Announce it.
6673
9be54cae
MM
66742015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6675
6676 * btrace.c (btrace_fetch): Append the new trace data.
6677 (btrace_clear): Clear the stored trace data.
6678 * btrace.h (btrace_thread_info) <data>: New.
6679 * common/btrace-common.h (btrace_data_clear)
6680 (btrace_data_append): New.
6681 * common/btrace-common.c (btrace_data_clear)
6682 (btrace_data_append): New.
6683
010a18a1
MM
66842015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6685
6686 * nat/linux-btrace.c (linux_enable_bts): Check for
6687 PERF_ATTR_SIZE_VER5.
6688 Check for data_offset and data_size fields. Use them.
6689
b20a6524
MM
66902015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6691
6692 * NEWS: Announce new commands "record btrace pt" and "record pt".
6693 Announce new options "set|show record btrace pt buffer-size".
6694 * btrace.c: Include "rsp-low.h".
6695 Include "inttypes.h".
6696 (btrace_add_pc): Add forward declaration.
6697 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6698 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6699 (btrace_compute_ftrace_pt): New.
6700 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6701 (check_xml_btrace_version): Update version check.
6702 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6703 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6704 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6705 (btrace_pt_children): New.
6706 (btrace_children): Add support for "pt".
6707 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6708 (btrace_conf_children): Add support for "pt".
6709 * btrace.h: Include "intel-pt.h".
6710 (btrace_pt_error): New.
6711 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6712 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6713 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6714 (struct btrace_config_pt): New.
6715 (struct btrace_config)<pt>: New.
6716 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6717 (struct btrace_data)<pt>: New.
6718 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6719 (pt): New.
6720 * features/btrace.dtd (btrace)<pt>: New.
6721 (pt, pt-config, cpu): New.
6722 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6723 (perf_event_pt_event_type, kernel_supports_pt)
6724 (linux_supports_pt): New.
6725 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6726 (linux_enable_bts): Free tinfo on error.
6727 (linux_enable_pt): New.
6728 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6729 (linux_disable_pt): New.
6730 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6731 (linux_fill_btrace_pt_config, linux_read_pt): New.
6732 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6733 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6734 (struct btrace_target_info)<pt>: New.
6735 * record-btrace.c (set_record_btrace_pt_cmdlist)
6736 (show_record_btrace_pt_cmdlist): New.
6737 (record_btrace_print_pt_conf): New.
6738 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6739 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6740 (cmd_record_btrace_pt_start): New.
6741 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6742 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6743 (_initialize_record_btrace): Add new commands.
6744 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6745 (remote_protocol_features): Add "Qbtrace:pt".
6746 Add "Qbtrace-conf:pt:size".
6747 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6748 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6749 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6750 (_initialize_remote): Add new commands.
6751
58bfce93
MM
67522015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6753
6754 * configure.ac: check for libipt
6755 * configure: Regenerate.
6756 * config.in: Regenerate.
6757 * Makefile.in (LIBIPT): New.
6758 (CLIBS): Add $LIBIPT.
6759 * NEWS: document new configure options
6760
b0fd6b30
JK
67612015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6762
6763 * compile/compile-object-load.c (compile_object_load): Replace debug
6764 message "lookup undefined ELF symbol" by 3 more specific messages.
6765
e6280369
KB
67662015-07-01 Kevin Buettner <kevinb@redhat.com>
6767
6768 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6769 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6770 (rl78_gdbarch_init): Initialize rl78_psw_type.
6771
bbcbf914
PP
67722015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6773
6774 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6775 Update commentary. Always refresh the registers when frame
6776 information has changed.
6777 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6778 Change return type to int. Return 1 if frame information has
6779 changed, 0 otherwise.
6780 (tui_before_prompt): Update commentary.
6781 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6782 int.
6783
0986c744
PP
67842015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6785
6786 PR tui/13378
6787 * frame.c (select_frame): Remove reference to
6788 deprecated_selected_frame_level_changed_hook.
6789 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6790 declaration.
6791 * stack.c (deprecated_selected_frame_level_changed_hook):
6792 Likewise.
6793 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6794 Rename to ...
6795 (tui_refresh_frame_and_register_information): ... this. Bail
6796 out if there is no stack. Don't update register information
6797 unless registers_too_p is true.
6798 (tui_print_frame_info_listing_hook): Rename to ...
6799 (tui_dummy_print_frame_info_listing_hook): ... this.
6800 (tui_before_prompt): New function.
6801 (tui_normal_stop): New function.
6802 (tui_before_prompt_observer): New observer.
6803 (tui_normal_stop_observer): New observer.
6804 (tui_install_hooks): Set
6805 deprecated_print_frame_info_listing_hook to
6806 tui_dummy_print_frame_info_listing_hook. Register
6807 tui_before_prompt_observer to call tui_before_prompt and
6808 tui_normal_stop_observer to call tui_normal_stop. Remove
6809 reference to deprecated_selected_frame_level_changed_hook.
6810 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6811 and tui_normal_stop_observer. Remove reference to
6812 deprecated_selected_frame_level_changed_hook.
6813
b5fca6d7
PP
68142015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6815
6816 PR tui/13378
6817 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6818 return an int instead of void. Return whether the locator
6819 window has changed.
6820 (tui_show_frame_info): If the locator info has not changed, then
6821 bail out early to avoid refreshing the windows.
6822
c45613e3
PP
68232015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6824
6825 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6826 LOCATOR_WIN to tui_alloc_content.
6827
7b9be803
YQ
68282015-06-30 Yao Qi <yao.qi@linaro.org>
6829
6830 PR tdep/18605
6831 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6832 instructions.
6833
fd6e021d
KB
68342015-06-29 Kevin Buettner <kevinb@redhat.com>
6835
78ab7e9d
KB
6836 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6837 (rx_dwarf_reg_to_regnum): New function.
6838 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6839 unwinding.
fd6e021d 6840
28bf096c
PA
68412015-06-29 Pedro Alves <palves@redhat.com>
6842
6843 PR threads/18127
6844 * infcall.c (run_inferior_call): On infcall success, if the thread
6845 was marked stopped before, reset it back to stopped.
6846 * infrun.c (resume): Don't suppress the set_running calls when
6847 doing an infcall.
6848 (normal_stop): Only discard the finish_thread_state cleanup if the
6849 infcall succeeded.
6850
2880b51c 68512015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6852
6853 * MAINTAINERS (Write After Approval): Update my email address.
6854
ee93cd5e
KS
68552015-06-26 Keith Seitz <keiths@redhat.com>
6856 Doug Evans <dje@google.com>
6857
6858 PR 16253
6859 * block.c (block_lookup_symbol): For non-function blocks,
6860 continue to search for a symbol with an exact domain match
6861 Otherwise, return any previously found "best domain" symbol.
6862 (block_lookup_symbol_primary): Likewise.
6863
fc637f04
PP
68642015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6865
6866 * NEWS: Mention the new option "history remove-duplicates".
6867 * top.c (history_remove_duplicates): New static variable.
6868 (show_history_remove_duplicates): New static function.
6869 (gdb_add_history): Conditionally remove duplicate history
6870 entries.
6871 (init_main): Add "history remove-duplicates" option.
6872
2e52ae68
PP
68732015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6874
6875 * tui/tui-win.c (focus_completer): New static function.
6876 (_initialize_tui_win): Set the completion function of the
6877 "focus" command to focus_completer.
6878
6e22494e
JK
68792015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6880
6881 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6882 and language_asm..
6883 * symtab.c (find_function_start_sal): Likewise.
6884
f8773be1
GB
68852015-06-25 Gary Benson <gbenson@redhat.com>
6886
6887 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6888 it is the empty string after trailing slashes have been stripped.
6889
a3be80c3
GB
68902015-06-25 Gary Benson <gbenson@redhat.com>
6891
6892 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6893 * infrun.c (follow_exec): Likewise.
6894 * remote.c (remote_filesystem_is_local): Likewise.
6895 * solib.c (solib_find_1): Likewise.
6896
32fad71f
KS
68972015-06-24 Keith Seitz <keiths@redhat.com>
6898
6899 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6900 return value from lrealpath.
6901
87d1b309
MF
69022015-06-24 Mike Frysinger <vapier@gentoo.org>
6903
6904 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6905
23bf70af
MF
69062015-06-24 Mike Frysinger <vapier@gentoo.org>
6907
6908 * remote-sim.c: Include gdb_bfd.h.
6909 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6910 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6911
5cd867b4
YQ
69122015-06-24 Yao Qi <yao.qi@linaro.org>
6913
6914 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6915 set_gdbarch_get_siginfo_type.
6916 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6917 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6918 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6919 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6920 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6921 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6922 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6923 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6924 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6925 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6926
dc06243f
GB
69272015-06-24 Gary Benson <gbenson@redhat.com>
6928
6929 * common/buffer.c (stdint.h): Do not include.
6930 * common/print-utils.c (stdint.h): Likewise.
6931 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6932 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6933 * ft32-tdep.c (gdb_assert.h): Likewise.
6934 * guile/scm-utils.c (stdint.h): Likewise.
6935 * i386-linux-tdep.c (stdint.h): Likewise.
6936 * i386-tdep.c (stdint.h): Likewise.
6937 * nat/linux-btrace.c (stdint.h): Likewise.
6938 * nat/linux-btrace.h (stdint.h): Likewise.
6939 * nat/linux-ptrace.c (stdint.h): Likewise.
6940 * nat/mips-linux-watch.h (stdint.h): Likewise.
6941 * ppc-linux-nat.c (stdint.h): Likewise.
6942 * python/python-internal.h (stdint.h): Likewise.
6943 * stub-termcap.c (stdlib.h): Likewise.
6944 * target/target.h (stdint.h): Likewise.
6945 * xtensa-linux-nat.c (stdint.h): Likewise.
6946
0fc26caf
PP
69472015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6948
6949 * top.c (init_history): Look at errno after calling strtol to
6950 properly map large GDBHISTSIZE values to infinity.
6951
a38fe4fe
DE
69522015-06-23 Doug Evans <dje@google.com>
6953
6954 * inferior.h (struct inferior_suspend_state): Delete, unused.
6955 All references deleted.
6956
7564fe45
MF
69572015-06-23 Mike Frysinger <vapier@gentoo.org>
6958
6959 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6960 (microblaze_push_dummy_call): Likewise.
6961 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6962 and set_gdbarch_push_dummy_call.
6963
0bdb2f78
YQ
69642015-06-23 Yao Qi <yao.qi@linaro.org>
6965
6966 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6967 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6968 (amd64_linux_store_inferior_registers): Likewise.
6969 * arm-linux-nat.c (fetch_fpregister): Likewise.
6970 (fetch_fpregs, store_fpregister): Likewise.
6971 (store_fpregister, store_fpregs): Likewise.
6972 (fetch_register, fetch_regs): Likewise.
6973 (store_register, store_regs): Likewise.
6974 (fetch_vfp_regs, store_vfp_regs): Likewise.
6975 (arm_linux_read_description): Check have_ptrace_getregset is
6976 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6977 or TRIBOOL_FALSE.
6978 * i386-linux-nat.c (fetch_xstateregs): Check
6979 have_ptrace_getregset is not TRIBOOL_TRUE.
6980 (store_xstateregs): Likewise.
6981 * linux-nat.c (have_ptrace_getregset): Change its type to
6982 enum tribool.
6983 * linux-nat.h (tribool): New enum.
6984 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6985 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6986
18a94d75
DE
69872015-06-19 Doug Evans <dje@google.com>
6988
6989 * NEWS: Mention Sun's version of stabs is no longer supported.
6990 * elfread.c (free_elfinfo): Delete. All uses updated.
6991 (elfstab_offset_sections): Delete. All uses updated.
6992 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6993 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6994 All uses updated.
6995 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6996 All callers updated.
6997
124e13d9
SM
69982015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6999
7000 * common/rsp-low.c (needs_escaping): New.
7001 (remote_escape_output): Add unit_size parameter. Refactor to
7002 support multi-byte addressable units. Rename parameters.
7003 * common/rsp-low.h (remote_escape_output): Add unit_size
7004 parameter and rename others. Update doc.
7005 * remote.c (align_for_efficient_write): New.
7006 (remote_write_bytes_aux): Add unit_size parameter and use it.
7007 Rename some variables. Update doc.
7008 (remote_xfer_partial): Get unit size and use it.
7009 (remote_read_bytes_1): Add unit_size parameter and use it.
7010 Rename some variables. Update doc.
7011 (remote_write_bytes): Same.
7012 (remote_xfer_live_readonly_partial): Same.
7013 (remote_read_bytes): Same.
7014 (remote_flash_write): Update call to remote_write_bytes_aux.
7015 (remote_write_qxfer): Update call to remote_escape_output.
7016 (remote_search_memory): Same.
7017 (remote_hostio_pwrite): Same.
7018
6ae88661
LM
70192015-06-17 Luis Machado <lgustavo@codesourcery.com>
7020
7021 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7022 locations as inserted.
7023 Update and expand comment about permanent locations.
7024 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7025 Move comment to add_location_to_breakpoint.
7026 (update_global_location_list): Don't error out if a permanent
7027 breakpoint is not marked inserted.
7028 Don't error out if a non-permanent breakpoint location is inserted on
7029 top of a permanent breakpoint.
7030
da4616f6
LM
70312015-06-17 Luis Machado <lgustavo@codesourcery.com>
7032
7033 * breakpoint.c (make_breakpoint_permanent): Remove unused
7034 function.
7035 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7036
bc460514
PP
70372015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7038
7039 PR gdb/16999
7040 * NEWS: Mention new GDBHISTSIZE behavior.
7041 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7042 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7043
b58c513b
PP
70442015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7045
7046 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7047 * top.c (init_history): Read from GDBHISTSIZE instead of
7048 HISTSIZE.
7049 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7050
2093d2d3
PP
70512015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7052
7053 * top.c (gdb_safe_append_history): Do not call
7054 history_truncate_file if the history is not stifled.
7055
fc248485
AA
70562015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7057
7058 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7059 * syscalls/s390x-linux.xml: Likewise.
7060
4da680ad
ME
70612015-06-16 Michael Eager <eager@eagercon.com>
7062
7063 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7064
0a75489f
PP
70652015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7066
7067 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7068 target_terminal_ours_for_output() before calling
7069 tui_show_frame_info(), and restore the original terminal
7070 settings afterwards.
7071
95855ca8
MS
70722015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7073
7074 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7075
cfc32360
SM
70762015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7077
7078 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7079 memory unit size.
7080 (mi_cmd_data_write_memory_bytes): Same.
7081
cb6f16cf
SM
70822015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7083
7084 * corefile.c (write_memory): Update doc.
7085 * gdbcore.h (write_memory): Same.
7086
31b7833d
JK
70872015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7090 (dump_mapping_p): Use it for parameter filterflags.
7091 (linux_find_memory_regions_full): Use it for variable filterflags.
7092
909c2cda
JK
70932015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7094 Jan Kratochvil <jan.kratochvil@redhat.com>
7095
7096 Merge multiple hex conversions.
7097 * monitor.c: Include rsp-low.h.
7098 (fromhex): Remove definition.
7099
03aef70f
JK
71002015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7101 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 Move utility functions to common/.
7104 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7105 Move defs to common/common-utils.c.
7106 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7107 (skip_to_space_const): Move decls to common/common-utils.h.
7108 * common/common-defs.h: Move include of common-types.h before
7109 common-utils.h.
7110 * common/common-utils.c: Include host-defs.h and ctype.h.
7111 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7112 from utils.c.
7113 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7114 cli/cli-utils.c.
7115 * common/common-utils.h (strtoulst): Move decl from utils.h.
7116 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7117 Move from cli/cli-utils.h.
7118 * common/host-defs.h: Include limits.h.
7119 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7120 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7121 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7122 common/common-utils.h.
7123 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7124 (strtoulst): Move to common/common-utils.c.
7125 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7126
d1168cc1
YQ
71272015-06-15 Yao Qi <yao.qi@linaro.org>
7128
7129 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7130
c74f7d1c
JT
71312015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7132
7133 * build-id.c: Don't include elf-bfd.h.
7134 (build_id_bfd_get): Use bfd_build_id.
7135 (build_id_verify): Ditto.
7136 * build-id.h: Ditto.
7137 (find_separate_debug_file_by_buildid): Ditto.
7138 * python/py-objfile.c: Don't include elf-bfd.h.
7139 (objfpy_get_build_id) Use bfd_build_id.
7140 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7141 * coffread.c: Include build-id.h.
7142 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7143
f20c58f5
JT
71442015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7145
7146 * windows-nat.c (do_windows_fetch_inferior_registers)
7147 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7148 conditional with __CYGWIN__.
7149
51f0e40d
AB
71502015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * completer.c: Add arch-utils.h include.
7153 (enum reg_completer_targets): New enum.
7154 (reg_or_group_completer_1): New function containing old
7155 reg_or_group_completer, add and use new parameter to control what
7156 is completed on. Use get_current_arch rather than architecture of
7157 currently selected frame.
7158 (reg_or_group_completer): Call new reg_or_group_completer_1.
7159 (reggroup_completer): Call new reg_or_group_completer_1.
7160 * completer.h (reggroup_completer): Add declaration.
7161 * tui/tui-regs.c: Add 'completer.h' include.
7162 (tui_reg_next_command): Renamed to...
7163 (tui_reg_next): ...this. Adjust parameters and return rather than
7164 display new group.
7165 (tui_reg_prev_command): Renamed to...
7166 (tui_reg_prev): ...this. Adjust parameters and return rather than
7167 display new group.
7168 (tui_reg_float_command): Delete.
7169 (tui_reg_general_command): Delete.
7170 (tui_reg_system_command): Delete.
7171 (tui_reg_command): Rewrite to perform switching of register group.
7172 Add header comment.
7173 (tuireglist): Remove.
7174 (tui_reggroup_completer): New function.
7175 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7176 creation of 'tui reg' command.
7177 * NEWS: Add comment about 'tui reg' changes.
7178
d309493c
SM
71792015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7180
7181 * target.c (target_read): Consider addressable unit size when
7182 reading from a memory object.
7183 (read_memory_robust): Same.
7184 (read_whatever_is_readable): Same.
7185 (target_write_with_progress): Consider addressable unit size
7186 when writing to a memory object.
7187 * target.h (target_read): Update documentation.
7188 (target_write): Add documentation.
7189
3374165f
SM
71902015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * arch-utils.h (default_addressable_memory_unit_size): New.
7193 * arch-utils.c (default_addressable_memory_unit_size): New.
7194 * gdbarch.sh (addressable_memory_unit_size): New.
7195 * gdbarch.h: Re-generate.
7196 * gdbarch.c: Re-generate.
7197
279a6fed
SM
71982015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7199
7200 * target.c (target_read): Rename variables and use
7201 TARGET_XFER_E_IO.
7202 (target_read_with_progress): Same.
7203 (read_memory_robust): Constify parameters and rename
7204 variables.
7205 (read_whatever_is_readable): Constify parameters,
7206 rename variables, adjust formatting.
7207 * target.h (read_memory_robust): Constify parameters.
7208
1e5338b6 72092015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7210
7211 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7212 synthetic (non-AltiVec) vector types.
7213 (ppc64_sysv_abi_return_value): Likewise.
7214
98aa42ee
AT
72152015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7216
7217 PR breakpoints/16465
7218 * breakpoint.c (create_breakpoint): Save extra_string for
7219 pending breakpoints.
7220
966f0aef
WT
72212015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7222
7223 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7224 and bt_mask to CORE_ADDR.
7225
6449ed0d
GB
72262015-06-11 Gary Benson <gbenson@redhat.com>
7227
7228 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7229 (mnsh_recv_message): Likewise.
7230
34f8ac9f
WT
72312015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7232
7233 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7234 long long int and plongest instead of %ll.
7235
198c808c
GB
72362015-06-11 Gary Benson <gbenson@redhat.com>
7237
7238 * nat/linux-namespaces.c (gdb_wait.h): New include.
7239 (sys/wait.h): Do not include.
7240
e815d2d2
SM
72412015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7242
7243 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7244 end_sequence is true.
7245
8847cac2
JK
72462015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7247
7248 Code cleanup.
7249 * solib-target.c (library_list_start_list): Use explicit NULL
7250 comparison.
7251
24c05f46
JK
72522015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7253
7254 * solib-target.c (library_list_start_list): Do not dereference
7255 variable version in its initialization. Make the VERSION check handle
7256 NULL.
7257 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7258
51aad7cc
GB
72592015-06-10 Gary Benson <gbenson@redhat.com>
7260
7261 * NEWS: Announce support for direct access of executable and
7262 shared library files when attaching to inferiors in containers
7263 on GNU/Linux systems.
7264
15a201c8
GB
72652015-06-10 Gary Benson <gbenson@redhat.com>
7266
7267 * remote.c (struct remote_state) <fs_pid>: New field.
7268 (new_remote_state): Initialize the above.
7269 (PACKET_vFile_setfs): New enum value.
7270 (remote_hostio_set_filesystem): New function.
7271 (remote_hostio_open): Call the above.
7272 (remote_hostio_unlink): Likewise.
7273 (remote_hostio_readlink): Likewise.
7274 (_initialize_remote): Register new "set/show remote
7275 hostio-setfs-packet" command.
7276 * NEWS: Announce new vFile:setfs packet.
7277
7a6a1731
GB
72782015-06-10 Gary Benson <gbenson@redhat.com>
7279
7280 * linux-nat.c (nat/linux-namespaces.h): New include.
7281 (fileio.h): Likewise.
7282 (linux_nat_filesystem_is_local): New function.
7283 (linux_nat_fileio_pid_of): Likewise.
7284 (linux_nat_fileio_open): Likewise.
7285 (linux_nat_fileio_readlink): Likewise.
7286 (linux_nat_fileio_unlink): Likewise.
7287 (linux_nat_add_target): Initialize to_filesystem_is_local,
7288 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7289 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7290 commands.
7291 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7292
07c138c8
GB
72932015-06-10 Gary Benson <gbenson@redhat.com>
7294
7295 * target.h (struct inferior): New forward declaration.
7296 (struct target_ops) <to_filesystem_is_local>: Update comment.
7297 (struct target_ops) <to_fileio_open>: New argument inf.
7298 Update comment. All implementations updated.
7299 (struct target_ops) <to_fileio_unlink>: Likewise.
7300 (struct target_ops) <to_fileio_readlink>: Likewise.
7301 (target_filesystem_is_local): Update comment.
7302 (target_fileio_open): New argument inf. Update comment.
7303 (target_fileio_unlink): Likewise.
7304 (target_fileio_readlink): Likewise.
7305 (target_fileio_read_alloc): Likewise.
7306 (target_fileio_read_stralloc): Likewise.
7307 * target.c (target_fileio_open): New argument inf.
7308 Pass inf to implementation. Update debug printing.
7309 (target_fileio_unlink): Likewise.
7310 (target_fileio_readlink): Likewise.
7311 (target_fileio_read_alloc_1): New argument inf. Pass inf
7312 to target_fileio_open.
7313 (target_fileio_read_alloc): New argument inf. Pass inf to
7314 target_fileio_read_alloc_1.
7315 (target_fileio_read_stralloc): Likewise.
7316 * gdb_bfd.c (inferior.h): New include.
7317 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7318 argument with new argument "inferior". Pass inferior to
7319 target_fileio_open.
7320 (gdb_bfd_open): Supply inferior argument to
7321 gdb_bfd_iovec_fileio_open.
7322 * linux-tdep.c (linux_info_proc): Supply inf argument to
7323 relevant target_fileio calls.
7324 (linux_find_memory_regions_full): Likewise.
7325 (linux_fill_prpsinfo): Likewise.
7326 * remote.c (remote_filesystem_is_local): Supply inf
7327 argument to remote_hostio_open.
7328 (remote_file_put): Likewise.
7329 (remote_file_get): Likewise.
7330 (remote_file_delete): Supply inf argument to
7331 remote_hostio_unlink.
7332
12e2a5fd
GB
73332015-06-10 Gary Benson <gbenson@redhat.com>
7334
7335 * inf-child.c (inf_child_fileio_open): Replace comment.
7336 (inf_child_fileio_pwrite): Likewise.
7337 (inf_child_fileio_pread): Likewise.
7338 (inf_child_fileio_fstat): Insert blank line before comment.
7339 (inf_child_fileio_close): Replace comment.
7340 (inf_child_fileio_unlink): Likewise.
7341 (inf_child_fileio_readlink): Likewise.
7342 * remote.c (remote_hostio_open): Likewise.
7343 (remote_hostio_pread): Likewise.
7344 (remote_hostio_pwrite): Likewise.
7345 (remote_hostio_close): Likewise.
7346 (remote_hostio_unlink): Likewise.
7347 (remote_hostio_readlink): Likewise.
7348 (remote_hostio_fstat): Likewise.
7349 (remote_filesystem_is_local): Likewise.
7350 * target.c (target_fileio_open): Likewise.
7351 (target_fileio_pwrite): Likewise.
7352 (target_fileio_pread): Likewise.
7353 (target_fileio_fstat): Insert blank line before comment.
7354 (target_fileio_close): Replace comment.
7355 (target_fileio_unlink): Likewise.
7356 (target_fileio_readlink): Likewise.
7357 (target_fileio_read_alloc): Likewise.
7358 (target_fileio_read_stralloc): Likewise.
7359
9bc3a976
GB
73602015-06-10 Gary Benson <gbenson@redhat.com>
7361
7362 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7363 (check_pid_namespace_match): Use linux_ns_same rather than
7364 linux_proc_pid_get_ns to spot PID namespace mismatches.
7365 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7366 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7367
4b8b5e72
GB
73682015-06-10 Gary Benson <gbenson@redhat.com>
7369
7370 * configure.ac (AC_CHECK_FUNCS): Add setns.
7371 * config.in: Regenerate.
7372 * configure: Likewise.
7373 * nat/linux-namespaces.h: New file.
7374 * nat/linux-namespaces.c: Likewise.
7375 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7376 (linux-namespaces.o): New rule.
7377 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7378 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7379 * config/arm/linux.mh (NATDEPFILES): Likewise.
7380 * config/i386/linux.mh (NATDEPFILES): Likewise.
7381 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7382 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7383 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7384 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7385 * config/mips/linux.mh (NATDEPFILES): Likewise.
7386 * config/pa/linux.mh (NATDEPFILES): Likewise.
7387 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7388 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7389 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7390 * config/s390/linux.mh (NATDEPFILES): Likewise.
7391 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7392 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7393 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7394 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7395
ca095836
GB
73962015-06-10 Gary Benson <gbenson@redhat.com>
7397
7398 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7399 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7400 (make_cleanup_close): Likewise.
7401 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7402 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7403 (make_cleanup_close): Likewise.
7404
5d9c55d3
JT
74052015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7406
7407 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7408 from SuspendThread().
7409
040ea00b
JT
74102015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7411
7412 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7413 from OutputDebugString.
7414
7d73c23c
WT
74152015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7416 Mircea Gherzan <mircea.gherzan@intel.com>
7417
7418 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7419 MPX_BT_MASK_32): New macros.
7420 (i386_mpx_set_bounds): New function that implements
7421 the command "set-mpx-bound".
7422 (i386_mpx_enabled): Helper function to test MPX availability.
7423 (i386_mpx_bd_base): Helper function to calculate the base directory
7424 address.
7425 (i386_mpx_get_bt_entry): Helper function to access a bound
7426 table entry.
7427 (i386_mpx_print_bounds): Effectively display bound information.
7428 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7429 "show mpx".
7430 (_initialize_i386_tdep):
7431 Add "bound" to the commands "show mpx" and "set mpx" commands.
7432 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7433 and "show mpx" commands.
7434 * NEWS: List new commands for MPX support.
7435
3ac2e371
GB
74362015-06-09 Gary Benson <gbenson@redhat.com>
7437
7438 * common/fileio.h (fileio_to_host_mode): New declaration.
7439 * common/fileio.c (fileio_to_host_mode): New Function.
7440 * inf-child.c (inf_child_fileio_open): Process mode argument
7441 with fileio_to_host_mode.
7442
ecef18c5
GB
74432015-06-09 Gary Benson <gbenson@redhat.com>
7444
7445 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7446 conditional.
7447
e3dd7556
GB
74482015-06-05 Gary Benson <gbenson@redhat.com>
7449
7450 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7451 * remote.c (remote_filesystem_is_local): ...here.
7452
5b74bf7d
YQ
74532015-06-04 Yao Qi <yao.qi@linaro.org>
7454
7455 * gdbarch.c: Regenerate it.
7456
7f361056
JK
74572015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7458
7459 * arch-utils.c (default_infcall_munmap): New.
7460 * arch-utils.h (default_infcall_munmap): New declaration.
7461 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7462 (munmap_list_free, munmap_listp_free_cleanup): New.
7463 (struct setup_sections_data): Add field munmap_list_headp.
7464 (setup_sections): Call munmap_list_add.
7465 (compile_object_load): New variable munmap_list_head, initialize
7466 setup_sections_data.munmap_list_headp, return munmap_list_head.
7467 * compile/compile-object-load.h (struct munmap_list): New declaration.
7468 (struct compile_module): Add field munmap_list_head.
7469 (munmap_list_free): New declaration.
7470 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7471 munmap_list_head.
7472 (do_module_cleanup): Call munmap_list_free.
7473 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7474 * gdbarch.c: Regenerate.
7475 * gdbarch.h: Regenerate.
7476 * gdbarch.sh (infcall_munmap): New.
7477 * linux-tdep.c (linux_infcall_munmap): New.
7478 (linux_init_abi): Install it.
7479
3b462ec2
SM
74802015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7481
7482 PR gdb/15564
7483 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7484
8d683210
YQ
74852015-06-02 Yao Qi <yao.qi@linaro.org>
7486
7487 * i386-linux-nat.c: Include linux-nat.h.
7488
e0619de6
JK
74892015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7490 Jan Kratochvil <jan.kratochvil@redhat.com>
7491
7492 PR symtab/18392
7493 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7494 assertion.
7495 * dwarf2loc.c (chain_candidate): Likewise.
7496
bd16da51
YQ
74972015-06-01 Yao Qi <yao.qi@linaro.org>
7498
7499 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7500 (store_vfp_regs): Use PTRACE_SETREGSET.
7501
df9d7ec9
YQ
75022015-06-01 Yao Qi <yao.qi@linaro.org>
7503
7504 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7505 (fetch_fpregs): Likewise.
7506 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7507 (store_fpregs): Likewise.
7508
10766686
YQ
75092015-06-01 Yao Qi <yao.qi@linaro.org>
7510
7511 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7512 (fetch_regs): Likewise.
7513 (store_regs): Use PTRACE_SETREGSET.
7514 (store_register): Likewise.
7515
7efe48d1
YQ
75162015-06-01 Yao Qi <yao.qi@linaro.org>
7517
7518 * arm-linux-nat.c (arm_linux_read_description): Check whether
7519 kernel supports PTRACE_GETREGSET.
7520
433bbbf8
YQ
75212015-06-01 Yao Qi <yao.qi@linaro.org>
7522
7523 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7524 * linux-nat.c: ... here.
7525 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7526 to ...
7527 * linux-nat.h: ... here.
7528
ca9b78ce
YQ
75292015-06-01 Yao Qi <yao.qi@linaro.org>
7530
7531 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7532 * i386-linux-nat.c: Likewise.
7533 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7534 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7535 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7536 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7537 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7538
99cee7b7
EZ
75392015-05-30 Eli Zaretskii <eliz@gnu.org>
7540
7541 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7542 compatible to what read_child and write_child return. This
7543 unbreaks that DJGPP build of GDB which was broken since v7.7.
7544
2147f5bd
MG
75452015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7546
7547 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7548
c8f6c93c
RM
75492015-05-29 Roland McGrath <mcgrathr@google.com>
7550
7551 PR gdb/18464
7552 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7553 rather than internal_error for an unrecognized value.
7554
8c6a948d
MF
75552015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7556
7557 * xtensa-tdep.c (xtensa_pseudo_register_read)
7558 (xtensa_pseudo_register_write): Don't alias last pseudo register
7559 to a1.
7560
8dd06f7a
DB
75612015-05-28 Don Breazeal <donb@codesourcery.com>
7562
7563 * infrun.c (follow_fork_inferior): Ensure the use of
7564 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7565 messages.
7566
a051152b
DE
75672015-05-28 Doug Evans <dje@google.com>
7568
7569 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7570
a56cc1ce
YQ
75712015-05-28 Yao Qi <yao.qi@linaro.org>
7572
7573 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7574 (arm_linux_fetch_inferior_registers): Use
7575 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7576 (arm_linux_store_inferior_registers): Likewise.
7577 (arm_linux_read_description): Don't set
7578 arm_linux_has_wmmx_registers.
7579 * arm-tdep.c (arm_gdbarch_init): Set
7580 tdep->have_wmmx_registers according target descriptions.
7581 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7582 field.
7583
330c6ca9
YQ
75842015-05-28 Yao Qi <yao.qi@linaro.org>
7585
7586 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7587 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7588 instead of arm_linux_vfp_register_count.
7589 (store_vfp_regs): Likewise.
7590 (arm_linux_fetch_inferior_registers): Likewise.
7591 (arm_linux_store_inferior_registers): Likewise.
7592 (arm_linux_read_description): Don't set
7593 arm_linux_vfp_register_count.
7594 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7595 Adjust.
7596 * arm-tdep.c (arm_gdbarch_init): Add assert on
7597 vfp_register_count.
7598 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7599 field to vfp_register_count. All users updated.
7600
d403db27
KH
76012015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7602
7603 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7604 ELFOSABI_GNU binaries.
7605
d9b3de22
DE
76062015-05-27 Doug Evans <dje@google.com>
7607
7608 * dwarf2read.c (lnp_state_machine): New typedef.
7609 (lnp_reader_state): New typedef.
7610 (dwarf_record_line_1): Renamed from dwarf_record_line.
7611 All callers updated.
7612 (dwarf_record_line): New function.
7613 (init_lnp_state_machine): New function.
7614 (check_line_address): Replace p_record_line parameter with state.
7615 All callers updated.
7616 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7617 Update to record state in lnp_state_machine.
7618
924c2928
DE
76192015-05-27 Doug Evans <dje@google.com>
7620
7621 * dwarf2read.c (record_line_ftype): New typedef.
7622 (check_line_address): New function.
7623 (dwarf_decode_lines_1): Call it.
7624
27e0867f
DE
76252015-05-27 Doug Evans <dje@google.com>
7626
7627 * NEWS: Mention "set debug dwarf-line".
7628 * dwarf2read.c (dwarf_line_debug): New static global.
7629 (add_include_dir): Add debug dwarf-line support.
7630 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7631 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7632
4dcabcc2
DE
76332015-05-27 Doug Evans <dje@google.com>
7634
7635 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7636 All callers updated.
7637 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7638 * cp-support.h (cp_lookup_nested_symbol): Update.
7639
b2e2f908
DE
76402015-05-27 Doug Evans <dje@google.com>
7641
7642 PR symtab/18258
7643 * block.c (block_find_symbol): New function.
7644 (block_find_non_opaque_type): Ditto.
7645 (block_find_non_opaque_type_preferred): Ditto.
7646 * block.h (block_symbol_matcher_ftype): New typedef.
7647 (block_find_symbol): Declare.
7648 (block_find_non_opaque_type): Ditto.
7649 (block_find_non_opaque_type_preferred): Ditto.
7650 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7651 * psymtab.c (psym_lookup_symbol): Ditto.
7652 * symtab.c (basic_lookup_transparent_type_1): New function.
7653 (basic_lookup_transparent_type): Call it.
7654
f62fce35
YQ
76552015-05-27 Yao Qi <yao.qi@linaro.org>
7656
7657 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7658 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7659
5d98d3cd
YQ
76602015-05-27 Yao Qi <yao.qi@linaro.org>
7661
7662 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7663 before operator &&.
7664 (aarch64_record_load_store): Likewise.
7665
82c7be31
DE
76662015-05-26 Doug Evans <dje@google.com>
7667
7668 PR c++/18141, c++/18417.
7669 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7670 a typedef.
7671
b4f54984
DE
76722015-05-26 Doug Evans <dje@google.com>
7673
7674 * NEWS: Add entries for command renamings.
7675 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7676 All uses updated.
7677 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7678 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7679 All uses updated.
7680 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7681 All callers updated. Fix spelling of DWARF in help text.
7682 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7683 All uses updated.
7684 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7685 All uses updated.
7686 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7687 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7688 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7689 All uses updated.
7690 (show_dwarf_always_disassemble): Renamed from
7691 show_dwarf2_always_disassemble. All callers updated.
7692 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7693 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7694 "set/show dwarf max-cache-age". Rename
7695 "set/show dwarf2 always-disassemble" to
7696 "set/show dwarf always-disassemble". Rename
7697 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7698 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7699
4ea6efe9
DE
77002015-05-26 Doug Evans <dje@google.com>
7701
7702 PR python/18438
7703 * python/py-lazy-string.c (stpy_convert_to_value): Use
7704 gdbpy_gdb_memory_error not PyExc_MemoryError.
7705 (gdbpy_create_lazy_string_object): Ditto.
7706
b93fd21d
AB
77072015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7708
7709 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7710
55b40027
AB
77112015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7712
7713 * tui/tui-regs.c (tui_reg_prev_command): New function.
7714 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7715 * reggroups.c (reggroup_prev): New function.
7716 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7717
99afc88b
OJ
77182015-05-26 Omair Javaid <omair.javaid@linaro.org>
7719 Yao Qi <yao.qi@linaro.org>
7720
7721 * aarch64-linux-tdep.c: Include linux-record.h and
7722 record-full.h.
7723 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7724 (aarch64_syscall): New enum.
7725 (aarch64_canonicalize_syscall): New function.
7726 (aarch64_all_but_pc_registers_record): New function.
7727 (aarch64_linux_syscall_record): New function.
7728 (aarch64_linux_init_abi): Install AArch64 process record
7729 handler. Update to handle syscall recording.
7730 * aarch64-tdep.c: Include record.h and record-full.h.
7731 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7732 (struct aarch64_mem_r): Define.
7733 (aarch64_record_result): New enum.
7734 (struct insn_decode_record): Define.
7735 (insn_decode_record): New typedef.
7736 (aarch64_record_data_proc_reg): New function.
7737 (aarch64_record_data_proc_imm): New function.
7738 (aarch64_record_branch_except_sys): New function.
7739 (aarch64_record_load_store): New function.
7740 (aarch64_record_data_proc_simd_fp): New function.
7741 (aarch64_record_asimd_load_store): New function.
7742 (aarch64_record_decode_insn_handler): New function.
7743 (deallocate_reg_mem): New function.
7744 (aarch64_process_record): New function.
7745 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7746 New field.
7747 (aarch64_process_record): New extern declaration.
7748 * configure.tgt: Add linux-record.o to gdb_target_obs.
7749 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7750
c16a3f52
OJ
77512015-05-26 Omair Javaid <omair.javaid@linaro.org>
7752
7753 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7754 targets.
7755
c9cf6e20
MG
77562015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7757
7758 * amd64-tdep.c: Replace in_function_epilogue_p with
7759 stack_frame_destroyed_p throughout.
7760 * arch-utils.c: Ditto.
7761 * arch-utils.h: Ditto.
7762 * arm-tdep.c: Ditto.
7763 * breakpoint.c: Ditto.
7764 * gdbarch.sh: Ditto.
7765 * hppa-tdep.c: Ditto.
7766 * i386-tdep.c: Ditto.
7767 * mips-tdep.c: Ditto.
7768 * nios2-tdep.c: Ditto.
7769 * rs6000-tdep.c: Ditto.
7770 * s390-linux-tdep.c: Ditto.
7771 * score-tdep.c: Ditto.
7772 * sh-tdep.c: Ditto.
7773 * sparc-tdep.c: Ditto.
7774 * sparc-tdep.h: Ditto.
7775 * sparc64-tdep.c: Ditto.
7776 * spu-tdep.c: Ditto.
7777 * tic6x-tdep.c: Ditto.
7778 * tilegx-tdep.c: Ditto.
7779 * xstormy16-tdep.c: Ditto.
7780 * gdbarch.c, gdbarch.h: Re-generated.
7781
a4ea0946
AB
77822015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * NEWS: Mention 'tui enable' and 'tui disable'.
7785 * tui/tui.c (tui_enable_command): New function.
7786 (tui_disable_command): New function.
7787 (_initialize_tui): New function.
7788
b75c69bb
AB
77892015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7792
c1b009ee
AB
77932015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7796 buf_ptr is freed.
7797
880d1e40
AB
77982015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7801 into ...
7802 (tui_set_layout_for_display_command): ...here, before calling
7803 tui_set_layout. Only set the layout if gdb has not already
7804 entered the TUI_FAILURE state.
7805
a0145030
AB
78062015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7807
7808 * tui/tui-layout.c (layout_completer): New function.
7809 (_initialize_tui_layout): Set completer on layout command.
7810
7bd0be3a
AB
78112015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * tui/tui-layout.c (tui_set_layout): Remove
7814 tui_register_display_type parameter. Remove all checking of this
7815 parameter, and reindent function. Update header comment.
7816 (tui_set_layout_for_display_command): Rename to...
7817 (tui_set_layout_by_name): ...this, and don't check for different
7818 register class types, don't pass a tui_register_display_type to
7819 tui_set_layout. Update header comment.
7820 (layout_names): Remove register set specific names.
7821 * tui/tui-layout.h (tui_set_layout): Remove
7822 tui_register_display_type parameter.
7823 * tui/tui.c (tui_rl_change_windows): Don't pass a
7824 tui_register_display_type to tui_set_layout.
7825 (tui_rl_delete_other_windows): Likewise.
7826 (tui_enable): Likewise.
7827 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7828 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7829 (TUI_GENERAL_REGS_NAME): Remove.
7830 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7831 (TUI_SPECIAL_REGS_NAME): Remove.
7832 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7833 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7834 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7835 (enum tui_register_display_type): Remove.
7836 (struct tui_layout_def): Remove regs_display_type and
7837 float_regs_display_type fields.
7838 (struct tui_data_info): Remove regs_display_type field.
7839 (tui_layout_command): Use new name for
7840 tui_set_layout_for_display_command.
7841 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7842 (tui_clear_win_detail): Don't initialise removed fields of
7843 win_info.
7844 * tui/tui-regs.c (tui_show_registers): Use new name for
7845 tui_set_layout_for_display_command.
7846 * tui/tui.h (tui_set_layout_for_display_command): Rename
7847 declaration to...
7848 (tui_set_layout_by_name): ...this.
7849 * printcmd.c (display_command): Remove tui related layout call,
7850 and reindent.
7851
0b6e5e10
JB
78522015-05-20 Joel Brobecker <brobecker@adacore.com>
7853
7854 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7855 (handle_inferior_event): New function.
7856
1da0522e
JB
78572015-05-20 Joel Brobecker <brobecker@adacore.com>
7858
7859 * ada-lang.c (to_fixed_array_type): Rename local variable
7860 typename into type_name.
7861
5fe75eec
JK
78622015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7863
7864 Fix ASAN crash for gdb.compile/compile.exp.
7865 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7866
a4063588
JK
78672015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7870 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7871 * compile/compile-object-load.c (setup_sections, compile_object_load):
7872 Likewise.
7873 * compile/compile.c (compile_to_object): Likewise.
7874
37442ce1
DE
78752015-05-16 Doug Evans <xdje42@gmail.com>
7876
7877 * NEWS: Mention support for unbuffered Guile memory ports.
7878 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7879 (ioscm_lseek_address): Improve overflow calculation.
7880 (gdbscm_memory_port_fill_input): Add assert.
7881 (gdbscm_memory_port_write): Handle unbuffered ports.
7882 Handle large writes identical to Guile's fport_write.
7883 (gdbscm_memory_port_seek): Fix seeking past end check.
7884 (gdbscm_memory_port_close): Handle closing unbuffered port.
7885 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7886 (ioscm_init_memory_port): Handle unbuffered ports.
7887 (ioscm_reinit_memory_port): Ditto.
7888 (ioscm_init_memory_port): Update size calculation.
7889 (gdbscm_open_memory): Support zero sized ports.
7890
d976bace
JK
78912015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7892
7893 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7894 variable compiler warnings.
7895
4d18dfad
JK
78962015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7897
7898 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7899
36de76f9
JK
79002015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7901 Phil Muldoon <pmuldoon@redhat.com>
7902
7903 * NEWS (Changes since GDB 7.9): Add compile print.
7904 * compile/compile-c-support.c (add_code_header, add_code_footer)
7905 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7906 COMPILE_I_PRINT_VALUE_SCOPE.
7907 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7908 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7909 New.
7910 * compile/compile-object-load.c: Include block.h.
7911 (get_out_value_type): New function.
7912 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7913 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7914 OUT_VALUE_TYPE.
7915 * compile/compile-object-load.h (struct compile_module): Add fields
7916 out_value_addr and out_value_type.
7917 * compile/compile-object-run.c: Include valprint.h and compile.h.
7918 (struct do_module_cleanup): Add fields out_value_addr and
7919 out_value_type.
7920 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7921 COMPILE_I_PRINT_VALUE_SCOPE.
7922 (compile_object_run): Propagate out_value_addr and out_value_type.
7923 Pass OUT_VALUE_ADDR.
7924 * compile/compile.c: Include valprint.h.
7925 (compile_print_value, compile_print_command): New functions.
7926 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7927 (_initialize_compile): Update compile code help text. Install
7928 compile_print_command.
7929 * compile/compile.h (compile_print_value): New prototype.
7930 * defs.h (enum compile_i_scope_types): Add
7931 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7932
83d3415e
JK
79332015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7934
7935 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7936 Rely on its parameter count.
7937 (compile_object_load): Replace lookup_minimal_symbol_text by
7938 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7939 return value.
7940 * compile/compile-object-load.h (struct compile_module): Replace
7941 func_addr by func_sym.
7942 * compile/compile-object-run.c: Include block.h.
7943 (compile_object_run): Reset module variable after it is freed. Use
7944 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7945
3a9558c4
JK
79462015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7949 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7950 (c_compute_program): Call generate_register_struct after typedefs.
7951 * compile/compile-loc2c.c (push, pushf_register_address)
7952 (pushf_register): Cast to GCC_UINTPTR.
7953 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7954 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7955 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7956 * compile/compile.c (_initialize_compile): Enable warnings for
7957 COMPILE_ARGS.
7958
5c65b58a
JK
79592015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7960
7961 * cli/cli-script.c (execute_control_command): Update
7962 eval_compile_command caller.
7963 * compile/compile-object-load.c (compile_object_load): Add parameters
7964 scope and scope_data. Set them.
7965 * compile/compile-object-load.h (struct compile_module): Add fields
7966 scope and scope_data.
7967 (compile_object_load): Add parameters scope and scope_data.
7968 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7969 scope and scope_data.
7970 (compile_object_run): Propagate the fields scope and scope_data.
7971 * compile/compile.c (compile_file_command, compile_code_command):
7972 Update eval_compile_command callers.
7973 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7974 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7975 * defs.h (struct command_line): Add field scope_data.
7976
1c88ceb1
JK
79772015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7978
7979 * printcmd.c (struct format_data): Move it to valprint.h.
7980 (print_command_parse_format, print_value): New functions from ...
7981 (print_command_1): ... here. Call them.
7982 * valprint.h (struct format_data): Move it here from printcmd.c.
7983 (print_command_parse_format, print_value): New declarations.
7984
0b738f27
JK
79852015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7986
7987 * compile/compile-object-load.c (compile_object_load): Add
7988 COMPILE_DEBUG message.
7989
aa715135
JG
79902015-05-15 Jerome Guitton <guitton@adacore.com>
7991
7992 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7993 index to get element instead of enum value.
7994 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7995 of index to compute length, but enum values to compute bounds.
7996 (ada_array_length): Use enum position of index instead of enum value.
7997 (pos_atr): Move position computation to...
7998 (ada_evaluate_subexp): Use enum values to compute bounds.
7999 * gdbtypes.c (discrete_position): ...this new function.
8000 * gdbtypes.h (discrete_position): New function declaration.
8001 * valprint.c (val_print_array_elements): Call discrete_position
8002 to handle array indexed by non-contiguous enumeration types.
8003
931e5bc3
JG
80042015-05-15 Jerome Guitton <guitton@adacore.com>
8005
8006 * ada-lang.c (find_parallel_type_by_descriptive_type):
8007 Go through typedefs during lookup.
8008 (to_fixed_array_type): Add support for non-bit packed arrays
8009 as variable-length fields.
8010
4e63d0ac
PA
80112015-05-15 Pedro Alves <palves@redhat.com>
8012 Simon Marchi <simon.marchi@ericsson.com>
8013
8014 * event-loop.c (gdb_notifier) <next_file_handler,
8015 next_poll_fds_index>: New fields.
8016 (get_next_file_handler_to_handle_and_advance): New function.
8017 (delete_file_handler): If deleting the next file handler to
8018 handle, advance to the next file handler.
8019 (gdb_wait_for_event): Bail early if no event fired. Poll file
8020 handlers in round-robin fashion.
8021
52e48b36
PA
80222015-05-15 Pedro Alves <palves@redhat.com>
8023
8024 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8025 'private' to 'priv'.
8026
2465e12e
PA
80272015-05-15 Pedro Alves <palves@redhat.com>
8028
8029 * nat/linux-nat.h: Include "target/waitstatus.h".
8030
13fa0398
YZ
80312015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8032
8033 * python/py-unwind.c (struct reg_info): Move out of ...
8034 (struct cached_frame_info): ... this scope.
8035 (pending_frame_object_type, unwind_info_object_type): Make extern.
8036
9cd4d857
JB
80372015-05-15 Joel Brobecker <brobecker@adacore.com>
8038
8039 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8040 accumSize is never negative.
8041
e3555239
PP
80422015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8043
8044 * tui/tui-command.c: Remove include of <ctype.h>.
8045 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8046
08a76f8a
MG
80472015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8048
8049 * dwarf2read.c (die_needs_namespace): Return 1 for
8050 DW_TAG_inlined_subroutine.
8051
bd49952b
JK
80522015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8055 (regcache_cpy_no_passthrough): Make it static, add function comment.
8056 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8057 (regcache_cpy_no_passthrough): Remove declaration.
8058
46c03469
JK
80592015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8060
8061 * gdbthread.h (struct thread_control_state): Update comment for
8062 proceed_to_finish.
8063 * infcall.c (run_inferior_call): Update comment about
8064 proceed_to_finish.
8065 * infcmd.c (get_return_value): Update comment about stop_registers.
8066 (finish_forward): Update comment about proceed_to_finish.
8067 * infrun.c (stop_registers): Remove.
8068 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8069 * infrun.h (stop_registers): Remove.
8070
8a6c4031
JK
80712015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8072
8073 * infcall.c (struct dummy_frame_context_saver)
8074 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8075 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8076 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8077 New.
8078 (call_function_by_hand_dummy): Move discard_cleanups of
8079 inf_status_cleanup before dummy_frame_push. Call
8080 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8081 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8082 * infcall.h (struct dummy_frame_context_saver)
8083 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8084 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8085 New declarations.
8086 * infcmd.c: Include infcall.h.
8087 (get_return_value): Add parameter ctx_saver, use it instead of
8088 stop_registers.
8089 (print_return_value): Add parameter ctx_saver, pass it.
8090 (struct finish_command_continuation_args): Add field ctx_saver.
8091 (finish_command_continuation): Update print_return_value caller.
8092 (finish_command_continuation_free_arg): Free also ctx_saver.
8093 (finish_forward): Call dummy_frame_context_saver_setup.
8094 * inferior.h (struct dummy_frame_context_saver): New declaration.
8095 (get_return_value): Add parameter ctx_saver.
8096 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8097 get_return_value caller.
8098
10989690
JK
80992015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8102 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8103 (remove_dummy_frame): Process dtor_list.
8104 (pop_dummy_frame): Process dtor_list.
8105 (register_dummy_frame_dtor): Maintain dtor_list.
8106 (find_dummy_frame_dtor): Handle dtor_list.
8107 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8108 Update comments.
8109
5e970501
JK
81102015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8111
8112 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8113 registers_valid.
8114 (compile_object_run): Update do_module_cleanup caller.
8115 * dummy-frame.c: Include infcall.h.
8116 (struct dummy_frame): Update dtor comment.
8117 (remove_dummy_frame): Call dtor.
8118 (pop_dummy_frame): Update dtor caller.
8119 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8120 registers_valid.
8121
1c4eb778
JB
81222015-05-13 Joel Brobecker <brobecker@adacore.com>
8123
8124 GDB 7.9.1 released.
8125
f5f85ab9
JB
81262015-05-13 Joel Brobecker <brobecker@adacore.com>
8127
8128 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8129 Xmethods now being able to specify a result type to that new
8130 sectioin.
8131
242cd84c
PP
81322015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8133
8134 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8135 first before resizing the window.
e3555239 8136 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8137
81382015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8139
8140 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8141 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8142 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8143 dummy_dtor parameter.
8144 * infcall.h: Include dummy-frame.h.
8145 (call_function_by_hand_dummy_dtor_ftype): Remove.
8146 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8147 parameter.
8148
ebfd00d2
PP
81492015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8150
8151 PR gdb/17820
8152 * top.c (history_size_setshow_var): Change type to signed.
8153 Initialize to -2. Update documentation.
8154 (set_readline_history_size): Define.
8155 (set_history_size_command): Use it. Remove logic for handling
8156 out-of-range sizes.
8157 (init_history): Use set_readline_history_size(). Test for a
8158 value of -2 instead of 0 when determining whether to set a
8159 default history size.
8160 (init_main): Decode the argument of the "size" command as a
8161 zuinteger_unlimited.
8162
83769d0b
DE
81632015-05-12 Doug Evans <dje@google.com>
8164
8165 * dwarf2read.c (struct file_entry): Tweak comments.
8166 (get_debug_line_section): Tweak comments.
8167
0d71eef5
DB
81682015-05-12 Don Breazeal <donb@codesourcery.com>
8169
8170 * NEWS: Announce fork support in the RSP and support
8171 for fork debugging in extended mode.
8172
cbb8991c
DB
81732015-05-12 Don Breazeal <donb@codesourcery.com>
8174
8175 * remote.c (remote_insert_fork_catchpoint): New function.
8176 (remote_remove_fork_catchpoint): New function.
8177 (remote_insert_vfork_catchpoint): New function.
8178 (remote_remove_vfork_catchpoint): New function.
8179 (pending_fork_parent_callback): New function.
8180 (remove_new_fork_child): New function.
8181 (remote_update_thread_list): Call remote_notif_get_pending_events
8182 and remove_new_fork_child.
8183 (extended_remote_kill): Kill fork child when killing the
8184 parent before follow_fork completes.
8185 (init_extended_remote_ops): Initialize target vector with
8186 new fork catchpoint functions.
8187
c269dbdb
DB
81882015-05-12 Don Breazeal <donb@codesourcery.com>
8189
8190 * remote.c (remove_vfork_event_p): New function.
8191 (remote_follow_fork): Add vfork event type to event checking.
8192 (remote_parse_stop_reply): New stop reasons "vfork" and
8193 "vforkdone" for RSP 'T' Stop Reply Packet.
8194
de0d863e
DB
81952015-05-12 Don Breazeal <donb@codesourcery.com>
8196
8197 * linux-nat.c (linux_nat_ptrace_options): New function.
8198 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8199 Call linux_nat_ptrace_options and use different argument to
8200 linux_enable_event_reporting.
8201 (_initialize_linux_nat): Delete call to
8202 linux_ptrace_set_additional_flags.
c8f6c93c 8203 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8204 supported_ptrace_options.
8205 (additional_flags): Delete variable.
8206 (linux_check_ptrace_features): Use supported_ptrace_options.
8207 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8208 Likewise, and remove additional_flags check.
8209 (linux_enable_event_reporting): Change 'attached' argument to
8210 'options'. Use supported_ptrace_options.
c8f6c93c 8211 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8212 supported_ptrace_options.
8213 (linux_ptrace_set_additional_flags): Delete function.
8214 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8215 Delete function prototype.
8216 * remote.c (remote_fork_event_p): New function.
8217 (remote_detach_pid): New function.
8218 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8219 if doing detach-on-fork.
8220 (remote_follow_fork): New function.
8221 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8222 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8223 (init_extended_remote_ops): Initialize to_follow_fork.
8224
89245bc0
DB
82252015-05-12 Don Breazeal <donb@codesourcery.com>
8226
8227 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8228 from static to extern.
8229 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8230 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8231 * PACKET_vfork_event_feature>: New enumeration constants.
8232 (remote_protocol_features): Add table entries for new packets.
8233 (remote_query_supported): Add new feature queries to qSupported
8234 packet.
8235
835205d0
GB
82362015-05-12 Gary Benson <gbenson@redhat.com>
8237
8238 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8239 for fake PIDs as well as real ones.
8240 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8241
4c082a81
SC
82422015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8243
8244 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8245 * python/py-value.c (valpy_reference_value): New function.
8246 (valpy_const_value): Likewise.
8247 (value_object_methods): Add new methods.
8248 * value.c (make_cv_value): New function.
8249 * value.h (make_cv_value): Declare.
8250
afa6c9ab
SL
82512015-05-08 Yao Qi <yao@codesourcery.com>
8252 Sandra Loosemore <sandra@codesourcery.com>
8253
8254 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8255 to 'lh->include_dirs' before accessing to it.
8256 (psymtab_include_file_name): Likewise.
8257 (dwarf_decode_lines_1): Likewise.
8258 (dwarf_decode_lines): Likewise.
8259 (file_file_name): Likewise.
8260
35d54293
SL
82612015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8262
8263 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8264 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8265 (nios2_linux_rt_sigreturn_init): Adjust base address of
8266 register save area.
8267
b73c49b7
SL
82682015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8269
8270 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8271 "trap 31" as the breakpoint instruction on all targets.
8272
dd9f02a0
JK
82732015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8274
8275 * infcmd.c (print_return_value): Remove unused declaration.
8276
6ad395a7
JB
82772015-05-08 Joel Brobecker <brobecker@adacore.com>
8278
8279 * dwarf2read.c (attr_to_dynamic_prop)
8280 <DW_AT_data_member_location>: Use read_type_die isntead of
8281 get_die_type.
8282
8344af1e
JB
82832015-05-08 Joel Brobecker <brobecker@adacore.com>
8284
8285 * ada-lang.c (ada_convert_actual): Add handling of formals
8286 passed inside an aligner type.
8287
80b0912b
JB
82882015-05-08 Joel Brobecker <brobecker@adacore.com>
8289
8290 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8291
df2eb078
SC
82922015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8293
8294 PR python/18291
8295 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8296 Print xmethod matcher status.
8297
2492f0d0
AA
82982015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8299
8300 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8301 register in the regcache when treating the PSWM register, and vice
8302 versa.
8303
1c56a84d
GB
83042015-05-07 Gary Benson <gbenson@redhat.com>
8305
8306 * linux-thread-db.c (struct thread_db_info)
8307 <td_ta_map_id2thr_p>: Remove field.
8308 (try_thread_db_load_1): Remove initialization for the above.
8309
74850322
GB
83102015-05-07 Gary Benson <gbenson@redhat.com>
8311
8312 * linux-thread-db.c (struct thread_db_info)
8313 <td_thr_validate_p>: Remove field.
8314 (try_thread_db_load_1): Remove initialization for the above.
8315
e26efa40
JK
83162015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8317
8318 * compile/compile-object-load.c (compile_object_load): Support
8319 mst_text_gnu_ifunc.
8320
851c9091
JK
83212015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8322
8323 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8324 const. Use new variables for the const compatibility.
8325 (eval_compile_command): Make the cmd_string parameter const.
8326 * compile/compile.h (eval_compile_command): Make the cmd_string
8327 parameter const.
8328
f218b647
JB
83292015-05-06 Joel Brobecker <brobecker@adacore.com>
8330
8331 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8332 comment.
8333 * top.c (deprecated_init_ui_hook): Delete.
8334 (gdb_init): Remove handling of deprecated_init_ui_hook.
8335 * interps.c (clear_interpreter_hooks): Remove handling of
8336 deprecated_init_ui_hook.
8337 * main.c (captured_main): Update comment.
8338
b30a0bc3
JB
83392015-05-06 Joel Brobecker <brobecker@adacore.com>
8340
8341 * solib.c (_initialize_solib): Add "info dll" alias creation.
8342 * windows-nat.c (set_windows_aliases): Delete.
8343 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8344 assignment.
8345 * NEWS: Add news entry about "info dll" now being available
8346 on all platforms.
8347
7c512744
JB
83482015-05-05 Joel Brobecker <brobecker@adacore.com>
8349
8350 * ada-lang.c (value_assign_to_component): Reformat and improve
8351 documentation. Remove all trailing spaces.
8352
0fa7fe50
JB
83532015-05-05 Joel Brobecker <brobecker@adacore.com>
8354
8355 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8356 Stop counting inlined frames as soon as an out-of-line function
8357 is found.
8358
3ea89b92
PMR
83592014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8360
8361 * dwarf2read.c (inherit_abstract_dies): Skip
8362 DW_TAG_GNU_call_site dies while inheriting children of an
8363 abstract DIE into a scope.
8364 (read_lexical_block_scope): Inherit abstract DIE's for
8365 lexical scopes.
8366
2478d075
JB
83672015-05-05 Joel Brobecker <brobecker@adacore.com>
8368
8369 * ada-valprint.c (val_print_packed_array_elements): Delete
8370 variable "len". Add a type-length check when comparing two
8371 consecutive elements of the array. Use the element's actual
8372 length in call to value_contents_eq.
8373 * ada-lang.c (ada_value_primitive_packed_val): Always return
8374 a value whose type has been resolved.
8375
fc958966
JB
83762015-05-05 Joel Brobecker <brobecker@adacore.com>
8377
8378 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8379 BIT_SIZE and LEN if the size of the resolved type is smaller
8380 than BIT_SIZE * HOST_CHAR_BIT.
8381
ca34b84f
JB
83822015-05-05 Joel Brobecker <brobecker@adacore.com>
8383
8384 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8385 correct address in call to value_at. Adjust call to
8386 value_address accordingly.
8387
62c67f3c
JB
83882015-05-05 Joel Brobecker <brobecker@adacore.com>
8389
8390 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8391 to print it.
8392
c3345124
JB
83932015-05-05 Joel Brobecker <brobecker@adacore.com>
8394
8395 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8396 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8397 pinfo->valaddr.
8398 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8399 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8400 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8401 Add handling of addr_stack->valaddr.
8402 (resolve_dynamic_type): Add "valaddr" parameter.
8403 Set pinfo.valaddr field.
8404 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8405 resolve_dynamic_type.
8406 (ada_discrete_type_low_bound): Likewise.
8407 * findvar.c (default_read_var_value): Likewise.
8408 * value.c (value_from_contents_and_address): Likewise.
8409
75ea5859
JB
84102015-05-05 Joel Brobecker <brobecker@adacore.com>
8411
8412 * gdbtypes.c (resolve_dynamic_array): Use
8413 create_array_type_with_stride instead of create_array_type.
8414
0952813b
DD
84152015-04-30 DJ Delorie <dj@redhat.com>
8416
8417 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8418 rl78_decode_opcode
8419
2ce1cdbf
DE
84202015-04-29 Doug Evans <dje@google.com>
8421
8422 PR python/18285
8423 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8424 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8425 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8426 * extension-priv.h (struct extension_language_ops)
8427 <get_xmethod_result_type>: New member.
8428 * extension.c (get_xmethod_result_type): New function.
8429 * extension.h (get_xmethod_result_type): Declare.
8430 * python/py-xmethods.c (get_result_type_method_name): New static
8431 global.
8432 (py_get_result_type_method_name): Ditto.
8433 (gdbpy_get_xmethod_result_type): New function.
8434 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8435 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8436 * python/python.c (python_extension_ops): Add
8437 gdbpy_get_xmethod_result_type.
8438 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8439 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8440 xmethods.
8441 (value_x_unop): Ditto.
8442 * value.c (result_type_of_xmethod): New function.
8443 * value.h (result_type_of_xmethod): Declare.
8444
998d2a3e
GB
84452015-04-29 Gary Benson <gbenson@redhat.com>
8446
8447 * solib.c (solib_find_1): Allow fd argument to be NULL.
8448 (exec_file_find): Update comment.
8449 (solib_find): Likewise.
8450 * exec.c (exec_file_locate_attach): Use NULL as fd
8451 argument to exec_file_find to avoid having to close
8452 the opened file.
8453 * infrun.c (follow_exec): Likewise.
8454
34f5f757
DE
84552015-04-28 Doug Evans <dje@google.com>
8456
8457 PR python/18299
8458 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8459 name or __name__ attributes. Handle gdb module as first argument.
8460
69b4374a
DE
84612015-04-28 Doug Evans <dje@google.com>
8462
8463 PR python/18089
8464 * python/py-prettyprint.c (print_children): Verify result of children
8465 iterator. Provide better error message.
8466 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8467 * python/python.c (gdbpy_print_python_errors_p): New function.
8468
5e7cf078
DE
84692015-04-28 Doug Evans <dje@google.com>
8470
8471 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8472
59fb7612
SS
84732015-04-28 Sasha Smundak <asmundak@google.com>
8474
8475 * NEWS: Mention gdb.Type.optimized_out method.
8476 * python/py-type.c (typy_optimized_out): New function.
8477
cea6e4f1
JB
84782015-04-28 John Baldwin <jhb@FreeBSD.org>
8479
8480 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8481
24b73f8e
PP
84822015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8483
8484 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8485 (initialize_utils): Move call of init_page_info() to ...
8486 * top.c (gdb_init): ... here.
8487
a88d0bb3
PP
84882015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8489
8490 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8491 (tui_sigwinch_handler): Still update our idea of
8492 the terminal's width and height even when TUI is not active.
8493
d6e5e7f7
PP
84942015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8495
8496 * utils.h (set_screen_width_and_height): Declare.
8497 * utils.c (set_screen_width_and_height): Define.
8498 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8499
ff862be4
GB
85002015-04-28 Gary Benson <gbenson@redhat.com>
8501
8502 * infrun.c (solist.h): New include.
8503 (follow_exec): Use exec_file_find to prefix execd_pathname
8504 with gdb_sysroot.
8505
2eb639cb
PP
85062015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8507
8508 * tui/tui-source.c (tui_set_source_content): Avoid calling
8509 strcpy() when offset is 0.
8510
97206799
PP
85112015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8512
8513 PR gdb/18155
8514 * tui/tui-data.c (tui_free_window): Don't free the locator
8515 window when passed an SRC_WIN or a DISASSEM_WIN.
8516
63ed8182
PP
85172015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8518
8519 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8520 (tui_win_content): Move declaration.
8521 (struct tui_gen_win_info): Give 'content' field the
8522 type tui_win_content.
8523 * tui/tui-data.c (init_content_element): Remove redundant and
8524 erroneous casts.
8525 (tui_add_content_elements): Remove erroneous cast.
8526 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8527 casts.
8528 (tui_get_begin_asm_address): Likewise.
8529 * tui/tui-regs.c (tui_show_registers): Likewise.
8530 (tui_show_register_group): Likewise.
8531 (tui_display_registers_from): Likewise.
8532 (tui_check_register_values): Likewise.
8533 * tui/tui-source.c (tui_set_source_content): Likewise.
8534 (tui_set_source_content_nil): Likewise.
8535 (tui_source_is_displayed): Likewise.
8536 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8537 (tui_set_locator_fullname): Likewise.
8538 (tui_set_locator_info): Likewise.
8539 (tui_show_frame_info): Likewise.
8540 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8541 (tui_show_source_line): Likewise.
8542 (tui_horizontal_source_scroll): Likewise.
8543 (tui_update_breakpoint_info): Likewise.
8544 (tui_set_exec_info_content): Likewise.
8545 (tui_show_exec_info_content): Likewise.
8546 (tui_alloc_source_buffer): Likewise.
8547 (tui_line_is_displayed): Likewise.
8548 (tui_addr_is_displayed): Likewise.
8549
d2b41ca0
JB
85502015-04-27 John Baldwin <jhb@FreeBSD.org>
8551
8552 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8553 event if PL_FLAG_EXEC is set.
8554 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8555 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8556 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8557 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8558 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8559
e58e05d6
JB
85602015-04-27 John Baldwin <jhb@FreeBSD.org>
8561
8562 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8563 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8564 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8565 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8566 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8567 [PT_LWPINFO] (fbsd_wait): New function.
8568 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8569 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8570 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8571 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8572 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8573 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8574 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8575 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8576 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8577 "fbsd_wait".
8578 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8579 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8580 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8581 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8582 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8583 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8584 Set "to_post_attach" to "fbsd_post_attach".
8585
8f60fe01
JB
85862015-04-27 John Baldwin <jhb@FreeBSD.org>
8587
8588 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8589 (fbsd_find_memory_regions): Mark static.
8590 (fbsd_nat_add_target): New function.
8591 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8592 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8593 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8594 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8595 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8596 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8597
5fbae7d1
GB
85982015-04-27 Gary Benson <gbenson@redhat.com>
8599
8600 * objfiles.c (allocate_objfile): Do not attempt to expand name
8601 if name is a "target:" filename.
8602 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8603 to load auto-load scripts for objfiles with "target:" filenames.
8604
417c80f9
AA
86052015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8606
8607 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8608 (enum s390_vector_abi_kind): New enum.
8609 (struct gdbarch_tdep)<vector_abi>: New field.
8610 (s390_effective_inner_type): Add parameter min_size. Stop
8611 unwrapping if the inner type is smaller than min_size.
8612 (s390_function_arg_float): Adjust call to
8613 s390_effective_inner_type.
8614 (s390_function_arg_vector): New function.
8615 (s390_function_arg_integer): Adjust comment.
8616 (struct s390_arg_state)<vr>: New field.
8617 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8618 arguments according to vector ABI when appropriate.
8619 (s390_push_dummy_call): Initialize the argument state's field
8620 'vr'. Adjust calls to s390_handle_arg.
8621 (s390_register_return_value): Handle vector return values.
8622 (s390_return_value): Apply the "register" return value convention
8623 to a vector when appropriate.
8624 (s390_gdbarch_init): Initialize tdep->vector_abi.
8625 * NEWS: Announce S390 vector ABI support.
8626
4e65a17e
AA
86272015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8628
8629 * s390-linux-tdep.c (s390_return_value_convention): Remove
8630 function. Inline its logic...
8631 (s390_return_value): ...here. Instead, move the handling of the
8632 "register" return value convention...
8633 (s390_register_return_value): ...here. New function.
8634
80f75320
AA
86352015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8636
8637 * s390-linux-tdep.c
8638 (is_float_singleton): Remove function. Move the "singleton" part
8639 of the logic...
8640 (s390_effective_inner_type): ...here. New function.
8641 (is_float_like): Remove function. Inline its logic...
8642 (s390_function_arg_float): ...here.
8643 (is_pointer_like, is_integer_like, is_struct_like): Remove
8644 functions. Inline their logic...
8645 (s390_function_arg_integer): ...here.
8646 (s390_function_arg_pass_by_reference): Remove function.
8647 (extend_simple_arg): Remove function.
8648 (alignment_of): Remove function.
8649 (struct s390_arg_state): New structure.
8650 (s390_handle_arg): New function.
8651 (s390_push_dummy_call): Move parameter placement logic to the new
8652 function s390_handle_arg. Call it for calculating the stack area
8653 sizes first, and again for actually writing the parameters.
8654
6dbc9c04
AA
86552015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8656
8657 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8658 false if the argument is zero.
8659
9e195661
PMR
86602015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8661
8662 * ada-lang.c (template_to_static_fixed_type): Return input type
8663 when it is already fixed. Cache the input type itself when not
8664 creating a static fixed copy. Make it explicit that we never
8665 molestate the input type.
8666 * gdbtypes.c (resolve_dynamic_struct): Reset the
8667 TYPE_TARGET_TYPE field for resolved copies.
8668
460efde1
JB
86692015-04-27 Joel Brobecker <brobecker@adacore.com>
8670
8671 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8672 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8673 (template_to_static_fixed_type): Call ada_check_typedef only
8674 when necessary.
8675
6faec16b
AB
86762015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8677
8678 * cli/cli-dump.c (srec_dump_command): Add internationalization
8679 mark ups.
8680 (ihex_dump_command): Likewise.
8681 (tekhex_dump_command): Likewise.
8682 (binary_dump_command): Likewise.
8683 (binary_append_command): Likewise.
8684
cf75d6c3
AB
86852015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * cli/cli-dump.c (verilog_cmdlist): New variable.
8688 (dump_verilog_memory): New function.
8689 (dump_verilog_value): New function.
8690 (verilog_dump_command): New function.
8691 (_initialize_cli_dump): Add new commands to support verilog dump
8692 format.
8693 * NEWS: Add entry for "dump verilog".
8694
8cd00c59
PMR
86952015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8696
8697 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8698 descriptive type when there is none.
8699
8900d71e
PP
87002015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8701
8702 * tui/tui-win.c (tui_async_resize_screen): Call
8703 rl_resize_terminal().
8704
f16eab5f
JT
87052015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8706
8707 * windows-nat.c (handle_output_debug_string): Don't change
8708 current_event.dwThreadId.
8709 (get_windows_debug_event): Use thread_id, rather than relying on
8710 current_event.dwThreadId being changed.
8711
68ffc902
JT
87122015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8713
8714 * windows-nat.c (windows_continue): Report an error if
8715 ContinueDebugEvent() fails.
8716
23942819
JT
87172015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8718
8719 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8720
e6ad66bd
JT
87212015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8722
8723 * windows-nat.c (get_windows_debug_event): Replace retval with
8724 thread_id throughout. Update stale comment.
8725
776704b9
JT
87262015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8727
8728 * windows-nat.c (get_windows_debug_event): Don't use ternary
8729 conditional operator.
8730
8aae4344
PM
87312015-04-21 Pierre Muller <muller@sourceware.org>
8732
8733 PR pascal/17815
8734 p-exp.y (yylex): Reorganize code to return the matched pattern
8735 for a field of this.
8736
819843c7
GB
87372015-04-21 Gary Benson <gbenson@redhat.com>
8738
8739 * common/fileio.h (fileio_to_host_openflags): New declaration.
8740 * common/fileio.c (fcntl.h): New include.
8741 (fileio_to_host_openflags): New function, factored out from...
8742 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8743 Single use updated.
8744
0bca7f99
KB
87452015-04-21 Kevin Buettner <kevinb@redhat.com>
8746
8747 * rl78-tdep.c (RL78_SP_ADDR): Define.
8748 (opc_reg_to_gdb_regnum): New static function.
8749 (rl78_analyze_prologue): Recognize instructions forming slightly
8750 more interesting prologues.
8751
e771e4be
PMR
87522015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8753
8754 Revert:
8755 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8756 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8757 TYPE_CODE_REF types so that they are not considered as dynamic
8758 depending on the referenced type.
8759 (resolve_dynamic_type_internal): Likewise.
8760
ee715b5a
PMR
87612015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8762
8763 Revert:
8764 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8765 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8766 "top_level" parameter.
8767 (resolve_dynamic_type_internal): Remove the unused "top_level"
8768 parameter. Update call to is_dynamic_type_internal.
8769 (is_dynamic_type): Update call to is_dynamic_type_internal.
8770 (resolve_dynamic_range): Update call to
8771 resolve_dynamic_type_internal.
8772 (resolve_dynamic_union): Likewise.
8773 (resolve_dynamic_struct): Likewise.
8774 (resolve_dynamic_type): Likewise.
8775
e31d7699
GKB
87762015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8777
8778 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8779 xmalloc.
8780
d214e5e7
TS
87812015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8782
110f9112
TS
8783 * reply_mig_hack.awk: Robustify parsing.
8784
d214e5e7
TS
8785 * reply_mig_hack.awk: Don't bother to declare an intermediate
8786 function pointer variable.
8787
8f61baf8
DE
87882015-04-17 Doug Evans <dje@google.com>
8789
8790 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8791 to "exec_displacement" to avoid confusion with inner use of the name.
8792
dbbf180a
YQ
87932015-04-17 Pedro Alves <palves@redhat.com>
8794
8795 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8796 if HW point of TYPE isn't supported.
8797
059790a0
YQ
87982015-04-17 Yao Qi <yao.qi@linaro.org>
8799 Pedro Alves <palves@redhat.com>
8800
8801 * target.h (target_can_use_hardware_watchpoint): Update comments.
8802 Remove trailing ";".
8803
1b6e6f5c
GB
88042015-04-17 Gary Benson <gbenson@redhat.com>
8805
8806 * remote.c (remote_add_inferior): New argument try_open_exec.
8807 If nonzero, attempt to open the inferior's executable file as
8808 the main executable if no main executable is open already.
8809 All callers updated.
8810 * NEWS: Mention that GDB now supports automatic location and
8811 retrieval of executable + files from remote targets.
8812
c78fa86a
GB
88132015-04-17 Gary Benson <gbenson@redhat.com>
8814
8815 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8816 * remote.c (PACKET_qXfer_exec_file): Likewise.
8817 (remote_protocol_features): Register the
8818 "qXfer:exec-file:read" feature.
8819 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8820 (remote_pid_to_exec_file): New function.
8821 (init_remote_ops): Initialize to_pid_to_exec_file.
8822 (_initialize_remote): Register new "set/show remote
8823 pid-to-exec-file-packet" command.
8824 * NEWS: Announce new qXfer:exec-file:read packet.
8825
e0d86d2c
GB
88262015-04-17 Gary Benson <gbenson@redhat.com>
8827
8828 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8829 New declaration.
8830 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8831 New function, factored out from...
8832 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8833
a9a5a3d1
GB
88342015-04-17 Gary Benson <gbenson@redhat.com>
8835
8836 * exec.c (solist.h): New include.
8837 (exec_file_locate_attach): Prefix absolute executable
8838 paths with gdb_sysroot if set.
8839 * NEWS: Mention that executable paths may be prepended
8840 with sysroot.
8841
af1900b0
GB
88422015-04-17 Gary Benson <gbenson@redhat.com>
8843
8844 * solist.h (exec_file_find): New declaration.
8845 * solib.c (solib_find_1): New function, factored out from...
8846 (solib_find): ...here.
8847 (exec_file_find): New function.
8848
a10de604
GB
88492015-04-17 Gary Benson <gbenson@redhat.com>
8850
8851 * gdbcore.h (exec_file_locate_attach): New declaration.
8852 * exec.c (exec_file_locate_attach): New function, factored
8853 out from...
8854 * infcmd.c (attach_command_post_wait): ...here.
8855
92209ddf
MF
88562015-04-17 Mike Frysinger <vapier@gentoo.org>
8857
8858 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8859
8550d3b3
YQ
88602015-04-16 Yao Qi <yao.qi@linaro.org>
8861
8862 * infrun.c (maybe_software_singlestep): Declare.
8863 (displaced_step_fixup): Call maybe_software_singlestep.
8864
30b3dd9d
DE
88652015-04-15 Doug Evans <dje@google.com>
8866
8867 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8868
61d96d7e
DE
88692015-04-15 Doug Evans <dje@google.com>
8870
8871 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8872
40d2f8d6
SM
88732015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8874
8875 * python/lib/gdb/command/unwinders.py: Add parentheses.
8876
6bbbba9b
YQ
88772015-04-15 Yao Qi <yao.qi@linaro.org>
8878
8879 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8880
2bb2dcab
YQ
88812015-04-15 Yao Qi <yao.qi@linaro.org>
8882
8883 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8884
41f071ef
YQ
88852015-04-15 Yao Qi <yao.qi@linaro.org>
8886
8887 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8888 dsc->insn_size instead of 4.
8889
326a5c7e
GB
88902015-04-14 Gary Benson <gbenson@redhat.com>
8891
8892 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8893 * minidebug.c (lzma_stat): Likewise.
8894 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8895 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8896
dd177e81
SS
88972015-04-13 Stan Shebs <stanshebs@google.com>
8898
8899 * MAINTAINERS: Update my email address.
8900
97de3545
JB
89012015-04-13 John Baldwin <jhb@FreeBSD.org>
8902
8903 * amd64-tdep.c (amd64_target_description): New function.
8904 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8905 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8906 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8907 x86 extended save area.
8908 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8909 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8910 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8911 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8912 "amd64fbsd_read_description".
8913 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8914 (amd64fbsd_supply_xstateregset): New function.
8915 (amd64fbsd_collect_xstateregset): New function.
8916 Add "amd64fbsd_xstateregset".
8917 (amd64fbsd_iterate_over_regset_sections): New function.
8918 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8919 "I386_FBSD_XSAVE_XCR0_OFFSET".
8920 Add "iterate_over_regset_sections" gdbarch method.
8921 Add "core_read_description" gdbarch method.
8922 * i386-tdep.c (i386_target_description): New function.
8923 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8924 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8925 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8926 x86 extended save area.
8927 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8928 * i386bsd-nat.h: Export i386bsd_xsave_len.
8929 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8930 (_initialize_i386fbsd_nat): Set "to_read_description" to
8931 "i386fbsd_read_description".
8932 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8933 (i386fbsd_core_read_description): New function.
8934 (i386fbsd_supply_xstateregset): New function.
8935 (i386fbsd_collect_xstateregset): New function.
8936 Add "i386fbsd_xstateregset".
8937 (i386fbsd_iterate_over_regset_sections): New function.
8938 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8939 "I386_FBSD_XSAVE_XCR0_OFFSET".
8940 Add "iterate_over_regset_sections" gdbarch method.
8941 Add "core_read_description" gdbarch method.
8942 * i386fbsd-tdep.h: New file.
8943
4f45d445
JK
89442015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8945
8946 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8947 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8948 conditional.
8949 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8950 and lb.
8951 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8952 va.
8953 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8954 conditional.
8955 * defs.h (xdb_commands): Remove declaration.
8956 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8957 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8958 * infcmd.c (run_no_args_command, go_command): Remove.
8959 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8960 * infrun.c (xdb_handle_command): Remove.
8961 (_initialize_infrun): Remove xdb_commands for lz and z.
8962 * main.c (xdb_commands): Remove variable.
8963 (captured_main): Remove "xdb" from long_options.
8964 (print_gdb_help): Remove --xdb from help.
8965 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8966 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8967 * stack.c (backtrace_full_command, args_plus_locals_info)
8968 (current_frame_command): Remove.
8969 (_initialize_stack): Remove xdb_commands for t, T and l.
8970 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8971 * thread.c (_initialize_thread): Remove xdb_commands condition.
8972 * tui/tui-layout.c (tui_toggle_layout_command)
8973 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8974 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8975 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8976 (tui_scroll_regs_backward_command): Remove.
8977 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8978 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8979 (_initialize_tui_win): Remove xdb_commands for U and w.
8980 * utils.c (pagination_on_command, pagination_off_command): Remove.
8981 (initialize_utils): Remove xdb_commands for am and sm.
8982
cb71640d
PA
89832015-04-10 Pedro Alves <palves@redhat.com>
8984
8985 * infrun.c (displaced_step_fixup): Switch to the event ptid
8986 earlier. If the thread stopped for a watchpoint and the
8987 target/arch has non-continuable watchpoints, cancel the displaced
8988 step.
8989 (resume): Don't start a displaced step if in-line step-over info
8990 is valid.
8991
8f572e5c
PA
89922015-04-10 Pedro Alves <palves@redhat.com>
8993
8994 * infrun.c (displaced_step_in_progress): New function.
8995 (do_target_resume): Advise target to report all signals if
8996 displaced stepping.
8997
8d707a12
PA
89982015-04-10 Pedro Alves <palves@redhat.com>
8999
9000 PR gdb/18216
9001 * infrun.c (process_event_stop_test): Don't assume a step-resume
9002 is set if tp->stepped_breakpoint is true.
9003
ef713951
YQ
90042015-04-10 Yao Qi <yao.qi@linaro.org>
9005
9006 * arm-tdep.c (install_alu_reg): Update comment.
9007 (thumb_copy_alu_reg): Remove local variable rn. Update
9008 debugging message. Use r2 instead of r1 in the modified
9009 instruction.
9010
906d60cf
PA
90112015-04-10 Pedro Alves <palves@redhat.com>
9012
9013 PR gdb/13858
9014 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9015 linux_displaced_step_location as gdbarch_displaced_step_location
9016 hook.
9017 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9018 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9019 * linux-tdep.c (linux_displaced_step_location): New function,
9020 based on ppc_linux_displaced_step_location.
9021 * linux-tdep.h (linux_displaced_step_location): New declaration.
9022 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9023 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9024 Delete.
9025 (ppc_linux_init_abi): Install linux_displaced_step_location as
9026 gdbarch_displaced_step_location hook, even without Cell/B.E..
9027 (_initialize_ppc_linux_tdep): Don't install
9028 ppc_linux_inferior_created as inferior_created observer.
9029 * s390-linux-tdep.c (s390_gdbarch_init): Install
9030 linux_displaced_step_location as gdbarch_displaced_step_location
9031 hook.
9032
7823a941
GB
90332015-04-09 Gary Benson <gbenson@redhat.com>
9034
9035 * common/common-remote-fileio.h: Rename to...
9036 * common/fileio.h: ...this. Update all references.
9037 (remote_fileio_to_fio_error): Rename to...
9038 (host_to_fileio_error): ...this.
9039 (remote_fileio_to_be): Rename to...
9040 (host_to_bigendian): ...this. Update all callers.
9041 (remote_fileio_to_fio_uint): Rename to...
9042 (host_to_fileio_uint): ...this. Update all callers.
9043 (remote_fileio_to_fio_time): Rename to...
9044 (host_to_fileio_time): ...this. Update all callers.
9045 (remote_fileio_to_fio_stat): Rename to...
9046 (host_to_fileio_stat): ...this.
9047 Update all references.
9048 * common/common-remote-fileio.c: Rename to...
9049 * common/fileio.c: ...this. Update all references.
9050 (remote_fileio_to_fio_error): Rename to...
9051 (host_to_fileio_error): ...this. Update all callers.
9052 (remote_fileio_mode_to_target): Rename to...
9053 (fileio_mode_pack): ...this. Update all callers.
9054 (remote_fileio_to_fio_mode): Rename to...
9055 (host_to_fileio_mode): ...this. Update all callers.
9056 (remote_fileio_to_fio_ulong): Rename to...
9057 (host_to_fileio_ulong): ...this. Update all callers.
9058 (remote_fileio_to_fio_stat): Rename to...
9059 (host_to_fileio_stat): ...this. Update all callers.
9060
f2983cc3
AW
90612015-04-09 Andy Wingo <wingo@igalia.com>
9062
9063 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9064 (frame_functions): Bind gdbscm_frame_read_register to
9065 frame-read-register.
9066 * guile/lib/gdb.scm (frame-read-register): Export.
9067
b88bb450
GB
90682015-04-09 Gary Benson <gbenson@redhat.com>
9069
9070 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9071 New declaration.
9072 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9073 New function, factored out the named functions below.
9074 * inf-child.c (gdb/fileio.h): Remove include.
9075 (common-remote-fileio.h): New include.
9076 (inf_child_errno_to_fileio_error): Remove function. Update
9077 all callers to use remote_fileio_to_fio_error.
9078 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9079
2f2680f3
AW
90802015-04-09 Andy Wingo <wingo@igalia.com>
9081
9082 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9083
5a2d4533
L
90842015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9085
9086 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9087 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9088 * configure: Regenerated.
9089
421693b0
PA
90902015-04-09 Pedro Alves <palves@redhat.com>
9091
9092 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9093 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9094 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9095 * gnulib/import/Makefile.am: Update.
9096 * gnulib/import/Makefile.in: Update.
9097 * gnulib/import/m4/gnulib-cache.m4: Update.
9098 * gnulib/import/m4/gnulib-comp.m4: Update.
9099 * gnulib/import/m4/strtok_r.m4: New file.
9100 * gnulib/import/strtok_r.c: New file.
9101
f543dc83
PA
91022015-04-09 Pedro Alves <palves@redhat.com>
9103
9104 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9105 "called too early to check prototype".
9106
6d62641c
SDJ
91072015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9108
9109 PR python/16699
9110 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9111 use a caching mechanism. Adjust comments and code to reflect
9112 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9113 (cmdpy_completer_handle_brkchars): Adjust call to
9114 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9115 (cmdpy_completer): Likewise.
9116
85558555
YQ
91172015-04-08 Yao Qi <yao.qi@linaro.org>
9118
9119 * spu-tdep.c (spu_gdbarch_init): Don't call
9120 set_gdbarch_cannot_step_breakpoint.
9121
d249a14a
SDJ
91222015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9123
9124 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9125
8a06aea7
PA
91262015-04-07 Pedro Alves <palves@redhat.com>
9127
9128 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9129 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9130 (delete_exited_threads): New declaration.
9131 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9132 * linux-nat.c (linux_nat_update_thread_list): New function.
9133 (linux_nat_add_target): Install it.
9134 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9135 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9136 (delete_exited_threads): New function.
9137
d9b67d9f
PA
91382015-04-07 Pedro Alves <pedro@codesourcery.com>
9139
9140 * infrun.c (resume) <displaced stepping debug output>: Get the
9141 leader thread's regcache, not resume_ptid's.
9142
2c26b84f
DE
91432015-04-06 Doug Evans <xdje42@gmail.com>
9144
9145 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9146 VAR_DOMAIN.
9147 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9148 Include symbol domain in debugging output.
9149
7a85168d
PA
91502015-04-06 Pedro Alves <palves@redhat.com>
9151 Bernd Edlinger <bernd.edlinger@hotmail.de>
9152
9153 * configure.ac: Remove the mingw32-specific stub-termcap.o
9154 fallback, and instead fallback to the stub termcap on all hosts.
9155 * configure: Regenerate.
9156 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9157 symbols.
9158
25755e2b
PMR
91592015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9160
9161 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9162 "top_level" parameter.
9163 (resolve_dynamic_type_internal): Remove the unused "top_level"
9164 parameter. Update call to is_dynamic_type_internal.
9165 (is_dynamic_type): Update call to is_dynamic_type_internal.
9166 (resolve_dynamic_range): Update call to
9167 resolve_dynamic_type_internal.
9168 (resolve_dynamic_union): Likewise.
9169 (resolve_dynamic_struct): Likewise.
9170 (resolve_dynamic_type): Likewise.
9171
961f4160
PMR
91722015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9173
9174 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9175 TYPE_CODE_REF types so that they are not considered as dynamic
9176 depending on the referenced type.
9177 (resolve_dynamic_type_internal): Likewise.
9178
39f3de7c
L
91792015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9180
9181 * Makefile.in (top_srcdir): New.
9182 * configure: Regenerated.
9183
599bd15c
GB
91842015-04-02 Gary Benson <gbenson@redhat.com>
9185
9186 * NEWS: Announce the new default sysroot of "target:".
9187
fed040c6
GB
91882015-04-02 Gary Benson <gbenson@redhat.com>
9189
9190 * main.c (captured_main): Set gdb_sysroot to "target:"
9191 if not otherwise set.
9192
64c0b5de
GB
91932015-04-02 Gary Benson <gbenson@redhat.com>
9194
9195 * exec.c (exec_file_attach): Support "target:" filenames.
9196
b57fbfba
GB
91972015-04-02 Gary Benson <gbenson@redhat.com>
9198
9199 * solib.c (solib_find): Strip "target:" prefix from sysroot
9200 if accessing local files.
9201
97a41605
GB
92022015-04-02 Gary Benson <gbenson@redhat.com>
9203
9204 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9205 checks and error messages.
9206
2938e6cf
GB
92072015-04-02 Gary Benson <gbenson@redhat.com>
9208
9209 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9210 (remote_filename_p): Remove declaration.
9211 (remote_bfd_open): Likewise.
9212 * remote.c (remote_bfd_iovec_open): Remove function.
9213 (remote_bfd_iovec_close): Likewise.
9214 (remote_bfd_iovec_pread): Likewise.
9215 (remote_bfd_iovec_stat): Likewise.
9216 (remote_filename_p): Likewise.
9217 (remote_bfd_open): Likewise.
9218 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9219 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9220 (gdb_bfd_open_maybe_remote): Remove function.
9221 (symfile_bfd_open): Replace remote filename check with
9222 target filename check.
9223 (reread_symbols): Use gdb_bfd_open.
9224 * build-id.c (gdbcore.h): New include.
9225 (build_id_to_debug_bfd): Use gdb_bfd_open.
9226 * infcmd.c (attach_command_post_wait): Remove remote filename
9227 check.
9228 * solib.c (solib_find): Replace remote-specific handling with
9229 target-specific handling. Update comments where necessary.
9230 (solib_bfd_open): Replace remote-specific handling with
9231 target-specific handling.
9232 (gdb_sysroot_changed): New function.
9233 (_initialize_solib): Call the above when gdb_sysroot changes.
9234 * windows-tdep.c (gdbcore.h): New include.
9235 (windows_xfer_shared_library): Use gdb_bfd_open.
9236
f08e97fe
GB
92372015-04-02 Gary Benson <gbenson@redhat.com>
9238
9239 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9240 (is_target_filename): New declaration.
9241 (gdb_bfd_has_target_filename): Likewise.
9242 (gdb_bfd_open): Update documentation comment.
9243 * gdb_bfd.c (target.h): New include.
9244 (gdb/fileio.h): Likewise.
9245 (is_target_filename): New function.
9246 (gdb_bfd_has_target_filename): Likewise.
9247 (fileio_errno_to_host): Likewise.
9248 (gdb_bfd_iovec_fileio_open): Likewise.
9249 (gdb_bfd_iovec_fileio_pread): Likewise.
9250 (gdb_bfd_iovec_fileio_close): Likewise.
9251 (gdb_bfd_iovec_fileio_fstat): Likewise.
9252 (gdb_bfd_open): Use target fileio to access paths prefixed
9253 with "target:" where necessary.
9254
4bd7dc42
GB
92552015-04-02 Gary Benson <gbenson@redhat.com>
9256
9257 * target.h (struct target_ops) <to_filesystem_is_local>:
9258 New field.
9259 (target_filesystem_is_local): New macro.
9260 * target-delegates.c: Regenerate.
9261 * remote.c (remote_filesystem_is_local): New function.
9262 (init_remote_ops): Initialize to_filesystem_is_local.
9263
9b15c1f0
GB
92642015-04-02 Gary Benson <gbenson@redhat.com>
9265
9266 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9267 (target_fileio_fstat): New declaration.
9268 * target.c (target_fileio_fstat): New function.
9269 * inf-child.c (inf_child_fileio_fstat): Likewise.
9270 (inf_child_target): Initialize to_fileio_fstat.
9271 * remote.c (init_remote_ops): Likewise.
9272
d11916aa
SS
92732015-04-01 Sasha Smundak <asmundak@google.com>
9274
9275 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9276 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9277 (py-unwind.o): New recipe.
9278 * NEWS: mention Python frame unwinding.
9279 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9280 gdb/unwinder.py and gdb/command/unwinder.py
9281 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9282 list.
9283 (execute_unwinders): New function.
9284 * python/lib/gdb/command/unwinders.py: New file.
9285 * python/lib/gdb/unwinder.py: New file.
9286 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9287 (objfpy_dealloc): Decrement frame_unwinders reference count.
9288 (objfpy_initialize): Create frame_unwinders list.
9289 (objfpy_get_frame_unwinders): New function.
9290 (objfpy_set_frame_unwinders): Ditto.
9291 (objfile_getset): Add frame_unwinders attribute to Objfile.
9292 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9293 (pspy_dealloc): Decrement frame_unwinders reference count.
9294 (pspy_initialize): Create frame_unwinders list.
9295 (pspy_get_frame_unwinders): New function.
9296 (pspy_set_frame_unwinders): Ditto.
9297 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9298 * python/py-unwind.c: New file.
9299 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9300 (objpy_get_frame_unwinders): New prototype.
9301 (gdbpy_initialize_unwind): New prototype.
9302 * python/python.c (gdbpy_apply_type_printers): Call
9303 gdbpy_initialize_unwind.
9304
6b403daa
PA
93052015-04-01 Pedro Alves <palves@redhat.com>
9306
9307 * infrun.c (resume): Check currently_stepping after clearing
9308 stepped_breakpoint, not before.
9309
1176ecec
PA
93102015-04-01 Pedro Alves <palves@redhat.com>
9311
9312 * infrun.c (print_target_wait_results): Print all the ptid
9313 elements.
9314
de1fe8c8
PA
93152015-04-01 Pedro Alves <palves@redhat.com>
9316
9317 * infrun.c (keep_going): Also discard cleanups if inserting
9318 breakpoints fails.
9319
e6f5c25b
PA
93202015-04-01 Pedro Alves <palves@redhat.com>
9321
9322 * infrun.c (wait_for_inferior): Install the
9323 finish_thread_state_cleanup cleanup across the whole function, not
9324 just around handle_inferior_event.
9325
1ac806b8
PA
93262015-04-01 Pedro Alves <palves@redhat.com>
9327
9328 * infrun.c (resume) <step past permanent breakpoint>: Use
9329 do_target_resume.
9330
2ee52aa4
PA
93312015-04-01 Pedro Alves <palves@redhat.com>
9332
9333 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9334
5445da1b
PMR
93352015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9336
9337 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9338
4eec2deb
PA
93392015-04-01 Pedro Alves <palves@redhat.com>
9340
9341 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9342 list if it was marked exited.
9343
afa59b79
L
93442015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9345
9346 * configure: Regenerated.
9347
df8411da
SDJ
93482015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9349 Jan Kratochvil <jan.kratochvil@redhat.com>
9350 Oleg Nesterov <oleg@redhat.com>
9351
9352 PR corefiles/16092
9353 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9354 New enum identifying the various options of the coredump_filter
9355 file.
9356 (struct smaps_vmflags): New struct.
9357 (use_coredump_filter): New variable.
9358 (decode_vmflags): New function.
9359 (mapping_is_anonymous_p): Likewise.
9360 (dump_mapping_p): Likewise.
9361 (linux_find_memory_regions_full): New variables
9362 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9363 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9364 parsing of its information. Implement memory mapping filtering
9365 based on its contents.
9366 (show_use_coredump_filter): New function.
9367 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9368 * NEWS: Mention the possibility of using the
9369 '/proc/PID/coredump_filter' file when generating a corefile.
9370 Mention new command 'set use-coredump-filter'.
9371
416f679e
SDJ
93722015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9373
9374 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9375 read_memory_unsigned_integer.
9376
711a72d3
L
93772015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9378
9379 * Makefile.in (ZLIB): New.
9380 (ZLIBINC): Likewise.
9381 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9382 (CLIBS): Add $(ZLIB).
9383 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9384 Add -lz to LIBS.
9385 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9386 * top.c (print_gdb_configuration): Remove --with-zlib and
9387 --without-zlib.
9388 * config.in: Regenerated.
9389 * configure: Likewise.
9390
d33279b3
AT
93912015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9392
9393 * NEWS: Mention info os cpus support.
9394 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9395 (struct osdata_type): Add cpus entry, reorder the entries in
9396 alphabetical order.
9397
71b30f27
MK
93982015-03-31 Matthias Klose <doko@ubuntu.com>
9399
9400 * compile/compile.c (compile_to_object): Allow triplets with or
9401 without vendor set.
9402
13ce9222
DE
94032015-03-30 Doug Evans <dje@google.com>
9404
9405 PR c++/18141
9406 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9407 klass in VAR_DOMAIN.
9408
20f796c9
GB
94092015-03-30 Gary Benson <gbenson@redhat.com>
9410
9411 * remote.c (remote_mourn_1): Remove function. Update all callers
9412 to use remote_mourn.
9413 (extended_remote_mourn_1): Remove function. Update all callers
9414 to use extended_remote_mourn.
9415 (extended_remote_attach_1): Remove function. Update all callers
9416 to use extended_remote_attach.
9417
49d45b20
JB
94182015-03-28 James Bowman <james.bowman@ftdichip.com>
9419
9420 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9421 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9422 (ALLDEPFILES): Add ft32-tdep.c.
9423 * configure.tgt: Add FT32 entry.
9424 * ft32-tdep.c: New file, FT32 target-dependent code.
9425 * ft32-tdep.h: New file, FT32 target-dependent code.
9426
1c4ff080
JK
94272015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9428
9429 Revert:
9430 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9431 Code cleanup.
9432 * printcmd.c (print_command_1): Move expr variable scope.
9433
79498702
JB
94342015-03-27 Joel Brobecker <brobecker@adacore.com>
9435
9436 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9437
ce9c0ca1
AK
94382015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9439
9440 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9441 sections.
9442
429e1e81
JB
94432015-03-26 Joel Brobecker <brobecker@adacore.com>
9444
9445 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9446 exception raised while parsing the probe arguments.
9447 Force parsing to be done using the C language parser.
9448 * expression.h (parse_expression_with_language): Declare.
9449 * parse.c (parse_expression_with_language): New function.
9450
4593441b
JT
94512015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9452
9453 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9454
ff908ebf
AW
94552015-03-26 Andy Wingo <wingo@igalia.com>
9456
9457 PR symtab/18148
9458 * dwarf2read.c (struct partial_die_info): Add has_const_value
9459 member.
9460 (add_partial_symbol): Don't punt on symbols that have const_value
9461 attributes.
9462 (read_partial_die): Detect DW_AT_const_value.
9463
f30d5c78
JK
94642015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 Code cleanup.
9467 * printcmd.c (print_command_1): Move expr variable scope.
9468
8d89f51a
JK
94692015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9470
9471 Code cleanup.
9472 * printcmd.c (validate_format): Make the parameter cmdname const.
9473
0b736949
DB
94742015-03-26 Don Breazeal <donb@codesourcery.com>
9475
9476 * remote.c (_initialize_remote): Update comment.
9477
20d35291
PA
94782015-03-26 Pedro Alves <palves@redhat.com>
9479 Jon TURNEY <jon.turney@dronecode.org.uk>
9480
9481 * coffread.c (coff_symfile_read): When constructing the name of an
9482 import stub symbol from import symbol for amd64, only skip the
9483 char after _imp_ if the target is underscored (like i386) and the
9484 char is indeed the target's leading char.
9485
6a3753b3
PA
94862015-03-25 Pedro Alves <palves@redhat.com>
9487
9488 * target.h <to_async>: Replace 'callback' and 'context' parameters
9489 with boolean 'enable' parameter.
9490 (target_async): Replace CALLBACK and CONTEXT parameters with
9491 boolean ENABLE parameter.
9492 * inf-loop.c (inferior_event_handler): Adjust.
9493 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9494 (linux_nat_resume): Adjust.
9495 (async_client_callback, async_client_context): Delete.
9496 (handle_target_event): Call inferior_event_handler directly.
9497 (linux_nat_async): Replace 'callback' and 'context' parameters
9498 with boolean 'enable' parameter. Adjust. Remove references to
9499 async_client_callback and async_client_context.
9500 (linux_nat_close): Adjust.
9501 * record-btrace.c (record_btrace_async): Replace 'callback' and
9502 'context' parameters with boolean 'enable' parameter. Adjust.
9503 (record_btrace_resume): Adjust.
9504 * record-full.c (record_full_async): Replace 'callback' and
9505 'context' parameters with boolean 'enable' parameter. Adjust.
9506 (record_full_resume, record_full_core_resume): Adjust.
9507 * remote.c (struct remote_state) <async_client_callback,
9508 async_client_context>: Delete fields.
9509 (remote_start_remote, extended_remote_attach_1, remote_resume)
9510 (extended_remote_create_inferior): Adjust.
9511 (remote_async_serial_handler): Call inferior_event_handler
9512 directly.
9513 (remote_async): Replace 'callback' and 'context' parameters with
9514 boolean 'enable' parameter. Adjust.
9515 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9516 Adjust.
9517 * target-delegates.c: Regenerate.
9518
1c4b552b
GB
95192015-03-25 Gary Benson <gbenson@redhat.com>
9520 Pedro Alves <palves@redhat.com>
9521
9522 * target.c (fileio_ft_t): New typedef, define object vector.
9523 (fileio_fhandles): New static variable.
9524 (is_closed_fileio_fh): New macro.
9525 (lowest_closed_fd): New static variable.
9526 (acquire_fileio_fd): New function.
9527 (release_fileio_fd): Likewise.
9528 (fileio_fd_to_fh): New macro.
9529 (target_fileio_open): Wrap the file descriptor on success.
9530 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9531 (target_fileio_pread): Likewise.
9532 (target_fileio_close): Likewise.
9533
a25d8bf9
PA
95342015-03-24 Pedro Alves <palves@redhat.com>
9535
9536 * thread.c (thread_apply_all_command): Take exited threads into
9537 account.
9538
44a1ee51
PA
95392015-03-24 Pedro Alves <palves@redhat.com>
9540
9541 * infrun.c (resume, proceed): Mention
9542 switch_back_to_stepped_thread, not switch_back_to_stepping.
9543
f3263aa4
PA
95442015-03-24 Pedro Alves <palves@redhat.com>
9545
9546 * infrun.c (user_visible_resume_ptid): Rewrite going from
9547 most-locked to unlocked instead of the opposite. Move comment ...
9548 * infrun.h (user_visible_resume_ptid): ... here.
9549
2bf6fb9d
PA
95502015-03-24 Pedro Alves <palves@redhat.com>
9551
9552 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9553 to resume the event lwp. Use the lwp's ptid instead of the passed
9554 in (maybe wildcard) ptid.
9555 (stop_wait_callback): Tweak debug log output.
9556 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9557 TRAP_TRACE.
9558 (linux_nat_filter_event): In debug output, distinguish a
9559 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9560 before trying to resume the lwp.
9561
283a9958
JB
95622015-03-24 Joel Brobecker <brobecker@adacore.com>
9563
9564 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9565 pointer indirection.
9566 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9567 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9568
93a8e227
JB
95692015-03-24 Joel Brobecker <brobecker@adacore.com>
9570
9571 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9572 Renames DYN_ATTR_DATA_LOCATION.
9573 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9574 DYN_ATTR_DATA_LOCATION.
9575 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9576 instead of DYN_ATTR_DATA_LOCATION.
9577
64ce06e4
PA
95782015-03-24 Pedro Alves <palves@redhat.com>
9579
9580 * breakpoint.c (until_break_command): Adjust call to proceed.
9581 * gdbthread.h (struct thread_control_state) <stepping_command>:
9582 New field.
9583 * infcall.c (run_inferior_call): Adjust call to proceed.
9584 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9585 Adjust calls to proceed.
9586 (set_step_frame): Set the current thread's step_start_function
9587 here.
9588 (step_once): Adjust calls to proceed.
9589 (jump_command, signal_command, until_next_command)
9590 (finish_backward, finish_forward, proceed_after_attach_callback)
9591 (attach_command_post_wait): Adjust calls to proceed.
9592 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9593 (do_target_resume): New function, factored out from ...
9594 (resume): ... here. Remove 'step' parameter. Instead, check
9595 currently_stepping to determine whether the thread should be
9596 single-stepped.
9597 (proceed): Remove 'step' parameter and don't set the thread's
9598 step_start_function here. Adjust call to 'resume'.
9599 (handle_inferior_event): Adjust calls to 'resume'.
9600 (switch_back_to_stepped_thread): Use do_target_resume instead of
9601 'resume'.
9602 (keep_going): Adjust calls to 'resume'.
9603 * infrun.h (proceed): Remove 'step' parameter.
9604 (resume): Likewise.
9605 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9606 'resume'.
9607 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9608
856e7dd6
PA
96092015-03-24 Pedro Alves <palves@redhat.com>
9610
9611 * gdbthread.h (struct thread_control_state) <stepping_command>:
9612 New field.
9613 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9614 the thread's stepping_command field.
9615 * infrun.c (resume): Check the thread's stepping_command flag to
9616 determine which threads should be resumed. Rename 'entry_step'
9617 local to user_step.
9618 (clear_proceed_status_thread): Clear 'stepping_command'.
9619 (schedlock_applies): Change parameter type to struct thread_info
9620 pointer. Adjust.
9621 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9622 (switch_back_to_stepped_thread): Adjust calls to
9623 'schedlock_applies'.
9624 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9625
885eeb5b
PA
96262015-03-24 Pedro Alves <palves@redhat.com>
9627
9628 * infrun.c (step_start_function): Delete and ...
9629 * gdbthread.h (struct thread_control_state) <step_start_function>:
9630 ... now a field here.
9631 * infrun.c (clear_proceed_status_thread): Clear the thread's
9632 step_start_function.
9633 (proceed, process_event_stop_test, print_stop_event): Adjust.
9634
3333f03a
PA
96352015-03-24 Pedro Alves <palves@redhat.com>
9636
9637 * infrun.c (proceed): No longer handle negative step.
9638
369f6daa
GB
96392015-03-24 Gary Benson <gbenson@redhat.com>
9640
9641 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9642 (x86_linux_prepare_to_resume): Likewise.
9643 * x86-linux-nat.c (x86_linux_new_thread):
9644 Moved to nat/x86-linux.c.
9645 (x86_linux_prepare_to_resume): Likewise.
9646 * nat/x86-linux.c (x86_linux_new_thread): New function.
9647 (x86_linux_prepare_to_resume): Likewise.
9648
8e5d4070
GB
96492015-03-24 Gary Benson <gbenson@redhat.com>
9650
9651 * nat/x86-linux-dregs.h: New file.
9652 * nat/x86-linux-dregs.c: Likewise.
9653 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9654 (x86-linux-dregs.o): New rule.
9655 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9656 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9657 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9658 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9659 (x86_linux_dr_get): Likewise.
9660 (x86_linux_dr_set): Likewise.
9661 (x86_linux_dr_get_addr): Likewise.
9662 (x86_linux_dr_get_control): Likewise.
9663 (x86_linux_dr_get_status): Likewise.
9664 (update_debug_registers_callback): Likewise.
9665 (x86_linux_dr_set_control): Likewise.
9666 (x86_linux_dr_set_addr): Likewise.
9667 (x86_linux_update_debug_registers): Likewise.
9668
2b95d440
GB
96692015-03-24 Gary Benson <gbenson@redhat.com>
9670
9671 * x86-linux-nat.c (x86_linux_update_debug_registers):
9672 New function, factored out from...
9673 (x86_linux_prepare_to_resume): ...this.
9674
14b0bc68
GB
96752015-03-24 Gary Benson <gbenson@redhat.com>
9676
9677 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9678 (x86_linux_dr_set): Likewise.
9679 (x86_linux_dr_get_addr): Likewise.
9680 (x86_linux_dr_get_control): Likewise.
9681 (x86_linux_dr_get_status): Likewise.
9682 (update_debug_registers_callback): Likewise.
9683 (x86_linux_dr_set_control): Likewise.
9684 (x86_linux_dr_set_addr): Likewise.
9685 (x86_linux_prepare_to_resume): Likewise.
9686 (x86_linux_new_thread): Likewise.
9687
5dfe6ca8
GB
96882015-03-24 Gary Benson <gbenson@redhat.com>
9689
9690 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9691 (x86_linux_new_thread): Rename argument.
9692
4b134ca1
GB
96932015-03-24 Gary Benson <gbenson@redhat.com>
9694
9695 * nat/x86-linux.h: New file.
9696 * nat/x86-linux.c: Likewise.
9697 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9698 (x86-linux.o): New rule.
9699 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9700 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9701 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9702 (lwp_set_arch_private_info): New declaration.
9703 (lwp_arch_private_info): Likewise.
9704 * linux-nat.c (lwp_set_arch_private_info): New function.
9705 (lwp_arch_private_info): Likewise.
9706 * x86-linux-nat.c: Include nat/x86-linux.h.
9707 (arch_lwp_info): Removed structure.
9708 (update_debug_registers_callback):
9709 Use lwp_set_debug_registers_changed.
9710 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9711 and lwp_set_debug_registers_changed.
9712 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9713
cff068da
GB
97142015-03-24 Gary Benson <gbenson@redhat.com>
9715
9716 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9717 (lwp_is_stopped): Likewise.
9718 (lwp_stop_reason): Likewise.
9719 * linux-nat.c (ptid_of_lwp): New function.
9720 (lwp_is_stopped): Likewise.
9721 (lwp_is_stopped_by_watchpoint): Likewise.
9722 * x86-linux-nat.c (update_debug_registers_callback):
9723 Use lwp_is_stopped.
9724 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9725 lwp_stop_reason.
9726
b2f7c7e8
GB
97272015-03-24 Gary Benson <gbenson@redhat.com>
9728
9729 * linux-nat.h (linux_stop_lwp): Move declaration to...
9730 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9731
6d4ee8c6
GB
97322015-03-24 Gary Benson <gbenson@redhat.com>
9733
9734 * linux-nat.h: Include nat/linux-nat.h.
9735 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9736 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9737 (iterate_over_lwps_ftype): New typedef.
9738 (iterate_over_lwps): New declaration.
9739 * linux-nat.h (iterate_over_lwps): Update comment. Use
9740 iterate_over_lwps_ftype. Update callback return value check.
9741
70a0bb6b
GB
97422015-03-24 Gary Benson <gbenson@redhat.com>
9743
9744 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9745 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9746
7b669087
GB
97472015-03-24 Gary Benson <gbenson@redhat.com>
9748
9749 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9750 * linux-nat.c (current_lwp_ptid): New function.
9751 * x86-linux-nat.c: Include nat/linux-nat.h.
9752 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9753 (x86_linux_dr_get_control): Likewise.
9754 (x86_linux_dr_get_status): Likewise.
9755 (x86_linux_dr_set_control): Likewise.
9756 (x86_linux_dr_set_addr): Likewise.
9757
15630549
AT
97582015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9759
9760 PR breakpoints/16466
9761 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9762
8a4506c0
JB
97632015-03-23 Joel Brobecker <brobecker@adacore.com>
9764
9765 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9766 * ser-unix.c (hardwire_setparity): Likewise.
9767
236af5e3
YG
97682015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9769
9770 * NEWS: Mention set/show serial parity command.
9771 * monitor.c (monitor_open): Call serial_setparity.
9772 * remote.c (remote_open_1): Likewise.
9773 * ser-base.c (ser_base_serparity): New function.
9774 * ser-base.h (ser_base_setparity): Add declaration.
9775 * ser-go32.c (dos_ops): Set "setparity" field.
9776 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9777 state.Parity.
9778 (ser_windows_setparity): New function.
9779 (hardwire_ops): Add ser_windows_setparity.
9780 (tty_ops): Add NULL for setparity field.
9781 (pipe_ops): Add ser_base_setparity.
9782 (tcp_ops): Likewise.
9783 * ser-pipe.c (pipe_ops): Likewise.
9784 * ser-tcp.c (tcp_ops): Likewise.
9785 * ser-unix.c (hardwire_setparity): Add declaration.
9786 (hardwire_raw): Don't reset PARENB flag.
9787 (hardwire_setparity): New function.
9788 (hardwire_ops): Add hardwire_setparity.
9789 * serial.c (serial_setparity): New function.
9790 (serial_parity): New global.
9791 (parity_none, parity_odd, parity_even, parity_enums, parity):
9792 New static globals.
9793 (set_parity): New function.
9794 (_initialize_serial): Add set/show serial parity commands.
9795 * serial.h (GDBPARITY_NONE): Define.
9796 (GDBPARITY_ODD): Define.
9797 (GDBPARITY_EVEN): Define.
9798 (serial_setparity) Add declaration.
9799 (struct serial_ops): Add setparity field.
9800 * target.h (serial_parity): Add declaration.
9801
32b40af9
KS
98022015-03-23 Keith Seitz <keiths@redhat.com>
9803
9804 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9805
693dca06
KS
98062015-03-23 Keith Seitz <keiths@redhat.com>
9807
9808 * breakpoint.c (parse_breakpoint_sals): Use
9809 linespec_lexer_lex_keyword to ascertain if the user specified
9810 a NULL location.
9811 * linespec.c [IF_KEYWORD_INDEX]: Define.
9812 (linespec_lexer_lex_keyword): Export.
9813 (struct ls_parser) <keyword_ok>: Remove.
9814 A keyword is only a keyword if not followed by another keyword.
9815 (linespec_lexer_lex_one): Remove keyword_ok handling.
9816 Add comment explaining why the parsing stream is not advanced
9817 when a keyword is seen.
9818 (parse_linespec): Remove parser->keyword_ok.
9819 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9820
7e993ebf
KS
98212015-03-23 Keith Seitz <keiths@redhat.com>
9822
9823 PR gdb/18021
9824 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9825 if we find a static method with DW_AT_vtable_elem_location.
9826
b1a0f704
EZ
98272015-03-21 Eli Zaretskii <eliz@gnu.org>
9828
9829 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9830 before the second loop, to avoid undefined behavior. Reported by
9831 Anton Blanchard <anton@samba.org>.
9832
d9823cbb
KB
98332015-03-20 Keven Boell <keven.boell@intel.com>
9834
9835 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9836 data_location usage to linked list.
9837 (resolve_dynamic_type_internal): Adapt data_location to
9838 linked list.
9839 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9840 (copy_type_recursive, copy_type): Add copy of linked list.
9841 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9842 (struct dynamic_prop_list): New struct.
9843 * dwarf2read.c (set_die_type): Set data_location data.
9844
2e7bf1d7
PA
98452015-03-20 Pedro Alves <palves@redhat.com>
9846
9847 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9848 inner block and make it const.
9849 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9850
7a26bd4d
PA
98512015-03-20 Pedro Alves <palves@redhat.com>
9852
9853 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9854 * breakpoint.h (set_breakpoint_condition): Update declaration.
9855
cd46431b
PA
98562015-03-20 Pedro Alves <palves@redhat.com>
9857
9858 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9859
e28566f7
PA
98602015-03-20 Pedro Alves <palves@redhat.com>
9861
9862 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9863
f6fc92f6
PA
98642015-03-20 Pedro Alves <palves@redhat.com>
9865
9866 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9867
c32ed3ef
PA
98682015-03-20 Pedro Alves <palves@redhat.com>
9869
9870 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9871 (nto_init_solib_absolute_prefix): Likewise.
9872
53e78085
PA
98732015-03-20 Pedro Alves <palves@redhat.com>
9874
9875 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9876 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9877
bc23328c
JK
98782015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9879
9880 * config/djgpp/README: Remove gdb.hp.
9881
e8ffc436
YQ
98822015-03-20 Yao Qi <yao.qi@linaro.org>
9883
9884 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9885 set_gdbarch_cannot_step_breakpoint.
9886
23f238d3
PA
98872015-03-19 Pedro Alves <palves@redhat.com>
9888
9889 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9890 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9891 instead call perror_with_name.
9892 (check_ptrace_stopped_lwp_gone): New function.
9893 (linux_resume_one_lwp): Reimplement as wrapper around
9894 linux_resume_one_lwp_throw that swallows errors if the LWP is
9895 gone.
9896 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9897 swallows errors if the LWP is gone. Use
9898 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9899
eb54c8bf
PA
99002015-03-19 Pedro Alves <palves@redhat.com>
9901
9902 * linux-nat.c (status_callback): Return early if the LWP has no
9903 status pending.
9904
b90fc188
PA
99052015-03-19 Pedro Alves <palves@redhat.com>
9906
9907 * linux-nat.c (select_event_lwp_callback): Update comment to no
9908 longer mention SIGTRAP.
9909
670f82d4
TG
99102015-03-18 Tristan Gingold <gingold@adacore.com>
9911
72f4393d
L
9912 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9913 redirection code to ...
9914 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9915 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9916
464b0089
GB
99172015-03-18 Gary Benson <gbenson@redhat.com>
9918
9919 (remote_protocol_features): Remove the "vFile:fstat" feature.
9920 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9921
f68f11b7
YQ
99222015-03-11 Yao Qi <yao.qi@linaro.org>
9923
9924 PR tdep/18107
9925 * aarch64-linux-tdep.c: Include xml-syscall.h
9926 (aarch64_linux_get_syscall_number): New function.
9927 (aarch64_linux_init_abi): Call
9928 set_gdbarch_get_syscall_number.
9929 * syscalls/aarch64-linux.xml: New file.
9930
393bd0c0
YG
99312015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9932
9933 * ser-base.h (ser_base_setstopbits): Change second argument name
9934 from "rate" to "num".
9935
7f3647e2
GB
99362015-03-17 Gary Benson <gbenson@redhat.com>
9937 Luke Allardyce <lukeallardyce@gmail.com>
9938
9939 PR gdb/18131
9940 * common/common-remote-fileio.h (sys/stat.h): New include.
9941 (stuct stat): Remove forward declaration.
9942
3ce5b6e2
JB
99432015-03-16 John Baldwin <jhb@FreeBSD.org>
9944
9945 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9946 before writing core register notes.
9947
d053f6be
YZ
99482015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9949 Pedro Alves <palves@redhat.com>
9950
9951 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9952 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9953 (tgoto): Wrap with extern "C".
9954
b1a921c8
PA
99552015-03-16 Pedro Alves <palves@redhat.com>
9956 Yuanhui Zhang <asmwarrior@gmail.com>
9957
9958 * stub-termcap.c (tputs): Change prototype.
9959
876d1cd7
YZ
99602015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9961 Pedro Alves <palves@redhat.com>
9962
9963 * windows-nat.c (struct thread_info_struct): Rename to ...
9964 (struct windows_thread_info_struct): ... this.
9965 (thread_info): Rename to ...
9966 (windows_thread_info): ... this.
9967 All users updated.
9968
0800b440
JK
99692015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9970 Pedro Alves <palves@redhat.com>
9971
9972 * NEWS: New Removed targets and native configurations.
9973
99742015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9975
9976 Remove HPUX.
9977 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9978 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9979 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9980 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9981 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9982 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9983 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9984 hppa-hpux-tdep.c.
9985 * config/ia64/hpux.mh: Remove file.
9986 * config/pa/hpux.mh: Remove file.
9987 * configure: Rebuilt.
9988 * configure.ac (dlgetmodinfo, somread.o): Remove.
9989 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9990 (ia64-*-hpux*): Remove its float format exception.
9991 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9992 * hppa-hpux-nat.c: Remove file.
9993 * hppa-hpux-tdep.c: Remove file.
9994 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9995 Move them here from hppa-tdep.h
9996 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9997 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9998 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9999 Move them to hppa-tdep.c.
10000 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10001 declarations.
10002 * ia64-hpux-nat.c: Remove file.
10003 * ia64-hpux-tdep.c: Remove file.
10004 * ia64-hpux-tdep.h: Remove file.
10005 * inf-ttrace.c: Remove file.
10006 * inf-ttrace.h: Remove file.
10007 * solib-ia64-hpux.c: Remove file.
10008 * solib-ia64-hpux.h: Remove file.
10009 * solib-pa64.c: Remove file.
10010 * solib-pa64.h: Remove file.
10011 * solib-som.c: Remove file.
10012 * solib-som.h: Remove file.
10013 * somread.c: Remove file.
10014
25268153
JB
100152015-03-13 John Baldwin <jhb@FreeBSD.org>
10016
10017 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10018 * config.in: Regenerate.
10019 * configure: Regenerate.
10020 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10021 define.
25268153
JB
10022 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10023 enumerate memory regions if present.
10024
773eacf5
JB
100252015-03-13 John Baldwin <jhb@FreeBSD.org>
10026
10027 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10028 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10029 expressions.
10030 (i386fbsd_sigtramp_p): Likewise.
10031
01b6bdb0
JB
100322015-03-12 John Baldwin <jhb@FreeBSD.org>
10033
10034 * MAINTAINERS (Write After Approval): Add John Baldwin.
10035
811a659a
GB
100362015-03-12 Gary Benson <gbenson@redhat.com>
10037
10038 * solib.c (_initialize_solib): Make "set/show sysroot" use
10039 add_setshow_optional_filename_cmd so it can be restored to
10040 empty after being set.
10041
10304ef3
SDJ
100422015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10043
10044 * Makefile.in (SFILES): New source break-catch-syscall.c.
10045 (COMMON_OBS): New object break-catch-syscall.o.
10046 * break-catch-syscall.c: New file.
10047 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10048 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10049 (struct syscall_catchpoint): Likewise.
10050 (dtor_catch_syscall): Likewise.
10051 (catch_syscall_inferior_data): Likewise.
10052 (struct catch_syscall_inferior_data): Likewise.
10053 (get_catch_syscall_inferior_data): Likewise.
10054 (catch_syscall_inferior_data_cleanup): Likewise.
10055 (insert_catch_syscall): Likewise.
10056 (remove_catch_syscall): Likewise.
10057 (breakpoint_hit_catch_syscall): Likewise.
10058 (print_it_catch_syscall): Likewise.
10059 (print_one_catch_syscall): Likewise.
10060 (print_mention_catch_syscall): Likewise.
10061 (print_recreate_catch_syscall): Likewise.
10062 (catch_syscall_breakpoint_ops): Likewise.
10063 (syscall_catchpoint_p): Likewise.
10064 (create_syscall_event_catchpoint): Likewise.
10065 (catch_syscall_split_args): Likewise.
10066 (catch_syscall_command_1): Likewise.
10067 (is_syscall_catchpoint_enabled): Likewise.
10068 (catch_syscall_enabled): Likewise.
10069 (catching_syscall_number): Likewise.
10070 (catch_syscall_completer): Likewise.
10071 (clear_syscall_counts): Likewise.
10072 (initialize_breakpoint_ops): Move initialization of syscall
10073 catchpoints to break-catch-syscall.c.
10074 (_initialize_breakpoint): Move code related to syscall catchpoints
10075 to break-catch-syscall.c.
10076
badd37ce
SDJ
100772015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10078
10079 * breakpoint.c (breakpoint_find_if): New function.
10080 * breakpoint.h (breakpoint_find_if): New prototype.
10081
0a93529c
GB
100822015-03-11 Gary Benson <gbenson@redhat.com>
10083
10084 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10085 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10086 (remote_fileio_to_host_ulong): Likewise.
10087 (remote_fileio_to_host_mode): Likewise.
10088 (remote_fileio_to_host_time): Likewise.
10089 (remote_fileio_to_host_stat): Likewise.
10090 * remote.c (PACKET_vFile_fstat): New enum value.
10091 (remote_protocol_features): Register the "vFile:fstat" feature.
10092 (remote_hostio_fstat): New function.
10093 (remote_bfd_iovec_stat): Use the above.
10094 (_initialize_remote): Register new "set/show remote
10095 hostio-fstat-packet" command.
10096 * symfile.c (separate_debug_file_exists): Update comment.
10097 * NEWS: Announce new vFile:fstat packet.
10098
791c0056
GB
100992015-03-11 Gary Benson <gbenson@redhat.com>
10100
10101 * common/common-remote-fileio.h: New file.
10102 * common/common-remote-fileio.c: Likewise.
10103 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10104 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10105 (COMMON_OBS): Add common-remote-fileio.o.
10106 (common-remote-fileio.o): New rule.
10107 * remote-fileio.h (common-remote-fileio.h): New include.
10108 * remote-fileio.c (gdb/fileio.h): Do not include.
10109 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10110 (remote_fileio_to_fio_uint): Likewise.
10111 (remote_fileio_to_fio_time): Likewise.
10112 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10113 (remote_fileio_to_fio_mode): Likewise.
10114 (remote_fileio_to_fio_ulong): Likewise.
10115 (remote_fileio_to_fio_stat): Likewise.
10116
1390d0ef
AW
101172015-03-11 Andy Wingo <wingo@igalia.com>
10118
10119 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10120 we were checking the cached type, not the cached dynamic type.
10121
84a4591a
AW
101222015-03-11 Andy Wingo <wingo@igalia.com>
10123
10124 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10125 other strings, as these are on the GC'd heap, and will be
10126 collected along with the smob.
10127
85642ba0
AW
101282015-03-11 Andy Wingo <wingo@igalia.com>
10129
10130 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10131 (objfile_functions): Bind gdbscm_objfile_progspace to
10132 objfile-progspace.
10133 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10134
92fab5a6
AW
101352015-03-11 Andy Wingo <wingo@igalia.com>
10136
10137 * guile/guile.c (_initialize_guile): Disable automatic
10138 finalization, if Guile offers us that possibility.
10139 * guile/guile.c (call_initialize_gdb_module):
10140 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10141 finalizers in appropriate places.
10142 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10143 scm_set_automatic_finalization_enabled.
10144 * configure: Regenerated.
10145
f054145e
AA
101462015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10147
10148 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10149 SAL, if possible.
10150
18396193
AA
101512015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10152
10153 * s390-linux-nat.c (struct arch_lwp_info): New.
10154 (s390_fix_watch_points): Rename to...
10155 (s390_prepare_to_resume): ...this. Skip the PER info update
10156 unless the watch points have changed.
10157 (s390_refresh_per_info, s390_new_thread): New functions.
10158 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10159 s390_fix_watch_points.
10160 (s390_remove_watchpoint): Likewise.
10161 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10162 Register s390_prepare_to_resume.
10163
9eb1356e
PA
101642015-03-09 Pedro Alves <palves@redhat.com>
10165
10166 Revert:
10167 2015-03-07 Pedro Alves <palves@redhat.com>
10168 * common/gdb_socket.h: New file.
10169 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10170 sys/socket.h.
10171 (net_open): Use union gdb_sockaddr_u.
10172
aac331e4
PA
101732015-03-07 Pedro Alves <palves@redhat.com>
10174
10175 * configure.ac (build_warnings): Move -Wmissing-prototypes
10176 -Wdeclaration-after-statement -Wmissing-parameter-type
10177 -Wold-style-declaration -Wold-style-definition to the C-specific
10178 set.
10179 * configure: Regenerate.
10180
366c75fc
PA
101812015-03-07 Pedro Alves <palves@redhat.com>
10182
10183 * common/gdb_socket.h: New file.
10184 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10185 sys/socket.h.
10186 (net_open): Use union gdb_sockaddr_u.
10187
72df25b2
PA
101882015-03-07 Pedro Alves <palves@redhat.com>
10189
10190 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10191 (exceptions_state_mc_action_iter)
10192 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10193 Don't define.
10194 [__cplusplus] (try_scope_depth): New global.
10195 [__cplusplus] (exception_try_scope_entry)
10196 (exception_try_scope_exit, gdb_exception_sliced_copy)
10197 (exception_rethrow): New functions.
10198 (throw_exception): In C++ mode, throw
10199 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10200 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10201 (throw_it): In C++ mode, use try_scope_depth.
10202 * common/common-exceptions.h [!__cplusplus]
10203 (exceptions_state_mc_action_iter)
10204 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10205 Don't declare.
10206 [__cplusplus] (exception_try_scope_entry)
10207 (exception_try_scope_exit, exception_rethrow): Declare.
10208 [__cplusplus] (struct exception_try_scope): New struct.
10209 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10210 C++ exceptions.
10211 (struct gdb_exception_RETURN_MASK_ALL)
10212 (struct gdb_exception_RETURN_MASK_ERROR)
10213 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10214
284e6217
PA
102152015-03-07 Pedro Alves <palves@redhat.com>
10216
10217 * main.c (handle_command_errors): Remove volatile qualifier from
10218 parameter.
10219
6c63c96a
PA
102202015-03-07 Pedro Alves <palves@redhat.com>
10221
10222 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10223 TRY and CATCH.
10224 * gdbtypes.c (safe_parse_type): Remove empty line.
10225 (types_deeply_equal):
10226 * guile/scm-frame.c (gdbscm_frame_name):
10227 * linux-thread-db.c (find_new_threads_once):
10228 * python/py-breakpoint.c (bppy_get_commands):
10229 * record-btrace.c (record_btrace_insert_breakpoint)
10230 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10231 (record_btrace_start_replaying): Adjust to avoid code between TRY
10232 and CATCH.
10233
492d29ea
PA
102342015-03-07 Pedro Alves <palves@redhat.com>
10235
10236 * common/common-exceptions.c (struct catcher) <exception>: No
10237 longer a pointer to volatile exception. Now an exception value.
10238 <mask>: Delete field.
10239 (exceptions_state_mc_init): Remove all parameters. Adjust.
10240 (exceptions_state_mc): No longer pop the catcher here.
10241 (exceptions_state_mc_catch): New function.
10242 (throw_exception): Adjust.
10243 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10244 all parameters.
10245 (exceptions_state_mc_catch): Declare.
10246 (TRY_CATCH): Rename to ...
10247 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10248 (CATCH, END_CATCH): New.
10249 All callers adjusted.
10250
ece957c8
TT
102512015-03-07 Tom Tromey <tromey@redhat.com>
10252
10253 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10254
7556d4a4
PA
102552015-03-07 Pedro Alves <palves@redhat.com>
10256
10257 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10258 (amd64_epilogue_frame_cache): Normal exception handling code.
10259 * break-catch-throw.c (check_status_exception_catchpoint)
10260 (re_set_exception_catchpoint): Ditto.
10261 * cli/cli-interp.c (safe_execute_command):
10262 * cli/cli-script.c (script_from_file): Ditto.
10263 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10264 Ditto.
10265 * compile/compile-object-run.c (compile_object_run): Ditto.
10266 * cp-abi.c (baseclass_offset): Ditto.
10267 * cp-valprint.c (cp_print_value): Ditto.
10268 * exceptions.c (catch_exceptions_with_msg):
10269 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10270 * frame.c (get_frame_address_in_block_if_available): Ditto.
10271 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10272 (i386_sigtramp_frame_cache): Ditto.
10273 * infcmd.c (post_create_inferior): Ditto.
10274 * linespec.c (parse_linespec, find_linespec_symbols):
10275 * p-valprint.c (pascal_object_print_value): Ditto.
10276 * parse.c (parse_expression_for_completion): Ditto.
10277 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10278 * remote.c (remote_get_noisy_reply): Ditto.
10279 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10280 * solib-svr4.c (solib_svr4_r_map): Ditto.
10281
f873665f 102822015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10283
10284 * common/common-utils.h (startswith): New inline function.
10285 All places where this logic was used updated to use the above.
10286
68901c4d
PA
102872015-03-05 Pedro Alves <palves@redhat.com>
10288
10289 PR gdb/18002
10290 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10291 after reading the breakpoint's shadow memory.
10292
2dcb2b1a
MK
102932015-03-05 Mark Kettenis <kettenis@gnu.org>
10294
10295 * hppabsd-nat.c: Remove file.
10296 * hppaobsd-nat.c: New file.
10297 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10298 hppaobsd-nat.c.
10299 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10300 hppaobsd-nat.o.
10301
527a273a
PA
103022015-03-04 Pedro Alves <palves@redhat.com>
10303
10304 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10305 (target_decr_pc_after_break): Delete declaration.
10306 * target.c (default_target_decr_pc_after_break)
10307 (target_decr_pc_after_break): Delete.
10308 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10309 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10310 * linux-thread-db.c (check_event): Likewise.
10311 * infrun.c (adjust_pc_after_break): Likewise.
10312 * darwin-nat.c (cancel_breakpoint): Likewise.
10313 * aix-thread.c (aix_thread_wait): Likewise.
10314 * target-delegates.c: Regenerate.
10315
faf09f01
PA
103162015-03-04 Pedro Alves <palves@redhat.com>
10317
10318 * linux-nat.c (save_sigtrap): Check for breakpoints before
10319 checking watchpoints.
10320 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10321 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10322 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10323 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10324 (linux_nat_stopped_by_sw_breakpoint)
10325 (linux_nat_supports_stopped_by_sw_breakpoint)
10326 (linux_nat_stopped_by_hw_breakpoint)
10327 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10328 (linux_nat_wait_1): Don't re-increment the PC if relying on
10329 SIGTRAP's siginfo->si_code.
10330 (linux_nat_add_target): Install new target methods.
10331 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10332 offset if the target already adjusted the PC.
10333 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10334 (GDB_ARCH_TRAP_BRKPT): New.
10335 (TRAP_HWBKPT): Define if not already defined.
10336
f7e6eed5
PA
103372015-03-04 Pedro Alves <palves@redhat.com>
10338
10339 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10340 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10341 Delete field.
10342 <stop_reason>: New field.
10343 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10344 (packet_set_cmd_state): New function.
10345 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10346 features.
10347 (remote_query_supported): If not disabled with the corresponding
10348 "set remote foo-packet" command, report support for the swbreak
10349 and hwbreak features.
10350 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10351 field.
10352 <stop_reason>: New field.
10353 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10354 (remote_wait_as): Adjust.
10355 (remote_stopped_by_sw_breakpoint)
10356 (remote_supports_stopped_by_sw_breakpoint)
10357 (remote_stopped_by_hw_breakpoint)
10358 (remote_supports_stopped_by_hw_breakpoint): New functions.
10359 (remote_stopped_by_watchpoint): New function.
10360 (init_remote_ops): Install them.
10361 (_initialize_remote): Register new "set/show remote
10362 swbreak-feature-packet" and "set/show remote
10363 swbreak-feature-packet" commands.
10364
9e8915c6
PA
103652015-03-04 Pedro Alves <palves@redhat.com>
10366
10367 * btrace.h: Include target/waitstatus.h.
10368 (struct btrace_thread_info) <stop_reason>: New field.
10369 * record-btrace.c (record_btrace_step_thread): Use
10370 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10371 (record_btrace_decr_pc_after_break): Delete.
10372 (record_btrace_stopped_by_sw_breakpoint)
10373 (record_btrace_supports_stopped_by_sw_breakpoint)
10374 (record_btrace_stopped_by_hw_breakpoint)
10375 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10376 (init_record_btrace_ops): Install them.
10377 * record-full.c (record_full_hw_watchpoint): Delete and replace
10378 with ...
10379 (record_full_stop_reason): ... this throughout.
10380 (record_full_exec_insn): Adjust.
10381 (record_full_wait_1): Adjust. No longer re-increment the PC.
10382 (record_full_wait_1): Adjust. Use
10383 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10384 (record_full_stopped_by_watchpoint): Adjust.
10385 (record_full_stopped_by_sw_breakpoint)
10386 (record_full_supports_stopped_by_sw_breakpoint)
10387 (record_full_supports_stopped_by_sw_breakpoint)
10388 (record_full_stopped_by_hw_breakpoint)
10389 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10390 (init_record_full_ops, init_record_full_core_ops): Install them.
10391 * record.c (record_check_stopped_by_breakpoint): New function.
10392 * record.h: Include target/waitstatus.h.
10393 (record_check_stopped_by_breakpoint): New declaration.
10394
15c66dd6
PA
103952015-03-04 Pedro Alves <palves@redhat.com>
10396
10397 enum lwp_stop_reason -> enum target_stop_reason
10398 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10399 (linux_nat_stopped_by_watchpoint, status_callback)
10400 (linux_nat_wait_1): Adjust.
10401 * linux-nat.h (enum lwp_stop_reason): Delete.
10402 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10403 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10404 * target/waitstatus.h (enum target_stop_reason): New.
10405
1cf4d951
PA
104062015-03-04 Pedro Alves <palves@redhat.com>
10407
10408 * breakpoint.c (need_moribund_for_location_type): New function.
10409 (bpstat_stop_status): Don't skipping checking moribund locations
10410 of breakpoint types which the target tell caused a stop.
10411 (program_breakpoint_here_p): New function, factored out from ...
10412 (bp_loc_is_permanent): ... this.
10413 (update_global_location_list): Don't create a moribund location if
10414 the target supports reporting stops of the type of the removed
10415 breakpoint.
10416 * breakpoint.h (program_breakpoint_here_p): New declaration.
10417 * infrun.c (adjust_pc_after_break): Return early if the target has
10418 already adjusted the PC. Add comments.
10419 (handle_signal_stop): If nothing explains a signal, and the target
10420 tells us the stop was caused by a software breakpoint, check if
10421 there's a breakpoint instruction in the memory. If so, adjust the
10422 PC before presenting the stop to the user. Otherwise, ignore the
10423 trap. If nothing explains a signal, and the target tells us the
10424 stop was caused by a hardware breakpoint, ignore the trap.
10425 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10426 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10427 to_supports_stopped_by_hw_breakpoint>: New fields.
10428 (target_stopped_by_sw_breakpoint)
10429 (target_supports_stopped_by_sw_breakpoint)
10430 (target_stopped_by_hw_breakpoint)
10431 (target_supports_stopped_by_hw_breakpoint): Define.
10432 * target-delegates.c: Regenerate.
10433
79639e11
PA
104342015-03-04 Pedro Alves <palves@redhat.com>
10435
10436 * infrun.c (follow_fork_inferior): Use the whole of the
10437 inferior_ptid and pending_follow.related_pid ptids instead of
10438 building ptids from the process components. Adjust verbose output
10439 to use target_pid_to_str.
10440 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10441 inferior_ptid and pending_follow.related_pid ptids instead of
10442 building ptids from the process components.
10443
e85e8e5e
MK
104442015-03-04 Mark Kettenis <kettenis@gnu.org>
10445
10446 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10447 (inf_ptrace_insert_fork_catchpoint): New function.
10448 (inf_ptrace_remove_fork_catchpoint): New function.
10449 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10450
87de11c0
AA
104512015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10452
10453 * s390-linux-tdep.c (s390_register_name): Return empty string
10454 instead of NULL for registers that shouldn't be visible.
10455
d851a69a
AA
104562015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10457
10458 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10459 XML file for 64-bit targets.
10460
b072f6c1
SM
104612015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10462
10463 * target.h (find_default_create_inferior): Remove declaration.
10464 (find_default_attach): Likewise.
10465
c1593e4f
PA
104662015-03-03 Pedro Alves <palves@redhat.com>
10467
10468 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10469 Use ptid_get_pid to get the overall process id when resuming all
10470 threads.
10471
90ad5e1d
PA
104722015-03-03 Pedro Alves <palves@redhat.com>
10473
10474 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10475 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10476 * inf-ptrace.c (get_ptrace_pid): New function.
10477 (inf_ptrace_resume): Use it.
10478 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10479 to the lower layer.
10480
d68e53f4
MM
104812015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10482
10483 * nat/linux-btrace.c: Include sys/utsname.h.
10484 (linux_determine_kernel_ptr_bits): New.
10485 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10486 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10487 ptr_bits.
10488
986b6601
MM
104892015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10490
10491 * btrace.c (ftrace_update_function): Treat return as tailcall for
10492 "_dl_runtime_resolve".
10493
ce0dfbea
MM
104942015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10495
10496 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10497 * btrace.c (ftrace_debug): Do not print the line range.
10498 (ftrace_skip_file, ftrace_update_lines): Remove.
10499 (ftrace_new_function): Remove lbegin and lend initialization.
10500 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10501 * record-btrace.c (btrace_compute_src_line_range): New.
10502 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10503
95e50b27
PA
105042015-03-02 Pedro Alves <palves@redhat.com>
10505
10506 * infrun.c (follow_exec): Delete all threads of the process except
10507 the event thread. Extended comments.
10508
00e474c2
JB
105092015-03-02 Joel Brobecker <brobecker@adacore.com>
10510
10511 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10512
cc7039d3
JB
105132015-03-02 Joel Brobecker <brobecker@adacore.com>
10514
10515 * utils.h: Remove <stdbool.h> #include.
10516 (producer_is_gcc): Change return type to "int".
10517 * utils.c (producer_is_gcc): Change return type to int.
10518 Return 1 instead of true, and 0 instead of false.
10519 Adjust function documentation accordingly.
10520
550bdf96
AA
105212015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10522
10523 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10524 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10525 present.
10526 (s390_linux_store_inferior_registers): Likewise.
10527 (s390_get_hwcap): Remove function. Embed its logic...
10528 (s390_read_description): ...here. Yield a target description with
10529 vector registers if applicable.
10530 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10531 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10532 "features/s390x-tevx-linux64.c".
10533 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10534 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10535 for "GNU/Linux-specific registers".
10536 (s390_dwarf_reg_r0l): New enum value.
10537 (s390_dwarf_reg_to_regnum): Support vector registers.
10538 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10539 of GPR lower halves.
10540 (regnum_is_vxr_full): New function.
10541 (s390_register_name): New function.
10542 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10543 f0-f15 and v0l-v15l.
10544 (s390_pseudo_register_type): Likewise.
10545 (s390_pseudo_register_read): Likewise.
10546 (s390_pseudo_register_write): Likewise.
10547 (s390_value_from_register): Account for the fact that values are
10548 placed left-justified in vector registers.
10549 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10550 the vector reggroup and omit them from the general reggroup.
10551 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10552 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10553 (s390_iterate_over_regset_sections): Add iterations for the two
10554 new vector regsets.
10555 (s390_core_read_description): Yield a target description with
10556 vector registers if applicable.
10557 (s390_gdbarch_init): Handle target descriptions with vector
10558 registers. Add "register_name" gdbarch method.
10559 (_initialize_s390_tdep): Call new tdesc initialization functions.
10560 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10561 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10562 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10563 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10564 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10565 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10566 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10567 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10568 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10569 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10570 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10571 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10572 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10573 (S390_NUM_REGS): Adjust value.
10574 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10575 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10576 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10577 * NEWS: Announce S/390 vector register support.
10578
446899e4
AA
105792015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10580
10581 * features/s390-tevx-linux64.xml: New file.
10582 * features/s390-vx-linux64.xml: New file.
10583 * features/s390-vx.xml: New file.
10584 * features/s390x-tevx-linux64.xml: New file.
10585 * features/s390x-vx-linux64.xml: New file.
10586 * features/Makefile (WHICH): Add s390-vx-linux64,
10587 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10588 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10589 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10590 macros.
10591 * features/s390-tevx-linux64.c: New generated file.
10592 * features/s390-vx-linux64.c: Likewise.
10593 * features/s390x-tevx-linux64.c: Likewise.
10594 * features/s390x-vx-linux64.c: Likewise.
10595 * regformats/s390-tevx-linux64.dat: Likewise.
10596 * regformats/s390-vx-linux64.dat: Likewise.
10597 * regformats/s390x-tevx-linux64.dat: Likewise.
10598 * regformats/s390x-vx-linux64.dat: Likewise.
10599
b7236fbe
DE
106002015-02-28 Doug Evans <xdje42@gmail.com>
10601
10602 * symtab.h (struct symtab) <next>: Fix comment.
10603
02e62830
SM
106042015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10605
10606 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10607 python_GdbMethods.
10608
bf36a1e7
PA
106092015-02-27 Pedro Alves <palves@redhat.com>
10610
10611 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10612
ad6aff7d
PA
106132015-02-27 Pedro Alves <palves@redhat.com>
10614
10615 * common/common-exceptions.h (exception_none): Declare.
10616 * common/common-exceptions.c (exception_none): Moved from
10617 exceptions.c.
10618 (exceptions_state_mc_init): Use exception_none.
10619 * exceptions.c (exception_none): Move to
10620 common/common-exceptions.c.
10621 * exceptions.h (exception_none): Move to
10622 common/common-exceptions.h.
10623
97c18565
PA
106242015-02-27 Pedro Alves <palves@redhat.com>
10625
10626 * main.c (catch_command_errors, catch_command_errors_const):
10627 Remove 'mask' argument. Adjust.
10628 (captured_main): Adjust callers.
10629
e992c591
PA
106302015-02-27 Pedro Alves <palves@redhat.com>
10631
10632 * python/python-internal.h: Include "extension-priv.h".
10633
64166036
PA
106342015-02-27 Pedro Alves <palves@redhat.com>
10635
10636 * breakpoint.h (enum print_stop_action): Move further up in the
10637 file.
10638
8a526fa6
PA
106392015-02-27 Pedro Alves <palves@redhat.com>
10640
10641 * gdbarch.sh: Include regcache.h.
10642 * gdbarch.h: Regenerate.
10643
0fa9c223
PA
106442015-02-27 Pedro Alves <palves@redhat.com>
10645
10646 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10647 Remove duplicate const.
10648 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10649 duplicate const.
10650
7cf99fb1
PA
106512015-02-27 Pedro Alves <palves@redhat.com>
10652
10653 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10654 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10655 * features/feature_to_c.sh: Tag the generated xml_builtin array
10656 with extern const in C++ mode.
10657
1424c16e
TT
106582015-02-27 Tom Tromey <tromey@redhat.com>
10659
10660 * minidebug.c (struct lzma_stream): Rename to ...
10661 (struct gdb_lzma_stream): ... this.
10662 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10663
10367c7c
PA
106642015-02-27 Pedro Alves <palves@redhat.com>
10665
10666 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10667 function.
10668 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10669 (mi_cmd_stack_list_variables): Use it.
10670
4180215b
PA
106712015-02-27 Pedro Alves <palves@redhat.com>
10672
10673 * x86-linux-nat.c (u_debugreg_offset): New function.
10674 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10675
2f56f7c3
PA
106762015-02-27 Pedro Alves <palves@redhat.com>
10677
10678 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10679 declaration.
10680 Include break-common.h.
10681
570dc176
TT
106822015-02-27 Tom Tromey <tromey@redhat.com>
10683 Pedro Alves <palves@redhat.com>
10684
10685 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10686 local used to iterate over enums.
10687 * completer.c (signal_completer): Likewise.
10688 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10689 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10690 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10691 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10692 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10693 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10694 * tui-wingeneral.c (tui_refresh_all): Likewise.
10695
68c14faa
PA
106962015-02-27 Pedro Alves <palves@redhat.com>
10697
10698 * target.h: Include "infrun.h".
10699
749bab01
PA
107002015-02-27 Pedro Alves <palves@redhat.com>
10701
10702 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10703
3c14e5a3
PA
107042015-02-27 Pedro Alves <palves@redhat.com>
10705
10706 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10707 (IPA_SYM): Use it.
10708 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10709
56000a98
PA
107102015-02-27 Pedro Alves <palves@redhat.com>
10711
10712 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10713 cli_mld_erase_entire_line, and make it extern "C".
10714 * common/common-defs.h (EXTERN_C): New.
10715 * completer.c (_rl_completion_prefix_display_length)
10716 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10717 out of gdb_display_match_list_1.
10718 (_rl_qsort_string_compare): Move declaration out of
10719 gdb_display_match_list_1, and make it extern "C".
10720 * defs.h (re_comp): Use EXTERN_C.
10721 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10722 and make it extern "C".
10723 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10724 and make it extern "C".
10725 (main): Move declaration out of maintenance_set_profile_cmd.
10726 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10727 EXTERN_C.
10728
bcabf420
PA
107292015-02-27 Pedro Alves <palves@redhat.com>
10730
10731 * python/python.c (GdbMethods): Rename to ...
10732 (python_GdbMethods): ... this and make extern.
10733 (GdbModuleDef): Rename to ...
10734 (python_GdbModuleDef): ... this and make extern.
10735
928dbe07
PA
107362015-02-27 Pedro Alves <palves@redhat.com>
10737
10738 * record-btrace.c (set_record_btrace_cmdlist)
10739 (show_record_btrace_cmdlist): Remove redefinitions.
10740
52059ffd
TT
107412015-02-27 Tom Tromey <tromey@redhat.com>
10742 Pedro Alves <palves@redhat.com>
10743
10744 * dwarf2-frame.c (enum cfa_how_kind, struct
10745 dwarf2_frame_state_reg_info): Move out of struct
10746 dwarf2_frame_state.
10747 * dwarf2read.c (struct tu_stats): Move out of struct
10748 dwarf2_per_objfile.
10749 (struct file_entry): Move out of struct line_header.
10750 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10751 typedef_field_list): Move out of struct field_info.
10752 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10753 Move out of struct dynamic_prop.
10754 (union type_owner, union field_location, struct field, struct
10755 range_bounds, union type_specific): Move out of struct main_type.
10756 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10757 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10758 (struct call_site_target, union call_site_parameter_u, struct
10759 call_site_parameter): Move out of struct call_site.
10760 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10761 m32c_prologue.
10762 (enum srcdest_kind): Move out of struct srcdest.
10763 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10764 * prologue-value.h (enum prologue_value_kind): Move out of struct
10765 prologue_value.
10766 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10767 gdbarch_tdep.
10768 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10769 out of struct field_info.
10770 * symfile.h (struct other_sections): Move out of struct
10771 section_addr_info.
10772 * symtab.c (struct symbol_cache_slot): Move out struct
10773 block_symbol_cache.
10774 * target-descriptions.c (enum tdesc_type_kind): Move out of
10775 typedef struct tdesc_type.
10776 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10777 struct tui_line_or_address.
10778 * value.c (enum internalvar_kind, union internalvar_data): Move
10779 out of struct internalvar.
10780 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10781 gdbarch_tdep.
10782
fe978cb0
PA
107832015-02-27 Tom Tromey <tromey@redhat.com>
10784 Pedro Alves <palves@redhat.com>
10785
10786 Rename symbols whose names are reserved C++ keywords throughout.
10787
3bc3d82a
PA
107882015-02-27 Pedro Alves <palves@redhat.com>
10789
10790 * Makefile.in (COMPILER): New, get it from autoconf.
10791 (COMPILE.pre, CC_LD): Use COMPILER.
10792 (CXX): Get from autoconf instead.
10793 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10794 * acinclude.m4: Include build-with-cxx.m4.
10795 * build-with-cxx.m4: New file.
10796 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10797 Disable -Werror by default if building in C++ mode.
10798 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10799 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10800 Run supported-warning-flags tests with the C++ compiler.
10801 Save/restore CXXFLAGS too.
10802 * configure: Regenerate.
10803
07697489
PA
108042015-02-27 Pedro Alves <palves@redhat.com>
10805
10806 * libiberty.m4: New file.
10807 * acinclude.m4: Include libiberty.m4.
10808 * configure.ac: Call libiberty_INIT.
10809 * config.in, configure: Regenerate.
10810
60abeae4
AA
108112015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10812
10813 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10814 31-bit targets, but 64-bit targets as well.
10815 (s390_gnu_triplet_regexp): New function.
10816 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10817 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10818 method.
10819
f44466fb 108202015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10821
10822 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10823 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10824 from CONTEXT_DEBUGGER.
10825
0def5aaa
DE
108262015-02-26 Doug Evans <dje@google.com>
10827
10828 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10829 CHECK_TYPEDEF.
10830 (set_type_vptr_fieldno): Ditto.
10831 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10832 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10833
77b64a49
PA
108342015-02-26 Pedro Alves <palves@redhat.com>
10835
10836 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10837 * complaints.c (vcomplaint): Pass argument FMT directly to
10838 printf-like functions instead of complaint->fmt.
10839 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10840 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10841 * compile/compile-loc2c.c (pushf, unary, binary): Add
10842 ATTRIBUTE_PRINTF.
10843 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10844 to pushf.
10845 (BINARY): Pass string literal as format string to 'binary'.
10846 * compile/compile-object-load.c (link_callbacks_einfo): Add
10847 ATTRIBUTE_PRINTF.
10848 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10849
532f44ed
PA
108502015-02-26 Pedro Alves <palves@redhat.com>
10851
10852 * windows-termcap.c: Rename to ...
10853 * stub-termcap.c: ... this. Adjust header line.
10854 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10855 windows-termcap.c.
10856 * configure: Regenerate.
10857 * configure.ac: Refer to stub-termcap.o instead of
10858 windows-termcap.o.
10859 * gdb_curses.h: Mention stub-termcap.c instead of
10860 windows-termcap.c.
10861
081a1c2c
JK
108622015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10865 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10866
2f41223f
AT
108672015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10868
10869 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10870
80c57053
JK
108712015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10874 bfd_canonicalize_symtab.
10875
cf424aef
JB
108762015-02-25 John Baldwin <jhb@FreeBSD.org>
10877
10878 * amd64fbsd-nat.c: Include sys/user.h.
10879 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10880 instead of KERN_PS_STRINGS to locate the signal trampoline.
10881 * i386fbsd-nat.c: Include sys/user.h.
10882 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10883 instead of KERN_PS_STRINGS to locate the signal trampoline.
10884 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10885 (amd64fbsd_sigtramp_p): New.
10886 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10887 longer set default values.
10888 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10889 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10890 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10891 (i386fbsd_freebsd4_sigtramp_start)
10892 (i386fbsd_freebsd4_sigtramp_middle)
10893 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10894 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10895 (i386fbsd_sigtramp_p): New.
10896 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10897 longer set default values.
10898 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10899
c5cb74ee
JB
109002015-02-25 John Baldwin <jhb@freebsd.org>
10901
10902 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10903 get_frame_register instead of frame_unwind_register_unsigned.
10904
17487d85
JK
109052015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10906
10907 PR build/18033
10908 * compile/compile-c-support.c (c_compute_program): Change // comment.
10909 * compile/compile-object-load.c (setup_sections): Change // comment.
10910
9357a9e6
JB
109112015-02-26 Joel Brobecker <brobecker@adacore.com>
10912
10913 PR build/18033:
10914 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10915
1f10ba14
PA
109162015-02-23 Pedro Alves <palves@redhat.com>
10917
10918 * remote.c (skip_to_semicolon): New function.
10919 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10920 special case the stop reasons that look like hex numbers
10921 upfront. Instead handle real register numbers after matching
10922 all the known stop reasons.
10923
96553a0c
DE
109242015-02-21 Doug Evans <dje@google.com>
10925
10926 PR c++/17976, symtab/17821
10927 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10928 is_in_anonymous. All callers updated.
10929 (find_symbol_in_baseclass): Ditto.
10930 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10931 for symbols in an anonymous namespace.
10932 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10933 DW_AT_name directly.
10934 (dwarf2_name): Convert missing namespace name to
10935 CP_ANONYMOUS_NAMESPACE_STR.
10936
2db9a427
PA
109372015-02-20 Pedro Alves <palves@redhat.com>
10938
10939 * linux-nat.c (linux_handle_extended_wait): Call
10940 thread_db_notice_clone whenever a new clone LWP is detected.
10941 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10942 functions.
10943 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10944 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10945 (linux_unstop_all_lwps): Declare.
10946 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10947 (thread_get_info_callback): Delete.
10948 (thread_from_lwp): Use td_thr_get_info and record_thread.
10949 (thread_db_attach_lwp): Delete.
10950 (thread_db_notice_clone): New function.
10951 (try_thread_db_load_1): If /proc is mounted and shows the
10952 process'es task list, walk over all LWPs and call thread_from_lwp
10953 instead of relying on td_ta_thr_iter.
10954 (attach_thread): Don't call check_thread_signals here. Split the
10955 tail part of the function (which adds the thread to the core GDB
10956 thread list) to ...
10957 (record_thread): ... this function. Call check_thread_signals
10958 here.
10959 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10960 call thread_from_lwp.
10961 (thread_db_update_thread_list): Rename to ...
10962 (thread_db_update_thread_list_org): ... this.
10963 (thread_db_update_thread_list): New function.
10964 (thread_db_find_thread_from_tid): Delete.
10965 (thread_db_get_ada_task_ptid): Simplify.
10966 * nat/linux-procfs.c: Include <sys/stat.h>.
10967 (linux_proc_task_list_dir_exists): New function.
10968 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10969
3b27ef47
PA
109702015-02-20 Pedro Alves <palves@redhat.com>
10971
10972 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10973 main LWP. Handle the case of waitpid returning 0 if we're already
10974 attached to the LWP. Don't set the LWP's last_resume_kind to
10975 resume_stop if we already knew about the LWP.
10976 (linux_nat_filter_event): Add debug logs.
10977
1cc28231
PA
109782015-02-20 Pedro Alves <palves@redhat.com>
10979
10980 * target.h (forward_target_decr_pc_after_break): Delete
10981 declaration.
10982
5c5019c2
PA
109832015-02-20 Pedro Alves <palves@redhat.com>
10984
10985 PR threads/18006
10986 * linux-thread-db.c (thread_get_info_callback): Return early if
10987 the thread's lwp id is -1.
10988
f3978e91
JB
109892015-02-20 Joel Brobecker <brobecker@adacore.com>
10990
10991 GDB 7.9 released.
10992
ffdf88ec
SE
109932015-02-19 Steve Ellcey <sellcey@imgtec.com>
10994
10995 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10996 (dtrace_get_probes) Change type of variable 'dof'.
10997
c9587f88
AT
109982015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10999
11000 PR breakpoints/16812
11001 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11002 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11003 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11004
53cf2ee0
DT
110052015-02-19 David Taylor <dtaylor@emc.com>
11006
11007 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11008
acfe0940
PP
110092015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11010
11011 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11012 function.
11013 (tui_putc): Don't call tui_handle_resize_during_io.
11014 (tui_getc): Likewise.
11015 (tui_mld_getc): Likewise.
11016 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11017 (tui_sigwinch_token): New static variable.
11018 (tui_initialize_win): Adjust documentation. Set
11019 tui_sigwinch_token.
11020 (tui_async_resize_screen): New asynchronous callback.
11021 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11022 invoke tui_async_resize_screen.
11023
f6a88844
JM
110242015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11025
11026 * configure: Regenerated.
11027 * configure.ac: Use GDB_AC_TRANSFORM.
11028 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11029 * acinclude.m4: sinclude transform.m4.
11030 * transform.m4: New file.
11031 (GDB_AC_TRANSFORM): New macro.
11032
b05e3b0d
JM
110332015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11034
11035 * NEWS: Announce the support for DTrace SDT probes.
11036
c3e3045e
JM
110372015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11038
11039 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11040 (amd64_dtrace_parse_probe_argument): New function.
11041 (amd64_dtrace_probe_is_enabled): Likewise.
11042 (amd64_dtrace_enable_probe): Likewise.
11043 (amd64_dtrace_disable_probe): Likewise.
11044 (amd64_linux_init_abi): Register the
11045 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11046 `gdbarch_dtrace_disable_probe' and
11047 `gdbarch_dtrace_probe_is_enabled' hooks.
11048 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11049 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11050 (amd64_dtrace_enable_probe_sequence): Likewise.
11051 (amd64_dtrace_disable_probe_sequence): Likewise.
11052
d4777acb
JM
110532015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11054
11055 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11056 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11057 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11058 handle ELF files.
11059 * Makefile.in (SFILES): dtrace-probe.c added.
11060 * configure: Regenerate.
11061 * dtrace-probe.c: New file.
11062 (SHT_SUNW_dof): New constant.
11063 (dtrace_probe_type): New enum.
11064 (dtrace_probe_arg): New struct.
11065 (dtrace_probe_arg_s): New typedef.
11066 (struct dtrace_probe_enabler): New struct.
11067 (dtrace_probe_enabler_s): New typedef.
11068 (dtrace_probe): New struct.
11069 (dtrace_probe_is_linespec): New function.
11070 (dtrace_dof_sect_type): New enum.
11071 (dtrace_dof_dofh_ident): Likewise.
11072 (dtrace_dof_encoding): Likewise.
11073 (DTRACE_DOF_ENCODE_LSB): Likewise.
11074 (DTRACE_DOF_ENCODE_MSB): Likewise.
11075 (dtrace_dof_hdr): New struct.
11076 (dtrace_dof_sect): Likewise.
11077 (dtrace_dof_provider): Likewise.
11078 (dtrace_dof_probe): Likewise.
11079 (DOF_UINT): New macro.
11080 (DTRACE_DOF_PTR): Likewise.
11081 (DTRACE_DOF_SECT): Likewise.
11082 (dtrace_process_dof_probe): New function.
11083 (dtrace_process_dof): Likewise.
11084 (dtrace_build_arg_exprs): Likewise.
11085 (dtrace_get_arg): Likewise.
11086 (dtrace_get_probes): Likewise.
11087 (dtrace_get_probe_argument_count): Likewise.
11088 (dtrace_can_evaluate_probe_arguments): Likewise.
11089 (dtrace_evaluate_probe_argument): Likewise.
11090 (dtrace_compile_to_ax): Likewise.
11091 (dtrace_probe_destroy): Likewise.
11092 (dtrace_gen_info_probes_table_header): Likewise.
11093 (dtrace_gen_info_probes_table_values): Likewise.
11094 (dtrace_probe_is_enabled): Likewise.
11095 (dtrace_probe_ops): New variable.
11096 (info_probes_dtrace_command): New function.
11097 (_initialize_dtrace_probe): Likewise.
11098 (dtrace_type_name): Likewise.
11099
8b367e17
JM
111002015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11101
11102 * gdbarch.sh (dtrace_parse_probe_argument): New.
11103 (dtrace_probe_is_enabled): Likewise.
11104 (dtrace_enable_probe): Likewise.
11105 (dtrace_disable_probe): Likewise.
11106 * gdbarch.c: Regenerate.
11107 * gdbarch.h: Regenerate.
11108
9aca2ff8
JM
111092015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11110
11111 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11112 stap_probe_ops for `enable_probe' and `disable_probe'.
11113 * probe.c (enable_probes_command): New function.
11114 (disable_probes_command): Likewise.
11115 (_initialize_probe): Define the cli commands `enable probe' and
11116 `disable probe'.
11117 (parse_probe_linespec): New function.
11118 (info_probes_for_ops): Use parse_probe_linespec.
11119 * probe.h (probe_ops): New hooks `enable_probe' and
11120 `disable_probe'.
11121
03e98035
JM
111222015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11123
11124 * probe.c (compute_probe_arg): Moved from stap-probe.c
11125 (compile_probe_arg): Likewise.
11126 (probe_funcs): Likewise.
11127 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11128 (compile_probe_arg): Likewise.
11129 (probe_funcs): Likewise.
11130
6f9b8491
JM
111312015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11132
11133 * probe.c (print_ui_out_not_applicables): New function.
11134 (exists_probe_with_pops): Likewise.
11135 (info_probes_for_ops): Do not include column headers for probe
11136 types for which no probe has been actually found on any object.
11137 Also invoke `print_ui_out_not_applicables' in order to match the
11138 column rows with the header when probes of several types are
11139 listed.
11140 Print the "Type" column.
11141 * probe.h (probe_ops): Added a new probe operation `type_name'.
11142 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11143 (stap_type_name): New function.
11144
69efdff1
PP
111452015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11146
11147 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11148 (key_is_command_char): Delete.
11149
f8e5e23e
PA
111502015-02-17 Pedro Alves <palves@redhat.com>
11151
11152 * tui/tui.c (tui_enable): Resize windows before anything
11153 might show a window.
11154
9f2e0721
MO
111552015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11156
11157 PR gdb/17984
11158 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11159 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11160 call.
11161 * aarch64-tdep.h (tdesc_aarch64): Declare.
11162
171e6b1c
MW
111632015-02-12 Mark Wielaard <mjw@redhat.com>
11164
11165 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11166
d5ff0482
DE
111672015-02-13 Doug Evans <dje@google.com>
11168
11169 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11170 anonymous_namespace to is_in_anonymous for consistency with the rest
11171 of the file.
11172 (cp_lookup_bare_symbol): Fix typo in comment.
11173 (cp_search_static_and_baseclasses): Ditto.
11174 (search_symbol_list): Use vertical space in comment better.
11175 (reset_directive_searched): Ditto. Fix typo.
11176 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11177
9f04ac5f
YQ
111782015-02-13 Yao Qi <yao.qi@arm.com>
11179
11180 * MAINTAINERS: Update my email address.
11181
013d0319
DE
111822015-02-12 Doug Evans <dje@google.com>
11183
b615dd20 11184 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11185
9a7e538e
DE
111862015-02-12 Doug Evans <dje@google.com>
11187
11188 * completer.c (complete_line): Remove incorrect comment.
11189
e1fcd575
JK
111902015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11191
11192 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11193 (py_print_frame): Use RETURN_MASK_ERROR.
11194
b99bf4e3
JK
111952015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11196
11197 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11198 function comment. Wrap all function that can throw in cleanups.
11199 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11200 cleanups.
11201
800eb1ce
JK
112022015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11203
11204 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11205 Remove the error label.
11206
34019068
JK
112072015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11208
11209 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11210 with goto first, indent the former else codepath left. Put variable
11211 'elided' to a new inner block.
11212
8d4a54e2
JK
112132015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11214
11215 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11216
18ad82c1
PA
112172015-02-11 Pedro Alves <palves@redhat.com>
11218
11219 * xcoffread.c (within_function): Delete.
11220
e36122e9
TT
112212015-02-11 Tom Tromey <tromey@redhat.com>
11222 Pedro Alves <palves@redhat.com>
11223
11224 * breakpoint.c (base_breakpoint_ops): Delete.
11225 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11226 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11227 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11228 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11229 * python/py-arch.c (arch_object_type): Make extern.
11230 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11231 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11232 * python/py-cmd.c (cmdpy_object_type): Make extern.
11233 * python/py-continueevent.c (continue_event_object_type)
11234 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11235 parameter. Update all callers.
11236 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11237 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11238 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11239 * python/py-function.c (fnpy_object_type): Make extern.
11240 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11241 * python/py-infevents.c (call_pre_event_object_type)
11242 (inferior_call_post_event_object_type).
11243 (memory_changed_event_object_type): Make extern.
11244 * python/py-infthread.c (thread_object_type): Make extern.
11245 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11246 * python/py-linetable.c (linetable_entry_object_type)
11247 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11248 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11249 (clear_objfiles_event_object_type): Make extern.
11250 * python/py-objfile.c (objfile_object_type): Make extern.
11251 * python/py-param.c (parmpy_object_type): Make extern.
11252 * python/py-progspace.c (pspace_object_type): Make extern.
11253 * python/py-signalevent.c (signal_event_object_type): Make extern.
11254 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11255 * python/py-type.c (type_object_type, field_object_type)
11256 (type_iterator_object_type): Make extern.
11257 * python/python.c (python_extension_script_ops)
11258 (python_extension_ops): Make extern.
11259 * stap-probe.c (stap_probe_ops): Make extern.
11260
0703599a
PA
112612015-02-11 Pedro Alves <pedro@codesourcery.com>
11262
11263 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11264 because the event thread is not the current thread.
11265
eaaf76ab
DE
112662015-02-11 Doug Evans <xdje42@gmail.com>
11267
11268 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11269 been initialized yet, return NULL.
11270
e7d52ed3
DE
112712015-02-11 Doug Evans <dje@google.com>
11272
11273 * symfile.h (new_symfile_objfile): Delete.
11274 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11275 All callers updated.
11276
fc6b1256
PP
112772015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11278
11279 * tui/tui-io.c (tui_handle_resize_during_io): Call
11280 tui_update_gdb_sizes() after resizing the screen.
11281 * tui/tui.c (tui_enable): Resize the terminal before
11282 calling tui_update_gdb_sizes().
11283
d9080678
PP
112842015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11285
11286 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11287 line before printing a newline.
11288
9f615e3a
MW
112892015-02-11 Mark Wielaard <mjw@redhat.com>
11290
11291 * utils.c (producer_is_gcc): Return true or false.
11292
d9080678 112932015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11294
11295 * utils.h (producer_is_gcc): Change return type to bool. Add major
11296 argument.
11297 * utils.c (producer_is_gcc): Likewise.
11298 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11299 * dwarf2read.c (check_producer): Likewise.
11300
b052c4fb
PA
113012015-02-10 Pedro Alves <palves@redhat.com>
11302
11303 * infrun.c (displaced_step_fixup): Switch to the event thread
11304 before calling gdbarch_displaced_step_fixup.
11305
3ac240d4
AT
113062015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11307
11308 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11309
c1cc6152
SM
113102015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11311
11312 * ada-varobj.c (ada_name_of_child): Constify parent.
11313 (ada_path_expr_of_child): Same.
11314 (ada_value_of_child): Same.
11315 (ada_type_of_child): Same.
11316 * c-varobj.c (c_is_path_expr_parent): Same.
11317 (c_describe_child): Same.
11318 (c_name_of_child): Same.
11319 (c_value_of_child): Same.
11320 (c_type_of_child): Same.
11321 (cplus_number_of_children): Same.
11322 (cplus_describe_child): Constify var.
11323 (cplus_name_of_child): Constify parent.
11324 (cplus_value_of_child): Same.
11325 (cplus_type_of_child): Same.
11326 * jv-varobj.c (java_name_of_child): Same.
11327 (java_value_of_child): Same.
11328 (java_type_of_child): Same.
11329 * varobj.c (value_of_child): Same.
11330 (varobj_default_is_path_expr_parent): Constify var, parent and return
11331 value.
11332 (varobj_get_path_expr): Constify var, modify path_expr through
11333 mutable_var.
11334 (install_new_value): Constify parent.
11335 (value_of_child): Constify parent.
11336 * varobj.h (struct varobj): Constify parent.
11337 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11338 type_of_child.
11339 (varobj_get_path_expr): Constify var.
11340 (varobj_get_path_expr_parent): Constify var and return value.
11341
c1ee9414
LM
113422015-02-10 Luis Machado <lgustavo@codesourcery.com>
11343
11344 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11345 (arm_prologue_this_id): Move PC and SP limit checks to
11346 arm_prologue_unwind_stop_reason.
11347 (arm_prologue_unwind) <stop_reason> : Set to
11348 arm_prologue_unwind_stop_reason.
11349
f7de9aab
MW
113502015-02-09 Mark Wielaard <mjw@redhat.com>
11351
11352 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11353 DW_LANG_Fortran08 as language_fortran.
11354
0b24eb2d
SDJ
113552015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11356
11357 PR remote/17946
11358 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11359 of pointer against char.
11360
a2c2acaf
MW
113612015-02-09 Mark Wielaard <mjw@redhat.com>
11362
11363 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11364 (c_type_print_modifier): Likewise.
11365 * dwarf2read.c (read_tag_atomic_type): New function.
11366 (read_type_die_1): Handle DW_TAG_atomic_type.
11367 * gdbtypes.c (make_atomic_type): New function.
11368 (recursive_dump_type): Handle TYPE_ATOMIC.
11369 * gdbtypes.h (enum type_flag_values): Renumber.
11370 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11371 (TYPE_ATOMIC): New macro.
11372 (make_atomic_type): Declare.
11373
31fd9caa
MM
113742015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11375
11376 * btrace.c (ftrace_find_call): Skip gaps.
11377 (ftrace_new_function): Initialize level.
11378 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11379 (ftrace_new_switch): Update
11380 level computation.
11381 (ftrace_new_gap): New.
11382 (ftrace_update_function): Create new function after gap.
11383 (btrace_compute_ftrace_bts): Create gap on error.
11384 (btrace_stitch_bts): Update parameters. Clear trace if it
11385 becomes empty.
11386 (btrace_stitch_trace): Update parameters. Update callers.
11387 (btrace_clear): Reset the number of gaps.
11388 (btrace_insn_get): Return NULL if the iterator points to a gap.
11389 (btrace_insn_number): Return zero if the iterator points to a gap.
11390 (btrace_insn_end): Allow gaps at the end.
11391 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11392 (btrace_find_insn_by_number): Assert that the found iterator does
11393 not point to a gap.
11394 (btrace_call_next, btrace_call_prev): Assert that the last function
11395 is not a gap.
11396 * btrace.h (btrace_bts_error): New.
11397 (btrace_function): Update comment.
11398 (btrace_function) <insn, insn_offset, number>: Update comment.
11399 (btrace_function) <errcode>: New.
11400 (btrace_thread_info) <ngaps>: New.
11401 (btrace_thread_info) <replay>: Update comment.
11402 (btrace_insn_get): Update comment.
11403 * record-btrace.c (btrace_ui_out_decode_error): New.
11404 (record_btrace_info): Print number of gaps.
11405 (btrace_insn_history, btrace_call_history): Call
11406 btrace_ui_out_decode_error for gaps.
11407 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11408
afb778a2
MM
114092015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11412 * nat/linux-btrace.c: (btrace_this_cpu): New.
11413 (cpu_supports_bts): Call btrace_this_cpu.
11414 (intel_supports_bts): Add cpu parameter.
11415
7d5c24b3
MM
114162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11417
11418 * btrace.h (btrace_insn_class): New.
11419 (btrace_insn) <size, iclass>: New.
11420 * btrace.c (ftrace_find_call): Update parameters. Update users.
11421 Use instruction classification.
11422 (ftrace_new_return): Update parameters. Update users.
11423 (ftrace_update_function): Update parameters. Update users. Use
11424 instruction classification.
11425 (ftrace_update_insns): Update parameters. Update users.
11426 (ftrace_classify_insn): New.
11427 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11428 TRY_CATCH around call to gdb_insn_length.
11429
76235df1
MM
114302015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11431
11432 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11433 Update parameters. Update users.
11434
d33501a5
MM
114352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11436
11437 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11438 (btrace_conf_bts_attributes): New.
11439 (btrace_conf_children): Add attributes.
11440 * common/btrace-common.h (btrace_config_bts): New.
11441 (btrace_config)<bts>: New.
11442 (btrace_config): Update comment.
11443 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11444 Use config.
11445 * features/btrace-conf.dtd: Increment version. Add size
11446 attribute to bts element.
11447 * record-btrace.c (set_record_btrace_bts_cmdlist,
11448 show_record_btrace_bts_cmdlist): New.
11449 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11450 record_btrace_print_conf, cmd_set_record_btrace_bts,
11451 cmd_show_record_btrace_bts): New.
11452 (record_btrace_info): Call record_btrace_print_conf.
11453 (_initialize_record_btrace): Add commands.
11454 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11455 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11456 (btrace_sync_conf): Synchronize bts size.
11457 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11458 * NEWS: Announce new commands and new packets.
11459
f4abbc16
MM
114602015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11461
11462 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11463 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11464 (x86_linux_btrace_conf): New.
11465 (x86_linux_create_target): Initialize to_btrace_conf.
11466 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11467 Check format. Split into this and ...
11468 (linux_enable_bts): ... this.
11469 (linux_btrace_conf): New.
11470 (perf_event_skip_record): Renamed into ...
11471 (perf_event_skip_bts_record): ... this. Updated users.
11472 (linux_disable_btrace): Split into this and ...
11473 (linux_disable_bts): ... this.
11474 (linux_read_btrace): Check format.
11475 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11476 (linux_btrace_conf): New.
11477 (btrace_target_info)<ptid>: Moved.
11478 (btrace_target_info)<conf>: New.
11479 (btrace_target_info): Split into this and ...
11480 (btrace_tinfo_bts): ... this. Updated users.
11481 * btrace.c (btrace_enable): Update parameters.
11482 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11483 (btrace_conf_children, btrace_conf_attributes)
11484 (btrace_conf_elements): New.
11485 * btrace.h (btrace_enable): Update parameters.
11486 (btrace_conf, parse_xml_btrace_conf): New.
11487 * common/btrace-common.h (btrace_config): New.
11488 * feature/btrace-conf.dtd: New.
11489 * record-btrace.c (record_btrace_conf): New.
11490 (record_btrace_cmdlist): New.
11491 (record_btrace_enable_warn, record_btrace_open): Pass
11492 &record_btrace_conf.
11493 (record_btrace_info): Print recording format.
11494 (cmd_record_btrace_bts_start): New.
11495 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11496 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11497 Add "record bts" alias command.
11498 * remote.c (remote_state)<btrace_config>: New.
11499 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11500 (remote_protocol_features): Add qXfer:btrace-conf:read.
11501 (remote_open_1): Call remote_btrace_reset.
11502 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11503 (btrace_target_info)<conf>: New.
11504 (btrace_sync_conf, btrace_read_config): New.
11505 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11506 btrace_read_conf.
11507 (remote_btrace_conf): New.
11508 (init_remote_ops): Initialize to_btrace_conf.
11509 (_initialize_remote): Add qXfer:btrace-conf packet.
11510 * target.c (target_enable_btrace): Update parameters.
11511 (target_btrace_conf): New.
11512 * target.h (target_enable_btrace): Update parameters.
11513 (target_btrace_conf): New.
11514 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11515 (target_ops)<to_enable_btrace>: Update parameters and comment.
11516 (target_ops)<to_btrace_conf>: New.
11517 * target-delegates: Regenerate.
11518 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11519 (target_debug_print_const_struct_btrace_target_info_p): New.
11520 * NEWS: Announce new command and new packet.
11521
aadf7753
MM
115222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11523
11524 * nat/linux-btrace.h (perf_event_buffer): New.
11525 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11526 <bts>: ... this.
11527 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11528 (perf_event_buffer_size, perf_event_buffer_begin)
11529 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11530 Updated users.
11531 (perf_event_new_data): New.
11532
043c3577
MM
115332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11534
11535 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11536 * record-btrace.c (record_btrace_open): Remove call to
11537 target_supports_btrace.
11538 * remote.c (remote_supports_btrace): Update parameters.
11539 * target.c (target_supports_btrace): Update parameters.
11540 * target.h (to_supports_btrace, target_supports_btrace): Update
11541 parameters.
11542 * target-delegates.c: Regenerate.
11543 * target-debug.h (target_debug_print_enum_btrace_format): New.
11544 * nat/linux-btrace.c
11545 (kernel_supports_btrace): Rename into ...
11546 (kernel_supports_bts): ... this. Update users. Update warning text.
11547 (intel_supports_btrace): Rename into ...
11548 (intel_supports_bts): ... this. Update users.
11549 (cpu_supports_btrace): Rename into ...
11550 (cpu_supports_bts): ... this. Update users.
11551 (linux_supports_btrace): Update parameters. Split into this and ...
11552 (linux_supports_bts): ... this.
11553 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11554
734b0e4b
MM
115552015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11556
11557 * Makefile.in (SFILES): Add common/btrace-common.c.
11558 (COMMON_OBS): Add common/btrace-common.o.
11559 (btrace-common.o): Add build rules.
11560 * btrace.c (parse_xml_btrace): Update parameters.
11561 (parse_xml_btrace_block): Set format field.
11562 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11563 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11564 (btrace_compute_ftrace): Split into this and...
11565 (btrace_compute_ftrace_bts): ...this.
11566 (btrace_stitch_trace): Split into this and...
11567 (btrace_stitch_bts): ...this.
11568 * btrace.h (parse_xml_btrace): Update parameters.
11569 (make_cleanup_btrace_data): New.
11570 * common/btrace-common.c: New.
11571 * common/btrace-common.h: Include common-defs.h.
11572 (btrace_block_s): Update comment.
11573 (btrace_format): New.
11574 (btrace_format_string): New.
11575 (btrace_data_bts): New.
11576 (btrace_data): New.
11577 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11578 * remote.c (remote_read_btrace): Update parameters.
11579 * target.c (target_read_btrace): Update parameters.
11580 * target.h (target_read_btrace): Update parameters.
11581 (target_ops)<to_read_btrace>: Update parameters.
11582 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11583 * target-delegates.c: Regenerate.
11584 * target-debug (target_debug_print_struct_btrace_data_p): New.
11585 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11586 (linux_read_bts): ...this.
11587 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11588
bd2e0e9e
DE
115892015-02-06 Doug Evans <dje@google.com>
11590
11591 * remote-m32r-sdi.c: Include symfile.h.
11592
f176c4b5
DE
115932015-02-06 Doug Evans <dje@google.com>
11594
11595 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11596 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11597 to here.
11598
d6c146e9
PA
115992015-02-06 Pedro Alves <palves@redhat.com>
11600
11601 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11602
b9d61307
SM
116032015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11604
11605 PR gdb/15678
11606 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11607 (enable_count_command): Check args for NULL value.
11608
e9fbd043
DE
116092015-02-05 Doug Evans <xdje42@gmail.com>
11610
11611 * guile/scm-frame.c: Fix spelling errors in a comment.
11612
881d5d5d
JK
116132015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11614
11615 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11616 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11617 return type.
11618
20ba1ce6
PA
116192015-02-04 Pedro Alves <palves@redhat.com>
11620
11621 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11622 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11623 returns true.
11624 (resume_stopped_resumed_lwps): Don't check whether the thread is
11625 marked as executing.
11626 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11627
f962539a
AA
116282015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11629
11630 * regset.h (struct regset): Add flags field.
11631 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11632 * corelow.c (get_core_register_section): Add warning if the size
11633 exceeds the requested size and the regset does not have the
11634 REGSET_VARIABLE_SIZE flag set.
11635 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11636 flag.
11637 * armbsd-tdep.c (armbsd_gregset): Likewise.
11638 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11639 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11640 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11641 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11642
dde9acd6
AA
116432015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11644
11645 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11646 For ".reg-xstate", explicitly specify the requested section size
11647 via X86_XSTATE_SIZE instead of just 0 on input and
11648 X86_XSTATE_MAX_SIZE on output.
11649 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11650 Likewise.
11651
1528345d
AA
116522015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11653
11654 PR corefiles/17808:
11655 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11656 function type, particularly its SIZE parameter.
11657 * gdbarch.h: Regenerate.
11658 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11659 actual against required size using ">=" instead of "==".
11660 (amd64_collect_fpregset): Likewise.
11661 * i386-tdep.c (i386_supply_gregset): Likewise.
11662 (i386_collect_gregset): Likewise.
11663 (i386_supply_fpregset): Likewise.
11664 (i386_collect_fpregset): Likewise.
11665 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11666 (mips_fill_gregset_wrapper): Likewise.
11667 (mips_supply_fpregset_wrapper): Likewise.
11668 (mips_fill_fpregset_wrapper): Likewise.
11669 (mips64_supply_gregset_wrapper): Likewise.
11670 (mips64_fill_gregset_wrapper): Likewise.
11671 (mips64_supply_fpregset_wrapper): Likewise.
11672 (mips64_fill_fpregset_wrapper): Likewise.
11673 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11674 (am33_supply_fpregset_method): Likewise.
11675 (am33_collect_gregset_method): Likewise.
11676 (am33_collect_fpregset_method): Likewise.
11677
518be979
DE
116782015-02-04 Doug Evans <dje@google.com>
11679 Pedro Alves <palves@redhat.com>
11680 Eli Zaretskii <eliz@gnu.org>
11681
11682 PR tui/17810
11683 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11684 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11685 * tui/tui-file.c: #include tui/tui-command.h.
11686 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11687 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11688 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11689
80bd5fab
PA
116902015-02-04 Pedro Alves <palves@redhat.com>
11691
11692 Fix build breakage.
11693 * event-loop.c (gdb_do_one_event): Add default switch case.
11694
a7606d80
JK
116952015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 Filter out inferior gcc option -fpreprocessed.
11698 * compile/compile.c (filter_args): New function.
11699 (get_args): Use it.
11700
70b66289
PA
117012015-02-03 Pedro Alves <palves@redhat.com>
11702
11703 * event-loop.c: Don't declare nor define a queue type for
11704 gdb_event_p.
11705 (event_queue): Delete.
11706 (create_event, create_file_event, gdb_event_xfree)
11707 (initialize_event_loop, process_event): Delete.
11708 (gdb_do_one_event): Return as soon as one event is handled.
11709 (handle_file_event): Change prototype. Used the passed in
11710 file_handler pointer and ready_mask instead of looping over all
11711 file handlers.
11712 (gdb_wait_for_event): Update the poll/select timeouts before
11713 blocking. Run event handlers directly instead of queueing events.
11714 Return as soon as one event is handled.
11715 (struct async_event_handler_data): Delete.
11716 (invoke_async_event_handler): Delete.
11717 (check_async_event_handlers): Change return type to int. Run
11718 event handlers directly instead of queueing events. Return as
11719 soon as one event is handled.
11720 (handle_timer_event): Delete.
11721 (update_wait_timeout): New function, factored out from
11722 poll_timers.
11723 (poll_timers): Reimplement.
11724 * event-loop.h (initialize_event_loop): Delete declaration.
11725 * top.c (gdb_init): Don't call initialize_event_loop.
11726
b7d2e916
PA
117272015-02-03 Pedro Alves <palves@redhat.com>
11728
11729 * event-loop.c (clear_async_event_handler): New function.
11730 * event-loop.h (clear_async_event_handler): New declaration.
11731 * record-btrace.c (record_btrace_async): New function.
11732 (init_record_btrace_ops): Install record_btrace_async.
11733 * record-full.c (record_full_async): New function.
11734 (record_full_resume): Don't mark the async event source here.
11735 (init_record_full_ops): Install record_full_async.
11736 (record_full_core_resume): Don't mark the async event source here.
11737 (init_record_full_core_ops): Install record_full_async.
11738 * remote.c (remote_async): Mark and clear the async stop reply
11739 queue event-loop token as appropriate.
11740
d9d41e78
PA
117412015-02-03 Pedro Alves <palves@redhat.com>
11742
11743 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11744 target_is_async_p instead of target_can_async.
11745 (linux_nat_wait): Use target_is_async_p instead of
11746 target_can_async. Don't enable async here.
11747 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11748 target_is_async_p instead of target_can_async.
11749
aa3de267
SM
117502015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11751
11752 * varobj.h (lang_varobj_ops): Mention which return values need
11753 to be freed.
11754
2c811c0f
JB
117552015-02-02 Joel Brobecker <brobecker@adacore.com>
11756
11757 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11758
b1eedac9
JB
117592015-02-02 Joel Brobecker <brobecker@adacore.com>
11760
11761 PR gdb/17856:
11762 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11763 results found in the cache.
11764
66c168ae
JB
117652015-02-02 Joel Brobecker <brobecker@adacore.com>
11766
11767 PR gdb/17854:
11768 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11769 when allocating a new one.
11770
4bdc02b2
TT
117712015-02-01 Tom Tromey <tom@tromey.com>
11772
11773 * MAINTAINERS: Remove myself.
11774
ae6ae975
DE
117752015-01-31 Doug Evans <xdje42@gmail.com>
11776
11777 * dwarf2read.c (process_structure_scope): Update setting of
11778 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11779 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11780 (set_type_vptr_fieldno): New function.
11781 (internal_type_vptr_basetype): New function.
11782 (set_type_vptr_basetype): New function.
11783 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11784 TYPE_VPTR_BASETYPE.
11785 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11786 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11787 (print_cplus_stuff): ... moved here.
11788 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11789 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11790 moved to ...
11791 (struct cplus_struct_type): ... here. All uses updated.
11792 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11793 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11794 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11795 * stabsread.c (read_tilde_fields): Update setting of
11796 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11797
09e2d7c7
DE
117982015-01-31 Doug Evans <xdje42@gmail.com>
11799
11800 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11801 to self_p.
11802 (cp_print_class_member): Rename local domain to self_type.
11803 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11804 domain_type to self_type.
11805 (set_die_type) <need_gnat_info>: Handle
11806 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11807 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11808 TYPE_SPECIFIC_SELF_TYPE.
11809 * gdbtypes.c (internal_type_self_type): New function.
11810 (set_type_self_type): New function.
11811 (smash_to_memberptr_type): Rename parameter domain to self_type.
11812 Update setting of TYPE_SELF_TYPE.
11813 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11814 (smash_to_method_type): Rename parameter domain to self_type.
11815 Update setting of TYPE_SELF_TYPE.
11816 (check_stub_method): Call smash_to_method_type.
11817 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11818 (copy_type_recursive): Ditto.
11819 * gdbtypes.h (enum type_specific_kind): New value
11820 TYPE_SPECIFIC_SELF_TYPE.
11821 (struct main_type) <type_specific>: New member self_type.
11822 (struct cplus_struct_type) <fn_field.type>: Update comment.
11823 (TYPE_SELF_TYPE): Rewrite.
11824 (internal_type_self_type, set_type_self_type): Declare.
11825 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11826 self_type.
11827 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11828 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11829 TYPE_TARGET_TYPE.
11830 * stabsread.c (read_member_functions): Mark methods with
11831 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11832 TYPE_SELF_TYPE.
11833
4bfb94b8
DE
118342015-01-31 Doug Evans <xdje42@gmail.com>
11835
11836 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11837 All uses updated.
11838
5f4ce105
DE
118392015-01-31 Doug Evans <xdje42@gmail.com>
11840
11841 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11842 or unions. Return zero if union.
11843 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11844 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11845 gnuv3_get_vtable.
11846 (compute_vtable_size): Assert only passed structs.
11847 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11848
f6b3afbf
DE
118492015-01-31 Doug Evans <xdje42@gmail.com>
11850
11851 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11852 kinds.
11853
cfb069a8
GB
118542015-01-31 Gary Benson <gbenson@redhat.com>
11855 Doug Evans <dje@google.com>
11856
11857 PR cli/9007
11858 PR cli/11920
11859 PR cli/15548
11860 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11861 reached.
11862 * common/common-exceptions.h (enum errors)
11863 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11864 * completer.h (get_max_completions_reached_message): New declaration.
11865 (max_completions): Likewise.
11866 (completion_tracker_t): New typedef.
11867 (new_completion_tracker): New declaration.
11868 (make_cleanup_free_completion_tracker): Likewise.
11869 (maybe_add_completion_enum): New enum.
11870 (maybe_add_completion): New declaration.
11871 (throw_max_completions_reached_error): Likewise.
11872 * completer.c (max_completions): New global variable.
11873 (new_completion_tracker): New function.
11874 (free_completion_tracker): Likewise.
11875 (make_cleanup_free_completion_tracker): Likewise.
11876 (maybe_add_completions): Likewise.
11877 (throw_max_completions_reached_error): Likewise.
11878 (complete_line): Remove duplicates and limit result to max_completions
11879 entries.
11880 (get_max_completions_reached_message): New function.
11881 (gdb_display_match_list): Handle max_completions.
11882 (_initialize_completer): New declaration and function.
11883 * symtab.c: Include completer.h.
11884 (completion_tracker): New static variable.
11885 (completion_list_add_name): Call maybe_add_completion.
11886 (default_make_symbol_completion_list_break_on_1): Renamed from
11887 default_make_symbol_completion_list_break_on. Maintain
11888 completion_tracker across calls to completion_list_add_name.
11889 (default_make_symbol_completion_list_break_on): New function.
11890 * top.c (init_main): Set rl_completion_display_matches_hook.
11891 * tui/tui-io.c: Include completer.h.
11892 (tui_old_rl_display_matches_hook): New static global.
11893 (tui_rl_display_match_list): Notify user if max-completions reached.
11894 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11895 * NEWS (New Options): Mention set/show max-completions.
11896
e11c72c7
GB
118972015-01-31 Gary Benson <gbenson@redhat.com>
11898
11899 * symtab.c (struct add_name_data) <code>: New field.
11900 Updated comments.
11901 (add_symtab_completions): New function.
11902 (symtab_expansion_callback): Likewise.
11903 (default_make_symbol_completion_list_break_on): Set datum.code.
11904 Move minimal symbol scan before calling expand_symtabs_matching.
11905 Scan known primary symtabs for externs and statics before calling
11906 expand_symtabs_matching. Pass symtab_expansion_callback as
11907 expansion_notify argument to expand_symtabs_matching. Do not scan
11908 primary symtabs for externs and statics after calling
11909 expand_symtabs_matching.
11910
276d885b
GB
119112015-01-31 Gary Benson <gbenson@redhat.com>
11912
11913 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11914 (struct quick_symbol_functions) <expand_symtabs_matching>:
11915 New argument expansion_notify. All uses updated.
11916 (expand_symtabs_matching): New argument expansion_notify.
11917 All uses updated.
11918 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11919 Also print expansion notify.
11920 * symtab.c (expand_symtabs_matching_via_partial): Call
11921 expansion_notify whenever a partial symbol table is expanded.
11922 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11923 expansion_notify whenever a symbol table is instantiated.
11924
82083d6d
DE
119252015-01-31 Doug Evans <xdje42@gmail.com>
11926
11927 * cli-out.c: #include completer.h, readline/readline.h.
11928 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11929 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11930 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11931 * cli-out.h (cli_display_match_list): Declare.
11932 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11933 (ELLIPSIS_LEN): Ditto.
11934 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11935 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11936 (gdb_fnprint, gdb_print_filename): Ditto.
11937 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11938 (gdb_display_match_list): Ditto.
11939 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11940 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11941 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11942 (match_list_displayer): New struct.
11943 (gdb_display_match_list): Declare.
11944 * top.c (init_main): Set rl_completion_display_matches_hook.
11945 * tui/tui-io.c: #include completer.h.
11946 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11947 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11948 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11949 (tui_mld_getc, tui_mld_read_key): Ditto.
11950 (tui_rl_display_match_list): Rewrite.
11951 (tui_handle_resize_during_io): New arg for_completion. All callers
11952 updated.
11953
f57d2163
DE
119542015-01-31 Doug Evans <xdje42@gmail.com>
11955
11956 Add symbol lookup cache.
11957 * NEWS: Document new options and commands.
11958 * symtab.c (symbol_cache_key): New static global.
11959 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11960 (SYMBOL_LOOKUP_FAILED): New macro.
11961 (symbol_cache_slot_state): New enum.
11962 (block_symbol_cache): New struct.
11963 (symbol_cache): New struct.
11964 (new_symbol_cache_size, symbol_cache_size): New static globals.
11965 (hash_symbol_entry, eq_symbol_entry): New functions.
11966 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11967 (make_symbol_cache, free_symbol_cache): New functions.
11968 (get_symbol_cache, symbol_cache_cleanup): New function.
11969 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11970 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11971 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11972 (symbol_cache_flush, symbol_cache_dump): New functions.
11973 (maintenance_print_symbol_cache): New function.
11974 (maintenance_flush_symbol_cache): New function.
11975 (symbol_cache_stats): New function.
11976 (maintenance_print_symbol_cache_statistics): New function.
11977 (symtab_new_objfile_observer): New function.
11978 (symtab_free_objfile_observer): New function.
11979 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11980 (_initialize_symtab): Init symbol_cache_key. New parameter
11981 maint symbol-cache-size. New maint commands print symbol-cache,
11982 print symbol-cache-statistics, flush-symbol-cache.
11983 Install new_objfile, free_objfile observers.
11984
e700d1b2
JB
119852015-01-31 Joel Brobecker <brobecker@adacore.com>
11986
11987 PR symtab/17855
11988 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11989 to end.
11990
9f050062
DE
119912015-01-31 Doug Evans <xdje42@gmail.com>
11992
11993 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11994 * auto-load.c: #include ctype.h.
11995 (struct auto_load_pspace_info): Replace member loaded_scripts with
11996 new members loaded_script_files, loaded_script_texts.
11997 (auto_load_pspace_data_cleanup): Update.
11998 (init_loaded_scripts_info): Update.
11999 (get_auto_load_pspace_data_for_loading): Update.
12000 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12001 updated.
12002 (maybe_add_script_text): New function.
12003 (clear_section_scripts): Update.
12004 (source_script_file, execute_script_contents): New functions.
12005 (source_section_scripts): Add support for
12006 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12007 (print_scripts): New function.
12008 (auto_load_info_scripts): Also print inlined scripts.
12009 (maybe_print_unsupported_script_warning): Renamed from
12010 unsupported_script_warning_print. All callers updated.
12011 (maybe_print_script_not_found_warning): Renamed from
12012 script_not_found_warning_print. All callers updated.
12013 * extension-priv.h (struct extension_language_script_ops): New member
12014 objfile_script_executor.
12015 * extension.c (ext_lang_objfile_script_executor): New function.
12016 * extension.h (objfile_script_executor_func): New typedef.
12017 (ext_lang_objfile_script_executor): Declare.
12018 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12019 * guile/guile.c (guile_extension_script_ops): Update.
12020 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12021 * python/python.c (python_extension_script_ops): Update.
12022 (gdbpy_execute_objfile_script): New function.
12023
312809f8
EZ
120242015-01-31 Eli Zaretskii <eliz@gnu.org>
12025
12026 * tui/tui-io.c (tui_expand_tabs): New function.
12027 (tui_puts, tui_redisplay_readline): Expand TABs into the
12028 appropriate number of spaces.
12029 * tui/tui-regs.c: Include tui-io.h.
12030 (tui_register_format): Call tui_expand_tabs to expand TABs into
12031 the appropriate number of spaces.
12032 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12033
b6577aab
DE
120342015-01-30 Doug Evans <dje@google.com>
12035
12036 * NEWS: "info source" command now display producer string if present.
12037 * source.c (source_info): Print producer string if present.
12038
6da58d3e
SM
120392015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12040
12041 * varobj.c (varobj_delete): Fix comment.
12042
837ce252
SM
120432015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12044
12045 * varobj.c (create_child): Modify comment.
12046
b09e2c59
SM
120472015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12048
12049 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12050 parameter.
12051 (ada_name_of_variable): Same.
12052 (ada_path_expr_of_child): Same.
12053 (ada_value_of_variable): Same.
12054 (ada_value_is_changeable_p): Same.
12055 (ada_value_has_mutated): Same.
12056 * c-varobj.c (varobj_is_anonymous_child): Same.
12057 (c_is_path_expr_parent): Same.
12058 (c_number_of_children): Same.
12059 (c_name_of_variable): Same.
12060 (c_path_expr_of_child): Same.
12061 (get_type): Same.
12062 (c_value_of_variable): Same.
12063 (cplus_number_of_children): Same.
12064 (cplus_name_of_variable): Same.
12065 (cplus_path_expr_of_child): Same.
12066 (cplus_value_of_variable): Same.
12067 * jv-varobj.c (java_number_of_children): Same.
12068 (java_name_of_variable): Same.
12069 (java_path_expr_of_child): Same.
12070 (java_value_of_variable): Same.
12071 * varobj.c (number_of_children): Same.
12072 (name_of_variable): Same.
12073 (is_root_p): Same.
12074 (varobj_ensure_python_env): Same.
12075 (varobj_get_objname): Same.
12076 (varobj_get_expression): Same.
12077 (varobj_get_display_format): Same.
12078 (varobj_get_display_hint): Same.
12079 (varobj_has_more): Same.
12080 (varobj_get_thread_id): Same.
12081 (varobj_get_frozen): Same.
12082 (dynamic_varobj_has_child_method): Same.
12083 (varobj_get_gdb_type): Same.
12084 (is_path_expr_parent): Same.
12085 (varobj_default_is_path_expr_parent): Same.
12086 (varobj_get_language): Same.
12087 (varobj_get_attributes): Same.
12088 (varobj_is_dynamic_p): Same.
12089 (varobj_get_child_range): Same.
12090 (varobj_value_has_mutated): Same.
12091 (varobj_get_value_type): Same.
12092 (number_of_children): Same.
12093 (name_of_variable): Same.
12094 (check_scope): Same.
12095 (varobj_editable_p): Same.
12096 (varobj_value_is_changeable_p): Same.
12097 (varobj_floating_p): Same.
12098 (varobj_default_value_is_changeable_p): Same.
12099
2568868e
SM
121002015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12101
12102 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12103 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12104 child->path_expr.
12105 (cplus_path_expr_of_child): Same.
12106
ca83fa81
SM
121072015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12108
12109 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12110 result.
12111 (mi_cmd_var_info_expression): Same.
12112 * varobj.c (varobj_get_expression): Mention in the comment that
12113 the result must by freed by the caller.
12114
afa269ae
SM
121152015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12116
12117 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12118 varobj_get_type.
12119 (varobj_update_one): Same.
12120 * varobj.c (update_type_if_necessary): Free curr_type_str and
12121 new_type_str.
12122 (varobj_get_type): Specify in comment that the result needs to be
12123 freed by the caller.
12124
cd366ee8
DE
121252015-01-29 Doug Evans <dje@google.com>
12126
12127 PR symtab/17890
12128 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12129
38360086
MW
121302015-01-25 Mark Wielaard <mjw@redhat.com>
12131
12132 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12133 * utils.c (producer_is_gcc_ge_4): Likewise.
12134 (producer_is_gcc): New function.
12135 * utils.h (producer_is_gcc): New declaration.
12136
df25ebbd
JB
121372015-01-29 Joel Brobecker <brobecker@adacore.com>
12138
12139 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12140 kind.
12141 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12142 parameter by "addr_stack" parameter.
12143 (resolve_dynamic_range): Replace "addr" parameter by
12144 "stack_addr" parameter. Update function documentation.
12145 Update code accordingly.
12146 (resolve_dynamic_array, resolve_dynamic_union)
12147 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12148 (resolve_dynamic_type): Update code, following the changes made
12149 to resolve_dynamic_type_internal's interface.
12150 * dwarf2loc.h (struct property_addr_info): New.
12151 (dwarf2_evaluate_property): Replace "address" parameter
12152 by "addr_stack" parameter. Adjust function documentation.
12153 (struct dwarf2_offset_baton): New.
12154 (struct dwarf2_property_baton): Update documentation of
12155 field "referenced_type" to be more general. New field
12156 "offset_info" in union data field.
12157 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12158 parameter by "addr_stack" parameter. Adjust code accordingly.
12159 Add support for PROP_ADDR_OFFSET properties.
12160 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12161 DW_AT_data_member_location attributes as well. Use case
12162 statements instead of if/else condition.
12163
4a0ca9ec
JB
121642015-01-29 Joel Brobecker <brobecker@adacore.com>
12165
12166 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12167 Return zero if PARENT_VALUE is NULL and parent_type's
12168 range type is dynamic.
12169
ddb87a81
JB
121702015-01-29 Joel Brobecker <brobecker@adacore.com>
12171
12172 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12173 nonzero if the type's subtype is dynamic.
12174 (resolve_dynamic_range): Also resolve the range's subtype.
12175
3d7ad9b4 121762015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12177
3d7ad9b4 12178 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12179 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12180
3a8b707a
DE
121812015-01-27 Doug Evans <dje@google.com>
12182
12183 * NEWS: Mention gdb.Objfile.username.
12184 * python/py-objfile.c (objfpy_get_username): New function.
12185 (objfile_getset): Add "username".
12186
d35b90fb
MW
121872015-01-24 Mark Wielaard <mjw@redhat.com>
12188
12189 * stack.c (return_command): Markup warning message with _.
12190
734ae125
DE
121912015-01-24 Doug Evans <xdje42@gmail.com>
12192
12193 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12194
527f3840
JK
121952015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12196
12197 Fix 100x slowdown regression on DWZ files.
12198 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12199 (struct line_header): Add offset and offset_in_dwz.
12200 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12201 (free_line_header_voidp): New declaration.
12202 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12203 functions.
12204 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12205 (handle_DW_AT_stmt_list): Use line_header_hash.
12206 (free_line_header_voidp): New function.
12207 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12208 (dwarf_decode_lines): New parameter decode_mapping, use it.
12209 (dwarf2_free_objfile): Free line_header_hash.
12210
f7e5394d
SM
122112015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12212
12213 PR gdb/17416
12214 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12215 value_ind.
12216
743649fd
MW
122172015-01-15 Mark Wielaard <mjw@redhat.com>
12218
12219 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12220 DW_AT_noreturn.
12221 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12222 calling_convention an 8 bit bit field.
12223 (TYPE_NO_RETURN): New macro.
12224 * infcmd.c (finish_command): Query if function does not return
12225 normally.
12226 * stack.c (return_command): Likewise.
12227
198297aa
PA
122282015-01-23 Pedro Alves <palves@redhat.com>
12229
12230 * linux-nat.c (linux_is_async_p): New macro.
12231 (linux_nat_is_async_p):
12232 (linux_nat_terminal_inferior): Check whether the target can async
12233 instead of whether it is already async.
12234 (linux_nat_terminal_ours): Don't check whether the target is
12235 async.
12236 (linux_async_pipe): Use linux_is_async_p.
12237
253828f1
JK
122382015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12239
12240 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12241 '-ascending'.
12242 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12243 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12244 Sort tp_array using tp_array_compar.
12245 (_initialize_thread): Extend thread_apply_all_command help.
12246
f0e8c4c5
JK
122472015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12248
12249 * corelow.c (core_open): Call also thread_command.
12250 * gdbthread.h (thread_command): New prototype moved from ...
12251 * thread.c (thread_command): ... here.
12252 (thread_command): Make it global.
12253
03b79603
PA
122542015-01-22 Pedro Alves <palves@redhat.com>
12255
12256 * configure.ac [*mingw32*]: Check $curses_found instead of
12257 $prefer_curses.
12258 * configure: Regenerate.
12259 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12260 HAVE_NCURSES_NCURSES_H checks.
12261
6b8a872f
EZ
122622015-01-22 Eli Zaretskii <eliz@gnu.org>
12263
bbbbffbb 12264 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12265 fails with the 1st arg NULL, try again with "unknown". Don't test
12266 the "cup" capability: it isn't supported by the Windows port of
12267 ncurses, but the Windows console driver is still capable of
12268 supporting TUI.
12269
4b62a76e
JK
122702015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12273
82a864f9
EZ
122742015-01-22 Eli Zaretskii <eliz@gnu.org>
12275
12276 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12277 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12278 reason that "make TAGS" is broken.
12279
b35018fd
CG
122802015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12281
12282 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12283 and check additional store instructions.
12284
ffbc4646
WW
122852015-01-21 Wei-cheng Wang <cole945@gmail.com>
12286
12287 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12288
ddeca1df
WW
122892015-01-21 Wei-cheng Wang <cole945@gmail.com>
12290
12291 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12292 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12293 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12294 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12295 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12296 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12297 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12298 ppc_process_record_op19, ppc_process_record_op31,
12299 ppc_process_record_op59, ppc_process_record_op60,
12300 ppc_process_record_op63): Likewise.
12301
049bb5de
JB
123022015-01-20 Joel Brobecker <brobecker@adacore.com>
12303
12304 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12305 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12306 strerror.
12307
42b87c63 123082015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12309
12310 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12311 ppc_process_record_op31, ppc_process_record_op59,
12312 ppc_process_record_op60, ppc_process_record_op63,
12313 ppc_process_record): Fix -Wformat warning.
12314 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12315 Remove unused variables.
12316
569340fc
CG
123172015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12318
12319 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12320
63413d85
EZ
123212015-01-19 Eli Zaretskii <eliz@gnu.org>
12322
12323 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12324 CONFIG_OBS if not building with a curses library.
12325 * configure: Regenerate.
12326
12327 * windows-termcap.c: Include defs.h. Make the whole body empty if
12328 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12329 HAVE_NCURSES_NCURSES_H is defined.
12330
16d8013c
JB
123312015-01-19 Joel Brobecker <brobecker@adacore.com>
12332
12333 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12334 from end of line to start of next line.
12335
cf90fd9a
WW
123362015-01-17 Wei-cheng Wang <cole945@gmail.com>
12337
12338 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12339 Scan PLT stub backward for reverse debugging.
12340 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12341
b4cdae6f
WW
123422015-01-17 Wei-cheng Wang <cole945@gmail.com>
12343 Ulrich Weigand <uweigand@de.ibm.com>
12344
12345 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12346 gdb_target_obs.
12347 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12348 record.
12349 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12350 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12351 (ppc_linux_init_abi): Set process_record, process_record_signal.
12352 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12353 ppc_linux_record_tdep to gdbarch_tdep.
12354 (ppc_process_record): New declaration.
12355 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12356 ppc_process_record_op19, ppc_process_record_op31,
12357 ppc_process_record_op59, ppc_process_record_op60,
12358 ppc_process_record_op63, ppc_process_record): New functions.
12359
2608dbf8
WW
123602015-01-17 Wei-cheng Wang <cole945@gmail.com>
12361
12362 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12363 rs6000_in_function_epilogue_frame_p and add an argument
12364 for frame_info.
12365 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12366 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12367 New functions.
12368 (rs6000_epilogue_frame_unwind): New.
12369 (rs6000_gdbarch_init): Append epilogue unwinder.
12370
4c347be6
SDJ
123712015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12372
12373 * nat/linux-personality.c: Replace "#ifndef
12374 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12375 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12376 systems.
12377
9f2850ba
EZ
123782015-01-16 Eli Zaretskii <eliz@gnu.org>
12379
6cdb25f4
EZ
12380 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12381 functions.
12382 (_initialize_tui_win) <border-kind, border-mode>:
12383 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12384 (tui_set_tab_width_command): Fix the commentary.
12385
6cdb25f4
EZ
12386 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12387
bf555842
EZ
12388 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12389 Doc fix.
cb86fcc1
EZ
12390 (tui_set_tab_width_command): Delete and recreate the source and
12391 the disassembly windows, to show the effect of the changed tab
12392 size immediately.
bf555842 12393
9f2850ba
EZ
12394 * tui/tui-data.h (LINE_PREFIX): Make shorter
12395 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12396 "Thread NNNNN.XXXX" thread ID notation on Windows.
12397
95761b2d
JK
123982015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12399
12400 Fix gcc-5 compilation.
12401 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12402
8cc73a39
SDJ
124032015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12404
12405 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12406 (linux-personality.o): New rule.
12407 * common/common-defs.h: Include <stdint.h>.
12408 * config/aarch64/linux.mh (NATDEPFILES): Include
12409 linux-personality.o.
12410 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12411 * config/arm/linux.mh (NATDEPFILES): Likewise.
12412 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12413 * config/i386/linux.mh (NATDEPFILES): Likewise.
12414 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12415 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12416 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12417 * config/mips/linux.mh (NATDEPFILES): Likewise.
12418 * config/pa/linux.mh (NATDEPFILES): Likewise.
12419 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12420 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12421 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12422 * config/s390/linux.mh (NATDEPFILES): Likewise.
12423 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12424 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12425 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12426 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12427 * defs.h: Remove #include <stdint.h> (moved to
12428 common/common-defs.h).
12429 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12430 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12431 nat/linux-personality.c).
12432 (linux_nat_create_inferior): Remove code to disable address space
12433 randomization (moved to nat/linux-personality.c). Create cleanup
12434 to disable address space randomization.
12435 * nat/linux-personality.c: New file.
12436 * nat/linux-personality.h: Likewise.
12437
fb23d554
SDJ
124382015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12439
12440 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12441 common/posix-strerror.c.
12442 (posix-strerror.o): New rule.
12443 (mingw-strerror.o): Likewise.
12444 * common/common-utils.h (safe_strerror): Move prototype to here,
12445 from utils.h.
12446 * common/common.host: New file.
12447 * common/mingw-strerror.c: Likewise.
12448 * common/posix-strerror.c: Likewise.
12449 * configure: Regenerated.
12450 * configure.ac: Source common/common.host. Add variable
12451 common_host_obs to gdb_host_obs.
12452 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12453 gdb/common/posix-strerror.c when warning about the use of
12454 strerror.
12455 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12456 common/mingw-strerror.c.
12457 * posix-hdep.c (safe_strerror): Remove definition; move it to
12458 common/posix-hdep.c.
12459 * utils.h (safe_strerror): Remove prototype; move to
12460 common/common-utils.h.
12461
3af8af43
JB
124622015-01-15 Joel Brobecker <brobecker@adacore.com>
12463
12464 GDB 7.8.2 released.
12465
bafffb51
JB
124662015-01-15 Joel Brobecker <brobecker@adacore.com>
12467
12468 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12469 ___XA type if the array has already been fixed.
12470
cdf43629
YQ
124712015-01-14 Yao Qi <yao@codesourcery.com>
12472
12473 * Makefile.in (ppc-linux.o): New rule.
12474 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12475 * configure.ac: AC_CHECK_FUNCS(getauxval).
12476 * config.in: Re-generated.
12477 * configure: Re-generated.
12478 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12479 Declare.
12480 * nat/ppc-linux.c: New file.
12481 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12482 Call ppc64_64bit_inferior_p.
12483
514c5338
YQ
124842015-01-14 Yao Qi <yao@codesourcery.com>
12485
12486 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12487 nat/ppc-linux.h.
12488 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12489 (PPC_FEATURE_HAS_DFP): Likewise.
12490 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12491 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12492 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12493 Include "nat/ppc-linux.h".
12494 * nat/ppc-linux.h: New file.
12495 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12496
5589af0e
PA
124972015-01-14 Pedro Alves <palves@redhat.com>
12498
12499 PR gdb/17525
12500 * breakpoint.c: Include "interps.h".
12501 (bpstat_do_actions_1): Also check whether the interpreter is
12502 async.
12503
6c400b59
PA
125042015-01-14 Pedro Alves <palves@redhat.com>
12505
12506 PR cli/17828
12507 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12508 reinstall if the interpreter is sync.
12509
e02c96a7
DE
125102015-01-13 Doug Evans <dje@google.com>
12511
12512 * objfiles.c (objfile_filename): New function.
12513 * objfiles.h (objfile_filename): Declare it.
12514 (objfile_name): Add function comment.
12515 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12516 bfd file name (which may be realpath'd), and the original name.
12517
3b2f13ff
JB
125182015-01-13 Joel Brobecker <brobecker@adacore.com>
12519
12520 * NEWS: Create a new section for the next release branch.
12521 Rename the section of the current branch, now that it has
12522 been cut.
12523
b4cfe7f8
JB
125242015-01-13 Joel Brobecker <brobecker@adacore.com>
12525
12526 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12527 * version.in: Bump version to 7.9.50.DATE-cvs.
12528
92fc2e69
JB
125292015-01-13 Joel Brobecker <brobecker@adacore.com>
12530
12531 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12532 Remove trailing new-line in argument of call to warning.
12533
f71f0b0d
JB
125342015-01-13 Joel Brobecker <brobecker@adacore.com>
12535
12536 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12537 new-line in argument of call to "warning".
12538
04dccad0
JB
125392015-01-13 Joel Brobecker <brobecker@adacore.com>
12540
12541 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12542 in static block, then try searching for primitive types.
12543
08b13bdd
PP
125442015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12545
12546 * top.h (gdb_add_history): Declare.
12547 * top.c (command_count): New variable.
12548 (gdb_add_history): New function.
12549 (gdb_safe_append_history): New static function.
12550 (quit_force): Call it.
12551 (command_line_input): Use gdb_add_history instead of
12552 add_history.
12553 * event-top.c (command_line_handler): Likewise.
12554
4ac15b59
JC
125552015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12556
12557 PR gdb/17046
12558 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12559 <setjmp.h> #include.
12560
005e54bb
DE
125612015-01-11 Doug Evans <xdje42@gmail.com>
12562
12563 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12564
439250fb
DE
125652015-01-11 Doug Evans <xdje42@gmail.com>
12566
12567 PR gdb/15830
12568 * NEWS: The "maint demangle" command is renamed as "demangle".
12569 * demangle.c: #include cli/cli-utils.h, language.h.
12570 (demangle_command): New function.
12571 (_initialize_demangle): Add new command "demangle".
12572 * maint.c (maintenance_demangle): Stub out.
12573 (_initialize_maint_cmds): Update help text for "maint demangle",
12574 and mark as deprecated.
12575
ebf3aa72
MK
125762015-01-11 Mark Kettenis <kettenis@gnu.org>
12577
12578 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12579 inferior_thread is a function.
12580
6bf045cd
PP
125812015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12582
12583 * Makefile.in (.y.c): Don't munge yacc's #line
12584 directives.
12585
588dcc3e
PP
125862015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12587
12588 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12589 to prompt for input.
12590 * tui/tui-hooks.c (tui_query_hook): Remove.
12591 (tui_install_hooks): Don't set deprecated_query_hook.
12592 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12593 height calculation. Always update the command window's cur_line.
12594
9c02b525
PA
125952015-01-09 Pedro Alves <palves@redhat.com>
12596
12597 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12598 function.
12599 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12600 declaration.
12601 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12602 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12603 stop_reason.
12604 (check_stopped_by_watchpoint): New function.
12605 (save_sigtrap): Reimplement.
12606 (linux_nat_stopped_by_watchpoint): Adjust.
12607 (linux_nat_lp_status_is_event): Delete.
12608 (stop_wait_callback): Only call save_sigtrap after storing the
12609 pending status.
12610 (status_callback): If the thread had been stopped for a breakpoint
12611 that has since been removed, discard the event and resume the LWP.
12612 (count_events_callback, select_event_lwp_callback): Use
12613 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12614 (cancel_breakpoint): Rename to ...
12615 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12616 stopped for a software breakpoint or hardware breakpoint.
12617 (select_event_lwp): Only give preference to the stepping LWP in
12618 all-stop mode. Adjust comments.
12619 (stop_and_resume_callback): Remove references to new_pending_p.
12620 (linux_nat_filter_event): Likewise. Leave exit events of the
12621 leader thread pending here. Handle signal short circuiting here.
12622 Only call save_sigtrap after storing the pending waitstatus.
12623 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12624 new_pending. Don't handle leaving events the caller is not
12625 interested in pending here, nor handle signal short-circuiting
12626 here. Also give equal priority to all LWPs that have had events
12627 in non-stop mode. If reporting a software breakpoint event,
12628 unadjust the LWP's PC.
12629 * linux-nat.h (enum lwp_stop_reason): New.
12630 (struct lwp_info) <stop_pc>: New field.
12631 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12632 (struct lwp_info) <stop_reason>: New field.
12633 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12634
8af756ef
PA
126352015-01-09 Pedro Alves <palves@redhat.com>
12636
12637 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12638 Set the LWP's 'resumed' flag.
12639
8a99810d
PA
126402015-01-09 Pedro Alves <palves@redhat.com>
12641
12642 * linux-nat.c (linux_resume_one_lwp): New function.
12643 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12644 (linux_nat_resume): Use lwp_status_pending_p and
12645 linux_resume_one_lwp.
12646 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12647 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12648 (status_callback, running_callback): Use lwp_status_pending_p.
12649 (lwp_status_pending_p): New function.
12650 (stop_and_resume_callback): Use lwp_status_pending_p.
12651 (linux_nat_filter_event): Use linux_resume_one_lwp.
12652 (linux_nat_wait_1): Always use status_callback to look for an LWP
12653 with a pending status. Use linux_resume_one_lwp.
12654 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12655 linux_resume_one_lwp.
12656
f7ce857f
PA
126572015-01-09 Pedro Alves <palves@redhat.com>
12658
12659 * breakpoint.c (bp_location_inserted_here_p): New function,
12660 factored out from ...
12661 (breakpoint_inserted_here_p): ... here. Use
12662 ALL_BP_LOCATIONS_AT_ADDR.
12663 (software_breakpoint_inserted_here_p): Use
12664 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12665
c1a747c1
PA
126662014-01-09 Pedro Alves <palves@redhat.com>
12667
12668 Skip enabling event reporting if the kernel supports
12669 PTRACE_EVENT_CLONE.
12670 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12671 (thread_db_use_events): New function.
12672 (try_thread_db_load_1): Check thread_db_use_events before enabling
12673 event reporting.
12674 (update_thread_state): New function.
12675 (attach_thread): Use it. Check thread_db_use_events before
12676 enabling event reporting.
12677 (thread_db_detach): Check thread_db_use_events before disabling
12678 event reporting.
12679 (find_new_threads_callback): Check thread_db_use_events before
12680 enabling event reporting. Update the thread's state if not using
12681 libthread_db events.
12682
a33e3959
PA
126832015-01-09 Pedro Alves <palves@redhat.com>
12684
12685 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12686 about to wait for is > 0.
12687 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12688 the kernel thread ID is -1.
12689
8784d563
PA
126902015-01-09 Pedro Alves <palves@redhat.com>
12691
12692 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12693 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12694 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12695 ptrace option flags.
12696 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12697 field.
12698 * nat/linux-procfs.c: Include <dirent.h>.
12699 (linux_proc_get_int): New parameter "warn". Handle it.
12700 (linux_proc_get_tgid): Adjust.
12701 (linux_proc_get_tracerpid): Rename to ...
12702 (linux_proc_get_tracerpid_nowarn): ... this.
12703 (linux_proc_pid_get_state): New function, factored out from
12704 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12705 and handle it.
12706 (linux_proc_pid_is_gone): New function.
12707 (linux_proc_pid_is_stopped): Adjust.
12708 (linux_proc_pid_is_zombie_maybe_warn)
12709 (linux_proc_pid_is_zombie_nowarn): New functions.
12710 (linux_proc_pid_is_zombie): Use
12711 linux_proc_pid_is_zombie_maybe_warn.
12712 (linux_proc_attach_tgid_threads): New function.
12713 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12714 (linux_proc_get_tracerpid): Rename to ...
12715 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12716 (linux_proc_pid_is_gone): New declaration.
12717 (linux_proc_pid_is_zombie): Update comment.
12718 (linux_proc_pid_is_zombie_nowarn): New declaration.
12719 (linux_proc_attach_lwp_func): New typedef.
12720 (linux_proc_attach_tgid_threads): New declaration.
12721 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12722 use nowarn functions.
12723 (linux_ptrace_attach_fail_reason_string): Move here from
12724 gdbserver/linux-low.c and rename.
12725 (ptrace_supports_feature): If the current ptrace options are not
12726 known yet, check them now, instead of asserting.
12727 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12728 Declare.
12729
883ed13e
PA
127302015-01-09 Pedro Alves <palves@redhat.com>
12731
12732 * linux-thread-db.c (thread_db_find_new_threads_silently)
12733 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12734 (find_new_threads_once): Print debug output on gdb_stdlog.
12735
1710aab8
CG
127362015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12737 Pedro Alves <palves@redhat.com>
12738
12739 * compile/compile.c: Include "gdb_wait.h".
12740 (do_rmdir): Check return value, and free 'zap'.
12741
b597c318
YQ
127422015-01-08 Pedro Alves <palves@redhat.com>
12743 Yao Qi <yao@codesourcery.com>
12744
12745 * dwarf2loc.c (indirect_pieced_value): Don't call
12746 gdb_sign_extend. Call extract_signed_integer instead.
12747 * utils.c (gdb_sign_extend): Remove.
12748 * utils.h (gdb_sign_extend): Remove declaration.
12749
025ac414
PM
127502015-01-07 Pierre Muller <muller@sourceware.org>
12751
12752 PR symtab/17811
12753 * stabsread.c (define_symbol): Set language for C++ special symbols.
12754
fa5af12a
PP
127552015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12756
12757 * inflow.c (initial_gdb_ttystate): Tweak comment.
12758
ea42d6f8
JB
127592015-01-07 Joel Brobecker <brobecker@adacore.com>
12760
12761 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12762 comment documenting function.
12763
6a06d660
PP
127642015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12765
12766 * terminal.h (set_initial_gdb_ttystate): Declare.
12767 * inflow.c (initial_gdb_ttystate): New static variable.
12768 (set_initial_gdb_ttystate): New setter.
12769 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12770 instead of our current terminal state.
12771 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12772
e810d75b
JB
127732015-01-07 Joel Brobecker <brobecker@adacore.com>
12774
12775 * guile/scm-type.c (tyscm_array_1): Add comment.
12776 * python/py-type.c (typy_array_1): Add comment.
12777
fce10a84
JB
127782015-01-06 Joel Brobecker <brobecker@adacore.com>
12779
12780 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12781 error if N2 is equal to N1 - 1.
12782
8503d6e1
JB
127832015-01-06 Joel Brobecker <brobecker@adacore.com>
12784
12785 * python/py-type.c (typy_array_1): Do not raise negative-length
12786 exception if N2 is equal to N1 - 1.
12787
4d29c0a8
DE
127882015-01-03 Doug Evans <xdje42@gmail.com>
12789
12790 * c-exp.y: Whitespace cleanup.
12791 (classify_inner_name): Remove extra ;.
12792
eaa6a9a4
MR
127932015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12794
12795 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12796 offset signed.
12797
02fe9972
DE
127982015-01-02 Doug Evans <dje@google.com>
12799
12800 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12801
e2ada9cb
DE
128022015-01-02 Doug Evans <dje@google.com>
12803
12804 * symtab.h (struct symbol): Fix typo in comment.
12805
32d0add0
JB
128062015-01-01 Joel Brobecker <brobecker@adacore.com>
12807
12808 Update year range in copyright notice of all files.
12809
76f2b779
JB
128102015-01-01 Joel Brobecker <brobecker@adacore.com>
12811
12812 * top.c (print_gdb_version): Update copyright year to 2015.
12813
077309e2 128142015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12815
077309e2 12816 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12817
077309e2 12818For older changes see ChangeLog-2014.
c906108c
SS
12819\f
12820Local Variables:
12821mode: change-log
12822left-margin: 8
12823fill-column: 74
12824version-control: never
57da7796 12825coding: utf-8
c906108c 12826End:
This page took 2.420389 seconds and 4 git commands to generate.