mips: fix void*/gdb_byte* compilation errors
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
709476c3
SM
12015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
4 buf to gdb_byte*.
5 (supply_32bit_reg): Add cast.
6 (mips64_fill_gregset): Likewise.
7
bed91f4d
SM
82015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
9
10 PR python/18073
11 * python/py-type.c (typy_get_composite): Allow returning a
12 function type.
13
3f2f83dd
KB
142015-10-21 Keven Boell <keven.boell@intel.com>
15
16 * dwarf2read.c (set_die_type): Add read of
17 DW_AT_allocated and DW_AT_associated.
18 * f-typeprint.c: New include of typeprint.h
19 (f_print_type): Add check for allocated/associated
20 status of type.
21 (f_type_print_varspec_suffix): Add check for
22 * gdbtypes.c (create_array_type_with_stride):
23 Add check for valid data location of type in
24 case allocated or associated attributes are set.
25 Length of an array should be only calculated if
26 allocated or associated is resolved as true.
27 (is_dynamic_type_internal): Add check for allocated/
28 associated.
29 (resolve_dynamic_array): Evaluate allocated/associated
30 properties.
31 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
32 <DYN_PROP_ASSOCIATED>: New enums.
33 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
34 (type_not_allocated): New function.
35 (type_not_associated): New function.
36 * valarith.c (value_subscripted_rvalue): Add check for
37 allocated/associated.
38 * valprint.c: New include of typeprint.h.
39 (valprint_check_validity): Add check for allocated/associated.
40 (value_check_printable): Add check for allocated/
41 associated.
42 * typeprint.h (val_print_not_allocated): New function.
43 (val_print_not_associated): New function.
44 * typeprint.c (val_print_not_allocated): New function.
45 (val_print_not_associated): New function.
46
8689682c
AT
472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
48
49 * Makefile.in: Add arm.c/o.
50 * arch/arm.c: New file.
51 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
52 (MAKE_THUMB_ADDR): Likewise.
53 (UNMAKE_THUMB_ADDR): Likewise.
54 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
55 (IS_THUMB_ADDR): Move to arm.h.
56 (MAKE_THUMB_ADDR): Likewise.
57 (UNMAKE_THUMB_ADDR): Likewise.
58 * configure.tgt: Add arm.o to all ARM configs.
59
80f0110c
YQ
602015-10-21 Yao Qi <yao.qi@linaro.org>
61
62 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
63 Remove argument exp_vCont_s.
64 * gdb.base/range-stepping.exp: Callers updated.
65 * gdb.trace/range-stepping.exp: Likewise.
66
d7161de4
AR
672015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
68
69 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
70 (nto_sniff_abi_note_section): New function.
71 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
72 binary.
73
a9889169
AR
742015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
75
76 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
77 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
78 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
79 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
80 New functions.
81 (_initialize_nto_tdep): New forward declaration, new function.
82 * nto-tdep.h (struct nto_inferior_data): New struct.
83 (nto_inferior_data): New function declaration.
84
5f3ff4f8
JK
852015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 * findvar.c (address_from_register): Check REGNUM validity.
88
e5343fde
AR
892015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
90
91 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
92 (init_procfs_targets): Wire new function.
93
8a6c0ccd
AR
942015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
95
96 * nto-procfs.c (sys/auxv.h): Include.
97 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
98 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
99 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
100
609c3040
AR
1012015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
102
103 * nto-procfs.c (nto_procfs_path): Rename to...
104 (nodestr): ... this, and change type.
105 (nto_node): Use new variable and logic accordingly.
106 (procfs_open_1): Use new variable name. Use local buffer to construct
107 procfrs path.
108 (procfs_pidlist): Use NODESTR to construct procfs path.
109 (procfs_files_info): Use NODESTR to output meaningful text.
110 (do_attach): Construct procfs using NODESTR.
111 (procfs_create_inferior): Compare pointer to NULL.
112
bfd09d20
JS
1132015-10-19 Josh Stone <jistone@redhat.com>
114
115 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
116 return state, even when not actively catching syscalls at all.
117 (linux_handle_extended_wait): Mark syscall_state like an entry.
118 (wait_lwp): Set syscall_state ignored for other traps.
119 (linux_nat_filter_event): Likewise.
120
29090fb6
LM
1212015-10-19 Luis Machado <lgustavo@codesourcery.com>
122
123 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
124 when handling 'E', 'T', 'S', 'X' and 'W' packets.
125 Do not set rs->waiting_for_stop_reply back to 1.
126
774ee6d2
AR
1272015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
128
129 * nto-procfs.c (common/filestuff.h): Include.
130 (procfs_can_use_hw_breakpoint): Fix enum name.
131 (procfs_open_1): Fix compiler warning.
132 (procfs_pidlist): Make static.
133 (procfs_meminfo): Make static, fix type name, add missing argument.
134 (procfs_store_registers): Make static.
135 (procfs_thread_info): Remove unused function.
136 (_initialize_procfs): Forward declare.
137
e66acfb1
YQ
1382015-10-16 Yao Qi <yao.qi@arm.com>
139
140 * MAINTAINERS: Update my email address.
141
8d689ee5
YQ
1422015-10-15 Yao Qi <yao.qi@linaro.org>
143
144 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
145 Call gdbarch_breakpoint_from_pc to instruction length.
146 (aarch64_linux_remove_hw_breakpoint): Likewise.
147 * common/common-regcache.h (regcache_register_size): Declare.
148 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
149 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
150 the process is 32bit, otherwise set alignment to 4.
151 (aarch64_handle_breakpoint): Update comments.
152 * regcache.c (regcache_register_size): New function.
153
89fdc87f
AR
1542015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
155
156 * gdbarch.sh (core_regset_section): Remove.
157 * gdbarch.h: Regenerate.
158
6448a3e4
YQ
1592015-10-14 Yao Qi <yao.qi@linaro.org>
160
161 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
162 out of it.
163 (enum aarch64_memory_operand_type): New.
164
33f914a1
DE
1652015-10-13 David Edelsohn <dje.gcc@gmail.com>
166
167 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
168
e6a959d6
PA
1692015-10-13 Pedro Alves <palves@redhat.com>
170
171 * ada-lang.c (ada_enum_name): Constify local.
172 * ada-typeprint.c (print_range_bound): Constify locals.
173 * c-varobj.c (c_describe_child): Likewise.
174 * cli/cli-setshow.c (do_set_command): Likewise.
175 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
176 * dwarf2read.c (find_file_and_directory): Likewise.
177 (anonymous_struct_prefix, dwarf2_name): Likewise.
178 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
179 * go-lang.c (unpack_mangled_go_symbol): Likewise.
180 * jv-typeprint.c (java_type_print_base): Likewise.
181 * ser-tcp.c (net_open): Likewise.
182 * symfile.c (deduce_language_from_filename): Likewise.
183 * symtab.c (gdb_mangle_name): Likewise.
184 * tui/tui-io.c (tui_redisplay_readline): Likewise.
185
170742de
PA
1862015-10-13 Pedro Alves <palves@redhat.com>
187
188 * infrun.c (restore_execution_direction): New function.
189 (fetch_inferior_event): Use it instead of
190 make_cleanup_restore_integer.
191 (execution_direction): Change type to enum
192 exec_direction_kind.
193 * infrun.h (execution_direction): Likewise.
194
bfb1c796
PA
1952015-10-13 Pedro Alves <palves@redhat.com>
196
197 * ada-lang.c (ada_value_primitive_packed_val): Constify
198 locals. Use value_contents_writeable. Remove casts.
199
aa5c10ce
PA
2002015-10-13 Pedro Alves <palves@redhat.com>
201
202 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
203 and alloca calls.
204
4666fec3
SM
2052015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
208 write_memory with write_memory_unsigned_integer.
209
38bc8217 2102015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
211
212 * solib-dsbt.c (cmp_name): Constify arguments.
213 * solib-frv.c (cmp_name): Likewise.
214 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
215 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
216 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
217 (gdb_bfd_lookup_symbol): Likewise.
218 * solib.h (gdb_bfd_lookup_symbol): Likewise.
219 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
220
a0d34a39
AB
2212015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * stack.c (parse_frame_specification): Remove message parameter,
224 replace with fixed string in function body, update function
225 comment.
226 (frame_info): Remove message to parse_frame_specification.
227 (select_frame_command): Likewise.
228
edbbff4a
AB
2292015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
230
231 * stack.c (parse_frame_specification): Delete.
232 (parse_frame_specification_1): Rename to
233 parse_frame_specification.
234 (frame_info): Use parse_frame_specification.
235 (select_frame_command): Likewise.
236 (return_command): Use select_frame and print_stack_frame rather
237 than frame_command and select_frame_command.
238 (func_command): Use get_current_frame rather than
239 parse_frame_specification.
240
9d622bda
AB
2412015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * stack.c (func_command): Return early when there is no ARG
244 string.
245
8d3fea16
AB
2462015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * stack.c: Include safe-ctype.h not ctype.h.
249 (parse_frame_specification): Use ISSPACE not isspace.
250 (backtrace_command): Use TOLOWER not tolower.
251
f54b226f
SM
2522015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * mep-tdep.c (current_me_module): Add cast.
255 (mep_gdbarch_init): Likewise.
256
6da660c7
SM
2572015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * m32c-tdep.c (m32c_move_reg_t): Replace with...
260 (m32c_write_reg_t): ...this and...
261 (m32c_read_reg_t): ...this.
262 (struct m32c_reg): Update types of read and write.
263 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
264 adjust definition.
265 (m32c_banked_read): Likewise.
266 (m32c_sb_read): Likewise.
267 (m32c_part_read): Likewise.
268 (m32c_cat_read): Likewise.
269 (m32c_r3r2r1r0_read): Likewise.
270 (m32c_raw_write): Change declaration type to m32c_write_reg_t
271 and adjust definition.
272 (m32c_banked_write): Likewise.
273 (m32c_sb_write): Likewise.
274 (m32c_part_write): Likewise.
275 (m32c_cat_write): Likewise.
276 (m32c_r3r2r1r0_write): Likewise.
277
1f713e48
SM
2782015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
281
cb65d272
SM
2822015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
285 gdb_sys_no_syscall instead of -1.
286
eda14cf2
YQ
2872015-10-12 Yao Qi <yao.qi@linaro.org>
288
289 * NEWS: Mention the change.
290
1c2e1515
YQ
2912015-10-12 Yao Qi <yao.qi@linaro.org>
292
293 * arch/aarch64-insn.c (emit_load_store): Rename to ...
294 (aarch64_emit_load_store): ... it. All callers updated.
295
e1c587c3
YQ
2962015-10-12 Yao Qi <yao.qi@linaro.org>
297
298 * arch/aarch64-insn.c (emit_insn): Rename to ...
299 (aarch64_emit_insn): ... it. All callers updated.
300
b6542f81
YQ
3012015-10-12 Yao Qi <yao.qi@linaro.org>
302
303 * aarch64-linux-tdep.c: Include arch-utils.h.
304 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
305 set_gdbarch_displaced_step_copy_insn,
306 set_gdbarch_displaced_step_fixup,
307 set_gdbarch_displaced_step_free_closure,
308 set_gdbarch_displaced_step_location,
309 and set_gdbarch_displaced_step_hw_singlestep.
310 * aarch64-tdep.c (struct displaced_step_closure): New.
311 (struct aarch64_displaced_step_data): New.
312 (aarch64_displaced_step_b): New function.
313 (aarch64_displaced_step_b_cond): Likewise.
314 (aarch64_register): Likewise.
315 (aarch64_displaced_step_cb): Likewise.
316 (aarch64_displaced_step_tb): Likewise.
317 (aarch64_displaced_step_adr): Likewise.
318 (aarch64_displaced_step_ldr_literal): Likewise.
319 (aarch64_displaced_step_others): Likewise.
320 (aarch64_displaced_step_copy_insn): Likewise.
321 (aarch64_displaced_step_fixup): Likewise.
322 (aarch64_displaced_step_hw_singlestep): Likewise.
323 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
324 (aarch64_displaced_step_copy_insn): Declare.
325 (aarch64_displaced_step_fixup): Declare.
326 (aarch64_displaced_step_hw_singlestep): Declare.
327 * arch/aarch64-insn.c (emit_insn): Moved from
328 gdbserver/linux-aarch64-low.c.
329 (emit_load_store): Likewise.
330 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
331 gdbserver/linux-aarch64-low.c.
332 (struct aarch64_register): Likewise.
333 (struct aarch64_memory_operand): Likewise.
334 (ENCODE): Likewise.
335 (can_encode_int32): New macro.
336 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
337 (emit_tb, emit_nop): Likewise.
338 (emit_insn): Declare.
339 (emit_load_store): Declare.
340
246994ce
YQ
3412015-10-12 Yao Qi <yao.qi@linaro.org>
342
343 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
344 gdbserver/linux-aarch64-low.c.
345 (aarch64_relocate_instruction): Likewise.
346 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
347 (struct aarch64_insn_data): Moved from
348 gdbserver/linux-aarch64-low.c.
349 (struct aarch64_insn_visitor): Likewise.
350 (aarch64_relocate_instruction): Declare.
351
2520f728
PMR
3522015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
353
354 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
355 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
356 to the returned value.
357
5b639dea
JB
3582015-10-09 Joel Brobecker <brobecker@adacore.com>
359
360 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
361 is large enough for BIT_SIZE. Update function comment.
362
0cafa88c
JB
3632015-10-09 Joel Brobecker <brobecker@adacore.com>
364
365 * ada-lang.c (ada_value_primitive_packed_val): Move
366 src_len variable to local block where used. Override
367 BIT_SIZE if bigger than size of resolved type.
368
220475ed
JB
3692015-10-09 Joel Brobecker <brobecker@adacore.com>
370
371 * gdbtypes.h (is_scalar_type): Add extern declaration.
372 * gdbtypes.c (is_scalar_type): Make non-static.
373 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
374 to compute IS_SCALAR instead of doing it ourselves.
375
d0a9e810
JB
3762015-10-09 Joel Brobecker <brobecker@adacore.com>
377
378 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
379 of case where TYPE is dynamic.
380
f93fca70
JB
3812015-10-09 Joel Brobecker <brobecker@adacore.com>
382
383 * ada-lang.c (ada_unpack_from_contents): New function,
384 extracted from ada_value_primitive_packed_val.
385 (ada_value_primitive_packed_val): Replace extracted out code
386 by call to ada_unpack_from_contents.
387
a1c95e6b
JB
3882015-10-09 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
391 variable declarations.
392
fbd000da
JB
3932015-10-09 Joel Brobecker <brobecker@adacore.com>
394
395 * ada-lang.c (ada_value_primitive_packed_val): Change the type
396 of local variables src and unpacked to "gdb_type *" instead of
397 "unsigned char *".
398
086ca51f
JB
3992015-10-09 Joel Brobecker <brobecker@adacore.com>
400
401 * ada-lang.c (ada_value_primitive_packed_val): Make the name
402 of various local variables more explicit and consistent.
403 No real code change otherwise.
404
c5bcd278
SM
4052015-10-09 Simon Marchi <simon.marchi@ericsson.com>
406
407 * i386-tdep.h (struct gdbarch_tdep): Change type of
408 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
409
78c5b882
SM
4102015-10-09 Simon Marchi <simon.marchi@ericsson.com>
411
412 * cris-tdep.c (struct instruction_environment): Change type of
413 byte_order to enum bfd_endian.
414
f9fa37b3
SM
4152015-10-09 Simon Marchi <simon.marchi@ericsson.com>
416
417 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
418 enum gdb_syscall casts.
419
7c543f7b
SM
4202015-10-09 Simon Marchi <simon.marchi@ericsson.com>
421
422 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
423 * arm-tdep.c (struct stack_item): Likewise.
424 (push_stack_item): Add gdb_byte* cast.
425 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
426 (push_stack_item): Add gdb_byte* cast.
427 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
428 and add cast.
429 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
430 (push_stack_item): Add gdb_byte* cast.
431 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
432 add cast.
433 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
434 gdb_byte*.
435 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
436 gdb_byte* and remove unnecessary cast.
437 (h8300h_extract_return_value): Likewise.
438 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
439 (h8300h_store_return_value): Likewise.
440 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
441 gdb_byte* and remove unnecessary cast.
442 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
443 and add cast.
444 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
445 gdb_byte* and remove unnecessary cast.
446 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
447 valbuf.
448 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
449 (mep_pseudo_cr64_read): Likewise.
450 (mep_pseudo_csr_write): Likewise.
451 (mep_pseudo_cr32_write): Likewise.
452 (mep_pseudo_cr64_write): Likewise.
453 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
454 gdb_byte* and add cast.
455 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
456 gdb_byte* and remove unnecessary cast.
457 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
458 valbuf.
459 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
460 gdb_byte*.
461 * printcmd.c (void): Likewise.
462 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
463 gdb_byte* and add cast.
464 (infpy_write_memory): Likewise.
465 (infpy_search_memory): Likewise.
466 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
467 and add cast.
468 (regcache_raw_write_unsigned): Likewise.
469 (regcache_cooked_write_signed): Likewise.
470 (regcache_cooked_write_unsigned): Likewise.
471 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
472 gdb_byte*.
473
7567e115
SM
4742015-10-09 Simon Marchi <simon.marchi@ericsson.com>
475
476 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
477 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
478
f9acce4a
EZ
4792015-10-09 Eli Zaretskii <eliz@gnu.org>
480
481 * stack.c (print_stack_frame):
482 * utils.c (printchar): Fix typos in commentary.
483
d5d8c4e1
IB
4842015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
485
486 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
487 (PostfixExpression): Support `expr.sizeof' expressions.
488 (PrimaryExpression): Support `typeof(expr)' expressions.
489
4e7de155
MR
4902015-10-08 Maciej W. Rozycki <macro@imgtec.com>
491
492 * MAINTAINERS: Update my email address.
493
04c4fe8c
MM
4942015-10-08 Markus Metzger <markus.t.metzger@intel.com>
495
496 * record-btrace.c (record_btrace_resume): Fix void return.
497
f77ee802
YQ
4982015-10-07 Yao Qi <yao.qi@linaro.org>
499
500 * aarch64-tdep.c: Include opcode/aarch64.h.
501 (submask): Move it above.
502 (bit): Likewise.
503 (bits): Likewise.
504 (aarch64_software_single_step): Call aarch64_decode_insn.
505 Decode instruction by aarch64_inst instead of using
506 aarch64_decode_bcond and decode_masked_match.
507
cbd641ed
PS
5082015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
509
510 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
511 only when the file is binary.
512
ae4e2501 5132015-10-02 James Bowman <james.bowman@ftdichip.com>
514
515 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
516 subroutine handling.
517
dd0a637a
SM
5182015-10-01 Simon Marchi <simon.marchi@ericsson.com>
519
520 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
521
1fd60fc0
DE
5222015-09-30 Doug Evans <dje@google.com>
523
524 * dwarf2read.c (setup_type_unit_groups): Add comment.
525
398e0813
PA
5262015-09-30 Pedro Alves <palves@redhat.com>
527
528 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
529 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
530 (x86_linux_create_target): Don't install
531 x86_linux_always_non_stop_p.
532
6ab24463
DB
5332015-09-30 Don Breazeal <donb@codesourcery.com>
534
535 * remote.c (remote_parse_stop_reply): Call strprefix instead
536 of strncmp.
537
ede5f151
SM
5382015-09-30 Simon Marchi <simon.marchi@ericsson.com>
539
540 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
541 * gdbarch.h: Regenerate.
542 * i386-tdep.c (i386_gdbarch_init): Remove cast to
543 struct gdbarch_tdep_info *.
544 * mips-tdep.c (mips_gdbarch_init): Likewise.
545 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
546 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
547 * spu-multiarch.c (spu_gdbarch): Likewise.
548
51c935fa 5492015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
550
551 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
552 record a NULL value.
553
3b1ad7d5
KB
5542015-09-29 Kevin Buettner <kevinb@redhat.com>
555
556 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
557 and union arguments the same as pointer arguments when determining
558 size of argument.
559
86feccb9 5602015-09-29 James Bowman <james.bowman@ftdichip.com>
561
562 * ft32-tdep.c: #include "opcode/ft32.h".
563 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
564 (ft32_analyze_prologue): Use FT32_* macros.
565
2181a6c6
SM
5662015-09-28 Simon Marchi <simon.marchi@ericsson.com>
567
84d73afc 568 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
569 comment.
570
245af596
DE
5712015-09-28 Doug Evans <dje@google.com>
572
573 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
574
c402ef90
DE
5752015-09-28 Doug Evans <dje@google.com>
576
577 * common/filestuff.c (make_cleanup_close): Update comment.
578
38bc8217 5792015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
580
581 * btrace.c (parse_xml_btrace_block): Fix cast of
582 xml_find_attribute's return value.
583 * memory-map.c (memory_map_start_memory): Likewise.
584 * solib-svr4.c (library_list_start_library): Likewise.
585 * solib-target.c (library_list_start_segment): Likewise.
586 (library_list_start_section): Likewise.
587 * tracepoint.c (traceframe_info_start_memory): Likewise.
588
ba587d55
IB
5892015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
590
591 * d-namespace.c (d_lookup_symbol): New arg langdef.
592 All callers updated. Support looking up symbol as a primitive type.
593 (lookup_module_scope): New arg langdef. All callers updated.
594 Call d_lookup_symbol directly for simple bare symbols.
595
19ba03f4
SM
5962015-09-25 Simon Marchi <simon.marchi@ericsson.com>
597
598 * macrocmd.c (print_macro_callback): Add cast(s).
599 * macrotab.c (macro_bcache_str): Likewise.
600 (new_macro_definition): Likewise.
601 * main.c (captured_main): Likewise.
602 * maint.c (print_bfd_section_info): Likewise.
603 * mdebugread.c (mdebug_build_psymtabs): Likewise.
604 (basic_type): Likewise.
605 * memattr.c (mem_region_cmp): Likewise.
606 * memory-map.c (memory_map_start_memory): Likewise.
607 (memory_map_end_memory): Likewise.
608 (memory_map_start_property): Likewise.
609 (memory_map_end_property): Likewise.
610 (clear_result): Likewise.
611 * memrange.c (compare_mem_ranges): Likewise.
612 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
613 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
614 * mi/mi-console.c (mi_console_file_delete): Likewise.
615 (mi_console_file_fputs): Likewise.
616 (mi_console_raw_packet): Likewise.
617 (mi_console_file_flush): Likewise.
618 (mi_console_set_raw): Likewise.
619 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
620 (mi_new_thread): Likewise.
621 (mi_thread_exit): Likewise.
622 (mi_record_changed): Likewise.
623 (mi_inferior_added): Likewise.
624 (mi_inferior_appeared): Likewise.
625 (mi_inferior_exit): Likewise.
626 (mi_inferior_removed): Likewise.
627 (mi_interp_data): Likewise.
628 (mi_on_normal_stop): Likewise.
629 (mi_traceframe_changed): Likewise.
630 (mi_tsv_created): Likewise.
631 (mi_tsv_deleted): Likewise.
632 (mi_tsv_modified): Likewise.
633 (mi_breakpoint_created): Likewise.
634 (mi_breakpoint_deleted): Likewise.
635 (mi_breakpoint_modified): Likewise.
636 (mi_output_running_pid): Likewise.
637 (mi_inferior_count): Likewise.
638 (mi_solib_loaded): Likewise.
639 (mi_solib_unloaded): Likewise.
640 (mi_command_param_changed): Likewise.
641 (mi_memory_changed): Likewise.
642 (report_initial_inferior): Likewise.
643 (mi_ui_out): Likewise.
644 (mi_set_logging): Likewise.
645 * mi/mi-main.c (collect_cores): Likewise.
646 (print_one_inferior): Likewise.
647 (free_vector_of_ints): Likewise.
648 (free_splay_tree): Likewise.
649 (mi_execute_command): Likewise.
650 * mi/mi-out.c (mi_table_body): Likewise.
651 (mi_table_end): Likewise.
652 (mi_table_header): Likewise.
653 (mi_begin): Likewise.
654 (mi_end): Likewise.
655 (mi_field_int): Likewise.
656 (mi_field_string): Likewise.
657 (mi_field_fmt): Likewise.
658 (mi_flush): Likewise.
659 (mi_redirect): Likewise.
660 (field_separator): Likewise.
661 (mi_open): Likewise.
662 (mi_close): Likewise.
663 (mi_out_buffered): Likewise.
664 (mi_out_rewind): Likewise.
665 (mi_out_put): Likewise.
666 (mi_version): Likewise.
667 (mi_out_data_dtor): Likewise.
668 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
669 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
670 * minidebug.c (lzma_open): Likewise.
671 (lzma_pread): Likewise.
672 (lzma_close): Likewise.
673 (lzma_stat): Likewise.
674 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
675 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
676 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
677 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
678 (mips_micro_frame_cache): Likewise.
679 (mips_insn32_frame_cache): Likewise.
680 (mips_stub_frame_cache): Likewise.
681 (gdb_print_insn_mips): Likewise.
682 (value_of_mips_user_reg): Likewise.
683 (mips_gdbarch_init): Likewise.
684 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
685 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
686 (mipsnbsd_supply_gregset): Likewise.
687 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
688 (am33_collect_gregset_method): Likewise.
689 (am33_collect_fpregset_method): Likewise.
690 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
691 * moxie-tdep.c (moxie_frame_cache): Likewise.
692 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
693 (msp430_analyze_frame_prologue): Likewise.
694 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
695 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
696 (nios2_collect_gregset): Likewise.
697 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
698 (nios2_stub_frame_cache): Likewise.
699 * objc-lang.c (find_methods): Likewise.
700 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
701 (get_objfile_pspace_data): Likewise.
702 (get_objfile_bfd_data): Likewise.
703 (objfile_bfd_data_free): Likewise.
704 (add_to_objfile_sections): Likewise.
705 (do_free_objfile_cleanup): Likewise.
706 (resume_section_map_updates_cleanup): Likewise.
707 * opencl-lang.c (builtin_opencl_type): Likewise.
708 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
709 * osdata.c (osdata_start_osdata): Likewise.
710 (osdata_start_item): Likewise.
711 (osdata_start_column): Likewise.
712 (osdata_end_column): Likewise.
713 (clear_parsing_data): Likewise.
714 (osdata_free_cleanup): Likewise.
715 * parse.c (type_stack_cleanup): Likewise.
716 (exp_uses_objfile_iter): Likewise.
717 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
718 (ppc_linux_collect_gregset): Likewise.
719 (ppu2spu_prev_arch): Likewise.
720 (ppu2spu_this_id): Likewise.
721 (ppu2spu_prev_register): Likewise.
722 (ppu2spu_unwind_register): Likewise.
723 (ppu2spu_sniffer): Likewise.
724 (ppu2spu_dealloc_cache): Likewise.
725 (ppc_linux_init_abi): Likewise.
726 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
727 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
728 * progspace.c (restore_program_space): Likewise.
729 * psymtab.c (find_pc_sect_psymtab): Likewise.
730 (compare_psymbols): Likewise.
731 (psymbol_bcache_full): Likewise.
732 (allocate_psymtab): Likewise.
733 (discard_psymtabs_upto): Likewise.
734 * python/py-block.c (set_block): Likewise.
735 (del_objfile_blocks): Likewise.
736 * python/py-breakpoint.c (build_bp_list): Likewise.
737 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
738 (build_inferior_list): Likewise.
739 (py_free_inferior): Likewise.
740 * python/py-objfile.c (py_free_objfile): Likewise.
741 (objfile_to_objfile_object): Likewise.
742 * python/py-prettyprint.c (py_restore_tstate): Likewise.
743 * python/py-progspace.c (py_free_pspace): Likewise.
744 (pspace_to_pspace_object): Likewise.
745 * python/py-symbol.c (set_symbol): Likewise.
746 (del_objfile_symbols): Likewise.
747 * python/py-symtab.c (set_sal): Likewise.
748 (set_symtab): Likewise.
749 (del_objfile_symtab): Likewise.
750 (del_objfile_sal): Likewise.
751 * python/py-type.c (save_objfile_types): Likewise.
752 (set_type): Likewise.
753 * python/py-unwind.c (pyuw_prev_register): Likewise.
754 (pyuw_on_new_gdbarch): Likewise.
755 * python/py-utils.c (py_decref): Likewise.
756 (py_xdecref): Likewise.
757 (gdb_py_generic_dict): Likewise.
758 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
759 (gdbpy_clone_xmethod_worker_data): Likewise.
760 (gdbpy_get_xmethod_arg_types): Likewise.
761 (gdbpy_get_xmethod_result_type): Likewise.
762 (gdbpy_invoke_xmethod): Likewise.
763 * python/python.c (gdbpy_apply_type_printers): Likewise.
764 (gdbpy_free_type_printers): Likewise.
765 * record-btrace.c (record_btrace_disable_callback): Likewise.
766 (bfcache_hash): Likewise.
767 (bfcache_eq): Likewise.
768 (btrace_get_frame_function): Likewise.
769 (record_btrace_frame_unwind_stop_reason): Likewise.
770 (record_btrace_frame_this_id): Likewise.
771 (record_btrace_frame_prev_register): Likewise.
772 (record_btrace_frame_dealloc_cache): Likewise.
773 * record-full.c (record_full_message_wrapper): Likewise.
774 (record_full_save_cleanups): Likewise.
775 * regcache.c (regcache_descr): Likewise.
776 (do_regcache_xfree): Likewise.
777 (do_regcache_invalidate): Likewise.
778 (do_cooked_read): Likewise.
779 (regcache_transfer_regset): Likewise.
780 * reggroups.c (reggroup_add): Likewise.
781 (reggroup_next): Likewise.
782 (reggroup_prev): Likewise.
783 * remote-fileio.c (do_remote_fileio_request): Likewise.
784 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
785 (do_notif_event_xfree): Likewise.
786 * remote.c (get_remote_arch_state): Likewise.
787 (remote_pspace_data_cleanup): Likewise.
788 (get_remote_exec_file): Likewise.
789 (set_pspace_remote_exec_file): Likewise.
790 (compare_pnums): Likewise.
791 (clear_threads_listing_context): Likewise.
792 (remote_newthread_step): Likewise.
793 (start_thread): Likewise.
794 (end_thread): Likewise.
795 (remove_child_of_pending_fork): Likewise.
796 (remove_stop_reply_for_inferior): Likewise.
797 (remove_stop_reply_of_remote_state): Likewise.
798 (remote_notif_remove_once_on_match): Likewise.
799 (stop_reply_match_ptid_and_ws): Likewise.
800 (kill_child_of_pending_fork): Likewise.
801 (register_remote_g_packet_guess): Likewise.
802 (remote_read_description_p): Likewise.
803 (remote_read_description): Likewise.
804 (free_actions_list_cleanup_wrapper): Likewise.
805 (remote_async_serial_handler): Likewise.
806 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
807 (rl78_analyze_frame_prologue): Likewise.
808 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
809 (ppc_supply_fpregset): Likewise.
810 (ppc_supply_vsxregset): Likewise.
811 (ppc_supply_vrregset): Likewise.
812 (ppc_collect_gregset): Likewise.
813 (ppc_collect_fpregset): Likewise.
814 (ppc_collect_vsxregset): Likewise.
815 (ppc_collect_vrregset): Likewise.
816 (e500_move_ev_register): Likewise.
817 (do_regcache_raw_write): Likewise.
818 (rs6000_frame_cache): Likewise.
819 (rs6000_epilogue_frame_cache): Likewise.
820 (rs6000_gdbarch_init): Likewise.
821 * rx-tdep.c (rx_get_opcode_byte): Likewise.
822 (rx_analyze_frame_prologue): Likewise.
823 (rx_frame_type): Likewise.
824 (rx_frame_sniffer_common): Likewise.
825 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
826 (s390_frame_unwind_cache): Likewise.
827 (s390_stub_frame_unwind_cache): Likewise.
828 (s390_sigtramp_frame_unwind_cache): Likewise.
829 * score-tdep.c (score_make_prologue_cache): Likewise.
830 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
831 (sentinel_frame_prev_arch): Likewise.
832 * ser-base.c (fd_event): Likewise.
833 (push_event): Likewise.
834 (ser_base_write): Likewise.
835 * ser-pipe.c (pipe_close): Likewise.
836 * serial.c (serial_write): Likewise.
837 * sh-tdep.c (sh_frame_cache): Likewise.
838 (sh_stub_this_id): Likewise.
839 * sh64-tdep.c (sh64_frame_cache): Likewise.
840 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
841 (library_list_start_library): Likewise.
842 (library_list_start_list): Likewise.
843 (solib_aix_free_library_list): Likewise.
844 * solib-darwin.c (get_darwin_info): Likewise.
845 * solib-dsbt.c (get_dsbt_info): Likewise.
846 * solib-spu.c (append_ocl_sos): Likewise.
847 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
848 (get_svr4_info): Likewise.
849 (library_list_start_library): Likewise.
850 (svr4_library_list_start_list): Likewise.
851 (hash_probe_and_action): Likewise.
852 (equal_probe_and_action): Likewise.
853 (svr4_update_solib_event_breakpoint): Likewise.
854 (set_solib_svr4_fetch_link_map_offsets): Likewise.
855 (svr4_fetch_link_map_offsets): Likewise.
856 (svr4_have_link_map_offsets): Likewise.
857 * solib-target.c (library_list_start_segment): Likewise.
858 (library_list_start_section): Likewise.
859 (library_list_start_library): Likewise.
860 (library_list_end_library): Likewise.
861 (library_list_start_list): Likewise.
862 (solib_target_free_library_list): Likewise.
863 * solib.c (solib_ops): Likewise.
864 (set_solib_ops): Likewise.
865 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
866 * sparc-tdep.c (sparc_frame_cache): Likewise.
867 (sparc32_frame_cache): Likewise.
868 (sparc32_supply_gregset): Likewise.
869 (sparc32_collect_gregset): Likewise.
870 (sparc32_supply_fpregset): Likewise.
871 (sparc32_collect_fpregset): Likewise.
872 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
873 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
874 (sparc64_collect_gregset): Likewise.
875 (sparc64_supply_fpregset): Likewise.
876 (sparc64_collect_fpregset): Likewise.
877 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
878 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
879 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
880 (sparc64obsd_trapframe_cache): Likewise.
881 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
882 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
883 * spu-multiarch.c (spu_gdbarch): Likewise.
884 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
885 (spu2ppu_prev_arch): Likewise.
886 (spu2ppu_this_id): Likewise.
887 (spu2ppu_prev_register): Likewise.
888 (spu2ppu_dealloc_cache): Likewise.
889 (spu_dis_asm_print_address): Likewise.
890 (gdb_print_insn_spu): Likewise.
891 (spu_get_overlay_table): Likewise.
892 * stabsread.c (rs6000_builtin_type): Likewise.
893 * stack.c (do_print_variable_and_value): Likewise.
894 * stap-probe.c (get_stap_base_address_1): Likewise.
895 * symfile-debug.c (debug_qf_has_symbols): Likewise.
896 (debug_qf_find_last_source_symtab): Likewise.
897 (debug_qf_forget_cached_source_info): Likewise.
898 (debug_qf_map_symtabs_matching_filename): Likewise.
899 (debug_qf_lookup_symbol): Likewise.
900 (debug_qf_print_stats): Likewise.
901 (debug_qf_dump): Likewise.
902 (debug_qf_relocate): Likewise.
903 (debug_qf_expand_symtabs_for_function): Likewise.
904 (debug_qf_expand_all_symtabs): Likewise.
905 (debug_qf_expand_symtabs_with_fullname): Likewise.
906 (debug_qf_map_matching_symbols): Likewise.
907 (debug_qf_expand_symtabs_matching): Likewise.
908 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
909 (debug_qf_map_symbol_filenames): Likewise.
910 (debug_sym_get_probes): Likewise.
911 (debug_sym_new_init): Likewise.
912 (debug_sym_init): Likewise.
913 (debug_sym_read): Likewise.
914 (debug_sym_read_psymbols): Likewise.
915 (debug_sym_finish): Likewise.
916 (debug_sym_offsets): Likewise.
917 (debug_sym_read_linetable): Likewise.
918 (debug_sym_relocate): Likewise.
919 (uninstall_symfile_debug_logging): Likewise.
920 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
921 * symfile.c (place_section): Likewise.
922 (add_section_size_callback): Likewise.
923 (load_progress): Likewise.
924 (load_section_callback): Likewise.
925 (clear_memory_write_data): Likewise.
926 (allocate_symtab): Likewise.
927 * symmisc.c (maintenance_expand_file_matcher): Likewise.
928 * symtab.c (lookup_symtab_callback): Likewise.
929 (hash_demangled_name_entry): Likewise.
930 (eq_demangled_name_entry): Likewise.
931 (get_symbol_cache): Likewise.
932 (symbol_cache_cleanup): Likewise.
933 (set_symbol_cache_size): Likewise.
934 (symbol_cache_flush): Likewise.
935 (maintenance_print_symbol_cache): Likewise.
936 (maintenance_print_symbol_cache_statistics): Likewise.
937 (delete_filename_seen_cache): Likewise.
938 (output_partial_symbol_filename): Likewise.
939 (search_symbols_file_matches): Likewise.
940 (search_symbols_name_matches): Likewise.
941 (do_free_completion_list): Likewise.
942 (maybe_add_partial_symtab_filename): Likewise.
943 (get_main_info): Likewise.
944 (main_info_cleanup): Likewise.
945 * target-dcache.c (target_dcache_cleanup): Likewise.
946 (target_dcache_init_p): Likewise.
947 (target_dcache_invalidate): Likewise.
948 (target_dcache_get): Likewise.
949 (target_dcache_get_or_init): Likewise.
950 * target-descriptions.c (target_find_description): Likewise.
951 (tdesc_find_type): Likewise.
952 (tdesc_data_cleanup): Likewise.
953 (tdesc_find_arch_register): Likewise.
954 (tdesc_register_name): Likewise.
955 (tdesc_register_type): Likewise.
956 (tdesc_register_reggroup_p): Likewise.
957 (set_tdesc_pseudo_register_name): Likewise.
958 (set_tdesc_pseudo_register_type): Likewise.
959 (set_tdesc_pseudo_register_reggroup_p): Likewise.
960 (tdesc_use_registers): Likewise.
961 (free_target_description): Likewise.
962 * target-memory.c (compare_block_starting_address): Likewise.
963 (cleanup_request_data): Likewise.
964 (cleanup_write_requests_vector): Likewise.
965 * target.c (open_target): Likewise.
966 (cleanup_restore_target_terminal): Likewise.
967 (free_memory_read_result_vector): Likewise.
968 * thread.c (disable_thread_stack_temporaries): Likewise.
969 (finish_thread_state_cleanup): Likewise.
970 (do_restore_current_thread_cleanup): Likewise.
971 (restore_current_thread_cleanup_dtor): Likewise.
972 (set_thread_refcount): Likewise.
973 (tp_array_compar): Likewise.
974 (do_captured_thread_select): Likewise.
975 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
976 (tic6x_stub_this_id): Likewise.
977 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
978 * top.c (do_restore_instream_cleanup): Likewise.
979 (gdb_readline_wrapper_cleanup): Likewise.
980 (kill_or_detach): Likewise.
981 (print_inferior_quit_action): Likewise.
982 * tracefile-tfile.c (match_blocktype): Likewise.
983 (build_traceframe_info): Likewise.
984 * tracefile.c (trace_file_writer_xfree): Likewise.
985 * tracepoint.c (memrange_cmp): Likewise.
986 (do_collect_symbol): Likewise.
987 (do_clear_collection_list): Likewise.
988 (do_restore_current_traceframe_cleanup): Likewise.
989 (restore_current_traceframe_cleanup_dtor): Likewise.
990 (free_current_marker): Likewise.
991 (traceframe_info_start_memory): Likewise.
992 (traceframe_info_start_tvar): Likewise.
993 (free_result): Likewise.
994 * tramp-frame.c (tramp_frame_cache): Likewise.
995 * tui/tui-file.c (tui_file_delete): Likewise.
996 (tui_fileopen): Likewise.
997 (tui_sfileopen): Likewise.
998 (tui_file_isatty): Likewise.
999 (tui_file_rewind): Likewise.
1000 (tui_file_put): Likewise.
1001 (tui_file_fputs): Likewise.
1002 (tui_file_get_strbuf): Likewise.
1003 (tui_file_adjust_strbuf): Likewise.
1004 (tui_file_flush): Likewise.
1005 * tui/tui-layout.c (make_command_window): Likewise.
1006 (make_data_window): Likewise.
1007 (show_source_disasm_command): Likewise.
1008 (show_data): Likewise.
1009 (make_source_or_disasm_window): Likewise.
1010 (show_source_or_disasm_and_command): Likewise.
1011 * tui/tui-out.c (tui_field_int): Likewise.
1012 (tui_field_string): Likewise.
1013 (tui_field_fmt): Likewise.
1014 (tui_text): Likewise.
1015 * typeprint.c (hash_typedef_field): Likewise.
1016 (eq_typedef_field): Likewise.
1017 (do_free_typedef_hash): Likewise.
1018 (copy_typedef_hash_element): Likewise.
1019 (do_free_global_table): Likewise.
1020 (find_global_typedef): Likewise.
1021 (find_typedef_in_hash): Likewise.
1022 * ui-file.c (ui_file_write_for_put): Likewise.
1023 (do_ui_file_xstrdup): Likewise.
1024 (mem_file_delete): Likewise.
1025 (mem_file_rewind): Likewise.
1026 (mem_file_put): Likewise.
1027 (mem_file_write): Likewise.
1028 (stdio_file_delete): Likewise.
1029 (stdio_file_flush): Likewise.
1030 (stdio_file_read): Likewise.
1031 (stdio_file_write): Likewise.
1032 (stdio_file_write_async_safe): Likewise.
1033 (stdio_file_fputs): Likewise.
1034 (stdio_file_isatty): Likewise.
1035 (stdio_file_fseek): Likewise.
1036 (tee_file_delete): Likewise.
1037 (tee_file_flush): Likewise.
1038 (tee_file_write): Likewise.
1039 (tee_file_fputs): Likewise.
1040 (tee_file_isatty): Likewise.
1041 * ui-out.c (do_cleanup_table_end): Likewise.
1042 (do_cleanup_end): Likewise.
1043 * user-regs.c (user_reg_add): Likewise.
1044 (user_reg_map_name_to_regnum): Likewise.
1045 (usernum_to_user_reg): Likewise.
1046 (maintenance_print_user_registers): Likewise.
1047 * utils.c (do_bfd_close_cleanup): Likewise.
1048 (do_fclose_cleanup): Likewise.
1049 (do_obstack_free): Likewise.
1050 (do_ui_file_delete): Likewise.
1051 (do_ui_out_redirect_pop): Likewise.
1052 (do_free_section_addr_info): Likewise.
1053 (restore_integer): Likewise.
1054 (do_unpush_target): Likewise.
1055 (do_htab_delete_cleanup): Likewise.
1056 (do_restore_ui_file): Likewise.
1057 (do_value_free): Likewise.
1058 (do_free_so): Likewise.
1059 (free_current_contents): Likewise.
1060 (do_regfree_cleanup): Likewise.
1061 (core_addr_hash): Likewise.
1062 (core_addr_eq): Likewise.
1063 (do_free_char_ptr_vec): Likewise.
1064 * v850-tdep.c (v850_frame_cache): Likewise.
1065 * varobj.c (do_free_variable_cleanup): Likewise.
1066 * vax-tdep.c (vax_supply_gregset): Likewise.
1067 (vax_frame_cache): Likewise.
1068 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1069 * xml-support.c (gdb_xml_body_text): Likewise.
1070 (gdb_xml_values_cleanup): Likewise.
1071 (gdb_xml_start_element): Likewise.
1072 (gdb_xml_start_element_wrapper): Likewise.
1073 (gdb_xml_end_element): Likewise.
1074 (gdb_xml_end_element_wrapper): Likewise.
1075 (gdb_xml_cleanup): Likewise.
1076 (gdb_xml_fetch_external_entity): Likewise.
1077 (gdb_xml_parse_attr_enum): Likewise.
1078 (xinclude_start_include): Likewise.
1079 (xinclude_end_include): Likewise.
1080 (xml_xinclude_default): Likewise.
1081 (xml_xinclude_start_doctype): Likewise.
1082 (xml_xinclude_end_doctype): Likewise.
1083 (xml_xinclude_cleanup): Likewise.
1084 (xml_fetch_content_from_file): Likewise.
1085 * xml-syscall.c (free_syscalls_info): Likewise.
1086 (syscall_start_syscall): Likewise.
1087 * xml-tdesc.c (tdesc_end_arch): Likewise.
1088 (tdesc_end_osabi): Likewise.
1089 (tdesc_end_compatible): Likewise.
1090 (tdesc_start_target): Likewise.
1091 (tdesc_start_feature): Likewise.
1092 (tdesc_start_reg): Likewise.
1093 (tdesc_start_union): Likewise.
1094 (tdesc_start_struct): Likewise.
1095 (tdesc_start_flags): Likewise.
1096 (tdesc_start_field): Likewise.
1097 (tdesc_start_vector): Likewise.
1098 (fetch_available_features_from_target): Likewise.
1099 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1100 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1101 (xtensa_frame_cache): Likewise.
1102 (xtensa_frame_prev_register): Likewise.
1103 (xtensa_extract_return_value): Likewise.
1104
9a3c8263
SM
11052015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1106
1107 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1108 (aarch64_make_stub_cache): Likewise.
1109 (value_of_aarch64_user_reg): Likewise.
1110 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1111 (get_ada_inferior_data): Likewise.
1112 (get_ada_pspace_data): Likewise.
1113 (ada_pspace_data_cleanup): Likewise.
1114 (ada_complete_symbol_matcher): Likewise.
1115 (ada_exc_search_name_matches): Likewise.
1116 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1117 (get_ada_tasks_inferior_data): Likewise.
1118 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1119 (splay_obstack_alloc): Likewise.
1120 (splay_obstack_free): Likewise.
1121 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1122 (alpha_linux_collect_gregset): Likewise.
1123 (alpha_linux_supply_fpregset): Likewise.
1124 (alpha_linux_collect_fpregset): Likewise.
1125 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1126 * alpha-tdep.c (alpha_lds): Likewise.
1127 (alpha_sts): Likewise.
1128 (alpha_sigtramp_frame_unwind_cache): Likewise.
1129 (alpha_heuristic_frame_unwind_cache): Likewise.
1130 (alpha_supply_int_regs): Likewise.
1131 (alpha_fill_int_regs): Likewise.
1132 (alpha_supply_fp_regs): Likewise.
1133 (alpha_fill_fp_regs): Likewise.
1134 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1135 (alphanbsd_aout_supply_gregset): Likewise.
1136 (alphanbsd_supply_gregset): Likewise.
1137 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1138 (amd64_x32_linux_init_abi): Likewise.
1139 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1140 (amd64_collect_native_gregset): Likewise.
1141 * amd64-tdep.c (amd64_frame_cache): Likewise.
1142 (amd64_sigtramp_frame_cache): Likewise.
1143 (amd64_epilogue_frame_cache): Likewise.
1144 (amd64_supply_fxsave): Likewise.
1145 (amd64_supply_xsave): Likewise.
1146 (amd64_collect_fxsave): Likewise.
1147 (amd64_collect_xsave): Likewise.
1148 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1149 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1150 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1151 (arm_linux_collect_gregset): Likewise.
1152 (arm_linux_supply_nwfpe): Likewise.
1153 (arm_linux_collect_nwfpe): Likewise.
1154 (arm_linux_supply_vfp): Likewise.
1155 (arm_linux_collect_vfp): Likewise.
1156 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1157 (arm_prologue_unwind_stop_reason): Likewise.
1158 (arm_prologue_this_id): Likewise.
1159 (arm_prologue_prev_register): Likewise.
1160 (arm_exidx_data_free): Likewise.
1161 (arm_find_exidx_entry): Likewise.
1162 (arm_stub_this_id): Likewise.
1163 (arm_m_exception_this_id): Likewise.
1164 (arm_m_exception_prev_register): Likewise.
1165 (arm_normal_frame_base): Likewise.
1166 (gdb_print_insn_arm): Likewise.
1167 (arm_objfile_data_free): Likewise.
1168 (arm_record_special_symbol): Likewise.
1169 (value_of_arm_user_reg): Likewise.
1170 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1171 (armbsd_supply_gregset): Likewise.
1172 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1173 (get_auto_load_pspace_data): Likewise.
1174 (hash_loaded_script_entry): Likewise.
1175 (eq_loaded_script_entry): Likewise.
1176 (clear_section_scripts): Likewise.
1177 (collect_matching_scripts): Likewise.
1178 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1179 (get_auxv_inferior_data): Likewise.
1180 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1181 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1182 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1183 (target_bfd_xclose): Likewise.
1184 (target_bfd_get_section_table): Likewise.
1185 * bfin-tdep.c (bfin_frame_cache): Likewise.
1186 * block.c (find_block_in_blockvector): Likewise.
1187 (call_site_for_pc): Likewise.
1188 (block_find_non_opaque_type_preferred): Likewise.
1189 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1190 (signal_catchpoint_remove_location): Likewise.
1191 (signal_catchpoint_breakpoint_hit): Likewise.
1192 (signal_catchpoint_print_one): Likewise.
1193 (signal_catchpoint_print_mention): Likewise.
1194 (signal_catchpoint_print_recreate): Likewise.
1195 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1196 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1197 (bp_location_compare_addrs): Likewise.
1198 (get_first_locp_gte_addr): Likewise.
1199 (check_tracepoint_command): Likewise.
1200 (do_map_commands_command): Likewise.
1201 (get_breakpoint_objfile_data): Likewise.
1202 (free_breakpoint_probes): Likewise.
1203 (do_captured_breakpoint_query): Likewise.
1204 (compare_breakpoints): Likewise.
1205 (bp_location_compare): Likewise.
1206 (bpstat_remove_breakpoint_callback): Likewise.
1207 (do_delete_breakpoint_cleanup): Likewise.
1208 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1209 (bsd_uthread_set_collect_uthread): Likewise.
1210 (bsd_uthread_activate): Likewise.
1211 (bsd_uthread_fetch_registers): Likewise.
1212 (bsd_uthread_store_registers): Likewise.
1213 * btrace.c (check_xml_btrace_version): Likewise.
1214 (parse_xml_btrace_block): Likewise.
1215 (parse_xml_btrace_pt_config_cpu): Likewise.
1216 (parse_xml_btrace_pt_raw): Likewise.
1217 (parse_xml_btrace_pt): Likewise.
1218 (parse_xml_btrace_conf_bts): Likewise.
1219 (parse_xml_btrace_conf_pt): Likewise.
1220 (do_btrace_data_cleanup): Likewise.
1221 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1222 * charset.c (cleanup_iconv): Likewise.
1223 (do_cleanup_iterator): Likewise.
1224 * cli-out.c (cli_uiout_dtor): Likewise.
1225 (cli_table_begin): Likewise.
1226 (cli_table_body): Likewise.
1227 (cli_table_end): Likewise.
1228 (cli_table_header): Likewise.
1229 (cli_begin): Likewise.
1230 (cli_end): Likewise.
1231 (cli_field_int): Likewise.
1232 (cli_field_skip): Likewise.
1233 (cli_field_string): Likewise.
1234 (cli_field_fmt): Likewise.
1235 (cli_spaces): Likewise.
1236 (cli_text): Likewise.
1237 (cli_message): Likewise.
1238 (cli_wrap_hint): Likewise.
1239 (cli_flush): Likewise.
1240 (cli_redirect): Likewise.
1241 (out_field_fmt): Likewise.
1242 (field_separator): Likewise.
1243 (cli_out_set_stream): Likewise.
1244 * cli/cli-cmds.c (compare_symtabs): Likewise.
1245 * cli/cli-dump.c (call_dump_func): Likewise.
1246 (restore_section_callback): Likewise.
1247 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1248 (do_restore_user_call_depth): Likewise.
1249 (do_free_command_lines_cleanup): Likewise.
1250 * coff-pe-read.c (get_section_vmas): Likewise.
1251 (pe_as16): Likewise.
1252 (pe_as32): Likewise.
1253 * coffread.c (coff_symfile_read): Likewise.
1254 * common/agent.c (agent_look_up_symbols): Likewise.
1255 * common/filestuff.c (do_close_cleanup): Likewise.
1256 * common/format.c (free_format_pieces_cleanup): Likewise.
1257 * common/vec.c (vec_o_reserve): Likewise.
1258 * compile/compile-c-support.c (print_one_macro): Likewise.
1259 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1260 (eq_symbol_error): Likewise.
1261 (del_symbol_error): Likewise.
1262 (error_symbol_once): Likewise.
1263 (gcc_convert_symbol): Likewise.
1264 (gcc_symbol_address): Likewise.
1265 (hash_symname): Likewise.
1266 (eq_symname): Likewise.
1267 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1268 (eq_type_map_instance): Likewise.
1269 (insert_type): Likewise.
1270 (convert_type): Likewise.
1271 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1272 (setup_sections): Likewise.
1273 (link_hash_table_free): Likewise.
1274 (copy_sections): Likewise.
1275 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1276 * compile/compile.c (compile_print_value): Likewise.
1277 (do_rmdir): Likewise.
1278 (cleanup_compile_instance): Likewise.
1279 (cleanup_unlink_file): Likewise.
1280 * completer.c (free_completion_tracker): Likewise.
1281 * corelow.c (add_to_spuid_list): Likewise.
1282 * cp-namespace.c (reset_directive_searched): Likewise.
1283 * cp-support.c (reset_directive_searched): Likewise.
1284 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1285 (cris_frame_unwind_cache): Likewise.
1286 * d-lang.c (builtin_d_type): Likewise.
1287 * d-namespace.c (reset_directive_searched): Likewise.
1288 * dbxread.c (dbx_free_symfile_info): Likewise.
1289 (do_free_bincl_list_cleanup): Likewise.
1290 * disasm.c (hash_dis_line_entry): Likewise.
1291 (eq_dis_line_entry): Likewise.
1292 (dis_asm_print_address): Likewise.
1293 (fprintf_disasm): Likewise.
1294 (do_ui_file_delete): Likewise.
1295 * doublest.c (convert_floatformat_to_doublest): Likewise.
1296 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1297 (dummy_frame_prev_register): Likewise.
1298 (dummy_frame_this_id): Likewise.
1299 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1300 (cache_eq): Likewise.
1301 (cache_find): Likewise.
1302 (tailcall_frame_this_id): Likewise.
1303 (dwarf2_tailcall_prev_register_first): Likewise.
1304 (tailcall_frame_prev_register): Likewise.
1305 (tailcall_frame_dealloc_cache): Likewise.
1306 (tailcall_frame_prev_arch): Likewise.
1307 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1308 (dwarf2_frame_set_init_reg): Likewise.
1309 (dwarf2_frame_init_reg): Likewise.
1310 (dwarf2_frame_set_signal_frame_p): Likewise.
1311 (dwarf2_frame_signal_frame_p): Likewise.
1312 (dwarf2_frame_set_adjust_regnum): Likewise.
1313 (dwarf2_frame_adjust_regnum): Likewise.
1314 (clear_pointer_cleanup): Likewise.
1315 (dwarf2_frame_cache): Likewise.
1316 (find_cie): Likewise.
1317 (dwarf2_frame_find_fde): Likewise.
1318 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1319 (free_dwarf_expr_context_cleanup): Likewise.
1320 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1321 (locexpr_get_frame_base): Likewise.
1322 (loclist_find_frame_base_location): Likewise.
1323 (loclist_get_frame_base): Likewise.
1324 (dwarf_expr_dwarf_call): Likewise.
1325 (dwarf_expr_get_base_type): Likewise.
1326 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1327 (dwarf_expr_get_obj_addr): Likewise.
1328 (entry_data_value_coerce_ref): Likewise.
1329 (entry_data_value_copy_closure): Likewise.
1330 (entry_data_value_free_closure): Likewise.
1331 (get_frame_address_in_block_wrapper): Likewise.
1332 (dwarf2_evaluate_property): Likewise.
1333 (dwarf2_compile_property_to_c): Likewise.
1334 (needs_frame_read_addr_from_reg): Likewise.
1335 (needs_frame_get_reg_value): Likewise.
1336 (needs_frame_frame_base): Likewise.
1337 (needs_frame_frame_cfa): Likewise.
1338 (needs_frame_tls_address): Likewise.
1339 (needs_frame_dwarf_call): Likewise.
1340 (needs_dwarf_reg_entry_value): Likewise.
1341 (get_ax_pc): Likewise.
1342 (locexpr_read_variable): Likewise.
1343 (locexpr_read_variable_at_entry): Likewise.
1344 (locexpr_read_needs_frame): Likewise.
1345 (locexpr_describe_location): Likewise.
1346 (locexpr_tracepoint_var_ref): Likewise.
1347 (locexpr_generate_c_location): Likewise.
1348 (loclist_read_variable): Likewise.
1349 (loclist_read_variable_at_entry): Likewise.
1350 (loclist_describe_location): Likewise.
1351 (loclist_tracepoint_var_ref): Likewise.
1352 (loclist_generate_c_location): Likewise.
1353 * dwarf2read.c (line_header_hash_voidp): Likewise.
1354 (line_header_eq_voidp): Likewise.
1355 (dwarf2_has_info): Likewise.
1356 (dwarf2_get_section_info): Likewise.
1357 (locate_dwz_sections): Likewise.
1358 (hash_file_name_entry): Likewise.
1359 (eq_file_name_entry): Likewise.
1360 (delete_file_name_entry): Likewise.
1361 (dw2_setup): Likewise.
1362 (dw2_get_file_names_reader): Likewise.
1363 (dw2_find_pc_sect_compunit_symtab): Likewise.
1364 (hash_signatured_type): Likewise.
1365 (eq_signatured_type): Likewise.
1366 (add_signatured_type_cu_to_table): Likewise.
1367 (create_debug_types_hash_table): Likewise.
1368 (lookup_dwo_signatured_type): Likewise.
1369 (lookup_dwp_signatured_type): Likewise.
1370 (lookup_signatured_type): Likewise.
1371 (hash_type_unit_group): Likewise.
1372 (eq_type_unit_group): Likewise.
1373 (get_type_unit_group): Likewise.
1374 (process_psymtab_comp_unit_reader): Likewise.
1375 (sort_tu_by_abbrev_offset): Likewise.
1376 (process_skeletonless_type_unit): Likewise.
1377 (psymtabs_addrmap_cleanup): Likewise.
1378 (dwarf2_read_symtab): Likewise.
1379 (psymtab_to_symtab_1): Likewise.
1380 (die_hash): Likewise.
1381 (die_eq): Likewise.
1382 (load_full_comp_unit_reader): Likewise.
1383 (reset_die_in_process): Likewise.
1384 (free_cu_line_header): Likewise.
1385 (handle_DW_AT_stmt_list): Likewise.
1386 (hash_dwo_file): Likewise.
1387 (eq_dwo_file): Likewise.
1388 (hash_dwo_unit): Likewise.
1389 (eq_dwo_unit): Likewise.
1390 (create_dwo_cu_reader): Likewise.
1391 (create_dwo_unit_in_dwp_v1): Likewise.
1392 (create_dwo_unit_in_dwp_v2): Likewise.
1393 (lookup_dwo_unit_in_dwp): Likewise.
1394 (dwarf2_locate_dwo_sections): Likewise.
1395 (dwarf2_locate_common_dwp_sections): Likewise.
1396 (dwarf2_locate_v2_dwp_sections): Likewise.
1397 (hash_dwp_loaded_cutus): Likewise.
1398 (eq_dwp_loaded_cutus): Likewise.
1399 (lookup_dwo_cutu): Likewise.
1400 (abbrev_table_free_cleanup): Likewise.
1401 (dwarf2_free_abbrev_table): Likewise.
1402 (find_partial_die_in_comp_unit): Likewise.
1403 (free_line_header_voidp): Likewise.
1404 (follow_die_offset): Likewise.
1405 (follow_die_sig_1): Likewise.
1406 (free_heap_comp_unit): Likewise.
1407 (free_stack_comp_unit): Likewise.
1408 (dwarf2_free_objfile): Likewise.
1409 (per_cu_offset_and_type_hash): Likewise.
1410 (per_cu_offset_and_type_eq): Likewise.
1411 (get_die_type_at_offset): Likewise.
1412 (partial_die_hash): Likewise.
1413 (partial_die_eq): Likewise.
1414 (dwarf2_per_objfile_free): Likewise.
1415 (hash_strtab_entry): Likewise.
1416 (eq_strtab_entry): Likewise.
1417 (add_string): Likewise.
1418 (hash_symtab_entry): Likewise.
1419 (eq_symtab_entry): Likewise.
1420 (delete_symtab_entry): Likewise.
1421 (cleanup_mapped_symtab): Likewise.
1422 (add_indices_to_cpool): Likewise.
1423 (hash_psymtab_cu_index): Likewise.
1424 (eq_psymtab_cu_index): Likewise.
1425 (add_address_entry_worker): Likewise.
1426 (unlink_if_set): Likewise.
1427 (write_one_signatured_type): Likewise.
1428 (save_gdb_index_command): Likewise.
1429 * elfread.c (elf_symtab_read): Likewise.
1430 (elf_gnu_ifunc_cache_hash): Likewise.
1431 (elf_gnu_ifunc_cache_eq): Likewise.
1432 (elf_gnu_ifunc_record_cache): Likewise.
1433 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1434 (elf_get_probes): Likewise.
1435 (probe_key_free): Likewise.
1436 * f-lang.c (builtin_f_type): Likewise.
1437 * frame-base.c (frame_base_append_sniffer): Likewise.
1438 (frame_base_set_default): Likewise.
1439 (frame_base_find_by_frame): Likewise.
1440 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1441 (frame_unwind_append_unwinder): Likewise.
1442 (frame_unwind_find_by_frame): Likewise.
1443 * frame.c (frame_addr_hash): Likewise.
1444 (frame_addr_hash_eq): Likewise.
1445 (frame_stash_find): Likewise.
1446 (do_frame_register_read): Likewise.
1447 (unwind_to_current_frame): Likewise.
1448 (frame_cleanup_after_sniffer): Likewise.
1449 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1450 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1451 * ft32-tdep.c (ft32_frame_cache): Likewise.
1452 * gcore.c (do_bfd_delete_cleanup): Likewise.
1453 (gcore_create_callback): Likewise.
1454 * gdb_bfd.c (hash_bfd): Likewise.
1455 (eq_bfd): Likewise.
1456 (gdb_bfd_open): Likewise.
1457 (free_one_bfd_section): Likewise.
1458 (gdb_bfd_ref): Likewise.
1459 (gdb_bfd_unref): Likewise.
1460 (get_section_descriptor): Likewise.
1461 (gdb_bfd_map_section): Likewise.
1462 (gdb_bfd_crc): Likewise.
1463 (gdb_bfd_mark_parent): Likewise.
1464 (gdb_bfd_record_inclusion): Likewise.
1465 (gdb_bfd_requires_relocations): Likewise.
1466 (print_one_bfd): Likewise.
1467 * gdbtypes.c (type_pair_hash): Likewise.
1468 (type_pair_eq): Likewise.
1469 (builtin_type): Likewise.
1470 (objfile_type): Likewise.
1471 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1472 (vtable_address_point_offset): Likewise.
1473 (gnuv3_get_vtable): Likewise.
1474 (hash_value_and_voffset): Likewise.
1475 (eq_value_and_voffset): Likewise.
1476 (compare_value_and_voffset): Likewise.
1477 (compute_vtable_size): Likewise.
1478 (gnuv3_get_typeid_type): Likewise.
1479 * go-lang.c (builtin_go_type): Likewise.
1480 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1481 (bkscm_eq_block_smob): Likewise.
1482 (bkscm_objfile_block_map): Likewise.
1483 (bkscm_del_objfile_blocks): Likewise.
1484 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1485 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1486 (gdbscm_disasm_print_address): Likewise.
1487 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1488 (frscm_eq_frame_smob): Likewise.
1489 (frscm_inferior_frame_map): Likewise.
1490 (frscm_del_inferior_frames): Likewise.
1491 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1492 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1493 (ofscm_objfile_smob_from_objfile): Likewise.
1494 * guile/scm-ports.c (ioscm_write): Likewise.
1495 (ioscm_file_port_delete): Likewise.
1496 (ioscm_file_port_rewind): Likewise.
1497 (ioscm_file_port_put): Likewise.
1498 (ioscm_file_port_write): Likewise.
1499 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1500 (psscm_pspace_smob_from_pspace): Likewise.
1501 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1502 (scscm_recording_unwind_handler): Likewise.
1503 (gdbscm_with_catch): Likewise.
1504 (scscm_call_0_body): Likewise.
1505 (scscm_call_1_body): Likewise.
1506 (scscm_call_2_body): Likewise.
1507 (scscm_call_3_body): Likewise.
1508 (scscm_call_4_body): Likewise.
1509 (scscm_apply_1_body): Likewise.
1510 (scscm_eval_scheme_string): Likewise.
1511 (gdbscm_safe_eval_string): Likewise.
1512 (scscm_source_scheme_script): Likewise.
1513 (gdbscm_safe_source_script): Likewise.
1514 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1515 (gdbscm_call_scm_from_stringn): Likewise.
1516 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1517 (syscm_eq_symbol_smob): Likewise.
1518 (syscm_get_symbol_map): Likewise.
1519 (syscm_del_objfile_symbols): Likewise.
1520 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1521 (stscm_eq_symtab_smob): Likewise.
1522 (stscm_objfile_symtab_map): Likewise.
1523 (stscm_del_objfile_symtabs): Likewise.
1524 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1525 (tyscm_eq_type_smob): Likewise.
1526 (tyscm_type_map): Likewise.
1527 (tyscm_copy_type_recursive): Likewise.
1528 (save_objfile_types): Likewise.
1529 * guile/scm-utils.c (extract_arg): Likewise.
1530 * h8300-tdep.c (h8300_frame_cache): Likewise.
1531 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1532 * hppa-tdep.c (compare_unwind_entries): Likewise.
1533 (find_unwind_entry): Likewise.
1534 (hppa_frame_cache): Likewise.
1535 (hppa_stub_frame_unwind_cache): Likewise.
1536 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1537 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1538 (hppaobsd_supply_fpregset): Likewise.
1539 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1540 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1541 * i386-tdep.c (i386_frame_cache): Likewise.
1542 (i386_epilogue_frame_cache): Likewise.
1543 (i386_sigtramp_frame_cache): Likewise.
1544 (i386_supply_gregset): Likewise.
1545 (i386_collect_gregset): Likewise.
1546 (i386_gdbarch_init): Likewise.
1547 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1548 (i386obsd_trapframe_cache): Likewise.
1549 * i387-tdep.c (i387_supply_fsave): Likewise.
1550 (i387_collect_fsave): Likewise.
1551 (i387_supply_fxsave): Likewise.
1552 (i387_collect_fxsave): Likewise.
1553 (i387_supply_xsave): Likewise.
1554 (i387_collect_xsave): Likewise.
1555 * ia64-tdep.c (ia64_frame_cache): Likewise.
1556 (ia64_sigtramp_frame_cache): Likewise.
1557 * infcmd.c (attach_command_continuation): Likewise.
1558 (attach_command_continuation_free_args): Likewise.
1559 * inferior.c (restore_inferior): Likewise.
1560 (delete_thread_of_inferior): Likewise.
1561 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1562 (get_inflow_inferior_data): Likewise.
1563 (inflow_inferior_exit): Likewise.
1564 * infrun.c (displaced_step_clear_cleanup): Likewise.
1565 (restore_current_uiout_cleanup): Likewise.
1566 (release_stop_context_cleanup): Likewise.
1567 (do_restore_infcall_suspend_state_cleanup): Likewise.
1568 (do_restore_infcall_control_state_cleanup): Likewise.
1569 (restore_inferior_ptid): Likewise.
1570 * inline-frame.c (block_starting_point_at): Likewise.
1571 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1572 * jit.c (get_jit_objfile_data): Likewise.
1573 (get_jit_program_space_data): Likewise.
1574 (jit_object_close_impl): Likewise.
1575 (jit_find_objf_with_entry_addr): Likewise.
1576 (jit_breakpoint_deleted): Likewise.
1577 (jit_unwind_reg_set_impl): Likewise.
1578 (jit_unwind_reg_get_impl): Likewise.
1579 (jit_dealloc_cache): Likewise.
1580 (jit_frame_sniffer): Likewise.
1581 (jit_frame_prev_register): Likewise.
1582 (jit_prepend_unwinder): Likewise.
1583 (jit_inferior_exit_hook): Likewise.
1584 (free_objfile_data): Likewise.
1585 * jv-lang.c (jv_per_objfile_free): Likewise.
1586 (get_dynamics_objfile): Likewise.
1587 (get_java_class_symtab): Likewise.
1588 (builtin_java_type): Likewise.
1589 * language.c (language_string_char_type): Likewise.
1590 (language_bool_type): Likewise.
1591 (language_lookup_primitive_type): Likewise.
1592 (language_lookup_primitive_type_as_symbol): Likewise.
1593 * linespec.c (hash_address_entry): Likewise.
1594 (eq_address_entry): Likewise.
1595 (iterate_inline_only): Likewise.
1596 (iterate_name_matcher): Likewise.
1597 (decode_line_2_compare_items): Likewise.
1598 (collect_one_symbol): Likewise.
1599 (compare_symbols): Likewise.
1600 (compare_msymbols): Likewise.
1601 (add_symtabs_to_list): Likewise.
1602 (collect_symbols): Likewise.
1603 (compare_msyms): Likewise.
1604 (add_minsym): Likewise.
1605 (cleanup_linespec_result): Likewise.
1606 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1607 * linux-nat.c (delete_lwp_cleanup): Likewise.
1608 (count_events_callback): Likewise.
1609 (select_event_lwp_callback): Likewise.
1610 (resume_stopped_resumed_lwps): Likewise.
1611 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1612 (invalidate_linux_cache_inf): Likewise.
1613 (get_linux_inferior_data): Likewise.
1614 (linux_find_memory_regions_thunk): Likewise.
1615 (linux_make_mappings_callback): Likewise.
1616 (linux_corefile_thread_callback): Likewise.
1617 (find_mapping_size): Likewise.
1618 * linux-thread-db.c (find_new_threads_callback): Likewise.
1619 * lm32-tdep.c (lm32_frame_cache): Likewise.
1620 * m2-lang.c (builtin_m2_type): Likewise.
1621 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1622 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1623 (m32r_linux_supply_gregset): Likewise.
1624 (m32r_linux_collect_gregset): Likewise.
1625 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1626 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1627 * m68k-tdep.c (m68k_frame_cache): Likewise.
1628 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1629 (m68kbsd_supply_gregset): Likewise.
1630 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1631 * m88k-tdep.c (m88k_frame_cache): Likewise.
1632 (m88k_supply_gregset): Likewise.
1633
224c3ddb
SM
16342015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1635
1636 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1637 to allocation result assignment.
1638 * ada-exp.y (write_object_renaming): Likewise.
1639 (write_ambiguous_var): Likewise.
1640 (ada_nget_field_index): Likewise.
1641 (write_var_or_type): Likewise.
1642 * ada-lang.c (ada_decode_symbol): Likewise.
1643 (ada_value_assign): Likewise.
1644 (value_pointer): Likewise.
1645 (cache_symbol): Likewise.
1646 (add_nonlocal_symbols): Likewise.
1647 (ada_name_for_lookup): Likewise.
1648 (symbol_completion_add): Likewise.
1649 (ada_to_fixed_type_1): Likewise.
1650 (ada_get_next_arg): Likewise.
1651 (defns_collected): Likewise.
1652 * ada-lex.l (processId): Likewise.
1653 (processString): Likewise.
1654 * ada-tasks.c (read_known_tasks_array): Likewise.
1655 (read_known_tasks_list): Likewise.
1656 * ada-typeprint.c (decoded_type_name): Likewise.
1657 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1658 * amd64-tdep.c (amd64_push_arguments): Likewise.
1659 (amd64_displaced_step_copy_insn): Likewise.
1660 (amd64_classify_insn_at): Likewise.
1661 (amd64_relocate_instruction): Likewise.
1662 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1663 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1664 (initialize_current_architecture): Likewise.
1665 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1666 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1667 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1668 (arm_push_dummy_call): Likewise.
1669 (extend_buffer_earlier): Likewise.
1670 (arm_adjust_breakpoint_address): Likewise.
1671 (arm_skip_stub): Likewise.
1672 * auto-load.c (filename_is_in_pattern): Likewise.
1673 (maybe_add_script_file): Likewise.
1674 (maybe_add_script_text): Likewise.
1675 (auto_load_objfile_script_1): Likewise.
1676 * auxv.c (ld_so_xfer_auxv): Likewise.
1677 * ax-general.c (new_agent_expr): Likewise.
1678 (grow_expr): Likewise.
1679 (ax_reg_mask): Likewise.
1680 * bcache.c (bcache_full): Likewise.
1681 * breakpoint.c (program_breakpoint_here_p): Likewise.
1682 * btrace.c (parse_xml_raw): Likewise.
1683 * build-id.c (build_id_to_debug_bfd): Likewise.
1684 * buildsym.c (end_symtab_with_blockvector): Likewise.
1685 * c-exp.y (string_exp): Likewise.
1686 (qualified_name): Likewise.
1687 (write_destructor_name): Likewise.
1688 (operator_stoken): Likewise.
1689 (parse_number): Likewise.
1690 (scan_macro_expansion): Likewise.
1691 (yylex): Likewise.
1692 (c_print_token): Likewise.
1693 * c-lang.c (c_get_string): Likewise.
1694 (emit_numeric_character): Likewise.
1695 * charset.c (wchar_iterate): Likewise.
1696 * cli/cli-cmds.c (complete_command): Likewise.
1697 (make_command): Likewise.
1698 * cli/cli-dump.c (restore_section_callback): Likewise.
1699 (restore_binary_file): Likewise.
1700 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1701 * cli/cli-script.c (execute_control_command): Likewise.
1702 * cli/cli-setshow.c (do_set_command): Likewise.
1703 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1704 (read_pe_exported_syms): Likewise.
1705 * coffread.c (coff_read_struct_type): Likewise.
1706 (coff_read_enum_type): Likewise.
1707 * common/btrace-common.c (btrace_data_append): Likewise.
1708 * common/buffer.c (buffer_grow): Likewise.
1709 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1710 * common/format.c (parse_format_string): Likewise.
1711 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1712 * common/xml-utils.c (xml_escape_text): Likewise.
1713 * compile/compile-object-load.c (copy_sections): Likewise.
1714 (compile_object_load): Likewise.
1715 * compile/compile-object-run.c (compile_object_run): Likewise.
1716 * completer.c (filename_completer): Likewise.
1717 * corefile.c (read_memory_typed_address): Likewise.
1718 (write_memory_unsigned_integer): Likewise.
1719 (write_memory_signed_integer): Likewise.
1720 (complete_set_gnutarget): Likewise.
1721 * corelow.c (get_core_register_section): Likewise.
1722 * cp-name-parser.y (d_grab): Likewise.
1723 (allocate_info): Likewise.
1724 (cp_new_demangle_parse_info): Likewise.
1725 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1726 (cp_lookup_symbol_in_namespace): Likewise.
1727 (lookup_namespace_scope): Likewise.
1728 (find_symbol_in_baseclass): Likewise.
1729 (cp_lookup_nested_symbol): Likewise.
1730 (cp_lookup_transparent_type_loop): Likewise.
1731 * cp-support.c (copy_string_to_obstack): Likewise.
1732 (make_symbol_overload_list): Likewise.
1733 (make_symbol_overload_list_namespace): Likewise.
1734 (make_symbol_overload_list_adl_namespace): Likewise.
1735 (first_component_command): Likewise.
1736 * cp-valprint.c (cp_print_value): Likewise.
1737 * ctf.c (ctf_xfer_partial): Likewise.
1738 * d-exp.y (StringExp): Likewise.
1739 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1740 (lookup_module_scope): Likewise.
1741 (find_symbol_in_baseclass): Likewise.
1742 (d_lookup_nested_symbol): Likewise.
1743 * dbxread.c (find_stab_function_addr): Likewise.
1744 (read_dbx_symtab): Likewise.
1745 (dbx_end_psymtab): Likewise.
1746 (cp_set_block_scope): Likewise.
1747 * dcache.c (dcache_alloc): Likewise.
1748 * demangle.c (_initialize_demangler): Likewise.
1749 * dicos-tdep.c (dicos_load_module_p): Likewise.
1750 * dictionary.c (dict_create_hashed_expandable): Likewise.
1751 (dict_create_linear_expandable): Likewise.
1752 (expand_hashtable): Likewise.
1753 (add_symbol_linear_expandable): Likewise.
1754 * dwarf2-frame.c (add_cie): Likewise.
1755 (add_fde): Likewise.
1756 (dwarf2_build_frame_info): Likewise.
1757 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1758 (dwarf_expr_fetch_address): Likewise.
1759 (add_piece): Likewise.
1760 (execute_stack_op): Likewise.
1761 * dwarf2loc.c (chain_candidate): Likewise.
1762 (dwarf_entry_parameter_to_value): Likewise.
1763 (read_pieced_value): Likewise.
1764 (write_pieced_value): Likewise.
1765 * dwarf2read.c (dwarf2_read_section): Likewise.
1766 (add_type_unit): Likewise.
1767 (read_comp_units_from_section): Likewise.
1768 (fixup_go_packaging): Likewise.
1769 (dwarf2_compute_name): Likewise.
1770 (dwarf2_physname): Likewise.
1771 (create_dwo_unit_in_dwp_v1): Likewise.
1772 (create_dwo_unit_in_dwp_v2): Likewise.
1773 (read_func_scope): Likewise.
1774 (read_call_site_scope): Likewise.
1775 (dwarf2_attach_fields_to_type): Likewise.
1776 (process_structure_scope): Likewise.
1777 (mark_common_block_symbol_computed): Likewise.
1778 (read_common_block): Likewise.
1779 (abbrev_table_read_table): Likewise.
1780 (guess_partial_die_structure_name): Likewise.
1781 (fixup_partial_die): Likewise.
1782 (add_file_name): Likewise.
1783 (dwarf2_const_value_data): Likewise.
1784 (dwarf2_const_value_attr): Likewise.
1785 (build_error_marker_type): Likewise.
1786 (guess_full_die_structure_name): Likewise.
1787 (anonymous_struct_prefix): Likewise.
1788 (typename_concat): Likewise.
1789 (dwarf2_canonicalize_name): Likewise.
1790 (dwarf2_name): Likewise.
1791 (write_constant_as_bytes): Likewise.
1792 (dwarf2_fetch_constant_bytes): Likewise.
1793 (copy_string): Likewise.
1794 (parse_macro_definition): Likewise.
1795 * elfread.c (elf_symfile_segments): Likewise.
1796 (elf_rel_plt_read): Likewise.
1797 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1798 (elf_gnu_ifunc_resolve_by_got): Likewise.
1799 (elf_read_minimal_symbols): Likewise.
1800 (elf_gnu_ifunc_record_cache): Likewise.
1801 * event-top.c (top_level_prompt): Likewise.
1802 (command_line_handler): Likewise.
1803 * exec.c (resize_section_table): Likewise.
1804 * expprint.c (print_subexp_standard): Likewise.
1805 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1806 * findcmd.c (parse_find_args): Likewise.
1807 * findvar.c (address_from_register): Likewise.
1808 * frame.c (get_prev_frame_always): Likewise.
1809 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1810 (get_section_descriptor): Likewise.
1811 * gdb_obstack.c (obconcat): Likewise.
1812 (obstack_strdup): Likewise.
1813 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1814 (create_set_type): Likewise.
1815 (lookup_unsigned_typename): Likewise.
1816 (lookup_signed_typename): Likewise.
1817 (resolve_dynamic_union): Likewise.
1818 (resolve_dynamic_struct): Likewise.
1819 (add_dyn_prop): Likewise.
1820 (copy_dynamic_prop_list): Likewise.
1821 (arch_flags_type): Likewise.
1822 (append_composite_type_field_raw): Likewise.
1823 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1824 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1825 * go-exp.y (string_exp): Likewise.
1826 * go-lang.c (go_demangle): Likewise.
1827 * guile/guile.c (compute_scheme_string): Likewise.
1828 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1829 (gdbscm_canonicalize_command_name): Likewise.
1830 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1831 (ioscm_init_memory_port): Likewise.
1832 (ioscm_reinit_memory_port): Likewise.
1833 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1834 (gdbscm_gc_dup_argv): Likewise.
1835 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1836 * hppa-tdep.c (internalize_unwinds): Likewise.
1837 (read_unwind_info): Likewise.
1838 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1839 (windows_core_xfer_shared_libraries): Likewise.
1840 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1841 (i386_stap_parse_special_token_triplet): Likewise.
1842 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1843 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1844 * inf-child.c (inf_child_fileio_readlink): Likewise.
1845 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1846 (inf_ptrace_store_register): Likewise.
1847 * infrun.c (follow_exec): Likewise.
1848 (displaced_step_prepare_throw): Likewise.
1849 (save_stop_context): Likewise.
1850 (save_infcall_suspend_state): Likewise.
1851 * jit.c (jit_read_descriptor): Likewise.
1852 (jit_read_code_entry): Likewise.
1853 (jit_symtab_line_mapping_add_impl): Likewise.
1854 (finalize_symtab): Likewise.
1855 (jit_unwind_reg_get_impl): Likewise.
1856 * jv-exp.y (QualifiedName): Likewise.
1857 * jv-lang.c (get_java_utf8_name): Likewise.
1858 (type_from_class): Likewise.
1859 (java_demangle_type_signature): Likewise.
1860 (java_class_name_from_physname): Likewise.
1861 * jv-typeprint.c (java_type_print_base): Likewise.
1862 * jv-valprint.c (java_value_print): Likewise.
1863 * language.c (add_language): Likewise.
1864 * linespec.c (add_sal_to_sals_basic): Likewise.
1865 (add_sal_to_sals): Likewise.
1866 (decode_objc): Likewise.
1867 (find_linespec_symbols): Likewise.
1868 * linux-fork.c (fork_save_infrun_state): Likewise.
1869 * linux-nat.c (linux_nat_detach): Likewise.
1870 (linux_nat_fileio_readlink): Likewise.
1871 * linux-record.c (record_linux_sockaddr): Likewise.
1872 (record_linux_msghdr): Likewise.
1873 (Do): Likewise.
1874 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1875 (linux_collect_regset_section_cb): Likewise.
1876 (linux_get_siginfo_data): Likewise.
1877 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1878 (try_thread_db_load_from_dir): Likewise.
1879 (thread_db_load_search): Likewise.
1880 (info_auto_load_libthread_db): Likewise.
1881 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1882 (m32c_m16c_pointer_to_address): Likewise.
1883 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1884 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1885 * machoread.c (macho_check_dsym): Likewise.
1886 * macroexp.c (resize_buffer): Likewise.
1887 (gather_arguments): Likewise.
1888 (maybe_expand): Likewise.
1889 * macrotab.c (new_macro_key): Likewise.
1890 (new_source_file): Likewise.
1891 (new_macro_definition): Likewise.
1892 * mdebugread.c (parse_symbol): Likewise.
1893 (parse_type): Likewise.
1894 (parse_partial_symbols): Likewise.
1895 (psymtab_to_symtab_1): Likewise.
1896 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1897 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1898 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1899 (mi_cmd_data_read_memory_bytes): Likewise.
1900 (mi_cmd_data_write_memory_bytes): Likewise.
1901 (mi_cmd_trace_frame_collected): Likewise.
1902 * mi/mi-parse.c (mi_parse_argv): Likewise.
1903 (mi_parse): Likewise.
1904 * minidebug.c (lzma_open): Likewise.
1905 (lzma_pread): Likewise.
1906 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1907 (mips_print_fp_register): Likewise.
1908 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1909 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1910 * mt-tdep.c (mt_register_name): Likewise.
1911 (mt_registers_info): Likewise.
1912 (mt_push_dummy_call): Likewise.
1913 * namespace.c (add_using_directive): Likewise.
1914 * nat/linux-btrace.c (perf_event_read): Likewise.
1915 (linux_enable_bts): Likewise.
1916 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1917 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1918 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1919 (nto_parse_redirection): Likewise.
1920 * objc-lang.c (objc_demangle): Likewise.
1921 (find_methods): Likewise.
1922 * objfiles.c (get_objfile_bfd_data): Likewise.
1923 (set_objfile_main_name): Likewise.
1924 (allocate_objfile): Likewise.
1925 (objfile_relocate): Likewise.
1926 (update_section_map): Likewise.
1927 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1928 * p-exp.y (exp): Likewise.
1929 (yylex): Likewise.
1930 * p-valprint.c (pascal_object_print_value): Likewise.
1931 * parse.c (initialize_expout): Likewise.
1932 (mark_completion_tag): Likewise.
1933 (copy_name): Likewise.
1934 (parse_float): Likewise.
1935 (type_stack_reserve): Likewise.
1936 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1937 (ppu2spu_prev_register): Likewise.
1938 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1939 * printcmd.c (printf_wide_c_string): Likewise.
1940 (printf_pointer): Likewise.
1941 * probe.c (parse_probes): Likewise.
1942 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1943 (cmdpy_init): Likewise.
1944 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1945 * python/py-symtab.c (set_sal): Likewise.
1946 * python/py-unwind.c (pyuw_sniffer): Likewise.
1947 * python/python.c (python_interactive_command): Likewise.
1948 (compute_python_string): Likewise.
1949 * ravenscar-thread.c (get_running_thread_id): Likewise.
1950 * record-full.c (record_full_exec_insn): Likewise.
1951 (record_full_core_open_1): Likewise.
1952 * regcache.c (regcache_raw_read_signed): Likewise.
1953 (regcache_raw_read_unsigned): Likewise.
1954 (regcache_cooked_read_signed): Likewise.
1955 (regcache_cooked_read_unsigned): Likewise.
1956 * remote-fileio.c (remote_fileio_func_open): Likewise.
1957 (remote_fileio_func_rename): Likewise.
1958 (remote_fileio_func_unlink): Likewise.
1959 (remote_fileio_func_stat): Likewise.
1960 (remote_fileio_func_system): Likewise.
1961 * remote-mips.c (mips_xfer_memory): Likewise.
1962 (mips_load_srec): Likewise.
1963 (pmon_end_download): Likewise.
1964 * remote.c (new_remote_state): Likewise.
1965 (map_regcache_remote_table): Likewise.
1966 (remote_register_number_and_offset): Likewise.
1967 (init_remote_state): Likewise.
1968 (get_memory_packet_size): Likewise.
1969 (remote_pass_signals): Likewise.
1970 (remote_program_signals): Likewise.
1971 (remote_start_remote): Likewise.
1972 (remote_check_symbols): Likewise.
1973 (remote_query_supported): Likewise.
1974 (extended_remote_attach): Likewise.
1975 (process_g_packet): Likewise.
1976 (store_registers_using_G): Likewise.
1977 (putpkt_binary): Likewise.
1978 (read_frame): Likewise.
1979 (compare_sections_command): Likewise.
1980 (remote_hostio_pread): Likewise.
1981 (remote_hostio_readlink): Likewise.
1982 (remote_file_put): Likewise.
1983 (remote_file_get): Likewise.
1984 (remote_pid_to_exec_file): Likewise.
1985 (_initialize_remote): Likewise.
1986 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1987 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1988 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1989 (bfd_uses_spe_extensions): Likewise.
1990 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1991 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1992 * solib-dsbt.c (decode_loadmap): Likewise.
1993 (fetch_loadmap): Likewise.
1994 (scan_dyntag): Likewise.
1995 (enable_break): Likewise.
1996 (dsbt_relocate_main_executable): Likewise.
1997 * solib-frv.c (fetch_loadmap): Likewise.
1998 (enable_break2): Likewise.
1999 (frv_relocate_main_executable): Likewise.
2000 * solib-spu.c (spu_relocate_main_executable): Likewise.
2001 (spu_bfd_open): Likewise.
2002 * solib-svr4.c (lm_info_read): Likewise.
2003 (read_program_header): Likewise.
2004 (find_program_interpreter): Likewise.
2005 (scan_dyntag): Likewise.
2006 (elf_locate_base): Likewise.
2007 (open_symbol_file_object): Likewise.
2008 (read_program_headers_from_bfd): Likewise.
2009 (svr4_relocate_main_executable): Likewise.
2010 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2011 * solib.c (solib_find_1): Likewise.
2012 (exec_file_find): Likewise.
2013 (solib_find): Likewise.
2014 * source.c (openp): Likewise.
2015 (print_source_lines_base): Likewise.
2016 (forward_search_command): Likewise.
2017 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2018 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2019 (spu_get_overlay_table): Likewise.
2020 * stabsread.c (patch_block_stabs): Likewise.
2021 (define_symbol): Likewise.
2022 (again:): Likewise.
2023 (read_member_functions): Likewise.
2024 (read_one_struct_field): Likewise.
2025 (read_enum_type): Likewise.
2026 (common_block_start): Likewise.
2027 * stack.c (read_frame_arg): Likewise.
2028 (backtrace_command): Likewise.
2029 * stap-probe.c (stap_parse_register_operand): Likewise.
2030 * symfile.c (syms_from_objfile_1): Likewise.
2031 (find_separate_debug_file): Likewise.
2032 (load_command): Likewise.
2033 (load_progress): Likewise.
2034 (load_section_callback): Likewise.
2035 (reread_symbols): Likewise.
2036 (add_filename_language): Likewise.
2037 (allocate_compunit_symtab): Likewise.
2038 (read_target_long_array): Likewise.
2039 (simple_read_overlay_table): Likewise.
2040 * symtab.c (symbol_set_names): Likewise.
2041 (resize_symbol_cache): Likewise.
2042 (rbreak_command): Likewise.
2043 (completion_list_add_name): Likewise.
2044 (completion_list_objc_symbol): Likewise.
2045 (add_filename_to_list): Likewise.
2046 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2047 * target-memory.c (target_write_memory_blocks): Likewise.
2048 * target.c (target_read_string): Likewise.
2049 (read_whatever_is_readable): Likewise.
2050 (target_read_alloc_1): Likewise.
2051 (simple_search_memory): Likewise.
2052 (target_fileio_read_alloc_1): Likewise.
2053 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2054 * top.c (command_line_input): Likewise.
2055 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2056 * tracefile.c (tracefile_fetch_registers): Likewise.
2057 * tracepoint.c (add_memrange): Likewise.
2058 (init_collection_list): Likewise.
2059 (add_aexpr): Likewise.
2060 (trace_dump_actions): Likewise.
2061 (parse_trace_status): Likewise.
2062 (parse_tracepoint_definition): Likewise.
2063 (parse_tsv_definition): Likewise.
2064 (parse_static_tracepoint_marker_definition): Likewise.
2065 * tui/tui-file.c (tui_sfileopen): Likewise.
2066 (tui_file_adjust_strbuf): Likewise.
2067 * tui/tui-io.c (tui_expand_tabs): Likewise.
2068 * tui/tui-source.c (tui_set_source_content): Likewise.
2069 * typeprint.c (find_global_typedef): Likewise.
2070 * ui-file.c (do_ui_file_xstrdup): Likewise.
2071 (ui_file_obsavestring): Likewise.
2072 (mem_file_write): Likewise.
2073 * utils.c (make_hex_string): Likewise.
2074 (get_regcomp_error): Likewise.
2075 (puts_filtered_tabular): Likewise.
2076 (gdb_realpath_keepfile): Likewise.
2077 (ldirname): Likewise.
2078 (gdb_bfd_errmsg): Likewise.
2079 (substitute_path_component): Likewise.
2080 * valops.c (search_struct_method): Likewise.
2081 (find_oload_champ_namespace_loop): Likewise.
2082 * valprint.c (print_decimal_chars): Likewise.
2083 (read_string): Likewise.
2084 (generic_emit_char): Likewise.
2085 * varobj.c (varobj_delete): Likewise.
2086 (varobj_value_get_print_value): Likewise.
2087 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2088 * windows-tdep.c (display_one_tib): Likewise.
2089 * xcoffread.c (read_xcoff_symtab): Likewise.
2090 (process_xcoff_symbol): Likewise.
2091 (swap_sym): Likewise.
2092 (scan_xcoff_symtab): Likewise.
2093 (xcoff_initial_scan): Likewise.
2094 * xml-support.c (gdb_xml_end_element): Likewise.
2095 (xml_process_xincludes): Likewise.
2096 (xml_fetch_content_from_file): Likewise.
2097 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2098 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2099
623fb775 21002015-09-23 James Bowman <james.bowman@ftdichip.com>
2101
2102 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2103 instead of builtin_func_ptr.
2104 (ft32_pointer_to_address): New function.
2105 (ft32_address_class_type_flags): New function.
2106 (ft32_address_class_type_flags_to_name): New function.
2107 (ft32_address_class_name_to_type_flags): New function.
2108 (ft32_gdbarch_init): Set tdep->pc_type. Call
2109 set_gdbarch_pointer_to_address,
2110 set_gdbarch_address_class_type_flags
2111 set_gdbarch_address_class_name_to_type_flags,
2112 and set_gdbarch_address_class_type_flags_to_name.
2113 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2114
e6c2c623
PMR
21152015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2116
2117 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2118 value is a reference, actually dereference it in order to get
2119 the underlying value.
2120
bc1f8cda
SM
21212015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2122
2123 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2124
acaa662f
SM
21252015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2126
2127 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2128 * linespec.c (linespec_lexer_lex_string): Same.
2129
4d9d419e
PL
21302015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2131
2132 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2133
6ec5f4be
PL
21342015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2135
2136 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2137 variable. Call aarch64_decode_adr instead of
2138 aarch64_decode_adrp.
2139 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2140 (aarch64_decode_adr): New function declaration.
2141 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2142 (aarch64_decode_adr): New function, factored out from
2143 aarch64_decode_adrp to decode both adr and adrp instructions.
2144
787749ea
PL
21452015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2146
2147 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2148 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2149 (aarch64-insn.o): New rule.
2150 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2151 (aarch64*-*-linux*): Likewise.
2152 * arch/aarch64-insn.c: New file.
2153 * arch/aarch64-insn.h: New file.
2154 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2155 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2156 arch/aarch64-insn.h.
2157 (decode_add_sub_imm): Rename to ...
2158 (aarch64_decode_add_sub_imm): ... this.
2159 (decode_adrp): Rename to ...
2160 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2161 Declare in arch/aarch64-insn.h.
2162 (decode_b): Rename to ...
2163 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2164 Declare in arch/aarch64-insn.h.
2165 (decode_bcond): Rename to ...
2166 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2167 Declare in arch/aarch64-insn.h.
2168 (decode_br): Rename to ...
2169 (aarch64_decode_br): ... this.
2170 (decode_cb): Rename to ...
2171 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2172 Declare in arch/aarch64-insn.h.
2173 (decode_eret): Rename to ...
2174 (aarch64_decode_eret): ... this.
2175 (decode_movz): Rename to ...
2176 (aarch64_decode_movz): ... this.
2177 (decode_orr_shifted_register_x): Rename to ...
2178 (aarch64_decode_orr_shifted_register_x): ... this.
2179 (decode_ret): Rename to ...
2180 (aarch64_decode_ret): ... this.
2181 (decode_stp_offset): Rename to ...
2182 (aarch64_decode_stp_offset): ... this.
2183 (decode_stp_offset_wb): Rename to ...
2184 (aarch64_decode_stp_offset_wb): ... this.
2185 (decode_stur): Rename to ...
2186 (aarch64_decode_stur): ... this.
2187 (decode_tb): Rename to ...
2188 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2189 Declare in arch/aarch64-insn.h.
2190 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2191
183dc7ec
DE
21922015-09-20 Doug Evans <xdje42@gmail.com>
2193
2194 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2195
2ee7123e
DE
21962015-09-20 Doug Evans <xdje42@gmail.com>
2197
2198 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2199 variable name that collides with a parameter.
2200
7d1c9c9b
JB
22012015-09-20 Joel Brobecker <brobecker@adacore.com>
2202
2203 * dwarf2loc.c (locexpr_get_frame_base): Renames
2204 block_op_get_frame_base.
2205 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2206 block_op_get_frame_base by reference to locexpr_get_frame_base.
2207 (loclist_get_frame_base): New function, near identical copy of
2208 locexpr_get_frame_base.
2209 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2210 block_op_get_frame_base by reference to loclist_get_frame_base.
2211
7dc7c195
DE
22122015-09-19 Doug Evans <xdje42@gmail.com>
2213
2214 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2215 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2216
be550b6e
DE
22172015-09-18 Doug Evans <xdje42@gmail.com>
2218
2219 * linux-thread-db.c (record_thread): Return the created thread.
2220 (thread_from_lwp): Likewise.
2221 (thread_db_get_thread_local_address): Update.
2222
615b3f62
DE
22232015-09-18 Doug Evans <xdje42@gmail.com>
2224
2225 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2226 move only member demangled_name up. All uses updated.
2227
015d2e7e
DE
22282015-09-18 Doug Evans <xdje42@gmail.com>
2229
2230 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2231 kind of minimal symbol in the error message.
2232 * objfiles.c (objfile_flavour_name): New function.
2233 * objfiles.h (objfile_flavour_name): Declare.
2234
a0cc84cd
YQ
22352015-09-18 Yao Qi <yao.qi@linaro.org>
2236
2237 * nat/aarch64-linux.c: Include elf/common.h,
2238 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2239 (aarch64_ps_get_thread_area): New function.
2240 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2241 (aarch64_ps_get_thread_area): Declare.
2242 * aarch64-linux-nat.c (ps_get_thread_area): Call
2243 aarch64_ps_get_thread_area.
2244
d2939ba2
MM
22452015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2246
2247 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2248
f2665db5
MM
22492015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2250
2251 * NEWS: Announce new scheduler-locking mode.
2252 * infrun.c (schedlock_replay): New.
2253 (scheduler_enums): Add schedlock_replay.
2254 (scheduler_mode): Change default to schedlock_replay.
2255 (user_visible_resume_ptid): Handle schedlock_replay.
2256 (clear_proceed_status_thread): Stop replaying if resumed thread is
2257 not replaying.
2258 (schedlock_applies): Handle schedlock_replay.
2259 (_initialize_infrun): Document new scheduler-locking mode.
2260 * record-btrace.c (record_btrace_resume): Remove code to stop other
2261 threads when not replaying the resumed thread.
2262
7ff27e9b
MM
22632015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2264
2265 * record-btrace.c ((record_btrace_will_replay): New.
2266 (init_record_btrace_ops): Initialize to_record_will_replay.
2267 * record-full.c ((record_full_will_replay): New.
2268 (init_record_full_ops): Initialize to_record_will_replay.
2269 * target-delegates.c: Regenerated.
2270 * target.c (target_record_will_replay): New.
2271 * target.h (struct target_ops) <to_record_will_replay>: New.
2272 (target_record_will_replay): New.
2273
797094dd
MM
22742015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2275
2276 * record-btrace.c (record_btrace_resume): Call
2277 target_record_stop_replaying.
2278 (record_btrace_stop_replaying_all): New.
2279 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2280 * record-full.c (record_full_stop_replaying): New.
2281 (init_record_full_ops ): Initialize to_record_stop_replaying.
2282 * target-delegates.c: Regenerated.
2283 * target.c (target_record_stop_replaying): New.
2284 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2285 (target_record_stop_replaying): New.
2286
4d10e986
MM
22872015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2288
2289 * record-btrace.c (record_btrace_xfer_partial)
2290 (record_btrace_store_registers, record_btrace_prepare_to_store):
2291 Call record_btrace_is_replaying with inferior_ptid instead of
2292 minus_one_ptid.
2293 (record_btrace_store_registers): Change error message.
2294
a52eab48
MM
22952015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2296
2297 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2298 Update users to pass minus_one_ptid.
2299 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2300 * record.c (cmd_record_delete): Pass inferior_ptid to
2301 target_record_is_replaying.
2302 * target-delegates.c: Regenerated.
2303 * target.c (target_record_is_replaying): Add ptid argument.
2304 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2305 argument.
2306 (target_record_is_replaying): Add ptid argument.
2307
cbb55fa7
MM
23082015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2309
2310 * record-btrace.c (record_btrace_open): Remove non_stop check.
2311 * NEWS: Announce that record btrace supports non-stop mode.
2312
d1988021
MM
23132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2314
2315 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2316 in the TARKET_WAITKIND_NO_HISTORY case.
2317
a6b5be76
MM
23182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2319
2320 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2321 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2322
ec71cc2f
MM
23232015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2324
2325 * record-btrace.c (get_thread_current_frame): New.
2326 (record_btrace_start_replaying): Call get_thread_current_frame.
2327
0ca912df
MM
23282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2329
2330 * record-btrace.c (record_btrace_resume_thread): A move request
2331 overwrites a previous move request.
2332 (record_btrace_find_resume_thread): Removed.
2333 (record_btrace_resume): Resume all requested threads.
2334
e3cfc1c7
MM
23352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2336
2337 * record-btrace.c: Include vec.h.
2338 (record_btrace_find_thread_to_move): Removed.
2339 (btrace_step_no_resumed, btrace_step_again)
2340 (record_btrace_stop_replaying_at_end): New.
2341 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2342 (record_btrace_single_step_forward): Remove calls to
2343 record_btrace_stop_replaying.
2344 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2345 BTHR_RCONT. Keep threads at the end of their history moving.
2346 (record_btrace_wait): Call record_btrace_step_thread for all threads
2347 until one reports an event. Call record_btrace_stop_replaying_at_end
2348 for the eventing thread.
2349
cf8f8f0c
MM
23502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2351
2352 * record-btrace.c (record_btrace_single_step_forward): Return
2353 NO_HISTORY if a step brings us to the end of the execution history.
2354
011c71b6
MM
23552015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2356
2357 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2358 to ...
2359 (record_btrace_single_step_forward): ... here and
2360 (record_btrace_single_step_backward): ... here.
2361
d825d248
MM
23622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2363
2364 * record-btrace.c (btrace_step_spurious)
2365 (record_btrace_single_step_forward)
2366 (record_btrace_single_step_backward): New.
2367 (record_btrace_step_thread): Call record_btrace_single_step_forward
2368 and record_btrace_single_step_backward.
2369
3c615f99
MM
23702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2371
2372 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2373 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2374
987e68b1
MM
23752015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2376
2377 * record-btrace.c (btrace_thread_flag_to_str)
2378 (record_btrace_cancel_resume): New.
2379 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2380 (record_btrace_resume): Print execution direction.
2381 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2382 (record_btrace_wait): Call record_btrace_cancel_resume.
2383
6e4879f0
MM
23842015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2385
2386 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2387 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2388 (record_btrace_find_thread_to_move): Also accept threads that have
2389 BTHR_STOP set.
2390 (btrace_step_stopped_on_request, record_btrace_stop): New.
2391 (record_btrace_step_thread): Support BTHR_STOP.
2392 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2393 (init_record_btrace_ops): Initialize to_stop.
2394
5953356c
MM
23952015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2396
2397 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2398 target_is_non_stop_p ().
2399
bfca584f
PMR
24002015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2401
2402 * ada-typeprint.c (print_array_type): Do not describe arrays as
2403 packed when they embed dynamic elements.
2404
5382cfab
PW
24052015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2406
2407 * symtab.h (address_class): Document that TLS variables
2408 are handled by LOC_UNRESOLVED.
2409 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2410 * printcmd.c (address_info): Don't relocate TLS variables.
2411
b277c936
PL
24122015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2413
2414 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2415 (decode_adrp): Likewise.
2416 (decode_b): Likewise.
2417 (decode_bcond): Likewise.
2418 (decode_br): Likewise.
2419 (decode_cb): Likewise.
2420 (decode_eret): Likewise.
2421 (decode_movz): Likewise.
2422 (decode_orr_shifted_register_x): Likewise.
2423 (decode_ret): Likewise.
2424 (decode_stp_offset): Likewise.
2425 (decode_stp_offset_wb): Likewise.
2426 (decode_stur): Likewise.
2427 (decode_tb): Likewise.
2428 (aarch64_analyze_prologue): Likewise.
2429 (pass_in_x): Likewise.
2430 (pass_in_v): Likewise.
2431 (pass_on_stack): Likewise.
2432 (aarch64_push_dummy_call): Likewise.
2433 (aarch64_extract_return_value): Likewise.
2434 (aarch64_store_return_value): Likewise.
2435 (aarch64_return_value): Likewise.
2436 (aarch64_record_asimd_load_store): Likewise.
2437 (aarch64_record_load_store): Likewise.
2438 (aarch64_record_data_proc_simd_fp): Likewise.
2439
141c5cc4
JK
24402015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2441
2442 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2443 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2444 (ppc64_skip_trampoline_code_1): ... here.
2445 (ppc64_skip_trampoline_code): New wrapper function.
2446 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2447
750ce8d1
YQ
24482015-09-15 Yao Qi <yao.qi@linaro.org>
2449
2450 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2451 function.
2452 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2453 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2454 if target_can_do_single_step returns 1.
2455 * remote.c (struct vCont_action_support) <s, S>: New fields.
2456 (PACKET_vContSupported): New enum.
2457 (remote_protocol_features): New element for vContSupported.
2458 (remote_query_supported): Append "vContSupported+".
2459 (remote_vcont_probe): Remove support_s and support_S, use
2460 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2461 vCont packet if c and C actions are not supported.
2462 (remote_can_do_single_step): New function.
2463 (init_remote_ops): Install it to to_can_do_single_step.
2464 (_initialize_remote): Call add_packet_config_cmd.
2465 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2466 (target_can_do_single_step): New macro.
2467 * target-delegates.c: Re-generated.
2468
ade90bde
YQ
24692015-09-15 Yao Qi <yao.qi@linaro.org>
2470
2471 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2472 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2473 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2474 New function.
2475 (aarch64_siginfo_from_compat_siginfo): New function.
2476 * nat/aarch64-linux.h: Include signal.h.
2477 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2478 (compat_timer_t, compat_clock_t): Likewise.
2479 (struct compat_timeval): New.
2480 (union compat_sigval): New.
2481 (struct compat_siginfo): New.
2482 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2483 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2484 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2485 (cpt_si_band, cpt_si_fd): Likewise.
2486
4c2f2a79
PA
24872015-09-14 Pedro Alves <palves@redhat.com>
2488
2489 * infrun.c (current_stop_id): New global.
2490 (get_stop_id, new_stop_id): New functions.
2491 (fetch_inferior_event): Handle normal_stop proceeding the target.
2492 (struct stop_context): New.
2493 (save_stop_context, release_stop_context_cleanup)
2494 (stop_context_changed): New functions.
2495 (normal_stop): Return true if the hook-stop changes the stop
2496 context.
2497 * infrun.h (get_stop_id): Declare.
2498 (normal_stop): Now returns int. Add documentation.
2499
919e6dbe
PMR
25002015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2501
2502 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2503 comment. Handle packed arrays.
2504
b027a8fa
PA
25052015-09-14 Pedro Alves <palves@redhat.com>
2506
2507 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2508 mention of maint set/show target-non-stop.
2509
b459a59b
DB
25102015-09-11 Don Breazeal <donb@codesourcery.com>
2511
2512 * NEWS: Announce new remote packets for the exec-events
2513 feature and the exec-events feature and associated commands.
2514
d46addbb
DB
25152015-09-11 Don Breazeal <donb@codesourcery.com>
2516
2517 * remote.c (remote_exec_event_p): New function.
2518 (remote_insert_exec_catchpoint): New function.
2519 (remote_remove_exec_catchpoint): New function.
2520 (init_extended_remote_ops): Initialize extended_remote_ops
2521 members to_insert_exec_catchpoint and
2522 to_remove_exec_catchpoint.
2523
94585166
DB
25242015-09-11 Don Breazeal <donb@codesourcery.com>
2525 Luis Machado <lgustavo@codesourcery.com>
2526
2527 * infrun.c (follow_exec): Use process-style ptid for
2528 exec message. Call add_inferior_with_spaces and
2529 target_follow_exec.
2530 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2531 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2532 * remote.c (remote_pspace_data): New static variable.
2533 (remote_pspace_data_cleanup): New function.
2534 (get_remote_exec_file): New function.
2535 (set_remote_exec_file_1): New function.
2536 (set_remote_exec_file): New function.
2537 (show_remote_exec_file): New function.
2538 (remote_exec_file): Delete static variable.
2539 (anonymous enum) <PACKET_exec_event_feature>: New
2540 enumeration constant.
2541 (remote_protocol_features): Add entry for exec-events feature.
2542 (remote_query_supported): Add client side of qSupported query
2543 for exec-events feature.
2544 (remote_follow_exec): New function.
2545 (remote_parse_stop_reply): Handle 'exec' stop reason.
2546 (extended_remote_run, extended_remote_create_inferior): Call
2547 get_remote_exec_file and set_remote_exec_file_1.
2548 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2549 member.
2550 (_initialize_remote): Call
2551 register_program_space_data_with_cleanup. Call
2552 add_packet_config_cmd for remote exec-events feature.
2553 Modify call to add_setshow_string_noescape_cmd for exec-file
2554 to use new functions set_remote_exec_file and
2555 show_remote_exec_file.
2556 * target-debug.h, target-delegates.c: Regenerated.
2557 * target.c (target_follow_exec): New function.
2558 * target.h (struct target_ops) <to_follow_exec>: New member.
2559 (target_follow_exec): Declare new function.
2560
669e74e8
PL
25612015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2562
2563 * aarch64-tdep.c (decode_cb): Move up comment describing the
2564 encoding.
2565 (decode_tb): Fix a typo in comment above the function. Move up
2566 comment describing the encoding.
2567
4d50586d
PL
25682015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2569
2570 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2571
6dcaef99
MMN
25722015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2573
2574 PR gdb/18947
2575 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2576 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2577
5da1a4d3
SM
25782015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2579
2580 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2581 operations.
2582
108d56a4
SM
25832015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2584
2585 * ada-lang.c (ada_search_struct_field): Constify parameters
2586 and/or variables..
2587 (xget_renaming_scope): Likewise.
2588 (ada_is_redundant_range_encoding): Likewise.
2589 (scan_discrim_bound): Likewise.
2590 (to_fixed_range_type): Likewise.
2591
dd2e65cc
YQ
25922015-09-10 Yao Qi <yao.qi@linaro.org>
2593
2594 * breakpoint.c (download_tracepoint_locations): New local
2595 can_download_tracepoint. Check the result of
2596 target_can_download_tracepoint and save it in
2597 can_download_tracepoint if there are tracepoints to download.
2598 * linux-nat.h (enum tribool): Move it to ...
2599 * common/common-types.h: ... here.
2600
cfe75703
PA
26012015-09-09 Pedro Alves <palves@redhat.com>
2602
2603 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2604 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2605
a85a3079
PA
26062015-09-09 Pedro Alves <palves@redhat.com>
2607
2608 * continuations.c (add_continuation, restore_thread_cleanup)
2609 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2610 (do_all_continuations_thread, do_all_continuations)
2611 (discard_all_continuations_thread_callback)
2612 (discard_all_continuations_thread, discard_all_continuations)
2613 (add_intermediate_continuation)
2614 (do_all_intermediate_continuations_thread_callback)
2615 (do_all_intermediate_continuations_thread)
2616 (do_all_intermediate_continuations)
2617 (discard_all_intermediate_continuations_thread_callback)
2618 (discard_all_intermediate_continuations_thread)
2619 (discard_all_intermediate_continuations): Delete.
2620 * continuations.h (add_continuation, do_all_continuations)
2621 (do_all_continuations_thread, discard_all_continuations)
2622 (discard_all_continuations_thread, add_intermediate_continuation)
2623 (do_all_intermediate_continuations)
2624 (do_all_intermediate_continuations_thread)
2625 (discard_all_intermediate_continuations)
2626 (discard_all_intermediate_continuations_thread): Delete
2627 declarations.
2628 * event-top.c (stdin_event_handler): Delete references to
2629 continuations.
2630 * gdbthread.h (struct thread_info): Delete continuations and
2631 intermediate_continuations fields.
2632 * inf-loop.c (inferior_event_handler): Remove references to
2633 continuations.
2634 * infrun.c (infrun_thread_stop_requested_callback): Remove
2635 references to continuations.
2636 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2637 * thread.c: Don't include "continuations.h".
2638 (clear_thread_inferior_resources): Remove references to
2639 continuations.
2640
0700e23e
PA
26412015-09-09 Pedro Alves <palves@redhat.com>
2642
2643 * infcall.c (struct dummy_frame_context_saver): Delete.
2644 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2645 (dummy_frame_context_saver_drop)
2646 (dummy_frame_context_saver_cleanup)
2647 (dummy_frame_context_saver_get_regs)
2648 (dummy_frame_context_saver_setup): Delete.
2649 * infcall.h (dummy_frame_context_saver_drop)
2650 (dummy_frame_context_saver_cleanup)
2651 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2652 Delete.
2653 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2654 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2655 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2656
cfc31633
PA
26572015-09-09 Pedro Alves <palves@redhat.com>
2658
2659 * breakpoint.c: Include "thread-fsm.h".
2660 (struct until_break_command_continuation_args): Delete.
2661 (struct until_break_fsm): New.
2662 (until_break_fsm_ops): New global.
2663 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2664 (until_break_command_continuation): Delete.
2665 (until_break_fsm_clean_up): New function.
2666 (until_break_fsm_async_reply_reason): New function.
2667 (until_break_command): Adjust to create an until_break_fsm instead
2668 of a continuation.
2669 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2670 here.
2671 * infcmd.c (struct until_next_fsm): New.
2672 (until_next_fsm_ops): New global.
2673 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2674 (until_next_continuation): Delete.
2675 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2676 functions.
2677 (until_next_command): Adjust to create a new until_next_fsm
2678 instead of a continuation.
2679
388a7084
PA
26802015-09-09 Pedro Alves <palves@redhat.com>
2681
2682 * infcall.c: Include thread_fsm.h.
2683 (struct call_return_meta_info): New.
2684 (get_call_return_value): New function, factored out from
2685 call_function_by_hand_dummy.
2686 (struct call_thread_fsm): New.
2687 (call_thread_fsm_ops): New global.
2688 (new_call_thread_fsm, call_thread_fsm_should_stop)
2689 (call_thread_fsm_should_notify_stop): New functions.
2690 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2691 the thread.
2692 (call_function_by_hand_dummy): Create a new call_thread_fsm
2693 instance, associate it with the thread, and wait for the FSM to
2694 finish. If finished successfully, fetch the function's result
2695 value out of the FSM.
2696 * infrun.c (fetch_inferior_event): If the FSM says the stop
2697 shouldn't be notified, don't call normal_stop.
2698 (maybe_remove_breakpoints): New function, factored out from ...
2699 (normal_stop): ... here. Simplify.
2700 * infrun.h (maybe_remove_breakpoints): Declare.
2701 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2702 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2703 (thread_fsm_should_notify_stop): Declare.
2704
243a9253
PA
27052015-09-09 Pedro Alves <palves@redhat.com>
2706
2707 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2708 * breakpoint.c (handle_jit_event): Print debug output.
2709 (bpstat_what): Split event callback handling to ...
2710 (bpstat_run_callbacks): ... this new function.
2711 (momentary_bkpt_print_it): No longer handle bp_finish here.
2712 * breakpoint.h (bpstat_run_callbacks): Declare.
2713 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2714 <thread_fsm>: New field.
2715 (thread_cancel_execution_command): Declare.
2716 * infcmd.c: Include thread-fsm.h.
2717 (struct step_command_fsm): New.
2718 (step_command_fsm_ops): New global.
2719 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2720 (step_1): Adjust to use step_command_fsm_prepare and
2721 prepare_one_step.
2722 (struct step_1_continuation_args): Delete.
2723 (step_1_continuation): Delete.
2724 (step_command_fsm_should_stop): New function.
2725 (step_once): Delete.
2726 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2727 (prepare_one_step): New function, based on step_once.
2728 (until_next_command): Remove step_multi reference.
2729 (struct return_value_info): New.
2730 (print_return_value): Rename to ...
2731 (print_return_value_1): ... this. New struct return_value_info
2732 parameter. Adjust.
2733 (print_return_value): Reimplement as wrapper around
2734 print_return_value_1.
2735 (struct finish_command_fsm): New.
2736 (finish_command_continuation): Delete.
2737 (finish_command_fsm_ops): New global.
2738 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2739 functions.
2740 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2741 New.
2742 (finish_command_continuation_free_arg): Delete.
2743 (finish_command_fsm_async_reply_reason): New.
2744 (finish_backward, finish_forward): Change symbol parameter to a
2745 finish_command_fsm. Adjust.
2746 (finish_command): Create a finish_command_fsm. Adjust.
2747 * infrun.c: Include "thread-fsm.h".
2748 (clear_proceed_status_thread): Delete the thread's FSM.
2749 (infrun_thread_stop_requested_callback): Cancel the thread's
2750 execution command.
2751 (clean_up_just_stopped_threads_fsms): New function.
2752 (fetch_inferior_event): Handle the event_thread's should_stop
2753 method saying the command isn't done yet.
2754 (process_event_stop_test): Run breakpoint callbacks here.
2755 (print_stop_event): Rename to ...
2756 (print_stop_location): ... this.
2757 (restore_current_uiout_cleanup): New function.
2758 (print_stop_event): Reimplement.
2759 (normal_stop): No longer notify the end_stepping_range observers
2760 here handle "step N" nor "finish" here. No longer call
2761 print_stop_event here.
2762 * infrun.h (struct return_value_info): Forward declare.
2763 (print_return_value): Declare.
2764 (print_stop_event): Change prototype.
2765 * thread-fsm.c: New file.
2766 * thread-fsm.h: New file.
2767 * thread.c: Include "thread-fsm.h".
2768 (thread_cancel_execution_command): New function.
2769 (clear_thread_inferior_resources): Call it.
2770 * cli/cli-interp.c (cli_on_normal_stop): New function.
2771 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2772 observer.
2773 * mi/mi-interp.c: Include "thread-fsm.h".
2774 (restore_current_uiout_cleanup): Delete.
2775 (mi_on_normal_stop): If the thread has an FSM associated, and it
2776 finished, ask it for the async-reply-reason to print. Always call
2777 print_stop_event here, regardless of the top-level interpreter.
2778 Check bpstat_what to tell whether an asynchronous breakpoint hit
2779 triggered.
2780 * tui/tui-interp.c (tui_on_normal_stop): New function.
2781 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2782
0b333c5e
PA
27832015-09-09 Pedro Alves <palves@redhat.com>
2784
2785 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2786 check whether the target can async.
2787 * inf-loop.c (inferior_event_handler): Only call target_async if
2788 the target can async.
2789 * infcall.c: Include top.h and interps.h.
2790 (run_inferior_call): For the interpreter to sync mode while
2791 running the infcall. Call wait_sync_command_done instead of
2792 wait_for_inferior plus normal_stop.
2793 * infcmd.c (prepare_execution_command): Don't check whether the
2794 target can async when running in the foreground.
2795 (step_1): Delete synchronous case handling.
2796 (step_once): Always install a continuation, even in sync mode.
2797 (until_next_command, finish_forward): Don't check whether the
2798 target can async.
2799 (attach_command_post_wait, notice_new_inferior): Always install a
2800 continuation, even in sync mode.
2801 * infrun.c (mark_infrun_async_event_handler): New function.
2802 (proceed): In sync mode, mark infrun's event source instead of
2803 waiting for events here.
2804 (fetch_inferior_event): If the target can't async, do a blocking
2805 wait.
2806 (prepare_to_wait): In sync mode, mark infrun's event source.
2807 (infrun_async_inferior_event_handler): No longer bail out if the
2808 target can't async.
2809 * infrun.h (mark_infrun_async_event_handler): New declaration.
2810 * linux-nat.c (linux_nat_wait_1): Remove calls to
2811 set_sigint_trap/clear_sigint_trap.
2812 (linux_nat_terminal_inferior): No longer check whether the target
2813 can async.
2814 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2815 comment.
2816 (mi_execute_command_input_handler): No longer check whether the
2817 target is async. Update and simplify comment.
2818 * target.c (default_target_wait): New function.
2819 * target.h (struct target_ops) <to_wait>: Now defaults to
2820 default_target_wait.
2821 (default_target_wait): Declare.
2822 * top.c (wait_sync_command_done): New function, factored out from
2823 ...
2824 (maybe_wait_sync_command_done): ... this.
2825 * top.h (wait_sync_command_done): Declare.
2826 * target-delegates.c: Regenerate.
2827
0568462b
MM
28282015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2829
2830 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2831 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2832 Remove include of sys/utsname.h.
2833 (linux_determine_kernel_ptr_bits): Remove.
2834 (linux_determine_kernel_start): New.
2835 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2836 Update check.
2837 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2838 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2839 initialization.
2840 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2841 assignment.
2842
72e02483
PA
28432015-09-07 Pedro Alves <palves@redhat.com>
2844
2845 * guile/guile-internal.h (as_a_scm_t_subr): New.
2846 * guile/guile.c (misc_guile_functions): Use it.
2847 * guile/scm-arch.c (arch_functions): Use it.
2848 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2849 Use it.
2850 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2851 * guile/scm-cmd.c (command_functions): Use it.
2852 * guile/scm-disasm.c (disasm_functions): Use it.
2853 * guile/scm-exception.c (exception_functions)
2854 (private_exception_functions): Use it.
2855 * guile/scm-frame.c (frame_functions)
2856 * guile/scm-gsmob.c (gsmob_functions): Use it.
2857 * guile/scm-iterator.c (iterator_functions): Use it.
2858 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2859 * guile/scm-math.c (math_functions): Use it.
2860 * guile/scm-objfile.c (objfile_functions): Use it.
2861 * guile/scm-param.c (parameter_functions): Use it.
2862 * guile/scm-ports.c (port_functions, private_port_functions): Use
2863 it.
2864 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2865 * guile/scm-progspace.c (pspace_functions): Use it.
2866 * guile/scm-string.c (string_functions): Use it.
2867 * guile/scm-symbol.c (symbol_functions): Use it.
2868 * guile/scm-symtab.c (symtab_functions): Use it.
2869 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2870 it.
2871 * guile/scm-value.c (value_functions): Use it.
2872
e65b5245
AB
28732015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2876 (tui_next_win): Likewise.
2877 (tui_prev_win): Likewise.
2878 (tui_partial_win_by_name): Likewise.
2879 (tui_init_generic_part): Likewise.
2880 (init_content_element): Likewise.
2881 (tui_del_window): Likewise.
2882 (tui_free_window): Likewise.
2883 (tui_del_data_windows): Likewise.
2884 (tui_free_data_content): Likewise.
2885 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2886 * tui/tui-regs.c (tui_show_register_group): Likewise.
2887 * tui/tui-win.c (tui_resize_all): Likewise.
2888 (tui_set_focus): Likewise.
2889 (tui_set_win_height): Likewise.
2890 (make_invisible_and_set_new_height): Likewise.
2891 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2892 * tui/tui-wingeneral.c (make_visible): Likewise.
2893
b03e6ad9
AB
28942015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2897
be903358
AB
28982015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2901 pointer.
2902 * dbxread.c (dbx_end_psymtab): Likewise.
2903 * gnu-nat.c (gnu_write_inferior): Likewise.
2904 * mdebugread.c (cross_ref): Likewise.
2905 * p-valprint.c (pascal_val_print): Likewise.
2906 * xcoffread.c (xcoff_end_psymtab): Likewise.
2907
02f024f9
YQ
29082015-09-04 Yao Qi <yao.qi@linaro.org>
2909
2910 * NEWS: Mention the aarch64 multi-arch debugging support.
2911
cd7c1778
PMR
29122015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2913
2914 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2915 type instead of a TYPE_CODE_INT one for the string_char_type
2916 and the ada_primitive_type_char types.
2917
39edd165
YQ
29182015-09-03 Yao Qi <yao.qi@linaro.org>
2919
2920 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2921 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2922 aarch64_linux_region_ok_for_watchpoint.
2923 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2924 New function.
2925 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2926 Declare it.
2927
6c214e7c
PP
29282015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2929
2930 * gdb_obstack.h (obstack_strdup): Declare.
2931 * gdb_obstack.c (obstack_strdup): Define.
2932 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2933 * gdbarch.c: Regenerate.
2934 * gdbarch.h: Regenerate.
2935 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2936
eed8b28a
PP
29372015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2938
2939 * gdbtypes.c (copy_type_recursive): Update documentation.
2940
73c6b475
SDJ
29412015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2942
2943 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2944 as zero.
2945
ad1c917a
SDJ
29462015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2947
2948 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2949
3bd7e5b7
SDJ
29502015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2951
2952 * solib-svr4.c (solib_event_probe_action): Call
2953 get_probe_argument_count using TRY...CATCH.
2954 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2955
f469e8ce
SDJ
29562015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2957
2958 * probe.h (struct probe_ops) <get_probe_argument_count,
2959 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2960 the comment that the function can throw an exception.
2961 (get_probe_argument_count): Likewise.
2962 (evaluate_probe_argument): Likewise.
2963 * stap-probe.c (stap_get_opcode): Call error instead of
2964 internal_error.
2965 (stap_get_expected_argument_type): Likewise. Add argument
2966 'probe'. Improve error message by mentioning the probe's name.
2967 (stap_parse_probe_arguments): Adjust call to
2968 stap_get_expected_argument_type.
2969 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2970 not zero. Call internal_error if GDB requests an argument but the
2971 probe has no arguments.
2972
dc5c8746
PMR
29732015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2974
2975 * ada-lang.c (ada_resolve_function): Do not ask the user what
2976 match to use when in completion mode.
2977
136765ea
AB
29782015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2981 cast of NULL.
2982
90b81c5f
MF
29832015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2984
2985 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2986 call_abi using XSHAL_ABI macro.
2987
1cd36e54
DE
29882015-08-29 Doug Evans <xdje42@gmail.com>
2989
2990 * symtab.h (struct symbol): Tweak comment.
2991
8f57eec2
PP
29922015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2993
2994 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2995 gdbarch obstack instead of on the heap. Update commentary
2996 accordingly.
2997
38eebd71
JB
29982015-08-28 Joel Brobecker <brobecker@adacore.com>
2999
3000 GDB 7.10 released.
3001
d63dd61e
SM
30022015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3003
3004 * NEWS: Update entry about non-8-bits addressable memory.
3005
6f059256
UW
30062015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3007
3008 Revert:
3009 2014-11-06 Doug Evans <xdje42@gmail.com>
3010 * solib.c (solib_global_lookup): Fetch arch from objfile,
3011 not target_gdbarch.
3012
70987a92 30132015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3014
3015 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3016 attempt to relocate a TLS variable offset.
3017
70987a92 30182015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3019
3020 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3021 registered yet. Set inferior_ptid while calling target_read_memory.
3022
70987a92 30232015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3024
3025 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3026 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3027 * linux-nat.c (check_stopped_by_breakpoint): Use
3028 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3029
70987a92 30302015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3031
3032 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3033 thread was not yet discovered, use thread_from_lwp instead of
3034 calling thread_db_find_new_threads_1.
3035
f5cdf498
SM
30362015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3037
3038 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3039 statements.
3040
fd2ae5d6
SM
30412015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3042
3043 * NEWS: Document support for non-8-bits addressable memory.
3044
14d88147
PA
30452015-08-27 Pedro Alves <palves@redhat.com>
3046
3047 * configure.ac: Remove AC_TYPE_SIGNAL call.
3048 * configure, config.in: Regenerate.
3049
a40805d4
PA
30502015-08-27 Pedro Alves <palves@redhat.com>
3051
3052 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3053 * extension-priv.h: Include signal.h.
3054 (struct signal_handler) <handler>: Change type to sighandler_t.
3055 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3056 * inflow.c (sigint_ours, sigquit_ours): Change type to
3057 sighandler_t.
3058 (child_terminal_inferior): Remove casts.
3059 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3060 (osig): Change type to sighandler_t.
3061 * nto-procfs.c (ofunc): Change type to sighandler_t.
3062 (procfs_wait): Remove casts.
3063 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3064 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3065 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3066
0750520d
PA
30672015-08-27 Pedro Alves <palves@redhat.com>
3068
3069 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3070 * gnulib/aclocal.m4: Renegerate.
3071 * gnulib/config.in: Renegerate.
3072 * gnulib/configure: Renegerate.
3073 * gnulib/import/Makefile.am: Update.
3074 * gnulib/import/Makefile.in: Regenerate.
3075 * gnulib/import/m4/gnulib-cache.m4: Update.
3076 * gnulib/import/m4/gnulib-comp.m4: Update.
3077 * gnulib/import/m4/signal_h.m4: New file.
3078 * gnulib/import/signal.in.h: New file.
3079
a5c0808e
PA
30802015-08-27 Pedro Alves <palves@redhat.com>
3081
3082 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3083 (MIN_MEMORY_PACKET_SIZE): New.
3084 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3085 (get_memory_packet_size): Adjust. No longer limit the max packet
3086 size.
3087 (set_memory_packet_size): Adjust, and remove dead code.
3088 (remote_check_symbols): Use xmalloc and a cleanup instead of
3089 alloca.
3090 (remote_packet_size): No longer cap the packet size.
3091 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3092
cdaec3f3
LM
30932015-08-26 Luis Machado <lgustavo@codesourcery.com>
3094
3095 * compile/compile.c (compile_to_object): Mention language in
3096 error message.
3097
e9756d52
PP
30982015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3099
3100 * target.c (target_pre_inferior): Unset attach_flag.
3101
1dc7a623
SM
31022015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3103
3104 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3105 * gdbarch.c: Re-generate.
3106
8d749320
SM
31072015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3108
6711b7f8
SM
3109 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3110 function with the XNEW-family equivalent.
8d749320
SM
3111 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3112 * ada-exp.y (write_ambiguous_var): Likewise.
3113 * ada-lang.c (resolve_subexp): Likewise.
3114 (user_select_syms): Likewise.
3115 (assign_aggregate): Likewise.
3116 (ada_evaluate_subexp): Likewise.
3117 (cache_symbol): Likewise.
3118 * addrmap.c (allocate_key): Likewise.
3119 (addrmap_create_mutable): Likewise.
3120 * aix-thread.c (sync_threadlists): Likewise.
3121 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3122 (alpha_gdbarch_init): Likewise.
3123 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3124 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3125 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3126 * arm-tdep.c (push_stack_item): Likewise.
3127 (arm_displaced_step_copy_insn): Likewise.
3128 (arm_gdbarch_init): Likewise.
3129 (_initialize_arm_tdep): Likewise.
3130 * avr-tdep.c (push_stack_item): Likewise.
3131 * ax-general.c (new_agent_expr): Likewise.
3132 * block.c (block_initialize_namespace): Likewise.
3133 * breakpoint.c (alloc_counted_command_line): Likewise.
3134 (update_dprintf_command_list): Likewise.
3135 (parse_breakpoint_sals): Likewise.
3136 (decode_static_tracepoint_spec): Likewise.
3137 (until_break_command): Likewise.
3138 (clear_command): Likewise.
3139 (update_global_location_list): Likewise.
3140 (get_breakpoint_objfile_data) Likewise.
3141 * btrace.c (ftrace_new_function): Likewise.
3142 (btrace_set_insn_history): Likewise.
3143 (btrace_set_call_history): Likewise.
3144 * buildsym.c (add_symbol_to_list): Likewise.
3145 (record_pending_block): Likewise.
3146 (start_subfile): Likewise.
3147 (start_buildsym_compunit): Likewise.
3148 (push_subfile): Likewise.
3149 (end_symtab_get_static_block): Likewise.
3150 (buildsym_init): Likewise.
3151 * cli/cli-cmds.c (source_command): Likewise.
3152 * cli/cli-decode.c (add_cmd): Likewise.
3153 * cli/cli-script.c (build_command_line): Likewise.
3154 (setup_user_args): Likewise.
3155 (realloc_body_list): Likewise.
3156 (process_next_line): Likewise.
3157 (copy_command_lines): Likewise.
3158 * cli/cli-setshow.c (do_set_command): Likewise.
3159 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3160 * coffread.c (coff_locate_sections): Likewise.
3161 (coff_symtab_read): Likewise.
3162 (coff_read_struct_type): Likewise.
3163 * common/cleanups.c (make_my_cleanup2): Likewise.
3164 * common/common-exceptions.c (throw_it): Likewise.
3165 * common/filestuff.c (make_cleanup_close): Likewise.
3166 * common/format.c (parse_format_string): Likewise.
3167 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3168 * compile/compile-object-load.c (munmap_list_add): Likewise.
3169 (compile_object_load): Likewise.
3170 * compile/compile-object-run.c (compile_object_run): Likewise.
3171 * compile/compile.c (append_args): Likewise.
3172 * corefile.c (specify_exec_file_hook): Likewise.
3173 * cp-support.c (make_symbol_overload_list): Likewise.
3174 * cris-tdep.c (push_stack_item): Likewise.
3175 (cris_gdbarch_init): Likewise.
3176 * ctf.c (ctf_trace_file_writer_new): Likewise.
3177 * dbxread.c (init_header_files): Likewise.
3178 (add_new_header_file): Likewise.
3179 (init_bincl_list): Likewise.
3180 (dbx_end_psymtab): Likewise.
3181 (start_psymtab): Likewise.
3182 (dbx_end_psymtab): Likewise.
3183 * dcache.c (dcache_init): Likewise.
3184 * dictionary.c (dict_create_hashed): Likewise.
3185 (dict_create_hashed_expandable): Likewise.
3186 (dict_create_linear): Likewise.
3187 (dict_create_linear_expandable): Likewise.
3188 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3189 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3190 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3191 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3192 (decode_frame_entry_1): Likewise.
3193 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3194 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3195 * dwarf2read.c (dwarf2_has_info): Likewise.
3196 (create_signatured_type_table_from_index): Likewise.
3197 (dwarf2_read_index): Likewise.
3198 (dw2_get_file_names_reader): Likewise.
3199 (create_all_type_units): Likewise.
3200 (read_cutu_die_from_dwo): Likewise.
3201 (init_tu_and_read_dwo_dies): Likewise.
3202 (init_cutu_and_read_dies): Likewise.
3203 (create_all_comp_units): Likewise.
3204 (queue_comp_unit): Likewise.
3205 (inherit_abstract_dies): Likewise.
3206 (read_call_site_scope): Likewise.
3207 (dwarf2_add_field): Likewise.
3208 (dwarf2_add_typedef): Likewise.
3209 (dwarf2_add_member_fn): Likewise.
3210 (attr_to_dynamic_prop): Likewise.
3211 (abbrev_table_alloc_abbrev): Likewise.
3212 (abbrev_table_read_table): Likewise.
3213 (add_include_dir): Likewise.
3214 (add_file_name): Likewise.
3215 (dwarf_decode_line_header): Likewise.
3216 (dwarf2_const_value_attr): Likewise.
3217 (dwarf_alloc_block): Likewise.
3218 (parse_macro_definition): Likewise.
3219 (set_die_type): Likewise.
3220 (write_psymtabs_to_index): Likewise.
3221 (create_cus_from_index): Likewise.
3222 (dwarf2_create_include_psymtab): Likewise.
3223 (process_psymtab_comp_unit_reader): Likewise.
3224 (build_type_psymtab_dependencies): Likewise.
3225 (read_comp_units_from_section): Likewise.
3226 (compute_compunit_symtab_includes): Likewise.
3227 (create_dwo_unit_in_dwp_v1): Likewise.
3228 (create_dwo_unit_in_dwp_v2): Likewise.
3229 (read_func_scope): Likewise.
3230 (process_structure_scope): Likewise.
3231 (mark_common_block_symbol_computed): Likewise.
3232 (load_partial_dies): Likewise.
3233 (dwarf2_symbol_mark_computed): Likewise.
3234 * elfread.c (elf_symfile_segments): Likewise.
3235 (elf_read_minimal_symbols): Likewise.
3236 * environ.c (make_environ): Likewise.
3237 * eval.c (evaluate_subexp_standard): Likewise.
3238 * event-loop.c (create_file_handler): Likewise.
3239 (create_async_signal_handler): Likewise.
3240 (create_async_event_handler): Likewise.
3241 (create_timer): Likewise.
3242 * exec.c (build_section_table): Likewise.
3243 * fbsd-nat.c (fbsd_remember_child): Likewise.
3244 * fork-child.c (fork_inferior): Likewise.
3245 * frv-tdep.c (new_variant): Likewise.
3246 * gdbarch.sh (gdbarch_alloc): Likewise.
3247 (append_name): Likewise.
3248 * gdbtypes.c (rank_function): Likewise.
3249 (copy_type_recursive): Likewise.
3250 (add_dyn_prop): Likewise.
3251 * gnu-nat.c (make_proc): Likewise.
3252 (make_inf): Likewise.
3253 (gnu_write_inferior): Likewise.
3254 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3255 (build_std_type_info_type): Likewise.
3256 * guile/scm-param.c (compute_enum_list): Likewise.
3257 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3258 * guile/scm-value.c (gdbscm_value_call): Likewise.
3259 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3260 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3261 (read_unwind_info): Likewise.
3262 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3263 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3264 (call_function_by_hand_dummy): Likewise.
3265 * infcmd.c (step_once): Likewise.
3266 (finish_forward): Likewise.
3267 (attach_command): Likewise.
3268 (notice_new_inferior): Likewise.
3269 * inferior.c (add_inferior_silent): Likewise.
3270 * infrun.c (add_displaced_stepping_state): Likewise.
3271 (save_infcall_control_state): Likewise.
3272 (save_inferior_ptid): Likewise.
3273 (_initialize_infrun): Likewise.
3274 * jit.c (bfd_open_from_target_memory): Likewise.
3275 (jit_gdbarch_data_init): Likewise.
3276 * language.c (add_language): Likewise.
3277 * linespec.c (decode_line_2): Likewise.
3278 * linux-nat.c (add_to_pid_list): Likewise.
3279 (add_initial_lwp): Likewise.
3280 * linux-thread-db.c (add_thread_db_info): Likewise.
3281 (record_thread): Likewise.
3282 (info_auto_load_libthread_db): Likewise.
3283 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3285 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3286 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3287 * macrocmd.c (macro_define_command): Likewise.
3288 * macroexp.c (gather_arguments): Likewise.
3289 * macroscope.c (sal_macro_scope): Likewise.
3290 * macrotab.c (new_macro_table): Likewise.
3291 * mdebugread.c (push_parse_stack): Likewise.
3292 (parse_partial_symbols): Likewise.
3293 (parse_symbol): Likewise.
3294 (psymtab_to_symtab_1): Likewise.
3295 (new_block): Likewise.
3296 (new_psymtab): Likewise.
3297 (mdebug_build_psymtabs): Likewise.
3298 (add_pending): Likewise.
3299 (elfmdebug_build_psymtabs): Likewise.
3300 * mep-tdep.c (mep_gdbarch_init): Likewise.
3301 * mi/mi-main.c (mi_execute_command): Likewise.
3302 * mi/mi-parse.c (mi_parse_argv): Likewise.
3303 * minidebug.c (lzma_open): Likewise.
3304 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3305 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3306 * mips-tdep.c (mips_gdbarch_init): Likewise.
3307 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3308 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3309 * mt-tdep.c (mt_registers_info): Likewise.
3310 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3311 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3312 (linux_enable_pt): Likewise.
3313 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3314 (linux_xfer_osdata_processgroups): Likewise.
3315 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3316 * nto-procfs.c (procfs_meminfo): Likewise.
3317 * objc-lang.c (start_msglist): Likewise.
3318 (selectors_info): Likewise.
3319 (classes_info): Likewise.
3320 (find_methods): Likewise.
3321 * objfiles.c (allocate_objfile): Likewise.
3322 (update_section_map): Likewise.
3323 * osabi.c (gdbarch_register_osabi): Likewise.
3324 (gdbarch_register_osabi_sniffer): Likewise.
3325 * parse.c (start_arglist): Likewise.
3326 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3327 (hwdebug_insert_point): Likewise.
3328 * printcmd.c (display_command): Likewise.
3329 (ui_printf): Likewise.
3330 * procfs.c (create_procinfo): Likewise.
3331 (load_syscalls): Likewise.
3332 (proc_get_LDT_entry): Likewise.
3333 (proc_update_threads): Likewise.
3334 * prologue-value.c (make_pv_area): Likewise.
3335 (pv_area_store): Likewise.
3336 * psymtab.c (extend_psymbol_list): Likewise.
3337 (init_psymbol_list): Likewise.
3338 (allocate_psymtab): Likewise.
3339 * python/py-inferior.c (add_thread_object): Likewise.
3340 * python/py-param.c (compute_enum_values): Likewise.
3341 * python/py-value.c (valpy_call): Likewise.
3342 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3343 * python/python.c (ensure_python_env): Likewise.
3344 * record-btrace.c (record_btrace_start_replaying): Likewise.
3345 * record-full.c (record_full_reg_alloc): Likewise.
3346 (record_full_mem_alloc): Likewise.
3347 (record_full_end_alloc): Likewise.
3348 (record_full_core_xfer_partial): Likewise.
3349 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3350 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3351 * remote-notif.c (remote_notif_state_allocate): Likewise.
3352 * remote.c (demand_private_info): Likewise.
3353 (remote_notif_stop_alloc_reply): Likewise.
3354 (remote_enable_btrace): Likewise.
3355 * reverse.c (save_bookmark_command): Likewise.
3356 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3357 * rx-tdep.c (rx_gdbarch_init): Likewise.
3358 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3359 * ser-go32.c (dos_get_tty_state): Likewise.
3360 (dos_copy_tty_state): Likewise.
3361 * ser-mingw.c (ser_windows_open): Likewise.
3362 (ser_console_wait_handle): Likewise.
3363 (ser_console_get_tty_state): Likewise.
3364 (make_pipe_state): Likewise.
3365 (net_windows_open): Likewise.
3366 * ser-unix.c (hardwire_get_tty_state): Likewise.
3367 (hardwire_copy_tty_state): Likewise.
3368 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3369 * solib-dsbt.c (dsbt_current_sos): Likewise.
3370 (dsbt_relocate_main_executable): Likewise.
3371 * solib-frv.c (frv_current_sos): Likewise.
3372 (frv_relocate_main_executable): Likewise.
3373 * solib-spu.c (spu_bfd_fopen): Likewise.
3374 * solib-svr4.c (lm_info_read): Likewise.
3375 (svr4_copy_library_list): Likewise.
3376 (svr4_default_sos): Likewise.
3377 * source.c (find_source_lines): Likewise.
3378 (line_info): Likewise.
3379 (add_substitute_path_rule): Likewise.
3380 * spu-linux-nat.c (spu_bfd_open): Likewise.
3381 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3382 * stabsread.c (dbx_lookup_type): Likewise.
3383 (read_type): Likewise.
3384 (read_member_functions): Likewise.
3385 (read_struct_fields): Likewise.
3386 (read_baseclasses): Likewise.
3387 (read_args): Likewise.
3388 (_initialize_stabsread): Likewise.
3389 * stack.c (func_command): Likewise.
3390 * stap-probe.c (handle_stap_probe): Likewise.
3391 * symfile.c (addrs_section_sort): Likewise.
3392 (addr_info_make_relative): Likewise.
3393 (load_section_callback): Likewise.
3394 (add_symbol_file_command): Likewise.
3395 (init_filename_language_table): Likewise.
3396 * symtab.c (create_filename_seen_cache): Likewise.
3397 (sort_search_symbols_remove_dups): Likewise.
3398 (search_symbols): Likewise.
3399 * target.c (make_cleanup_restore_target_terminal): Likewise.
3400 * thread.c (new_thread): Likewise.
3401 (enable_thread_stack_temporaries): Likewise.
3402 (make_cleanup_restore_current_thread): Likewise.
3403 (thread_apply_all_command): Likewise.
3404 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3405 * top.c (gdb_readline_wrapper): Likewise.
3406 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3407 * tracepoint.c (trace_find_line_command): Likewise.
3408 (all_tracepoint_actions_and_cleanup): Likewise.
3409 (make_cleanup_restore_current_traceframe): Likewise.
3410 (get_uploaded_tp): Likewise.
3411 (get_uploaded_tsv): Likewise.
3412 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3413 (tui_alloc_win_info): Likewise.
3414 (tui_alloc_content): Likewise.
3415 (tui_add_content_elements): Likewise.
3416 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3417 (tui_set_disassem_content): Likewise.
3418 * ui-file.c (ui_file_new): Likewise.
3419 (stdio_file_new): Likewise.
3420 (tee_file_new): Likewise.
3421 * utils.c (make_cleanup_restore_integer): Likewise.
3422 (add_internal_problem_command): Likewise.
3423 * v850-tdep.c (v850_gdbarch_init): Likewise.
3424 * valops.c (find_oload_champ): Likewise.
3425 * value.c (allocate_value_lazy): Likewise.
3426 (record_latest_value): Likewise.
3427 (create_internalvar): Likewise.
3428 * varobj.c (install_variable): Likewise.
3429 (new_variable): Likewise.
3430 (new_root_variable): Likewise.
3431 (cppush): Likewise.
3432 (_initialize_varobj): Likewise.
3433 * windows-nat.c (windows_make_so): Likewise.
3434 * x86-nat.c (x86_add_process): Likewise.
3435 * xcoffread.c (arrange_linetable): Likewise.
3436 (allocate_include_entry): Likewise.
3437 (process_linenos): Likewise.
3438 (SYMBOL_DUP): Likewise.
3439 (xcoff_start_psymtab): Likewise.
3440 (xcoff_end_psymtab): Likewise.
3441 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3442 * xtensa-tdep.c (xtensa_register_type): Likewise.
3443 * gdbarch.c: Regenerate.
3444 * gdbarch.h: Regenerate.
3445
17d8546e
DB
34462015-08-25 Don Breazeal <donb@codesourcery.com>
3447
3448 * infrun.c (follow_exec): Re-order operations for
3449 handling follow-exec-mode "new".
3450 (handle_inferior_event_1): Assign ecs->event_thread
3451 to the current thread.
3452 * remote.c (get_remote_arch_state): Add an assertion.
3453
ba49e44b
PA
34542015-08-26 Pedro Alves <palves@redhat.com>
3455
3456 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3457
7541ab03 34582015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3459
7541ab03 3460 PR gdb/18804
abc56d60
PA
3461 * defs.h (maybe_quit): Declare.
3462 (QUIT): Now calls maybe_quit.
3463 * event-loop.c (clear_async_signal_handler)
3464 (async_signal_handler_is_marked): New functions.
3465 * event-loop.h (async_signal_handler_is_marked)
3466 (clear_async_signal_handler): New declarations.
3467 * remote.c (remote_check_pending_interrupt): New function.
3468 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3469 longer check whether the target is async. If waiting for a stop
3470 reply, and a Ctrl-C as been sent to the target, offer to
3471 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3472 Otherwise do not disconnect and throw a quit.
3473 (_initialize_remote): Install remote_check_pending_interrupt as
3474 to_check_pending_interrupt.
3475 * target.c (target_check_pending_interrupt): New function.
3476 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3477 field.
3478 (target_check_pending_interrupt): New declaration.
3479 * utils.c (maybe_quit): New function.
3480 * target-delegates.c: Regenerate.
3481
dfe7f77c
YQ
34822015-08-25 Yao Qi <yao.qi@linaro.org>
3483
3484 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3485 Rename local variable pid to tid, and get lwpid of lwp. Update
3486 debug output.
3487
63e43d3a
PMR
34882015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3489
3490 * ada-lang.c (ada_read_var_value): Add a var_block argument
3491 and pass it to default_read_var_value.
3492 * block.c (block_static_link): New accessor.
3493 * block.h (block_static_link): Declare it.
3494 * buildsym.c (finish_block_internal): Add a static_link
3495 argument. If there is a static link, associate it to the new
3496 block.
3497 (finish_block): Add a static link argument and pass it to
3498 finish_block_internal.
3499 (end_symtab_get_static_block): Update calls to finish_block and
3500 to finish_block_internal.
3501 (end_symtab_with_blockvector): Update call to
3502 finish_block_internal.
3503 * buildsym.h: Forward-declare struct dynamic_prop.
3504 (struct context_stack): Add a static_link field.
3505 (finish_block): Add a static link argument.
3506 * c-exp.y: Remove an obsolete comment (evaluation of variables
3507 already start from the selected frame, and now they climb *up*
3508 the call stack) and propagate the block information to the
3509 produced expression.
3510 * d-exp.y: Likewise.
3511 * f-exp.y: Likewise.
3512 * go-exp.y: Likewise.
3513 * jv-exp.y: Likewise.
3514 * m2-exp.y: Likewise.
3515 * p-exp.y: Likewise.
3516 * coffread.c (coff_symtab_read): Update calls to finish_block.
3517 * dbxread.c (process_one_symbol): Likewise.
3518 * xcoffread.c (read_xcoff_symtab): Likewise.
3519 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3520 "sym" parameter to struct block_symbol, update its uses and pass
3521 its block to calls to read_var_value.
3522 (convert_symbol_sym): Update the calls to convert_one_symbol.
3523 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3524 call to read_var_value.
3525 * dwarf2loc.c (block_op_get_frame_base): New.
3526 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3527 get_frame_base method.
3528 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3529 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3530 instead of the selected frame in order to evaluate the
3531 expression.
3532 (dwarf2_evaluate_property): Add a frame argument. Update call
3533 to dwarf2_locexpr_baton_eval to provide a frame in available and
3534 to handle the absence of address stack.
3535 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3536 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3537 declaration.
3538 (read_func_scope): Record any available static link description.
3539 Update call to finish_block.
3540 (read_lexical_block_scope): Update call to finish_block.
3541 * findvar.c (follow_static_link): New.
3542 (get_hosting_frame): New.
3543 (default_read_var_value): Add a var_block argument. Use
3544 get_hosting_frame to handle non-local references.
3545 (read_var_value): Add a var_block argument and pass it to the
3546 LA_READ_VAR_VALUE method.
3547 * gdbtypes.c (resolve_dynamic_range): Update calls to
3548 dwarf2_evaluate_property.
3549 (resolve_dynamic_type_internal): Likewise.
3550 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3551 read_var_value, passing it the block coming from symbol lookup.
3552 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3553 read_var_value (TODO).
3554 * infcmd.c (finish_command_continuation): Update call to
3555 read_var_value, passing it the block coming from symbol lookup.
3556 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3557 * language.h (struct language_defn): Add a var_block argument to
3558 the LA_READ_VAR_VALUE method.
3559 * objfiles.c (struct static_link_htab_entry): New.
3560 (static_link_htab_entry_hash): New.
3561 (static_link_htab_entry_eq): New.
3562 (objfile_register_static_link): New.
3563 (objfile_lookup_static_link): New.
3564 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3565 * objfiles.h: Include hashtab.h.
3566 (struct objfile): Add a static_links field.
3567 (objfile_register_static_link): New.
3568 (objfile_lookup_static_link): New.
3569 * printcmd.c (print_variable_and_value): Update call to
3570 read_var_value.
3571 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3572 * python/py-frame.c (frapy_read_var): Update call to
3573 read_var_value, passing it the block coming from symbol lookup.
3574 * python/py-framefilter.c (extract_sym): Add a sym_block
3575 parameter and set the pointed value to NULL (TODO).
3576 (enumerate_args): Update call to extract_sym.
3577 (enumerate_locals): Update calls to extract_sym and to
3578 read_var_value.
3579 * python/py-symbol.c (sympy_value): Update call to
3580 read_var_value (TODO).
3581 * stack.c (read_frame_local): Update call to read_var_value.
3582 (read_frame_arg): Likewise.
3583 (return_command): Likewise.
3584 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3585 method.
3586 (struct symbol): Add a block field.
3587 (SYMBOL_BLOCK): New accessor.
3588 * valops.c (value_of_variable): Remove frame/block handling and
3589 pass the block argument to read_var_value, which does this job
3590 now.
3591 (value_struct_elt_for_reference): Update calls to
3592 read_var_value.
3593 (value_of_this): Pass the block found to read_var_value.
3594 * value.h (read_var_value): Add a var_block argument.
3595 (default_read_var_value): Likewise.
3596
ed8b7b42
YQ
35972015-08-25 Yao Qi <yao.qi@linaro.org>
3598
3599 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3600 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3601 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3602
db3cb7cb
YQ
36032015-08-25 Yao Qi <yao.qi@linaro.org>
3604
3605 * Makefile.in (aarch64-liunx.o): New rule.
3606 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3607 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3608 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3609 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3610 extern.
3611 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3612 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3613 * nat/aarch64-linux.c: New file.
3614 * nat/aarch64-linux.h: New file.
3615
f6011a1c
YQ
36162015-08-25 Yao Qi <yao.qi@linaro.org>
3617
3618 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3619 lwp_arch_private_info and ptid_of_lwp.
3620
5e35436e
YQ
36212015-08-25 Yao Qi <yao.qi@linaro.org>
3622
3623 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3624 Move it to nat/aarch64-linux-hw-point.c.
3625 (debug_reg_change_callback): Likewise.
3626 (aarch64_notify_debug_reg_change): :Likewise.
3627 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3628 (aarch64_dr_update_callback_param): New.
3629 (debug_reg_change_callback): New function.
3630 (aarch64_notify_debug_reg_change): Likewise.
3631 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3632 Remove the declaration.
3633
4a8a7965
YQ
36342015-08-25 Yao Qi <yao.qi@linaro.org>
3635
3636 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3637 Call current_lwp_ptid.
3638
32a271ee
YQ
36392015-08-25 Yao Qi <yao.qi@linaro.org>
3640
3641 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3642 debug_printf.
3643
5e137137
YQ
36442015-08-25 Yao Qi <yao.qi@linaro.org>
3645
3646 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3647 ptid_get_pid rather than ptid_get_lwp.
3648
73b8c1fd
PA
36492015-08-24 Pedro Alves <palves@redhat.com>
3650
3651 * NEWS (New commands): Mention set/show remote
3652 multiprocess-extensions-packet.
3653 * remote.c (remote_query_supported): Only tell the server to use
3654 the multiprocess extensions if the user hasn't force-disabled them
3655 with "set remote multiprocess-extensions-packet off".
3656
4a626d0a
PA
36572015-08-24 Pedro Alves <palves@redhat.com>
3658
3659 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3660 1029a8112290f6eee9d7878a391c49db42c999bd.
3661 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3662 Regenerate.
3663 * gnulib/import/Makefile.am: Update.
3664 * gnulib/import/Makefile.in: Update.
3665 * gnulib/import/alloca.in.h: Update.
3666 * gnulib/import/basename-lgpl.c: Update.
3667 * gnulib/import/canonicalize-lgpl.c: Update.
3668 * gnulib/import/config.charset: Update.
3669 * gnulib/import/dirent.in.h: Update.
3670 * gnulib/import/dirfd.c: Update.
3671 * gnulib/import/dirname-lgpl.c: Update.
3672 * gnulib/import/dirname.h: Update.
3673 * gnulib/import/dosname.h: Update.
3674 * gnulib/import/errno.in.h: Update.
3675 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3676 * gnulib/import/extra/snippet/c++defs.h: Update.
3677 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3678 * gnulib/import/extra/update-copyright: Update.
3679 * gnulib/import/float+.h: Update.
3680 * gnulib/import/float.c: Update.
3681 * gnulib/import/float.in.h: Update.
3682 * gnulib/import/fnmatch.c: Update.
3683 * gnulib/import/fnmatch.in.h: Update.
3684 * gnulib/import/fnmatch_loop.c: Update.
3685 * gnulib/import/fpucw.h: Update.
3686 * gnulib/import/frexp.c: Update.
3687 * gnulib/import/frexpl.c: Update.
3688 * gnulib/import/gettimeofday.c: Update.
3689 * gnulib/import/inttypes.in.h: Update.
3690 * gnulib/import/isnan.c: Update.
3691 * gnulib/import/isnand-nolibm.h: Update.
3692 * gnulib/import/isnand.c: Update.
3693 * gnulib/import/isnanl-nolibm.h: Update.
3694 * gnulib/import/isnanl.c: Update.
3695 * gnulib/import/itold.c: Update.
3696 * gnulib/import/localcharset.c: Update.
3697 * gnulib/import/localcharset.h: Update.
3698 * gnulib/import/lstat.c: Update.
3699 * gnulib/import/m4/00gnulib.m4: Update.
3700 * gnulib/import/m4/absolute-header.m4: Update.
3701 * gnulib/import/m4/alloca.m4: Update.
3702 * gnulib/import/m4/canonicalize.m4: Update.
3703 * gnulib/import/m4/codeset.m4: Update.
3704 * gnulib/import/m4/configmake.m4: Update.
3705 * gnulib/import/m4/dirent_h.m4: Update.
3706 * gnulib/import/m4/dirfd.m4: Update.
3707 * gnulib/import/m4/dirname.m4: Update.
3708 * gnulib/import/m4/double-slash-root.m4: Update.
3709 * gnulib/import/m4/eealloc.m4: Update.
3710 * gnulib/import/m4/errno_h.m4: Update.
3711 * gnulib/import/m4/exponentd.m4: Update.
3712 * gnulib/import/m4/exponentl.m4: Update.
3713 * gnulib/import/m4/extensions.m4: Update.
3714 * gnulib/import/m4/extern-inline.m4: Update.
3715 * gnulib/import/m4/fcntl-o.m4: Update.
3716 * gnulib/import/m4/float_h.m4: Update.
3717 * gnulib/import/m4/fnmatch.m4: Update.
3718 * gnulib/import/m4/fpieee.m4: Update.
3719 * gnulib/import/m4/frexp.m4: Update.
3720 * gnulib/import/m4/frexpl.m4: Update.
3721 * gnulib/import/m4/gettimeofday.m4: Update.
3722 * gnulib/import/m4/glibc21.m4: Update.
3723 * gnulib/import/m4/gnulib-cache.m4: Update.
3724 * gnulib/import/m4/gnulib-common.m4: Update.
3725 * gnulib/import/m4/gnulib-comp.m4: Update.
3726 * gnulib/import/m4/gnulib-tool.m4: Update.
3727 * gnulib/import/m4/include_next.m4: Update.
3728 * gnulib/import/m4/inttypes-pri.m4: Update.
3729 * gnulib/import/m4/inttypes.m4: Update.
3730 * gnulib/import/m4/isnand.m4: Update.
3731 * gnulib/import/m4/isnanl.m4: Update.
3732 * gnulib/import/m4/largefile.m4: Update.
3733 * gnulib/import/m4/localcharset.m4: Update.
3734 * gnulib/import/m4/locale-fr.m4: Update.
3735 * gnulib/import/m4/locale-ja.m4: Update.
3736 * gnulib/import/m4/locale-zh.m4: Update.
3737 * gnulib/import/m4/longlong.m4: Update.
3738 * gnulib/import/m4/lstat.m4: Update.
3739 * gnulib/import/m4/malloc.m4: Update.
3740 * gnulib/import/m4/malloca.m4: Update.
3741 * gnulib/import/m4/math_h.m4: Update.
3742 * gnulib/import/m4/mbrtowc.m4: Update.
3743 * gnulib/import/m4/mbsinit.m4: Update.
3744 * gnulib/import/m4/mbsrtowcs.m4: Update.
3745 * gnulib/import/m4/mbstate_t.m4: Update.
3746 * gnulib/import/m4/memchr.m4: Update.
3747 * gnulib/import/m4/memmem.m4: Update.
3748 * gnulib/import/m4/mmap-anon.m4: Update.
3749 * gnulib/import/m4/multiarch.m4: Update.
3750 * gnulib/import/m4/nocrash.m4: Update.
3751 * gnulib/import/m4/off_t.m4: Update.
3752 * gnulib/import/m4/pathmax.m4: Update.
3753 * gnulib/import/m4/readlink.m4: Update.
3754 * gnulib/import/m4/rename.m4: Update.
3755 * gnulib/import/m4/rmdir.m4: Update.
3756 * gnulib/import/m4/ssize_t.m4: Update.
3757 * gnulib/import/m4/stat.m4: Update.
3758 * gnulib/import/m4/stdbool.m4: Update.
3759 * gnulib/import/m4/stddef_h.m4: Update.
3760 * gnulib/import/m4/stdint.m4: Update.
3761 * gnulib/import/m4/stdio_h.m4: Update.
3762 * gnulib/import/m4/stdlib_h.m4: Update.
3763 * gnulib/import/m4/string_h.m4: Update.
3764 * gnulib/import/m4/strstr.m4: Update.
3765 * gnulib/import/m4/strtok_r.m4: Update.
3766 * gnulib/import/m4/sys_socket_h.m4: Update.
3767 * gnulib/import/m4/sys_stat_h.m4: Update.
3768 * gnulib/import/m4/sys_time_h.m4: Update.
3769 * gnulib/import/m4/sys_types_h.m4: Update.
3770 * gnulib/import/m4/time_h.m4: Update.
3771 * gnulib/import/m4/unistd_h.m4: Update.
3772 * gnulib/import/m4/warn-on-use.m4: Update.
3773 * gnulib/import/m4/wchar_h.m4: Update.
3774 * gnulib/import/m4/wchar_t.m4: Update.
3775 * gnulib/import/m4/wctype_h.m4: Update.
3776 * gnulib/import/m4/wint_t.m4: Update.
3777 * gnulib/import/malloc.c: Update.
3778 * gnulib/import/malloca.c: Update.
3779 * gnulib/import/malloca.h: Update.
3780 * gnulib/import/math.in.h: Update.
3781 * gnulib/import/mbrtowc.c: Update.
3782 * gnulib/import/mbsinit.c: Update.
3783 * gnulib/import/mbsrtowcs-impl.h: Update.
3784 * gnulib/import/mbsrtowcs-state.c: Update.
3785 * gnulib/import/mbsrtowcs.c: Update.
3786 * gnulib/import/memchr.c: Update.
3787 * gnulib/import/memmem.c: Update.
3788 * gnulib/import/pathmax.h: Update.
3789 * gnulib/import/readlink.c: Update.
3790 * gnulib/import/ref-add.sin: Update.
3791 * gnulib/import/ref-del.sin: Update.
3792 * gnulib/import/rename.c: Update.
3793 * gnulib/import/rmdir.c: Update.
3794 * gnulib/import/same-inode.h: Update.
3795 * gnulib/import/stat.c: Update.
3796 * gnulib/import/stdbool.in.h: Update.
3797 * gnulib/import/stddef.in.h: Update.
3798 * gnulib/import/stdint.in.h: Update.
3799 * gnulib/import/stdio.c: Update.
3800 * gnulib/import/stdio.in.h: Update.
3801 * gnulib/import/stdlib.in.h: Update.
3802 * gnulib/import/str-two-way.h: Update.
3803 * gnulib/import/streq.h: Update.
3804 * gnulib/import/string.in.h: Update.
3805 * gnulib/import/stripslash.c: Update.
3806 * gnulib/import/strnlen1.c: Update.
3807 * gnulib/import/strnlen1.h: Update.
3808 * gnulib/import/strstr.c: Update.
3809 * gnulib/import/strtok_r.c: Update.
3810 * gnulib/import/sys_stat.in.h: Update.
3811 * gnulib/import/sys_time.in.h: Update.
3812 * gnulib/import/sys_types.in.h: Update.
3813 * gnulib/import/time.in.h: Update.
3814 * gnulib/import/unistd.in.h: Update.
3815 * gnulib/import/verify.h: Update.
3816 * gnulib/import/wchar.in.h: Update.
3817 * gnulib/import/wctype.in.h: Update.
3818 * gnulib/import/gettimeofday.c: New file.
3819 * gnulib/import/m4/absolute-header.m4: New file.
3820 * gnulib/import/m4/gettimeofday.m4: New file.
3821 * gnulib/import/m4/sys_socket_h.m4: New file.
3822 * gnulib/import/m4/sys_time_h.m4: New file.
3823 * gnulib/import/stdio.c: Delete file.
3824 * gnulib/import/sys_time.in.h: New file.
3825
438e1e42
PA
38262015-08-24 Pedro Alves <palves@redhat.com>
3827
3828 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3829 * common/gdb_sys_time.h: New file.
3830 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3831 * gdb_select.h: Likewise.
3832 * gdb_usleep.c: Likewise.
3833 * maint.c: Likewise.
3834 * mi/mi-main.c: Likewise.
3835 * mi/mi-parse.h: Likewise.
3836 * remote-fileio.c: Likewise.
3837 * remote-m32r-sdi.c: Likewise.
3838 * remote.c: Likewise.
3839 * ser-base.c: Likewise.
3840 * ser-pipe.c: Likewise.
3841 * ser-tcp.c: Likewise.
3842 * ser-unix.c: Likewise.
3843 * symfile.c: Likewise.
3844 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3845 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3846 * utils.c: Likewise.
3847
40e0b271
PA
38482015-08-24 Pedro Alves <palves@redhat.com>
3849
3850 * NEWS: Mention removed support for the various ROM monitors.
3851 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3852 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3853 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3854 gdb_target_obs.
3855 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3856 gdb_target_obs.
3857 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3858 dsrec.o from gdb_target_obs.
3859 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3860 from gdb_target_obs.
3861 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3862 gdb_target_obs.
3863 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3864 dink32-rom.o from gdb_target_obs.
3865 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3866 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3867 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3868 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3869
f8904751
PA
38702015-08-21 Pedro Alves <palves@redhat.com>
3871
3872 * frame.c (null_frame_id): Explicitly zero-initialize.
3873
049412e3
TT
38742015-08-21 Tom Tromey <tromey@redhat.com>
3875
3876 * dwarf2read.c (struct dwarf2_section_info): Rename field
3877 'asection' to 'section'.
3878 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3879 (dwarf2_locate_sections, dwarf2_locate_sections)
3880 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3881 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3882 (dwarf2_locate_v2_dwp_sections): Adjust.
3883
948578a9
PP
38842015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3885
3886 * top.h (gdb_in_secondary_prompt_p): Declare.
3887 * top.c (gdb_secondary_prompt_depth): Define.
3888 (gdb_in_secondary_prompt_p): Define.
3889 (gdb_readline_wrapper_cleanup): Decrement
3890 gdb_secondary_prompt_depth.
3891 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3892 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3893 are in a secondary prompt.
3894
7a8bcb88
PP
38952015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3896
3897 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3898 emit the newline.
3899
2d7711a3
GB
39002015-08-21 Gary Benson <gbenson@redhat.com>
3901
3902 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3903
4313b8c0
GB
39042015-08-21 Gary Benson <gbenson@redhat.com>
3905
3906 * target.h (struct target_ops) <to_fileio_open>: New argument
3907 warn_if_slow. Update comment. All implementations updated.
3908 (target_fileio_open_warn_if_slow): New declaration.
3909 * target.c (target_fileio_open): Renamed as...
3910 (target_fileio_open_1): ...this. New argument warn_if_slow.
3911 Pass warn_if_slow to implementation. Update debug printing.
3912 (target_fileio_open): New function.
3913 (target_fileio_open_warn_if_slow): Likewise.
3914 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3915 target_fileio_open_warn_if_slow.
3916
f36b8719
GB
39172015-08-21 Gary Benson <gbenson@redhat.com>
3918
3919 * nat/linux-namespaces.c (linux_mntns_access_fs):
3920 Do not overwrite old_chain.
3921
40045d91
MF
39222015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3923
3924 * arch/xtensa.h: New file.
3925 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3926 (ps_get_thread_area): New function.
3927 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3928 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3929 * xtensa-tdep.c (osabi.h): New #include.
3930 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3931 xtensa-specific hooks.
3932 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3933 member and move the structure to arch/xtensa.h.
3934
80152258
PA
39352015-08-21 Pedro Alves <palves@redhat.com>
3936
3937 * remote.c (struct readahead_cache): New.
3938 (struct remote_state) <readahead_cache>: New field.
3939 (remote_open_1): Invalidate the cache.
3940 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3941 functions.
3942 (remote_hostio_pwrite): Invalidate the readahead cache.
3943 (remote_hostio_pread): Rename to ...
3944 (remote_hostio_pread_vFile): ... this.
3945 (remote_hostio_pread_from_cache): New function.
3946 (remote_hostio_pread): Reimplement.
3947 (remote_hostio_close): Invalidate the readahead cache.
3948
88fc5eb7
MC
39492015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3950
3951 PR build/18843
3952 * procfs.c: Include "filestuff.h".
3953
6f1cb6ea
PP
39542015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3955
3956 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3957 curch.
3958 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3959 cur_line or curch, instead call wmove().
3960 (init_win_info) [CMD_WIN]: Likewise.
3961 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3962 instead call getcury().
3963 (tui_redisplay_readline): Don't set cur_line or curch.
3964 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3965 getcury().
3966 (tui_cont_sig): Remove call to wmove.
3967 (tui_getc): Don't read cur_line or curch, instead call getcury()
3968 or getyx(). Don't set curch.
3969 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3970 set cur_line or curch. Always move cursor to (0,0).
3971
221e1a37
PA
39722015-08-20 Pedro Alves <palves@redhat.com>
3973
3974 * infrun.c (print_target_wait_results): Make extern.
3975 * infrun.h (print_target_wait_results): Declare.
3976 * remote.c (set_stop_requested_callback): Delete.
3977 (process_initial_stop_replies): New function.
3978 (remote_start_remote): Use it.
3979 (stop_reply_queue_length): New function.
3980
40e3ad0e
PA
39812015-08-20 Pedro Alves <palves@redhat.com>
3982
3983 * dwarf2read.c (process_full_comp_unit): To tell whether
3984 start_subfile managed to deduce a language, test for
3985 language_unknown instead of language_c.
3986
af39b327
PMR
39872015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3988
3989 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3990 matches attributes.
3991
7d45c7c3
KB
39922015-08-19 Kevin Buettner <kevinb@redhat.com>
3993
3994 * dwarf2read.c (dwarf2_string_attr): New function.
3995 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3996 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3997 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3998 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3999 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4000
4d6cceb4
DE
40012015-08-18 Doug Evans <dje@google.com>
4002 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4003
4004 PR mi/18833
4005 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4006 if MI-like.
4007 * mi/mi-out.c: #include "vec.h".
4008 (ui_filep): New type.
4009 (DEV_VEC_P (ui_filep)): New type.
4010 (struct ui_out_data) <buffer, original_buffer>: Delete.
4011 (struct ui_out_data) <streams>: New member.
4012 (mi_ui_out_impl): Add data_destroy field.
4013 (mi_field_string, mi_field_fmt): Update.
4014 (mi_flush, mi_redirect, field_separator): Update.
4015 (mi_open, mi_close): Update.
4016 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4017 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4018 (mi_out_new): Call mi_out_data_ctor.
4019
26d56a93
SL
40202015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4021
4022 * remote.c (strprefix): New.
4023 (remote_parse_stop_reply): Use strprefix instead of strncmp
4024 to ensure exact match of keyword.
4025
566f5e3b
AB
40262015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * gdb_bfd.c (debug_bfd_cache): New variable.
4029 (show_bfd_cache_debug): New function.
4030 (gdb_bfd_open): Add debug logging.
4031 (gdb_bfd_ref): Likewise.
4032 (gdb_bfd_unref): Likewise.
4033 (_initialize_gdb_bfd): Add new set/show command.
4034 * NEWS: Mention new command.
4035
18989b3c
AB
40362015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * gdb_bfd.c (bfd_sharing): New variable.
4039 (show_bfd_sharing): New function.
4040 (gdb_bfd_open): Check bfd_sharing variable.
4041 (_initialize_gdb_bfd): Add new set/show command.
4042 * NEWS: Mention new command.
4043
c04fe68f
AB
40442015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4047 field.
4048 (struct gdb_bfd_cache_search): Likewise.
4049 (eq_bfd): Compare the size, inode, and device id fields.
4050 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4051 (gdb_bfd_ref): Likewise.
4052 (gdb_bfd_unref): Likewise.
4053
b2a33439
PA
40542015-08-18 Pedro Alves <palves@redhat.com>
4055
4056 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4057 target implements to_always_non_stop_p, call it.
4058 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4059 (x86_linux_create_target): Install it as to_always_non_stop_p
4060 method.
4061
71b57e37
DE
40622015-08-17 Doug Evans <dje@google.com>
4063
4064 * ui-out.c (default_ui_out_impl): Add comment.
4065
7f3706eb
IB
40662015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4067
4068 * d-exp.y (type_aggregate_p): New function.
4069 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4070 (classify_inner_name): Likewise.
4071 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4072
1762568f
DE
40732015-08-15 Doug Evans <xdje42@gmail.com>
4074
4075 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4076 updated.
4077 (add_psymbol_to_list): Ditto.
4078
8763cede
DE
40792015-08-15 Doug Evans <xdje42@gmail.com>
4080
4081 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4082 updated. Call end_psymtab_common.
4083 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4084 end_psymtab_common.
4085 (build_type_psymtabs_reader): Ditto.
4086 * psympriv.h (sort_pst_symbols): Delete.
4087 (end_psymtab_common): Declare.
4088 * psymtab.c (sort_pst_symbols): Make static.
4089 (end_psymtab_common): New function.
4090 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4091
51cdc993
DE
40922015-08-15 Doug Evans <xdje42@gmail.com>
4093
4094 * defs.h (LANGUAGE_BITS): Define.
4095 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4096 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4097 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4098 (minimal_symbol_type): Add nr_minsym_types.
4099 (MINSYM_TYPE_BITS): Define.
4100 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4101 (domain_enum_tag): Add NR_DOMAINS.
4102 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4103 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4104
95cf5869
DE
41052015-08-15 Doug Evans <xdje42@gmail.com>
4106
4107 * objfiles.h: Whitespace cleanup.
4108 * psympriv.h: Whitespace cleanup.
4109 * psymtab.c: Whitespace/coding convention cleanup.
4110
e3ae3c43
PP
41112015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4112
4113 * inferior.c (detach_inferior_command): Don't call
4114 any_thread_of_process when pid is 0.
4115 (kill_inferior_command): Likewise.
4116
6ff0ba5f
DE
41172015-08-14 Doug Evans <xdje42@gmail.com>
4118
4119 PR gdb/11833
4120 * NEWS: Document new /s modifier for the disassemble command.
4121 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4122 (_initialize_cli_cmds): Update online docs of disassemble command.
4123 * disasm.c: #include "source.h".
4124 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4125 All uses updated.
4126 (dis_line_entry): New struct.
4127 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4128 (allocate_dis_line_table): New functions.
4129 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4130 (dump_insns): New arg end_pc. All callers updated.
4131 (do_mixed_source_and_assembly_deprecated): Renamed from
4132 do_mixed_source_and_assembly. All callers updated.
4133 (do_mixed_source_and_assembly): New function.
4134 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4135 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4136 DISASSEMBLY_SOURCE. All uses updated.
4137 (DISASSEMBLY_SOURCE): New macro.
4138 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4139
b56ccc20
KS
41402015-08-14 Keith Seitz <keiths@redhat.com>
4141
4142 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4143 `typename' to `type_name' to avoid C++ reserved word.
4144
ebdad8fc
KS
41452015-08-14 Keith Seitz <keiths@redhat.com>
4146
4147 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4148 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4149 silence ARI errors.
4150
c0fe2ae7
IB
41512015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4152
4153 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4154 xstrprintf instead of malloc and sprintf.
4155 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4156 (lex_one_token): Likewise.
4157
a738da3a
MF
41582015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4159
4160 * solib-svr4.c (read_program_header): Add base_addr argument to
4161 report the runtime address of the segment.
4162 (find_program_interpreter): Update read_program_header call to pass
4163 a NULL pointer for the new argument.
4164 (scan_dyntag): Add ptr_addr argument to report the runtime address
4165 of the tag payload.
4166 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4167 read_program_header to get the base address of the dynamic segment.
4168 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4169 read_program_header.
4170 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4171
f8edc4ff
MF
41722015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4173
4174 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4175
444c1ed8
IB
41762015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4177
4178 * d-exp.y (%union): Add voidval.
4179 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4180 name in the lexing stage.
4181 (PostfixExpression): Move symbol completion handling in grammar here
4182 from PrimaryExpression.
4183 (PrimaryExpression): Move routines to handle resolving identifier
4184 tokens in the grammar here from push_expression_name.
4185 (IdentifierExp): Remove the handling of alternating '.' and identifier
4186 tokens.
4187 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4188 (BasicType): Remove C-style typename rules.
4189 (d_type_from_name, d_module_from_name, push_variable)
4190 (push_fieldnames, push_type_name, push_module_name)
4191 (push_expression_name): Remove.
4192 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4193 (token_and_value): New type.
4194 (token_fifo, popping, name_obstack): New globals.
4195 (classify_name): New function.
4196 (classify_inner_name): Likewise.
4197 (yylex): Likewise.
4198 (d_parse): Initialize token_fifo, popping and name_obstack.
4199
bc7c9fab
IB
42002015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4201
4202 * Makefile.in (SFILES): Add d-namespace.c.
4203 (COMMON_OBS): Add d-namespace.o.
4204 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4205 la_lookup_symbol_nonlocal callback function pointer.
4206 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4207 (d_lookup_nested_symbol): New declaration.
4208 * d-namespace.c: New file.
4209
3207396b
PA
42102015-08-13 Pedro Alves <palves@redhat.com>
4211
4212 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4213 cleanup after the decref cleanup, not before.
4214
5d8c3ed3
PMR
42152015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4216
4217 * ada-lang.c: Include namespace.h
4218 (aux_add_nonlocal_symbols): Fix a function name in comment.
4219 (ada_add_block_renamings): New.
4220 (add_nonlocal_symbols): Add global renamings handling.
4221 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4222 to...
4223 (ada_add_all_symbols): ... this new function.
4224 (ada_add_block_symbols): Try to match the input name against the
4225 "using directives list", perform a recursive symbol lookup on
4226 the matched declarations.
4227 * block.h (struct block): Move the_namespace to top-level as
4228 namespace_info. Remove the language_specific field.
4229 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4230 * buildsym.h (using_directives): Rename into...
4231 (local_using_directives): ... this.
4232 (global_using_directives): New.
4233 (struct context_stack): Rename the using_directives field into
4234 local_using_directives.
4235 * buildsym.c (finish_block_internal): Deal with the proper
4236 using directives repository (local or global).
4237 (prepare_for_building): Reset local_using_directives. Assert
4238 that there is no pending global using directive.
4239 (reset_symtab_globals): Reset global_using_directives and
4240 local_using_directives.
4241 (end_symtab_get_static_block): Don't ignore symtabs that have
4242 only using directives.
4243 (push_context): Update references to local_using_directives.
4244 (buildsym_init): Do not reset using_directives.
4245 * cp-support.c: Include namespace.h.
4246 * cp-support.h (struct using_direct): Move to namespace.h.
4247 (cp_add_using_directives): Move to namespace.h.
4248 * cp-namespace.c: Include namespace.h
4249 (cp_add_using_directive): Move to namespace.c, rename it to
4250 add_using_directive, add a "using_directives" argument and use
4251 it as the pending using directives repository. All callers
4252 updated.
4253 * dwarf2read.c (using_directives): New.
4254 (read_import_statement): Call using_directives.
4255 (read_func_scope): Update references to local_using_directives.
4256 (read_lexical_block_scope): Likewise.
4257 (read_namespace): Update the heading comment, call
4258 using_directives.
4259 * namespace.h: New file.
4260 * namespace.c: New file.
4261 * Makefile.in (SFILES): Add namespace.c.
4262 (COMMON_OBS): Add namespace.o
4263
4dafcdeb
JB
42642015-08-12 Joel Brobecker <brobecker@adacore.com>
4265
4266 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4267 compute RETADDR.
4268
67994074
KS
42692015-08-12 Keith Seitz <keiths@redhat.com>
4270
4271 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4272 reserved C++ keyword "explicit" to "explicit_loc".
4273 * breakpoint.c (create_overlay_event_breakpoint)
4274 (create_longjmp_master_breakpoint)
4275 (create_std_terminate_master_breakpoint)
4276 (create_exception_master_breakpoint, update_static_tracepoint):
4277 Rename reserved C++ keyword "explicit" to "explicit_loc".
4278 * completer.c (collect_explicit_location_matches)
4279 (explicit_location_completer): Rename reserved C++ keyword
4280 "explicit" to "explicit_loc".
4281 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4282 (canonicalize_linespec, create_sals_line_offset)
4283 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4284 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4285 "explicit" to "explicit_loc".
4286 * location.c (struct event_location) <explicit>: Rename to
4287 "explicit_loc".
4288 (initialize_explicit_location, new_explicit_location)
4289 (explicit_location_to_string_internal, explicit_location_to_linespec):
4290 Rename reserved C++ keyword "explicit" to "explicit_loc".
4291 * location.h (explicit_location_to_string)
4292 (explicit_location_to_linespec, initialize_explicit_location)
4293 (new_explicit_location): Rename reserved C++ keyword "explicit"
4294 to "explicit_loc".
4295 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4296 keyword "explicit" to "explicit_loc".
4297
59ecaff3
KS
42982015-08-12 Keith Seitz <keiths@redhat.com>
4299
4300 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4301 and only call decode_line_1 when it is non-NULL.
4302
244558af
LM
43032015-08-12 Luis Machado <lgustavo@codesourcery.com>
4304
4305 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4306 location address is not meaningful.
4307 (breakpoint_address_is_meaningful): Update comment.
4308
629500fa
KS
43092015-08-11 Keith Seitz <keiths@redhat.com>
4310
4311 * NEWS: Mention explicit locations.
4312 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4313 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4314 (_initialize_breakpoint): Update documentation for
4315 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4316
eb8c4e2e
KS
43172015-08-11 Keith Seitz <keiths@redhat.com>
4318
4319 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4320 explicit locations, options "--source", "--function",
4321 "--label", and "--line".
4322
87f0e720
KS
43232015-08-11 Keith Seitz <keiths@redhat.com>
4324
4325 * completer.c: Include location.h.
4326 (enum match_type): New enum.
4327 (location_completer): Rename to ...
4328 (linespec_completer): ... this.
4329 (collect_explicit_location_matches, backup_text_ptr)
4330 (explicit_location_completer): New functions.
4331 (location_completer): "New" function; handle linespec
4332 and explicit location completions.
4333 (complete_line_internal): Remove all location completer-specific
4334 handling.
4335 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4336 (find_toplevel_char): Export.
4337 (linespec_parse_line_offset): Export.
4338 Issue error if STRING is not numerical.
4339 (gdb_get_linespec_parser_quote_characters): New function.
4340 * linespec.h (linespec_parse_line_offset): Declare.
4341 (get_gdb_linespec_parser_quote_characters): Declare.
4342 (is_ada_operator): Declare.
4343 (find_toplevel_char): Declare.
4344 (linespec_lexer_lex_keyword): Declare.
4345 * location.c (explicit_to_event_location): New function.
4346 (explicit_location_lex_one): New function.
4347 (string_to_explicit_location): New function.
4348 (string_to_event_location): Handle explicit locations.
4349 * location.h (explicit_to_event_location): Declare.
4350 (string_to_explicit_location): Declare.
4351
00e52e53
KS
43522015-08-11 Keith Seitz <keiths@redhat.com>
4353
4354 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4355 linespec into explicit location.
4356 * breakpoint.c (create_overlay_breakpoint)
4357 (create_longjmp_master_breakpoint)
4358 (create_std_terminate_master_breakpoint)
4359 (create_exception_master_breakpoint): Convert linespec into explicit
4360 location.
4361 (update_static_tracepoint): Convert linespec into explicit location.
4362 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4363 location.h.
4364 (struct linespec) <expression, expr_pc, source_filename>
4365 <function_name, label_name, line_offset>: Replace with ...
4366 <explicit>: ... this.
4367 <is_linespec>: New member.
4368 (PARSER_EXPLICIT): New accessor macro.
4369 (undefined_label_error): New function.
4370 (source_file_not_found_error): New function.
4371 (linespec_parse_basic): The parser result is now an explicit location.
4372 Use PARSER_EXPLICIT to access it.
4373 Use undefined_label_error.
4374 (canonicalize_linespec): Convert canonical linespec into explicit
4375 location.
4376 Move string representation of location to explicit_location_to_linespec
4377 and use it and explicit_location_to_string to save string
4378 representations of the canonical location.
4379 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4380 explicit location. Update all references.
4381 (convert_explicit_location_to_sals): New function.
4382 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4383 result's explicit location.
4384 (linespec_state_constructor): Initialize is_linespec.
4385 Use PARSER_EXPLICIT.
4386 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4387 result.
4388 (event_location_to_sals): For linespec locations, set is_linespec.
4389 Handle explicit locations.
4390 (decode_objc): 'ls' contains an explicit location now. Update all
4391 references.
4392 (symtabs_from_filename): Use source_file_not_found_error.
4393 * location.c (struct event_location.u) <explicit>: New member.
4394 (initialize_explicit_location): New function.
4395 (initialize_event_location): Initialize explicit locations.
4396 (new_explicit_location, get_explicit_location)
4397 (get_explicit_location_const): New functions.
4398 (explicit_to_string_internal): New function; most of contents moved
4399 from canonicalize_linespec.
4400 (explicit_location_to_string): New function.
4401 (explicit_location_to_linespec): New function.
4402 (copy_event_location, delete_event_location)
4403 (event_location_to_string_const, event_location_empty_p): Handle
4404 explicit locations.
4405 * location.h (enum offset_relative_sign, struct line_offset): Move
4406 here from linespec.h.
4407 (enum event_location_type): Add EXPLICIT_LOCATION.
4408 (struct explicit_location): New structure.
4409 (explicit_location_to_string): Declare.
4410 (explicit_location_to_linespec): Declare.
4411 (new_explicit_location, get_explicit_locationp
4412 (get_explicit_location_const, initialize_explicit_location): Declare.
4413
5b56227b
KS
44142015-08-11 Keith Seitz <keiths@redhat.com>
4415
4416 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4417 linespec for stap probe to probe location.
4418 * breakpoint.c (create_longjmp_master_breakpoint)
4419 (create_exception_master_breakpoint): Likewise.
4420 (break_command_1): Remove local variable `arg_cp'.
4421 Check location type to set appropriate breakpoint ops methods.
4422 (trace_command): Likewise.
4423 * linespec.c (event_location_to_sals): Assert on probe locations.
4424 * location.c (EL_PROBE): Add macro definition.
4425 (new_probe_location, get_probe_location): New functions.
4426 (copy_event_location, delete_event_location, event_location_to_string)
4427 (string_to_event_location, event_location_empty_p): Handle probe
4428 locations.
4429 * location.h (enum event_location_type): Add PROBE_LOCATION.
4430 (new_probe_location, get_probe_location): Declare.
4431 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4432 Convert linespec into probe location.
4433
a06efdd6
KS
44342015-08-11 Keith Seitz <keiths@redhat.com>
4435
4436 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4437 Convert linespec to address location.
4438 * linespec.c (canonicalize_linespec): Do not handle address
4439 locations here.
4440 (convert_address_location_to_sals): New function; contents moved
4441 from ...
4442 (convert_linespc_to_sals): ... here.
4443 (parse_linespec): Remove address locations from linespec grammar.
4444 Remove handling of address locations.
4445 (linespec_lex_to_end): Remove handling of address linespecs.
4446 (event_location_to_sals): Handle ADDRESS_LOCATION.
4447 (linespec_expression_to_pc): Export.
4448 * linespec.h (linespec_expression_to_pc): Add declaration.
4449 * location.c (struct event_location.u) <address>: New member.
4450 (new_address_location, get_address_location): New functions.
4451 (copy_event_location, delete_event_location, event_location_to_string)
4452 (string_to_event_location, event_location_empty_p): Handle address
4453 locations.
4454 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4455 (new_address_location, get_address_location): Declare.
4456 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4457 to address location.
4458 * spu-tdep.c (spu_catch_start): Likewise.
4459
f00aae0f
KS
44602015-08-11 Keith Seitz <keiths@redhat.com>
4461
4462 * ax-gdb.c: Include location.h.
4463 (agent_command_1) Use linespec location instead of address
4464 string.
4465 * break-catch-throw.c: Include location.h.
4466 (re_set_exception_catchpoint): Use linespec locations instead
4467 of address strings.
4468 * breakpoint.c: Include location.h.
4469 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4470 (create_std_terminate_master_breakpoint)
4471 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4472 Use linespec location instead of address string.
4473 (print_breakpoint_location): Use locations and
4474 event_location_to_string.
4475 Print extra_string for pending locations for non-MI streams.
4476 (print_one_breakpoint_location): Use locations and
4477 event_location_to_string.
4478 (init_raw_breakpoint_without_location): Initialize b->location.
4479 (create_thread_event_breakpoint): Use linespec location instead of
4480 address string.
4481 (init_breakpoint_sal): Likewise.
4482 Only save extra_string if it is non-NULL and not the empty string.
4483 Use event_location_to_string instead of `addr_string'.
4484 Constify `p' and `endp'.
4485 Use skip_spaces_const/skip_space_const instead of non-const versions.
4486 Copy the location into the breakpoint.
4487 If LOCATION is NULL, save the breakpoint address as a linespec location
4488 instead of an address string.
4489 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4490 event_location. All uses updated.
4491 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4492 (parse_breakpoint_sals): Use locations instead of address strings.
4493 Remove check for empty linespec with conditional.
4494 Refactor.
4495 (decode_static_tracepoint_spec): Make argument const and update
4496 function.
4497 (create_breakpoint): Change `arg' to a struct event_location and
4498 rename.
4499 Remove `copy_arg' and `addr_start'.
4500 If EXTRA_STRING is empty, set it to NULL.
4501 Don't populate `canonical' for pending breakpoints.
4502 Pass `extra_string' to find_condition_and_thread.
4503 Clear `extra_string' if `rest' was NULL.
4504 Do not error with "garbage after location" if setting a dprintf
4505 breakpoint.
4506 Copy the location into the breakpoint instead of an address string.
4507 (break_command_1): Use string_to_event_location and pass this to
4508 create_breakpoint instead of an address string.
4509 Check against `arg_cp' for a probe linespec.
4510 (dprintf_command): Use string_to_event_location and pass this to
4511 create_breakpoint instead of an address string.
4512 Throw an exception if no format string was specified.
4513 (print_recreate_ranged_breakpoint): Use event_location_to_string
4514 instead of address strings.
4515 (break_range_command, until_break_command)
4516 (init_ada_exception_breakpoint): Use locations instead
4517 of address strings.
4518 (say_where): Print out extra_string for pending locations.
4519 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4520 the breakpoint.
4521 (base_breakpoint_create_sals_from_location): Use struct event_location
4522 instead of address string.
4523 Remove `addr_start' and `copy_arg' parameters.
4524 (base_breakpoint_decode_location): Use struct event_location instead of
4525 address string.
4526 (bkpt_re_set): Use locations instead of address strings.
4527 Use event_location_empty_p to check for unset location.
4528 (bkpt_print_recreate): Use event_location_to_string instead of
4529 an address string.
4530 Print out extra_string for pending locations.
4531 (bkpt_create_sals_from_location, bkpt_decode_location)
4532 (bkpt_probe_create_sals_from_location): Use struct event_location
4533 instead of address string.
4534 (bkpt_probe_decode_location): Use struct event_location instead of
4535 address string.
4536 (tracepoint_print_recreate): Use event_location_to_string to
4537 recreate the tracepoint.
4538 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4539 (tracepoint_probe_create_sals_from_location)
4540 (tracepoint_probe_decode_location): Use struct event_location
4541 instead of address string.
4542 (dprintf_print_recreate): Use event_location_to_string to recreate
4543 the dprintf.
4544 (dprintf_re_set): Remove check for valid/missing format string.
4545 (strace_marker_create_sals_from_location)
4546 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4547 (update_static_tracepoint): Use struct event_location instead of
4548 address string.
4549 (location_to_sals): Likewise.
4550 Pass `extra_string' to find_condition_and_thread.
4551 For newly resolved pending breakpoint locations, clear the location's
4552 string representation.
4553 Assert that the breakpoint's condition string is NULL when
4554 condition_not_parsed.
4555 (breakpoint_re_set_default, create_sals_from_location_default)
4556 (decode_location_default, trace_command, ftrace_command)
4557 (strace_command, create_tracepoint_from_upload): Use locations
4558 instead of address strings.
4559 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4560 Use struct event_location instead of address string.
4561 Update all uses.
4562 <decode_location>: Likewise.
4563 (struct breakpoint) <addr_string>: Change to struct event_location
4564 and rename `location'.
4565 <addr_string_range_end>: Change to struct event_location and rename
4566 `location_range_end'.
4567 (create_breakpoint): Use struct event_location instead of address
4568 string.
4569 * cli/cli-cmds.c: Include location.h.
4570 (edit_command, list_command): Use locations instead of address strings.
4571 * elfread.c: Include location.h.
4572 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4573 * guile/scm-breakpoint.c: Include location.h.
4574 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4575 (gdbscm_register_breakpoint): Use locations instead of address
4576 strings.
4577 * linespec.c: Include location.h.
4578 (struct ls_parser) <stream>: Change to const char *.
4579 (PARSER_STREAM): Update.
4580 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4581 keywords must be followed by whitespace.
4582 (canonicalize_linespec): Save a linespec location into `canonical'.
4583 Save a canonical linespec into `canonical'.
4584 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4585 All uses updated.
4586 Update function description.
4587 (linespec_parser_new): Initialize `parser'.
4588 Update initialization of parsing stream.
4589 (event_location_to_sals): New function.
4590 (decode_line_full): Change `argptr' to a struct event_location and
4591 rename it `location'.
4592 Use locations instead of address strings.
4593 Call event_location_to_sals instead of parse_linespec.
4594 (decode_line_1): Likewise.
4595 (decode_line_with_current_source, decode_line_with_last_displayed)
4596 Use locations instead of address strings.
4597 (decode_objc): Likewise.
4598 Change `argptr' to const char * and rename `arg'.
4599 (destroy_linespec_result): Delete the linespec result's location
4600 instead of freeing the address string.
4601 * linespec.h (struct linespec_result) <addr_string>: Change to
4602 struct event_location and rename to ...
4603 <location>: ... this.
4604 (decode_line_1, decode_line_full): Change `argptr' to struct
4605 event_location. All callers updated.
4606 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4607 (mi_cmd_break_insert_1): Use locations instead of address strings.
4608 Throw an error if there was "garbage" at the end of the specified
4609 linespec.
4610 * probe.c: Include location.h.
4611 (parse_probes): Change `argptr' to struct event_location.
4612 Use event locations instead of address strings.
4613 * probe.h (parse_probes): Change `argptr' to struct event_location.
4614 * python/py-breakpoint.c: Include location.h.
4615 (bppy_get_location): Constify local variable `str'.
4616 Use event_location_to_string.
4617 (bppy_init): Use locations instead of address strings.
4618 * python/py-finishbreakpoint.c: Include location.h.
4619 (bpfinishpy_init): Remove local variable `addr_str'.
4620 Use locations instead of address strings.
4621 * python/python.c: Include location.h.
4622 (gdbpy_decode_line): Use locations instead of address strings.
4623 * remote.c: Include location.h.
4624 (remote_download_tracepoint): Use locations instead of address
4625 strings.
4626 * spu-tdep.c: Include location.h.
4627 (spu_catch_start): Remove local variable `buf'.
4628 Use locations instead of address strings.
4629 * tracepoint.c: Include location.h.
4630 (scope_info): Use locations instead of address strings.
4631 (encode_source_string): Constify parameter `src'.
4632 * tracepoint.h (encode_source_string): Likewise.
4633
c7c1b3e9
KS
46342015-08-11 Keith Seitz <keiths@redhat.com>
4635
4636 * Makefile.in (SFILES): Add location.c.
4637 (HFILES_NO_SRCDIR): Add location.h.
4638 (COMMON_OBS): Add location.o.
4639 * linespec.c (linespec_lex_to_end): New function.
4640 * linespec.h (linespec_lex_to_end): Declare.
4641 * location.c: New file.
4642 * location.h: New file.
4643
5f700d83
KS
46442015-08-11 Keith Seitz <keiths@redhat.com>
4645
4646 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4647 Renamed to create_sals_from_location.
4648 <decode_linespec>: Renamed to decode_location.
4649 Update all callers.
4650 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4651 (create_sals_from_location_default): ... this.
4652 (addr_string_to_sals): Renamed to ...
4653 (location_to_sals): ... this.
4654 (decode_linespec_default): Renamed to ...
4655 (decode_location_default): ... this.
4656 (base_breakpoint_create_sals_from_address): Renamed to ...
4657 (base_breakpoint_create_sals_from_location): ... this.
4658 (bkpt_create_sals_from_address): Renamed to ...
4659 (bkpt_create_sals_from_location): ... this.
4660 (bkpt_decode_linespec): Renamed to ...
4661 (bkpt_decode_location): ... this.
4662 (bkpt_probe_create_sals_from_address): Renamed to ...
4663 (bkpt_probe_create_sals_from_location): ... this.
4664 (tracepoint_create_sals_from_address): Renamed to ...
4665 (tracepoint_create_sals_from_location): ... this.
4666 (tracepoint_decode_linespec): Renamed to ...
4667 (tracepoint_decode_location): ... this.
4668 (tracepoint_probe_create_sals_from_address): Renamed to ...
4669 (tracepoint_probe_create_sals_from_location): ... this.
4670 (tracepoint_probe_decode_linespec): Renamed to ...
4671 (tracepoint_probe_decode_location): ... this.
4672 (strace_marker_create_sals_from_address): Renamed to ...
4673 (strace_marker_create_sals_from_location): ... this.
4674 (decode_linespec_default): Renamed to ...
4675 (decode_location_default): ... this.
4676
e27852be
DE
46772015-08-10 Doug Evans <dje@google.com>
4678 Keith Seitz <keiths@redhat.com>
4679
4680 PR gdb/17960
4681 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4682 make_file_symbol_completion_list and made static.
4683 (make_file_symbol_completion_list): New function.
80af41e0 4684
fd7dcb94
JB
46852015-08-10 Joel Brobecker <brobecker@adacore.com>
4686
4687 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4688 trailing new-line at end of warning message.
4689 (proceed): Add i18n marker to error messages.
4690
f12899e9
PA
46912015-08-07 Pedro Alves <palves@redhat.com>
4692
4693 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4694
5ac21343
PA
46952015-08-07 Pedro Alves <palves@redhat.com>
4696
4697 * s390-linux-tdep.c (is_non_branch_ril)
4698 (s390_displaced_step_copy_insn): New functions.
4699 (s390_displaced_step_fixup): Update comment.
4700 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4701 gdbarch_displaced_step_copy_insn hook.
4702
7f03bd92
PA
47032015-08-07 Pedro Alves <palves@redhat.com>
4704
4705 * infrun.c (displaced_step_prepare_throw): Return -1 if
4706 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4707 comment.
4708 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4709 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4710 in file.
4711 (ppc_displaced_step_copy_insn): New function.
4712 (ppc_displaced_step_fixup): Update comment.
4713 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4714 gdbarch_displaced_step_copy_insn hook.
4715 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4716 NULL return.
4717 * gdbarch.h: Regenerate.
4718
3fc8eb30
PA
47192015-08-07 Pedro Alves <palves@redhat.com>
4720
4721 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4722 field.
4723 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4724 Return false if dispaced stepping failed before.
4725 (resume): Pass the current inferior to
4726 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4727 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4728 displaced_stepping_failed flag, and fall back to an in-line
4729 step-over.
4730
bfedc46a
PA
47312015-08-07 Pedro Alves <palves@redhat.com>
4732
4733 * darwin-nat.c (darwin_stop): Rename to ...
4734 (darwin_interrupt): ... this.
4735 (_initialize_darwin_inferior): Adjust.
4736 * gnu-nat.c (gnu_stop): Delete.
4737 (gnu_target): Don't install gnu_stop.
4738 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4739 (inf_ptrace_interrupt): ... this.
4740 (inf_ptrace_target): Adjust.
4741 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4742 target_stop.
4743 * linux-nat (linux_nat_stop): Rename to ...
4744 (linux_nat_interrupt): ... this.
4745 (linux_nat_stop): Reimplement.
4746 (linux_nat_add_target): Install linux_nat_interrupt.
4747 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4748 (nto_handle_sigint_twice): ... this.
4749 (nto_interrupt): Rename to ...
4750 (nto_handle_sigint): ... this. Call target_interrupt instead of
4751 target_stop.
4752 (procfs_wait): Adjust.
4753 (procfs_stop): Rename to ...
4754 (procfs_interrupt): ... this.
4755 (init_procfs_targets): Adjust.
4756 * procfs.c (procfs_stop): Rename to ...
4757 (procfs_interrupt): ... this.
4758 (procfs_target): Adjust.
4759 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4760 (m32r_interrupt): ... this.
4761 (init_m32r_ops): Adjust.
4762 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4763 (gdbsim_interrupt_inferior): ... this.
4764 (gdbsim_stop): Rename to ...
4765 (gdbsim_interrupt): ... this.
4766 (gdbsim_cntrl_c): Adjust.
4767 (init_gdbsim_ops): Adjust.
4768 * remote.c (sync_remote_interrupt): Adjust comments.
4769 (remote_stop_as): Rename to ...
4770 (remote_interrupt_as): ... this.
4771 (remote_stop): Adjust comment.
4772 (remote_interrupt): New function.
4773 (init_remote_ops): Install remote_interrupt.
4774 * target.c (target_interrupt): New function.
4775 * target.h (struct target_ops) <to_interrupt>: New field.
4776 (target_interrupt): New declaration.
4777 * windows-nat.c (windows_stop): Rename to ...
4778 (windows_interrupt): ... this.
4779 * target-delegates.c: Regenerate.
4780
d55007b5
PA
47812015-08-07 Pedro Alves <palves@redhat.com>
4782
4783 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4784 threads" as alternative to "switching back to stepped thread".
4785
fbea99ea
PA
47862015-08-07 Pedro Alves <palves@redhat.com>
4787
4788 * NEWS: Mention "maint set/show target-non-stop".
4789 * breakpoint.c (update_global_location_list): Check
4790 target_is_non_stop_p instead of non_stop.
4791 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4792 * infrun.c (show_can_use_displaced_stepping)
4793 (can_use_displaced_stepping_p, start_step_over_inferior):
4794 Likewise.
4795 (internal_resume_ptid): New function.
4796 (resume): Use it.
4797 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4798 all-stop mode but the target is always in non-stop mode, start all
4799 the other threads that are implicitly resumed too.
4800 (for_each_just_stopped_thread, fetch_inferior_event)
4801 (adjust_pc_after_break, stop_all_threads): Check
4802 target_is_non_stop_p instead of non_stop.
4803 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4804 with the target always in non-stop mode.
4805 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4806 instead of non_stop.
4807 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4808 instead of non_stop.
4809 (keep_going_stepped_thread): Use internal_resume_ptid.
4810 (stop_waiting): If in all-stop mode, and the target is in non-stop
4811 mode, stop all threads.
4812 (keep_going_pass): Likewise, when starting a new in-line step-over
4813 sequence.
4814 * linux-nat.c (get_pending_status, select_event_lwp)
4815 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4816 target_is_non_stop_p instead of non_stop.
4817 (linux_nat_always_non_stop_p): New function.
4818 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4819 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4820 * target-delegates.c: Regenerate.
4821 * target.c (target_is_non_stop_p): New function.
4822 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4823 (maint_set_target_non_stop_command)
4824 (maint_show_target_non_stop_command): New functions.
4825 (_initilize_target): Install "maint set/show target-non-stop"
4826 commands.
4827 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4828 (target_non_stop_enabled): New declaration.
4829 (target_is_non_stop_p): New declaration.
4830
372316f1
PA
48312015-08-07 Pedro Alves <pedro@codesourcery.com>
4832
4833 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4834 has a pending status, return true.
4835 * gdbthread.h: Include target/waitstatus.h.
4836 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4837 stop_pc>: New fields.
4838 (struct thread_info) <resumed>: New field.
4839 (set_resumed): Declare.
4840 * infrun.c: Include "event-loop.h".
4841 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4842 (infrun_async): New function.
4843 (clear_step_over_info): Add debug output.
4844 (displaced_step_in_progress_any_inferior): New function.
4845 (displaced_step_fixup): New returns int.
4846 (start_step_over): Handle in-line step-overs too. Assert the
4847 thread is marked resumed.
4848 (resume_cleanups): Clear the thread's resumed flag.
4849 (resume): Set the thread's resumed flag. Return early if the
4850 thread has a pending status. Allow stepping a breakpoint with no
4851 signal.
4852 (proceed): Adjust to check 'resumed' instead of 'executing'.
4853 (clear_proceed_status_thread): If the thread has a pending status,
4854 and that status is a finished step, discard the pending status.
4855 (clear_proceed_status): Don't clear step_over_info here.
4856 (random_pending_event_thread, do_target_wait): New functions.
4857 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4858 do_target_wait.
4859 (wait_one): New function.
4860 (THREAD_STOPPED_BY): New macro.
4861 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4862 (thread_stopped_by_hw_breakpoint): New functions.
4863 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4864 functions.
4865 (handle_inferior_event): Also call set_resumed(false) on all
4866 threads implicitly stopped by the event.
4867 (restart_threads, resumed_thread_with_pending_status): New
4868 functions.
4869 (finish_step_over): If we were doing an in-line step-over before,
4870 and no longer are after trying to start a new step-over, restart
4871 all threads. If we have multiple threads with pending events,
4872 save the current event and go through the event loop again.
4873 (handle_signal_stop): Return early if finish_step_over returns
4874 false.
4875 <random signal>: If we get a signal while stepping over a
4876 breakpoint in-line in non-stop mode, restart all threads. Clear
4877 step_over_info before delivering the signal.
4878 (keep_going_stepped_thread): Use internal_error instead of
4879 gdb_assert. Mark the thread as resumed.
4880 (keep_going_pass_signal): Assert the thread isn't already resumed.
4881 If some other thread is doing an in-line step-over, defer the
4882 resume. If we just started a new in-line step-over, stop all
4883 threads. Don't clear step_over_info.
4884 (infrun_async_inferior_event_handler): New function.
4885 (_initialize_infrun): Create async event handler with
4886 infrun_async_inferior_event_handler as callback.
4887 (infrun_async): New declaration.
4888 * target.c (target_async): New function.
4889 * target.h (target_async): Declare macro and readd as function
4890 declaration.
4891 * target/waitstatus.h (enum target_stop_reason)
4892 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4893 * thread.c (new_thread): Clear the new waitstatus field.
4894 (set_resumed): New function.
4895
2ac7589c
PA
48962015-08-07 Pedro Alves <palves@redhat.com>
4897
4898 * infrun.c (keep_going_stepped_thread): New function, factored out
4899 from ...
4900 (switch_back_to_stepped_thread): ... here.
4901
8b061563
PA
49022015-08-07 Pedro Alves <palves@redhat.com>
4903
4904 * infrun.c (currently_stepping): Extend intro comment.
4905 * target.h (target_resume): Extend intro comment.
4906
1afd5965
PA
49072015-08-07 Pedro Alves <palves@redhat.com>
4908
4909 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4910 of inferior_ptid. If the stepped thread vanished, return 0
4911 instead of resuming here. Use reset_ecs. Print the prev_pc and
4912 the current stop_pc in log message. Clear trap_expected if the
4913 thread advanced. Don't pass currently_stepping to
4914 do_target_resume.
4915
4d9d9d04
PA
49162015-08-07 Pedro Alves <palves@redhat.com>
4917
4918 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4919 * infrun.c (struct execution_control_state): Move higher up in the
4920 file.
4921 (reset_ecs): New function.
4922 (start_step_over): Now returns int. Rewrite to use
4923 keep_going_pass_signal instead of manually starting a displaced step.
4924 (resume): Don't call set_running here. If displaced stepping
4925 can't start now, clear trap_expected.
4926 (find_thread_needs_step_over): Delete function.
4927 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4928 If the current thread needs a step over, push it in the step-over
4929 chain. Don't set insert breakpoints nor call resume directly
4930 here. Instead rewrite to use start_step_over and
4931 keep_going_pass_signal.
4932 (finish_step_over): New function.
4933 (handle_signal_stop): Call finish_step_over instead of
4934 start_step_over.
4935 (switch_back_to_stepped_thread): If the event thread needs another
4936 step-over do that first. Use start_step_over.
4937 (keep_going_pass_signal): New function, factored out from ...
4938 (keep_going): ... here.
4939 (_initialize_infrun): Comment moved here.
4940 * thread.c (set_running_thread): New function.
4941 (set_running, finish_thread_state): Use set_running_thread.
4942
c2829269
PA
49432015-08-07 Pedro Alves <palves@redhat.com>
4944
4945 * gdbthread.h (struct thread_info) <step_over_prev,
4946 step_over_next>: New fields.
4947 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4948 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4949 declarations.
4950 * infrun.c (struct displaced_step_request): Delete.
4951 (struct displaced_step_inferior_state) <step_request_queue>:
4952 Delete field.
4953 (displaced_step_prepare): Assert that trap_expected is set. Use
4954 thread_step_over_chain_enqueue. Split starting a new displaced
4955 step to ...
4956 (start_step_over): ... this new function.
4957 (resume): Assert the thread isn't waiting for a step over already.
4958 (proceed): Assert the thread isn't waiting for a step over
4959 already.
4960 (infrun_thread_stop_requested): Adjust to remove threads from the
4961 embedded step-over chain.
4962 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4963 displaced_step_fixup.
4964 (handle_signal_stop): Call start_step_over after
4965 displaced_step_fixup.
4966 * infrun.h (step_over_queue_head): New declaration.
4967 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4968 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4969 (thread_step_over_chain_enqueue)
4970 (thread_step_over_chain_remove): New functions.
4971 (delete_thread_1): Remove thread from the step-over chain.
4972
6c4cfb24
PA
49732015-08-07 Pedro Alves <palves@redhat.com>
4974
4975 * infrun.c (thread_still_needs_step_over): Rename to ...
4976 (thread_still_needs_step_over_bp): ... this.
4977 (enum step_over_what): New.
4978 (thread_still_needs_step_over): Reimplement.
4979
567420d1
PA
49802015-08-07 Pedro Alves <palves@redhat.com>
4981
4982 * remote.c (remote_wait_as): If not waiting for a stop reply,
4983 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4984 requested, don't block waiting forever.
4985
d8dd4d5f
PA
49862015-08-07 Pedro Alves <pedro@codesourcery.com>
4987
4988 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4989 waitstatus pointers instead of an ecs. Adjust.
4990 (handle_inferior_event): Adjust caller.
4991
e1316e60
PA
49922015-08-07 Pedro Alves <palves@redhat.com>
4993
4994 * infrun.c (handle_inferior_event): If we get
4995 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4996 mode, mark all threads of the exiting process as not-executing.
4997 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4998 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4999 exiting process, if inferior_ptid still points at a process.
5000 * thread.c (struct current_thread_cleanup) <next>: New field.
5001 (current_thread_cleanup_chain): New global.
5002 (restore_current_thread_ptid_changed): New function.
5003 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5004 current_thread_cleanup_chain list.
5005 (make_cleanup_restore_current_thread): Add the cleanup data to the
5006 current_thread_cleanup_chain list.
5007 (_initialize_thread): Install restore_current_thread_ptid_changed
5008 as thread_ptid_changed observer.
5009
47e9c225
JB
50102015-08-07 Joel Brobecker <brobecker@adacore.com>
5011
5012 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5013 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5014 smaller than expected.
5015
06096720
AB
50162015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5017
5018 * stack.c (get_frame_language): Moved ...
5019 * frame.c (get_frame_language): ... to here.
5020 * language.h (get_frame_language): Declaration moved to frame.h.
5021 * frame.h: Add language.h include, for language enum.
5022 (get_frame_language): Declaration moved from language.h.
5023 * language.c: Add frame.h include.
5024 * top.c: Add frame.h include.
5025 * symtab.h (struct obj_section): Declare.
5026 (struct cmd_list_element): Declare.
5027
7ff38b1c
AB
50282015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5029
5030 * language.c (show_language_command): Find selected frame before
5031 asking for the language of that frame.
5032 (set_language_command): Likewise.
5033 * language.h (get_frame_language): Add frame parameter.
5034 * stack.c (get_frame_language): Add frame parameter, assert
5035 parameter is not NULL, update comment and reindent.
5036 * top.c (check_frame_language_change): Pass the selected frame
5037 into get_frame_language.
5038
da8c46d2
MM
50392015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5040
5041 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5042 (pt_btrace_insn_flags): New.
5043 (ftrace_add_pt): Call pt_btrace_insn_flags.
5044 * btrace.h (btrace_insn_flag): New.
5045 (btrace_insn) <flags>: New.
5046 * record-btrace.c (btrace_insn_history): Print insn prefix.
5047 * NEWS: Announce it.
5048
5599c404
MM
50492015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5050
5051 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5052 * configure: Regenerate.
5053
016a3251
DD
50542015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5055
5056 * Makefile.in (LIBICONV): Define.
5057 (CLIBS): Add LIBICONV.
5058 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5059 * configure: Regenerate.
5060
aead7601
SM
50612015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5062 Pedro Alves <palves@redhat.com>
5063
5064 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5065 (arm_set_abi): Likewise.
5066 * ax-general.c (ax_print): Likewise.
5067 * c-exp.y (exp : string_exp): Likewise.
5068 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5069 (do_compile_dwarf_expr_to_c): Likewise.
5070 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5071 Likewise.
5072 * dwarf2expr.c (execute_stack_op): Likewise.
5073 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5074 (disassemble_dwarf_expression): Likewise.
5075 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5076 (read_array_order): Likewise.
5077 (abbrev_table_read_table): Likewise.
5078 (read_attribute_value): Likewise.
5079 (skip_unknown_opcode): Likewise.
5080 (dwarf_decode_macro_bytes): Likewise.
5081 (dwarf_decode_macros): Likewise.
5082 * eval.c (value_f90_subarray): Likewise.
5083 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5084 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5085 * infrun.c (handle_command): Likewise.
5086 * memory-map.c (memory_map_start_memory): Likewise.
5087 * osabi.c (set_osabi): Likewise.
5088 * parse.c (operator_length_standard): Likewise.
5089 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5090 single return point.
5091 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5092 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5093 (gdbpy_lookup_global_symbol): Likewise.
5094 * record-full.c (record_full_restore): Likewise.
5095 * regcache.c (regcache_register_status): Likewise.
5096 (regcache_raw_read): Likewise.
5097 (regcache_cooked_read): Likewise.
5098 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5099 * symtab.c (initialize_ordinary_address_classes): Likewise.
5100 * target-debug.h (target_debug_print_signals): Likewise.
5101 * utils.c (do_restore_current_language): Likewise.
5102
ca0a5f0b
CD
51032015-08-06 Clem Dickey <clemd@acm.org>
5104
5105 PR python/17136
5106 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5107
05d999b0
SM
51082015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * complaints.c (enum complaint_series): Add newlines and remove
5111 out of date comment.
5112 (struct complaints) <series>: Change type to enum
5113 complaint_series and remove out of date comment.
5114 (symfile_complaint_hook): Use equivalent enum value
5115 ISOLATED_MESSAGE instead of 0.
5116
bf47e248
PA
51172015-08-06 Pedro Alves <palves@redhat.com>
5118
5119 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5120 returned > 0.
5121
b6b9ffcc
PL
51222015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5123
5124 * common/agent.c (symbol_list) <required>: Remove.
5125
863d01bd
PA
51262015-08-06 Pedro Alves <palves@redhat.com>
5127
5128 * target/waitstatus.h (enum target_stop_reason)
5129 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5130
0a39bb32
PA
51312015-08-05 Pedro Alves <palves@redhat.com>
5132 Joel Brobecker <brobecker@adacore.com>
5133
9d996aba 5134 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5135 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5136 case where BS->STOP is not set.
5137
260439cb
UW
51382015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5139
5140 * nat/gdb_thread_db.h: Add copyright header.
5141 Protect against multiple inclusion.
5142
d89fa914
YQ
51432015-08-05 Yao Qi <yao.qi@linaro.org>
5144
5145 * aarch64-linux-nat.c (get_thread_id): Remove.
5146 (debug_reg_change_callback): Call ptid_get_lwp instead of
5147 get_thread_id.
5148 (fetch_gregs_from_thread): Likewise.
5149 (store_gregs_to_thread): Likewise.
5150 (fetch_fpregs_from_thread): Likewise.
5151 (store_fpregs_to_thread): Likewise.
5152 (aarch64_linux_get_debug_reg_capacity): Likewise.
5153 * arm-linux-nat.c (get_thread_id): Remove.
5154 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5155 * xtensa-linux-nat.c (get_thread_id): Remove.
5156 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5157 * arm-linux-nat.c (get_thread_id): Remove.
5158 (GET_THREAD_ID): Remove.
5159 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5160 (store_fpregs, fetch_regs, store_regs): Likewise.
5161 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5162 (fetch_vfp_regs, store_vfp_regs): Likewise.
5163 (arm_linux_read_description): Likewise.
5164 (arm_linux_get_hwbp_cap): Likewise.
5165 * xtensa-linux-nat.c (get_thread_id): Remove.
5166 (GET_THREAD_ID): Remove.
5167 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5168 GET_THREAD_ID.
5169
4efd80aa
CS
51702015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5171
5172 * python/py-linetable.c: Fix case of Linetable to LineTable
5173 in docstrings and code comments.
5174 * python/py-symtab.c: Same.
5175
c6343a91
JK
51762015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5179
978b9495
JK
51802015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 PR gdb/18767
5183 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5184 use.
5185
96e9210f
PA
51862015-08-04 Pedro Alves <palves@redhat.com>
5187
5188 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5189 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5190 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5191 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5192 (td_thr_validate_ftype, td_thr_get_info_ftype)
5193 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5194 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5195 New typedefs.
5196 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5197 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5198 local macros and use them instead of verbose_dlsym and dlsym
5199 calls.
5200
af60a1ef
SL
52012015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5202
5203 * nios2-tdep.h: Include opcode/nios2.h here.
5204 (NIOS2_CDX_OPCODE_SIZE): New.
5205 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5206 * nios2-tdep.c: Don't include opcode/nios2.h here.
5207 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5208 4-byte read fails.
5209 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5210 (nios2_match_addi, nios2_match_orhi): Likewise.
5211 (nios2_match_stw, nios2_match_ldw): Likewise.
5212 (nios2_match_rdctl): Likewise.
5213 (nios2_match_stwm, nios2_match_ldwm): New.
5214 (nios2_match_branch): Add cases for R2 encodings.
5215 (nios2_match_jmpi, nios2_match_calli): Likewise.
5216 (nios2_match_jmpr, nios2_match_callr): Likewise.
5217 (nios2_match_break, nios2_match_trap): Likewise.
5218 (nios2_in_epilogue_p): Add R2 support.
5219 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5220 prologues.
5221 (nios2_breakpoint_from_pc): Handle R2 instructions.
5222 (nios2_get_next_pc): Likewise. Adjust call to
5223 tdep->syscall_next_pc.
5224 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5225 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5226 instruction field macros instead of literal hex values.
5227 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5228 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5229 Use size field from OP instead of assuming all instructions
5230 are the same size.
5231 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5232
1da03605
UW
52332015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5234
5235 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5236 variable warning with some compilers.
5237
8156fe7f
YQ
52382015-08-03 Yao Qi <yao.qi@linaro.org>
5239
5240 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5241 in comment. Replace "rw" with "type".
5242 (arm_linux_remove_watchpoint): Change type of "rw" to
5243 "enum target_hw_bp_type".
5244
835a09d9
PMR
52452015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5246
5247 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5248 lookup_symbol.
5249 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5250 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5251 * mt-tdep.c (mt_skip_prologue): Likewise.
5252 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5253
d12307c1
PMR
52542015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5255
5256 * ada-exp.y (write_object_renaming): Replace struct
5257 ada_symbol_info with struct block_symbol. Update field
5258 references accordingly.
5259 (block_lookup, select_possible_type_sym): Likewise.
5260 (find_primitive_type): Likewise. Also update call to
5261 ada_lookup_symbol to extract the symbol itself.
5262 (write_var_or_type, write_name_assoc): Likewise.
5263 * ada-lang.h (struct ada_symbol_info): Remove.
5264 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5265 struct block_symbol.
5266 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5267 (ada_lookup_symbol): Return struct block_symbol instead of a
5268 mere symbol.
5269 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5270 with struct block_symbol.
5271 (resolve_subexp, ada_resolve_function, sort_choices,
5272 user_select_syms, is_nonfunction, add_defn_to_vec,
5273 num_defns_collected, defns_collected,
5274 symbols_are_identical_enums, remove_extra_symbols,
5275 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5276 ada_lookup_symbol_list, ada_iterate_over_symbols,
5277 ada_lookup_encoded_symbol, get_var_value): Likewise.
5278 (ada_lookup_symbol): Return a block_symbol instead of a mere
5279 symbol. Replace struct ada_symbol_info with struct
5280 block_symbol.
5281 (ada_lookup_symbol_nonlocal): Likewise.
5282 (standard_lookup): Make block passing explicit through
5283 lookup_symbol_in_language.
5284 * ada-tasks.c (get_tcb_types_info): Update the calls to
5285 lookup_symbol_in_language to extract the mere symbol out of the
5286 returned value.
5287 (ada_tasks_inferior_data_sniffer): Likewise.
5288 * ax-gdb.c (gen_static_field): Likewise for the call to
5289 lookup_symbol.
a5fdf78a 5290 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5291 lookup functions.
5292 (gen_expr): Likewise.
5293 * c-exp.y: Likewise. Remove uses of block_found.
5294 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5295 (classify_name): Likewise. Rename the "sym" local variable to
5296 "bsym".
5297 * c-valprint.c (print_unpacked_pointer): Likewise.
5298 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5299 "sym" parameter from struct symbol * to struct block_symbol.
5300 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5301 block_symbol from lookup functions.
d12307c1
PMR
5302 (gcc_convert_symbol): Likewise. Update the call to
5303 convert_symbol_sym.
5304 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5305 struct block_symbol from lookup functions.
d12307c1
PMR
5306 * cp-namespace.c (cp_lookup_nested_symbol_1,
5307 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5308 cp_search_static_and_baseclasses,
5309 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5310 cp_lookup_symbol_imports_or_template,
5311 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5312 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5313 find_symbol_in_baseclass): Return struct block_symbol instead of
5314 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5315 functions.
5316 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5317 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5318 lookup functions.
5319 * cp-support.h (cp_lookup_symbol_nonlocal,
5320 cp_lookup_symbol_from_namespace,
5321 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5322 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5323 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5324 push_module_name):
a5fdf78a 5325 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5326 uses of block_found.
5327 * eval.c (evaluate_subexp_standard): Update call to
5328 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5329 * f-exp.y: Deal with struct block_symbol from lookup functions.
5330 Remove uses of block_found.
d12307c1
PMR
5331 (yylex): Likewise.
5332 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5333 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5334 struct block_symbol from lookup functions.
d12307c1
PMR
5335 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5336 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5337 (gdbscm_lookup_global_symbol): Likewise.
5338 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5339 * go-exp.y: Likewise. Remove uses of block_found.
5340 (package_name_p, classify_packaged_name, classify_name):
5341 Likewise.
5342 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5343 * jv-exp.y (push_variable): Likewise.
5344 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5345 * language.c (language_bool_type): Likewise.
5346 * language.h (struct language_defn): Update
a5fdf78a
PMR
5347 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5348 than a mere symbol.
5349 * linespec.c (find_label_symbols): Deal with struct block_symbol
5350 from lookup functions.
d12307c1
PMR
5351 * m2-exp.y: Likewise. Remove uses of block_found.
5352 (yylex): Likewise.
5353 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5354 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5355 * p-exp.y: Likewise. Remove uses of block_found.
5356 (yylex): Likewise.
5357 * p-valprint.c (pascal_val_print): Likewise.
5358 * parse.c (write_dollar_variable): Likewise. Remove uses of
5359 block_found.
5360 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5361 struct block_symbol.
5362 * printcmd.c (address_info): Deal with struct block_symbol from
5363 lookup functions.
d12307c1
PMR
5364 * python/py-frame.c (frapy_read_var): Likewise.
5365 * python/py-symbol.c (gdbpy_lookup_symbol,
5366 gdbpy_lookup_global_symbol): Likewise.
5367 * skip.c (skip_function_command): Likewise.
5368 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5369 block_symbol instead of a mere symbol.
d12307c1
PMR
5370 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5371 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5372 * solib.c (solib_global_lookup): Likewise.
5373 * solist.h (solib_global_lookup): Likewise.
5374 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5375 return a struct block_symbol rather than a mere symbol.
5376 * source.c (select_source_symtab): Deal with struct block_symbol
5377 from lookup functions.
d12307c1
PMR
5378 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5379 Likewise.
5380 * symfile.c (set_initial_language): Likewise.
5381 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5382 block_symbol.
d12307c1
PMR
5383 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5384 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5385 block_symbol.
d12307c1 5386 (block_found): Remove.
a5fdf78a 5387 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5388 cache slots.
a5fdf78a
PMR
5389 (symbol_cache_lookup): Return a struct block_symbol rather than
5390 a mere symbol.
d12307c1
PMR
5391 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5392 appropriately the cache slots. Update callers.
5393 (symbol_cache_dump): Update cache slots handling to the type
5394 change.
5395 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5396 lookup_symbol_aux, lookup_local_symbol,
5397 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5398 lookup_symbol_in_objfile_symtabs,
5399 lookup_symbol_in_objfile_from_linkage_name,
5400 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5401 lookup_symbol_in_static_block, lookup_static_symbol,
5402 lookup_global_symbol):
a5fdf78a
PMR
5403 Return a struct block_symbol rather than a mere symbol. Deal
5404 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5405 uses of block_found.
5406 (lookup_symbol_in_block): Remove uses of block_found.
5407 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5408 struct block_symbol.
d12307c1
PMR
5409 (lookup_symbol_global_iterator_cb): Update references to the
5410 RESULT field.
a5fdf78a 5411 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5412 functions.
a5fdf78a 5413 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5414 (block_found): Remove.
5415 (lookup_symbol_in_language, lookup_symbol,
5416 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5417 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5418 lookup_global_symbol_from_objfile): Return a struct block_symbol
5419 rather than just a mere symbol. Update comments to remove
5420 mentions of block_found.
d12307c1
PMR
5421 * valops.c (find_function_in_inferior,
5422 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5423 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5424 functions.
5425 * value.c (value_static_field, value_fn_field): Likewise.
5426
b1c59ddc
SM
54272015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5428
5429 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5430 instead of integer.
5431
f486487f 54322015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5433 Pedro Alves <palves@redhat.com>
f486487f
SM
5434
5435 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5436 type or value instead of integer.
5437 (aarch64_linux_insert_watchpoint): Likewise.
5438 (aarch64_linux_remove_watchpoint): Likewise.
5439 * ada-lang.c (ada_op_print_tab): Likewise.
5440 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5441 (amd64_linux_syscall_record_common): Likewise.
5442 * arch-utils.c (target_byte_order_user): Likewise.
5443 (default_byte_order): Likewise.
5444 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5445 (arm_linux_get_hwbp_type): Likewise.
5446 (arm_linux_hw_watchpoint_initialize): Likewise.
5447 (arm_linux_insert_watchpoint): Likewise.
5448 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5449 (arm_linux_syscall_record): Likewise.
5450 * breakpoint.c (update_watchpoint): Likewise.
5451 (breakpoint_here_p): Likewise.
5452 (bpstat_print): Likewise.
5453 (enable_breakpoint_disp): Likewise.
5454 * c-lang.c (c_op_print_tab): Likewise.
5455 * cli/cli-decode.c (add_info_alias): Likewise.
5456 * d-lang.c (d_op_print_tab): Likewise.
5457 * eval.c (evaluate_subexp_standard): Likewise.
5458 * f-exp.y (dot_ops): Likewise.
5459 (f77_keywords): Likewise.
5460 * f-lang.c (f_op_print_tab): Likewise.
5461 * go-lang.c (go_op_print_tab): Likewise.
5462 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5463 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5464 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5465 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5466 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5467 (struct scm_from_stringn_data): Likewise.
5468 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5469 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5470 (ia64_linux_remove_watchpoint): Likewise.
5471 (ia64_linux_can_use_hw_breakpoint): Likewise.
5472 * infrun.c (print_stop_event): Likewise.
5473 * jv-lang.c (java_op_print_tab): Likewise.
5474 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5475 * linux-nat.h (struct lwp_info): Likewise.
5476 * linux-thread-db.c (enable_thread_event): Likewise.
5477 * m2-lang.c (m2_op_print_tab): Likewise.
5478 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5479 (mi_cmd_stack_list_variables): Likewise.
5480 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5481 * mi/mi-out.c (mi_table_begin): Likewise.
5482 (mi_table_header): Likewise.
5483 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5484 (mips_linux_insert_watchpoint): Likewise.
5485 (mips_linux_remove_watchpoint): Likewise.
5486 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5487 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5488 (mips_linux_watch_type_to_irw): Likewise.
5489 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5490 (procfs_insert_hw_watchpoint): Likewise.
5491 (procfs_remove_hw_watchpoint): Likewise.
5492 (procfs_hw_watchpoint): Likewise.
5493 (procfs_can_use_hw_breakpoint): Likewise.
5494 (procfs_remove_hw_watchpoint): Likewise.
5495 (procfs_insert_hw_watchpoint): Likewise.
5496 * p-lang.c (pascal_op_print_tab): Likewise.
5497 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5498 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5499 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5500 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5501 (procfs_insert_watchpoint): Likewise.
5502 (procfs_remove_watchpoint): Likewise.
5503 * psymtab.c (recursively_search_psymtabs): Likewise.
5504 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5505 (m32r_insert_watchpoint): Likewise.
5506 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5507 (mips_insert_watchpoint): Likewise.
5508 (mips_remove_watchpoint): Likewise.
5509 * remote.c (watchpoint_to_Z_packet): Likewise.
5510 (remote_insert_watchpoint): Likewise.
5511 (remote_remove_watchpoint): Likewise.
5512 (remote_check_watch_resources): Likewise.
5513 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5514 (s390_remove_watchpoint): Likewise.
5515 (s390_can_use_hw_breakpoint): Likewise.
5516 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5517 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5518 * target.h (struct target_ops): Likewise.
5519 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5520 * ui-out.c (struct ui_out_hdr): Likewise.
5521 (append_header_to_list): Likewise.
5522 (get_next_header): Likewise.
5523 (verify_field): Likewise.
5524 (ui_out_begin): Likewise.
5525 (ui_out_field_int): Likewise.
5526 (ui_out_field_fmt_int): Likewise.
5527 (ui_out_field_skip): Likewise.
5528 (ui_out_field_string): Likewise.
5529 (ui_out_field_fmt): Likewise.
5530 * varobj.c (new_variable): Likewise.
5531 * x86-nat.c (x86_insert_watchpoint): Likewise.
5532 (x86_remove_watchpoint): Likewise.
5533 (x86_can_use_hw_breakpoint): Likewise.
5534 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5535 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5536 previously anonymous enumeration type..
5537 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5538 value.
5539 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5540 (target_debug_print_enum_bptype): New.
5541 * target-delegates.c: Regenerate.
5542
e1b5381f
SL
55432015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5544
5545 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5546 already says and disallow non-stack memory writes in the prologue.
5547
9aaf8e3a
SL
55482015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5549
5550 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5551 reflect how current GCC emits stack overflow checks. Match
5552 both trap and break instructions for backward compatbility.
5553 Disallow other trap and break instructions in the prologue.
5554
69dde7dc
PA
55552015-07-30 Pedro Alves <palves@redhat.com>
5556
5557 PR threads/18600
5558 * linux-nat.c (wait_lwp): Report to the core when thread group
5559 leader exits.
5560
4dd63d48
PA
55612015-07-30 Pedro Alves <palves@redhat.com>
5562 Simon Marchi <simon.marchi@ericsson.com>
5563
5564 PR threads/18600
5565 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5566 mark the new thread as resumed. Remove STOPPING parameter.
5567 (wait_lwp): Adjust call to linux_handle_extended_wait.
5568 (linux_nat_filter_event): Adjust call to
5569 linux_handle_extended_wait.
5570 (resume_stopped_resumed_lwps): Add debug output.
5571
6b940e6a
PL
55722015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5573
5574 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5575 isize argument.
5576 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5577 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5578 gdbarch_fast_tracepoint_valid_at.
5579 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5580 * gdbarch.h: Regenerate.
5581 * gdbarch.c: Regenerate.
5582 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5583 argument. Do not set it.
5584 * remote.c (remote_download_tracepoint): Adjust call to
5585 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5586 the instruction length.
5587
ec741292
YQ
55882015-07-30 Yao Qi <yao.qi@linaro.org>
5589
5590 * arm-tdep.h (enum gdb_regnum): Move it to ...
5591 * arch/arm.h: ... here. New file.
5592 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5593
0ea6402e
PL
55942015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5595
5596 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5597 Change its type to int *.
5598 (decode_br): Rename link argument to is_blr. Change its type to
5599 int *.
5600 (decode_cb): Rename op argument to is_cbnz. Change its type to
5601 int *.
5602 (decode_tb): Rename op argument to is_tbnz. Change its type to
5603 int *. Set is_tbnz to either 1 or 0.
5604 (aarch64_analyze_prologue): Change type of is_link to int. Add
5605 new variables is_cbnz and is_tbnz. Adjust call to
5606 aarch64_decode_cb and aarch64_decode_tb.
5607
aa58a496
SM
56082015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5609
5610 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5611 parameter.
5612 (mips_linux_new_thread): Likewise.
5613 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5614
18206ca3
PP
56152015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5616
5617 * top.c: Include "tui/tui.h".
5618 (undo_terminal_modifications_before_exit): New static function.
5619 (quit_force): Use it.
5620
7afa63c6
PP
56212015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5622
5623 * target.c (terminal_state): Initialize to terminal_is_ours.
5624
cc9f16aa
YQ
56252015-07-29 Yao Qi <yao.qi@linaro.org>
5626
5627 PR record/18691
5628 * dcache.c (dcache_read_memory_partial): Call
5629 raw_memory_xfer_partial.
5630 * target.c (raw_memory_xfer_partial): Make it non-static.
5631 * target.h (raw_memory_xfer_partial): Declare.
5632
3ae385af
SM
56332015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5634
5635 * c-valprint.c (c_val_print_array): Consider addressable memory
5636 unit size.
5637 (c_val_print_ptr): Likewise.
5638 (c_val_print_int): Likewise.
5639 * findvar.c (read_frame_register_value): Likewise.
5640 * valarith.c (find_size_for_pointer_math): Likewise.
5641 (value_ptrdiff): Likewise.
5642 (value_subscripted_rvalue): Likewise.
5643 * valops.c (read_value_memory): Likewise (and rename variables).
5644 (value_assign): Likewise.
5645 (value_repeat): Likewise.
5646 (value_array): Likewise.
5647 (value_slice): Likewise.
5648 * valprint.c (generic_val_print_ptr): Likewise.
5649 (generic_val_print_enum): Likewise.
5650 (generic_val_print_bool): Likewise.
5651 (generic_val_print_int): Likewise.
5652 (generic_val_print_char): Likewise.
5653 (generic_val_print_float): Likewise.
5654 (generic_val_print_decfloat): Likewise.
5655 (generic_val_print_complex): Likewise.
5656 (val_print_scalar_formatted): Likewise.
5657 (val_print_array_elements): Likewise.
5658 * value.c (set_value_parent): Likewise.
5659 (value_contents_copy_raw): Likewise.
5660 (set_internalvar_component): Likewise.
5661 (value_primitive_field): Likewise.
5662 (value_fetch_lazy): Likewise.
5663 * value.h (read_value_memory): Update comment.
5664
e512cdbd
SM
56652015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5666
5667 * value.c (get_value_arch): New function.
5668 * value.h (get_value_arch): New declaration.
5669
3723fda8
SM
56702015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5671
5672 * value.c (struct value): Update comments.
5673
2e056931
SM
56742015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5675
5676 * gdbtypes.c (type_length_units): New function.
5677 * gdbtypes.h (type_length_units): New declaration.
5678 (struct type) <length>: Update comment.
5679
0c87c0bf
SM
56802015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5681
5682 * valprint.c (generic_val_print): Factor out complex
5683 printing code to ...
5684 (generic_val_print_complex): ... this new function.
5685
9550ae5e
SM
56862015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5687
5688 * valprint.c (generic_val_print): Factor out decfloat
5689 printing code to ...
5690 (generic_val_print_decfloat): ... this new function.
5691
7784724b
SM
56922015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5693
5694 * valprint.c (generic_val_print): Factor out float
5695 printing code to ...
5696 (generic_val_print_float): ... this new function.
5697
385f5aff
SM
56982015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5699
5700 * valprint.c (generic_val_print): Factor out char
5701 printing code to ...
5702 (generic_val_print_char): ... this new function.
5703
b21b6342
SM
57042015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * valprint.c (generic_val_print): Factor out integer
5707 printing code to ...
5708 (generic_val_print_int): ... this new function.
5709
e5bead4b
SM
57102015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5711
5712 * valprint.c (generic_val_print): Factor out bool
5713 printing code to ...
5714 (generic_val_print_bool): ... this new function.
5715
4a8c372f
SM
57162015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5717
5718 * valprint.c (generic_val_print): Factor out function/method
5719 printing code to ...
5720 (generic_val_print_func): ... this new function.
5721
d93880bd
SM
57222015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5723
5724 * valprint.c (generic_val_print): Factor out flags
5725 printing code to ...
5726 (generic_val_print_flags): ... this new function.
5727
ef0bc0dd
SM
57282015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5729
5730 * valprint.c (generic_val_print): Factor out enum
5731 printing code to ...
5732 (generic_val_print_enum): ... this new function.
5733
fe43fede
SM
57342015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5735
5736 * valprint.c (generic_val_print): Factor out reference
5737 printing code to ...
5738 (generic_val_print_ref): ... this new function.
5739
45000ea2
SM
57402015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 * valprint.c (generic_val_print): Factor out memberptr
5743 printing code to ...
5744 (generic_val_print_memberptr): ... this new function.
5745
81eb921a
SM
57462015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5747
5748 * valprint.c (generic_val_print): Factor out pointer
5749 printing code to ...
5750 (generic_val_print_ptr): ... this new function.
5751
557dbe8a
SM
57522015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5753
5754 * valprint.c (generic_val_print): Factor out array
5755 printing code to ...
5756 (generic_val_print_array): ... this new function.
5757
9f436164
SM
57582015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * valprint.c (generic_val_print): Factor out
5761 print_unpacked_pointer code to ...
5762 (print_unpacked_pointer): ... this new function.
5763
077836f7
PP
57642015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5765
5766 * event-top.c (handle_sigterm): Don't inspect
5767 target_can_async_p. Always set the quit flag and always mark
5768 the async signal handler.
5769
3a60804f
YQ
57702015-07-27 Yao Qi <yao.qi@linaro.org>
5771
5772 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5773
c9f35b34
KB
57742015-07-25 Kevin Buettner <kevinb@redhat.com>
5775
5776 * remote.c (read_ptid): Return null_ptid when no thread id
5777 is found.
5778 (remote_current_thread): Add log warning for malformed
5779 qC reply.
5780 (remote_start_remote): Add log warning when current thread
5781 not found.
5782
2b4cab86
PA
57832015-07-24 Pedro Alves <palves@redhat.com>
5784
5785 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5786 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5787 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5788
77598427
PA
57892015-07-24 Pedro Alves <palves@redhat.com>
5790
5791 PR gdb/18717
5792 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5793 is resumed, and extend the debug log.
5794
fe23c31f
PA
57952015-07-24 Pedro Alves <palves@redhat.com>
5796
5797 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5798
5826e159
PA
57992015-07-24 Pedro Alves <palves@redhat.com>
5800
5801 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5802 sys/ptrace.h.
5803 * alpha-linux-nat.c: Likewise.
5804 * amd64-linux-nat.c: Likewise.
5805 * arm-linux-nat.c: Likewise.
5806 * hppa-linux-nat.c: Likewise.
5807 * i386-linux-nat.c: Likewise.
5808 * ia64-linux-nat.c: Likewise.
5809 * linux-fork.c: Likewise.
5810 * linux-nat.c: Likewise.
5811 * m32r-linux-nat.c: Likewise.
5812 * m68klinux-nat.c: Likewise.
5813 * mips-linux-nat.c: Likewise.
5814 * nat/linux-btrace.c: Likewise.
5815 * nat/linux-ptrace.c: Likewise.
5816 * nat/linux-ptrace.h
5817 * nat/mips-linux-watch.c: Likewise.
5818 * nat/x86-linux-dregs.c: Likewise.
5819 * ppc-linux-nat.c: Likewise.
5820 * s390-linux-nat.c: Likewise.
5821 * spu-linux-nat.c: Likewise.
5822 * tilegx-linux-nat.c: Likewise.
5823 * x86-linux-nat.c: Likewise.
5824 * xtensa-linux-nat.c: Likewise.
5825
54019719
PA
58262015-07-24 Pedro Alves <palves@redhat.com>
5827
5828 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5829 __ptrace_request as first parameter type instead of int.
5830 (PTRACE_TYPE_ARG1): Define.
5831 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5832 that casts first argument to PTRACE_TYPE_ARG1.
5833 * config.in: Regenerate.
5834 * configure: Regenerate.
5835
e3790375
PA
58362015-07-24 Pedro Alves <palves@redhat.com>
5837
5838 * gdb_ptrace.h: Move ...
5839 * nat/gdb_ptrace.h: ... here.
5840 * inf-ptrace.c: Adjust.
5841
eb7aa561
PA
58422015-07-24 Pedro Alves <palves@redhat.com>
5843
5844 * acinclude.m4: Include ptrace.m4.
5845 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5846 * ptrace.m4: ... to this new file.
5847
cc12ce38
DE
58482015-07-23 Doug Evans <dje@google.com>
5849
5850 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5851 (load_cu): Handle dummy CUs.
5852 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5853 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5854
7b849db4
CS
58552015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5856
5857 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5858 documentation to say that it returns a list rather than
5859 a FrozenSet.
5860 (linetable_object_methods): Update the docstring of the
5861 "source_line" entry.
5862
d0d84780
PMR
58632015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5864
5865 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5866 type to the recursive call instead of the original (maybe
5867 TYPE_CODE_TYPEDEF) type.
5868
c2fbdc59
YQ
58692015-07-23 Yao Qi <yao.qi@linaro.org>
5870
5871 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5872 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5873 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5874
af1b22f3
YQ
58752015-07-21 Yao Qi <yao.qi@linaro.org>
5876
5877 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5878 Move it to nat/aarch64-linux-hw-point.c.
5879 (aarch64_linux_child_post_startup_inferior): Update.
5880 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5881 New function.
5882 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5883 Declare it.
5884
40e050d2
MM
58852015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5886
5887 * common/btrace-common.c (btrace_data_append): Change case label.
5888
3675a06a
YQ
58892015-07-20 Yao Qi <yao.qi@linaro.org>
5890
5891 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5892 Re-indent the code.
5893 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5894 "unsigned long long".
5895
b4e1fd61
KB
58962015-07-18 Kevin Buettner <kevinb@redhat.com>
5897
5898 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5899 to be set for SEC_ALLOC sections too.
5900
554717a3
YQ
59012015-07-17 Yao Qi <yao.qi@linaro.org>
5902
5903 * Makefile.in (HFILES_NO_SRCDIR): Add
5904 nat/aarch64-linux-hw-point.h.
5905 (aarch64-linux-hw-point.o): New rule.
5906 * nat/aarch64-linux-hw-point.h: New file.
5907 * nat/aarch64-linux-hw-point.c: New file.
5908 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5909 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5910 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5911 (AARCH64_HWP_ALIGNMENT): Likewise.
5912 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5913 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5914 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5915 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5916 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5917 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5918 (struct aarch64_debug_reg_state): Likewise.
5919 (struct arch_lwp_info): Likewise.
5920 (aarch64_linux_set_debug_regs): Likewise.
5921 (aarch64_notify_debug_reg_change): Remove static.
5922 (aarch64_align_watchpoint): Likewise.
5923 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5924 (aarch64_watchpoint_length): Likewise.
5925 (aarch64_point_encode_ctrl_reg): Likewise
5926 (aarch64_point_is_aligned): Likewise.
5927 (aarch64_dr_state_insert_one_point): Likewise.
5928 (aarch64_dr_state_remove_one_point): Likewise.
5929 (aarch64_handle_breakpoint): Likewise.
5930 (aarch64_handle_aligned_watchpoint): Likewise.
5931 (aarch64_handle_unaligned_watchpoint): Likewise.
5932 (aarch64_handle_watchpoint): Likewise.
5933 * config/aarch64/linux.mh (NAT_FILE): Add
5934 aarch64-linux-hw-point.o.
5935
c67ca4de
YQ
59362015-07-17 Yao Qi <yao.qi@linaro.org>
5937
5938 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5939 state and don't call aarch64_get_debug_reg_state. All callers
5940 update.
5941 (aarch64_linux_insert_hw_breakpoint): Call
5942 aarch64_get_debug_reg_state earlier.
5943 (aarch64_linux_remove_hw_breakpoint): Likewise.
5944 (aarch64_handle_aligned_watchpoint): Add argument state and
5945 don't call aarch64_get_debug_reg_state. All callers update.
5946 (aarch64_handle_unaligned_watchpoint): Likewise.
5947 (aarch64_handle_watchpoint): Add argument state.
5948 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5949 earlier.
5950 (aarch64_linux_remove_watchpoint): Likewise.
5951
25abf979
YQ
59522015-07-17 Yao Qi <yao.qi@linaro.org>
5953
5954 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5955 debug_printf.
5956 (aarch64_handle_unaligned_watchpoint): Likewise.
5957
2ecd81c2
YQ
59582015-07-17 Yao Qi <yao.qi@linaro.org>
5959
5960 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5961 argument type's type to 'enum target_hw_bp_type'.
5962 (aarch64_dr_state_remove_one_point): Likewise.
5963 (aarch64_handle_breakpoint): Likewise.
5964 (aarch64_linux_insert_hw_breakpoint): Likewise.
5965 (aarch64_linux_remove_hw_breakpoint): Likewise.
5966 (aarch64_handle_aligned_watchpoint): Likewise.
5967
e53b6938
YQ
59682015-07-17 Yao Qi <yao.qi@linaro.org>
5969
5970 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5971 ptid_get_pid instead of get_thread_id.
5972
6a49a997
YQ
59732015-07-17 Yao Qi <yao.qi@linaro.org>
5974
5975 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5976 (add_current_inferior_and_thread): Don't initialise ptid.
5977
4bcddace
PL
59782015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5979
5980 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5981 unavailable if invalid.
5982
db1ff28b
JK
59832015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5984
5985 Revert the previous 6 commits:
5986 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5987 Move gdb_regex* to common/
5988 Prepare linux_find_memory_regions_full & co. for move
5989 Move linux_find_memory_regions_full & co.
5990 gdbserver build-id attribute generator
5991 Validate symbol file using build-id
5992
ca5268b6
JK
59932015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5994 Jan Kratochvil <jan.kratochvil@redhat.com>
5995
5996 Validate symbol file using build-id.
5997 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5998 and 'show validate-build-id'. Add build-id attribute.
5999 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6000 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6001 * solib-frv.c (_initialize_frv_solib): Ditto.
6002 * solib-spu.c (set_spu_solib_ops): Ditto.
6003 * solib-svr4.c: Include rsp-low.h.
6004 (NOTE_GNU_BUILD_ID_NAME): New define.
6005 (svr4_validate): New function.
6006 (svr4_copy_library_list): Duplicate field build_id.
6007 (library_list_start_library): Parse 'build-id' attribute.
6008 (svr4_library_attributes): Add 'build-id' attribute.
6009 (_initialize_svr4_solib): Assign validate value.
6010 * solib-target.c (solib.h): Include.
6011 (_initialize_solib_target): Assign validate value.
6012 * solib.c (validate_build_id, show_validate_build_id): New.
6013 (solib_map_sections): Use ops->validate.
6014 (clear_so): Free build_id.
6015 (default_solib_validate): New function.
6016 (_initialize_solib): Add "validate-build-id".
6017 * solib.h (default_solib_validate): New declaration.
6018 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6019 (target_so_ops): New field 'validate'.
6020
700ca40f
JK
60212015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6022 Jan Kratochvil <jan.kratochvil@redhat.com>
6023
6024 gdbserver build-id attribute generator.
6025 * features/library-list-svr4.dtd (library-list-svr4): New
6026 'build-id' attribute.
6027
9904185c
JK
60282015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6029 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 Move linux_find_memory_regions_full & co.
6032 * linux-tdep.c (nat/linux-maps.h): Include.
6033 (gdb_regex.h): Remove the include.
6034 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6035 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6036 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6037 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6038 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6039 and target/target.h.
6040 (struct smaps_vmflags, read_mapping, decode_vmflags)
6041 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6042 (linux_find_memory_regions_full): Move from linux-tdep.c.
6043 * nat/linux-maps.h (read_mapping): New declaration.
6044 (linux_find_memory_region_ftype, enum filterflags): Moved from
6045 linux-tdep.c.
6046 (linux_find_memory_regions_full): New declaration.
6047 * target.c (target/target-utils.h): Include.
6048 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6049 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6050 definitions to target/target-utils.c.
6051 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6052 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6053 from target.c.
6054 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6055 (read_alloc): New declaration.
6056 (read_stralloc_func_ftype): New typedef.
6057 (read_stralloc): New declaration.
6058 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6059
f7af1fcd
JK
60602015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6061 Jan Kratochvil <jan.kratochvil@redhat.com>
6062
6063 Prepare linux_find_memory_regions_full & co. for move.
6064 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6065 (linux_find_memory_regions_full): Change signature and prepare
6066 for moving to linux-maps.
6067 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6068 (linux_find_memory_regions_thunk): New.
6069 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6070 (linux_find_memory_regions_gdb): New.
6071 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6072 (linux_make_mappings_corefile_notes): Use
6073 linux_find_memory_regions_gdb.
6074 * target.c (read_alloc_pread_ftype): New typedef.
6075 (target_fileio_read_alloc_1_pread): New function.
6076 (read_alloc): Refactor from target_fileio_read_alloc_1.
6077 (read_stralloc_func_ftype): New typedef.
6078 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6079 (read_stralloc): Refactored from target_fileio_read_stralloc.
6080 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6081
6e5b4429
JK
60822015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6083
6084 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6085 common/gdb_regex.h.
6086 (COMMON_OBS): Add gdb_regex.o.
6087 (gdb_regex.o): New.
6088 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6089 --without-included-regex and USE_INCLUDED_REGEX.
6090 * common/gdb_regex.c: New file from utils.c functions.
6091 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6092 file wrapping define name.
6093 * configure: Rebuilt.
6094 * configure.ac (gdb_use_included_regex, --without-included-regex)
6095 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6096 * gdb_regex.h: Move it to common/gdb_regex.h.
6097 * utils.c: Remove include gdb_regex.h.
6098 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6099 (compile_rx_or_error): Move them to common/gdb_regex.c.
6100
ddc98fbf
JK
61012015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6102 Jan Kratochvil <jan.kratochvil@redhat.com>
6103
6104 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6105 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6106 common/target-utils.h.
6107 (COMMON_OBS): Add target-utils.o.
6108 (linux-maps.o, target-utils.o): New.
6109 * target/target-utils.c: New file.
6110 * target/target-utils.h: New file.
6111 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6112 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6113 * nat/linux-maps.c: New file.
6114 * nat/linux-maps.h: New file.
6115
e7b01ce0
MM
61162015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6117 Pedro Alves <palves@redhat.com>
6118
6119 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6120 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6121 (perf_event_read_bts): Change the type of SIZE and READ.
6122 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6123 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6124 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6125 mmap page.
6126 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6127 buffer size to UINT_MAX.
6128 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6129 DATA_TAIL.
6130 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6131 <last_head>: Change type.
6132 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6133 * common/btrace-common.c (btrace_data_append): Change the type of
6134 SIZE.
6135 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6136 check.
6137
f168693b
SM
61382015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6141 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6142 with check_typedef.
6143 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6144 (ada_array_length): Likewise.
6145 (find_parallel_type_by_descriptive_type): Likewise.
6146 (ada_check_typedef): Likewise.
6147 * arm-tdep.c (arm_return_in_memory): Likewise.
6148 * ax-gdb.c (gen_trace_static_fields): Likewise.
6149 (gen_struct_ref_recursive): Likewise.
6150 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6151 (variable: block COLONCOLON name): Likewise.
6152 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6153 * c-lang.c (classify_type): Likewise.
6154 * c-typeprint.c (c_print_type): Likewise.
6155 (c_print_typedef): Likewise.
6156 (c_type_print_base): Likewise.
6157 * c-valprint.c (c_val_print): Likewise.
6158 * compile/compile-c-types.c (convert_type): Likewise.
6159 * compile/compile-object-load.c (get_out_value_type): Likewise.
6160 * completer.c (add_struct_fields): Likewise.
6161 (expression_completer): Likewise.
6162 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6163 (cp_lookup_nested_symbol_1): Likewise.
6164 (cp_lookup_nested_symbol): Likewise.
6165 * cp-valprint.c (cp_print_value_fields): Likewise.
6166 (cp_print_static_field): Likewise.
6167 * d-valprint.c (d_val_print): Likewise.
6168 * eval.c (evaluate_subexp_standard): Likewise.
6169 (evaluate_subexp_for_sizeof): Likewise.
6170 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6171 * f-typeprint.c (f_type_print_base): Likewise.
6172 * f-valprint.c (f_val_print): Likewise.
6173 * gdbtypes.c (get_discrete_bounds): Likewise.
6174 (create_array_type_with_stride): Likewise.
6175 (type_name_no_tag_or_error): Likewise.
6176 (lookup_struct_elt_type): Likewise.
6177 (get_unsigned_type_max): Likewise.
6178 (internal_type_vptr_fieldno): Likewise.
6179 (set_type_vptr_fieldno): Likewise.
6180 (internal_type_vptr_basetype): Likewise.
6181 (set_type_vptr_basetype): Likewise.
6182 (get_vptr_fieldno): Likewise.
6183 (is_integral_type): Likewise.
6184 (is_scalar_type): Likewise.
6185 (is_scalar_type_recursive): Likewise.
6186 (distance_to_ancestor): Likewise.
6187 (is_unique_ancestor_worker): Likewise.
6188 (check_types_equal): Likewise.
6189 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6190
45280282
IB
61912015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6192
6193 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6194 also test for language_d.
6195 (dwarf2_compute_name): Likewise.
6196 (read_func_scope): Likewise.
6197 (read_structure_type): Likewise.
6198 (new_symbol_full): Likewise.
6199 (determine_prefix): Likewise.
6200 (read_import_statement): Use dot as the separator for language_d.
6201 (typename_concat): Likewise, but don't prefix the D main function.
6202
99fe86f7
PB
62032015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6204
6205 * nat/linux-namespaces.c (setns): Rename from this ...
6206 (do_setns): ... to this. Support calling setns if it exists.
6207 (mnsh_handle_setns): Call do_setns.
6208
d5131498
YQ
62092015-07-13 Yao Qi <yao.qi@linaro.org>
6210
6211 * exec.c (exec_file_attach): Add period at the end of error
6212 message.
6213
97605e61
AB
62142015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6215
6216 * tui/tui-win.c (window_name_completer): New function.
6217 (focus_completer): Call window_name_completer. All old content
6218 moved into window_name_completer.
6219 (winheight_completer): New function.
6220 (_initialize_tui_win): Rename variable. Add completer to
6221 winheight command. Update doc string on winheight.
6222
8d6dbeb4
SL
62232015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6224
6225 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6226 all nios2 mach variants.
6227
a0e28e54
KB
62282015-07-10 Kevin Buettner <kevinb@redhat.com>
6229
6230 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6231 of target_read_memory.
6232
c101f28f
AB
62332015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6234
6235 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6236 string copy.
6237 (parse_scrolling_args): Likewise.
6238
150375dc
AB
62392015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6242 names in this function.
6243
6dce28e4
AB
62442015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6245
6246 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6247 (CMD_NAME): Likewise.
6248 (DATA_NAME): Likewise.
6249 (DISASSEM_NAME): Likewise.
6250 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6251 (tui_set_win_height): Likewise.
6252 (parse_scrolling_args): Likewise.
6253
485668e5
MM
62542015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6255
6256 * record-btrace.c (record_btrace_goto_begin)
6257 (record_btrace_goto_end, record_btrace_goto): Move call to
6258 print_stack_frame ...
6259 (record_btrace_set_replay): ... here. Set stop_pc.
6260 * record-full.c (record_full_goto_entry): Set stop_pc.
6261
58d2eda5
PL
62622015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6263
6264 * NEWS: Mention support for tracepoints on aarch64-linux.
6265
7671bf47
PL
62662015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6267
6268 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6269 function. Return 1.
6270 (the_low_target): Install it.
6271
7890fb45
PL
62722015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6273
6274 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6275 * gdb.trace/collection.exp: Likewise.
6276 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6277 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6278 * gdb.trace/report.exp: Likewise.
6279 * gdb.trace/trace-break.exp: Likewise.
6280 * gdb.trace/unavailable.exp: Likewise.
6281 * gdb.trace/while-dyn.exp: Likewise.
6282
ea873d8e
PL
62832015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6284
6285 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6286 (aarch64_gen_return_address): New function.
6287 (aarch64_gdbarch_init): Hook it.
6288
02a2a705
PL
62892015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6290
6291 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6292 swallow NOT_AVAILABLE_ERROR.
6293 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6294 available_p is not set.
6295 (aarch64_stub_frame_unwind_stop_reason): New function.
6296 (aarch64_stub_unwind): Install it.
6297
7dfa3edc
PL
62982015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6299
6300 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6301 field.
6302 (aarch64_make_prologue_cache_1): New function, factored out from
6303 aarch64_make_prologue_cache. Do not allocate cache. Set
6304 available_p.
6305 (aarch64_make_prologue_cache): Reimplement wrapping
6306 aarch64_make_prologue_cache_1, and swallowing
6307 NOT_AVAILABLE_ERROR.
6308 (aarch64_prologue_frame_unwind_stop_reason): New function.
6309 Return UNWIND_UNAVAILABLE if available_p is not set.
6310 (aarch64_prologue_unwind): Install it.
6311 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6312 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6313 frame_id_build_unavailable_stack if available_p is not set.
6314
db634143
PL
63152015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6316
6317 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6318 fields.
6319 (aarch64_scan_prologue): Set prev_pc.
6320 (aarch64_make_prologue_cache): Set func.
6321 (aarch64_make_stub_cache): Set prev_pc.
6322 (aarch64_prologue_this_id): Remove local variables id, pc and
6323 func. Read prev_pc and func from cache.
6324 (aarch64_stub_this_id): Read prev_pc from cache.
6325
8b61f75d
PL
63262015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6327
6328 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6329 argument this_cache. Remove unused local variables reg and
6330 unwound_fp. Return early if this_cache is already set. Set
6331 this_cache.
6332 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6333
7c8edfae
PL
63342015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6335
6336 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6337 New argument this_cache. Return early if this_cache is already
6338 set. Set this_cache.
6339 (aarch64_prologue_this_id): Update call to
6340 aarch64_make_prologue_cache.
6341 (aarch64_prologue_prev_register): Likewise.
6342 (aarch64_normal_frame_base): Likewise.
6343
938c69a1
SM
63442015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * c-valprint.c (c_val_print): Factor out memberptr printing code
6347 from c_val_print to ...
6348 (c_val_print_memberptr): ... this new function.
6349
49f7fe28
SM
63502015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6351
6352 * c-valprint.c (c_val_print): Factor out int printing code to ...
6353 (c_val_print_int): ... this new function.
6354
9e4f353c
SM
63552015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * c-valprint.c (c_val_print): Factor out struct and union
6358 printing code to ...
6359 (c_val_print_struct): ... this new function ...
6360 (c_val_print_union): ... and this new function.
6361
1c67f032
SM
63622015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6363
6364 * c-valprint.c (c_val_print): Factor out pointer printing code
6365 to ...
6366 (c_val_print_ptr): ... this new function.
6367
0b6ef777
SM
63682015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6369
6370 * c-valprint.c (c_valprint): Factor our array printing code from
6371 c_val_print to ...
6372 (c_val_print_array): ... this new function.
6373
1033c33c
SM
63742015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * c-valprint.c (c_val_print): Factor out pointer printing code
6377 to ...
6378 (print_unpacked_pointer): ... this new function.
6379
f6b93c34
SM
63802015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6381
6382 * c-valprint.c (c_val_print): Remove an assignment to i and move
6383 its declaration.
6384
0f4576e3
YQ
63852015-07-09 Yao Qi <yao.qi@linaro.org>
6386
6387 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6388 argument ptid. Update comments. Caller update.
6389
37fdfe4c
MM
63902015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6391
6392 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6393 mnt packets.
6394
80a2b330
MM
63952015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6396
6397 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6398
4ab31498
SM
63992015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * progspace.c (delete_program_space): Add missing spaces.
6402
7a41607e
SM
64032015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * inferior.c (delete_inferior_1): Rename to ...
6406 (delete_inferior): ..., remove 'silent' parameter, delete
6407 program space when unused and remove call to prune_program_spaces.
6408 Remove the old, unused, delete_inferior.
6409 (delete_inferior_silent): Remove.
6410 (prune_inferiors): Change call from delete_inferior_1 to
6411 delete_inferior and remove 'silent' parameter. Remove call to
6412 prune_program_spaces.
6413 (remove_inferior_command): Idem.
6414 * inferior.h (delete_inferior_1): Rename to...
6415 (delete_inferior): ..., remove 'silent' parameter and remove the
6416 original delete_inferior.
6417 (delete_inferior_silent): Remove.
6418 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6419 delete_inferior_1 to delete_inferior and remove 'silent'
6420 parameter.
6421 * progspace.c (prune_program_spaces): Remove.
6422 (pspace_empty_p): Rename to...
6423 (program_space_empty_p): ... and make non-static.
6424 (delete_program_space): New.
6425 * progspace.h (prune_program_spaces): Remove declaration.
6426 (program_space_empty_p): New declaration.
6427 (delete_program_space): New declaration.
6428 * monitor.c (monitor_close): Replace call to
6429 delete_thread_silent and delete_inferior_silent with
6430 discard_all_inferiors.
6431
a9bd710f
PP
64322015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6433
6434 * defs.h (deprecated_register_changed_hook): Remove prototype.
6435 * interps.c (clear_iterpreter_hooks): Remove reference to
6436 deprecated_register_changed_hook.
6437 * top.c (deprecated_register_changed_hook): Remove prototype.
6438 * valops.c (value_assign): Remove reference to
6439 deprecated_register_changed_hook.
6440 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6441 Add comment documenting the function.
6442 (tui_register_changed_observer): Define.
6443 (tui_install_hooks): Remove reference to
6444 deprecated_register_changed_hook. Set
6445 tui_register_changed_observer.
6446 (tui_remove_hooks): Remove reference to
6447 deprecated_register_changed_hook. Unset
6448 tui_register_changed_observer.
6449
08464196
JK
64502015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6451
6452 PR compile/18484
6453 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6454
bcf5c1d9
RC
64552015-07-08 Robert O'Callahan <robert@ocallahan.org>
6456
6457 PR exp/18617
6458 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6459
e8643a45
MM
64602015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6461
6462 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6463
76fb6829
MM
64642015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6465
6466 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6467 Use safe_strerror() instead of strerror().
6468
82c40d4b
YQ
64692015-07-07 Yao Qi <yao.qi@linaro.org>
6470
6471 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6472 * features/arm-with-m-fpa-layout.c: Regenerated.
6473 * features/arm-with-m-vfp-d16.xml: Likewise.
6474 * features/arm-with-m-vfp-d16.c: Regenerated.
6475 * features/arm-with-m.xml: Likewise.
6476 * features/arm-with-m.c: Regenerated.
6477 * features/arm-with-neon.xml: Likewise.
6478 * features/arm-with-neon.c: Regenerated.
6479 * features/arm-with-vfpv2.xml: Likewise.
6480 * features/arm-with-vfpv2.c: Regenerated.
6481 * features/arm-with-vfpv3.xml: Likewise.
6482 * features/arm-with-vfpv3.c: Regenerated.
6483
607685ec
YQ
64842015-07-07 Yao Qi <yao.qi@linaro.org>
6485
6486 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6487 arm-linux-nat.c.
6488 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6489 elf/external.h.
6490 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6491 if target is 32-bit.
6492 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6493 if target is 32-bit.
6494 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6495 if target is 32-bit.
6496 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6497 if target is 32-bit.
6498 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6499 (aarch64_linux_read_description): Return the right target
6500 description.
6501 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6502 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6503 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6504 arm-linux-tdep.o.
6505
f1b67888
YQ
65062015-07-07 Yao Qi <yao.qi@linaro.org>
6507
6508 * aarch32-linux-nat.c: New file.
6509 * aarch32-linux-nat.h: New file.
6510 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6511 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6512 aarch32_gp_regcache_supply.
6513 (store_regs): Move code to aarch32-linux-nat.c. Call
6514 aarch32_gp_regcache_collect.
6515 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6516 aarch32_vfp_regcache_supply.
6517 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6518 aarch32_vfp_regcache_collect.
6519 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6520
179bfe82
YQ
65212015-07-07 Yao Qi <yao.qi@linaro.org>
6522
6523 * arm-linux-nat.c (store_fpregister): Remove.
6524 (store_register): Likewise.
6525 (fetch_fpregister): Likewise.
6526 (fetch_register): Likewise.
6527 (arm_linux_store_inferior_registers): Call store_regs and
6528 store_fpregs instead.
6529 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6530 fetch_regs instead.
6531
6008fc5f
AB
65322015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6535 and focus commands.
6536
7c79d316
JB
65372015-07-06 Joel Brobecker <brobecker@adacore.com>
6538
6539 * NEWS: Create a new section for the next release branch.
6540 Rename the section of the current branch, now that it has
6541 been cut.
6542
f2232bea
JB
65432015-07-06 Joel Brobecker <brobecker@adacore.com>
6544
6545 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6546 * version.in: Bump version to 7.10.50.DATE-cvs.
6547
66c4b3e8
LM
65482015-07-06 Luis Machado <lgustavo@codesourcery.com>
6549
6550 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6551 breakpoints in a special way.
6552 (remove_breakpoint): Likewise.
6553 (mark_breakpoints_out): Likewise.
6554
bcd8537c
AB
65552015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6556
6557 * doc/gdb.texinfo (TUI): Add comma after @xref.
6558
10e9aaa3
AB
65592015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6560
6561 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6562 instead of casting the structure type.
6563
8a13d42d
SM
65642015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6565
6566 * valops.c (search_struct_field): Remove OFFSET parameter.
6567 (value_cast_structs): Adjust calls to search_struct_field.
6568 (value_struct_elt): Same.
6569 (find_overload_match): Same.
6570
a844296a
SM
65712015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6572
6573 * value.c (value_fetch_lazy): Update comment, change return
6574 value to void.
6575 * value.h (value_fetch_lazy): Change return value to void.
6576
f41cbf58
AB
65772015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6580 (tui_win_name): Make parameter and result const.
6581 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6582
118ca224
PP
65832015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6584
6585 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6586 use printf_unfiltered.
6587 (set_mpx_cmd): Add missing trailing space to command string
6588 literal.
6589 (_initialize_i386_tdep): Give the "mpx" prefix command its
6590 correct name.
6591
1b485e67
KB
65922015-07-02 Kevin Buettner <kevinb@redhat.com>
6593
6594 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6595 (enum rx_frame_type): New.
6596 (struct rx_prologue): Add new field `frame_type'.
6597 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6598 parameter in the prologue struct. Add code for recording
6599 locations of PC and PSW for fast interrupt and exception frames.
6600 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6601 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6602 (rx_frame_type): New function.
6603 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6604 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6605 `this_cache'.
6606 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6607 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6608 RX_FRAME_TYPE_FAST_INTERRUPT.
6609 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6610 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6611 (rx_frame_unwind): Use rx_frame_sniffer instead of
6612 default_frame_sniffer.
6613 (rx_frame_unwind): New unwinder.
6614 (rx_gdbarch_init): Register new unwinder.
6615
0561fea4
KB
66162015-07-02 Kevin Buettner <kevinb@redhat.com>
6617
6618 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6619 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6620 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6621 and RX_FPSW_REGNUM.
6622 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6623
decf8d9a
JK
66242015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6625
6626 Fix GCC false warning.
6627 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6628
2fd0f80d
YQ
66292015-07-02 Yao Qi <yao.qi@linaro.org>
6630
6631 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6632 typo in the debugging message.
6633
b0627500
MM
66342015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6635
6636 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6637 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6638 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6639 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6640 (btrace_maint_clear): New.
6641 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6642 (pt_print_packet, btrace_maint_decode_pt)
6643 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6644 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6645 (maint_btrace_packet_history_cmd)
6646 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6647 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6648 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6649 (maint_info_btrace_cmd, _initialize_btrace): New.
6650 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6651 (btrace_maint_packet_history, btrace_maint_info): New.
6652 (btrace_thread_info) <maint>: New.
6653 * NEWS: Announce it.
6654
9be54cae
MM
66552015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6656
6657 * btrace.c (btrace_fetch): Append the new trace data.
6658 (btrace_clear): Clear the stored trace data.
6659 * btrace.h (btrace_thread_info) <data>: New.
6660 * common/btrace-common.h (btrace_data_clear)
6661 (btrace_data_append): New.
6662 * common/btrace-common.c (btrace_data_clear)
6663 (btrace_data_append): New.
6664
010a18a1
MM
66652015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6666
6667 * nat/linux-btrace.c (linux_enable_bts): Check for
6668 PERF_ATTR_SIZE_VER5.
6669 Check for data_offset and data_size fields. Use them.
6670
b20a6524
MM
66712015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6672
6673 * NEWS: Announce new commands "record btrace pt" and "record pt".
6674 Announce new options "set|show record btrace pt buffer-size".
6675 * btrace.c: Include "rsp-low.h".
6676 Include "inttypes.h".
6677 (btrace_add_pc): Add forward declaration.
6678 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6679 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6680 (btrace_compute_ftrace_pt): New.
6681 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6682 (check_xml_btrace_version): Update version check.
6683 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6684 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6685 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6686 (btrace_pt_children): New.
6687 (btrace_children): Add support for "pt".
6688 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6689 (btrace_conf_children): Add support for "pt".
6690 * btrace.h: Include "intel-pt.h".
6691 (btrace_pt_error): New.
6692 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6693 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6694 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6695 (struct btrace_config_pt): New.
6696 (struct btrace_config)<pt>: New.
6697 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6698 (struct btrace_data)<pt>: New.
6699 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6700 (pt): New.
6701 * features/btrace.dtd (btrace)<pt>: New.
6702 (pt, pt-config, cpu): New.
6703 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6704 (perf_event_pt_event_type, kernel_supports_pt)
6705 (linux_supports_pt): New.
6706 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6707 (linux_enable_bts): Free tinfo on error.
6708 (linux_enable_pt): New.
6709 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6710 (linux_disable_pt): New.
6711 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6712 (linux_fill_btrace_pt_config, linux_read_pt): New.
6713 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6714 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6715 (struct btrace_target_info)<pt>: New.
6716 * record-btrace.c (set_record_btrace_pt_cmdlist)
6717 (show_record_btrace_pt_cmdlist): New.
6718 (record_btrace_print_pt_conf): New.
6719 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6720 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6721 (cmd_record_btrace_pt_start): New.
6722 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6723 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6724 (_initialize_record_btrace): Add new commands.
6725 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6726 (remote_protocol_features): Add "Qbtrace:pt".
6727 Add "Qbtrace-conf:pt:size".
6728 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6729 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6730 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6731 (_initialize_remote): Add new commands.
6732
58bfce93
MM
67332015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6734
6735 * configure.ac: check for libipt
6736 * configure: Regenerate.
6737 * config.in: Regenerate.
6738 * Makefile.in (LIBIPT): New.
6739 (CLIBS): Add $LIBIPT.
6740 * NEWS: document new configure options
6741
b0fd6b30
JK
67422015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6743
6744 * compile/compile-object-load.c (compile_object_load): Replace debug
6745 message "lookup undefined ELF symbol" by 3 more specific messages.
6746
e6280369
KB
67472015-07-01 Kevin Buettner <kevinb@redhat.com>
6748
6749 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6750 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6751 (rl78_gdbarch_init): Initialize rl78_psw_type.
6752
bbcbf914
PP
67532015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6754
6755 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6756 Update commentary. Always refresh the registers when frame
6757 information has changed.
6758 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6759 Change return type to int. Return 1 if frame information has
6760 changed, 0 otherwise.
6761 (tui_before_prompt): Update commentary.
6762 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6763 int.
6764
0986c744
PP
67652015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6766
6767 PR tui/13378
6768 * frame.c (select_frame): Remove reference to
6769 deprecated_selected_frame_level_changed_hook.
6770 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6771 declaration.
6772 * stack.c (deprecated_selected_frame_level_changed_hook):
6773 Likewise.
6774 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6775 Rename to ...
6776 (tui_refresh_frame_and_register_information): ... this. Bail
6777 out if there is no stack. Don't update register information
6778 unless registers_too_p is true.
6779 (tui_print_frame_info_listing_hook): Rename to ...
6780 (tui_dummy_print_frame_info_listing_hook): ... this.
6781 (tui_before_prompt): New function.
6782 (tui_normal_stop): New function.
6783 (tui_before_prompt_observer): New observer.
6784 (tui_normal_stop_observer): New observer.
6785 (tui_install_hooks): Set
6786 deprecated_print_frame_info_listing_hook to
6787 tui_dummy_print_frame_info_listing_hook. Register
6788 tui_before_prompt_observer to call tui_before_prompt and
6789 tui_normal_stop_observer to call tui_normal_stop. Remove
6790 reference to deprecated_selected_frame_level_changed_hook.
6791 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6792 and tui_normal_stop_observer. Remove reference to
6793 deprecated_selected_frame_level_changed_hook.
6794
b5fca6d7
PP
67952015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6796
6797 PR tui/13378
6798 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6799 return an int instead of void. Return whether the locator
6800 window has changed.
6801 (tui_show_frame_info): If the locator info has not changed, then
6802 bail out early to avoid refreshing the windows.
6803
c45613e3
PP
68042015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6805
6806 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6807 LOCATOR_WIN to tui_alloc_content.
6808
7b9be803
YQ
68092015-06-30 Yao Qi <yao.qi@linaro.org>
6810
6811 PR tdep/18605
6812 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6813 instructions.
6814
fd6e021d
KB
68152015-06-29 Kevin Buettner <kevinb@redhat.com>
6816
78ab7e9d
KB
6817 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6818 (rx_dwarf_reg_to_regnum): New function.
6819 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6820 unwinding.
fd6e021d 6821
28bf096c
PA
68222015-06-29 Pedro Alves <palves@redhat.com>
6823
6824 PR threads/18127
6825 * infcall.c (run_inferior_call): On infcall success, if the thread
6826 was marked stopped before, reset it back to stopped.
6827 * infrun.c (resume): Don't suppress the set_running calls when
6828 doing an infcall.
6829 (normal_stop): Only discard the finish_thread_state cleanup if the
6830 infcall succeeded.
6831
2880b51c 68322015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6833
6834 * MAINTAINERS (Write After Approval): Update my email address.
6835
ee93cd5e
KS
68362015-06-26 Keith Seitz <keiths@redhat.com>
6837 Doug Evans <dje@google.com>
6838
6839 PR 16253
6840 * block.c (block_lookup_symbol): For non-function blocks,
6841 continue to search for a symbol with an exact domain match
6842 Otherwise, return any previously found "best domain" symbol.
6843 (block_lookup_symbol_primary): Likewise.
6844
fc637f04
PP
68452015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6846
6847 * NEWS: Mention the new option "history remove-duplicates".
6848 * top.c (history_remove_duplicates): New static variable.
6849 (show_history_remove_duplicates): New static function.
6850 (gdb_add_history): Conditionally remove duplicate history
6851 entries.
6852 (init_main): Add "history remove-duplicates" option.
6853
2e52ae68
PP
68542015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6855
6856 * tui/tui-win.c (focus_completer): New static function.
6857 (_initialize_tui_win): Set the completion function of the
6858 "focus" command to focus_completer.
6859
6e22494e
JK
68602015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6863 and language_asm..
6864 * symtab.c (find_function_start_sal): Likewise.
6865
f8773be1
GB
68662015-06-25 Gary Benson <gbenson@redhat.com>
6867
6868 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6869 it is the empty string after trailing slashes have been stripped.
6870
a3be80c3
GB
68712015-06-25 Gary Benson <gbenson@redhat.com>
6872
6873 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6874 * infrun.c (follow_exec): Likewise.
6875 * remote.c (remote_filesystem_is_local): Likewise.
6876 * solib.c (solib_find_1): Likewise.
6877
32fad71f
KS
68782015-06-24 Keith Seitz <keiths@redhat.com>
6879
6880 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6881 return value from lrealpath.
6882
87d1b309
MF
68832015-06-24 Mike Frysinger <vapier@gentoo.org>
6884
6885 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6886
23bf70af
MF
68872015-06-24 Mike Frysinger <vapier@gentoo.org>
6888
6889 * remote-sim.c: Include gdb_bfd.h.
6890 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6891 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6892
5cd867b4
YQ
68932015-06-24 Yao Qi <yao.qi@linaro.org>
6894
6895 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6896 set_gdbarch_get_siginfo_type.
6897 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6898 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6899 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6900 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6901 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6902 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6903 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6904 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6905 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6906 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6907
dc06243f
GB
69082015-06-24 Gary Benson <gbenson@redhat.com>
6909
6910 * common/buffer.c (stdint.h): Do not include.
6911 * common/print-utils.c (stdint.h): Likewise.
6912 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6913 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6914 * ft32-tdep.c (gdb_assert.h): Likewise.
6915 * guile/scm-utils.c (stdint.h): Likewise.
6916 * i386-linux-tdep.c (stdint.h): Likewise.
6917 * i386-tdep.c (stdint.h): Likewise.
6918 * nat/linux-btrace.c (stdint.h): Likewise.
6919 * nat/linux-btrace.h (stdint.h): Likewise.
6920 * nat/linux-ptrace.c (stdint.h): Likewise.
6921 * nat/mips-linux-watch.h (stdint.h): Likewise.
6922 * ppc-linux-nat.c (stdint.h): Likewise.
6923 * python/python-internal.h (stdint.h): Likewise.
6924 * stub-termcap.c (stdlib.h): Likewise.
6925 * target/target.h (stdint.h): Likewise.
6926 * xtensa-linux-nat.c (stdint.h): Likewise.
6927
0fc26caf
PP
69282015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6929
6930 * top.c (init_history): Look at errno after calling strtol to
6931 properly map large GDBHISTSIZE values to infinity.
6932
a38fe4fe
DE
69332015-06-23 Doug Evans <dje@google.com>
6934
6935 * inferior.h (struct inferior_suspend_state): Delete, unused.
6936 All references deleted.
6937
7564fe45
MF
69382015-06-23 Mike Frysinger <vapier@gentoo.org>
6939
6940 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6941 (microblaze_push_dummy_call): Likewise.
6942 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6943 and set_gdbarch_push_dummy_call.
6944
0bdb2f78
YQ
69452015-06-23 Yao Qi <yao.qi@linaro.org>
6946
6947 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6948 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6949 (amd64_linux_store_inferior_registers): Likewise.
6950 * arm-linux-nat.c (fetch_fpregister): Likewise.
6951 (fetch_fpregs, store_fpregister): Likewise.
6952 (store_fpregister, store_fpregs): Likewise.
6953 (fetch_register, fetch_regs): Likewise.
6954 (store_register, store_regs): Likewise.
6955 (fetch_vfp_regs, store_vfp_regs): Likewise.
6956 (arm_linux_read_description): Check have_ptrace_getregset is
6957 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6958 or TRIBOOL_FALSE.
6959 * i386-linux-nat.c (fetch_xstateregs): Check
6960 have_ptrace_getregset is not TRIBOOL_TRUE.
6961 (store_xstateregs): Likewise.
6962 * linux-nat.c (have_ptrace_getregset): Change its type to
6963 enum tribool.
6964 * linux-nat.h (tribool): New enum.
6965 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6966 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6967
18a94d75
DE
69682015-06-19 Doug Evans <dje@google.com>
6969
6970 * NEWS: Mention Sun's version of stabs is no longer supported.
6971 * elfread.c (free_elfinfo): Delete. All uses updated.
6972 (elfstab_offset_sections): Delete. All uses updated.
6973 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6974 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6975 All uses updated.
6976 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6977 All callers updated.
6978
124e13d9
SM
69792015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6980
6981 * common/rsp-low.c (needs_escaping): New.
6982 (remote_escape_output): Add unit_size parameter. Refactor to
6983 support multi-byte addressable units. Rename parameters.
6984 * common/rsp-low.h (remote_escape_output): Add unit_size
6985 parameter and rename others. Update doc.
6986 * remote.c (align_for_efficient_write): New.
6987 (remote_write_bytes_aux): Add unit_size parameter and use it.
6988 Rename some variables. Update doc.
6989 (remote_xfer_partial): Get unit size and use it.
6990 (remote_read_bytes_1): Add unit_size parameter and use it.
6991 Rename some variables. Update doc.
6992 (remote_write_bytes): Same.
6993 (remote_xfer_live_readonly_partial): Same.
6994 (remote_read_bytes): Same.
6995 (remote_flash_write): Update call to remote_write_bytes_aux.
6996 (remote_write_qxfer): Update call to remote_escape_output.
6997 (remote_search_memory): Same.
6998 (remote_hostio_pwrite): Same.
6999
6ae88661
LM
70002015-06-17 Luis Machado <lgustavo@codesourcery.com>
7001
7002 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7003 locations as inserted.
7004 Update and expand comment about permanent locations.
7005 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7006 Move comment to add_location_to_breakpoint.
7007 (update_global_location_list): Don't error out if a permanent
7008 breakpoint is not marked inserted.
7009 Don't error out if a non-permanent breakpoint location is inserted on
7010 top of a permanent breakpoint.
7011
da4616f6
LM
70122015-06-17 Luis Machado <lgustavo@codesourcery.com>
7013
7014 * breakpoint.c (make_breakpoint_permanent): Remove unused
7015 function.
7016 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7017
bc460514
PP
70182015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7019
7020 PR gdb/16999
7021 * NEWS: Mention new GDBHISTSIZE behavior.
7022 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7023 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7024
b58c513b
PP
70252015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7026
7027 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7028 * top.c (init_history): Read from GDBHISTSIZE instead of
7029 HISTSIZE.
7030 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7031
2093d2d3
PP
70322015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7033
7034 * top.c (gdb_safe_append_history): Do not call
7035 history_truncate_file if the history is not stifled.
7036
fc248485
AA
70372015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7038
7039 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7040 * syscalls/s390x-linux.xml: Likewise.
7041
4da680ad
ME
70422015-06-16 Michael Eager <eager@eagercon.com>
7043
7044 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7045
0a75489f
PP
70462015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7047
7048 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7049 target_terminal_ours_for_output() before calling
7050 tui_show_frame_info(), and restore the original terminal
7051 settings afterwards.
7052
95855ca8
MS
70532015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7054
7055 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7056
cfc32360
SM
70572015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7058
7059 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7060 memory unit size.
7061 (mi_cmd_data_write_memory_bytes): Same.
7062
cb6f16cf
SM
70632015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7064
7065 * corefile.c (write_memory): Update doc.
7066 * gdbcore.h (write_memory): Same.
7067
31b7833d
JK
70682015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7071 (dump_mapping_p): Use it for parameter filterflags.
7072 (linux_find_memory_regions_full): Use it for variable filterflags.
7073
909c2cda
JK
70742015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7075 Jan Kratochvil <jan.kratochvil@redhat.com>
7076
7077 Merge multiple hex conversions.
7078 * monitor.c: Include rsp-low.h.
7079 (fromhex): Remove definition.
7080
03aef70f
JK
70812015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7082 Jan Kratochvil <jan.kratochvil@redhat.com>
7083
7084 Move utility functions to common/.
7085 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7086 Move defs to common/common-utils.c.
7087 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7088 (skip_to_space_const): Move decls to common/common-utils.h.
7089 * common/common-defs.h: Move include of common-types.h before
7090 common-utils.h.
7091 * common/common-utils.c: Include host-defs.h and ctype.h.
7092 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7093 from utils.c.
7094 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7095 cli/cli-utils.c.
7096 * common/common-utils.h (strtoulst): Move decl from utils.h.
7097 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7098 Move from cli/cli-utils.h.
7099 * common/host-defs.h: Include limits.h.
7100 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7101 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7102 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7103 common/common-utils.h.
7104 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7105 (strtoulst): Move to common/common-utils.c.
7106 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7107
d1168cc1
YQ
71082015-06-15 Yao Qi <yao.qi@linaro.org>
7109
7110 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7111
c74f7d1c
JT
71122015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7113
7114 * build-id.c: Don't include elf-bfd.h.
7115 (build_id_bfd_get): Use bfd_build_id.
7116 (build_id_verify): Ditto.
7117 * build-id.h: Ditto.
7118 (find_separate_debug_file_by_buildid): Ditto.
7119 * python/py-objfile.c: Don't include elf-bfd.h.
7120 (objfpy_get_build_id) Use bfd_build_id.
7121 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7122 * coffread.c: Include build-id.h.
7123 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7124
f20c58f5
JT
71252015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7126
7127 * windows-nat.c (do_windows_fetch_inferior_registers)
7128 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7129 conditional with __CYGWIN__.
7130
51f0e40d
AB
71312015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7132
7133 * completer.c: Add arch-utils.h include.
7134 (enum reg_completer_targets): New enum.
7135 (reg_or_group_completer_1): New function containing old
7136 reg_or_group_completer, add and use new parameter to control what
7137 is completed on. Use get_current_arch rather than architecture of
7138 currently selected frame.
7139 (reg_or_group_completer): Call new reg_or_group_completer_1.
7140 (reggroup_completer): Call new reg_or_group_completer_1.
7141 * completer.h (reggroup_completer): Add declaration.
7142 * tui/tui-regs.c: Add 'completer.h' include.
7143 (tui_reg_next_command): Renamed to...
7144 (tui_reg_next): ...this. Adjust parameters and return rather than
7145 display new group.
7146 (tui_reg_prev_command): Renamed to...
7147 (tui_reg_prev): ...this. Adjust parameters and return rather than
7148 display new group.
7149 (tui_reg_float_command): Delete.
7150 (tui_reg_general_command): Delete.
7151 (tui_reg_system_command): Delete.
7152 (tui_reg_command): Rewrite to perform switching of register group.
7153 Add header comment.
7154 (tuireglist): Remove.
7155 (tui_reggroup_completer): New function.
7156 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7157 creation of 'tui reg' command.
7158 * NEWS: Add comment about 'tui reg' changes.
7159
d309493c
SM
71602015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7161
7162 * target.c (target_read): Consider addressable unit size when
7163 reading from a memory object.
7164 (read_memory_robust): Same.
7165 (read_whatever_is_readable): Same.
7166 (target_write_with_progress): Consider addressable unit size
7167 when writing to a memory object.
7168 * target.h (target_read): Update documentation.
7169 (target_write): Add documentation.
7170
3374165f
SM
71712015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7172
7173 * arch-utils.h (default_addressable_memory_unit_size): New.
7174 * arch-utils.c (default_addressable_memory_unit_size): New.
7175 * gdbarch.sh (addressable_memory_unit_size): New.
7176 * gdbarch.h: Re-generate.
7177 * gdbarch.c: Re-generate.
7178
279a6fed
SM
71792015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7180
7181 * target.c (target_read): Rename variables and use
7182 TARGET_XFER_E_IO.
7183 (target_read_with_progress): Same.
7184 (read_memory_robust): Constify parameters and rename
7185 variables.
7186 (read_whatever_is_readable): Constify parameters,
7187 rename variables, adjust formatting.
7188 * target.h (read_memory_robust): Constify parameters.
7189
1e5338b6 71902015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7191
7192 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7193 synthetic (non-AltiVec) vector types.
7194 (ppc64_sysv_abi_return_value): Likewise.
7195
98aa42ee
AT
71962015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7197
7198 PR breakpoints/16465
7199 * breakpoint.c (create_breakpoint): Save extra_string for
7200 pending breakpoints.
7201
966f0aef
WT
72022015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7203
7204 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7205 and bt_mask to CORE_ADDR.
7206
6449ed0d
GB
72072015-06-11 Gary Benson <gbenson@redhat.com>
7208
7209 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7210 (mnsh_recv_message): Likewise.
7211
34f8ac9f
WT
72122015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7213
7214 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7215 long long int and plongest instead of %ll.
7216
198c808c
GB
72172015-06-11 Gary Benson <gbenson@redhat.com>
7218
7219 * nat/linux-namespaces.c (gdb_wait.h): New include.
7220 (sys/wait.h): Do not include.
7221
e815d2d2
SM
72222015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7223
7224 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7225 end_sequence is true.
7226
8847cac2
JK
72272015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 Code cleanup.
7230 * solib-target.c (library_list_start_list): Use explicit NULL
7231 comparison.
7232
24c05f46
JK
72332015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7234
7235 * solib-target.c (library_list_start_list): Do not dereference
7236 variable version in its initialization. Make the VERSION check handle
7237 NULL.
7238 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7239
51aad7cc
GB
72402015-06-10 Gary Benson <gbenson@redhat.com>
7241
7242 * NEWS: Announce support for direct access of executable and
7243 shared library files when attaching to inferiors in containers
7244 on GNU/Linux systems.
7245
15a201c8
GB
72462015-06-10 Gary Benson <gbenson@redhat.com>
7247
7248 * remote.c (struct remote_state) <fs_pid>: New field.
7249 (new_remote_state): Initialize the above.
7250 (PACKET_vFile_setfs): New enum value.
7251 (remote_hostio_set_filesystem): New function.
7252 (remote_hostio_open): Call the above.
7253 (remote_hostio_unlink): Likewise.
7254 (remote_hostio_readlink): Likewise.
7255 (_initialize_remote): Register new "set/show remote
7256 hostio-setfs-packet" command.
7257 * NEWS: Announce new vFile:setfs packet.
7258
7a6a1731
GB
72592015-06-10 Gary Benson <gbenson@redhat.com>
7260
7261 * linux-nat.c (nat/linux-namespaces.h): New include.
7262 (fileio.h): Likewise.
7263 (linux_nat_filesystem_is_local): New function.
7264 (linux_nat_fileio_pid_of): Likewise.
7265 (linux_nat_fileio_open): Likewise.
7266 (linux_nat_fileio_readlink): Likewise.
7267 (linux_nat_fileio_unlink): Likewise.
7268 (linux_nat_add_target): Initialize to_filesystem_is_local,
7269 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7270 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7271 commands.
7272 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7273
07c138c8
GB
72742015-06-10 Gary Benson <gbenson@redhat.com>
7275
7276 * target.h (struct inferior): New forward declaration.
7277 (struct target_ops) <to_filesystem_is_local>: Update comment.
7278 (struct target_ops) <to_fileio_open>: New argument inf.
7279 Update comment. All implementations updated.
7280 (struct target_ops) <to_fileio_unlink>: Likewise.
7281 (struct target_ops) <to_fileio_readlink>: Likewise.
7282 (target_filesystem_is_local): Update comment.
7283 (target_fileio_open): New argument inf. Update comment.
7284 (target_fileio_unlink): Likewise.
7285 (target_fileio_readlink): Likewise.
7286 (target_fileio_read_alloc): Likewise.
7287 (target_fileio_read_stralloc): Likewise.
7288 * target.c (target_fileio_open): New argument inf.
7289 Pass inf to implementation. Update debug printing.
7290 (target_fileio_unlink): Likewise.
7291 (target_fileio_readlink): Likewise.
7292 (target_fileio_read_alloc_1): New argument inf. Pass inf
7293 to target_fileio_open.
7294 (target_fileio_read_alloc): New argument inf. Pass inf to
7295 target_fileio_read_alloc_1.
7296 (target_fileio_read_stralloc): Likewise.
7297 * gdb_bfd.c (inferior.h): New include.
7298 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7299 argument with new argument "inferior". Pass inferior to
7300 target_fileio_open.
7301 (gdb_bfd_open): Supply inferior argument to
7302 gdb_bfd_iovec_fileio_open.
7303 * linux-tdep.c (linux_info_proc): Supply inf argument to
7304 relevant target_fileio calls.
7305 (linux_find_memory_regions_full): Likewise.
7306 (linux_fill_prpsinfo): Likewise.
7307 * remote.c (remote_filesystem_is_local): Supply inf
7308 argument to remote_hostio_open.
7309 (remote_file_put): Likewise.
7310 (remote_file_get): Likewise.
7311 (remote_file_delete): Supply inf argument to
7312 remote_hostio_unlink.
7313
12e2a5fd
GB
73142015-06-10 Gary Benson <gbenson@redhat.com>
7315
7316 * inf-child.c (inf_child_fileio_open): Replace comment.
7317 (inf_child_fileio_pwrite): Likewise.
7318 (inf_child_fileio_pread): Likewise.
7319 (inf_child_fileio_fstat): Insert blank line before comment.
7320 (inf_child_fileio_close): Replace comment.
7321 (inf_child_fileio_unlink): Likewise.
7322 (inf_child_fileio_readlink): Likewise.
7323 * remote.c (remote_hostio_open): Likewise.
7324 (remote_hostio_pread): Likewise.
7325 (remote_hostio_pwrite): Likewise.
7326 (remote_hostio_close): Likewise.
7327 (remote_hostio_unlink): Likewise.
7328 (remote_hostio_readlink): Likewise.
7329 (remote_hostio_fstat): Likewise.
7330 (remote_filesystem_is_local): Likewise.
7331 * target.c (target_fileio_open): Likewise.
7332 (target_fileio_pwrite): Likewise.
7333 (target_fileio_pread): Likewise.
7334 (target_fileio_fstat): Insert blank line before comment.
7335 (target_fileio_close): Replace comment.
7336 (target_fileio_unlink): Likewise.
7337 (target_fileio_readlink): Likewise.
7338 (target_fileio_read_alloc): Likewise.
7339 (target_fileio_read_stralloc): Likewise.
7340
9bc3a976
GB
73412015-06-10 Gary Benson <gbenson@redhat.com>
7342
7343 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7344 (check_pid_namespace_match): Use linux_ns_same rather than
7345 linux_proc_pid_get_ns to spot PID namespace mismatches.
7346 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7347 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7348
4b8b5e72
GB
73492015-06-10 Gary Benson <gbenson@redhat.com>
7350
7351 * configure.ac (AC_CHECK_FUNCS): Add setns.
7352 * config.in: Regenerate.
7353 * configure: Likewise.
7354 * nat/linux-namespaces.h: New file.
7355 * nat/linux-namespaces.c: Likewise.
7356 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7357 (linux-namespaces.o): New rule.
7358 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7359 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7360 * config/arm/linux.mh (NATDEPFILES): Likewise.
7361 * config/i386/linux.mh (NATDEPFILES): Likewise.
7362 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7363 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7364 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7365 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7366 * config/mips/linux.mh (NATDEPFILES): Likewise.
7367 * config/pa/linux.mh (NATDEPFILES): Likewise.
7368 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7369 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7370 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7371 * config/s390/linux.mh (NATDEPFILES): Likewise.
7372 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7373 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7374 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7375 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7376
ca095836
GB
73772015-06-10 Gary Benson <gbenson@redhat.com>
7378
7379 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7380 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7381 (make_cleanup_close): Likewise.
7382 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7383 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7384 (make_cleanup_close): Likewise.
7385
5d9c55d3
JT
73862015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7387
7388 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7389 from SuspendThread().
7390
040ea00b
JT
73912015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7392
7393 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7394 from OutputDebugString.
7395
7d73c23c
WT
73962015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7397 Mircea Gherzan <mircea.gherzan@intel.com>
7398
7399 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7400 MPX_BT_MASK_32): New macros.
7401 (i386_mpx_set_bounds): New function that implements
7402 the command "set-mpx-bound".
7403 (i386_mpx_enabled): Helper function to test MPX availability.
7404 (i386_mpx_bd_base): Helper function to calculate the base directory
7405 address.
7406 (i386_mpx_get_bt_entry): Helper function to access a bound
7407 table entry.
7408 (i386_mpx_print_bounds): Effectively display bound information.
7409 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7410 "show mpx".
7411 (_initialize_i386_tdep):
7412 Add "bound" to the commands "show mpx" and "set mpx" commands.
7413 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7414 and "show mpx" commands.
7415 * NEWS: List new commands for MPX support.
7416
3ac2e371
GB
74172015-06-09 Gary Benson <gbenson@redhat.com>
7418
7419 * common/fileio.h (fileio_to_host_mode): New declaration.
7420 * common/fileio.c (fileio_to_host_mode): New Function.
7421 * inf-child.c (inf_child_fileio_open): Process mode argument
7422 with fileio_to_host_mode.
7423
ecef18c5
GB
74242015-06-09 Gary Benson <gbenson@redhat.com>
7425
7426 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7427 conditional.
7428
e3dd7556
GB
74292015-06-05 Gary Benson <gbenson@redhat.com>
7430
7431 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7432 * remote.c (remote_filesystem_is_local): ...here.
7433
5b74bf7d
YQ
74342015-06-04 Yao Qi <yao.qi@linaro.org>
7435
7436 * gdbarch.c: Regenerate it.
7437
7f361056
JK
74382015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7439
7440 * arch-utils.c (default_infcall_munmap): New.
7441 * arch-utils.h (default_infcall_munmap): New declaration.
7442 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7443 (munmap_list_free, munmap_listp_free_cleanup): New.
7444 (struct setup_sections_data): Add field munmap_list_headp.
7445 (setup_sections): Call munmap_list_add.
7446 (compile_object_load): New variable munmap_list_head, initialize
7447 setup_sections_data.munmap_list_headp, return munmap_list_head.
7448 * compile/compile-object-load.h (struct munmap_list): New declaration.
7449 (struct compile_module): Add field munmap_list_head.
7450 (munmap_list_free): New declaration.
7451 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7452 munmap_list_head.
7453 (do_module_cleanup): Call munmap_list_free.
7454 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7455 * gdbarch.c: Regenerate.
7456 * gdbarch.h: Regenerate.
7457 * gdbarch.sh (infcall_munmap): New.
7458 * linux-tdep.c (linux_infcall_munmap): New.
7459 (linux_init_abi): Install it.
7460
3b462ec2
SM
74612015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7462
7463 PR gdb/15564
7464 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7465
8d683210
YQ
74662015-06-02 Yao Qi <yao.qi@linaro.org>
7467
7468 * i386-linux-nat.c: Include linux-nat.h.
7469
e0619de6
JK
74702015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7471 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 PR symtab/18392
7474 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7475 assertion.
7476 * dwarf2loc.c (chain_candidate): Likewise.
7477
bd16da51
YQ
74782015-06-01 Yao Qi <yao.qi@linaro.org>
7479
7480 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7481 (store_vfp_regs): Use PTRACE_SETREGSET.
7482
df9d7ec9
YQ
74832015-06-01 Yao Qi <yao.qi@linaro.org>
7484
7485 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7486 (fetch_fpregs): Likewise.
7487 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7488 (store_fpregs): Likewise.
7489
10766686
YQ
74902015-06-01 Yao Qi <yao.qi@linaro.org>
7491
7492 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7493 (fetch_regs): Likewise.
7494 (store_regs): Use PTRACE_SETREGSET.
7495 (store_register): Likewise.
7496
7efe48d1
YQ
74972015-06-01 Yao Qi <yao.qi@linaro.org>
7498
7499 * arm-linux-nat.c (arm_linux_read_description): Check whether
7500 kernel supports PTRACE_GETREGSET.
7501
433bbbf8
YQ
75022015-06-01 Yao Qi <yao.qi@linaro.org>
7503
7504 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7505 * linux-nat.c: ... here.
7506 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7507 to ...
7508 * linux-nat.h: ... here.
7509
ca9b78ce
YQ
75102015-06-01 Yao Qi <yao.qi@linaro.org>
7511
7512 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7513 * i386-linux-nat.c: Likewise.
7514 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7515 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7516 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7517 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7518 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7519
99cee7b7
EZ
75202015-05-30 Eli Zaretskii <eliz@gnu.org>
7521
7522 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7523 compatible to what read_child and write_child return. This
7524 unbreaks that DJGPP build of GDB which was broken since v7.7.
7525
2147f5bd
MG
75262015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7527
7528 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7529
c8f6c93c
RM
75302015-05-29 Roland McGrath <mcgrathr@google.com>
7531
7532 PR gdb/18464
7533 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7534 rather than internal_error for an unrecognized value.
7535
8c6a948d
MF
75362015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7537
7538 * xtensa-tdep.c (xtensa_pseudo_register_read)
7539 (xtensa_pseudo_register_write): Don't alias last pseudo register
7540 to a1.
7541
8dd06f7a
DB
75422015-05-28 Don Breazeal <donb@codesourcery.com>
7543
7544 * infrun.c (follow_fork_inferior): Ensure the use of
7545 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7546 messages.
7547
a051152b
DE
75482015-05-28 Doug Evans <dje@google.com>
7549
7550 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7551
a56cc1ce
YQ
75522015-05-28 Yao Qi <yao.qi@linaro.org>
7553
7554 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7555 (arm_linux_fetch_inferior_registers): Use
7556 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7557 (arm_linux_store_inferior_registers): Likewise.
7558 (arm_linux_read_description): Don't set
7559 arm_linux_has_wmmx_registers.
7560 * arm-tdep.c (arm_gdbarch_init): Set
7561 tdep->have_wmmx_registers according target descriptions.
7562 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7563 field.
7564
330c6ca9
YQ
75652015-05-28 Yao Qi <yao.qi@linaro.org>
7566
7567 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7568 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7569 instead of arm_linux_vfp_register_count.
7570 (store_vfp_regs): Likewise.
7571 (arm_linux_fetch_inferior_registers): Likewise.
7572 (arm_linux_store_inferior_registers): Likewise.
7573 (arm_linux_read_description): Don't set
7574 arm_linux_vfp_register_count.
7575 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7576 Adjust.
7577 * arm-tdep.c (arm_gdbarch_init): Add assert on
7578 vfp_register_count.
7579 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7580 field to vfp_register_count. All users updated.
7581
d403db27
KH
75822015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7583
7584 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7585 ELFOSABI_GNU binaries.
7586
d9b3de22
DE
75872015-05-27 Doug Evans <dje@google.com>
7588
7589 * dwarf2read.c (lnp_state_machine): New typedef.
7590 (lnp_reader_state): New typedef.
7591 (dwarf_record_line_1): Renamed from dwarf_record_line.
7592 All callers updated.
7593 (dwarf_record_line): New function.
7594 (init_lnp_state_machine): New function.
7595 (check_line_address): Replace p_record_line parameter with state.
7596 All callers updated.
7597 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7598 Update to record state in lnp_state_machine.
7599
924c2928
DE
76002015-05-27 Doug Evans <dje@google.com>
7601
7602 * dwarf2read.c (record_line_ftype): New typedef.
7603 (check_line_address): New function.
7604 (dwarf_decode_lines_1): Call it.
7605
27e0867f
DE
76062015-05-27 Doug Evans <dje@google.com>
7607
7608 * NEWS: Mention "set debug dwarf-line".
7609 * dwarf2read.c (dwarf_line_debug): New static global.
7610 (add_include_dir): Add debug dwarf-line support.
7611 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7612 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7613
4dcabcc2
DE
76142015-05-27 Doug Evans <dje@google.com>
7615
7616 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7617 All callers updated.
7618 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7619 * cp-support.h (cp_lookup_nested_symbol): Update.
7620
b2e2f908
DE
76212015-05-27 Doug Evans <dje@google.com>
7622
7623 PR symtab/18258
7624 * block.c (block_find_symbol): New function.
7625 (block_find_non_opaque_type): Ditto.
7626 (block_find_non_opaque_type_preferred): Ditto.
7627 * block.h (block_symbol_matcher_ftype): New typedef.
7628 (block_find_symbol): Declare.
7629 (block_find_non_opaque_type): Ditto.
7630 (block_find_non_opaque_type_preferred): Ditto.
7631 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7632 * psymtab.c (psym_lookup_symbol): Ditto.
7633 * symtab.c (basic_lookup_transparent_type_1): New function.
7634 (basic_lookup_transparent_type): Call it.
7635
f62fce35
YQ
76362015-05-27 Yao Qi <yao.qi@linaro.org>
7637
7638 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7639 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7640
5d98d3cd
YQ
76412015-05-27 Yao Qi <yao.qi@linaro.org>
7642
7643 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7644 before operator &&.
7645 (aarch64_record_load_store): Likewise.
7646
82c7be31
DE
76472015-05-26 Doug Evans <dje@google.com>
7648
7649 PR c++/18141, c++/18417.
7650 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7651 a typedef.
7652
b4f54984
DE
76532015-05-26 Doug Evans <dje@google.com>
7654
7655 * NEWS: Add entries for command renamings.
7656 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7657 All uses updated.
7658 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7659 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7660 All uses updated.
7661 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7662 All callers updated. Fix spelling of DWARF in help text.
7663 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7664 All uses updated.
7665 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7666 All uses updated.
7667 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7668 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7669 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7670 All uses updated.
7671 (show_dwarf_always_disassemble): Renamed from
7672 show_dwarf2_always_disassemble. All callers updated.
7673 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7674 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7675 "set/show dwarf max-cache-age". Rename
7676 "set/show dwarf2 always-disassemble" to
7677 "set/show dwarf always-disassemble". Rename
7678 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7679 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7680
4ea6efe9
DE
76812015-05-26 Doug Evans <dje@google.com>
7682
7683 PR python/18438
7684 * python/py-lazy-string.c (stpy_convert_to_value): Use
7685 gdbpy_gdb_memory_error not PyExc_MemoryError.
7686 (gdbpy_create_lazy_string_object): Ditto.
7687
b93fd21d
AB
76882015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7689
7690 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7691
55b40027
AB
76922015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * tui/tui-regs.c (tui_reg_prev_command): New function.
7695 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7696 * reggroups.c (reggroup_prev): New function.
7697 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7698
99afc88b
OJ
76992015-05-26 Omair Javaid <omair.javaid@linaro.org>
7700 Yao Qi <yao.qi@linaro.org>
7701
7702 * aarch64-linux-tdep.c: Include linux-record.h and
7703 record-full.h.
7704 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7705 (aarch64_syscall): New enum.
7706 (aarch64_canonicalize_syscall): New function.
7707 (aarch64_all_but_pc_registers_record): New function.
7708 (aarch64_linux_syscall_record): New function.
7709 (aarch64_linux_init_abi): Install AArch64 process record
7710 handler. Update to handle syscall recording.
7711 * aarch64-tdep.c: Include record.h and record-full.h.
7712 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7713 (struct aarch64_mem_r): Define.
7714 (aarch64_record_result): New enum.
7715 (struct insn_decode_record): Define.
7716 (insn_decode_record): New typedef.
7717 (aarch64_record_data_proc_reg): New function.
7718 (aarch64_record_data_proc_imm): New function.
7719 (aarch64_record_branch_except_sys): New function.
7720 (aarch64_record_load_store): New function.
7721 (aarch64_record_data_proc_simd_fp): New function.
7722 (aarch64_record_asimd_load_store): New function.
7723 (aarch64_record_decode_insn_handler): New function.
7724 (deallocate_reg_mem): New function.
7725 (aarch64_process_record): New function.
7726 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7727 New field.
7728 (aarch64_process_record): New extern declaration.
7729 * configure.tgt: Add linux-record.o to gdb_target_obs.
7730 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7731
c16a3f52
OJ
77322015-05-26 Omair Javaid <omair.javaid@linaro.org>
7733
7734 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7735 targets.
7736
c9cf6e20
MG
77372015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7738
7739 * amd64-tdep.c: Replace in_function_epilogue_p with
7740 stack_frame_destroyed_p throughout.
7741 * arch-utils.c: Ditto.
7742 * arch-utils.h: Ditto.
7743 * arm-tdep.c: Ditto.
7744 * breakpoint.c: Ditto.
7745 * gdbarch.sh: Ditto.
7746 * hppa-tdep.c: Ditto.
7747 * i386-tdep.c: Ditto.
7748 * mips-tdep.c: Ditto.
7749 * nios2-tdep.c: Ditto.
7750 * rs6000-tdep.c: Ditto.
7751 * s390-linux-tdep.c: Ditto.
7752 * score-tdep.c: Ditto.
7753 * sh-tdep.c: Ditto.
7754 * sparc-tdep.c: Ditto.
7755 * sparc-tdep.h: Ditto.
7756 * sparc64-tdep.c: Ditto.
7757 * spu-tdep.c: Ditto.
7758 * tic6x-tdep.c: Ditto.
7759 * tilegx-tdep.c: Ditto.
7760 * xstormy16-tdep.c: Ditto.
7761 * gdbarch.c, gdbarch.h: Re-generated.
7762
a4ea0946
AB
77632015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * NEWS: Mention 'tui enable' and 'tui disable'.
7766 * tui/tui.c (tui_enable_command): New function.
7767 (tui_disable_command): New function.
7768 (_initialize_tui): New function.
7769
b75c69bb
AB
77702015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7771
7772 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7773
c1b009ee
AB
77742015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7777 buf_ptr is freed.
7778
880d1e40
AB
77792015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7782 into ...
7783 (tui_set_layout_for_display_command): ...here, before calling
7784 tui_set_layout. Only set the layout if gdb has not already
7785 entered the TUI_FAILURE state.
7786
a0145030
AB
77872015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7788
7789 * tui/tui-layout.c (layout_completer): New function.
7790 (_initialize_tui_layout): Set completer on layout command.
7791
7bd0be3a
AB
77922015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * tui/tui-layout.c (tui_set_layout): Remove
7795 tui_register_display_type parameter. Remove all checking of this
7796 parameter, and reindent function. Update header comment.
7797 (tui_set_layout_for_display_command): Rename to...
7798 (tui_set_layout_by_name): ...this, and don't check for different
7799 register class types, don't pass a tui_register_display_type to
7800 tui_set_layout. Update header comment.
7801 (layout_names): Remove register set specific names.
7802 * tui/tui-layout.h (tui_set_layout): Remove
7803 tui_register_display_type parameter.
7804 * tui/tui.c (tui_rl_change_windows): Don't pass a
7805 tui_register_display_type to tui_set_layout.
7806 (tui_rl_delete_other_windows): Likewise.
7807 (tui_enable): Likewise.
7808 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7809 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7810 (TUI_GENERAL_REGS_NAME): Remove.
7811 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7812 (TUI_SPECIAL_REGS_NAME): Remove.
7813 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7814 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7815 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7816 (enum tui_register_display_type): Remove.
7817 (struct tui_layout_def): Remove regs_display_type and
7818 float_regs_display_type fields.
7819 (struct tui_data_info): Remove regs_display_type field.
7820 (tui_layout_command): Use new name for
7821 tui_set_layout_for_display_command.
7822 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7823 (tui_clear_win_detail): Don't initialise removed fields of
7824 win_info.
7825 * tui/tui-regs.c (tui_show_registers): Use new name for
7826 tui_set_layout_for_display_command.
7827 * tui/tui.h (tui_set_layout_for_display_command): Rename
7828 declaration to...
7829 (tui_set_layout_by_name): ...this.
7830 * printcmd.c (display_command): Remove tui related layout call,
7831 and reindent.
7832
0b6e5e10
JB
78332015-05-20 Joel Brobecker <brobecker@adacore.com>
7834
7835 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7836 (handle_inferior_event): New function.
7837
1da0522e
JB
78382015-05-20 Joel Brobecker <brobecker@adacore.com>
7839
7840 * ada-lang.c (to_fixed_array_type): Rename local variable
7841 typename into type_name.
7842
5fe75eec
JK
78432015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 Fix ASAN crash for gdb.compile/compile.exp.
7846 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7847
a4063588
JK
78482015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7849
7850 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7851 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7852 * compile/compile-object-load.c (setup_sections, compile_object_load):
7853 Likewise.
7854 * compile/compile.c (compile_to_object): Likewise.
7855
37442ce1
DE
78562015-05-16 Doug Evans <xdje42@gmail.com>
7857
7858 * NEWS: Mention support for unbuffered Guile memory ports.
7859 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7860 (ioscm_lseek_address): Improve overflow calculation.
7861 (gdbscm_memory_port_fill_input): Add assert.
7862 (gdbscm_memory_port_write): Handle unbuffered ports.
7863 Handle large writes identical to Guile's fport_write.
7864 (gdbscm_memory_port_seek): Fix seeking past end check.
7865 (gdbscm_memory_port_close): Handle closing unbuffered port.
7866 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7867 (ioscm_init_memory_port): Handle unbuffered ports.
7868 (ioscm_reinit_memory_port): Ditto.
7869 (ioscm_init_memory_port): Update size calculation.
7870 (gdbscm_open_memory): Support zero sized ports.
7871
d976bace
JK
78722015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7875 variable compiler warnings.
7876
4d18dfad
JK
78772015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7878
7879 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7880
36de76f9
JK
78812015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7882 Phil Muldoon <pmuldoon@redhat.com>
7883
7884 * NEWS (Changes since GDB 7.9): Add compile print.
7885 * compile/compile-c-support.c (add_code_header, add_code_footer)
7886 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7887 COMPILE_I_PRINT_VALUE_SCOPE.
7888 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7889 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7890 New.
7891 * compile/compile-object-load.c: Include block.h.
7892 (get_out_value_type): New function.
7893 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7894 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7895 OUT_VALUE_TYPE.
7896 * compile/compile-object-load.h (struct compile_module): Add fields
7897 out_value_addr and out_value_type.
7898 * compile/compile-object-run.c: Include valprint.h and compile.h.
7899 (struct do_module_cleanup): Add fields out_value_addr and
7900 out_value_type.
7901 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7902 COMPILE_I_PRINT_VALUE_SCOPE.
7903 (compile_object_run): Propagate out_value_addr and out_value_type.
7904 Pass OUT_VALUE_ADDR.
7905 * compile/compile.c: Include valprint.h.
7906 (compile_print_value, compile_print_command): New functions.
7907 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7908 (_initialize_compile): Update compile code help text. Install
7909 compile_print_command.
7910 * compile/compile.h (compile_print_value): New prototype.
7911 * defs.h (enum compile_i_scope_types): Add
7912 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7913
83d3415e
JK
79142015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7915
7916 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7917 Rely on its parameter count.
7918 (compile_object_load): Replace lookup_minimal_symbol_text by
7919 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7920 return value.
7921 * compile/compile-object-load.h (struct compile_module): Replace
7922 func_addr by func_sym.
7923 * compile/compile-object-run.c: Include block.h.
7924 (compile_object_run): Reset module variable after it is freed. Use
7925 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7926
3a9558c4
JK
79272015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7928
7929 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7930 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7931 (c_compute_program): Call generate_register_struct after typedefs.
7932 * compile/compile-loc2c.c (push, pushf_register_address)
7933 (pushf_register): Cast to GCC_UINTPTR.
7934 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7935 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7936 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7937 * compile/compile.c (_initialize_compile): Enable warnings for
7938 COMPILE_ARGS.
7939
5c65b58a
JK
79402015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 * cli/cli-script.c (execute_control_command): Update
7943 eval_compile_command caller.
7944 * compile/compile-object-load.c (compile_object_load): Add parameters
7945 scope and scope_data. Set them.
7946 * compile/compile-object-load.h (struct compile_module): Add fields
7947 scope and scope_data.
7948 (compile_object_load): Add parameters scope and scope_data.
7949 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7950 scope and scope_data.
7951 (compile_object_run): Propagate the fields scope and scope_data.
7952 * compile/compile.c (compile_file_command, compile_code_command):
7953 Update eval_compile_command callers.
7954 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7955 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7956 * defs.h (struct command_line): Add field scope_data.
7957
1c88ceb1
JK
79582015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7959
7960 * printcmd.c (struct format_data): Move it to valprint.h.
7961 (print_command_parse_format, print_value): New functions from ...
7962 (print_command_1): ... here. Call them.
7963 * valprint.h (struct format_data): Move it here from printcmd.c.
7964 (print_command_parse_format, print_value): New declarations.
7965
0b738f27
JK
79662015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 * compile/compile-object-load.c (compile_object_load): Add
7969 COMPILE_DEBUG message.
7970
aa715135
JG
79712015-05-15 Jerome Guitton <guitton@adacore.com>
7972
7973 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7974 index to get element instead of enum value.
7975 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7976 of index to compute length, but enum values to compute bounds.
7977 (ada_array_length): Use enum position of index instead of enum value.
7978 (pos_atr): Move position computation to...
7979 (ada_evaluate_subexp): Use enum values to compute bounds.
7980 * gdbtypes.c (discrete_position): ...this new function.
7981 * gdbtypes.h (discrete_position): New function declaration.
7982 * valprint.c (val_print_array_elements): Call discrete_position
7983 to handle array indexed by non-contiguous enumeration types.
7984
931e5bc3
JG
79852015-05-15 Jerome Guitton <guitton@adacore.com>
7986
7987 * ada-lang.c (find_parallel_type_by_descriptive_type):
7988 Go through typedefs during lookup.
7989 (to_fixed_array_type): Add support for non-bit packed arrays
7990 as variable-length fields.
7991
4e63d0ac
PA
79922015-05-15 Pedro Alves <palves@redhat.com>
7993 Simon Marchi <simon.marchi@ericsson.com>
7994
7995 * event-loop.c (gdb_notifier) <next_file_handler,
7996 next_poll_fds_index>: New fields.
7997 (get_next_file_handler_to_handle_and_advance): New function.
7998 (delete_file_handler): If deleting the next file handler to
7999 handle, advance to the next file handler.
8000 (gdb_wait_for_event): Bail early if no event fired. Poll file
8001 handlers in round-robin fashion.
8002
52e48b36
PA
80032015-05-15 Pedro Alves <palves@redhat.com>
8004
8005 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8006 'private' to 'priv'.
8007
2465e12e
PA
80082015-05-15 Pedro Alves <palves@redhat.com>
8009
8010 * nat/linux-nat.h: Include "target/waitstatus.h".
8011
13fa0398
YZ
80122015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8013
8014 * python/py-unwind.c (struct reg_info): Move out of ...
8015 (struct cached_frame_info): ... this scope.
8016 (pending_frame_object_type, unwind_info_object_type): Make extern.
8017
9cd4d857
JB
80182015-05-15 Joel Brobecker <brobecker@adacore.com>
8019
8020 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8021 accumSize is never negative.
8022
e3555239
PP
80232015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8024
8025 * tui/tui-command.c: Remove include of <ctype.h>.
8026 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8027
08a76f8a
MG
80282015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8029
8030 * dwarf2read.c (die_needs_namespace): Return 1 for
8031 DW_TAG_inlined_subroutine.
8032
bd49952b
JK
80332015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8034
8035 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8036 (regcache_cpy_no_passthrough): Make it static, add function comment.
8037 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8038 (regcache_cpy_no_passthrough): Remove declaration.
8039
46c03469
JK
80402015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8041
8042 * gdbthread.h (struct thread_control_state): Update comment for
8043 proceed_to_finish.
8044 * infcall.c (run_inferior_call): Update comment about
8045 proceed_to_finish.
8046 * infcmd.c (get_return_value): Update comment about stop_registers.
8047 (finish_forward): Update comment about proceed_to_finish.
8048 * infrun.c (stop_registers): Remove.
8049 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8050 * infrun.h (stop_registers): Remove.
8051
8a6c4031
JK
80522015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 * infcall.c (struct dummy_frame_context_saver)
8055 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8056 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8057 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8058 New.
8059 (call_function_by_hand_dummy): Move discard_cleanups of
8060 inf_status_cleanup before dummy_frame_push. Call
8061 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8062 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8063 * infcall.h (struct dummy_frame_context_saver)
8064 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8065 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8066 New declarations.
8067 * infcmd.c: Include infcall.h.
8068 (get_return_value): Add parameter ctx_saver, use it instead of
8069 stop_registers.
8070 (print_return_value): Add parameter ctx_saver, pass it.
8071 (struct finish_command_continuation_args): Add field ctx_saver.
8072 (finish_command_continuation): Update print_return_value caller.
8073 (finish_command_continuation_free_arg): Free also ctx_saver.
8074 (finish_forward): Call dummy_frame_context_saver_setup.
8075 * inferior.h (struct dummy_frame_context_saver): New declaration.
8076 (get_return_value): Add parameter ctx_saver.
8077 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8078 get_return_value caller.
8079
10989690
JK
80802015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8081
8082 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8083 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8084 (remove_dummy_frame): Process dtor_list.
8085 (pop_dummy_frame): Process dtor_list.
8086 (register_dummy_frame_dtor): Maintain dtor_list.
8087 (find_dummy_frame_dtor): Handle dtor_list.
8088 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8089 Update comments.
8090
5e970501
JK
80912015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8092
8093 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8094 registers_valid.
8095 (compile_object_run): Update do_module_cleanup caller.
8096 * dummy-frame.c: Include infcall.h.
8097 (struct dummy_frame): Update dtor comment.
8098 (remove_dummy_frame): Call dtor.
8099 (pop_dummy_frame): Update dtor caller.
8100 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8101 registers_valid.
8102
1c4eb778
JB
81032015-05-13 Joel Brobecker <brobecker@adacore.com>
8104
8105 GDB 7.9.1 released.
8106
f5f85ab9
JB
81072015-05-13 Joel Brobecker <brobecker@adacore.com>
8108
8109 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8110 Xmethods now being able to specify a result type to that new
8111 sectioin.
8112
242cd84c
PP
81132015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8114
8115 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8116 first before resizing the window.
e3555239 8117 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8118
81192015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8120
8121 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8122 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8123 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8124 dummy_dtor parameter.
8125 * infcall.h: Include dummy-frame.h.
8126 (call_function_by_hand_dummy_dtor_ftype): Remove.
8127 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8128 parameter.
8129
ebfd00d2
PP
81302015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8131
8132 PR gdb/17820
8133 * top.c (history_size_setshow_var): Change type to signed.
8134 Initialize to -2. Update documentation.
8135 (set_readline_history_size): Define.
8136 (set_history_size_command): Use it. Remove logic for handling
8137 out-of-range sizes.
8138 (init_history): Use set_readline_history_size(). Test for a
8139 value of -2 instead of 0 when determining whether to set a
8140 default history size.
8141 (init_main): Decode the argument of the "size" command as a
8142 zuinteger_unlimited.
8143
83769d0b
DE
81442015-05-12 Doug Evans <dje@google.com>
8145
8146 * dwarf2read.c (struct file_entry): Tweak comments.
8147 (get_debug_line_section): Tweak comments.
8148
0d71eef5
DB
81492015-05-12 Don Breazeal <donb@codesourcery.com>
8150
8151 * NEWS: Announce fork support in the RSP and support
8152 for fork debugging in extended mode.
8153
cbb8991c
DB
81542015-05-12 Don Breazeal <donb@codesourcery.com>
8155
8156 * remote.c (remote_insert_fork_catchpoint): New function.
8157 (remote_remove_fork_catchpoint): New function.
8158 (remote_insert_vfork_catchpoint): New function.
8159 (remote_remove_vfork_catchpoint): New function.
8160 (pending_fork_parent_callback): New function.
8161 (remove_new_fork_child): New function.
8162 (remote_update_thread_list): Call remote_notif_get_pending_events
8163 and remove_new_fork_child.
8164 (extended_remote_kill): Kill fork child when killing the
8165 parent before follow_fork completes.
8166 (init_extended_remote_ops): Initialize target vector with
8167 new fork catchpoint functions.
8168
c269dbdb
DB
81692015-05-12 Don Breazeal <donb@codesourcery.com>
8170
8171 * remote.c (remove_vfork_event_p): New function.
8172 (remote_follow_fork): Add vfork event type to event checking.
8173 (remote_parse_stop_reply): New stop reasons "vfork" and
8174 "vforkdone" for RSP 'T' Stop Reply Packet.
8175
de0d863e
DB
81762015-05-12 Don Breazeal <donb@codesourcery.com>
8177
8178 * linux-nat.c (linux_nat_ptrace_options): New function.
8179 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8180 Call linux_nat_ptrace_options and use different argument to
8181 linux_enable_event_reporting.
8182 (_initialize_linux_nat): Delete call to
8183 linux_ptrace_set_additional_flags.
c8f6c93c 8184 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8185 supported_ptrace_options.
8186 (additional_flags): Delete variable.
8187 (linux_check_ptrace_features): Use supported_ptrace_options.
8188 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8189 Likewise, and remove additional_flags check.
8190 (linux_enable_event_reporting): Change 'attached' argument to
8191 'options'. Use supported_ptrace_options.
c8f6c93c 8192 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8193 supported_ptrace_options.
8194 (linux_ptrace_set_additional_flags): Delete function.
8195 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8196 Delete function prototype.
8197 * remote.c (remote_fork_event_p): New function.
8198 (remote_detach_pid): New function.
8199 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8200 if doing detach-on-fork.
8201 (remote_follow_fork): New function.
8202 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8203 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8204 (init_extended_remote_ops): Initialize to_follow_fork.
8205
89245bc0
DB
82062015-05-12 Don Breazeal <donb@codesourcery.com>
8207
8208 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8209 from static to extern.
8210 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8211 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8212 * PACKET_vfork_event_feature>: New enumeration constants.
8213 (remote_protocol_features): Add table entries for new packets.
8214 (remote_query_supported): Add new feature queries to qSupported
8215 packet.
8216
835205d0
GB
82172015-05-12 Gary Benson <gbenson@redhat.com>
8218
8219 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8220 for fake PIDs as well as real ones.
8221 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8222
4c082a81
SC
82232015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8224
8225 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8226 * python/py-value.c (valpy_reference_value): New function.
8227 (valpy_const_value): Likewise.
8228 (value_object_methods): Add new methods.
8229 * value.c (make_cv_value): New function.
8230 * value.h (make_cv_value): Declare.
8231
afa6c9ab
SL
82322015-05-08 Yao Qi <yao@codesourcery.com>
8233 Sandra Loosemore <sandra@codesourcery.com>
8234
8235 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8236 to 'lh->include_dirs' before accessing to it.
8237 (psymtab_include_file_name): Likewise.
8238 (dwarf_decode_lines_1): Likewise.
8239 (dwarf_decode_lines): Likewise.
8240 (file_file_name): Likewise.
8241
35d54293
SL
82422015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8243
8244 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8245 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8246 (nios2_linux_rt_sigreturn_init): Adjust base address of
8247 register save area.
8248
b73c49b7
SL
82492015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8250
8251 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8252 "trap 31" as the breakpoint instruction on all targets.
8253
dd9f02a0
JK
82542015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8255
8256 * infcmd.c (print_return_value): Remove unused declaration.
8257
6ad395a7
JB
82582015-05-08 Joel Brobecker <brobecker@adacore.com>
8259
8260 * dwarf2read.c (attr_to_dynamic_prop)
8261 <DW_AT_data_member_location>: Use read_type_die isntead of
8262 get_die_type.
8263
8344af1e
JB
82642015-05-08 Joel Brobecker <brobecker@adacore.com>
8265
8266 * ada-lang.c (ada_convert_actual): Add handling of formals
8267 passed inside an aligner type.
8268
80b0912b
JB
82692015-05-08 Joel Brobecker <brobecker@adacore.com>
8270
8271 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8272
df2eb078
SC
82732015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8274
8275 PR python/18291
8276 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8277 Print xmethod matcher status.
8278
2492f0d0
AA
82792015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8280
8281 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8282 register in the regcache when treating the PSWM register, and vice
8283 versa.
8284
1c56a84d
GB
82852015-05-07 Gary Benson <gbenson@redhat.com>
8286
8287 * linux-thread-db.c (struct thread_db_info)
8288 <td_ta_map_id2thr_p>: Remove field.
8289 (try_thread_db_load_1): Remove initialization for the above.
8290
74850322
GB
82912015-05-07 Gary Benson <gbenson@redhat.com>
8292
8293 * linux-thread-db.c (struct thread_db_info)
8294 <td_thr_validate_p>: Remove field.
8295 (try_thread_db_load_1): Remove initialization for the above.
8296
e26efa40
JK
82972015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8298
8299 * compile/compile-object-load.c (compile_object_load): Support
8300 mst_text_gnu_ifunc.
8301
851c9091
JK
83022015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8303
8304 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8305 const. Use new variables for the const compatibility.
8306 (eval_compile_command): Make the cmd_string parameter const.
8307 * compile/compile.h (eval_compile_command): Make the cmd_string
8308 parameter const.
8309
f218b647
JB
83102015-05-06 Joel Brobecker <brobecker@adacore.com>
8311
8312 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8313 comment.
8314 * top.c (deprecated_init_ui_hook): Delete.
8315 (gdb_init): Remove handling of deprecated_init_ui_hook.
8316 * interps.c (clear_interpreter_hooks): Remove handling of
8317 deprecated_init_ui_hook.
8318 * main.c (captured_main): Update comment.
8319
b30a0bc3
JB
83202015-05-06 Joel Brobecker <brobecker@adacore.com>
8321
8322 * solib.c (_initialize_solib): Add "info dll" alias creation.
8323 * windows-nat.c (set_windows_aliases): Delete.
8324 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8325 assignment.
8326 * NEWS: Add news entry about "info dll" now being available
8327 on all platforms.
8328
7c512744
JB
83292015-05-05 Joel Brobecker <brobecker@adacore.com>
8330
8331 * ada-lang.c (value_assign_to_component): Reformat and improve
8332 documentation. Remove all trailing spaces.
8333
0fa7fe50
JB
83342015-05-05 Joel Brobecker <brobecker@adacore.com>
8335
8336 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8337 Stop counting inlined frames as soon as an out-of-line function
8338 is found.
8339
3ea89b92
PMR
83402014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8341
8342 * dwarf2read.c (inherit_abstract_dies): Skip
8343 DW_TAG_GNU_call_site dies while inheriting children of an
8344 abstract DIE into a scope.
8345 (read_lexical_block_scope): Inherit abstract DIE's for
8346 lexical scopes.
8347
2478d075
JB
83482015-05-05 Joel Brobecker <brobecker@adacore.com>
8349
8350 * ada-valprint.c (val_print_packed_array_elements): Delete
8351 variable "len". Add a type-length check when comparing two
8352 consecutive elements of the array. Use the element's actual
8353 length in call to value_contents_eq.
8354 * ada-lang.c (ada_value_primitive_packed_val): Always return
8355 a value whose type has been resolved.
8356
fc958966
JB
83572015-05-05 Joel Brobecker <brobecker@adacore.com>
8358
8359 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8360 BIT_SIZE and LEN if the size of the resolved type is smaller
8361 than BIT_SIZE * HOST_CHAR_BIT.
8362
ca34b84f
JB
83632015-05-05 Joel Brobecker <brobecker@adacore.com>
8364
8365 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8366 correct address in call to value_at. Adjust call to
8367 value_address accordingly.
8368
62c67f3c
JB
83692015-05-05 Joel Brobecker <brobecker@adacore.com>
8370
8371 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8372 to print it.
8373
c3345124
JB
83742015-05-05 Joel Brobecker <brobecker@adacore.com>
8375
8376 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8377 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8378 pinfo->valaddr.
8379 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8380 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8381 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8382 Add handling of addr_stack->valaddr.
8383 (resolve_dynamic_type): Add "valaddr" parameter.
8384 Set pinfo.valaddr field.
8385 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8386 resolve_dynamic_type.
8387 (ada_discrete_type_low_bound): Likewise.
8388 * findvar.c (default_read_var_value): Likewise.
8389 * value.c (value_from_contents_and_address): Likewise.
8390
75ea5859
JB
83912015-05-05 Joel Brobecker <brobecker@adacore.com>
8392
8393 * gdbtypes.c (resolve_dynamic_array): Use
8394 create_array_type_with_stride instead of create_array_type.
8395
0952813b
DD
83962015-04-30 DJ Delorie <dj@redhat.com>
8397
8398 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8399 rl78_decode_opcode
8400
2ce1cdbf
DE
84012015-04-29 Doug Evans <dje@google.com>
8402
8403 PR python/18285
8404 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8405 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8406 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8407 * extension-priv.h (struct extension_language_ops)
8408 <get_xmethod_result_type>: New member.
8409 * extension.c (get_xmethod_result_type): New function.
8410 * extension.h (get_xmethod_result_type): Declare.
8411 * python/py-xmethods.c (get_result_type_method_name): New static
8412 global.
8413 (py_get_result_type_method_name): Ditto.
8414 (gdbpy_get_xmethod_result_type): New function.
8415 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8416 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8417 * python/python.c (python_extension_ops): Add
8418 gdbpy_get_xmethod_result_type.
8419 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8420 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8421 xmethods.
8422 (value_x_unop): Ditto.
8423 * value.c (result_type_of_xmethod): New function.
8424 * value.h (result_type_of_xmethod): Declare.
8425
998d2a3e
GB
84262015-04-29 Gary Benson <gbenson@redhat.com>
8427
8428 * solib.c (solib_find_1): Allow fd argument to be NULL.
8429 (exec_file_find): Update comment.
8430 (solib_find): Likewise.
8431 * exec.c (exec_file_locate_attach): Use NULL as fd
8432 argument to exec_file_find to avoid having to close
8433 the opened file.
8434 * infrun.c (follow_exec): Likewise.
8435
34f5f757
DE
84362015-04-28 Doug Evans <dje@google.com>
8437
8438 PR python/18299
8439 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8440 name or __name__ attributes. Handle gdb module as first argument.
8441
69b4374a
DE
84422015-04-28 Doug Evans <dje@google.com>
8443
8444 PR python/18089
8445 * python/py-prettyprint.c (print_children): Verify result of children
8446 iterator. Provide better error message.
8447 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8448 * python/python.c (gdbpy_print_python_errors_p): New function.
8449
5e7cf078
DE
84502015-04-28 Doug Evans <dje@google.com>
8451
8452 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8453
59fb7612
SS
84542015-04-28 Sasha Smundak <asmundak@google.com>
8455
8456 * NEWS: Mention gdb.Type.optimized_out method.
8457 * python/py-type.c (typy_optimized_out): New function.
8458
cea6e4f1
JB
84592015-04-28 John Baldwin <jhb@FreeBSD.org>
8460
8461 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8462
24b73f8e
PP
84632015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8464
8465 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8466 (initialize_utils): Move call of init_page_info() to ...
8467 * top.c (gdb_init): ... here.
8468
a88d0bb3
PP
84692015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8470
8471 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8472 (tui_sigwinch_handler): Still update our idea of
8473 the terminal's width and height even when TUI is not active.
8474
d6e5e7f7
PP
84752015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8476
8477 * utils.h (set_screen_width_and_height): Declare.
8478 * utils.c (set_screen_width_and_height): Define.
8479 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8480
ff862be4
GB
84812015-04-28 Gary Benson <gbenson@redhat.com>
8482
8483 * infrun.c (solist.h): New include.
8484 (follow_exec): Use exec_file_find to prefix execd_pathname
8485 with gdb_sysroot.
8486
2eb639cb
PP
84872015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8488
8489 * tui/tui-source.c (tui_set_source_content): Avoid calling
8490 strcpy() when offset is 0.
8491
97206799
PP
84922015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8493
8494 PR gdb/18155
8495 * tui/tui-data.c (tui_free_window): Don't free the locator
8496 window when passed an SRC_WIN or a DISASSEM_WIN.
8497
63ed8182
PP
84982015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8499
8500 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8501 (tui_win_content): Move declaration.
8502 (struct tui_gen_win_info): Give 'content' field the
8503 type tui_win_content.
8504 * tui/tui-data.c (init_content_element): Remove redundant and
8505 erroneous casts.
8506 (tui_add_content_elements): Remove erroneous cast.
8507 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8508 casts.
8509 (tui_get_begin_asm_address): Likewise.
8510 * tui/tui-regs.c (tui_show_registers): Likewise.
8511 (tui_show_register_group): Likewise.
8512 (tui_display_registers_from): Likewise.
8513 (tui_check_register_values): Likewise.
8514 * tui/tui-source.c (tui_set_source_content): Likewise.
8515 (tui_set_source_content_nil): Likewise.
8516 (tui_source_is_displayed): Likewise.
8517 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8518 (tui_set_locator_fullname): Likewise.
8519 (tui_set_locator_info): Likewise.
8520 (tui_show_frame_info): Likewise.
8521 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8522 (tui_show_source_line): Likewise.
8523 (tui_horizontal_source_scroll): Likewise.
8524 (tui_update_breakpoint_info): Likewise.
8525 (tui_set_exec_info_content): Likewise.
8526 (tui_show_exec_info_content): Likewise.
8527 (tui_alloc_source_buffer): Likewise.
8528 (tui_line_is_displayed): Likewise.
8529 (tui_addr_is_displayed): Likewise.
8530
d2b41ca0
JB
85312015-04-27 John Baldwin <jhb@FreeBSD.org>
8532
8533 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8534 event if PL_FLAG_EXEC is set.
8535 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8536 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8537 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8538 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8539 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8540
e58e05d6
JB
85412015-04-27 John Baldwin <jhb@FreeBSD.org>
8542
8543 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8544 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8545 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8546 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8547 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8548 [PT_LWPINFO] (fbsd_wait): New function.
8549 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8550 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8551 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8552 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8553 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8554 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8555 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8556 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8557 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8558 "fbsd_wait".
8559 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8560 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8561 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8562 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8563 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8564 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8565 Set "to_post_attach" to "fbsd_post_attach".
8566
8f60fe01
JB
85672015-04-27 John Baldwin <jhb@FreeBSD.org>
8568
8569 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8570 (fbsd_find_memory_regions): Mark static.
8571 (fbsd_nat_add_target): New function.
8572 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8573 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8574 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8575 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8576 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8577 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8578
5fbae7d1
GB
85792015-04-27 Gary Benson <gbenson@redhat.com>
8580
8581 * objfiles.c (allocate_objfile): Do not attempt to expand name
8582 if name is a "target:" filename.
8583 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8584 to load auto-load scripts for objfiles with "target:" filenames.
8585
417c80f9
AA
85862015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8587
8588 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8589 (enum s390_vector_abi_kind): New enum.
8590 (struct gdbarch_tdep)<vector_abi>: New field.
8591 (s390_effective_inner_type): Add parameter min_size. Stop
8592 unwrapping if the inner type is smaller than min_size.
8593 (s390_function_arg_float): Adjust call to
8594 s390_effective_inner_type.
8595 (s390_function_arg_vector): New function.
8596 (s390_function_arg_integer): Adjust comment.
8597 (struct s390_arg_state)<vr>: New field.
8598 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8599 arguments according to vector ABI when appropriate.
8600 (s390_push_dummy_call): Initialize the argument state's field
8601 'vr'. Adjust calls to s390_handle_arg.
8602 (s390_register_return_value): Handle vector return values.
8603 (s390_return_value): Apply the "register" return value convention
8604 to a vector when appropriate.
8605 (s390_gdbarch_init): Initialize tdep->vector_abi.
8606 * NEWS: Announce S390 vector ABI support.
8607
4e65a17e
AA
86082015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8609
8610 * s390-linux-tdep.c (s390_return_value_convention): Remove
8611 function. Inline its logic...
8612 (s390_return_value): ...here. Instead, move the handling of the
8613 "register" return value convention...
8614 (s390_register_return_value): ...here. New function.
8615
80f75320
AA
86162015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8617
8618 * s390-linux-tdep.c
8619 (is_float_singleton): Remove function. Move the "singleton" part
8620 of the logic...
8621 (s390_effective_inner_type): ...here. New function.
8622 (is_float_like): Remove function. Inline its logic...
8623 (s390_function_arg_float): ...here.
8624 (is_pointer_like, is_integer_like, is_struct_like): Remove
8625 functions. Inline their logic...
8626 (s390_function_arg_integer): ...here.
8627 (s390_function_arg_pass_by_reference): Remove function.
8628 (extend_simple_arg): Remove function.
8629 (alignment_of): Remove function.
8630 (struct s390_arg_state): New structure.
8631 (s390_handle_arg): New function.
8632 (s390_push_dummy_call): Move parameter placement logic to the new
8633 function s390_handle_arg. Call it for calculating the stack area
8634 sizes first, and again for actually writing the parameters.
8635
6dbc9c04
AA
86362015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8637
8638 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8639 false if the argument is zero.
8640
9e195661
PMR
86412015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8642
8643 * ada-lang.c (template_to_static_fixed_type): Return input type
8644 when it is already fixed. Cache the input type itself when not
8645 creating a static fixed copy. Make it explicit that we never
8646 molestate the input type.
8647 * gdbtypes.c (resolve_dynamic_struct): Reset the
8648 TYPE_TARGET_TYPE field for resolved copies.
8649
460efde1
JB
86502015-04-27 Joel Brobecker <brobecker@adacore.com>
8651
8652 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8653 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8654 (template_to_static_fixed_type): Call ada_check_typedef only
8655 when necessary.
8656
6faec16b
AB
86572015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * cli/cli-dump.c (srec_dump_command): Add internationalization
8660 mark ups.
8661 (ihex_dump_command): Likewise.
8662 (tekhex_dump_command): Likewise.
8663 (binary_dump_command): Likewise.
8664 (binary_append_command): Likewise.
8665
cf75d6c3
AB
86662015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8667
8668 * cli/cli-dump.c (verilog_cmdlist): New variable.
8669 (dump_verilog_memory): New function.
8670 (dump_verilog_value): New function.
8671 (verilog_dump_command): New function.
8672 (_initialize_cli_dump): Add new commands to support verilog dump
8673 format.
8674 * NEWS: Add entry for "dump verilog".
8675
8cd00c59
PMR
86762015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8677
8678 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8679 descriptive type when there is none.
8680
8900d71e
PP
86812015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8682
8683 * tui/tui-win.c (tui_async_resize_screen): Call
8684 rl_resize_terminal().
8685
f16eab5f
JT
86862015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8687
8688 * windows-nat.c (handle_output_debug_string): Don't change
8689 current_event.dwThreadId.
8690 (get_windows_debug_event): Use thread_id, rather than relying on
8691 current_event.dwThreadId being changed.
8692
68ffc902
JT
86932015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8694
8695 * windows-nat.c (windows_continue): Report an error if
8696 ContinueDebugEvent() fails.
8697
23942819
JT
86982015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8699
8700 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8701
e6ad66bd
JT
87022015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8703
8704 * windows-nat.c (get_windows_debug_event): Replace retval with
8705 thread_id throughout. Update stale comment.
8706
776704b9
JT
87072015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8708
8709 * windows-nat.c (get_windows_debug_event): Don't use ternary
8710 conditional operator.
8711
8aae4344
PM
87122015-04-21 Pierre Muller <muller@sourceware.org>
8713
8714 PR pascal/17815
8715 p-exp.y (yylex): Reorganize code to return the matched pattern
8716 for a field of this.
8717
819843c7
GB
87182015-04-21 Gary Benson <gbenson@redhat.com>
8719
8720 * common/fileio.h (fileio_to_host_openflags): New declaration.
8721 * common/fileio.c (fcntl.h): New include.
8722 (fileio_to_host_openflags): New function, factored out from...
8723 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8724 Single use updated.
8725
0bca7f99
KB
87262015-04-21 Kevin Buettner <kevinb@redhat.com>
8727
8728 * rl78-tdep.c (RL78_SP_ADDR): Define.
8729 (opc_reg_to_gdb_regnum): New static function.
8730 (rl78_analyze_prologue): Recognize instructions forming slightly
8731 more interesting prologues.
8732
e771e4be
PMR
87332015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8734
8735 Revert:
8736 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8737 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8738 TYPE_CODE_REF types so that they are not considered as dynamic
8739 depending on the referenced type.
8740 (resolve_dynamic_type_internal): Likewise.
8741
ee715b5a
PMR
87422015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8743
8744 Revert:
8745 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8746 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8747 "top_level" parameter.
8748 (resolve_dynamic_type_internal): Remove the unused "top_level"
8749 parameter. Update call to is_dynamic_type_internal.
8750 (is_dynamic_type): Update call to is_dynamic_type_internal.
8751 (resolve_dynamic_range): Update call to
8752 resolve_dynamic_type_internal.
8753 (resolve_dynamic_union): Likewise.
8754 (resolve_dynamic_struct): Likewise.
8755 (resolve_dynamic_type): Likewise.
8756
e31d7699
GKB
87572015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8758
8759 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8760 xmalloc.
8761
d214e5e7
TS
87622015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8763
110f9112
TS
8764 * reply_mig_hack.awk: Robustify parsing.
8765
d214e5e7
TS
8766 * reply_mig_hack.awk: Don't bother to declare an intermediate
8767 function pointer variable.
8768
8f61baf8
DE
87692015-04-17 Doug Evans <dje@google.com>
8770
8771 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8772 to "exec_displacement" to avoid confusion with inner use of the name.
8773
dbbf180a
YQ
87742015-04-17 Pedro Alves <palves@redhat.com>
8775
8776 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8777 if HW point of TYPE isn't supported.
8778
059790a0
YQ
87792015-04-17 Yao Qi <yao.qi@linaro.org>
8780 Pedro Alves <palves@redhat.com>
8781
8782 * target.h (target_can_use_hardware_watchpoint): Update comments.
8783 Remove trailing ";".
8784
1b6e6f5c
GB
87852015-04-17 Gary Benson <gbenson@redhat.com>
8786
8787 * remote.c (remote_add_inferior): New argument try_open_exec.
8788 If nonzero, attempt to open the inferior's executable file as
8789 the main executable if no main executable is open already.
8790 All callers updated.
8791 * NEWS: Mention that GDB now supports automatic location and
8792 retrieval of executable + files from remote targets.
8793
c78fa86a
GB
87942015-04-17 Gary Benson <gbenson@redhat.com>
8795
8796 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8797 * remote.c (PACKET_qXfer_exec_file): Likewise.
8798 (remote_protocol_features): Register the
8799 "qXfer:exec-file:read" feature.
8800 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8801 (remote_pid_to_exec_file): New function.
8802 (init_remote_ops): Initialize to_pid_to_exec_file.
8803 (_initialize_remote): Register new "set/show remote
8804 pid-to-exec-file-packet" command.
8805 * NEWS: Announce new qXfer:exec-file:read packet.
8806
e0d86d2c
GB
88072015-04-17 Gary Benson <gbenson@redhat.com>
8808
8809 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8810 New declaration.
8811 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8812 New function, factored out from...
8813 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8814
a9a5a3d1
GB
88152015-04-17 Gary Benson <gbenson@redhat.com>
8816
8817 * exec.c (solist.h): New include.
8818 (exec_file_locate_attach): Prefix absolute executable
8819 paths with gdb_sysroot if set.
8820 * NEWS: Mention that executable paths may be prepended
8821 with sysroot.
8822
af1900b0
GB
88232015-04-17 Gary Benson <gbenson@redhat.com>
8824
8825 * solist.h (exec_file_find): New declaration.
8826 * solib.c (solib_find_1): New function, factored out from...
8827 (solib_find): ...here.
8828 (exec_file_find): New function.
8829
a10de604
GB
88302015-04-17 Gary Benson <gbenson@redhat.com>
8831
8832 * gdbcore.h (exec_file_locate_attach): New declaration.
8833 * exec.c (exec_file_locate_attach): New function, factored
8834 out from...
8835 * infcmd.c (attach_command_post_wait): ...here.
8836
92209ddf
MF
88372015-04-17 Mike Frysinger <vapier@gentoo.org>
8838
8839 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8840
8550d3b3
YQ
88412015-04-16 Yao Qi <yao.qi@linaro.org>
8842
8843 * infrun.c (maybe_software_singlestep): Declare.
8844 (displaced_step_fixup): Call maybe_software_singlestep.
8845
30b3dd9d
DE
88462015-04-15 Doug Evans <dje@google.com>
8847
8848 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8849
61d96d7e
DE
88502015-04-15 Doug Evans <dje@google.com>
8851
8852 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8853
40d2f8d6
SM
88542015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8855
8856 * python/lib/gdb/command/unwinders.py: Add parentheses.
8857
6bbbba9b
YQ
88582015-04-15 Yao Qi <yao.qi@linaro.org>
8859
8860 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8861
2bb2dcab
YQ
88622015-04-15 Yao Qi <yao.qi@linaro.org>
8863
8864 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8865
41f071ef
YQ
88662015-04-15 Yao Qi <yao.qi@linaro.org>
8867
8868 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8869 dsc->insn_size instead of 4.
8870
326a5c7e
GB
88712015-04-14 Gary Benson <gbenson@redhat.com>
8872
8873 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8874 * minidebug.c (lzma_stat): Likewise.
8875 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8876 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8877
dd177e81
SS
88782015-04-13 Stan Shebs <stanshebs@google.com>
8879
8880 * MAINTAINERS: Update my email address.
8881
97de3545
JB
88822015-04-13 John Baldwin <jhb@FreeBSD.org>
8883
8884 * amd64-tdep.c (amd64_target_description): New function.
8885 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8886 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8887 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8888 x86 extended save area.
8889 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8890 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8891 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8892 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8893 "amd64fbsd_read_description".
8894 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8895 (amd64fbsd_supply_xstateregset): New function.
8896 (amd64fbsd_collect_xstateregset): New function.
8897 Add "amd64fbsd_xstateregset".
8898 (amd64fbsd_iterate_over_regset_sections): New function.
8899 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8900 "I386_FBSD_XSAVE_XCR0_OFFSET".
8901 Add "iterate_over_regset_sections" gdbarch method.
8902 Add "core_read_description" gdbarch method.
8903 * i386-tdep.c (i386_target_description): New function.
8904 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8905 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8906 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8907 x86 extended save area.
8908 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8909 * i386bsd-nat.h: Export i386bsd_xsave_len.
8910 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8911 (_initialize_i386fbsd_nat): Set "to_read_description" to
8912 "i386fbsd_read_description".
8913 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8914 (i386fbsd_core_read_description): New function.
8915 (i386fbsd_supply_xstateregset): New function.
8916 (i386fbsd_collect_xstateregset): New function.
8917 Add "i386fbsd_xstateregset".
8918 (i386fbsd_iterate_over_regset_sections): New function.
8919 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8920 "I386_FBSD_XSAVE_XCR0_OFFSET".
8921 Add "iterate_over_regset_sections" gdbarch method.
8922 Add "core_read_description" gdbarch method.
8923 * i386fbsd-tdep.h: New file.
8924
4f45d445
JK
89252015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8926
8927 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8928 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8929 conditional.
8930 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8931 and lb.
8932 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8933 va.
8934 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8935 conditional.
8936 * defs.h (xdb_commands): Remove declaration.
8937 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8938 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8939 * infcmd.c (run_no_args_command, go_command): Remove.
8940 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8941 * infrun.c (xdb_handle_command): Remove.
8942 (_initialize_infrun): Remove xdb_commands for lz and z.
8943 * main.c (xdb_commands): Remove variable.
8944 (captured_main): Remove "xdb" from long_options.
8945 (print_gdb_help): Remove --xdb from help.
8946 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8947 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8948 * stack.c (backtrace_full_command, args_plus_locals_info)
8949 (current_frame_command): Remove.
8950 (_initialize_stack): Remove xdb_commands for t, T and l.
8951 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8952 * thread.c (_initialize_thread): Remove xdb_commands condition.
8953 * tui/tui-layout.c (tui_toggle_layout_command)
8954 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8955 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8956 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8957 (tui_scroll_regs_backward_command): Remove.
8958 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8959 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8960 (_initialize_tui_win): Remove xdb_commands for U and w.
8961 * utils.c (pagination_on_command, pagination_off_command): Remove.
8962 (initialize_utils): Remove xdb_commands for am and sm.
8963
cb71640d
PA
89642015-04-10 Pedro Alves <palves@redhat.com>
8965
8966 * infrun.c (displaced_step_fixup): Switch to the event ptid
8967 earlier. If the thread stopped for a watchpoint and the
8968 target/arch has non-continuable watchpoints, cancel the displaced
8969 step.
8970 (resume): Don't start a displaced step if in-line step-over info
8971 is valid.
8972
8f572e5c
PA
89732015-04-10 Pedro Alves <palves@redhat.com>
8974
8975 * infrun.c (displaced_step_in_progress): New function.
8976 (do_target_resume): Advise target to report all signals if
8977 displaced stepping.
8978
8d707a12
PA
89792015-04-10 Pedro Alves <palves@redhat.com>
8980
8981 PR gdb/18216
8982 * infrun.c (process_event_stop_test): Don't assume a step-resume
8983 is set if tp->stepped_breakpoint is true.
8984
ef713951
YQ
89852015-04-10 Yao Qi <yao.qi@linaro.org>
8986
8987 * arm-tdep.c (install_alu_reg): Update comment.
8988 (thumb_copy_alu_reg): Remove local variable rn. Update
8989 debugging message. Use r2 instead of r1 in the modified
8990 instruction.
8991
906d60cf
PA
89922015-04-10 Pedro Alves <palves@redhat.com>
8993
8994 PR gdb/13858
8995 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8996 linux_displaced_step_location as gdbarch_displaced_step_location
8997 hook.
8998 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8999 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9000 * linux-tdep.c (linux_displaced_step_location): New function,
9001 based on ppc_linux_displaced_step_location.
9002 * linux-tdep.h (linux_displaced_step_location): New declaration.
9003 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9004 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9005 Delete.
9006 (ppc_linux_init_abi): Install linux_displaced_step_location as
9007 gdbarch_displaced_step_location hook, even without Cell/B.E..
9008 (_initialize_ppc_linux_tdep): Don't install
9009 ppc_linux_inferior_created as inferior_created observer.
9010 * s390-linux-tdep.c (s390_gdbarch_init): Install
9011 linux_displaced_step_location as gdbarch_displaced_step_location
9012 hook.
9013
7823a941
GB
90142015-04-09 Gary Benson <gbenson@redhat.com>
9015
9016 * common/common-remote-fileio.h: Rename to...
9017 * common/fileio.h: ...this. Update all references.
9018 (remote_fileio_to_fio_error): Rename to...
9019 (host_to_fileio_error): ...this.
9020 (remote_fileio_to_be): Rename to...
9021 (host_to_bigendian): ...this. Update all callers.
9022 (remote_fileio_to_fio_uint): Rename to...
9023 (host_to_fileio_uint): ...this. Update all callers.
9024 (remote_fileio_to_fio_time): Rename to...
9025 (host_to_fileio_time): ...this. Update all callers.
9026 (remote_fileio_to_fio_stat): Rename to...
9027 (host_to_fileio_stat): ...this.
9028 Update all references.
9029 * common/common-remote-fileio.c: Rename to...
9030 * common/fileio.c: ...this. Update all references.
9031 (remote_fileio_to_fio_error): Rename to...
9032 (host_to_fileio_error): ...this. Update all callers.
9033 (remote_fileio_mode_to_target): Rename to...
9034 (fileio_mode_pack): ...this. Update all callers.
9035 (remote_fileio_to_fio_mode): Rename to...
9036 (host_to_fileio_mode): ...this. Update all callers.
9037 (remote_fileio_to_fio_ulong): Rename to...
9038 (host_to_fileio_ulong): ...this. Update all callers.
9039 (remote_fileio_to_fio_stat): Rename to...
9040 (host_to_fileio_stat): ...this. Update all callers.
9041
f2983cc3
AW
90422015-04-09 Andy Wingo <wingo@igalia.com>
9043
9044 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9045 (frame_functions): Bind gdbscm_frame_read_register to
9046 frame-read-register.
9047 * guile/lib/gdb.scm (frame-read-register): Export.
9048
b88bb450
GB
90492015-04-09 Gary Benson <gbenson@redhat.com>
9050
9051 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9052 New declaration.
9053 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9054 New function, factored out the named functions below.
9055 * inf-child.c (gdb/fileio.h): Remove include.
9056 (common-remote-fileio.h): New include.
9057 (inf_child_errno_to_fileio_error): Remove function. Update
9058 all callers to use remote_fileio_to_fio_error.
9059 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9060
2f2680f3
AW
90612015-04-09 Andy Wingo <wingo@igalia.com>
9062
9063 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9064
5a2d4533
L
90652015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9066
9067 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9068 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9069 * configure: Regenerated.
9070
421693b0
PA
90712015-04-09 Pedro Alves <palves@redhat.com>
9072
9073 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9074 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9075 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9076 * gnulib/import/Makefile.am: Update.
9077 * gnulib/import/Makefile.in: Update.
9078 * gnulib/import/m4/gnulib-cache.m4: Update.
9079 * gnulib/import/m4/gnulib-comp.m4: Update.
9080 * gnulib/import/m4/strtok_r.m4: New file.
9081 * gnulib/import/strtok_r.c: New file.
9082
f543dc83
PA
90832015-04-09 Pedro Alves <palves@redhat.com>
9084
9085 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9086 "called too early to check prototype".
9087
6d62641c
SDJ
90882015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9089
9090 PR python/16699
9091 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9092 use a caching mechanism. Adjust comments and code to reflect
9093 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9094 (cmdpy_completer_handle_brkchars): Adjust call to
9095 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9096 (cmdpy_completer): Likewise.
9097
85558555
YQ
90982015-04-08 Yao Qi <yao.qi@linaro.org>
9099
9100 * spu-tdep.c (spu_gdbarch_init): Don't call
9101 set_gdbarch_cannot_step_breakpoint.
9102
d249a14a
SDJ
91032015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9104
9105 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9106
8a06aea7
PA
91072015-04-07 Pedro Alves <palves@redhat.com>
9108
9109 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9110 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9111 (delete_exited_threads): New declaration.
9112 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9113 * linux-nat.c (linux_nat_update_thread_list): New function.
9114 (linux_nat_add_target): Install it.
9115 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9116 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9117 (delete_exited_threads): New function.
9118
d9b67d9f
PA
91192015-04-07 Pedro Alves <pedro@codesourcery.com>
9120
9121 * infrun.c (resume) <displaced stepping debug output>: Get the
9122 leader thread's regcache, not resume_ptid's.
9123
2c26b84f
DE
91242015-04-06 Doug Evans <xdje42@gmail.com>
9125
9126 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9127 VAR_DOMAIN.
9128 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9129 Include symbol domain in debugging output.
9130
7a85168d
PA
91312015-04-06 Pedro Alves <palves@redhat.com>
9132 Bernd Edlinger <bernd.edlinger@hotmail.de>
9133
9134 * configure.ac: Remove the mingw32-specific stub-termcap.o
9135 fallback, and instead fallback to the stub termcap on all hosts.
9136 * configure: Regenerate.
9137 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9138 symbols.
9139
25755e2b
PMR
91402015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9141
9142 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9143 "top_level" parameter.
9144 (resolve_dynamic_type_internal): Remove the unused "top_level"
9145 parameter. Update call to is_dynamic_type_internal.
9146 (is_dynamic_type): Update call to is_dynamic_type_internal.
9147 (resolve_dynamic_range): Update call to
9148 resolve_dynamic_type_internal.
9149 (resolve_dynamic_union): Likewise.
9150 (resolve_dynamic_struct): Likewise.
9151 (resolve_dynamic_type): Likewise.
9152
961f4160
PMR
91532015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9154
9155 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9156 TYPE_CODE_REF types so that they are not considered as dynamic
9157 depending on the referenced type.
9158 (resolve_dynamic_type_internal): Likewise.
9159
39f3de7c
L
91602015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9161
9162 * Makefile.in (top_srcdir): New.
9163 * configure: Regenerated.
9164
599bd15c
GB
91652015-04-02 Gary Benson <gbenson@redhat.com>
9166
9167 * NEWS: Announce the new default sysroot of "target:".
9168
fed040c6
GB
91692015-04-02 Gary Benson <gbenson@redhat.com>
9170
9171 * main.c (captured_main): Set gdb_sysroot to "target:"
9172 if not otherwise set.
9173
64c0b5de
GB
91742015-04-02 Gary Benson <gbenson@redhat.com>
9175
9176 * exec.c (exec_file_attach): Support "target:" filenames.
9177
b57fbfba
GB
91782015-04-02 Gary Benson <gbenson@redhat.com>
9179
9180 * solib.c (solib_find): Strip "target:" prefix from sysroot
9181 if accessing local files.
9182
97a41605
GB
91832015-04-02 Gary Benson <gbenson@redhat.com>
9184
9185 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9186 checks and error messages.
9187
2938e6cf
GB
91882015-04-02 Gary Benson <gbenson@redhat.com>
9189
9190 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9191 (remote_filename_p): Remove declaration.
9192 (remote_bfd_open): Likewise.
9193 * remote.c (remote_bfd_iovec_open): Remove function.
9194 (remote_bfd_iovec_close): Likewise.
9195 (remote_bfd_iovec_pread): Likewise.
9196 (remote_bfd_iovec_stat): Likewise.
9197 (remote_filename_p): Likewise.
9198 (remote_bfd_open): Likewise.
9199 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9200 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9201 (gdb_bfd_open_maybe_remote): Remove function.
9202 (symfile_bfd_open): Replace remote filename check with
9203 target filename check.
9204 (reread_symbols): Use gdb_bfd_open.
9205 * build-id.c (gdbcore.h): New include.
9206 (build_id_to_debug_bfd): Use gdb_bfd_open.
9207 * infcmd.c (attach_command_post_wait): Remove remote filename
9208 check.
9209 * solib.c (solib_find): Replace remote-specific handling with
9210 target-specific handling. Update comments where necessary.
9211 (solib_bfd_open): Replace remote-specific handling with
9212 target-specific handling.
9213 (gdb_sysroot_changed): New function.
9214 (_initialize_solib): Call the above when gdb_sysroot changes.
9215 * windows-tdep.c (gdbcore.h): New include.
9216 (windows_xfer_shared_library): Use gdb_bfd_open.
9217
f08e97fe
GB
92182015-04-02 Gary Benson <gbenson@redhat.com>
9219
9220 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9221 (is_target_filename): New declaration.
9222 (gdb_bfd_has_target_filename): Likewise.
9223 (gdb_bfd_open): Update documentation comment.
9224 * gdb_bfd.c (target.h): New include.
9225 (gdb/fileio.h): Likewise.
9226 (is_target_filename): New function.
9227 (gdb_bfd_has_target_filename): Likewise.
9228 (fileio_errno_to_host): Likewise.
9229 (gdb_bfd_iovec_fileio_open): Likewise.
9230 (gdb_bfd_iovec_fileio_pread): Likewise.
9231 (gdb_bfd_iovec_fileio_close): Likewise.
9232 (gdb_bfd_iovec_fileio_fstat): Likewise.
9233 (gdb_bfd_open): Use target fileio to access paths prefixed
9234 with "target:" where necessary.
9235
4bd7dc42
GB
92362015-04-02 Gary Benson <gbenson@redhat.com>
9237
9238 * target.h (struct target_ops) <to_filesystem_is_local>:
9239 New field.
9240 (target_filesystem_is_local): New macro.
9241 * target-delegates.c: Regenerate.
9242 * remote.c (remote_filesystem_is_local): New function.
9243 (init_remote_ops): Initialize to_filesystem_is_local.
9244
9b15c1f0
GB
92452015-04-02 Gary Benson <gbenson@redhat.com>
9246
9247 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9248 (target_fileio_fstat): New declaration.
9249 * target.c (target_fileio_fstat): New function.
9250 * inf-child.c (inf_child_fileio_fstat): Likewise.
9251 (inf_child_target): Initialize to_fileio_fstat.
9252 * remote.c (init_remote_ops): Likewise.
9253
d11916aa
SS
92542015-04-01 Sasha Smundak <asmundak@google.com>
9255
9256 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9257 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9258 (py-unwind.o): New recipe.
9259 * NEWS: mention Python frame unwinding.
9260 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9261 gdb/unwinder.py and gdb/command/unwinder.py
9262 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9263 list.
9264 (execute_unwinders): New function.
9265 * python/lib/gdb/command/unwinders.py: New file.
9266 * python/lib/gdb/unwinder.py: New file.
9267 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9268 (objfpy_dealloc): Decrement frame_unwinders reference count.
9269 (objfpy_initialize): Create frame_unwinders list.
9270 (objfpy_get_frame_unwinders): New function.
9271 (objfpy_set_frame_unwinders): Ditto.
9272 (objfile_getset): Add frame_unwinders attribute to Objfile.
9273 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9274 (pspy_dealloc): Decrement frame_unwinders reference count.
9275 (pspy_initialize): Create frame_unwinders list.
9276 (pspy_get_frame_unwinders): New function.
9277 (pspy_set_frame_unwinders): Ditto.
9278 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9279 * python/py-unwind.c: New file.
9280 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9281 (objpy_get_frame_unwinders): New prototype.
9282 (gdbpy_initialize_unwind): New prototype.
9283 * python/python.c (gdbpy_apply_type_printers): Call
9284 gdbpy_initialize_unwind.
9285
6b403daa
PA
92862015-04-01 Pedro Alves <palves@redhat.com>
9287
9288 * infrun.c (resume): Check currently_stepping after clearing
9289 stepped_breakpoint, not before.
9290
1176ecec
PA
92912015-04-01 Pedro Alves <palves@redhat.com>
9292
9293 * infrun.c (print_target_wait_results): Print all the ptid
9294 elements.
9295
de1fe8c8
PA
92962015-04-01 Pedro Alves <palves@redhat.com>
9297
9298 * infrun.c (keep_going): Also discard cleanups if inserting
9299 breakpoints fails.
9300
e6f5c25b
PA
93012015-04-01 Pedro Alves <palves@redhat.com>
9302
9303 * infrun.c (wait_for_inferior): Install the
9304 finish_thread_state_cleanup cleanup across the whole function, not
9305 just around handle_inferior_event.
9306
1ac806b8
PA
93072015-04-01 Pedro Alves <palves@redhat.com>
9308
9309 * infrun.c (resume) <step past permanent breakpoint>: Use
9310 do_target_resume.
9311
2ee52aa4
PA
93122015-04-01 Pedro Alves <palves@redhat.com>
9313
9314 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9315
5445da1b
PMR
93162015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9317
9318 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9319
4eec2deb
PA
93202015-04-01 Pedro Alves <palves@redhat.com>
9321
9322 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9323 list if it was marked exited.
9324
afa59b79
L
93252015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9326
9327 * configure: Regenerated.
9328
df8411da
SDJ
93292015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9330 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 Oleg Nesterov <oleg@redhat.com>
9332
9333 PR corefiles/16092
9334 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9335 New enum identifying the various options of the coredump_filter
9336 file.
9337 (struct smaps_vmflags): New struct.
9338 (use_coredump_filter): New variable.
9339 (decode_vmflags): New function.
9340 (mapping_is_anonymous_p): Likewise.
9341 (dump_mapping_p): Likewise.
9342 (linux_find_memory_regions_full): New variables
9343 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9344 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9345 parsing of its information. Implement memory mapping filtering
9346 based on its contents.
9347 (show_use_coredump_filter): New function.
9348 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9349 * NEWS: Mention the possibility of using the
9350 '/proc/PID/coredump_filter' file when generating a corefile.
9351 Mention new command 'set use-coredump-filter'.
9352
416f679e
SDJ
93532015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9354
9355 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9356 read_memory_unsigned_integer.
9357
711a72d3
L
93582015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9359
9360 * Makefile.in (ZLIB): New.
9361 (ZLIBINC): Likewise.
9362 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9363 (CLIBS): Add $(ZLIB).
9364 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9365 Add -lz to LIBS.
9366 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9367 * top.c (print_gdb_configuration): Remove --with-zlib and
9368 --without-zlib.
9369 * config.in: Regenerated.
9370 * configure: Likewise.
9371
d33279b3
AT
93722015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9373
9374 * NEWS: Mention info os cpus support.
9375 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9376 (struct osdata_type): Add cpus entry, reorder the entries in
9377 alphabetical order.
9378
71b30f27
MK
93792015-03-31 Matthias Klose <doko@ubuntu.com>
9380
9381 * compile/compile.c (compile_to_object): Allow triplets with or
9382 without vendor set.
9383
13ce9222
DE
93842015-03-30 Doug Evans <dje@google.com>
9385
9386 PR c++/18141
9387 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9388 klass in VAR_DOMAIN.
9389
20f796c9
GB
93902015-03-30 Gary Benson <gbenson@redhat.com>
9391
9392 * remote.c (remote_mourn_1): Remove function. Update all callers
9393 to use remote_mourn.
9394 (extended_remote_mourn_1): Remove function. Update all callers
9395 to use extended_remote_mourn.
9396 (extended_remote_attach_1): Remove function. Update all callers
9397 to use extended_remote_attach.
9398
49d45b20
JB
93992015-03-28 James Bowman <james.bowman@ftdichip.com>
9400
9401 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9402 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9403 (ALLDEPFILES): Add ft32-tdep.c.
9404 * configure.tgt: Add FT32 entry.
9405 * ft32-tdep.c: New file, FT32 target-dependent code.
9406 * ft32-tdep.h: New file, FT32 target-dependent code.
9407
1c4ff080
JK
94082015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9409
9410 Revert:
9411 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9412 Code cleanup.
9413 * printcmd.c (print_command_1): Move expr variable scope.
9414
79498702
JB
94152015-03-27 Joel Brobecker <brobecker@adacore.com>
9416
9417 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9418
ce9c0ca1
AK
94192015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9420
9421 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9422 sections.
9423
429e1e81
JB
94242015-03-26 Joel Brobecker <brobecker@adacore.com>
9425
9426 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9427 exception raised while parsing the probe arguments.
9428 Force parsing to be done using the C language parser.
9429 * expression.h (parse_expression_with_language): Declare.
9430 * parse.c (parse_expression_with_language): New function.
9431
4593441b
JT
94322015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9433
9434 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9435
ff908ebf
AW
94362015-03-26 Andy Wingo <wingo@igalia.com>
9437
9438 PR symtab/18148
9439 * dwarf2read.c (struct partial_die_info): Add has_const_value
9440 member.
9441 (add_partial_symbol): Don't punt on symbols that have const_value
9442 attributes.
9443 (read_partial_die): Detect DW_AT_const_value.
9444
f30d5c78
JK
94452015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 Code cleanup.
9448 * printcmd.c (print_command_1): Move expr variable scope.
9449
8d89f51a
JK
94502015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 Code cleanup.
9453 * printcmd.c (validate_format): Make the parameter cmdname const.
9454
0b736949
DB
94552015-03-26 Don Breazeal <donb@codesourcery.com>
9456
9457 * remote.c (_initialize_remote): Update comment.
9458
20d35291
PA
94592015-03-26 Pedro Alves <palves@redhat.com>
9460 Jon TURNEY <jon.turney@dronecode.org.uk>
9461
9462 * coffread.c (coff_symfile_read): When constructing the name of an
9463 import stub symbol from import symbol for amd64, only skip the
9464 char after _imp_ if the target is underscored (like i386) and the
9465 char is indeed the target's leading char.
9466
6a3753b3
PA
94672015-03-25 Pedro Alves <palves@redhat.com>
9468
9469 * target.h <to_async>: Replace 'callback' and 'context' parameters
9470 with boolean 'enable' parameter.
9471 (target_async): Replace CALLBACK and CONTEXT parameters with
9472 boolean ENABLE parameter.
9473 * inf-loop.c (inferior_event_handler): Adjust.
9474 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9475 (linux_nat_resume): Adjust.
9476 (async_client_callback, async_client_context): Delete.
9477 (handle_target_event): Call inferior_event_handler directly.
9478 (linux_nat_async): Replace 'callback' and 'context' parameters
9479 with boolean 'enable' parameter. Adjust. Remove references to
9480 async_client_callback and async_client_context.
9481 (linux_nat_close): Adjust.
9482 * record-btrace.c (record_btrace_async): Replace 'callback' and
9483 'context' parameters with boolean 'enable' parameter. Adjust.
9484 (record_btrace_resume): Adjust.
9485 * record-full.c (record_full_async): Replace 'callback' and
9486 'context' parameters with boolean 'enable' parameter. Adjust.
9487 (record_full_resume, record_full_core_resume): Adjust.
9488 * remote.c (struct remote_state) <async_client_callback,
9489 async_client_context>: Delete fields.
9490 (remote_start_remote, extended_remote_attach_1, remote_resume)
9491 (extended_remote_create_inferior): Adjust.
9492 (remote_async_serial_handler): Call inferior_event_handler
9493 directly.
9494 (remote_async): Replace 'callback' and 'context' parameters with
9495 boolean 'enable' parameter. Adjust.
9496 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9497 Adjust.
9498 * target-delegates.c: Regenerate.
9499
1c4b552b
GB
95002015-03-25 Gary Benson <gbenson@redhat.com>
9501 Pedro Alves <palves@redhat.com>
9502
9503 * target.c (fileio_ft_t): New typedef, define object vector.
9504 (fileio_fhandles): New static variable.
9505 (is_closed_fileio_fh): New macro.
9506 (lowest_closed_fd): New static variable.
9507 (acquire_fileio_fd): New function.
9508 (release_fileio_fd): Likewise.
9509 (fileio_fd_to_fh): New macro.
9510 (target_fileio_open): Wrap the file descriptor on success.
9511 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9512 (target_fileio_pread): Likewise.
9513 (target_fileio_close): Likewise.
9514
a25d8bf9
PA
95152015-03-24 Pedro Alves <palves@redhat.com>
9516
9517 * thread.c (thread_apply_all_command): Take exited threads into
9518 account.
9519
44a1ee51
PA
95202015-03-24 Pedro Alves <palves@redhat.com>
9521
9522 * infrun.c (resume, proceed): Mention
9523 switch_back_to_stepped_thread, not switch_back_to_stepping.
9524
f3263aa4
PA
95252015-03-24 Pedro Alves <palves@redhat.com>
9526
9527 * infrun.c (user_visible_resume_ptid): Rewrite going from
9528 most-locked to unlocked instead of the opposite. Move comment ...
9529 * infrun.h (user_visible_resume_ptid): ... here.
9530
2bf6fb9d
PA
95312015-03-24 Pedro Alves <palves@redhat.com>
9532
9533 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9534 to resume the event lwp. Use the lwp's ptid instead of the passed
9535 in (maybe wildcard) ptid.
9536 (stop_wait_callback): Tweak debug log output.
9537 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9538 TRAP_TRACE.
9539 (linux_nat_filter_event): In debug output, distinguish a
9540 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9541 before trying to resume the lwp.
9542
283a9958
JB
95432015-03-24 Joel Brobecker <brobecker@adacore.com>
9544
9545 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9546 pointer indirection.
9547 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9548 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9549
93a8e227
JB
95502015-03-24 Joel Brobecker <brobecker@adacore.com>
9551
9552 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9553 Renames DYN_ATTR_DATA_LOCATION.
9554 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9555 DYN_ATTR_DATA_LOCATION.
9556 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9557 instead of DYN_ATTR_DATA_LOCATION.
9558
64ce06e4
PA
95592015-03-24 Pedro Alves <palves@redhat.com>
9560
9561 * breakpoint.c (until_break_command): Adjust call to proceed.
9562 * gdbthread.h (struct thread_control_state) <stepping_command>:
9563 New field.
9564 * infcall.c (run_inferior_call): Adjust call to proceed.
9565 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9566 Adjust calls to proceed.
9567 (set_step_frame): Set the current thread's step_start_function
9568 here.
9569 (step_once): Adjust calls to proceed.
9570 (jump_command, signal_command, until_next_command)
9571 (finish_backward, finish_forward, proceed_after_attach_callback)
9572 (attach_command_post_wait): Adjust calls to proceed.
9573 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9574 (do_target_resume): New function, factored out from ...
9575 (resume): ... here. Remove 'step' parameter. Instead, check
9576 currently_stepping to determine whether the thread should be
9577 single-stepped.
9578 (proceed): Remove 'step' parameter and don't set the thread's
9579 step_start_function here. Adjust call to 'resume'.
9580 (handle_inferior_event): Adjust calls to 'resume'.
9581 (switch_back_to_stepped_thread): Use do_target_resume instead of
9582 'resume'.
9583 (keep_going): Adjust calls to 'resume'.
9584 * infrun.h (proceed): Remove 'step' parameter.
9585 (resume): Likewise.
9586 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9587 'resume'.
9588 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9589
856e7dd6
PA
95902015-03-24 Pedro Alves <palves@redhat.com>
9591
9592 * gdbthread.h (struct thread_control_state) <stepping_command>:
9593 New field.
9594 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9595 the thread's stepping_command field.
9596 * infrun.c (resume): Check the thread's stepping_command flag to
9597 determine which threads should be resumed. Rename 'entry_step'
9598 local to user_step.
9599 (clear_proceed_status_thread): Clear 'stepping_command'.
9600 (schedlock_applies): Change parameter type to struct thread_info
9601 pointer. Adjust.
9602 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9603 (switch_back_to_stepped_thread): Adjust calls to
9604 'schedlock_applies'.
9605 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9606
885eeb5b
PA
96072015-03-24 Pedro Alves <palves@redhat.com>
9608
9609 * infrun.c (step_start_function): Delete and ...
9610 * gdbthread.h (struct thread_control_state) <step_start_function>:
9611 ... now a field here.
9612 * infrun.c (clear_proceed_status_thread): Clear the thread's
9613 step_start_function.
9614 (proceed, process_event_stop_test, print_stop_event): Adjust.
9615
3333f03a
PA
96162015-03-24 Pedro Alves <palves@redhat.com>
9617
9618 * infrun.c (proceed): No longer handle negative step.
9619
369f6daa
GB
96202015-03-24 Gary Benson <gbenson@redhat.com>
9621
9622 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9623 (x86_linux_prepare_to_resume): Likewise.
9624 * x86-linux-nat.c (x86_linux_new_thread):
9625 Moved to nat/x86-linux.c.
9626 (x86_linux_prepare_to_resume): Likewise.
9627 * nat/x86-linux.c (x86_linux_new_thread): New function.
9628 (x86_linux_prepare_to_resume): Likewise.
9629
8e5d4070
GB
96302015-03-24 Gary Benson <gbenson@redhat.com>
9631
9632 * nat/x86-linux-dregs.h: New file.
9633 * nat/x86-linux-dregs.c: Likewise.
9634 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9635 (x86-linux-dregs.o): New rule.
9636 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9637 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9638 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9639 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9640 (x86_linux_dr_get): Likewise.
9641 (x86_linux_dr_set): Likewise.
9642 (x86_linux_dr_get_addr): Likewise.
9643 (x86_linux_dr_get_control): Likewise.
9644 (x86_linux_dr_get_status): Likewise.
9645 (update_debug_registers_callback): Likewise.
9646 (x86_linux_dr_set_control): Likewise.
9647 (x86_linux_dr_set_addr): Likewise.
9648 (x86_linux_update_debug_registers): Likewise.
9649
2b95d440
GB
96502015-03-24 Gary Benson <gbenson@redhat.com>
9651
9652 * x86-linux-nat.c (x86_linux_update_debug_registers):
9653 New function, factored out from...
9654 (x86_linux_prepare_to_resume): ...this.
9655
14b0bc68
GB
96562015-03-24 Gary Benson <gbenson@redhat.com>
9657
9658 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9659 (x86_linux_dr_set): Likewise.
9660 (x86_linux_dr_get_addr): Likewise.
9661 (x86_linux_dr_get_control): Likewise.
9662 (x86_linux_dr_get_status): Likewise.
9663 (update_debug_registers_callback): Likewise.
9664 (x86_linux_dr_set_control): Likewise.
9665 (x86_linux_dr_set_addr): Likewise.
9666 (x86_linux_prepare_to_resume): Likewise.
9667 (x86_linux_new_thread): Likewise.
9668
5dfe6ca8
GB
96692015-03-24 Gary Benson <gbenson@redhat.com>
9670
9671 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9672 (x86_linux_new_thread): Rename argument.
9673
4b134ca1
GB
96742015-03-24 Gary Benson <gbenson@redhat.com>
9675
9676 * nat/x86-linux.h: New file.
9677 * nat/x86-linux.c: Likewise.
9678 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9679 (x86-linux.o): New rule.
9680 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9681 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9682 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9683 (lwp_set_arch_private_info): New declaration.
9684 (lwp_arch_private_info): Likewise.
9685 * linux-nat.c (lwp_set_arch_private_info): New function.
9686 (lwp_arch_private_info): Likewise.
9687 * x86-linux-nat.c: Include nat/x86-linux.h.
9688 (arch_lwp_info): Removed structure.
9689 (update_debug_registers_callback):
9690 Use lwp_set_debug_registers_changed.
9691 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9692 and lwp_set_debug_registers_changed.
9693 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9694
cff068da
GB
96952015-03-24 Gary Benson <gbenson@redhat.com>
9696
9697 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9698 (lwp_is_stopped): Likewise.
9699 (lwp_stop_reason): Likewise.
9700 * linux-nat.c (ptid_of_lwp): New function.
9701 (lwp_is_stopped): Likewise.
9702 (lwp_is_stopped_by_watchpoint): Likewise.
9703 * x86-linux-nat.c (update_debug_registers_callback):
9704 Use lwp_is_stopped.
9705 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9706 lwp_stop_reason.
9707
b2f7c7e8
GB
97082015-03-24 Gary Benson <gbenson@redhat.com>
9709
9710 * linux-nat.h (linux_stop_lwp): Move declaration to...
9711 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9712
6d4ee8c6
GB
97132015-03-24 Gary Benson <gbenson@redhat.com>
9714
9715 * linux-nat.h: Include nat/linux-nat.h.
9716 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9717 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9718 (iterate_over_lwps_ftype): New typedef.
9719 (iterate_over_lwps): New declaration.
9720 * linux-nat.h (iterate_over_lwps): Update comment. Use
9721 iterate_over_lwps_ftype. Update callback return value check.
9722
70a0bb6b
GB
97232015-03-24 Gary Benson <gbenson@redhat.com>
9724
9725 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9726 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9727
7b669087
GB
97282015-03-24 Gary Benson <gbenson@redhat.com>
9729
9730 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9731 * linux-nat.c (current_lwp_ptid): New function.
9732 * x86-linux-nat.c: Include nat/linux-nat.h.
9733 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9734 (x86_linux_dr_get_control): Likewise.
9735 (x86_linux_dr_get_status): Likewise.
9736 (x86_linux_dr_set_control): Likewise.
9737 (x86_linux_dr_set_addr): Likewise.
9738
15630549
AT
97392015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9740
9741 PR breakpoints/16466
9742 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9743
8a4506c0
JB
97442015-03-23 Joel Brobecker <brobecker@adacore.com>
9745
9746 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9747 * ser-unix.c (hardwire_setparity): Likewise.
9748
236af5e3
YG
97492015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9750
9751 * NEWS: Mention set/show serial parity command.
9752 * monitor.c (monitor_open): Call serial_setparity.
9753 * remote.c (remote_open_1): Likewise.
9754 * ser-base.c (ser_base_serparity): New function.
9755 * ser-base.h (ser_base_setparity): Add declaration.
9756 * ser-go32.c (dos_ops): Set "setparity" field.
9757 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9758 state.Parity.
9759 (ser_windows_setparity): New function.
9760 (hardwire_ops): Add ser_windows_setparity.
9761 (tty_ops): Add NULL for setparity field.
9762 (pipe_ops): Add ser_base_setparity.
9763 (tcp_ops): Likewise.
9764 * ser-pipe.c (pipe_ops): Likewise.
9765 * ser-tcp.c (tcp_ops): Likewise.
9766 * ser-unix.c (hardwire_setparity): Add declaration.
9767 (hardwire_raw): Don't reset PARENB flag.
9768 (hardwire_setparity): New function.
9769 (hardwire_ops): Add hardwire_setparity.
9770 * serial.c (serial_setparity): New function.
9771 (serial_parity): New global.
9772 (parity_none, parity_odd, parity_even, parity_enums, parity):
9773 New static globals.
9774 (set_parity): New function.
9775 (_initialize_serial): Add set/show serial parity commands.
9776 * serial.h (GDBPARITY_NONE): Define.
9777 (GDBPARITY_ODD): Define.
9778 (GDBPARITY_EVEN): Define.
9779 (serial_setparity) Add declaration.
9780 (struct serial_ops): Add setparity field.
9781 * target.h (serial_parity): Add declaration.
9782
32b40af9
KS
97832015-03-23 Keith Seitz <keiths@redhat.com>
9784
9785 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9786
693dca06
KS
97872015-03-23 Keith Seitz <keiths@redhat.com>
9788
9789 * breakpoint.c (parse_breakpoint_sals): Use
9790 linespec_lexer_lex_keyword to ascertain if the user specified
9791 a NULL location.
9792 * linespec.c [IF_KEYWORD_INDEX]: Define.
9793 (linespec_lexer_lex_keyword): Export.
9794 (struct ls_parser) <keyword_ok>: Remove.
9795 A keyword is only a keyword if not followed by another keyword.
9796 (linespec_lexer_lex_one): Remove keyword_ok handling.
9797 Add comment explaining why the parsing stream is not advanced
9798 when a keyword is seen.
9799 (parse_linespec): Remove parser->keyword_ok.
9800 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9801
7e993ebf
KS
98022015-03-23 Keith Seitz <keiths@redhat.com>
9803
9804 PR gdb/18021
9805 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9806 if we find a static method with DW_AT_vtable_elem_location.
9807
b1a0f704
EZ
98082015-03-21 Eli Zaretskii <eliz@gnu.org>
9809
9810 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9811 before the second loop, to avoid undefined behavior. Reported by
9812 Anton Blanchard <anton@samba.org>.
9813
d9823cbb
KB
98142015-03-20 Keven Boell <keven.boell@intel.com>
9815
9816 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9817 data_location usage to linked list.
9818 (resolve_dynamic_type_internal): Adapt data_location to
9819 linked list.
9820 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9821 (copy_type_recursive, copy_type): Add copy of linked list.
9822 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9823 (struct dynamic_prop_list): New struct.
9824 * dwarf2read.c (set_die_type): Set data_location data.
9825
2e7bf1d7
PA
98262015-03-20 Pedro Alves <palves@redhat.com>
9827
9828 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9829 inner block and make it const.
9830 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9831
7a26bd4d
PA
98322015-03-20 Pedro Alves <palves@redhat.com>
9833
9834 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9835 * breakpoint.h (set_breakpoint_condition): Update declaration.
9836
cd46431b
PA
98372015-03-20 Pedro Alves <palves@redhat.com>
9838
9839 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9840
e28566f7
PA
98412015-03-20 Pedro Alves <palves@redhat.com>
9842
9843 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9844
f6fc92f6
PA
98452015-03-20 Pedro Alves <palves@redhat.com>
9846
9847 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9848
c32ed3ef
PA
98492015-03-20 Pedro Alves <palves@redhat.com>
9850
9851 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9852 (nto_init_solib_absolute_prefix): Likewise.
9853
53e78085
PA
98542015-03-20 Pedro Alves <palves@redhat.com>
9855
9856 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9857 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9858
bc23328c
JK
98592015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9860
9861 * config/djgpp/README: Remove gdb.hp.
9862
e8ffc436
YQ
98632015-03-20 Yao Qi <yao.qi@linaro.org>
9864
9865 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9866 set_gdbarch_cannot_step_breakpoint.
9867
23f238d3
PA
98682015-03-19 Pedro Alves <palves@redhat.com>
9869
9870 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9871 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9872 instead call perror_with_name.
9873 (check_ptrace_stopped_lwp_gone): New function.
9874 (linux_resume_one_lwp): Reimplement as wrapper around
9875 linux_resume_one_lwp_throw that swallows errors if the LWP is
9876 gone.
9877 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9878 swallows errors if the LWP is gone. Use
9879 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9880
eb54c8bf
PA
98812015-03-19 Pedro Alves <palves@redhat.com>
9882
9883 * linux-nat.c (status_callback): Return early if the LWP has no
9884 status pending.
9885
b90fc188
PA
98862015-03-19 Pedro Alves <palves@redhat.com>
9887
9888 * linux-nat.c (select_event_lwp_callback): Update comment to no
9889 longer mention SIGTRAP.
9890
670f82d4
TG
98912015-03-18 Tristan Gingold <gingold@adacore.com>
9892
72f4393d
L
9893 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9894 redirection code to ...
9895 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9896 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9897
464b0089
GB
98982015-03-18 Gary Benson <gbenson@redhat.com>
9899
9900 (remote_protocol_features): Remove the "vFile:fstat" feature.
9901 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9902
f68f11b7
YQ
99032015-03-11 Yao Qi <yao.qi@linaro.org>
9904
9905 PR tdep/18107
9906 * aarch64-linux-tdep.c: Include xml-syscall.h
9907 (aarch64_linux_get_syscall_number): New function.
9908 (aarch64_linux_init_abi): Call
9909 set_gdbarch_get_syscall_number.
9910 * syscalls/aarch64-linux.xml: New file.
9911
393bd0c0
YG
99122015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9913
9914 * ser-base.h (ser_base_setstopbits): Change second argument name
9915 from "rate" to "num".
9916
7f3647e2
GB
99172015-03-17 Gary Benson <gbenson@redhat.com>
9918 Luke Allardyce <lukeallardyce@gmail.com>
9919
9920 PR gdb/18131
9921 * common/common-remote-fileio.h (sys/stat.h): New include.
9922 (stuct stat): Remove forward declaration.
9923
3ce5b6e2
JB
99242015-03-16 John Baldwin <jhb@FreeBSD.org>
9925
9926 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9927 before writing core register notes.
9928
d053f6be
YZ
99292015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9930 Pedro Alves <palves@redhat.com>
9931
9932 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9933 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9934 (tgoto): Wrap with extern "C".
9935
b1a921c8
PA
99362015-03-16 Pedro Alves <palves@redhat.com>
9937 Yuanhui Zhang <asmwarrior@gmail.com>
9938
9939 * stub-termcap.c (tputs): Change prototype.
9940
876d1cd7
YZ
99412015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9942 Pedro Alves <palves@redhat.com>
9943
9944 * windows-nat.c (struct thread_info_struct): Rename to ...
9945 (struct windows_thread_info_struct): ... this.
9946 (thread_info): Rename to ...
9947 (windows_thread_info): ... this.
9948 All users updated.
9949
0800b440
JK
99502015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9951 Pedro Alves <palves@redhat.com>
9952
9953 * NEWS: New Removed targets and native configurations.
9954
99552015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9956
9957 Remove HPUX.
9958 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9959 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9960 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9961 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9962 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9963 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9964 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9965 hppa-hpux-tdep.c.
9966 * config/ia64/hpux.mh: Remove file.
9967 * config/pa/hpux.mh: Remove file.
9968 * configure: Rebuilt.
9969 * configure.ac (dlgetmodinfo, somread.o): Remove.
9970 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9971 (ia64-*-hpux*): Remove its float format exception.
9972 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9973 * hppa-hpux-nat.c: Remove file.
9974 * hppa-hpux-tdep.c: Remove file.
9975 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9976 Move them here from hppa-tdep.h
9977 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9978 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9979 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9980 Move them to hppa-tdep.c.
9981 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9982 declarations.
9983 * ia64-hpux-nat.c: Remove file.
9984 * ia64-hpux-tdep.c: Remove file.
9985 * ia64-hpux-tdep.h: Remove file.
9986 * inf-ttrace.c: Remove file.
9987 * inf-ttrace.h: Remove file.
9988 * solib-ia64-hpux.c: Remove file.
9989 * solib-ia64-hpux.h: Remove file.
9990 * solib-pa64.c: Remove file.
9991 * solib-pa64.h: Remove file.
9992 * solib-som.c: Remove file.
9993 * solib-som.h: Remove file.
9994 * somread.c: Remove file.
9995
25268153
JB
99962015-03-13 John Baldwin <jhb@FreeBSD.org>
9997
9998 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9999 * config.in: Regenerate.
10000 * configure: Regenerate.
10001 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10002 define.
25268153
JB
10003 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10004 enumerate memory regions if present.
10005
773eacf5
JB
100062015-03-13 John Baldwin <jhb@FreeBSD.org>
10007
10008 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10009 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10010 expressions.
10011 (i386fbsd_sigtramp_p): Likewise.
10012
01b6bdb0
JB
100132015-03-12 John Baldwin <jhb@FreeBSD.org>
10014
10015 * MAINTAINERS (Write After Approval): Add John Baldwin.
10016
811a659a
GB
100172015-03-12 Gary Benson <gbenson@redhat.com>
10018
10019 * solib.c (_initialize_solib): Make "set/show sysroot" use
10020 add_setshow_optional_filename_cmd so it can be restored to
10021 empty after being set.
10022
10304ef3
SDJ
100232015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10024
10025 * Makefile.in (SFILES): New source break-catch-syscall.c.
10026 (COMMON_OBS): New object break-catch-syscall.o.
10027 * break-catch-syscall.c: New file.
10028 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10029 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10030 (struct syscall_catchpoint): Likewise.
10031 (dtor_catch_syscall): Likewise.
10032 (catch_syscall_inferior_data): Likewise.
10033 (struct catch_syscall_inferior_data): Likewise.
10034 (get_catch_syscall_inferior_data): Likewise.
10035 (catch_syscall_inferior_data_cleanup): Likewise.
10036 (insert_catch_syscall): Likewise.
10037 (remove_catch_syscall): Likewise.
10038 (breakpoint_hit_catch_syscall): Likewise.
10039 (print_it_catch_syscall): Likewise.
10040 (print_one_catch_syscall): Likewise.
10041 (print_mention_catch_syscall): Likewise.
10042 (print_recreate_catch_syscall): Likewise.
10043 (catch_syscall_breakpoint_ops): Likewise.
10044 (syscall_catchpoint_p): Likewise.
10045 (create_syscall_event_catchpoint): Likewise.
10046 (catch_syscall_split_args): Likewise.
10047 (catch_syscall_command_1): Likewise.
10048 (is_syscall_catchpoint_enabled): Likewise.
10049 (catch_syscall_enabled): Likewise.
10050 (catching_syscall_number): Likewise.
10051 (catch_syscall_completer): Likewise.
10052 (clear_syscall_counts): Likewise.
10053 (initialize_breakpoint_ops): Move initialization of syscall
10054 catchpoints to break-catch-syscall.c.
10055 (_initialize_breakpoint): Move code related to syscall catchpoints
10056 to break-catch-syscall.c.
10057
badd37ce
SDJ
100582015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10059
10060 * breakpoint.c (breakpoint_find_if): New function.
10061 * breakpoint.h (breakpoint_find_if): New prototype.
10062
0a93529c
GB
100632015-03-11 Gary Benson <gbenson@redhat.com>
10064
10065 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10066 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10067 (remote_fileio_to_host_ulong): Likewise.
10068 (remote_fileio_to_host_mode): Likewise.
10069 (remote_fileio_to_host_time): Likewise.
10070 (remote_fileio_to_host_stat): Likewise.
10071 * remote.c (PACKET_vFile_fstat): New enum value.
10072 (remote_protocol_features): Register the "vFile:fstat" feature.
10073 (remote_hostio_fstat): New function.
10074 (remote_bfd_iovec_stat): Use the above.
10075 (_initialize_remote): Register new "set/show remote
10076 hostio-fstat-packet" command.
10077 * symfile.c (separate_debug_file_exists): Update comment.
10078 * NEWS: Announce new vFile:fstat packet.
10079
791c0056
GB
100802015-03-11 Gary Benson <gbenson@redhat.com>
10081
10082 * common/common-remote-fileio.h: New file.
10083 * common/common-remote-fileio.c: Likewise.
10084 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10085 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10086 (COMMON_OBS): Add common-remote-fileio.o.
10087 (common-remote-fileio.o): New rule.
10088 * remote-fileio.h (common-remote-fileio.h): New include.
10089 * remote-fileio.c (gdb/fileio.h): Do not include.
10090 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10091 (remote_fileio_to_fio_uint): Likewise.
10092 (remote_fileio_to_fio_time): Likewise.
10093 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10094 (remote_fileio_to_fio_mode): Likewise.
10095 (remote_fileio_to_fio_ulong): Likewise.
10096 (remote_fileio_to_fio_stat): Likewise.
10097
1390d0ef
AW
100982015-03-11 Andy Wingo <wingo@igalia.com>
10099
10100 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10101 we were checking the cached type, not the cached dynamic type.
10102
84a4591a
AW
101032015-03-11 Andy Wingo <wingo@igalia.com>
10104
10105 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10106 other strings, as these are on the GC'd heap, and will be
10107 collected along with the smob.
10108
85642ba0
AW
101092015-03-11 Andy Wingo <wingo@igalia.com>
10110
10111 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10112 (objfile_functions): Bind gdbscm_objfile_progspace to
10113 objfile-progspace.
10114 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10115
92fab5a6
AW
101162015-03-11 Andy Wingo <wingo@igalia.com>
10117
10118 * guile/guile.c (_initialize_guile): Disable automatic
10119 finalization, if Guile offers us that possibility.
10120 * guile/guile.c (call_initialize_gdb_module):
10121 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10122 finalizers in appropriate places.
10123 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10124 scm_set_automatic_finalization_enabled.
10125 * configure: Regenerated.
10126
f054145e
AA
101272015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10128
10129 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10130 SAL, if possible.
10131
18396193
AA
101322015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10133
10134 * s390-linux-nat.c (struct arch_lwp_info): New.
10135 (s390_fix_watch_points): Rename to...
10136 (s390_prepare_to_resume): ...this. Skip the PER info update
10137 unless the watch points have changed.
10138 (s390_refresh_per_info, s390_new_thread): New functions.
10139 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10140 s390_fix_watch_points.
10141 (s390_remove_watchpoint): Likewise.
10142 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10143 Register s390_prepare_to_resume.
10144
9eb1356e
PA
101452015-03-09 Pedro Alves <palves@redhat.com>
10146
10147 Revert:
10148 2015-03-07 Pedro Alves <palves@redhat.com>
10149 * common/gdb_socket.h: New file.
10150 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10151 sys/socket.h.
10152 (net_open): Use union gdb_sockaddr_u.
10153
aac331e4
PA
101542015-03-07 Pedro Alves <palves@redhat.com>
10155
10156 * configure.ac (build_warnings): Move -Wmissing-prototypes
10157 -Wdeclaration-after-statement -Wmissing-parameter-type
10158 -Wold-style-declaration -Wold-style-definition to the C-specific
10159 set.
10160 * configure: Regenerate.
10161
366c75fc
PA
101622015-03-07 Pedro Alves <palves@redhat.com>
10163
10164 * common/gdb_socket.h: New file.
10165 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10166 sys/socket.h.
10167 (net_open): Use union gdb_sockaddr_u.
10168
72df25b2
PA
101692015-03-07 Pedro Alves <palves@redhat.com>
10170
10171 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10172 (exceptions_state_mc_action_iter)
10173 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10174 Don't define.
10175 [__cplusplus] (try_scope_depth): New global.
10176 [__cplusplus] (exception_try_scope_entry)
10177 (exception_try_scope_exit, gdb_exception_sliced_copy)
10178 (exception_rethrow): New functions.
10179 (throw_exception): In C++ mode, throw
10180 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10181 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10182 (throw_it): In C++ mode, use try_scope_depth.
10183 * common/common-exceptions.h [!__cplusplus]
10184 (exceptions_state_mc_action_iter)
10185 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10186 Don't declare.
10187 [__cplusplus] (exception_try_scope_entry)
10188 (exception_try_scope_exit, exception_rethrow): Declare.
10189 [__cplusplus] (struct exception_try_scope): New struct.
10190 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10191 C++ exceptions.
10192 (struct gdb_exception_RETURN_MASK_ALL)
10193 (struct gdb_exception_RETURN_MASK_ERROR)
10194 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10195
284e6217
PA
101962015-03-07 Pedro Alves <palves@redhat.com>
10197
10198 * main.c (handle_command_errors): Remove volatile qualifier from
10199 parameter.
10200
6c63c96a
PA
102012015-03-07 Pedro Alves <palves@redhat.com>
10202
10203 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10204 TRY and CATCH.
10205 * gdbtypes.c (safe_parse_type): Remove empty line.
10206 (types_deeply_equal):
10207 * guile/scm-frame.c (gdbscm_frame_name):
10208 * linux-thread-db.c (find_new_threads_once):
10209 * python/py-breakpoint.c (bppy_get_commands):
10210 * record-btrace.c (record_btrace_insert_breakpoint)
10211 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10212 (record_btrace_start_replaying): Adjust to avoid code between TRY
10213 and CATCH.
10214
492d29ea
PA
102152015-03-07 Pedro Alves <palves@redhat.com>
10216
10217 * common/common-exceptions.c (struct catcher) <exception>: No
10218 longer a pointer to volatile exception. Now an exception value.
10219 <mask>: Delete field.
10220 (exceptions_state_mc_init): Remove all parameters. Adjust.
10221 (exceptions_state_mc): No longer pop the catcher here.
10222 (exceptions_state_mc_catch): New function.
10223 (throw_exception): Adjust.
10224 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10225 all parameters.
10226 (exceptions_state_mc_catch): Declare.
10227 (TRY_CATCH): Rename to ...
10228 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10229 (CATCH, END_CATCH): New.
10230 All callers adjusted.
10231
ece957c8
TT
102322015-03-07 Tom Tromey <tromey@redhat.com>
10233
10234 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10235
7556d4a4
PA
102362015-03-07 Pedro Alves <palves@redhat.com>
10237
10238 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10239 (amd64_epilogue_frame_cache): Normal exception handling code.
10240 * break-catch-throw.c (check_status_exception_catchpoint)
10241 (re_set_exception_catchpoint): Ditto.
10242 * cli/cli-interp.c (safe_execute_command):
10243 * cli/cli-script.c (script_from_file): Ditto.
10244 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10245 Ditto.
10246 * compile/compile-object-run.c (compile_object_run): Ditto.
10247 * cp-abi.c (baseclass_offset): Ditto.
10248 * cp-valprint.c (cp_print_value): Ditto.
10249 * exceptions.c (catch_exceptions_with_msg):
10250 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10251 * frame.c (get_frame_address_in_block_if_available): Ditto.
10252 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10253 (i386_sigtramp_frame_cache): Ditto.
10254 * infcmd.c (post_create_inferior): Ditto.
10255 * linespec.c (parse_linespec, find_linespec_symbols):
10256 * p-valprint.c (pascal_object_print_value): Ditto.
10257 * parse.c (parse_expression_for_completion): Ditto.
10258 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10259 * remote.c (remote_get_noisy_reply): Ditto.
10260 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10261 * solib-svr4.c (solib_svr4_r_map): Ditto.
10262
f873665f 102632015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10264
10265 * common/common-utils.h (startswith): New inline function.
10266 All places where this logic was used updated to use the above.
10267
68901c4d
PA
102682015-03-05 Pedro Alves <palves@redhat.com>
10269
10270 PR gdb/18002
10271 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10272 after reading the breakpoint's shadow memory.
10273
2dcb2b1a
MK
102742015-03-05 Mark Kettenis <kettenis@gnu.org>
10275
10276 * hppabsd-nat.c: Remove file.
10277 * hppaobsd-nat.c: New file.
10278 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10279 hppaobsd-nat.c.
10280 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10281 hppaobsd-nat.o.
10282
527a273a
PA
102832015-03-04 Pedro Alves <palves@redhat.com>
10284
10285 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10286 (target_decr_pc_after_break): Delete declaration.
10287 * target.c (default_target_decr_pc_after_break)
10288 (target_decr_pc_after_break): Delete.
10289 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10290 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10291 * linux-thread-db.c (check_event): Likewise.
10292 * infrun.c (adjust_pc_after_break): Likewise.
10293 * darwin-nat.c (cancel_breakpoint): Likewise.
10294 * aix-thread.c (aix_thread_wait): Likewise.
10295 * target-delegates.c: Regenerate.
10296
faf09f01
PA
102972015-03-04 Pedro Alves <palves@redhat.com>
10298
10299 * linux-nat.c (save_sigtrap): Check for breakpoints before
10300 checking watchpoints.
10301 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10302 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10303 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10304 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10305 (linux_nat_stopped_by_sw_breakpoint)
10306 (linux_nat_supports_stopped_by_sw_breakpoint)
10307 (linux_nat_stopped_by_hw_breakpoint)
10308 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10309 (linux_nat_wait_1): Don't re-increment the PC if relying on
10310 SIGTRAP's siginfo->si_code.
10311 (linux_nat_add_target): Install new target methods.
10312 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10313 offset if the target already adjusted the PC.
10314 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10315 (GDB_ARCH_TRAP_BRKPT): New.
10316 (TRAP_HWBKPT): Define if not already defined.
10317
f7e6eed5
PA
103182015-03-04 Pedro Alves <palves@redhat.com>
10319
10320 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10321 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10322 Delete field.
10323 <stop_reason>: New field.
10324 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10325 (packet_set_cmd_state): New function.
10326 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10327 features.
10328 (remote_query_supported): If not disabled with the corresponding
10329 "set remote foo-packet" command, report support for the swbreak
10330 and hwbreak features.
10331 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10332 field.
10333 <stop_reason>: New field.
10334 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10335 (remote_wait_as): Adjust.
10336 (remote_stopped_by_sw_breakpoint)
10337 (remote_supports_stopped_by_sw_breakpoint)
10338 (remote_stopped_by_hw_breakpoint)
10339 (remote_supports_stopped_by_hw_breakpoint): New functions.
10340 (remote_stopped_by_watchpoint): New function.
10341 (init_remote_ops): Install them.
10342 (_initialize_remote): Register new "set/show remote
10343 swbreak-feature-packet" and "set/show remote
10344 swbreak-feature-packet" commands.
10345
9e8915c6
PA
103462015-03-04 Pedro Alves <palves@redhat.com>
10347
10348 * btrace.h: Include target/waitstatus.h.
10349 (struct btrace_thread_info) <stop_reason>: New field.
10350 * record-btrace.c (record_btrace_step_thread): Use
10351 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10352 (record_btrace_decr_pc_after_break): Delete.
10353 (record_btrace_stopped_by_sw_breakpoint)
10354 (record_btrace_supports_stopped_by_sw_breakpoint)
10355 (record_btrace_stopped_by_hw_breakpoint)
10356 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10357 (init_record_btrace_ops): Install them.
10358 * record-full.c (record_full_hw_watchpoint): Delete and replace
10359 with ...
10360 (record_full_stop_reason): ... this throughout.
10361 (record_full_exec_insn): Adjust.
10362 (record_full_wait_1): Adjust. No longer re-increment the PC.
10363 (record_full_wait_1): Adjust. Use
10364 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10365 (record_full_stopped_by_watchpoint): Adjust.
10366 (record_full_stopped_by_sw_breakpoint)
10367 (record_full_supports_stopped_by_sw_breakpoint)
10368 (record_full_supports_stopped_by_sw_breakpoint)
10369 (record_full_stopped_by_hw_breakpoint)
10370 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10371 (init_record_full_ops, init_record_full_core_ops): Install them.
10372 * record.c (record_check_stopped_by_breakpoint): New function.
10373 * record.h: Include target/waitstatus.h.
10374 (record_check_stopped_by_breakpoint): New declaration.
10375
15c66dd6
PA
103762015-03-04 Pedro Alves <palves@redhat.com>
10377
10378 enum lwp_stop_reason -> enum target_stop_reason
10379 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10380 (linux_nat_stopped_by_watchpoint, status_callback)
10381 (linux_nat_wait_1): Adjust.
10382 * linux-nat.h (enum lwp_stop_reason): Delete.
10383 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10384 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10385 * target/waitstatus.h (enum target_stop_reason): New.
10386
1cf4d951
PA
103872015-03-04 Pedro Alves <palves@redhat.com>
10388
10389 * breakpoint.c (need_moribund_for_location_type): New function.
10390 (bpstat_stop_status): Don't skipping checking moribund locations
10391 of breakpoint types which the target tell caused a stop.
10392 (program_breakpoint_here_p): New function, factored out from ...
10393 (bp_loc_is_permanent): ... this.
10394 (update_global_location_list): Don't create a moribund location if
10395 the target supports reporting stops of the type of the removed
10396 breakpoint.
10397 * breakpoint.h (program_breakpoint_here_p): New declaration.
10398 * infrun.c (adjust_pc_after_break): Return early if the target has
10399 already adjusted the PC. Add comments.
10400 (handle_signal_stop): If nothing explains a signal, and the target
10401 tells us the stop was caused by a software breakpoint, check if
10402 there's a breakpoint instruction in the memory. If so, adjust the
10403 PC before presenting the stop to the user. Otherwise, ignore the
10404 trap. If nothing explains a signal, and the target tells us the
10405 stop was caused by a hardware breakpoint, ignore the trap.
10406 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10407 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10408 to_supports_stopped_by_hw_breakpoint>: New fields.
10409 (target_stopped_by_sw_breakpoint)
10410 (target_supports_stopped_by_sw_breakpoint)
10411 (target_stopped_by_hw_breakpoint)
10412 (target_supports_stopped_by_hw_breakpoint): Define.
10413 * target-delegates.c: Regenerate.
10414
79639e11
PA
104152015-03-04 Pedro Alves <palves@redhat.com>
10416
10417 * infrun.c (follow_fork_inferior): Use the whole of the
10418 inferior_ptid and pending_follow.related_pid ptids instead of
10419 building ptids from the process components. Adjust verbose output
10420 to use target_pid_to_str.
10421 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10422 inferior_ptid and pending_follow.related_pid ptids instead of
10423 building ptids from the process components.
10424
e85e8e5e
MK
104252015-03-04 Mark Kettenis <kettenis@gnu.org>
10426
10427 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10428 (inf_ptrace_insert_fork_catchpoint): New function.
10429 (inf_ptrace_remove_fork_catchpoint): New function.
10430 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10431
87de11c0
AA
104322015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10433
10434 * s390-linux-tdep.c (s390_register_name): Return empty string
10435 instead of NULL for registers that shouldn't be visible.
10436
d851a69a
AA
104372015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10438
10439 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10440 XML file for 64-bit targets.
10441
b072f6c1
SM
104422015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10443
10444 * target.h (find_default_create_inferior): Remove declaration.
10445 (find_default_attach): Likewise.
10446
c1593e4f
PA
104472015-03-03 Pedro Alves <palves@redhat.com>
10448
10449 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10450 Use ptid_get_pid to get the overall process id when resuming all
10451 threads.
10452
90ad5e1d
PA
104532015-03-03 Pedro Alves <palves@redhat.com>
10454
10455 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10456 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10457 * inf-ptrace.c (get_ptrace_pid): New function.
10458 (inf_ptrace_resume): Use it.
10459 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10460 to the lower layer.
10461
d68e53f4
MM
104622015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10463
10464 * nat/linux-btrace.c: Include sys/utsname.h.
10465 (linux_determine_kernel_ptr_bits): New.
10466 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10467 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10468 ptr_bits.
10469
986b6601
MM
104702015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10471
10472 * btrace.c (ftrace_update_function): Treat return as tailcall for
10473 "_dl_runtime_resolve".
10474
ce0dfbea
MM
104752015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10476
10477 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10478 * btrace.c (ftrace_debug): Do not print the line range.
10479 (ftrace_skip_file, ftrace_update_lines): Remove.
10480 (ftrace_new_function): Remove lbegin and lend initialization.
10481 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10482 * record-btrace.c (btrace_compute_src_line_range): New.
10483 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10484
95e50b27
PA
104852015-03-02 Pedro Alves <palves@redhat.com>
10486
10487 * infrun.c (follow_exec): Delete all threads of the process except
10488 the event thread. Extended comments.
10489
00e474c2
JB
104902015-03-02 Joel Brobecker <brobecker@adacore.com>
10491
10492 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10493
cc7039d3
JB
104942015-03-02 Joel Brobecker <brobecker@adacore.com>
10495
10496 * utils.h: Remove <stdbool.h> #include.
10497 (producer_is_gcc): Change return type to "int".
10498 * utils.c (producer_is_gcc): Change return type to int.
10499 Return 1 instead of true, and 0 instead of false.
10500 Adjust function documentation accordingly.
10501
550bdf96
AA
105022015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10503
10504 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10505 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10506 present.
10507 (s390_linux_store_inferior_registers): Likewise.
10508 (s390_get_hwcap): Remove function. Embed its logic...
10509 (s390_read_description): ...here. Yield a target description with
10510 vector registers if applicable.
10511 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10512 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10513 "features/s390x-tevx-linux64.c".
10514 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10515 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10516 for "GNU/Linux-specific registers".
10517 (s390_dwarf_reg_r0l): New enum value.
10518 (s390_dwarf_reg_to_regnum): Support vector registers.
10519 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10520 of GPR lower halves.
10521 (regnum_is_vxr_full): New function.
10522 (s390_register_name): New function.
10523 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10524 f0-f15 and v0l-v15l.
10525 (s390_pseudo_register_type): Likewise.
10526 (s390_pseudo_register_read): Likewise.
10527 (s390_pseudo_register_write): Likewise.
10528 (s390_value_from_register): Account for the fact that values are
10529 placed left-justified in vector registers.
10530 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10531 the vector reggroup and omit them from the general reggroup.
10532 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10533 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10534 (s390_iterate_over_regset_sections): Add iterations for the two
10535 new vector regsets.
10536 (s390_core_read_description): Yield a target description with
10537 vector registers if applicable.
10538 (s390_gdbarch_init): Handle target descriptions with vector
10539 registers. Add "register_name" gdbarch method.
10540 (_initialize_s390_tdep): Call new tdesc initialization functions.
10541 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10542 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10543 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10544 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10545 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10546 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10547 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10548 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10549 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10550 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10551 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10552 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10553 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10554 (S390_NUM_REGS): Adjust value.
10555 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10556 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10557 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10558 * NEWS: Announce S/390 vector register support.
10559
446899e4
AA
105602015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10561
10562 * features/s390-tevx-linux64.xml: New file.
10563 * features/s390-vx-linux64.xml: New file.
10564 * features/s390-vx.xml: New file.
10565 * features/s390x-tevx-linux64.xml: New file.
10566 * features/s390x-vx-linux64.xml: New file.
10567 * features/Makefile (WHICH): Add s390-vx-linux64,
10568 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10569 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10570 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10571 macros.
10572 * features/s390-tevx-linux64.c: New generated file.
10573 * features/s390-vx-linux64.c: Likewise.
10574 * features/s390x-tevx-linux64.c: Likewise.
10575 * features/s390x-vx-linux64.c: Likewise.
10576 * regformats/s390-tevx-linux64.dat: Likewise.
10577 * regformats/s390-vx-linux64.dat: Likewise.
10578 * regformats/s390x-tevx-linux64.dat: Likewise.
10579 * regformats/s390x-vx-linux64.dat: Likewise.
10580
b7236fbe
DE
105812015-02-28 Doug Evans <xdje42@gmail.com>
10582
10583 * symtab.h (struct symtab) <next>: Fix comment.
10584
02e62830
SM
105852015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10586
10587 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10588 python_GdbMethods.
10589
bf36a1e7
PA
105902015-02-27 Pedro Alves <palves@redhat.com>
10591
10592 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10593
ad6aff7d
PA
105942015-02-27 Pedro Alves <palves@redhat.com>
10595
10596 * common/common-exceptions.h (exception_none): Declare.
10597 * common/common-exceptions.c (exception_none): Moved from
10598 exceptions.c.
10599 (exceptions_state_mc_init): Use exception_none.
10600 * exceptions.c (exception_none): Move to
10601 common/common-exceptions.c.
10602 * exceptions.h (exception_none): Move to
10603 common/common-exceptions.h.
10604
97c18565
PA
106052015-02-27 Pedro Alves <palves@redhat.com>
10606
10607 * main.c (catch_command_errors, catch_command_errors_const):
10608 Remove 'mask' argument. Adjust.
10609 (captured_main): Adjust callers.
10610
e992c591
PA
106112015-02-27 Pedro Alves <palves@redhat.com>
10612
10613 * python/python-internal.h: Include "extension-priv.h".
10614
64166036
PA
106152015-02-27 Pedro Alves <palves@redhat.com>
10616
10617 * breakpoint.h (enum print_stop_action): Move further up in the
10618 file.
10619
8a526fa6
PA
106202015-02-27 Pedro Alves <palves@redhat.com>
10621
10622 * gdbarch.sh: Include regcache.h.
10623 * gdbarch.h: Regenerate.
10624
0fa9c223
PA
106252015-02-27 Pedro Alves <palves@redhat.com>
10626
10627 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10628 Remove duplicate const.
10629 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10630 duplicate const.
10631
7cf99fb1
PA
106322015-02-27 Pedro Alves <palves@redhat.com>
10633
10634 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10635 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10636 * features/feature_to_c.sh: Tag the generated xml_builtin array
10637 with extern const in C++ mode.
10638
1424c16e
TT
106392015-02-27 Tom Tromey <tromey@redhat.com>
10640
10641 * minidebug.c (struct lzma_stream): Rename to ...
10642 (struct gdb_lzma_stream): ... this.
10643 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10644
10367c7c
PA
106452015-02-27 Pedro Alves <palves@redhat.com>
10646
10647 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10648 function.
10649 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10650 (mi_cmd_stack_list_variables): Use it.
10651
4180215b
PA
106522015-02-27 Pedro Alves <palves@redhat.com>
10653
10654 * x86-linux-nat.c (u_debugreg_offset): New function.
10655 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10656
2f56f7c3
PA
106572015-02-27 Pedro Alves <palves@redhat.com>
10658
10659 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10660 declaration.
10661 Include break-common.h.
10662
570dc176
TT
106632015-02-27 Tom Tromey <tromey@redhat.com>
10664 Pedro Alves <palves@redhat.com>
10665
10666 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10667 local used to iterate over enums.
10668 * completer.c (signal_completer): Likewise.
10669 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10670 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10671 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10672 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10673 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10674 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10675 * tui-wingeneral.c (tui_refresh_all): Likewise.
10676
68c14faa
PA
106772015-02-27 Pedro Alves <palves@redhat.com>
10678
10679 * target.h: Include "infrun.h".
10680
749bab01
PA
106812015-02-27 Pedro Alves <palves@redhat.com>
10682
10683 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10684
3c14e5a3
PA
106852015-02-27 Pedro Alves <palves@redhat.com>
10686
10687 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10688 (IPA_SYM): Use it.
10689 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10690
56000a98
PA
106912015-02-27 Pedro Alves <palves@redhat.com>
10692
10693 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10694 cli_mld_erase_entire_line, and make it extern "C".
10695 * common/common-defs.h (EXTERN_C): New.
10696 * completer.c (_rl_completion_prefix_display_length)
10697 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10698 out of gdb_display_match_list_1.
10699 (_rl_qsort_string_compare): Move declaration out of
10700 gdb_display_match_list_1, and make it extern "C".
10701 * defs.h (re_comp): Use EXTERN_C.
10702 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10703 and make it extern "C".
10704 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10705 and make it extern "C".
10706 (main): Move declaration out of maintenance_set_profile_cmd.
10707 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10708 EXTERN_C.
10709
bcabf420
PA
107102015-02-27 Pedro Alves <palves@redhat.com>
10711
10712 * python/python.c (GdbMethods): Rename to ...
10713 (python_GdbMethods): ... this and make extern.
10714 (GdbModuleDef): Rename to ...
10715 (python_GdbModuleDef): ... this and make extern.
10716
928dbe07
PA
107172015-02-27 Pedro Alves <palves@redhat.com>
10718
10719 * record-btrace.c (set_record_btrace_cmdlist)
10720 (show_record_btrace_cmdlist): Remove redefinitions.
10721
52059ffd
TT
107222015-02-27 Tom Tromey <tromey@redhat.com>
10723 Pedro Alves <palves@redhat.com>
10724
10725 * dwarf2-frame.c (enum cfa_how_kind, struct
10726 dwarf2_frame_state_reg_info): Move out of struct
10727 dwarf2_frame_state.
10728 * dwarf2read.c (struct tu_stats): Move out of struct
10729 dwarf2_per_objfile.
10730 (struct file_entry): Move out of struct line_header.
10731 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10732 typedef_field_list): Move out of struct field_info.
10733 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10734 Move out of struct dynamic_prop.
10735 (union type_owner, union field_location, struct field, struct
10736 range_bounds, union type_specific): Move out of struct main_type.
10737 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10738 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10739 (struct call_site_target, union call_site_parameter_u, struct
10740 call_site_parameter): Move out of struct call_site.
10741 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10742 m32c_prologue.
10743 (enum srcdest_kind): Move out of struct srcdest.
10744 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10745 * prologue-value.h (enum prologue_value_kind): Move out of struct
10746 prologue_value.
10747 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10748 gdbarch_tdep.
10749 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10750 out of struct field_info.
10751 * symfile.h (struct other_sections): Move out of struct
10752 section_addr_info.
10753 * symtab.c (struct symbol_cache_slot): Move out struct
10754 block_symbol_cache.
10755 * target-descriptions.c (enum tdesc_type_kind): Move out of
10756 typedef struct tdesc_type.
10757 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10758 struct tui_line_or_address.
10759 * value.c (enum internalvar_kind, union internalvar_data): Move
10760 out of struct internalvar.
10761 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10762 gdbarch_tdep.
10763
fe978cb0
PA
107642015-02-27 Tom Tromey <tromey@redhat.com>
10765 Pedro Alves <palves@redhat.com>
10766
10767 Rename symbols whose names are reserved C++ keywords throughout.
10768
3bc3d82a
PA
107692015-02-27 Pedro Alves <palves@redhat.com>
10770
10771 * Makefile.in (COMPILER): New, get it from autoconf.
10772 (COMPILE.pre, CC_LD): Use COMPILER.
10773 (CXX): Get from autoconf instead.
10774 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10775 * acinclude.m4: Include build-with-cxx.m4.
10776 * build-with-cxx.m4: New file.
10777 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10778 Disable -Werror by default if building in C++ mode.
10779 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10780 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10781 Run supported-warning-flags tests with the C++ compiler.
10782 Save/restore CXXFLAGS too.
10783 * configure: Regenerate.
10784
07697489
PA
107852015-02-27 Pedro Alves <palves@redhat.com>
10786
10787 * libiberty.m4: New file.
10788 * acinclude.m4: Include libiberty.m4.
10789 * configure.ac: Call libiberty_INIT.
10790 * config.in, configure: Regenerate.
10791
60abeae4
AA
107922015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10793
10794 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10795 31-bit targets, but 64-bit targets as well.
10796 (s390_gnu_triplet_regexp): New function.
10797 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10798 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10799 method.
10800
f44466fb 108012015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10802
10803 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10804 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10805 from CONTEXT_DEBUGGER.
10806
0def5aaa
DE
108072015-02-26 Doug Evans <dje@google.com>
10808
10809 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10810 CHECK_TYPEDEF.
10811 (set_type_vptr_fieldno): Ditto.
10812 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10813 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10814
77b64a49
PA
108152015-02-26 Pedro Alves <palves@redhat.com>
10816
10817 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10818 * complaints.c (vcomplaint): Pass argument FMT directly to
10819 printf-like functions instead of complaint->fmt.
10820 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10821 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10822 * compile/compile-loc2c.c (pushf, unary, binary): Add
10823 ATTRIBUTE_PRINTF.
10824 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10825 to pushf.
10826 (BINARY): Pass string literal as format string to 'binary'.
10827 * compile/compile-object-load.c (link_callbacks_einfo): Add
10828 ATTRIBUTE_PRINTF.
10829 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10830
532f44ed
PA
108312015-02-26 Pedro Alves <palves@redhat.com>
10832
10833 * windows-termcap.c: Rename to ...
10834 * stub-termcap.c: ... this. Adjust header line.
10835 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10836 windows-termcap.c.
10837 * configure: Regenerate.
10838 * configure.ac: Refer to stub-termcap.o instead of
10839 windows-termcap.o.
10840 * gdb_curses.h: Mention stub-termcap.c instead of
10841 windows-termcap.c.
10842
081a1c2c
JK
108432015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10844
10845 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10846 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10847
2f41223f
AT
108482015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10849
10850 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10851
80c57053
JK
108522015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10853
10854 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10855 bfd_canonicalize_symtab.
10856
cf424aef
JB
108572015-02-25 John Baldwin <jhb@FreeBSD.org>
10858
10859 * amd64fbsd-nat.c: Include sys/user.h.
10860 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10861 instead of KERN_PS_STRINGS to locate the signal trampoline.
10862 * i386fbsd-nat.c: Include sys/user.h.
10863 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10864 instead of KERN_PS_STRINGS to locate the signal trampoline.
10865 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10866 (amd64fbsd_sigtramp_p): New.
10867 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10868 longer set default values.
10869 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10870 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10871 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10872 (i386fbsd_freebsd4_sigtramp_start)
10873 (i386fbsd_freebsd4_sigtramp_middle)
10874 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10875 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10876 (i386fbsd_sigtramp_p): New.
10877 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10878 longer set default values.
10879 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10880
c5cb74ee
JB
108812015-02-25 John Baldwin <jhb@freebsd.org>
10882
10883 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10884 get_frame_register instead of frame_unwind_register_unsigned.
10885
17487d85
JK
108862015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 PR build/18033
10889 * compile/compile-c-support.c (c_compute_program): Change // comment.
10890 * compile/compile-object-load.c (setup_sections): Change // comment.
10891
9357a9e6
JB
108922015-02-26 Joel Brobecker <brobecker@adacore.com>
10893
10894 PR build/18033:
10895 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10896
1f10ba14
PA
108972015-02-23 Pedro Alves <palves@redhat.com>
10898
10899 * remote.c (skip_to_semicolon): New function.
10900 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10901 special case the stop reasons that look like hex numbers
10902 upfront. Instead handle real register numbers after matching
10903 all the known stop reasons.
10904
96553a0c
DE
109052015-02-21 Doug Evans <dje@google.com>
10906
10907 PR c++/17976, symtab/17821
10908 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10909 is_in_anonymous. All callers updated.
10910 (find_symbol_in_baseclass): Ditto.
10911 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10912 for symbols in an anonymous namespace.
10913 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10914 DW_AT_name directly.
10915 (dwarf2_name): Convert missing namespace name to
10916 CP_ANONYMOUS_NAMESPACE_STR.
10917
2db9a427
PA
109182015-02-20 Pedro Alves <palves@redhat.com>
10919
10920 * linux-nat.c (linux_handle_extended_wait): Call
10921 thread_db_notice_clone whenever a new clone LWP is detected.
10922 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10923 functions.
10924 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10925 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10926 (linux_unstop_all_lwps): Declare.
10927 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10928 (thread_get_info_callback): Delete.
10929 (thread_from_lwp): Use td_thr_get_info and record_thread.
10930 (thread_db_attach_lwp): Delete.
10931 (thread_db_notice_clone): New function.
10932 (try_thread_db_load_1): If /proc is mounted and shows the
10933 process'es task list, walk over all LWPs and call thread_from_lwp
10934 instead of relying on td_ta_thr_iter.
10935 (attach_thread): Don't call check_thread_signals here. Split the
10936 tail part of the function (which adds the thread to the core GDB
10937 thread list) to ...
10938 (record_thread): ... this function. Call check_thread_signals
10939 here.
10940 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10941 call thread_from_lwp.
10942 (thread_db_update_thread_list): Rename to ...
10943 (thread_db_update_thread_list_org): ... this.
10944 (thread_db_update_thread_list): New function.
10945 (thread_db_find_thread_from_tid): Delete.
10946 (thread_db_get_ada_task_ptid): Simplify.
10947 * nat/linux-procfs.c: Include <sys/stat.h>.
10948 (linux_proc_task_list_dir_exists): New function.
10949 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10950
3b27ef47
PA
109512015-02-20 Pedro Alves <palves@redhat.com>
10952
10953 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10954 main LWP. Handle the case of waitpid returning 0 if we're already
10955 attached to the LWP. Don't set the LWP's last_resume_kind to
10956 resume_stop if we already knew about the LWP.
10957 (linux_nat_filter_event): Add debug logs.
10958
1cc28231
PA
109592015-02-20 Pedro Alves <palves@redhat.com>
10960
10961 * target.h (forward_target_decr_pc_after_break): Delete
10962 declaration.
10963
5c5019c2
PA
109642015-02-20 Pedro Alves <palves@redhat.com>
10965
10966 PR threads/18006
10967 * linux-thread-db.c (thread_get_info_callback): Return early if
10968 the thread's lwp id is -1.
10969
f3978e91
JB
109702015-02-20 Joel Brobecker <brobecker@adacore.com>
10971
10972 GDB 7.9 released.
10973
ffdf88ec
SE
109742015-02-19 Steve Ellcey <sellcey@imgtec.com>
10975
10976 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10977 (dtrace_get_probes) Change type of variable 'dof'.
10978
c9587f88
AT
109792015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10980
10981 PR breakpoints/16812
10982 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10983 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10984 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10985
53cf2ee0
DT
109862015-02-19 David Taylor <dtaylor@emc.com>
10987
10988 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10989
acfe0940
PP
109902015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10991
10992 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10993 function.
10994 (tui_putc): Don't call tui_handle_resize_during_io.
10995 (tui_getc): Likewise.
10996 (tui_mld_getc): Likewise.
10997 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10998 (tui_sigwinch_token): New static variable.
10999 (tui_initialize_win): Adjust documentation. Set
11000 tui_sigwinch_token.
11001 (tui_async_resize_screen): New asynchronous callback.
11002 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11003 invoke tui_async_resize_screen.
11004
f6a88844
JM
110052015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11006
11007 * configure: Regenerated.
11008 * configure.ac: Use GDB_AC_TRANSFORM.
11009 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11010 * acinclude.m4: sinclude transform.m4.
11011 * transform.m4: New file.
11012 (GDB_AC_TRANSFORM): New macro.
11013
b05e3b0d
JM
110142015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11015
11016 * NEWS: Announce the support for DTrace SDT probes.
11017
c3e3045e
JM
110182015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11019
11020 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11021 (amd64_dtrace_parse_probe_argument): New function.
11022 (amd64_dtrace_probe_is_enabled): Likewise.
11023 (amd64_dtrace_enable_probe): Likewise.
11024 (amd64_dtrace_disable_probe): Likewise.
11025 (amd64_linux_init_abi): Register the
11026 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11027 `gdbarch_dtrace_disable_probe' and
11028 `gdbarch_dtrace_probe_is_enabled' hooks.
11029 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11030 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11031 (amd64_dtrace_enable_probe_sequence): Likewise.
11032 (amd64_dtrace_disable_probe_sequence): Likewise.
11033
d4777acb
JM
110342015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11035
11036 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11037 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11038 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11039 handle ELF files.
11040 * Makefile.in (SFILES): dtrace-probe.c added.
11041 * configure: Regenerate.
11042 * dtrace-probe.c: New file.
11043 (SHT_SUNW_dof): New constant.
11044 (dtrace_probe_type): New enum.
11045 (dtrace_probe_arg): New struct.
11046 (dtrace_probe_arg_s): New typedef.
11047 (struct dtrace_probe_enabler): New struct.
11048 (dtrace_probe_enabler_s): New typedef.
11049 (dtrace_probe): New struct.
11050 (dtrace_probe_is_linespec): New function.
11051 (dtrace_dof_sect_type): New enum.
11052 (dtrace_dof_dofh_ident): Likewise.
11053 (dtrace_dof_encoding): Likewise.
11054 (DTRACE_DOF_ENCODE_LSB): Likewise.
11055 (DTRACE_DOF_ENCODE_MSB): Likewise.
11056 (dtrace_dof_hdr): New struct.
11057 (dtrace_dof_sect): Likewise.
11058 (dtrace_dof_provider): Likewise.
11059 (dtrace_dof_probe): Likewise.
11060 (DOF_UINT): New macro.
11061 (DTRACE_DOF_PTR): Likewise.
11062 (DTRACE_DOF_SECT): Likewise.
11063 (dtrace_process_dof_probe): New function.
11064 (dtrace_process_dof): Likewise.
11065 (dtrace_build_arg_exprs): Likewise.
11066 (dtrace_get_arg): Likewise.
11067 (dtrace_get_probes): Likewise.
11068 (dtrace_get_probe_argument_count): Likewise.
11069 (dtrace_can_evaluate_probe_arguments): Likewise.
11070 (dtrace_evaluate_probe_argument): Likewise.
11071 (dtrace_compile_to_ax): Likewise.
11072 (dtrace_probe_destroy): Likewise.
11073 (dtrace_gen_info_probes_table_header): Likewise.
11074 (dtrace_gen_info_probes_table_values): Likewise.
11075 (dtrace_probe_is_enabled): Likewise.
11076 (dtrace_probe_ops): New variable.
11077 (info_probes_dtrace_command): New function.
11078 (_initialize_dtrace_probe): Likewise.
11079 (dtrace_type_name): Likewise.
11080
8b367e17
JM
110812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11082
11083 * gdbarch.sh (dtrace_parse_probe_argument): New.
11084 (dtrace_probe_is_enabled): Likewise.
11085 (dtrace_enable_probe): Likewise.
11086 (dtrace_disable_probe): Likewise.
11087 * gdbarch.c: Regenerate.
11088 * gdbarch.h: Regenerate.
11089
9aca2ff8
JM
110902015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11091
11092 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11093 stap_probe_ops for `enable_probe' and `disable_probe'.
11094 * probe.c (enable_probes_command): New function.
11095 (disable_probes_command): Likewise.
11096 (_initialize_probe): Define the cli commands `enable probe' and
11097 `disable probe'.
11098 (parse_probe_linespec): New function.
11099 (info_probes_for_ops): Use parse_probe_linespec.
11100 * probe.h (probe_ops): New hooks `enable_probe' and
11101 `disable_probe'.
11102
03e98035
JM
111032015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11104
11105 * probe.c (compute_probe_arg): Moved from stap-probe.c
11106 (compile_probe_arg): Likewise.
11107 (probe_funcs): Likewise.
11108 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11109 (compile_probe_arg): Likewise.
11110 (probe_funcs): Likewise.
11111
6f9b8491
JM
111122015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11113
11114 * probe.c (print_ui_out_not_applicables): New function.
11115 (exists_probe_with_pops): Likewise.
11116 (info_probes_for_ops): Do not include column headers for probe
11117 types for which no probe has been actually found on any object.
11118 Also invoke `print_ui_out_not_applicables' in order to match the
11119 column rows with the header when probes of several types are
11120 listed.
11121 Print the "Type" column.
11122 * probe.h (probe_ops): Added a new probe operation `type_name'.
11123 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11124 (stap_type_name): New function.
11125
69efdff1
PP
111262015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11127
11128 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11129 (key_is_command_char): Delete.
11130
f8e5e23e
PA
111312015-02-17 Pedro Alves <palves@redhat.com>
11132
11133 * tui/tui.c (tui_enable): Resize windows before anything
11134 might show a window.
11135
9f2e0721
MO
111362015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11137
11138 PR gdb/17984
11139 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11140 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11141 call.
11142 * aarch64-tdep.h (tdesc_aarch64): Declare.
11143
171e6b1c
MW
111442015-02-12 Mark Wielaard <mjw@redhat.com>
11145
11146 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11147
d5ff0482
DE
111482015-02-13 Doug Evans <dje@google.com>
11149
11150 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11151 anonymous_namespace to is_in_anonymous for consistency with the rest
11152 of the file.
11153 (cp_lookup_bare_symbol): Fix typo in comment.
11154 (cp_search_static_and_baseclasses): Ditto.
11155 (search_symbol_list): Use vertical space in comment better.
11156 (reset_directive_searched): Ditto. Fix typo.
11157 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11158
9f04ac5f
YQ
111592015-02-13 Yao Qi <yao.qi@arm.com>
11160
11161 * MAINTAINERS: Update my email address.
11162
013d0319
DE
111632015-02-12 Doug Evans <dje@google.com>
11164
b615dd20 11165 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11166
9a7e538e
DE
111672015-02-12 Doug Evans <dje@google.com>
11168
11169 * completer.c (complete_line): Remove incorrect comment.
11170
e1fcd575
JK
111712015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11172
11173 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11174 (py_print_frame): Use RETURN_MASK_ERROR.
11175
b99bf4e3
JK
111762015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11177
11178 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11179 function comment. Wrap all function that can throw in cleanups.
11180 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11181 cleanups.
11182
800eb1ce
JK
111832015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11184
11185 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11186 Remove the error label.
11187
34019068
JK
111882015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11191 with goto first, indent the former else codepath left. Put variable
11192 'elided' to a new inner block.
11193
8d4a54e2
JK
111942015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11195
11196 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11197
18ad82c1
PA
111982015-02-11 Pedro Alves <palves@redhat.com>
11199
11200 * xcoffread.c (within_function): Delete.
11201
e36122e9
TT
112022015-02-11 Tom Tromey <tromey@redhat.com>
11203 Pedro Alves <palves@redhat.com>
11204
11205 * breakpoint.c (base_breakpoint_ops): Delete.
11206 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11207 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11208 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11209 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11210 * python/py-arch.c (arch_object_type): Make extern.
11211 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11212 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11213 * python/py-cmd.c (cmdpy_object_type): Make extern.
11214 * python/py-continueevent.c (continue_event_object_type)
11215 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11216 parameter. Update all callers.
11217 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11218 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11219 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11220 * python/py-function.c (fnpy_object_type): Make extern.
11221 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11222 * python/py-infevents.c (call_pre_event_object_type)
11223 (inferior_call_post_event_object_type).
11224 (memory_changed_event_object_type): Make extern.
11225 * python/py-infthread.c (thread_object_type): Make extern.
11226 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11227 * python/py-linetable.c (linetable_entry_object_type)
11228 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11229 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11230 (clear_objfiles_event_object_type): Make extern.
11231 * python/py-objfile.c (objfile_object_type): Make extern.
11232 * python/py-param.c (parmpy_object_type): Make extern.
11233 * python/py-progspace.c (pspace_object_type): Make extern.
11234 * python/py-signalevent.c (signal_event_object_type): Make extern.
11235 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11236 * python/py-type.c (type_object_type, field_object_type)
11237 (type_iterator_object_type): Make extern.
11238 * python/python.c (python_extension_script_ops)
11239 (python_extension_ops): Make extern.
11240 * stap-probe.c (stap_probe_ops): Make extern.
11241
0703599a
PA
112422015-02-11 Pedro Alves <pedro@codesourcery.com>
11243
11244 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11245 because the event thread is not the current thread.
11246
eaaf76ab
DE
112472015-02-11 Doug Evans <xdje42@gmail.com>
11248
11249 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11250 been initialized yet, return NULL.
11251
e7d52ed3
DE
112522015-02-11 Doug Evans <dje@google.com>
11253
11254 * symfile.h (new_symfile_objfile): Delete.
11255 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11256 All callers updated.
11257
fc6b1256
PP
112582015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11259
11260 * tui/tui-io.c (tui_handle_resize_during_io): Call
11261 tui_update_gdb_sizes() after resizing the screen.
11262 * tui/tui.c (tui_enable): Resize the terminal before
11263 calling tui_update_gdb_sizes().
11264
d9080678
PP
112652015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11266
11267 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11268 line before printing a newline.
11269
9f615e3a
MW
112702015-02-11 Mark Wielaard <mjw@redhat.com>
11271
11272 * utils.c (producer_is_gcc): Return true or false.
11273
d9080678 112742015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11275
11276 * utils.h (producer_is_gcc): Change return type to bool. Add major
11277 argument.
11278 * utils.c (producer_is_gcc): Likewise.
11279 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11280 * dwarf2read.c (check_producer): Likewise.
11281
b052c4fb
PA
112822015-02-10 Pedro Alves <palves@redhat.com>
11283
11284 * infrun.c (displaced_step_fixup): Switch to the event thread
11285 before calling gdbarch_displaced_step_fixup.
11286
3ac240d4
AT
112872015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11288
11289 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11290
c1cc6152
SM
112912015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11292
11293 * ada-varobj.c (ada_name_of_child): Constify parent.
11294 (ada_path_expr_of_child): Same.
11295 (ada_value_of_child): Same.
11296 (ada_type_of_child): Same.
11297 * c-varobj.c (c_is_path_expr_parent): Same.
11298 (c_describe_child): Same.
11299 (c_name_of_child): Same.
11300 (c_value_of_child): Same.
11301 (c_type_of_child): Same.
11302 (cplus_number_of_children): Same.
11303 (cplus_describe_child): Constify var.
11304 (cplus_name_of_child): Constify parent.
11305 (cplus_value_of_child): Same.
11306 (cplus_type_of_child): Same.
11307 * jv-varobj.c (java_name_of_child): Same.
11308 (java_value_of_child): Same.
11309 (java_type_of_child): Same.
11310 * varobj.c (value_of_child): Same.
11311 (varobj_default_is_path_expr_parent): Constify var, parent and return
11312 value.
11313 (varobj_get_path_expr): Constify var, modify path_expr through
11314 mutable_var.
11315 (install_new_value): Constify parent.
11316 (value_of_child): Constify parent.
11317 * varobj.h (struct varobj): Constify parent.
11318 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11319 type_of_child.
11320 (varobj_get_path_expr): Constify var.
11321 (varobj_get_path_expr_parent): Constify var and return value.
11322
c1ee9414
LM
113232015-02-10 Luis Machado <lgustavo@codesourcery.com>
11324
11325 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11326 (arm_prologue_this_id): Move PC and SP limit checks to
11327 arm_prologue_unwind_stop_reason.
11328 (arm_prologue_unwind) <stop_reason> : Set to
11329 arm_prologue_unwind_stop_reason.
11330
f7de9aab
MW
113312015-02-09 Mark Wielaard <mjw@redhat.com>
11332
11333 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11334 DW_LANG_Fortran08 as language_fortran.
11335
0b24eb2d
SDJ
113362015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11337
11338 PR remote/17946
11339 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11340 of pointer against char.
11341
a2c2acaf
MW
113422015-02-09 Mark Wielaard <mjw@redhat.com>
11343
11344 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11345 (c_type_print_modifier): Likewise.
11346 * dwarf2read.c (read_tag_atomic_type): New function.
11347 (read_type_die_1): Handle DW_TAG_atomic_type.
11348 * gdbtypes.c (make_atomic_type): New function.
11349 (recursive_dump_type): Handle TYPE_ATOMIC.
11350 * gdbtypes.h (enum type_flag_values): Renumber.
11351 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11352 (TYPE_ATOMIC): New macro.
11353 (make_atomic_type): Declare.
11354
31fd9caa
MM
113552015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11356
11357 * btrace.c (ftrace_find_call): Skip gaps.
11358 (ftrace_new_function): Initialize level.
11359 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11360 (ftrace_new_switch): Update
11361 level computation.
11362 (ftrace_new_gap): New.
11363 (ftrace_update_function): Create new function after gap.
11364 (btrace_compute_ftrace_bts): Create gap on error.
11365 (btrace_stitch_bts): Update parameters. Clear trace if it
11366 becomes empty.
11367 (btrace_stitch_trace): Update parameters. Update callers.
11368 (btrace_clear): Reset the number of gaps.
11369 (btrace_insn_get): Return NULL if the iterator points to a gap.
11370 (btrace_insn_number): Return zero if the iterator points to a gap.
11371 (btrace_insn_end): Allow gaps at the end.
11372 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11373 (btrace_find_insn_by_number): Assert that the found iterator does
11374 not point to a gap.
11375 (btrace_call_next, btrace_call_prev): Assert that the last function
11376 is not a gap.
11377 * btrace.h (btrace_bts_error): New.
11378 (btrace_function): Update comment.
11379 (btrace_function) <insn, insn_offset, number>: Update comment.
11380 (btrace_function) <errcode>: New.
11381 (btrace_thread_info) <ngaps>: New.
11382 (btrace_thread_info) <replay>: Update comment.
11383 (btrace_insn_get): Update comment.
11384 * record-btrace.c (btrace_ui_out_decode_error): New.
11385 (record_btrace_info): Print number of gaps.
11386 (btrace_insn_history, btrace_call_history): Call
11387 btrace_ui_out_decode_error for gaps.
11388 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11389
afb778a2
MM
113902015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11391
11392 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11393 * nat/linux-btrace.c: (btrace_this_cpu): New.
11394 (cpu_supports_bts): Call btrace_this_cpu.
11395 (intel_supports_bts): Add cpu parameter.
11396
7d5c24b3
MM
113972015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11398
11399 * btrace.h (btrace_insn_class): New.
11400 (btrace_insn) <size, iclass>: New.
11401 * btrace.c (ftrace_find_call): Update parameters. Update users.
11402 Use instruction classification.
11403 (ftrace_new_return): Update parameters. Update users.
11404 (ftrace_update_function): Update parameters. Update users. Use
11405 instruction classification.
11406 (ftrace_update_insns): Update parameters. Update users.
11407 (ftrace_classify_insn): New.
11408 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11409 TRY_CATCH around call to gdb_insn_length.
11410
76235df1
MM
114112015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11412
11413 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11414 Update parameters. Update users.
11415
d33501a5
MM
114162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11417
11418 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11419 (btrace_conf_bts_attributes): New.
11420 (btrace_conf_children): Add attributes.
11421 * common/btrace-common.h (btrace_config_bts): New.
11422 (btrace_config)<bts>: New.
11423 (btrace_config): Update comment.
11424 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11425 Use config.
11426 * features/btrace-conf.dtd: Increment version. Add size
11427 attribute to bts element.
11428 * record-btrace.c (set_record_btrace_bts_cmdlist,
11429 show_record_btrace_bts_cmdlist): New.
11430 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11431 record_btrace_print_conf, cmd_set_record_btrace_bts,
11432 cmd_show_record_btrace_bts): New.
11433 (record_btrace_info): Call record_btrace_print_conf.
11434 (_initialize_record_btrace): Add commands.
11435 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11436 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11437 (btrace_sync_conf): Synchronize bts size.
11438 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11439 * NEWS: Announce new commands and new packets.
11440
f4abbc16
MM
114412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11442
11443 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11444 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11445 (x86_linux_btrace_conf): New.
11446 (x86_linux_create_target): Initialize to_btrace_conf.
11447 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11448 Check format. Split into this and ...
11449 (linux_enable_bts): ... this.
11450 (linux_btrace_conf): New.
11451 (perf_event_skip_record): Renamed into ...
11452 (perf_event_skip_bts_record): ... this. Updated users.
11453 (linux_disable_btrace): Split into this and ...
11454 (linux_disable_bts): ... this.
11455 (linux_read_btrace): Check format.
11456 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11457 (linux_btrace_conf): New.
11458 (btrace_target_info)<ptid>: Moved.
11459 (btrace_target_info)<conf>: New.
11460 (btrace_target_info): Split into this and ...
11461 (btrace_tinfo_bts): ... this. Updated users.
11462 * btrace.c (btrace_enable): Update parameters.
11463 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11464 (btrace_conf_children, btrace_conf_attributes)
11465 (btrace_conf_elements): New.
11466 * btrace.h (btrace_enable): Update parameters.
11467 (btrace_conf, parse_xml_btrace_conf): New.
11468 * common/btrace-common.h (btrace_config): New.
11469 * feature/btrace-conf.dtd: New.
11470 * record-btrace.c (record_btrace_conf): New.
11471 (record_btrace_cmdlist): New.
11472 (record_btrace_enable_warn, record_btrace_open): Pass
11473 &record_btrace_conf.
11474 (record_btrace_info): Print recording format.
11475 (cmd_record_btrace_bts_start): New.
11476 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11477 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11478 Add "record bts" alias command.
11479 * remote.c (remote_state)<btrace_config>: New.
11480 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11481 (remote_protocol_features): Add qXfer:btrace-conf:read.
11482 (remote_open_1): Call remote_btrace_reset.
11483 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11484 (btrace_target_info)<conf>: New.
11485 (btrace_sync_conf, btrace_read_config): New.
11486 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11487 btrace_read_conf.
11488 (remote_btrace_conf): New.
11489 (init_remote_ops): Initialize to_btrace_conf.
11490 (_initialize_remote): Add qXfer:btrace-conf packet.
11491 * target.c (target_enable_btrace): Update parameters.
11492 (target_btrace_conf): New.
11493 * target.h (target_enable_btrace): Update parameters.
11494 (target_btrace_conf): New.
11495 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11496 (target_ops)<to_enable_btrace>: Update parameters and comment.
11497 (target_ops)<to_btrace_conf>: New.
11498 * target-delegates: Regenerate.
11499 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11500 (target_debug_print_const_struct_btrace_target_info_p): New.
11501 * NEWS: Announce new command and new packet.
11502
aadf7753
MM
115032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11504
11505 * nat/linux-btrace.h (perf_event_buffer): New.
11506 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11507 <bts>: ... this.
11508 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11509 (perf_event_buffer_size, perf_event_buffer_begin)
11510 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11511 Updated users.
11512 (perf_event_new_data): New.
11513
043c3577
MM
115142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11515
11516 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11517 * record-btrace.c (record_btrace_open): Remove call to
11518 target_supports_btrace.
11519 * remote.c (remote_supports_btrace): Update parameters.
11520 * target.c (target_supports_btrace): Update parameters.
11521 * target.h (to_supports_btrace, target_supports_btrace): Update
11522 parameters.
11523 * target-delegates.c: Regenerate.
11524 * target-debug.h (target_debug_print_enum_btrace_format): New.
11525 * nat/linux-btrace.c
11526 (kernel_supports_btrace): Rename into ...
11527 (kernel_supports_bts): ... this. Update users. Update warning text.
11528 (intel_supports_btrace): Rename into ...
11529 (intel_supports_bts): ... this. Update users.
11530 (cpu_supports_btrace): Rename into ...
11531 (cpu_supports_bts): ... this. Update users.
11532 (linux_supports_btrace): Update parameters. Split into this and ...
11533 (linux_supports_bts): ... this.
11534 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11535
734b0e4b
MM
115362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11537
11538 * Makefile.in (SFILES): Add common/btrace-common.c.
11539 (COMMON_OBS): Add common/btrace-common.o.
11540 (btrace-common.o): Add build rules.
11541 * btrace.c (parse_xml_btrace): Update parameters.
11542 (parse_xml_btrace_block): Set format field.
11543 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11544 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11545 (btrace_compute_ftrace): Split into this and...
11546 (btrace_compute_ftrace_bts): ...this.
11547 (btrace_stitch_trace): Split into this and...
11548 (btrace_stitch_bts): ...this.
11549 * btrace.h (parse_xml_btrace): Update parameters.
11550 (make_cleanup_btrace_data): New.
11551 * common/btrace-common.c: New.
11552 * common/btrace-common.h: Include common-defs.h.
11553 (btrace_block_s): Update comment.
11554 (btrace_format): New.
11555 (btrace_format_string): New.
11556 (btrace_data_bts): New.
11557 (btrace_data): New.
11558 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11559 * remote.c (remote_read_btrace): Update parameters.
11560 * target.c (target_read_btrace): Update parameters.
11561 * target.h (target_read_btrace): Update parameters.
11562 (target_ops)<to_read_btrace>: Update parameters.
11563 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11564 * target-delegates.c: Regenerate.
11565 * target-debug (target_debug_print_struct_btrace_data_p): New.
11566 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11567 (linux_read_bts): ...this.
11568 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11569
bd2e0e9e
DE
115702015-02-06 Doug Evans <dje@google.com>
11571
11572 * remote-m32r-sdi.c: Include symfile.h.
11573
f176c4b5
DE
115742015-02-06 Doug Evans <dje@google.com>
11575
11576 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11577 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11578 to here.
11579
d6c146e9
PA
115802015-02-06 Pedro Alves <palves@redhat.com>
11581
11582 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11583
b9d61307
SM
115842015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11585
11586 PR gdb/15678
11587 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11588 (enable_count_command): Check args for NULL value.
11589
e9fbd043
DE
115902015-02-05 Doug Evans <xdje42@gmail.com>
11591
11592 * guile/scm-frame.c: Fix spelling errors in a comment.
11593
881d5d5d
JK
115942015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11595
11596 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11597 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11598 return type.
11599
20ba1ce6
PA
116002015-02-04 Pedro Alves <palves@redhat.com>
11601
11602 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11603 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11604 returns true.
11605 (resume_stopped_resumed_lwps): Don't check whether the thread is
11606 marked as executing.
11607 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11608
f962539a
AA
116092015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11610
11611 * regset.h (struct regset): Add flags field.
11612 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11613 * corelow.c (get_core_register_section): Add warning if the size
11614 exceeds the requested size and the regset does not have the
11615 REGSET_VARIABLE_SIZE flag set.
11616 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11617 flag.
11618 * armbsd-tdep.c (armbsd_gregset): Likewise.
11619 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11620 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11621 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11622 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11623
dde9acd6
AA
116242015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11625
11626 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11627 For ".reg-xstate", explicitly specify the requested section size
11628 via X86_XSTATE_SIZE instead of just 0 on input and
11629 X86_XSTATE_MAX_SIZE on output.
11630 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11631 Likewise.
11632
1528345d
AA
116332015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11634
11635 PR corefiles/17808:
11636 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11637 function type, particularly its SIZE parameter.
11638 * gdbarch.h: Regenerate.
11639 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11640 actual against required size using ">=" instead of "==".
11641 (amd64_collect_fpregset): Likewise.
11642 * i386-tdep.c (i386_supply_gregset): Likewise.
11643 (i386_collect_gregset): Likewise.
11644 (i386_supply_fpregset): Likewise.
11645 (i386_collect_fpregset): Likewise.
11646 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11647 (mips_fill_gregset_wrapper): Likewise.
11648 (mips_supply_fpregset_wrapper): Likewise.
11649 (mips_fill_fpregset_wrapper): Likewise.
11650 (mips64_supply_gregset_wrapper): Likewise.
11651 (mips64_fill_gregset_wrapper): Likewise.
11652 (mips64_supply_fpregset_wrapper): Likewise.
11653 (mips64_fill_fpregset_wrapper): Likewise.
11654 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11655 (am33_supply_fpregset_method): Likewise.
11656 (am33_collect_gregset_method): Likewise.
11657 (am33_collect_fpregset_method): Likewise.
11658
518be979
DE
116592015-02-04 Doug Evans <dje@google.com>
11660 Pedro Alves <palves@redhat.com>
11661 Eli Zaretskii <eliz@gnu.org>
11662
11663 PR tui/17810
11664 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11665 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11666 * tui/tui-file.c: #include tui/tui-command.h.
11667 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11668 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11669 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11670
80bd5fab
PA
116712015-02-04 Pedro Alves <palves@redhat.com>
11672
11673 Fix build breakage.
11674 * event-loop.c (gdb_do_one_event): Add default switch case.
11675
a7606d80
JK
116762015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11677
11678 Filter out inferior gcc option -fpreprocessed.
11679 * compile/compile.c (filter_args): New function.
11680 (get_args): Use it.
11681
70b66289
PA
116822015-02-03 Pedro Alves <palves@redhat.com>
11683
11684 * event-loop.c: Don't declare nor define a queue type for
11685 gdb_event_p.
11686 (event_queue): Delete.
11687 (create_event, create_file_event, gdb_event_xfree)
11688 (initialize_event_loop, process_event): Delete.
11689 (gdb_do_one_event): Return as soon as one event is handled.
11690 (handle_file_event): Change prototype. Used the passed in
11691 file_handler pointer and ready_mask instead of looping over all
11692 file handlers.
11693 (gdb_wait_for_event): Update the poll/select timeouts before
11694 blocking. Run event handlers directly instead of queueing events.
11695 Return as soon as one event is handled.
11696 (struct async_event_handler_data): Delete.
11697 (invoke_async_event_handler): Delete.
11698 (check_async_event_handlers): Change return type to int. Run
11699 event handlers directly instead of queueing events. Return as
11700 soon as one event is handled.
11701 (handle_timer_event): Delete.
11702 (update_wait_timeout): New function, factored out from
11703 poll_timers.
11704 (poll_timers): Reimplement.
11705 * event-loop.h (initialize_event_loop): Delete declaration.
11706 * top.c (gdb_init): Don't call initialize_event_loop.
11707
b7d2e916
PA
117082015-02-03 Pedro Alves <palves@redhat.com>
11709
11710 * event-loop.c (clear_async_event_handler): New function.
11711 * event-loop.h (clear_async_event_handler): New declaration.
11712 * record-btrace.c (record_btrace_async): New function.
11713 (init_record_btrace_ops): Install record_btrace_async.
11714 * record-full.c (record_full_async): New function.
11715 (record_full_resume): Don't mark the async event source here.
11716 (init_record_full_ops): Install record_full_async.
11717 (record_full_core_resume): Don't mark the async event source here.
11718 (init_record_full_core_ops): Install record_full_async.
11719 * remote.c (remote_async): Mark and clear the async stop reply
11720 queue event-loop token as appropriate.
11721
d9d41e78
PA
117222015-02-03 Pedro Alves <palves@redhat.com>
11723
11724 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11725 target_is_async_p instead of target_can_async.
11726 (linux_nat_wait): Use target_is_async_p instead of
11727 target_can_async. Don't enable async here.
11728 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11729 target_is_async_p instead of target_can_async.
11730
aa3de267
SM
117312015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11732
11733 * varobj.h (lang_varobj_ops): Mention which return values need
11734 to be freed.
11735
2c811c0f
JB
117362015-02-02 Joel Brobecker <brobecker@adacore.com>
11737
11738 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11739
b1eedac9
JB
117402015-02-02 Joel Brobecker <brobecker@adacore.com>
11741
11742 PR gdb/17856:
11743 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11744 results found in the cache.
11745
66c168ae
JB
117462015-02-02 Joel Brobecker <brobecker@adacore.com>
11747
11748 PR gdb/17854:
11749 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11750 when allocating a new one.
11751
4bdc02b2
TT
117522015-02-01 Tom Tromey <tom@tromey.com>
11753
11754 * MAINTAINERS: Remove myself.
11755
ae6ae975
DE
117562015-01-31 Doug Evans <xdje42@gmail.com>
11757
11758 * dwarf2read.c (process_structure_scope): Update setting of
11759 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11760 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11761 (set_type_vptr_fieldno): New function.
11762 (internal_type_vptr_basetype): New function.
11763 (set_type_vptr_basetype): New function.
11764 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11765 TYPE_VPTR_BASETYPE.
11766 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11767 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11768 (print_cplus_stuff): ... moved here.
11769 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11770 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11771 moved to ...
11772 (struct cplus_struct_type): ... here. All uses updated.
11773 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11774 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11775 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11776 * stabsread.c (read_tilde_fields): Update setting of
11777 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11778
09e2d7c7
DE
117792015-01-31 Doug Evans <xdje42@gmail.com>
11780
11781 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11782 to self_p.
11783 (cp_print_class_member): Rename local domain to self_type.
11784 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11785 domain_type to self_type.
11786 (set_die_type) <need_gnat_info>: Handle
11787 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11788 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11789 TYPE_SPECIFIC_SELF_TYPE.
11790 * gdbtypes.c (internal_type_self_type): New function.
11791 (set_type_self_type): New function.
11792 (smash_to_memberptr_type): Rename parameter domain to self_type.
11793 Update setting of TYPE_SELF_TYPE.
11794 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11795 (smash_to_method_type): Rename parameter domain to self_type.
11796 Update setting of TYPE_SELF_TYPE.
11797 (check_stub_method): Call smash_to_method_type.
11798 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11799 (copy_type_recursive): Ditto.
11800 * gdbtypes.h (enum type_specific_kind): New value
11801 TYPE_SPECIFIC_SELF_TYPE.
11802 (struct main_type) <type_specific>: New member self_type.
11803 (struct cplus_struct_type) <fn_field.type>: Update comment.
11804 (TYPE_SELF_TYPE): Rewrite.
11805 (internal_type_self_type, set_type_self_type): Declare.
11806 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11807 self_type.
11808 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11809 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11810 TYPE_TARGET_TYPE.
11811 * stabsread.c (read_member_functions): Mark methods with
11812 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11813 TYPE_SELF_TYPE.
11814
4bfb94b8
DE
118152015-01-31 Doug Evans <xdje42@gmail.com>
11816
11817 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11818 All uses updated.
11819
5f4ce105
DE
118202015-01-31 Doug Evans <xdje42@gmail.com>
11821
11822 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11823 or unions. Return zero if union.
11824 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11825 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11826 gnuv3_get_vtable.
11827 (compute_vtable_size): Assert only passed structs.
11828 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11829
f6b3afbf
DE
118302015-01-31 Doug Evans <xdje42@gmail.com>
11831
11832 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11833 kinds.
11834
cfb069a8
GB
118352015-01-31 Gary Benson <gbenson@redhat.com>
11836 Doug Evans <dje@google.com>
11837
11838 PR cli/9007
11839 PR cli/11920
11840 PR cli/15548
11841 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11842 reached.
11843 * common/common-exceptions.h (enum errors)
11844 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11845 * completer.h (get_max_completions_reached_message): New declaration.
11846 (max_completions): Likewise.
11847 (completion_tracker_t): New typedef.
11848 (new_completion_tracker): New declaration.
11849 (make_cleanup_free_completion_tracker): Likewise.
11850 (maybe_add_completion_enum): New enum.
11851 (maybe_add_completion): New declaration.
11852 (throw_max_completions_reached_error): Likewise.
11853 * completer.c (max_completions): New global variable.
11854 (new_completion_tracker): New function.
11855 (free_completion_tracker): Likewise.
11856 (make_cleanup_free_completion_tracker): Likewise.
11857 (maybe_add_completions): Likewise.
11858 (throw_max_completions_reached_error): Likewise.
11859 (complete_line): Remove duplicates and limit result to max_completions
11860 entries.
11861 (get_max_completions_reached_message): New function.
11862 (gdb_display_match_list): Handle max_completions.
11863 (_initialize_completer): New declaration and function.
11864 * symtab.c: Include completer.h.
11865 (completion_tracker): New static variable.
11866 (completion_list_add_name): Call maybe_add_completion.
11867 (default_make_symbol_completion_list_break_on_1): Renamed from
11868 default_make_symbol_completion_list_break_on. Maintain
11869 completion_tracker across calls to completion_list_add_name.
11870 (default_make_symbol_completion_list_break_on): New function.
11871 * top.c (init_main): Set rl_completion_display_matches_hook.
11872 * tui/tui-io.c: Include completer.h.
11873 (tui_old_rl_display_matches_hook): New static global.
11874 (tui_rl_display_match_list): Notify user if max-completions reached.
11875 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11876 * NEWS (New Options): Mention set/show max-completions.
11877
e11c72c7
GB
118782015-01-31 Gary Benson <gbenson@redhat.com>
11879
11880 * symtab.c (struct add_name_data) <code>: New field.
11881 Updated comments.
11882 (add_symtab_completions): New function.
11883 (symtab_expansion_callback): Likewise.
11884 (default_make_symbol_completion_list_break_on): Set datum.code.
11885 Move minimal symbol scan before calling expand_symtabs_matching.
11886 Scan known primary symtabs for externs and statics before calling
11887 expand_symtabs_matching. Pass symtab_expansion_callback as
11888 expansion_notify argument to expand_symtabs_matching. Do not scan
11889 primary symtabs for externs and statics after calling
11890 expand_symtabs_matching.
11891
276d885b
GB
118922015-01-31 Gary Benson <gbenson@redhat.com>
11893
11894 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11895 (struct quick_symbol_functions) <expand_symtabs_matching>:
11896 New argument expansion_notify. All uses updated.
11897 (expand_symtabs_matching): New argument expansion_notify.
11898 All uses updated.
11899 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11900 Also print expansion notify.
11901 * symtab.c (expand_symtabs_matching_via_partial): Call
11902 expansion_notify whenever a partial symbol table is expanded.
11903 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11904 expansion_notify whenever a symbol table is instantiated.
11905
82083d6d
DE
119062015-01-31 Doug Evans <xdje42@gmail.com>
11907
11908 * cli-out.c: #include completer.h, readline/readline.h.
11909 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11910 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11911 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11912 * cli-out.h (cli_display_match_list): Declare.
11913 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11914 (ELLIPSIS_LEN): Ditto.
11915 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11916 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11917 (gdb_fnprint, gdb_print_filename): Ditto.
11918 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11919 (gdb_display_match_list): Ditto.
11920 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11921 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11922 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11923 (match_list_displayer): New struct.
11924 (gdb_display_match_list): Declare.
11925 * top.c (init_main): Set rl_completion_display_matches_hook.
11926 * tui/tui-io.c: #include completer.h.
11927 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11928 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11929 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11930 (tui_mld_getc, tui_mld_read_key): Ditto.
11931 (tui_rl_display_match_list): Rewrite.
11932 (tui_handle_resize_during_io): New arg for_completion. All callers
11933 updated.
11934
f57d2163
DE
119352015-01-31 Doug Evans <xdje42@gmail.com>
11936
11937 Add symbol lookup cache.
11938 * NEWS: Document new options and commands.
11939 * symtab.c (symbol_cache_key): New static global.
11940 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11941 (SYMBOL_LOOKUP_FAILED): New macro.
11942 (symbol_cache_slot_state): New enum.
11943 (block_symbol_cache): New struct.
11944 (symbol_cache): New struct.
11945 (new_symbol_cache_size, symbol_cache_size): New static globals.
11946 (hash_symbol_entry, eq_symbol_entry): New functions.
11947 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11948 (make_symbol_cache, free_symbol_cache): New functions.
11949 (get_symbol_cache, symbol_cache_cleanup): New function.
11950 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11951 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11952 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11953 (symbol_cache_flush, symbol_cache_dump): New functions.
11954 (maintenance_print_symbol_cache): New function.
11955 (maintenance_flush_symbol_cache): New function.
11956 (symbol_cache_stats): New function.
11957 (maintenance_print_symbol_cache_statistics): New function.
11958 (symtab_new_objfile_observer): New function.
11959 (symtab_free_objfile_observer): New function.
11960 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11961 (_initialize_symtab): Init symbol_cache_key. New parameter
11962 maint symbol-cache-size. New maint commands print symbol-cache,
11963 print symbol-cache-statistics, flush-symbol-cache.
11964 Install new_objfile, free_objfile observers.
11965
e700d1b2
JB
119662015-01-31 Joel Brobecker <brobecker@adacore.com>
11967
11968 PR symtab/17855
11969 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11970 to end.
11971
9f050062
DE
119722015-01-31 Doug Evans <xdje42@gmail.com>
11973
11974 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11975 * auto-load.c: #include ctype.h.
11976 (struct auto_load_pspace_info): Replace member loaded_scripts with
11977 new members loaded_script_files, loaded_script_texts.
11978 (auto_load_pspace_data_cleanup): Update.
11979 (init_loaded_scripts_info): Update.
11980 (get_auto_load_pspace_data_for_loading): Update.
11981 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11982 updated.
11983 (maybe_add_script_text): New function.
11984 (clear_section_scripts): Update.
11985 (source_script_file, execute_script_contents): New functions.
11986 (source_section_scripts): Add support for
11987 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11988 (print_scripts): New function.
11989 (auto_load_info_scripts): Also print inlined scripts.
11990 (maybe_print_unsupported_script_warning): Renamed from
11991 unsupported_script_warning_print. All callers updated.
11992 (maybe_print_script_not_found_warning): Renamed from
11993 script_not_found_warning_print. All callers updated.
11994 * extension-priv.h (struct extension_language_script_ops): New member
11995 objfile_script_executor.
11996 * extension.c (ext_lang_objfile_script_executor): New function.
11997 * extension.h (objfile_script_executor_func): New typedef.
11998 (ext_lang_objfile_script_executor): Declare.
11999 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12000 * guile/guile.c (guile_extension_script_ops): Update.
12001 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12002 * python/python.c (python_extension_script_ops): Update.
12003 (gdbpy_execute_objfile_script): New function.
12004
312809f8
EZ
120052015-01-31 Eli Zaretskii <eliz@gnu.org>
12006
12007 * tui/tui-io.c (tui_expand_tabs): New function.
12008 (tui_puts, tui_redisplay_readline): Expand TABs into the
12009 appropriate number of spaces.
12010 * tui/tui-regs.c: Include tui-io.h.
12011 (tui_register_format): Call tui_expand_tabs to expand TABs into
12012 the appropriate number of spaces.
12013 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12014
b6577aab
DE
120152015-01-30 Doug Evans <dje@google.com>
12016
12017 * NEWS: "info source" command now display producer string if present.
12018 * source.c (source_info): Print producer string if present.
12019
6da58d3e
SM
120202015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12021
12022 * varobj.c (varobj_delete): Fix comment.
12023
837ce252
SM
120242015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12025
12026 * varobj.c (create_child): Modify comment.
12027
b09e2c59
SM
120282015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12029
12030 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12031 parameter.
12032 (ada_name_of_variable): Same.
12033 (ada_path_expr_of_child): Same.
12034 (ada_value_of_variable): Same.
12035 (ada_value_is_changeable_p): Same.
12036 (ada_value_has_mutated): Same.
12037 * c-varobj.c (varobj_is_anonymous_child): Same.
12038 (c_is_path_expr_parent): Same.
12039 (c_number_of_children): Same.
12040 (c_name_of_variable): Same.
12041 (c_path_expr_of_child): Same.
12042 (get_type): Same.
12043 (c_value_of_variable): Same.
12044 (cplus_number_of_children): Same.
12045 (cplus_name_of_variable): Same.
12046 (cplus_path_expr_of_child): Same.
12047 (cplus_value_of_variable): Same.
12048 * jv-varobj.c (java_number_of_children): Same.
12049 (java_name_of_variable): Same.
12050 (java_path_expr_of_child): Same.
12051 (java_value_of_variable): Same.
12052 * varobj.c (number_of_children): Same.
12053 (name_of_variable): Same.
12054 (is_root_p): Same.
12055 (varobj_ensure_python_env): Same.
12056 (varobj_get_objname): Same.
12057 (varobj_get_expression): Same.
12058 (varobj_get_display_format): Same.
12059 (varobj_get_display_hint): Same.
12060 (varobj_has_more): Same.
12061 (varobj_get_thread_id): Same.
12062 (varobj_get_frozen): Same.
12063 (dynamic_varobj_has_child_method): Same.
12064 (varobj_get_gdb_type): Same.
12065 (is_path_expr_parent): Same.
12066 (varobj_default_is_path_expr_parent): Same.
12067 (varobj_get_language): Same.
12068 (varobj_get_attributes): Same.
12069 (varobj_is_dynamic_p): Same.
12070 (varobj_get_child_range): Same.
12071 (varobj_value_has_mutated): Same.
12072 (varobj_get_value_type): Same.
12073 (number_of_children): Same.
12074 (name_of_variable): Same.
12075 (check_scope): Same.
12076 (varobj_editable_p): Same.
12077 (varobj_value_is_changeable_p): Same.
12078 (varobj_floating_p): Same.
12079 (varobj_default_value_is_changeable_p): Same.
12080
2568868e
SM
120812015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12082
12083 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12084 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12085 child->path_expr.
12086 (cplus_path_expr_of_child): Same.
12087
ca83fa81
SM
120882015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12089
12090 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12091 result.
12092 (mi_cmd_var_info_expression): Same.
12093 * varobj.c (varobj_get_expression): Mention in the comment that
12094 the result must by freed by the caller.
12095
afa269ae
SM
120962015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12097
12098 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12099 varobj_get_type.
12100 (varobj_update_one): Same.
12101 * varobj.c (update_type_if_necessary): Free curr_type_str and
12102 new_type_str.
12103 (varobj_get_type): Specify in comment that the result needs to be
12104 freed by the caller.
12105
cd366ee8
DE
121062015-01-29 Doug Evans <dje@google.com>
12107
12108 PR symtab/17890
12109 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12110
38360086
MW
121112015-01-25 Mark Wielaard <mjw@redhat.com>
12112
12113 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12114 * utils.c (producer_is_gcc_ge_4): Likewise.
12115 (producer_is_gcc): New function.
12116 * utils.h (producer_is_gcc): New declaration.
12117
df25ebbd
JB
121182015-01-29 Joel Brobecker <brobecker@adacore.com>
12119
12120 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12121 kind.
12122 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12123 parameter by "addr_stack" parameter.
12124 (resolve_dynamic_range): Replace "addr" parameter by
12125 "stack_addr" parameter. Update function documentation.
12126 Update code accordingly.
12127 (resolve_dynamic_array, resolve_dynamic_union)
12128 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12129 (resolve_dynamic_type): Update code, following the changes made
12130 to resolve_dynamic_type_internal's interface.
12131 * dwarf2loc.h (struct property_addr_info): New.
12132 (dwarf2_evaluate_property): Replace "address" parameter
12133 by "addr_stack" parameter. Adjust function documentation.
12134 (struct dwarf2_offset_baton): New.
12135 (struct dwarf2_property_baton): Update documentation of
12136 field "referenced_type" to be more general. New field
12137 "offset_info" in union data field.
12138 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12139 parameter by "addr_stack" parameter. Adjust code accordingly.
12140 Add support for PROP_ADDR_OFFSET properties.
12141 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12142 DW_AT_data_member_location attributes as well. Use case
12143 statements instead of if/else condition.
12144
4a0ca9ec
JB
121452015-01-29 Joel Brobecker <brobecker@adacore.com>
12146
12147 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12148 Return zero if PARENT_VALUE is NULL and parent_type's
12149 range type is dynamic.
12150
ddb87a81
JB
121512015-01-29 Joel Brobecker <brobecker@adacore.com>
12152
12153 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12154 nonzero if the type's subtype is dynamic.
12155 (resolve_dynamic_range): Also resolve the range's subtype.
12156
3d7ad9b4 121572015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12158
3d7ad9b4 12159 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12160 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12161
3a8b707a
DE
121622015-01-27 Doug Evans <dje@google.com>
12163
12164 * NEWS: Mention gdb.Objfile.username.
12165 * python/py-objfile.c (objfpy_get_username): New function.
12166 (objfile_getset): Add "username".
12167
d35b90fb
MW
121682015-01-24 Mark Wielaard <mjw@redhat.com>
12169
12170 * stack.c (return_command): Markup warning message with _.
12171
734ae125
DE
121722015-01-24 Doug Evans <xdje42@gmail.com>
12173
12174 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12175
527f3840
JK
121762015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12177
12178 Fix 100x slowdown regression on DWZ files.
12179 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12180 (struct line_header): Add offset and offset_in_dwz.
12181 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12182 (free_line_header_voidp): New declaration.
12183 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12184 functions.
12185 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12186 (handle_DW_AT_stmt_list): Use line_header_hash.
12187 (free_line_header_voidp): New function.
12188 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12189 (dwarf_decode_lines): New parameter decode_mapping, use it.
12190 (dwarf2_free_objfile): Free line_header_hash.
12191
f7e5394d
SM
121922015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12193
12194 PR gdb/17416
12195 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12196 value_ind.
12197
743649fd
MW
121982015-01-15 Mark Wielaard <mjw@redhat.com>
12199
12200 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12201 DW_AT_noreturn.
12202 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12203 calling_convention an 8 bit bit field.
12204 (TYPE_NO_RETURN): New macro.
12205 * infcmd.c (finish_command): Query if function does not return
12206 normally.
12207 * stack.c (return_command): Likewise.
12208
198297aa
PA
122092015-01-23 Pedro Alves <palves@redhat.com>
12210
12211 * linux-nat.c (linux_is_async_p): New macro.
12212 (linux_nat_is_async_p):
12213 (linux_nat_terminal_inferior): Check whether the target can async
12214 instead of whether it is already async.
12215 (linux_nat_terminal_ours): Don't check whether the target is
12216 async.
12217 (linux_async_pipe): Use linux_is_async_p.
12218
253828f1
JK
122192015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12220
12221 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12222 '-ascending'.
12223 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12224 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12225 Sort tp_array using tp_array_compar.
12226 (_initialize_thread): Extend thread_apply_all_command help.
12227
f0e8c4c5
JK
122282015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12229
12230 * corelow.c (core_open): Call also thread_command.
12231 * gdbthread.h (thread_command): New prototype moved from ...
12232 * thread.c (thread_command): ... here.
12233 (thread_command): Make it global.
12234
03b79603
PA
122352015-01-22 Pedro Alves <palves@redhat.com>
12236
12237 * configure.ac [*mingw32*]: Check $curses_found instead of
12238 $prefer_curses.
12239 * configure: Regenerate.
12240 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12241 HAVE_NCURSES_NCURSES_H checks.
12242
6b8a872f
EZ
122432015-01-22 Eli Zaretskii <eliz@gnu.org>
12244
bbbbffbb 12245 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12246 fails with the 1st arg NULL, try again with "unknown". Don't test
12247 the "cup" capability: it isn't supported by the Windows port of
12248 ncurses, but the Windows console driver is still capable of
12249 supporting TUI.
12250
4b62a76e
JK
122512015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12252
12253 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12254
82a864f9
EZ
122552015-01-22 Eli Zaretskii <eliz@gnu.org>
12256
12257 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12258 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12259 reason that "make TAGS" is broken.
12260
b35018fd
CG
122612015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12262
12263 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12264 and check additional store instructions.
12265
ffbc4646
WW
122662015-01-21 Wei-cheng Wang <cole945@gmail.com>
12267
12268 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12269
ddeca1df
WW
122702015-01-21 Wei-cheng Wang <cole945@gmail.com>
12271
12272 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12273 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12274 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12275 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12276 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12277 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12278 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12279 ppc_process_record_op19, ppc_process_record_op31,
12280 ppc_process_record_op59, ppc_process_record_op60,
12281 ppc_process_record_op63): Likewise.
12282
049bb5de
JB
122832015-01-20 Joel Brobecker <brobecker@adacore.com>
12284
12285 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12286 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12287 strerror.
12288
42b87c63 122892015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12290
12291 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12292 ppc_process_record_op31, ppc_process_record_op59,
12293 ppc_process_record_op60, ppc_process_record_op63,
12294 ppc_process_record): Fix -Wformat warning.
12295 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12296 Remove unused variables.
12297
569340fc
CG
122982015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12299
12300 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12301
63413d85
EZ
123022015-01-19 Eli Zaretskii <eliz@gnu.org>
12303
12304 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12305 CONFIG_OBS if not building with a curses library.
12306 * configure: Regenerate.
12307
12308 * windows-termcap.c: Include defs.h. Make the whole body empty if
12309 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12310 HAVE_NCURSES_NCURSES_H is defined.
12311
16d8013c
JB
123122015-01-19 Joel Brobecker <brobecker@adacore.com>
12313
12314 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12315 from end of line to start of next line.
12316
cf90fd9a
WW
123172015-01-17 Wei-cheng Wang <cole945@gmail.com>
12318
12319 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12320 Scan PLT stub backward for reverse debugging.
12321 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12322
b4cdae6f
WW
123232015-01-17 Wei-cheng Wang <cole945@gmail.com>
12324 Ulrich Weigand <uweigand@de.ibm.com>
12325
12326 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12327 gdb_target_obs.
12328 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12329 record.
12330 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12331 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12332 (ppc_linux_init_abi): Set process_record, process_record_signal.
12333 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12334 ppc_linux_record_tdep to gdbarch_tdep.
12335 (ppc_process_record): New declaration.
12336 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12337 ppc_process_record_op19, ppc_process_record_op31,
12338 ppc_process_record_op59, ppc_process_record_op60,
12339 ppc_process_record_op63, ppc_process_record): New functions.
12340
2608dbf8
WW
123412015-01-17 Wei-cheng Wang <cole945@gmail.com>
12342
12343 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12344 rs6000_in_function_epilogue_frame_p and add an argument
12345 for frame_info.
12346 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12347 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12348 New functions.
12349 (rs6000_epilogue_frame_unwind): New.
12350 (rs6000_gdbarch_init): Append epilogue unwinder.
12351
4c347be6
SDJ
123522015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12353
12354 * nat/linux-personality.c: Replace "#ifndef
12355 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12356 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12357 systems.
12358
9f2850ba
EZ
123592015-01-16 Eli Zaretskii <eliz@gnu.org>
12360
6cdb25f4
EZ
12361 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12362 functions.
12363 (_initialize_tui_win) <border-kind, border-mode>:
12364 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12365 (tui_set_tab_width_command): Fix the commentary.
12366
6cdb25f4
EZ
12367 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12368
bf555842
EZ
12369 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12370 Doc fix.
cb86fcc1
EZ
12371 (tui_set_tab_width_command): Delete and recreate the source and
12372 the disassembly windows, to show the effect of the changed tab
12373 size immediately.
bf555842 12374
9f2850ba
EZ
12375 * tui/tui-data.h (LINE_PREFIX): Make shorter
12376 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12377 "Thread NNNNN.XXXX" thread ID notation on Windows.
12378
95761b2d
JK
123792015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12380
12381 Fix gcc-5 compilation.
12382 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12383
8cc73a39
SDJ
123842015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12385
12386 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12387 (linux-personality.o): New rule.
12388 * common/common-defs.h: Include <stdint.h>.
12389 * config/aarch64/linux.mh (NATDEPFILES): Include
12390 linux-personality.o.
12391 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12392 * config/arm/linux.mh (NATDEPFILES): Likewise.
12393 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12394 * config/i386/linux.mh (NATDEPFILES): Likewise.
12395 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12396 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12397 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12398 * config/mips/linux.mh (NATDEPFILES): Likewise.
12399 * config/pa/linux.mh (NATDEPFILES): Likewise.
12400 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12401 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12402 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12403 * config/s390/linux.mh (NATDEPFILES): Likewise.
12404 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12405 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12406 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12407 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12408 * defs.h: Remove #include <stdint.h> (moved to
12409 common/common-defs.h).
12410 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12411 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12412 nat/linux-personality.c).
12413 (linux_nat_create_inferior): Remove code to disable address space
12414 randomization (moved to nat/linux-personality.c). Create cleanup
12415 to disable address space randomization.
12416 * nat/linux-personality.c: New file.
12417 * nat/linux-personality.h: Likewise.
12418
fb23d554
SDJ
124192015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12420
12421 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12422 common/posix-strerror.c.
12423 (posix-strerror.o): New rule.
12424 (mingw-strerror.o): Likewise.
12425 * common/common-utils.h (safe_strerror): Move prototype to here,
12426 from utils.h.
12427 * common/common.host: New file.
12428 * common/mingw-strerror.c: Likewise.
12429 * common/posix-strerror.c: Likewise.
12430 * configure: Regenerated.
12431 * configure.ac: Source common/common.host. Add variable
12432 common_host_obs to gdb_host_obs.
12433 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12434 gdb/common/posix-strerror.c when warning about the use of
12435 strerror.
12436 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12437 common/mingw-strerror.c.
12438 * posix-hdep.c (safe_strerror): Remove definition; move it to
12439 common/posix-hdep.c.
12440 * utils.h (safe_strerror): Remove prototype; move to
12441 common/common-utils.h.
12442
3af8af43
JB
124432015-01-15 Joel Brobecker <brobecker@adacore.com>
12444
12445 GDB 7.8.2 released.
12446
bafffb51
JB
124472015-01-15 Joel Brobecker <brobecker@adacore.com>
12448
12449 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12450 ___XA type if the array has already been fixed.
12451
cdf43629
YQ
124522015-01-14 Yao Qi <yao@codesourcery.com>
12453
12454 * Makefile.in (ppc-linux.o): New rule.
12455 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12456 * configure.ac: AC_CHECK_FUNCS(getauxval).
12457 * config.in: Re-generated.
12458 * configure: Re-generated.
12459 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12460 Declare.
12461 * nat/ppc-linux.c: New file.
12462 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12463 Call ppc64_64bit_inferior_p.
12464
514c5338
YQ
124652015-01-14 Yao Qi <yao@codesourcery.com>
12466
12467 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12468 nat/ppc-linux.h.
12469 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12470 (PPC_FEATURE_HAS_DFP): Likewise.
12471 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12472 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12473 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12474 Include "nat/ppc-linux.h".
12475 * nat/ppc-linux.h: New file.
12476 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12477
5589af0e
PA
124782015-01-14 Pedro Alves <palves@redhat.com>
12479
12480 PR gdb/17525
12481 * breakpoint.c: Include "interps.h".
12482 (bpstat_do_actions_1): Also check whether the interpreter is
12483 async.
12484
6c400b59
PA
124852015-01-14 Pedro Alves <palves@redhat.com>
12486
12487 PR cli/17828
12488 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12489 reinstall if the interpreter is sync.
12490
e02c96a7
DE
124912015-01-13 Doug Evans <dje@google.com>
12492
12493 * objfiles.c (objfile_filename): New function.
12494 * objfiles.h (objfile_filename): Declare it.
12495 (objfile_name): Add function comment.
12496 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12497 bfd file name (which may be realpath'd), and the original name.
12498
3b2f13ff
JB
124992015-01-13 Joel Brobecker <brobecker@adacore.com>
12500
12501 * NEWS: Create a new section for the next release branch.
12502 Rename the section of the current branch, now that it has
12503 been cut.
12504
b4cfe7f8
JB
125052015-01-13 Joel Brobecker <brobecker@adacore.com>
12506
12507 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12508 * version.in: Bump version to 7.9.50.DATE-cvs.
12509
92fc2e69
JB
125102015-01-13 Joel Brobecker <brobecker@adacore.com>
12511
12512 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12513 Remove trailing new-line in argument of call to warning.
12514
f71f0b0d
JB
125152015-01-13 Joel Brobecker <brobecker@adacore.com>
12516
12517 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12518 new-line in argument of call to "warning".
12519
04dccad0
JB
125202015-01-13 Joel Brobecker <brobecker@adacore.com>
12521
12522 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12523 in static block, then try searching for primitive types.
12524
08b13bdd
PP
125252015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12526
12527 * top.h (gdb_add_history): Declare.
12528 * top.c (command_count): New variable.
12529 (gdb_add_history): New function.
12530 (gdb_safe_append_history): New static function.
12531 (quit_force): Call it.
12532 (command_line_input): Use gdb_add_history instead of
12533 add_history.
12534 * event-top.c (command_line_handler): Likewise.
12535
4ac15b59
JC
125362015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12537
12538 PR gdb/17046
12539 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12540 <setjmp.h> #include.
12541
005e54bb
DE
125422015-01-11 Doug Evans <xdje42@gmail.com>
12543
12544 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12545
439250fb
DE
125462015-01-11 Doug Evans <xdje42@gmail.com>
12547
12548 PR gdb/15830
12549 * NEWS: The "maint demangle" command is renamed as "demangle".
12550 * demangle.c: #include cli/cli-utils.h, language.h.
12551 (demangle_command): New function.
12552 (_initialize_demangle): Add new command "demangle".
12553 * maint.c (maintenance_demangle): Stub out.
12554 (_initialize_maint_cmds): Update help text for "maint demangle",
12555 and mark as deprecated.
12556
ebf3aa72
MK
125572015-01-11 Mark Kettenis <kettenis@gnu.org>
12558
12559 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12560 inferior_thread is a function.
12561
6bf045cd
PP
125622015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12563
12564 * Makefile.in (.y.c): Don't munge yacc's #line
12565 directives.
12566
588dcc3e
PP
125672015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12568
12569 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12570 to prompt for input.
12571 * tui/tui-hooks.c (tui_query_hook): Remove.
12572 (tui_install_hooks): Don't set deprecated_query_hook.
12573 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12574 height calculation. Always update the command window's cur_line.
12575
9c02b525
PA
125762015-01-09 Pedro Alves <palves@redhat.com>
12577
12578 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12579 function.
12580 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12581 declaration.
12582 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12583 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12584 stop_reason.
12585 (check_stopped_by_watchpoint): New function.
12586 (save_sigtrap): Reimplement.
12587 (linux_nat_stopped_by_watchpoint): Adjust.
12588 (linux_nat_lp_status_is_event): Delete.
12589 (stop_wait_callback): Only call save_sigtrap after storing the
12590 pending status.
12591 (status_callback): If the thread had been stopped for a breakpoint
12592 that has since been removed, discard the event and resume the LWP.
12593 (count_events_callback, select_event_lwp_callback): Use
12594 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12595 (cancel_breakpoint): Rename to ...
12596 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12597 stopped for a software breakpoint or hardware breakpoint.
12598 (select_event_lwp): Only give preference to the stepping LWP in
12599 all-stop mode. Adjust comments.
12600 (stop_and_resume_callback): Remove references to new_pending_p.
12601 (linux_nat_filter_event): Likewise. Leave exit events of the
12602 leader thread pending here. Handle signal short circuiting here.
12603 Only call save_sigtrap after storing the pending waitstatus.
12604 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12605 new_pending. Don't handle leaving events the caller is not
12606 interested in pending here, nor handle signal short-circuiting
12607 here. Also give equal priority to all LWPs that have had events
12608 in non-stop mode. If reporting a software breakpoint event,
12609 unadjust the LWP's PC.
12610 * linux-nat.h (enum lwp_stop_reason): New.
12611 (struct lwp_info) <stop_pc>: New field.
12612 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12613 (struct lwp_info) <stop_reason>: New field.
12614 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12615
8af756ef
PA
126162015-01-09 Pedro Alves <palves@redhat.com>
12617
12618 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12619 Set the LWP's 'resumed' flag.
12620
8a99810d
PA
126212015-01-09 Pedro Alves <palves@redhat.com>
12622
12623 * linux-nat.c (linux_resume_one_lwp): New function.
12624 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12625 (linux_nat_resume): Use lwp_status_pending_p and
12626 linux_resume_one_lwp.
12627 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12628 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12629 (status_callback, running_callback): Use lwp_status_pending_p.
12630 (lwp_status_pending_p): New function.
12631 (stop_and_resume_callback): Use lwp_status_pending_p.
12632 (linux_nat_filter_event): Use linux_resume_one_lwp.
12633 (linux_nat_wait_1): Always use status_callback to look for an LWP
12634 with a pending status. Use linux_resume_one_lwp.
12635 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12636 linux_resume_one_lwp.
12637
f7ce857f
PA
126382015-01-09 Pedro Alves <palves@redhat.com>
12639
12640 * breakpoint.c (bp_location_inserted_here_p): New function,
12641 factored out from ...
12642 (breakpoint_inserted_here_p): ... here. Use
12643 ALL_BP_LOCATIONS_AT_ADDR.
12644 (software_breakpoint_inserted_here_p): Use
12645 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12646
c1a747c1
PA
126472014-01-09 Pedro Alves <palves@redhat.com>
12648
12649 Skip enabling event reporting if the kernel supports
12650 PTRACE_EVENT_CLONE.
12651 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12652 (thread_db_use_events): New function.
12653 (try_thread_db_load_1): Check thread_db_use_events before enabling
12654 event reporting.
12655 (update_thread_state): New function.
12656 (attach_thread): Use it. Check thread_db_use_events before
12657 enabling event reporting.
12658 (thread_db_detach): Check thread_db_use_events before disabling
12659 event reporting.
12660 (find_new_threads_callback): Check thread_db_use_events before
12661 enabling event reporting. Update the thread's state if not using
12662 libthread_db events.
12663
a33e3959
PA
126642015-01-09 Pedro Alves <palves@redhat.com>
12665
12666 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12667 about to wait for is > 0.
12668 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12669 the kernel thread ID is -1.
12670
8784d563
PA
126712015-01-09 Pedro Alves <palves@redhat.com>
12672
12673 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12674 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12675 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12676 ptrace option flags.
12677 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12678 field.
12679 * nat/linux-procfs.c: Include <dirent.h>.
12680 (linux_proc_get_int): New parameter "warn". Handle it.
12681 (linux_proc_get_tgid): Adjust.
12682 (linux_proc_get_tracerpid): Rename to ...
12683 (linux_proc_get_tracerpid_nowarn): ... this.
12684 (linux_proc_pid_get_state): New function, factored out from
12685 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12686 and handle it.
12687 (linux_proc_pid_is_gone): New function.
12688 (linux_proc_pid_is_stopped): Adjust.
12689 (linux_proc_pid_is_zombie_maybe_warn)
12690 (linux_proc_pid_is_zombie_nowarn): New functions.
12691 (linux_proc_pid_is_zombie): Use
12692 linux_proc_pid_is_zombie_maybe_warn.
12693 (linux_proc_attach_tgid_threads): New function.
12694 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12695 (linux_proc_get_tracerpid): Rename to ...
12696 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12697 (linux_proc_pid_is_gone): New declaration.
12698 (linux_proc_pid_is_zombie): Update comment.
12699 (linux_proc_pid_is_zombie_nowarn): New declaration.
12700 (linux_proc_attach_lwp_func): New typedef.
12701 (linux_proc_attach_tgid_threads): New declaration.
12702 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12703 use nowarn functions.
12704 (linux_ptrace_attach_fail_reason_string): Move here from
12705 gdbserver/linux-low.c and rename.
12706 (ptrace_supports_feature): If the current ptrace options are not
12707 known yet, check them now, instead of asserting.
12708 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12709 Declare.
12710
883ed13e
PA
127112015-01-09 Pedro Alves <palves@redhat.com>
12712
12713 * linux-thread-db.c (thread_db_find_new_threads_silently)
12714 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12715 (find_new_threads_once): Print debug output on gdb_stdlog.
12716
1710aab8
CG
127172015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12718 Pedro Alves <palves@redhat.com>
12719
12720 * compile/compile.c: Include "gdb_wait.h".
12721 (do_rmdir): Check return value, and free 'zap'.
12722
b597c318
YQ
127232015-01-08 Pedro Alves <palves@redhat.com>
12724 Yao Qi <yao@codesourcery.com>
12725
12726 * dwarf2loc.c (indirect_pieced_value): Don't call
12727 gdb_sign_extend. Call extract_signed_integer instead.
12728 * utils.c (gdb_sign_extend): Remove.
12729 * utils.h (gdb_sign_extend): Remove declaration.
12730
025ac414
PM
127312015-01-07 Pierre Muller <muller@sourceware.org>
12732
12733 PR symtab/17811
12734 * stabsread.c (define_symbol): Set language for C++ special symbols.
12735
fa5af12a
PP
127362015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12737
12738 * inflow.c (initial_gdb_ttystate): Tweak comment.
12739
ea42d6f8
JB
127402015-01-07 Joel Brobecker <brobecker@adacore.com>
12741
12742 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12743 comment documenting function.
12744
6a06d660
PP
127452015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12746
12747 * terminal.h (set_initial_gdb_ttystate): Declare.
12748 * inflow.c (initial_gdb_ttystate): New static variable.
12749 (set_initial_gdb_ttystate): New setter.
12750 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12751 instead of our current terminal state.
12752 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12753
e810d75b
JB
127542015-01-07 Joel Brobecker <brobecker@adacore.com>
12755
12756 * guile/scm-type.c (tyscm_array_1): Add comment.
12757 * python/py-type.c (typy_array_1): Add comment.
12758
fce10a84
JB
127592015-01-06 Joel Brobecker <brobecker@adacore.com>
12760
12761 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12762 error if N2 is equal to N1 - 1.
12763
8503d6e1
JB
127642015-01-06 Joel Brobecker <brobecker@adacore.com>
12765
12766 * python/py-type.c (typy_array_1): Do not raise negative-length
12767 exception if N2 is equal to N1 - 1.
12768
4d29c0a8
DE
127692015-01-03 Doug Evans <xdje42@gmail.com>
12770
12771 * c-exp.y: Whitespace cleanup.
12772 (classify_inner_name): Remove extra ;.
12773
eaa6a9a4
MR
127742015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12775
12776 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12777 offset signed.
12778
02fe9972
DE
127792015-01-02 Doug Evans <dje@google.com>
12780
12781 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12782
e2ada9cb
DE
127832015-01-02 Doug Evans <dje@google.com>
12784
12785 * symtab.h (struct symbol): Fix typo in comment.
12786
32d0add0
JB
127872015-01-01 Joel Brobecker <brobecker@adacore.com>
12788
12789 Update year range in copyright notice of all files.
12790
76f2b779
JB
127912015-01-01 Joel Brobecker <brobecker@adacore.com>
12792
12793 * top.c (print_gdb_version): Update copyright year to 2015.
12794
077309e2 127952015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12796
077309e2 12797 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12798
077309e2 12799For older changes see ChangeLog-2014.
c906108c
SS
12800\f
12801Local Variables:
12802mode: change-log
12803left-margin: 8
12804fill-column: 74
12805version-control: never
57da7796 12806coding: utf-8
c906108c 12807End:
This page took 2.331477 seconds and 4 git commands to generate.