Do not pass NULL for the string in catch_errors
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
2
3 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
4 catch_errors call instead of NULL.
5
6 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
9 char pointer to scm_mode_bits.
10
11 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
14 cast.
15
16 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
19 "data" local variable and use it.
20
21 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
24 domain_enum cast.
25 (gdbscm_lookup_symbol): Likewise.
26
27 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
28
29 * d-exp.y: Remove an obsolete comment and propagate the block
30 information to the produced expression.
31
32 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
35 cast.
36 (tui_add_content_elements): Likewise.
37
38 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * cli/cli-setshow.c (do_set_command): Constify p.
41
42 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
45 (void *) cast with (gdb_byte *).
46
47 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * proc-service.c (ps_pdread): Add cast.
50
51 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
54 valbuf.
55
56 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
59 (ia64_push_dummy_call): Remove cast and change type of "to" to
60 array of gdb_byte.
61
62 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
65
66 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
67
68 * observer.h (observer_${event}_notification_stub): Add cast.
69
70 2015-10-23 Yao Qi <yao.qi@linaro.org>
71
72 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
73 dsd.insn_count to zero.
74
75 2015-10-22 Pedro Alves <palves@redhat.com>
76
77 * infrun.c (stop_after_trap): Delete.
78 (clear_proceed_status, handle_signal_stop, struct
79 infcall_control_state, save_infcall_control_state)
80 (restore_infcall_control_state): Remove references to
81 stop_after_trap.
82
83 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
84
85 * python/python.c (_initialize_python): Add cast.
86
87 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
88
89 * nto-tdep.c (nto_inferior_data): Add cast.
90
91 2015-10-22 Pedro Alves <palves@redhat.com>
92
93 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
94 windows_wait and windows_resume directly instead of
95 wait_for_inferior and resume.
96
97 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * xtensa-tdep.h (XTREG): Add casts.
100 (XTREG_END): Likewise.
101
102 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
105
106 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
109
110 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
113 buf to gdb_byte*.
114 (supply_32bit_reg): Add cast.
115 (mips64_fill_gregset): Likewise.
116
117 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
118
119 PR python/18073
120 * python/py-type.c (typy_get_composite): Allow returning a
121 function type.
122
123 2015-10-21 Keven Boell <keven.boell@intel.com>
124
125 * dwarf2read.c (set_die_type): Add read of
126 DW_AT_allocated and DW_AT_associated.
127 * f-typeprint.c: New include of typeprint.h
128 (f_print_type): Add check for allocated/associated
129 status of type.
130 (f_type_print_varspec_suffix): Add check for
131 * gdbtypes.c (create_array_type_with_stride):
132 Add check for valid data location of type in
133 case allocated or associated attributes are set.
134 Length of an array should be only calculated if
135 allocated or associated is resolved as true.
136 (is_dynamic_type_internal): Add check for allocated/
137 associated.
138 (resolve_dynamic_array): Evaluate allocated/associated
139 properties.
140 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
141 <DYN_PROP_ASSOCIATED>: New enums.
142 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
143 (type_not_allocated): New function.
144 (type_not_associated): New function.
145 * valarith.c (value_subscripted_rvalue): Add check for
146 allocated/associated.
147 * valprint.c: New include of typeprint.h.
148 (valprint_check_validity): Add check for allocated/associated.
149 (value_check_printable): Add check for allocated/
150 associated.
151 * typeprint.h (val_print_not_allocated): New function.
152 (val_print_not_associated): New function.
153 * typeprint.c (val_print_not_allocated): New function.
154 (val_print_not_associated): New function.
155
156 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
157
158 * Makefile.in: Add arm.c/o.
159 * arch/arm.c: New file.
160 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
161 (MAKE_THUMB_ADDR): Likewise.
162 (UNMAKE_THUMB_ADDR): Likewise.
163 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
164 (IS_THUMB_ADDR): Move to arm.h.
165 (MAKE_THUMB_ADDR): Likewise.
166 (UNMAKE_THUMB_ADDR): Likewise.
167 * configure.tgt: Add arm.o to all ARM configs.
168
169 2015-10-21 Yao Qi <yao.qi@linaro.org>
170
171 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
172 Remove argument exp_vCont_s.
173 * gdb.base/range-stepping.exp: Callers updated.
174 * gdb.trace/range-stepping.exp: Likewise.
175
176 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
177
178 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
179 (nto_sniff_abi_note_section): New function.
180 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
181 binary.
182
183 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
184
185 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
186 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
187 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
188 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
189 New functions.
190 (_initialize_nto_tdep): New forward declaration, new function.
191 * nto-tdep.h (struct nto_inferior_data): New struct.
192 (nto_inferior_data): New function declaration.
193
194 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 * findvar.c (address_from_register): Check REGNUM validity.
197
198 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
199
200 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
201 (init_procfs_targets): Wire new function.
202
203 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
204
205 * nto-procfs.c (sys/auxv.h): Include.
206 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
207 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
208 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
209
210 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
211
212 * nto-procfs.c (nto_procfs_path): Rename to...
213 (nodestr): ... this, and change type.
214 (nto_node): Use new variable and logic accordingly.
215 (procfs_open_1): Use new variable name. Use local buffer to construct
216 procfrs path.
217 (procfs_pidlist): Use NODESTR to construct procfs path.
218 (procfs_files_info): Use NODESTR to output meaningful text.
219 (do_attach): Construct procfs using NODESTR.
220 (procfs_create_inferior): Compare pointer to NULL.
221
222 2015-10-19 Josh Stone <jistone@redhat.com>
223
224 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
225 return state, even when not actively catching syscalls at all.
226 (linux_handle_extended_wait): Mark syscall_state like an entry.
227 (wait_lwp): Set syscall_state ignored for other traps.
228 (linux_nat_filter_event): Likewise.
229
230 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
231
232 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
233 when handling 'E', 'T', 'S', 'X' and 'W' packets.
234 Do not set rs->waiting_for_stop_reply back to 1.
235
236 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
237
238 * nto-procfs.c (common/filestuff.h): Include.
239 (procfs_can_use_hw_breakpoint): Fix enum name.
240 (procfs_open_1): Fix compiler warning.
241 (procfs_pidlist): Make static.
242 (procfs_meminfo): Make static, fix type name, add missing argument.
243 (procfs_store_registers): Make static.
244 (procfs_thread_info): Remove unused function.
245 (_initialize_procfs): Forward declare.
246
247 2015-10-16 Yao Qi <yao.qi@arm.com>
248
249 * MAINTAINERS: Update my email address.
250
251 2015-10-15 Yao Qi <yao.qi@linaro.org>
252
253 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
254 Call gdbarch_breakpoint_from_pc to instruction length.
255 (aarch64_linux_remove_hw_breakpoint): Likewise.
256 * common/common-regcache.h (regcache_register_size): Declare.
257 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
258 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
259 the process is 32bit, otherwise set alignment to 4.
260 (aarch64_handle_breakpoint): Update comments.
261 * regcache.c (regcache_register_size): New function.
262
263 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
264
265 * gdbarch.sh (core_regset_section): Remove.
266 * gdbarch.h: Regenerate.
267
268 2015-10-14 Yao Qi <yao.qi@linaro.org>
269
270 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
271 out of it.
272 (enum aarch64_memory_operand_type): New.
273
274 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
275
276 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
277
278 2015-10-13 Pedro Alves <palves@redhat.com>
279
280 * ada-lang.c (ada_enum_name): Constify local.
281 * ada-typeprint.c (print_range_bound): Constify locals.
282 * c-varobj.c (c_describe_child): Likewise.
283 * cli/cli-setshow.c (do_set_command): Likewise.
284 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
285 * dwarf2read.c (find_file_and_directory): Likewise.
286 (anonymous_struct_prefix, dwarf2_name): Likewise.
287 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
288 * go-lang.c (unpack_mangled_go_symbol): Likewise.
289 * jv-typeprint.c (java_type_print_base): Likewise.
290 * ser-tcp.c (net_open): Likewise.
291 * symfile.c (deduce_language_from_filename): Likewise.
292 * symtab.c (gdb_mangle_name): Likewise.
293 * tui/tui-io.c (tui_redisplay_readline): Likewise.
294
295 2015-10-13 Pedro Alves <palves@redhat.com>
296
297 * infrun.c (restore_execution_direction): New function.
298 (fetch_inferior_event): Use it instead of
299 make_cleanup_restore_integer.
300 (execution_direction): Change type to enum
301 exec_direction_kind.
302 * infrun.h (execution_direction): Likewise.
303
304 2015-10-13 Pedro Alves <palves@redhat.com>
305
306 * ada-lang.c (ada_value_primitive_packed_val): Constify
307 locals. Use value_contents_writeable. Remove casts.
308
309 2015-10-13 Pedro Alves <palves@redhat.com>
310
311 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
312 and alloca calls.
313
314 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
317 write_memory with write_memory_unsigned_integer.
318
319 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * solib-dsbt.c (cmp_name): Constify arguments.
322 * solib-frv.c (cmp_name): Likewise.
323 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
324 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
325 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
326 (gdb_bfd_lookup_symbol): Likewise.
327 * solib.h (gdb_bfd_lookup_symbol): Likewise.
328 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
329
330 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * stack.c (parse_frame_specification): Remove message parameter,
333 replace with fixed string in function body, update function
334 comment.
335 (frame_info): Remove message to parse_frame_specification.
336 (select_frame_command): Likewise.
337
338 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * stack.c (parse_frame_specification): Delete.
341 (parse_frame_specification_1): Rename to
342 parse_frame_specification.
343 (frame_info): Use parse_frame_specification.
344 (select_frame_command): Likewise.
345 (return_command): Use select_frame and print_stack_frame rather
346 than frame_command and select_frame_command.
347 (func_command): Use get_current_frame rather than
348 parse_frame_specification.
349
350 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * stack.c (func_command): Return early when there is no ARG
353 string.
354
355 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * stack.c: Include safe-ctype.h not ctype.h.
358 (parse_frame_specification): Use ISSPACE not isspace.
359 (backtrace_command): Use TOLOWER not tolower.
360
361 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * mep-tdep.c (current_me_module): Add cast.
364 (mep_gdbarch_init): Likewise.
365
366 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
367
368 * m32c-tdep.c (m32c_move_reg_t): Replace with...
369 (m32c_write_reg_t): ...this and...
370 (m32c_read_reg_t): ...this.
371 (struct m32c_reg): Update types of read and write.
372 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
373 adjust definition.
374 (m32c_banked_read): Likewise.
375 (m32c_sb_read): Likewise.
376 (m32c_part_read): Likewise.
377 (m32c_cat_read): Likewise.
378 (m32c_r3r2r1r0_read): Likewise.
379 (m32c_raw_write): Change declaration type to m32c_write_reg_t
380 and adjust definition.
381 (m32c_banked_write): Likewise.
382 (m32c_sb_write): Likewise.
383 (m32c_part_write): Likewise.
384 (m32c_cat_write): Likewise.
385 (m32c_r3r2r1r0_write): Likewise.
386
387 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
390
391 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
394 gdb_sys_no_syscall instead of -1.
395
396 2015-10-12 Yao Qi <yao.qi@linaro.org>
397
398 * NEWS: Mention the change.
399
400 2015-10-12 Yao Qi <yao.qi@linaro.org>
401
402 * arch/aarch64-insn.c (emit_load_store): Rename to ...
403 (aarch64_emit_load_store): ... it. All callers updated.
404
405 2015-10-12 Yao Qi <yao.qi@linaro.org>
406
407 * arch/aarch64-insn.c (emit_insn): Rename to ...
408 (aarch64_emit_insn): ... it. All callers updated.
409
410 2015-10-12 Yao Qi <yao.qi@linaro.org>
411
412 * aarch64-linux-tdep.c: Include arch-utils.h.
413 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
414 set_gdbarch_displaced_step_copy_insn,
415 set_gdbarch_displaced_step_fixup,
416 set_gdbarch_displaced_step_free_closure,
417 set_gdbarch_displaced_step_location,
418 and set_gdbarch_displaced_step_hw_singlestep.
419 * aarch64-tdep.c (struct displaced_step_closure): New.
420 (struct aarch64_displaced_step_data): New.
421 (aarch64_displaced_step_b): New function.
422 (aarch64_displaced_step_b_cond): Likewise.
423 (aarch64_register): Likewise.
424 (aarch64_displaced_step_cb): Likewise.
425 (aarch64_displaced_step_tb): Likewise.
426 (aarch64_displaced_step_adr): Likewise.
427 (aarch64_displaced_step_ldr_literal): Likewise.
428 (aarch64_displaced_step_others): Likewise.
429 (aarch64_displaced_step_copy_insn): Likewise.
430 (aarch64_displaced_step_fixup): Likewise.
431 (aarch64_displaced_step_hw_singlestep): Likewise.
432 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
433 (aarch64_displaced_step_copy_insn): Declare.
434 (aarch64_displaced_step_fixup): Declare.
435 (aarch64_displaced_step_hw_singlestep): Declare.
436 * arch/aarch64-insn.c (emit_insn): Moved from
437 gdbserver/linux-aarch64-low.c.
438 (emit_load_store): Likewise.
439 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
440 gdbserver/linux-aarch64-low.c.
441 (struct aarch64_register): Likewise.
442 (struct aarch64_memory_operand): Likewise.
443 (ENCODE): Likewise.
444 (can_encode_int32): New macro.
445 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
446 (emit_tb, emit_nop): Likewise.
447 (emit_insn): Declare.
448 (emit_load_store): Declare.
449
450 2015-10-12 Yao Qi <yao.qi@linaro.org>
451
452 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
453 gdbserver/linux-aarch64-low.c.
454 (aarch64_relocate_instruction): Likewise.
455 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
456 (struct aarch64_insn_data): Moved from
457 gdbserver/linux-aarch64-low.c.
458 (struct aarch64_insn_visitor): Likewise.
459 (aarch64_relocate_instruction): Declare.
460
461 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
462
463 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
464 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
465 to the returned value.
466
467 2015-10-09 Joel Brobecker <brobecker@adacore.com>
468
469 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
470 is large enough for BIT_SIZE. Update function comment.
471
472 2015-10-09 Joel Brobecker <brobecker@adacore.com>
473
474 * ada-lang.c (ada_value_primitive_packed_val): Move
475 src_len variable to local block where used. Override
476 BIT_SIZE if bigger than size of resolved type.
477
478 2015-10-09 Joel Brobecker <brobecker@adacore.com>
479
480 * gdbtypes.h (is_scalar_type): Add extern declaration.
481 * gdbtypes.c (is_scalar_type): Make non-static.
482 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
483 to compute IS_SCALAR instead of doing it ourselves.
484
485 2015-10-09 Joel Brobecker <brobecker@adacore.com>
486
487 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
488 of case where TYPE is dynamic.
489
490 2015-10-09 Joel Brobecker <brobecker@adacore.com>
491
492 * ada-lang.c (ada_unpack_from_contents): New function,
493 extracted from ada_value_primitive_packed_val.
494 (ada_value_primitive_packed_val): Replace extracted out code
495 by call to ada_unpack_from_contents.
496
497 2015-10-09 Joel Brobecker <brobecker@adacore.com>
498
499 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
500 variable declarations.
501
502 2015-10-09 Joel Brobecker <brobecker@adacore.com>
503
504 * ada-lang.c (ada_value_primitive_packed_val): Change the type
505 of local variables src and unpacked to "gdb_type *" instead of
506 "unsigned char *".
507
508 2015-10-09 Joel Brobecker <brobecker@adacore.com>
509
510 * ada-lang.c (ada_value_primitive_packed_val): Make the name
511 of various local variables more explicit and consistent.
512 No real code change otherwise.
513
514 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
515
516 * i386-tdep.h (struct gdbarch_tdep): Change type of
517 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
518
519 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
520
521 * cris-tdep.c (struct instruction_environment): Change type of
522 byte_order to enum bfd_endian.
523
524 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
525
526 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
527 enum gdb_syscall casts.
528
529 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
530
531 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
532 * arm-tdep.c (struct stack_item): Likewise.
533 (push_stack_item): Add gdb_byte* cast.
534 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
535 (push_stack_item): Add gdb_byte* cast.
536 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
537 and add cast.
538 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
539 (push_stack_item): Add gdb_byte* cast.
540 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
541 add cast.
542 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
543 gdb_byte*.
544 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
545 gdb_byte* and remove unnecessary cast.
546 (h8300h_extract_return_value): Likewise.
547 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
548 (h8300h_store_return_value): Likewise.
549 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
550 gdb_byte* and remove unnecessary cast.
551 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
552 and add cast.
553 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
554 gdb_byte* and remove unnecessary cast.
555 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
556 valbuf.
557 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
558 (mep_pseudo_cr64_read): Likewise.
559 (mep_pseudo_csr_write): Likewise.
560 (mep_pseudo_cr32_write): Likewise.
561 (mep_pseudo_cr64_write): Likewise.
562 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
563 gdb_byte* and add cast.
564 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
565 gdb_byte* and remove unnecessary cast.
566 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
567 valbuf.
568 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
569 gdb_byte*.
570 * printcmd.c (void): Likewise.
571 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
572 gdb_byte* and add cast.
573 (infpy_write_memory): Likewise.
574 (infpy_search_memory): Likewise.
575 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
576 and add cast.
577 (regcache_raw_write_unsigned): Likewise.
578 (regcache_cooked_write_signed): Likewise.
579 (regcache_cooked_write_unsigned): Likewise.
580 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
581 gdb_byte*.
582
583 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
584
585 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
586 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
587
588 2015-10-09 Eli Zaretskii <eliz@gnu.org>
589
590 * stack.c (print_stack_frame):
591 * utils.c (printchar): Fix typos in commentary.
592
593 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
594
595 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
596 (PostfixExpression): Support `expr.sizeof' expressions.
597 (PrimaryExpression): Support `typeof(expr)' expressions.
598
599 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
600
601 * MAINTAINERS: Update my email address.
602
603 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
604
605 * record-btrace.c (record_btrace_resume): Fix void return.
606
607 2015-10-07 Yao Qi <yao.qi@linaro.org>
608
609 * aarch64-tdep.c: Include opcode/aarch64.h.
610 (submask): Move it above.
611 (bit): Likewise.
612 (bits): Likewise.
613 (aarch64_software_single_step): Call aarch64_decode_insn.
614 Decode instruction by aarch64_inst instead of using
615 aarch64_decode_bcond and decode_masked_match.
616
617 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
618
619 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
620 only when the file is binary.
621
622 2015-10-02 James Bowman <james.bowman@ftdichip.com>
623
624 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
625 subroutine handling.
626
627 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
628
629 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
630
631 2015-09-30 Doug Evans <dje@google.com>
632
633 * dwarf2read.c (setup_type_unit_groups): Add comment.
634
635 2015-09-30 Pedro Alves <palves@redhat.com>
636
637 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
638 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
639 (x86_linux_create_target): Don't install
640 x86_linux_always_non_stop_p.
641
642 2015-09-30 Don Breazeal <donb@codesourcery.com>
643
644 * remote.c (remote_parse_stop_reply): Call strprefix instead
645 of strncmp.
646
647 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
648
649 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
650 * gdbarch.h: Regenerate.
651 * i386-tdep.c (i386_gdbarch_init): Remove cast to
652 struct gdbarch_tdep_info *.
653 * mips-tdep.c (mips_gdbarch_init): Likewise.
654 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
655 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
656 * spu-multiarch.c (spu_gdbarch): Likewise.
657
658 2015-09-30 Kevin Buettner <kevinb@redhat.com>
659
660 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
661 record a NULL value.
662
663 2015-09-29 Kevin Buettner <kevinb@redhat.com>
664
665 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
666 and union arguments the same as pointer arguments when determining
667 size of argument.
668
669 2015-09-29 James Bowman <james.bowman@ftdichip.com>
670
671 * ft32-tdep.c: #include "opcode/ft32.h".
672 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
673 (ft32_analyze_prologue): Use FT32_* macros.
674
675 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
676
677 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
678 comment.
679
680 2015-09-28 Doug Evans <dje@google.com>
681
682 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
683
684 2015-09-28 Doug Evans <dje@google.com>
685
686 * common/filestuff.c (make_cleanup_close): Update comment.
687
688 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * btrace.c (parse_xml_btrace_block): Fix cast of
691 xml_find_attribute's return value.
692 * memory-map.c (memory_map_start_memory): Likewise.
693 * solib-svr4.c (library_list_start_library): Likewise.
694 * solib-target.c (library_list_start_segment): Likewise.
695 (library_list_start_section): Likewise.
696 * tracepoint.c (traceframe_info_start_memory): Likewise.
697
698 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
699
700 * d-namespace.c (d_lookup_symbol): New arg langdef.
701 All callers updated. Support looking up symbol as a primitive type.
702 (lookup_module_scope): New arg langdef. All callers updated.
703 Call d_lookup_symbol directly for simple bare symbols.
704
705 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
706
707 * macrocmd.c (print_macro_callback): Add cast(s).
708 * macrotab.c (macro_bcache_str): Likewise.
709 (new_macro_definition): Likewise.
710 * main.c (captured_main): Likewise.
711 * maint.c (print_bfd_section_info): Likewise.
712 * mdebugread.c (mdebug_build_psymtabs): Likewise.
713 (basic_type): Likewise.
714 * memattr.c (mem_region_cmp): Likewise.
715 * memory-map.c (memory_map_start_memory): Likewise.
716 (memory_map_end_memory): Likewise.
717 (memory_map_start_property): Likewise.
718 (memory_map_end_property): Likewise.
719 (clear_result): Likewise.
720 * memrange.c (compare_mem_ranges): Likewise.
721 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
722 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
723 * mi/mi-console.c (mi_console_file_delete): Likewise.
724 (mi_console_file_fputs): Likewise.
725 (mi_console_raw_packet): Likewise.
726 (mi_console_file_flush): Likewise.
727 (mi_console_set_raw): Likewise.
728 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
729 (mi_new_thread): Likewise.
730 (mi_thread_exit): Likewise.
731 (mi_record_changed): Likewise.
732 (mi_inferior_added): Likewise.
733 (mi_inferior_appeared): Likewise.
734 (mi_inferior_exit): Likewise.
735 (mi_inferior_removed): Likewise.
736 (mi_interp_data): Likewise.
737 (mi_on_normal_stop): Likewise.
738 (mi_traceframe_changed): Likewise.
739 (mi_tsv_created): Likewise.
740 (mi_tsv_deleted): Likewise.
741 (mi_tsv_modified): Likewise.
742 (mi_breakpoint_created): Likewise.
743 (mi_breakpoint_deleted): Likewise.
744 (mi_breakpoint_modified): Likewise.
745 (mi_output_running_pid): Likewise.
746 (mi_inferior_count): Likewise.
747 (mi_solib_loaded): Likewise.
748 (mi_solib_unloaded): Likewise.
749 (mi_command_param_changed): Likewise.
750 (mi_memory_changed): Likewise.
751 (report_initial_inferior): Likewise.
752 (mi_ui_out): Likewise.
753 (mi_set_logging): Likewise.
754 * mi/mi-main.c (collect_cores): Likewise.
755 (print_one_inferior): Likewise.
756 (free_vector_of_ints): Likewise.
757 (free_splay_tree): Likewise.
758 (mi_execute_command): Likewise.
759 * mi/mi-out.c (mi_table_body): Likewise.
760 (mi_table_end): Likewise.
761 (mi_table_header): Likewise.
762 (mi_begin): Likewise.
763 (mi_end): Likewise.
764 (mi_field_int): Likewise.
765 (mi_field_string): Likewise.
766 (mi_field_fmt): Likewise.
767 (mi_flush): Likewise.
768 (mi_redirect): Likewise.
769 (field_separator): Likewise.
770 (mi_open): Likewise.
771 (mi_close): Likewise.
772 (mi_out_buffered): Likewise.
773 (mi_out_rewind): Likewise.
774 (mi_out_put): Likewise.
775 (mi_version): Likewise.
776 (mi_out_data_dtor): Likewise.
777 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
778 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
779 * minidebug.c (lzma_open): Likewise.
780 (lzma_pread): Likewise.
781 (lzma_close): Likewise.
782 (lzma_stat): Likewise.
783 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
784 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
785 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
786 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
787 (mips_micro_frame_cache): Likewise.
788 (mips_insn32_frame_cache): Likewise.
789 (mips_stub_frame_cache): Likewise.
790 (gdb_print_insn_mips): Likewise.
791 (value_of_mips_user_reg): Likewise.
792 (mips_gdbarch_init): Likewise.
793 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
794 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
795 (mipsnbsd_supply_gregset): Likewise.
796 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
797 (am33_collect_gregset_method): Likewise.
798 (am33_collect_fpregset_method): Likewise.
799 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
800 * moxie-tdep.c (moxie_frame_cache): Likewise.
801 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
802 (msp430_analyze_frame_prologue): Likewise.
803 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
804 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
805 (nios2_collect_gregset): Likewise.
806 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
807 (nios2_stub_frame_cache): Likewise.
808 * objc-lang.c (find_methods): Likewise.
809 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
810 (get_objfile_pspace_data): Likewise.
811 (get_objfile_bfd_data): Likewise.
812 (objfile_bfd_data_free): Likewise.
813 (add_to_objfile_sections): Likewise.
814 (do_free_objfile_cleanup): Likewise.
815 (resume_section_map_updates_cleanup): Likewise.
816 * opencl-lang.c (builtin_opencl_type): Likewise.
817 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
818 * osdata.c (osdata_start_osdata): Likewise.
819 (osdata_start_item): Likewise.
820 (osdata_start_column): Likewise.
821 (osdata_end_column): Likewise.
822 (clear_parsing_data): Likewise.
823 (osdata_free_cleanup): Likewise.
824 * parse.c (type_stack_cleanup): Likewise.
825 (exp_uses_objfile_iter): Likewise.
826 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
827 (ppc_linux_collect_gregset): Likewise.
828 (ppu2spu_prev_arch): Likewise.
829 (ppu2spu_this_id): Likewise.
830 (ppu2spu_prev_register): Likewise.
831 (ppu2spu_unwind_register): Likewise.
832 (ppu2spu_sniffer): Likewise.
833 (ppu2spu_dealloc_cache): Likewise.
834 (ppc_linux_init_abi): Likewise.
835 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
836 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
837 * progspace.c (restore_program_space): Likewise.
838 * psymtab.c (find_pc_sect_psymtab): Likewise.
839 (compare_psymbols): Likewise.
840 (psymbol_bcache_full): Likewise.
841 (allocate_psymtab): Likewise.
842 (discard_psymtabs_upto): Likewise.
843 * python/py-block.c (set_block): Likewise.
844 (del_objfile_blocks): Likewise.
845 * python/py-breakpoint.c (build_bp_list): Likewise.
846 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
847 (build_inferior_list): Likewise.
848 (py_free_inferior): Likewise.
849 * python/py-objfile.c (py_free_objfile): Likewise.
850 (objfile_to_objfile_object): Likewise.
851 * python/py-prettyprint.c (py_restore_tstate): Likewise.
852 * python/py-progspace.c (py_free_pspace): Likewise.
853 (pspace_to_pspace_object): Likewise.
854 * python/py-symbol.c (set_symbol): Likewise.
855 (del_objfile_symbols): Likewise.
856 * python/py-symtab.c (set_sal): Likewise.
857 (set_symtab): Likewise.
858 (del_objfile_symtab): Likewise.
859 (del_objfile_sal): Likewise.
860 * python/py-type.c (save_objfile_types): Likewise.
861 (set_type): Likewise.
862 * python/py-unwind.c (pyuw_prev_register): Likewise.
863 (pyuw_on_new_gdbarch): Likewise.
864 * python/py-utils.c (py_decref): Likewise.
865 (py_xdecref): Likewise.
866 (gdb_py_generic_dict): Likewise.
867 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
868 (gdbpy_clone_xmethod_worker_data): Likewise.
869 (gdbpy_get_xmethod_arg_types): Likewise.
870 (gdbpy_get_xmethod_result_type): Likewise.
871 (gdbpy_invoke_xmethod): Likewise.
872 * python/python.c (gdbpy_apply_type_printers): Likewise.
873 (gdbpy_free_type_printers): Likewise.
874 * record-btrace.c (record_btrace_disable_callback): Likewise.
875 (bfcache_hash): Likewise.
876 (bfcache_eq): Likewise.
877 (btrace_get_frame_function): Likewise.
878 (record_btrace_frame_unwind_stop_reason): Likewise.
879 (record_btrace_frame_this_id): Likewise.
880 (record_btrace_frame_prev_register): Likewise.
881 (record_btrace_frame_dealloc_cache): Likewise.
882 * record-full.c (record_full_message_wrapper): Likewise.
883 (record_full_save_cleanups): Likewise.
884 * regcache.c (regcache_descr): Likewise.
885 (do_regcache_xfree): Likewise.
886 (do_regcache_invalidate): Likewise.
887 (do_cooked_read): Likewise.
888 (regcache_transfer_regset): Likewise.
889 * reggroups.c (reggroup_add): Likewise.
890 (reggroup_next): Likewise.
891 (reggroup_prev): Likewise.
892 * remote-fileio.c (do_remote_fileio_request): Likewise.
893 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
894 (do_notif_event_xfree): Likewise.
895 * remote.c (get_remote_arch_state): Likewise.
896 (remote_pspace_data_cleanup): Likewise.
897 (get_remote_exec_file): Likewise.
898 (set_pspace_remote_exec_file): Likewise.
899 (compare_pnums): Likewise.
900 (clear_threads_listing_context): Likewise.
901 (remote_newthread_step): Likewise.
902 (start_thread): Likewise.
903 (end_thread): Likewise.
904 (remove_child_of_pending_fork): Likewise.
905 (remove_stop_reply_for_inferior): Likewise.
906 (remove_stop_reply_of_remote_state): Likewise.
907 (remote_notif_remove_once_on_match): Likewise.
908 (stop_reply_match_ptid_and_ws): Likewise.
909 (kill_child_of_pending_fork): Likewise.
910 (register_remote_g_packet_guess): Likewise.
911 (remote_read_description_p): Likewise.
912 (remote_read_description): Likewise.
913 (free_actions_list_cleanup_wrapper): Likewise.
914 (remote_async_serial_handler): Likewise.
915 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
916 (rl78_analyze_frame_prologue): Likewise.
917 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
918 (ppc_supply_fpregset): Likewise.
919 (ppc_supply_vsxregset): Likewise.
920 (ppc_supply_vrregset): Likewise.
921 (ppc_collect_gregset): Likewise.
922 (ppc_collect_fpregset): Likewise.
923 (ppc_collect_vsxregset): Likewise.
924 (ppc_collect_vrregset): Likewise.
925 (e500_move_ev_register): Likewise.
926 (do_regcache_raw_write): Likewise.
927 (rs6000_frame_cache): Likewise.
928 (rs6000_epilogue_frame_cache): Likewise.
929 (rs6000_gdbarch_init): Likewise.
930 * rx-tdep.c (rx_get_opcode_byte): Likewise.
931 (rx_analyze_frame_prologue): Likewise.
932 (rx_frame_type): Likewise.
933 (rx_frame_sniffer_common): Likewise.
934 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
935 (s390_frame_unwind_cache): Likewise.
936 (s390_stub_frame_unwind_cache): Likewise.
937 (s390_sigtramp_frame_unwind_cache): Likewise.
938 * score-tdep.c (score_make_prologue_cache): Likewise.
939 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
940 (sentinel_frame_prev_arch): Likewise.
941 * ser-base.c (fd_event): Likewise.
942 (push_event): Likewise.
943 (ser_base_write): Likewise.
944 * ser-pipe.c (pipe_close): Likewise.
945 * serial.c (serial_write): Likewise.
946 * sh-tdep.c (sh_frame_cache): Likewise.
947 (sh_stub_this_id): Likewise.
948 * sh64-tdep.c (sh64_frame_cache): Likewise.
949 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
950 (library_list_start_library): Likewise.
951 (library_list_start_list): Likewise.
952 (solib_aix_free_library_list): Likewise.
953 * solib-darwin.c (get_darwin_info): Likewise.
954 * solib-dsbt.c (get_dsbt_info): Likewise.
955 * solib-spu.c (append_ocl_sos): Likewise.
956 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
957 (get_svr4_info): Likewise.
958 (library_list_start_library): Likewise.
959 (svr4_library_list_start_list): Likewise.
960 (hash_probe_and_action): Likewise.
961 (equal_probe_and_action): Likewise.
962 (svr4_update_solib_event_breakpoint): Likewise.
963 (set_solib_svr4_fetch_link_map_offsets): Likewise.
964 (svr4_fetch_link_map_offsets): Likewise.
965 (svr4_have_link_map_offsets): Likewise.
966 * solib-target.c (library_list_start_segment): Likewise.
967 (library_list_start_section): Likewise.
968 (library_list_start_library): Likewise.
969 (library_list_end_library): Likewise.
970 (library_list_start_list): Likewise.
971 (solib_target_free_library_list): Likewise.
972 * solib.c (solib_ops): Likewise.
973 (set_solib_ops): Likewise.
974 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
975 * sparc-tdep.c (sparc_frame_cache): Likewise.
976 (sparc32_frame_cache): Likewise.
977 (sparc32_supply_gregset): Likewise.
978 (sparc32_collect_gregset): Likewise.
979 (sparc32_supply_fpregset): Likewise.
980 (sparc32_collect_fpregset): Likewise.
981 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
982 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
983 (sparc64_collect_gregset): Likewise.
984 (sparc64_supply_fpregset): Likewise.
985 (sparc64_collect_fpregset): Likewise.
986 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
987 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
988 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
989 (sparc64obsd_trapframe_cache): Likewise.
990 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
991 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
992 * spu-multiarch.c (spu_gdbarch): Likewise.
993 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
994 (spu2ppu_prev_arch): Likewise.
995 (spu2ppu_this_id): Likewise.
996 (spu2ppu_prev_register): Likewise.
997 (spu2ppu_dealloc_cache): Likewise.
998 (spu_dis_asm_print_address): Likewise.
999 (gdb_print_insn_spu): Likewise.
1000 (spu_get_overlay_table): Likewise.
1001 * stabsread.c (rs6000_builtin_type): Likewise.
1002 * stack.c (do_print_variable_and_value): Likewise.
1003 * stap-probe.c (get_stap_base_address_1): Likewise.
1004 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1005 (debug_qf_find_last_source_symtab): Likewise.
1006 (debug_qf_forget_cached_source_info): Likewise.
1007 (debug_qf_map_symtabs_matching_filename): Likewise.
1008 (debug_qf_lookup_symbol): Likewise.
1009 (debug_qf_print_stats): Likewise.
1010 (debug_qf_dump): Likewise.
1011 (debug_qf_relocate): Likewise.
1012 (debug_qf_expand_symtabs_for_function): Likewise.
1013 (debug_qf_expand_all_symtabs): Likewise.
1014 (debug_qf_expand_symtabs_with_fullname): Likewise.
1015 (debug_qf_map_matching_symbols): Likewise.
1016 (debug_qf_expand_symtabs_matching): Likewise.
1017 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1018 (debug_qf_map_symbol_filenames): Likewise.
1019 (debug_sym_get_probes): Likewise.
1020 (debug_sym_new_init): Likewise.
1021 (debug_sym_init): Likewise.
1022 (debug_sym_read): Likewise.
1023 (debug_sym_read_psymbols): Likewise.
1024 (debug_sym_finish): Likewise.
1025 (debug_sym_offsets): Likewise.
1026 (debug_sym_read_linetable): Likewise.
1027 (debug_sym_relocate): Likewise.
1028 (uninstall_symfile_debug_logging): Likewise.
1029 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1030 * symfile.c (place_section): Likewise.
1031 (add_section_size_callback): Likewise.
1032 (load_progress): Likewise.
1033 (load_section_callback): Likewise.
1034 (clear_memory_write_data): Likewise.
1035 (allocate_symtab): Likewise.
1036 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1037 * symtab.c (lookup_symtab_callback): Likewise.
1038 (hash_demangled_name_entry): Likewise.
1039 (eq_demangled_name_entry): Likewise.
1040 (get_symbol_cache): Likewise.
1041 (symbol_cache_cleanup): Likewise.
1042 (set_symbol_cache_size): Likewise.
1043 (symbol_cache_flush): Likewise.
1044 (maintenance_print_symbol_cache): Likewise.
1045 (maintenance_print_symbol_cache_statistics): Likewise.
1046 (delete_filename_seen_cache): Likewise.
1047 (output_partial_symbol_filename): Likewise.
1048 (search_symbols_file_matches): Likewise.
1049 (search_symbols_name_matches): Likewise.
1050 (do_free_completion_list): Likewise.
1051 (maybe_add_partial_symtab_filename): Likewise.
1052 (get_main_info): Likewise.
1053 (main_info_cleanup): Likewise.
1054 * target-dcache.c (target_dcache_cleanup): Likewise.
1055 (target_dcache_init_p): Likewise.
1056 (target_dcache_invalidate): Likewise.
1057 (target_dcache_get): Likewise.
1058 (target_dcache_get_or_init): Likewise.
1059 * target-descriptions.c (target_find_description): Likewise.
1060 (tdesc_find_type): Likewise.
1061 (tdesc_data_cleanup): Likewise.
1062 (tdesc_find_arch_register): Likewise.
1063 (tdesc_register_name): Likewise.
1064 (tdesc_register_type): Likewise.
1065 (tdesc_register_reggroup_p): Likewise.
1066 (set_tdesc_pseudo_register_name): Likewise.
1067 (set_tdesc_pseudo_register_type): Likewise.
1068 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1069 (tdesc_use_registers): Likewise.
1070 (free_target_description): Likewise.
1071 * target-memory.c (compare_block_starting_address): Likewise.
1072 (cleanup_request_data): Likewise.
1073 (cleanup_write_requests_vector): Likewise.
1074 * target.c (open_target): Likewise.
1075 (cleanup_restore_target_terminal): Likewise.
1076 (free_memory_read_result_vector): Likewise.
1077 * thread.c (disable_thread_stack_temporaries): Likewise.
1078 (finish_thread_state_cleanup): Likewise.
1079 (do_restore_current_thread_cleanup): Likewise.
1080 (restore_current_thread_cleanup_dtor): Likewise.
1081 (set_thread_refcount): Likewise.
1082 (tp_array_compar): Likewise.
1083 (do_captured_thread_select): Likewise.
1084 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1085 (tic6x_stub_this_id): Likewise.
1086 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1087 * top.c (do_restore_instream_cleanup): Likewise.
1088 (gdb_readline_wrapper_cleanup): Likewise.
1089 (kill_or_detach): Likewise.
1090 (print_inferior_quit_action): Likewise.
1091 * tracefile-tfile.c (match_blocktype): Likewise.
1092 (build_traceframe_info): Likewise.
1093 * tracefile.c (trace_file_writer_xfree): Likewise.
1094 * tracepoint.c (memrange_cmp): Likewise.
1095 (do_collect_symbol): Likewise.
1096 (do_clear_collection_list): Likewise.
1097 (do_restore_current_traceframe_cleanup): Likewise.
1098 (restore_current_traceframe_cleanup_dtor): Likewise.
1099 (free_current_marker): Likewise.
1100 (traceframe_info_start_memory): Likewise.
1101 (traceframe_info_start_tvar): Likewise.
1102 (free_result): Likewise.
1103 * tramp-frame.c (tramp_frame_cache): Likewise.
1104 * tui/tui-file.c (tui_file_delete): Likewise.
1105 (tui_fileopen): Likewise.
1106 (tui_sfileopen): Likewise.
1107 (tui_file_isatty): Likewise.
1108 (tui_file_rewind): Likewise.
1109 (tui_file_put): Likewise.
1110 (tui_file_fputs): Likewise.
1111 (tui_file_get_strbuf): Likewise.
1112 (tui_file_adjust_strbuf): Likewise.
1113 (tui_file_flush): Likewise.
1114 * tui/tui-layout.c (make_command_window): Likewise.
1115 (make_data_window): Likewise.
1116 (show_source_disasm_command): Likewise.
1117 (show_data): Likewise.
1118 (make_source_or_disasm_window): Likewise.
1119 (show_source_or_disasm_and_command): Likewise.
1120 * tui/tui-out.c (tui_field_int): Likewise.
1121 (tui_field_string): Likewise.
1122 (tui_field_fmt): Likewise.
1123 (tui_text): Likewise.
1124 * typeprint.c (hash_typedef_field): Likewise.
1125 (eq_typedef_field): Likewise.
1126 (do_free_typedef_hash): Likewise.
1127 (copy_typedef_hash_element): Likewise.
1128 (do_free_global_table): Likewise.
1129 (find_global_typedef): Likewise.
1130 (find_typedef_in_hash): Likewise.
1131 * ui-file.c (ui_file_write_for_put): Likewise.
1132 (do_ui_file_xstrdup): Likewise.
1133 (mem_file_delete): Likewise.
1134 (mem_file_rewind): Likewise.
1135 (mem_file_put): Likewise.
1136 (mem_file_write): Likewise.
1137 (stdio_file_delete): Likewise.
1138 (stdio_file_flush): Likewise.
1139 (stdio_file_read): Likewise.
1140 (stdio_file_write): Likewise.
1141 (stdio_file_write_async_safe): Likewise.
1142 (stdio_file_fputs): Likewise.
1143 (stdio_file_isatty): Likewise.
1144 (stdio_file_fseek): Likewise.
1145 (tee_file_delete): Likewise.
1146 (tee_file_flush): Likewise.
1147 (tee_file_write): Likewise.
1148 (tee_file_fputs): Likewise.
1149 (tee_file_isatty): Likewise.
1150 * ui-out.c (do_cleanup_table_end): Likewise.
1151 (do_cleanup_end): Likewise.
1152 * user-regs.c (user_reg_add): Likewise.
1153 (user_reg_map_name_to_regnum): Likewise.
1154 (usernum_to_user_reg): Likewise.
1155 (maintenance_print_user_registers): Likewise.
1156 * utils.c (do_bfd_close_cleanup): Likewise.
1157 (do_fclose_cleanup): Likewise.
1158 (do_obstack_free): Likewise.
1159 (do_ui_file_delete): Likewise.
1160 (do_ui_out_redirect_pop): Likewise.
1161 (do_free_section_addr_info): Likewise.
1162 (restore_integer): Likewise.
1163 (do_unpush_target): Likewise.
1164 (do_htab_delete_cleanup): Likewise.
1165 (do_restore_ui_file): Likewise.
1166 (do_value_free): Likewise.
1167 (do_free_so): Likewise.
1168 (free_current_contents): Likewise.
1169 (do_regfree_cleanup): Likewise.
1170 (core_addr_hash): Likewise.
1171 (core_addr_eq): Likewise.
1172 (do_free_char_ptr_vec): Likewise.
1173 * v850-tdep.c (v850_frame_cache): Likewise.
1174 * varobj.c (do_free_variable_cleanup): Likewise.
1175 * vax-tdep.c (vax_supply_gregset): Likewise.
1176 (vax_frame_cache): Likewise.
1177 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1178 * xml-support.c (gdb_xml_body_text): Likewise.
1179 (gdb_xml_values_cleanup): Likewise.
1180 (gdb_xml_start_element): Likewise.
1181 (gdb_xml_start_element_wrapper): Likewise.
1182 (gdb_xml_end_element): Likewise.
1183 (gdb_xml_end_element_wrapper): Likewise.
1184 (gdb_xml_cleanup): Likewise.
1185 (gdb_xml_fetch_external_entity): Likewise.
1186 (gdb_xml_parse_attr_enum): Likewise.
1187 (xinclude_start_include): Likewise.
1188 (xinclude_end_include): Likewise.
1189 (xml_xinclude_default): Likewise.
1190 (xml_xinclude_start_doctype): Likewise.
1191 (xml_xinclude_end_doctype): Likewise.
1192 (xml_xinclude_cleanup): Likewise.
1193 (xml_fetch_content_from_file): Likewise.
1194 * xml-syscall.c (free_syscalls_info): Likewise.
1195 (syscall_start_syscall): Likewise.
1196 * xml-tdesc.c (tdesc_end_arch): Likewise.
1197 (tdesc_end_osabi): Likewise.
1198 (tdesc_end_compatible): Likewise.
1199 (tdesc_start_target): Likewise.
1200 (tdesc_start_feature): Likewise.
1201 (tdesc_start_reg): Likewise.
1202 (tdesc_start_union): Likewise.
1203 (tdesc_start_struct): Likewise.
1204 (tdesc_start_flags): Likewise.
1205 (tdesc_start_field): Likewise.
1206 (tdesc_start_vector): Likewise.
1207 (fetch_available_features_from_target): Likewise.
1208 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1209 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1210 (xtensa_frame_cache): Likewise.
1211 (xtensa_frame_prev_register): Likewise.
1212 (xtensa_extract_return_value): Likewise.
1213
1214 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1215
1216 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1217 (aarch64_make_stub_cache): Likewise.
1218 (value_of_aarch64_user_reg): Likewise.
1219 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1220 (get_ada_inferior_data): Likewise.
1221 (get_ada_pspace_data): Likewise.
1222 (ada_pspace_data_cleanup): Likewise.
1223 (ada_complete_symbol_matcher): Likewise.
1224 (ada_exc_search_name_matches): Likewise.
1225 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1226 (get_ada_tasks_inferior_data): Likewise.
1227 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1228 (splay_obstack_alloc): Likewise.
1229 (splay_obstack_free): Likewise.
1230 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1231 (alpha_linux_collect_gregset): Likewise.
1232 (alpha_linux_supply_fpregset): Likewise.
1233 (alpha_linux_collect_fpregset): Likewise.
1234 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1235 * alpha-tdep.c (alpha_lds): Likewise.
1236 (alpha_sts): Likewise.
1237 (alpha_sigtramp_frame_unwind_cache): Likewise.
1238 (alpha_heuristic_frame_unwind_cache): Likewise.
1239 (alpha_supply_int_regs): Likewise.
1240 (alpha_fill_int_regs): Likewise.
1241 (alpha_supply_fp_regs): Likewise.
1242 (alpha_fill_fp_regs): Likewise.
1243 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1244 (alphanbsd_aout_supply_gregset): Likewise.
1245 (alphanbsd_supply_gregset): Likewise.
1246 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1247 (amd64_x32_linux_init_abi): Likewise.
1248 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1249 (amd64_collect_native_gregset): Likewise.
1250 * amd64-tdep.c (amd64_frame_cache): Likewise.
1251 (amd64_sigtramp_frame_cache): Likewise.
1252 (amd64_epilogue_frame_cache): Likewise.
1253 (amd64_supply_fxsave): Likewise.
1254 (amd64_supply_xsave): Likewise.
1255 (amd64_collect_fxsave): Likewise.
1256 (amd64_collect_xsave): Likewise.
1257 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1258 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1259 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1260 (arm_linux_collect_gregset): Likewise.
1261 (arm_linux_supply_nwfpe): Likewise.
1262 (arm_linux_collect_nwfpe): Likewise.
1263 (arm_linux_supply_vfp): Likewise.
1264 (arm_linux_collect_vfp): Likewise.
1265 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1266 (arm_prologue_unwind_stop_reason): Likewise.
1267 (arm_prologue_this_id): Likewise.
1268 (arm_prologue_prev_register): Likewise.
1269 (arm_exidx_data_free): Likewise.
1270 (arm_find_exidx_entry): Likewise.
1271 (arm_stub_this_id): Likewise.
1272 (arm_m_exception_this_id): Likewise.
1273 (arm_m_exception_prev_register): Likewise.
1274 (arm_normal_frame_base): Likewise.
1275 (gdb_print_insn_arm): Likewise.
1276 (arm_objfile_data_free): Likewise.
1277 (arm_record_special_symbol): Likewise.
1278 (value_of_arm_user_reg): Likewise.
1279 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1280 (armbsd_supply_gregset): Likewise.
1281 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1282 (get_auto_load_pspace_data): Likewise.
1283 (hash_loaded_script_entry): Likewise.
1284 (eq_loaded_script_entry): Likewise.
1285 (clear_section_scripts): Likewise.
1286 (collect_matching_scripts): Likewise.
1287 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1288 (get_auxv_inferior_data): Likewise.
1289 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1290 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1291 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1292 (target_bfd_xclose): Likewise.
1293 (target_bfd_get_section_table): Likewise.
1294 * bfin-tdep.c (bfin_frame_cache): Likewise.
1295 * block.c (find_block_in_blockvector): Likewise.
1296 (call_site_for_pc): Likewise.
1297 (block_find_non_opaque_type_preferred): Likewise.
1298 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1299 (signal_catchpoint_remove_location): Likewise.
1300 (signal_catchpoint_breakpoint_hit): Likewise.
1301 (signal_catchpoint_print_one): Likewise.
1302 (signal_catchpoint_print_mention): Likewise.
1303 (signal_catchpoint_print_recreate): Likewise.
1304 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1305 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1306 (bp_location_compare_addrs): Likewise.
1307 (get_first_locp_gte_addr): Likewise.
1308 (check_tracepoint_command): Likewise.
1309 (do_map_commands_command): Likewise.
1310 (get_breakpoint_objfile_data): Likewise.
1311 (free_breakpoint_probes): Likewise.
1312 (do_captured_breakpoint_query): Likewise.
1313 (compare_breakpoints): Likewise.
1314 (bp_location_compare): Likewise.
1315 (bpstat_remove_breakpoint_callback): Likewise.
1316 (do_delete_breakpoint_cleanup): Likewise.
1317 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1318 (bsd_uthread_set_collect_uthread): Likewise.
1319 (bsd_uthread_activate): Likewise.
1320 (bsd_uthread_fetch_registers): Likewise.
1321 (bsd_uthread_store_registers): Likewise.
1322 * btrace.c (check_xml_btrace_version): Likewise.
1323 (parse_xml_btrace_block): Likewise.
1324 (parse_xml_btrace_pt_config_cpu): Likewise.
1325 (parse_xml_btrace_pt_raw): Likewise.
1326 (parse_xml_btrace_pt): Likewise.
1327 (parse_xml_btrace_conf_bts): Likewise.
1328 (parse_xml_btrace_conf_pt): Likewise.
1329 (do_btrace_data_cleanup): Likewise.
1330 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1331 * charset.c (cleanup_iconv): Likewise.
1332 (do_cleanup_iterator): Likewise.
1333 * cli-out.c (cli_uiout_dtor): Likewise.
1334 (cli_table_begin): Likewise.
1335 (cli_table_body): Likewise.
1336 (cli_table_end): Likewise.
1337 (cli_table_header): Likewise.
1338 (cli_begin): Likewise.
1339 (cli_end): Likewise.
1340 (cli_field_int): Likewise.
1341 (cli_field_skip): Likewise.
1342 (cli_field_string): Likewise.
1343 (cli_field_fmt): Likewise.
1344 (cli_spaces): Likewise.
1345 (cli_text): Likewise.
1346 (cli_message): Likewise.
1347 (cli_wrap_hint): Likewise.
1348 (cli_flush): Likewise.
1349 (cli_redirect): Likewise.
1350 (out_field_fmt): Likewise.
1351 (field_separator): Likewise.
1352 (cli_out_set_stream): Likewise.
1353 * cli/cli-cmds.c (compare_symtabs): Likewise.
1354 * cli/cli-dump.c (call_dump_func): Likewise.
1355 (restore_section_callback): Likewise.
1356 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1357 (do_restore_user_call_depth): Likewise.
1358 (do_free_command_lines_cleanup): Likewise.
1359 * coff-pe-read.c (get_section_vmas): Likewise.
1360 (pe_as16): Likewise.
1361 (pe_as32): Likewise.
1362 * coffread.c (coff_symfile_read): Likewise.
1363 * common/agent.c (agent_look_up_symbols): Likewise.
1364 * common/filestuff.c (do_close_cleanup): Likewise.
1365 * common/format.c (free_format_pieces_cleanup): Likewise.
1366 * common/vec.c (vec_o_reserve): Likewise.
1367 * compile/compile-c-support.c (print_one_macro): Likewise.
1368 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1369 (eq_symbol_error): Likewise.
1370 (del_symbol_error): Likewise.
1371 (error_symbol_once): Likewise.
1372 (gcc_convert_symbol): Likewise.
1373 (gcc_symbol_address): Likewise.
1374 (hash_symname): Likewise.
1375 (eq_symname): Likewise.
1376 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1377 (eq_type_map_instance): Likewise.
1378 (insert_type): Likewise.
1379 (convert_type): Likewise.
1380 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1381 (setup_sections): Likewise.
1382 (link_hash_table_free): Likewise.
1383 (copy_sections): Likewise.
1384 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1385 * compile/compile.c (compile_print_value): Likewise.
1386 (do_rmdir): Likewise.
1387 (cleanup_compile_instance): Likewise.
1388 (cleanup_unlink_file): Likewise.
1389 * completer.c (free_completion_tracker): Likewise.
1390 * corelow.c (add_to_spuid_list): Likewise.
1391 * cp-namespace.c (reset_directive_searched): Likewise.
1392 * cp-support.c (reset_directive_searched): Likewise.
1393 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1394 (cris_frame_unwind_cache): Likewise.
1395 * d-lang.c (builtin_d_type): Likewise.
1396 * d-namespace.c (reset_directive_searched): Likewise.
1397 * dbxread.c (dbx_free_symfile_info): Likewise.
1398 (do_free_bincl_list_cleanup): Likewise.
1399 * disasm.c (hash_dis_line_entry): Likewise.
1400 (eq_dis_line_entry): Likewise.
1401 (dis_asm_print_address): Likewise.
1402 (fprintf_disasm): Likewise.
1403 (do_ui_file_delete): Likewise.
1404 * doublest.c (convert_floatformat_to_doublest): Likewise.
1405 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1406 (dummy_frame_prev_register): Likewise.
1407 (dummy_frame_this_id): Likewise.
1408 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1409 (cache_eq): Likewise.
1410 (cache_find): Likewise.
1411 (tailcall_frame_this_id): Likewise.
1412 (dwarf2_tailcall_prev_register_first): Likewise.
1413 (tailcall_frame_prev_register): Likewise.
1414 (tailcall_frame_dealloc_cache): Likewise.
1415 (tailcall_frame_prev_arch): Likewise.
1416 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1417 (dwarf2_frame_set_init_reg): Likewise.
1418 (dwarf2_frame_init_reg): Likewise.
1419 (dwarf2_frame_set_signal_frame_p): Likewise.
1420 (dwarf2_frame_signal_frame_p): Likewise.
1421 (dwarf2_frame_set_adjust_regnum): Likewise.
1422 (dwarf2_frame_adjust_regnum): Likewise.
1423 (clear_pointer_cleanup): Likewise.
1424 (dwarf2_frame_cache): Likewise.
1425 (find_cie): Likewise.
1426 (dwarf2_frame_find_fde): Likewise.
1427 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1428 (free_dwarf_expr_context_cleanup): Likewise.
1429 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1430 (locexpr_get_frame_base): Likewise.
1431 (loclist_find_frame_base_location): Likewise.
1432 (loclist_get_frame_base): Likewise.
1433 (dwarf_expr_dwarf_call): Likewise.
1434 (dwarf_expr_get_base_type): Likewise.
1435 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1436 (dwarf_expr_get_obj_addr): Likewise.
1437 (entry_data_value_coerce_ref): Likewise.
1438 (entry_data_value_copy_closure): Likewise.
1439 (entry_data_value_free_closure): Likewise.
1440 (get_frame_address_in_block_wrapper): Likewise.
1441 (dwarf2_evaluate_property): Likewise.
1442 (dwarf2_compile_property_to_c): Likewise.
1443 (needs_frame_read_addr_from_reg): Likewise.
1444 (needs_frame_get_reg_value): Likewise.
1445 (needs_frame_frame_base): Likewise.
1446 (needs_frame_frame_cfa): Likewise.
1447 (needs_frame_tls_address): Likewise.
1448 (needs_frame_dwarf_call): Likewise.
1449 (needs_dwarf_reg_entry_value): Likewise.
1450 (get_ax_pc): Likewise.
1451 (locexpr_read_variable): Likewise.
1452 (locexpr_read_variable_at_entry): Likewise.
1453 (locexpr_read_needs_frame): Likewise.
1454 (locexpr_describe_location): Likewise.
1455 (locexpr_tracepoint_var_ref): Likewise.
1456 (locexpr_generate_c_location): Likewise.
1457 (loclist_read_variable): Likewise.
1458 (loclist_read_variable_at_entry): Likewise.
1459 (loclist_describe_location): Likewise.
1460 (loclist_tracepoint_var_ref): Likewise.
1461 (loclist_generate_c_location): Likewise.
1462 * dwarf2read.c (line_header_hash_voidp): Likewise.
1463 (line_header_eq_voidp): Likewise.
1464 (dwarf2_has_info): Likewise.
1465 (dwarf2_get_section_info): Likewise.
1466 (locate_dwz_sections): Likewise.
1467 (hash_file_name_entry): Likewise.
1468 (eq_file_name_entry): Likewise.
1469 (delete_file_name_entry): Likewise.
1470 (dw2_setup): Likewise.
1471 (dw2_get_file_names_reader): Likewise.
1472 (dw2_find_pc_sect_compunit_symtab): Likewise.
1473 (hash_signatured_type): Likewise.
1474 (eq_signatured_type): Likewise.
1475 (add_signatured_type_cu_to_table): Likewise.
1476 (create_debug_types_hash_table): Likewise.
1477 (lookup_dwo_signatured_type): Likewise.
1478 (lookup_dwp_signatured_type): Likewise.
1479 (lookup_signatured_type): Likewise.
1480 (hash_type_unit_group): Likewise.
1481 (eq_type_unit_group): Likewise.
1482 (get_type_unit_group): Likewise.
1483 (process_psymtab_comp_unit_reader): Likewise.
1484 (sort_tu_by_abbrev_offset): Likewise.
1485 (process_skeletonless_type_unit): Likewise.
1486 (psymtabs_addrmap_cleanup): Likewise.
1487 (dwarf2_read_symtab): Likewise.
1488 (psymtab_to_symtab_1): Likewise.
1489 (die_hash): Likewise.
1490 (die_eq): Likewise.
1491 (load_full_comp_unit_reader): Likewise.
1492 (reset_die_in_process): Likewise.
1493 (free_cu_line_header): Likewise.
1494 (handle_DW_AT_stmt_list): Likewise.
1495 (hash_dwo_file): Likewise.
1496 (eq_dwo_file): Likewise.
1497 (hash_dwo_unit): Likewise.
1498 (eq_dwo_unit): Likewise.
1499 (create_dwo_cu_reader): Likewise.
1500 (create_dwo_unit_in_dwp_v1): Likewise.
1501 (create_dwo_unit_in_dwp_v2): Likewise.
1502 (lookup_dwo_unit_in_dwp): Likewise.
1503 (dwarf2_locate_dwo_sections): Likewise.
1504 (dwarf2_locate_common_dwp_sections): Likewise.
1505 (dwarf2_locate_v2_dwp_sections): Likewise.
1506 (hash_dwp_loaded_cutus): Likewise.
1507 (eq_dwp_loaded_cutus): Likewise.
1508 (lookup_dwo_cutu): Likewise.
1509 (abbrev_table_free_cleanup): Likewise.
1510 (dwarf2_free_abbrev_table): Likewise.
1511 (find_partial_die_in_comp_unit): Likewise.
1512 (free_line_header_voidp): Likewise.
1513 (follow_die_offset): Likewise.
1514 (follow_die_sig_1): Likewise.
1515 (free_heap_comp_unit): Likewise.
1516 (free_stack_comp_unit): Likewise.
1517 (dwarf2_free_objfile): Likewise.
1518 (per_cu_offset_and_type_hash): Likewise.
1519 (per_cu_offset_and_type_eq): Likewise.
1520 (get_die_type_at_offset): Likewise.
1521 (partial_die_hash): Likewise.
1522 (partial_die_eq): Likewise.
1523 (dwarf2_per_objfile_free): Likewise.
1524 (hash_strtab_entry): Likewise.
1525 (eq_strtab_entry): Likewise.
1526 (add_string): Likewise.
1527 (hash_symtab_entry): Likewise.
1528 (eq_symtab_entry): Likewise.
1529 (delete_symtab_entry): Likewise.
1530 (cleanup_mapped_symtab): Likewise.
1531 (add_indices_to_cpool): Likewise.
1532 (hash_psymtab_cu_index): Likewise.
1533 (eq_psymtab_cu_index): Likewise.
1534 (add_address_entry_worker): Likewise.
1535 (unlink_if_set): Likewise.
1536 (write_one_signatured_type): Likewise.
1537 (save_gdb_index_command): Likewise.
1538 * elfread.c (elf_symtab_read): Likewise.
1539 (elf_gnu_ifunc_cache_hash): Likewise.
1540 (elf_gnu_ifunc_cache_eq): Likewise.
1541 (elf_gnu_ifunc_record_cache): Likewise.
1542 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1543 (elf_get_probes): Likewise.
1544 (probe_key_free): Likewise.
1545 * f-lang.c (builtin_f_type): Likewise.
1546 * frame-base.c (frame_base_append_sniffer): Likewise.
1547 (frame_base_set_default): Likewise.
1548 (frame_base_find_by_frame): Likewise.
1549 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1550 (frame_unwind_append_unwinder): Likewise.
1551 (frame_unwind_find_by_frame): Likewise.
1552 * frame.c (frame_addr_hash): Likewise.
1553 (frame_addr_hash_eq): Likewise.
1554 (frame_stash_find): Likewise.
1555 (do_frame_register_read): Likewise.
1556 (unwind_to_current_frame): Likewise.
1557 (frame_cleanup_after_sniffer): Likewise.
1558 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1559 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1560 * ft32-tdep.c (ft32_frame_cache): Likewise.
1561 * gcore.c (do_bfd_delete_cleanup): Likewise.
1562 (gcore_create_callback): Likewise.
1563 * gdb_bfd.c (hash_bfd): Likewise.
1564 (eq_bfd): Likewise.
1565 (gdb_bfd_open): Likewise.
1566 (free_one_bfd_section): Likewise.
1567 (gdb_bfd_ref): Likewise.
1568 (gdb_bfd_unref): Likewise.
1569 (get_section_descriptor): Likewise.
1570 (gdb_bfd_map_section): Likewise.
1571 (gdb_bfd_crc): Likewise.
1572 (gdb_bfd_mark_parent): Likewise.
1573 (gdb_bfd_record_inclusion): Likewise.
1574 (gdb_bfd_requires_relocations): Likewise.
1575 (print_one_bfd): Likewise.
1576 * gdbtypes.c (type_pair_hash): Likewise.
1577 (type_pair_eq): Likewise.
1578 (builtin_type): Likewise.
1579 (objfile_type): Likewise.
1580 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1581 (vtable_address_point_offset): Likewise.
1582 (gnuv3_get_vtable): Likewise.
1583 (hash_value_and_voffset): Likewise.
1584 (eq_value_and_voffset): Likewise.
1585 (compare_value_and_voffset): Likewise.
1586 (compute_vtable_size): Likewise.
1587 (gnuv3_get_typeid_type): Likewise.
1588 * go-lang.c (builtin_go_type): Likewise.
1589 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1590 (bkscm_eq_block_smob): Likewise.
1591 (bkscm_objfile_block_map): Likewise.
1592 (bkscm_del_objfile_blocks): Likewise.
1593 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1594 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1595 (gdbscm_disasm_print_address): Likewise.
1596 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1597 (frscm_eq_frame_smob): Likewise.
1598 (frscm_inferior_frame_map): Likewise.
1599 (frscm_del_inferior_frames): Likewise.
1600 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1601 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1602 (ofscm_objfile_smob_from_objfile): Likewise.
1603 * guile/scm-ports.c (ioscm_write): Likewise.
1604 (ioscm_file_port_delete): Likewise.
1605 (ioscm_file_port_rewind): Likewise.
1606 (ioscm_file_port_put): Likewise.
1607 (ioscm_file_port_write): Likewise.
1608 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1609 (psscm_pspace_smob_from_pspace): Likewise.
1610 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1611 (scscm_recording_unwind_handler): Likewise.
1612 (gdbscm_with_catch): Likewise.
1613 (scscm_call_0_body): Likewise.
1614 (scscm_call_1_body): Likewise.
1615 (scscm_call_2_body): Likewise.
1616 (scscm_call_3_body): Likewise.
1617 (scscm_call_4_body): Likewise.
1618 (scscm_apply_1_body): Likewise.
1619 (scscm_eval_scheme_string): Likewise.
1620 (gdbscm_safe_eval_string): Likewise.
1621 (scscm_source_scheme_script): Likewise.
1622 (gdbscm_safe_source_script): Likewise.
1623 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1624 (gdbscm_call_scm_from_stringn): Likewise.
1625 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1626 (syscm_eq_symbol_smob): Likewise.
1627 (syscm_get_symbol_map): Likewise.
1628 (syscm_del_objfile_symbols): Likewise.
1629 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1630 (stscm_eq_symtab_smob): Likewise.
1631 (stscm_objfile_symtab_map): Likewise.
1632 (stscm_del_objfile_symtabs): Likewise.
1633 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1634 (tyscm_eq_type_smob): Likewise.
1635 (tyscm_type_map): Likewise.
1636 (tyscm_copy_type_recursive): Likewise.
1637 (save_objfile_types): Likewise.
1638 * guile/scm-utils.c (extract_arg): Likewise.
1639 * h8300-tdep.c (h8300_frame_cache): Likewise.
1640 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1641 * hppa-tdep.c (compare_unwind_entries): Likewise.
1642 (find_unwind_entry): Likewise.
1643 (hppa_frame_cache): Likewise.
1644 (hppa_stub_frame_unwind_cache): Likewise.
1645 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1646 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1647 (hppaobsd_supply_fpregset): Likewise.
1648 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1649 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1650 * i386-tdep.c (i386_frame_cache): Likewise.
1651 (i386_epilogue_frame_cache): Likewise.
1652 (i386_sigtramp_frame_cache): Likewise.
1653 (i386_supply_gregset): Likewise.
1654 (i386_collect_gregset): Likewise.
1655 (i386_gdbarch_init): Likewise.
1656 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1657 (i386obsd_trapframe_cache): Likewise.
1658 * i387-tdep.c (i387_supply_fsave): Likewise.
1659 (i387_collect_fsave): Likewise.
1660 (i387_supply_fxsave): Likewise.
1661 (i387_collect_fxsave): Likewise.
1662 (i387_supply_xsave): Likewise.
1663 (i387_collect_xsave): Likewise.
1664 * ia64-tdep.c (ia64_frame_cache): Likewise.
1665 (ia64_sigtramp_frame_cache): Likewise.
1666 * infcmd.c (attach_command_continuation): Likewise.
1667 (attach_command_continuation_free_args): Likewise.
1668 * inferior.c (restore_inferior): Likewise.
1669 (delete_thread_of_inferior): Likewise.
1670 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1671 (get_inflow_inferior_data): Likewise.
1672 (inflow_inferior_exit): Likewise.
1673 * infrun.c (displaced_step_clear_cleanup): Likewise.
1674 (restore_current_uiout_cleanup): Likewise.
1675 (release_stop_context_cleanup): Likewise.
1676 (do_restore_infcall_suspend_state_cleanup): Likewise.
1677 (do_restore_infcall_control_state_cleanup): Likewise.
1678 (restore_inferior_ptid): Likewise.
1679 * inline-frame.c (block_starting_point_at): Likewise.
1680 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1681 * jit.c (get_jit_objfile_data): Likewise.
1682 (get_jit_program_space_data): Likewise.
1683 (jit_object_close_impl): Likewise.
1684 (jit_find_objf_with_entry_addr): Likewise.
1685 (jit_breakpoint_deleted): Likewise.
1686 (jit_unwind_reg_set_impl): Likewise.
1687 (jit_unwind_reg_get_impl): Likewise.
1688 (jit_dealloc_cache): Likewise.
1689 (jit_frame_sniffer): Likewise.
1690 (jit_frame_prev_register): Likewise.
1691 (jit_prepend_unwinder): Likewise.
1692 (jit_inferior_exit_hook): Likewise.
1693 (free_objfile_data): Likewise.
1694 * jv-lang.c (jv_per_objfile_free): Likewise.
1695 (get_dynamics_objfile): Likewise.
1696 (get_java_class_symtab): Likewise.
1697 (builtin_java_type): Likewise.
1698 * language.c (language_string_char_type): Likewise.
1699 (language_bool_type): Likewise.
1700 (language_lookup_primitive_type): Likewise.
1701 (language_lookup_primitive_type_as_symbol): Likewise.
1702 * linespec.c (hash_address_entry): Likewise.
1703 (eq_address_entry): Likewise.
1704 (iterate_inline_only): Likewise.
1705 (iterate_name_matcher): Likewise.
1706 (decode_line_2_compare_items): Likewise.
1707 (collect_one_symbol): Likewise.
1708 (compare_symbols): Likewise.
1709 (compare_msymbols): Likewise.
1710 (add_symtabs_to_list): Likewise.
1711 (collect_symbols): Likewise.
1712 (compare_msyms): Likewise.
1713 (add_minsym): Likewise.
1714 (cleanup_linespec_result): Likewise.
1715 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1716 * linux-nat.c (delete_lwp_cleanup): Likewise.
1717 (count_events_callback): Likewise.
1718 (select_event_lwp_callback): Likewise.
1719 (resume_stopped_resumed_lwps): Likewise.
1720 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1721 (invalidate_linux_cache_inf): Likewise.
1722 (get_linux_inferior_data): Likewise.
1723 (linux_find_memory_regions_thunk): Likewise.
1724 (linux_make_mappings_callback): Likewise.
1725 (linux_corefile_thread_callback): Likewise.
1726 (find_mapping_size): Likewise.
1727 * linux-thread-db.c (find_new_threads_callback): Likewise.
1728 * lm32-tdep.c (lm32_frame_cache): Likewise.
1729 * m2-lang.c (builtin_m2_type): Likewise.
1730 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1731 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1732 (m32r_linux_supply_gregset): Likewise.
1733 (m32r_linux_collect_gregset): Likewise.
1734 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1735 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1736 * m68k-tdep.c (m68k_frame_cache): Likewise.
1737 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1738 (m68kbsd_supply_gregset): Likewise.
1739 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1740 * m88k-tdep.c (m88k_frame_cache): Likewise.
1741 (m88k_supply_gregset): Likewise.
1742
1743 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1744
1745 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1746 to allocation result assignment.
1747 * ada-exp.y (write_object_renaming): Likewise.
1748 (write_ambiguous_var): Likewise.
1749 (ada_nget_field_index): Likewise.
1750 (write_var_or_type): Likewise.
1751 * ada-lang.c (ada_decode_symbol): Likewise.
1752 (ada_value_assign): Likewise.
1753 (value_pointer): Likewise.
1754 (cache_symbol): Likewise.
1755 (add_nonlocal_symbols): Likewise.
1756 (ada_name_for_lookup): Likewise.
1757 (symbol_completion_add): Likewise.
1758 (ada_to_fixed_type_1): Likewise.
1759 (ada_get_next_arg): Likewise.
1760 (defns_collected): Likewise.
1761 * ada-lex.l (processId): Likewise.
1762 (processString): Likewise.
1763 * ada-tasks.c (read_known_tasks_array): Likewise.
1764 (read_known_tasks_list): Likewise.
1765 * ada-typeprint.c (decoded_type_name): Likewise.
1766 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1767 * amd64-tdep.c (amd64_push_arguments): Likewise.
1768 (amd64_displaced_step_copy_insn): Likewise.
1769 (amd64_classify_insn_at): Likewise.
1770 (amd64_relocate_instruction): Likewise.
1771 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1772 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1773 (initialize_current_architecture): Likewise.
1774 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1775 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1776 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1777 (arm_push_dummy_call): Likewise.
1778 (extend_buffer_earlier): Likewise.
1779 (arm_adjust_breakpoint_address): Likewise.
1780 (arm_skip_stub): Likewise.
1781 * auto-load.c (filename_is_in_pattern): Likewise.
1782 (maybe_add_script_file): Likewise.
1783 (maybe_add_script_text): Likewise.
1784 (auto_load_objfile_script_1): Likewise.
1785 * auxv.c (ld_so_xfer_auxv): Likewise.
1786 * ax-general.c (new_agent_expr): Likewise.
1787 (grow_expr): Likewise.
1788 (ax_reg_mask): Likewise.
1789 * bcache.c (bcache_full): Likewise.
1790 * breakpoint.c (program_breakpoint_here_p): Likewise.
1791 * btrace.c (parse_xml_raw): Likewise.
1792 * build-id.c (build_id_to_debug_bfd): Likewise.
1793 * buildsym.c (end_symtab_with_blockvector): Likewise.
1794 * c-exp.y (string_exp): Likewise.
1795 (qualified_name): Likewise.
1796 (write_destructor_name): Likewise.
1797 (operator_stoken): Likewise.
1798 (parse_number): Likewise.
1799 (scan_macro_expansion): Likewise.
1800 (yylex): Likewise.
1801 (c_print_token): Likewise.
1802 * c-lang.c (c_get_string): Likewise.
1803 (emit_numeric_character): Likewise.
1804 * charset.c (wchar_iterate): Likewise.
1805 * cli/cli-cmds.c (complete_command): Likewise.
1806 (make_command): Likewise.
1807 * cli/cli-dump.c (restore_section_callback): Likewise.
1808 (restore_binary_file): Likewise.
1809 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1810 * cli/cli-script.c (execute_control_command): Likewise.
1811 * cli/cli-setshow.c (do_set_command): Likewise.
1812 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1813 (read_pe_exported_syms): Likewise.
1814 * coffread.c (coff_read_struct_type): Likewise.
1815 (coff_read_enum_type): Likewise.
1816 * common/btrace-common.c (btrace_data_append): Likewise.
1817 * common/buffer.c (buffer_grow): Likewise.
1818 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1819 * common/format.c (parse_format_string): Likewise.
1820 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1821 * common/xml-utils.c (xml_escape_text): Likewise.
1822 * compile/compile-object-load.c (copy_sections): Likewise.
1823 (compile_object_load): Likewise.
1824 * compile/compile-object-run.c (compile_object_run): Likewise.
1825 * completer.c (filename_completer): Likewise.
1826 * corefile.c (read_memory_typed_address): Likewise.
1827 (write_memory_unsigned_integer): Likewise.
1828 (write_memory_signed_integer): Likewise.
1829 (complete_set_gnutarget): Likewise.
1830 * corelow.c (get_core_register_section): Likewise.
1831 * cp-name-parser.y (d_grab): Likewise.
1832 (allocate_info): Likewise.
1833 (cp_new_demangle_parse_info): Likewise.
1834 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1835 (cp_lookup_symbol_in_namespace): Likewise.
1836 (lookup_namespace_scope): Likewise.
1837 (find_symbol_in_baseclass): Likewise.
1838 (cp_lookup_nested_symbol): Likewise.
1839 (cp_lookup_transparent_type_loop): Likewise.
1840 * cp-support.c (copy_string_to_obstack): Likewise.
1841 (make_symbol_overload_list): Likewise.
1842 (make_symbol_overload_list_namespace): Likewise.
1843 (make_symbol_overload_list_adl_namespace): Likewise.
1844 (first_component_command): Likewise.
1845 * cp-valprint.c (cp_print_value): Likewise.
1846 * ctf.c (ctf_xfer_partial): Likewise.
1847 * d-exp.y (StringExp): Likewise.
1848 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1849 (lookup_module_scope): Likewise.
1850 (find_symbol_in_baseclass): Likewise.
1851 (d_lookup_nested_symbol): Likewise.
1852 * dbxread.c (find_stab_function_addr): Likewise.
1853 (read_dbx_symtab): Likewise.
1854 (dbx_end_psymtab): Likewise.
1855 (cp_set_block_scope): Likewise.
1856 * dcache.c (dcache_alloc): Likewise.
1857 * demangle.c (_initialize_demangler): Likewise.
1858 * dicos-tdep.c (dicos_load_module_p): Likewise.
1859 * dictionary.c (dict_create_hashed_expandable): Likewise.
1860 (dict_create_linear_expandable): Likewise.
1861 (expand_hashtable): Likewise.
1862 (add_symbol_linear_expandable): Likewise.
1863 * dwarf2-frame.c (add_cie): Likewise.
1864 (add_fde): Likewise.
1865 (dwarf2_build_frame_info): Likewise.
1866 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1867 (dwarf_expr_fetch_address): Likewise.
1868 (add_piece): Likewise.
1869 (execute_stack_op): Likewise.
1870 * dwarf2loc.c (chain_candidate): Likewise.
1871 (dwarf_entry_parameter_to_value): Likewise.
1872 (read_pieced_value): Likewise.
1873 (write_pieced_value): Likewise.
1874 * dwarf2read.c (dwarf2_read_section): Likewise.
1875 (add_type_unit): Likewise.
1876 (read_comp_units_from_section): Likewise.
1877 (fixup_go_packaging): Likewise.
1878 (dwarf2_compute_name): Likewise.
1879 (dwarf2_physname): Likewise.
1880 (create_dwo_unit_in_dwp_v1): Likewise.
1881 (create_dwo_unit_in_dwp_v2): Likewise.
1882 (read_func_scope): Likewise.
1883 (read_call_site_scope): Likewise.
1884 (dwarf2_attach_fields_to_type): Likewise.
1885 (process_structure_scope): Likewise.
1886 (mark_common_block_symbol_computed): Likewise.
1887 (read_common_block): Likewise.
1888 (abbrev_table_read_table): Likewise.
1889 (guess_partial_die_structure_name): Likewise.
1890 (fixup_partial_die): Likewise.
1891 (add_file_name): Likewise.
1892 (dwarf2_const_value_data): Likewise.
1893 (dwarf2_const_value_attr): Likewise.
1894 (build_error_marker_type): Likewise.
1895 (guess_full_die_structure_name): Likewise.
1896 (anonymous_struct_prefix): Likewise.
1897 (typename_concat): Likewise.
1898 (dwarf2_canonicalize_name): Likewise.
1899 (dwarf2_name): Likewise.
1900 (write_constant_as_bytes): Likewise.
1901 (dwarf2_fetch_constant_bytes): Likewise.
1902 (copy_string): Likewise.
1903 (parse_macro_definition): Likewise.
1904 * elfread.c (elf_symfile_segments): Likewise.
1905 (elf_rel_plt_read): Likewise.
1906 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1907 (elf_gnu_ifunc_resolve_by_got): Likewise.
1908 (elf_read_minimal_symbols): Likewise.
1909 (elf_gnu_ifunc_record_cache): Likewise.
1910 * event-top.c (top_level_prompt): Likewise.
1911 (command_line_handler): Likewise.
1912 * exec.c (resize_section_table): Likewise.
1913 * expprint.c (print_subexp_standard): Likewise.
1914 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1915 * findcmd.c (parse_find_args): Likewise.
1916 * findvar.c (address_from_register): Likewise.
1917 * frame.c (get_prev_frame_always): Likewise.
1918 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1919 (get_section_descriptor): Likewise.
1920 * gdb_obstack.c (obconcat): Likewise.
1921 (obstack_strdup): Likewise.
1922 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1923 (create_set_type): Likewise.
1924 (lookup_unsigned_typename): Likewise.
1925 (lookup_signed_typename): Likewise.
1926 (resolve_dynamic_union): Likewise.
1927 (resolve_dynamic_struct): Likewise.
1928 (add_dyn_prop): Likewise.
1929 (copy_dynamic_prop_list): Likewise.
1930 (arch_flags_type): Likewise.
1931 (append_composite_type_field_raw): Likewise.
1932 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1933 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1934 * go-exp.y (string_exp): Likewise.
1935 * go-lang.c (go_demangle): Likewise.
1936 * guile/guile.c (compute_scheme_string): Likewise.
1937 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1938 (gdbscm_canonicalize_command_name): Likewise.
1939 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1940 (ioscm_init_memory_port): Likewise.
1941 (ioscm_reinit_memory_port): Likewise.
1942 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1943 (gdbscm_gc_dup_argv): Likewise.
1944 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1945 * hppa-tdep.c (internalize_unwinds): Likewise.
1946 (read_unwind_info): Likewise.
1947 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1948 (windows_core_xfer_shared_libraries): Likewise.
1949 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1950 (i386_stap_parse_special_token_triplet): Likewise.
1951 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1952 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1953 * inf-child.c (inf_child_fileio_readlink): Likewise.
1954 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1955 (inf_ptrace_store_register): Likewise.
1956 * infrun.c (follow_exec): Likewise.
1957 (displaced_step_prepare_throw): Likewise.
1958 (save_stop_context): Likewise.
1959 (save_infcall_suspend_state): Likewise.
1960 * jit.c (jit_read_descriptor): Likewise.
1961 (jit_read_code_entry): Likewise.
1962 (jit_symtab_line_mapping_add_impl): Likewise.
1963 (finalize_symtab): Likewise.
1964 (jit_unwind_reg_get_impl): Likewise.
1965 * jv-exp.y (QualifiedName): Likewise.
1966 * jv-lang.c (get_java_utf8_name): Likewise.
1967 (type_from_class): Likewise.
1968 (java_demangle_type_signature): Likewise.
1969 (java_class_name_from_physname): Likewise.
1970 * jv-typeprint.c (java_type_print_base): Likewise.
1971 * jv-valprint.c (java_value_print): Likewise.
1972 * language.c (add_language): Likewise.
1973 * linespec.c (add_sal_to_sals_basic): Likewise.
1974 (add_sal_to_sals): Likewise.
1975 (decode_objc): Likewise.
1976 (find_linespec_symbols): Likewise.
1977 * linux-fork.c (fork_save_infrun_state): Likewise.
1978 * linux-nat.c (linux_nat_detach): Likewise.
1979 (linux_nat_fileio_readlink): Likewise.
1980 * linux-record.c (record_linux_sockaddr): Likewise.
1981 (record_linux_msghdr): Likewise.
1982 (Do): Likewise.
1983 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1984 (linux_collect_regset_section_cb): Likewise.
1985 (linux_get_siginfo_data): Likewise.
1986 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1987 (try_thread_db_load_from_dir): Likewise.
1988 (thread_db_load_search): Likewise.
1989 (info_auto_load_libthread_db): Likewise.
1990 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1991 (m32c_m16c_pointer_to_address): Likewise.
1992 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1993 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1994 * machoread.c (macho_check_dsym): Likewise.
1995 * macroexp.c (resize_buffer): Likewise.
1996 (gather_arguments): Likewise.
1997 (maybe_expand): Likewise.
1998 * macrotab.c (new_macro_key): Likewise.
1999 (new_source_file): Likewise.
2000 (new_macro_definition): Likewise.
2001 * mdebugread.c (parse_symbol): Likewise.
2002 (parse_type): Likewise.
2003 (parse_partial_symbols): Likewise.
2004 (psymtab_to_symtab_1): Likewise.
2005 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2006 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2007 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2008 (mi_cmd_data_read_memory_bytes): Likewise.
2009 (mi_cmd_data_write_memory_bytes): Likewise.
2010 (mi_cmd_trace_frame_collected): Likewise.
2011 * mi/mi-parse.c (mi_parse_argv): Likewise.
2012 (mi_parse): Likewise.
2013 * minidebug.c (lzma_open): Likewise.
2014 (lzma_pread): Likewise.
2015 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2016 (mips_print_fp_register): Likewise.
2017 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2018 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2019 * mt-tdep.c (mt_register_name): Likewise.
2020 (mt_registers_info): Likewise.
2021 (mt_push_dummy_call): Likewise.
2022 * namespace.c (add_using_directive): Likewise.
2023 * nat/linux-btrace.c (perf_event_read): Likewise.
2024 (linux_enable_bts): Likewise.
2025 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2026 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2027 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2028 (nto_parse_redirection): Likewise.
2029 * objc-lang.c (objc_demangle): Likewise.
2030 (find_methods): Likewise.
2031 * objfiles.c (get_objfile_bfd_data): Likewise.
2032 (set_objfile_main_name): Likewise.
2033 (allocate_objfile): Likewise.
2034 (objfile_relocate): Likewise.
2035 (update_section_map): Likewise.
2036 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2037 * p-exp.y (exp): Likewise.
2038 (yylex): Likewise.
2039 * p-valprint.c (pascal_object_print_value): Likewise.
2040 * parse.c (initialize_expout): Likewise.
2041 (mark_completion_tag): Likewise.
2042 (copy_name): Likewise.
2043 (parse_float): Likewise.
2044 (type_stack_reserve): Likewise.
2045 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2046 (ppu2spu_prev_register): Likewise.
2047 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2048 * printcmd.c (printf_wide_c_string): Likewise.
2049 (printf_pointer): Likewise.
2050 * probe.c (parse_probes): Likewise.
2051 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2052 (cmdpy_init): Likewise.
2053 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2054 * python/py-symtab.c (set_sal): Likewise.
2055 * python/py-unwind.c (pyuw_sniffer): Likewise.
2056 * python/python.c (python_interactive_command): Likewise.
2057 (compute_python_string): Likewise.
2058 * ravenscar-thread.c (get_running_thread_id): Likewise.
2059 * record-full.c (record_full_exec_insn): Likewise.
2060 (record_full_core_open_1): Likewise.
2061 * regcache.c (regcache_raw_read_signed): Likewise.
2062 (regcache_raw_read_unsigned): Likewise.
2063 (regcache_cooked_read_signed): Likewise.
2064 (regcache_cooked_read_unsigned): Likewise.
2065 * remote-fileio.c (remote_fileio_func_open): Likewise.
2066 (remote_fileio_func_rename): Likewise.
2067 (remote_fileio_func_unlink): Likewise.
2068 (remote_fileio_func_stat): Likewise.
2069 (remote_fileio_func_system): Likewise.
2070 * remote-mips.c (mips_xfer_memory): Likewise.
2071 (mips_load_srec): Likewise.
2072 (pmon_end_download): Likewise.
2073 * remote.c (new_remote_state): Likewise.
2074 (map_regcache_remote_table): Likewise.
2075 (remote_register_number_and_offset): Likewise.
2076 (init_remote_state): Likewise.
2077 (get_memory_packet_size): Likewise.
2078 (remote_pass_signals): Likewise.
2079 (remote_program_signals): Likewise.
2080 (remote_start_remote): Likewise.
2081 (remote_check_symbols): Likewise.
2082 (remote_query_supported): Likewise.
2083 (extended_remote_attach): Likewise.
2084 (process_g_packet): Likewise.
2085 (store_registers_using_G): Likewise.
2086 (putpkt_binary): Likewise.
2087 (read_frame): Likewise.
2088 (compare_sections_command): Likewise.
2089 (remote_hostio_pread): Likewise.
2090 (remote_hostio_readlink): Likewise.
2091 (remote_file_put): Likewise.
2092 (remote_file_get): Likewise.
2093 (remote_pid_to_exec_file): Likewise.
2094 (_initialize_remote): Likewise.
2095 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2096 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2097 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2098 (bfd_uses_spe_extensions): Likewise.
2099 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2100 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2101 * solib-dsbt.c (decode_loadmap): Likewise.
2102 (fetch_loadmap): Likewise.
2103 (scan_dyntag): Likewise.
2104 (enable_break): Likewise.
2105 (dsbt_relocate_main_executable): Likewise.
2106 * solib-frv.c (fetch_loadmap): Likewise.
2107 (enable_break2): Likewise.
2108 (frv_relocate_main_executable): Likewise.
2109 * solib-spu.c (spu_relocate_main_executable): Likewise.
2110 (spu_bfd_open): Likewise.
2111 * solib-svr4.c (lm_info_read): Likewise.
2112 (read_program_header): Likewise.
2113 (find_program_interpreter): Likewise.
2114 (scan_dyntag): Likewise.
2115 (elf_locate_base): Likewise.
2116 (open_symbol_file_object): Likewise.
2117 (read_program_headers_from_bfd): Likewise.
2118 (svr4_relocate_main_executable): Likewise.
2119 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2120 * solib.c (solib_find_1): Likewise.
2121 (exec_file_find): Likewise.
2122 (solib_find): Likewise.
2123 * source.c (openp): Likewise.
2124 (print_source_lines_base): Likewise.
2125 (forward_search_command): Likewise.
2126 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2127 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2128 (spu_get_overlay_table): Likewise.
2129 * stabsread.c (patch_block_stabs): Likewise.
2130 (define_symbol): Likewise.
2131 (again:): Likewise.
2132 (read_member_functions): Likewise.
2133 (read_one_struct_field): Likewise.
2134 (read_enum_type): Likewise.
2135 (common_block_start): Likewise.
2136 * stack.c (read_frame_arg): Likewise.
2137 (backtrace_command): Likewise.
2138 * stap-probe.c (stap_parse_register_operand): Likewise.
2139 * symfile.c (syms_from_objfile_1): Likewise.
2140 (find_separate_debug_file): Likewise.
2141 (load_command): Likewise.
2142 (load_progress): Likewise.
2143 (load_section_callback): Likewise.
2144 (reread_symbols): Likewise.
2145 (add_filename_language): Likewise.
2146 (allocate_compunit_symtab): Likewise.
2147 (read_target_long_array): Likewise.
2148 (simple_read_overlay_table): Likewise.
2149 * symtab.c (symbol_set_names): Likewise.
2150 (resize_symbol_cache): Likewise.
2151 (rbreak_command): Likewise.
2152 (completion_list_add_name): Likewise.
2153 (completion_list_objc_symbol): Likewise.
2154 (add_filename_to_list): Likewise.
2155 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2156 * target-memory.c (target_write_memory_blocks): Likewise.
2157 * target.c (target_read_string): Likewise.
2158 (read_whatever_is_readable): Likewise.
2159 (target_read_alloc_1): Likewise.
2160 (simple_search_memory): Likewise.
2161 (target_fileio_read_alloc_1): Likewise.
2162 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2163 * top.c (command_line_input): Likewise.
2164 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2165 * tracefile.c (tracefile_fetch_registers): Likewise.
2166 * tracepoint.c (add_memrange): Likewise.
2167 (init_collection_list): Likewise.
2168 (add_aexpr): Likewise.
2169 (trace_dump_actions): Likewise.
2170 (parse_trace_status): Likewise.
2171 (parse_tracepoint_definition): Likewise.
2172 (parse_tsv_definition): Likewise.
2173 (parse_static_tracepoint_marker_definition): Likewise.
2174 * tui/tui-file.c (tui_sfileopen): Likewise.
2175 (tui_file_adjust_strbuf): Likewise.
2176 * tui/tui-io.c (tui_expand_tabs): Likewise.
2177 * tui/tui-source.c (tui_set_source_content): Likewise.
2178 * typeprint.c (find_global_typedef): Likewise.
2179 * ui-file.c (do_ui_file_xstrdup): Likewise.
2180 (ui_file_obsavestring): Likewise.
2181 (mem_file_write): Likewise.
2182 * utils.c (make_hex_string): Likewise.
2183 (get_regcomp_error): Likewise.
2184 (puts_filtered_tabular): Likewise.
2185 (gdb_realpath_keepfile): Likewise.
2186 (ldirname): Likewise.
2187 (gdb_bfd_errmsg): Likewise.
2188 (substitute_path_component): Likewise.
2189 * valops.c (search_struct_method): Likewise.
2190 (find_oload_champ_namespace_loop): Likewise.
2191 * valprint.c (print_decimal_chars): Likewise.
2192 (read_string): Likewise.
2193 (generic_emit_char): Likewise.
2194 * varobj.c (varobj_delete): Likewise.
2195 (varobj_value_get_print_value): Likewise.
2196 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2197 * windows-tdep.c (display_one_tib): Likewise.
2198 * xcoffread.c (read_xcoff_symtab): Likewise.
2199 (process_xcoff_symbol): Likewise.
2200 (swap_sym): Likewise.
2201 (scan_xcoff_symtab): Likewise.
2202 (xcoff_initial_scan): Likewise.
2203 * xml-support.c (gdb_xml_end_element): Likewise.
2204 (xml_process_xincludes): Likewise.
2205 (xml_fetch_content_from_file): Likewise.
2206 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2207 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2208
2209 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2210
2211 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2212 instead of builtin_func_ptr.
2213 (ft32_pointer_to_address): New function.
2214 (ft32_address_class_type_flags): New function.
2215 (ft32_address_class_type_flags_to_name): New function.
2216 (ft32_address_class_name_to_type_flags): New function.
2217 (ft32_gdbarch_init): Set tdep->pc_type. Call
2218 set_gdbarch_pointer_to_address,
2219 set_gdbarch_address_class_type_flags
2220 set_gdbarch_address_class_name_to_type_flags,
2221 and set_gdbarch_address_class_type_flags_to_name.
2222 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2223
2224 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2225
2226 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2227 value is a reference, actually dereference it in order to get
2228 the underlying value.
2229
2230 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2231
2232 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2233
2234 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2235
2236 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2237 * linespec.c (linespec_lexer_lex_string): Same.
2238
2239 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2240
2241 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2242
2243 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2244
2245 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2246 variable. Call aarch64_decode_adr instead of
2247 aarch64_decode_adrp.
2248 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2249 (aarch64_decode_adr): New function declaration.
2250 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2251 (aarch64_decode_adr): New function, factored out from
2252 aarch64_decode_adrp to decode both adr and adrp instructions.
2253
2254 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2255
2256 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2257 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2258 (aarch64-insn.o): New rule.
2259 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2260 (aarch64*-*-linux*): Likewise.
2261 * arch/aarch64-insn.c: New file.
2262 * arch/aarch64-insn.h: New file.
2263 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2264 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2265 arch/aarch64-insn.h.
2266 (decode_add_sub_imm): Rename to ...
2267 (aarch64_decode_add_sub_imm): ... this.
2268 (decode_adrp): Rename to ...
2269 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2270 Declare in arch/aarch64-insn.h.
2271 (decode_b): Rename to ...
2272 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2273 Declare in arch/aarch64-insn.h.
2274 (decode_bcond): Rename to ...
2275 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2276 Declare in arch/aarch64-insn.h.
2277 (decode_br): Rename to ...
2278 (aarch64_decode_br): ... this.
2279 (decode_cb): Rename to ...
2280 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2281 Declare in arch/aarch64-insn.h.
2282 (decode_eret): Rename to ...
2283 (aarch64_decode_eret): ... this.
2284 (decode_movz): Rename to ...
2285 (aarch64_decode_movz): ... this.
2286 (decode_orr_shifted_register_x): Rename to ...
2287 (aarch64_decode_orr_shifted_register_x): ... this.
2288 (decode_ret): Rename to ...
2289 (aarch64_decode_ret): ... this.
2290 (decode_stp_offset): Rename to ...
2291 (aarch64_decode_stp_offset): ... this.
2292 (decode_stp_offset_wb): Rename to ...
2293 (aarch64_decode_stp_offset_wb): ... this.
2294 (decode_stur): Rename to ...
2295 (aarch64_decode_stur): ... this.
2296 (decode_tb): Rename to ...
2297 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2298 Declare in arch/aarch64-insn.h.
2299 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2300
2301 2015-09-20 Doug Evans <xdje42@gmail.com>
2302
2303 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2304
2305 2015-09-20 Doug Evans <xdje42@gmail.com>
2306
2307 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2308 variable name that collides with a parameter.
2309
2310 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2311
2312 * dwarf2loc.c (locexpr_get_frame_base): Renames
2313 block_op_get_frame_base.
2314 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2315 block_op_get_frame_base by reference to locexpr_get_frame_base.
2316 (loclist_get_frame_base): New function, near identical copy of
2317 locexpr_get_frame_base.
2318 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2319 block_op_get_frame_base by reference to loclist_get_frame_base.
2320
2321 2015-09-19 Doug Evans <xdje42@gmail.com>
2322
2323 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2324 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2325
2326 2015-09-18 Doug Evans <xdje42@gmail.com>
2327
2328 * linux-thread-db.c (record_thread): Return the created thread.
2329 (thread_from_lwp): Likewise.
2330 (thread_db_get_thread_local_address): Update.
2331
2332 2015-09-18 Doug Evans <xdje42@gmail.com>
2333
2334 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2335 move only member demangled_name up. All uses updated.
2336
2337 2015-09-18 Doug Evans <xdje42@gmail.com>
2338
2339 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2340 kind of minimal symbol in the error message.
2341 * objfiles.c (objfile_flavour_name): New function.
2342 * objfiles.h (objfile_flavour_name): Declare.
2343
2344 2015-09-18 Yao Qi <yao.qi@linaro.org>
2345
2346 * nat/aarch64-linux.c: Include elf/common.h,
2347 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2348 (aarch64_ps_get_thread_area): New function.
2349 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2350 (aarch64_ps_get_thread_area): Declare.
2351 * aarch64-linux-nat.c (ps_get_thread_area): Call
2352 aarch64_ps_get_thread_area.
2353
2354 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2355
2356 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2357
2358 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2359
2360 * NEWS: Announce new scheduler-locking mode.
2361 * infrun.c (schedlock_replay): New.
2362 (scheduler_enums): Add schedlock_replay.
2363 (scheduler_mode): Change default to schedlock_replay.
2364 (user_visible_resume_ptid): Handle schedlock_replay.
2365 (clear_proceed_status_thread): Stop replaying if resumed thread is
2366 not replaying.
2367 (schedlock_applies): Handle schedlock_replay.
2368 (_initialize_infrun): Document new scheduler-locking mode.
2369 * record-btrace.c (record_btrace_resume): Remove code to stop other
2370 threads when not replaying the resumed thread.
2371
2372 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2373
2374 * record-btrace.c ((record_btrace_will_replay): New.
2375 (init_record_btrace_ops): Initialize to_record_will_replay.
2376 * record-full.c ((record_full_will_replay): New.
2377 (init_record_full_ops): Initialize to_record_will_replay.
2378 * target-delegates.c: Regenerated.
2379 * target.c (target_record_will_replay): New.
2380 * target.h (struct target_ops) <to_record_will_replay>: New.
2381 (target_record_will_replay): New.
2382
2383 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2384
2385 * record-btrace.c (record_btrace_resume): Call
2386 target_record_stop_replaying.
2387 (record_btrace_stop_replaying_all): New.
2388 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2389 * record-full.c (record_full_stop_replaying): New.
2390 (init_record_full_ops ): Initialize to_record_stop_replaying.
2391 * target-delegates.c: Regenerated.
2392 * target.c (target_record_stop_replaying): New.
2393 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2394 (target_record_stop_replaying): New.
2395
2396 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2397
2398 * record-btrace.c (record_btrace_xfer_partial)
2399 (record_btrace_store_registers, record_btrace_prepare_to_store):
2400 Call record_btrace_is_replaying with inferior_ptid instead of
2401 minus_one_ptid.
2402 (record_btrace_store_registers): Change error message.
2403
2404 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2405
2406 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2407 Update users to pass minus_one_ptid.
2408 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2409 * record.c (cmd_record_delete): Pass inferior_ptid to
2410 target_record_is_replaying.
2411 * target-delegates.c: Regenerated.
2412 * target.c (target_record_is_replaying): Add ptid argument.
2413 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2414 argument.
2415 (target_record_is_replaying): Add ptid argument.
2416
2417 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2418
2419 * record-btrace.c (record_btrace_open): Remove non_stop check.
2420 * NEWS: Announce that record btrace supports non-stop mode.
2421
2422 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2423
2424 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2425 in the TARKET_WAITKIND_NO_HISTORY case.
2426
2427 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2428
2429 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2430 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2431
2432 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2433
2434 * record-btrace.c (get_thread_current_frame): New.
2435 (record_btrace_start_replaying): Call get_thread_current_frame.
2436
2437 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2438
2439 * record-btrace.c (record_btrace_resume_thread): A move request
2440 overwrites a previous move request.
2441 (record_btrace_find_resume_thread): Removed.
2442 (record_btrace_resume): Resume all requested threads.
2443
2444 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2445
2446 * record-btrace.c: Include vec.h.
2447 (record_btrace_find_thread_to_move): Removed.
2448 (btrace_step_no_resumed, btrace_step_again)
2449 (record_btrace_stop_replaying_at_end): New.
2450 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2451 (record_btrace_single_step_forward): Remove calls to
2452 record_btrace_stop_replaying.
2453 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2454 BTHR_RCONT. Keep threads at the end of their history moving.
2455 (record_btrace_wait): Call record_btrace_step_thread for all threads
2456 until one reports an event. Call record_btrace_stop_replaying_at_end
2457 for the eventing thread.
2458
2459 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2460
2461 * record-btrace.c (record_btrace_single_step_forward): Return
2462 NO_HISTORY if a step brings us to the end of the execution history.
2463
2464 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2465
2466 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2467 to ...
2468 (record_btrace_single_step_forward): ... here and
2469 (record_btrace_single_step_backward): ... here.
2470
2471 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2472
2473 * record-btrace.c (btrace_step_spurious)
2474 (record_btrace_single_step_forward)
2475 (record_btrace_single_step_backward): New.
2476 (record_btrace_step_thread): Call record_btrace_single_step_forward
2477 and record_btrace_single_step_backward.
2478
2479 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2480
2481 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2482 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2483
2484 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2485
2486 * record-btrace.c (btrace_thread_flag_to_str)
2487 (record_btrace_cancel_resume): New.
2488 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2489 (record_btrace_resume): Print execution direction.
2490 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2491 (record_btrace_wait): Call record_btrace_cancel_resume.
2492
2493 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2494
2495 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2496 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2497 (record_btrace_find_thread_to_move): Also accept threads that have
2498 BTHR_STOP set.
2499 (btrace_step_stopped_on_request, record_btrace_stop): New.
2500 (record_btrace_step_thread): Support BTHR_STOP.
2501 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2502 (init_record_btrace_ops): Initialize to_stop.
2503
2504 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2505
2506 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2507 target_is_non_stop_p ().
2508
2509 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2510
2511 * ada-typeprint.c (print_array_type): Do not describe arrays as
2512 packed when they embed dynamic elements.
2513
2514 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2515
2516 * symtab.h (address_class): Document that TLS variables
2517 are handled by LOC_UNRESOLVED.
2518 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2519 * printcmd.c (address_info): Don't relocate TLS variables.
2520
2521 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2522
2523 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2524 (decode_adrp): Likewise.
2525 (decode_b): Likewise.
2526 (decode_bcond): Likewise.
2527 (decode_br): Likewise.
2528 (decode_cb): Likewise.
2529 (decode_eret): Likewise.
2530 (decode_movz): Likewise.
2531 (decode_orr_shifted_register_x): Likewise.
2532 (decode_ret): Likewise.
2533 (decode_stp_offset): Likewise.
2534 (decode_stp_offset_wb): Likewise.
2535 (decode_stur): Likewise.
2536 (decode_tb): Likewise.
2537 (aarch64_analyze_prologue): Likewise.
2538 (pass_in_x): Likewise.
2539 (pass_in_v): Likewise.
2540 (pass_on_stack): Likewise.
2541 (aarch64_push_dummy_call): Likewise.
2542 (aarch64_extract_return_value): Likewise.
2543 (aarch64_store_return_value): Likewise.
2544 (aarch64_return_value): Likewise.
2545 (aarch64_record_asimd_load_store): Likewise.
2546 (aarch64_record_load_store): Likewise.
2547 (aarch64_record_data_proc_simd_fp): Likewise.
2548
2549 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2552 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2553 (ppc64_skip_trampoline_code_1): ... here.
2554 (ppc64_skip_trampoline_code): New wrapper function.
2555 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2556
2557 2015-09-15 Yao Qi <yao.qi@linaro.org>
2558
2559 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2560 function.
2561 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2562 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2563 if target_can_do_single_step returns 1.
2564 * remote.c (struct vCont_action_support) <s, S>: New fields.
2565 (PACKET_vContSupported): New enum.
2566 (remote_protocol_features): New element for vContSupported.
2567 (remote_query_supported): Append "vContSupported+".
2568 (remote_vcont_probe): Remove support_s and support_S, use
2569 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2570 vCont packet if c and C actions are not supported.
2571 (remote_can_do_single_step): New function.
2572 (init_remote_ops): Install it to to_can_do_single_step.
2573 (_initialize_remote): Call add_packet_config_cmd.
2574 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2575 (target_can_do_single_step): New macro.
2576 * target-delegates.c: Re-generated.
2577
2578 2015-09-15 Yao Qi <yao.qi@linaro.org>
2579
2580 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2581 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2582 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2583 New function.
2584 (aarch64_siginfo_from_compat_siginfo): New function.
2585 * nat/aarch64-linux.h: Include signal.h.
2586 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2587 (compat_timer_t, compat_clock_t): Likewise.
2588 (struct compat_timeval): New.
2589 (union compat_sigval): New.
2590 (struct compat_siginfo): New.
2591 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2592 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2593 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2594 (cpt_si_band, cpt_si_fd): Likewise.
2595
2596 2015-09-14 Pedro Alves <palves@redhat.com>
2597
2598 * infrun.c (current_stop_id): New global.
2599 (get_stop_id, new_stop_id): New functions.
2600 (fetch_inferior_event): Handle normal_stop proceeding the target.
2601 (struct stop_context): New.
2602 (save_stop_context, release_stop_context_cleanup)
2603 (stop_context_changed): New functions.
2604 (normal_stop): Return true if the hook-stop changes the stop
2605 context.
2606 * infrun.h (get_stop_id): Declare.
2607 (normal_stop): Now returns int. Add documentation.
2608
2609 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2610
2611 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2612 comment. Handle packed arrays.
2613
2614 2015-09-14 Pedro Alves <palves@redhat.com>
2615
2616 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2617 mention of maint set/show target-non-stop.
2618
2619 2015-09-11 Don Breazeal <donb@codesourcery.com>
2620
2621 * NEWS: Announce new remote packets for the exec-events
2622 feature and the exec-events feature and associated commands.
2623
2624 2015-09-11 Don Breazeal <donb@codesourcery.com>
2625
2626 * remote.c (remote_exec_event_p): New function.
2627 (remote_insert_exec_catchpoint): New function.
2628 (remote_remove_exec_catchpoint): New function.
2629 (init_extended_remote_ops): Initialize extended_remote_ops
2630 members to_insert_exec_catchpoint and
2631 to_remove_exec_catchpoint.
2632
2633 2015-09-11 Don Breazeal <donb@codesourcery.com>
2634 Luis Machado <lgustavo@codesourcery.com>
2635
2636 * infrun.c (follow_exec): Use process-style ptid for
2637 exec message. Call add_inferior_with_spaces and
2638 target_follow_exec.
2639 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2640 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2641 * remote.c (remote_pspace_data): New static variable.
2642 (remote_pspace_data_cleanup): New function.
2643 (get_remote_exec_file): New function.
2644 (set_remote_exec_file_1): New function.
2645 (set_remote_exec_file): New function.
2646 (show_remote_exec_file): New function.
2647 (remote_exec_file): Delete static variable.
2648 (anonymous enum) <PACKET_exec_event_feature>: New
2649 enumeration constant.
2650 (remote_protocol_features): Add entry for exec-events feature.
2651 (remote_query_supported): Add client side of qSupported query
2652 for exec-events feature.
2653 (remote_follow_exec): New function.
2654 (remote_parse_stop_reply): Handle 'exec' stop reason.
2655 (extended_remote_run, extended_remote_create_inferior): Call
2656 get_remote_exec_file and set_remote_exec_file_1.
2657 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2658 member.
2659 (_initialize_remote): Call
2660 register_program_space_data_with_cleanup. Call
2661 add_packet_config_cmd for remote exec-events feature.
2662 Modify call to add_setshow_string_noescape_cmd for exec-file
2663 to use new functions set_remote_exec_file and
2664 show_remote_exec_file.
2665 * target-debug.h, target-delegates.c: Regenerated.
2666 * target.c (target_follow_exec): New function.
2667 * target.h (struct target_ops) <to_follow_exec>: New member.
2668 (target_follow_exec): Declare new function.
2669
2670 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2671
2672 * aarch64-tdep.c (decode_cb): Move up comment describing the
2673 encoding.
2674 (decode_tb): Fix a typo in comment above the function. Move up
2675 comment describing the encoding.
2676
2677 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2678
2679 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2680
2681 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2682
2683 PR gdb/18947
2684 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2685 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2686
2687 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2688
2689 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2690 operations.
2691
2692 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2693
2694 * ada-lang.c (ada_search_struct_field): Constify parameters
2695 and/or variables..
2696 (xget_renaming_scope): Likewise.
2697 (ada_is_redundant_range_encoding): Likewise.
2698 (scan_discrim_bound): Likewise.
2699 (to_fixed_range_type): Likewise.
2700
2701 2015-09-10 Yao Qi <yao.qi@linaro.org>
2702
2703 * breakpoint.c (download_tracepoint_locations): New local
2704 can_download_tracepoint. Check the result of
2705 target_can_download_tracepoint and save it in
2706 can_download_tracepoint if there are tracepoints to download.
2707 * linux-nat.h (enum tribool): Move it to ...
2708 * common/common-types.h: ... here.
2709
2710 2015-09-09 Pedro Alves <palves@redhat.com>
2711
2712 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2713 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2714
2715 2015-09-09 Pedro Alves <palves@redhat.com>
2716
2717 * continuations.c (add_continuation, restore_thread_cleanup)
2718 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2719 (do_all_continuations_thread, do_all_continuations)
2720 (discard_all_continuations_thread_callback)
2721 (discard_all_continuations_thread, discard_all_continuations)
2722 (add_intermediate_continuation)
2723 (do_all_intermediate_continuations_thread_callback)
2724 (do_all_intermediate_continuations_thread)
2725 (do_all_intermediate_continuations)
2726 (discard_all_intermediate_continuations_thread_callback)
2727 (discard_all_intermediate_continuations_thread)
2728 (discard_all_intermediate_continuations): Delete.
2729 * continuations.h (add_continuation, do_all_continuations)
2730 (do_all_continuations_thread, discard_all_continuations)
2731 (discard_all_continuations_thread, add_intermediate_continuation)
2732 (do_all_intermediate_continuations)
2733 (do_all_intermediate_continuations_thread)
2734 (discard_all_intermediate_continuations)
2735 (discard_all_intermediate_continuations_thread): Delete
2736 declarations.
2737 * event-top.c (stdin_event_handler): Delete references to
2738 continuations.
2739 * gdbthread.h (struct thread_info): Delete continuations and
2740 intermediate_continuations fields.
2741 * inf-loop.c (inferior_event_handler): Remove references to
2742 continuations.
2743 * infrun.c (infrun_thread_stop_requested_callback): Remove
2744 references to continuations.
2745 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2746 * thread.c: Don't include "continuations.h".
2747 (clear_thread_inferior_resources): Remove references to
2748 continuations.
2749
2750 2015-09-09 Pedro Alves <palves@redhat.com>
2751
2752 * infcall.c (struct dummy_frame_context_saver): Delete.
2753 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2754 (dummy_frame_context_saver_drop)
2755 (dummy_frame_context_saver_cleanup)
2756 (dummy_frame_context_saver_get_regs)
2757 (dummy_frame_context_saver_setup): Delete.
2758 * infcall.h (dummy_frame_context_saver_drop)
2759 (dummy_frame_context_saver_cleanup)
2760 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2761 Delete.
2762 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2763 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2764 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2765
2766 2015-09-09 Pedro Alves <palves@redhat.com>
2767
2768 * breakpoint.c: Include "thread-fsm.h".
2769 (struct until_break_command_continuation_args): Delete.
2770 (struct until_break_fsm): New.
2771 (until_break_fsm_ops): New global.
2772 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2773 (until_break_command_continuation): Delete.
2774 (until_break_fsm_clean_up): New function.
2775 (until_break_fsm_async_reply_reason): New function.
2776 (until_break_command): Adjust to create an until_break_fsm instead
2777 of a continuation.
2778 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2779 here.
2780 * infcmd.c (struct until_next_fsm): New.
2781 (until_next_fsm_ops): New global.
2782 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2783 (until_next_continuation): Delete.
2784 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2785 functions.
2786 (until_next_command): Adjust to create a new until_next_fsm
2787 instead of a continuation.
2788
2789 2015-09-09 Pedro Alves <palves@redhat.com>
2790
2791 * infcall.c: Include thread_fsm.h.
2792 (struct call_return_meta_info): New.
2793 (get_call_return_value): New function, factored out from
2794 call_function_by_hand_dummy.
2795 (struct call_thread_fsm): New.
2796 (call_thread_fsm_ops): New global.
2797 (new_call_thread_fsm, call_thread_fsm_should_stop)
2798 (call_thread_fsm_should_notify_stop): New functions.
2799 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2800 the thread.
2801 (call_function_by_hand_dummy): Create a new call_thread_fsm
2802 instance, associate it with the thread, and wait for the FSM to
2803 finish. If finished successfully, fetch the function's result
2804 value out of the FSM.
2805 * infrun.c (fetch_inferior_event): If the FSM says the stop
2806 shouldn't be notified, don't call normal_stop.
2807 (maybe_remove_breakpoints): New function, factored out from ...
2808 (normal_stop): ... here. Simplify.
2809 * infrun.h (maybe_remove_breakpoints): Declare.
2810 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2811 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2812 (thread_fsm_should_notify_stop): Declare.
2813
2814 2015-09-09 Pedro Alves <palves@redhat.com>
2815
2816 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2817 * breakpoint.c (handle_jit_event): Print debug output.
2818 (bpstat_what): Split event callback handling to ...
2819 (bpstat_run_callbacks): ... this new function.
2820 (momentary_bkpt_print_it): No longer handle bp_finish here.
2821 * breakpoint.h (bpstat_run_callbacks): Declare.
2822 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2823 <thread_fsm>: New field.
2824 (thread_cancel_execution_command): Declare.
2825 * infcmd.c: Include thread-fsm.h.
2826 (struct step_command_fsm): New.
2827 (step_command_fsm_ops): New global.
2828 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2829 (step_1): Adjust to use step_command_fsm_prepare and
2830 prepare_one_step.
2831 (struct step_1_continuation_args): Delete.
2832 (step_1_continuation): Delete.
2833 (step_command_fsm_should_stop): New function.
2834 (step_once): Delete.
2835 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2836 (prepare_one_step): New function, based on step_once.
2837 (until_next_command): Remove step_multi reference.
2838 (struct return_value_info): New.
2839 (print_return_value): Rename to ...
2840 (print_return_value_1): ... this. New struct return_value_info
2841 parameter. Adjust.
2842 (print_return_value): Reimplement as wrapper around
2843 print_return_value_1.
2844 (struct finish_command_fsm): New.
2845 (finish_command_continuation): Delete.
2846 (finish_command_fsm_ops): New global.
2847 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2848 functions.
2849 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2850 New.
2851 (finish_command_continuation_free_arg): Delete.
2852 (finish_command_fsm_async_reply_reason): New.
2853 (finish_backward, finish_forward): Change symbol parameter to a
2854 finish_command_fsm. Adjust.
2855 (finish_command): Create a finish_command_fsm. Adjust.
2856 * infrun.c: Include "thread-fsm.h".
2857 (clear_proceed_status_thread): Delete the thread's FSM.
2858 (infrun_thread_stop_requested_callback): Cancel the thread's
2859 execution command.
2860 (clean_up_just_stopped_threads_fsms): New function.
2861 (fetch_inferior_event): Handle the event_thread's should_stop
2862 method saying the command isn't done yet.
2863 (process_event_stop_test): Run breakpoint callbacks here.
2864 (print_stop_event): Rename to ...
2865 (print_stop_location): ... this.
2866 (restore_current_uiout_cleanup): New function.
2867 (print_stop_event): Reimplement.
2868 (normal_stop): No longer notify the end_stepping_range observers
2869 here handle "step N" nor "finish" here. No longer call
2870 print_stop_event here.
2871 * infrun.h (struct return_value_info): Forward declare.
2872 (print_return_value): Declare.
2873 (print_stop_event): Change prototype.
2874 * thread-fsm.c: New file.
2875 * thread-fsm.h: New file.
2876 * thread.c: Include "thread-fsm.h".
2877 (thread_cancel_execution_command): New function.
2878 (clear_thread_inferior_resources): Call it.
2879 * cli/cli-interp.c (cli_on_normal_stop): New function.
2880 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2881 observer.
2882 * mi/mi-interp.c: Include "thread-fsm.h".
2883 (restore_current_uiout_cleanup): Delete.
2884 (mi_on_normal_stop): If the thread has an FSM associated, and it
2885 finished, ask it for the async-reply-reason to print. Always call
2886 print_stop_event here, regardless of the top-level interpreter.
2887 Check bpstat_what to tell whether an asynchronous breakpoint hit
2888 triggered.
2889 * tui/tui-interp.c (tui_on_normal_stop): New function.
2890 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2891
2892 2015-09-09 Pedro Alves <palves@redhat.com>
2893
2894 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2895 check whether the target can async.
2896 * inf-loop.c (inferior_event_handler): Only call target_async if
2897 the target can async.
2898 * infcall.c: Include top.h and interps.h.
2899 (run_inferior_call): For the interpreter to sync mode while
2900 running the infcall. Call wait_sync_command_done instead of
2901 wait_for_inferior plus normal_stop.
2902 * infcmd.c (prepare_execution_command): Don't check whether the
2903 target can async when running in the foreground.
2904 (step_1): Delete synchronous case handling.
2905 (step_once): Always install a continuation, even in sync mode.
2906 (until_next_command, finish_forward): Don't check whether the
2907 target can async.
2908 (attach_command_post_wait, notice_new_inferior): Always install a
2909 continuation, even in sync mode.
2910 * infrun.c (mark_infrun_async_event_handler): New function.
2911 (proceed): In sync mode, mark infrun's event source instead of
2912 waiting for events here.
2913 (fetch_inferior_event): If the target can't async, do a blocking
2914 wait.
2915 (prepare_to_wait): In sync mode, mark infrun's event source.
2916 (infrun_async_inferior_event_handler): No longer bail out if the
2917 target can't async.
2918 * infrun.h (mark_infrun_async_event_handler): New declaration.
2919 * linux-nat.c (linux_nat_wait_1): Remove calls to
2920 set_sigint_trap/clear_sigint_trap.
2921 (linux_nat_terminal_inferior): No longer check whether the target
2922 can async.
2923 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2924 comment.
2925 (mi_execute_command_input_handler): No longer check whether the
2926 target is async. Update and simplify comment.
2927 * target.c (default_target_wait): New function.
2928 * target.h (struct target_ops) <to_wait>: Now defaults to
2929 default_target_wait.
2930 (default_target_wait): Declare.
2931 * top.c (wait_sync_command_done): New function, factored out from
2932 ...
2933 (maybe_wait_sync_command_done): ... this.
2934 * top.h (wait_sync_command_done): Declare.
2935 * target-delegates.c: Regenerate.
2936
2937 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2938
2939 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2940 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2941 Remove include of sys/utsname.h.
2942 (linux_determine_kernel_ptr_bits): Remove.
2943 (linux_determine_kernel_start): New.
2944 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2945 Update check.
2946 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2947 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2948 initialization.
2949 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2950 assignment.
2951
2952 2015-09-07 Pedro Alves <palves@redhat.com>
2953
2954 * guile/guile-internal.h (as_a_scm_t_subr): New.
2955 * guile/guile.c (misc_guile_functions): Use it.
2956 * guile/scm-arch.c (arch_functions): Use it.
2957 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2958 Use it.
2959 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2960 * guile/scm-cmd.c (command_functions): Use it.
2961 * guile/scm-disasm.c (disasm_functions): Use it.
2962 * guile/scm-exception.c (exception_functions)
2963 (private_exception_functions): Use it.
2964 * guile/scm-frame.c (frame_functions)
2965 * guile/scm-gsmob.c (gsmob_functions): Use it.
2966 * guile/scm-iterator.c (iterator_functions): Use it.
2967 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2968 * guile/scm-math.c (math_functions): Use it.
2969 * guile/scm-objfile.c (objfile_functions): Use it.
2970 * guile/scm-param.c (parameter_functions): Use it.
2971 * guile/scm-ports.c (port_functions, private_port_functions): Use
2972 it.
2973 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2974 * guile/scm-progspace.c (pspace_functions): Use it.
2975 * guile/scm-string.c (string_functions): Use it.
2976 * guile/scm-symbol.c (symbol_functions): Use it.
2977 * guile/scm-symtab.c (symtab_functions): Use it.
2978 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2979 it.
2980 * guile/scm-value.c (value_functions): Use it.
2981
2982 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2985 (tui_next_win): Likewise.
2986 (tui_prev_win): Likewise.
2987 (tui_partial_win_by_name): Likewise.
2988 (tui_init_generic_part): Likewise.
2989 (init_content_element): Likewise.
2990 (tui_del_window): Likewise.
2991 (tui_free_window): Likewise.
2992 (tui_del_data_windows): Likewise.
2993 (tui_free_data_content): Likewise.
2994 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2995 * tui/tui-regs.c (tui_show_register_group): Likewise.
2996 * tui/tui-win.c (tui_resize_all): Likewise.
2997 (tui_set_focus): Likewise.
2998 (tui_set_win_height): Likewise.
2999 (make_invisible_and_set_new_height): Likewise.
3000 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3001 * tui/tui-wingeneral.c (make_visible): Likewise.
3002
3003 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3006
3007 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3010 pointer.
3011 * dbxread.c (dbx_end_psymtab): Likewise.
3012 * gnu-nat.c (gnu_write_inferior): Likewise.
3013 * mdebugread.c (cross_ref): Likewise.
3014 * p-valprint.c (pascal_val_print): Likewise.
3015 * xcoffread.c (xcoff_end_psymtab): Likewise.
3016
3017 2015-09-04 Yao Qi <yao.qi@linaro.org>
3018
3019 * NEWS: Mention the aarch64 multi-arch debugging support.
3020
3021 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3022
3023 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3024 type instead of a TYPE_CODE_INT one for the string_char_type
3025 and the ada_primitive_type_char types.
3026
3027 2015-09-03 Yao Qi <yao.qi@linaro.org>
3028
3029 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3030 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3031 aarch64_linux_region_ok_for_watchpoint.
3032 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3033 New function.
3034 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3035 Declare it.
3036
3037 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3038
3039 * gdb_obstack.h (obstack_strdup): Declare.
3040 * gdb_obstack.c (obstack_strdup): Define.
3041 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3042 * gdbarch.c: Regenerate.
3043 * gdbarch.h: Regenerate.
3044 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3045
3046 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3047
3048 * gdbtypes.c (copy_type_recursive): Update documentation.
3049
3050 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3051
3052 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3053 as zero.
3054
3055 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3056
3057 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3058
3059 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 * solib-svr4.c (solib_event_probe_action): Call
3062 get_probe_argument_count using TRY...CATCH.
3063 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3064
3065 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3066
3067 * probe.h (struct probe_ops) <get_probe_argument_count,
3068 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3069 the comment that the function can throw an exception.
3070 (get_probe_argument_count): Likewise.
3071 (evaluate_probe_argument): Likewise.
3072 * stap-probe.c (stap_get_opcode): Call error instead of
3073 internal_error.
3074 (stap_get_expected_argument_type): Likewise. Add argument
3075 'probe'. Improve error message by mentioning the probe's name.
3076 (stap_parse_probe_arguments): Adjust call to
3077 stap_get_expected_argument_type.
3078 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3079 not zero. Call internal_error if GDB requests an argument but the
3080 probe has no arguments.
3081
3082 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3083
3084 * ada-lang.c (ada_resolve_function): Do not ask the user what
3085 match to use when in completion mode.
3086
3087 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3090 cast of NULL.
3091
3092 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3093
3094 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3095 call_abi using XSHAL_ABI macro.
3096
3097 2015-08-29 Doug Evans <xdje42@gmail.com>
3098
3099 * symtab.h (struct symbol): Tweak comment.
3100
3101 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3102
3103 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3104 gdbarch obstack instead of on the heap. Update commentary
3105 accordingly.
3106
3107 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3108
3109 GDB 7.10 released.
3110
3111 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3112
3113 * NEWS: Update entry about non-8-bits addressable memory.
3114
3115 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3116
3117 Revert:
3118 2014-11-06 Doug Evans <xdje42@gmail.com>
3119 * solib.c (solib_global_lookup): Fetch arch from objfile,
3120 not target_gdbarch.
3121
3122 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3123
3124 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3125 attempt to relocate a TLS variable offset.
3126
3127 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3128
3129 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3130 registered yet. Set inferior_ptid while calling target_read_memory.
3131
3132 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3133
3134 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3135 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3136 * linux-nat.c (check_stopped_by_breakpoint): Use
3137 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3138
3139 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3140
3141 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3142 thread was not yet discovered, use thread_from_lwp instead of
3143 calling thread_db_find_new_threads_1.
3144
3145 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3146
3147 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3148 statements.
3149
3150 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3151
3152 * NEWS: Document support for non-8-bits addressable memory.
3153
3154 2015-08-27 Pedro Alves <palves@redhat.com>
3155
3156 * configure.ac: Remove AC_TYPE_SIGNAL call.
3157 * configure, config.in: Regenerate.
3158
3159 2015-08-27 Pedro Alves <palves@redhat.com>
3160
3161 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3162 * extension-priv.h: Include signal.h.
3163 (struct signal_handler) <handler>: Change type to sighandler_t.
3164 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3165 * inflow.c (sigint_ours, sigquit_ours): Change type to
3166 sighandler_t.
3167 (child_terminal_inferior): Remove casts.
3168 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3169 (osig): Change type to sighandler_t.
3170 * nto-procfs.c (ofunc): Change type to sighandler_t.
3171 (procfs_wait): Remove casts.
3172 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3173 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3174 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3175
3176 2015-08-27 Pedro Alves <palves@redhat.com>
3177
3178 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3179 * gnulib/aclocal.m4: Renegerate.
3180 * gnulib/config.in: Renegerate.
3181 * gnulib/configure: Renegerate.
3182 * gnulib/import/Makefile.am: Update.
3183 * gnulib/import/Makefile.in: Regenerate.
3184 * gnulib/import/m4/gnulib-cache.m4: Update.
3185 * gnulib/import/m4/gnulib-comp.m4: Update.
3186 * gnulib/import/m4/signal_h.m4: New file.
3187 * gnulib/import/signal.in.h: New file.
3188
3189 2015-08-27 Pedro Alves <palves@redhat.com>
3190
3191 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3192 (MIN_MEMORY_PACKET_SIZE): New.
3193 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3194 (get_memory_packet_size): Adjust. No longer limit the max packet
3195 size.
3196 (set_memory_packet_size): Adjust, and remove dead code.
3197 (remote_check_symbols): Use xmalloc and a cleanup instead of
3198 alloca.
3199 (remote_packet_size): No longer cap the packet size.
3200 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3201
3202 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3203
3204 * compile/compile.c (compile_to_object): Mention language in
3205 error message.
3206
3207 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3208
3209 * target.c (target_pre_inferior): Unset attach_flag.
3210
3211 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3212
3213 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3214 * gdbarch.c: Re-generate.
3215
3216 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3217
3218 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3219 function with the XNEW-family equivalent.
3220 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3221 * ada-exp.y (write_ambiguous_var): Likewise.
3222 * ada-lang.c (resolve_subexp): Likewise.
3223 (user_select_syms): Likewise.
3224 (assign_aggregate): Likewise.
3225 (ada_evaluate_subexp): Likewise.
3226 (cache_symbol): Likewise.
3227 * addrmap.c (allocate_key): Likewise.
3228 (addrmap_create_mutable): Likewise.
3229 * aix-thread.c (sync_threadlists): Likewise.
3230 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3231 (alpha_gdbarch_init): Likewise.
3232 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3233 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3234 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3235 * arm-tdep.c (push_stack_item): Likewise.
3236 (arm_displaced_step_copy_insn): Likewise.
3237 (arm_gdbarch_init): Likewise.
3238 (_initialize_arm_tdep): Likewise.
3239 * avr-tdep.c (push_stack_item): Likewise.
3240 * ax-general.c (new_agent_expr): Likewise.
3241 * block.c (block_initialize_namespace): Likewise.
3242 * breakpoint.c (alloc_counted_command_line): Likewise.
3243 (update_dprintf_command_list): Likewise.
3244 (parse_breakpoint_sals): Likewise.
3245 (decode_static_tracepoint_spec): Likewise.
3246 (until_break_command): Likewise.
3247 (clear_command): Likewise.
3248 (update_global_location_list): Likewise.
3249 (get_breakpoint_objfile_data) Likewise.
3250 * btrace.c (ftrace_new_function): Likewise.
3251 (btrace_set_insn_history): Likewise.
3252 (btrace_set_call_history): Likewise.
3253 * buildsym.c (add_symbol_to_list): Likewise.
3254 (record_pending_block): Likewise.
3255 (start_subfile): Likewise.
3256 (start_buildsym_compunit): Likewise.
3257 (push_subfile): Likewise.
3258 (end_symtab_get_static_block): Likewise.
3259 (buildsym_init): Likewise.
3260 * cli/cli-cmds.c (source_command): Likewise.
3261 * cli/cli-decode.c (add_cmd): Likewise.
3262 * cli/cli-script.c (build_command_line): Likewise.
3263 (setup_user_args): Likewise.
3264 (realloc_body_list): Likewise.
3265 (process_next_line): Likewise.
3266 (copy_command_lines): Likewise.
3267 * cli/cli-setshow.c (do_set_command): Likewise.
3268 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3269 * coffread.c (coff_locate_sections): Likewise.
3270 (coff_symtab_read): Likewise.
3271 (coff_read_struct_type): Likewise.
3272 * common/cleanups.c (make_my_cleanup2): Likewise.
3273 * common/common-exceptions.c (throw_it): Likewise.
3274 * common/filestuff.c (make_cleanup_close): Likewise.
3275 * common/format.c (parse_format_string): Likewise.
3276 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3277 * compile/compile-object-load.c (munmap_list_add): Likewise.
3278 (compile_object_load): Likewise.
3279 * compile/compile-object-run.c (compile_object_run): Likewise.
3280 * compile/compile.c (append_args): Likewise.
3281 * corefile.c (specify_exec_file_hook): Likewise.
3282 * cp-support.c (make_symbol_overload_list): Likewise.
3283 * cris-tdep.c (push_stack_item): Likewise.
3284 (cris_gdbarch_init): Likewise.
3285 * ctf.c (ctf_trace_file_writer_new): Likewise.
3286 * dbxread.c (init_header_files): Likewise.
3287 (add_new_header_file): Likewise.
3288 (init_bincl_list): Likewise.
3289 (dbx_end_psymtab): Likewise.
3290 (start_psymtab): Likewise.
3291 (dbx_end_psymtab): Likewise.
3292 * dcache.c (dcache_init): Likewise.
3293 * dictionary.c (dict_create_hashed): Likewise.
3294 (dict_create_hashed_expandable): Likewise.
3295 (dict_create_linear): Likewise.
3296 (dict_create_linear_expandable): Likewise.
3297 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3298 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3299 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3300 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3301 (decode_frame_entry_1): Likewise.
3302 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3303 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3304 * dwarf2read.c (dwarf2_has_info): Likewise.
3305 (create_signatured_type_table_from_index): Likewise.
3306 (dwarf2_read_index): Likewise.
3307 (dw2_get_file_names_reader): Likewise.
3308 (create_all_type_units): Likewise.
3309 (read_cutu_die_from_dwo): Likewise.
3310 (init_tu_and_read_dwo_dies): Likewise.
3311 (init_cutu_and_read_dies): Likewise.
3312 (create_all_comp_units): Likewise.
3313 (queue_comp_unit): Likewise.
3314 (inherit_abstract_dies): Likewise.
3315 (read_call_site_scope): Likewise.
3316 (dwarf2_add_field): Likewise.
3317 (dwarf2_add_typedef): Likewise.
3318 (dwarf2_add_member_fn): Likewise.
3319 (attr_to_dynamic_prop): Likewise.
3320 (abbrev_table_alloc_abbrev): Likewise.
3321 (abbrev_table_read_table): Likewise.
3322 (add_include_dir): Likewise.
3323 (add_file_name): Likewise.
3324 (dwarf_decode_line_header): Likewise.
3325 (dwarf2_const_value_attr): Likewise.
3326 (dwarf_alloc_block): Likewise.
3327 (parse_macro_definition): Likewise.
3328 (set_die_type): Likewise.
3329 (write_psymtabs_to_index): Likewise.
3330 (create_cus_from_index): Likewise.
3331 (dwarf2_create_include_psymtab): Likewise.
3332 (process_psymtab_comp_unit_reader): Likewise.
3333 (build_type_psymtab_dependencies): Likewise.
3334 (read_comp_units_from_section): Likewise.
3335 (compute_compunit_symtab_includes): Likewise.
3336 (create_dwo_unit_in_dwp_v1): Likewise.
3337 (create_dwo_unit_in_dwp_v2): Likewise.
3338 (read_func_scope): Likewise.
3339 (process_structure_scope): Likewise.
3340 (mark_common_block_symbol_computed): Likewise.
3341 (load_partial_dies): Likewise.
3342 (dwarf2_symbol_mark_computed): Likewise.
3343 * elfread.c (elf_symfile_segments): Likewise.
3344 (elf_read_minimal_symbols): Likewise.
3345 * environ.c (make_environ): Likewise.
3346 * eval.c (evaluate_subexp_standard): Likewise.
3347 * event-loop.c (create_file_handler): Likewise.
3348 (create_async_signal_handler): Likewise.
3349 (create_async_event_handler): Likewise.
3350 (create_timer): Likewise.
3351 * exec.c (build_section_table): Likewise.
3352 * fbsd-nat.c (fbsd_remember_child): Likewise.
3353 * fork-child.c (fork_inferior): Likewise.
3354 * frv-tdep.c (new_variant): Likewise.
3355 * gdbarch.sh (gdbarch_alloc): Likewise.
3356 (append_name): Likewise.
3357 * gdbtypes.c (rank_function): Likewise.
3358 (copy_type_recursive): Likewise.
3359 (add_dyn_prop): Likewise.
3360 * gnu-nat.c (make_proc): Likewise.
3361 (make_inf): Likewise.
3362 (gnu_write_inferior): Likewise.
3363 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3364 (build_std_type_info_type): Likewise.
3365 * guile/scm-param.c (compute_enum_list): Likewise.
3366 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3367 * guile/scm-value.c (gdbscm_value_call): Likewise.
3368 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3369 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3370 (read_unwind_info): Likewise.
3371 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3372 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3373 (call_function_by_hand_dummy): Likewise.
3374 * infcmd.c (step_once): Likewise.
3375 (finish_forward): Likewise.
3376 (attach_command): Likewise.
3377 (notice_new_inferior): Likewise.
3378 * inferior.c (add_inferior_silent): Likewise.
3379 * infrun.c (add_displaced_stepping_state): Likewise.
3380 (save_infcall_control_state): Likewise.
3381 (save_inferior_ptid): Likewise.
3382 (_initialize_infrun): Likewise.
3383 * jit.c (bfd_open_from_target_memory): Likewise.
3384 (jit_gdbarch_data_init): Likewise.
3385 * language.c (add_language): Likewise.
3386 * linespec.c (decode_line_2): Likewise.
3387 * linux-nat.c (add_to_pid_list): Likewise.
3388 (add_initial_lwp): Likewise.
3389 * linux-thread-db.c (add_thread_db_info): Likewise.
3390 (record_thread): Likewise.
3391 (info_auto_load_libthread_db): Likewise.
3392 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3394 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3395 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3396 * macrocmd.c (macro_define_command): Likewise.
3397 * macroexp.c (gather_arguments): Likewise.
3398 * macroscope.c (sal_macro_scope): Likewise.
3399 * macrotab.c (new_macro_table): Likewise.
3400 * mdebugread.c (push_parse_stack): Likewise.
3401 (parse_partial_symbols): Likewise.
3402 (parse_symbol): Likewise.
3403 (psymtab_to_symtab_1): Likewise.
3404 (new_block): Likewise.
3405 (new_psymtab): Likewise.
3406 (mdebug_build_psymtabs): Likewise.
3407 (add_pending): Likewise.
3408 (elfmdebug_build_psymtabs): Likewise.
3409 * mep-tdep.c (mep_gdbarch_init): Likewise.
3410 * mi/mi-main.c (mi_execute_command): Likewise.
3411 * mi/mi-parse.c (mi_parse_argv): Likewise.
3412 * minidebug.c (lzma_open): Likewise.
3413 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3414 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3415 * mips-tdep.c (mips_gdbarch_init): Likewise.
3416 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3417 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3418 * mt-tdep.c (mt_registers_info): Likewise.
3419 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3420 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3421 (linux_enable_pt): Likewise.
3422 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3423 (linux_xfer_osdata_processgroups): Likewise.
3424 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3425 * nto-procfs.c (procfs_meminfo): Likewise.
3426 * objc-lang.c (start_msglist): Likewise.
3427 (selectors_info): Likewise.
3428 (classes_info): Likewise.
3429 (find_methods): Likewise.
3430 * objfiles.c (allocate_objfile): Likewise.
3431 (update_section_map): Likewise.
3432 * osabi.c (gdbarch_register_osabi): Likewise.
3433 (gdbarch_register_osabi_sniffer): Likewise.
3434 * parse.c (start_arglist): Likewise.
3435 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3436 (hwdebug_insert_point): Likewise.
3437 * printcmd.c (display_command): Likewise.
3438 (ui_printf): Likewise.
3439 * procfs.c (create_procinfo): Likewise.
3440 (load_syscalls): Likewise.
3441 (proc_get_LDT_entry): Likewise.
3442 (proc_update_threads): Likewise.
3443 * prologue-value.c (make_pv_area): Likewise.
3444 (pv_area_store): Likewise.
3445 * psymtab.c (extend_psymbol_list): Likewise.
3446 (init_psymbol_list): Likewise.
3447 (allocate_psymtab): Likewise.
3448 * python/py-inferior.c (add_thread_object): Likewise.
3449 * python/py-param.c (compute_enum_values): Likewise.
3450 * python/py-value.c (valpy_call): Likewise.
3451 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3452 * python/python.c (ensure_python_env): Likewise.
3453 * record-btrace.c (record_btrace_start_replaying): Likewise.
3454 * record-full.c (record_full_reg_alloc): Likewise.
3455 (record_full_mem_alloc): Likewise.
3456 (record_full_end_alloc): Likewise.
3457 (record_full_core_xfer_partial): Likewise.
3458 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3459 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3460 * remote-notif.c (remote_notif_state_allocate): Likewise.
3461 * remote.c (demand_private_info): Likewise.
3462 (remote_notif_stop_alloc_reply): Likewise.
3463 (remote_enable_btrace): Likewise.
3464 * reverse.c (save_bookmark_command): Likewise.
3465 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3466 * rx-tdep.c (rx_gdbarch_init): Likewise.
3467 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3468 * ser-go32.c (dos_get_tty_state): Likewise.
3469 (dos_copy_tty_state): Likewise.
3470 * ser-mingw.c (ser_windows_open): Likewise.
3471 (ser_console_wait_handle): Likewise.
3472 (ser_console_get_tty_state): Likewise.
3473 (make_pipe_state): Likewise.
3474 (net_windows_open): Likewise.
3475 * ser-unix.c (hardwire_get_tty_state): Likewise.
3476 (hardwire_copy_tty_state): Likewise.
3477 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3478 * solib-dsbt.c (dsbt_current_sos): Likewise.
3479 (dsbt_relocate_main_executable): Likewise.
3480 * solib-frv.c (frv_current_sos): Likewise.
3481 (frv_relocate_main_executable): Likewise.
3482 * solib-spu.c (spu_bfd_fopen): Likewise.
3483 * solib-svr4.c (lm_info_read): Likewise.
3484 (svr4_copy_library_list): Likewise.
3485 (svr4_default_sos): Likewise.
3486 * source.c (find_source_lines): Likewise.
3487 (line_info): Likewise.
3488 (add_substitute_path_rule): Likewise.
3489 * spu-linux-nat.c (spu_bfd_open): Likewise.
3490 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3491 * stabsread.c (dbx_lookup_type): Likewise.
3492 (read_type): Likewise.
3493 (read_member_functions): Likewise.
3494 (read_struct_fields): Likewise.
3495 (read_baseclasses): Likewise.
3496 (read_args): Likewise.
3497 (_initialize_stabsread): Likewise.
3498 * stack.c (func_command): Likewise.
3499 * stap-probe.c (handle_stap_probe): Likewise.
3500 * symfile.c (addrs_section_sort): Likewise.
3501 (addr_info_make_relative): Likewise.
3502 (load_section_callback): Likewise.
3503 (add_symbol_file_command): Likewise.
3504 (init_filename_language_table): Likewise.
3505 * symtab.c (create_filename_seen_cache): Likewise.
3506 (sort_search_symbols_remove_dups): Likewise.
3507 (search_symbols): Likewise.
3508 * target.c (make_cleanup_restore_target_terminal): Likewise.
3509 * thread.c (new_thread): Likewise.
3510 (enable_thread_stack_temporaries): Likewise.
3511 (make_cleanup_restore_current_thread): Likewise.
3512 (thread_apply_all_command): Likewise.
3513 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3514 * top.c (gdb_readline_wrapper): Likewise.
3515 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3516 * tracepoint.c (trace_find_line_command): Likewise.
3517 (all_tracepoint_actions_and_cleanup): Likewise.
3518 (make_cleanup_restore_current_traceframe): Likewise.
3519 (get_uploaded_tp): Likewise.
3520 (get_uploaded_tsv): Likewise.
3521 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3522 (tui_alloc_win_info): Likewise.
3523 (tui_alloc_content): Likewise.
3524 (tui_add_content_elements): Likewise.
3525 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3526 (tui_set_disassem_content): Likewise.
3527 * ui-file.c (ui_file_new): Likewise.
3528 (stdio_file_new): Likewise.
3529 (tee_file_new): Likewise.
3530 * utils.c (make_cleanup_restore_integer): Likewise.
3531 (add_internal_problem_command): Likewise.
3532 * v850-tdep.c (v850_gdbarch_init): Likewise.
3533 * valops.c (find_oload_champ): Likewise.
3534 * value.c (allocate_value_lazy): Likewise.
3535 (record_latest_value): Likewise.
3536 (create_internalvar): Likewise.
3537 * varobj.c (install_variable): Likewise.
3538 (new_variable): Likewise.
3539 (new_root_variable): Likewise.
3540 (cppush): Likewise.
3541 (_initialize_varobj): Likewise.
3542 * windows-nat.c (windows_make_so): Likewise.
3543 * x86-nat.c (x86_add_process): Likewise.
3544 * xcoffread.c (arrange_linetable): Likewise.
3545 (allocate_include_entry): Likewise.
3546 (process_linenos): Likewise.
3547 (SYMBOL_DUP): Likewise.
3548 (xcoff_start_psymtab): Likewise.
3549 (xcoff_end_psymtab): Likewise.
3550 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3551 * xtensa-tdep.c (xtensa_register_type): Likewise.
3552 * gdbarch.c: Regenerate.
3553 * gdbarch.h: Regenerate.
3554
3555 2015-08-25 Don Breazeal <donb@codesourcery.com>
3556
3557 * infrun.c (follow_exec): Re-order operations for
3558 handling follow-exec-mode "new".
3559 (handle_inferior_event_1): Assign ecs->event_thread
3560 to the current thread.
3561 * remote.c (get_remote_arch_state): Add an assertion.
3562
3563 2015-08-26 Pedro Alves <palves@redhat.com>
3564
3565 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3566
3567 2015-08-25 Pedro Alves <palves@redhat.com>
3568
3569 PR gdb/18804
3570 * defs.h (maybe_quit): Declare.
3571 (QUIT): Now calls maybe_quit.
3572 * event-loop.c (clear_async_signal_handler)
3573 (async_signal_handler_is_marked): New functions.
3574 * event-loop.h (async_signal_handler_is_marked)
3575 (clear_async_signal_handler): New declarations.
3576 * remote.c (remote_check_pending_interrupt): New function.
3577 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3578 longer check whether the target is async. If waiting for a stop
3579 reply, and a Ctrl-C as been sent to the target, offer to
3580 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3581 Otherwise do not disconnect and throw a quit.
3582 (_initialize_remote): Install remote_check_pending_interrupt as
3583 to_check_pending_interrupt.
3584 * target.c (target_check_pending_interrupt): New function.
3585 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3586 field.
3587 (target_check_pending_interrupt): New declaration.
3588 * utils.c (maybe_quit): New function.
3589 * target-delegates.c: Regenerate.
3590
3591 2015-08-25 Yao Qi <yao.qi@linaro.org>
3592
3593 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3594 Rename local variable pid to tid, and get lwpid of lwp. Update
3595 debug output.
3596
3597 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3598
3599 * ada-lang.c (ada_read_var_value): Add a var_block argument
3600 and pass it to default_read_var_value.
3601 * block.c (block_static_link): New accessor.
3602 * block.h (block_static_link): Declare it.
3603 * buildsym.c (finish_block_internal): Add a static_link
3604 argument. If there is a static link, associate it to the new
3605 block.
3606 (finish_block): Add a static link argument and pass it to
3607 finish_block_internal.
3608 (end_symtab_get_static_block): Update calls to finish_block and
3609 to finish_block_internal.
3610 (end_symtab_with_blockvector): Update call to
3611 finish_block_internal.
3612 * buildsym.h: Forward-declare struct dynamic_prop.
3613 (struct context_stack): Add a static_link field.
3614 (finish_block): Add a static link argument.
3615 * c-exp.y: Remove an obsolete comment (evaluation of variables
3616 already start from the selected frame, and now they climb *up*
3617 the call stack) and propagate the block information to the
3618 produced expression.
3619 * d-exp.y: Likewise.
3620 * f-exp.y: Likewise.
3621 * go-exp.y: Likewise.
3622 * jv-exp.y: Likewise.
3623 * m2-exp.y: Likewise.
3624 * p-exp.y: Likewise.
3625 * coffread.c (coff_symtab_read): Update calls to finish_block.
3626 * dbxread.c (process_one_symbol): Likewise.
3627 * xcoffread.c (read_xcoff_symtab): Likewise.
3628 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3629 "sym" parameter to struct block_symbol, update its uses and pass
3630 its block to calls to read_var_value.
3631 (convert_symbol_sym): Update the calls to convert_one_symbol.
3632 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3633 call to read_var_value.
3634 * dwarf2loc.c (block_op_get_frame_base): New.
3635 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3636 get_frame_base method.
3637 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3638 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3639 instead of the selected frame in order to evaluate the
3640 expression.
3641 (dwarf2_evaluate_property): Add a frame argument. Update call
3642 to dwarf2_locexpr_baton_eval to provide a frame in available and
3643 to handle the absence of address stack.
3644 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3645 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3646 declaration.
3647 (read_func_scope): Record any available static link description.
3648 Update call to finish_block.
3649 (read_lexical_block_scope): Update call to finish_block.
3650 * findvar.c (follow_static_link): New.
3651 (get_hosting_frame): New.
3652 (default_read_var_value): Add a var_block argument. Use
3653 get_hosting_frame to handle non-local references.
3654 (read_var_value): Add a var_block argument and pass it to the
3655 LA_READ_VAR_VALUE method.
3656 * gdbtypes.c (resolve_dynamic_range): Update calls to
3657 dwarf2_evaluate_property.
3658 (resolve_dynamic_type_internal): Likewise.
3659 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3660 read_var_value, passing it the block coming from symbol lookup.
3661 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3662 read_var_value (TODO).
3663 * infcmd.c (finish_command_continuation): Update call to
3664 read_var_value, passing it the block coming from symbol lookup.
3665 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3666 * language.h (struct language_defn): Add a var_block argument to
3667 the LA_READ_VAR_VALUE method.
3668 * objfiles.c (struct static_link_htab_entry): New.
3669 (static_link_htab_entry_hash): New.
3670 (static_link_htab_entry_eq): New.
3671 (objfile_register_static_link): New.
3672 (objfile_lookup_static_link): New.
3673 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3674 * objfiles.h: Include hashtab.h.
3675 (struct objfile): Add a static_links field.
3676 (objfile_register_static_link): New.
3677 (objfile_lookup_static_link): New.
3678 * printcmd.c (print_variable_and_value): Update call to
3679 read_var_value.
3680 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3681 * python/py-frame.c (frapy_read_var): Update call to
3682 read_var_value, passing it the block coming from symbol lookup.
3683 * python/py-framefilter.c (extract_sym): Add a sym_block
3684 parameter and set the pointed value to NULL (TODO).
3685 (enumerate_args): Update call to extract_sym.
3686 (enumerate_locals): Update calls to extract_sym and to
3687 read_var_value.
3688 * python/py-symbol.c (sympy_value): Update call to
3689 read_var_value (TODO).
3690 * stack.c (read_frame_local): Update call to read_var_value.
3691 (read_frame_arg): Likewise.
3692 (return_command): Likewise.
3693 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3694 method.
3695 (struct symbol): Add a block field.
3696 (SYMBOL_BLOCK): New accessor.
3697 * valops.c (value_of_variable): Remove frame/block handling and
3698 pass the block argument to read_var_value, which does this job
3699 now.
3700 (value_struct_elt_for_reference): Update calls to
3701 read_var_value.
3702 (value_of_this): Pass the block found to read_var_value.
3703 * value.h (read_var_value): Add a var_block argument.
3704 (default_read_var_value): Likewise.
3705
3706 2015-08-25 Yao Qi <yao.qi@linaro.org>
3707
3708 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3709 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3710 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3711
3712 2015-08-25 Yao Qi <yao.qi@linaro.org>
3713
3714 * Makefile.in (aarch64-liunx.o): New rule.
3715 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3716 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3717 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3718 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3719 extern.
3720 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3721 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3722 * nat/aarch64-linux.c: New file.
3723 * nat/aarch64-linux.h: New file.
3724
3725 2015-08-25 Yao Qi <yao.qi@linaro.org>
3726
3727 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3728 lwp_arch_private_info and ptid_of_lwp.
3729
3730 2015-08-25 Yao Qi <yao.qi@linaro.org>
3731
3732 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3733 Move it to nat/aarch64-linux-hw-point.c.
3734 (debug_reg_change_callback): Likewise.
3735 (aarch64_notify_debug_reg_change): :Likewise.
3736 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3737 (aarch64_dr_update_callback_param): New.
3738 (debug_reg_change_callback): New function.
3739 (aarch64_notify_debug_reg_change): Likewise.
3740 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3741 Remove the declaration.
3742
3743 2015-08-25 Yao Qi <yao.qi@linaro.org>
3744
3745 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3746 Call current_lwp_ptid.
3747
3748 2015-08-25 Yao Qi <yao.qi@linaro.org>
3749
3750 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3751 debug_printf.
3752
3753 2015-08-25 Yao Qi <yao.qi@linaro.org>
3754
3755 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3756 ptid_get_pid rather than ptid_get_lwp.
3757
3758 2015-08-24 Pedro Alves <palves@redhat.com>
3759
3760 * NEWS (New commands): Mention set/show remote
3761 multiprocess-extensions-packet.
3762 * remote.c (remote_query_supported): Only tell the server to use
3763 the multiprocess extensions if the user hasn't force-disabled them
3764 with "set remote multiprocess-extensions-packet off".
3765
3766 2015-08-24 Pedro Alves <palves@redhat.com>
3767
3768 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3769 1029a8112290f6eee9d7878a391c49db42c999bd.
3770 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3771 Regenerate.
3772 * gnulib/import/Makefile.am: Update.
3773 * gnulib/import/Makefile.in: Update.
3774 * gnulib/import/alloca.in.h: Update.
3775 * gnulib/import/basename-lgpl.c: Update.
3776 * gnulib/import/canonicalize-lgpl.c: Update.
3777 * gnulib/import/config.charset: Update.
3778 * gnulib/import/dirent.in.h: Update.
3779 * gnulib/import/dirfd.c: Update.
3780 * gnulib/import/dirname-lgpl.c: Update.
3781 * gnulib/import/dirname.h: Update.
3782 * gnulib/import/dosname.h: Update.
3783 * gnulib/import/errno.in.h: Update.
3784 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3785 * gnulib/import/extra/snippet/c++defs.h: Update.
3786 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3787 * gnulib/import/extra/update-copyright: Update.
3788 * gnulib/import/float+.h: Update.
3789 * gnulib/import/float.c: Update.
3790 * gnulib/import/float.in.h: Update.
3791 * gnulib/import/fnmatch.c: Update.
3792 * gnulib/import/fnmatch.in.h: Update.
3793 * gnulib/import/fnmatch_loop.c: Update.
3794 * gnulib/import/fpucw.h: Update.
3795 * gnulib/import/frexp.c: Update.
3796 * gnulib/import/frexpl.c: Update.
3797 * gnulib/import/gettimeofday.c: Update.
3798 * gnulib/import/inttypes.in.h: Update.
3799 * gnulib/import/isnan.c: Update.
3800 * gnulib/import/isnand-nolibm.h: Update.
3801 * gnulib/import/isnand.c: Update.
3802 * gnulib/import/isnanl-nolibm.h: Update.
3803 * gnulib/import/isnanl.c: Update.
3804 * gnulib/import/itold.c: Update.
3805 * gnulib/import/localcharset.c: Update.
3806 * gnulib/import/localcharset.h: Update.
3807 * gnulib/import/lstat.c: Update.
3808 * gnulib/import/m4/00gnulib.m4: Update.
3809 * gnulib/import/m4/absolute-header.m4: Update.
3810 * gnulib/import/m4/alloca.m4: Update.
3811 * gnulib/import/m4/canonicalize.m4: Update.
3812 * gnulib/import/m4/codeset.m4: Update.
3813 * gnulib/import/m4/configmake.m4: Update.
3814 * gnulib/import/m4/dirent_h.m4: Update.
3815 * gnulib/import/m4/dirfd.m4: Update.
3816 * gnulib/import/m4/dirname.m4: Update.
3817 * gnulib/import/m4/double-slash-root.m4: Update.
3818 * gnulib/import/m4/eealloc.m4: Update.
3819 * gnulib/import/m4/errno_h.m4: Update.
3820 * gnulib/import/m4/exponentd.m4: Update.
3821 * gnulib/import/m4/exponentl.m4: Update.
3822 * gnulib/import/m4/extensions.m4: Update.
3823 * gnulib/import/m4/extern-inline.m4: Update.
3824 * gnulib/import/m4/fcntl-o.m4: Update.
3825 * gnulib/import/m4/float_h.m4: Update.
3826 * gnulib/import/m4/fnmatch.m4: Update.
3827 * gnulib/import/m4/fpieee.m4: Update.
3828 * gnulib/import/m4/frexp.m4: Update.
3829 * gnulib/import/m4/frexpl.m4: Update.
3830 * gnulib/import/m4/gettimeofday.m4: Update.
3831 * gnulib/import/m4/glibc21.m4: Update.
3832 * gnulib/import/m4/gnulib-cache.m4: Update.
3833 * gnulib/import/m4/gnulib-common.m4: Update.
3834 * gnulib/import/m4/gnulib-comp.m4: Update.
3835 * gnulib/import/m4/gnulib-tool.m4: Update.
3836 * gnulib/import/m4/include_next.m4: Update.
3837 * gnulib/import/m4/inttypes-pri.m4: Update.
3838 * gnulib/import/m4/inttypes.m4: Update.
3839 * gnulib/import/m4/isnand.m4: Update.
3840 * gnulib/import/m4/isnanl.m4: Update.
3841 * gnulib/import/m4/largefile.m4: Update.
3842 * gnulib/import/m4/localcharset.m4: Update.
3843 * gnulib/import/m4/locale-fr.m4: Update.
3844 * gnulib/import/m4/locale-ja.m4: Update.
3845 * gnulib/import/m4/locale-zh.m4: Update.
3846 * gnulib/import/m4/longlong.m4: Update.
3847 * gnulib/import/m4/lstat.m4: Update.
3848 * gnulib/import/m4/malloc.m4: Update.
3849 * gnulib/import/m4/malloca.m4: Update.
3850 * gnulib/import/m4/math_h.m4: Update.
3851 * gnulib/import/m4/mbrtowc.m4: Update.
3852 * gnulib/import/m4/mbsinit.m4: Update.
3853 * gnulib/import/m4/mbsrtowcs.m4: Update.
3854 * gnulib/import/m4/mbstate_t.m4: Update.
3855 * gnulib/import/m4/memchr.m4: Update.
3856 * gnulib/import/m4/memmem.m4: Update.
3857 * gnulib/import/m4/mmap-anon.m4: Update.
3858 * gnulib/import/m4/multiarch.m4: Update.
3859 * gnulib/import/m4/nocrash.m4: Update.
3860 * gnulib/import/m4/off_t.m4: Update.
3861 * gnulib/import/m4/pathmax.m4: Update.
3862 * gnulib/import/m4/readlink.m4: Update.
3863 * gnulib/import/m4/rename.m4: Update.
3864 * gnulib/import/m4/rmdir.m4: Update.
3865 * gnulib/import/m4/ssize_t.m4: Update.
3866 * gnulib/import/m4/stat.m4: Update.
3867 * gnulib/import/m4/stdbool.m4: Update.
3868 * gnulib/import/m4/stddef_h.m4: Update.
3869 * gnulib/import/m4/stdint.m4: Update.
3870 * gnulib/import/m4/stdio_h.m4: Update.
3871 * gnulib/import/m4/stdlib_h.m4: Update.
3872 * gnulib/import/m4/string_h.m4: Update.
3873 * gnulib/import/m4/strstr.m4: Update.
3874 * gnulib/import/m4/strtok_r.m4: Update.
3875 * gnulib/import/m4/sys_socket_h.m4: Update.
3876 * gnulib/import/m4/sys_stat_h.m4: Update.
3877 * gnulib/import/m4/sys_time_h.m4: Update.
3878 * gnulib/import/m4/sys_types_h.m4: Update.
3879 * gnulib/import/m4/time_h.m4: Update.
3880 * gnulib/import/m4/unistd_h.m4: Update.
3881 * gnulib/import/m4/warn-on-use.m4: Update.
3882 * gnulib/import/m4/wchar_h.m4: Update.
3883 * gnulib/import/m4/wchar_t.m4: Update.
3884 * gnulib/import/m4/wctype_h.m4: Update.
3885 * gnulib/import/m4/wint_t.m4: Update.
3886 * gnulib/import/malloc.c: Update.
3887 * gnulib/import/malloca.c: Update.
3888 * gnulib/import/malloca.h: Update.
3889 * gnulib/import/math.in.h: Update.
3890 * gnulib/import/mbrtowc.c: Update.
3891 * gnulib/import/mbsinit.c: Update.
3892 * gnulib/import/mbsrtowcs-impl.h: Update.
3893 * gnulib/import/mbsrtowcs-state.c: Update.
3894 * gnulib/import/mbsrtowcs.c: Update.
3895 * gnulib/import/memchr.c: Update.
3896 * gnulib/import/memmem.c: Update.
3897 * gnulib/import/pathmax.h: Update.
3898 * gnulib/import/readlink.c: Update.
3899 * gnulib/import/ref-add.sin: Update.
3900 * gnulib/import/ref-del.sin: Update.
3901 * gnulib/import/rename.c: Update.
3902 * gnulib/import/rmdir.c: Update.
3903 * gnulib/import/same-inode.h: Update.
3904 * gnulib/import/stat.c: Update.
3905 * gnulib/import/stdbool.in.h: Update.
3906 * gnulib/import/stddef.in.h: Update.
3907 * gnulib/import/stdint.in.h: Update.
3908 * gnulib/import/stdio.c: Update.
3909 * gnulib/import/stdio.in.h: Update.
3910 * gnulib/import/stdlib.in.h: Update.
3911 * gnulib/import/str-two-way.h: Update.
3912 * gnulib/import/streq.h: Update.
3913 * gnulib/import/string.in.h: Update.
3914 * gnulib/import/stripslash.c: Update.
3915 * gnulib/import/strnlen1.c: Update.
3916 * gnulib/import/strnlen1.h: Update.
3917 * gnulib/import/strstr.c: Update.
3918 * gnulib/import/strtok_r.c: Update.
3919 * gnulib/import/sys_stat.in.h: Update.
3920 * gnulib/import/sys_time.in.h: Update.
3921 * gnulib/import/sys_types.in.h: Update.
3922 * gnulib/import/time.in.h: Update.
3923 * gnulib/import/unistd.in.h: Update.
3924 * gnulib/import/verify.h: Update.
3925 * gnulib/import/wchar.in.h: Update.
3926 * gnulib/import/wctype.in.h: Update.
3927 * gnulib/import/gettimeofday.c: New file.
3928 * gnulib/import/m4/absolute-header.m4: New file.
3929 * gnulib/import/m4/gettimeofday.m4: New file.
3930 * gnulib/import/m4/sys_socket_h.m4: New file.
3931 * gnulib/import/m4/sys_time_h.m4: New file.
3932 * gnulib/import/stdio.c: Delete file.
3933 * gnulib/import/sys_time.in.h: New file.
3934
3935 2015-08-24 Pedro Alves <palves@redhat.com>
3936
3937 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3938 * common/gdb_sys_time.h: New file.
3939 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3940 * gdb_select.h: Likewise.
3941 * gdb_usleep.c: Likewise.
3942 * maint.c: Likewise.
3943 * mi/mi-main.c: Likewise.
3944 * mi/mi-parse.h: Likewise.
3945 * remote-fileio.c: Likewise.
3946 * remote-m32r-sdi.c: Likewise.
3947 * remote.c: Likewise.
3948 * ser-base.c: Likewise.
3949 * ser-pipe.c: Likewise.
3950 * ser-tcp.c: Likewise.
3951 * ser-unix.c: Likewise.
3952 * symfile.c: Likewise.
3953 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3954 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3955 * utils.c: Likewise.
3956
3957 2015-08-24 Pedro Alves <palves@redhat.com>
3958
3959 * NEWS: Mention removed support for the various ROM monitors.
3960 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3961 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3962 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3963 gdb_target_obs.
3964 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3965 gdb_target_obs.
3966 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3967 dsrec.o from gdb_target_obs.
3968 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3969 from gdb_target_obs.
3970 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3971 gdb_target_obs.
3972 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3973 dink32-rom.o from gdb_target_obs.
3974 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3975 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3976 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3977 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3978
3979 2015-08-21 Pedro Alves <palves@redhat.com>
3980
3981 * frame.c (null_frame_id): Explicitly zero-initialize.
3982
3983 2015-08-21 Tom Tromey <tromey@redhat.com>
3984
3985 * dwarf2read.c (struct dwarf2_section_info): Rename field
3986 'asection' to 'section'.
3987 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3988 (dwarf2_locate_sections, dwarf2_locate_sections)
3989 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3990 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3991 (dwarf2_locate_v2_dwp_sections): Adjust.
3992
3993 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3994
3995 * top.h (gdb_in_secondary_prompt_p): Declare.
3996 * top.c (gdb_secondary_prompt_depth): Define.
3997 (gdb_in_secondary_prompt_p): Define.
3998 (gdb_readline_wrapper_cleanup): Decrement
3999 gdb_secondary_prompt_depth.
4000 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4001 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4002 are in a secondary prompt.
4003
4004 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4005
4006 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4007 emit the newline.
4008
4009 2015-08-21 Gary Benson <gbenson@redhat.com>
4010
4011 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4012
4013 2015-08-21 Gary Benson <gbenson@redhat.com>
4014
4015 * target.h (struct target_ops) <to_fileio_open>: New argument
4016 warn_if_slow. Update comment. All implementations updated.
4017 (target_fileio_open_warn_if_slow): New declaration.
4018 * target.c (target_fileio_open): Renamed as...
4019 (target_fileio_open_1): ...this. New argument warn_if_slow.
4020 Pass warn_if_slow to implementation. Update debug printing.
4021 (target_fileio_open): New function.
4022 (target_fileio_open_warn_if_slow): Likewise.
4023 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4024 target_fileio_open_warn_if_slow.
4025
4026 2015-08-21 Gary Benson <gbenson@redhat.com>
4027
4028 * nat/linux-namespaces.c (linux_mntns_access_fs):
4029 Do not overwrite old_chain.
4030
4031 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4032
4033 * arch/xtensa.h: New file.
4034 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4035 (ps_get_thread_area): New function.
4036 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4037 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4038 * xtensa-tdep.c (osabi.h): New #include.
4039 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4040 xtensa-specific hooks.
4041 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4042 member and move the structure to arch/xtensa.h.
4043
4044 2015-08-21 Pedro Alves <palves@redhat.com>
4045
4046 * remote.c (struct readahead_cache): New.
4047 (struct remote_state) <readahead_cache>: New field.
4048 (remote_open_1): Invalidate the cache.
4049 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4050 functions.
4051 (remote_hostio_pwrite): Invalidate the readahead cache.
4052 (remote_hostio_pread): Rename to ...
4053 (remote_hostio_pread_vFile): ... this.
4054 (remote_hostio_pread_from_cache): New function.
4055 (remote_hostio_pread): Reimplement.
4056 (remote_hostio_close): Invalidate the readahead cache.
4057
4058 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4059
4060 PR build/18843
4061 * procfs.c: Include "filestuff.h".
4062
4063 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4064
4065 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4066 curch.
4067 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4068 cur_line or curch, instead call wmove().
4069 (init_win_info) [CMD_WIN]: Likewise.
4070 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4071 instead call getcury().
4072 (tui_redisplay_readline): Don't set cur_line or curch.
4073 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4074 getcury().
4075 (tui_cont_sig): Remove call to wmove.
4076 (tui_getc): Don't read cur_line or curch, instead call getcury()
4077 or getyx(). Don't set curch.
4078 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4079 set cur_line or curch. Always move cursor to (0,0).
4080
4081 2015-08-20 Pedro Alves <palves@redhat.com>
4082
4083 * infrun.c (print_target_wait_results): Make extern.
4084 * infrun.h (print_target_wait_results): Declare.
4085 * remote.c (set_stop_requested_callback): Delete.
4086 (process_initial_stop_replies): New function.
4087 (remote_start_remote): Use it.
4088 (stop_reply_queue_length): New function.
4089
4090 2015-08-20 Pedro Alves <palves@redhat.com>
4091
4092 * dwarf2read.c (process_full_comp_unit): To tell whether
4093 start_subfile managed to deduce a language, test for
4094 language_unknown instead of language_c.
4095
4096 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4097
4098 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4099 matches attributes.
4100
4101 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4102
4103 * dwarf2read.c (dwarf2_string_attr): New function.
4104 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4105 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4106 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4107 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4108 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4109
4110 2015-08-18 Doug Evans <dje@google.com>
4111 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4112
4113 PR mi/18833
4114 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4115 if MI-like.
4116 * mi/mi-out.c: #include "vec.h".
4117 (ui_filep): New type.
4118 (DEV_VEC_P (ui_filep)): New type.
4119 (struct ui_out_data) <buffer, original_buffer>: Delete.
4120 (struct ui_out_data) <streams>: New member.
4121 (mi_ui_out_impl): Add data_destroy field.
4122 (mi_field_string, mi_field_fmt): Update.
4123 (mi_flush, mi_redirect, field_separator): Update.
4124 (mi_open, mi_close): Update.
4125 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4126 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4127 (mi_out_new): Call mi_out_data_ctor.
4128
4129 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4130
4131 * remote.c (strprefix): New.
4132 (remote_parse_stop_reply): Use strprefix instead of strncmp
4133 to ensure exact match of keyword.
4134
4135 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4136
4137 * gdb_bfd.c (debug_bfd_cache): New variable.
4138 (show_bfd_cache_debug): New function.
4139 (gdb_bfd_open): Add debug logging.
4140 (gdb_bfd_ref): Likewise.
4141 (gdb_bfd_unref): Likewise.
4142 (_initialize_gdb_bfd): Add new set/show command.
4143 * NEWS: Mention new command.
4144
4145 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * gdb_bfd.c (bfd_sharing): New variable.
4148 (show_bfd_sharing): New function.
4149 (gdb_bfd_open): Check bfd_sharing variable.
4150 (_initialize_gdb_bfd): Add new set/show command.
4151 * NEWS: Mention new command.
4152
4153 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4156 field.
4157 (struct gdb_bfd_cache_search): Likewise.
4158 (eq_bfd): Compare the size, inode, and device id fields.
4159 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4160 (gdb_bfd_ref): Likewise.
4161 (gdb_bfd_unref): Likewise.
4162
4163 2015-08-18 Pedro Alves <palves@redhat.com>
4164
4165 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4166 target implements to_always_non_stop_p, call it.
4167 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4168 (x86_linux_create_target): Install it as to_always_non_stop_p
4169 method.
4170
4171 2015-08-17 Doug Evans <dje@google.com>
4172
4173 * ui-out.c (default_ui_out_impl): Add comment.
4174
4175 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4176
4177 * d-exp.y (type_aggregate_p): New function.
4178 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4179 (classify_inner_name): Likewise.
4180 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4181
4182 2015-08-15 Doug Evans <xdje42@gmail.com>
4183
4184 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4185 updated.
4186 (add_psymbol_to_list): Ditto.
4187
4188 2015-08-15 Doug Evans <xdje42@gmail.com>
4189
4190 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4191 updated. Call end_psymtab_common.
4192 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4193 end_psymtab_common.
4194 (build_type_psymtabs_reader): Ditto.
4195 * psympriv.h (sort_pst_symbols): Delete.
4196 (end_psymtab_common): Declare.
4197 * psymtab.c (sort_pst_symbols): Make static.
4198 (end_psymtab_common): New function.
4199 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4200
4201 2015-08-15 Doug Evans <xdje42@gmail.com>
4202
4203 * defs.h (LANGUAGE_BITS): Define.
4204 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4205 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4206 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4207 (minimal_symbol_type): Add nr_minsym_types.
4208 (MINSYM_TYPE_BITS): Define.
4209 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4210 (domain_enum_tag): Add NR_DOMAINS.
4211 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4212 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4213
4214 2015-08-15 Doug Evans <xdje42@gmail.com>
4215
4216 * objfiles.h: Whitespace cleanup.
4217 * psympriv.h: Whitespace cleanup.
4218 * psymtab.c: Whitespace/coding convention cleanup.
4219
4220 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4221
4222 * inferior.c (detach_inferior_command): Don't call
4223 any_thread_of_process when pid is 0.
4224 (kill_inferior_command): Likewise.
4225
4226 2015-08-14 Doug Evans <xdje42@gmail.com>
4227
4228 PR gdb/11833
4229 * NEWS: Document new /s modifier for the disassemble command.
4230 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4231 (_initialize_cli_cmds): Update online docs of disassemble command.
4232 * disasm.c: #include "source.h".
4233 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4234 All uses updated.
4235 (dis_line_entry): New struct.
4236 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4237 (allocate_dis_line_table): New functions.
4238 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4239 (dump_insns): New arg end_pc. All callers updated.
4240 (do_mixed_source_and_assembly_deprecated): Renamed from
4241 do_mixed_source_and_assembly. All callers updated.
4242 (do_mixed_source_and_assembly): New function.
4243 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4244 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4245 DISASSEMBLY_SOURCE. All uses updated.
4246 (DISASSEMBLY_SOURCE): New macro.
4247 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4248
4249 2015-08-14 Keith Seitz <keiths@redhat.com>
4250
4251 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4252 `typename' to `type_name' to avoid C++ reserved word.
4253
4254 2015-08-14 Keith Seitz <keiths@redhat.com>
4255
4256 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4257 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4258 silence ARI errors.
4259
4260 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4261
4262 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4263 xstrprintf instead of malloc and sprintf.
4264 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4265 (lex_one_token): Likewise.
4266
4267 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4268
4269 * solib-svr4.c (read_program_header): Add base_addr argument to
4270 report the runtime address of the segment.
4271 (find_program_interpreter): Update read_program_header call to pass
4272 a NULL pointer for the new argument.
4273 (scan_dyntag): Add ptr_addr argument to report the runtime address
4274 of the tag payload.
4275 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4276 read_program_header to get the base address of the dynamic segment.
4277 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4278 read_program_header.
4279 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4280
4281 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4282
4283 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4284
4285 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4286
4287 * d-exp.y (%union): Add voidval.
4288 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4289 name in the lexing stage.
4290 (PostfixExpression): Move symbol completion handling in grammar here
4291 from PrimaryExpression.
4292 (PrimaryExpression): Move routines to handle resolving identifier
4293 tokens in the grammar here from push_expression_name.
4294 (IdentifierExp): Remove the handling of alternating '.' and identifier
4295 tokens.
4296 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4297 (BasicType): Remove C-style typename rules.
4298 (d_type_from_name, d_module_from_name, push_variable)
4299 (push_fieldnames, push_type_name, push_module_name)
4300 (push_expression_name): Remove.
4301 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4302 (token_and_value): New type.
4303 (token_fifo, popping, name_obstack): New globals.
4304 (classify_name): New function.
4305 (classify_inner_name): Likewise.
4306 (yylex): Likewise.
4307 (d_parse): Initialize token_fifo, popping and name_obstack.
4308
4309 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4310
4311 * Makefile.in (SFILES): Add d-namespace.c.
4312 (COMMON_OBS): Add d-namespace.o.
4313 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4314 la_lookup_symbol_nonlocal callback function pointer.
4315 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4316 (d_lookup_nested_symbol): New declaration.
4317 * d-namespace.c: New file.
4318
4319 2015-08-13 Pedro Alves <palves@redhat.com>
4320
4321 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4322 cleanup after the decref cleanup, not before.
4323
4324 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4325
4326 * ada-lang.c: Include namespace.h
4327 (aux_add_nonlocal_symbols): Fix a function name in comment.
4328 (ada_add_block_renamings): New.
4329 (add_nonlocal_symbols): Add global renamings handling.
4330 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4331 to...
4332 (ada_add_all_symbols): ... this new function.
4333 (ada_add_block_symbols): Try to match the input name against the
4334 "using directives list", perform a recursive symbol lookup on
4335 the matched declarations.
4336 * block.h (struct block): Move the_namespace to top-level as
4337 namespace_info. Remove the language_specific field.
4338 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4339 * buildsym.h (using_directives): Rename into...
4340 (local_using_directives): ... this.
4341 (global_using_directives): New.
4342 (struct context_stack): Rename the using_directives field into
4343 local_using_directives.
4344 * buildsym.c (finish_block_internal): Deal with the proper
4345 using directives repository (local or global).
4346 (prepare_for_building): Reset local_using_directives. Assert
4347 that there is no pending global using directive.
4348 (reset_symtab_globals): Reset global_using_directives and
4349 local_using_directives.
4350 (end_symtab_get_static_block): Don't ignore symtabs that have
4351 only using directives.
4352 (push_context): Update references to local_using_directives.
4353 (buildsym_init): Do not reset using_directives.
4354 * cp-support.c: Include namespace.h.
4355 * cp-support.h (struct using_direct): Move to namespace.h.
4356 (cp_add_using_directives): Move to namespace.h.
4357 * cp-namespace.c: Include namespace.h
4358 (cp_add_using_directive): Move to namespace.c, rename it to
4359 add_using_directive, add a "using_directives" argument and use
4360 it as the pending using directives repository. All callers
4361 updated.
4362 * dwarf2read.c (using_directives): New.
4363 (read_import_statement): Call using_directives.
4364 (read_func_scope): Update references to local_using_directives.
4365 (read_lexical_block_scope): Likewise.
4366 (read_namespace): Update the heading comment, call
4367 using_directives.
4368 * namespace.h: New file.
4369 * namespace.c: New file.
4370 * Makefile.in (SFILES): Add namespace.c.
4371 (COMMON_OBS): Add namespace.o
4372
4373 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4374
4375 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4376 compute RETADDR.
4377
4378 2015-08-12 Keith Seitz <keiths@redhat.com>
4379
4380 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4381 reserved C++ keyword "explicit" to "explicit_loc".
4382 * breakpoint.c (create_overlay_event_breakpoint)
4383 (create_longjmp_master_breakpoint)
4384 (create_std_terminate_master_breakpoint)
4385 (create_exception_master_breakpoint, update_static_tracepoint):
4386 Rename reserved C++ keyword "explicit" to "explicit_loc".
4387 * completer.c (collect_explicit_location_matches)
4388 (explicit_location_completer): Rename reserved C++ keyword
4389 "explicit" to "explicit_loc".
4390 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4391 (canonicalize_linespec, create_sals_line_offset)
4392 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4393 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4394 "explicit" to "explicit_loc".
4395 * location.c (struct event_location) <explicit>: Rename to
4396 "explicit_loc".
4397 (initialize_explicit_location, new_explicit_location)
4398 (explicit_location_to_string_internal, explicit_location_to_linespec):
4399 Rename reserved C++ keyword "explicit" to "explicit_loc".
4400 * location.h (explicit_location_to_string)
4401 (explicit_location_to_linespec, initialize_explicit_location)
4402 (new_explicit_location): Rename reserved C++ keyword "explicit"
4403 to "explicit_loc".
4404 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4405 keyword "explicit" to "explicit_loc".
4406
4407 2015-08-12 Keith Seitz <keiths@redhat.com>
4408
4409 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4410 and only call decode_line_1 when it is non-NULL.
4411
4412 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4413
4414 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4415 location address is not meaningful.
4416 (breakpoint_address_is_meaningful): Update comment.
4417
4418 2015-08-11 Keith Seitz <keiths@redhat.com>
4419
4420 * NEWS: Mention explicit locations.
4421 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4422 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4423 (_initialize_breakpoint): Update documentation for
4424 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4425
4426 2015-08-11 Keith Seitz <keiths@redhat.com>
4427
4428 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4429 explicit locations, options "--source", "--function",
4430 "--label", and "--line".
4431
4432 2015-08-11 Keith Seitz <keiths@redhat.com>
4433
4434 * completer.c: Include location.h.
4435 (enum match_type): New enum.
4436 (location_completer): Rename to ...
4437 (linespec_completer): ... this.
4438 (collect_explicit_location_matches, backup_text_ptr)
4439 (explicit_location_completer): New functions.
4440 (location_completer): "New" function; handle linespec
4441 and explicit location completions.
4442 (complete_line_internal): Remove all location completer-specific
4443 handling.
4444 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4445 (find_toplevel_char): Export.
4446 (linespec_parse_line_offset): Export.
4447 Issue error if STRING is not numerical.
4448 (gdb_get_linespec_parser_quote_characters): New function.
4449 * linespec.h (linespec_parse_line_offset): Declare.
4450 (get_gdb_linespec_parser_quote_characters): Declare.
4451 (is_ada_operator): Declare.
4452 (find_toplevel_char): Declare.
4453 (linespec_lexer_lex_keyword): Declare.
4454 * location.c (explicit_to_event_location): New function.
4455 (explicit_location_lex_one): New function.
4456 (string_to_explicit_location): New function.
4457 (string_to_event_location): Handle explicit locations.
4458 * location.h (explicit_to_event_location): Declare.
4459 (string_to_explicit_location): Declare.
4460
4461 2015-08-11 Keith Seitz <keiths@redhat.com>
4462
4463 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4464 linespec into explicit location.
4465 * breakpoint.c (create_overlay_breakpoint)
4466 (create_longjmp_master_breakpoint)
4467 (create_std_terminate_master_breakpoint)
4468 (create_exception_master_breakpoint): Convert linespec into explicit
4469 location.
4470 (update_static_tracepoint): Convert linespec into explicit location.
4471 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4472 location.h.
4473 (struct linespec) <expression, expr_pc, source_filename>
4474 <function_name, label_name, line_offset>: Replace with ...
4475 <explicit>: ... this.
4476 <is_linespec>: New member.
4477 (PARSER_EXPLICIT): New accessor macro.
4478 (undefined_label_error): New function.
4479 (source_file_not_found_error): New function.
4480 (linespec_parse_basic): The parser result is now an explicit location.
4481 Use PARSER_EXPLICIT to access it.
4482 Use undefined_label_error.
4483 (canonicalize_linespec): Convert canonical linespec into explicit
4484 location.
4485 Move string representation of location to explicit_location_to_linespec
4486 and use it and explicit_location_to_string to save string
4487 representations of the canonical location.
4488 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4489 explicit location. Update all references.
4490 (convert_explicit_location_to_sals): New function.
4491 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4492 result's explicit location.
4493 (linespec_state_constructor): Initialize is_linespec.
4494 Use PARSER_EXPLICIT.
4495 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4496 result.
4497 (event_location_to_sals): For linespec locations, set is_linespec.
4498 Handle explicit locations.
4499 (decode_objc): 'ls' contains an explicit location now. Update all
4500 references.
4501 (symtabs_from_filename): Use source_file_not_found_error.
4502 * location.c (struct event_location.u) <explicit>: New member.
4503 (initialize_explicit_location): New function.
4504 (initialize_event_location): Initialize explicit locations.
4505 (new_explicit_location, get_explicit_location)
4506 (get_explicit_location_const): New functions.
4507 (explicit_to_string_internal): New function; most of contents moved
4508 from canonicalize_linespec.
4509 (explicit_location_to_string): New function.
4510 (explicit_location_to_linespec): New function.
4511 (copy_event_location, delete_event_location)
4512 (event_location_to_string_const, event_location_empty_p): Handle
4513 explicit locations.
4514 * location.h (enum offset_relative_sign, struct line_offset): Move
4515 here from linespec.h.
4516 (enum event_location_type): Add EXPLICIT_LOCATION.
4517 (struct explicit_location): New structure.
4518 (explicit_location_to_string): Declare.
4519 (explicit_location_to_linespec): Declare.
4520 (new_explicit_location, get_explicit_locationp
4521 (get_explicit_location_const, initialize_explicit_location): Declare.
4522
4523 2015-08-11 Keith Seitz <keiths@redhat.com>
4524
4525 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4526 linespec for stap probe to probe location.
4527 * breakpoint.c (create_longjmp_master_breakpoint)
4528 (create_exception_master_breakpoint): Likewise.
4529 (break_command_1): Remove local variable `arg_cp'.
4530 Check location type to set appropriate breakpoint ops methods.
4531 (trace_command): Likewise.
4532 * linespec.c (event_location_to_sals): Assert on probe locations.
4533 * location.c (EL_PROBE): Add macro definition.
4534 (new_probe_location, get_probe_location): New functions.
4535 (copy_event_location, delete_event_location, event_location_to_string)
4536 (string_to_event_location, event_location_empty_p): Handle probe
4537 locations.
4538 * location.h (enum event_location_type): Add PROBE_LOCATION.
4539 (new_probe_location, get_probe_location): Declare.
4540 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4541 Convert linespec into probe location.
4542
4543 2015-08-11 Keith Seitz <keiths@redhat.com>
4544
4545 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4546 Convert linespec to address location.
4547 * linespec.c (canonicalize_linespec): Do not handle address
4548 locations here.
4549 (convert_address_location_to_sals): New function; contents moved
4550 from ...
4551 (convert_linespc_to_sals): ... here.
4552 (parse_linespec): Remove address locations from linespec grammar.
4553 Remove handling of address locations.
4554 (linespec_lex_to_end): Remove handling of address linespecs.
4555 (event_location_to_sals): Handle ADDRESS_LOCATION.
4556 (linespec_expression_to_pc): Export.
4557 * linespec.h (linespec_expression_to_pc): Add declaration.
4558 * location.c (struct event_location.u) <address>: New member.
4559 (new_address_location, get_address_location): New functions.
4560 (copy_event_location, delete_event_location, event_location_to_string)
4561 (string_to_event_location, event_location_empty_p): Handle address
4562 locations.
4563 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4564 (new_address_location, get_address_location): Declare.
4565 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4566 to address location.
4567 * spu-tdep.c (spu_catch_start): Likewise.
4568
4569 2015-08-11 Keith Seitz <keiths@redhat.com>
4570
4571 * ax-gdb.c: Include location.h.
4572 (agent_command_1) Use linespec location instead of address
4573 string.
4574 * break-catch-throw.c: Include location.h.
4575 (re_set_exception_catchpoint): Use linespec locations instead
4576 of address strings.
4577 * breakpoint.c: Include location.h.
4578 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4579 (create_std_terminate_master_breakpoint)
4580 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4581 Use linespec location instead of address string.
4582 (print_breakpoint_location): Use locations and
4583 event_location_to_string.
4584 Print extra_string for pending locations for non-MI streams.
4585 (print_one_breakpoint_location): Use locations and
4586 event_location_to_string.
4587 (init_raw_breakpoint_without_location): Initialize b->location.
4588 (create_thread_event_breakpoint): Use linespec location instead of
4589 address string.
4590 (init_breakpoint_sal): Likewise.
4591 Only save extra_string if it is non-NULL and not the empty string.
4592 Use event_location_to_string instead of `addr_string'.
4593 Constify `p' and `endp'.
4594 Use skip_spaces_const/skip_space_const instead of non-const versions.
4595 Copy the location into the breakpoint.
4596 If LOCATION is NULL, save the breakpoint address as a linespec location
4597 instead of an address string.
4598 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4599 event_location. All uses updated.
4600 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4601 (parse_breakpoint_sals): Use locations instead of address strings.
4602 Remove check for empty linespec with conditional.
4603 Refactor.
4604 (decode_static_tracepoint_spec): Make argument const and update
4605 function.
4606 (create_breakpoint): Change `arg' to a struct event_location and
4607 rename.
4608 Remove `copy_arg' and `addr_start'.
4609 If EXTRA_STRING is empty, set it to NULL.
4610 Don't populate `canonical' for pending breakpoints.
4611 Pass `extra_string' to find_condition_and_thread.
4612 Clear `extra_string' if `rest' was NULL.
4613 Do not error with "garbage after location" if setting a dprintf
4614 breakpoint.
4615 Copy the location into the breakpoint instead of an address string.
4616 (break_command_1): Use string_to_event_location and pass this to
4617 create_breakpoint instead of an address string.
4618 Check against `arg_cp' for a probe linespec.
4619 (dprintf_command): Use string_to_event_location and pass this to
4620 create_breakpoint instead of an address string.
4621 Throw an exception if no format string was specified.
4622 (print_recreate_ranged_breakpoint): Use event_location_to_string
4623 instead of address strings.
4624 (break_range_command, until_break_command)
4625 (init_ada_exception_breakpoint): Use locations instead
4626 of address strings.
4627 (say_where): Print out extra_string for pending locations.
4628 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4629 the breakpoint.
4630 (base_breakpoint_create_sals_from_location): Use struct event_location
4631 instead of address string.
4632 Remove `addr_start' and `copy_arg' parameters.
4633 (base_breakpoint_decode_location): Use struct event_location instead of
4634 address string.
4635 (bkpt_re_set): Use locations instead of address strings.
4636 Use event_location_empty_p to check for unset location.
4637 (bkpt_print_recreate): Use event_location_to_string instead of
4638 an address string.
4639 Print out extra_string for pending locations.
4640 (bkpt_create_sals_from_location, bkpt_decode_location)
4641 (bkpt_probe_create_sals_from_location): Use struct event_location
4642 instead of address string.
4643 (bkpt_probe_decode_location): Use struct event_location instead of
4644 address string.
4645 (tracepoint_print_recreate): Use event_location_to_string to
4646 recreate the tracepoint.
4647 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4648 (tracepoint_probe_create_sals_from_location)
4649 (tracepoint_probe_decode_location): Use struct event_location
4650 instead of address string.
4651 (dprintf_print_recreate): Use event_location_to_string to recreate
4652 the dprintf.
4653 (dprintf_re_set): Remove check for valid/missing format string.
4654 (strace_marker_create_sals_from_location)
4655 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4656 (update_static_tracepoint): Use struct event_location instead of
4657 address string.
4658 (location_to_sals): Likewise.
4659 Pass `extra_string' to find_condition_and_thread.
4660 For newly resolved pending breakpoint locations, clear the location's
4661 string representation.
4662 Assert that the breakpoint's condition string is NULL when
4663 condition_not_parsed.
4664 (breakpoint_re_set_default, create_sals_from_location_default)
4665 (decode_location_default, trace_command, ftrace_command)
4666 (strace_command, create_tracepoint_from_upload): Use locations
4667 instead of address strings.
4668 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4669 Use struct event_location instead of address string.
4670 Update all uses.
4671 <decode_location>: Likewise.
4672 (struct breakpoint) <addr_string>: Change to struct event_location
4673 and rename `location'.
4674 <addr_string_range_end>: Change to struct event_location and rename
4675 `location_range_end'.
4676 (create_breakpoint): Use struct event_location instead of address
4677 string.
4678 * cli/cli-cmds.c: Include location.h.
4679 (edit_command, list_command): Use locations instead of address strings.
4680 * elfread.c: Include location.h.
4681 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4682 * guile/scm-breakpoint.c: Include location.h.
4683 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4684 (gdbscm_register_breakpoint): Use locations instead of address
4685 strings.
4686 * linespec.c: Include location.h.
4687 (struct ls_parser) <stream>: Change to const char *.
4688 (PARSER_STREAM): Update.
4689 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4690 keywords must be followed by whitespace.
4691 (canonicalize_linespec): Save a linespec location into `canonical'.
4692 Save a canonical linespec into `canonical'.
4693 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4694 All uses updated.
4695 Update function description.
4696 (linespec_parser_new): Initialize `parser'.
4697 Update initialization of parsing stream.
4698 (event_location_to_sals): New function.
4699 (decode_line_full): Change `argptr' to a struct event_location and
4700 rename it `location'.
4701 Use locations instead of address strings.
4702 Call event_location_to_sals instead of parse_linespec.
4703 (decode_line_1): Likewise.
4704 (decode_line_with_current_source, decode_line_with_last_displayed)
4705 Use locations instead of address strings.
4706 (decode_objc): Likewise.
4707 Change `argptr' to const char * and rename `arg'.
4708 (destroy_linespec_result): Delete the linespec result's location
4709 instead of freeing the address string.
4710 * linespec.h (struct linespec_result) <addr_string>: Change to
4711 struct event_location and rename to ...
4712 <location>: ... this.
4713 (decode_line_1, decode_line_full): Change `argptr' to struct
4714 event_location. All callers updated.
4715 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4716 (mi_cmd_break_insert_1): Use locations instead of address strings.
4717 Throw an error if there was "garbage" at the end of the specified
4718 linespec.
4719 * probe.c: Include location.h.
4720 (parse_probes): Change `argptr' to struct event_location.
4721 Use event locations instead of address strings.
4722 * probe.h (parse_probes): Change `argptr' to struct event_location.
4723 * python/py-breakpoint.c: Include location.h.
4724 (bppy_get_location): Constify local variable `str'.
4725 Use event_location_to_string.
4726 (bppy_init): Use locations instead of address strings.
4727 * python/py-finishbreakpoint.c: Include location.h.
4728 (bpfinishpy_init): Remove local variable `addr_str'.
4729 Use locations instead of address strings.
4730 * python/python.c: Include location.h.
4731 (gdbpy_decode_line): Use locations instead of address strings.
4732 * remote.c: Include location.h.
4733 (remote_download_tracepoint): Use locations instead of address
4734 strings.
4735 * spu-tdep.c: Include location.h.
4736 (spu_catch_start): Remove local variable `buf'.
4737 Use locations instead of address strings.
4738 * tracepoint.c: Include location.h.
4739 (scope_info): Use locations instead of address strings.
4740 (encode_source_string): Constify parameter `src'.
4741 * tracepoint.h (encode_source_string): Likewise.
4742
4743 2015-08-11 Keith Seitz <keiths@redhat.com>
4744
4745 * Makefile.in (SFILES): Add location.c.
4746 (HFILES_NO_SRCDIR): Add location.h.
4747 (COMMON_OBS): Add location.o.
4748 * linespec.c (linespec_lex_to_end): New function.
4749 * linespec.h (linespec_lex_to_end): Declare.
4750 * location.c: New file.
4751 * location.h: New file.
4752
4753 2015-08-11 Keith Seitz <keiths@redhat.com>
4754
4755 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4756 Renamed to create_sals_from_location.
4757 <decode_linespec>: Renamed to decode_location.
4758 Update all callers.
4759 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4760 (create_sals_from_location_default): ... this.
4761 (addr_string_to_sals): Renamed to ...
4762 (location_to_sals): ... this.
4763 (decode_linespec_default): Renamed to ...
4764 (decode_location_default): ... this.
4765 (base_breakpoint_create_sals_from_address): Renamed to ...
4766 (base_breakpoint_create_sals_from_location): ... this.
4767 (bkpt_create_sals_from_address): Renamed to ...
4768 (bkpt_create_sals_from_location): ... this.
4769 (bkpt_decode_linespec): Renamed to ...
4770 (bkpt_decode_location): ... this.
4771 (bkpt_probe_create_sals_from_address): Renamed to ...
4772 (bkpt_probe_create_sals_from_location): ... this.
4773 (tracepoint_create_sals_from_address): Renamed to ...
4774 (tracepoint_create_sals_from_location): ... this.
4775 (tracepoint_decode_linespec): Renamed to ...
4776 (tracepoint_decode_location): ... this.
4777 (tracepoint_probe_create_sals_from_address): Renamed to ...
4778 (tracepoint_probe_create_sals_from_location): ... this.
4779 (tracepoint_probe_decode_linespec): Renamed to ...
4780 (tracepoint_probe_decode_location): ... this.
4781 (strace_marker_create_sals_from_address): Renamed to ...
4782 (strace_marker_create_sals_from_location): ... this.
4783 (decode_linespec_default): Renamed to ...
4784 (decode_location_default): ... this.
4785
4786 2015-08-10 Doug Evans <dje@google.com>
4787 Keith Seitz <keiths@redhat.com>
4788
4789 PR gdb/17960
4790 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4791 make_file_symbol_completion_list and made static.
4792 (make_file_symbol_completion_list): New function.
4793
4794 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4795
4796 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4797 trailing new-line at end of warning message.
4798 (proceed): Add i18n marker to error messages.
4799
4800 2015-08-07 Pedro Alves <palves@redhat.com>
4801
4802 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4803
4804 2015-08-07 Pedro Alves <palves@redhat.com>
4805
4806 * s390-linux-tdep.c (is_non_branch_ril)
4807 (s390_displaced_step_copy_insn): New functions.
4808 (s390_displaced_step_fixup): Update comment.
4809 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4810 gdbarch_displaced_step_copy_insn hook.
4811
4812 2015-08-07 Pedro Alves <palves@redhat.com>
4813
4814 * infrun.c (displaced_step_prepare_throw): Return -1 if
4815 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4816 comment.
4817 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4818 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4819 in file.
4820 (ppc_displaced_step_copy_insn): New function.
4821 (ppc_displaced_step_fixup): Update comment.
4822 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4823 gdbarch_displaced_step_copy_insn hook.
4824 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4825 NULL return.
4826 * gdbarch.h: Regenerate.
4827
4828 2015-08-07 Pedro Alves <palves@redhat.com>
4829
4830 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4831 field.
4832 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4833 Return false if dispaced stepping failed before.
4834 (resume): Pass the current inferior to
4835 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4836 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4837 displaced_stepping_failed flag, and fall back to an in-line
4838 step-over.
4839
4840 2015-08-07 Pedro Alves <palves@redhat.com>
4841
4842 * darwin-nat.c (darwin_stop): Rename to ...
4843 (darwin_interrupt): ... this.
4844 (_initialize_darwin_inferior): Adjust.
4845 * gnu-nat.c (gnu_stop): Delete.
4846 (gnu_target): Don't install gnu_stop.
4847 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4848 (inf_ptrace_interrupt): ... this.
4849 (inf_ptrace_target): Adjust.
4850 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4851 target_stop.
4852 * linux-nat (linux_nat_stop): Rename to ...
4853 (linux_nat_interrupt): ... this.
4854 (linux_nat_stop): Reimplement.
4855 (linux_nat_add_target): Install linux_nat_interrupt.
4856 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4857 (nto_handle_sigint_twice): ... this.
4858 (nto_interrupt): Rename to ...
4859 (nto_handle_sigint): ... this. Call target_interrupt instead of
4860 target_stop.
4861 (procfs_wait): Adjust.
4862 (procfs_stop): Rename to ...
4863 (procfs_interrupt): ... this.
4864 (init_procfs_targets): Adjust.
4865 * procfs.c (procfs_stop): Rename to ...
4866 (procfs_interrupt): ... this.
4867 (procfs_target): Adjust.
4868 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4869 (m32r_interrupt): ... this.
4870 (init_m32r_ops): Adjust.
4871 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4872 (gdbsim_interrupt_inferior): ... this.
4873 (gdbsim_stop): Rename to ...
4874 (gdbsim_interrupt): ... this.
4875 (gdbsim_cntrl_c): Adjust.
4876 (init_gdbsim_ops): Adjust.
4877 * remote.c (sync_remote_interrupt): Adjust comments.
4878 (remote_stop_as): Rename to ...
4879 (remote_interrupt_as): ... this.
4880 (remote_stop): Adjust comment.
4881 (remote_interrupt): New function.
4882 (init_remote_ops): Install remote_interrupt.
4883 * target.c (target_interrupt): New function.
4884 * target.h (struct target_ops) <to_interrupt>: New field.
4885 (target_interrupt): New declaration.
4886 * windows-nat.c (windows_stop): Rename to ...
4887 (windows_interrupt): ... this.
4888 * target-delegates.c: Regenerate.
4889
4890 2015-08-07 Pedro Alves <palves@redhat.com>
4891
4892 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4893 threads" as alternative to "switching back to stepped thread".
4894
4895 2015-08-07 Pedro Alves <palves@redhat.com>
4896
4897 * NEWS: Mention "maint set/show target-non-stop".
4898 * breakpoint.c (update_global_location_list): Check
4899 target_is_non_stop_p instead of non_stop.
4900 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4901 * infrun.c (show_can_use_displaced_stepping)
4902 (can_use_displaced_stepping_p, start_step_over_inferior):
4903 Likewise.
4904 (internal_resume_ptid): New function.
4905 (resume): Use it.
4906 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4907 all-stop mode but the target is always in non-stop mode, start all
4908 the other threads that are implicitly resumed too.
4909 (for_each_just_stopped_thread, fetch_inferior_event)
4910 (adjust_pc_after_break, stop_all_threads): Check
4911 target_is_non_stop_p instead of non_stop.
4912 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4913 with the target always in non-stop mode.
4914 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4915 instead of non_stop.
4916 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4917 instead of non_stop.
4918 (keep_going_stepped_thread): Use internal_resume_ptid.
4919 (stop_waiting): If in all-stop mode, and the target is in non-stop
4920 mode, stop all threads.
4921 (keep_going_pass): Likewise, when starting a new in-line step-over
4922 sequence.
4923 * linux-nat.c (get_pending_status, select_event_lwp)
4924 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4925 target_is_non_stop_p instead of non_stop.
4926 (linux_nat_always_non_stop_p): New function.
4927 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4928 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4929 * target-delegates.c: Regenerate.
4930 * target.c (target_is_non_stop_p): New function.
4931 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4932 (maint_set_target_non_stop_command)
4933 (maint_show_target_non_stop_command): New functions.
4934 (_initilize_target): Install "maint set/show target-non-stop"
4935 commands.
4936 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4937 (target_non_stop_enabled): New declaration.
4938 (target_is_non_stop_p): New declaration.
4939
4940 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4941
4942 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4943 has a pending status, return true.
4944 * gdbthread.h: Include target/waitstatus.h.
4945 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4946 stop_pc>: New fields.
4947 (struct thread_info) <resumed>: New field.
4948 (set_resumed): Declare.
4949 * infrun.c: Include "event-loop.h".
4950 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4951 (infrun_async): New function.
4952 (clear_step_over_info): Add debug output.
4953 (displaced_step_in_progress_any_inferior): New function.
4954 (displaced_step_fixup): New returns int.
4955 (start_step_over): Handle in-line step-overs too. Assert the
4956 thread is marked resumed.
4957 (resume_cleanups): Clear the thread's resumed flag.
4958 (resume): Set the thread's resumed flag. Return early if the
4959 thread has a pending status. Allow stepping a breakpoint with no
4960 signal.
4961 (proceed): Adjust to check 'resumed' instead of 'executing'.
4962 (clear_proceed_status_thread): If the thread has a pending status,
4963 and that status is a finished step, discard the pending status.
4964 (clear_proceed_status): Don't clear step_over_info here.
4965 (random_pending_event_thread, do_target_wait): New functions.
4966 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4967 do_target_wait.
4968 (wait_one): New function.
4969 (THREAD_STOPPED_BY): New macro.
4970 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4971 (thread_stopped_by_hw_breakpoint): New functions.
4972 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4973 functions.
4974 (handle_inferior_event): Also call set_resumed(false) on all
4975 threads implicitly stopped by the event.
4976 (restart_threads, resumed_thread_with_pending_status): New
4977 functions.
4978 (finish_step_over): If we were doing an in-line step-over before,
4979 and no longer are after trying to start a new step-over, restart
4980 all threads. If we have multiple threads with pending events,
4981 save the current event and go through the event loop again.
4982 (handle_signal_stop): Return early if finish_step_over returns
4983 false.
4984 <random signal>: If we get a signal while stepping over a
4985 breakpoint in-line in non-stop mode, restart all threads. Clear
4986 step_over_info before delivering the signal.
4987 (keep_going_stepped_thread): Use internal_error instead of
4988 gdb_assert. Mark the thread as resumed.
4989 (keep_going_pass_signal): Assert the thread isn't already resumed.
4990 If some other thread is doing an in-line step-over, defer the
4991 resume. If we just started a new in-line step-over, stop all
4992 threads. Don't clear step_over_info.
4993 (infrun_async_inferior_event_handler): New function.
4994 (_initialize_infrun): Create async event handler with
4995 infrun_async_inferior_event_handler as callback.
4996 (infrun_async): New declaration.
4997 * target.c (target_async): New function.
4998 * target.h (target_async): Declare macro and readd as function
4999 declaration.
5000 * target/waitstatus.h (enum target_stop_reason)
5001 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5002 * thread.c (new_thread): Clear the new waitstatus field.
5003 (set_resumed): New function.
5004
5005 2015-08-07 Pedro Alves <palves@redhat.com>
5006
5007 * infrun.c (keep_going_stepped_thread): New function, factored out
5008 from ...
5009 (switch_back_to_stepped_thread): ... here.
5010
5011 2015-08-07 Pedro Alves <palves@redhat.com>
5012
5013 * infrun.c (currently_stepping): Extend intro comment.
5014 * target.h (target_resume): Extend intro comment.
5015
5016 2015-08-07 Pedro Alves <palves@redhat.com>
5017
5018 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5019 of inferior_ptid. If the stepped thread vanished, return 0
5020 instead of resuming here. Use reset_ecs. Print the prev_pc and
5021 the current stop_pc in log message. Clear trap_expected if the
5022 thread advanced. Don't pass currently_stepping to
5023 do_target_resume.
5024
5025 2015-08-07 Pedro Alves <palves@redhat.com>
5026
5027 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5028 * infrun.c (struct execution_control_state): Move higher up in the
5029 file.
5030 (reset_ecs): New function.
5031 (start_step_over): Now returns int. Rewrite to use
5032 keep_going_pass_signal instead of manually starting a displaced step.
5033 (resume): Don't call set_running here. If displaced stepping
5034 can't start now, clear trap_expected.
5035 (find_thread_needs_step_over): Delete function.
5036 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5037 If the current thread needs a step over, push it in the step-over
5038 chain. Don't set insert breakpoints nor call resume directly
5039 here. Instead rewrite to use start_step_over and
5040 keep_going_pass_signal.
5041 (finish_step_over): New function.
5042 (handle_signal_stop): Call finish_step_over instead of
5043 start_step_over.
5044 (switch_back_to_stepped_thread): If the event thread needs another
5045 step-over do that first. Use start_step_over.
5046 (keep_going_pass_signal): New function, factored out from ...
5047 (keep_going): ... here.
5048 (_initialize_infrun): Comment moved here.
5049 * thread.c (set_running_thread): New function.
5050 (set_running, finish_thread_state): Use set_running_thread.
5051
5052 2015-08-07 Pedro Alves <palves@redhat.com>
5053
5054 * gdbthread.h (struct thread_info) <step_over_prev,
5055 step_over_next>: New fields.
5056 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5057 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5058 declarations.
5059 * infrun.c (struct displaced_step_request): Delete.
5060 (struct displaced_step_inferior_state) <step_request_queue>:
5061 Delete field.
5062 (displaced_step_prepare): Assert that trap_expected is set. Use
5063 thread_step_over_chain_enqueue. Split starting a new displaced
5064 step to ...
5065 (start_step_over): ... this new function.
5066 (resume): Assert the thread isn't waiting for a step over already.
5067 (proceed): Assert the thread isn't waiting for a step over
5068 already.
5069 (infrun_thread_stop_requested): Adjust to remove threads from the
5070 embedded step-over chain.
5071 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5072 displaced_step_fixup.
5073 (handle_signal_stop): Call start_step_over after
5074 displaced_step_fixup.
5075 * infrun.h (step_over_queue_head): New declaration.
5076 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5077 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5078 (thread_step_over_chain_enqueue)
5079 (thread_step_over_chain_remove): New functions.
5080 (delete_thread_1): Remove thread from the step-over chain.
5081
5082 2015-08-07 Pedro Alves <palves@redhat.com>
5083
5084 * infrun.c (thread_still_needs_step_over): Rename to ...
5085 (thread_still_needs_step_over_bp): ... this.
5086 (enum step_over_what): New.
5087 (thread_still_needs_step_over): Reimplement.
5088
5089 2015-08-07 Pedro Alves <palves@redhat.com>
5090
5091 * remote.c (remote_wait_as): If not waiting for a stop reply,
5092 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5093 requested, don't block waiting forever.
5094
5095 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5096
5097 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5098 waitstatus pointers instead of an ecs. Adjust.
5099 (handle_inferior_event): Adjust caller.
5100
5101 2015-08-07 Pedro Alves <palves@redhat.com>
5102
5103 * infrun.c (handle_inferior_event): If we get
5104 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5105 mode, mark all threads of the exiting process as not-executing.
5106 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5107 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5108 exiting process, if inferior_ptid still points at a process.
5109 * thread.c (struct current_thread_cleanup) <next>: New field.
5110 (current_thread_cleanup_chain): New global.
5111 (restore_current_thread_ptid_changed): New function.
5112 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5113 current_thread_cleanup_chain list.
5114 (make_cleanup_restore_current_thread): Add the cleanup data to the
5115 current_thread_cleanup_chain list.
5116 (_initialize_thread): Install restore_current_thread_ptid_changed
5117 as thread_ptid_changed observer.
5118
5119 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5120
5121 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5122 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5123 smaller than expected.
5124
5125 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * stack.c (get_frame_language): Moved ...
5128 * frame.c (get_frame_language): ... to here.
5129 * language.h (get_frame_language): Declaration moved to frame.h.
5130 * frame.h: Add language.h include, for language enum.
5131 (get_frame_language): Declaration moved from language.h.
5132 * language.c: Add frame.h include.
5133 * top.c: Add frame.h include.
5134 * symtab.h (struct obj_section): Declare.
5135 (struct cmd_list_element): Declare.
5136
5137 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * language.c (show_language_command): Find selected frame before
5140 asking for the language of that frame.
5141 (set_language_command): Likewise.
5142 * language.h (get_frame_language): Add frame parameter.
5143 * stack.c (get_frame_language): Add frame parameter, assert
5144 parameter is not NULL, update comment and reindent.
5145 * top.c (check_frame_language_change): Pass the selected frame
5146 into get_frame_language.
5147
5148 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5149
5150 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5151 (pt_btrace_insn_flags): New.
5152 (ftrace_add_pt): Call pt_btrace_insn_flags.
5153 * btrace.h (btrace_insn_flag): New.
5154 (btrace_insn) <flags>: New.
5155 * record-btrace.c (btrace_insn_history): Print insn prefix.
5156 * NEWS: Announce it.
5157
5158 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5159
5160 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5161 * configure: Regenerate.
5162
5163 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5164
5165 * Makefile.in (LIBICONV): Define.
5166 (CLIBS): Add LIBICONV.
5167 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5168 * configure: Regenerate.
5169
5170 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5171 Pedro Alves <palves@redhat.com>
5172
5173 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5174 (arm_set_abi): Likewise.
5175 * ax-general.c (ax_print): Likewise.
5176 * c-exp.y (exp : string_exp): Likewise.
5177 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5178 (do_compile_dwarf_expr_to_c): Likewise.
5179 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5180 Likewise.
5181 * dwarf2expr.c (execute_stack_op): Likewise.
5182 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5183 (disassemble_dwarf_expression): Likewise.
5184 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5185 (read_array_order): Likewise.
5186 (abbrev_table_read_table): Likewise.
5187 (read_attribute_value): Likewise.
5188 (skip_unknown_opcode): Likewise.
5189 (dwarf_decode_macro_bytes): Likewise.
5190 (dwarf_decode_macros): Likewise.
5191 * eval.c (value_f90_subarray): Likewise.
5192 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5193 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5194 * infrun.c (handle_command): Likewise.
5195 * memory-map.c (memory_map_start_memory): Likewise.
5196 * osabi.c (set_osabi): Likewise.
5197 * parse.c (operator_length_standard): Likewise.
5198 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5199 single return point.
5200 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5201 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5202 (gdbpy_lookup_global_symbol): Likewise.
5203 * record-full.c (record_full_restore): Likewise.
5204 * regcache.c (regcache_register_status): Likewise.
5205 (regcache_raw_read): Likewise.
5206 (regcache_cooked_read): Likewise.
5207 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5208 * symtab.c (initialize_ordinary_address_classes): Likewise.
5209 * target-debug.h (target_debug_print_signals): Likewise.
5210 * utils.c (do_restore_current_language): Likewise.
5211
5212 2015-08-06 Clem Dickey <clemd@acm.org>
5213
5214 PR python/17136
5215 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5216
5217 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5218
5219 * complaints.c (enum complaint_series): Add newlines and remove
5220 out of date comment.
5221 (struct complaints) <series>: Change type to enum
5222 complaint_series and remove out of date comment.
5223 (symfile_complaint_hook): Use equivalent enum value
5224 ISOLATED_MESSAGE instead of 0.
5225
5226 2015-08-06 Pedro Alves <palves@redhat.com>
5227
5228 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5229 returned > 0.
5230
5231 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5232
5233 * common/agent.c (symbol_list) <required>: Remove.
5234
5235 2015-08-06 Pedro Alves <palves@redhat.com>
5236
5237 * target/waitstatus.h (enum target_stop_reason)
5238 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5239
5240 2015-08-05 Pedro Alves <palves@redhat.com>
5241 Joel Brobecker <brobecker@adacore.com>
5242
5243 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5244 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5245 case where BS->STOP is not set.
5246
5247 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5248
5249 * nat/gdb_thread_db.h: Add copyright header.
5250 Protect against multiple inclusion.
5251
5252 2015-08-05 Yao Qi <yao.qi@linaro.org>
5253
5254 * aarch64-linux-nat.c (get_thread_id): Remove.
5255 (debug_reg_change_callback): Call ptid_get_lwp instead of
5256 get_thread_id.
5257 (fetch_gregs_from_thread): Likewise.
5258 (store_gregs_to_thread): Likewise.
5259 (fetch_fpregs_from_thread): Likewise.
5260 (store_fpregs_to_thread): Likewise.
5261 (aarch64_linux_get_debug_reg_capacity): Likewise.
5262 * arm-linux-nat.c (get_thread_id): Remove.
5263 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5264 * xtensa-linux-nat.c (get_thread_id): Remove.
5265 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5266 * arm-linux-nat.c (get_thread_id): Remove.
5267 (GET_THREAD_ID): Remove.
5268 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5269 (store_fpregs, fetch_regs, store_regs): Likewise.
5270 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5271 (fetch_vfp_regs, store_vfp_regs): Likewise.
5272 (arm_linux_read_description): Likewise.
5273 (arm_linux_get_hwbp_cap): Likewise.
5274 * xtensa-linux-nat.c (get_thread_id): Remove.
5275 (GET_THREAD_ID): Remove.
5276 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5277 GET_THREAD_ID.
5278
5279 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5280
5281 * python/py-linetable.c: Fix case of Linetable to LineTable
5282 in docstrings and code comments.
5283 * python/py-symtab.c: Same.
5284
5285 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5286
5287 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5288
5289 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 PR gdb/18767
5292 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5293 use.
5294
5295 2015-08-04 Pedro Alves <palves@redhat.com>
5296
5297 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5298 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5299 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5300 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5301 (td_thr_validate_ftype, td_thr_get_info_ftype)
5302 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5303 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5304 New typedefs.
5305 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5306 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5307 local macros and use them instead of verbose_dlsym and dlsym
5308 calls.
5309
5310 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5311
5312 * nios2-tdep.h: Include opcode/nios2.h here.
5313 (NIOS2_CDX_OPCODE_SIZE): New.
5314 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5315 * nios2-tdep.c: Don't include opcode/nios2.h here.
5316 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5317 4-byte read fails.
5318 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5319 (nios2_match_addi, nios2_match_orhi): Likewise.
5320 (nios2_match_stw, nios2_match_ldw): Likewise.
5321 (nios2_match_rdctl): Likewise.
5322 (nios2_match_stwm, nios2_match_ldwm): New.
5323 (nios2_match_branch): Add cases for R2 encodings.
5324 (nios2_match_jmpi, nios2_match_calli): Likewise.
5325 (nios2_match_jmpr, nios2_match_callr): Likewise.
5326 (nios2_match_break, nios2_match_trap): Likewise.
5327 (nios2_in_epilogue_p): Add R2 support.
5328 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5329 prologues.
5330 (nios2_breakpoint_from_pc): Handle R2 instructions.
5331 (nios2_get_next_pc): Likewise. Adjust call to
5332 tdep->syscall_next_pc.
5333 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5334 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5335 instruction field macros instead of literal hex values.
5336 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5337 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5338 Use size field from OP instead of assuming all instructions
5339 are the same size.
5340 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5341
5342 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5343
5344 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5345 variable warning with some compilers.
5346
5347 2015-08-03 Yao Qi <yao.qi@linaro.org>
5348
5349 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5350 in comment. Replace "rw" with "type".
5351 (arm_linux_remove_watchpoint): Change type of "rw" to
5352 "enum target_hw_bp_type".
5353
5354 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5355
5356 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5357 lookup_symbol.
5358 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5359 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5360 * mt-tdep.c (mt_skip_prologue): Likewise.
5361 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5362
5363 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5364
5365 * ada-exp.y (write_object_renaming): Replace struct
5366 ada_symbol_info with struct block_symbol. Update field
5367 references accordingly.
5368 (block_lookup, select_possible_type_sym): Likewise.
5369 (find_primitive_type): Likewise. Also update call to
5370 ada_lookup_symbol to extract the symbol itself.
5371 (write_var_or_type, write_name_assoc): Likewise.
5372 * ada-lang.h (struct ada_symbol_info): Remove.
5373 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5374 struct block_symbol.
5375 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5376 (ada_lookup_symbol): Return struct block_symbol instead of a
5377 mere symbol.
5378 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5379 with struct block_symbol.
5380 (resolve_subexp, ada_resolve_function, sort_choices,
5381 user_select_syms, is_nonfunction, add_defn_to_vec,
5382 num_defns_collected, defns_collected,
5383 symbols_are_identical_enums, remove_extra_symbols,
5384 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5385 ada_lookup_symbol_list, ada_iterate_over_symbols,
5386 ada_lookup_encoded_symbol, get_var_value): Likewise.
5387 (ada_lookup_symbol): Return a block_symbol instead of a mere
5388 symbol. Replace struct ada_symbol_info with struct
5389 block_symbol.
5390 (ada_lookup_symbol_nonlocal): Likewise.
5391 (standard_lookup): Make block passing explicit through
5392 lookup_symbol_in_language.
5393 * ada-tasks.c (get_tcb_types_info): Update the calls to
5394 lookup_symbol_in_language to extract the mere symbol out of the
5395 returned value.
5396 (ada_tasks_inferior_data_sniffer): Likewise.
5397 * ax-gdb.c (gen_static_field): Likewise for the call to
5398 lookup_symbol.
5399 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5400 lookup functions.
5401 (gen_expr): Likewise.
5402 * c-exp.y: Likewise. Remove uses of block_found.
5403 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5404 (classify_name): Likewise. Rename the "sym" local variable to
5405 "bsym".
5406 * c-valprint.c (print_unpacked_pointer): Likewise.
5407 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5408 "sym" parameter from struct symbol * to struct block_symbol.
5409 Use it to remove uses of block_found. Deal with struct
5410 block_symbol from lookup functions.
5411 (gcc_convert_symbol): Likewise. Update the call to
5412 convert_symbol_sym.
5413 * compile/compile-object-load.c (compile_object_load): Deal with
5414 struct block_symbol from lookup functions.
5415 * cp-namespace.c (cp_lookup_nested_symbol_1,
5416 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5417 cp_search_static_and_baseclasses,
5418 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5419 cp_lookup_symbol_imports_or_template,
5420 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5421 lookup_namespace_scope, cp_lookup_nonlocal,
5422 find_symbol_in_baseclass): Return struct block_symbol instead of
5423 mere symbols and deal with struct block_symbol from lookup
5424 functions.
5425 * cp-support.c (inspect_type, replace_typedefs,
5426 cp_lookup_rtti_type): Deal with struct block_symbol from
5427 lookup functions.
5428 * cp-support.h (cp_lookup_symbol_nonlocal,
5429 cp_lookup_symbol_from_namespace,
5430 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5431 Return struct block_symbol instead of mere symbols.
5432 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5433 push_module_name):
5434 Deal with struct block_symbol from lookup functions. Remove
5435 uses of block_found.
5436 * eval.c (evaluate_subexp_standard): Update call to
5437 cp_lookup_symbol_namespace.
5438 * f-exp.y: Deal with struct block_symbol from lookup functions.
5439 Remove uses of block_found.
5440 (yylex): Likewise.
5441 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5442 lookup_enum, lookup_template_type, check_typedef): Deal with
5443 struct block_symbol from lookup functions.
5444 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5445 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5446 (gdbscm_lookup_global_symbol): Likewise.
5447 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5448 * go-exp.y: Likewise. Remove uses of block_found.
5449 (package_name_p, classify_packaged_name, classify_name):
5450 Likewise.
5451 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5452 * jv-exp.y (push_variable): Likewise.
5453 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5454 * language.c (language_bool_type): Likewise.
5455 * language.h (struct language_defn): Update
5456 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5457 than a mere symbol.
5458 * linespec.c (find_label_symbols): Deal with struct block_symbol
5459 from lookup functions.
5460 * m2-exp.y: Likewise. Remove uses of block_found.
5461 (yylex): Likewise.
5462 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5463 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5464 * p-exp.y: Likewise. Remove uses of block_found.
5465 (yylex): Likewise.
5466 * p-valprint.c (pascal_val_print): Likewise.
5467 * parse.c (write_dollar_variable): Likewise. Remove uses of
5468 block_found.
5469 * parser-defs.h (struct symtoken): Turn the SYM field into a
5470 struct block_symbol.
5471 * printcmd.c (address_info): Deal with struct block_symbol from
5472 lookup functions.
5473 * python/py-frame.c (frapy_read_var): Likewise.
5474 * python/py-symbol.c (gdbpy_lookup_symbol,
5475 gdbpy_lookup_global_symbol): Likewise.
5476 * skip.c (skip_function_command): Likewise.
5477 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5478 block_symbol instead of a mere symbol.
5479 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5480 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5481 * solib.c (solib_global_lookup): Likewise.
5482 * solist.h (solib_global_lookup): Likewise.
5483 (struct target_so_ops): Update lookup_lib_global_symbol to
5484 return a struct block_symbol rather than a mere symbol.
5485 * source.c (select_source_symtab): Deal with struct block_symbol
5486 from lookup functions.
5487 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5488 Likewise.
5489 * symfile.c (set_initial_language): Likewise.
5490 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5491 block_symbol.
5492 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5493 (struct symbol_cache_slot): Turn the FOUND field into a struct
5494 block_symbol.
5495 (block_found): Remove.
5496 (eq_symbol_entry): Update to deal with struct block_symbol in
5497 cache slots.
5498 (symbol_cache_lookup): Return a struct block_symbol rather than
5499 a mere symbol.
5500 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5501 appropriately the cache slots. Update callers.
5502 (symbol_cache_dump): Update cache slots handling to the type
5503 change.
5504 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5505 lookup_symbol_aux, lookup_local_symbol,
5506 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5507 lookup_symbol_in_objfile_symtabs,
5508 lookup_symbol_in_objfile_from_linkage_name,
5509 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5510 lookup_symbol_in_static_block, lookup_static_symbol,
5511 lookup_global_symbol):
5512 Return a struct block_symbol rather than a mere symbol. Deal
5513 with struct block_symbol from other lookup functions. Remove
5514 uses of block_found.
5515 (lookup_symbol_in_block): Remove uses of block_found.
5516 (struct global_sym_lookup_data): Turn the RESULT field into a
5517 struct block_symbol.
5518 (lookup_symbol_global_iterator_cb): Update references to the
5519 RESULT field.
5520 (search_symbols): Deal with struct block_symbol from lookup
5521 functions.
5522 * symtab.h (struct block_symbol): New structure.
5523 (block_found): Remove.
5524 (lookup_symbol_in_language, lookup_symbol,
5525 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5526 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5527 lookup_global_symbol_from_objfile): Return a struct block_symbol
5528 rather than just a mere symbol. Update comments to remove
5529 mentions of block_found.
5530 * valops.c (find_function_in_inferior,
5531 value_struct_elt_for_reference, value_maybe_namespace_elt,
5532 value_of_this): Deal with struct block_symbol from lookup
5533 functions.
5534 * value.c (value_static_field, value_fn_field): Likewise.
5535
5536 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5537
5538 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5539 instead of integer.
5540
5541 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5542 Pedro Alves <palves@redhat.com>
5543
5544 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5545 type or value instead of integer.
5546 (aarch64_linux_insert_watchpoint): Likewise.
5547 (aarch64_linux_remove_watchpoint): Likewise.
5548 * ada-lang.c (ada_op_print_tab): Likewise.
5549 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5550 (amd64_linux_syscall_record_common): Likewise.
5551 * arch-utils.c (target_byte_order_user): Likewise.
5552 (default_byte_order): Likewise.
5553 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5554 (arm_linux_get_hwbp_type): Likewise.
5555 (arm_linux_hw_watchpoint_initialize): Likewise.
5556 (arm_linux_insert_watchpoint): Likewise.
5557 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5558 (arm_linux_syscall_record): Likewise.
5559 * breakpoint.c (update_watchpoint): Likewise.
5560 (breakpoint_here_p): Likewise.
5561 (bpstat_print): Likewise.
5562 (enable_breakpoint_disp): Likewise.
5563 * c-lang.c (c_op_print_tab): Likewise.
5564 * cli/cli-decode.c (add_info_alias): Likewise.
5565 * d-lang.c (d_op_print_tab): Likewise.
5566 * eval.c (evaluate_subexp_standard): Likewise.
5567 * f-exp.y (dot_ops): Likewise.
5568 (f77_keywords): Likewise.
5569 * f-lang.c (f_op_print_tab): Likewise.
5570 * go-lang.c (go_op_print_tab): Likewise.
5571 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5572 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5573 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5574 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5575 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5576 (struct scm_from_stringn_data): Likewise.
5577 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5578 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5579 (ia64_linux_remove_watchpoint): Likewise.
5580 (ia64_linux_can_use_hw_breakpoint): Likewise.
5581 * infrun.c (print_stop_event): Likewise.
5582 * jv-lang.c (java_op_print_tab): Likewise.
5583 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5584 * linux-nat.h (struct lwp_info): Likewise.
5585 * linux-thread-db.c (enable_thread_event): Likewise.
5586 * m2-lang.c (m2_op_print_tab): Likewise.
5587 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5588 (mi_cmd_stack_list_variables): Likewise.
5589 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5590 * mi/mi-out.c (mi_table_begin): Likewise.
5591 (mi_table_header): Likewise.
5592 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5593 (mips_linux_insert_watchpoint): Likewise.
5594 (mips_linux_remove_watchpoint): Likewise.
5595 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5596 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5597 (mips_linux_watch_type_to_irw): Likewise.
5598 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5599 (procfs_insert_hw_watchpoint): Likewise.
5600 (procfs_remove_hw_watchpoint): Likewise.
5601 (procfs_hw_watchpoint): Likewise.
5602 (procfs_can_use_hw_breakpoint): Likewise.
5603 (procfs_remove_hw_watchpoint): Likewise.
5604 (procfs_insert_hw_watchpoint): Likewise.
5605 * p-lang.c (pascal_op_print_tab): Likewise.
5606 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5607 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5608 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5609 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5610 (procfs_insert_watchpoint): Likewise.
5611 (procfs_remove_watchpoint): Likewise.
5612 * psymtab.c (recursively_search_psymtabs): Likewise.
5613 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5614 (m32r_insert_watchpoint): Likewise.
5615 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5616 (mips_insert_watchpoint): Likewise.
5617 (mips_remove_watchpoint): Likewise.
5618 * remote.c (watchpoint_to_Z_packet): Likewise.
5619 (remote_insert_watchpoint): Likewise.
5620 (remote_remove_watchpoint): Likewise.
5621 (remote_check_watch_resources): Likewise.
5622 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5623 (s390_remove_watchpoint): Likewise.
5624 (s390_can_use_hw_breakpoint): Likewise.
5625 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5626 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5627 * target.h (struct target_ops): Likewise.
5628 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5629 * ui-out.c (struct ui_out_hdr): Likewise.
5630 (append_header_to_list): Likewise.
5631 (get_next_header): Likewise.
5632 (verify_field): Likewise.
5633 (ui_out_begin): Likewise.
5634 (ui_out_field_int): Likewise.
5635 (ui_out_field_fmt_int): Likewise.
5636 (ui_out_field_skip): Likewise.
5637 (ui_out_field_string): Likewise.
5638 (ui_out_field_fmt): Likewise.
5639 * varobj.c (new_variable): Likewise.
5640 * x86-nat.c (x86_insert_watchpoint): Likewise.
5641 (x86_remove_watchpoint): Likewise.
5642 (x86_can_use_hw_breakpoint): Likewise.
5643 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5644 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5645 previously anonymous enumeration type..
5646 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5647 value.
5648 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5649 (target_debug_print_enum_bptype): New.
5650 * target-delegates.c: Regenerate.
5651
5652 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5653
5654 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5655 already says and disallow non-stack memory writes in the prologue.
5656
5657 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5658
5659 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5660 reflect how current GCC emits stack overflow checks. Match
5661 both trap and break instructions for backward compatbility.
5662 Disallow other trap and break instructions in the prologue.
5663
5664 2015-07-30 Pedro Alves <palves@redhat.com>
5665
5666 PR threads/18600
5667 * linux-nat.c (wait_lwp): Report to the core when thread group
5668 leader exits.
5669
5670 2015-07-30 Pedro Alves <palves@redhat.com>
5671 Simon Marchi <simon.marchi@ericsson.com>
5672
5673 PR threads/18600
5674 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5675 mark the new thread as resumed. Remove STOPPING parameter.
5676 (wait_lwp): Adjust call to linux_handle_extended_wait.
5677 (linux_nat_filter_event): Adjust call to
5678 linux_handle_extended_wait.
5679 (resume_stopped_resumed_lwps): Add debug output.
5680
5681 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5682
5683 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5684 isize argument.
5685 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5686 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5687 gdbarch_fast_tracepoint_valid_at.
5688 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5689 * gdbarch.h: Regenerate.
5690 * gdbarch.c: Regenerate.
5691 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5692 argument. Do not set it.
5693 * remote.c (remote_download_tracepoint): Adjust call to
5694 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5695 the instruction length.
5696
5697 2015-07-30 Yao Qi <yao.qi@linaro.org>
5698
5699 * arm-tdep.h (enum gdb_regnum): Move it to ...
5700 * arch/arm.h: ... here. New file.
5701 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5702
5703 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5704
5705 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5706 Change its type to int *.
5707 (decode_br): Rename link argument to is_blr. Change its type to
5708 int *.
5709 (decode_cb): Rename op argument to is_cbnz. Change its type to
5710 int *.
5711 (decode_tb): Rename op argument to is_tbnz. Change its type to
5712 int *. Set is_tbnz to either 1 or 0.
5713 (aarch64_analyze_prologue): Change type of is_link to int. Add
5714 new variables is_cbnz and is_tbnz. Adjust call to
5715 aarch64_decode_cb and aarch64_decode_tb.
5716
5717 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5720 parameter.
5721 (mips_linux_new_thread): Likewise.
5722 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5723
5724 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5725
5726 * top.c: Include "tui/tui.h".
5727 (undo_terminal_modifications_before_exit): New static function.
5728 (quit_force): Use it.
5729
5730 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5731
5732 * target.c (terminal_state): Initialize to terminal_is_ours.
5733
5734 2015-07-29 Yao Qi <yao.qi@linaro.org>
5735
5736 PR record/18691
5737 * dcache.c (dcache_read_memory_partial): Call
5738 raw_memory_xfer_partial.
5739 * target.c (raw_memory_xfer_partial): Make it non-static.
5740 * target.h (raw_memory_xfer_partial): Declare.
5741
5742 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5743
5744 * c-valprint.c (c_val_print_array): Consider addressable memory
5745 unit size.
5746 (c_val_print_ptr): Likewise.
5747 (c_val_print_int): Likewise.
5748 * findvar.c (read_frame_register_value): Likewise.
5749 * valarith.c (find_size_for_pointer_math): Likewise.
5750 (value_ptrdiff): Likewise.
5751 (value_subscripted_rvalue): Likewise.
5752 * valops.c (read_value_memory): Likewise (and rename variables).
5753 (value_assign): Likewise.
5754 (value_repeat): Likewise.
5755 (value_array): Likewise.
5756 (value_slice): Likewise.
5757 * valprint.c (generic_val_print_ptr): Likewise.
5758 (generic_val_print_enum): Likewise.
5759 (generic_val_print_bool): Likewise.
5760 (generic_val_print_int): Likewise.
5761 (generic_val_print_char): Likewise.
5762 (generic_val_print_float): Likewise.
5763 (generic_val_print_decfloat): Likewise.
5764 (generic_val_print_complex): Likewise.
5765 (val_print_scalar_formatted): Likewise.
5766 (val_print_array_elements): Likewise.
5767 * value.c (set_value_parent): Likewise.
5768 (value_contents_copy_raw): Likewise.
5769 (set_internalvar_component): Likewise.
5770 (value_primitive_field): Likewise.
5771 (value_fetch_lazy): Likewise.
5772 * value.h (read_value_memory): Update comment.
5773
5774 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5775
5776 * value.c (get_value_arch): New function.
5777 * value.h (get_value_arch): New declaration.
5778
5779 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * value.c (struct value): Update comments.
5782
5783 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5784
5785 * gdbtypes.c (type_length_units): New function.
5786 * gdbtypes.h (type_length_units): New declaration.
5787 (struct type) <length>: Update comment.
5788
5789 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5790
5791 * valprint.c (generic_val_print): Factor out complex
5792 printing code to ...
5793 (generic_val_print_complex): ... this new function.
5794
5795 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5796
5797 * valprint.c (generic_val_print): Factor out decfloat
5798 printing code to ...
5799 (generic_val_print_decfloat): ... this new function.
5800
5801 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5802
5803 * valprint.c (generic_val_print): Factor out float
5804 printing code to ...
5805 (generic_val_print_float): ... this new function.
5806
5807 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5808
5809 * valprint.c (generic_val_print): Factor out char
5810 printing code to ...
5811 (generic_val_print_char): ... this new function.
5812
5813 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5814
5815 * valprint.c (generic_val_print): Factor out integer
5816 printing code to ...
5817 (generic_val_print_int): ... this new function.
5818
5819 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5820
5821 * valprint.c (generic_val_print): Factor out bool
5822 printing code to ...
5823 (generic_val_print_bool): ... this new function.
5824
5825 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5826
5827 * valprint.c (generic_val_print): Factor out function/method
5828 printing code to ...
5829 (generic_val_print_func): ... this new function.
5830
5831 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5832
5833 * valprint.c (generic_val_print): Factor out flags
5834 printing code to ...
5835 (generic_val_print_flags): ... this new function.
5836
5837 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5838
5839 * valprint.c (generic_val_print): Factor out enum
5840 printing code to ...
5841 (generic_val_print_enum): ... this new function.
5842
5843 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * valprint.c (generic_val_print): Factor out reference
5846 printing code to ...
5847 (generic_val_print_ref): ... this new function.
5848
5849 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * valprint.c (generic_val_print): Factor out memberptr
5852 printing code to ...
5853 (generic_val_print_memberptr): ... this new function.
5854
5855 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5856
5857 * valprint.c (generic_val_print): Factor out pointer
5858 printing code to ...
5859 (generic_val_print_ptr): ... this new function.
5860
5861 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5862
5863 * valprint.c (generic_val_print): Factor out array
5864 printing code to ...
5865 (generic_val_print_array): ... this new function.
5866
5867 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5868
5869 * valprint.c (generic_val_print): Factor out
5870 print_unpacked_pointer code to ...
5871 (print_unpacked_pointer): ... this new function.
5872
5873 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5874
5875 * event-top.c (handle_sigterm): Don't inspect
5876 target_can_async_p. Always set the quit flag and always mark
5877 the async signal handler.
5878
5879 2015-07-27 Yao Qi <yao.qi@linaro.org>
5880
5881 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5882
5883 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5884
5885 * remote.c (read_ptid): Return null_ptid when no thread id
5886 is found.
5887 (remote_current_thread): Add log warning for malformed
5888 qC reply.
5889 (remote_start_remote): Add log warning when current thread
5890 not found.
5891
5892 2015-07-24 Pedro Alves <palves@redhat.com>
5893
5894 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5895 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5896 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5897
5898 2015-07-24 Pedro Alves <palves@redhat.com>
5899
5900 PR gdb/18717
5901 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5902 is resumed, and extend the debug log.
5903
5904 2015-07-24 Pedro Alves <palves@redhat.com>
5905
5906 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5907
5908 2015-07-24 Pedro Alves <palves@redhat.com>
5909
5910 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5911 sys/ptrace.h.
5912 * alpha-linux-nat.c: Likewise.
5913 * amd64-linux-nat.c: Likewise.
5914 * arm-linux-nat.c: Likewise.
5915 * hppa-linux-nat.c: Likewise.
5916 * i386-linux-nat.c: Likewise.
5917 * ia64-linux-nat.c: Likewise.
5918 * linux-fork.c: Likewise.
5919 * linux-nat.c: Likewise.
5920 * m32r-linux-nat.c: Likewise.
5921 * m68klinux-nat.c: Likewise.
5922 * mips-linux-nat.c: Likewise.
5923 * nat/linux-btrace.c: Likewise.
5924 * nat/linux-ptrace.c: Likewise.
5925 * nat/linux-ptrace.h
5926 * nat/mips-linux-watch.c: Likewise.
5927 * nat/x86-linux-dregs.c: Likewise.
5928 * ppc-linux-nat.c: Likewise.
5929 * s390-linux-nat.c: Likewise.
5930 * spu-linux-nat.c: Likewise.
5931 * tilegx-linux-nat.c: Likewise.
5932 * x86-linux-nat.c: Likewise.
5933 * xtensa-linux-nat.c: Likewise.
5934
5935 2015-07-24 Pedro Alves <palves@redhat.com>
5936
5937 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5938 __ptrace_request as first parameter type instead of int.
5939 (PTRACE_TYPE_ARG1): Define.
5940 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5941 that casts first argument to PTRACE_TYPE_ARG1.
5942 * config.in: Regenerate.
5943 * configure: Regenerate.
5944
5945 2015-07-24 Pedro Alves <palves@redhat.com>
5946
5947 * gdb_ptrace.h: Move ...
5948 * nat/gdb_ptrace.h: ... here.
5949 * inf-ptrace.c: Adjust.
5950
5951 2015-07-24 Pedro Alves <palves@redhat.com>
5952
5953 * acinclude.m4: Include ptrace.m4.
5954 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5955 * ptrace.m4: ... to this new file.
5956
5957 2015-07-23 Doug Evans <dje@google.com>
5958
5959 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5960 (load_cu): Handle dummy CUs.
5961 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5962 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5963
5964 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5965
5966 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5967 documentation to say that it returns a list rather than
5968 a FrozenSet.
5969 (linetable_object_methods): Update the docstring of the
5970 "source_line" entry.
5971
5972 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5973
5974 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5975 type to the recursive call instead of the original (maybe
5976 TYPE_CODE_TYPEDEF) type.
5977
5978 2015-07-23 Yao Qi <yao.qi@linaro.org>
5979
5980 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5981 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5982 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5983
5984 2015-07-21 Yao Qi <yao.qi@linaro.org>
5985
5986 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5987 Move it to nat/aarch64-linux-hw-point.c.
5988 (aarch64_linux_child_post_startup_inferior): Update.
5989 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5990 New function.
5991 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5992 Declare it.
5993
5994 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5995
5996 * common/btrace-common.c (btrace_data_append): Change case label.
5997
5998 2015-07-20 Yao Qi <yao.qi@linaro.org>
5999
6000 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6001 Re-indent the code.
6002 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6003 "unsigned long long".
6004
6005 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6006
6007 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6008 to be set for SEC_ALLOC sections too.
6009
6010 2015-07-17 Yao Qi <yao.qi@linaro.org>
6011
6012 * Makefile.in (HFILES_NO_SRCDIR): Add
6013 nat/aarch64-linux-hw-point.h.
6014 (aarch64-linux-hw-point.o): New rule.
6015 * nat/aarch64-linux-hw-point.h: New file.
6016 * nat/aarch64-linux-hw-point.c: New file.
6017 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6018 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6019 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6020 (AARCH64_HWP_ALIGNMENT): Likewise.
6021 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6022 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6023 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6024 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6025 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6026 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6027 (struct aarch64_debug_reg_state): Likewise.
6028 (struct arch_lwp_info): Likewise.
6029 (aarch64_linux_set_debug_regs): Likewise.
6030 (aarch64_notify_debug_reg_change): Remove static.
6031 (aarch64_align_watchpoint): Likewise.
6032 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6033 (aarch64_watchpoint_length): Likewise.
6034 (aarch64_point_encode_ctrl_reg): Likewise
6035 (aarch64_point_is_aligned): Likewise.
6036 (aarch64_dr_state_insert_one_point): Likewise.
6037 (aarch64_dr_state_remove_one_point): Likewise.
6038 (aarch64_handle_breakpoint): Likewise.
6039 (aarch64_handle_aligned_watchpoint): Likewise.
6040 (aarch64_handle_unaligned_watchpoint): Likewise.
6041 (aarch64_handle_watchpoint): Likewise.
6042 * config/aarch64/linux.mh (NAT_FILE): Add
6043 aarch64-linux-hw-point.o.
6044
6045 2015-07-17 Yao Qi <yao.qi@linaro.org>
6046
6047 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6048 state and don't call aarch64_get_debug_reg_state. All callers
6049 update.
6050 (aarch64_linux_insert_hw_breakpoint): Call
6051 aarch64_get_debug_reg_state earlier.
6052 (aarch64_linux_remove_hw_breakpoint): Likewise.
6053 (aarch64_handle_aligned_watchpoint): Add argument state and
6054 don't call aarch64_get_debug_reg_state. All callers update.
6055 (aarch64_handle_unaligned_watchpoint): Likewise.
6056 (aarch64_handle_watchpoint): Add argument state.
6057 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6058 earlier.
6059 (aarch64_linux_remove_watchpoint): Likewise.
6060
6061 2015-07-17 Yao Qi <yao.qi@linaro.org>
6062
6063 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6064 debug_printf.
6065 (aarch64_handle_unaligned_watchpoint): Likewise.
6066
6067 2015-07-17 Yao Qi <yao.qi@linaro.org>
6068
6069 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6070 argument type's type to 'enum target_hw_bp_type'.
6071 (aarch64_dr_state_remove_one_point): Likewise.
6072 (aarch64_handle_breakpoint): Likewise.
6073 (aarch64_linux_insert_hw_breakpoint): Likewise.
6074 (aarch64_linux_remove_hw_breakpoint): Likewise.
6075 (aarch64_handle_aligned_watchpoint): Likewise.
6076
6077 2015-07-17 Yao Qi <yao.qi@linaro.org>
6078
6079 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6080 ptid_get_pid instead of get_thread_id.
6081
6082 2015-07-17 Yao Qi <yao.qi@linaro.org>
6083
6084 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6085 (add_current_inferior_and_thread): Don't initialise ptid.
6086
6087 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6088
6089 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6090 unavailable if invalid.
6091
6092 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6093
6094 Revert the previous 6 commits:
6095 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6096 Move gdb_regex* to common/
6097 Prepare linux_find_memory_regions_full & co. for move
6098 Move linux_find_memory_regions_full & co.
6099 gdbserver build-id attribute generator
6100 Validate symbol file using build-id
6101
6102 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6103 Jan Kratochvil <jan.kratochvil@redhat.com>
6104
6105 Validate symbol file using build-id.
6106 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6107 and 'show validate-build-id'. Add build-id attribute.
6108 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6109 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6110 * solib-frv.c (_initialize_frv_solib): Ditto.
6111 * solib-spu.c (set_spu_solib_ops): Ditto.
6112 * solib-svr4.c: Include rsp-low.h.
6113 (NOTE_GNU_BUILD_ID_NAME): New define.
6114 (svr4_validate): New function.
6115 (svr4_copy_library_list): Duplicate field build_id.
6116 (library_list_start_library): Parse 'build-id' attribute.
6117 (svr4_library_attributes): Add 'build-id' attribute.
6118 (_initialize_svr4_solib): Assign validate value.
6119 * solib-target.c (solib.h): Include.
6120 (_initialize_solib_target): Assign validate value.
6121 * solib.c (validate_build_id, show_validate_build_id): New.
6122 (solib_map_sections): Use ops->validate.
6123 (clear_so): Free build_id.
6124 (default_solib_validate): New function.
6125 (_initialize_solib): Add "validate-build-id".
6126 * solib.h (default_solib_validate): New declaration.
6127 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6128 (target_so_ops): New field 'validate'.
6129
6130 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6131 Jan Kratochvil <jan.kratochvil@redhat.com>
6132
6133 gdbserver build-id attribute generator.
6134 * features/library-list-svr4.dtd (library-list-svr4): New
6135 'build-id' attribute.
6136
6137 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6138 Jan Kratochvil <jan.kratochvil@redhat.com>
6139
6140 Move linux_find_memory_regions_full & co.
6141 * linux-tdep.c (nat/linux-maps.h): Include.
6142 (gdb_regex.h): Remove the include.
6143 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6144 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6145 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6146 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6147 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6148 and target/target.h.
6149 (struct smaps_vmflags, read_mapping, decode_vmflags)
6150 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6151 (linux_find_memory_regions_full): Move from linux-tdep.c.
6152 * nat/linux-maps.h (read_mapping): New declaration.
6153 (linux_find_memory_region_ftype, enum filterflags): Moved from
6154 linux-tdep.c.
6155 (linux_find_memory_regions_full): New declaration.
6156 * target.c (target/target-utils.h): Include.
6157 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6158 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6159 definitions to target/target-utils.c.
6160 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6161 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6162 from target.c.
6163 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6164 (read_alloc): New declaration.
6165 (read_stralloc_func_ftype): New typedef.
6166 (read_stralloc): New declaration.
6167 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6168
6169 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6170 Jan Kratochvil <jan.kratochvil@redhat.com>
6171
6172 Prepare linux_find_memory_regions_full & co. for move.
6173 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6174 (linux_find_memory_regions_full): Change signature and prepare
6175 for moving to linux-maps.
6176 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6177 (linux_find_memory_regions_thunk): New.
6178 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6179 (linux_find_memory_regions_gdb): New.
6180 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6181 (linux_make_mappings_corefile_notes): Use
6182 linux_find_memory_regions_gdb.
6183 * target.c (read_alloc_pread_ftype): New typedef.
6184 (target_fileio_read_alloc_1_pread): New function.
6185 (read_alloc): Refactor from target_fileio_read_alloc_1.
6186 (read_stralloc_func_ftype): New typedef.
6187 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6188 (read_stralloc): Refactored from target_fileio_read_stralloc.
6189 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6190
6191 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6192
6193 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6194 common/gdb_regex.h.
6195 (COMMON_OBS): Add gdb_regex.o.
6196 (gdb_regex.o): New.
6197 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6198 --without-included-regex and USE_INCLUDED_REGEX.
6199 * common/gdb_regex.c: New file from utils.c functions.
6200 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6201 file wrapping define name.
6202 * configure: Rebuilt.
6203 * configure.ac (gdb_use_included_regex, --without-included-regex)
6204 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6205 * gdb_regex.h: Move it to common/gdb_regex.h.
6206 * utils.c: Remove include gdb_regex.h.
6207 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6208 (compile_rx_or_error): Move them to common/gdb_regex.c.
6209
6210 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6211 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6214 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6215 common/target-utils.h.
6216 (COMMON_OBS): Add target-utils.o.
6217 (linux-maps.o, target-utils.o): New.
6218 * target/target-utils.c: New file.
6219 * target/target-utils.h: New file.
6220 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6221 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6222 * nat/linux-maps.c: New file.
6223 * nat/linux-maps.h: New file.
6224
6225 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6226 Pedro Alves <palves@redhat.com>
6227
6228 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6229 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6230 (perf_event_read_bts): Change the type of SIZE and READ.
6231 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6232 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6233 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6234 mmap page.
6235 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6236 buffer size to UINT_MAX.
6237 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6238 DATA_TAIL.
6239 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6240 <last_head>: Change type.
6241 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6242 * common/btrace-common.c (btrace_data_append): Change the type of
6243 SIZE.
6244 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6245 check.
6246
6247 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6248
6249 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6250 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6251 with check_typedef.
6252 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6253 (ada_array_length): Likewise.
6254 (find_parallel_type_by_descriptive_type): Likewise.
6255 (ada_check_typedef): Likewise.
6256 * arm-tdep.c (arm_return_in_memory): Likewise.
6257 * ax-gdb.c (gen_trace_static_fields): Likewise.
6258 (gen_struct_ref_recursive): Likewise.
6259 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6260 (variable: block COLONCOLON name): Likewise.
6261 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6262 * c-lang.c (classify_type): Likewise.
6263 * c-typeprint.c (c_print_type): Likewise.
6264 (c_print_typedef): Likewise.
6265 (c_type_print_base): Likewise.
6266 * c-valprint.c (c_val_print): Likewise.
6267 * compile/compile-c-types.c (convert_type): Likewise.
6268 * compile/compile-object-load.c (get_out_value_type): Likewise.
6269 * completer.c (add_struct_fields): Likewise.
6270 (expression_completer): Likewise.
6271 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6272 (cp_lookup_nested_symbol_1): Likewise.
6273 (cp_lookup_nested_symbol): Likewise.
6274 * cp-valprint.c (cp_print_value_fields): Likewise.
6275 (cp_print_static_field): Likewise.
6276 * d-valprint.c (d_val_print): Likewise.
6277 * eval.c (evaluate_subexp_standard): Likewise.
6278 (evaluate_subexp_for_sizeof): Likewise.
6279 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6280 * f-typeprint.c (f_type_print_base): Likewise.
6281 * f-valprint.c (f_val_print): Likewise.
6282 * gdbtypes.c (get_discrete_bounds): Likewise.
6283 (create_array_type_with_stride): Likewise.
6284 (type_name_no_tag_or_error): Likewise.
6285 (lookup_struct_elt_type): Likewise.
6286 (get_unsigned_type_max): Likewise.
6287 (internal_type_vptr_fieldno): Likewise.
6288 (set_type_vptr_fieldno): Likewise.
6289 (internal_type_vptr_basetype): Likewise.
6290 (set_type_vptr_basetype): Likewise.
6291 (get_vptr_fieldno): Likewise.
6292 (is_integral_type): Likewise.
6293 (is_scalar_type): Likewise.
6294 (is_scalar_type_recursive): Likewise.
6295 (distance_to_ancestor): Likewise.
6296 (is_unique_ancestor_worker): Likewise.
6297 (check_types_equal): Likewise.
6298 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6299
6300 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6301
6302 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6303 also test for language_d.
6304 (dwarf2_compute_name): Likewise.
6305 (read_func_scope): Likewise.
6306 (read_structure_type): Likewise.
6307 (new_symbol_full): Likewise.
6308 (determine_prefix): Likewise.
6309 (read_import_statement): Use dot as the separator for language_d.
6310 (typename_concat): Likewise, but don't prefix the D main function.
6311
6312 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6313
6314 * nat/linux-namespaces.c (setns): Rename from this ...
6315 (do_setns): ... to this. Support calling setns if it exists.
6316 (mnsh_handle_setns): Call do_setns.
6317
6318 2015-07-13 Yao Qi <yao.qi@linaro.org>
6319
6320 * exec.c (exec_file_attach): Add period at the end of error
6321 message.
6322
6323 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * tui/tui-win.c (window_name_completer): New function.
6326 (focus_completer): Call window_name_completer. All old content
6327 moved into window_name_completer.
6328 (winheight_completer): New function.
6329 (_initialize_tui_win): Rename variable. Add completer to
6330 winheight command. Update doc string on winheight.
6331
6332 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6333
6334 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6335 all nios2 mach variants.
6336
6337 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6338
6339 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6340 of target_read_memory.
6341
6342 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6343
6344 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6345 string copy.
6346 (parse_scrolling_args): Likewise.
6347
6348 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6349
6350 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6351 names in this function.
6352
6353 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6356 (CMD_NAME): Likewise.
6357 (DATA_NAME): Likewise.
6358 (DISASSEM_NAME): Likewise.
6359 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6360 (tui_set_win_height): Likewise.
6361 (parse_scrolling_args): Likewise.
6362
6363 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6364
6365 * record-btrace.c (record_btrace_goto_begin)
6366 (record_btrace_goto_end, record_btrace_goto): Move call to
6367 print_stack_frame ...
6368 (record_btrace_set_replay): ... here. Set stop_pc.
6369 * record-full.c (record_full_goto_entry): Set stop_pc.
6370
6371 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6372
6373 * NEWS: Mention support for tracepoints on aarch64-linux.
6374
6375 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6376
6377 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6378 function. Return 1.
6379 (the_low_target): Install it.
6380
6381 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6382
6383 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6384 * gdb.trace/collection.exp: Likewise.
6385 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6386 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6387 * gdb.trace/report.exp: Likewise.
6388 * gdb.trace/trace-break.exp: Likewise.
6389 * gdb.trace/unavailable.exp: Likewise.
6390 * gdb.trace/while-dyn.exp: Likewise.
6391
6392 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6393
6394 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6395 (aarch64_gen_return_address): New function.
6396 (aarch64_gdbarch_init): Hook it.
6397
6398 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6399
6400 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6401 swallow NOT_AVAILABLE_ERROR.
6402 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6403 available_p is not set.
6404 (aarch64_stub_frame_unwind_stop_reason): New function.
6405 (aarch64_stub_unwind): Install it.
6406
6407 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6408
6409 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6410 field.
6411 (aarch64_make_prologue_cache_1): New function, factored out from
6412 aarch64_make_prologue_cache. Do not allocate cache. Set
6413 available_p.
6414 (aarch64_make_prologue_cache): Reimplement wrapping
6415 aarch64_make_prologue_cache_1, and swallowing
6416 NOT_AVAILABLE_ERROR.
6417 (aarch64_prologue_frame_unwind_stop_reason): New function.
6418 Return UNWIND_UNAVAILABLE if available_p is not set.
6419 (aarch64_prologue_unwind): Install it.
6420 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6421 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6422 frame_id_build_unavailable_stack if available_p is not set.
6423
6424 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6425
6426 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6427 fields.
6428 (aarch64_scan_prologue): Set prev_pc.
6429 (aarch64_make_prologue_cache): Set func.
6430 (aarch64_make_stub_cache): Set prev_pc.
6431 (aarch64_prologue_this_id): Remove local variables id, pc and
6432 func. Read prev_pc and func from cache.
6433 (aarch64_stub_this_id): Read prev_pc from cache.
6434
6435 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6436
6437 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6438 argument this_cache. Remove unused local variables reg and
6439 unwound_fp. Return early if this_cache is already set. Set
6440 this_cache.
6441 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6442
6443 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6444
6445 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6446 New argument this_cache. Return early if this_cache is already
6447 set. Set this_cache.
6448 (aarch64_prologue_this_id): Update call to
6449 aarch64_make_prologue_cache.
6450 (aarch64_prologue_prev_register): Likewise.
6451 (aarch64_normal_frame_base): Likewise.
6452
6453 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 * c-valprint.c (c_val_print): Factor out memberptr printing code
6456 from c_val_print to ...
6457 (c_val_print_memberptr): ... this new function.
6458
6459 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6460
6461 * c-valprint.c (c_val_print): Factor out int printing code to ...
6462 (c_val_print_int): ... this new function.
6463
6464 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6465
6466 * c-valprint.c (c_val_print): Factor out struct and union
6467 printing code to ...
6468 (c_val_print_struct): ... this new function ...
6469 (c_val_print_union): ... and this new function.
6470
6471 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6472
6473 * c-valprint.c (c_val_print): Factor out pointer printing code
6474 to ...
6475 (c_val_print_ptr): ... this new function.
6476
6477 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6478
6479 * c-valprint.c (c_valprint): Factor our array printing code from
6480 c_val_print to ...
6481 (c_val_print_array): ... this new function.
6482
6483 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6484
6485 * c-valprint.c (c_val_print): Factor out pointer printing code
6486 to ...
6487 (print_unpacked_pointer): ... this new function.
6488
6489 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6490
6491 * c-valprint.c (c_val_print): Remove an assignment to i and move
6492 its declaration.
6493
6494 2015-07-09 Yao Qi <yao.qi@linaro.org>
6495
6496 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6497 argument ptid. Update comments. Caller update.
6498
6499 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6500
6501 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6502 mnt packets.
6503
6504 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6505
6506 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6507
6508 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6509
6510 * progspace.c (delete_program_space): Add missing spaces.
6511
6512 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6513
6514 * inferior.c (delete_inferior_1): Rename to ...
6515 (delete_inferior): ..., remove 'silent' parameter, delete
6516 program space when unused and remove call to prune_program_spaces.
6517 Remove the old, unused, delete_inferior.
6518 (delete_inferior_silent): Remove.
6519 (prune_inferiors): Change call from delete_inferior_1 to
6520 delete_inferior and remove 'silent' parameter. Remove call to
6521 prune_program_spaces.
6522 (remove_inferior_command): Idem.
6523 * inferior.h (delete_inferior_1): Rename to...
6524 (delete_inferior): ..., remove 'silent' parameter and remove the
6525 original delete_inferior.
6526 (delete_inferior_silent): Remove.
6527 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6528 delete_inferior_1 to delete_inferior and remove 'silent'
6529 parameter.
6530 * progspace.c (prune_program_spaces): Remove.
6531 (pspace_empty_p): Rename to...
6532 (program_space_empty_p): ... and make non-static.
6533 (delete_program_space): New.
6534 * progspace.h (prune_program_spaces): Remove declaration.
6535 (program_space_empty_p): New declaration.
6536 (delete_program_space): New declaration.
6537 * monitor.c (monitor_close): Replace call to
6538 delete_thread_silent and delete_inferior_silent with
6539 discard_all_inferiors.
6540
6541 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6542
6543 * defs.h (deprecated_register_changed_hook): Remove prototype.
6544 * interps.c (clear_iterpreter_hooks): Remove reference to
6545 deprecated_register_changed_hook.
6546 * top.c (deprecated_register_changed_hook): Remove prototype.
6547 * valops.c (value_assign): Remove reference to
6548 deprecated_register_changed_hook.
6549 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6550 Add comment documenting the function.
6551 (tui_register_changed_observer): Define.
6552 (tui_install_hooks): Remove reference to
6553 deprecated_register_changed_hook. Set
6554 tui_register_changed_observer.
6555 (tui_remove_hooks): Remove reference to
6556 deprecated_register_changed_hook. Unset
6557 tui_register_changed_observer.
6558
6559 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6560
6561 PR compile/18484
6562 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6563
6564 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6565
6566 PR exp/18617
6567 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6568
6569 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6570
6571 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6572
6573 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6574
6575 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6576 Use safe_strerror() instead of strerror().
6577
6578 2015-07-07 Yao Qi <yao.qi@linaro.org>
6579
6580 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6581 * features/arm-with-m-fpa-layout.c: Regenerated.
6582 * features/arm-with-m-vfp-d16.xml: Likewise.
6583 * features/arm-with-m-vfp-d16.c: Regenerated.
6584 * features/arm-with-m.xml: Likewise.
6585 * features/arm-with-m.c: Regenerated.
6586 * features/arm-with-neon.xml: Likewise.
6587 * features/arm-with-neon.c: Regenerated.
6588 * features/arm-with-vfpv2.xml: Likewise.
6589 * features/arm-with-vfpv2.c: Regenerated.
6590 * features/arm-with-vfpv3.xml: Likewise.
6591 * features/arm-with-vfpv3.c: Regenerated.
6592
6593 2015-07-07 Yao Qi <yao.qi@linaro.org>
6594
6595 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6596 arm-linux-nat.c.
6597 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6598 elf/external.h.
6599 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6600 if target is 32-bit.
6601 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6602 if target is 32-bit.
6603 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6604 if target is 32-bit.
6605 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6606 if target is 32-bit.
6607 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6608 (aarch64_linux_read_description): Return the right target
6609 description.
6610 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6611 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6612 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6613 arm-linux-tdep.o.
6614
6615 2015-07-07 Yao Qi <yao.qi@linaro.org>
6616
6617 * aarch32-linux-nat.c: New file.
6618 * aarch32-linux-nat.h: New file.
6619 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6620 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6621 aarch32_gp_regcache_supply.
6622 (store_regs): Move code to aarch32-linux-nat.c. Call
6623 aarch32_gp_regcache_collect.
6624 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6625 aarch32_vfp_regcache_supply.
6626 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6627 aarch32_vfp_regcache_collect.
6628 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6629
6630 2015-07-07 Yao Qi <yao.qi@linaro.org>
6631
6632 * arm-linux-nat.c (store_fpregister): Remove.
6633 (store_register): Likewise.
6634 (fetch_fpregister): Likewise.
6635 (fetch_register): Likewise.
6636 (arm_linux_store_inferior_registers): Call store_regs and
6637 store_fpregs instead.
6638 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6639 fetch_regs instead.
6640
6641 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6642
6643 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6644 and focus commands.
6645
6646 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6647
6648 * NEWS: Create a new section for the next release branch.
6649 Rename the section of the current branch, now that it has
6650 been cut.
6651
6652 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6653
6654 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6655 * version.in: Bump version to 7.10.50.DATE-cvs.
6656
6657 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6658
6659 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6660 breakpoints in a special way.
6661 (remove_breakpoint): Likewise.
6662 (mark_breakpoints_out): Likewise.
6663
6664 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * doc/gdb.texinfo (TUI): Add comma after @xref.
6667
6668 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6669
6670 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6671 instead of casting the structure type.
6672
6673 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6674
6675 * valops.c (search_struct_field): Remove OFFSET parameter.
6676 (value_cast_structs): Adjust calls to search_struct_field.
6677 (value_struct_elt): Same.
6678 (find_overload_match): Same.
6679
6680 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * value.c (value_fetch_lazy): Update comment, change return
6683 value to void.
6684 * value.h (value_fetch_lazy): Change return value to void.
6685
6686 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6689 (tui_win_name): Make parameter and result const.
6690 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6691
6692 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6693
6694 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6695 use printf_unfiltered.
6696 (set_mpx_cmd): Add missing trailing space to command string
6697 literal.
6698 (_initialize_i386_tdep): Give the "mpx" prefix command its
6699 correct name.
6700
6701 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6702
6703 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6704 (enum rx_frame_type): New.
6705 (struct rx_prologue): Add new field `frame_type'.
6706 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6707 parameter in the prologue struct. Add code for recording
6708 locations of PC and PSW for fast interrupt and exception frames.
6709 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6710 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6711 (rx_frame_type): New function.
6712 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6713 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6714 `this_cache'.
6715 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6716 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6717 RX_FRAME_TYPE_FAST_INTERRUPT.
6718 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6719 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6720 (rx_frame_unwind): Use rx_frame_sniffer instead of
6721 default_frame_sniffer.
6722 (rx_frame_unwind): New unwinder.
6723 (rx_gdbarch_init): Register new unwinder.
6724
6725 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6726
6727 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6728 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6729 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6730 and RX_FPSW_REGNUM.
6731 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6732
6733 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 Fix GCC false warning.
6736 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6737
6738 2015-07-02 Yao Qi <yao.qi@linaro.org>
6739
6740 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6741 typo in the debugging message.
6742
6743 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6744
6745 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6746 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6747 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6748 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6749 (btrace_maint_clear): New.
6750 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6751 (pt_print_packet, btrace_maint_decode_pt)
6752 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6753 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6754 (maint_btrace_packet_history_cmd)
6755 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6756 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6757 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6758 (maint_info_btrace_cmd, _initialize_btrace): New.
6759 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6760 (btrace_maint_packet_history, btrace_maint_info): New.
6761 (btrace_thread_info) <maint>: New.
6762 * NEWS: Announce it.
6763
6764 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6765
6766 * btrace.c (btrace_fetch): Append the new trace data.
6767 (btrace_clear): Clear the stored trace data.
6768 * btrace.h (btrace_thread_info) <data>: New.
6769 * common/btrace-common.h (btrace_data_clear)
6770 (btrace_data_append): New.
6771 * common/btrace-common.c (btrace_data_clear)
6772 (btrace_data_append): New.
6773
6774 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6775
6776 * nat/linux-btrace.c (linux_enable_bts): Check for
6777 PERF_ATTR_SIZE_VER5.
6778 Check for data_offset and data_size fields. Use them.
6779
6780 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6781
6782 * NEWS: Announce new commands "record btrace pt" and "record pt".
6783 Announce new options "set|show record btrace pt buffer-size".
6784 * btrace.c: Include "rsp-low.h".
6785 Include "inttypes.h".
6786 (btrace_add_pc): Add forward declaration.
6787 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6788 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6789 (btrace_compute_ftrace_pt): New.
6790 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6791 (check_xml_btrace_version): Update version check.
6792 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6793 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6794 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6795 (btrace_pt_children): New.
6796 (btrace_children): Add support for "pt".
6797 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6798 (btrace_conf_children): Add support for "pt".
6799 * btrace.h: Include "intel-pt.h".
6800 (btrace_pt_error): New.
6801 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6802 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6803 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6804 (struct btrace_config_pt): New.
6805 (struct btrace_config)<pt>: New.
6806 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6807 (struct btrace_data)<pt>: New.
6808 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6809 (pt): New.
6810 * features/btrace.dtd (btrace)<pt>: New.
6811 (pt, pt-config, cpu): New.
6812 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6813 (perf_event_pt_event_type, kernel_supports_pt)
6814 (linux_supports_pt): New.
6815 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6816 (linux_enable_bts): Free tinfo on error.
6817 (linux_enable_pt): New.
6818 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6819 (linux_disable_pt): New.
6820 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6821 (linux_fill_btrace_pt_config, linux_read_pt): New.
6822 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6823 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6824 (struct btrace_target_info)<pt>: New.
6825 * record-btrace.c (set_record_btrace_pt_cmdlist)
6826 (show_record_btrace_pt_cmdlist): New.
6827 (record_btrace_print_pt_conf): New.
6828 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6829 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6830 (cmd_record_btrace_pt_start): New.
6831 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6832 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6833 (_initialize_record_btrace): Add new commands.
6834 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6835 (remote_protocol_features): Add "Qbtrace:pt".
6836 Add "Qbtrace-conf:pt:size".
6837 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6838 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6839 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6840 (_initialize_remote): Add new commands.
6841
6842 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6843
6844 * configure.ac: check for libipt
6845 * configure: Regenerate.
6846 * config.in: Regenerate.
6847 * Makefile.in (LIBIPT): New.
6848 (CLIBS): Add $LIBIPT.
6849 * NEWS: document new configure options
6850
6851 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6852
6853 * compile/compile-object-load.c (compile_object_load): Replace debug
6854 message "lookup undefined ELF symbol" by 3 more specific messages.
6855
6856 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6857
6858 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6859 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6860 (rl78_gdbarch_init): Initialize rl78_psw_type.
6861
6862 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6863
6864 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6865 Update commentary. Always refresh the registers when frame
6866 information has changed.
6867 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6868 Change return type to int. Return 1 if frame information has
6869 changed, 0 otherwise.
6870 (tui_before_prompt): Update commentary.
6871 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6872 int.
6873
6874 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6875
6876 PR tui/13378
6877 * frame.c (select_frame): Remove reference to
6878 deprecated_selected_frame_level_changed_hook.
6879 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6880 declaration.
6881 * stack.c (deprecated_selected_frame_level_changed_hook):
6882 Likewise.
6883 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6884 Rename to ...
6885 (tui_refresh_frame_and_register_information): ... this. Bail
6886 out if there is no stack. Don't update register information
6887 unless registers_too_p is true.
6888 (tui_print_frame_info_listing_hook): Rename to ...
6889 (tui_dummy_print_frame_info_listing_hook): ... this.
6890 (tui_before_prompt): New function.
6891 (tui_normal_stop): New function.
6892 (tui_before_prompt_observer): New observer.
6893 (tui_normal_stop_observer): New observer.
6894 (tui_install_hooks): Set
6895 deprecated_print_frame_info_listing_hook to
6896 tui_dummy_print_frame_info_listing_hook. Register
6897 tui_before_prompt_observer to call tui_before_prompt and
6898 tui_normal_stop_observer to call tui_normal_stop. Remove
6899 reference to deprecated_selected_frame_level_changed_hook.
6900 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6901 and tui_normal_stop_observer. Remove reference to
6902 deprecated_selected_frame_level_changed_hook.
6903
6904 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6905
6906 PR tui/13378
6907 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6908 return an int instead of void. Return whether the locator
6909 window has changed.
6910 (tui_show_frame_info): If the locator info has not changed, then
6911 bail out early to avoid refreshing the windows.
6912
6913 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6914
6915 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6916 LOCATOR_WIN to tui_alloc_content.
6917
6918 2015-06-30 Yao Qi <yao.qi@linaro.org>
6919
6920 PR tdep/18605
6921 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6922 instructions.
6923
6924 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6925
6926 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6927 (rx_dwarf_reg_to_regnum): New function.
6928 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6929 unwinding.
6930
6931 2015-06-29 Pedro Alves <palves@redhat.com>
6932
6933 PR threads/18127
6934 * infcall.c (run_inferior_call): On infcall success, if the thread
6935 was marked stopped before, reset it back to stopped.
6936 * infrun.c (resume): Don't suppress the set_running calls when
6937 doing an infcall.
6938 (normal_stop): Only discard the finish_thread_state cleanup if the
6939 infcall succeeded.
6940
6941 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6942
6943 * MAINTAINERS (Write After Approval): Update my email address.
6944
6945 2015-06-26 Keith Seitz <keiths@redhat.com>
6946 Doug Evans <dje@google.com>
6947
6948 PR 16253
6949 * block.c (block_lookup_symbol): For non-function blocks,
6950 continue to search for a symbol with an exact domain match
6951 Otherwise, return any previously found "best domain" symbol.
6952 (block_lookup_symbol_primary): Likewise.
6953
6954 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6955
6956 * NEWS: Mention the new option "history remove-duplicates".
6957 * top.c (history_remove_duplicates): New static variable.
6958 (show_history_remove_duplicates): New static function.
6959 (gdb_add_history): Conditionally remove duplicate history
6960 entries.
6961 (init_main): Add "history remove-duplicates" option.
6962
6963 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6964
6965 * tui/tui-win.c (focus_completer): New static function.
6966 (_initialize_tui_win): Set the completion function of the
6967 "focus" command to focus_completer.
6968
6969 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6970
6971 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6972 and language_asm..
6973 * symtab.c (find_function_start_sal): Likewise.
6974
6975 2015-06-25 Gary Benson <gbenson@redhat.com>
6976
6977 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6978 it is the empty string after trailing slashes have been stripped.
6979
6980 2015-06-25 Gary Benson <gbenson@redhat.com>
6981
6982 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6983 * infrun.c (follow_exec): Likewise.
6984 * remote.c (remote_filesystem_is_local): Likewise.
6985 * solib.c (solib_find_1): Likewise.
6986
6987 2015-06-24 Keith Seitz <keiths@redhat.com>
6988
6989 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6990 return value from lrealpath.
6991
6992 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6993
6994 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6995
6996 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6997
6998 * remote-sim.c: Include gdb_bfd.h.
6999 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7000 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7001
7002 2015-06-24 Yao Qi <yao.qi@linaro.org>
7003
7004 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7005 set_gdbarch_get_siginfo_type.
7006 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7007 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7008 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7009 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7010 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7011 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7012 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7013 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7014 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7015 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7016
7017 2015-06-24 Gary Benson <gbenson@redhat.com>
7018
7019 * common/buffer.c (stdint.h): Do not include.
7020 * common/print-utils.c (stdint.h): Likewise.
7021 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7022 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7023 * ft32-tdep.c (gdb_assert.h): Likewise.
7024 * guile/scm-utils.c (stdint.h): Likewise.
7025 * i386-linux-tdep.c (stdint.h): Likewise.
7026 * i386-tdep.c (stdint.h): Likewise.
7027 * nat/linux-btrace.c (stdint.h): Likewise.
7028 * nat/linux-btrace.h (stdint.h): Likewise.
7029 * nat/linux-ptrace.c (stdint.h): Likewise.
7030 * nat/mips-linux-watch.h (stdint.h): Likewise.
7031 * ppc-linux-nat.c (stdint.h): Likewise.
7032 * python/python-internal.h (stdint.h): Likewise.
7033 * stub-termcap.c (stdlib.h): Likewise.
7034 * target/target.h (stdint.h): Likewise.
7035 * xtensa-linux-nat.c (stdint.h): Likewise.
7036
7037 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7038
7039 * top.c (init_history): Look at errno after calling strtol to
7040 properly map large GDBHISTSIZE values to infinity.
7041
7042 2015-06-23 Doug Evans <dje@google.com>
7043
7044 * inferior.h (struct inferior_suspend_state): Delete, unused.
7045 All references deleted.
7046
7047 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7048
7049 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7050 (microblaze_push_dummy_call): Likewise.
7051 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7052 and set_gdbarch_push_dummy_call.
7053
7054 2015-06-23 Yao Qi <yao.qi@linaro.org>
7055
7056 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7057 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7058 (amd64_linux_store_inferior_registers): Likewise.
7059 * arm-linux-nat.c (fetch_fpregister): Likewise.
7060 (fetch_fpregs, store_fpregister): Likewise.
7061 (store_fpregister, store_fpregs): Likewise.
7062 (fetch_register, fetch_regs): Likewise.
7063 (store_register, store_regs): Likewise.
7064 (fetch_vfp_regs, store_vfp_regs): Likewise.
7065 (arm_linux_read_description): Check have_ptrace_getregset is
7066 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7067 or TRIBOOL_FALSE.
7068 * i386-linux-nat.c (fetch_xstateregs): Check
7069 have_ptrace_getregset is not TRIBOOL_TRUE.
7070 (store_xstateregs): Likewise.
7071 * linux-nat.c (have_ptrace_getregset): Change its type to
7072 enum tribool.
7073 * linux-nat.h (tribool): New enum.
7074 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7075 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7076
7077 2015-06-19 Doug Evans <dje@google.com>
7078
7079 * NEWS: Mention Sun's version of stabs is no longer supported.
7080 * elfread.c (free_elfinfo): Delete. All uses updated.
7081 (elfstab_offset_sections): Delete. All uses updated.
7082 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7083 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7084 All uses updated.
7085 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7086 All callers updated.
7087
7088 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7089
7090 * common/rsp-low.c (needs_escaping): New.
7091 (remote_escape_output): Add unit_size parameter. Refactor to
7092 support multi-byte addressable units. Rename parameters.
7093 * common/rsp-low.h (remote_escape_output): Add unit_size
7094 parameter and rename others. Update doc.
7095 * remote.c (align_for_efficient_write): New.
7096 (remote_write_bytes_aux): Add unit_size parameter and use it.
7097 Rename some variables. Update doc.
7098 (remote_xfer_partial): Get unit size and use it.
7099 (remote_read_bytes_1): Add unit_size parameter and use it.
7100 Rename some variables. Update doc.
7101 (remote_write_bytes): Same.
7102 (remote_xfer_live_readonly_partial): Same.
7103 (remote_read_bytes): Same.
7104 (remote_flash_write): Update call to remote_write_bytes_aux.
7105 (remote_write_qxfer): Update call to remote_escape_output.
7106 (remote_search_memory): Same.
7107 (remote_hostio_pwrite): Same.
7108
7109 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7110
7111 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7112 locations as inserted.
7113 Update and expand comment about permanent locations.
7114 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7115 Move comment to add_location_to_breakpoint.
7116 (update_global_location_list): Don't error out if a permanent
7117 breakpoint is not marked inserted.
7118 Don't error out if a non-permanent breakpoint location is inserted on
7119 top of a permanent breakpoint.
7120
7121 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7122
7123 * breakpoint.c (make_breakpoint_permanent): Remove unused
7124 function.
7125 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7126
7127 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7128
7129 PR gdb/16999
7130 * NEWS: Mention new GDBHISTSIZE behavior.
7131 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7132 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7133
7134 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7135
7136 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7137 * top.c (init_history): Read from GDBHISTSIZE instead of
7138 HISTSIZE.
7139 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7140
7141 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7142
7143 * top.c (gdb_safe_append_history): Do not call
7144 history_truncate_file if the history is not stifled.
7145
7146 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7147
7148 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7149 * syscalls/s390x-linux.xml: Likewise.
7150
7151 2015-06-16 Michael Eager <eager@eagercon.com>
7152
7153 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7154
7155 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7156
7157 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7158 target_terminal_ours_for_output() before calling
7159 tui_show_frame_info(), and restore the original terminal
7160 settings afterwards.
7161
7162 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7163
7164 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7165
7166 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7169 memory unit size.
7170 (mi_cmd_data_write_memory_bytes): Same.
7171
7172 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * corefile.c (write_memory): Update doc.
7175 * gdbcore.h (write_memory): Same.
7176
7177 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7178
7179 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7180 (dump_mapping_p): Use it for parameter filterflags.
7181 (linux_find_memory_regions_full): Use it for variable filterflags.
7182
7183 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7184 Jan Kratochvil <jan.kratochvil@redhat.com>
7185
7186 Merge multiple hex conversions.
7187 * monitor.c: Include rsp-low.h.
7188 (fromhex): Remove definition.
7189
7190 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7191 Jan Kratochvil <jan.kratochvil@redhat.com>
7192
7193 Move utility functions to common/.
7194 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7195 Move defs to common/common-utils.c.
7196 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7197 (skip_to_space_const): Move decls to common/common-utils.h.
7198 * common/common-defs.h: Move include of common-types.h before
7199 common-utils.h.
7200 * common/common-utils.c: Include host-defs.h and ctype.h.
7201 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7202 from utils.c.
7203 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7204 cli/cli-utils.c.
7205 * common/common-utils.h (strtoulst): Move decl from utils.h.
7206 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7207 Move from cli/cli-utils.h.
7208 * common/host-defs.h: Include limits.h.
7209 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7210 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7211 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7212 common/common-utils.h.
7213 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7214 (strtoulst): Move to common/common-utils.c.
7215 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7216
7217 2015-06-15 Yao Qi <yao.qi@linaro.org>
7218
7219 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7220
7221 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7222
7223 * build-id.c: Don't include elf-bfd.h.
7224 (build_id_bfd_get): Use bfd_build_id.
7225 (build_id_verify): Ditto.
7226 * build-id.h: Ditto.
7227 (find_separate_debug_file_by_buildid): Ditto.
7228 * python/py-objfile.c: Don't include elf-bfd.h.
7229 (objfpy_get_build_id) Use bfd_build_id.
7230 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7231 * coffread.c: Include build-id.h.
7232 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7233
7234 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7235
7236 * windows-nat.c (do_windows_fetch_inferior_registers)
7237 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7238 conditional with __CYGWIN__.
7239
7240 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * completer.c: Add arch-utils.h include.
7243 (enum reg_completer_targets): New enum.
7244 (reg_or_group_completer_1): New function containing old
7245 reg_or_group_completer, add and use new parameter to control what
7246 is completed on. Use get_current_arch rather than architecture of
7247 currently selected frame.
7248 (reg_or_group_completer): Call new reg_or_group_completer_1.
7249 (reggroup_completer): Call new reg_or_group_completer_1.
7250 * completer.h (reggroup_completer): Add declaration.
7251 * tui/tui-regs.c: Add 'completer.h' include.
7252 (tui_reg_next_command): Renamed to...
7253 (tui_reg_next): ...this. Adjust parameters and return rather than
7254 display new group.
7255 (tui_reg_prev_command): Renamed to...
7256 (tui_reg_prev): ...this. Adjust parameters and return rather than
7257 display new group.
7258 (tui_reg_float_command): Delete.
7259 (tui_reg_general_command): Delete.
7260 (tui_reg_system_command): Delete.
7261 (tui_reg_command): Rewrite to perform switching of register group.
7262 Add header comment.
7263 (tuireglist): Remove.
7264 (tui_reggroup_completer): New function.
7265 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7266 creation of 'tui reg' command.
7267 * NEWS: Add comment about 'tui reg' changes.
7268
7269 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7270
7271 * target.c (target_read): Consider addressable unit size when
7272 reading from a memory object.
7273 (read_memory_robust): Same.
7274 (read_whatever_is_readable): Same.
7275 (target_write_with_progress): Consider addressable unit size
7276 when writing to a memory object.
7277 * target.h (target_read): Update documentation.
7278 (target_write): Add documentation.
7279
7280 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7281
7282 * arch-utils.h (default_addressable_memory_unit_size): New.
7283 * arch-utils.c (default_addressable_memory_unit_size): New.
7284 * gdbarch.sh (addressable_memory_unit_size): New.
7285 * gdbarch.h: Re-generate.
7286 * gdbarch.c: Re-generate.
7287
7288 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7289
7290 * target.c (target_read): Rename variables and use
7291 TARGET_XFER_E_IO.
7292 (target_read_with_progress): Same.
7293 (read_memory_robust): Constify parameters and rename
7294 variables.
7295 (read_whatever_is_readable): Constify parameters,
7296 rename variables, adjust formatting.
7297 * target.h (read_memory_robust): Constify parameters.
7298
7299 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7300
7301 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7302 synthetic (non-AltiVec) vector types.
7303 (ppc64_sysv_abi_return_value): Likewise.
7304
7305 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7306
7307 PR breakpoints/16465
7308 * breakpoint.c (create_breakpoint): Save extra_string for
7309 pending breakpoints.
7310
7311 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7312
7313 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7314 and bt_mask to CORE_ADDR.
7315
7316 2015-06-11 Gary Benson <gbenson@redhat.com>
7317
7318 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7319 (mnsh_recv_message): Likewise.
7320
7321 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7322
7323 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7324 long long int and plongest instead of %ll.
7325
7326 2015-06-11 Gary Benson <gbenson@redhat.com>
7327
7328 * nat/linux-namespaces.c (gdb_wait.h): New include.
7329 (sys/wait.h): Do not include.
7330
7331 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7332
7333 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7334 end_sequence is true.
7335
7336 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 Code cleanup.
7339 * solib-target.c (library_list_start_list): Use explicit NULL
7340 comparison.
7341
7342 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7343
7344 * solib-target.c (library_list_start_list): Do not dereference
7345 variable version in its initialization. Make the VERSION check handle
7346 NULL.
7347 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7348
7349 2015-06-10 Gary Benson <gbenson@redhat.com>
7350
7351 * NEWS: Announce support for direct access of executable and
7352 shared library files when attaching to inferiors in containers
7353 on GNU/Linux systems.
7354
7355 2015-06-10 Gary Benson <gbenson@redhat.com>
7356
7357 * remote.c (struct remote_state) <fs_pid>: New field.
7358 (new_remote_state): Initialize the above.
7359 (PACKET_vFile_setfs): New enum value.
7360 (remote_hostio_set_filesystem): New function.
7361 (remote_hostio_open): Call the above.
7362 (remote_hostio_unlink): Likewise.
7363 (remote_hostio_readlink): Likewise.
7364 (_initialize_remote): Register new "set/show remote
7365 hostio-setfs-packet" command.
7366 * NEWS: Announce new vFile:setfs packet.
7367
7368 2015-06-10 Gary Benson <gbenson@redhat.com>
7369
7370 * linux-nat.c (nat/linux-namespaces.h): New include.
7371 (fileio.h): Likewise.
7372 (linux_nat_filesystem_is_local): New function.
7373 (linux_nat_fileio_pid_of): Likewise.
7374 (linux_nat_fileio_open): Likewise.
7375 (linux_nat_fileio_readlink): Likewise.
7376 (linux_nat_fileio_unlink): Likewise.
7377 (linux_nat_add_target): Initialize to_filesystem_is_local,
7378 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7379 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7380 commands.
7381 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7382
7383 2015-06-10 Gary Benson <gbenson@redhat.com>
7384
7385 * target.h (struct inferior): New forward declaration.
7386 (struct target_ops) <to_filesystem_is_local>: Update comment.
7387 (struct target_ops) <to_fileio_open>: New argument inf.
7388 Update comment. All implementations updated.
7389 (struct target_ops) <to_fileio_unlink>: Likewise.
7390 (struct target_ops) <to_fileio_readlink>: Likewise.
7391 (target_filesystem_is_local): Update comment.
7392 (target_fileio_open): New argument inf. Update comment.
7393 (target_fileio_unlink): Likewise.
7394 (target_fileio_readlink): Likewise.
7395 (target_fileio_read_alloc): Likewise.
7396 (target_fileio_read_stralloc): Likewise.
7397 * target.c (target_fileio_open): New argument inf.
7398 Pass inf to implementation. Update debug printing.
7399 (target_fileio_unlink): Likewise.
7400 (target_fileio_readlink): Likewise.
7401 (target_fileio_read_alloc_1): New argument inf. Pass inf
7402 to target_fileio_open.
7403 (target_fileio_read_alloc): New argument inf. Pass inf to
7404 target_fileio_read_alloc_1.
7405 (target_fileio_read_stralloc): Likewise.
7406 * gdb_bfd.c (inferior.h): New include.
7407 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7408 argument with new argument "inferior". Pass inferior to
7409 target_fileio_open.
7410 (gdb_bfd_open): Supply inferior argument to
7411 gdb_bfd_iovec_fileio_open.
7412 * linux-tdep.c (linux_info_proc): Supply inf argument to
7413 relevant target_fileio calls.
7414 (linux_find_memory_regions_full): Likewise.
7415 (linux_fill_prpsinfo): Likewise.
7416 * remote.c (remote_filesystem_is_local): Supply inf
7417 argument to remote_hostio_open.
7418 (remote_file_put): Likewise.
7419 (remote_file_get): Likewise.
7420 (remote_file_delete): Supply inf argument to
7421 remote_hostio_unlink.
7422
7423 2015-06-10 Gary Benson <gbenson@redhat.com>
7424
7425 * inf-child.c (inf_child_fileio_open): Replace comment.
7426 (inf_child_fileio_pwrite): Likewise.
7427 (inf_child_fileio_pread): Likewise.
7428 (inf_child_fileio_fstat): Insert blank line before comment.
7429 (inf_child_fileio_close): Replace comment.
7430 (inf_child_fileio_unlink): Likewise.
7431 (inf_child_fileio_readlink): Likewise.
7432 * remote.c (remote_hostio_open): Likewise.
7433 (remote_hostio_pread): Likewise.
7434 (remote_hostio_pwrite): Likewise.
7435 (remote_hostio_close): Likewise.
7436 (remote_hostio_unlink): Likewise.
7437 (remote_hostio_readlink): Likewise.
7438 (remote_hostio_fstat): Likewise.
7439 (remote_filesystem_is_local): Likewise.
7440 * target.c (target_fileio_open): Likewise.
7441 (target_fileio_pwrite): Likewise.
7442 (target_fileio_pread): Likewise.
7443 (target_fileio_fstat): Insert blank line before comment.
7444 (target_fileio_close): Replace comment.
7445 (target_fileio_unlink): Likewise.
7446 (target_fileio_readlink): Likewise.
7447 (target_fileio_read_alloc): Likewise.
7448 (target_fileio_read_stralloc): Likewise.
7449
7450 2015-06-10 Gary Benson <gbenson@redhat.com>
7451
7452 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7453 (check_pid_namespace_match): Use linux_ns_same rather than
7454 linux_proc_pid_get_ns to spot PID namespace mismatches.
7455 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7456 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7457
7458 2015-06-10 Gary Benson <gbenson@redhat.com>
7459
7460 * configure.ac (AC_CHECK_FUNCS): Add setns.
7461 * config.in: Regenerate.
7462 * configure: Likewise.
7463 * nat/linux-namespaces.h: New file.
7464 * nat/linux-namespaces.c: Likewise.
7465 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7466 (linux-namespaces.o): New rule.
7467 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7468 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7469 * config/arm/linux.mh (NATDEPFILES): Likewise.
7470 * config/i386/linux.mh (NATDEPFILES): Likewise.
7471 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7472 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7473 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7474 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7475 * config/mips/linux.mh (NATDEPFILES): Likewise.
7476 * config/pa/linux.mh (NATDEPFILES): Likewise.
7477 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7478 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7479 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7480 * config/s390/linux.mh (NATDEPFILES): Likewise.
7481 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7482 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7483 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7484 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7485
7486 2015-06-10 Gary Benson <gbenson@redhat.com>
7487
7488 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7489 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7490 (make_cleanup_close): Likewise.
7491 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7492 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7493 (make_cleanup_close): Likewise.
7494
7495 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7496
7497 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7498 from SuspendThread().
7499
7500 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7501
7502 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7503 from OutputDebugString.
7504
7505 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7506 Mircea Gherzan <mircea.gherzan@intel.com>
7507
7508 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7509 MPX_BT_MASK_32): New macros.
7510 (i386_mpx_set_bounds): New function that implements
7511 the command "set-mpx-bound".
7512 (i386_mpx_enabled): Helper function to test MPX availability.
7513 (i386_mpx_bd_base): Helper function to calculate the base directory
7514 address.
7515 (i386_mpx_get_bt_entry): Helper function to access a bound
7516 table entry.
7517 (i386_mpx_print_bounds): Effectively display bound information.
7518 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7519 "show mpx".
7520 (_initialize_i386_tdep):
7521 Add "bound" to the commands "show mpx" and "set mpx" commands.
7522 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7523 and "show mpx" commands.
7524 * NEWS: List new commands for MPX support.
7525
7526 2015-06-09 Gary Benson <gbenson@redhat.com>
7527
7528 * common/fileio.h (fileio_to_host_mode): New declaration.
7529 * common/fileio.c (fileio_to_host_mode): New Function.
7530 * inf-child.c (inf_child_fileio_open): Process mode argument
7531 with fileio_to_host_mode.
7532
7533 2015-06-09 Gary Benson <gbenson@redhat.com>
7534
7535 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7536 conditional.
7537
7538 2015-06-05 Gary Benson <gbenson@redhat.com>
7539
7540 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7541 * remote.c (remote_filesystem_is_local): ...here.
7542
7543 2015-06-04 Yao Qi <yao.qi@linaro.org>
7544
7545 * gdbarch.c: Regenerate it.
7546
7547 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7548
7549 * arch-utils.c (default_infcall_munmap): New.
7550 * arch-utils.h (default_infcall_munmap): New declaration.
7551 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7552 (munmap_list_free, munmap_listp_free_cleanup): New.
7553 (struct setup_sections_data): Add field munmap_list_headp.
7554 (setup_sections): Call munmap_list_add.
7555 (compile_object_load): New variable munmap_list_head, initialize
7556 setup_sections_data.munmap_list_headp, return munmap_list_head.
7557 * compile/compile-object-load.h (struct munmap_list): New declaration.
7558 (struct compile_module): Add field munmap_list_head.
7559 (munmap_list_free): New declaration.
7560 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7561 munmap_list_head.
7562 (do_module_cleanup): Call munmap_list_free.
7563 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7564 * gdbarch.c: Regenerate.
7565 * gdbarch.h: Regenerate.
7566 * gdbarch.sh (infcall_munmap): New.
7567 * linux-tdep.c (linux_infcall_munmap): New.
7568 (linux_init_abi): Install it.
7569
7570 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7571
7572 PR gdb/15564
7573 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7574
7575 2015-06-02 Yao Qi <yao.qi@linaro.org>
7576
7577 * i386-linux-nat.c: Include linux-nat.h.
7578
7579 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7580 Jan Kratochvil <jan.kratochvil@redhat.com>
7581
7582 PR symtab/18392
7583 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7584 assertion.
7585 * dwarf2loc.c (chain_candidate): Likewise.
7586
7587 2015-06-01 Yao Qi <yao.qi@linaro.org>
7588
7589 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7590 (store_vfp_regs): Use PTRACE_SETREGSET.
7591
7592 2015-06-01 Yao Qi <yao.qi@linaro.org>
7593
7594 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7595 (fetch_fpregs): Likewise.
7596 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7597 (store_fpregs): Likewise.
7598
7599 2015-06-01 Yao Qi <yao.qi@linaro.org>
7600
7601 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7602 (fetch_regs): Likewise.
7603 (store_regs): Use PTRACE_SETREGSET.
7604 (store_register): Likewise.
7605
7606 2015-06-01 Yao Qi <yao.qi@linaro.org>
7607
7608 * arm-linux-nat.c (arm_linux_read_description): Check whether
7609 kernel supports PTRACE_GETREGSET.
7610
7611 2015-06-01 Yao Qi <yao.qi@linaro.org>
7612
7613 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7614 * linux-nat.c: ... here.
7615 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7616 to ...
7617 * linux-nat.h: ... here.
7618
7619 2015-06-01 Yao Qi <yao.qi@linaro.org>
7620
7621 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7622 * i386-linux-nat.c: Likewise.
7623 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7624 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7625 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7626 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7627 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7628
7629 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7630
7631 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7632 compatible to what read_child and write_child return. This
7633 unbreaks that DJGPP build of GDB which was broken since v7.7.
7634
7635 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7636
7637 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7638
7639 2015-05-29 Roland McGrath <mcgrathr@google.com>
7640
7641 PR gdb/18464
7642 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7643 rather than internal_error for an unrecognized value.
7644
7645 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7646
7647 * xtensa-tdep.c (xtensa_pseudo_register_read)
7648 (xtensa_pseudo_register_write): Don't alias last pseudo register
7649 to a1.
7650
7651 2015-05-28 Don Breazeal <donb@codesourcery.com>
7652
7653 * infrun.c (follow_fork_inferior): Ensure the use of
7654 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7655 messages.
7656
7657 2015-05-28 Doug Evans <dje@google.com>
7658
7659 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7660
7661 2015-05-28 Yao Qi <yao.qi@linaro.org>
7662
7663 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7664 (arm_linux_fetch_inferior_registers): Use
7665 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7666 (arm_linux_store_inferior_registers): Likewise.
7667 (arm_linux_read_description): Don't set
7668 arm_linux_has_wmmx_registers.
7669 * arm-tdep.c (arm_gdbarch_init): Set
7670 tdep->have_wmmx_registers according target descriptions.
7671 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7672 field.
7673
7674 2015-05-28 Yao Qi <yao.qi@linaro.org>
7675
7676 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7677 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7678 instead of arm_linux_vfp_register_count.
7679 (store_vfp_regs): Likewise.
7680 (arm_linux_fetch_inferior_registers): Likewise.
7681 (arm_linux_store_inferior_registers): Likewise.
7682 (arm_linux_read_description): Don't set
7683 arm_linux_vfp_register_count.
7684 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7685 Adjust.
7686 * arm-tdep.c (arm_gdbarch_init): Add assert on
7687 vfp_register_count.
7688 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7689 field to vfp_register_count. All users updated.
7690
7691 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7692
7693 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7694 ELFOSABI_GNU binaries.
7695
7696 2015-05-27 Doug Evans <dje@google.com>
7697
7698 * dwarf2read.c (lnp_state_machine): New typedef.
7699 (lnp_reader_state): New typedef.
7700 (dwarf_record_line_1): Renamed from dwarf_record_line.
7701 All callers updated.
7702 (dwarf_record_line): New function.
7703 (init_lnp_state_machine): New function.
7704 (check_line_address): Replace p_record_line parameter with state.
7705 All callers updated.
7706 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7707 Update to record state in lnp_state_machine.
7708
7709 2015-05-27 Doug Evans <dje@google.com>
7710
7711 * dwarf2read.c (record_line_ftype): New typedef.
7712 (check_line_address): New function.
7713 (dwarf_decode_lines_1): Call it.
7714
7715 2015-05-27 Doug Evans <dje@google.com>
7716
7717 * NEWS: Mention "set debug dwarf-line".
7718 * dwarf2read.c (dwarf_line_debug): New static global.
7719 (add_include_dir): Add debug dwarf-line support.
7720 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7721 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7722
7723 2015-05-27 Doug Evans <dje@google.com>
7724
7725 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7726 All callers updated.
7727 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7728 * cp-support.h (cp_lookup_nested_symbol): Update.
7729
7730 2015-05-27 Doug Evans <dje@google.com>
7731
7732 PR symtab/18258
7733 * block.c (block_find_symbol): New function.
7734 (block_find_non_opaque_type): Ditto.
7735 (block_find_non_opaque_type_preferred): Ditto.
7736 * block.h (block_symbol_matcher_ftype): New typedef.
7737 (block_find_symbol): Declare.
7738 (block_find_non_opaque_type): Ditto.
7739 (block_find_non_opaque_type_preferred): Ditto.
7740 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7741 * psymtab.c (psym_lookup_symbol): Ditto.
7742 * symtab.c (basic_lookup_transparent_type_1): New function.
7743 (basic_lookup_transparent_type): Call it.
7744
7745 2015-05-27 Yao Qi <yao.qi@linaro.org>
7746
7747 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7748 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7749
7750 2015-05-27 Yao Qi <yao.qi@linaro.org>
7751
7752 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7753 before operator &&.
7754 (aarch64_record_load_store): Likewise.
7755
7756 2015-05-26 Doug Evans <dje@google.com>
7757
7758 PR c++/18141, c++/18417.
7759 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7760 a typedef.
7761
7762 2015-05-26 Doug Evans <dje@google.com>
7763
7764 * NEWS: Add entries for command renamings.
7765 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7766 All uses updated.
7767 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7768 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7769 All uses updated.
7770 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7771 All callers updated. Fix spelling of DWARF in help text.
7772 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7773 All uses updated.
7774 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7775 All uses updated.
7776 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7777 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7778 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7779 All uses updated.
7780 (show_dwarf_always_disassemble): Renamed from
7781 show_dwarf2_always_disassemble. All callers updated.
7782 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7783 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7784 "set/show dwarf max-cache-age". Rename
7785 "set/show dwarf2 always-disassemble" to
7786 "set/show dwarf always-disassemble". Rename
7787 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7788 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7789
7790 2015-05-26 Doug Evans <dje@google.com>
7791
7792 PR python/18438
7793 * python/py-lazy-string.c (stpy_convert_to_value): Use
7794 gdbpy_gdb_memory_error not PyExc_MemoryError.
7795 (gdbpy_create_lazy_string_object): Ditto.
7796
7797 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7798
7799 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7800
7801 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7802
7803 * tui/tui-regs.c (tui_reg_prev_command): New function.
7804 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7805 * reggroups.c (reggroup_prev): New function.
7806 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7807
7808 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7809 Yao Qi <yao.qi@linaro.org>
7810
7811 * aarch64-linux-tdep.c: Include linux-record.h and
7812 record-full.h.
7813 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7814 (aarch64_syscall): New enum.
7815 (aarch64_canonicalize_syscall): New function.
7816 (aarch64_all_but_pc_registers_record): New function.
7817 (aarch64_linux_syscall_record): New function.
7818 (aarch64_linux_init_abi): Install AArch64 process record
7819 handler. Update to handle syscall recording.
7820 * aarch64-tdep.c: Include record.h and record-full.h.
7821 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7822 (struct aarch64_mem_r): Define.
7823 (aarch64_record_result): New enum.
7824 (struct insn_decode_record): Define.
7825 (insn_decode_record): New typedef.
7826 (aarch64_record_data_proc_reg): New function.
7827 (aarch64_record_data_proc_imm): New function.
7828 (aarch64_record_branch_except_sys): New function.
7829 (aarch64_record_load_store): New function.
7830 (aarch64_record_data_proc_simd_fp): New function.
7831 (aarch64_record_asimd_load_store): New function.
7832 (aarch64_record_decode_insn_handler): New function.
7833 (deallocate_reg_mem): New function.
7834 (aarch64_process_record): New function.
7835 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7836 New field.
7837 (aarch64_process_record): New extern declaration.
7838 * configure.tgt: Add linux-record.o to gdb_target_obs.
7839 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7840
7841 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7842
7843 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7844 targets.
7845
7846 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7847
7848 * amd64-tdep.c: Replace in_function_epilogue_p with
7849 stack_frame_destroyed_p throughout.
7850 * arch-utils.c: Ditto.
7851 * arch-utils.h: Ditto.
7852 * arm-tdep.c: Ditto.
7853 * breakpoint.c: Ditto.
7854 * gdbarch.sh: Ditto.
7855 * hppa-tdep.c: Ditto.
7856 * i386-tdep.c: Ditto.
7857 * mips-tdep.c: Ditto.
7858 * nios2-tdep.c: Ditto.
7859 * rs6000-tdep.c: Ditto.
7860 * s390-linux-tdep.c: Ditto.
7861 * score-tdep.c: Ditto.
7862 * sh-tdep.c: Ditto.
7863 * sparc-tdep.c: Ditto.
7864 * sparc-tdep.h: Ditto.
7865 * sparc64-tdep.c: Ditto.
7866 * spu-tdep.c: Ditto.
7867 * tic6x-tdep.c: Ditto.
7868 * tilegx-tdep.c: Ditto.
7869 * xstormy16-tdep.c: Ditto.
7870 * gdbarch.c, gdbarch.h: Re-generated.
7871
7872 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * NEWS: Mention 'tui enable' and 'tui disable'.
7875 * tui/tui.c (tui_enable_command): New function.
7876 (tui_disable_command): New function.
7877 (_initialize_tui): New function.
7878
7879 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7880
7881 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7882
7883 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7884
7885 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7886 buf_ptr is freed.
7887
7888 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7889
7890 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7891 into ...
7892 (tui_set_layout_for_display_command): ...here, before calling
7893 tui_set_layout. Only set the layout if gdb has not already
7894 entered the TUI_FAILURE state.
7895
7896 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * tui/tui-layout.c (layout_completer): New function.
7899 (_initialize_tui_layout): Set completer on layout command.
7900
7901 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7902
7903 * tui/tui-layout.c (tui_set_layout): Remove
7904 tui_register_display_type parameter. Remove all checking of this
7905 parameter, and reindent function. Update header comment.
7906 (tui_set_layout_for_display_command): Rename to...
7907 (tui_set_layout_by_name): ...this, and don't check for different
7908 register class types, don't pass a tui_register_display_type to
7909 tui_set_layout. Update header comment.
7910 (layout_names): Remove register set specific names.
7911 * tui/tui-layout.h (tui_set_layout): Remove
7912 tui_register_display_type parameter.
7913 * tui/tui.c (tui_rl_change_windows): Don't pass a
7914 tui_register_display_type to tui_set_layout.
7915 (tui_rl_delete_other_windows): Likewise.
7916 (tui_enable): Likewise.
7917 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7918 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7919 (TUI_GENERAL_REGS_NAME): Remove.
7920 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7921 (TUI_SPECIAL_REGS_NAME): Remove.
7922 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7923 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7924 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7925 (enum tui_register_display_type): Remove.
7926 (struct tui_layout_def): Remove regs_display_type and
7927 float_regs_display_type fields.
7928 (struct tui_data_info): Remove regs_display_type field.
7929 (tui_layout_command): Use new name for
7930 tui_set_layout_for_display_command.
7931 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7932 (tui_clear_win_detail): Don't initialise removed fields of
7933 win_info.
7934 * tui/tui-regs.c (tui_show_registers): Use new name for
7935 tui_set_layout_for_display_command.
7936 * tui/tui.h (tui_set_layout_for_display_command): Rename
7937 declaration to...
7938 (tui_set_layout_by_name): ...this.
7939 * printcmd.c (display_command): Remove tui related layout call,
7940 and reindent.
7941
7942 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7943
7944 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7945 (handle_inferior_event): New function.
7946
7947 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7948
7949 * ada-lang.c (to_fixed_array_type): Rename local variable
7950 typename into type_name.
7951
7952 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7953
7954 Fix ASAN crash for gdb.compile/compile.exp.
7955 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7956
7957 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7958
7959 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7960 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7961 * compile/compile-object-load.c (setup_sections, compile_object_load):
7962 Likewise.
7963 * compile/compile.c (compile_to_object): Likewise.
7964
7965 2015-05-16 Doug Evans <xdje42@gmail.com>
7966
7967 * NEWS: Mention support for unbuffered Guile memory ports.
7968 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7969 (ioscm_lseek_address): Improve overflow calculation.
7970 (gdbscm_memory_port_fill_input): Add assert.
7971 (gdbscm_memory_port_write): Handle unbuffered ports.
7972 Handle large writes identical to Guile's fport_write.
7973 (gdbscm_memory_port_seek): Fix seeking past end check.
7974 (gdbscm_memory_port_close): Handle closing unbuffered port.
7975 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7976 (ioscm_init_memory_port): Handle unbuffered ports.
7977 (ioscm_reinit_memory_port): Ditto.
7978 (ioscm_init_memory_port): Update size calculation.
7979 (gdbscm_open_memory): Support zero sized ports.
7980
7981 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7982
7983 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7984 variable compiler warnings.
7985
7986 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7989
7990 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7991 Phil Muldoon <pmuldoon@redhat.com>
7992
7993 * NEWS (Changes since GDB 7.9): Add compile print.
7994 * compile/compile-c-support.c (add_code_header, add_code_footer)
7995 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7996 COMPILE_I_PRINT_VALUE_SCOPE.
7997 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7998 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7999 New.
8000 * compile/compile-object-load.c: Include block.h.
8001 (get_out_value_type): New function.
8002 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8003 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8004 OUT_VALUE_TYPE.
8005 * compile/compile-object-load.h (struct compile_module): Add fields
8006 out_value_addr and out_value_type.
8007 * compile/compile-object-run.c: Include valprint.h and compile.h.
8008 (struct do_module_cleanup): Add fields out_value_addr and
8009 out_value_type.
8010 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8011 COMPILE_I_PRINT_VALUE_SCOPE.
8012 (compile_object_run): Propagate out_value_addr and out_value_type.
8013 Pass OUT_VALUE_ADDR.
8014 * compile/compile.c: Include valprint.h.
8015 (compile_print_value, compile_print_command): New functions.
8016 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8017 (_initialize_compile): Update compile code help text. Install
8018 compile_print_command.
8019 * compile/compile.h (compile_print_value): New prototype.
8020 * defs.h (enum compile_i_scope_types): Add
8021 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8022
8023 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8024
8025 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8026 Rely on its parameter count.
8027 (compile_object_load): Replace lookup_minimal_symbol_text by
8028 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8029 return value.
8030 * compile/compile-object-load.h (struct compile_module): Replace
8031 func_addr by func_sym.
8032 * compile/compile-object-run.c: Include block.h.
8033 (compile_object_run): Reset module variable after it is freed. Use
8034 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8035
8036 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8037
8038 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8039 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8040 (c_compute_program): Call generate_register_struct after typedefs.
8041 * compile/compile-loc2c.c (push, pushf_register_address)
8042 (pushf_register): Cast to GCC_UINTPTR.
8043 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8044 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8045 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8046 * compile/compile.c (_initialize_compile): Enable warnings for
8047 COMPILE_ARGS.
8048
8049 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8050
8051 * cli/cli-script.c (execute_control_command): Update
8052 eval_compile_command caller.
8053 * compile/compile-object-load.c (compile_object_load): Add parameters
8054 scope and scope_data. Set them.
8055 * compile/compile-object-load.h (struct compile_module): Add fields
8056 scope and scope_data.
8057 (compile_object_load): Add parameters scope and scope_data.
8058 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8059 scope and scope_data.
8060 (compile_object_run): Propagate the fields scope and scope_data.
8061 * compile/compile.c (compile_file_command, compile_code_command):
8062 Update eval_compile_command callers.
8063 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8064 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8065 * defs.h (struct command_line): Add field scope_data.
8066
8067 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8068
8069 * printcmd.c (struct format_data): Move it to valprint.h.
8070 (print_command_parse_format, print_value): New functions from ...
8071 (print_command_1): ... here. Call them.
8072 * valprint.h (struct format_data): Move it here from printcmd.c.
8073 (print_command_parse_format, print_value): New declarations.
8074
8075 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 * compile/compile-object-load.c (compile_object_load): Add
8078 COMPILE_DEBUG message.
8079
8080 2015-05-15 Jerome Guitton <guitton@adacore.com>
8081
8082 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8083 index to get element instead of enum value.
8084 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8085 of index to compute length, but enum values to compute bounds.
8086 (ada_array_length): Use enum position of index instead of enum value.
8087 (pos_atr): Move position computation to...
8088 (ada_evaluate_subexp): Use enum values to compute bounds.
8089 * gdbtypes.c (discrete_position): ...this new function.
8090 * gdbtypes.h (discrete_position): New function declaration.
8091 * valprint.c (val_print_array_elements): Call discrete_position
8092 to handle array indexed by non-contiguous enumeration types.
8093
8094 2015-05-15 Jerome Guitton <guitton@adacore.com>
8095
8096 * ada-lang.c (find_parallel_type_by_descriptive_type):
8097 Go through typedefs during lookup.
8098 (to_fixed_array_type): Add support for non-bit packed arrays
8099 as variable-length fields.
8100
8101 2015-05-15 Pedro Alves <palves@redhat.com>
8102 Simon Marchi <simon.marchi@ericsson.com>
8103
8104 * event-loop.c (gdb_notifier) <next_file_handler,
8105 next_poll_fds_index>: New fields.
8106 (get_next_file_handler_to_handle_and_advance): New function.
8107 (delete_file_handler): If deleting the next file handler to
8108 handle, advance to the next file handler.
8109 (gdb_wait_for_event): Bail early if no event fired. Poll file
8110 handlers in round-robin fashion.
8111
8112 2015-05-15 Pedro Alves <palves@redhat.com>
8113
8114 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8115 'private' to 'priv'.
8116
8117 2015-05-15 Pedro Alves <palves@redhat.com>
8118
8119 * nat/linux-nat.h: Include "target/waitstatus.h".
8120
8121 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8122
8123 * python/py-unwind.c (struct reg_info): Move out of ...
8124 (struct cached_frame_info): ... this scope.
8125 (pending_frame_object_type, unwind_info_object_type): Make extern.
8126
8127 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8128
8129 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8130 accumSize is never negative.
8131
8132 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8133
8134 * tui/tui-command.c: Remove include of <ctype.h>.
8135 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8136
8137 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8138
8139 * dwarf2read.c (die_needs_namespace): Return 1 for
8140 DW_TAG_inlined_subroutine.
8141
8142 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8143
8144 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8145 (regcache_cpy_no_passthrough): Make it static, add function comment.
8146 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8147 (regcache_cpy_no_passthrough): Remove declaration.
8148
8149 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8150
8151 * gdbthread.h (struct thread_control_state): Update comment for
8152 proceed_to_finish.
8153 * infcall.c (run_inferior_call): Update comment about
8154 proceed_to_finish.
8155 * infcmd.c (get_return_value): Update comment about stop_registers.
8156 (finish_forward): Update comment about proceed_to_finish.
8157 * infrun.c (stop_registers): Remove.
8158 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8159 * infrun.h (stop_registers): Remove.
8160
8161 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8162
8163 * infcall.c (struct dummy_frame_context_saver)
8164 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8165 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8166 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8167 New.
8168 (call_function_by_hand_dummy): Move discard_cleanups of
8169 inf_status_cleanup before dummy_frame_push. Call
8170 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8171 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8172 * infcall.h (struct dummy_frame_context_saver)
8173 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8174 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8175 New declarations.
8176 * infcmd.c: Include infcall.h.
8177 (get_return_value): Add parameter ctx_saver, use it instead of
8178 stop_registers.
8179 (print_return_value): Add parameter ctx_saver, pass it.
8180 (struct finish_command_continuation_args): Add field ctx_saver.
8181 (finish_command_continuation): Update print_return_value caller.
8182 (finish_command_continuation_free_arg): Free also ctx_saver.
8183 (finish_forward): Call dummy_frame_context_saver_setup.
8184 * inferior.h (struct dummy_frame_context_saver): New declaration.
8185 (get_return_value): Add parameter ctx_saver.
8186 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8187 get_return_value caller.
8188
8189 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8190
8191 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8192 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8193 (remove_dummy_frame): Process dtor_list.
8194 (pop_dummy_frame): Process dtor_list.
8195 (register_dummy_frame_dtor): Maintain dtor_list.
8196 (find_dummy_frame_dtor): Handle dtor_list.
8197 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8198 Update comments.
8199
8200 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8201
8202 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8203 registers_valid.
8204 (compile_object_run): Update do_module_cleanup caller.
8205 * dummy-frame.c: Include infcall.h.
8206 (struct dummy_frame): Update dtor comment.
8207 (remove_dummy_frame): Call dtor.
8208 (pop_dummy_frame): Update dtor caller.
8209 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8210 registers_valid.
8211
8212 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8213
8214 GDB 7.9.1 released.
8215
8216 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8217
8218 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8219 Xmethods now being able to specify a result type to that new
8220 sectioin.
8221
8222 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8223
8224 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8225 first before resizing the window.
8226 * tui/tui.c (tui_enable): Likewise.
8227
8228 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8229
8230 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8231 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8232 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8233 dummy_dtor parameter.
8234 * infcall.h: Include dummy-frame.h.
8235 (call_function_by_hand_dummy_dtor_ftype): Remove.
8236 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8237 parameter.
8238
8239 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8240
8241 PR gdb/17820
8242 * top.c (history_size_setshow_var): Change type to signed.
8243 Initialize to -2. Update documentation.
8244 (set_readline_history_size): Define.
8245 (set_history_size_command): Use it. Remove logic for handling
8246 out-of-range sizes.
8247 (init_history): Use set_readline_history_size(). Test for a
8248 value of -2 instead of 0 when determining whether to set a
8249 default history size.
8250 (init_main): Decode the argument of the "size" command as a
8251 zuinteger_unlimited.
8252
8253 2015-05-12 Doug Evans <dje@google.com>
8254
8255 * dwarf2read.c (struct file_entry): Tweak comments.
8256 (get_debug_line_section): Tweak comments.
8257
8258 2015-05-12 Don Breazeal <donb@codesourcery.com>
8259
8260 * NEWS: Announce fork support in the RSP and support
8261 for fork debugging in extended mode.
8262
8263 2015-05-12 Don Breazeal <donb@codesourcery.com>
8264
8265 * remote.c (remote_insert_fork_catchpoint): New function.
8266 (remote_remove_fork_catchpoint): New function.
8267 (remote_insert_vfork_catchpoint): New function.
8268 (remote_remove_vfork_catchpoint): New function.
8269 (pending_fork_parent_callback): New function.
8270 (remove_new_fork_child): New function.
8271 (remote_update_thread_list): Call remote_notif_get_pending_events
8272 and remove_new_fork_child.
8273 (extended_remote_kill): Kill fork child when killing the
8274 parent before follow_fork completes.
8275 (init_extended_remote_ops): Initialize target vector with
8276 new fork catchpoint functions.
8277
8278 2015-05-12 Don Breazeal <donb@codesourcery.com>
8279
8280 * remote.c (remove_vfork_event_p): New function.
8281 (remote_follow_fork): Add vfork event type to event checking.
8282 (remote_parse_stop_reply): New stop reasons "vfork" and
8283 "vforkdone" for RSP 'T' Stop Reply Packet.
8284
8285 2015-05-12 Don Breazeal <donb@codesourcery.com>
8286
8287 * linux-nat.c (linux_nat_ptrace_options): New function.
8288 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8289 Call linux_nat_ptrace_options and use different argument to
8290 linux_enable_event_reporting.
8291 (_initialize_linux_nat): Delete call to
8292 linux_ptrace_set_additional_flags.
8293 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8294 supported_ptrace_options.
8295 (additional_flags): Delete variable.
8296 (linux_check_ptrace_features): Use supported_ptrace_options.
8297 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8298 Likewise, and remove additional_flags check.
8299 (linux_enable_event_reporting): Change 'attached' argument to
8300 'options'. Use supported_ptrace_options.
8301 (ptrace_supports_feature): Change comment. Use
8302 supported_ptrace_options.
8303 (linux_ptrace_set_additional_flags): Delete function.
8304 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8305 Delete function prototype.
8306 * remote.c (remote_fork_event_p): New function.
8307 (remote_detach_pid): New function.
8308 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8309 if doing detach-on-fork.
8310 (remote_follow_fork): New function.
8311 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8312 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8313 (init_extended_remote_ops): Initialize to_follow_fork.
8314
8315 2015-05-12 Don Breazeal <donb@codesourcery.com>
8316
8317 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8318 from static to extern.
8319 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8320 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8321 * PACKET_vfork_event_feature>: New enumeration constants.
8322 (remote_protocol_features): Add table entries for new packets.
8323 (remote_query_supported): Add new feature queries to qSupported
8324 packet.
8325
8326 2015-05-12 Gary Benson <gbenson@redhat.com>
8327
8328 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8329 for fake PIDs as well as real ones.
8330 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8331
8332 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8333
8334 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8335 * python/py-value.c (valpy_reference_value): New function.
8336 (valpy_const_value): Likewise.
8337 (value_object_methods): Add new methods.
8338 * value.c (make_cv_value): New function.
8339 * value.h (make_cv_value): Declare.
8340
8341 2015-05-08 Yao Qi <yao@codesourcery.com>
8342 Sandra Loosemore <sandra@codesourcery.com>
8343
8344 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8345 to 'lh->include_dirs' before accessing to it.
8346 (psymtab_include_file_name): Likewise.
8347 (dwarf_decode_lines_1): Likewise.
8348 (dwarf_decode_lines): Likewise.
8349 (file_file_name): Likewise.
8350
8351 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8352
8353 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8354 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8355 (nios2_linux_rt_sigreturn_init): Adjust base address of
8356 register save area.
8357
8358 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8359
8360 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8361 "trap 31" as the breakpoint instruction on all targets.
8362
8363 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8364
8365 * infcmd.c (print_return_value): Remove unused declaration.
8366
8367 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8368
8369 * dwarf2read.c (attr_to_dynamic_prop)
8370 <DW_AT_data_member_location>: Use read_type_die isntead of
8371 get_die_type.
8372
8373 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8374
8375 * ada-lang.c (ada_convert_actual): Add handling of formals
8376 passed inside an aligner type.
8377
8378 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8379
8380 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8381
8382 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8383
8384 PR python/18291
8385 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8386 Print xmethod matcher status.
8387
8388 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8389
8390 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8391 register in the regcache when treating the PSWM register, and vice
8392 versa.
8393
8394 2015-05-07 Gary Benson <gbenson@redhat.com>
8395
8396 * linux-thread-db.c (struct thread_db_info)
8397 <td_ta_map_id2thr_p>: Remove field.
8398 (try_thread_db_load_1): Remove initialization for the above.
8399
8400 2015-05-07 Gary Benson <gbenson@redhat.com>
8401
8402 * linux-thread-db.c (struct thread_db_info)
8403 <td_thr_validate_p>: Remove field.
8404 (try_thread_db_load_1): Remove initialization for the above.
8405
8406 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8407
8408 * compile/compile-object-load.c (compile_object_load): Support
8409 mst_text_gnu_ifunc.
8410
8411 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8412
8413 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8414 const. Use new variables for the const compatibility.
8415 (eval_compile_command): Make the cmd_string parameter const.
8416 * compile/compile.h (eval_compile_command): Make the cmd_string
8417 parameter const.
8418
8419 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8420
8421 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8422 comment.
8423 * top.c (deprecated_init_ui_hook): Delete.
8424 (gdb_init): Remove handling of deprecated_init_ui_hook.
8425 * interps.c (clear_interpreter_hooks): Remove handling of
8426 deprecated_init_ui_hook.
8427 * main.c (captured_main): Update comment.
8428
8429 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8430
8431 * solib.c (_initialize_solib): Add "info dll" alias creation.
8432 * windows-nat.c (set_windows_aliases): Delete.
8433 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8434 assignment.
8435 * NEWS: Add news entry about "info dll" now being available
8436 on all platforms.
8437
8438 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8439
8440 * ada-lang.c (value_assign_to_component): Reformat and improve
8441 documentation. Remove all trailing spaces.
8442
8443 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8444
8445 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8446 Stop counting inlined frames as soon as an out-of-line function
8447 is found.
8448
8449 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8450
8451 * dwarf2read.c (inherit_abstract_dies): Skip
8452 DW_TAG_GNU_call_site dies while inheriting children of an
8453 abstract DIE into a scope.
8454 (read_lexical_block_scope): Inherit abstract DIE's for
8455 lexical scopes.
8456
8457 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8458
8459 * ada-valprint.c (val_print_packed_array_elements): Delete
8460 variable "len". Add a type-length check when comparing two
8461 consecutive elements of the array. Use the element's actual
8462 length in call to value_contents_eq.
8463 * ada-lang.c (ada_value_primitive_packed_val): Always return
8464 a value whose type has been resolved.
8465
8466 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8467
8468 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8469 BIT_SIZE and LEN if the size of the resolved type is smaller
8470 than BIT_SIZE * HOST_CHAR_BIT.
8471
8472 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8473
8474 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8475 correct address in call to value_at. Adjust call to
8476 value_address accordingly.
8477
8478 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8479
8480 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8481 to print it.
8482
8483 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8484
8485 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8486 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8487 pinfo->valaddr.
8488 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8489 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8490 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8491 Add handling of addr_stack->valaddr.
8492 (resolve_dynamic_type): Add "valaddr" parameter.
8493 Set pinfo.valaddr field.
8494 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8495 resolve_dynamic_type.
8496 (ada_discrete_type_low_bound): Likewise.
8497 * findvar.c (default_read_var_value): Likewise.
8498 * value.c (value_from_contents_and_address): Likewise.
8499
8500 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8501
8502 * gdbtypes.c (resolve_dynamic_array): Use
8503 create_array_type_with_stride instead of create_array_type.
8504
8505 2015-04-30 DJ Delorie <dj@redhat.com>
8506
8507 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8508 rl78_decode_opcode
8509
8510 2015-04-29 Doug Evans <dje@google.com>
8511
8512 PR python/18285
8513 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8514 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8515 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8516 * extension-priv.h (struct extension_language_ops)
8517 <get_xmethod_result_type>: New member.
8518 * extension.c (get_xmethod_result_type): New function.
8519 * extension.h (get_xmethod_result_type): Declare.
8520 * python/py-xmethods.c (get_result_type_method_name): New static
8521 global.
8522 (py_get_result_type_method_name): Ditto.
8523 (gdbpy_get_xmethod_result_type): New function.
8524 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8525 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8526 * python/python.c (python_extension_ops): Add
8527 gdbpy_get_xmethod_result_type.
8528 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8529 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8530 xmethods.
8531 (value_x_unop): Ditto.
8532 * value.c (result_type_of_xmethod): New function.
8533 * value.h (result_type_of_xmethod): Declare.
8534
8535 2015-04-29 Gary Benson <gbenson@redhat.com>
8536
8537 * solib.c (solib_find_1): Allow fd argument to be NULL.
8538 (exec_file_find): Update comment.
8539 (solib_find): Likewise.
8540 * exec.c (exec_file_locate_attach): Use NULL as fd
8541 argument to exec_file_find to avoid having to close
8542 the opened file.
8543 * infrun.c (follow_exec): Likewise.
8544
8545 2015-04-28 Doug Evans <dje@google.com>
8546
8547 PR python/18299
8548 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8549 name or __name__ attributes. Handle gdb module as first argument.
8550
8551 2015-04-28 Doug Evans <dje@google.com>
8552
8553 PR python/18089
8554 * python/py-prettyprint.c (print_children): Verify result of children
8555 iterator. Provide better error message.
8556 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8557 * python/python.c (gdbpy_print_python_errors_p): New function.
8558
8559 2015-04-28 Doug Evans <dje@google.com>
8560
8561 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8562
8563 2015-04-28 Sasha Smundak <asmundak@google.com>
8564
8565 * NEWS: Mention gdb.Type.optimized_out method.
8566 * python/py-type.c (typy_optimized_out): New function.
8567
8568 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8569
8570 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8571
8572 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8573
8574 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8575 (initialize_utils): Move call of init_page_info() to ...
8576 * top.c (gdb_init): ... here.
8577
8578 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8579
8580 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8581 (tui_sigwinch_handler): Still update our idea of
8582 the terminal's width and height even when TUI is not active.
8583
8584 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8585
8586 * utils.h (set_screen_width_and_height): Declare.
8587 * utils.c (set_screen_width_and_height): Define.
8588 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8589
8590 2015-04-28 Gary Benson <gbenson@redhat.com>
8591
8592 * infrun.c (solist.h): New include.
8593 (follow_exec): Use exec_file_find to prefix execd_pathname
8594 with gdb_sysroot.
8595
8596 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8597
8598 * tui/tui-source.c (tui_set_source_content): Avoid calling
8599 strcpy() when offset is 0.
8600
8601 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8602
8603 PR gdb/18155
8604 * tui/tui-data.c (tui_free_window): Don't free the locator
8605 window when passed an SRC_WIN or a DISASSEM_WIN.
8606
8607 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8608
8609 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8610 (tui_win_content): Move declaration.
8611 (struct tui_gen_win_info): Give 'content' field the
8612 type tui_win_content.
8613 * tui/tui-data.c (init_content_element): Remove redundant and
8614 erroneous casts.
8615 (tui_add_content_elements): Remove erroneous cast.
8616 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8617 casts.
8618 (tui_get_begin_asm_address): Likewise.
8619 * tui/tui-regs.c (tui_show_registers): Likewise.
8620 (tui_show_register_group): Likewise.
8621 (tui_display_registers_from): Likewise.
8622 (tui_check_register_values): Likewise.
8623 * tui/tui-source.c (tui_set_source_content): Likewise.
8624 (tui_set_source_content_nil): Likewise.
8625 (tui_source_is_displayed): Likewise.
8626 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8627 (tui_set_locator_fullname): Likewise.
8628 (tui_set_locator_info): Likewise.
8629 (tui_show_frame_info): Likewise.
8630 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8631 (tui_show_source_line): Likewise.
8632 (tui_horizontal_source_scroll): Likewise.
8633 (tui_update_breakpoint_info): Likewise.
8634 (tui_set_exec_info_content): Likewise.
8635 (tui_show_exec_info_content): Likewise.
8636 (tui_alloc_source_buffer): Likewise.
8637 (tui_line_is_displayed): Likewise.
8638 (tui_addr_is_displayed): Likewise.
8639
8640 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8641
8642 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8643 event if PL_FLAG_EXEC is set.
8644 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8645 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8646 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8647 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8648 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8649
8650 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8651
8652 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8653 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8654 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8655 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8656 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8657 [PT_LWPINFO] (fbsd_wait): New function.
8658 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8659 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8660 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8661 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8662 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8663 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8664 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8665 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8666 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8667 "fbsd_wait".
8668 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8669 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8670 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8671 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8672 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8673 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8674 Set "to_post_attach" to "fbsd_post_attach".
8675
8676 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8677
8678 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8679 (fbsd_find_memory_regions): Mark static.
8680 (fbsd_nat_add_target): New function.
8681 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8682 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8683 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8684 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8685 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8686 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8687
8688 2015-04-27 Gary Benson <gbenson@redhat.com>
8689
8690 * objfiles.c (allocate_objfile): Do not attempt to expand name
8691 if name is a "target:" filename.
8692 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8693 to load auto-load scripts for objfiles with "target:" filenames.
8694
8695 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8696
8697 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8698 (enum s390_vector_abi_kind): New enum.
8699 (struct gdbarch_tdep)<vector_abi>: New field.
8700 (s390_effective_inner_type): Add parameter min_size. Stop
8701 unwrapping if the inner type is smaller than min_size.
8702 (s390_function_arg_float): Adjust call to
8703 s390_effective_inner_type.
8704 (s390_function_arg_vector): New function.
8705 (s390_function_arg_integer): Adjust comment.
8706 (struct s390_arg_state)<vr>: New field.
8707 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8708 arguments according to vector ABI when appropriate.
8709 (s390_push_dummy_call): Initialize the argument state's field
8710 'vr'. Adjust calls to s390_handle_arg.
8711 (s390_register_return_value): Handle vector return values.
8712 (s390_return_value): Apply the "register" return value convention
8713 to a vector when appropriate.
8714 (s390_gdbarch_init): Initialize tdep->vector_abi.
8715 * NEWS: Announce S390 vector ABI support.
8716
8717 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8718
8719 * s390-linux-tdep.c (s390_return_value_convention): Remove
8720 function. Inline its logic...
8721 (s390_return_value): ...here. Instead, move the handling of the
8722 "register" return value convention...
8723 (s390_register_return_value): ...here. New function.
8724
8725 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8726
8727 * s390-linux-tdep.c
8728 (is_float_singleton): Remove function. Move the "singleton" part
8729 of the logic...
8730 (s390_effective_inner_type): ...here. New function.
8731 (is_float_like): Remove function. Inline its logic...
8732 (s390_function_arg_float): ...here.
8733 (is_pointer_like, is_integer_like, is_struct_like): Remove
8734 functions. Inline their logic...
8735 (s390_function_arg_integer): ...here.
8736 (s390_function_arg_pass_by_reference): Remove function.
8737 (extend_simple_arg): Remove function.
8738 (alignment_of): Remove function.
8739 (struct s390_arg_state): New structure.
8740 (s390_handle_arg): New function.
8741 (s390_push_dummy_call): Move parameter placement logic to the new
8742 function s390_handle_arg. Call it for calculating the stack area
8743 sizes first, and again for actually writing the parameters.
8744
8745 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8746
8747 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8748 false if the argument is zero.
8749
8750 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8751
8752 * ada-lang.c (template_to_static_fixed_type): Return input type
8753 when it is already fixed. Cache the input type itself when not
8754 creating a static fixed copy. Make it explicit that we never
8755 molestate the input type.
8756 * gdbtypes.c (resolve_dynamic_struct): Reset the
8757 TYPE_TARGET_TYPE field for resolved copies.
8758
8759 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8760
8761 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8762 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8763 (template_to_static_fixed_type): Call ada_check_typedef only
8764 when necessary.
8765
8766 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8767
8768 * cli/cli-dump.c (srec_dump_command): Add internationalization
8769 mark ups.
8770 (ihex_dump_command): Likewise.
8771 (tekhex_dump_command): Likewise.
8772 (binary_dump_command): Likewise.
8773 (binary_append_command): Likewise.
8774
8775 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8776
8777 * cli/cli-dump.c (verilog_cmdlist): New variable.
8778 (dump_verilog_memory): New function.
8779 (dump_verilog_value): New function.
8780 (verilog_dump_command): New function.
8781 (_initialize_cli_dump): Add new commands to support verilog dump
8782 format.
8783 * NEWS: Add entry for "dump verilog".
8784
8785 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8786
8787 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8788 descriptive type when there is none.
8789
8790 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8791
8792 * tui/tui-win.c (tui_async_resize_screen): Call
8793 rl_resize_terminal().
8794
8795 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8796
8797 * windows-nat.c (handle_output_debug_string): Don't change
8798 current_event.dwThreadId.
8799 (get_windows_debug_event): Use thread_id, rather than relying on
8800 current_event.dwThreadId being changed.
8801
8802 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8803
8804 * windows-nat.c (windows_continue): Report an error if
8805 ContinueDebugEvent() fails.
8806
8807 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8808
8809 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8810
8811 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8812
8813 * windows-nat.c (get_windows_debug_event): Replace retval with
8814 thread_id throughout. Update stale comment.
8815
8816 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8817
8818 * windows-nat.c (get_windows_debug_event): Don't use ternary
8819 conditional operator.
8820
8821 2015-04-21 Pierre Muller <muller@sourceware.org>
8822
8823 PR pascal/17815
8824 p-exp.y (yylex): Reorganize code to return the matched pattern
8825 for a field of this.
8826
8827 2015-04-21 Gary Benson <gbenson@redhat.com>
8828
8829 * common/fileio.h (fileio_to_host_openflags): New declaration.
8830 * common/fileio.c (fcntl.h): New include.
8831 (fileio_to_host_openflags): New function, factored out from...
8832 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8833 Single use updated.
8834
8835 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8836
8837 * rl78-tdep.c (RL78_SP_ADDR): Define.
8838 (opc_reg_to_gdb_regnum): New static function.
8839 (rl78_analyze_prologue): Recognize instructions forming slightly
8840 more interesting prologues.
8841
8842 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8843
8844 Revert:
8845 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8846 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8847 TYPE_CODE_REF types so that they are not considered as dynamic
8848 depending on the referenced type.
8849 (resolve_dynamic_type_internal): Likewise.
8850
8851 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8852
8853 Revert:
8854 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8855 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8856 "top_level" parameter.
8857 (resolve_dynamic_type_internal): Remove the unused "top_level"
8858 parameter. Update call to is_dynamic_type_internal.
8859 (is_dynamic_type): Update call to is_dynamic_type_internal.
8860 (resolve_dynamic_range): Update call to
8861 resolve_dynamic_type_internal.
8862 (resolve_dynamic_union): Likewise.
8863 (resolve_dynamic_struct): Likewise.
8864 (resolve_dynamic_type): Likewise.
8865
8866 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8867
8868 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8869 xmalloc.
8870
8871 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8872
8873 * reply_mig_hack.awk: Robustify parsing.
8874
8875 * reply_mig_hack.awk: Don't bother to declare an intermediate
8876 function pointer variable.
8877
8878 2015-04-17 Doug Evans <dje@google.com>
8879
8880 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8881 to "exec_displacement" to avoid confusion with inner use of the name.
8882
8883 2015-04-17 Pedro Alves <palves@redhat.com>
8884
8885 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8886 if HW point of TYPE isn't supported.
8887
8888 2015-04-17 Yao Qi <yao.qi@linaro.org>
8889 Pedro Alves <palves@redhat.com>
8890
8891 * target.h (target_can_use_hardware_watchpoint): Update comments.
8892 Remove trailing ";".
8893
8894 2015-04-17 Gary Benson <gbenson@redhat.com>
8895
8896 * remote.c (remote_add_inferior): New argument try_open_exec.
8897 If nonzero, attempt to open the inferior's executable file as
8898 the main executable if no main executable is open already.
8899 All callers updated.
8900 * NEWS: Mention that GDB now supports automatic location and
8901 retrieval of executable + files from remote targets.
8902
8903 2015-04-17 Gary Benson <gbenson@redhat.com>
8904
8905 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8906 * remote.c (PACKET_qXfer_exec_file): Likewise.
8907 (remote_protocol_features): Register the
8908 "qXfer:exec-file:read" feature.
8909 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8910 (remote_pid_to_exec_file): New function.
8911 (init_remote_ops): Initialize to_pid_to_exec_file.
8912 (_initialize_remote): Register new "set/show remote
8913 pid-to-exec-file-packet" command.
8914 * NEWS: Announce new qXfer:exec-file:read packet.
8915
8916 2015-04-17 Gary Benson <gbenson@redhat.com>
8917
8918 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8919 New declaration.
8920 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8921 New function, factored out from...
8922 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8923
8924 2015-04-17 Gary Benson <gbenson@redhat.com>
8925
8926 * exec.c (solist.h): New include.
8927 (exec_file_locate_attach): Prefix absolute executable
8928 paths with gdb_sysroot if set.
8929 * NEWS: Mention that executable paths may be prepended
8930 with sysroot.
8931
8932 2015-04-17 Gary Benson <gbenson@redhat.com>
8933
8934 * solist.h (exec_file_find): New declaration.
8935 * solib.c (solib_find_1): New function, factored out from...
8936 (solib_find): ...here.
8937 (exec_file_find): New function.
8938
8939 2015-04-17 Gary Benson <gbenson@redhat.com>
8940
8941 * gdbcore.h (exec_file_locate_attach): New declaration.
8942 * exec.c (exec_file_locate_attach): New function, factored
8943 out from...
8944 * infcmd.c (attach_command_post_wait): ...here.
8945
8946 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8947
8948 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8949
8950 2015-04-16 Yao Qi <yao.qi@linaro.org>
8951
8952 * infrun.c (maybe_software_singlestep): Declare.
8953 (displaced_step_fixup): Call maybe_software_singlestep.
8954
8955 2015-04-15 Doug Evans <dje@google.com>
8956
8957 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8958
8959 2015-04-15 Doug Evans <dje@google.com>
8960
8961 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8962
8963 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8964
8965 * python/lib/gdb/command/unwinders.py: Add parentheses.
8966
8967 2015-04-15 Yao Qi <yao.qi@linaro.org>
8968
8969 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8970
8971 2015-04-15 Yao Qi <yao.qi@linaro.org>
8972
8973 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8974
8975 2015-04-15 Yao Qi <yao.qi@linaro.org>
8976
8977 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8978 dsc->insn_size instead of 4.
8979
8980 2015-04-14 Gary Benson <gbenson@redhat.com>
8981
8982 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8983 * minidebug.c (lzma_stat): Likewise.
8984 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8985 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8986
8987 2015-04-13 Stan Shebs <stanshebs@google.com>
8988
8989 * MAINTAINERS: Update my email address.
8990
8991 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8992
8993 * amd64-tdep.c (amd64_target_description): New function.
8994 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8995 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8996 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8997 x86 extended save area.
8998 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8999 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9000 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9001 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9002 "amd64fbsd_read_description".
9003 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9004 (amd64fbsd_supply_xstateregset): New function.
9005 (amd64fbsd_collect_xstateregset): New function.
9006 Add "amd64fbsd_xstateregset".
9007 (amd64fbsd_iterate_over_regset_sections): New function.
9008 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9009 "I386_FBSD_XSAVE_XCR0_OFFSET".
9010 Add "iterate_over_regset_sections" gdbarch method.
9011 Add "core_read_description" gdbarch method.
9012 * i386-tdep.c (i386_target_description): New function.
9013 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9014 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9015 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9016 x86 extended save area.
9017 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9018 * i386bsd-nat.h: Export i386bsd_xsave_len.
9019 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9020 (_initialize_i386fbsd_nat): Set "to_read_description" to
9021 "i386fbsd_read_description".
9022 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9023 (i386fbsd_core_read_description): New function.
9024 (i386fbsd_supply_xstateregset): New function.
9025 (i386fbsd_collect_xstateregset): New function.
9026 Add "i386fbsd_xstateregset".
9027 (i386fbsd_iterate_over_regset_sections): New function.
9028 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9029 "I386_FBSD_XSAVE_XCR0_OFFSET".
9030 Add "iterate_over_regset_sections" gdbarch method.
9031 Add "core_read_description" gdbarch method.
9032 * i386fbsd-tdep.h: New file.
9033
9034 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9035
9036 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9037 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9038 conditional.
9039 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9040 and lb.
9041 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9042 va.
9043 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9044 conditional.
9045 * defs.h (xdb_commands): Remove declaration.
9046 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9047 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9048 * infcmd.c (run_no_args_command, go_command): Remove.
9049 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9050 * infrun.c (xdb_handle_command): Remove.
9051 (_initialize_infrun): Remove xdb_commands for lz and z.
9052 * main.c (xdb_commands): Remove variable.
9053 (captured_main): Remove "xdb" from long_options.
9054 (print_gdb_help): Remove --xdb from help.
9055 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9056 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9057 * stack.c (backtrace_full_command, args_plus_locals_info)
9058 (current_frame_command): Remove.
9059 (_initialize_stack): Remove xdb_commands for t, T and l.
9060 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9061 * thread.c (_initialize_thread): Remove xdb_commands condition.
9062 * tui/tui-layout.c (tui_toggle_layout_command)
9063 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9064 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9065 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9066 (tui_scroll_regs_backward_command): Remove.
9067 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9068 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9069 (_initialize_tui_win): Remove xdb_commands for U and w.
9070 * utils.c (pagination_on_command, pagination_off_command): Remove.
9071 (initialize_utils): Remove xdb_commands for am and sm.
9072
9073 2015-04-10 Pedro Alves <palves@redhat.com>
9074
9075 * infrun.c (displaced_step_fixup): Switch to the event ptid
9076 earlier. If the thread stopped for a watchpoint and the
9077 target/arch has non-continuable watchpoints, cancel the displaced
9078 step.
9079 (resume): Don't start a displaced step if in-line step-over info
9080 is valid.
9081
9082 2015-04-10 Pedro Alves <palves@redhat.com>
9083
9084 * infrun.c (displaced_step_in_progress): New function.
9085 (do_target_resume): Advise target to report all signals if
9086 displaced stepping.
9087
9088 2015-04-10 Pedro Alves <palves@redhat.com>
9089
9090 PR gdb/18216
9091 * infrun.c (process_event_stop_test): Don't assume a step-resume
9092 is set if tp->stepped_breakpoint is true.
9093
9094 2015-04-10 Yao Qi <yao.qi@linaro.org>
9095
9096 * arm-tdep.c (install_alu_reg): Update comment.
9097 (thumb_copy_alu_reg): Remove local variable rn. Update
9098 debugging message. Use r2 instead of r1 in the modified
9099 instruction.
9100
9101 2015-04-10 Pedro Alves <palves@redhat.com>
9102
9103 PR gdb/13858
9104 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9105 linux_displaced_step_location as gdbarch_displaced_step_location
9106 hook.
9107 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9108 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9109 * linux-tdep.c (linux_displaced_step_location): New function,
9110 based on ppc_linux_displaced_step_location.
9111 * linux-tdep.h (linux_displaced_step_location): New declaration.
9112 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9113 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9114 Delete.
9115 (ppc_linux_init_abi): Install linux_displaced_step_location as
9116 gdbarch_displaced_step_location hook, even without Cell/B.E..
9117 (_initialize_ppc_linux_tdep): Don't install
9118 ppc_linux_inferior_created as inferior_created observer.
9119 * s390-linux-tdep.c (s390_gdbarch_init): Install
9120 linux_displaced_step_location as gdbarch_displaced_step_location
9121 hook.
9122
9123 2015-04-09 Gary Benson <gbenson@redhat.com>
9124
9125 * common/common-remote-fileio.h: Rename to...
9126 * common/fileio.h: ...this. Update all references.
9127 (remote_fileio_to_fio_error): Rename to...
9128 (host_to_fileio_error): ...this.
9129 (remote_fileio_to_be): Rename to...
9130 (host_to_bigendian): ...this. Update all callers.
9131 (remote_fileio_to_fio_uint): Rename to...
9132 (host_to_fileio_uint): ...this. Update all callers.
9133 (remote_fileio_to_fio_time): Rename to...
9134 (host_to_fileio_time): ...this. Update all callers.
9135 (remote_fileio_to_fio_stat): Rename to...
9136 (host_to_fileio_stat): ...this.
9137 Update all references.
9138 * common/common-remote-fileio.c: Rename to...
9139 * common/fileio.c: ...this. Update all references.
9140 (remote_fileio_to_fio_error): Rename to...
9141 (host_to_fileio_error): ...this. Update all callers.
9142 (remote_fileio_mode_to_target): Rename to...
9143 (fileio_mode_pack): ...this. Update all callers.
9144 (remote_fileio_to_fio_mode): Rename to...
9145 (host_to_fileio_mode): ...this. Update all callers.
9146 (remote_fileio_to_fio_ulong): Rename to...
9147 (host_to_fileio_ulong): ...this. Update all callers.
9148 (remote_fileio_to_fio_stat): Rename to...
9149 (host_to_fileio_stat): ...this. Update all callers.
9150
9151 2015-04-09 Andy Wingo <wingo@igalia.com>
9152
9153 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9154 (frame_functions): Bind gdbscm_frame_read_register to
9155 frame-read-register.
9156 * guile/lib/gdb.scm (frame-read-register): Export.
9157
9158 2015-04-09 Gary Benson <gbenson@redhat.com>
9159
9160 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9161 New declaration.
9162 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9163 New function, factored out the named functions below.
9164 * inf-child.c (gdb/fileio.h): Remove include.
9165 (common-remote-fileio.h): New include.
9166 (inf_child_errno_to_fileio_error): Remove function. Update
9167 all callers to use remote_fileio_to_fio_error.
9168 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9169
9170 2015-04-09 Andy Wingo <wingo@igalia.com>
9171
9172 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9173
9174 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9177 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9178 * configure: Regenerated.
9179
9180 2015-04-09 Pedro Alves <palves@redhat.com>
9181
9182 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9183 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9184 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9185 * gnulib/import/Makefile.am: Update.
9186 * gnulib/import/Makefile.in: Update.
9187 * gnulib/import/m4/gnulib-cache.m4: Update.
9188 * gnulib/import/m4/gnulib-comp.m4: Update.
9189 * gnulib/import/m4/strtok_r.m4: New file.
9190 * gnulib/import/strtok_r.c: New file.
9191
9192 2015-04-09 Pedro Alves <palves@redhat.com>
9193
9194 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9195 "called too early to check prototype".
9196
9197 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9198
9199 PR python/16699
9200 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9201 use a caching mechanism. Adjust comments and code to reflect
9202 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9203 (cmdpy_completer_handle_brkchars): Adjust call to
9204 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9205 (cmdpy_completer): Likewise.
9206
9207 2015-04-08 Yao Qi <yao.qi@linaro.org>
9208
9209 * spu-tdep.c (spu_gdbarch_init): Don't call
9210 set_gdbarch_cannot_step_breakpoint.
9211
9212 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9213
9214 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9215
9216 2015-04-07 Pedro Alves <palves@redhat.com>
9217
9218 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9219 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9220 (delete_exited_threads): New declaration.
9221 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9222 * linux-nat.c (linux_nat_update_thread_list): New function.
9223 (linux_nat_add_target): Install it.
9224 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9225 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9226 (delete_exited_threads): New function.
9227
9228 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9229
9230 * infrun.c (resume) <displaced stepping debug output>: Get the
9231 leader thread's regcache, not resume_ptid's.
9232
9233 2015-04-06 Doug Evans <xdje42@gmail.com>
9234
9235 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9236 VAR_DOMAIN.
9237 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9238 Include symbol domain in debugging output.
9239
9240 2015-04-06 Pedro Alves <palves@redhat.com>
9241 Bernd Edlinger <bernd.edlinger@hotmail.de>
9242
9243 * configure.ac: Remove the mingw32-specific stub-termcap.o
9244 fallback, and instead fallback to the stub termcap on all hosts.
9245 * configure: Regenerate.
9246 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9247 symbols.
9248
9249 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9250
9251 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9252 "top_level" parameter.
9253 (resolve_dynamic_type_internal): Remove the unused "top_level"
9254 parameter. Update call to is_dynamic_type_internal.
9255 (is_dynamic_type): Update call to is_dynamic_type_internal.
9256 (resolve_dynamic_range): Update call to
9257 resolve_dynamic_type_internal.
9258 (resolve_dynamic_union): Likewise.
9259 (resolve_dynamic_struct): Likewise.
9260 (resolve_dynamic_type): Likewise.
9261
9262 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9263
9264 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9265 TYPE_CODE_REF types so that they are not considered as dynamic
9266 depending on the referenced type.
9267 (resolve_dynamic_type_internal): Likewise.
9268
9269 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9270
9271 * Makefile.in (top_srcdir): New.
9272 * configure: Regenerated.
9273
9274 2015-04-02 Gary Benson <gbenson@redhat.com>
9275
9276 * NEWS: Announce the new default sysroot of "target:".
9277
9278 2015-04-02 Gary Benson <gbenson@redhat.com>
9279
9280 * main.c (captured_main): Set gdb_sysroot to "target:"
9281 if not otherwise set.
9282
9283 2015-04-02 Gary Benson <gbenson@redhat.com>
9284
9285 * exec.c (exec_file_attach): Support "target:" filenames.
9286
9287 2015-04-02 Gary Benson <gbenson@redhat.com>
9288
9289 * solib.c (solib_find): Strip "target:" prefix from sysroot
9290 if accessing local files.
9291
9292 2015-04-02 Gary Benson <gbenson@redhat.com>
9293
9294 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9295 checks and error messages.
9296
9297 2015-04-02 Gary Benson <gbenson@redhat.com>
9298
9299 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9300 (remote_filename_p): Remove declaration.
9301 (remote_bfd_open): Likewise.
9302 * remote.c (remote_bfd_iovec_open): Remove function.
9303 (remote_bfd_iovec_close): Likewise.
9304 (remote_bfd_iovec_pread): Likewise.
9305 (remote_bfd_iovec_stat): Likewise.
9306 (remote_filename_p): Likewise.
9307 (remote_bfd_open): Likewise.
9308 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9309 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9310 (gdb_bfd_open_maybe_remote): Remove function.
9311 (symfile_bfd_open): Replace remote filename check with
9312 target filename check.
9313 (reread_symbols): Use gdb_bfd_open.
9314 * build-id.c (gdbcore.h): New include.
9315 (build_id_to_debug_bfd): Use gdb_bfd_open.
9316 * infcmd.c (attach_command_post_wait): Remove remote filename
9317 check.
9318 * solib.c (solib_find): Replace remote-specific handling with
9319 target-specific handling. Update comments where necessary.
9320 (solib_bfd_open): Replace remote-specific handling with
9321 target-specific handling.
9322 (gdb_sysroot_changed): New function.
9323 (_initialize_solib): Call the above when gdb_sysroot changes.
9324 * windows-tdep.c (gdbcore.h): New include.
9325 (windows_xfer_shared_library): Use gdb_bfd_open.
9326
9327 2015-04-02 Gary Benson <gbenson@redhat.com>
9328
9329 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9330 (is_target_filename): New declaration.
9331 (gdb_bfd_has_target_filename): Likewise.
9332 (gdb_bfd_open): Update documentation comment.
9333 * gdb_bfd.c (target.h): New include.
9334 (gdb/fileio.h): Likewise.
9335 (is_target_filename): New function.
9336 (gdb_bfd_has_target_filename): Likewise.
9337 (fileio_errno_to_host): Likewise.
9338 (gdb_bfd_iovec_fileio_open): Likewise.
9339 (gdb_bfd_iovec_fileio_pread): Likewise.
9340 (gdb_bfd_iovec_fileio_close): Likewise.
9341 (gdb_bfd_iovec_fileio_fstat): Likewise.
9342 (gdb_bfd_open): Use target fileio to access paths prefixed
9343 with "target:" where necessary.
9344
9345 2015-04-02 Gary Benson <gbenson@redhat.com>
9346
9347 * target.h (struct target_ops) <to_filesystem_is_local>:
9348 New field.
9349 (target_filesystem_is_local): New macro.
9350 * target-delegates.c: Regenerate.
9351 * remote.c (remote_filesystem_is_local): New function.
9352 (init_remote_ops): Initialize to_filesystem_is_local.
9353
9354 2015-04-02 Gary Benson <gbenson@redhat.com>
9355
9356 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9357 (target_fileio_fstat): New declaration.
9358 * target.c (target_fileio_fstat): New function.
9359 * inf-child.c (inf_child_fileio_fstat): Likewise.
9360 (inf_child_target): Initialize to_fileio_fstat.
9361 * remote.c (init_remote_ops): Likewise.
9362
9363 2015-04-01 Sasha Smundak <asmundak@google.com>
9364
9365 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9366 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9367 (py-unwind.o): New recipe.
9368 * NEWS: mention Python frame unwinding.
9369 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9370 gdb/unwinder.py and gdb/command/unwinder.py
9371 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9372 list.
9373 (execute_unwinders): New function.
9374 * python/lib/gdb/command/unwinders.py: New file.
9375 * python/lib/gdb/unwinder.py: New file.
9376 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9377 (objfpy_dealloc): Decrement frame_unwinders reference count.
9378 (objfpy_initialize): Create frame_unwinders list.
9379 (objfpy_get_frame_unwinders): New function.
9380 (objfpy_set_frame_unwinders): Ditto.
9381 (objfile_getset): Add frame_unwinders attribute to Objfile.
9382 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9383 (pspy_dealloc): Decrement frame_unwinders reference count.
9384 (pspy_initialize): Create frame_unwinders list.
9385 (pspy_get_frame_unwinders): New function.
9386 (pspy_set_frame_unwinders): Ditto.
9387 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9388 * python/py-unwind.c: New file.
9389 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9390 (objpy_get_frame_unwinders): New prototype.
9391 (gdbpy_initialize_unwind): New prototype.
9392 * python/python.c (gdbpy_apply_type_printers): Call
9393 gdbpy_initialize_unwind.
9394
9395 2015-04-01 Pedro Alves <palves@redhat.com>
9396
9397 * infrun.c (resume): Check currently_stepping after clearing
9398 stepped_breakpoint, not before.
9399
9400 2015-04-01 Pedro Alves <palves@redhat.com>
9401
9402 * infrun.c (print_target_wait_results): Print all the ptid
9403 elements.
9404
9405 2015-04-01 Pedro Alves <palves@redhat.com>
9406
9407 * infrun.c (keep_going): Also discard cleanups if inserting
9408 breakpoints fails.
9409
9410 2015-04-01 Pedro Alves <palves@redhat.com>
9411
9412 * infrun.c (wait_for_inferior): Install the
9413 finish_thread_state_cleanup cleanup across the whole function, not
9414 just around handle_inferior_event.
9415
9416 2015-04-01 Pedro Alves <palves@redhat.com>
9417
9418 * infrun.c (resume) <step past permanent breakpoint>: Use
9419 do_target_resume.
9420
9421 2015-04-01 Pedro Alves <palves@redhat.com>
9422
9423 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9424
9425 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9426
9427 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9428
9429 2015-04-01 Pedro Alves <palves@redhat.com>
9430
9431 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9432 list if it was marked exited.
9433
9434 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9435
9436 * configure: Regenerated.
9437
9438 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9439 Jan Kratochvil <jan.kratochvil@redhat.com>
9440 Oleg Nesterov <oleg@redhat.com>
9441
9442 PR corefiles/16092
9443 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9444 New enum identifying the various options of the coredump_filter
9445 file.
9446 (struct smaps_vmflags): New struct.
9447 (use_coredump_filter): New variable.
9448 (decode_vmflags): New function.
9449 (mapping_is_anonymous_p): Likewise.
9450 (dump_mapping_p): Likewise.
9451 (linux_find_memory_regions_full): New variables
9452 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9453 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9454 parsing of its information. Implement memory mapping filtering
9455 based on its contents.
9456 (show_use_coredump_filter): New function.
9457 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9458 * NEWS: Mention the possibility of using the
9459 '/proc/PID/coredump_filter' file when generating a corefile.
9460 Mention new command 'set use-coredump-filter'.
9461
9462 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9463
9464 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9465 read_memory_unsigned_integer.
9466
9467 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9468
9469 * Makefile.in (ZLIB): New.
9470 (ZLIBINC): Likewise.
9471 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9472 (CLIBS): Add $(ZLIB).
9473 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9474 Add -lz to LIBS.
9475 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9476 * top.c (print_gdb_configuration): Remove --with-zlib and
9477 --without-zlib.
9478 * config.in: Regenerated.
9479 * configure: Likewise.
9480
9481 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9482
9483 * NEWS: Mention info os cpus support.
9484 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9485 (struct osdata_type): Add cpus entry, reorder the entries in
9486 alphabetical order.
9487
9488 2015-03-31 Matthias Klose <doko@ubuntu.com>
9489
9490 * compile/compile.c (compile_to_object): Allow triplets with or
9491 without vendor set.
9492
9493 2015-03-30 Doug Evans <dje@google.com>
9494
9495 PR c++/18141
9496 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9497 klass in VAR_DOMAIN.
9498
9499 2015-03-30 Gary Benson <gbenson@redhat.com>
9500
9501 * remote.c (remote_mourn_1): Remove function. Update all callers
9502 to use remote_mourn.
9503 (extended_remote_mourn_1): Remove function. Update all callers
9504 to use extended_remote_mourn.
9505 (extended_remote_attach_1): Remove function. Update all callers
9506 to use extended_remote_attach.
9507
9508 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9509
9510 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9511 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9512 (ALLDEPFILES): Add ft32-tdep.c.
9513 * configure.tgt: Add FT32 entry.
9514 * ft32-tdep.c: New file, FT32 target-dependent code.
9515 * ft32-tdep.h: New file, FT32 target-dependent code.
9516
9517 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9518
9519 Revert:
9520 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9521 Code cleanup.
9522 * printcmd.c (print_command_1): Move expr variable scope.
9523
9524 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9525
9526 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9527
9528 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9529
9530 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9531 sections.
9532
9533 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9534
9535 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9536 exception raised while parsing the probe arguments.
9537 Force parsing to be done using the C language parser.
9538 * expression.h (parse_expression_with_language): Declare.
9539 * parse.c (parse_expression_with_language): New function.
9540
9541 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9542
9543 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9544
9545 2015-03-26 Andy Wingo <wingo@igalia.com>
9546
9547 PR symtab/18148
9548 * dwarf2read.c (struct partial_die_info): Add has_const_value
9549 member.
9550 (add_partial_symbol): Don't punt on symbols that have const_value
9551 attributes.
9552 (read_partial_die): Detect DW_AT_const_value.
9553
9554 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9555
9556 Code cleanup.
9557 * printcmd.c (print_command_1): Move expr variable scope.
9558
9559 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9560
9561 Code cleanup.
9562 * printcmd.c (validate_format): Make the parameter cmdname const.
9563
9564 2015-03-26 Don Breazeal <donb@codesourcery.com>
9565
9566 * remote.c (_initialize_remote): Update comment.
9567
9568 2015-03-26 Pedro Alves <palves@redhat.com>
9569 Jon TURNEY <jon.turney@dronecode.org.uk>
9570
9571 * coffread.c (coff_symfile_read): When constructing the name of an
9572 import stub symbol from import symbol for amd64, only skip the
9573 char after _imp_ if the target is underscored (like i386) and the
9574 char is indeed the target's leading char.
9575
9576 2015-03-25 Pedro Alves <palves@redhat.com>
9577
9578 * target.h <to_async>: Replace 'callback' and 'context' parameters
9579 with boolean 'enable' parameter.
9580 (target_async): Replace CALLBACK and CONTEXT parameters with
9581 boolean ENABLE parameter.
9582 * inf-loop.c (inferior_event_handler): Adjust.
9583 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9584 (linux_nat_resume): Adjust.
9585 (async_client_callback, async_client_context): Delete.
9586 (handle_target_event): Call inferior_event_handler directly.
9587 (linux_nat_async): Replace 'callback' and 'context' parameters
9588 with boolean 'enable' parameter. Adjust. Remove references to
9589 async_client_callback and async_client_context.
9590 (linux_nat_close): Adjust.
9591 * record-btrace.c (record_btrace_async): Replace 'callback' and
9592 'context' parameters with boolean 'enable' parameter. Adjust.
9593 (record_btrace_resume): Adjust.
9594 * record-full.c (record_full_async): Replace 'callback' and
9595 'context' parameters with boolean 'enable' parameter. Adjust.
9596 (record_full_resume, record_full_core_resume): Adjust.
9597 * remote.c (struct remote_state) <async_client_callback,
9598 async_client_context>: Delete fields.
9599 (remote_start_remote, extended_remote_attach_1, remote_resume)
9600 (extended_remote_create_inferior): Adjust.
9601 (remote_async_serial_handler): Call inferior_event_handler
9602 directly.
9603 (remote_async): Replace 'callback' and 'context' parameters with
9604 boolean 'enable' parameter. Adjust.
9605 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9606 Adjust.
9607 * target-delegates.c: Regenerate.
9608
9609 2015-03-25 Gary Benson <gbenson@redhat.com>
9610 Pedro Alves <palves@redhat.com>
9611
9612 * target.c (fileio_ft_t): New typedef, define object vector.
9613 (fileio_fhandles): New static variable.
9614 (is_closed_fileio_fh): New macro.
9615 (lowest_closed_fd): New static variable.
9616 (acquire_fileio_fd): New function.
9617 (release_fileio_fd): Likewise.
9618 (fileio_fd_to_fh): New macro.
9619 (target_fileio_open): Wrap the file descriptor on success.
9620 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9621 (target_fileio_pread): Likewise.
9622 (target_fileio_close): Likewise.
9623
9624 2015-03-24 Pedro Alves <palves@redhat.com>
9625
9626 * thread.c (thread_apply_all_command): Take exited threads into
9627 account.
9628
9629 2015-03-24 Pedro Alves <palves@redhat.com>
9630
9631 * infrun.c (resume, proceed): Mention
9632 switch_back_to_stepped_thread, not switch_back_to_stepping.
9633
9634 2015-03-24 Pedro Alves <palves@redhat.com>
9635
9636 * infrun.c (user_visible_resume_ptid): Rewrite going from
9637 most-locked to unlocked instead of the opposite. Move comment ...
9638 * infrun.h (user_visible_resume_ptid): ... here.
9639
9640 2015-03-24 Pedro Alves <palves@redhat.com>
9641
9642 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9643 to resume the event lwp. Use the lwp's ptid instead of the passed
9644 in (maybe wildcard) ptid.
9645 (stop_wait_callback): Tweak debug log output.
9646 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9647 TRAP_TRACE.
9648 (linux_nat_filter_event): In debug output, distinguish a
9649 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9650 before trying to resume the lwp.
9651
9652 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9653
9654 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9655 pointer indirection.
9656 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9657 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9658
9659 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9660
9661 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9662 Renames DYN_ATTR_DATA_LOCATION.
9663 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9664 DYN_ATTR_DATA_LOCATION.
9665 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9666 instead of DYN_ATTR_DATA_LOCATION.
9667
9668 2015-03-24 Pedro Alves <palves@redhat.com>
9669
9670 * breakpoint.c (until_break_command): Adjust call to proceed.
9671 * gdbthread.h (struct thread_control_state) <stepping_command>:
9672 New field.
9673 * infcall.c (run_inferior_call): Adjust call to proceed.
9674 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9675 Adjust calls to proceed.
9676 (set_step_frame): Set the current thread's step_start_function
9677 here.
9678 (step_once): Adjust calls to proceed.
9679 (jump_command, signal_command, until_next_command)
9680 (finish_backward, finish_forward, proceed_after_attach_callback)
9681 (attach_command_post_wait): Adjust calls to proceed.
9682 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9683 (do_target_resume): New function, factored out from ...
9684 (resume): ... here. Remove 'step' parameter. Instead, check
9685 currently_stepping to determine whether the thread should be
9686 single-stepped.
9687 (proceed): Remove 'step' parameter and don't set the thread's
9688 step_start_function here. Adjust call to 'resume'.
9689 (handle_inferior_event): Adjust calls to 'resume'.
9690 (switch_back_to_stepped_thread): Use do_target_resume instead of
9691 'resume'.
9692 (keep_going): Adjust calls to 'resume'.
9693 * infrun.h (proceed): Remove 'step' parameter.
9694 (resume): Likewise.
9695 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9696 'resume'.
9697 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9698
9699 2015-03-24 Pedro Alves <palves@redhat.com>
9700
9701 * gdbthread.h (struct thread_control_state) <stepping_command>:
9702 New field.
9703 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9704 the thread's stepping_command field.
9705 * infrun.c (resume): Check the thread's stepping_command flag to
9706 determine which threads should be resumed. Rename 'entry_step'
9707 local to user_step.
9708 (clear_proceed_status_thread): Clear 'stepping_command'.
9709 (schedlock_applies): Change parameter type to struct thread_info
9710 pointer. Adjust.
9711 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9712 (switch_back_to_stepped_thread): Adjust calls to
9713 'schedlock_applies'.
9714 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9715
9716 2015-03-24 Pedro Alves <palves@redhat.com>
9717
9718 * infrun.c (step_start_function): Delete and ...
9719 * gdbthread.h (struct thread_control_state) <step_start_function>:
9720 ... now a field here.
9721 * infrun.c (clear_proceed_status_thread): Clear the thread's
9722 step_start_function.
9723 (proceed, process_event_stop_test, print_stop_event): Adjust.
9724
9725 2015-03-24 Pedro Alves <palves@redhat.com>
9726
9727 * infrun.c (proceed): No longer handle negative step.
9728
9729 2015-03-24 Gary Benson <gbenson@redhat.com>
9730
9731 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9732 (x86_linux_prepare_to_resume): Likewise.
9733 * x86-linux-nat.c (x86_linux_new_thread):
9734 Moved to nat/x86-linux.c.
9735 (x86_linux_prepare_to_resume): Likewise.
9736 * nat/x86-linux.c (x86_linux_new_thread): New function.
9737 (x86_linux_prepare_to_resume): Likewise.
9738
9739 2015-03-24 Gary Benson <gbenson@redhat.com>
9740
9741 * nat/x86-linux-dregs.h: New file.
9742 * nat/x86-linux-dregs.c: Likewise.
9743 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9744 (x86-linux-dregs.o): New rule.
9745 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9746 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9747 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9748 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9749 (x86_linux_dr_get): Likewise.
9750 (x86_linux_dr_set): Likewise.
9751 (x86_linux_dr_get_addr): Likewise.
9752 (x86_linux_dr_get_control): Likewise.
9753 (x86_linux_dr_get_status): Likewise.
9754 (update_debug_registers_callback): Likewise.
9755 (x86_linux_dr_set_control): Likewise.
9756 (x86_linux_dr_set_addr): Likewise.
9757 (x86_linux_update_debug_registers): Likewise.
9758
9759 2015-03-24 Gary Benson <gbenson@redhat.com>
9760
9761 * x86-linux-nat.c (x86_linux_update_debug_registers):
9762 New function, factored out from...
9763 (x86_linux_prepare_to_resume): ...this.
9764
9765 2015-03-24 Gary Benson <gbenson@redhat.com>
9766
9767 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9768 (x86_linux_dr_set): Likewise.
9769 (x86_linux_dr_get_addr): Likewise.
9770 (x86_linux_dr_get_control): Likewise.
9771 (x86_linux_dr_get_status): Likewise.
9772 (update_debug_registers_callback): Likewise.
9773 (x86_linux_dr_set_control): Likewise.
9774 (x86_linux_dr_set_addr): Likewise.
9775 (x86_linux_prepare_to_resume): Likewise.
9776 (x86_linux_new_thread): Likewise.
9777
9778 2015-03-24 Gary Benson <gbenson@redhat.com>
9779
9780 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9781 (x86_linux_new_thread): Rename argument.
9782
9783 2015-03-24 Gary Benson <gbenson@redhat.com>
9784
9785 * nat/x86-linux.h: New file.
9786 * nat/x86-linux.c: Likewise.
9787 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9788 (x86-linux.o): New rule.
9789 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9790 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9791 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9792 (lwp_set_arch_private_info): New declaration.
9793 (lwp_arch_private_info): Likewise.
9794 * linux-nat.c (lwp_set_arch_private_info): New function.
9795 (lwp_arch_private_info): Likewise.
9796 * x86-linux-nat.c: Include nat/x86-linux.h.
9797 (arch_lwp_info): Removed structure.
9798 (update_debug_registers_callback):
9799 Use lwp_set_debug_registers_changed.
9800 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9801 and lwp_set_debug_registers_changed.
9802 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9803
9804 2015-03-24 Gary Benson <gbenson@redhat.com>
9805
9806 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9807 (lwp_is_stopped): Likewise.
9808 (lwp_stop_reason): Likewise.
9809 * linux-nat.c (ptid_of_lwp): New function.
9810 (lwp_is_stopped): Likewise.
9811 (lwp_is_stopped_by_watchpoint): Likewise.
9812 * x86-linux-nat.c (update_debug_registers_callback):
9813 Use lwp_is_stopped.
9814 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9815 lwp_stop_reason.
9816
9817 2015-03-24 Gary Benson <gbenson@redhat.com>
9818
9819 * linux-nat.h (linux_stop_lwp): Move declaration to...
9820 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9821
9822 2015-03-24 Gary Benson <gbenson@redhat.com>
9823
9824 * linux-nat.h: Include nat/linux-nat.h.
9825 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9826 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9827 (iterate_over_lwps_ftype): New typedef.
9828 (iterate_over_lwps): New declaration.
9829 * linux-nat.h (iterate_over_lwps): Update comment. Use
9830 iterate_over_lwps_ftype. Update callback return value check.
9831
9832 2015-03-24 Gary Benson <gbenson@redhat.com>
9833
9834 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9835 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9836
9837 2015-03-24 Gary Benson <gbenson@redhat.com>
9838
9839 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9840 * linux-nat.c (current_lwp_ptid): New function.
9841 * x86-linux-nat.c: Include nat/linux-nat.h.
9842 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9843 (x86_linux_dr_get_control): Likewise.
9844 (x86_linux_dr_get_status): Likewise.
9845 (x86_linux_dr_set_control): Likewise.
9846 (x86_linux_dr_set_addr): Likewise.
9847
9848 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9849
9850 PR breakpoints/16466
9851 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9852
9853 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9854
9855 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9856 * ser-unix.c (hardwire_setparity): Likewise.
9857
9858 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9859
9860 * NEWS: Mention set/show serial parity command.
9861 * monitor.c (monitor_open): Call serial_setparity.
9862 * remote.c (remote_open_1): Likewise.
9863 * ser-base.c (ser_base_serparity): New function.
9864 * ser-base.h (ser_base_setparity): Add declaration.
9865 * ser-go32.c (dos_ops): Set "setparity" field.
9866 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9867 state.Parity.
9868 (ser_windows_setparity): New function.
9869 (hardwire_ops): Add ser_windows_setparity.
9870 (tty_ops): Add NULL for setparity field.
9871 (pipe_ops): Add ser_base_setparity.
9872 (tcp_ops): Likewise.
9873 * ser-pipe.c (pipe_ops): Likewise.
9874 * ser-tcp.c (tcp_ops): Likewise.
9875 * ser-unix.c (hardwire_setparity): Add declaration.
9876 (hardwire_raw): Don't reset PARENB flag.
9877 (hardwire_setparity): New function.
9878 (hardwire_ops): Add hardwire_setparity.
9879 * serial.c (serial_setparity): New function.
9880 (serial_parity): New global.
9881 (parity_none, parity_odd, parity_even, parity_enums, parity):
9882 New static globals.
9883 (set_parity): New function.
9884 (_initialize_serial): Add set/show serial parity commands.
9885 * serial.h (GDBPARITY_NONE): Define.
9886 (GDBPARITY_ODD): Define.
9887 (GDBPARITY_EVEN): Define.
9888 (serial_setparity) Add declaration.
9889 (struct serial_ops): Add setparity field.
9890 * target.h (serial_parity): Add declaration.
9891
9892 2015-03-23 Keith Seitz <keiths@redhat.com>
9893
9894 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9895
9896 2015-03-23 Keith Seitz <keiths@redhat.com>
9897
9898 * breakpoint.c (parse_breakpoint_sals): Use
9899 linespec_lexer_lex_keyword to ascertain if the user specified
9900 a NULL location.
9901 * linespec.c [IF_KEYWORD_INDEX]: Define.
9902 (linespec_lexer_lex_keyword): Export.
9903 (struct ls_parser) <keyword_ok>: Remove.
9904 A keyword is only a keyword if not followed by another keyword.
9905 (linespec_lexer_lex_one): Remove keyword_ok handling.
9906 Add comment explaining why the parsing stream is not advanced
9907 when a keyword is seen.
9908 (parse_linespec): Remove parser->keyword_ok.
9909 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9910
9911 2015-03-23 Keith Seitz <keiths@redhat.com>
9912
9913 PR gdb/18021
9914 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9915 if we find a static method with DW_AT_vtable_elem_location.
9916
9917 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9918
9919 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9920 before the second loop, to avoid undefined behavior. Reported by
9921 Anton Blanchard <anton@samba.org>.
9922
9923 2015-03-20 Keven Boell <keven.boell@intel.com>
9924
9925 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9926 data_location usage to linked list.
9927 (resolve_dynamic_type_internal): Adapt data_location to
9928 linked list.
9929 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9930 (copy_type_recursive, copy_type): Add copy of linked list.
9931 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9932 (struct dynamic_prop_list): New struct.
9933 * dwarf2read.c (set_die_type): Set data_location data.
9934
9935 2015-03-20 Pedro Alves <palves@redhat.com>
9936
9937 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9938 inner block and make it const.
9939 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9940
9941 2015-03-20 Pedro Alves <palves@redhat.com>
9942
9943 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9944 * breakpoint.h (set_breakpoint_condition): Update declaration.
9945
9946 2015-03-20 Pedro Alves <palves@redhat.com>
9947
9948 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9949
9950 2015-03-20 Pedro Alves <palves@redhat.com>
9951
9952 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9953
9954 2015-03-20 Pedro Alves <palves@redhat.com>
9955
9956 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9957
9958 2015-03-20 Pedro Alves <palves@redhat.com>
9959
9960 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9961 (nto_init_solib_absolute_prefix): Likewise.
9962
9963 2015-03-20 Pedro Alves <palves@redhat.com>
9964
9965 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9966 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9967
9968 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9969
9970 * config/djgpp/README: Remove gdb.hp.
9971
9972 2015-03-20 Yao Qi <yao.qi@linaro.org>
9973
9974 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9975 set_gdbarch_cannot_step_breakpoint.
9976
9977 2015-03-19 Pedro Alves <palves@redhat.com>
9978
9979 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9980 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9981 instead call perror_with_name.
9982 (check_ptrace_stopped_lwp_gone): New function.
9983 (linux_resume_one_lwp): Reimplement as wrapper around
9984 linux_resume_one_lwp_throw that swallows errors if the LWP is
9985 gone.
9986 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9987 swallows errors if the LWP is gone. Use
9988 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9989
9990 2015-03-19 Pedro Alves <palves@redhat.com>
9991
9992 * linux-nat.c (status_callback): Return early if the LWP has no
9993 status pending.
9994
9995 2015-03-19 Pedro Alves <palves@redhat.com>
9996
9997 * linux-nat.c (select_event_lwp_callback): Update comment to no
9998 longer mention SIGTRAP.
9999
10000 2015-03-18 Tristan Gingold <gingold@adacore.com>
10001
10002 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10003 redirection code to ...
10004 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10005 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10006
10007 2015-03-18 Gary Benson <gbenson@redhat.com>
10008
10009 (remote_protocol_features): Remove the "vFile:fstat" feature.
10010 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10011
10012 2015-03-11 Yao Qi <yao.qi@linaro.org>
10013
10014 PR tdep/18107
10015 * aarch64-linux-tdep.c: Include xml-syscall.h
10016 (aarch64_linux_get_syscall_number): New function.
10017 (aarch64_linux_init_abi): Call
10018 set_gdbarch_get_syscall_number.
10019 * syscalls/aarch64-linux.xml: New file.
10020
10021 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10022
10023 * ser-base.h (ser_base_setstopbits): Change second argument name
10024 from "rate" to "num".
10025
10026 2015-03-17 Gary Benson <gbenson@redhat.com>
10027 Luke Allardyce <lukeallardyce@gmail.com>
10028
10029 PR gdb/18131
10030 * common/common-remote-fileio.h (sys/stat.h): New include.
10031 (stuct stat): Remove forward declaration.
10032
10033 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10034
10035 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10036 before writing core register notes.
10037
10038 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10039 Pedro Alves <palves@redhat.com>
10040
10041 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10042 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10043 (tgoto): Wrap with extern "C".
10044
10045 2015-03-16 Pedro Alves <palves@redhat.com>
10046 Yuanhui Zhang <asmwarrior@gmail.com>
10047
10048 * stub-termcap.c (tputs): Change prototype.
10049
10050 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10051 Pedro Alves <palves@redhat.com>
10052
10053 * windows-nat.c (struct thread_info_struct): Rename to ...
10054 (struct windows_thread_info_struct): ... this.
10055 (thread_info): Rename to ...
10056 (windows_thread_info): ... this.
10057 All users updated.
10058
10059 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10060 Pedro Alves <palves@redhat.com>
10061
10062 * NEWS: New Removed targets and native configurations.
10063
10064 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 Remove HPUX.
10067 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10068 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10069 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10070 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10071 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10072 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10073 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10074 hppa-hpux-tdep.c.
10075 * config/ia64/hpux.mh: Remove file.
10076 * config/pa/hpux.mh: Remove file.
10077 * configure: Rebuilt.
10078 * configure.ac (dlgetmodinfo, somread.o): Remove.
10079 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10080 (ia64-*-hpux*): Remove its float format exception.
10081 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10082 * hppa-hpux-nat.c: Remove file.
10083 * hppa-hpux-tdep.c: Remove file.
10084 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10085 Move them here from hppa-tdep.h
10086 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10087 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10088 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10089 Move them to hppa-tdep.c.
10090 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10091 declarations.
10092 * ia64-hpux-nat.c: Remove file.
10093 * ia64-hpux-tdep.c: Remove file.
10094 * ia64-hpux-tdep.h: Remove file.
10095 * inf-ttrace.c: Remove file.
10096 * inf-ttrace.h: Remove file.
10097 * solib-ia64-hpux.c: Remove file.
10098 * solib-ia64-hpux.h: Remove file.
10099 * solib-pa64.c: Remove file.
10100 * solib-pa64.h: Remove file.
10101 * solib-som.c: Remove file.
10102 * solib-som.h: Remove file.
10103 * somread.c: Remove file.
10104
10105 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10106
10107 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10108 * config.in: Regenerate.
10109 * configure: Regenerate.
10110 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10111 define.
10112 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10113 enumerate memory regions if present.
10114
10115 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10116
10117 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10118 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10119 expressions.
10120 (i386fbsd_sigtramp_p): Likewise.
10121
10122 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10123
10124 * MAINTAINERS (Write After Approval): Add John Baldwin.
10125
10126 2015-03-12 Gary Benson <gbenson@redhat.com>
10127
10128 * solib.c (_initialize_solib): Make "set/show sysroot" use
10129 add_setshow_optional_filename_cmd so it can be restored to
10130 empty after being set.
10131
10132 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10133
10134 * Makefile.in (SFILES): New source break-catch-syscall.c.
10135 (COMMON_OBS): New object break-catch-syscall.o.
10136 * break-catch-syscall.c: New file.
10137 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10138 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10139 (struct syscall_catchpoint): Likewise.
10140 (dtor_catch_syscall): Likewise.
10141 (catch_syscall_inferior_data): Likewise.
10142 (struct catch_syscall_inferior_data): Likewise.
10143 (get_catch_syscall_inferior_data): Likewise.
10144 (catch_syscall_inferior_data_cleanup): Likewise.
10145 (insert_catch_syscall): Likewise.
10146 (remove_catch_syscall): Likewise.
10147 (breakpoint_hit_catch_syscall): Likewise.
10148 (print_it_catch_syscall): Likewise.
10149 (print_one_catch_syscall): Likewise.
10150 (print_mention_catch_syscall): Likewise.
10151 (print_recreate_catch_syscall): Likewise.
10152 (catch_syscall_breakpoint_ops): Likewise.
10153 (syscall_catchpoint_p): Likewise.
10154 (create_syscall_event_catchpoint): Likewise.
10155 (catch_syscall_split_args): Likewise.
10156 (catch_syscall_command_1): Likewise.
10157 (is_syscall_catchpoint_enabled): Likewise.
10158 (catch_syscall_enabled): Likewise.
10159 (catching_syscall_number): Likewise.
10160 (catch_syscall_completer): Likewise.
10161 (clear_syscall_counts): Likewise.
10162 (initialize_breakpoint_ops): Move initialization of syscall
10163 catchpoints to break-catch-syscall.c.
10164 (_initialize_breakpoint): Move code related to syscall catchpoints
10165 to break-catch-syscall.c.
10166
10167 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10168
10169 * breakpoint.c (breakpoint_find_if): New function.
10170 * breakpoint.h (breakpoint_find_if): New prototype.
10171
10172 2015-03-11 Gary Benson <gbenson@redhat.com>
10173
10174 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10175 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10176 (remote_fileio_to_host_ulong): Likewise.
10177 (remote_fileio_to_host_mode): Likewise.
10178 (remote_fileio_to_host_time): Likewise.
10179 (remote_fileio_to_host_stat): Likewise.
10180 * remote.c (PACKET_vFile_fstat): New enum value.
10181 (remote_protocol_features): Register the "vFile:fstat" feature.
10182 (remote_hostio_fstat): New function.
10183 (remote_bfd_iovec_stat): Use the above.
10184 (_initialize_remote): Register new "set/show remote
10185 hostio-fstat-packet" command.
10186 * symfile.c (separate_debug_file_exists): Update comment.
10187 * NEWS: Announce new vFile:fstat packet.
10188
10189 2015-03-11 Gary Benson <gbenson@redhat.com>
10190
10191 * common/common-remote-fileio.h: New file.
10192 * common/common-remote-fileio.c: Likewise.
10193 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10194 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10195 (COMMON_OBS): Add common-remote-fileio.o.
10196 (common-remote-fileio.o): New rule.
10197 * remote-fileio.h (common-remote-fileio.h): New include.
10198 * remote-fileio.c (gdb/fileio.h): Do not include.
10199 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10200 (remote_fileio_to_fio_uint): Likewise.
10201 (remote_fileio_to_fio_time): Likewise.
10202 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10203 (remote_fileio_to_fio_mode): Likewise.
10204 (remote_fileio_to_fio_ulong): Likewise.
10205 (remote_fileio_to_fio_stat): Likewise.
10206
10207 2015-03-11 Andy Wingo <wingo@igalia.com>
10208
10209 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10210 we were checking the cached type, not the cached dynamic type.
10211
10212 2015-03-11 Andy Wingo <wingo@igalia.com>
10213
10214 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10215 other strings, as these are on the GC'd heap, and will be
10216 collected along with the smob.
10217
10218 2015-03-11 Andy Wingo <wingo@igalia.com>
10219
10220 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10221 (objfile_functions): Bind gdbscm_objfile_progspace to
10222 objfile-progspace.
10223 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10224
10225 2015-03-11 Andy Wingo <wingo@igalia.com>
10226
10227 * guile/guile.c (_initialize_guile): Disable automatic
10228 finalization, if Guile offers us that possibility.
10229 * guile/guile.c (call_initialize_gdb_module):
10230 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10231 finalizers in appropriate places.
10232 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10233 scm_set_automatic_finalization_enabled.
10234 * configure: Regenerated.
10235
10236 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10237
10238 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10239 SAL, if possible.
10240
10241 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10242
10243 * s390-linux-nat.c (struct arch_lwp_info): New.
10244 (s390_fix_watch_points): Rename to...
10245 (s390_prepare_to_resume): ...this. Skip the PER info update
10246 unless the watch points have changed.
10247 (s390_refresh_per_info, s390_new_thread): New functions.
10248 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10249 s390_fix_watch_points.
10250 (s390_remove_watchpoint): Likewise.
10251 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10252 Register s390_prepare_to_resume.
10253
10254 2015-03-09 Pedro Alves <palves@redhat.com>
10255
10256 Revert:
10257 2015-03-07 Pedro Alves <palves@redhat.com>
10258 * common/gdb_socket.h: New file.
10259 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10260 sys/socket.h.
10261 (net_open): Use union gdb_sockaddr_u.
10262
10263 2015-03-07 Pedro Alves <palves@redhat.com>
10264
10265 * configure.ac (build_warnings): Move -Wmissing-prototypes
10266 -Wdeclaration-after-statement -Wmissing-parameter-type
10267 -Wold-style-declaration -Wold-style-definition to the C-specific
10268 set.
10269 * configure: Regenerate.
10270
10271 2015-03-07 Pedro Alves <palves@redhat.com>
10272
10273 * common/gdb_socket.h: New file.
10274 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10275 sys/socket.h.
10276 (net_open): Use union gdb_sockaddr_u.
10277
10278 2015-03-07 Pedro Alves <palves@redhat.com>
10279
10280 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10281 (exceptions_state_mc_action_iter)
10282 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10283 Don't define.
10284 [__cplusplus] (try_scope_depth): New global.
10285 [__cplusplus] (exception_try_scope_entry)
10286 (exception_try_scope_exit, gdb_exception_sliced_copy)
10287 (exception_rethrow): New functions.
10288 (throw_exception): In C++ mode, throw
10289 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10290 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10291 (throw_it): In C++ mode, use try_scope_depth.
10292 * common/common-exceptions.h [!__cplusplus]
10293 (exceptions_state_mc_action_iter)
10294 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10295 Don't declare.
10296 [__cplusplus] (exception_try_scope_entry)
10297 (exception_try_scope_exit, exception_rethrow): Declare.
10298 [__cplusplus] (struct exception_try_scope): New struct.
10299 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10300 C++ exceptions.
10301 (struct gdb_exception_RETURN_MASK_ALL)
10302 (struct gdb_exception_RETURN_MASK_ERROR)
10303 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10304
10305 2015-03-07 Pedro Alves <palves@redhat.com>
10306
10307 * main.c (handle_command_errors): Remove volatile qualifier from
10308 parameter.
10309
10310 2015-03-07 Pedro Alves <palves@redhat.com>
10311
10312 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10313 TRY and CATCH.
10314 * gdbtypes.c (safe_parse_type): Remove empty line.
10315 (types_deeply_equal):
10316 * guile/scm-frame.c (gdbscm_frame_name):
10317 * linux-thread-db.c (find_new_threads_once):
10318 * python/py-breakpoint.c (bppy_get_commands):
10319 * record-btrace.c (record_btrace_insert_breakpoint)
10320 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10321 (record_btrace_start_replaying): Adjust to avoid code between TRY
10322 and CATCH.
10323
10324 2015-03-07 Pedro Alves <palves@redhat.com>
10325
10326 * common/common-exceptions.c (struct catcher) <exception>: No
10327 longer a pointer to volatile exception. Now an exception value.
10328 <mask>: Delete field.
10329 (exceptions_state_mc_init): Remove all parameters. Adjust.
10330 (exceptions_state_mc): No longer pop the catcher here.
10331 (exceptions_state_mc_catch): New function.
10332 (throw_exception): Adjust.
10333 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10334 all parameters.
10335 (exceptions_state_mc_catch): Declare.
10336 (TRY_CATCH): Rename to ...
10337 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10338 (CATCH, END_CATCH): New.
10339 All callers adjusted.
10340
10341 2015-03-07 Tom Tromey <tromey@redhat.com>
10342
10343 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10344
10345 2015-03-07 Pedro Alves <palves@redhat.com>
10346
10347 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10348 (amd64_epilogue_frame_cache): Normal exception handling code.
10349 * break-catch-throw.c (check_status_exception_catchpoint)
10350 (re_set_exception_catchpoint): Ditto.
10351 * cli/cli-interp.c (safe_execute_command):
10352 * cli/cli-script.c (script_from_file): Ditto.
10353 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10354 Ditto.
10355 * compile/compile-object-run.c (compile_object_run): Ditto.
10356 * cp-abi.c (baseclass_offset): Ditto.
10357 * cp-valprint.c (cp_print_value): Ditto.
10358 * exceptions.c (catch_exceptions_with_msg):
10359 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10360 * frame.c (get_frame_address_in_block_if_available): Ditto.
10361 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10362 (i386_sigtramp_frame_cache): Ditto.
10363 * infcmd.c (post_create_inferior): Ditto.
10364 * linespec.c (parse_linespec, find_linespec_symbols):
10365 * p-valprint.c (pascal_object_print_value): Ditto.
10366 * parse.c (parse_expression_for_completion): Ditto.
10367 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10368 * remote.c (remote_get_noisy_reply): Ditto.
10369 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10370 * solib-svr4.c (solib_svr4_r_map): Ditto.
10371
10372 2015-03-06 Gary Benson <gbenson@redhat.com>
10373
10374 * common/common-utils.h (startswith): New inline function.
10375 All places where this logic was used updated to use the above.
10376
10377 2015-03-05 Pedro Alves <palves@redhat.com>
10378
10379 PR gdb/18002
10380 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10381 after reading the breakpoint's shadow memory.
10382
10383 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10384
10385 * hppabsd-nat.c: Remove file.
10386 * hppaobsd-nat.c: New file.
10387 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10388 hppaobsd-nat.c.
10389 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10390 hppaobsd-nat.o.
10391
10392 2015-03-04 Pedro Alves <palves@redhat.com>
10393
10394 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10395 (target_decr_pc_after_break): Delete declaration.
10396 * target.c (default_target_decr_pc_after_break)
10397 (target_decr_pc_after_break): Delete.
10398 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10399 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10400 * linux-thread-db.c (check_event): Likewise.
10401 * infrun.c (adjust_pc_after_break): Likewise.
10402 * darwin-nat.c (cancel_breakpoint): Likewise.
10403 * aix-thread.c (aix_thread_wait): Likewise.
10404 * target-delegates.c: Regenerate.
10405
10406 2015-03-04 Pedro Alves <palves@redhat.com>
10407
10408 * linux-nat.c (save_sigtrap): Check for breakpoints before
10409 checking watchpoints.
10410 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10411 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10412 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10413 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10414 (linux_nat_stopped_by_sw_breakpoint)
10415 (linux_nat_supports_stopped_by_sw_breakpoint)
10416 (linux_nat_stopped_by_hw_breakpoint)
10417 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10418 (linux_nat_wait_1): Don't re-increment the PC if relying on
10419 SIGTRAP's siginfo->si_code.
10420 (linux_nat_add_target): Install new target methods.
10421 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10422 offset if the target already adjusted the PC.
10423 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10424 (GDB_ARCH_TRAP_BRKPT): New.
10425 (TRAP_HWBKPT): Define if not already defined.
10426
10427 2015-03-04 Pedro Alves <palves@redhat.com>
10428
10429 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10430 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10431 Delete field.
10432 <stop_reason>: New field.
10433 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10434 (packet_set_cmd_state): New function.
10435 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10436 features.
10437 (remote_query_supported): If not disabled with the corresponding
10438 "set remote foo-packet" command, report support for the swbreak
10439 and hwbreak features.
10440 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10441 field.
10442 <stop_reason>: New field.
10443 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10444 (remote_wait_as): Adjust.
10445 (remote_stopped_by_sw_breakpoint)
10446 (remote_supports_stopped_by_sw_breakpoint)
10447 (remote_stopped_by_hw_breakpoint)
10448 (remote_supports_stopped_by_hw_breakpoint): New functions.
10449 (remote_stopped_by_watchpoint): New function.
10450 (init_remote_ops): Install them.
10451 (_initialize_remote): Register new "set/show remote
10452 swbreak-feature-packet" and "set/show remote
10453 swbreak-feature-packet" commands.
10454
10455 2015-03-04 Pedro Alves <palves@redhat.com>
10456
10457 * btrace.h: Include target/waitstatus.h.
10458 (struct btrace_thread_info) <stop_reason>: New field.
10459 * record-btrace.c (record_btrace_step_thread): Use
10460 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10461 (record_btrace_decr_pc_after_break): Delete.
10462 (record_btrace_stopped_by_sw_breakpoint)
10463 (record_btrace_supports_stopped_by_sw_breakpoint)
10464 (record_btrace_stopped_by_hw_breakpoint)
10465 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10466 (init_record_btrace_ops): Install them.
10467 * record-full.c (record_full_hw_watchpoint): Delete and replace
10468 with ...
10469 (record_full_stop_reason): ... this throughout.
10470 (record_full_exec_insn): Adjust.
10471 (record_full_wait_1): Adjust. No longer re-increment the PC.
10472 (record_full_wait_1): Adjust. Use
10473 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10474 (record_full_stopped_by_watchpoint): Adjust.
10475 (record_full_stopped_by_sw_breakpoint)
10476 (record_full_supports_stopped_by_sw_breakpoint)
10477 (record_full_supports_stopped_by_sw_breakpoint)
10478 (record_full_stopped_by_hw_breakpoint)
10479 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10480 (init_record_full_ops, init_record_full_core_ops): Install them.
10481 * record.c (record_check_stopped_by_breakpoint): New function.
10482 * record.h: Include target/waitstatus.h.
10483 (record_check_stopped_by_breakpoint): New declaration.
10484
10485 2015-03-04 Pedro Alves <palves@redhat.com>
10486
10487 enum lwp_stop_reason -> enum target_stop_reason
10488 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10489 (linux_nat_stopped_by_watchpoint, status_callback)
10490 (linux_nat_wait_1): Adjust.
10491 * linux-nat.h (enum lwp_stop_reason): Delete.
10492 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10493 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10494 * target/waitstatus.h (enum target_stop_reason): New.
10495
10496 2015-03-04 Pedro Alves <palves@redhat.com>
10497
10498 * breakpoint.c (need_moribund_for_location_type): New function.
10499 (bpstat_stop_status): Don't skipping checking moribund locations
10500 of breakpoint types which the target tell caused a stop.
10501 (program_breakpoint_here_p): New function, factored out from ...
10502 (bp_loc_is_permanent): ... this.
10503 (update_global_location_list): Don't create a moribund location if
10504 the target supports reporting stops of the type of the removed
10505 breakpoint.
10506 * breakpoint.h (program_breakpoint_here_p): New declaration.
10507 * infrun.c (adjust_pc_after_break): Return early if the target has
10508 already adjusted the PC. Add comments.
10509 (handle_signal_stop): If nothing explains a signal, and the target
10510 tells us the stop was caused by a software breakpoint, check if
10511 there's a breakpoint instruction in the memory. If so, adjust the
10512 PC before presenting the stop to the user. Otherwise, ignore the
10513 trap. If nothing explains a signal, and the target tells us the
10514 stop was caused by a hardware breakpoint, ignore the trap.
10515 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10516 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10517 to_supports_stopped_by_hw_breakpoint>: New fields.
10518 (target_stopped_by_sw_breakpoint)
10519 (target_supports_stopped_by_sw_breakpoint)
10520 (target_stopped_by_hw_breakpoint)
10521 (target_supports_stopped_by_hw_breakpoint): Define.
10522 * target-delegates.c: Regenerate.
10523
10524 2015-03-04 Pedro Alves <palves@redhat.com>
10525
10526 * infrun.c (follow_fork_inferior): Use the whole of the
10527 inferior_ptid and pending_follow.related_pid ptids instead of
10528 building ptids from the process components. Adjust verbose output
10529 to use target_pid_to_str.
10530 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10531 inferior_ptid and pending_follow.related_pid ptids instead of
10532 building ptids from the process components.
10533
10534 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10535
10536 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10537 (inf_ptrace_insert_fork_catchpoint): New function.
10538 (inf_ptrace_remove_fork_catchpoint): New function.
10539 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10540
10541 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10542
10543 * s390-linux-tdep.c (s390_register_name): Return empty string
10544 instead of NULL for registers that shouldn't be visible.
10545
10546 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10547
10548 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10549 XML file for 64-bit targets.
10550
10551 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10552
10553 * target.h (find_default_create_inferior): Remove declaration.
10554 (find_default_attach): Likewise.
10555
10556 2015-03-03 Pedro Alves <palves@redhat.com>
10557
10558 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10559 Use ptid_get_pid to get the overall process id when resuming all
10560 threads.
10561
10562 2015-03-03 Pedro Alves <palves@redhat.com>
10563
10564 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10565 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10566 * inf-ptrace.c (get_ptrace_pid): New function.
10567 (inf_ptrace_resume): Use it.
10568 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10569 to the lower layer.
10570
10571 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10572
10573 * nat/linux-btrace.c: Include sys/utsname.h.
10574 (linux_determine_kernel_ptr_bits): New.
10575 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10576 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10577 ptr_bits.
10578
10579 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10580
10581 * btrace.c (ftrace_update_function): Treat return as tailcall for
10582 "_dl_runtime_resolve".
10583
10584 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10585
10586 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10587 * btrace.c (ftrace_debug): Do not print the line range.
10588 (ftrace_skip_file, ftrace_update_lines): Remove.
10589 (ftrace_new_function): Remove lbegin and lend initialization.
10590 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10591 * record-btrace.c (btrace_compute_src_line_range): New.
10592 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10593
10594 2015-03-02 Pedro Alves <palves@redhat.com>
10595
10596 * infrun.c (follow_exec): Delete all threads of the process except
10597 the event thread. Extended comments.
10598
10599 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10600
10601 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10602
10603 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10604
10605 * utils.h: Remove <stdbool.h> #include.
10606 (producer_is_gcc): Change return type to "int".
10607 * utils.c (producer_is_gcc): Change return type to int.
10608 Return 1 instead of true, and 0 instead of false.
10609 Adjust function documentation accordingly.
10610
10611 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10612
10613 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10614 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10615 present.
10616 (s390_linux_store_inferior_registers): Likewise.
10617 (s390_get_hwcap): Remove function. Embed its logic...
10618 (s390_read_description): ...here. Yield a target description with
10619 vector registers if applicable.
10620 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10621 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10622 "features/s390x-tevx-linux64.c".
10623 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10624 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10625 for "GNU/Linux-specific registers".
10626 (s390_dwarf_reg_r0l): New enum value.
10627 (s390_dwarf_reg_to_regnum): Support vector registers.
10628 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10629 of GPR lower halves.
10630 (regnum_is_vxr_full): New function.
10631 (s390_register_name): New function.
10632 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10633 f0-f15 and v0l-v15l.
10634 (s390_pseudo_register_type): Likewise.
10635 (s390_pseudo_register_read): Likewise.
10636 (s390_pseudo_register_write): Likewise.
10637 (s390_value_from_register): Account for the fact that values are
10638 placed left-justified in vector registers.
10639 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10640 the vector reggroup and omit them from the general reggroup.
10641 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10642 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10643 (s390_iterate_over_regset_sections): Add iterations for the two
10644 new vector regsets.
10645 (s390_core_read_description): Yield a target description with
10646 vector registers if applicable.
10647 (s390_gdbarch_init): Handle target descriptions with vector
10648 registers. Add "register_name" gdbarch method.
10649 (_initialize_s390_tdep): Call new tdesc initialization functions.
10650 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10651 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10652 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10653 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10654 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10655 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10656 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10657 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10658 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10659 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10660 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10661 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10662 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10663 (S390_NUM_REGS): Adjust value.
10664 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10665 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10666 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10667 * NEWS: Announce S/390 vector register support.
10668
10669 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10670
10671 * features/s390-tevx-linux64.xml: New file.
10672 * features/s390-vx-linux64.xml: New file.
10673 * features/s390-vx.xml: New file.
10674 * features/s390x-tevx-linux64.xml: New file.
10675 * features/s390x-vx-linux64.xml: New file.
10676 * features/Makefile (WHICH): Add s390-vx-linux64,
10677 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10678 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10679 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10680 macros.
10681 * features/s390-tevx-linux64.c: New generated file.
10682 * features/s390-vx-linux64.c: Likewise.
10683 * features/s390x-tevx-linux64.c: Likewise.
10684 * features/s390x-vx-linux64.c: Likewise.
10685 * regformats/s390-tevx-linux64.dat: Likewise.
10686 * regformats/s390-vx-linux64.dat: Likewise.
10687 * regformats/s390x-tevx-linux64.dat: Likewise.
10688 * regformats/s390x-vx-linux64.dat: Likewise.
10689
10690 2015-02-28 Doug Evans <xdje42@gmail.com>
10691
10692 * symtab.h (struct symtab) <next>: Fix comment.
10693
10694 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10695
10696 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10697 python_GdbMethods.
10698
10699 2015-02-27 Pedro Alves <palves@redhat.com>
10700
10701 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10702
10703 2015-02-27 Pedro Alves <palves@redhat.com>
10704
10705 * common/common-exceptions.h (exception_none): Declare.
10706 * common/common-exceptions.c (exception_none): Moved from
10707 exceptions.c.
10708 (exceptions_state_mc_init): Use exception_none.
10709 * exceptions.c (exception_none): Move to
10710 common/common-exceptions.c.
10711 * exceptions.h (exception_none): Move to
10712 common/common-exceptions.h.
10713
10714 2015-02-27 Pedro Alves <palves@redhat.com>
10715
10716 * main.c (catch_command_errors, catch_command_errors_const):
10717 Remove 'mask' argument. Adjust.
10718 (captured_main): Adjust callers.
10719
10720 2015-02-27 Pedro Alves <palves@redhat.com>
10721
10722 * python/python-internal.h: Include "extension-priv.h".
10723
10724 2015-02-27 Pedro Alves <palves@redhat.com>
10725
10726 * breakpoint.h (enum print_stop_action): Move further up in the
10727 file.
10728
10729 2015-02-27 Pedro Alves <palves@redhat.com>
10730
10731 * gdbarch.sh: Include regcache.h.
10732 * gdbarch.h: Regenerate.
10733
10734 2015-02-27 Pedro Alves <palves@redhat.com>
10735
10736 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10737 Remove duplicate const.
10738 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10739 duplicate const.
10740
10741 2015-02-27 Pedro Alves <palves@redhat.com>
10742
10743 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10744 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10745 * features/feature_to_c.sh: Tag the generated xml_builtin array
10746 with extern const in C++ mode.
10747
10748 2015-02-27 Tom Tromey <tromey@redhat.com>
10749
10750 * minidebug.c (struct lzma_stream): Rename to ...
10751 (struct gdb_lzma_stream): ... this.
10752 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10753
10754 2015-02-27 Pedro Alves <palves@redhat.com>
10755
10756 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10757 function.
10758 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10759 (mi_cmd_stack_list_variables): Use it.
10760
10761 2015-02-27 Pedro Alves <palves@redhat.com>
10762
10763 * x86-linux-nat.c (u_debugreg_offset): New function.
10764 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10765
10766 2015-02-27 Pedro Alves <palves@redhat.com>
10767
10768 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10769 declaration.
10770 Include break-common.h.
10771
10772 2015-02-27 Tom Tromey <tromey@redhat.com>
10773 Pedro Alves <palves@redhat.com>
10774
10775 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10776 local used to iterate over enums.
10777 * completer.c (signal_completer): Likewise.
10778 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10779 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10780 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10781 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10782 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10783 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10784 * tui-wingeneral.c (tui_refresh_all): Likewise.
10785
10786 2015-02-27 Pedro Alves <palves@redhat.com>
10787
10788 * target.h: Include "infrun.h".
10789
10790 2015-02-27 Pedro Alves <palves@redhat.com>
10791
10792 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10793
10794 2015-02-27 Pedro Alves <palves@redhat.com>
10795
10796 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10797 (IPA_SYM): Use it.
10798 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10799
10800 2015-02-27 Pedro Alves <palves@redhat.com>
10801
10802 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10803 cli_mld_erase_entire_line, and make it extern "C".
10804 * common/common-defs.h (EXTERN_C): New.
10805 * completer.c (_rl_completion_prefix_display_length)
10806 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10807 out of gdb_display_match_list_1.
10808 (_rl_qsort_string_compare): Move declaration out of
10809 gdb_display_match_list_1, and make it extern "C".
10810 * defs.h (re_comp): Use EXTERN_C.
10811 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10812 and make it extern "C".
10813 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10814 and make it extern "C".
10815 (main): Move declaration out of maintenance_set_profile_cmd.
10816 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10817 EXTERN_C.
10818
10819 2015-02-27 Pedro Alves <palves@redhat.com>
10820
10821 * python/python.c (GdbMethods): Rename to ...
10822 (python_GdbMethods): ... this and make extern.
10823 (GdbModuleDef): Rename to ...
10824 (python_GdbModuleDef): ... this and make extern.
10825
10826 2015-02-27 Pedro Alves <palves@redhat.com>
10827
10828 * record-btrace.c (set_record_btrace_cmdlist)
10829 (show_record_btrace_cmdlist): Remove redefinitions.
10830
10831 2015-02-27 Tom Tromey <tromey@redhat.com>
10832 Pedro Alves <palves@redhat.com>
10833
10834 * dwarf2-frame.c (enum cfa_how_kind, struct
10835 dwarf2_frame_state_reg_info): Move out of struct
10836 dwarf2_frame_state.
10837 * dwarf2read.c (struct tu_stats): Move out of struct
10838 dwarf2_per_objfile.
10839 (struct file_entry): Move out of struct line_header.
10840 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10841 typedef_field_list): Move out of struct field_info.
10842 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10843 Move out of struct dynamic_prop.
10844 (union type_owner, union field_location, struct field, struct
10845 range_bounds, union type_specific): Move out of struct main_type.
10846 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10847 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10848 (struct call_site_target, union call_site_parameter_u, struct
10849 call_site_parameter): Move out of struct call_site.
10850 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10851 m32c_prologue.
10852 (enum srcdest_kind): Move out of struct srcdest.
10853 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10854 * prologue-value.h (enum prologue_value_kind): Move out of struct
10855 prologue_value.
10856 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10857 gdbarch_tdep.
10858 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10859 out of struct field_info.
10860 * symfile.h (struct other_sections): Move out of struct
10861 section_addr_info.
10862 * symtab.c (struct symbol_cache_slot): Move out struct
10863 block_symbol_cache.
10864 * target-descriptions.c (enum tdesc_type_kind): Move out of
10865 typedef struct tdesc_type.
10866 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10867 struct tui_line_or_address.
10868 * value.c (enum internalvar_kind, union internalvar_data): Move
10869 out of struct internalvar.
10870 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10871 gdbarch_tdep.
10872
10873 2015-02-27 Tom Tromey <tromey@redhat.com>
10874 Pedro Alves <palves@redhat.com>
10875
10876 Rename symbols whose names are reserved C++ keywords throughout.
10877
10878 2015-02-27 Pedro Alves <palves@redhat.com>
10879
10880 * Makefile.in (COMPILER): New, get it from autoconf.
10881 (COMPILE.pre, CC_LD): Use COMPILER.
10882 (CXX): Get from autoconf instead.
10883 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10884 * acinclude.m4: Include build-with-cxx.m4.
10885 * build-with-cxx.m4: New file.
10886 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10887 Disable -Werror by default if building in C++ mode.
10888 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10889 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10890 Run supported-warning-flags tests with the C++ compiler.
10891 Save/restore CXXFLAGS too.
10892 * configure: Regenerate.
10893
10894 2015-02-27 Pedro Alves <palves@redhat.com>
10895
10896 * libiberty.m4: New file.
10897 * acinclude.m4: Include libiberty.m4.
10898 * configure.ac: Call libiberty_INIT.
10899 * config.in, configure: Regenerate.
10900
10901 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10902
10903 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10904 31-bit targets, but 64-bit targets as well.
10905 (s390_gnu_triplet_regexp): New function.
10906 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10907 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10908 method.
10909
10910 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10911
10912 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10913 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10914 from CONTEXT_DEBUGGER.
10915
10916 2015-02-26 Doug Evans <dje@google.com>
10917
10918 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10919 CHECK_TYPEDEF.
10920 (set_type_vptr_fieldno): Ditto.
10921 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10922 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10923
10924 2015-02-26 Pedro Alves <palves@redhat.com>
10925
10926 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10927 * complaints.c (vcomplaint): Pass argument FMT directly to
10928 printf-like functions instead of complaint->fmt.
10929 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10930 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10931 * compile/compile-loc2c.c (pushf, unary, binary): Add
10932 ATTRIBUTE_PRINTF.
10933 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10934 to pushf.
10935 (BINARY): Pass string literal as format string to 'binary'.
10936 * compile/compile-object-load.c (link_callbacks_einfo): Add
10937 ATTRIBUTE_PRINTF.
10938 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10939
10940 2015-02-26 Pedro Alves <palves@redhat.com>
10941
10942 * windows-termcap.c: Rename to ...
10943 * stub-termcap.c: ... this. Adjust header line.
10944 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10945 windows-termcap.c.
10946 * configure: Regenerate.
10947 * configure.ac: Refer to stub-termcap.o instead of
10948 windows-termcap.o.
10949 * gdb_curses.h: Mention stub-termcap.c instead of
10950 windows-termcap.c.
10951
10952 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10953
10954 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10955 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10956
10957 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10958
10959 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10960
10961 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10962
10963 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10964 bfd_canonicalize_symtab.
10965
10966 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10967
10968 * amd64fbsd-nat.c: Include sys/user.h.
10969 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10970 instead of KERN_PS_STRINGS to locate the signal trampoline.
10971 * i386fbsd-nat.c: Include sys/user.h.
10972 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10973 instead of KERN_PS_STRINGS to locate the signal trampoline.
10974 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10975 (amd64fbsd_sigtramp_p): New.
10976 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10977 longer set default values.
10978 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10979 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10980 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10981 (i386fbsd_freebsd4_sigtramp_start)
10982 (i386fbsd_freebsd4_sigtramp_middle)
10983 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10984 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10985 (i386fbsd_sigtramp_p): New.
10986 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10987 longer set default values.
10988 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10989
10990 2015-02-25 John Baldwin <jhb@freebsd.org>
10991
10992 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10993 get_frame_register instead of frame_unwind_register_unsigned.
10994
10995 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 PR build/18033
10998 * compile/compile-c-support.c (c_compute_program): Change // comment.
10999 * compile/compile-object-load.c (setup_sections): Change // comment.
11000
11001 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11002
11003 PR build/18033:
11004 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11005
11006 2015-02-23 Pedro Alves <palves@redhat.com>
11007
11008 * remote.c (skip_to_semicolon): New function.
11009 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11010 special case the stop reasons that look like hex numbers
11011 upfront. Instead handle real register numbers after matching
11012 all the known stop reasons.
11013
11014 2015-02-21 Doug Evans <dje@google.com>
11015
11016 PR c++/17976, symtab/17821
11017 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11018 is_in_anonymous. All callers updated.
11019 (find_symbol_in_baseclass): Ditto.
11020 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11021 for symbols in an anonymous namespace.
11022 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11023 DW_AT_name directly.
11024 (dwarf2_name): Convert missing namespace name to
11025 CP_ANONYMOUS_NAMESPACE_STR.
11026
11027 2015-02-20 Pedro Alves <palves@redhat.com>
11028
11029 * linux-nat.c (linux_handle_extended_wait): Call
11030 thread_db_notice_clone whenever a new clone LWP is detected.
11031 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11032 functions.
11033 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11034 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11035 (linux_unstop_all_lwps): Declare.
11036 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11037 (thread_get_info_callback): Delete.
11038 (thread_from_lwp): Use td_thr_get_info and record_thread.
11039 (thread_db_attach_lwp): Delete.
11040 (thread_db_notice_clone): New function.
11041 (try_thread_db_load_1): If /proc is mounted and shows the
11042 process'es task list, walk over all LWPs and call thread_from_lwp
11043 instead of relying on td_ta_thr_iter.
11044 (attach_thread): Don't call check_thread_signals here. Split the
11045 tail part of the function (which adds the thread to the core GDB
11046 thread list) to ...
11047 (record_thread): ... this function. Call check_thread_signals
11048 here.
11049 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11050 call thread_from_lwp.
11051 (thread_db_update_thread_list): Rename to ...
11052 (thread_db_update_thread_list_org): ... this.
11053 (thread_db_update_thread_list): New function.
11054 (thread_db_find_thread_from_tid): Delete.
11055 (thread_db_get_ada_task_ptid): Simplify.
11056 * nat/linux-procfs.c: Include <sys/stat.h>.
11057 (linux_proc_task_list_dir_exists): New function.
11058 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11059
11060 2015-02-20 Pedro Alves <palves@redhat.com>
11061
11062 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11063 main LWP. Handle the case of waitpid returning 0 if we're already
11064 attached to the LWP. Don't set the LWP's last_resume_kind to
11065 resume_stop if we already knew about the LWP.
11066 (linux_nat_filter_event): Add debug logs.
11067
11068 2015-02-20 Pedro Alves <palves@redhat.com>
11069
11070 * target.h (forward_target_decr_pc_after_break): Delete
11071 declaration.
11072
11073 2015-02-20 Pedro Alves <palves@redhat.com>
11074
11075 PR threads/18006
11076 * linux-thread-db.c (thread_get_info_callback): Return early if
11077 the thread's lwp id is -1.
11078
11079 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11080
11081 GDB 7.9 released.
11082
11083 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11084
11085 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11086 (dtrace_get_probes) Change type of variable 'dof'.
11087
11088 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11089
11090 PR breakpoints/16812
11091 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11092 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11093 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11094
11095 2015-02-19 David Taylor <dtaylor@emc.com>
11096
11097 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11098
11099 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11100
11101 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11102 function.
11103 (tui_putc): Don't call tui_handle_resize_during_io.
11104 (tui_getc): Likewise.
11105 (tui_mld_getc): Likewise.
11106 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11107 (tui_sigwinch_token): New static variable.
11108 (tui_initialize_win): Adjust documentation. Set
11109 tui_sigwinch_token.
11110 (tui_async_resize_screen): New asynchronous callback.
11111 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11112 invoke tui_async_resize_screen.
11113
11114 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11115
11116 * configure: Regenerated.
11117 * configure.ac: Use GDB_AC_TRANSFORM.
11118 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11119 * acinclude.m4: sinclude transform.m4.
11120 * transform.m4: New file.
11121 (GDB_AC_TRANSFORM): New macro.
11122
11123 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11124
11125 * NEWS: Announce the support for DTrace SDT probes.
11126
11127 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11128
11129 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11130 (amd64_dtrace_parse_probe_argument): New function.
11131 (amd64_dtrace_probe_is_enabled): Likewise.
11132 (amd64_dtrace_enable_probe): Likewise.
11133 (amd64_dtrace_disable_probe): Likewise.
11134 (amd64_linux_init_abi): Register the
11135 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11136 `gdbarch_dtrace_disable_probe' and
11137 `gdbarch_dtrace_probe_is_enabled' hooks.
11138 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11139 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11140 (amd64_dtrace_enable_probe_sequence): Likewise.
11141 (amd64_dtrace_disable_probe_sequence): Likewise.
11142
11143 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11144
11145 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11146 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11147 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11148 handle ELF files.
11149 * Makefile.in (SFILES): dtrace-probe.c added.
11150 * configure: Regenerate.
11151 * dtrace-probe.c: New file.
11152 (SHT_SUNW_dof): New constant.
11153 (dtrace_probe_type): New enum.
11154 (dtrace_probe_arg): New struct.
11155 (dtrace_probe_arg_s): New typedef.
11156 (struct dtrace_probe_enabler): New struct.
11157 (dtrace_probe_enabler_s): New typedef.
11158 (dtrace_probe): New struct.
11159 (dtrace_probe_is_linespec): New function.
11160 (dtrace_dof_sect_type): New enum.
11161 (dtrace_dof_dofh_ident): Likewise.
11162 (dtrace_dof_encoding): Likewise.
11163 (DTRACE_DOF_ENCODE_LSB): Likewise.
11164 (DTRACE_DOF_ENCODE_MSB): Likewise.
11165 (dtrace_dof_hdr): New struct.
11166 (dtrace_dof_sect): Likewise.
11167 (dtrace_dof_provider): Likewise.
11168 (dtrace_dof_probe): Likewise.
11169 (DOF_UINT): New macro.
11170 (DTRACE_DOF_PTR): Likewise.
11171 (DTRACE_DOF_SECT): Likewise.
11172 (dtrace_process_dof_probe): New function.
11173 (dtrace_process_dof): Likewise.
11174 (dtrace_build_arg_exprs): Likewise.
11175 (dtrace_get_arg): Likewise.
11176 (dtrace_get_probes): Likewise.
11177 (dtrace_get_probe_argument_count): Likewise.
11178 (dtrace_can_evaluate_probe_arguments): Likewise.
11179 (dtrace_evaluate_probe_argument): Likewise.
11180 (dtrace_compile_to_ax): Likewise.
11181 (dtrace_probe_destroy): Likewise.
11182 (dtrace_gen_info_probes_table_header): Likewise.
11183 (dtrace_gen_info_probes_table_values): Likewise.
11184 (dtrace_probe_is_enabled): Likewise.
11185 (dtrace_probe_ops): New variable.
11186 (info_probes_dtrace_command): New function.
11187 (_initialize_dtrace_probe): Likewise.
11188 (dtrace_type_name): Likewise.
11189
11190 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11191
11192 * gdbarch.sh (dtrace_parse_probe_argument): New.
11193 (dtrace_probe_is_enabled): Likewise.
11194 (dtrace_enable_probe): Likewise.
11195 (dtrace_disable_probe): Likewise.
11196 * gdbarch.c: Regenerate.
11197 * gdbarch.h: Regenerate.
11198
11199 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11200
11201 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11202 stap_probe_ops for `enable_probe' and `disable_probe'.
11203 * probe.c (enable_probes_command): New function.
11204 (disable_probes_command): Likewise.
11205 (_initialize_probe): Define the cli commands `enable probe' and
11206 `disable probe'.
11207 (parse_probe_linespec): New function.
11208 (info_probes_for_ops): Use parse_probe_linespec.
11209 * probe.h (probe_ops): New hooks `enable_probe' and
11210 `disable_probe'.
11211
11212 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11213
11214 * probe.c (compute_probe_arg): Moved from stap-probe.c
11215 (compile_probe_arg): Likewise.
11216 (probe_funcs): Likewise.
11217 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11218 (compile_probe_arg): Likewise.
11219 (probe_funcs): Likewise.
11220
11221 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11222
11223 * probe.c (print_ui_out_not_applicables): New function.
11224 (exists_probe_with_pops): Likewise.
11225 (info_probes_for_ops): Do not include column headers for probe
11226 types for which no probe has been actually found on any object.
11227 Also invoke `print_ui_out_not_applicables' in order to match the
11228 column rows with the header when probes of several types are
11229 listed.
11230 Print the "Type" column.
11231 * probe.h (probe_ops): Added a new probe operation `type_name'.
11232 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11233 (stap_type_name): New function.
11234
11235 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11236
11237 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11238 (key_is_command_char): Delete.
11239
11240 2015-02-17 Pedro Alves <palves@redhat.com>
11241
11242 * tui/tui.c (tui_enable): Resize windows before anything
11243 might show a window.
11244
11245 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11246
11247 PR gdb/17984
11248 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11249 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11250 call.
11251 * aarch64-tdep.h (tdesc_aarch64): Declare.
11252
11253 2015-02-12 Mark Wielaard <mjw@redhat.com>
11254
11255 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11256
11257 2015-02-13 Doug Evans <dje@google.com>
11258
11259 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11260 anonymous_namespace to is_in_anonymous for consistency with the rest
11261 of the file.
11262 (cp_lookup_bare_symbol): Fix typo in comment.
11263 (cp_search_static_and_baseclasses): Ditto.
11264 (search_symbol_list): Use vertical space in comment better.
11265 (reset_directive_searched): Ditto. Fix typo.
11266 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11267
11268 2015-02-13 Yao Qi <yao.qi@arm.com>
11269
11270 * MAINTAINERS: Update my email address.
11271
11272 2015-02-12 Doug Evans <dje@google.com>
11273
11274 * symtab.c (completion_list_add_name): Fix memory leak.
11275
11276 2015-02-12 Doug Evans <dje@google.com>
11277
11278 * completer.c (complete_line): Remove incorrect comment.
11279
11280 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11281
11282 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11283 (py_print_frame): Use RETURN_MASK_ERROR.
11284
11285 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11286
11287 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11288 function comment. Wrap all function that can throw in cleanups.
11289 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11290 cleanups.
11291
11292 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11293
11294 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11295 Remove the error label.
11296
11297 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11298
11299 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11300 with goto first, indent the former else codepath left. Put variable
11301 'elided' to a new inner block.
11302
11303 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11304
11305 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11306
11307 2015-02-11 Pedro Alves <palves@redhat.com>
11308
11309 * xcoffread.c (within_function): Delete.
11310
11311 2015-02-11 Tom Tromey <tromey@redhat.com>
11312 Pedro Alves <palves@redhat.com>
11313
11314 * breakpoint.c (base_breakpoint_ops): Delete.
11315 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11316 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11317 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11318 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11319 * python/py-arch.c (arch_object_type): Make extern.
11320 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11321 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11322 * python/py-cmd.c (cmdpy_object_type): Make extern.
11323 * python/py-continueevent.c (continue_event_object_type)
11324 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11325 parameter. Update all callers.
11326 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11327 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11328 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11329 * python/py-function.c (fnpy_object_type): Make extern.
11330 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11331 * python/py-infevents.c (call_pre_event_object_type)
11332 (inferior_call_post_event_object_type).
11333 (memory_changed_event_object_type): Make extern.
11334 * python/py-infthread.c (thread_object_type): Make extern.
11335 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11336 * python/py-linetable.c (linetable_entry_object_type)
11337 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11338 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11339 (clear_objfiles_event_object_type): Make extern.
11340 * python/py-objfile.c (objfile_object_type): Make extern.
11341 * python/py-param.c (parmpy_object_type): Make extern.
11342 * python/py-progspace.c (pspace_object_type): Make extern.
11343 * python/py-signalevent.c (signal_event_object_type): Make extern.
11344 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11345 * python/py-type.c (type_object_type, field_object_type)
11346 (type_iterator_object_type): Make extern.
11347 * python/python.c (python_extension_script_ops)
11348 (python_extension_ops): Make extern.
11349 * stap-probe.c (stap_probe_ops): Make extern.
11350
11351 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11352
11353 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11354 because the event thread is not the current thread.
11355
11356 2015-02-11 Doug Evans <xdje42@gmail.com>
11357
11358 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11359 been initialized yet, return NULL.
11360
11361 2015-02-11 Doug Evans <dje@google.com>
11362
11363 * symfile.h (new_symfile_objfile): Delete.
11364 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11365 All callers updated.
11366
11367 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11368
11369 * tui/tui-io.c (tui_handle_resize_during_io): Call
11370 tui_update_gdb_sizes() after resizing the screen.
11371 * tui/tui.c (tui_enable): Resize the terminal before
11372 calling tui_update_gdb_sizes().
11373
11374 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11375
11376 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11377 line before printing a newline.
11378
11379 2015-02-11 Mark Wielaard <mjw@redhat.com>
11380
11381 * utils.c (producer_is_gcc): Return true or false.
11382
11383 2015-02-10 Mark Wielaard <mjw@redhat.com>
11384
11385 * utils.h (producer_is_gcc): Change return type to bool. Add major
11386 argument.
11387 * utils.c (producer_is_gcc): Likewise.
11388 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11389 * dwarf2read.c (check_producer): Likewise.
11390
11391 2015-02-10 Pedro Alves <palves@redhat.com>
11392
11393 * infrun.c (displaced_step_fixup): Switch to the event thread
11394 before calling gdbarch_displaced_step_fixup.
11395
11396 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11397
11398 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11399
11400 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11401
11402 * ada-varobj.c (ada_name_of_child): Constify parent.
11403 (ada_path_expr_of_child): Same.
11404 (ada_value_of_child): Same.
11405 (ada_type_of_child): Same.
11406 * c-varobj.c (c_is_path_expr_parent): Same.
11407 (c_describe_child): Same.
11408 (c_name_of_child): Same.
11409 (c_value_of_child): Same.
11410 (c_type_of_child): Same.
11411 (cplus_number_of_children): Same.
11412 (cplus_describe_child): Constify var.
11413 (cplus_name_of_child): Constify parent.
11414 (cplus_value_of_child): Same.
11415 (cplus_type_of_child): Same.
11416 * jv-varobj.c (java_name_of_child): Same.
11417 (java_value_of_child): Same.
11418 (java_type_of_child): Same.
11419 * varobj.c (value_of_child): Same.
11420 (varobj_default_is_path_expr_parent): Constify var, parent and return
11421 value.
11422 (varobj_get_path_expr): Constify var, modify path_expr through
11423 mutable_var.
11424 (install_new_value): Constify parent.
11425 (value_of_child): Constify parent.
11426 * varobj.h (struct varobj): Constify parent.
11427 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11428 type_of_child.
11429 (varobj_get_path_expr): Constify var.
11430 (varobj_get_path_expr_parent): Constify var and return value.
11431
11432 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11433
11434 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11435 (arm_prologue_this_id): Move PC and SP limit checks to
11436 arm_prologue_unwind_stop_reason.
11437 (arm_prologue_unwind) <stop_reason> : Set to
11438 arm_prologue_unwind_stop_reason.
11439
11440 2015-02-09 Mark Wielaard <mjw@redhat.com>
11441
11442 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11443 DW_LANG_Fortran08 as language_fortran.
11444
11445 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11446
11447 PR remote/17946
11448 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11449 of pointer against char.
11450
11451 2015-02-09 Mark Wielaard <mjw@redhat.com>
11452
11453 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11454 (c_type_print_modifier): Likewise.
11455 * dwarf2read.c (read_tag_atomic_type): New function.
11456 (read_type_die_1): Handle DW_TAG_atomic_type.
11457 * gdbtypes.c (make_atomic_type): New function.
11458 (recursive_dump_type): Handle TYPE_ATOMIC.
11459 * gdbtypes.h (enum type_flag_values): Renumber.
11460 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11461 (TYPE_ATOMIC): New macro.
11462 (make_atomic_type): Declare.
11463
11464 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11465
11466 * btrace.c (ftrace_find_call): Skip gaps.
11467 (ftrace_new_function): Initialize level.
11468 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11469 (ftrace_new_switch): Update
11470 level computation.
11471 (ftrace_new_gap): New.
11472 (ftrace_update_function): Create new function after gap.
11473 (btrace_compute_ftrace_bts): Create gap on error.
11474 (btrace_stitch_bts): Update parameters. Clear trace if it
11475 becomes empty.
11476 (btrace_stitch_trace): Update parameters. Update callers.
11477 (btrace_clear): Reset the number of gaps.
11478 (btrace_insn_get): Return NULL if the iterator points to a gap.
11479 (btrace_insn_number): Return zero if the iterator points to a gap.
11480 (btrace_insn_end): Allow gaps at the end.
11481 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11482 (btrace_find_insn_by_number): Assert that the found iterator does
11483 not point to a gap.
11484 (btrace_call_next, btrace_call_prev): Assert that the last function
11485 is not a gap.
11486 * btrace.h (btrace_bts_error): New.
11487 (btrace_function): Update comment.
11488 (btrace_function) <insn, insn_offset, number>: Update comment.
11489 (btrace_function) <errcode>: New.
11490 (btrace_thread_info) <ngaps>: New.
11491 (btrace_thread_info) <replay>: Update comment.
11492 (btrace_insn_get): Update comment.
11493 * record-btrace.c (btrace_ui_out_decode_error): New.
11494 (record_btrace_info): Print number of gaps.
11495 (btrace_insn_history, btrace_call_history): Call
11496 btrace_ui_out_decode_error for gaps.
11497 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11498
11499 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11500
11501 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11502 * nat/linux-btrace.c: (btrace_this_cpu): New.
11503 (cpu_supports_bts): Call btrace_this_cpu.
11504 (intel_supports_bts): Add cpu parameter.
11505
11506 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11507
11508 * btrace.h (btrace_insn_class): New.
11509 (btrace_insn) <size, iclass>: New.
11510 * btrace.c (ftrace_find_call): Update parameters. Update users.
11511 Use instruction classification.
11512 (ftrace_new_return): Update parameters. Update users.
11513 (ftrace_update_function): Update parameters. Update users. Use
11514 instruction classification.
11515 (ftrace_update_insns): Update parameters. Update users.
11516 (ftrace_classify_insn): New.
11517 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11518 TRY_CATCH around call to gdb_insn_length.
11519
11520 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11521
11522 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11523 Update parameters. Update users.
11524
11525 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11526
11527 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11528 (btrace_conf_bts_attributes): New.
11529 (btrace_conf_children): Add attributes.
11530 * common/btrace-common.h (btrace_config_bts): New.
11531 (btrace_config)<bts>: New.
11532 (btrace_config): Update comment.
11533 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11534 Use config.
11535 * features/btrace-conf.dtd: Increment version. Add size
11536 attribute to bts element.
11537 * record-btrace.c (set_record_btrace_bts_cmdlist,
11538 show_record_btrace_bts_cmdlist): New.
11539 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11540 record_btrace_print_conf, cmd_set_record_btrace_bts,
11541 cmd_show_record_btrace_bts): New.
11542 (record_btrace_info): Call record_btrace_print_conf.
11543 (_initialize_record_btrace): Add commands.
11544 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11545 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11546 (btrace_sync_conf): Synchronize bts size.
11547 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11548 * NEWS: Announce new commands and new packets.
11549
11550 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11551
11552 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11553 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11554 (x86_linux_btrace_conf): New.
11555 (x86_linux_create_target): Initialize to_btrace_conf.
11556 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11557 Check format. Split into this and ...
11558 (linux_enable_bts): ... this.
11559 (linux_btrace_conf): New.
11560 (perf_event_skip_record): Renamed into ...
11561 (perf_event_skip_bts_record): ... this. Updated users.
11562 (linux_disable_btrace): Split into this and ...
11563 (linux_disable_bts): ... this.
11564 (linux_read_btrace): Check format.
11565 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11566 (linux_btrace_conf): New.
11567 (btrace_target_info)<ptid>: Moved.
11568 (btrace_target_info)<conf>: New.
11569 (btrace_target_info): Split into this and ...
11570 (btrace_tinfo_bts): ... this. Updated users.
11571 * btrace.c (btrace_enable): Update parameters.
11572 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11573 (btrace_conf_children, btrace_conf_attributes)
11574 (btrace_conf_elements): New.
11575 * btrace.h (btrace_enable): Update parameters.
11576 (btrace_conf, parse_xml_btrace_conf): New.
11577 * common/btrace-common.h (btrace_config): New.
11578 * feature/btrace-conf.dtd: New.
11579 * record-btrace.c (record_btrace_conf): New.
11580 (record_btrace_cmdlist): New.
11581 (record_btrace_enable_warn, record_btrace_open): Pass
11582 &record_btrace_conf.
11583 (record_btrace_info): Print recording format.
11584 (cmd_record_btrace_bts_start): New.
11585 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11586 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11587 Add "record bts" alias command.
11588 * remote.c (remote_state)<btrace_config>: New.
11589 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11590 (remote_protocol_features): Add qXfer:btrace-conf:read.
11591 (remote_open_1): Call remote_btrace_reset.
11592 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11593 (btrace_target_info)<conf>: New.
11594 (btrace_sync_conf, btrace_read_config): New.
11595 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11596 btrace_read_conf.
11597 (remote_btrace_conf): New.
11598 (init_remote_ops): Initialize to_btrace_conf.
11599 (_initialize_remote): Add qXfer:btrace-conf packet.
11600 * target.c (target_enable_btrace): Update parameters.
11601 (target_btrace_conf): New.
11602 * target.h (target_enable_btrace): Update parameters.
11603 (target_btrace_conf): New.
11604 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11605 (target_ops)<to_enable_btrace>: Update parameters and comment.
11606 (target_ops)<to_btrace_conf>: New.
11607 * target-delegates: Regenerate.
11608 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11609 (target_debug_print_const_struct_btrace_target_info_p): New.
11610 * NEWS: Announce new command and new packet.
11611
11612 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11613
11614 * nat/linux-btrace.h (perf_event_buffer): New.
11615 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11616 <bts>: ... this.
11617 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11618 (perf_event_buffer_size, perf_event_buffer_begin)
11619 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11620 Updated users.
11621 (perf_event_new_data): New.
11622
11623 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11624
11625 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11626 * record-btrace.c (record_btrace_open): Remove call to
11627 target_supports_btrace.
11628 * remote.c (remote_supports_btrace): Update parameters.
11629 * target.c (target_supports_btrace): Update parameters.
11630 * target.h (to_supports_btrace, target_supports_btrace): Update
11631 parameters.
11632 * target-delegates.c: Regenerate.
11633 * target-debug.h (target_debug_print_enum_btrace_format): New.
11634 * nat/linux-btrace.c
11635 (kernel_supports_btrace): Rename into ...
11636 (kernel_supports_bts): ... this. Update users. Update warning text.
11637 (intel_supports_btrace): Rename into ...
11638 (intel_supports_bts): ... this. Update users.
11639 (cpu_supports_btrace): Rename into ...
11640 (cpu_supports_bts): ... this. Update users.
11641 (linux_supports_btrace): Update parameters. Split into this and ...
11642 (linux_supports_bts): ... this.
11643 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11644
11645 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11646
11647 * Makefile.in (SFILES): Add common/btrace-common.c.
11648 (COMMON_OBS): Add common/btrace-common.o.
11649 (btrace-common.o): Add build rules.
11650 * btrace.c (parse_xml_btrace): Update parameters.
11651 (parse_xml_btrace_block): Set format field.
11652 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11653 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11654 (btrace_compute_ftrace): Split into this and...
11655 (btrace_compute_ftrace_bts): ...this.
11656 (btrace_stitch_trace): Split into this and...
11657 (btrace_stitch_bts): ...this.
11658 * btrace.h (parse_xml_btrace): Update parameters.
11659 (make_cleanup_btrace_data): New.
11660 * common/btrace-common.c: New.
11661 * common/btrace-common.h: Include common-defs.h.
11662 (btrace_block_s): Update comment.
11663 (btrace_format): New.
11664 (btrace_format_string): New.
11665 (btrace_data_bts): New.
11666 (btrace_data): New.
11667 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11668 * remote.c (remote_read_btrace): Update parameters.
11669 * target.c (target_read_btrace): Update parameters.
11670 * target.h (target_read_btrace): Update parameters.
11671 (target_ops)<to_read_btrace>: Update parameters.
11672 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11673 * target-delegates.c: Regenerate.
11674 * target-debug (target_debug_print_struct_btrace_data_p): New.
11675 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11676 (linux_read_bts): ...this.
11677 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11678
11679 2015-02-06 Doug Evans <dje@google.com>
11680
11681 * remote-m32r-sdi.c: Include symfile.h.
11682
11683 2015-02-06 Doug Evans <dje@google.com>
11684
11685 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11686 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11687 to here.
11688
11689 2015-02-06 Pedro Alves <palves@redhat.com>
11690
11691 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11692
11693 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11694
11695 PR gdb/15678
11696 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11697 (enable_count_command): Check args for NULL value.
11698
11699 2015-02-05 Doug Evans <xdje42@gmail.com>
11700
11701 * guile/scm-frame.c: Fix spelling errors in a comment.
11702
11703 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11704
11705 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11706 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11707 return type.
11708
11709 2015-02-04 Pedro Alves <palves@redhat.com>
11710
11711 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11712 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11713 returns true.
11714 (resume_stopped_resumed_lwps): Don't check whether the thread is
11715 marked as executing.
11716 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11717
11718 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11719
11720 * regset.h (struct regset): Add flags field.
11721 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11722 * corelow.c (get_core_register_section): Add warning if the size
11723 exceeds the requested size and the regset does not have the
11724 REGSET_VARIABLE_SIZE flag set.
11725 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11726 flag.
11727 * armbsd-tdep.c (armbsd_gregset): Likewise.
11728 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11729 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11730 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11731 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11732
11733 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11734
11735 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11736 For ".reg-xstate", explicitly specify the requested section size
11737 via X86_XSTATE_SIZE instead of just 0 on input and
11738 X86_XSTATE_MAX_SIZE on output.
11739 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11740 Likewise.
11741
11742 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11743
11744 PR corefiles/17808:
11745 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11746 function type, particularly its SIZE parameter.
11747 * gdbarch.h: Regenerate.
11748 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11749 actual against required size using ">=" instead of "==".
11750 (amd64_collect_fpregset): Likewise.
11751 * i386-tdep.c (i386_supply_gregset): Likewise.
11752 (i386_collect_gregset): Likewise.
11753 (i386_supply_fpregset): Likewise.
11754 (i386_collect_fpregset): Likewise.
11755 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11756 (mips_fill_gregset_wrapper): Likewise.
11757 (mips_supply_fpregset_wrapper): Likewise.
11758 (mips_fill_fpregset_wrapper): Likewise.
11759 (mips64_supply_gregset_wrapper): Likewise.
11760 (mips64_fill_gregset_wrapper): Likewise.
11761 (mips64_supply_fpregset_wrapper): Likewise.
11762 (mips64_fill_fpregset_wrapper): Likewise.
11763 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11764 (am33_supply_fpregset_method): Likewise.
11765 (am33_collect_gregset_method): Likewise.
11766 (am33_collect_fpregset_method): Likewise.
11767
11768 2015-02-04 Doug Evans <dje@google.com>
11769 Pedro Alves <palves@redhat.com>
11770 Eli Zaretskii <eliz@gnu.org>
11771
11772 PR tui/17810
11773 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11774 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11775 * tui/tui-file.c: #include tui/tui-command.h.
11776 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11777 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11778 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11779
11780 2015-02-04 Pedro Alves <palves@redhat.com>
11781
11782 Fix build breakage.
11783 * event-loop.c (gdb_do_one_event): Add default switch case.
11784
11785 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11786
11787 Filter out inferior gcc option -fpreprocessed.
11788 * compile/compile.c (filter_args): New function.
11789 (get_args): Use it.
11790
11791 2015-02-03 Pedro Alves <palves@redhat.com>
11792
11793 * event-loop.c: Don't declare nor define a queue type for
11794 gdb_event_p.
11795 (event_queue): Delete.
11796 (create_event, create_file_event, gdb_event_xfree)
11797 (initialize_event_loop, process_event): Delete.
11798 (gdb_do_one_event): Return as soon as one event is handled.
11799 (handle_file_event): Change prototype. Used the passed in
11800 file_handler pointer and ready_mask instead of looping over all
11801 file handlers.
11802 (gdb_wait_for_event): Update the poll/select timeouts before
11803 blocking. Run event handlers directly instead of queueing events.
11804 Return as soon as one event is handled.
11805 (struct async_event_handler_data): Delete.
11806 (invoke_async_event_handler): Delete.
11807 (check_async_event_handlers): Change return type to int. Run
11808 event handlers directly instead of queueing events. Return as
11809 soon as one event is handled.
11810 (handle_timer_event): Delete.
11811 (update_wait_timeout): New function, factored out from
11812 poll_timers.
11813 (poll_timers): Reimplement.
11814 * event-loop.h (initialize_event_loop): Delete declaration.
11815 * top.c (gdb_init): Don't call initialize_event_loop.
11816
11817 2015-02-03 Pedro Alves <palves@redhat.com>
11818
11819 * event-loop.c (clear_async_event_handler): New function.
11820 * event-loop.h (clear_async_event_handler): New declaration.
11821 * record-btrace.c (record_btrace_async): New function.
11822 (init_record_btrace_ops): Install record_btrace_async.
11823 * record-full.c (record_full_async): New function.
11824 (record_full_resume): Don't mark the async event source here.
11825 (init_record_full_ops): Install record_full_async.
11826 (record_full_core_resume): Don't mark the async event source here.
11827 (init_record_full_core_ops): Install record_full_async.
11828 * remote.c (remote_async): Mark and clear the async stop reply
11829 queue event-loop token as appropriate.
11830
11831 2015-02-03 Pedro Alves <palves@redhat.com>
11832
11833 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11834 target_is_async_p instead of target_can_async.
11835 (linux_nat_wait): Use target_is_async_p instead of
11836 target_can_async. Don't enable async here.
11837 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11838 target_is_async_p instead of target_can_async.
11839
11840 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11841
11842 * varobj.h (lang_varobj_ops): Mention which return values need
11843 to be freed.
11844
11845 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11846
11847 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11848
11849 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11850
11851 PR gdb/17856:
11852 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11853 results found in the cache.
11854
11855 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11856
11857 PR gdb/17854:
11858 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11859 when allocating a new one.
11860
11861 2015-02-01 Tom Tromey <tom@tromey.com>
11862
11863 * MAINTAINERS: Remove myself.
11864
11865 2015-01-31 Doug Evans <xdje42@gmail.com>
11866
11867 * dwarf2read.c (process_structure_scope): Update setting of
11868 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11869 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11870 (set_type_vptr_fieldno): New function.
11871 (internal_type_vptr_basetype): New function.
11872 (set_type_vptr_basetype): New function.
11873 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11874 TYPE_VPTR_BASETYPE.
11875 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11876 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11877 (print_cplus_stuff): ... moved here.
11878 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11879 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11880 moved to ...
11881 (struct cplus_struct_type): ... here. All uses updated.
11882 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11883 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11884 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11885 * stabsread.c (read_tilde_fields): Update setting of
11886 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11887
11888 2015-01-31 Doug Evans <xdje42@gmail.com>
11889
11890 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11891 to self_p.
11892 (cp_print_class_member): Rename local domain to self_type.
11893 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11894 domain_type to self_type.
11895 (set_die_type) <need_gnat_info>: Handle
11896 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11897 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11898 TYPE_SPECIFIC_SELF_TYPE.
11899 * gdbtypes.c (internal_type_self_type): New function.
11900 (set_type_self_type): New function.
11901 (smash_to_memberptr_type): Rename parameter domain to self_type.
11902 Update setting of TYPE_SELF_TYPE.
11903 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11904 (smash_to_method_type): Rename parameter domain to self_type.
11905 Update setting of TYPE_SELF_TYPE.
11906 (check_stub_method): Call smash_to_method_type.
11907 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11908 (copy_type_recursive): Ditto.
11909 * gdbtypes.h (enum type_specific_kind): New value
11910 TYPE_SPECIFIC_SELF_TYPE.
11911 (struct main_type) <type_specific>: New member self_type.
11912 (struct cplus_struct_type) <fn_field.type>: Update comment.
11913 (TYPE_SELF_TYPE): Rewrite.
11914 (internal_type_self_type, set_type_self_type): Declare.
11915 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11916 self_type.
11917 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11918 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11919 TYPE_TARGET_TYPE.
11920 * stabsread.c (read_member_functions): Mark methods with
11921 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11922 TYPE_SELF_TYPE.
11923
11924 2015-01-31 Doug Evans <xdje42@gmail.com>
11925
11926 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11927 All uses updated.
11928
11929 2015-01-31 Doug Evans <xdje42@gmail.com>
11930
11931 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11932 or unions. Return zero if union.
11933 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11934 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11935 gnuv3_get_vtable.
11936 (compute_vtable_size): Assert only passed structs.
11937 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11938
11939 2015-01-31 Doug Evans <xdje42@gmail.com>
11940
11941 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11942 kinds.
11943
11944 2015-01-31 Gary Benson <gbenson@redhat.com>
11945 Doug Evans <dje@google.com>
11946
11947 PR cli/9007
11948 PR cli/11920
11949 PR cli/15548
11950 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11951 reached.
11952 * common/common-exceptions.h (enum errors)
11953 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11954 * completer.h (get_max_completions_reached_message): New declaration.
11955 (max_completions): Likewise.
11956 (completion_tracker_t): New typedef.
11957 (new_completion_tracker): New declaration.
11958 (make_cleanup_free_completion_tracker): Likewise.
11959 (maybe_add_completion_enum): New enum.
11960 (maybe_add_completion): New declaration.
11961 (throw_max_completions_reached_error): Likewise.
11962 * completer.c (max_completions): New global variable.
11963 (new_completion_tracker): New function.
11964 (free_completion_tracker): Likewise.
11965 (make_cleanup_free_completion_tracker): Likewise.
11966 (maybe_add_completions): Likewise.
11967 (throw_max_completions_reached_error): Likewise.
11968 (complete_line): Remove duplicates and limit result to max_completions
11969 entries.
11970 (get_max_completions_reached_message): New function.
11971 (gdb_display_match_list): Handle max_completions.
11972 (_initialize_completer): New declaration and function.
11973 * symtab.c: Include completer.h.
11974 (completion_tracker): New static variable.
11975 (completion_list_add_name): Call maybe_add_completion.
11976 (default_make_symbol_completion_list_break_on_1): Renamed from
11977 default_make_symbol_completion_list_break_on. Maintain
11978 completion_tracker across calls to completion_list_add_name.
11979 (default_make_symbol_completion_list_break_on): New function.
11980 * top.c (init_main): Set rl_completion_display_matches_hook.
11981 * tui/tui-io.c: Include completer.h.
11982 (tui_old_rl_display_matches_hook): New static global.
11983 (tui_rl_display_match_list): Notify user if max-completions reached.
11984 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11985 * NEWS (New Options): Mention set/show max-completions.
11986
11987 2015-01-31 Gary Benson <gbenson@redhat.com>
11988
11989 * symtab.c (struct add_name_data) <code>: New field.
11990 Updated comments.
11991 (add_symtab_completions): New function.
11992 (symtab_expansion_callback): Likewise.
11993 (default_make_symbol_completion_list_break_on): Set datum.code.
11994 Move minimal symbol scan before calling expand_symtabs_matching.
11995 Scan known primary symtabs for externs and statics before calling
11996 expand_symtabs_matching. Pass symtab_expansion_callback as
11997 expansion_notify argument to expand_symtabs_matching. Do not scan
11998 primary symtabs for externs and statics after calling
11999 expand_symtabs_matching.
12000
12001 2015-01-31 Gary Benson <gbenson@redhat.com>
12002
12003 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12004 (struct quick_symbol_functions) <expand_symtabs_matching>:
12005 New argument expansion_notify. All uses updated.
12006 (expand_symtabs_matching): New argument expansion_notify.
12007 All uses updated.
12008 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12009 Also print expansion notify.
12010 * symtab.c (expand_symtabs_matching_via_partial): Call
12011 expansion_notify whenever a partial symbol table is expanded.
12012 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12013 expansion_notify whenever a symbol table is instantiated.
12014
12015 2015-01-31 Doug Evans <xdje42@gmail.com>
12016
12017 * cli-out.c: #include completer.h, readline/readline.h.
12018 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12019 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12020 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12021 * cli-out.h (cli_display_match_list): Declare.
12022 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12023 (ELLIPSIS_LEN): Ditto.
12024 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12025 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12026 (gdb_fnprint, gdb_print_filename): Ditto.
12027 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12028 (gdb_display_match_list): Ditto.
12029 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12030 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12031 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12032 (match_list_displayer): New struct.
12033 (gdb_display_match_list): Declare.
12034 * top.c (init_main): Set rl_completion_display_matches_hook.
12035 * tui/tui-io.c: #include completer.h.
12036 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12037 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12038 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12039 (tui_mld_getc, tui_mld_read_key): Ditto.
12040 (tui_rl_display_match_list): Rewrite.
12041 (tui_handle_resize_during_io): New arg for_completion. All callers
12042 updated.
12043
12044 2015-01-31 Doug Evans <xdje42@gmail.com>
12045
12046 Add symbol lookup cache.
12047 * NEWS: Document new options and commands.
12048 * symtab.c (symbol_cache_key): New static global.
12049 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12050 (SYMBOL_LOOKUP_FAILED): New macro.
12051 (symbol_cache_slot_state): New enum.
12052 (block_symbol_cache): New struct.
12053 (symbol_cache): New struct.
12054 (new_symbol_cache_size, symbol_cache_size): New static globals.
12055 (hash_symbol_entry, eq_symbol_entry): New functions.
12056 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12057 (make_symbol_cache, free_symbol_cache): New functions.
12058 (get_symbol_cache, symbol_cache_cleanup): New function.
12059 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12060 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12061 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12062 (symbol_cache_flush, symbol_cache_dump): New functions.
12063 (maintenance_print_symbol_cache): New function.
12064 (maintenance_flush_symbol_cache): New function.
12065 (symbol_cache_stats): New function.
12066 (maintenance_print_symbol_cache_statistics): New function.
12067 (symtab_new_objfile_observer): New function.
12068 (symtab_free_objfile_observer): New function.
12069 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12070 (_initialize_symtab): Init symbol_cache_key. New parameter
12071 maint symbol-cache-size. New maint commands print symbol-cache,
12072 print symbol-cache-statistics, flush-symbol-cache.
12073 Install new_objfile, free_objfile observers.
12074
12075 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12076
12077 PR symtab/17855
12078 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12079 to end.
12080
12081 2015-01-31 Doug Evans <xdje42@gmail.com>
12082
12083 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12084 * auto-load.c: #include ctype.h.
12085 (struct auto_load_pspace_info): Replace member loaded_scripts with
12086 new members loaded_script_files, loaded_script_texts.
12087 (auto_load_pspace_data_cleanup): Update.
12088 (init_loaded_scripts_info): Update.
12089 (get_auto_load_pspace_data_for_loading): Update.
12090 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12091 updated.
12092 (maybe_add_script_text): New function.
12093 (clear_section_scripts): Update.
12094 (source_script_file, execute_script_contents): New functions.
12095 (source_section_scripts): Add support for
12096 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12097 (print_scripts): New function.
12098 (auto_load_info_scripts): Also print inlined scripts.
12099 (maybe_print_unsupported_script_warning): Renamed from
12100 unsupported_script_warning_print. All callers updated.
12101 (maybe_print_script_not_found_warning): Renamed from
12102 script_not_found_warning_print. All callers updated.
12103 * extension-priv.h (struct extension_language_script_ops): New member
12104 objfile_script_executor.
12105 * extension.c (ext_lang_objfile_script_executor): New function.
12106 * extension.h (objfile_script_executor_func): New typedef.
12107 (ext_lang_objfile_script_executor): Declare.
12108 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12109 * guile/guile.c (guile_extension_script_ops): Update.
12110 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12111 * python/python.c (python_extension_script_ops): Update.
12112 (gdbpy_execute_objfile_script): New function.
12113
12114 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12115
12116 * tui/tui-io.c (tui_expand_tabs): New function.
12117 (tui_puts, tui_redisplay_readline): Expand TABs into the
12118 appropriate number of spaces.
12119 * tui/tui-regs.c: Include tui-io.h.
12120 (tui_register_format): Call tui_expand_tabs to expand TABs into
12121 the appropriate number of spaces.
12122 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12123
12124 2015-01-30 Doug Evans <dje@google.com>
12125
12126 * NEWS: "info source" command now display producer string if present.
12127 * source.c (source_info): Print producer string if present.
12128
12129 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12130
12131 * varobj.c (varobj_delete): Fix comment.
12132
12133 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12134
12135 * varobj.c (create_child): Modify comment.
12136
12137 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12138
12139 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12140 parameter.
12141 (ada_name_of_variable): Same.
12142 (ada_path_expr_of_child): Same.
12143 (ada_value_of_variable): Same.
12144 (ada_value_is_changeable_p): Same.
12145 (ada_value_has_mutated): Same.
12146 * c-varobj.c (varobj_is_anonymous_child): Same.
12147 (c_is_path_expr_parent): Same.
12148 (c_number_of_children): Same.
12149 (c_name_of_variable): Same.
12150 (c_path_expr_of_child): Same.
12151 (get_type): Same.
12152 (c_value_of_variable): Same.
12153 (cplus_number_of_children): Same.
12154 (cplus_name_of_variable): Same.
12155 (cplus_path_expr_of_child): Same.
12156 (cplus_value_of_variable): Same.
12157 * jv-varobj.c (java_number_of_children): Same.
12158 (java_name_of_variable): Same.
12159 (java_path_expr_of_child): Same.
12160 (java_value_of_variable): Same.
12161 * varobj.c (number_of_children): Same.
12162 (name_of_variable): Same.
12163 (is_root_p): Same.
12164 (varobj_ensure_python_env): Same.
12165 (varobj_get_objname): Same.
12166 (varobj_get_expression): Same.
12167 (varobj_get_display_format): Same.
12168 (varobj_get_display_hint): Same.
12169 (varobj_has_more): Same.
12170 (varobj_get_thread_id): Same.
12171 (varobj_get_frozen): Same.
12172 (dynamic_varobj_has_child_method): Same.
12173 (varobj_get_gdb_type): Same.
12174 (is_path_expr_parent): Same.
12175 (varobj_default_is_path_expr_parent): Same.
12176 (varobj_get_language): Same.
12177 (varobj_get_attributes): Same.
12178 (varobj_is_dynamic_p): Same.
12179 (varobj_get_child_range): Same.
12180 (varobj_value_has_mutated): Same.
12181 (varobj_get_value_type): Same.
12182 (number_of_children): Same.
12183 (name_of_variable): Same.
12184 (check_scope): Same.
12185 (varobj_editable_p): Same.
12186 (varobj_value_is_changeable_p): Same.
12187 (varobj_floating_p): Same.
12188 (varobj_default_value_is_changeable_p): Same.
12189
12190 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12191
12192 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12193 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12194 child->path_expr.
12195 (cplus_path_expr_of_child): Same.
12196
12197 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12198
12199 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12200 result.
12201 (mi_cmd_var_info_expression): Same.
12202 * varobj.c (varobj_get_expression): Mention in the comment that
12203 the result must by freed by the caller.
12204
12205 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12206
12207 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12208 varobj_get_type.
12209 (varobj_update_one): Same.
12210 * varobj.c (update_type_if_necessary): Free curr_type_str and
12211 new_type_str.
12212 (varobj_get_type): Specify in comment that the result needs to be
12213 freed by the caller.
12214
12215 2015-01-29 Doug Evans <dje@google.com>
12216
12217 PR symtab/17890
12218 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12219
12220 2015-01-25 Mark Wielaard <mjw@redhat.com>
12221
12222 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12223 * utils.c (producer_is_gcc_ge_4): Likewise.
12224 (producer_is_gcc): New function.
12225 * utils.h (producer_is_gcc): New declaration.
12226
12227 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12228
12229 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12230 kind.
12231 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12232 parameter by "addr_stack" parameter.
12233 (resolve_dynamic_range): Replace "addr" parameter by
12234 "stack_addr" parameter. Update function documentation.
12235 Update code accordingly.
12236 (resolve_dynamic_array, resolve_dynamic_union)
12237 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12238 (resolve_dynamic_type): Update code, following the changes made
12239 to resolve_dynamic_type_internal's interface.
12240 * dwarf2loc.h (struct property_addr_info): New.
12241 (dwarf2_evaluate_property): Replace "address" parameter
12242 by "addr_stack" parameter. Adjust function documentation.
12243 (struct dwarf2_offset_baton): New.
12244 (struct dwarf2_property_baton): Update documentation of
12245 field "referenced_type" to be more general. New field
12246 "offset_info" in union data field.
12247 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12248 parameter by "addr_stack" parameter. Adjust code accordingly.
12249 Add support for PROP_ADDR_OFFSET properties.
12250 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12251 DW_AT_data_member_location attributes as well. Use case
12252 statements instead of if/else condition.
12253
12254 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12255
12256 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12257 Return zero if PARENT_VALUE is NULL and parent_type's
12258 range type is dynamic.
12259
12260 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12261
12262 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12263 nonzero if the type's subtype is dynamic.
12264 (resolve_dynamic_range): Also resolve the range's subtype.
12265
12266 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12267
12268 Pushed by Joel Brobecker <brobecker@adacore.com>.
12269 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12270
12271 2015-01-27 Doug Evans <dje@google.com>
12272
12273 * NEWS: Mention gdb.Objfile.username.
12274 * python/py-objfile.c (objfpy_get_username): New function.
12275 (objfile_getset): Add "username".
12276
12277 2015-01-24 Mark Wielaard <mjw@redhat.com>
12278
12279 * stack.c (return_command): Markup warning message with _.
12280
12281 2015-01-24 Doug Evans <xdje42@gmail.com>
12282
12283 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12284
12285 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12286
12287 Fix 100x slowdown regression on DWZ files.
12288 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12289 (struct line_header): Add offset and offset_in_dwz.
12290 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12291 (free_line_header_voidp): New declaration.
12292 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12293 functions.
12294 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12295 (handle_DW_AT_stmt_list): Use line_header_hash.
12296 (free_line_header_voidp): New function.
12297 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12298 (dwarf_decode_lines): New parameter decode_mapping, use it.
12299 (dwarf2_free_objfile): Free line_header_hash.
12300
12301 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12302
12303 PR gdb/17416
12304 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12305 value_ind.
12306
12307 2015-01-15 Mark Wielaard <mjw@redhat.com>
12308
12309 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12310 DW_AT_noreturn.
12311 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12312 calling_convention an 8 bit bit field.
12313 (TYPE_NO_RETURN): New macro.
12314 * infcmd.c (finish_command): Query if function does not return
12315 normally.
12316 * stack.c (return_command): Likewise.
12317
12318 2015-01-23 Pedro Alves <palves@redhat.com>
12319
12320 * linux-nat.c (linux_is_async_p): New macro.
12321 (linux_nat_is_async_p):
12322 (linux_nat_terminal_inferior): Check whether the target can async
12323 instead of whether it is already async.
12324 (linux_nat_terminal_ours): Don't check whether the target is
12325 async.
12326 (linux_async_pipe): Use linux_is_async_p.
12327
12328 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12329
12330 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12331 '-ascending'.
12332 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12333 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12334 Sort tp_array using tp_array_compar.
12335 (_initialize_thread): Extend thread_apply_all_command help.
12336
12337 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12338
12339 * corelow.c (core_open): Call also thread_command.
12340 * gdbthread.h (thread_command): New prototype moved from ...
12341 * thread.c (thread_command): ... here.
12342 (thread_command): Make it global.
12343
12344 2015-01-22 Pedro Alves <palves@redhat.com>
12345
12346 * configure.ac [*mingw32*]: Check $curses_found instead of
12347 $prefer_curses.
12348 * configure: Regenerate.
12349 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12350 HAVE_NCURSES_NCURSES_H checks.
12351
12352 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12353
12354 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12355 fails with the 1st arg NULL, try again with "unknown". Don't test
12356 the "cup" capability: it isn't supported by the Windows port of
12357 ncurses, but the Windows console driver is still capable of
12358 supporting TUI.
12359
12360 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12361
12362 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12363
12364 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12365
12366 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12367 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12368 reason that "make TAGS" is broken.
12369
12370 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12371
12372 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12373 and check additional store instructions.
12374
12375 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12376
12377 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12378
12379 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12380
12381 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12382 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12383 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12384 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12385 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12386 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12387 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12388 ppc_process_record_op19, ppc_process_record_op31,
12389 ppc_process_record_op59, ppc_process_record_op60,
12390 ppc_process_record_op63): Likewise.
12391
12392 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12393
12394 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12395 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12396 strerror.
12397
12398 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12399
12400 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12401 ppc_process_record_op31, ppc_process_record_op59,
12402 ppc_process_record_op60, ppc_process_record_op63,
12403 ppc_process_record): Fix -Wformat warning.
12404 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12405 Remove unused variables.
12406
12407 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12408
12409 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12410
12411 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12412
12413 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12414 CONFIG_OBS if not building with a curses library.
12415 * configure: Regenerate.
12416
12417 * windows-termcap.c: Include defs.h. Make the whole body empty if
12418 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12419 HAVE_NCURSES_NCURSES_H is defined.
12420
12421 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12422
12423 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12424 from end of line to start of next line.
12425
12426 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12427
12428 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12429 Scan PLT stub backward for reverse debugging.
12430 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12431
12432 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12433 Ulrich Weigand <uweigand@de.ibm.com>
12434
12435 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12436 gdb_target_obs.
12437 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12438 record.
12439 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12440 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12441 (ppc_linux_init_abi): Set process_record, process_record_signal.
12442 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12443 ppc_linux_record_tdep to gdbarch_tdep.
12444 (ppc_process_record): New declaration.
12445 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12446 ppc_process_record_op19, ppc_process_record_op31,
12447 ppc_process_record_op59, ppc_process_record_op60,
12448 ppc_process_record_op63, ppc_process_record): New functions.
12449
12450 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12451
12452 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12453 rs6000_in_function_epilogue_frame_p and add an argument
12454 for frame_info.
12455 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12456 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12457 New functions.
12458 (rs6000_epilogue_frame_unwind): New.
12459 (rs6000_gdbarch_init): Append epilogue unwinder.
12460
12461 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12462
12463 * nat/linux-personality.c: Replace "#ifndef
12464 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12465 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12466 systems.
12467
12468 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12469
12470 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12471 functions.
12472 (_initialize_tui_win) <border-kind, border-mode>:
12473 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12474 (tui_set_tab_width_command): Fix the commentary.
12475
12476 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12477
12478 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12479 Doc fix.
12480 (tui_set_tab_width_command): Delete and recreate the source and
12481 the disassembly windows, to show the effect of the changed tab
12482 size immediately.
12483
12484 * tui/tui-data.h (LINE_PREFIX): Make shorter
12485 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12486 "Thread NNNNN.XXXX" thread ID notation on Windows.
12487
12488 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12489
12490 Fix gcc-5 compilation.
12491 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12492
12493 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12494
12495 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12496 (linux-personality.o): New rule.
12497 * common/common-defs.h: Include <stdint.h>.
12498 * config/aarch64/linux.mh (NATDEPFILES): Include
12499 linux-personality.o.
12500 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12501 * config/arm/linux.mh (NATDEPFILES): Likewise.
12502 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12503 * config/i386/linux.mh (NATDEPFILES): Likewise.
12504 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12505 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12506 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12507 * config/mips/linux.mh (NATDEPFILES): Likewise.
12508 * config/pa/linux.mh (NATDEPFILES): Likewise.
12509 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12510 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12511 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12512 * config/s390/linux.mh (NATDEPFILES): Likewise.
12513 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12514 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12515 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12516 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12517 * defs.h: Remove #include <stdint.h> (moved to
12518 common/common-defs.h).
12519 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12520 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12521 nat/linux-personality.c).
12522 (linux_nat_create_inferior): Remove code to disable address space
12523 randomization (moved to nat/linux-personality.c). Create cleanup
12524 to disable address space randomization.
12525 * nat/linux-personality.c: New file.
12526 * nat/linux-personality.h: Likewise.
12527
12528 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12529
12530 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12531 common/posix-strerror.c.
12532 (posix-strerror.o): New rule.
12533 (mingw-strerror.o): Likewise.
12534 * common/common-utils.h (safe_strerror): Move prototype to here,
12535 from utils.h.
12536 * common/common.host: New file.
12537 * common/mingw-strerror.c: Likewise.
12538 * common/posix-strerror.c: Likewise.
12539 * configure: Regenerated.
12540 * configure.ac: Source common/common.host. Add variable
12541 common_host_obs to gdb_host_obs.
12542 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12543 gdb/common/posix-strerror.c when warning about the use of
12544 strerror.
12545 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12546 common/mingw-strerror.c.
12547 * posix-hdep.c (safe_strerror): Remove definition; move it to
12548 common/posix-hdep.c.
12549 * utils.h (safe_strerror): Remove prototype; move to
12550 common/common-utils.h.
12551
12552 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12553
12554 GDB 7.8.2 released.
12555
12556 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12557
12558 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12559 ___XA type if the array has already been fixed.
12560
12561 2015-01-14 Yao Qi <yao@codesourcery.com>
12562
12563 * Makefile.in (ppc-linux.o): New rule.
12564 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12565 * configure.ac: AC_CHECK_FUNCS(getauxval).
12566 * config.in: Re-generated.
12567 * configure: Re-generated.
12568 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12569 Declare.
12570 * nat/ppc-linux.c: New file.
12571 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12572 Call ppc64_64bit_inferior_p.
12573
12574 2015-01-14 Yao Qi <yao@codesourcery.com>
12575
12576 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12577 nat/ppc-linux.h.
12578 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12579 (PPC_FEATURE_HAS_DFP): Likewise.
12580 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12581 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12582 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12583 Include "nat/ppc-linux.h".
12584 * nat/ppc-linux.h: New file.
12585 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12586
12587 2015-01-14 Pedro Alves <palves@redhat.com>
12588
12589 PR gdb/17525
12590 * breakpoint.c: Include "interps.h".
12591 (bpstat_do_actions_1): Also check whether the interpreter is
12592 async.
12593
12594 2015-01-14 Pedro Alves <palves@redhat.com>
12595
12596 PR cli/17828
12597 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12598 reinstall if the interpreter is sync.
12599
12600 2015-01-13 Doug Evans <dje@google.com>
12601
12602 * objfiles.c (objfile_filename): New function.
12603 * objfiles.h (objfile_filename): Declare it.
12604 (objfile_name): Add function comment.
12605 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12606 bfd file name (which may be realpath'd), and the original name.
12607
12608 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12609
12610 * NEWS: Create a new section for the next release branch.
12611 Rename the section of the current branch, now that it has
12612 been cut.
12613
12614 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12615
12616 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12617 * version.in: Bump version to 7.9.50.DATE-cvs.
12618
12619 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12620
12621 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12622 Remove trailing new-line in argument of call to warning.
12623
12624 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12625
12626 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12627 new-line in argument of call to "warning".
12628
12629 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12630
12631 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12632 in static block, then try searching for primitive types.
12633
12634 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12635
12636 * top.h (gdb_add_history): Declare.
12637 * top.c (command_count): New variable.
12638 (gdb_add_history): New function.
12639 (gdb_safe_append_history): New static function.
12640 (quit_force): Call it.
12641 (command_line_input): Use gdb_add_history instead of
12642 add_history.
12643 * event-top.c (command_line_handler): Likewise.
12644
12645 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12646
12647 PR gdb/17046
12648 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12649 <setjmp.h> #include.
12650
12651 2015-01-11 Doug Evans <xdje42@gmail.com>
12652
12653 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12654
12655 2015-01-11 Doug Evans <xdje42@gmail.com>
12656
12657 PR gdb/15830
12658 * NEWS: The "maint demangle" command is renamed as "demangle".
12659 * demangle.c: #include cli/cli-utils.h, language.h.
12660 (demangle_command): New function.
12661 (_initialize_demangle): Add new command "demangle".
12662 * maint.c (maintenance_demangle): Stub out.
12663 (_initialize_maint_cmds): Update help text for "maint demangle",
12664 and mark as deprecated.
12665
12666 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12667
12668 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12669 inferior_thread is a function.
12670
12671 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12672
12673 * Makefile.in (.y.c): Don't munge yacc's #line
12674 directives.
12675
12676 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12677
12678 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12679 to prompt for input.
12680 * tui/tui-hooks.c (tui_query_hook): Remove.
12681 (tui_install_hooks): Don't set deprecated_query_hook.
12682 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12683 height calculation. Always update the command window's cur_line.
12684
12685 2015-01-09 Pedro Alves <palves@redhat.com>
12686
12687 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12688 function.
12689 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12690 declaration.
12691 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12692 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12693 stop_reason.
12694 (check_stopped_by_watchpoint): New function.
12695 (save_sigtrap): Reimplement.
12696 (linux_nat_stopped_by_watchpoint): Adjust.
12697 (linux_nat_lp_status_is_event): Delete.
12698 (stop_wait_callback): Only call save_sigtrap after storing the
12699 pending status.
12700 (status_callback): If the thread had been stopped for a breakpoint
12701 that has since been removed, discard the event and resume the LWP.
12702 (count_events_callback, select_event_lwp_callback): Use
12703 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12704 (cancel_breakpoint): Rename to ...
12705 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12706 stopped for a software breakpoint or hardware breakpoint.
12707 (select_event_lwp): Only give preference to the stepping LWP in
12708 all-stop mode. Adjust comments.
12709 (stop_and_resume_callback): Remove references to new_pending_p.
12710 (linux_nat_filter_event): Likewise. Leave exit events of the
12711 leader thread pending here. Handle signal short circuiting here.
12712 Only call save_sigtrap after storing the pending waitstatus.
12713 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12714 new_pending. Don't handle leaving events the caller is not
12715 interested in pending here, nor handle signal short-circuiting
12716 here. Also give equal priority to all LWPs that have had events
12717 in non-stop mode. If reporting a software breakpoint event,
12718 unadjust the LWP's PC.
12719 * linux-nat.h (enum lwp_stop_reason): New.
12720 (struct lwp_info) <stop_pc>: New field.
12721 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12722 (struct lwp_info) <stop_reason>: New field.
12723 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12724
12725 2015-01-09 Pedro Alves <palves@redhat.com>
12726
12727 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12728 Set the LWP's 'resumed' flag.
12729
12730 2015-01-09 Pedro Alves <palves@redhat.com>
12731
12732 * linux-nat.c (linux_resume_one_lwp): New function.
12733 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12734 (linux_nat_resume): Use lwp_status_pending_p and
12735 linux_resume_one_lwp.
12736 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12737 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12738 (status_callback, running_callback): Use lwp_status_pending_p.
12739 (lwp_status_pending_p): New function.
12740 (stop_and_resume_callback): Use lwp_status_pending_p.
12741 (linux_nat_filter_event): Use linux_resume_one_lwp.
12742 (linux_nat_wait_1): Always use status_callback to look for an LWP
12743 with a pending status. Use linux_resume_one_lwp.
12744 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12745 linux_resume_one_lwp.
12746
12747 2015-01-09 Pedro Alves <palves@redhat.com>
12748
12749 * breakpoint.c (bp_location_inserted_here_p): New function,
12750 factored out from ...
12751 (breakpoint_inserted_here_p): ... here. Use
12752 ALL_BP_LOCATIONS_AT_ADDR.
12753 (software_breakpoint_inserted_here_p): Use
12754 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12755
12756 2014-01-09 Pedro Alves <palves@redhat.com>
12757
12758 Skip enabling event reporting if the kernel supports
12759 PTRACE_EVENT_CLONE.
12760 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12761 (thread_db_use_events): New function.
12762 (try_thread_db_load_1): Check thread_db_use_events before enabling
12763 event reporting.
12764 (update_thread_state): New function.
12765 (attach_thread): Use it. Check thread_db_use_events before
12766 enabling event reporting.
12767 (thread_db_detach): Check thread_db_use_events before disabling
12768 event reporting.
12769 (find_new_threads_callback): Check thread_db_use_events before
12770 enabling event reporting. Update the thread's state if not using
12771 libthread_db events.
12772
12773 2015-01-09 Pedro Alves <palves@redhat.com>
12774
12775 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12776 about to wait for is > 0.
12777 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12778 the kernel thread ID is -1.
12779
12780 2015-01-09 Pedro Alves <palves@redhat.com>
12781
12782 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12783 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12784 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12785 ptrace option flags.
12786 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12787 field.
12788 * nat/linux-procfs.c: Include <dirent.h>.
12789 (linux_proc_get_int): New parameter "warn". Handle it.
12790 (linux_proc_get_tgid): Adjust.
12791 (linux_proc_get_tracerpid): Rename to ...
12792 (linux_proc_get_tracerpid_nowarn): ... this.
12793 (linux_proc_pid_get_state): New function, factored out from
12794 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12795 and handle it.
12796 (linux_proc_pid_is_gone): New function.
12797 (linux_proc_pid_is_stopped): Adjust.
12798 (linux_proc_pid_is_zombie_maybe_warn)
12799 (linux_proc_pid_is_zombie_nowarn): New functions.
12800 (linux_proc_pid_is_zombie): Use
12801 linux_proc_pid_is_zombie_maybe_warn.
12802 (linux_proc_attach_tgid_threads): New function.
12803 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12804 (linux_proc_get_tracerpid): Rename to ...
12805 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12806 (linux_proc_pid_is_gone): New declaration.
12807 (linux_proc_pid_is_zombie): Update comment.
12808 (linux_proc_pid_is_zombie_nowarn): New declaration.
12809 (linux_proc_attach_lwp_func): New typedef.
12810 (linux_proc_attach_tgid_threads): New declaration.
12811 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12812 use nowarn functions.
12813 (linux_ptrace_attach_fail_reason_string): Move here from
12814 gdbserver/linux-low.c and rename.
12815 (ptrace_supports_feature): If the current ptrace options are not
12816 known yet, check them now, instead of asserting.
12817 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12818 Declare.
12819
12820 2015-01-09 Pedro Alves <palves@redhat.com>
12821
12822 * linux-thread-db.c (thread_db_find_new_threads_silently)
12823 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12824 (find_new_threads_once): Print debug output on gdb_stdlog.
12825
12826 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12827 Pedro Alves <palves@redhat.com>
12828
12829 * compile/compile.c: Include "gdb_wait.h".
12830 (do_rmdir): Check return value, and free 'zap'.
12831
12832 2015-01-08 Pedro Alves <palves@redhat.com>
12833 Yao Qi <yao@codesourcery.com>
12834
12835 * dwarf2loc.c (indirect_pieced_value): Don't call
12836 gdb_sign_extend. Call extract_signed_integer instead.
12837 * utils.c (gdb_sign_extend): Remove.
12838 * utils.h (gdb_sign_extend): Remove declaration.
12839
12840 2015-01-07 Pierre Muller <muller@sourceware.org>
12841
12842 PR symtab/17811
12843 * stabsread.c (define_symbol): Set language for C++ special symbols.
12844
12845 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12846
12847 * inflow.c (initial_gdb_ttystate): Tweak comment.
12848
12849 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12850
12851 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12852 comment documenting function.
12853
12854 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12855
12856 * terminal.h (set_initial_gdb_ttystate): Declare.
12857 * inflow.c (initial_gdb_ttystate): New static variable.
12858 (set_initial_gdb_ttystate): New setter.
12859 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12860 instead of our current terminal state.
12861 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12862
12863 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12864
12865 * guile/scm-type.c (tyscm_array_1): Add comment.
12866 * python/py-type.c (typy_array_1): Add comment.
12867
12868 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12869
12870 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12871 error if N2 is equal to N1 - 1.
12872
12873 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12874
12875 * python/py-type.c (typy_array_1): Do not raise negative-length
12876 exception if N2 is equal to N1 - 1.
12877
12878 2015-01-03 Doug Evans <xdje42@gmail.com>
12879
12880 * c-exp.y: Whitespace cleanup.
12881 (classify_inner_name): Remove extra ;.
12882
12883 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12884
12885 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12886 offset signed.
12887
12888 2015-01-02 Doug Evans <dje@google.com>
12889
12890 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12891
12892 2015-01-02 Doug Evans <dje@google.com>
12893
12894 * symtab.h (struct symbol): Fix typo in comment.
12895
12896 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12897
12898 Update year range in copyright notice of all files.
12899
12900 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12901
12902 * top.c (print_gdb_version): Update copyright year to 2015.
12903
12904 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12905
12906 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12907
12908 For older changes see ChangeLog-2014.
12909 \f
12910 Local Variables:
12911 mode: change-log
12912 left-margin: 8
12913 fill-column: 74
12914 version-control: never
12915 coding: utf-8
12916 End:
This page took 0.29854 seconds and 5 git commands to generate.