abb4fab6f5c1f3048c2af84163b82213d11e67ff
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
4 scm_t_dynwind_flags casts.
5 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
7 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
8
9 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * ax.h (ax_raw_byte): New declaration.
12 * ax-general.c (ax_raw_byte): New function.
13 (ax_simple): Use ax_raw_byte.
14 * ax-gdb.c (gen_printf): Likewise.
15
16 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * ada-lang.h (GROW_VECT): Add cast.
19
20 2015-10-26 Doug Evans <xdje42@gmail.com>
21
22 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
23
24 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
27 pointer.
28 (simple_search_memory): Cast return of memmem.
29
30 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
33
34 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
37 -1 on error.
38
39 2015-10-26 Doug Evans <dje@google.com>
40
41 PR symtab/17391
42 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
43 instead of gdbarch_dwarf2_reg_to_regnum.
44 (dwarf2_frame_cache): Ditto.
45 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
46 gdbarch_dwarf2_reg_to_regnum.
47 (get_reg_value): Ditto.
48 (dwarf2_fetch_cfa_info): Ditto.
49 (dwarf2_frame_prev_register): Ditto.
50 * dwarf2loc.c: #include "complaints.h".
51 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
52 instead of gdbarch_dwarf2_reg_to_regnum.
53 (dwarf_expr_get_reg_value): Ditto.
54 (read_pieced_value): Ditto.
55 (write_pieced_value): Ditto.
56 (dwarf2_evaluate_loc_desc_full): Ditto.
57 (dwarf_reg_to_regnum): New function.
58 (throw_bad_regnum_error): New function.
59 (dwarf_reg_to_regnum_or_error): Renamed from
60 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
61 All callers updated. Call throw_bad_regnum_error.
62 (locexpr_regname): Improve text of bad register number.
63 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
64 (dwarf_reg_to_regnum_or_error): Update prototype.
65 * dwarf2expr.c: #include "dwarf2loc.h".
66 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
67 gdbarch_dwarf2_reg_to_regnum.
68 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
69 * gdbarch.h: Regenerate.
70 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
71 register.
72 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
73 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
74 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
75 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
76 Remove warning for bad register.
77 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
78 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
79 i386_svr4_reg_to_regnum. Return -1 for bad registers.
80 (i386_svr4_reg_to_regnum): New function.
81 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
82 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
83 on bad registers, return -1.
84 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
85 Remove warning for bad register.
86 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
87 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
88 Remove warning for bad register. Return -1 for bad register.
89 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
90 for bad register, return -1.
91 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
92 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
93 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
94 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
95 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
96 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
97 for bad regs.
98 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
99 bad regs. Fix error result.
100 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
101 (reg_value_complaint): Update complaint text.
102 * mdebugread.c (reg_value_complaint): New function.
103 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
104
105 2015-10-26 Doug Evans <dje@google.com>
106
107 PR python/18938
108 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
109 All callers updated.
110
111 2015-10-26 Doug Evans <dje@google.com>
112
113 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
114 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
115 (maintenance_print_psymbols): Print address map.
116
117 2015-10-26 Doug Evans <dje@google.com>
118
119 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
120
121 2015-10-26 Doug Evans <dje@google.com>
122
123 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
124 gdbserver/linux-low.c.
125 (WSETSTOP): Simplify.
126
127 2015-10-26 Doug Evans <dje@google.com>
128
129 * linux-thread-db.c (find_new_threads_callback): Ditto.
130 (thread_db_pid_to_str): Ditto.
131
132 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
135 local char array to scm_mode_bits, use a cast instead.
136
137 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
138
139 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
140 result. Change type of element_block_ptr. Change allocation to
141 use XNEWVEC.
142
143 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
144
145 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
146 catch_errors call instead of NULL.
147
148 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
151 char pointer to scm_mode_bits.
152
153 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
156 cast.
157
158 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
161 "data" local variable and use it.
162
163 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
166 domain_enum cast.
167 (gdbscm_lookup_symbol): Likewise.
168
169 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
170
171 * d-exp.y: Remove an obsolete comment and propagate the block
172 information to the produced expression.
173
174 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
177 cast.
178 (tui_add_content_elements): Likewise.
179
180 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * cli/cli-setshow.c (do_set_command): Constify p.
183
184 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
185
186 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
187 (void *) cast with (gdb_byte *).
188
189 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * proc-service.c (ps_pdread): Add cast.
192
193 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
196 valbuf.
197
198 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
201 (ia64_push_dummy_call): Remove cast and change type of "to" to
202 array of gdb_byte.
203
204 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
207
208 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
209
210 * observer.h (observer_${event}_notification_stub): Add cast.
211
212 2015-10-23 Yao Qi <yao.qi@linaro.org>
213
214 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
215 dsd.insn_count to zero.
216
217 2015-10-22 Pedro Alves <palves@redhat.com>
218
219 * infrun.c (stop_after_trap): Delete.
220 (clear_proceed_status, handle_signal_stop, struct
221 infcall_control_state, save_infcall_control_state)
222 (restore_infcall_control_state): Remove references to
223 stop_after_trap.
224
225 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
226
227 * python/python.c (_initialize_python): Add cast.
228
229 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
230
231 * nto-tdep.c (nto_inferior_data): Add cast.
232
233 2015-10-22 Pedro Alves <palves@redhat.com>
234
235 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
236 windows_wait and windows_resume directly instead of
237 wait_for_inferior and resume.
238
239 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * xtensa-tdep.h (XTREG): Add casts.
242 (XTREG_END): Likewise.
243
244 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
247
248 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
251
252 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
255 buf to gdb_byte*.
256 (supply_32bit_reg): Add cast.
257 (mips64_fill_gregset): Likewise.
258
259 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
260
261 PR python/18073
262 * python/py-type.c (typy_get_composite): Allow returning a
263 function type.
264
265 2015-10-21 Keven Boell <keven.boell@intel.com>
266
267 * dwarf2read.c (set_die_type): Add read of
268 DW_AT_allocated and DW_AT_associated.
269 * f-typeprint.c: New include of typeprint.h
270 (f_print_type): Add check for allocated/associated
271 status of type.
272 (f_type_print_varspec_suffix): Add check for
273 * gdbtypes.c (create_array_type_with_stride):
274 Add check for valid data location of type in
275 case allocated or associated attributes are set.
276 Length of an array should be only calculated if
277 allocated or associated is resolved as true.
278 (is_dynamic_type_internal): Add check for allocated/
279 associated.
280 (resolve_dynamic_array): Evaluate allocated/associated
281 properties.
282 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
283 <DYN_PROP_ASSOCIATED>: New enums.
284 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
285 (type_not_allocated): New function.
286 (type_not_associated): New function.
287 * valarith.c (value_subscripted_rvalue): Add check for
288 allocated/associated.
289 * valprint.c: New include of typeprint.h.
290 (valprint_check_validity): Add check for allocated/associated.
291 (value_check_printable): Add check for allocated/
292 associated.
293 * typeprint.h (val_print_not_allocated): New function.
294 (val_print_not_associated): New function.
295 * typeprint.c (val_print_not_allocated): New function.
296 (val_print_not_associated): New function.
297
298 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
299
300 * Makefile.in: Add arm.c/o.
301 * arch/arm.c: New file.
302 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
303 (MAKE_THUMB_ADDR): Likewise.
304 (UNMAKE_THUMB_ADDR): Likewise.
305 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
306 (IS_THUMB_ADDR): Move to arm.h.
307 (MAKE_THUMB_ADDR): Likewise.
308 (UNMAKE_THUMB_ADDR): Likewise.
309 * configure.tgt: Add arm.o to all ARM configs.
310
311 2015-10-21 Yao Qi <yao.qi@linaro.org>
312
313 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
314 Remove argument exp_vCont_s.
315 * gdb.base/range-stepping.exp: Callers updated.
316 * gdb.trace/range-stepping.exp: Likewise.
317
318 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
319
320 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
321 (nto_sniff_abi_note_section): New function.
322 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
323 binary.
324
325 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
326
327 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
328 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
329 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
330 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
331 New functions.
332 (_initialize_nto_tdep): New forward declaration, new function.
333 * nto-tdep.h (struct nto_inferior_data): New struct.
334 (nto_inferior_data): New function declaration.
335
336 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 * findvar.c (address_from_register): Check REGNUM validity.
339
340 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
341
342 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
343 (init_procfs_targets): Wire new function.
344
345 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
346
347 * nto-procfs.c (sys/auxv.h): Include.
348 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
349 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
350 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
351
352 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
353
354 * nto-procfs.c (nto_procfs_path): Rename to...
355 (nodestr): ... this, and change type.
356 (nto_node): Use new variable and logic accordingly.
357 (procfs_open_1): Use new variable name. Use local buffer to construct
358 procfrs path.
359 (procfs_pidlist): Use NODESTR to construct procfs path.
360 (procfs_files_info): Use NODESTR to output meaningful text.
361 (do_attach): Construct procfs using NODESTR.
362 (procfs_create_inferior): Compare pointer to NULL.
363
364 2015-10-19 Josh Stone <jistone@redhat.com>
365
366 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
367 return state, even when not actively catching syscalls at all.
368 (linux_handle_extended_wait): Mark syscall_state like an entry.
369 (wait_lwp): Set syscall_state ignored for other traps.
370 (linux_nat_filter_event): Likewise.
371
372 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
373
374 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
375 when handling 'E', 'T', 'S', 'X' and 'W' packets.
376 Do not set rs->waiting_for_stop_reply back to 1.
377
378 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
379
380 * nto-procfs.c (common/filestuff.h): Include.
381 (procfs_can_use_hw_breakpoint): Fix enum name.
382 (procfs_open_1): Fix compiler warning.
383 (procfs_pidlist): Make static.
384 (procfs_meminfo): Make static, fix type name, add missing argument.
385 (procfs_store_registers): Make static.
386 (procfs_thread_info): Remove unused function.
387 (_initialize_procfs): Forward declare.
388
389 2015-10-16 Yao Qi <yao.qi@arm.com>
390
391 * MAINTAINERS: Update my email address.
392
393 2015-10-15 Yao Qi <yao.qi@linaro.org>
394
395 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
396 Call gdbarch_breakpoint_from_pc to instruction length.
397 (aarch64_linux_remove_hw_breakpoint): Likewise.
398 * common/common-regcache.h (regcache_register_size): Declare.
399 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
400 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
401 the process is 32bit, otherwise set alignment to 4.
402 (aarch64_handle_breakpoint): Update comments.
403 * regcache.c (regcache_register_size): New function.
404
405 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
406
407 * gdbarch.sh (core_regset_section): Remove.
408 * gdbarch.h: Regenerate.
409
410 2015-10-14 Yao Qi <yao.qi@linaro.org>
411
412 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
413 out of it.
414 (enum aarch64_memory_operand_type): New.
415
416 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
417
418 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
419
420 2015-10-13 Pedro Alves <palves@redhat.com>
421
422 * ada-lang.c (ada_enum_name): Constify local.
423 * ada-typeprint.c (print_range_bound): Constify locals.
424 * c-varobj.c (c_describe_child): Likewise.
425 * cli/cli-setshow.c (do_set_command): Likewise.
426 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
427 * dwarf2read.c (find_file_and_directory): Likewise.
428 (anonymous_struct_prefix, dwarf2_name): Likewise.
429 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
430 * go-lang.c (unpack_mangled_go_symbol): Likewise.
431 * jv-typeprint.c (java_type_print_base): Likewise.
432 * ser-tcp.c (net_open): Likewise.
433 * symfile.c (deduce_language_from_filename): Likewise.
434 * symtab.c (gdb_mangle_name): Likewise.
435 * tui/tui-io.c (tui_redisplay_readline): Likewise.
436
437 2015-10-13 Pedro Alves <palves@redhat.com>
438
439 * infrun.c (restore_execution_direction): New function.
440 (fetch_inferior_event): Use it instead of
441 make_cleanup_restore_integer.
442 (execution_direction): Change type to enum
443 exec_direction_kind.
444 * infrun.h (execution_direction): Likewise.
445
446 2015-10-13 Pedro Alves <palves@redhat.com>
447
448 * ada-lang.c (ada_value_primitive_packed_val): Constify
449 locals. Use value_contents_writeable. Remove casts.
450
451 2015-10-13 Pedro Alves <palves@redhat.com>
452
453 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
454 and alloca calls.
455
456 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
457
458 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
459 write_memory with write_memory_unsigned_integer.
460
461 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
462
463 * solib-dsbt.c (cmp_name): Constify arguments.
464 * solib-frv.c (cmp_name): Likewise.
465 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
466 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
467 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
468 (gdb_bfd_lookup_symbol): Likewise.
469 * solib.h (gdb_bfd_lookup_symbol): Likewise.
470 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
471
472 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * stack.c (parse_frame_specification): Remove message parameter,
475 replace with fixed string in function body, update function
476 comment.
477 (frame_info): Remove message to parse_frame_specification.
478 (select_frame_command): Likewise.
479
480 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * stack.c (parse_frame_specification): Delete.
483 (parse_frame_specification_1): Rename to
484 parse_frame_specification.
485 (frame_info): Use parse_frame_specification.
486 (select_frame_command): Likewise.
487 (return_command): Use select_frame and print_stack_frame rather
488 than frame_command and select_frame_command.
489 (func_command): Use get_current_frame rather than
490 parse_frame_specification.
491
492 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * stack.c (func_command): Return early when there is no ARG
495 string.
496
497 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 * stack.c: Include safe-ctype.h not ctype.h.
500 (parse_frame_specification): Use ISSPACE not isspace.
501 (backtrace_command): Use TOLOWER not tolower.
502
503 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
504
505 * mep-tdep.c (current_me_module): Add cast.
506 (mep_gdbarch_init): Likewise.
507
508 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * m32c-tdep.c (m32c_move_reg_t): Replace with...
511 (m32c_write_reg_t): ...this and...
512 (m32c_read_reg_t): ...this.
513 (struct m32c_reg): Update types of read and write.
514 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
515 adjust definition.
516 (m32c_banked_read): Likewise.
517 (m32c_sb_read): Likewise.
518 (m32c_part_read): Likewise.
519 (m32c_cat_read): Likewise.
520 (m32c_r3r2r1r0_read): Likewise.
521 (m32c_raw_write): Change declaration type to m32c_write_reg_t
522 and adjust definition.
523 (m32c_banked_write): Likewise.
524 (m32c_sb_write): Likewise.
525 (m32c_part_write): Likewise.
526 (m32c_cat_write): Likewise.
527 (m32c_r3r2r1r0_write): Likewise.
528
529 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
532
533 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
536 gdb_sys_no_syscall instead of -1.
537
538 2015-10-12 Yao Qi <yao.qi@linaro.org>
539
540 * NEWS: Mention the change.
541
542 2015-10-12 Yao Qi <yao.qi@linaro.org>
543
544 * arch/aarch64-insn.c (emit_load_store): Rename to ...
545 (aarch64_emit_load_store): ... it. All callers updated.
546
547 2015-10-12 Yao Qi <yao.qi@linaro.org>
548
549 * arch/aarch64-insn.c (emit_insn): Rename to ...
550 (aarch64_emit_insn): ... it. All callers updated.
551
552 2015-10-12 Yao Qi <yao.qi@linaro.org>
553
554 * aarch64-linux-tdep.c: Include arch-utils.h.
555 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
556 set_gdbarch_displaced_step_copy_insn,
557 set_gdbarch_displaced_step_fixup,
558 set_gdbarch_displaced_step_free_closure,
559 set_gdbarch_displaced_step_location,
560 and set_gdbarch_displaced_step_hw_singlestep.
561 * aarch64-tdep.c (struct displaced_step_closure): New.
562 (struct aarch64_displaced_step_data): New.
563 (aarch64_displaced_step_b): New function.
564 (aarch64_displaced_step_b_cond): Likewise.
565 (aarch64_register): Likewise.
566 (aarch64_displaced_step_cb): Likewise.
567 (aarch64_displaced_step_tb): Likewise.
568 (aarch64_displaced_step_adr): Likewise.
569 (aarch64_displaced_step_ldr_literal): Likewise.
570 (aarch64_displaced_step_others): Likewise.
571 (aarch64_displaced_step_copy_insn): Likewise.
572 (aarch64_displaced_step_fixup): Likewise.
573 (aarch64_displaced_step_hw_singlestep): Likewise.
574 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
575 (aarch64_displaced_step_copy_insn): Declare.
576 (aarch64_displaced_step_fixup): Declare.
577 (aarch64_displaced_step_hw_singlestep): Declare.
578 * arch/aarch64-insn.c (emit_insn): Moved from
579 gdbserver/linux-aarch64-low.c.
580 (emit_load_store): Likewise.
581 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
582 gdbserver/linux-aarch64-low.c.
583 (struct aarch64_register): Likewise.
584 (struct aarch64_memory_operand): Likewise.
585 (ENCODE): Likewise.
586 (can_encode_int32): New macro.
587 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
588 (emit_tb, emit_nop): Likewise.
589 (emit_insn): Declare.
590 (emit_load_store): Declare.
591
592 2015-10-12 Yao Qi <yao.qi@linaro.org>
593
594 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
595 gdbserver/linux-aarch64-low.c.
596 (aarch64_relocate_instruction): Likewise.
597 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
598 (struct aarch64_insn_data): Moved from
599 gdbserver/linux-aarch64-low.c.
600 (struct aarch64_insn_visitor): Likewise.
601 (aarch64_relocate_instruction): Declare.
602
603 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
604
605 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
606 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
607 to the returned value.
608
609 2015-10-09 Joel Brobecker <brobecker@adacore.com>
610
611 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
612 is large enough for BIT_SIZE. Update function comment.
613
614 2015-10-09 Joel Brobecker <brobecker@adacore.com>
615
616 * ada-lang.c (ada_value_primitive_packed_val): Move
617 src_len variable to local block where used. Override
618 BIT_SIZE if bigger than size of resolved type.
619
620 2015-10-09 Joel Brobecker <brobecker@adacore.com>
621
622 * gdbtypes.h (is_scalar_type): Add extern declaration.
623 * gdbtypes.c (is_scalar_type): Make non-static.
624 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
625 to compute IS_SCALAR instead of doing it ourselves.
626
627 2015-10-09 Joel Brobecker <brobecker@adacore.com>
628
629 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
630 of case where TYPE is dynamic.
631
632 2015-10-09 Joel Brobecker <brobecker@adacore.com>
633
634 * ada-lang.c (ada_unpack_from_contents): New function,
635 extracted from ada_value_primitive_packed_val.
636 (ada_value_primitive_packed_val): Replace extracted out code
637 by call to ada_unpack_from_contents.
638
639 2015-10-09 Joel Brobecker <brobecker@adacore.com>
640
641 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
642 variable declarations.
643
644 2015-10-09 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (ada_value_primitive_packed_val): Change the type
647 of local variables src and unpacked to "gdb_type *" instead of
648 "unsigned char *".
649
650 2015-10-09 Joel Brobecker <brobecker@adacore.com>
651
652 * ada-lang.c (ada_value_primitive_packed_val): Make the name
653 of various local variables more explicit and consistent.
654 No real code change otherwise.
655
656 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
657
658 * i386-tdep.h (struct gdbarch_tdep): Change type of
659 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
660
661 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
662
663 * cris-tdep.c (struct instruction_environment): Change type of
664 byte_order to enum bfd_endian.
665
666 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
667
668 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
669 enum gdb_syscall casts.
670
671 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
672
673 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
674 * arm-tdep.c (struct stack_item): Likewise.
675 (push_stack_item): Add gdb_byte* cast.
676 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
677 (push_stack_item): Add gdb_byte* cast.
678 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
679 and add cast.
680 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
681 (push_stack_item): Add gdb_byte* cast.
682 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
683 add cast.
684 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
685 gdb_byte*.
686 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
687 gdb_byte* and remove unnecessary cast.
688 (h8300h_extract_return_value): Likewise.
689 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
690 (h8300h_store_return_value): Likewise.
691 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
692 gdb_byte* and remove unnecessary cast.
693 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
694 and add cast.
695 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
696 gdb_byte* and remove unnecessary cast.
697 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
698 valbuf.
699 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
700 (mep_pseudo_cr64_read): Likewise.
701 (mep_pseudo_csr_write): Likewise.
702 (mep_pseudo_cr32_write): Likewise.
703 (mep_pseudo_cr64_write): Likewise.
704 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
705 gdb_byte* and add cast.
706 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
707 gdb_byte* and remove unnecessary cast.
708 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
709 valbuf.
710 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
711 gdb_byte*.
712 * printcmd.c (void): Likewise.
713 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
714 gdb_byte* and add cast.
715 (infpy_write_memory): Likewise.
716 (infpy_search_memory): Likewise.
717 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
718 and add cast.
719 (regcache_raw_write_unsigned): Likewise.
720 (regcache_cooked_write_signed): Likewise.
721 (regcache_cooked_write_unsigned): Likewise.
722 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
723 gdb_byte*.
724
725 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
726
727 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
728 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
729
730 2015-10-09 Eli Zaretskii <eliz@gnu.org>
731
732 * stack.c (print_stack_frame):
733 * utils.c (printchar): Fix typos in commentary.
734
735 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
736
737 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
738 (PostfixExpression): Support `expr.sizeof' expressions.
739 (PrimaryExpression): Support `typeof(expr)' expressions.
740
741 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
742
743 * MAINTAINERS: Update my email address.
744
745 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
746
747 * record-btrace.c (record_btrace_resume): Fix void return.
748
749 2015-10-07 Yao Qi <yao.qi@linaro.org>
750
751 * aarch64-tdep.c: Include opcode/aarch64.h.
752 (submask): Move it above.
753 (bit): Likewise.
754 (bits): Likewise.
755 (aarch64_software_single_step): Call aarch64_decode_insn.
756 Decode instruction by aarch64_inst instead of using
757 aarch64_decode_bcond and decode_masked_match.
758
759 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
760
761 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
762 only when the file is binary.
763
764 2015-10-02 James Bowman <james.bowman@ftdichip.com>
765
766 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
767 subroutine handling.
768
769 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
770
771 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
772
773 2015-09-30 Doug Evans <dje@google.com>
774
775 * dwarf2read.c (setup_type_unit_groups): Add comment.
776
777 2015-09-30 Pedro Alves <palves@redhat.com>
778
779 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
780 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
781 (x86_linux_create_target): Don't install
782 x86_linux_always_non_stop_p.
783
784 2015-09-30 Don Breazeal <donb@codesourcery.com>
785
786 * remote.c (remote_parse_stop_reply): Call strprefix instead
787 of strncmp.
788
789 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
790
791 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
792 * gdbarch.h: Regenerate.
793 * i386-tdep.c (i386_gdbarch_init): Remove cast to
794 struct gdbarch_tdep_info *.
795 * mips-tdep.c (mips_gdbarch_init): Likewise.
796 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
797 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
798 * spu-multiarch.c (spu_gdbarch): Likewise.
799
800 2015-09-30 Kevin Buettner <kevinb@redhat.com>
801
802 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
803 record a NULL value.
804
805 2015-09-29 Kevin Buettner <kevinb@redhat.com>
806
807 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
808 and union arguments the same as pointer arguments when determining
809 size of argument.
810
811 2015-09-29 James Bowman <james.bowman@ftdichip.com>
812
813 * ft32-tdep.c: #include "opcode/ft32.h".
814 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
815 (ft32_analyze_prologue): Use FT32_* macros.
816
817 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
818
819 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
820 comment.
821
822 2015-09-28 Doug Evans <dje@google.com>
823
824 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
825
826 2015-09-28 Doug Evans <dje@google.com>
827
828 * common/filestuff.c (make_cleanup_close): Update comment.
829
830 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * btrace.c (parse_xml_btrace_block): Fix cast of
833 xml_find_attribute's return value.
834 * memory-map.c (memory_map_start_memory): Likewise.
835 * solib-svr4.c (library_list_start_library): Likewise.
836 * solib-target.c (library_list_start_segment): Likewise.
837 (library_list_start_section): Likewise.
838 * tracepoint.c (traceframe_info_start_memory): Likewise.
839
840 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
841
842 * d-namespace.c (d_lookup_symbol): New arg langdef.
843 All callers updated. Support looking up symbol as a primitive type.
844 (lookup_module_scope): New arg langdef. All callers updated.
845 Call d_lookup_symbol directly for simple bare symbols.
846
847 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
848
849 * macrocmd.c (print_macro_callback): Add cast(s).
850 * macrotab.c (macro_bcache_str): Likewise.
851 (new_macro_definition): Likewise.
852 * main.c (captured_main): Likewise.
853 * maint.c (print_bfd_section_info): Likewise.
854 * mdebugread.c (mdebug_build_psymtabs): Likewise.
855 (basic_type): Likewise.
856 * memattr.c (mem_region_cmp): Likewise.
857 * memory-map.c (memory_map_start_memory): Likewise.
858 (memory_map_end_memory): Likewise.
859 (memory_map_start_property): Likewise.
860 (memory_map_end_property): Likewise.
861 (clear_result): Likewise.
862 * memrange.c (compare_mem_ranges): Likewise.
863 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
864 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
865 * mi/mi-console.c (mi_console_file_delete): Likewise.
866 (mi_console_file_fputs): Likewise.
867 (mi_console_raw_packet): Likewise.
868 (mi_console_file_flush): Likewise.
869 (mi_console_set_raw): Likewise.
870 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
871 (mi_new_thread): Likewise.
872 (mi_thread_exit): Likewise.
873 (mi_record_changed): Likewise.
874 (mi_inferior_added): Likewise.
875 (mi_inferior_appeared): Likewise.
876 (mi_inferior_exit): Likewise.
877 (mi_inferior_removed): Likewise.
878 (mi_interp_data): Likewise.
879 (mi_on_normal_stop): Likewise.
880 (mi_traceframe_changed): Likewise.
881 (mi_tsv_created): Likewise.
882 (mi_tsv_deleted): Likewise.
883 (mi_tsv_modified): Likewise.
884 (mi_breakpoint_created): Likewise.
885 (mi_breakpoint_deleted): Likewise.
886 (mi_breakpoint_modified): Likewise.
887 (mi_output_running_pid): Likewise.
888 (mi_inferior_count): Likewise.
889 (mi_solib_loaded): Likewise.
890 (mi_solib_unloaded): Likewise.
891 (mi_command_param_changed): Likewise.
892 (mi_memory_changed): Likewise.
893 (report_initial_inferior): Likewise.
894 (mi_ui_out): Likewise.
895 (mi_set_logging): Likewise.
896 * mi/mi-main.c (collect_cores): Likewise.
897 (print_one_inferior): Likewise.
898 (free_vector_of_ints): Likewise.
899 (free_splay_tree): Likewise.
900 (mi_execute_command): Likewise.
901 * mi/mi-out.c (mi_table_body): Likewise.
902 (mi_table_end): Likewise.
903 (mi_table_header): Likewise.
904 (mi_begin): Likewise.
905 (mi_end): Likewise.
906 (mi_field_int): Likewise.
907 (mi_field_string): Likewise.
908 (mi_field_fmt): Likewise.
909 (mi_flush): Likewise.
910 (mi_redirect): Likewise.
911 (field_separator): Likewise.
912 (mi_open): Likewise.
913 (mi_close): Likewise.
914 (mi_out_buffered): Likewise.
915 (mi_out_rewind): Likewise.
916 (mi_out_put): Likewise.
917 (mi_version): Likewise.
918 (mi_out_data_dtor): Likewise.
919 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
920 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
921 * minidebug.c (lzma_open): Likewise.
922 (lzma_pread): Likewise.
923 (lzma_close): Likewise.
924 (lzma_stat): Likewise.
925 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
926 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
927 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
928 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
929 (mips_micro_frame_cache): Likewise.
930 (mips_insn32_frame_cache): Likewise.
931 (mips_stub_frame_cache): Likewise.
932 (gdb_print_insn_mips): Likewise.
933 (value_of_mips_user_reg): Likewise.
934 (mips_gdbarch_init): Likewise.
935 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
936 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
937 (mipsnbsd_supply_gregset): Likewise.
938 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
939 (am33_collect_gregset_method): Likewise.
940 (am33_collect_fpregset_method): Likewise.
941 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
942 * moxie-tdep.c (moxie_frame_cache): Likewise.
943 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
944 (msp430_analyze_frame_prologue): Likewise.
945 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
946 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
947 (nios2_collect_gregset): Likewise.
948 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
949 (nios2_stub_frame_cache): Likewise.
950 * objc-lang.c (find_methods): Likewise.
951 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
952 (get_objfile_pspace_data): Likewise.
953 (get_objfile_bfd_data): Likewise.
954 (objfile_bfd_data_free): Likewise.
955 (add_to_objfile_sections): Likewise.
956 (do_free_objfile_cleanup): Likewise.
957 (resume_section_map_updates_cleanup): Likewise.
958 * opencl-lang.c (builtin_opencl_type): Likewise.
959 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
960 * osdata.c (osdata_start_osdata): Likewise.
961 (osdata_start_item): Likewise.
962 (osdata_start_column): Likewise.
963 (osdata_end_column): Likewise.
964 (clear_parsing_data): Likewise.
965 (osdata_free_cleanup): Likewise.
966 * parse.c (type_stack_cleanup): Likewise.
967 (exp_uses_objfile_iter): Likewise.
968 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
969 (ppc_linux_collect_gregset): Likewise.
970 (ppu2spu_prev_arch): Likewise.
971 (ppu2spu_this_id): Likewise.
972 (ppu2spu_prev_register): Likewise.
973 (ppu2spu_unwind_register): Likewise.
974 (ppu2spu_sniffer): Likewise.
975 (ppu2spu_dealloc_cache): Likewise.
976 (ppc_linux_init_abi): Likewise.
977 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
978 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
979 * progspace.c (restore_program_space): Likewise.
980 * psymtab.c (find_pc_sect_psymtab): Likewise.
981 (compare_psymbols): Likewise.
982 (psymbol_bcache_full): Likewise.
983 (allocate_psymtab): Likewise.
984 (discard_psymtabs_upto): Likewise.
985 * python/py-block.c (set_block): Likewise.
986 (del_objfile_blocks): Likewise.
987 * python/py-breakpoint.c (build_bp_list): Likewise.
988 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
989 (build_inferior_list): Likewise.
990 (py_free_inferior): Likewise.
991 * python/py-objfile.c (py_free_objfile): Likewise.
992 (objfile_to_objfile_object): Likewise.
993 * python/py-prettyprint.c (py_restore_tstate): Likewise.
994 * python/py-progspace.c (py_free_pspace): Likewise.
995 (pspace_to_pspace_object): Likewise.
996 * python/py-symbol.c (set_symbol): Likewise.
997 (del_objfile_symbols): Likewise.
998 * python/py-symtab.c (set_sal): Likewise.
999 (set_symtab): Likewise.
1000 (del_objfile_symtab): Likewise.
1001 (del_objfile_sal): Likewise.
1002 * python/py-type.c (save_objfile_types): Likewise.
1003 (set_type): Likewise.
1004 * python/py-unwind.c (pyuw_prev_register): Likewise.
1005 (pyuw_on_new_gdbarch): Likewise.
1006 * python/py-utils.c (py_decref): Likewise.
1007 (py_xdecref): Likewise.
1008 (gdb_py_generic_dict): Likewise.
1009 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1010 (gdbpy_clone_xmethod_worker_data): Likewise.
1011 (gdbpy_get_xmethod_arg_types): Likewise.
1012 (gdbpy_get_xmethod_result_type): Likewise.
1013 (gdbpy_invoke_xmethod): Likewise.
1014 * python/python.c (gdbpy_apply_type_printers): Likewise.
1015 (gdbpy_free_type_printers): Likewise.
1016 * record-btrace.c (record_btrace_disable_callback): Likewise.
1017 (bfcache_hash): Likewise.
1018 (bfcache_eq): Likewise.
1019 (btrace_get_frame_function): Likewise.
1020 (record_btrace_frame_unwind_stop_reason): Likewise.
1021 (record_btrace_frame_this_id): Likewise.
1022 (record_btrace_frame_prev_register): Likewise.
1023 (record_btrace_frame_dealloc_cache): Likewise.
1024 * record-full.c (record_full_message_wrapper): Likewise.
1025 (record_full_save_cleanups): Likewise.
1026 * regcache.c (regcache_descr): Likewise.
1027 (do_regcache_xfree): Likewise.
1028 (do_regcache_invalidate): Likewise.
1029 (do_cooked_read): Likewise.
1030 (regcache_transfer_regset): Likewise.
1031 * reggroups.c (reggroup_add): Likewise.
1032 (reggroup_next): Likewise.
1033 (reggroup_prev): Likewise.
1034 * remote-fileio.c (do_remote_fileio_request): Likewise.
1035 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1036 (do_notif_event_xfree): Likewise.
1037 * remote.c (get_remote_arch_state): Likewise.
1038 (remote_pspace_data_cleanup): Likewise.
1039 (get_remote_exec_file): Likewise.
1040 (set_pspace_remote_exec_file): Likewise.
1041 (compare_pnums): Likewise.
1042 (clear_threads_listing_context): Likewise.
1043 (remote_newthread_step): Likewise.
1044 (start_thread): Likewise.
1045 (end_thread): Likewise.
1046 (remove_child_of_pending_fork): Likewise.
1047 (remove_stop_reply_for_inferior): Likewise.
1048 (remove_stop_reply_of_remote_state): Likewise.
1049 (remote_notif_remove_once_on_match): Likewise.
1050 (stop_reply_match_ptid_and_ws): Likewise.
1051 (kill_child_of_pending_fork): Likewise.
1052 (register_remote_g_packet_guess): Likewise.
1053 (remote_read_description_p): Likewise.
1054 (remote_read_description): Likewise.
1055 (free_actions_list_cleanup_wrapper): Likewise.
1056 (remote_async_serial_handler): Likewise.
1057 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1058 (rl78_analyze_frame_prologue): Likewise.
1059 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1060 (ppc_supply_fpregset): Likewise.
1061 (ppc_supply_vsxregset): Likewise.
1062 (ppc_supply_vrregset): Likewise.
1063 (ppc_collect_gregset): Likewise.
1064 (ppc_collect_fpregset): Likewise.
1065 (ppc_collect_vsxregset): Likewise.
1066 (ppc_collect_vrregset): Likewise.
1067 (e500_move_ev_register): Likewise.
1068 (do_regcache_raw_write): Likewise.
1069 (rs6000_frame_cache): Likewise.
1070 (rs6000_epilogue_frame_cache): Likewise.
1071 (rs6000_gdbarch_init): Likewise.
1072 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1073 (rx_analyze_frame_prologue): Likewise.
1074 (rx_frame_type): Likewise.
1075 (rx_frame_sniffer_common): Likewise.
1076 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1077 (s390_frame_unwind_cache): Likewise.
1078 (s390_stub_frame_unwind_cache): Likewise.
1079 (s390_sigtramp_frame_unwind_cache): Likewise.
1080 * score-tdep.c (score_make_prologue_cache): Likewise.
1081 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1082 (sentinel_frame_prev_arch): Likewise.
1083 * ser-base.c (fd_event): Likewise.
1084 (push_event): Likewise.
1085 (ser_base_write): Likewise.
1086 * ser-pipe.c (pipe_close): Likewise.
1087 * serial.c (serial_write): Likewise.
1088 * sh-tdep.c (sh_frame_cache): Likewise.
1089 (sh_stub_this_id): Likewise.
1090 * sh64-tdep.c (sh64_frame_cache): Likewise.
1091 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1092 (library_list_start_library): Likewise.
1093 (library_list_start_list): Likewise.
1094 (solib_aix_free_library_list): Likewise.
1095 * solib-darwin.c (get_darwin_info): Likewise.
1096 * solib-dsbt.c (get_dsbt_info): Likewise.
1097 * solib-spu.c (append_ocl_sos): Likewise.
1098 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1099 (get_svr4_info): Likewise.
1100 (library_list_start_library): Likewise.
1101 (svr4_library_list_start_list): Likewise.
1102 (hash_probe_and_action): Likewise.
1103 (equal_probe_and_action): Likewise.
1104 (svr4_update_solib_event_breakpoint): Likewise.
1105 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1106 (svr4_fetch_link_map_offsets): Likewise.
1107 (svr4_have_link_map_offsets): Likewise.
1108 * solib-target.c (library_list_start_segment): Likewise.
1109 (library_list_start_section): Likewise.
1110 (library_list_start_library): Likewise.
1111 (library_list_end_library): Likewise.
1112 (library_list_start_list): Likewise.
1113 (solib_target_free_library_list): Likewise.
1114 * solib.c (solib_ops): Likewise.
1115 (set_solib_ops): Likewise.
1116 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1117 * sparc-tdep.c (sparc_frame_cache): Likewise.
1118 (sparc32_frame_cache): Likewise.
1119 (sparc32_supply_gregset): Likewise.
1120 (sparc32_collect_gregset): Likewise.
1121 (sparc32_supply_fpregset): Likewise.
1122 (sparc32_collect_fpregset): Likewise.
1123 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1124 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1125 (sparc64_collect_gregset): Likewise.
1126 (sparc64_supply_fpregset): Likewise.
1127 (sparc64_collect_fpregset): Likewise.
1128 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1129 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1130 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1131 (sparc64obsd_trapframe_cache): Likewise.
1132 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1133 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1134 * spu-multiarch.c (spu_gdbarch): Likewise.
1135 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1136 (spu2ppu_prev_arch): Likewise.
1137 (spu2ppu_this_id): Likewise.
1138 (spu2ppu_prev_register): Likewise.
1139 (spu2ppu_dealloc_cache): Likewise.
1140 (spu_dis_asm_print_address): Likewise.
1141 (gdb_print_insn_spu): Likewise.
1142 (spu_get_overlay_table): Likewise.
1143 * stabsread.c (rs6000_builtin_type): Likewise.
1144 * stack.c (do_print_variable_and_value): Likewise.
1145 * stap-probe.c (get_stap_base_address_1): Likewise.
1146 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1147 (debug_qf_find_last_source_symtab): Likewise.
1148 (debug_qf_forget_cached_source_info): Likewise.
1149 (debug_qf_map_symtabs_matching_filename): Likewise.
1150 (debug_qf_lookup_symbol): Likewise.
1151 (debug_qf_print_stats): Likewise.
1152 (debug_qf_dump): Likewise.
1153 (debug_qf_relocate): Likewise.
1154 (debug_qf_expand_symtabs_for_function): Likewise.
1155 (debug_qf_expand_all_symtabs): Likewise.
1156 (debug_qf_expand_symtabs_with_fullname): Likewise.
1157 (debug_qf_map_matching_symbols): Likewise.
1158 (debug_qf_expand_symtabs_matching): Likewise.
1159 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1160 (debug_qf_map_symbol_filenames): Likewise.
1161 (debug_sym_get_probes): Likewise.
1162 (debug_sym_new_init): Likewise.
1163 (debug_sym_init): Likewise.
1164 (debug_sym_read): Likewise.
1165 (debug_sym_read_psymbols): Likewise.
1166 (debug_sym_finish): Likewise.
1167 (debug_sym_offsets): Likewise.
1168 (debug_sym_read_linetable): Likewise.
1169 (debug_sym_relocate): Likewise.
1170 (uninstall_symfile_debug_logging): Likewise.
1171 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1172 * symfile.c (place_section): Likewise.
1173 (add_section_size_callback): Likewise.
1174 (load_progress): Likewise.
1175 (load_section_callback): Likewise.
1176 (clear_memory_write_data): Likewise.
1177 (allocate_symtab): Likewise.
1178 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1179 * symtab.c (lookup_symtab_callback): Likewise.
1180 (hash_demangled_name_entry): Likewise.
1181 (eq_demangled_name_entry): Likewise.
1182 (get_symbol_cache): Likewise.
1183 (symbol_cache_cleanup): Likewise.
1184 (set_symbol_cache_size): Likewise.
1185 (symbol_cache_flush): Likewise.
1186 (maintenance_print_symbol_cache): Likewise.
1187 (maintenance_print_symbol_cache_statistics): Likewise.
1188 (delete_filename_seen_cache): Likewise.
1189 (output_partial_symbol_filename): Likewise.
1190 (search_symbols_file_matches): Likewise.
1191 (search_symbols_name_matches): Likewise.
1192 (do_free_completion_list): Likewise.
1193 (maybe_add_partial_symtab_filename): Likewise.
1194 (get_main_info): Likewise.
1195 (main_info_cleanup): Likewise.
1196 * target-dcache.c (target_dcache_cleanup): Likewise.
1197 (target_dcache_init_p): Likewise.
1198 (target_dcache_invalidate): Likewise.
1199 (target_dcache_get): Likewise.
1200 (target_dcache_get_or_init): Likewise.
1201 * target-descriptions.c (target_find_description): Likewise.
1202 (tdesc_find_type): Likewise.
1203 (tdesc_data_cleanup): Likewise.
1204 (tdesc_find_arch_register): Likewise.
1205 (tdesc_register_name): Likewise.
1206 (tdesc_register_type): Likewise.
1207 (tdesc_register_reggroup_p): Likewise.
1208 (set_tdesc_pseudo_register_name): Likewise.
1209 (set_tdesc_pseudo_register_type): Likewise.
1210 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1211 (tdesc_use_registers): Likewise.
1212 (free_target_description): Likewise.
1213 * target-memory.c (compare_block_starting_address): Likewise.
1214 (cleanup_request_data): Likewise.
1215 (cleanup_write_requests_vector): Likewise.
1216 * target.c (open_target): Likewise.
1217 (cleanup_restore_target_terminal): Likewise.
1218 (free_memory_read_result_vector): Likewise.
1219 * thread.c (disable_thread_stack_temporaries): Likewise.
1220 (finish_thread_state_cleanup): Likewise.
1221 (do_restore_current_thread_cleanup): Likewise.
1222 (restore_current_thread_cleanup_dtor): Likewise.
1223 (set_thread_refcount): Likewise.
1224 (tp_array_compar): Likewise.
1225 (do_captured_thread_select): Likewise.
1226 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1227 (tic6x_stub_this_id): Likewise.
1228 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1229 * top.c (do_restore_instream_cleanup): Likewise.
1230 (gdb_readline_wrapper_cleanup): Likewise.
1231 (kill_or_detach): Likewise.
1232 (print_inferior_quit_action): Likewise.
1233 * tracefile-tfile.c (match_blocktype): Likewise.
1234 (build_traceframe_info): Likewise.
1235 * tracefile.c (trace_file_writer_xfree): Likewise.
1236 * tracepoint.c (memrange_cmp): Likewise.
1237 (do_collect_symbol): Likewise.
1238 (do_clear_collection_list): Likewise.
1239 (do_restore_current_traceframe_cleanup): Likewise.
1240 (restore_current_traceframe_cleanup_dtor): Likewise.
1241 (free_current_marker): Likewise.
1242 (traceframe_info_start_memory): Likewise.
1243 (traceframe_info_start_tvar): Likewise.
1244 (free_result): Likewise.
1245 * tramp-frame.c (tramp_frame_cache): Likewise.
1246 * tui/tui-file.c (tui_file_delete): Likewise.
1247 (tui_fileopen): Likewise.
1248 (tui_sfileopen): Likewise.
1249 (tui_file_isatty): Likewise.
1250 (tui_file_rewind): Likewise.
1251 (tui_file_put): Likewise.
1252 (tui_file_fputs): Likewise.
1253 (tui_file_get_strbuf): Likewise.
1254 (tui_file_adjust_strbuf): Likewise.
1255 (tui_file_flush): Likewise.
1256 * tui/tui-layout.c (make_command_window): Likewise.
1257 (make_data_window): Likewise.
1258 (show_source_disasm_command): Likewise.
1259 (show_data): Likewise.
1260 (make_source_or_disasm_window): Likewise.
1261 (show_source_or_disasm_and_command): Likewise.
1262 * tui/tui-out.c (tui_field_int): Likewise.
1263 (tui_field_string): Likewise.
1264 (tui_field_fmt): Likewise.
1265 (tui_text): Likewise.
1266 * typeprint.c (hash_typedef_field): Likewise.
1267 (eq_typedef_field): Likewise.
1268 (do_free_typedef_hash): Likewise.
1269 (copy_typedef_hash_element): Likewise.
1270 (do_free_global_table): Likewise.
1271 (find_global_typedef): Likewise.
1272 (find_typedef_in_hash): Likewise.
1273 * ui-file.c (ui_file_write_for_put): Likewise.
1274 (do_ui_file_xstrdup): Likewise.
1275 (mem_file_delete): Likewise.
1276 (mem_file_rewind): Likewise.
1277 (mem_file_put): Likewise.
1278 (mem_file_write): Likewise.
1279 (stdio_file_delete): Likewise.
1280 (stdio_file_flush): Likewise.
1281 (stdio_file_read): Likewise.
1282 (stdio_file_write): Likewise.
1283 (stdio_file_write_async_safe): Likewise.
1284 (stdio_file_fputs): Likewise.
1285 (stdio_file_isatty): Likewise.
1286 (stdio_file_fseek): Likewise.
1287 (tee_file_delete): Likewise.
1288 (tee_file_flush): Likewise.
1289 (tee_file_write): Likewise.
1290 (tee_file_fputs): Likewise.
1291 (tee_file_isatty): Likewise.
1292 * ui-out.c (do_cleanup_table_end): Likewise.
1293 (do_cleanup_end): Likewise.
1294 * user-regs.c (user_reg_add): Likewise.
1295 (user_reg_map_name_to_regnum): Likewise.
1296 (usernum_to_user_reg): Likewise.
1297 (maintenance_print_user_registers): Likewise.
1298 * utils.c (do_bfd_close_cleanup): Likewise.
1299 (do_fclose_cleanup): Likewise.
1300 (do_obstack_free): Likewise.
1301 (do_ui_file_delete): Likewise.
1302 (do_ui_out_redirect_pop): Likewise.
1303 (do_free_section_addr_info): Likewise.
1304 (restore_integer): Likewise.
1305 (do_unpush_target): Likewise.
1306 (do_htab_delete_cleanup): Likewise.
1307 (do_restore_ui_file): Likewise.
1308 (do_value_free): Likewise.
1309 (do_free_so): Likewise.
1310 (free_current_contents): Likewise.
1311 (do_regfree_cleanup): Likewise.
1312 (core_addr_hash): Likewise.
1313 (core_addr_eq): Likewise.
1314 (do_free_char_ptr_vec): Likewise.
1315 * v850-tdep.c (v850_frame_cache): Likewise.
1316 * varobj.c (do_free_variable_cleanup): Likewise.
1317 * vax-tdep.c (vax_supply_gregset): Likewise.
1318 (vax_frame_cache): Likewise.
1319 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1320 * xml-support.c (gdb_xml_body_text): Likewise.
1321 (gdb_xml_values_cleanup): Likewise.
1322 (gdb_xml_start_element): Likewise.
1323 (gdb_xml_start_element_wrapper): Likewise.
1324 (gdb_xml_end_element): Likewise.
1325 (gdb_xml_end_element_wrapper): Likewise.
1326 (gdb_xml_cleanup): Likewise.
1327 (gdb_xml_fetch_external_entity): Likewise.
1328 (gdb_xml_parse_attr_enum): Likewise.
1329 (xinclude_start_include): Likewise.
1330 (xinclude_end_include): Likewise.
1331 (xml_xinclude_default): Likewise.
1332 (xml_xinclude_start_doctype): Likewise.
1333 (xml_xinclude_end_doctype): Likewise.
1334 (xml_xinclude_cleanup): Likewise.
1335 (xml_fetch_content_from_file): Likewise.
1336 * xml-syscall.c (free_syscalls_info): Likewise.
1337 (syscall_start_syscall): Likewise.
1338 * xml-tdesc.c (tdesc_end_arch): Likewise.
1339 (tdesc_end_osabi): Likewise.
1340 (tdesc_end_compatible): Likewise.
1341 (tdesc_start_target): Likewise.
1342 (tdesc_start_feature): Likewise.
1343 (tdesc_start_reg): Likewise.
1344 (tdesc_start_union): Likewise.
1345 (tdesc_start_struct): Likewise.
1346 (tdesc_start_flags): Likewise.
1347 (tdesc_start_field): Likewise.
1348 (tdesc_start_vector): Likewise.
1349 (fetch_available_features_from_target): Likewise.
1350 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1351 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1352 (xtensa_frame_cache): Likewise.
1353 (xtensa_frame_prev_register): Likewise.
1354 (xtensa_extract_return_value): Likewise.
1355
1356 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1357
1358 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1359 (aarch64_make_stub_cache): Likewise.
1360 (value_of_aarch64_user_reg): Likewise.
1361 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1362 (get_ada_inferior_data): Likewise.
1363 (get_ada_pspace_data): Likewise.
1364 (ada_pspace_data_cleanup): Likewise.
1365 (ada_complete_symbol_matcher): Likewise.
1366 (ada_exc_search_name_matches): Likewise.
1367 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1368 (get_ada_tasks_inferior_data): Likewise.
1369 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1370 (splay_obstack_alloc): Likewise.
1371 (splay_obstack_free): Likewise.
1372 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1373 (alpha_linux_collect_gregset): Likewise.
1374 (alpha_linux_supply_fpregset): Likewise.
1375 (alpha_linux_collect_fpregset): Likewise.
1376 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1377 * alpha-tdep.c (alpha_lds): Likewise.
1378 (alpha_sts): Likewise.
1379 (alpha_sigtramp_frame_unwind_cache): Likewise.
1380 (alpha_heuristic_frame_unwind_cache): Likewise.
1381 (alpha_supply_int_regs): Likewise.
1382 (alpha_fill_int_regs): Likewise.
1383 (alpha_supply_fp_regs): Likewise.
1384 (alpha_fill_fp_regs): Likewise.
1385 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1386 (alphanbsd_aout_supply_gregset): Likewise.
1387 (alphanbsd_supply_gregset): Likewise.
1388 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1389 (amd64_x32_linux_init_abi): Likewise.
1390 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1391 (amd64_collect_native_gregset): Likewise.
1392 * amd64-tdep.c (amd64_frame_cache): Likewise.
1393 (amd64_sigtramp_frame_cache): Likewise.
1394 (amd64_epilogue_frame_cache): Likewise.
1395 (amd64_supply_fxsave): Likewise.
1396 (amd64_supply_xsave): Likewise.
1397 (amd64_collect_fxsave): Likewise.
1398 (amd64_collect_xsave): Likewise.
1399 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1400 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1401 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1402 (arm_linux_collect_gregset): Likewise.
1403 (arm_linux_supply_nwfpe): Likewise.
1404 (arm_linux_collect_nwfpe): Likewise.
1405 (arm_linux_supply_vfp): Likewise.
1406 (arm_linux_collect_vfp): Likewise.
1407 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1408 (arm_prologue_unwind_stop_reason): Likewise.
1409 (arm_prologue_this_id): Likewise.
1410 (arm_prologue_prev_register): Likewise.
1411 (arm_exidx_data_free): Likewise.
1412 (arm_find_exidx_entry): Likewise.
1413 (arm_stub_this_id): Likewise.
1414 (arm_m_exception_this_id): Likewise.
1415 (arm_m_exception_prev_register): Likewise.
1416 (arm_normal_frame_base): Likewise.
1417 (gdb_print_insn_arm): Likewise.
1418 (arm_objfile_data_free): Likewise.
1419 (arm_record_special_symbol): Likewise.
1420 (value_of_arm_user_reg): Likewise.
1421 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1422 (armbsd_supply_gregset): Likewise.
1423 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1424 (get_auto_load_pspace_data): Likewise.
1425 (hash_loaded_script_entry): Likewise.
1426 (eq_loaded_script_entry): Likewise.
1427 (clear_section_scripts): Likewise.
1428 (collect_matching_scripts): Likewise.
1429 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1430 (get_auxv_inferior_data): Likewise.
1431 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1432 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1433 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1434 (target_bfd_xclose): Likewise.
1435 (target_bfd_get_section_table): Likewise.
1436 * bfin-tdep.c (bfin_frame_cache): Likewise.
1437 * block.c (find_block_in_blockvector): Likewise.
1438 (call_site_for_pc): Likewise.
1439 (block_find_non_opaque_type_preferred): Likewise.
1440 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1441 (signal_catchpoint_remove_location): Likewise.
1442 (signal_catchpoint_breakpoint_hit): Likewise.
1443 (signal_catchpoint_print_one): Likewise.
1444 (signal_catchpoint_print_mention): Likewise.
1445 (signal_catchpoint_print_recreate): Likewise.
1446 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1447 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1448 (bp_location_compare_addrs): Likewise.
1449 (get_first_locp_gte_addr): Likewise.
1450 (check_tracepoint_command): Likewise.
1451 (do_map_commands_command): Likewise.
1452 (get_breakpoint_objfile_data): Likewise.
1453 (free_breakpoint_probes): Likewise.
1454 (do_captured_breakpoint_query): Likewise.
1455 (compare_breakpoints): Likewise.
1456 (bp_location_compare): Likewise.
1457 (bpstat_remove_breakpoint_callback): Likewise.
1458 (do_delete_breakpoint_cleanup): Likewise.
1459 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1460 (bsd_uthread_set_collect_uthread): Likewise.
1461 (bsd_uthread_activate): Likewise.
1462 (bsd_uthread_fetch_registers): Likewise.
1463 (bsd_uthread_store_registers): Likewise.
1464 * btrace.c (check_xml_btrace_version): Likewise.
1465 (parse_xml_btrace_block): Likewise.
1466 (parse_xml_btrace_pt_config_cpu): Likewise.
1467 (parse_xml_btrace_pt_raw): Likewise.
1468 (parse_xml_btrace_pt): Likewise.
1469 (parse_xml_btrace_conf_bts): Likewise.
1470 (parse_xml_btrace_conf_pt): Likewise.
1471 (do_btrace_data_cleanup): Likewise.
1472 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1473 * charset.c (cleanup_iconv): Likewise.
1474 (do_cleanup_iterator): Likewise.
1475 * cli-out.c (cli_uiout_dtor): Likewise.
1476 (cli_table_begin): Likewise.
1477 (cli_table_body): Likewise.
1478 (cli_table_end): Likewise.
1479 (cli_table_header): Likewise.
1480 (cli_begin): Likewise.
1481 (cli_end): Likewise.
1482 (cli_field_int): Likewise.
1483 (cli_field_skip): Likewise.
1484 (cli_field_string): Likewise.
1485 (cli_field_fmt): Likewise.
1486 (cli_spaces): Likewise.
1487 (cli_text): Likewise.
1488 (cli_message): Likewise.
1489 (cli_wrap_hint): Likewise.
1490 (cli_flush): Likewise.
1491 (cli_redirect): Likewise.
1492 (out_field_fmt): Likewise.
1493 (field_separator): Likewise.
1494 (cli_out_set_stream): Likewise.
1495 * cli/cli-cmds.c (compare_symtabs): Likewise.
1496 * cli/cli-dump.c (call_dump_func): Likewise.
1497 (restore_section_callback): Likewise.
1498 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1499 (do_restore_user_call_depth): Likewise.
1500 (do_free_command_lines_cleanup): Likewise.
1501 * coff-pe-read.c (get_section_vmas): Likewise.
1502 (pe_as16): Likewise.
1503 (pe_as32): Likewise.
1504 * coffread.c (coff_symfile_read): Likewise.
1505 * common/agent.c (agent_look_up_symbols): Likewise.
1506 * common/filestuff.c (do_close_cleanup): Likewise.
1507 * common/format.c (free_format_pieces_cleanup): Likewise.
1508 * common/vec.c (vec_o_reserve): Likewise.
1509 * compile/compile-c-support.c (print_one_macro): Likewise.
1510 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1511 (eq_symbol_error): Likewise.
1512 (del_symbol_error): Likewise.
1513 (error_symbol_once): Likewise.
1514 (gcc_convert_symbol): Likewise.
1515 (gcc_symbol_address): Likewise.
1516 (hash_symname): Likewise.
1517 (eq_symname): Likewise.
1518 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1519 (eq_type_map_instance): Likewise.
1520 (insert_type): Likewise.
1521 (convert_type): Likewise.
1522 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1523 (setup_sections): Likewise.
1524 (link_hash_table_free): Likewise.
1525 (copy_sections): Likewise.
1526 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1527 * compile/compile.c (compile_print_value): Likewise.
1528 (do_rmdir): Likewise.
1529 (cleanup_compile_instance): Likewise.
1530 (cleanup_unlink_file): Likewise.
1531 * completer.c (free_completion_tracker): Likewise.
1532 * corelow.c (add_to_spuid_list): Likewise.
1533 * cp-namespace.c (reset_directive_searched): Likewise.
1534 * cp-support.c (reset_directive_searched): Likewise.
1535 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1536 (cris_frame_unwind_cache): Likewise.
1537 * d-lang.c (builtin_d_type): Likewise.
1538 * d-namespace.c (reset_directive_searched): Likewise.
1539 * dbxread.c (dbx_free_symfile_info): Likewise.
1540 (do_free_bincl_list_cleanup): Likewise.
1541 * disasm.c (hash_dis_line_entry): Likewise.
1542 (eq_dis_line_entry): Likewise.
1543 (dis_asm_print_address): Likewise.
1544 (fprintf_disasm): Likewise.
1545 (do_ui_file_delete): Likewise.
1546 * doublest.c (convert_floatformat_to_doublest): Likewise.
1547 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1548 (dummy_frame_prev_register): Likewise.
1549 (dummy_frame_this_id): Likewise.
1550 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1551 (cache_eq): Likewise.
1552 (cache_find): Likewise.
1553 (tailcall_frame_this_id): Likewise.
1554 (dwarf2_tailcall_prev_register_first): Likewise.
1555 (tailcall_frame_prev_register): Likewise.
1556 (tailcall_frame_dealloc_cache): Likewise.
1557 (tailcall_frame_prev_arch): Likewise.
1558 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1559 (dwarf2_frame_set_init_reg): Likewise.
1560 (dwarf2_frame_init_reg): Likewise.
1561 (dwarf2_frame_set_signal_frame_p): Likewise.
1562 (dwarf2_frame_signal_frame_p): Likewise.
1563 (dwarf2_frame_set_adjust_regnum): Likewise.
1564 (dwarf2_frame_adjust_regnum): Likewise.
1565 (clear_pointer_cleanup): Likewise.
1566 (dwarf2_frame_cache): Likewise.
1567 (find_cie): Likewise.
1568 (dwarf2_frame_find_fde): Likewise.
1569 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1570 (free_dwarf_expr_context_cleanup): Likewise.
1571 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1572 (locexpr_get_frame_base): Likewise.
1573 (loclist_find_frame_base_location): Likewise.
1574 (loclist_get_frame_base): Likewise.
1575 (dwarf_expr_dwarf_call): Likewise.
1576 (dwarf_expr_get_base_type): Likewise.
1577 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1578 (dwarf_expr_get_obj_addr): Likewise.
1579 (entry_data_value_coerce_ref): Likewise.
1580 (entry_data_value_copy_closure): Likewise.
1581 (entry_data_value_free_closure): Likewise.
1582 (get_frame_address_in_block_wrapper): Likewise.
1583 (dwarf2_evaluate_property): Likewise.
1584 (dwarf2_compile_property_to_c): Likewise.
1585 (needs_frame_read_addr_from_reg): Likewise.
1586 (needs_frame_get_reg_value): Likewise.
1587 (needs_frame_frame_base): Likewise.
1588 (needs_frame_frame_cfa): Likewise.
1589 (needs_frame_tls_address): Likewise.
1590 (needs_frame_dwarf_call): Likewise.
1591 (needs_dwarf_reg_entry_value): Likewise.
1592 (get_ax_pc): Likewise.
1593 (locexpr_read_variable): Likewise.
1594 (locexpr_read_variable_at_entry): Likewise.
1595 (locexpr_read_needs_frame): Likewise.
1596 (locexpr_describe_location): Likewise.
1597 (locexpr_tracepoint_var_ref): Likewise.
1598 (locexpr_generate_c_location): Likewise.
1599 (loclist_read_variable): Likewise.
1600 (loclist_read_variable_at_entry): Likewise.
1601 (loclist_describe_location): Likewise.
1602 (loclist_tracepoint_var_ref): Likewise.
1603 (loclist_generate_c_location): Likewise.
1604 * dwarf2read.c (line_header_hash_voidp): Likewise.
1605 (line_header_eq_voidp): Likewise.
1606 (dwarf2_has_info): Likewise.
1607 (dwarf2_get_section_info): Likewise.
1608 (locate_dwz_sections): Likewise.
1609 (hash_file_name_entry): Likewise.
1610 (eq_file_name_entry): Likewise.
1611 (delete_file_name_entry): Likewise.
1612 (dw2_setup): Likewise.
1613 (dw2_get_file_names_reader): Likewise.
1614 (dw2_find_pc_sect_compunit_symtab): Likewise.
1615 (hash_signatured_type): Likewise.
1616 (eq_signatured_type): Likewise.
1617 (add_signatured_type_cu_to_table): Likewise.
1618 (create_debug_types_hash_table): Likewise.
1619 (lookup_dwo_signatured_type): Likewise.
1620 (lookup_dwp_signatured_type): Likewise.
1621 (lookup_signatured_type): Likewise.
1622 (hash_type_unit_group): Likewise.
1623 (eq_type_unit_group): Likewise.
1624 (get_type_unit_group): Likewise.
1625 (process_psymtab_comp_unit_reader): Likewise.
1626 (sort_tu_by_abbrev_offset): Likewise.
1627 (process_skeletonless_type_unit): Likewise.
1628 (psymtabs_addrmap_cleanup): Likewise.
1629 (dwarf2_read_symtab): Likewise.
1630 (psymtab_to_symtab_1): Likewise.
1631 (die_hash): Likewise.
1632 (die_eq): Likewise.
1633 (load_full_comp_unit_reader): Likewise.
1634 (reset_die_in_process): Likewise.
1635 (free_cu_line_header): Likewise.
1636 (handle_DW_AT_stmt_list): Likewise.
1637 (hash_dwo_file): Likewise.
1638 (eq_dwo_file): Likewise.
1639 (hash_dwo_unit): Likewise.
1640 (eq_dwo_unit): Likewise.
1641 (create_dwo_cu_reader): Likewise.
1642 (create_dwo_unit_in_dwp_v1): Likewise.
1643 (create_dwo_unit_in_dwp_v2): Likewise.
1644 (lookup_dwo_unit_in_dwp): Likewise.
1645 (dwarf2_locate_dwo_sections): Likewise.
1646 (dwarf2_locate_common_dwp_sections): Likewise.
1647 (dwarf2_locate_v2_dwp_sections): Likewise.
1648 (hash_dwp_loaded_cutus): Likewise.
1649 (eq_dwp_loaded_cutus): Likewise.
1650 (lookup_dwo_cutu): Likewise.
1651 (abbrev_table_free_cleanup): Likewise.
1652 (dwarf2_free_abbrev_table): Likewise.
1653 (find_partial_die_in_comp_unit): Likewise.
1654 (free_line_header_voidp): Likewise.
1655 (follow_die_offset): Likewise.
1656 (follow_die_sig_1): Likewise.
1657 (free_heap_comp_unit): Likewise.
1658 (free_stack_comp_unit): Likewise.
1659 (dwarf2_free_objfile): Likewise.
1660 (per_cu_offset_and_type_hash): Likewise.
1661 (per_cu_offset_and_type_eq): Likewise.
1662 (get_die_type_at_offset): Likewise.
1663 (partial_die_hash): Likewise.
1664 (partial_die_eq): Likewise.
1665 (dwarf2_per_objfile_free): Likewise.
1666 (hash_strtab_entry): Likewise.
1667 (eq_strtab_entry): Likewise.
1668 (add_string): Likewise.
1669 (hash_symtab_entry): Likewise.
1670 (eq_symtab_entry): Likewise.
1671 (delete_symtab_entry): Likewise.
1672 (cleanup_mapped_symtab): Likewise.
1673 (add_indices_to_cpool): Likewise.
1674 (hash_psymtab_cu_index): Likewise.
1675 (eq_psymtab_cu_index): Likewise.
1676 (add_address_entry_worker): Likewise.
1677 (unlink_if_set): Likewise.
1678 (write_one_signatured_type): Likewise.
1679 (save_gdb_index_command): Likewise.
1680 * elfread.c (elf_symtab_read): Likewise.
1681 (elf_gnu_ifunc_cache_hash): Likewise.
1682 (elf_gnu_ifunc_cache_eq): Likewise.
1683 (elf_gnu_ifunc_record_cache): Likewise.
1684 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1685 (elf_get_probes): Likewise.
1686 (probe_key_free): Likewise.
1687 * f-lang.c (builtin_f_type): Likewise.
1688 * frame-base.c (frame_base_append_sniffer): Likewise.
1689 (frame_base_set_default): Likewise.
1690 (frame_base_find_by_frame): Likewise.
1691 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1692 (frame_unwind_append_unwinder): Likewise.
1693 (frame_unwind_find_by_frame): Likewise.
1694 * frame.c (frame_addr_hash): Likewise.
1695 (frame_addr_hash_eq): Likewise.
1696 (frame_stash_find): Likewise.
1697 (do_frame_register_read): Likewise.
1698 (unwind_to_current_frame): Likewise.
1699 (frame_cleanup_after_sniffer): Likewise.
1700 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1701 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1702 * ft32-tdep.c (ft32_frame_cache): Likewise.
1703 * gcore.c (do_bfd_delete_cleanup): Likewise.
1704 (gcore_create_callback): Likewise.
1705 * gdb_bfd.c (hash_bfd): Likewise.
1706 (eq_bfd): Likewise.
1707 (gdb_bfd_open): Likewise.
1708 (free_one_bfd_section): Likewise.
1709 (gdb_bfd_ref): Likewise.
1710 (gdb_bfd_unref): Likewise.
1711 (get_section_descriptor): Likewise.
1712 (gdb_bfd_map_section): Likewise.
1713 (gdb_bfd_crc): Likewise.
1714 (gdb_bfd_mark_parent): Likewise.
1715 (gdb_bfd_record_inclusion): Likewise.
1716 (gdb_bfd_requires_relocations): Likewise.
1717 (print_one_bfd): Likewise.
1718 * gdbtypes.c (type_pair_hash): Likewise.
1719 (type_pair_eq): Likewise.
1720 (builtin_type): Likewise.
1721 (objfile_type): Likewise.
1722 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1723 (vtable_address_point_offset): Likewise.
1724 (gnuv3_get_vtable): Likewise.
1725 (hash_value_and_voffset): Likewise.
1726 (eq_value_and_voffset): Likewise.
1727 (compare_value_and_voffset): Likewise.
1728 (compute_vtable_size): Likewise.
1729 (gnuv3_get_typeid_type): Likewise.
1730 * go-lang.c (builtin_go_type): Likewise.
1731 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1732 (bkscm_eq_block_smob): Likewise.
1733 (bkscm_objfile_block_map): Likewise.
1734 (bkscm_del_objfile_blocks): Likewise.
1735 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1736 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1737 (gdbscm_disasm_print_address): Likewise.
1738 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1739 (frscm_eq_frame_smob): Likewise.
1740 (frscm_inferior_frame_map): Likewise.
1741 (frscm_del_inferior_frames): Likewise.
1742 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1743 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1744 (ofscm_objfile_smob_from_objfile): Likewise.
1745 * guile/scm-ports.c (ioscm_write): Likewise.
1746 (ioscm_file_port_delete): Likewise.
1747 (ioscm_file_port_rewind): Likewise.
1748 (ioscm_file_port_put): Likewise.
1749 (ioscm_file_port_write): Likewise.
1750 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1751 (psscm_pspace_smob_from_pspace): Likewise.
1752 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1753 (scscm_recording_unwind_handler): Likewise.
1754 (gdbscm_with_catch): Likewise.
1755 (scscm_call_0_body): Likewise.
1756 (scscm_call_1_body): Likewise.
1757 (scscm_call_2_body): Likewise.
1758 (scscm_call_3_body): Likewise.
1759 (scscm_call_4_body): Likewise.
1760 (scscm_apply_1_body): Likewise.
1761 (scscm_eval_scheme_string): Likewise.
1762 (gdbscm_safe_eval_string): Likewise.
1763 (scscm_source_scheme_script): Likewise.
1764 (gdbscm_safe_source_script): Likewise.
1765 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1766 (gdbscm_call_scm_from_stringn): Likewise.
1767 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1768 (syscm_eq_symbol_smob): Likewise.
1769 (syscm_get_symbol_map): Likewise.
1770 (syscm_del_objfile_symbols): Likewise.
1771 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1772 (stscm_eq_symtab_smob): Likewise.
1773 (stscm_objfile_symtab_map): Likewise.
1774 (stscm_del_objfile_symtabs): Likewise.
1775 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1776 (tyscm_eq_type_smob): Likewise.
1777 (tyscm_type_map): Likewise.
1778 (tyscm_copy_type_recursive): Likewise.
1779 (save_objfile_types): Likewise.
1780 * guile/scm-utils.c (extract_arg): Likewise.
1781 * h8300-tdep.c (h8300_frame_cache): Likewise.
1782 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1783 * hppa-tdep.c (compare_unwind_entries): Likewise.
1784 (find_unwind_entry): Likewise.
1785 (hppa_frame_cache): Likewise.
1786 (hppa_stub_frame_unwind_cache): Likewise.
1787 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1788 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1789 (hppaobsd_supply_fpregset): Likewise.
1790 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1791 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1792 * i386-tdep.c (i386_frame_cache): Likewise.
1793 (i386_epilogue_frame_cache): Likewise.
1794 (i386_sigtramp_frame_cache): Likewise.
1795 (i386_supply_gregset): Likewise.
1796 (i386_collect_gregset): Likewise.
1797 (i386_gdbarch_init): Likewise.
1798 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1799 (i386obsd_trapframe_cache): Likewise.
1800 * i387-tdep.c (i387_supply_fsave): Likewise.
1801 (i387_collect_fsave): Likewise.
1802 (i387_supply_fxsave): Likewise.
1803 (i387_collect_fxsave): Likewise.
1804 (i387_supply_xsave): Likewise.
1805 (i387_collect_xsave): Likewise.
1806 * ia64-tdep.c (ia64_frame_cache): Likewise.
1807 (ia64_sigtramp_frame_cache): Likewise.
1808 * infcmd.c (attach_command_continuation): Likewise.
1809 (attach_command_continuation_free_args): Likewise.
1810 * inferior.c (restore_inferior): Likewise.
1811 (delete_thread_of_inferior): Likewise.
1812 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1813 (get_inflow_inferior_data): Likewise.
1814 (inflow_inferior_exit): Likewise.
1815 * infrun.c (displaced_step_clear_cleanup): Likewise.
1816 (restore_current_uiout_cleanup): Likewise.
1817 (release_stop_context_cleanup): Likewise.
1818 (do_restore_infcall_suspend_state_cleanup): Likewise.
1819 (do_restore_infcall_control_state_cleanup): Likewise.
1820 (restore_inferior_ptid): Likewise.
1821 * inline-frame.c (block_starting_point_at): Likewise.
1822 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1823 * jit.c (get_jit_objfile_data): Likewise.
1824 (get_jit_program_space_data): Likewise.
1825 (jit_object_close_impl): Likewise.
1826 (jit_find_objf_with_entry_addr): Likewise.
1827 (jit_breakpoint_deleted): Likewise.
1828 (jit_unwind_reg_set_impl): Likewise.
1829 (jit_unwind_reg_get_impl): Likewise.
1830 (jit_dealloc_cache): Likewise.
1831 (jit_frame_sniffer): Likewise.
1832 (jit_frame_prev_register): Likewise.
1833 (jit_prepend_unwinder): Likewise.
1834 (jit_inferior_exit_hook): Likewise.
1835 (free_objfile_data): Likewise.
1836 * jv-lang.c (jv_per_objfile_free): Likewise.
1837 (get_dynamics_objfile): Likewise.
1838 (get_java_class_symtab): Likewise.
1839 (builtin_java_type): Likewise.
1840 * language.c (language_string_char_type): Likewise.
1841 (language_bool_type): Likewise.
1842 (language_lookup_primitive_type): Likewise.
1843 (language_lookup_primitive_type_as_symbol): Likewise.
1844 * linespec.c (hash_address_entry): Likewise.
1845 (eq_address_entry): Likewise.
1846 (iterate_inline_only): Likewise.
1847 (iterate_name_matcher): Likewise.
1848 (decode_line_2_compare_items): Likewise.
1849 (collect_one_symbol): Likewise.
1850 (compare_symbols): Likewise.
1851 (compare_msymbols): Likewise.
1852 (add_symtabs_to_list): Likewise.
1853 (collect_symbols): Likewise.
1854 (compare_msyms): Likewise.
1855 (add_minsym): Likewise.
1856 (cleanup_linespec_result): Likewise.
1857 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1858 * linux-nat.c (delete_lwp_cleanup): Likewise.
1859 (count_events_callback): Likewise.
1860 (select_event_lwp_callback): Likewise.
1861 (resume_stopped_resumed_lwps): Likewise.
1862 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1863 (invalidate_linux_cache_inf): Likewise.
1864 (get_linux_inferior_data): Likewise.
1865 (linux_find_memory_regions_thunk): Likewise.
1866 (linux_make_mappings_callback): Likewise.
1867 (linux_corefile_thread_callback): Likewise.
1868 (find_mapping_size): Likewise.
1869 * linux-thread-db.c (find_new_threads_callback): Likewise.
1870 * lm32-tdep.c (lm32_frame_cache): Likewise.
1871 * m2-lang.c (builtin_m2_type): Likewise.
1872 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1873 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1874 (m32r_linux_supply_gregset): Likewise.
1875 (m32r_linux_collect_gregset): Likewise.
1876 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1877 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1878 * m68k-tdep.c (m68k_frame_cache): Likewise.
1879 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1880 (m68kbsd_supply_gregset): Likewise.
1881 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1882 * m88k-tdep.c (m88k_frame_cache): Likewise.
1883 (m88k_supply_gregset): Likewise.
1884
1885 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1886
1887 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1888 to allocation result assignment.
1889 * ada-exp.y (write_object_renaming): Likewise.
1890 (write_ambiguous_var): Likewise.
1891 (ada_nget_field_index): Likewise.
1892 (write_var_or_type): Likewise.
1893 * ada-lang.c (ada_decode_symbol): Likewise.
1894 (ada_value_assign): Likewise.
1895 (value_pointer): Likewise.
1896 (cache_symbol): Likewise.
1897 (add_nonlocal_symbols): Likewise.
1898 (ada_name_for_lookup): Likewise.
1899 (symbol_completion_add): Likewise.
1900 (ada_to_fixed_type_1): Likewise.
1901 (ada_get_next_arg): Likewise.
1902 (defns_collected): Likewise.
1903 * ada-lex.l (processId): Likewise.
1904 (processString): Likewise.
1905 * ada-tasks.c (read_known_tasks_array): Likewise.
1906 (read_known_tasks_list): Likewise.
1907 * ada-typeprint.c (decoded_type_name): Likewise.
1908 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1909 * amd64-tdep.c (amd64_push_arguments): Likewise.
1910 (amd64_displaced_step_copy_insn): Likewise.
1911 (amd64_classify_insn_at): Likewise.
1912 (amd64_relocate_instruction): Likewise.
1913 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1914 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1915 (initialize_current_architecture): Likewise.
1916 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1917 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1918 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1919 (arm_push_dummy_call): Likewise.
1920 (extend_buffer_earlier): Likewise.
1921 (arm_adjust_breakpoint_address): Likewise.
1922 (arm_skip_stub): Likewise.
1923 * auto-load.c (filename_is_in_pattern): Likewise.
1924 (maybe_add_script_file): Likewise.
1925 (maybe_add_script_text): Likewise.
1926 (auto_load_objfile_script_1): Likewise.
1927 * auxv.c (ld_so_xfer_auxv): Likewise.
1928 * ax-general.c (new_agent_expr): Likewise.
1929 (grow_expr): Likewise.
1930 (ax_reg_mask): Likewise.
1931 * bcache.c (bcache_full): Likewise.
1932 * breakpoint.c (program_breakpoint_here_p): Likewise.
1933 * btrace.c (parse_xml_raw): Likewise.
1934 * build-id.c (build_id_to_debug_bfd): Likewise.
1935 * buildsym.c (end_symtab_with_blockvector): Likewise.
1936 * c-exp.y (string_exp): Likewise.
1937 (qualified_name): Likewise.
1938 (write_destructor_name): Likewise.
1939 (operator_stoken): Likewise.
1940 (parse_number): Likewise.
1941 (scan_macro_expansion): Likewise.
1942 (yylex): Likewise.
1943 (c_print_token): Likewise.
1944 * c-lang.c (c_get_string): Likewise.
1945 (emit_numeric_character): Likewise.
1946 * charset.c (wchar_iterate): Likewise.
1947 * cli/cli-cmds.c (complete_command): Likewise.
1948 (make_command): Likewise.
1949 * cli/cli-dump.c (restore_section_callback): Likewise.
1950 (restore_binary_file): Likewise.
1951 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1952 * cli/cli-script.c (execute_control_command): Likewise.
1953 * cli/cli-setshow.c (do_set_command): Likewise.
1954 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1955 (read_pe_exported_syms): Likewise.
1956 * coffread.c (coff_read_struct_type): Likewise.
1957 (coff_read_enum_type): Likewise.
1958 * common/btrace-common.c (btrace_data_append): Likewise.
1959 * common/buffer.c (buffer_grow): Likewise.
1960 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1961 * common/format.c (parse_format_string): Likewise.
1962 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1963 * common/xml-utils.c (xml_escape_text): Likewise.
1964 * compile/compile-object-load.c (copy_sections): Likewise.
1965 (compile_object_load): Likewise.
1966 * compile/compile-object-run.c (compile_object_run): Likewise.
1967 * completer.c (filename_completer): Likewise.
1968 * corefile.c (read_memory_typed_address): Likewise.
1969 (write_memory_unsigned_integer): Likewise.
1970 (write_memory_signed_integer): Likewise.
1971 (complete_set_gnutarget): Likewise.
1972 * corelow.c (get_core_register_section): Likewise.
1973 * cp-name-parser.y (d_grab): Likewise.
1974 (allocate_info): Likewise.
1975 (cp_new_demangle_parse_info): Likewise.
1976 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1977 (cp_lookup_symbol_in_namespace): Likewise.
1978 (lookup_namespace_scope): Likewise.
1979 (find_symbol_in_baseclass): Likewise.
1980 (cp_lookup_nested_symbol): Likewise.
1981 (cp_lookup_transparent_type_loop): Likewise.
1982 * cp-support.c (copy_string_to_obstack): Likewise.
1983 (make_symbol_overload_list): Likewise.
1984 (make_symbol_overload_list_namespace): Likewise.
1985 (make_symbol_overload_list_adl_namespace): Likewise.
1986 (first_component_command): Likewise.
1987 * cp-valprint.c (cp_print_value): Likewise.
1988 * ctf.c (ctf_xfer_partial): Likewise.
1989 * d-exp.y (StringExp): Likewise.
1990 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1991 (lookup_module_scope): Likewise.
1992 (find_symbol_in_baseclass): Likewise.
1993 (d_lookup_nested_symbol): Likewise.
1994 * dbxread.c (find_stab_function_addr): Likewise.
1995 (read_dbx_symtab): Likewise.
1996 (dbx_end_psymtab): Likewise.
1997 (cp_set_block_scope): Likewise.
1998 * dcache.c (dcache_alloc): Likewise.
1999 * demangle.c (_initialize_demangler): Likewise.
2000 * dicos-tdep.c (dicos_load_module_p): Likewise.
2001 * dictionary.c (dict_create_hashed_expandable): Likewise.
2002 (dict_create_linear_expandable): Likewise.
2003 (expand_hashtable): Likewise.
2004 (add_symbol_linear_expandable): Likewise.
2005 * dwarf2-frame.c (add_cie): Likewise.
2006 (add_fde): Likewise.
2007 (dwarf2_build_frame_info): Likewise.
2008 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2009 (dwarf_expr_fetch_address): Likewise.
2010 (add_piece): Likewise.
2011 (execute_stack_op): Likewise.
2012 * dwarf2loc.c (chain_candidate): Likewise.
2013 (dwarf_entry_parameter_to_value): Likewise.
2014 (read_pieced_value): Likewise.
2015 (write_pieced_value): Likewise.
2016 * dwarf2read.c (dwarf2_read_section): Likewise.
2017 (add_type_unit): Likewise.
2018 (read_comp_units_from_section): Likewise.
2019 (fixup_go_packaging): Likewise.
2020 (dwarf2_compute_name): Likewise.
2021 (dwarf2_physname): Likewise.
2022 (create_dwo_unit_in_dwp_v1): Likewise.
2023 (create_dwo_unit_in_dwp_v2): Likewise.
2024 (read_func_scope): Likewise.
2025 (read_call_site_scope): Likewise.
2026 (dwarf2_attach_fields_to_type): Likewise.
2027 (process_structure_scope): Likewise.
2028 (mark_common_block_symbol_computed): Likewise.
2029 (read_common_block): Likewise.
2030 (abbrev_table_read_table): Likewise.
2031 (guess_partial_die_structure_name): Likewise.
2032 (fixup_partial_die): Likewise.
2033 (add_file_name): Likewise.
2034 (dwarf2_const_value_data): Likewise.
2035 (dwarf2_const_value_attr): Likewise.
2036 (build_error_marker_type): Likewise.
2037 (guess_full_die_structure_name): Likewise.
2038 (anonymous_struct_prefix): Likewise.
2039 (typename_concat): Likewise.
2040 (dwarf2_canonicalize_name): Likewise.
2041 (dwarf2_name): Likewise.
2042 (write_constant_as_bytes): Likewise.
2043 (dwarf2_fetch_constant_bytes): Likewise.
2044 (copy_string): Likewise.
2045 (parse_macro_definition): Likewise.
2046 * elfread.c (elf_symfile_segments): Likewise.
2047 (elf_rel_plt_read): Likewise.
2048 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2049 (elf_gnu_ifunc_resolve_by_got): Likewise.
2050 (elf_read_minimal_symbols): Likewise.
2051 (elf_gnu_ifunc_record_cache): Likewise.
2052 * event-top.c (top_level_prompt): Likewise.
2053 (command_line_handler): Likewise.
2054 * exec.c (resize_section_table): Likewise.
2055 * expprint.c (print_subexp_standard): Likewise.
2056 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2057 * findcmd.c (parse_find_args): Likewise.
2058 * findvar.c (address_from_register): Likewise.
2059 * frame.c (get_prev_frame_always): Likewise.
2060 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2061 (get_section_descriptor): Likewise.
2062 * gdb_obstack.c (obconcat): Likewise.
2063 (obstack_strdup): Likewise.
2064 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2065 (create_set_type): Likewise.
2066 (lookup_unsigned_typename): Likewise.
2067 (lookup_signed_typename): Likewise.
2068 (resolve_dynamic_union): Likewise.
2069 (resolve_dynamic_struct): Likewise.
2070 (add_dyn_prop): Likewise.
2071 (copy_dynamic_prop_list): Likewise.
2072 (arch_flags_type): Likewise.
2073 (append_composite_type_field_raw): Likewise.
2074 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2075 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2076 * go-exp.y (string_exp): Likewise.
2077 * go-lang.c (go_demangle): Likewise.
2078 * guile/guile.c (compute_scheme_string): Likewise.
2079 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2080 (gdbscm_canonicalize_command_name): Likewise.
2081 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2082 (ioscm_init_memory_port): Likewise.
2083 (ioscm_reinit_memory_port): Likewise.
2084 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2085 (gdbscm_gc_dup_argv): Likewise.
2086 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2087 * hppa-tdep.c (internalize_unwinds): Likewise.
2088 (read_unwind_info): Likewise.
2089 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2090 (windows_core_xfer_shared_libraries): Likewise.
2091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2092 (i386_stap_parse_special_token_triplet): Likewise.
2093 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2094 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2095 * inf-child.c (inf_child_fileio_readlink): Likewise.
2096 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2097 (inf_ptrace_store_register): Likewise.
2098 * infrun.c (follow_exec): Likewise.
2099 (displaced_step_prepare_throw): Likewise.
2100 (save_stop_context): Likewise.
2101 (save_infcall_suspend_state): Likewise.
2102 * jit.c (jit_read_descriptor): Likewise.
2103 (jit_read_code_entry): Likewise.
2104 (jit_symtab_line_mapping_add_impl): Likewise.
2105 (finalize_symtab): Likewise.
2106 (jit_unwind_reg_get_impl): Likewise.
2107 * jv-exp.y (QualifiedName): Likewise.
2108 * jv-lang.c (get_java_utf8_name): Likewise.
2109 (type_from_class): Likewise.
2110 (java_demangle_type_signature): Likewise.
2111 (java_class_name_from_physname): Likewise.
2112 * jv-typeprint.c (java_type_print_base): Likewise.
2113 * jv-valprint.c (java_value_print): Likewise.
2114 * language.c (add_language): Likewise.
2115 * linespec.c (add_sal_to_sals_basic): Likewise.
2116 (add_sal_to_sals): Likewise.
2117 (decode_objc): Likewise.
2118 (find_linespec_symbols): Likewise.
2119 * linux-fork.c (fork_save_infrun_state): Likewise.
2120 * linux-nat.c (linux_nat_detach): Likewise.
2121 (linux_nat_fileio_readlink): Likewise.
2122 * linux-record.c (record_linux_sockaddr): Likewise.
2123 (record_linux_msghdr): Likewise.
2124 (Do): Likewise.
2125 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2126 (linux_collect_regset_section_cb): Likewise.
2127 (linux_get_siginfo_data): Likewise.
2128 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2129 (try_thread_db_load_from_dir): Likewise.
2130 (thread_db_load_search): Likewise.
2131 (info_auto_load_libthread_db): Likewise.
2132 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2133 (m32c_m16c_pointer_to_address): Likewise.
2134 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2135 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2136 * machoread.c (macho_check_dsym): Likewise.
2137 * macroexp.c (resize_buffer): Likewise.
2138 (gather_arguments): Likewise.
2139 (maybe_expand): Likewise.
2140 * macrotab.c (new_macro_key): Likewise.
2141 (new_source_file): Likewise.
2142 (new_macro_definition): Likewise.
2143 * mdebugread.c (parse_symbol): Likewise.
2144 (parse_type): Likewise.
2145 (parse_partial_symbols): Likewise.
2146 (psymtab_to_symtab_1): Likewise.
2147 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2148 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2149 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2150 (mi_cmd_data_read_memory_bytes): Likewise.
2151 (mi_cmd_data_write_memory_bytes): Likewise.
2152 (mi_cmd_trace_frame_collected): Likewise.
2153 * mi/mi-parse.c (mi_parse_argv): Likewise.
2154 (mi_parse): Likewise.
2155 * minidebug.c (lzma_open): Likewise.
2156 (lzma_pread): Likewise.
2157 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2158 (mips_print_fp_register): Likewise.
2159 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2160 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2161 * mt-tdep.c (mt_register_name): Likewise.
2162 (mt_registers_info): Likewise.
2163 (mt_push_dummy_call): Likewise.
2164 * namespace.c (add_using_directive): Likewise.
2165 * nat/linux-btrace.c (perf_event_read): Likewise.
2166 (linux_enable_bts): Likewise.
2167 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2168 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2169 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2170 (nto_parse_redirection): Likewise.
2171 * objc-lang.c (objc_demangle): Likewise.
2172 (find_methods): Likewise.
2173 * objfiles.c (get_objfile_bfd_data): Likewise.
2174 (set_objfile_main_name): Likewise.
2175 (allocate_objfile): Likewise.
2176 (objfile_relocate): Likewise.
2177 (update_section_map): Likewise.
2178 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2179 * p-exp.y (exp): Likewise.
2180 (yylex): Likewise.
2181 * p-valprint.c (pascal_object_print_value): Likewise.
2182 * parse.c (initialize_expout): Likewise.
2183 (mark_completion_tag): Likewise.
2184 (copy_name): Likewise.
2185 (parse_float): Likewise.
2186 (type_stack_reserve): Likewise.
2187 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2188 (ppu2spu_prev_register): Likewise.
2189 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2190 * printcmd.c (printf_wide_c_string): Likewise.
2191 (printf_pointer): Likewise.
2192 * probe.c (parse_probes): Likewise.
2193 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2194 (cmdpy_init): Likewise.
2195 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2196 * python/py-symtab.c (set_sal): Likewise.
2197 * python/py-unwind.c (pyuw_sniffer): Likewise.
2198 * python/python.c (python_interactive_command): Likewise.
2199 (compute_python_string): Likewise.
2200 * ravenscar-thread.c (get_running_thread_id): Likewise.
2201 * record-full.c (record_full_exec_insn): Likewise.
2202 (record_full_core_open_1): Likewise.
2203 * regcache.c (regcache_raw_read_signed): Likewise.
2204 (regcache_raw_read_unsigned): Likewise.
2205 (regcache_cooked_read_signed): Likewise.
2206 (regcache_cooked_read_unsigned): Likewise.
2207 * remote-fileio.c (remote_fileio_func_open): Likewise.
2208 (remote_fileio_func_rename): Likewise.
2209 (remote_fileio_func_unlink): Likewise.
2210 (remote_fileio_func_stat): Likewise.
2211 (remote_fileio_func_system): Likewise.
2212 * remote-mips.c (mips_xfer_memory): Likewise.
2213 (mips_load_srec): Likewise.
2214 (pmon_end_download): Likewise.
2215 * remote.c (new_remote_state): Likewise.
2216 (map_regcache_remote_table): Likewise.
2217 (remote_register_number_and_offset): Likewise.
2218 (init_remote_state): Likewise.
2219 (get_memory_packet_size): Likewise.
2220 (remote_pass_signals): Likewise.
2221 (remote_program_signals): Likewise.
2222 (remote_start_remote): Likewise.
2223 (remote_check_symbols): Likewise.
2224 (remote_query_supported): Likewise.
2225 (extended_remote_attach): Likewise.
2226 (process_g_packet): Likewise.
2227 (store_registers_using_G): Likewise.
2228 (putpkt_binary): Likewise.
2229 (read_frame): Likewise.
2230 (compare_sections_command): Likewise.
2231 (remote_hostio_pread): Likewise.
2232 (remote_hostio_readlink): Likewise.
2233 (remote_file_put): Likewise.
2234 (remote_file_get): Likewise.
2235 (remote_pid_to_exec_file): Likewise.
2236 (_initialize_remote): Likewise.
2237 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2238 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2239 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2240 (bfd_uses_spe_extensions): Likewise.
2241 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2242 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2243 * solib-dsbt.c (decode_loadmap): Likewise.
2244 (fetch_loadmap): Likewise.
2245 (scan_dyntag): Likewise.
2246 (enable_break): Likewise.
2247 (dsbt_relocate_main_executable): Likewise.
2248 * solib-frv.c (fetch_loadmap): Likewise.
2249 (enable_break2): Likewise.
2250 (frv_relocate_main_executable): Likewise.
2251 * solib-spu.c (spu_relocate_main_executable): Likewise.
2252 (spu_bfd_open): Likewise.
2253 * solib-svr4.c (lm_info_read): Likewise.
2254 (read_program_header): Likewise.
2255 (find_program_interpreter): Likewise.
2256 (scan_dyntag): Likewise.
2257 (elf_locate_base): Likewise.
2258 (open_symbol_file_object): Likewise.
2259 (read_program_headers_from_bfd): Likewise.
2260 (svr4_relocate_main_executable): Likewise.
2261 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2262 * solib.c (solib_find_1): Likewise.
2263 (exec_file_find): Likewise.
2264 (solib_find): Likewise.
2265 * source.c (openp): Likewise.
2266 (print_source_lines_base): Likewise.
2267 (forward_search_command): Likewise.
2268 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2269 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2270 (spu_get_overlay_table): Likewise.
2271 * stabsread.c (patch_block_stabs): Likewise.
2272 (define_symbol): Likewise.
2273 (again:): Likewise.
2274 (read_member_functions): Likewise.
2275 (read_one_struct_field): Likewise.
2276 (read_enum_type): Likewise.
2277 (common_block_start): Likewise.
2278 * stack.c (read_frame_arg): Likewise.
2279 (backtrace_command): Likewise.
2280 * stap-probe.c (stap_parse_register_operand): Likewise.
2281 * symfile.c (syms_from_objfile_1): Likewise.
2282 (find_separate_debug_file): Likewise.
2283 (load_command): Likewise.
2284 (load_progress): Likewise.
2285 (load_section_callback): Likewise.
2286 (reread_symbols): Likewise.
2287 (add_filename_language): Likewise.
2288 (allocate_compunit_symtab): Likewise.
2289 (read_target_long_array): Likewise.
2290 (simple_read_overlay_table): Likewise.
2291 * symtab.c (symbol_set_names): Likewise.
2292 (resize_symbol_cache): Likewise.
2293 (rbreak_command): Likewise.
2294 (completion_list_add_name): Likewise.
2295 (completion_list_objc_symbol): Likewise.
2296 (add_filename_to_list): Likewise.
2297 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2298 * target-memory.c (target_write_memory_blocks): Likewise.
2299 * target.c (target_read_string): Likewise.
2300 (read_whatever_is_readable): Likewise.
2301 (target_read_alloc_1): Likewise.
2302 (simple_search_memory): Likewise.
2303 (target_fileio_read_alloc_1): Likewise.
2304 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2305 * top.c (command_line_input): Likewise.
2306 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2307 * tracefile.c (tracefile_fetch_registers): Likewise.
2308 * tracepoint.c (add_memrange): Likewise.
2309 (init_collection_list): Likewise.
2310 (add_aexpr): Likewise.
2311 (trace_dump_actions): Likewise.
2312 (parse_trace_status): Likewise.
2313 (parse_tracepoint_definition): Likewise.
2314 (parse_tsv_definition): Likewise.
2315 (parse_static_tracepoint_marker_definition): Likewise.
2316 * tui/tui-file.c (tui_sfileopen): Likewise.
2317 (tui_file_adjust_strbuf): Likewise.
2318 * tui/tui-io.c (tui_expand_tabs): Likewise.
2319 * tui/tui-source.c (tui_set_source_content): Likewise.
2320 * typeprint.c (find_global_typedef): Likewise.
2321 * ui-file.c (do_ui_file_xstrdup): Likewise.
2322 (ui_file_obsavestring): Likewise.
2323 (mem_file_write): Likewise.
2324 * utils.c (make_hex_string): Likewise.
2325 (get_regcomp_error): Likewise.
2326 (puts_filtered_tabular): Likewise.
2327 (gdb_realpath_keepfile): Likewise.
2328 (ldirname): Likewise.
2329 (gdb_bfd_errmsg): Likewise.
2330 (substitute_path_component): Likewise.
2331 * valops.c (search_struct_method): Likewise.
2332 (find_oload_champ_namespace_loop): Likewise.
2333 * valprint.c (print_decimal_chars): Likewise.
2334 (read_string): Likewise.
2335 (generic_emit_char): Likewise.
2336 * varobj.c (varobj_delete): Likewise.
2337 (varobj_value_get_print_value): Likewise.
2338 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2339 * windows-tdep.c (display_one_tib): Likewise.
2340 * xcoffread.c (read_xcoff_symtab): Likewise.
2341 (process_xcoff_symbol): Likewise.
2342 (swap_sym): Likewise.
2343 (scan_xcoff_symtab): Likewise.
2344 (xcoff_initial_scan): Likewise.
2345 * xml-support.c (gdb_xml_end_element): Likewise.
2346 (xml_process_xincludes): Likewise.
2347 (xml_fetch_content_from_file): Likewise.
2348 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2349 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2350
2351 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2352
2353 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2354 instead of builtin_func_ptr.
2355 (ft32_pointer_to_address): New function.
2356 (ft32_address_class_type_flags): New function.
2357 (ft32_address_class_type_flags_to_name): New function.
2358 (ft32_address_class_name_to_type_flags): New function.
2359 (ft32_gdbarch_init): Set tdep->pc_type. Call
2360 set_gdbarch_pointer_to_address,
2361 set_gdbarch_address_class_type_flags
2362 set_gdbarch_address_class_name_to_type_flags,
2363 and set_gdbarch_address_class_type_flags_to_name.
2364 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2365
2366 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2367
2368 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2369 value is a reference, actually dereference it in order to get
2370 the underlying value.
2371
2372 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2373
2374 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2375
2376 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2377
2378 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2379 * linespec.c (linespec_lexer_lex_string): Same.
2380
2381 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2382
2383 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2384
2385 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2386
2387 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2388 variable. Call aarch64_decode_adr instead of
2389 aarch64_decode_adrp.
2390 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2391 (aarch64_decode_adr): New function declaration.
2392 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2393 (aarch64_decode_adr): New function, factored out from
2394 aarch64_decode_adrp to decode both adr and adrp instructions.
2395
2396 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2397
2398 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2399 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2400 (aarch64-insn.o): New rule.
2401 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2402 (aarch64*-*-linux*): Likewise.
2403 * arch/aarch64-insn.c: New file.
2404 * arch/aarch64-insn.h: New file.
2405 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2406 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2407 arch/aarch64-insn.h.
2408 (decode_add_sub_imm): Rename to ...
2409 (aarch64_decode_add_sub_imm): ... this.
2410 (decode_adrp): Rename to ...
2411 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2412 Declare in arch/aarch64-insn.h.
2413 (decode_b): Rename to ...
2414 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2415 Declare in arch/aarch64-insn.h.
2416 (decode_bcond): Rename to ...
2417 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2418 Declare in arch/aarch64-insn.h.
2419 (decode_br): Rename to ...
2420 (aarch64_decode_br): ... this.
2421 (decode_cb): Rename to ...
2422 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2423 Declare in arch/aarch64-insn.h.
2424 (decode_eret): Rename to ...
2425 (aarch64_decode_eret): ... this.
2426 (decode_movz): Rename to ...
2427 (aarch64_decode_movz): ... this.
2428 (decode_orr_shifted_register_x): Rename to ...
2429 (aarch64_decode_orr_shifted_register_x): ... this.
2430 (decode_ret): Rename to ...
2431 (aarch64_decode_ret): ... this.
2432 (decode_stp_offset): Rename to ...
2433 (aarch64_decode_stp_offset): ... this.
2434 (decode_stp_offset_wb): Rename to ...
2435 (aarch64_decode_stp_offset_wb): ... this.
2436 (decode_stur): Rename to ...
2437 (aarch64_decode_stur): ... this.
2438 (decode_tb): Rename to ...
2439 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2440 Declare in arch/aarch64-insn.h.
2441 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2442
2443 2015-09-20 Doug Evans <xdje42@gmail.com>
2444
2445 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2446
2447 2015-09-20 Doug Evans <xdje42@gmail.com>
2448
2449 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2450 variable name that collides with a parameter.
2451
2452 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2453
2454 * dwarf2loc.c (locexpr_get_frame_base): Renames
2455 block_op_get_frame_base.
2456 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2457 block_op_get_frame_base by reference to locexpr_get_frame_base.
2458 (loclist_get_frame_base): New function, near identical copy of
2459 locexpr_get_frame_base.
2460 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2461 block_op_get_frame_base by reference to loclist_get_frame_base.
2462
2463 2015-09-19 Doug Evans <xdje42@gmail.com>
2464
2465 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2466 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2467
2468 2015-09-18 Doug Evans <xdje42@gmail.com>
2469
2470 * linux-thread-db.c (record_thread): Return the created thread.
2471 (thread_from_lwp): Likewise.
2472 (thread_db_get_thread_local_address): Update.
2473
2474 2015-09-18 Doug Evans <xdje42@gmail.com>
2475
2476 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2477 move only member demangled_name up. All uses updated.
2478
2479 2015-09-18 Doug Evans <xdje42@gmail.com>
2480
2481 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2482 kind of minimal symbol in the error message.
2483 * objfiles.c (objfile_flavour_name): New function.
2484 * objfiles.h (objfile_flavour_name): Declare.
2485
2486 2015-09-18 Yao Qi <yao.qi@linaro.org>
2487
2488 * nat/aarch64-linux.c: Include elf/common.h,
2489 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2490 (aarch64_ps_get_thread_area): New function.
2491 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2492 (aarch64_ps_get_thread_area): Declare.
2493 * aarch64-linux-nat.c (ps_get_thread_area): Call
2494 aarch64_ps_get_thread_area.
2495
2496 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2497
2498 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2499
2500 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2501
2502 * NEWS: Announce new scheduler-locking mode.
2503 * infrun.c (schedlock_replay): New.
2504 (scheduler_enums): Add schedlock_replay.
2505 (scheduler_mode): Change default to schedlock_replay.
2506 (user_visible_resume_ptid): Handle schedlock_replay.
2507 (clear_proceed_status_thread): Stop replaying if resumed thread is
2508 not replaying.
2509 (schedlock_applies): Handle schedlock_replay.
2510 (_initialize_infrun): Document new scheduler-locking mode.
2511 * record-btrace.c (record_btrace_resume): Remove code to stop other
2512 threads when not replaying the resumed thread.
2513
2514 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2515
2516 * record-btrace.c ((record_btrace_will_replay): New.
2517 (init_record_btrace_ops): Initialize to_record_will_replay.
2518 * record-full.c ((record_full_will_replay): New.
2519 (init_record_full_ops): Initialize to_record_will_replay.
2520 * target-delegates.c: Regenerated.
2521 * target.c (target_record_will_replay): New.
2522 * target.h (struct target_ops) <to_record_will_replay>: New.
2523 (target_record_will_replay): New.
2524
2525 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2526
2527 * record-btrace.c (record_btrace_resume): Call
2528 target_record_stop_replaying.
2529 (record_btrace_stop_replaying_all): New.
2530 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2531 * record-full.c (record_full_stop_replaying): New.
2532 (init_record_full_ops ): Initialize to_record_stop_replaying.
2533 * target-delegates.c: Regenerated.
2534 * target.c (target_record_stop_replaying): New.
2535 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2536 (target_record_stop_replaying): New.
2537
2538 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2539
2540 * record-btrace.c (record_btrace_xfer_partial)
2541 (record_btrace_store_registers, record_btrace_prepare_to_store):
2542 Call record_btrace_is_replaying with inferior_ptid instead of
2543 minus_one_ptid.
2544 (record_btrace_store_registers): Change error message.
2545
2546 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2547
2548 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2549 Update users to pass minus_one_ptid.
2550 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2551 * record.c (cmd_record_delete): Pass inferior_ptid to
2552 target_record_is_replaying.
2553 * target-delegates.c: Regenerated.
2554 * target.c (target_record_is_replaying): Add ptid argument.
2555 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2556 argument.
2557 (target_record_is_replaying): Add ptid argument.
2558
2559 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2560
2561 * record-btrace.c (record_btrace_open): Remove non_stop check.
2562 * NEWS: Announce that record btrace supports non-stop mode.
2563
2564 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2565
2566 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2567 in the TARKET_WAITKIND_NO_HISTORY case.
2568
2569 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2570
2571 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2572 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2573
2574 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2575
2576 * record-btrace.c (get_thread_current_frame): New.
2577 (record_btrace_start_replaying): Call get_thread_current_frame.
2578
2579 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2580
2581 * record-btrace.c (record_btrace_resume_thread): A move request
2582 overwrites a previous move request.
2583 (record_btrace_find_resume_thread): Removed.
2584 (record_btrace_resume): Resume all requested threads.
2585
2586 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2587
2588 * record-btrace.c: Include vec.h.
2589 (record_btrace_find_thread_to_move): Removed.
2590 (btrace_step_no_resumed, btrace_step_again)
2591 (record_btrace_stop_replaying_at_end): New.
2592 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2593 (record_btrace_single_step_forward): Remove calls to
2594 record_btrace_stop_replaying.
2595 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2596 BTHR_RCONT. Keep threads at the end of their history moving.
2597 (record_btrace_wait): Call record_btrace_step_thread for all threads
2598 until one reports an event. Call record_btrace_stop_replaying_at_end
2599 for the eventing thread.
2600
2601 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2602
2603 * record-btrace.c (record_btrace_single_step_forward): Return
2604 NO_HISTORY if a step brings us to the end of the execution history.
2605
2606 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2607
2608 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2609 to ...
2610 (record_btrace_single_step_forward): ... here and
2611 (record_btrace_single_step_backward): ... here.
2612
2613 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2614
2615 * record-btrace.c (btrace_step_spurious)
2616 (record_btrace_single_step_forward)
2617 (record_btrace_single_step_backward): New.
2618 (record_btrace_step_thread): Call record_btrace_single_step_forward
2619 and record_btrace_single_step_backward.
2620
2621 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2622
2623 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2624 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2625
2626 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2627
2628 * record-btrace.c (btrace_thread_flag_to_str)
2629 (record_btrace_cancel_resume): New.
2630 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2631 (record_btrace_resume): Print execution direction.
2632 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2633 (record_btrace_wait): Call record_btrace_cancel_resume.
2634
2635 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2636
2637 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2638 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2639 (record_btrace_find_thread_to_move): Also accept threads that have
2640 BTHR_STOP set.
2641 (btrace_step_stopped_on_request, record_btrace_stop): New.
2642 (record_btrace_step_thread): Support BTHR_STOP.
2643 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2644 (init_record_btrace_ops): Initialize to_stop.
2645
2646 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2647
2648 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2649 target_is_non_stop_p ().
2650
2651 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2652
2653 * ada-typeprint.c (print_array_type): Do not describe arrays as
2654 packed when they embed dynamic elements.
2655
2656 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2657
2658 * symtab.h (address_class): Document that TLS variables
2659 are handled by LOC_UNRESOLVED.
2660 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2661 * printcmd.c (address_info): Don't relocate TLS variables.
2662
2663 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2664
2665 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2666 (decode_adrp): Likewise.
2667 (decode_b): Likewise.
2668 (decode_bcond): Likewise.
2669 (decode_br): Likewise.
2670 (decode_cb): Likewise.
2671 (decode_eret): Likewise.
2672 (decode_movz): Likewise.
2673 (decode_orr_shifted_register_x): Likewise.
2674 (decode_ret): Likewise.
2675 (decode_stp_offset): Likewise.
2676 (decode_stp_offset_wb): Likewise.
2677 (decode_stur): Likewise.
2678 (decode_tb): Likewise.
2679 (aarch64_analyze_prologue): Likewise.
2680 (pass_in_x): Likewise.
2681 (pass_in_v): Likewise.
2682 (pass_on_stack): Likewise.
2683 (aarch64_push_dummy_call): Likewise.
2684 (aarch64_extract_return_value): Likewise.
2685 (aarch64_store_return_value): Likewise.
2686 (aarch64_return_value): Likewise.
2687 (aarch64_record_asimd_load_store): Likewise.
2688 (aarch64_record_load_store): Likewise.
2689 (aarch64_record_data_proc_simd_fp): Likewise.
2690
2691 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2694 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2695 (ppc64_skip_trampoline_code_1): ... here.
2696 (ppc64_skip_trampoline_code): New wrapper function.
2697 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2698
2699 2015-09-15 Yao Qi <yao.qi@linaro.org>
2700
2701 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2702 function.
2703 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2704 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2705 if target_can_do_single_step returns 1.
2706 * remote.c (struct vCont_action_support) <s, S>: New fields.
2707 (PACKET_vContSupported): New enum.
2708 (remote_protocol_features): New element for vContSupported.
2709 (remote_query_supported): Append "vContSupported+".
2710 (remote_vcont_probe): Remove support_s and support_S, use
2711 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2712 vCont packet if c and C actions are not supported.
2713 (remote_can_do_single_step): New function.
2714 (init_remote_ops): Install it to to_can_do_single_step.
2715 (_initialize_remote): Call add_packet_config_cmd.
2716 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2717 (target_can_do_single_step): New macro.
2718 * target-delegates.c: Re-generated.
2719
2720 2015-09-15 Yao Qi <yao.qi@linaro.org>
2721
2722 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2723 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2724 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2725 New function.
2726 (aarch64_siginfo_from_compat_siginfo): New function.
2727 * nat/aarch64-linux.h: Include signal.h.
2728 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2729 (compat_timer_t, compat_clock_t): Likewise.
2730 (struct compat_timeval): New.
2731 (union compat_sigval): New.
2732 (struct compat_siginfo): New.
2733 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2734 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2735 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2736 (cpt_si_band, cpt_si_fd): Likewise.
2737
2738 2015-09-14 Pedro Alves <palves@redhat.com>
2739
2740 * infrun.c (current_stop_id): New global.
2741 (get_stop_id, new_stop_id): New functions.
2742 (fetch_inferior_event): Handle normal_stop proceeding the target.
2743 (struct stop_context): New.
2744 (save_stop_context, release_stop_context_cleanup)
2745 (stop_context_changed): New functions.
2746 (normal_stop): Return true if the hook-stop changes the stop
2747 context.
2748 * infrun.h (get_stop_id): Declare.
2749 (normal_stop): Now returns int. Add documentation.
2750
2751 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2752
2753 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2754 comment. Handle packed arrays.
2755
2756 2015-09-14 Pedro Alves <palves@redhat.com>
2757
2758 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2759 mention of maint set/show target-non-stop.
2760
2761 2015-09-11 Don Breazeal <donb@codesourcery.com>
2762
2763 * NEWS: Announce new remote packets for the exec-events
2764 feature and the exec-events feature and associated commands.
2765
2766 2015-09-11 Don Breazeal <donb@codesourcery.com>
2767
2768 * remote.c (remote_exec_event_p): New function.
2769 (remote_insert_exec_catchpoint): New function.
2770 (remote_remove_exec_catchpoint): New function.
2771 (init_extended_remote_ops): Initialize extended_remote_ops
2772 members to_insert_exec_catchpoint and
2773 to_remove_exec_catchpoint.
2774
2775 2015-09-11 Don Breazeal <donb@codesourcery.com>
2776 Luis Machado <lgustavo@codesourcery.com>
2777
2778 * infrun.c (follow_exec): Use process-style ptid for
2779 exec message. Call add_inferior_with_spaces and
2780 target_follow_exec.
2781 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2782 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2783 * remote.c (remote_pspace_data): New static variable.
2784 (remote_pspace_data_cleanup): New function.
2785 (get_remote_exec_file): New function.
2786 (set_remote_exec_file_1): New function.
2787 (set_remote_exec_file): New function.
2788 (show_remote_exec_file): New function.
2789 (remote_exec_file): Delete static variable.
2790 (anonymous enum) <PACKET_exec_event_feature>: New
2791 enumeration constant.
2792 (remote_protocol_features): Add entry for exec-events feature.
2793 (remote_query_supported): Add client side of qSupported query
2794 for exec-events feature.
2795 (remote_follow_exec): New function.
2796 (remote_parse_stop_reply): Handle 'exec' stop reason.
2797 (extended_remote_run, extended_remote_create_inferior): Call
2798 get_remote_exec_file and set_remote_exec_file_1.
2799 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2800 member.
2801 (_initialize_remote): Call
2802 register_program_space_data_with_cleanup. Call
2803 add_packet_config_cmd for remote exec-events feature.
2804 Modify call to add_setshow_string_noescape_cmd for exec-file
2805 to use new functions set_remote_exec_file and
2806 show_remote_exec_file.
2807 * target-debug.h, target-delegates.c: Regenerated.
2808 * target.c (target_follow_exec): New function.
2809 * target.h (struct target_ops) <to_follow_exec>: New member.
2810 (target_follow_exec): Declare new function.
2811
2812 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2813
2814 * aarch64-tdep.c (decode_cb): Move up comment describing the
2815 encoding.
2816 (decode_tb): Fix a typo in comment above the function. Move up
2817 comment describing the encoding.
2818
2819 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2820
2821 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2822
2823 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2824
2825 PR gdb/18947
2826 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2827 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2828
2829 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2830
2831 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2832 operations.
2833
2834 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2835
2836 * ada-lang.c (ada_search_struct_field): Constify parameters
2837 and/or variables..
2838 (xget_renaming_scope): Likewise.
2839 (ada_is_redundant_range_encoding): Likewise.
2840 (scan_discrim_bound): Likewise.
2841 (to_fixed_range_type): Likewise.
2842
2843 2015-09-10 Yao Qi <yao.qi@linaro.org>
2844
2845 * breakpoint.c (download_tracepoint_locations): New local
2846 can_download_tracepoint. Check the result of
2847 target_can_download_tracepoint and save it in
2848 can_download_tracepoint if there are tracepoints to download.
2849 * linux-nat.h (enum tribool): Move it to ...
2850 * common/common-types.h: ... here.
2851
2852 2015-09-09 Pedro Alves <palves@redhat.com>
2853
2854 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2855 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2856
2857 2015-09-09 Pedro Alves <palves@redhat.com>
2858
2859 * continuations.c (add_continuation, restore_thread_cleanup)
2860 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2861 (do_all_continuations_thread, do_all_continuations)
2862 (discard_all_continuations_thread_callback)
2863 (discard_all_continuations_thread, discard_all_continuations)
2864 (add_intermediate_continuation)
2865 (do_all_intermediate_continuations_thread_callback)
2866 (do_all_intermediate_continuations_thread)
2867 (do_all_intermediate_continuations)
2868 (discard_all_intermediate_continuations_thread_callback)
2869 (discard_all_intermediate_continuations_thread)
2870 (discard_all_intermediate_continuations): Delete.
2871 * continuations.h (add_continuation, do_all_continuations)
2872 (do_all_continuations_thread, discard_all_continuations)
2873 (discard_all_continuations_thread, add_intermediate_continuation)
2874 (do_all_intermediate_continuations)
2875 (do_all_intermediate_continuations_thread)
2876 (discard_all_intermediate_continuations)
2877 (discard_all_intermediate_continuations_thread): Delete
2878 declarations.
2879 * event-top.c (stdin_event_handler): Delete references to
2880 continuations.
2881 * gdbthread.h (struct thread_info): Delete continuations and
2882 intermediate_continuations fields.
2883 * inf-loop.c (inferior_event_handler): Remove references to
2884 continuations.
2885 * infrun.c (infrun_thread_stop_requested_callback): Remove
2886 references to continuations.
2887 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2888 * thread.c: Don't include "continuations.h".
2889 (clear_thread_inferior_resources): Remove references to
2890 continuations.
2891
2892 2015-09-09 Pedro Alves <palves@redhat.com>
2893
2894 * infcall.c (struct dummy_frame_context_saver): Delete.
2895 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2896 (dummy_frame_context_saver_drop)
2897 (dummy_frame_context_saver_cleanup)
2898 (dummy_frame_context_saver_get_regs)
2899 (dummy_frame_context_saver_setup): Delete.
2900 * infcall.h (dummy_frame_context_saver_drop)
2901 (dummy_frame_context_saver_cleanup)
2902 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2903 Delete.
2904 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2905 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2906 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2907
2908 2015-09-09 Pedro Alves <palves@redhat.com>
2909
2910 * breakpoint.c: Include "thread-fsm.h".
2911 (struct until_break_command_continuation_args): Delete.
2912 (struct until_break_fsm): New.
2913 (until_break_fsm_ops): New global.
2914 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2915 (until_break_command_continuation): Delete.
2916 (until_break_fsm_clean_up): New function.
2917 (until_break_fsm_async_reply_reason): New function.
2918 (until_break_command): Adjust to create an until_break_fsm instead
2919 of a continuation.
2920 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2921 here.
2922 * infcmd.c (struct until_next_fsm): New.
2923 (until_next_fsm_ops): New global.
2924 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2925 (until_next_continuation): Delete.
2926 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2927 functions.
2928 (until_next_command): Adjust to create a new until_next_fsm
2929 instead of a continuation.
2930
2931 2015-09-09 Pedro Alves <palves@redhat.com>
2932
2933 * infcall.c: Include thread_fsm.h.
2934 (struct call_return_meta_info): New.
2935 (get_call_return_value): New function, factored out from
2936 call_function_by_hand_dummy.
2937 (struct call_thread_fsm): New.
2938 (call_thread_fsm_ops): New global.
2939 (new_call_thread_fsm, call_thread_fsm_should_stop)
2940 (call_thread_fsm_should_notify_stop): New functions.
2941 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2942 the thread.
2943 (call_function_by_hand_dummy): Create a new call_thread_fsm
2944 instance, associate it with the thread, and wait for the FSM to
2945 finish. If finished successfully, fetch the function's result
2946 value out of the FSM.
2947 * infrun.c (fetch_inferior_event): If the FSM says the stop
2948 shouldn't be notified, don't call normal_stop.
2949 (maybe_remove_breakpoints): New function, factored out from ...
2950 (normal_stop): ... here. Simplify.
2951 * infrun.h (maybe_remove_breakpoints): Declare.
2952 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2953 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2954 (thread_fsm_should_notify_stop): Declare.
2955
2956 2015-09-09 Pedro Alves <palves@redhat.com>
2957
2958 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2959 * breakpoint.c (handle_jit_event): Print debug output.
2960 (bpstat_what): Split event callback handling to ...
2961 (bpstat_run_callbacks): ... this new function.
2962 (momentary_bkpt_print_it): No longer handle bp_finish here.
2963 * breakpoint.h (bpstat_run_callbacks): Declare.
2964 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2965 <thread_fsm>: New field.
2966 (thread_cancel_execution_command): Declare.
2967 * infcmd.c: Include thread-fsm.h.
2968 (struct step_command_fsm): New.
2969 (step_command_fsm_ops): New global.
2970 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2971 (step_1): Adjust to use step_command_fsm_prepare and
2972 prepare_one_step.
2973 (struct step_1_continuation_args): Delete.
2974 (step_1_continuation): Delete.
2975 (step_command_fsm_should_stop): New function.
2976 (step_once): Delete.
2977 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2978 (prepare_one_step): New function, based on step_once.
2979 (until_next_command): Remove step_multi reference.
2980 (struct return_value_info): New.
2981 (print_return_value): Rename to ...
2982 (print_return_value_1): ... this. New struct return_value_info
2983 parameter. Adjust.
2984 (print_return_value): Reimplement as wrapper around
2985 print_return_value_1.
2986 (struct finish_command_fsm): New.
2987 (finish_command_continuation): Delete.
2988 (finish_command_fsm_ops): New global.
2989 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2990 functions.
2991 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2992 New.
2993 (finish_command_continuation_free_arg): Delete.
2994 (finish_command_fsm_async_reply_reason): New.
2995 (finish_backward, finish_forward): Change symbol parameter to a
2996 finish_command_fsm. Adjust.
2997 (finish_command): Create a finish_command_fsm. Adjust.
2998 * infrun.c: Include "thread-fsm.h".
2999 (clear_proceed_status_thread): Delete the thread's FSM.
3000 (infrun_thread_stop_requested_callback): Cancel the thread's
3001 execution command.
3002 (clean_up_just_stopped_threads_fsms): New function.
3003 (fetch_inferior_event): Handle the event_thread's should_stop
3004 method saying the command isn't done yet.
3005 (process_event_stop_test): Run breakpoint callbacks here.
3006 (print_stop_event): Rename to ...
3007 (print_stop_location): ... this.
3008 (restore_current_uiout_cleanup): New function.
3009 (print_stop_event): Reimplement.
3010 (normal_stop): No longer notify the end_stepping_range observers
3011 here handle "step N" nor "finish" here. No longer call
3012 print_stop_event here.
3013 * infrun.h (struct return_value_info): Forward declare.
3014 (print_return_value): Declare.
3015 (print_stop_event): Change prototype.
3016 * thread-fsm.c: New file.
3017 * thread-fsm.h: New file.
3018 * thread.c: Include "thread-fsm.h".
3019 (thread_cancel_execution_command): New function.
3020 (clear_thread_inferior_resources): Call it.
3021 * cli/cli-interp.c (cli_on_normal_stop): New function.
3022 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3023 observer.
3024 * mi/mi-interp.c: Include "thread-fsm.h".
3025 (restore_current_uiout_cleanup): Delete.
3026 (mi_on_normal_stop): If the thread has an FSM associated, and it
3027 finished, ask it for the async-reply-reason to print. Always call
3028 print_stop_event here, regardless of the top-level interpreter.
3029 Check bpstat_what to tell whether an asynchronous breakpoint hit
3030 triggered.
3031 * tui/tui-interp.c (tui_on_normal_stop): New function.
3032 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3033
3034 2015-09-09 Pedro Alves <palves@redhat.com>
3035
3036 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3037 check whether the target can async.
3038 * inf-loop.c (inferior_event_handler): Only call target_async if
3039 the target can async.
3040 * infcall.c: Include top.h and interps.h.
3041 (run_inferior_call): For the interpreter to sync mode while
3042 running the infcall. Call wait_sync_command_done instead of
3043 wait_for_inferior plus normal_stop.
3044 * infcmd.c (prepare_execution_command): Don't check whether the
3045 target can async when running in the foreground.
3046 (step_1): Delete synchronous case handling.
3047 (step_once): Always install a continuation, even in sync mode.
3048 (until_next_command, finish_forward): Don't check whether the
3049 target can async.
3050 (attach_command_post_wait, notice_new_inferior): Always install a
3051 continuation, even in sync mode.
3052 * infrun.c (mark_infrun_async_event_handler): New function.
3053 (proceed): In sync mode, mark infrun's event source instead of
3054 waiting for events here.
3055 (fetch_inferior_event): If the target can't async, do a blocking
3056 wait.
3057 (prepare_to_wait): In sync mode, mark infrun's event source.
3058 (infrun_async_inferior_event_handler): No longer bail out if the
3059 target can't async.
3060 * infrun.h (mark_infrun_async_event_handler): New declaration.
3061 * linux-nat.c (linux_nat_wait_1): Remove calls to
3062 set_sigint_trap/clear_sigint_trap.
3063 (linux_nat_terminal_inferior): No longer check whether the target
3064 can async.
3065 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3066 comment.
3067 (mi_execute_command_input_handler): No longer check whether the
3068 target is async. Update and simplify comment.
3069 * target.c (default_target_wait): New function.
3070 * target.h (struct target_ops) <to_wait>: Now defaults to
3071 default_target_wait.
3072 (default_target_wait): Declare.
3073 * top.c (wait_sync_command_done): New function, factored out from
3074 ...
3075 (maybe_wait_sync_command_done): ... this.
3076 * top.h (wait_sync_command_done): Declare.
3077 * target-delegates.c: Regenerate.
3078
3079 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3080
3081 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3082 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3083 Remove include of sys/utsname.h.
3084 (linux_determine_kernel_ptr_bits): Remove.
3085 (linux_determine_kernel_start): New.
3086 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3087 Update check.
3088 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3089 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3090 initialization.
3091 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3092 assignment.
3093
3094 2015-09-07 Pedro Alves <palves@redhat.com>
3095
3096 * guile/guile-internal.h (as_a_scm_t_subr): New.
3097 * guile/guile.c (misc_guile_functions): Use it.
3098 * guile/scm-arch.c (arch_functions): Use it.
3099 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3100 Use it.
3101 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3102 * guile/scm-cmd.c (command_functions): Use it.
3103 * guile/scm-disasm.c (disasm_functions): Use it.
3104 * guile/scm-exception.c (exception_functions)
3105 (private_exception_functions): Use it.
3106 * guile/scm-frame.c (frame_functions)
3107 * guile/scm-gsmob.c (gsmob_functions): Use it.
3108 * guile/scm-iterator.c (iterator_functions): Use it.
3109 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3110 * guile/scm-math.c (math_functions): Use it.
3111 * guile/scm-objfile.c (objfile_functions): Use it.
3112 * guile/scm-param.c (parameter_functions): Use it.
3113 * guile/scm-ports.c (port_functions, private_port_functions): Use
3114 it.
3115 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3116 * guile/scm-progspace.c (pspace_functions): Use it.
3117 * guile/scm-string.c (string_functions): Use it.
3118 * guile/scm-symbol.c (symbol_functions): Use it.
3119 * guile/scm-symtab.c (symtab_functions): Use it.
3120 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3121 it.
3122 * guile/scm-value.c (value_functions): Use it.
3123
3124 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3127 (tui_next_win): Likewise.
3128 (tui_prev_win): Likewise.
3129 (tui_partial_win_by_name): Likewise.
3130 (tui_init_generic_part): Likewise.
3131 (init_content_element): Likewise.
3132 (tui_del_window): Likewise.
3133 (tui_free_window): Likewise.
3134 (tui_del_data_windows): Likewise.
3135 (tui_free_data_content): Likewise.
3136 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3137 * tui/tui-regs.c (tui_show_register_group): Likewise.
3138 * tui/tui-win.c (tui_resize_all): Likewise.
3139 (tui_set_focus): Likewise.
3140 (tui_set_win_height): Likewise.
3141 (make_invisible_and_set_new_height): Likewise.
3142 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3143 * tui/tui-wingeneral.c (make_visible): Likewise.
3144
3145 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3148
3149 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3152 pointer.
3153 * dbxread.c (dbx_end_psymtab): Likewise.
3154 * gnu-nat.c (gnu_write_inferior): Likewise.
3155 * mdebugread.c (cross_ref): Likewise.
3156 * p-valprint.c (pascal_val_print): Likewise.
3157 * xcoffread.c (xcoff_end_psymtab): Likewise.
3158
3159 2015-09-04 Yao Qi <yao.qi@linaro.org>
3160
3161 * NEWS: Mention the aarch64 multi-arch debugging support.
3162
3163 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3164
3165 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3166 type instead of a TYPE_CODE_INT one for the string_char_type
3167 and the ada_primitive_type_char types.
3168
3169 2015-09-03 Yao Qi <yao.qi@linaro.org>
3170
3171 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3172 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3173 aarch64_linux_region_ok_for_watchpoint.
3174 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3175 New function.
3176 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3177 Declare it.
3178
3179 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3180
3181 * gdb_obstack.h (obstack_strdup): Declare.
3182 * gdb_obstack.c (obstack_strdup): Define.
3183 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3184 * gdbarch.c: Regenerate.
3185 * gdbarch.h: Regenerate.
3186 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3187
3188 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3189
3190 * gdbtypes.c (copy_type_recursive): Update documentation.
3191
3192 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3193
3194 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3195 as zero.
3196
3197 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3198
3199 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3200
3201 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3202
3203 * solib-svr4.c (solib_event_probe_action): Call
3204 get_probe_argument_count using TRY...CATCH.
3205 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3206
3207 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3208
3209 * probe.h (struct probe_ops) <get_probe_argument_count,
3210 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3211 the comment that the function can throw an exception.
3212 (get_probe_argument_count): Likewise.
3213 (evaluate_probe_argument): Likewise.
3214 * stap-probe.c (stap_get_opcode): Call error instead of
3215 internal_error.
3216 (stap_get_expected_argument_type): Likewise. Add argument
3217 'probe'. Improve error message by mentioning the probe's name.
3218 (stap_parse_probe_arguments): Adjust call to
3219 stap_get_expected_argument_type.
3220 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3221 not zero. Call internal_error if GDB requests an argument but the
3222 probe has no arguments.
3223
3224 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3225
3226 * ada-lang.c (ada_resolve_function): Do not ask the user what
3227 match to use when in completion mode.
3228
3229 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3232 cast of NULL.
3233
3234 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3235
3236 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3237 call_abi using XSHAL_ABI macro.
3238
3239 2015-08-29 Doug Evans <xdje42@gmail.com>
3240
3241 * symtab.h (struct symbol): Tweak comment.
3242
3243 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3244
3245 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3246 gdbarch obstack instead of on the heap. Update commentary
3247 accordingly.
3248
3249 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3250
3251 GDB 7.10 released.
3252
3253 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3254
3255 * NEWS: Update entry about non-8-bits addressable memory.
3256
3257 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3258
3259 Revert:
3260 2014-11-06 Doug Evans <xdje42@gmail.com>
3261 * solib.c (solib_global_lookup): Fetch arch from objfile,
3262 not target_gdbarch.
3263
3264 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3265
3266 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3267 attempt to relocate a TLS variable offset.
3268
3269 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3270
3271 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3272 registered yet. Set inferior_ptid while calling target_read_memory.
3273
3274 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3275
3276 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3277 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3278 * linux-nat.c (check_stopped_by_breakpoint): Use
3279 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3280
3281 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3282
3283 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3284 thread was not yet discovered, use thread_from_lwp instead of
3285 calling thread_db_find_new_threads_1.
3286
3287 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3288
3289 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3290 statements.
3291
3292 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * NEWS: Document support for non-8-bits addressable memory.
3295
3296 2015-08-27 Pedro Alves <palves@redhat.com>
3297
3298 * configure.ac: Remove AC_TYPE_SIGNAL call.
3299 * configure, config.in: Regenerate.
3300
3301 2015-08-27 Pedro Alves <palves@redhat.com>
3302
3303 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3304 * extension-priv.h: Include signal.h.
3305 (struct signal_handler) <handler>: Change type to sighandler_t.
3306 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3307 * inflow.c (sigint_ours, sigquit_ours): Change type to
3308 sighandler_t.
3309 (child_terminal_inferior): Remove casts.
3310 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3311 (osig): Change type to sighandler_t.
3312 * nto-procfs.c (ofunc): Change type to sighandler_t.
3313 (procfs_wait): Remove casts.
3314 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3315 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3316 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3317
3318 2015-08-27 Pedro Alves <palves@redhat.com>
3319
3320 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3321 * gnulib/aclocal.m4: Renegerate.
3322 * gnulib/config.in: Renegerate.
3323 * gnulib/configure: Renegerate.
3324 * gnulib/import/Makefile.am: Update.
3325 * gnulib/import/Makefile.in: Regenerate.
3326 * gnulib/import/m4/gnulib-cache.m4: Update.
3327 * gnulib/import/m4/gnulib-comp.m4: Update.
3328 * gnulib/import/m4/signal_h.m4: New file.
3329 * gnulib/import/signal.in.h: New file.
3330
3331 2015-08-27 Pedro Alves <palves@redhat.com>
3332
3333 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3334 (MIN_MEMORY_PACKET_SIZE): New.
3335 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3336 (get_memory_packet_size): Adjust. No longer limit the max packet
3337 size.
3338 (set_memory_packet_size): Adjust, and remove dead code.
3339 (remote_check_symbols): Use xmalloc and a cleanup instead of
3340 alloca.
3341 (remote_packet_size): No longer cap the packet size.
3342 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3343
3344 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3345
3346 * compile/compile.c (compile_to_object): Mention language in
3347 error message.
3348
3349 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3350
3351 * target.c (target_pre_inferior): Unset attach_flag.
3352
3353 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3354
3355 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3356 * gdbarch.c: Re-generate.
3357
3358 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3359
3360 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3361 function with the XNEW-family equivalent.
3362 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3363 * ada-exp.y (write_ambiguous_var): Likewise.
3364 * ada-lang.c (resolve_subexp): Likewise.
3365 (user_select_syms): Likewise.
3366 (assign_aggregate): Likewise.
3367 (ada_evaluate_subexp): Likewise.
3368 (cache_symbol): Likewise.
3369 * addrmap.c (allocate_key): Likewise.
3370 (addrmap_create_mutable): Likewise.
3371 * aix-thread.c (sync_threadlists): Likewise.
3372 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3373 (alpha_gdbarch_init): Likewise.
3374 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3375 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3376 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3377 * arm-tdep.c (push_stack_item): Likewise.
3378 (arm_displaced_step_copy_insn): Likewise.
3379 (arm_gdbarch_init): Likewise.
3380 (_initialize_arm_tdep): Likewise.
3381 * avr-tdep.c (push_stack_item): Likewise.
3382 * ax-general.c (new_agent_expr): Likewise.
3383 * block.c (block_initialize_namespace): Likewise.
3384 * breakpoint.c (alloc_counted_command_line): Likewise.
3385 (update_dprintf_command_list): Likewise.
3386 (parse_breakpoint_sals): Likewise.
3387 (decode_static_tracepoint_spec): Likewise.
3388 (until_break_command): Likewise.
3389 (clear_command): Likewise.
3390 (update_global_location_list): Likewise.
3391 (get_breakpoint_objfile_data) Likewise.
3392 * btrace.c (ftrace_new_function): Likewise.
3393 (btrace_set_insn_history): Likewise.
3394 (btrace_set_call_history): Likewise.
3395 * buildsym.c (add_symbol_to_list): Likewise.
3396 (record_pending_block): Likewise.
3397 (start_subfile): Likewise.
3398 (start_buildsym_compunit): Likewise.
3399 (push_subfile): Likewise.
3400 (end_symtab_get_static_block): Likewise.
3401 (buildsym_init): Likewise.
3402 * cli/cli-cmds.c (source_command): Likewise.
3403 * cli/cli-decode.c (add_cmd): Likewise.
3404 * cli/cli-script.c (build_command_line): Likewise.
3405 (setup_user_args): Likewise.
3406 (realloc_body_list): Likewise.
3407 (process_next_line): Likewise.
3408 (copy_command_lines): Likewise.
3409 * cli/cli-setshow.c (do_set_command): Likewise.
3410 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3411 * coffread.c (coff_locate_sections): Likewise.
3412 (coff_symtab_read): Likewise.
3413 (coff_read_struct_type): Likewise.
3414 * common/cleanups.c (make_my_cleanup2): Likewise.
3415 * common/common-exceptions.c (throw_it): Likewise.
3416 * common/filestuff.c (make_cleanup_close): Likewise.
3417 * common/format.c (parse_format_string): Likewise.
3418 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3419 * compile/compile-object-load.c (munmap_list_add): Likewise.
3420 (compile_object_load): Likewise.
3421 * compile/compile-object-run.c (compile_object_run): Likewise.
3422 * compile/compile.c (append_args): Likewise.
3423 * corefile.c (specify_exec_file_hook): Likewise.
3424 * cp-support.c (make_symbol_overload_list): Likewise.
3425 * cris-tdep.c (push_stack_item): Likewise.
3426 (cris_gdbarch_init): Likewise.
3427 * ctf.c (ctf_trace_file_writer_new): Likewise.
3428 * dbxread.c (init_header_files): Likewise.
3429 (add_new_header_file): Likewise.
3430 (init_bincl_list): Likewise.
3431 (dbx_end_psymtab): Likewise.
3432 (start_psymtab): Likewise.
3433 (dbx_end_psymtab): Likewise.
3434 * dcache.c (dcache_init): Likewise.
3435 * dictionary.c (dict_create_hashed): Likewise.
3436 (dict_create_hashed_expandable): Likewise.
3437 (dict_create_linear): Likewise.
3438 (dict_create_linear_expandable): Likewise.
3439 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3440 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3441 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3442 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3443 (decode_frame_entry_1): Likewise.
3444 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3445 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3446 * dwarf2read.c (dwarf2_has_info): Likewise.
3447 (create_signatured_type_table_from_index): Likewise.
3448 (dwarf2_read_index): Likewise.
3449 (dw2_get_file_names_reader): Likewise.
3450 (create_all_type_units): Likewise.
3451 (read_cutu_die_from_dwo): Likewise.
3452 (init_tu_and_read_dwo_dies): Likewise.
3453 (init_cutu_and_read_dies): Likewise.
3454 (create_all_comp_units): Likewise.
3455 (queue_comp_unit): Likewise.
3456 (inherit_abstract_dies): Likewise.
3457 (read_call_site_scope): Likewise.
3458 (dwarf2_add_field): Likewise.
3459 (dwarf2_add_typedef): Likewise.
3460 (dwarf2_add_member_fn): Likewise.
3461 (attr_to_dynamic_prop): Likewise.
3462 (abbrev_table_alloc_abbrev): Likewise.
3463 (abbrev_table_read_table): Likewise.
3464 (add_include_dir): Likewise.
3465 (add_file_name): Likewise.
3466 (dwarf_decode_line_header): Likewise.
3467 (dwarf2_const_value_attr): Likewise.
3468 (dwarf_alloc_block): Likewise.
3469 (parse_macro_definition): Likewise.
3470 (set_die_type): Likewise.
3471 (write_psymtabs_to_index): Likewise.
3472 (create_cus_from_index): Likewise.
3473 (dwarf2_create_include_psymtab): Likewise.
3474 (process_psymtab_comp_unit_reader): Likewise.
3475 (build_type_psymtab_dependencies): Likewise.
3476 (read_comp_units_from_section): Likewise.
3477 (compute_compunit_symtab_includes): Likewise.
3478 (create_dwo_unit_in_dwp_v1): Likewise.
3479 (create_dwo_unit_in_dwp_v2): Likewise.
3480 (read_func_scope): Likewise.
3481 (process_structure_scope): Likewise.
3482 (mark_common_block_symbol_computed): Likewise.
3483 (load_partial_dies): Likewise.
3484 (dwarf2_symbol_mark_computed): Likewise.
3485 * elfread.c (elf_symfile_segments): Likewise.
3486 (elf_read_minimal_symbols): Likewise.
3487 * environ.c (make_environ): Likewise.
3488 * eval.c (evaluate_subexp_standard): Likewise.
3489 * event-loop.c (create_file_handler): Likewise.
3490 (create_async_signal_handler): Likewise.
3491 (create_async_event_handler): Likewise.
3492 (create_timer): Likewise.
3493 * exec.c (build_section_table): Likewise.
3494 * fbsd-nat.c (fbsd_remember_child): Likewise.
3495 * fork-child.c (fork_inferior): Likewise.
3496 * frv-tdep.c (new_variant): Likewise.
3497 * gdbarch.sh (gdbarch_alloc): Likewise.
3498 (append_name): Likewise.
3499 * gdbtypes.c (rank_function): Likewise.
3500 (copy_type_recursive): Likewise.
3501 (add_dyn_prop): Likewise.
3502 * gnu-nat.c (make_proc): Likewise.
3503 (make_inf): Likewise.
3504 (gnu_write_inferior): Likewise.
3505 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3506 (build_std_type_info_type): Likewise.
3507 * guile/scm-param.c (compute_enum_list): Likewise.
3508 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3509 * guile/scm-value.c (gdbscm_value_call): Likewise.
3510 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3511 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3512 (read_unwind_info): Likewise.
3513 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3514 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3515 (call_function_by_hand_dummy): Likewise.
3516 * infcmd.c (step_once): Likewise.
3517 (finish_forward): Likewise.
3518 (attach_command): Likewise.
3519 (notice_new_inferior): Likewise.
3520 * inferior.c (add_inferior_silent): Likewise.
3521 * infrun.c (add_displaced_stepping_state): Likewise.
3522 (save_infcall_control_state): Likewise.
3523 (save_inferior_ptid): Likewise.
3524 (_initialize_infrun): Likewise.
3525 * jit.c (bfd_open_from_target_memory): Likewise.
3526 (jit_gdbarch_data_init): Likewise.
3527 * language.c (add_language): Likewise.
3528 * linespec.c (decode_line_2): Likewise.
3529 * linux-nat.c (add_to_pid_list): Likewise.
3530 (add_initial_lwp): Likewise.
3531 * linux-thread-db.c (add_thread_db_info): Likewise.
3532 (record_thread): Likewise.
3533 (info_auto_load_libthread_db): Likewise.
3534 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3536 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3537 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3538 * macrocmd.c (macro_define_command): Likewise.
3539 * macroexp.c (gather_arguments): Likewise.
3540 * macroscope.c (sal_macro_scope): Likewise.
3541 * macrotab.c (new_macro_table): Likewise.
3542 * mdebugread.c (push_parse_stack): Likewise.
3543 (parse_partial_symbols): Likewise.
3544 (parse_symbol): Likewise.
3545 (psymtab_to_symtab_1): Likewise.
3546 (new_block): Likewise.
3547 (new_psymtab): Likewise.
3548 (mdebug_build_psymtabs): Likewise.
3549 (add_pending): Likewise.
3550 (elfmdebug_build_psymtabs): Likewise.
3551 * mep-tdep.c (mep_gdbarch_init): Likewise.
3552 * mi/mi-main.c (mi_execute_command): Likewise.
3553 * mi/mi-parse.c (mi_parse_argv): Likewise.
3554 * minidebug.c (lzma_open): Likewise.
3555 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3556 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3557 * mips-tdep.c (mips_gdbarch_init): Likewise.
3558 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3559 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3560 * mt-tdep.c (mt_registers_info): Likewise.
3561 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3562 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3563 (linux_enable_pt): Likewise.
3564 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3565 (linux_xfer_osdata_processgroups): Likewise.
3566 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3567 * nto-procfs.c (procfs_meminfo): Likewise.
3568 * objc-lang.c (start_msglist): Likewise.
3569 (selectors_info): Likewise.
3570 (classes_info): Likewise.
3571 (find_methods): Likewise.
3572 * objfiles.c (allocate_objfile): Likewise.
3573 (update_section_map): Likewise.
3574 * osabi.c (gdbarch_register_osabi): Likewise.
3575 (gdbarch_register_osabi_sniffer): Likewise.
3576 * parse.c (start_arglist): Likewise.
3577 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3578 (hwdebug_insert_point): Likewise.
3579 * printcmd.c (display_command): Likewise.
3580 (ui_printf): Likewise.
3581 * procfs.c (create_procinfo): Likewise.
3582 (load_syscalls): Likewise.
3583 (proc_get_LDT_entry): Likewise.
3584 (proc_update_threads): Likewise.
3585 * prologue-value.c (make_pv_area): Likewise.
3586 (pv_area_store): Likewise.
3587 * psymtab.c (extend_psymbol_list): Likewise.
3588 (init_psymbol_list): Likewise.
3589 (allocate_psymtab): Likewise.
3590 * python/py-inferior.c (add_thread_object): Likewise.
3591 * python/py-param.c (compute_enum_values): Likewise.
3592 * python/py-value.c (valpy_call): Likewise.
3593 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3594 * python/python.c (ensure_python_env): Likewise.
3595 * record-btrace.c (record_btrace_start_replaying): Likewise.
3596 * record-full.c (record_full_reg_alloc): Likewise.
3597 (record_full_mem_alloc): Likewise.
3598 (record_full_end_alloc): Likewise.
3599 (record_full_core_xfer_partial): Likewise.
3600 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3601 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3602 * remote-notif.c (remote_notif_state_allocate): Likewise.
3603 * remote.c (demand_private_info): Likewise.
3604 (remote_notif_stop_alloc_reply): Likewise.
3605 (remote_enable_btrace): Likewise.
3606 * reverse.c (save_bookmark_command): Likewise.
3607 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3608 * rx-tdep.c (rx_gdbarch_init): Likewise.
3609 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3610 * ser-go32.c (dos_get_tty_state): Likewise.
3611 (dos_copy_tty_state): Likewise.
3612 * ser-mingw.c (ser_windows_open): Likewise.
3613 (ser_console_wait_handle): Likewise.
3614 (ser_console_get_tty_state): Likewise.
3615 (make_pipe_state): Likewise.
3616 (net_windows_open): Likewise.
3617 * ser-unix.c (hardwire_get_tty_state): Likewise.
3618 (hardwire_copy_tty_state): Likewise.
3619 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3620 * solib-dsbt.c (dsbt_current_sos): Likewise.
3621 (dsbt_relocate_main_executable): Likewise.
3622 * solib-frv.c (frv_current_sos): Likewise.
3623 (frv_relocate_main_executable): Likewise.
3624 * solib-spu.c (spu_bfd_fopen): Likewise.
3625 * solib-svr4.c (lm_info_read): Likewise.
3626 (svr4_copy_library_list): Likewise.
3627 (svr4_default_sos): Likewise.
3628 * source.c (find_source_lines): Likewise.
3629 (line_info): Likewise.
3630 (add_substitute_path_rule): Likewise.
3631 * spu-linux-nat.c (spu_bfd_open): Likewise.
3632 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3633 * stabsread.c (dbx_lookup_type): Likewise.
3634 (read_type): Likewise.
3635 (read_member_functions): Likewise.
3636 (read_struct_fields): Likewise.
3637 (read_baseclasses): Likewise.
3638 (read_args): Likewise.
3639 (_initialize_stabsread): Likewise.
3640 * stack.c (func_command): Likewise.
3641 * stap-probe.c (handle_stap_probe): Likewise.
3642 * symfile.c (addrs_section_sort): Likewise.
3643 (addr_info_make_relative): Likewise.
3644 (load_section_callback): Likewise.
3645 (add_symbol_file_command): Likewise.
3646 (init_filename_language_table): Likewise.
3647 * symtab.c (create_filename_seen_cache): Likewise.
3648 (sort_search_symbols_remove_dups): Likewise.
3649 (search_symbols): Likewise.
3650 * target.c (make_cleanup_restore_target_terminal): Likewise.
3651 * thread.c (new_thread): Likewise.
3652 (enable_thread_stack_temporaries): Likewise.
3653 (make_cleanup_restore_current_thread): Likewise.
3654 (thread_apply_all_command): Likewise.
3655 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3656 * top.c (gdb_readline_wrapper): Likewise.
3657 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3658 * tracepoint.c (trace_find_line_command): Likewise.
3659 (all_tracepoint_actions_and_cleanup): Likewise.
3660 (make_cleanup_restore_current_traceframe): Likewise.
3661 (get_uploaded_tp): Likewise.
3662 (get_uploaded_tsv): Likewise.
3663 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3664 (tui_alloc_win_info): Likewise.
3665 (tui_alloc_content): Likewise.
3666 (tui_add_content_elements): Likewise.
3667 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3668 (tui_set_disassem_content): Likewise.
3669 * ui-file.c (ui_file_new): Likewise.
3670 (stdio_file_new): Likewise.
3671 (tee_file_new): Likewise.
3672 * utils.c (make_cleanup_restore_integer): Likewise.
3673 (add_internal_problem_command): Likewise.
3674 * v850-tdep.c (v850_gdbarch_init): Likewise.
3675 * valops.c (find_oload_champ): Likewise.
3676 * value.c (allocate_value_lazy): Likewise.
3677 (record_latest_value): Likewise.
3678 (create_internalvar): Likewise.
3679 * varobj.c (install_variable): Likewise.
3680 (new_variable): Likewise.
3681 (new_root_variable): Likewise.
3682 (cppush): Likewise.
3683 (_initialize_varobj): Likewise.
3684 * windows-nat.c (windows_make_so): Likewise.
3685 * x86-nat.c (x86_add_process): Likewise.
3686 * xcoffread.c (arrange_linetable): Likewise.
3687 (allocate_include_entry): Likewise.
3688 (process_linenos): Likewise.
3689 (SYMBOL_DUP): Likewise.
3690 (xcoff_start_psymtab): Likewise.
3691 (xcoff_end_psymtab): Likewise.
3692 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3693 * xtensa-tdep.c (xtensa_register_type): Likewise.
3694 * gdbarch.c: Regenerate.
3695 * gdbarch.h: Regenerate.
3696
3697 2015-08-25 Don Breazeal <donb@codesourcery.com>
3698
3699 * infrun.c (follow_exec): Re-order operations for
3700 handling follow-exec-mode "new".
3701 (handle_inferior_event_1): Assign ecs->event_thread
3702 to the current thread.
3703 * remote.c (get_remote_arch_state): Add an assertion.
3704
3705 2015-08-26 Pedro Alves <palves@redhat.com>
3706
3707 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3708
3709 2015-08-25 Pedro Alves <palves@redhat.com>
3710
3711 PR gdb/18804
3712 * defs.h (maybe_quit): Declare.
3713 (QUIT): Now calls maybe_quit.
3714 * event-loop.c (clear_async_signal_handler)
3715 (async_signal_handler_is_marked): New functions.
3716 * event-loop.h (async_signal_handler_is_marked)
3717 (clear_async_signal_handler): New declarations.
3718 * remote.c (remote_check_pending_interrupt): New function.
3719 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3720 longer check whether the target is async. If waiting for a stop
3721 reply, and a Ctrl-C as been sent to the target, offer to
3722 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3723 Otherwise do not disconnect and throw a quit.
3724 (_initialize_remote): Install remote_check_pending_interrupt as
3725 to_check_pending_interrupt.
3726 * target.c (target_check_pending_interrupt): New function.
3727 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3728 field.
3729 (target_check_pending_interrupt): New declaration.
3730 * utils.c (maybe_quit): New function.
3731 * target-delegates.c: Regenerate.
3732
3733 2015-08-25 Yao Qi <yao.qi@linaro.org>
3734
3735 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3736 Rename local variable pid to tid, and get lwpid of lwp. Update
3737 debug output.
3738
3739 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3740
3741 * ada-lang.c (ada_read_var_value): Add a var_block argument
3742 and pass it to default_read_var_value.
3743 * block.c (block_static_link): New accessor.
3744 * block.h (block_static_link): Declare it.
3745 * buildsym.c (finish_block_internal): Add a static_link
3746 argument. If there is a static link, associate it to the new
3747 block.
3748 (finish_block): Add a static link argument and pass it to
3749 finish_block_internal.
3750 (end_symtab_get_static_block): Update calls to finish_block and
3751 to finish_block_internal.
3752 (end_symtab_with_blockvector): Update call to
3753 finish_block_internal.
3754 * buildsym.h: Forward-declare struct dynamic_prop.
3755 (struct context_stack): Add a static_link field.
3756 (finish_block): Add a static link argument.
3757 * c-exp.y: Remove an obsolete comment (evaluation of variables
3758 already start from the selected frame, and now they climb *up*
3759 the call stack) and propagate the block information to the
3760 produced expression.
3761 * d-exp.y: Likewise.
3762 * f-exp.y: Likewise.
3763 * go-exp.y: Likewise.
3764 * jv-exp.y: Likewise.
3765 * m2-exp.y: Likewise.
3766 * p-exp.y: Likewise.
3767 * coffread.c (coff_symtab_read): Update calls to finish_block.
3768 * dbxread.c (process_one_symbol): Likewise.
3769 * xcoffread.c (read_xcoff_symtab): Likewise.
3770 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3771 "sym" parameter to struct block_symbol, update its uses and pass
3772 its block to calls to read_var_value.
3773 (convert_symbol_sym): Update the calls to convert_one_symbol.
3774 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3775 call to read_var_value.
3776 * dwarf2loc.c (block_op_get_frame_base): New.
3777 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3778 get_frame_base method.
3779 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3780 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3781 instead of the selected frame in order to evaluate the
3782 expression.
3783 (dwarf2_evaluate_property): Add a frame argument. Update call
3784 to dwarf2_locexpr_baton_eval to provide a frame in available and
3785 to handle the absence of address stack.
3786 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3787 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3788 declaration.
3789 (read_func_scope): Record any available static link description.
3790 Update call to finish_block.
3791 (read_lexical_block_scope): Update call to finish_block.
3792 * findvar.c (follow_static_link): New.
3793 (get_hosting_frame): New.
3794 (default_read_var_value): Add a var_block argument. Use
3795 get_hosting_frame to handle non-local references.
3796 (read_var_value): Add a var_block argument and pass it to the
3797 LA_READ_VAR_VALUE method.
3798 * gdbtypes.c (resolve_dynamic_range): Update calls to
3799 dwarf2_evaluate_property.
3800 (resolve_dynamic_type_internal): Likewise.
3801 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3802 read_var_value, passing it the block coming from symbol lookup.
3803 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3804 read_var_value (TODO).
3805 * infcmd.c (finish_command_continuation): Update call to
3806 read_var_value, passing it the block coming from symbol lookup.
3807 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3808 * language.h (struct language_defn): Add a var_block argument to
3809 the LA_READ_VAR_VALUE method.
3810 * objfiles.c (struct static_link_htab_entry): New.
3811 (static_link_htab_entry_hash): New.
3812 (static_link_htab_entry_eq): New.
3813 (objfile_register_static_link): New.
3814 (objfile_lookup_static_link): New.
3815 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3816 * objfiles.h: Include hashtab.h.
3817 (struct objfile): Add a static_links field.
3818 (objfile_register_static_link): New.
3819 (objfile_lookup_static_link): New.
3820 * printcmd.c (print_variable_and_value): Update call to
3821 read_var_value.
3822 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3823 * python/py-frame.c (frapy_read_var): Update call to
3824 read_var_value, passing it the block coming from symbol lookup.
3825 * python/py-framefilter.c (extract_sym): Add a sym_block
3826 parameter and set the pointed value to NULL (TODO).
3827 (enumerate_args): Update call to extract_sym.
3828 (enumerate_locals): Update calls to extract_sym and to
3829 read_var_value.
3830 * python/py-symbol.c (sympy_value): Update call to
3831 read_var_value (TODO).
3832 * stack.c (read_frame_local): Update call to read_var_value.
3833 (read_frame_arg): Likewise.
3834 (return_command): Likewise.
3835 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3836 method.
3837 (struct symbol): Add a block field.
3838 (SYMBOL_BLOCK): New accessor.
3839 * valops.c (value_of_variable): Remove frame/block handling and
3840 pass the block argument to read_var_value, which does this job
3841 now.
3842 (value_struct_elt_for_reference): Update calls to
3843 read_var_value.
3844 (value_of_this): Pass the block found to read_var_value.
3845 * value.h (read_var_value): Add a var_block argument.
3846 (default_read_var_value): Likewise.
3847
3848 2015-08-25 Yao Qi <yao.qi@linaro.org>
3849
3850 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3851 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3852 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3853
3854 2015-08-25 Yao Qi <yao.qi@linaro.org>
3855
3856 * Makefile.in (aarch64-liunx.o): New rule.
3857 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3858 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3859 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3860 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3861 extern.
3862 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3863 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3864 * nat/aarch64-linux.c: New file.
3865 * nat/aarch64-linux.h: New file.
3866
3867 2015-08-25 Yao Qi <yao.qi@linaro.org>
3868
3869 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3870 lwp_arch_private_info and ptid_of_lwp.
3871
3872 2015-08-25 Yao Qi <yao.qi@linaro.org>
3873
3874 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3875 Move it to nat/aarch64-linux-hw-point.c.
3876 (debug_reg_change_callback): Likewise.
3877 (aarch64_notify_debug_reg_change): :Likewise.
3878 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3879 (aarch64_dr_update_callback_param): New.
3880 (debug_reg_change_callback): New function.
3881 (aarch64_notify_debug_reg_change): Likewise.
3882 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3883 Remove the declaration.
3884
3885 2015-08-25 Yao Qi <yao.qi@linaro.org>
3886
3887 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3888 Call current_lwp_ptid.
3889
3890 2015-08-25 Yao Qi <yao.qi@linaro.org>
3891
3892 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3893 debug_printf.
3894
3895 2015-08-25 Yao Qi <yao.qi@linaro.org>
3896
3897 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3898 ptid_get_pid rather than ptid_get_lwp.
3899
3900 2015-08-24 Pedro Alves <palves@redhat.com>
3901
3902 * NEWS (New commands): Mention set/show remote
3903 multiprocess-extensions-packet.
3904 * remote.c (remote_query_supported): Only tell the server to use
3905 the multiprocess extensions if the user hasn't force-disabled them
3906 with "set remote multiprocess-extensions-packet off".
3907
3908 2015-08-24 Pedro Alves <palves@redhat.com>
3909
3910 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3911 1029a8112290f6eee9d7878a391c49db42c999bd.
3912 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3913 Regenerate.
3914 * gnulib/import/Makefile.am: Update.
3915 * gnulib/import/Makefile.in: Update.
3916 * gnulib/import/alloca.in.h: Update.
3917 * gnulib/import/basename-lgpl.c: Update.
3918 * gnulib/import/canonicalize-lgpl.c: Update.
3919 * gnulib/import/config.charset: Update.
3920 * gnulib/import/dirent.in.h: Update.
3921 * gnulib/import/dirfd.c: Update.
3922 * gnulib/import/dirname-lgpl.c: Update.
3923 * gnulib/import/dirname.h: Update.
3924 * gnulib/import/dosname.h: Update.
3925 * gnulib/import/errno.in.h: Update.
3926 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3927 * gnulib/import/extra/snippet/c++defs.h: Update.
3928 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3929 * gnulib/import/extra/update-copyright: Update.
3930 * gnulib/import/float+.h: Update.
3931 * gnulib/import/float.c: Update.
3932 * gnulib/import/float.in.h: Update.
3933 * gnulib/import/fnmatch.c: Update.
3934 * gnulib/import/fnmatch.in.h: Update.
3935 * gnulib/import/fnmatch_loop.c: Update.
3936 * gnulib/import/fpucw.h: Update.
3937 * gnulib/import/frexp.c: Update.
3938 * gnulib/import/frexpl.c: Update.
3939 * gnulib/import/gettimeofday.c: Update.
3940 * gnulib/import/inttypes.in.h: Update.
3941 * gnulib/import/isnan.c: Update.
3942 * gnulib/import/isnand-nolibm.h: Update.
3943 * gnulib/import/isnand.c: Update.
3944 * gnulib/import/isnanl-nolibm.h: Update.
3945 * gnulib/import/isnanl.c: Update.
3946 * gnulib/import/itold.c: Update.
3947 * gnulib/import/localcharset.c: Update.
3948 * gnulib/import/localcharset.h: Update.
3949 * gnulib/import/lstat.c: Update.
3950 * gnulib/import/m4/00gnulib.m4: Update.
3951 * gnulib/import/m4/absolute-header.m4: Update.
3952 * gnulib/import/m4/alloca.m4: Update.
3953 * gnulib/import/m4/canonicalize.m4: Update.
3954 * gnulib/import/m4/codeset.m4: Update.
3955 * gnulib/import/m4/configmake.m4: Update.
3956 * gnulib/import/m4/dirent_h.m4: Update.
3957 * gnulib/import/m4/dirfd.m4: Update.
3958 * gnulib/import/m4/dirname.m4: Update.
3959 * gnulib/import/m4/double-slash-root.m4: Update.
3960 * gnulib/import/m4/eealloc.m4: Update.
3961 * gnulib/import/m4/errno_h.m4: Update.
3962 * gnulib/import/m4/exponentd.m4: Update.
3963 * gnulib/import/m4/exponentl.m4: Update.
3964 * gnulib/import/m4/extensions.m4: Update.
3965 * gnulib/import/m4/extern-inline.m4: Update.
3966 * gnulib/import/m4/fcntl-o.m4: Update.
3967 * gnulib/import/m4/float_h.m4: Update.
3968 * gnulib/import/m4/fnmatch.m4: Update.
3969 * gnulib/import/m4/fpieee.m4: Update.
3970 * gnulib/import/m4/frexp.m4: Update.
3971 * gnulib/import/m4/frexpl.m4: Update.
3972 * gnulib/import/m4/gettimeofday.m4: Update.
3973 * gnulib/import/m4/glibc21.m4: Update.
3974 * gnulib/import/m4/gnulib-cache.m4: Update.
3975 * gnulib/import/m4/gnulib-common.m4: Update.
3976 * gnulib/import/m4/gnulib-comp.m4: Update.
3977 * gnulib/import/m4/gnulib-tool.m4: Update.
3978 * gnulib/import/m4/include_next.m4: Update.
3979 * gnulib/import/m4/inttypes-pri.m4: Update.
3980 * gnulib/import/m4/inttypes.m4: Update.
3981 * gnulib/import/m4/isnand.m4: Update.
3982 * gnulib/import/m4/isnanl.m4: Update.
3983 * gnulib/import/m4/largefile.m4: Update.
3984 * gnulib/import/m4/localcharset.m4: Update.
3985 * gnulib/import/m4/locale-fr.m4: Update.
3986 * gnulib/import/m4/locale-ja.m4: Update.
3987 * gnulib/import/m4/locale-zh.m4: Update.
3988 * gnulib/import/m4/longlong.m4: Update.
3989 * gnulib/import/m4/lstat.m4: Update.
3990 * gnulib/import/m4/malloc.m4: Update.
3991 * gnulib/import/m4/malloca.m4: Update.
3992 * gnulib/import/m4/math_h.m4: Update.
3993 * gnulib/import/m4/mbrtowc.m4: Update.
3994 * gnulib/import/m4/mbsinit.m4: Update.
3995 * gnulib/import/m4/mbsrtowcs.m4: Update.
3996 * gnulib/import/m4/mbstate_t.m4: Update.
3997 * gnulib/import/m4/memchr.m4: Update.
3998 * gnulib/import/m4/memmem.m4: Update.
3999 * gnulib/import/m4/mmap-anon.m4: Update.
4000 * gnulib/import/m4/multiarch.m4: Update.
4001 * gnulib/import/m4/nocrash.m4: Update.
4002 * gnulib/import/m4/off_t.m4: Update.
4003 * gnulib/import/m4/pathmax.m4: Update.
4004 * gnulib/import/m4/readlink.m4: Update.
4005 * gnulib/import/m4/rename.m4: Update.
4006 * gnulib/import/m4/rmdir.m4: Update.
4007 * gnulib/import/m4/ssize_t.m4: Update.
4008 * gnulib/import/m4/stat.m4: Update.
4009 * gnulib/import/m4/stdbool.m4: Update.
4010 * gnulib/import/m4/stddef_h.m4: Update.
4011 * gnulib/import/m4/stdint.m4: Update.
4012 * gnulib/import/m4/stdio_h.m4: Update.
4013 * gnulib/import/m4/stdlib_h.m4: Update.
4014 * gnulib/import/m4/string_h.m4: Update.
4015 * gnulib/import/m4/strstr.m4: Update.
4016 * gnulib/import/m4/strtok_r.m4: Update.
4017 * gnulib/import/m4/sys_socket_h.m4: Update.
4018 * gnulib/import/m4/sys_stat_h.m4: Update.
4019 * gnulib/import/m4/sys_time_h.m4: Update.
4020 * gnulib/import/m4/sys_types_h.m4: Update.
4021 * gnulib/import/m4/time_h.m4: Update.
4022 * gnulib/import/m4/unistd_h.m4: Update.
4023 * gnulib/import/m4/warn-on-use.m4: Update.
4024 * gnulib/import/m4/wchar_h.m4: Update.
4025 * gnulib/import/m4/wchar_t.m4: Update.
4026 * gnulib/import/m4/wctype_h.m4: Update.
4027 * gnulib/import/m4/wint_t.m4: Update.
4028 * gnulib/import/malloc.c: Update.
4029 * gnulib/import/malloca.c: Update.
4030 * gnulib/import/malloca.h: Update.
4031 * gnulib/import/math.in.h: Update.
4032 * gnulib/import/mbrtowc.c: Update.
4033 * gnulib/import/mbsinit.c: Update.
4034 * gnulib/import/mbsrtowcs-impl.h: Update.
4035 * gnulib/import/mbsrtowcs-state.c: Update.
4036 * gnulib/import/mbsrtowcs.c: Update.
4037 * gnulib/import/memchr.c: Update.
4038 * gnulib/import/memmem.c: Update.
4039 * gnulib/import/pathmax.h: Update.
4040 * gnulib/import/readlink.c: Update.
4041 * gnulib/import/ref-add.sin: Update.
4042 * gnulib/import/ref-del.sin: Update.
4043 * gnulib/import/rename.c: Update.
4044 * gnulib/import/rmdir.c: Update.
4045 * gnulib/import/same-inode.h: Update.
4046 * gnulib/import/stat.c: Update.
4047 * gnulib/import/stdbool.in.h: Update.
4048 * gnulib/import/stddef.in.h: Update.
4049 * gnulib/import/stdint.in.h: Update.
4050 * gnulib/import/stdio.c: Update.
4051 * gnulib/import/stdio.in.h: Update.
4052 * gnulib/import/stdlib.in.h: Update.
4053 * gnulib/import/str-two-way.h: Update.
4054 * gnulib/import/streq.h: Update.
4055 * gnulib/import/string.in.h: Update.
4056 * gnulib/import/stripslash.c: Update.
4057 * gnulib/import/strnlen1.c: Update.
4058 * gnulib/import/strnlen1.h: Update.
4059 * gnulib/import/strstr.c: Update.
4060 * gnulib/import/strtok_r.c: Update.
4061 * gnulib/import/sys_stat.in.h: Update.
4062 * gnulib/import/sys_time.in.h: Update.
4063 * gnulib/import/sys_types.in.h: Update.
4064 * gnulib/import/time.in.h: Update.
4065 * gnulib/import/unistd.in.h: Update.
4066 * gnulib/import/verify.h: Update.
4067 * gnulib/import/wchar.in.h: Update.
4068 * gnulib/import/wctype.in.h: Update.
4069 * gnulib/import/gettimeofday.c: New file.
4070 * gnulib/import/m4/absolute-header.m4: New file.
4071 * gnulib/import/m4/gettimeofday.m4: New file.
4072 * gnulib/import/m4/sys_socket_h.m4: New file.
4073 * gnulib/import/m4/sys_time_h.m4: New file.
4074 * gnulib/import/stdio.c: Delete file.
4075 * gnulib/import/sys_time.in.h: New file.
4076
4077 2015-08-24 Pedro Alves <palves@redhat.com>
4078
4079 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4080 * common/gdb_sys_time.h: New file.
4081 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4082 * gdb_select.h: Likewise.
4083 * gdb_usleep.c: Likewise.
4084 * maint.c: Likewise.
4085 * mi/mi-main.c: Likewise.
4086 * mi/mi-parse.h: Likewise.
4087 * remote-fileio.c: Likewise.
4088 * remote-m32r-sdi.c: Likewise.
4089 * remote.c: Likewise.
4090 * ser-base.c: Likewise.
4091 * ser-pipe.c: Likewise.
4092 * ser-tcp.c: Likewise.
4093 * ser-unix.c: Likewise.
4094 * symfile.c: Likewise.
4095 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4096 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4097 * utils.c: Likewise.
4098
4099 2015-08-24 Pedro Alves <palves@redhat.com>
4100
4101 * NEWS: Mention removed support for the various ROM monitors.
4102 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4103 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4104 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4105 gdb_target_obs.
4106 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4107 gdb_target_obs.
4108 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4109 dsrec.o from gdb_target_obs.
4110 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4111 from gdb_target_obs.
4112 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4113 gdb_target_obs.
4114 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4115 dink32-rom.o from gdb_target_obs.
4116 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4117 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4118 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4119 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4120
4121 2015-08-21 Pedro Alves <palves@redhat.com>
4122
4123 * frame.c (null_frame_id): Explicitly zero-initialize.
4124
4125 2015-08-21 Tom Tromey <tromey@redhat.com>
4126
4127 * dwarf2read.c (struct dwarf2_section_info): Rename field
4128 'asection' to 'section'.
4129 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4130 (dwarf2_locate_sections, dwarf2_locate_sections)
4131 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4132 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4133 (dwarf2_locate_v2_dwp_sections): Adjust.
4134
4135 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4136
4137 * top.h (gdb_in_secondary_prompt_p): Declare.
4138 * top.c (gdb_secondary_prompt_depth): Define.
4139 (gdb_in_secondary_prompt_p): Define.
4140 (gdb_readline_wrapper_cleanup): Decrement
4141 gdb_secondary_prompt_depth.
4142 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4143 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4144 are in a secondary prompt.
4145
4146 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4147
4148 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4149 emit the newline.
4150
4151 2015-08-21 Gary Benson <gbenson@redhat.com>
4152
4153 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4154
4155 2015-08-21 Gary Benson <gbenson@redhat.com>
4156
4157 * target.h (struct target_ops) <to_fileio_open>: New argument
4158 warn_if_slow. Update comment. All implementations updated.
4159 (target_fileio_open_warn_if_slow): New declaration.
4160 * target.c (target_fileio_open): Renamed as...
4161 (target_fileio_open_1): ...this. New argument warn_if_slow.
4162 Pass warn_if_slow to implementation. Update debug printing.
4163 (target_fileio_open): New function.
4164 (target_fileio_open_warn_if_slow): Likewise.
4165 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4166 target_fileio_open_warn_if_slow.
4167
4168 2015-08-21 Gary Benson <gbenson@redhat.com>
4169
4170 * nat/linux-namespaces.c (linux_mntns_access_fs):
4171 Do not overwrite old_chain.
4172
4173 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4174
4175 * arch/xtensa.h: New file.
4176 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4177 (ps_get_thread_area): New function.
4178 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4179 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4180 * xtensa-tdep.c (osabi.h): New #include.
4181 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4182 xtensa-specific hooks.
4183 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4184 member and move the structure to arch/xtensa.h.
4185
4186 2015-08-21 Pedro Alves <palves@redhat.com>
4187
4188 * remote.c (struct readahead_cache): New.
4189 (struct remote_state) <readahead_cache>: New field.
4190 (remote_open_1): Invalidate the cache.
4191 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4192 functions.
4193 (remote_hostio_pwrite): Invalidate the readahead cache.
4194 (remote_hostio_pread): Rename to ...
4195 (remote_hostio_pread_vFile): ... this.
4196 (remote_hostio_pread_from_cache): New function.
4197 (remote_hostio_pread): Reimplement.
4198 (remote_hostio_close): Invalidate the readahead cache.
4199
4200 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4201
4202 PR build/18843
4203 * procfs.c: Include "filestuff.h".
4204
4205 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4206
4207 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4208 curch.
4209 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4210 cur_line or curch, instead call wmove().
4211 (init_win_info) [CMD_WIN]: Likewise.
4212 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4213 instead call getcury().
4214 (tui_redisplay_readline): Don't set cur_line or curch.
4215 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4216 getcury().
4217 (tui_cont_sig): Remove call to wmove.
4218 (tui_getc): Don't read cur_line or curch, instead call getcury()
4219 or getyx(). Don't set curch.
4220 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4221 set cur_line or curch. Always move cursor to (0,0).
4222
4223 2015-08-20 Pedro Alves <palves@redhat.com>
4224
4225 * infrun.c (print_target_wait_results): Make extern.
4226 * infrun.h (print_target_wait_results): Declare.
4227 * remote.c (set_stop_requested_callback): Delete.
4228 (process_initial_stop_replies): New function.
4229 (remote_start_remote): Use it.
4230 (stop_reply_queue_length): New function.
4231
4232 2015-08-20 Pedro Alves <palves@redhat.com>
4233
4234 * dwarf2read.c (process_full_comp_unit): To tell whether
4235 start_subfile managed to deduce a language, test for
4236 language_unknown instead of language_c.
4237
4238 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4239
4240 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4241 matches attributes.
4242
4243 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4244
4245 * dwarf2read.c (dwarf2_string_attr): New function.
4246 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4247 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4248 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4249 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4250 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4251
4252 2015-08-18 Doug Evans <dje@google.com>
4253 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4254
4255 PR mi/18833
4256 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4257 if MI-like.
4258 * mi/mi-out.c: #include "vec.h".
4259 (ui_filep): New type.
4260 (DEV_VEC_P (ui_filep)): New type.
4261 (struct ui_out_data) <buffer, original_buffer>: Delete.
4262 (struct ui_out_data) <streams>: New member.
4263 (mi_ui_out_impl): Add data_destroy field.
4264 (mi_field_string, mi_field_fmt): Update.
4265 (mi_flush, mi_redirect, field_separator): Update.
4266 (mi_open, mi_close): Update.
4267 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4268 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4269 (mi_out_new): Call mi_out_data_ctor.
4270
4271 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4272
4273 * remote.c (strprefix): New.
4274 (remote_parse_stop_reply): Use strprefix instead of strncmp
4275 to ensure exact match of keyword.
4276
4277 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * gdb_bfd.c (debug_bfd_cache): New variable.
4280 (show_bfd_cache_debug): New function.
4281 (gdb_bfd_open): Add debug logging.
4282 (gdb_bfd_ref): Likewise.
4283 (gdb_bfd_unref): Likewise.
4284 (_initialize_gdb_bfd): Add new set/show command.
4285 * NEWS: Mention new command.
4286
4287 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 * gdb_bfd.c (bfd_sharing): New variable.
4290 (show_bfd_sharing): New function.
4291 (gdb_bfd_open): Check bfd_sharing variable.
4292 (_initialize_gdb_bfd): Add new set/show command.
4293 * NEWS: Mention new command.
4294
4295 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4296
4297 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4298 field.
4299 (struct gdb_bfd_cache_search): Likewise.
4300 (eq_bfd): Compare the size, inode, and device id fields.
4301 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4302 (gdb_bfd_ref): Likewise.
4303 (gdb_bfd_unref): Likewise.
4304
4305 2015-08-18 Pedro Alves <palves@redhat.com>
4306
4307 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4308 target implements to_always_non_stop_p, call it.
4309 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4310 (x86_linux_create_target): Install it as to_always_non_stop_p
4311 method.
4312
4313 2015-08-17 Doug Evans <dje@google.com>
4314
4315 * ui-out.c (default_ui_out_impl): Add comment.
4316
4317 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4318
4319 * d-exp.y (type_aggregate_p): New function.
4320 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4321 (classify_inner_name): Likewise.
4322 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4323
4324 2015-08-15 Doug Evans <xdje42@gmail.com>
4325
4326 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4327 updated.
4328 (add_psymbol_to_list): Ditto.
4329
4330 2015-08-15 Doug Evans <xdje42@gmail.com>
4331
4332 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4333 updated. Call end_psymtab_common.
4334 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4335 end_psymtab_common.
4336 (build_type_psymtabs_reader): Ditto.
4337 * psympriv.h (sort_pst_symbols): Delete.
4338 (end_psymtab_common): Declare.
4339 * psymtab.c (sort_pst_symbols): Make static.
4340 (end_psymtab_common): New function.
4341 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4342
4343 2015-08-15 Doug Evans <xdje42@gmail.com>
4344
4345 * defs.h (LANGUAGE_BITS): Define.
4346 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4347 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4348 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4349 (minimal_symbol_type): Add nr_minsym_types.
4350 (MINSYM_TYPE_BITS): Define.
4351 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4352 (domain_enum_tag): Add NR_DOMAINS.
4353 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4354 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4355
4356 2015-08-15 Doug Evans <xdje42@gmail.com>
4357
4358 * objfiles.h: Whitespace cleanup.
4359 * psympriv.h: Whitespace cleanup.
4360 * psymtab.c: Whitespace/coding convention cleanup.
4361
4362 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4363
4364 * inferior.c (detach_inferior_command): Don't call
4365 any_thread_of_process when pid is 0.
4366 (kill_inferior_command): Likewise.
4367
4368 2015-08-14 Doug Evans <xdje42@gmail.com>
4369
4370 PR gdb/11833
4371 * NEWS: Document new /s modifier for the disassemble command.
4372 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4373 (_initialize_cli_cmds): Update online docs of disassemble command.
4374 * disasm.c: #include "source.h".
4375 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4376 All uses updated.
4377 (dis_line_entry): New struct.
4378 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4379 (allocate_dis_line_table): New functions.
4380 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4381 (dump_insns): New arg end_pc. All callers updated.
4382 (do_mixed_source_and_assembly_deprecated): Renamed from
4383 do_mixed_source_and_assembly. All callers updated.
4384 (do_mixed_source_and_assembly): New function.
4385 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4386 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4387 DISASSEMBLY_SOURCE. All uses updated.
4388 (DISASSEMBLY_SOURCE): New macro.
4389 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4390
4391 2015-08-14 Keith Seitz <keiths@redhat.com>
4392
4393 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4394 `typename' to `type_name' to avoid C++ reserved word.
4395
4396 2015-08-14 Keith Seitz <keiths@redhat.com>
4397
4398 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4399 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4400 silence ARI errors.
4401
4402 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4403
4404 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4405 xstrprintf instead of malloc and sprintf.
4406 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4407 (lex_one_token): Likewise.
4408
4409 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4410
4411 * solib-svr4.c (read_program_header): Add base_addr argument to
4412 report the runtime address of the segment.
4413 (find_program_interpreter): Update read_program_header call to pass
4414 a NULL pointer for the new argument.
4415 (scan_dyntag): Add ptr_addr argument to report the runtime address
4416 of the tag payload.
4417 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4418 read_program_header to get the base address of the dynamic segment.
4419 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4420 read_program_header.
4421 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4422
4423 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4424
4425 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4426
4427 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4428
4429 * d-exp.y (%union): Add voidval.
4430 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4431 name in the lexing stage.
4432 (PostfixExpression): Move symbol completion handling in grammar here
4433 from PrimaryExpression.
4434 (PrimaryExpression): Move routines to handle resolving identifier
4435 tokens in the grammar here from push_expression_name.
4436 (IdentifierExp): Remove the handling of alternating '.' and identifier
4437 tokens.
4438 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4439 (BasicType): Remove C-style typename rules.
4440 (d_type_from_name, d_module_from_name, push_variable)
4441 (push_fieldnames, push_type_name, push_module_name)
4442 (push_expression_name): Remove.
4443 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4444 (token_and_value): New type.
4445 (token_fifo, popping, name_obstack): New globals.
4446 (classify_name): New function.
4447 (classify_inner_name): Likewise.
4448 (yylex): Likewise.
4449 (d_parse): Initialize token_fifo, popping and name_obstack.
4450
4451 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4452
4453 * Makefile.in (SFILES): Add d-namespace.c.
4454 (COMMON_OBS): Add d-namespace.o.
4455 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4456 la_lookup_symbol_nonlocal callback function pointer.
4457 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4458 (d_lookup_nested_symbol): New declaration.
4459 * d-namespace.c: New file.
4460
4461 2015-08-13 Pedro Alves <palves@redhat.com>
4462
4463 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4464 cleanup after the decref cleanup, not before.
4465
4466 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4467
4468 * ada-lang.c: Include namespace.h
4469 (aux_add_nonlocal_symbols): Fix a function name in comment.
4470 (ada_add_block_renamings): New.
4471 (add_nonlocal_symbols): Add global renamings handling.
4472 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4473 to...
4474 (ada_add_all_symbols): ... this new function.
4475 (ada_add_block_symbols): Try to match the input name against the
4476 "using directives list", perform a recursive symbol lookup on
4477 the matched declarations.
4478 * block.h (struct block): Move the_namespace to top-level as
4479 namespace_info. Remove the language_specific field.
4480 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4481 * buildsym.h (using_directives): Rename into...
4482 (local_using_directives): ... this.
4483 (global_using_directives): New.
4484 (struct context_stack): Rename the using_directives field into
4485 local_using_directives.
4486 * buildsym.c (finish_block_internal): Deal with the proper
4487 using directives repository (local or global).
4488 (prepare_for_building): Reset local_using_directives. Assert
4489 that there is no pending global using directive.
4490 (reset_symtab_globals): Reset global_using_directives and
4491 local_using_directives.
4492 (end_symtab_get_static_block): Don't ignore symtabs that have
4493 only using directives.
4494 (push_context): Update references to local_using_directives.
4495 (buildsym_init): Do not reset using_directives.
4496 * cp-support.c: Include namespace.h.
4497 * cp-support.h (struct using_direct): Move to namespace.h.
4498 (cp_add_using_directives): Move to namespace.h.
4499 * cp-namespace.c: Include namespace.h
4500 (cp_add_using_directive): Move to namespace.c, rename it to
4501 add_using_directive, add a "using_directives" argument and use
4502 it as the pending using directives repository. All callers
4503 updated.
4504 * dwarf2read.c (using_directives): New.
4505 (read_import_statement): Call using_directives.
4506 (read_func_scope): Update references to local_using_directives.
4507 (read_lexical_block_scope): Likewise.
4508 (read_namespace): Update the heading comment, call
4509 using_directives.
4510 * namespace.h: New file.
4511 * namespace.c: New file.
4512 * Makefile.in (SFILES): Add namespace.c.
4513 (COMMON_OBS): Add namespace.o
4514
4515 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4516
4517 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4518 compute RETADDR.
4519
4520 2015-08-12 Keith Seitz <keiths@redhat.com>
4521
4522 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4523 reserved C++ keyword "explicit" to "explicit_loc".
4524 * breakpoint.c (create_overlay_event_breakpoint)
4525 (create_longjmp_master_breakpoint)
4526 (create_std_terminate_master_breakpoint)
4527 (create_exception_master_breakpoint, update_static_tracepoint):
4528 Rename reserved C++ keyword "explicit" to "explicit_loc".
4529 * completer.c (collect_explicit_location_matches)
4530 (explicit_location_completer): Rename reserved C++ keyword
4531 "explicit" to "explicit_loc".
4532 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4533 (canonicalize_linespec, create_sals_line_offset)
4534 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4535 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4536 "explicit" to "explicit_loc".
4537 * location.c (struct event_location) <explicit>: Rename to
4538 "explicit_loc".
4539 (initialize_explicit_location, new_explicit_location)
4540 (explicit_location_to_string_internal, explicit_location_to_linespec):
4541 Rename reserved C++ keyword "explicit" to "explicit_loc".
4542 * location.h (explicit_location_to_string)
4543 (explicit_location_to_linespec, initialize_explicit_location)
4544 (new_explicit_location): Rename reserved C++ keyword "explicit"
4545 to "explicit_loc".
4546 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4547 keyword "explicit" to "explicit_loc".
4548
4549 2015-08-12 Keith Seitz <keiths@redhat.com>
4550
4551 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4552 and only call decode_line_1 when it is non-NULL.
4553
4554 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4555
4556 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4557 location address is not meaningful.
4558 (breakpoint_address_is_meaningful): Update comment.
4559
4560 2015-08-11 Keith Seitz <keiths@redhat.com>
4561
4562 * NEWS: Mention explicit locations.
4563 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4564 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4565 (_initialize_breakpoint): Update documentation for
4566 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4567
4568 2015-08-11 Keith Seitz <keiths@redhat.com>
4569
4570 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4571 explicit locations, options "--source", "--function",
4572 "--label", and "--line".
4573
4574 2015-08-11 Keith Seitz <keiths@redhat.com>
4575
4576 * completer.c: Include location.h.
4577 (enum match_type): New enum.
4578 (location_completer): Rename to ...
4579 (linespec_completer): ... this.
4580 (collect_explicit_location_matches, backup_text_ptr)
4581 (explicit_location_completer): New functions.
4582 (location_completer): "New" function; handle linespec
4583 and explicit location completions.
4584 (complete_line_internal): Remove all location completer-specific
4585 handling.
4586 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4587 (find_toplevel_char): Export.
4588 (linespec_parse_line_offset): Export.
4589 Issue error if STRING is not numerical.
4590 (gdb_get_linespec_parser_quote_characters): New function.
4591 * linespec.h (linespec_parse_line_offset): Declare.
4592 (get_gdb_linespec_parser_quote_characters): Declare.
4593 (is_ada_operator): Declare.
4594 (find_toplevel_char): Declare.
4595 (linespec_lexer_lex_keyword): Declare.
4596 * location.c (explicit_to_event_location): New function.
4597 (explicit_location_lex_one): New function.
4598 (string_to_explicit_location): New function.
4599 (string_to_event_location): Handle explicit locations.
4600 * location.h (explicit_to_event_location): Declare.
4601 (string_to_explicit_location): Declare.
4602
4603 2015-08-11 Keith Seitz <keiths@redhat.com>
4604
4605 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4606 linespec into explicit location.
4607 * breakpoint.c (create_overlay_breakpoint)
4608 (create_longjmp_master_breakpoint)
4609 (create_std_terminate_master_breakpoint)
4610 (create_exception_master_breakpoint): Convert linespec into explicit
4611 location.
4612 (update_static_tracepoint): Convert linespec into explicit location.
4613 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4614 location.h.
4615 (struct linespec) <expression, expr_pc, source_filename>
4616 <function_name, label_name, line_offset>: Replace with ...
4617 <explicit>: ... this.
4618 <is_linespec>: New member.
4619 (PARSER_EXPLICIT): New accessor macro.
4620 (undefined_label_error): New function.
4621 (source_file_not_found_error): New function.
4622 (linespec_parse_basic): The parser result is now an explicit location.
4623 Use PARSER_EXPLICIT to access it.
4624 Use undefined_label_error.
4625 (canonicalize_linespec): Convert canonical linespec into explicit
4626 location.
4627 Move string representation of location to explicit_location_to_linespec
4628 and use it and explicit_location_to_string to save string
4629 representations of the canonical location.
4630 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4631 explicit location. Update all references.
4632 (convert_explicit_location_to_sals): New function.
4633 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4634 result's explicit location.
4635 (linespec_state_constructor): Initialize is_linespec.
4636 Use PARSER_EXPLICIT.
4637 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4638 result.
4639 (event_location_to_sals): For linespec locations, set is_linespec.
4640 Handle explicit locations.
4641 (decode_objc): 'ls' contains an explicit location now. Update all
4642 references.
4643 (symtabs_from_filename): Use source_file_not_found_error.
4644 * location.c (struct event_location.u) <explicit>: New member.
4645 (initialize_explicit_location): New function.
4646 (initialize_event_location): Initialize explicit locations.
4647 (new_explicit_location, get_explicit_location)
4648 (get_explicit_location_const): New functions.
4649 (explicit_to_string_internal): New function; most of contents moved
4650 from canonicalize_linespec.
4651 (explicit_location_to_string): New function.
4652 (explicit_location_to_linespec): New function.
4653 (copy_event_location, delete_event_location)
4654 (event_location_to_string_const, event_location_empty_p): Handle
4655 explicit locations.
4656 * location.h (enum offset_relative_sign, struct line_offset): Move
4657 here from linespec.h.
4658 (enum event_location_type): Add EXPLICIT_LOCATION.
4659 (struct explicit_location): New structure.
4660 (explicit_location_to_string): Declare.
4661 (explicit_location_to_linespec): Declare.
4662 (new_explicit_location, get_explicit_locationp
4663 (get_explicit_location_const, initialize_explicit_location): Declare.
4664
4665 2015-08-11 Keith Seitz <keiths@redhat.com>
4666
4667 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4668 linespec for stap probe to probe location.
4669 * breakpoint.c (create_longjmp_master_breakpoint)
4670 (create_exception_master_breakpoint): Likewise.
4671 (break_command_1): Remove local variable `arg_cp'.
4672 Check location type to set appropriate breakpoint ops methods.
4673 (trace_command): Likewise.
4674 * linespec.c (event_location_to_sals): Assert on probe locations.
4675 * location.c (EL_PROBE): Add macro definition.
4676 (new_probe_location, get_probe_location): New functions.
4677 (copy_event_location, delete_event_location, event_location_to_string)
4678 (string_to_event_location, event_location_empty_p): Handle probe
4679 locations.
4680 * location.h (enum event_location_type): Add PROBE_LOCATION.
4681 (new_probe_location, get_probe_location): Declare.
4682 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4683 Convert linespec into probe location.
4684
4685 2015-08-11 Keith Seitz <keiths@redhat.com>
4686
4687 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4688 Convert linespec to address location.
4689 * linespec.c (canonicalize_linespec): Do not handle address
4690 locations here.
4691 (convert_address_location_to_sals): New function; contents moved
4692 from ...
4693 (convert_linespc_to_sals): ... here.
4694 (parse_linespec): Remove address locations from linespec grammar.
4695 Remove handling of address locations.
4696 (linespec_lex_to_end): Remove handling of address linespecs.
4697 (event_location_to_sals): Handle ADDRESS_LOCATION.
4698 (linespec_expression_to_pc): Export.
4699 * linespec.h (linespec_expression_to_pc): Add declaration.
4700 * location.c (struct event_location.u) <address>: New member.
4701 (new_address_location, get_address_location): New functions.
4702 (copy_event_location, delete_event_location, event_location_to_string)
4703 (string_to_event_location, event_location_empty_p): Handle address
4704 locations.
4705 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4706 (new_address_location, get_address_location): Declare.
4707 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4708 to address location.
4709 * spu-tdep.c (spu_catch_start): Likewise.
4710
4711 2015-08-11 Keith Seitz <keiths@redhat.com>
4712
4713 * ax-gdb.c: Include location.h.
4714 (agent_command_1) Use linespec location instead of address
4715 string.
4716 * break-catch-throw.c: Include location.h.
4717 (re_set_exception_catchpoint): Use linespec locations instead
4718 of address strings.
4719 * breakpoint.c: Include location.h.
4720 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4721 (create_std_terminate_master_breakpoint)
4722 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4723 Use linespec location instead of address string.
4724 (print_breakpoint_location): Use locations and
4725 event_location_to_string.
4726 Print extra_string for pending locations for non-MI streams.
4727 (print_one_breakpoint_location): Use locations and
4728 event_location_to_string.
4729 (init_raw_breakpoint_without_location): Initialize b->location.
4730 (create_thread_event_breakpoint): Use linespec location instead of
4731 address string.
4732 (init_breakpoint_sal): Likewise.
4733 Only save extra_string if it is non-NULL and not the empty string.
4734 Use event_location_to_string instead of `addr_string'.
4735 Constify `p' and `endp'.
4736 Use skip_spaces_const/skip_space_const instead of non-const versions.
4737 Copy the location into the breakpoint.
4738 If LOCATION is NULL, save the breakpoint address as a linespec location
4739 instead of an address string.
4740 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4741 event_location. All uses updated.
4742 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4743 (parse_breakpoint_sals): Use locations instead of address strings.
4744 Remove check for empty linespec with conditional.
4745 Refactor.
4746 (decode_static_tracepoint_spec): Make argument const and update
4747 function.
4748 (create_breakpoint): Change `arg' to a struct event_location and
4749 rename.
4750 Remove `copy_arg' and `addr_start'.
4751 If EXTRA_STRING is empty, set it to NULL.
4752 Don't populate `canonical' for pending breakpoints.
4753 Pass `extra_string' to find_condition_and_thread.
4754 Clear `extra_string' if `rest' was NULL.
4755 Do not error with "garbage after location" if setting a dprintf
4756 breakpoint.
4757 Copy the location into the breakpoint instead of an address string.
4758 (break_command_1): Use string_to_event_location and pass this to
4759 create_breakpoint instead of an address string.
4760 Check against `arg_cp' for a probe linespec.
4761 (dprintf_command): Use string_to_event_location and pass this to
4762 create_breakpoint instead of an address string.
4763 Throw an exception if no format string was specified.
4764 (print_recreate_ranged_breakpoint): Use event_location_to_string
4765 instead of address strings.
4766 (break_range_command, until_break_command)
4767 (init_ada_exception_breakpoint): Use locations instead
4768 of address strings.
4769 (say_where): Print out extra_string for pending locations.
4770 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4771 the breakpoint.
4772 (base_breakpoint_create_sals_from_location): Use struct event_location
4773 instead of address string.
4774 Remove `addr_start' and `copy_arg' parameters.
4775 (base_breakpoint_decode_location): Use struct event_location instead of
4776 address string.
4777 (bkpt_re_set): Use locations instead of address strings.
4778 Use event_location_empty_p to check for unset location.
4779 (bkpt_print_recreate): Use event_location_to_string instead of
4780 an address string.
4781 Print out extra_string for pending locations.
4782 (bkpt_create_sals_from_location, bkpt_decode_location)
4783 (bkpt_probe_create_sals_from_location): Use struct event_location
4784 instead of address string.
4785 (bkpt_probe_decode_location): Use struct event_location instead of
4786 address string.
4787 (tracepoint_print_recreate): Use event_location_to_string to
4788 recreate the tracepoint.
4789 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4790 (tracepoint_probe_create_sals_from_location)
4791 (tracepoint_probe_decode_location): Use struct event_location
4792 instead of address string.
4793 (dprintf_print_recreate): Use event_location_to_string to recreate
4794 the dprintf.
4795 (dprintf_re_set): Remove check for valid/missing format string.
4796 (strace_marker_create_sals_from_location)
4797 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4798 (update_static_tracepoint): Use struct event_location instead of
4799 address string.
4800 (location_to_sals): Likewise.
4801 Pass `extra_string' to find_condition_and_thread.
4802 For newly resolved pending breakpoint locations, clear the location's
4803 string representation.
4804 Assert that the breakpoint's condition string is NULL when
4805 condition_not_parsed.
4806 (breakpoint_re_set_default, create_sals_from_location_default)
4807 (decode_location_default, trace_command, ftrace_command)
4808 (strace_command, create_tracepoint_from_upload): Use locations
4809 instead of address strings.
4810 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4811 Use struct event_location instead of address string.
4812 Update all uses.
4813 <decode_location>: Likewise.
4814 (struct breakpoint) <addr_string>: Change to struct event_location
4815 and rename `location'.
4816 <addr_string_range_end>: Change to struct event_location and rename
4817 `location_range_end'.
4818 (create_breakpoint): Use struct event_location instead of address
4819 string.
4820 * cli/cli-cmds.c: Include location.h.
4821 (edit_command, list_command): Use locations instead of address strings.
4822 * elfread.c: Include location.h.
4823 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4824 * guile/scm-breakpoint.c: Include location.h.
4825 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4826 (gdbscm_register_breakpoint): Use locations instead of address
4827 strings.
4828 * linespec.c: Include location.h.
4829 (struct ls_parser) <stream>: Change to const char *.
4830 (PARSER_STREAM): Update.
4831 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4832 keywords must be followed by whitespace.
4833 (canonicalize_linespec): Save a linespec location into `canonical'.
4834 Save a canonical linespec into `canonical'.
4835 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4836 All uses updated.
4837 Update function description.
4838 (linespec_parser_new): Initialize `parser'.
4839 Update initialization of parsing stream.
4840 (event_location_to_sals): New function.
4841 (decode_line_full): Change `argptr' to a struct event_location and
4842 rename it `location'.
4843 Use locations instead of address strings.
4844 Call event_location_to_sals instead of parse_linespec.
4845 (decode_line_1): Likewise.
4846 (decode_line_with_current_source, decode_line_with_last_displayed)
4847 Use locations instead of address strings.
4848 (decode_objc): Likewise.
4849 Change `argptr' to const char * and rename `arg'.
4850 (destroy_linespec_result): Delete the linespec result's location
4851 instead of freeing the address string.
4852 * linespec.h (struct linespec_result) <addr_string>: Change to
4853 struct event_location and rename to ...
4854 <location>: ... this.
4855 (decode_line_1, decode_line_full): Change `argptr' to struct
4856 event_location. All callers updated.
4857 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4858 (mi_cmd_break_insert_1): Use locations instead of address strings.
4859 Throw an error if there was "garbage" at the end of the specified
4860 linespec.
4861 * probe.c: Include location.h.
4862 (parse_probes): Change `argptr' to struct event_location.
4863 Use event locations instead of address strings.
4864 * probe.h (parse_probes): Change `argptr' to struct event_location.
4865 * python/py-breakpoint.c: Include location.h.
4866 (bppy_get_location): Constify local variable `str'.
4867 Use event_location_to_string.
4868 (bppy_init): Use locations instead of address strings.
4869 * python/py-finishbreakpoint.c: Include location.h.
4870 (bpfinishpy_init): Remove local variable `addr_str'.
4871 Use locations instead of address strings.
4872 * python/python.c: Include location.h.
4873 (gdbpy_decode_line): Use locations instead of address strings.
4874 * remote.c: Include location.h.
4875 (remote_download_tracepoint): Use locations instead of address
4876 strings.
4877 * spu-tdep.c: Include location.h.
4878 (spu_catch_start): Remove local variable `buf'.
4879 Use locations instead of address strings.
4880 * tracepoint.c: Include location.h.
4881 (scope_info): Use locations instead of address strings.
4882 (encode_source_string): Constify parameter `src'.
4883 * tracepoint.h (encode_source_string): Likewise.
4884
4885 2015-08-11 Keith Seitz <keiths@redhat.com>
4886
4887 * Makefile.in (SFILES): Add location.c.
4888 (HFILES_NO_SRCDIR): Add location.h.
4889 (COMMON_OBS): Add location.o.
4890 * linespec.c (linespec_lex_to_end): New function.
4891 * linespec.h (linespec_lex_to_end): Declare.
4892 * location.c: New file.
4893 * location.h: New file.
4894
4895 2015-08-11 Keith Seitz <keiths@redhat.com>
4896
4897 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4898 Renamed to create_sals_from_location.
4899 <decode_linespec>: Renamed to decode_location.
4900 Update all callers.
4901 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4902 (create_sals_from_location_default): ... this.
4903 (addr_string_to_sals): Renamed to ...
4904 (location_to_sals): ... this.
4905 (decode_linespec_default): Renamed to ...
4906 (decode_location_default): ... this.
4907 (base_breakpoint_create_sals_from_address): Renamed to ...
4908 (base_breakpoint_create_sals_from_location): ... this.
4909 (bkpt_create_sals_from_address): Renamed to ...
4910 (bkpt_create_sals_from_location): ... this.
4911 (bkpt_decode_linespec): Renamed to ...
4912 (bkpt_decode_location): ... this.
4913 (bkpt_probe_create_sals_from_address): Renamed to ...
4914 (bkpt_probe_create_sals_from_location): ... this.
4915 (tracepoint_create_sals_from_address): Renamed to ...
4916 (tracepoint_create_sals_from_location): ... this.
4917 (tracepoint_decode_linespec): Renamed to ...
4918 (tracepoint_decode_location): ... this.
4919 (tracepoint_probe_create_sals_from_address): Renamed to ...
4920 (tracepoint_probe_create_sals_from_location): ... this.
4921 (tracepoint_probe_decode_linespec): Renamed to ...
4922 (tracepoint_probe_decode_location): ... this.
4923 (strace_marker_create_sals_from_address): Renamed to ...
4924 (strace_marker_create_sals_from_location): ... this.
4925 (decode_linespec_default): Renamed to ...
4926 (decode_location_default): ... this.
4927
4928 2015-08-10 Doug Evans <dje@google.com>
4929 Keith Seitz <keiths@redhat.com>
4930
4931 PR gdb/17960
4932 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4933 make_file_symbol_completion_list and made static.
4934 (make_file_symbol_completion_list): New function.
4935
4936 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4937
4938 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4939 trailing new-line at end of warning message.
4940 (proceed): Add i18n marker to error messages.
4941
4942 2015-08-07 Pedro Alves <palves@redhat.com>
4943
4944 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4945
4946 2015-08-07 Pedro Alves <palves@redhat.com>
4947
4948 * s390-linux-tdep.c (is_non_branch_ril)
4949 (s390_displaced_step_copy_insn): New functions.
4950 (s390_displaced_step_fixup): Update comment.
4951 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4952 gdbarch_displaced_step_copy_insn hook.
4953
4954 2015-08-07 Pedro Alves <palves@redhat.com>
4955
4956 * infrun.c (displaced_step_prepare_throw): Return -1 if
4957 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4958 comment.
4959 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4960 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4961 in file.
4962 (ppc_displaced_step_copy_insn): New function.
4963 (ppc_displaced_step_fixup): Update comment.
4964 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4965 gdbarch_displaced_step_copy_insn hook.
4966 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4967 NULL return.
4968 * gdbarch.h: Regenerate.
4969
4970 2015-08-07 Pedro Alves <palves@redhat.com>
4971
4972 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4973 field.
4974 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4975 Return false if dispaced stepping failed before.
4976 (resume): Pass the current inferior to
4977 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4978 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4979 displaced_stepping_failed flag, and fall back to an in-line
4980 step-over.
4981
4982 2015-08-07 Pedro Alves <palves@redhat.com>
4983
4984 * darwin-nat.c (darwin_stop): Rename to ...
4985 (darwin_interrupt): ... this.
4986 (_initialize_darwin_inferior): Adjust.
4987 * gnu-nat.c (gnu_stop): Delete.
4988 (gnu_target): Don't install gnu_stop.
4989 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4990 (inf_ptrace_interrupt): ... this.
4991 (inf_ptrace_target): Adjust.
4992 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4993 target_stop.
4994 * linux-nat (linux_nat_stop): Rename to ...
4995 (linux_nat_interrupt): ... this.
4996 (linux_nat_stop): Reimplement.
4997 (linux_nat_add_target): Install linux_nat_interrupt.
4998 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4999 (nto_handle_sigint_twice): ... this.
5000 (nto_interrupt): Rename to ...
5001 (nto_handle_sigint): ... this. Call target_interrupt instead of
5002 target_stop.
5003 (procfs_wait): Adjust.
5004 (procfs_stop): Rename to ...
5005 (procfs_interrupt): ... this.
5006 (init_procfs_targets): Adjust.
5007 * procfs.c (procfs_stop): Rename to ...
5008 (procfs_interrupt): ... this.
5009 (procfs_target): Adjust.
5010 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5011 (m32r_interrupt): ... this.
5012 (init_m32r_ops): Adjust.
5013 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5014 (gdbsim_interrupt_inferior): ... this.
5015 (gdbsim_stop): Rename to ...
5016 (gdbsim_interrupt): ... this.
5017 (gdbsim_cntrl_c): Adjust.
5018 (init_gdbsim_ops): Adjust.
5019 * remote.c (sync_remote_interrupt): Adjust comments.
5020 (remote_stop_as): Rename to ...
5021 (remote_interrupt_as): ... this.
5022 (remote_stop): Adjust comment.
5023 (remote_interrupt): New function.
5024 (init_remote_ops): Install remote_interrupt.
5025 * target.c (target_interrupt): New function.
5026 * target.h (struct target_ops) <to_interrupt>: New field.
5027 (target_interrupt): New declaration.
5028 * windows-nat.c (windows_stop): Rename to ...
5029 (windows_interrupt): ... this.
5030 * target-delegates.c: Regenerate.
5031
5032 2015-08-07 Pedro Alves <palves@redhat.com>
5033
5034 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5035 threads" as alternative to "switching back to stepped thread".
5036
5037 2015-08-07 Pedro Alves <palves@redhat.com>
5038
5039 * NEWS: Mention "maint set/show target-non-stop".
5040 * breakpoint.c (update_global_location_list): Check
5041 target_is_non_stop_p instead of non_stop.
5042 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5043 * infrun.c (show_can_use_displaced_stepping)
5044 (can_use_displaced_stepping_p, start_step_over_inferior):
5045 Likewise.
5046 (internal_resume_ptid): New function.
5047 (resume): Use it.
5048 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5049 all-stop mode but the target is always in non-stop mode, start all
5050 the other threads that are implicitly resumed too.
5051 (for_each_just_stopped_thread, fetch_inferior_event)
5052 (adjust_pc_after_break, stop_all_threads): Check
5053 target_is_non_stop_p instead of non_stop.
5054 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5055 with the target always in non-stop mode.
5056 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5057 instead of non_stop.
5058 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5059 instead of non_stop.
5060 (keep_going_stepped_thread): Use internal_resume_ptid.
5061 (stop_waiting): If in all-stop mode, and the target is in non-stop
5062 mode, stop all threads.
5063 (keep_going_pass): Likewise, when starting a new in-line step-over
5064 sequence.
5065 * linux-nat.c (get_pending_status, select_event_lwp)
5066 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5067 target_is_non_stop_p instead of non_stop.
5068 (linux_nat_always_non_stop_p): New function.
5069 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5070 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5071 * target-delegates.c: Regenerate.
5072 * target.c (target_is_non_stop_p): New function.
5073 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5074 (maint_set_target_non_stop_command)
5075 (maint_show_target_non_stop_command): New functions.
5076 (_initilize_target): Install "maint set/show target-non-stop"
5077 commands.
5078 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5079 (target_non_stop_enabled): New declaration.
5080 (target_is_non_stop_p): New declaration.
5081
5082 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5083
5084 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5085 has a pending status, return true.
5086 * gdbthread.h: Include target/waitstatus.h.
5087 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5088 stop_pc>: New fields.
5089 (struct thread_info) <resumed>: New field.
5090 (set_resumed): Declare.
5091 * infrun.c: Include "event-loop.h".
5092 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5093 (infrun_async): New function.
5094 (clear_step_over_info): Add debug output.
5095 (displaced_step_in_progress_any_inferior): New function.
5096 (displaced_step_fixup): New returns int.
5097 (start_step_over): Handle in-line step-overs too. Assert the
5098 thread is marked resumed.
5099 (resume_cleanups): Clear the thread's resumed flag.
5100 (resume): Set the thread's resumed flag. Return early if the
5101 thread has a pending status. Allow stepping a breakpoint with no
5102 signal.
5103 (proceed): Adjust to check 'resumed' instead of 'executing'.
5104 (clear_proceed_status_thread): If the thread has a pending status,
5105 and that status is a finished step, discard the pending status.
5106 (clear_proceed_status): Don't clear step_over_info here.
5107 (random_pending_event_thread, do_target_wait): New functions.
5108 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5109 do_target_wait.
5110 (wait_one): New function.
5111 (THREAD_STOPPED_BY): New macro.
5112 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5113 (thread_stopped_by_hw_breakpoint): New functions.
5114 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5115 functions.
5116 (handle_inferior_event): Also call set_resumed(false) on all
5117 threads implicitly stopped by the event.
5118 (restart_threads, resumed_thread_with_pending_status): New
5119 functions.
5120 (finish_step_over): If we were doing an in-line step-over before,
5121 and no longer are after trying to start a new step-over, restart
5122 all threads. If we have multiple threads with pending events,
5123 save the current event and go through the event loop again.
5124 (handle_signal_stop): Return early if finish_step_over returns
5125 false.
5126 <random signal>: If we get a signal while stepping over a
5127 breakpoint in-line in non-stop mode, restart all threads. Clear
5128 step_over_info before delivering the signal.
5129 (keep_going_stepped_thread): Use internal_error instead of
5130 gdb_assert. Mark the thread as resumed.
5131 (keep_going_pass_signal): Assert the thread isn't already resumed.
5132 If some other thread is doing an in-line step-over, defer the
5133 resume. If we just started a new in-line step-over, stop all
5134 threads. Don't clear step_over_info.
5135 (infrun_async_inferior_event_handler): New function.
5136 (_initialize_infrun): Create async event handler with
5137 infrun_async_inferior_event_handler as callback.
5138 (infrun_async): New declaration.
5139 * target.c (target_async): New function.
5140 * target.h (target_async): Declare macro and readd as function
5141 declaration.
5142 * target/waitstatus.h (enum target_stop_reason)
5143 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5144 * thread.c (new_thread): Clear the new waitstatus field.
5145 (set_resumed): New function.
5146
5147 2015-08-07 Pedro Alves <palves@redhat.com>
5148
5149 * infrun.c (keep_going_stepped_thread): New function, factored out
5150 from ...
5151 (switch_back_to_stepped_thread): ... here.
5152
5153 2015-08-07 Pedro Alves <palves@redhat.com>
5154
5155 * infrun.c (currently_stepping): Extend intro comment.
5156 * target.h (target_resume): Extend intro comment.
5157
5158 2015-08-07 Pedro Alves <palves@redhat.com>
5159
5160 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5161 of inferior_ptid. If the stepped thread vanished, return 0
5162 instead of resuming here. Use reset_ecs. Print the prev_pc and
5163 the current stop_pc in log message. Clear trap_expected if the
5164 thread advanced. Don't pass currently_stepping to
5165 do_target_resume.
5166
5167 2015-08-07 Pedro Alves <palves@redhat.com>
5168
5169 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5170 * infrun.c (struct execution_control_state): Move higher up in the
5171 file.
5172 (reset_ecs): New function.
5173 (start_step_over): Now returns int. Rewrite to use
5174 keep_going_pass_signal instead of manually starting a displaced step.
5175 (resume): Don't call set_running here. If displaced stepping
5176 can't start now, clear trap_expected.
5177 (find_thread_needs_step_over): Delete function.
5178 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5179 If the current thread needs a step over, push it in the step-over
5180 chain. Don't set insert breakpoints nor call resume directly
5181 here. Instead rewrite to use start_step_over and
5182 keep_going_pass_signal.
5183 (finish_step_over): New function.
5184 (handle_signal_stop): Call finish_step_over instead of
5185 start_step_over.
5186 (switch_back_to_stepped_thread): If the event thread needs another
5187 step-over do that first. Use start_step_over.
5188 (keep_going_pass_signal): New function, factored out from ...
5189 (keep_going): ... here.
5190 (_initialize_infrun): Comment moved here.
5191 * thread.c (set_running_thread): New function.
5192 (set_running, finish_thread_state): Use set_running_thread.
5193
5194 2015-08-07 Pedro Alves <palves@redhat.com>
5195
5196 * gdbthread.h (struct thread_info) <step_over_prev,
5197 step_over_next>: New fields.
5198 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5199 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5200 declarations.
5201 * infrun.c (struct displaced_step_request): Delete.
5202 (struct displaced_step_inferior_state) <step_request_queue>:
5203 Delete field.
5204 (displaced_step_prepare): Assert that trap_expected is set. Use
5205 thread_step_over_chain_enqueue. Split starting a new displaced
5206 step to ...
5207 (start_step_over): ... this new function.
5208 (resume): Assert the thread isn't waiting for a step over already.
5209 (proceed): Assert the thread isn't waiting for a step over
5210 already.
5211 (infrun_thread_stop_requested): Adjust to remove threads from the
5212 embedded step-over chain.
5213 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5214 displaced_step_fixup.
5215 (handle_signal_stop): Call start_step_over after
5216 displaced_step_fixup.
5217 * infrun.h (step_over_queue_head): New declaration.
5218 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5219 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5220 (thread_step_over_chain_enqueue)
5221 (thread_step_over_chain_remove): New functions.
5222 (delete_thread_1): Remove thread from the step-over chain.
5223
5224 2015-08-07 Pedro Alves <palves@redhat.com>
5225
5226 * infrun.c (thread_still_needs_step_over): Rename to ...
5227 (thread_still_needs_step_over_bp): ... this.
5228 (enum step_over_what): New.
5229 (thread_still_needs_step_over): Reimplement.
5230
5231 2015-08-07 Pedro Alves <palves@redhat.com>
5232
5233 * remote.c (remote_wait_as): If not waiting for a stop reply,
5234 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5235 requested, don't block waiting forever.
5236
5237 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5238
5239 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5240 waitstatus pointers instead of an ecs. Adjust.
5241 (handle_inferior_event): Adjust caller.
5242
5243 2015-08-07 Pedro Alves <palves@redhat.com>
5244
5245 * infrun.c (handle_inferior_event): If we get
5246 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5247 mode, mark all threads of the exiting process as not-executing.
5248 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5249 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5250 exiting process, if inferior_ptid still points at a process.
5251 * thread.c (struct current_thread_cleanup) <next>: New field.
5252 (current_thread_cleanup_chain): New global.
5253 (restore_current_thread_ptid_changed): New function.
5254 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5255 current_thread_cleanup_chain list.
5256 (make_cleanup_restore_current_thread): Add the cleanup data to the
5257 current_thread_cleanup_chain list.
5258 (_initialize_thread): Install restore_current_thread_ptid_changed
5259 as thread_ptid_changed observer.
5260
5261 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5262
5263 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5264 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5265 smaller than expected.
5266
5267 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5268
5269 * stack.c (get_frame_language): Moved ...
5270 * frame.c (get_frame_language): ... to here.
5271 * language.h (get_frame_language): Declaration moved to frame.h.
5272 * frame.h: Add language.h include, for language enum.
5273 (get_frame_language): Declaration moved from language.h.
5274 * language.c: Add frame.h include.
5275 * top.c: Add frame.h include.
5276 * symtab.h (struct obj_section): Declare.
5277 (struct cmd_list_element): Declare.
5278
5279 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * language.c (show_language_command): Find selected frame before
5282 asking for the language of that frame.
5283 (set_language_command): Likewise.
5284 * language.h (get_frame_language): Add frame parameter.
5285 * stack.c (get_frame_language): Add frame parameter, assert
5286 parameter is not NULL, update comment and reindent.
5287 * top.c (check_frame_language_change): Pass the selected frame
5288 into get_frame_language.
5289
5290 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5291
5292 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5293 (pt_btrace_insn_flags): New.
5294 (ftrace_add_pt): Call pt_btrace_insn_flags.
5295 * btrace.h (btrace_insn_flag): New.
5296 (btrace_insn) <flags>: New.
5297 * record-btrace.c (btrace_insn_history): Print insn prefix.
5298 * NEWS: Announce it.
5299
5300 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5301
5302 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5303 * configure: Regenerate.
5304
5305 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5306
5307 * Makefile.in (LIBICONV): Define.
5308 (CLIBS): Add LIBICONV.
5309 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5310 * configure: Regenerate.
5311
5312 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5313 Pedro Alves <palves@redhat.com>
5314
5315 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5316 (arm_set_abi): Likewise.
5317 * ax-general.c (ax_print): Likewise.
5318 * c-exp.y (exp : string_exp): Likewise.
5319 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5320 (do_compile_dwarf_expr_to_c): Likewise.
5321 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5322 Likewise.
5323 * dwarf2expr.c (execute_stack_op): Likewise.
5324 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5325 (disassemble_dwarf_expression): Likewise.
5326 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5327 (read_array_order): Likewise.
5328 (abbrev_table_read_table): Likewise.
5329 (read_attribute_value): Likewise.
5330 (skip_unknown_opcode): Likewise.
5331 (dwarf_decode_macro_bytes): Likewise.
5332 (dwarf_decode_macros): Likewise.
5333 * eval.c (value_f90_subarray): Likewise.
5334 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5335 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5336 * infrun.c (handle_command): Likewise.
5337 * memory-map.c (memory_map_start_memory): Likewise.
5338 * osabi.c (set_osabi): Likewise.
5339 * parse.c (operator_length_standard): Likewise.
5340 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5341 single return point.
5342 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5343 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5344 (gdbpy_lookup_global_symbol): Likewise.
5345 * record-full.c (record_full_restore): Likewise.
5346 * regcache.c (regcache_register_status): Likewise.
5347 (regcache_raw_read): Likewise.
5348 (regcache_cooked_read): Likewise.
5349 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5350 * symtab.c (initialize_ordinary_address_classes): Likewise.
5351 * target-debug.h (target_debug_print_signals): Likewise.
5352 * utils.c (do_restore_current_language): Likewise.
5353
5354 2015-08-06 Clem Dickey <clemd@acm.org>
5355
5356 PR python/17136
5357 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5358
5359 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 * complaints.c (enum complaint_series): Add newlines and remove
5362 out of date comment.
5363 (struct complaints) <series>: Change type to enum
5364 complaint_series and remove out of date comment.
5365 (symfile_complaint_hook): Use equivalent enum value
5366 ISOLATED_MESSAGE instead of 0.
5367
5368 2015-08-06 Pedro Alves <palves@redhat.com>
5369
5370 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5371 returned > 0.
5372
5373 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5374
5375 * common/agent.c (symbol_list) <required>: Remove.
5376
5377 2015-08-06 Pedro Alves <palves@redhat.com>
5378
5379 * target/waitstatus.h (enum target_stop_reason)
5380 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5381
5382 2015-08-05 Pedro Alves <palves@redhat.com>
5383 Joel Brobecker <brobecker@adacore.com>
5384
5385 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5386 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5387 case where BS->STOP is not set.
5388
5389 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5390
5391 * nat/gdb_thread_db.h: Add copyright header.
5392 Protect against multiple inclusion.
5393
5394 2015-08-05 Yao Qi <yao.qi@linaro.org>
5395
5396 * aarch64-linux-nat.c (get_thread_id): Remove.
5397 (debug_reg_change_callback): Call ptid_get_lwp instead of
5398 get_thread_id.
5399 (fetch_gregs_from_thread): Likewise.
5400 (store_gregs_to_thread): Likewise.
5401 (fetch_fpregs_from_thread): Likewise.
5402 (store_fpregs_to_thread): Likewise.
5403 (aarch64_linux_get_debug_reg_capacity): Likewise.
5404 * arm-linux-nat.c (get_thread_id): Remove.
5405 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5406 * xtensa-linux-nat.c (get_thread_id): Remove.
5407 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5408 * arm-linux-nat.c (get_thread_id): Remove.
5409 (GET_THREAD_ID): Remove.
5410 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5411 (store_fpregs, fetch_regs, store_regs): Likewise.
5412 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5413 (fetch_vfp_regs, store_vfp_regs): Likewise.
5414 (arm_linux_read_description): Likewise.
5415 (arm_linux_get_hwbp_cap): Likewise.
5416 * xtensa-linux-nat.c (get_thread_id): Remove.
5417 (GET_THREAD_ID): Remove.
5418 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5419 GET_THREAD_ID.
5420
5421 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5422
5423 * python/py-linetable.c: Fix case of Linetable to LineTable
5424 in docstrings and code comments.
5425 * python/py-symtab.c: Same.
5426
5427 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5430
5431 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5432
5433 PR gdb/18767
5434 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5435 use.
5436
5437 2015-08-04 Pedro Alves <palves@redhat.com>
5438
5439 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5440 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5441 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5442 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5443 (td_thr_validate_ftype, td_thr_get_info_ftype)
5444 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5445 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5446 New typedefs.
5447 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5448 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5449 local macros and use them instead of verbose_dlsym and dlsym
5450 calls.
5451
5452 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5453
5454 * nios2-tdep.h: Include opcode/nios2.h here.
5455 (NIOS2_CDX_OPCODE_SIZE): New.
5456 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5457 * nios2-tdep.c: Don't include opcode/nios2.h here.
5458 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5459 4-byte read fails.
5460 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5461 (nios2_match_addi, nios2_match_orhi): Likewise.
5462 (nios2_match_stw, nios2_match_ldw): Likewise.
5463 (nios2_match_rdctl): Likewise.
5464 (nios2_match_stwm, nios2_match_ldwm): New.
5465 (nios2_match_branch): Add cases for R2 encodings.
5466 (nios2_match_jmpi, nios2_match_calli): Likewise.
5467 (nios2_match_jmpr, nios2_match_callr): Likewise.
5468 (nios2_match_break, nios2_match_trap): Likewise.
5469 (nios2_in_epilogue_p): Add R2 support.
5470 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5471 prologues.
5472 (nios2_breakpoint_from_pc): Handle R2 instructions.
5473 (nios2_get_next_pc): Likewise. Adjust call to
5474 tdep->syscall_next_pc.
5475 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5476 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5477 instruction field macros instead of literal hex values.
5478 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5479 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5480 Use size field from OP instead of assuming all instructions
5481 are the same size.
5482 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5483
5484 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5485
5486 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5487 variable warning with some compilers.
5488
5489 2015-08-03 Yao Qi <yao.qi@linaro.org>
5490
5491 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5492 in comment. Replace "rw" with "type".
5493 (arm_linux_remove_watchpoint): Change type of "rw" to
5494 "enum target_hw_bp_type".
5495
5496 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5497
5498 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5499 lookup_symbol.
5500 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5501 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5502 * mt-tdep.c (mt_skip_prologue): Likewise.
5503 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5504
5505 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5506
5507 * ada-exp.y (write_object_renaming): Replace struct
5508 ada_symbol_info with struct block_symbol. Update field
5509 references accordingly.
5510 (block_lookup, select_possible_type_sym): Likewise.
5511 (find_primitive_type): Likewise. Also update call to
5512 ada_lookup_symbol to extract the symbol itself.
5513 (write_var_or_type, write_name_assoc): Likewise.
5514 * ada-lang.h (struct ada_symbol_info): Remove.
5515 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5516 struct block_symbol.
5517 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5518 (ada_lookup_symbol): Return struct block_symbol instead of a
5519 mere symbol.
5520 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5521 with struct block_symbol.
5522 (resolve_subexp, ada_resolve_function, sort_choices,
5523 user_select_syms, is_nonfunction, add_defn_to_vec,
5524 num_defns_collected, defns_collected,
5525 symbols_are_identical_enums, remove_extra_symbols,
5526 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5527 ada_lookup_symbol_list, ada_iterate_over_symbols,
5528 ada_lookup_encoded_symbol, get_var_value): Likewise.
5529 (ada_lookup_symbol): Return a block_symbol instead of a mere
5530 symbol. Replace struct ada_symbol_info with struct
5531 block_symbol.
5532 (ada_lookup_symbol_nonlocal): Likewise.
5533 (standard_lookup): Make block passing explicit through
5534 lookup_symbol_in_language.
5535 * ada-tasks.c (get_tcb_types_info): Update the calls to
5536 lookup_symbol_in_language to extract the mere symbol out of the
5537 returned value.
5538 (ada_tasks_inferior_data_sniffer): Likewise.
5539 * ax-gdb.c (gen_static_field): Likewise for the call to
5540 lookup_symbol.
5541 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5542 lookup functions.
5543 (gen_expr): Likewise.
5544 * c-exp.y: Likewise. Remove uses of block_found.
5545 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5546 (classify_name): Likewise. Rename the "sym" local variable to
5547 "bsym".
5548 * c-valprint.c (print_unpacked_pointer): Likewise.
5549 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5550 "sym" parameter from struct symbol * to struct block_symbol.
5551 Use it to remove uses of block_found. Deal with struct
5552 block_symbol from lookup functions.
5553 (gcc_convert_symbol): Likewise. Update the call to
5554 convert_symbol_sym.
5555 * compile/compile-object-load.c (compile_object_load): Deal with
5556 struct block_symbol from lookup functions.
5557 * cp-namespace.c (cp_lookup_nested_symbol_1,
5558 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5559 cp_search_static_and_baseclasses,
5560 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5561 cp_lookup_symbol_imports_or_template,
5562 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5563 lookup_namespace_scope, cp_lookup_nonlocal,
5564 find_symbol_in_baseclass): Return struct block_symbol instead of
5565 mere symbols and deal with struct block_symbol from lookup
5566 functions.
5567 * cp-support.c (inspect_type, replace_typedefs,
5568 cp_lookup_rtti_type): Deal with struct block_symbol from
5569 lookup functions.
5570 * cp-support.h (cp_lookup_symbol_nonlocal,
5571 cp_lookup_symbol_from_namespace,
5572 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5573 Return struct block_symbol instead of mere symbols.
5574 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5575 push_module_name):
5576 Deal with struct block_symbol from lookup functions. Remove
5577 uses of block_found.
5578 * eval.c (evaluate_subexp_standard): Update call to
5579 cp_lookup_symbol_namespace.
5580 * f-exp.y: Deal with struct block_symbol from lookup functions.
5581 Remove uses of block_found.
5582 (yylex): Likewise.
5583 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5584 lookup_enum, lookup_template_type, check_typedef): Deal with
5585 struct block_symbol from lookup functions.
5586 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5587 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5588 (gdbscm_lookup_global_symbol): Likewise.
5589 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5590 * go-exp.y: Likewise. Remove uses of block_found.
5591 (package_name_p, classify_packaged_name, classify_name):
5592 Likewise.
5593 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5594 * jv-exp.y (push_variable): Likewise.
5595 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5596 * language.c (language_bool_type): Likewise.
5597 * language.h (struct language_defn): Update
5598 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5599 than a mere symbol.
5600 * linespec.c (find_label_symbols): Deal with struct block_symbol
5601 from lookup functions.
5602 * m2-exp.y: Likewise. Remove uses of block_found.
5603 (yylex): Likewise.
5604 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5605 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5606 * p-exp.y: Likewise. Remove uses of block_found.
5607 (yylex): Likewise.
5608 * p-valprint.c (pascal_val_print): Likewise.
5609 * parse.c (write_dollar_variable): Likewise. Remove uses of
5610 block_found.
5611 * parser-defs.h (struct symtoken): Turn the SYM field into a
5612 struct block_symbol.
5613 * printcmd.c (address_info): Deal with struct block_symbol from
5614 lookup functions.
5615 * python/py-frame.c (frapy_read_var): Likewise.
5616 * python/py-symbol.c (gdbpy_lookup_symbol,
5617 gdbpy_lookup_global_symbol): Likewise.
5618 * skip.c (skip_function_command): Likewise.
5619 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5620 block_symbol instead of a mere symbol.
5621 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5622 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5623 * solib.c (solib_global_lookup): Likewise.
5624 * solist.h (solib_global_lookup): Likewise.
5625 (struct target_so_ops): Update lookup_lib_global_symbol to
5626 return a struct block_symbol rather than a mere symbol.
5627 * source.c (select_source_symtab): Deal with struct block_symbol
5628 from lookup functions.
5629 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5630 Likewise.
5631 * symfile.c (set_initial_language): Likewise.
5632 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5633 block_symbol.
5634 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5635 (struct symbol_cache_slot): Turn the FOUND field into a struct
5636 block_symbol.
5637 (block_found): Remove.
5638 (eq_symbol_entry): Update to deal with struct block_symbol in
5639 cache slots.
5640 (symbol_cache_lookup): Return a struct block_symbol rather than
5641 a mere symbol.
5642 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5643 appropriately the cache slots. Update callers.
5644 (symbol_cache_dump): Update cache slots handling to the type
5645 change.
5646 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5647 lookup_symbol_aux, lookup_local_symbol,
5648 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5649 lookup_symbol_in_objfile_symtabs,
5650 lookup_symbol_in_objfile_from_linkage_name,
5651 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5652 lookup_symbol_in_static_block, lookup_static_symbol,
5653 lookup_global_symbol):
5654 Return a struct block_symbol rather than a mere symbol. Deal
5655 with struct block_symbol from other lookup functions. Remove
5656 uses of block_found.
5657 (lookup_symbol_in_block): Remove uses of block_found.
5658 (struct global_sym_lookup_data): Turn the RESULT field into a
5659 struct block_symbol.
5660 (lookup_symbol_global_iterator_cb): Update references to the
5661 RESULT field.
5662 (search_symbols): Deal with struct block_symbol from lookup
5663 functions.
5664 * symtab.h (struct block_symbol): New structure.
5665 (block_found): Remove.
5666 (lookup_symbol_in_language, lookup_symbol,
5667 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5668 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5669 lookup_global_symbol_from_objfile): Return a struct block_symbol
5670 rather than just a mere symbol. Update comments to remove
5671 mentions of block_found.
5672 * valops.c (find_function_in_inferior,
5673 value_struct_elt_for_reference, value_maybe_namespace_elt,
5674 value_of_this): Deal with struct block_symbol from lookup
5675 functions.
5676 * value.c (value_static_field, value_fn_field): Likewise.
5677
5678 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5681 instead of integer.
5682
5683 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5684 Pedro Alves <palves@redhat.com>
5685
5686 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5687 type or value instead of integer.
5688 (aarch64_linux_insert_watchpoint): Likewise.
5689 (aarch64_linux_remove_watchpoint): Likewise.
5690 * ada-lang.c (ada_op_print_tab): Likewise.
5691 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5692 (amd64_linux_syscall_record_common): Likewise.
5693 * arch-utils.c (target_byte_order_user): Likewise.
5694 (default_byte_order): Likewise.
5695 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5696 (arm_linux_get_hwbp_type): Likewise.
5697 (arm_linux_hw_watchpoint_initialize): Likewise.
5698 (arm_linux_insert_watchpoint): Likewise.
5699 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5700 (arm_linux_syscall_record): Likewise.
5701 * breakpoint.c (update_watchpoint): Likewise.
5702 (breakpoint_here_p): Likewise.
5703 (bpstat_print): Likewise.
5704 (enable_breakpoint_disp): Likewise.
5705 * c-lang.c (c_op_print_tab): Likewise.
5706 * cli/cli-decode.c (add_info_alias): Likewise.
5707 * d-lang.c (d_op_print_tab): Likewise.
5708 * eval.c (evaluate_subexp_standard): Likewise.
5709 * f-exp.y (dot_ops): Likewise.
5710 (f77_keywords): Likewise.
5711 * f-lang.c (f_op_print_tab): Likewise.
5712 * go-lang.c (go_op_print_tab): Likewise.
5713 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5714 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5715 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5716 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5717 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5718 (struct scm_from_stringn_data): Likewise.
5719 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5720 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5721 (ia64_linux_remove_watchpoint): Likewise.
5722 (ia64_linux_can_use_hw_breakpoint): Likewise.
5723 * infrun.c (print_stop_event): Likewise.
5724 * jv-lang.c (java_op_print_tab): Likewise.
5725 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5726 * linux-nat.h (struct lwp_info): Likewise.
5727 * linux-thread-db.c (enable_thread_event): Likewise.
5728 * m2-lang.c (m2_op_print_tab): Likewise.
5729 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5730 (mi_cmd_stack_list_variables): Likewise.
5731 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5732 * mi/mi-out.c (mi_table_begin): Likewise.
5733 (mi_table_header): Likewise.
5734 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5735 (mips_linux_insert_watchpoint): Likewise.
5736 (mips_linux_remove_watchpoint): Likewise.
5737 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5738 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5739 (mips_linux_watch_type_to_irw): Likewise.
5740 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5741 (procfs_insert_hw_watchpoint): Likewise.
5742 (procfs_remove_hw_watchpoint): Likewise.
5743 (procfs_hw_watchpoint): Likewise.
5744 (procfs_can_use_hw_breakpoint): Likewise.
5745 (procfs_remove_hw_watchpoint): Likewise.
5746 (procfs_insert_hw_watchpoint): Likewise.
5747 * p-lang.c (pascal_op_print_tab): Likewise.
5748 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5749 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5750 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5751 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5752 (procfs_insert_watchpoint): Likewise.
5753 (procfs_remove_watchpoint): Likewise.
5754 * psymtab.c (recursively_search_psymtabs): Likewise.
5755 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5756 (m32r_insert_watchpoint): Likewise.
5757 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5758 (mips_insert_watchpoint): Likewise.
5759 (mips_remove_watchpoint): Likewise.
5760 * remote.c (watchpoint_to_Z_packet): Likewise.
5761 (remote_insert_watchpoint): Likewise.
5762 (remote_remove_watchpoint): Likewise.
5763 (remote_check_watch_resources): Likewise.
5764 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5765 (s390_remove_watchpoint): Likewise.
5766 (s390_can_use_hw_breakpoint): Likewise.
5767 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5768 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5769 * target.h (struct target_ops): Likewise.
5770 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5771 * ui-out.c (struct ui_out_hdr): Likewise.
5772 (append_header_to_list): Likewise.
5773 (get_next_header): Likewise.
5774 (verify_field): Likewise.
5775 (ui_out_begin): Likewise.
5776 (ui_out_field_int): Likewise.
5777 (ui_out_field_fmt_int): Likewise.
5778 (ui_out_field_skip): Likewise.
5779 (ui_out_field_string): Likewise.
5780 (ui_out_field_fmt): Likewise.
5781 * varobj.c (new_variable): Likewise.
5782 * x86-nat.c (x86_insert_watchpoint): Likewise.
5783 (x86_remove_watchpoint): Likewise.
5784 (x86_can_use_hw_breakpoint): Likewise.
5785 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5786 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5787 previously anonymous enumeration type..
5788 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5789 value.
5790 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5791 (target_debug_print_enum_bptype): New.
5792 * target-delegates.c: Regenerate.
5793
5794 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5795
5796 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5797 already says and disallow non-stack memory writes in the prologue.
5798
5799 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5800
5801 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5802 reflect how current GCC emits stack overflow checks. Match
5803 both trap and break instructions for backward compatbility.
5804 Disallow other trap and break instructions in the prologue.
5805
5806 2015-07-30 Pedro Alves <palves@redhat.com>
5807
5808 PR threads/18600
5809 * linux-nat.c (wait_lwp): Report to the core when thread group
5810 leader exits.
5811
5812 2015-07-30 Pedro Alves <palves@redhat.com>
5813 Simon Marchi <simon.marchi@ericsson.com>
5814
5815 PR threads/18600
5816 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5817 mark the new thread as resumed. Remove STOPPING parameter.
5818 (wait_lwp): Adjust call to linux_handle_extended_wait.
5819 (linux_nat_filter_event): Adjust call to
5820 linux_handle_extended_wait.
5821 (resume_stopped_resumed_lwps): Add debug output.
5822
5823 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5824
5825 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5826 isize argument.
5827 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5828 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5829 gdbarch_fast_tracepoint_valid_at.
5830 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5831 * gdbarch.h: Regenerate.
5832 * gdbarch.c: Regenerate.
5833 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5834 argument. Do not set it.
5835 * remote.c (remote_download_tracepoint): Adjust call to
5836 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5837 the instruction length.
5838
5839 2015-07-30 Yao Qi <yao.qi@linaro.org>
5840
5841 * arm-tdep.h (enum gdb_regnum): Move it to ...
5842 * arch/arm.h: ... here. New file.
5843 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5844
5845 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5846
5847 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5848 Change its type to int *.
5849 (decode_br): Rename link argument to is_blr. Change its type to
5850 int *.
5851 (decode_cb): Rename op argument to is_cbnz. Change its type to
5852 int *.
5853 (decode_tb): Rename op argument to is_tbnz. Change its type to
5854 int *. Set is_tbnz to either 1 or 0.
5855 (aarch64_analyze_prologue): Change type of is_link to int. Add
5856 new variables is_cbnz and is_tbnz. Adjust call to
5857 aarch64_decode_cb and aarch64_decode_tb.
5858
5859 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5860
5861 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5862 parameter.
5863 (mips_linux_new_thread): Likewise.
5864 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5865
5866 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5867
5868 * top.c: Include "tui/tui.h".
5869 (undo_terminal_modifications_before_exit): New static function.
5870 (quit_force): Use it.
5871
5872 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5873
5874 * target.c (terminal_state): Initialize to terminal_is_ours.
5875
5876 2015-07-29 Yao Qi <yao.qi@linaro.org>
5877
5878 PR record/18691
5879 * dcache.c (dcache_read_memory_partial): Call
5880 raw_memory_xfer_partial.
5881 * target.c (raw_memory_xfer_partial): Make it non-static.
5882 * target.h (raw_memory_xfer_partial): Declare.
5883
5884 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5885
5886 * c-valprint.c (c_val_print_array): Consider addressable memory
5887 unit size.
5888 (c_val_print_ptr): Likewise.
5889 (c_val_print_int): Likewise.
5890 * findvar.c (read_frame_register_value): Likewise.
5891 * valarith.c (find_size_for_pointer_math): Likewise.
5892 (value_ptrdiff): Likewise.
5893 (value_subscripted_rvalue): Likewise.
5894 * valops.c (read_value_memory): Likewise (and rename variables).
5895 (value_assign): Likewise.
5896 (value_repeat): Likewise.
5897 (value_array): Likewise.
5898 (value_slice): Likewise.
5899 * valprint.c (generic_val_print_ptr): Likewise.
5900 (generic_val_print_enum): Likewise.
5901 (generic_val_print_bool): Likewise.
5902 (generic_val_print_int): Likewise.
5903 (generic_val_print_char): Likewise.
5904 (generic_val_print_float): Likewise.
5905 (generic_val_print_decfloat): Likewise.
5906 (generic_val_print_complex): Likewise.
5907 (val_print_scalar_formatted): Likewise.
5908 (val_print_array_elements): Likewise.
5909 * value.c (set_value_parent): Likewise.
5910 (value_contents_copy_raw): Likewise.
5911 (set_internalvar_component): Likewise.
5912 (value_primitive_field): Likewise.
5913 (value_fetch_lazy): Likewise.
5914 * value.h (read_value_memory): Update comment.
5915
5916 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 * value.c (get_value_arch): New function.
5919 * value.h (get_value_arch): New declaration.
5920
5921 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5922
5923 * value.c (struct value): Update comments.
5924
5925 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5926
5927 * gdbtypes.c (type_length_units): New function.
5928 * gdbtypes.h (type_length_units): New declaration.
5929 (struct type) <length>: Update comment.
5930
5931 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5932
5933 * valprint.c (generic_val_print): Factor out complex
5934 printing code to ...
5935 (generic_val_print_complex): ... this new function.
5936
5937 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5938
5939 * valprint.c (generic_val_print): Factor out decfloat
5940 printing code to ...
5941 (generic_val_print_decfloat): ... this new function.
5942
5943 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * valprint.c (generic_val_print): Factor out float
5946 printing code to ...
5947 (generic_val_print_float): ... this new function.
5948
5949 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5950
5951 * valprint.c (generic_val_print): Factor out char
5952 printing code to ...
5953 (generic_val_print_char): ... this new function.
5954
5955 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5956
5957 * valprint.c (generic_val_print): Factor out integer
5958 printing code to ...
5959 (generic_val_print_int): ... this new function.
5960
5961 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * valprint.c (generic_val_print): Factor out bool
5964 printing code to ...
5965 (generic_val_print_bool): ... this new function.
5966
5967 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5968
5969 * valprint.c (generic_val_print): Factor out function/method
5970 printing code to ...
5971 (generic_val_print_func): ... this new function.
5972
5973 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5974
5975 * valprint.c (generic_val_print): Factor out flags
5976 printing code to ...
5977 (generic_val_print_flags): ... this new function.
5978
5979 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5980
5981 * valprint.c (generic_val_print): Factor out enum
5982 printing code to ...
5983 (generic_val_print_enum): ... this new function.
5984
5985 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5986
5987 * valprint.c (generic_val_print): Factor out reference
5988 printing code to ...
5989 (generic_val_print_ref): ... this new function.
5990
5991 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5992
5993 * valprint.c (generic_val_print): Factor out memberptr
5994 printing code to ...
5995 (generic_val_print_memberptr): ... this new function.
5996
5997 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * valprint.c (generic_val_print): Factor out pointer
6000 printing code to ...
6001 (generic_val_print_ptr): ... this new function.
6002
6003 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6004
6005 * valprint.c (generic_val_print): Factor out array
6006 printing code to ...
6007 (generic_val_print_array): ... this new function.
6008
6009 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6010
6011 * valprint.c (generic_val_print): Factor out
6012 print_unpacked_pointer code to ...
6013 (print_unpacked_pointer): ... this new function.
6014
6015 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6016
6017 * event-top.c (handle_sigterm): Don't inspect
6018 target_can_async_p. Always set the quit flag and always mark
6019 the async signal handler.
6020
6021 2015-07-27 Yao Qi <yao.qi@linaro.org>
6022
6023 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6024
6025 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6026
6027 * remote.c (read_ptid): Return null_ptid when no thread id
6028 is found.
6029 (remote_current_thread): Add log warning for malformed
6030 qC reply.
6031 (remote_start_remote): Add log warning when current thread
6032 not found.
6033
6034 2015-07-24 Pedro Alves <palves@redhat.com>
6035
6036 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6037 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6038 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6039
6040 2015-07-24 Pedro Alves <palves@redhat.com>
6041
6042 PR gdb/18717
6043 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6044 is resumed, and extend the debug log.
6045
6046 2015-07-24 Pedro Alves <palves@redhat.com>
6047
6048 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6049
6050 2015-07-24 Pedro Alves <palves@redhat.com>
6051
6052 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6053 sys/ptrace.h.
6054 * alpha-linux-nat.c: Likewise.
6055 * amd64-linux-nat.c: Likewise.
6056 * arm-linux-nat.c: Likewise.
6057 * hppa-linux-nat.c: Likewise.
6058 * i386-linux-nat.c: Likewise.
6059 * ia64-linux-nat.c: Likewise.
6060 * linux-fork.c: Likewise.
6061 * linux-nat.c: Likewise.
6062 * m32r-linux-nat.c: Likewise.
6063 * m68klinux-nat.c: Likewise.
6064 * mips-linux-nat.c: Likewise.
6065 * nat/linux-btrace.c: Likewise.
6066 * nat/linux-ptrace.c: Likewise.
6067 * nat/linux-ptrace.h
6068 * nat/mips-linux-watch.c: Likewise.
6069 * nat/x86-linux-dregs.c: Likewise.
6070 * ppc-linux-nat.c: Likewise.
6071 * s390-linux-nat.c: Likewise.
6072 * spu-linux-nat.c: Likewise.
6073 * tilegx-linux-nat.c: Likewise.
6074 * x86-linux-nat.c: Likewise.
6075 * xtensa-linux-nat.c: Likewise.
6076
6077 2015-07-24 Pedro Alves <palves@redhat.com>
6078
6079 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6080 __ptrace_request as first parameter type instead of int.
6081 (PTRACE_TYPE_ARG1): Define.
6082 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6083 that casts first argument to PTRACE_TYPE_ARG1.
6084 * config.in: Regenerate.
6085 * configure: Regenerate.
6086
6087 2015-07-24 Pedro Alves <palves@redhat.com>
6088
6089 * gdb_ptrace.h: Move ...
6090 * nat/gdb_ptrace.h: ... here.
6091 * inf-ptrace.c: Adjust.
6092
6093 2015-07-24 Pedro Alves <palves@redhat.com>
6094
6095 * acinclude.m4: Include ptrace.m4.
6096 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6097 * ptrace.m4: ... to this new file.
6098
6099 2015-07-23 Doug Evans <dje@google.com>
6100
6101 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6102 (load_cu): Handle dummy CUs.
6103 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6104 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6105
6106 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6107
6108 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6109 documentation to say that it returns a list rather than
6110 a FrozenSet.
6111 (linetable_object_methods): Update the docstring of the
6112 "source_line" entry.
6113
6114 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6115
6116 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6117 type to the recursive call instead of the original (maybe
6118 TYPE_CODE_TYPEDEF) type.
6119
6120 2015-07-23 Yao Qi <yao.qi@linaro.org>
6121
6122 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6123 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6124 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6125
6126 2015-07-21 Yao Qi <yao.qi@linaro.org>
6127
6128 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6129 Move it to nat/aarch64-linux-hw-point.c.
6130 (aarch64_linux_child_post_startup_inferior): Update.
6131 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6132 New function.
6133 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6134 Declare it.
6135
6136 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6137
6138 * common/btrace-common.c (btrace_data_append): Change case label.
6139
6140 2015-07-20 Yao Qi <yao.qi@linaro.org>
6141
6142 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6143 Re-indent the code.
6144 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6145 "unsigned long long".
6146
6147 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6148
6149 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6150 to be set for SEC_ALLOC sections too.
6151
6152 2015-07-17 Yao Qi <yao.qi@linaro.org>
6153
6154 * Makefile.in (HFILES_NO_SRCDIR): Add
6155 nat/aarch64-linux-hw-point.h.
6156 (aarch64-linux-hw-point.o): New rule.
6157 * nat/aarch64-linux-hw-point.h: New file.
6158 * nat/aarch64-linux-hw-point.c: New file.
6159 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6160 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6161 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6162 (AARCH64_HWP_ALIGNMENT): Likewise.
6163 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6164 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6165 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6166 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6167 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6168 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6169 (struct aarch64_debug_reg_state): Likewise.
6170 (struct arch_lwp_info): Likewise.
6171 (aarch64_linux_set_debug_regs): Likewise.
6172 (aarch64_notify_debug_reg_change): Remove static.
6173 (aarch64_align_watchpoint): Likewise.
6174 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6175 (aarch64_watchpoint_length): Likewise.
6176 (aarch64_point_encode_ctrl_reg): Likewise
6177 (aarch64_point_is_aligned): Likewise.
6178 (aarch64_dr_state_insert_one_point): Likewise.
6179 (aarch64_dr_state_remove_one_point): Likewise.
6180 (aarch64_handle_breakpoint): Likewise.
6181 (aarch64_handle_aligned_watchpoint): Likewise.
6182 (aarch64_handle_unaligned_watchpoint): Likewise.
6183 (aarch64_handle_watchpoint): Likewise.
6184 * config/aarch64/linux.mh (NAT_FILE): Add
6185 aarch64-linux-hw-point.o.
6186
6187 2015-07-17 Yao Qi <yao.qi@linaro.org>
6188
6189 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6190 state and don't call aarch64_get_debug_reg_state. All callers
6191 update.
6192 (aarch64_linux_insert_hw_breakpoint): Call
6193 aarch64_get_debug_reg_state earlier.
6194 (aarch64_linux_remove_hw_breakpoint): Likewise.
6195 (aarch64_handle_aligned_watchpoint): Add argument state and
6196 don't call aarch64_get_debug_reg_state. All callers update.
6197 (aarch64_handle_unaligned_watchpoint): Likewise.
6198 (aarch64_handle_watchpoint): Add argument state.
6199 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6200 earlier.
6201 (aarch64_linux_remove_watchpoint): Likewise.
6202
6203 2015-07-17 Yao Qi <yao.qi@linaro.org>
6204
6205 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6206 debug_printf.
6207 (aarch64_handle_unaligned_watchpoint): Likewise.
6208
6209 2015-07-17 Yao Qi <yao.qi@linaro.org>
6210
6211 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6212 argument type's type to 'enum target_hw_bp_type'.
6213 (aarch64_dr_state_remove_one_point): Likewise.
6214 (aarch64_handle_breakpoint): Likewise.
6215 (aarch64_linux_insert_hw_breakpoint): Likewise.
6216 (aarch64_linux_remove_hw_breakpoint): Likewise.
6217 (aarch64_handle_aligned_watchpoint): Likewise.
6218
6219 2015-07-17 Yao Qi <yao.qi@linaro.org>
6220
6221 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6222 ptid_get_pid instead of get_thread_id.
6223
6224 2015-07-17 Yao Qi <yao.qi@linaro.org>
6225
6226 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6227 (add_current_inferior_and_thread): Don't initialise ptid.
6228
6229 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6230
6231 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6232 unavailable if invalid.
6233
6234 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6235
6236 Revert the previous 6 commits:
6237 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6238 Move gdb_regex* to common/
6239 Prepare linux_find_memory_regions_full & co. for move
6240 Move linux_find_memory_regions_full & co.
6241 gdbserver build-id attribute generator
6242 Validate symbol file using build-id
6243
6244 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6245 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 Validate symbol file using build-id.
6248 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6249 and 'show validate-build-id'. Add build-id attribute.
6250 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6251 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6252 * solib-frv.c (_initialize_frv_solib): Ditto.
6253 * solib-spu.c (set_spu_solib_ops): Ditto.
6254 * solib-svr4.c: Include rsp-low.h.
6255 (NOTE_GNU_BUILD_ID_NAME): New define.
6256 (svr4_validate): New function.
6257 (svr4_copy_library_list): Duplicate field build_id.
6258 (library_list_start_library): Parse 'build-id' attribute.
6259 (svr4_library_attributes): Add 'build-id' attribute.
6260 (_initialize_svr4_solib): Assign validate value.
6261 * solib-target.c (solib.h): Include.
6262 (_initialize_solib_target): Assign validate value.
6263 * solib.c (validate_build_id, show_validate_build_id): New.
6264 (solib_map_sections): Use ops->validate.
6265 (clear_so): Free build_id.
6266 (default_solib_validate): New function.
6267 (_initialize_solib): Add "validate-build-id".
6268 * solib.h (default_solib_validate): New declaration.
6269 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6270 (target_so_ops): New field 'validate'.
6271
6272 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6273 Jan Kratochvil <jan.kratochvil@redhat.com>
6274
6275 gdbserver build-id attribute generator.
6276 * features/library-list-svr4.dtd (library-list-svr4): New
6277 'build-id' attribute.
6278
6279 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6280 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 Move linux_find_memory_regions_full & co.
6283 * linux-tdep.c (nat/linux-maps.h): Include.
6284 (gdb_regex.h): Remove the include.
6285 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6286 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6287 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6288 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6289 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6290 and target/target.h.
6291 (struct smaps_vmflags, read_mapping, decode_vmflags)
6292 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6293 (linux_find_memory_regions_full): Move from linux-tdep.c.
6294 * nat/linux-maps.h (read_mapping): New declaration.
6295 (linux_find_memory_region_ftype, enum filterflags): Moved from
6296 linux-tdep.c.
6297 (linux_find_memory_regions_full): New declaration.
6298 * target.c (target/target-utils.h): Include.
6299 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6300 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6301 definitions to target/target-utils.c.
6302 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6303 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6304 from target.c.
6305 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6306 (read_alloc): New declaration.
6307 (read_stralloc_func_ftype): New typedef.
6308 (read_stralloc): New declaration.
6309 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6310
6311 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6312 Jan Kratochvil <jan.kratochvil@redhat.com>
6313
6314 Prepare linux_find_memory_regions_full & co. for move.
6315 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6316 (linux_find_memory_regions_full): Change signature and prepare
6317 for moving to linux-maps.
6318 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6319 (linux_find_memory_regions_thunk): New.
6320 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6321 (linux_find_memory_regions_gdb): New.
6322 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6323 (linux_make_mappings_corefile_notes): Use
6324 linux_find_memory_regions_gdb.
6325 * target.c (read_alloc_pread_ftype): New typedef.
6326 (target_fileio_read_alloc_1_pread): New function.
6327 (read_alloc): Refactor from target_fileio_read_alloc_1.
6328 (read_stralloc_func_ftype): New typedef.
6329 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6330 (read_stralloc): Refactored from target_fileio_read_stralloc.
6331 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6332
6333 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6336 common/gdb_regex.h.
6337 (COMMON_OBS): Add gdb_regex.o.
6338 (gdb_regex.o): New.
6339 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6340 --without-included-regex and USE_INCLUDED_REGEX.
6341 * common/gdb_regex.c: New file from utils.c functions.
6342 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6343 file wrapping define name.
6344 * configure: Rebuilt.
6345 * configure.ac (gdb_use_included_regex, --without-included-regex)
6346 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6347 * gdb_regex.h: Move it to common/gdb_regex.h.
6348 * utils.c: Remove include gdb_regex.h.
6349 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6350 (compile_rx_or_error): Move them to common/gdb_regex.c.
6351
6352 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6353 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6356 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6357 common/target-utils.h.
6358 (COMMON_OBS): Add target-utils.o.
6359 (linux-maps.o, target-utils.o): New.
6360 * target/target-utils.c: New file.
6361 * target/target-utils.h: New file.
6362 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6363 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6364 * nat/linux-maps.c: New file.
6365 * nat/linux-maps.h: New file.
6366
6367 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6368 Pedro Alves <palves@redhat.com>
6369
6370 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6371 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6372 (perf_event_read_bts): Change the type of SIZE and READ.
6373 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6374 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6375 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6376 mmap page.
6377 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6378 buffer size to UINT_MAX.
6379 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6380 DATA_TAIL.
6381 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6382 <last_head>: Change type.
6383 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6384 * common/btrace-common.c (btrace_data_append): Change the type of
6385 SIZE.
6386 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6387 check.
6388
6389 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6392 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6393 with check_typedef.
6394 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6395 (ada_array_length): Likewise.
6396 (find_parallel_type_by_descriptive_type): Likewise.
6397 (ada_check_typedef): Likewise.
6398 * arm-tdep.c (arm_return_in_memory): Likewise.
6399 * ax-gdb.c (gen_trace_static_fields): Likewise.
6400 (gen_struct_ref_recursive): Likewise.
6401 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6402 (variable: block COLONCOLON name): Likewise.
6403 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6404 * c-lang.c (classify_type): Likewise.
6405 * c-typeprint.c (c_print_type): Likewise.
6406 (c_print_typedef): Likewise.
6407 (c_type_print_base): Likewise.
6408 * c-valprint.c (c_val_print): Likewise.
6409 * compile/compile-c-types.c (convert_type): Likewise.
6410 * compile/compile-object-load.c (get_out_value_type): Likewise.
6411 * completer.c (add_struct_fields): Likewise.
6412 (expression_completer): Likewise.
6413 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6414 (cp_lookup_nested_symbol_1): Likewise.
6415 (cp_lookup_nested_symbol): Likewise.
6416 * cp-valprint.c (cp_print_value_fields): Likewise.
6417 (cp_print_static_field): Likewise.
6418 * d-valprint.c (d_val_print): Likewise.
6419 * eval.c (evaluate_subexp_standard): Likewise.
6420 (evaluate_subexp_for_sizeof): Likewise.
6421 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6422 * f-typeprint.c (f_type_print_base): Likewise.
6423 * f-valprint.c (f_val_print): Likewise.
6424 * gdbtypes.c (get_discrete_bounds): Likewise.
6425 (create_array_type_with_stride): Likewise.
6426 (type_name_no_tag_or_error): Likewise.
6427 (lookup_struct_elt_type): Likewise.
6428 (get_unsigned_type_max): Likewise.
6429 (internal_type_vptr_fieldno): Likewise.
6430 (set_type_vptr_fieldno): Likewise.
6431 (internal_type_vptr_basetype): Likewise.
6432 (set_type_vptr_basetype): Likewise.
6433 (get_vptr_fieldno): Likewise.
6434 (is_integral_type): Likewise.
6435 (is_scalar_type): Likewise.
6436 (is_scalar_type_recursive): Likewise.
6437 (distance_to_ancestor): Likewise.
6438 (is_unique_ancestor_worker): Likewise.
6439 (check_types_equal): Likewise.
6440 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6441
6442 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6443
6444 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6445 also test for language_d.
6446 (dwarf2_compute_name): Likewise.
6447 (read_func_scope): Likewise.
6448 (read_structure_type): Likewise.
6449 (new_symbol_full): Likewise.
6450 (determine_prefix): Likewise.
6451 (read_import_statement): Use dot as the separator for language_d.
6452 (typename_concat): Likewise, but don't prefix the D main function.
6453
6454 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6455
6456 * nat/linux-namespaces.c (setns): Rename from this ...
6457 (do_setns): ... to this. Support calling setns if it exists.
6458 (mnsh_handle_setns): Call do_setns.
6459
6460 2015-07-13 Yao Qi <yao.qi@linaro.org>
6461
6462 * exec.c (exec_file_attach): Add period at the end of error
6463 message.
6464
6465 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6466
6467 * tui/tui-win.c (window_name_completer): New function.
6468 (focus_completer): Call window_name_completer. All old content
6469 moved into window_name_completer.
6470 (winheight_completer): New function.
6471 (_initialize_tui_win): Rename variable. Add completer to
6472 winheight command. Update doc string on winheight.
6473
6474 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6475
6476 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6477 all nios2 mach variants.
6478
6479 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6480
6481 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6482 of target_read_memory.
6483
6484 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6485
6486 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6487 string copy.
6488 (parse_scrolling_args): Likewise.
6489
6490 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6493 names in this function.
6494
6495 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6496
6497 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6498 (CMD_NAME): Likewise.
6499 (DATA_NAME): Likewise.
6500 (DISASSEM_NAME): Likewise.
6501 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6502 (tui_set_win_height): Likewise.
6503 (parse_scrolling_args): Likewise.
6504
6505 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6506
6507 * record-btrace.c (record_btrace_goto_begin)
6508 (record_btrace_goto_end, record_btrace_goto): Move call to
6509 print_stack_frame ...
6510 (record_btrace_set_replay): ... here. Set stop_pc.
6511 * record-full.c (record_full_goto_entry): Set stop_pc.
6512
6513 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6514
6515 * NEWS: Mention support for tracepoints on aarch64-linux.
6516
6517 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6518
6519 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6520 function. Return 1.
6521 (the_low_target): Install it.
6522
6523 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6524
6525 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6526 * gdb.trace/collection.exp: Likewise.
6527 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6528 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6529 * gdb.trace/report.exp: Likewise.
6530 * gdb.trace/trace-break.exp: Likewise.
6531 * gdb.trace/unavailable.exp: Likewise.
6532 * gdb.trace/while-dyn.exp: Likewise.
6533
6534 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6535
6536 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6537 (aarch64_gen_return_address): New function.
6538 (aarch64_gdbarch_init): Hook it.
6539
6540 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6541
6542 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6543 swallow NOT_AVAILABLE_ERROR.
6544 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6545 available_p is not set.
6546 (aarch64_stub_frame_unwind_stop_reason): New function.
6547 (aarch64_stub_unwind): Install it.
6548
6549 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6550
6551 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6552 field.
6553 (aarch64_make_prologue_cache_1): New function, factored out from
6554 aarch64_make_prologue_cache. Do not allocate cache. Set
6555 available_p.
6556 (aarch64_make_prologue_cache): Reimplement wrapping
6557 aarch64_make_prologue_cache_1, and swallowing
6558 NOT_AVAILABLE_ERROR.
6559 (aarch64_prologue_frame_unwind_stop_reason): New function.
6560 Return UNWIND_UNAVAILABLE if available_p is not set.
6561 (aarch64_prologue_unwind): Install it.
6562 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6563 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6564 frame_id_build_unavailable_stack if available_p is not set.
6565
6566 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6567
6568 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6569 fields.
6570 (aarch64_scan_prologue): Set prev_pc.
6571 (aarch64_make_prologue_cache): Set func.
6572 (aarch64_make_stub_cache): Set prev_pc.
6573 (aarch64_prologue_this_id): Remove local variables id, pc and
6574 func. Read prev_pc and func from cache.
6575 (aarch64_stub_this_id): Read prev_pc from cache.
6576
6577 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6578
6579 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6580 argument this_cache. Remove unused local variables reg and
6581 unwound_fp. Return early if this_cache is already set. Set
6582 this_cache.
6583 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6584
6585 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6586
6587 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6588 New argument this_cache. Return early if this_cache is already
6589 set. Set this_cache.
6590 (aarch64_prologue_this_id): Update call to
6591 aarch64_make_prologue_cache.
6592 (aarch64_prologue_prev_register): Likewise.
6593 (aarch64_normal_frame_base): Likewise.
6594
6595 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * c-valprint.c (c_val_print): Factor out memberptr printing code
6598 from c_val_print to ...
6599 (c_val_print_memberptr): ... this new function.
6600
6601 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * c-valprint.c (c_val_print): Factor out int printing code to ...
6604 (c_val_print_int): ... this new function.
6605
6606 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6607
6608 * c-valprint.c (c_val_print): Factor out struct and union
6609 printing code to ...
6610 (c_val_print_struct): ... this new function ...
6611 (c_val_print_union): ... and this new function.
6612
6613 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * c-valprint.c (c_val_print): Factor out pointer printing code
6616 to ...
6617 (c_val_print_ptr): ... this new function.
6618
6619 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6620
6621 * c-valprint.c (c_valprint): Factor our array printing code from
6622 c_val_print to ...
6623 (c_val_print_array): ... this new function.
6624
6625 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * c-valprint.c (c_val_print): Factor out pointer printing code
6628 to ...
6629 (print_unpacked_pointer): ... this new function.
6630
6631 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6632
6633 * c-valprint.c (c_val_print): Remove an assignment to i and move
6634 its declaration.
6635
6636 2015-07-09 Yao Qi <yao.qi@linaro.org>
6637
6638 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6639 argument ptid. Update comments. Caller update.
6640
6641 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6642
6643 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6644 mnt packets.
6645
6646 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6647
6648 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6649
6650 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * progspace.c (delete_program_space): Add missing spaces.
6653
6654 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * inferior.c (delete_inferior_1): Rename to ...
6657 (delete_inferior): ..., remove 'silent' parameter, delete
6658 program space when unused and remove call to prune_program_spaces.
6659 Remove the old, unused, delete_inferior.
6660 (delete_inferior_silent): Remove.
6661 (prune_inferiors): Change call from delete_inferior_1 to
6662 delete_inferior and remove 'silent' parameter. Remove call to
6663 prune_program_spaces.
6664 (remove_inferior_command): Idem.
6665 * inferior.h (delete_inferior_1): Rename to...
6666 (delete_inferior): ..., remove 'silent' parameter and remove the
6667 original delete_inferior.
6668 (delete_inferior_silent): Remove.
6669 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6670 delete_inferior_1 to delete_inferior and remove 'silent'
6671 parameter.
6672 * progspace.c (prune_program_spaces): Remove.
6673 (pspace_empty_p): Rename to...
6674 (program_space_empty_p): ... and make non-static.
6675 (delete_program_space): New.
6676 * progspace.h (prune_program_spaces): Remove declaration.
6677 (program_space_empty_p): New declaration.
6678 (delete_program_space): New declaration.
6679 * monitor.c (monitor_close): Replace call to
6680 delete_thread_silent and delete_inferior_silent with
6681 discard_all_inferiors.
6682
6683 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6684
6685 * defs.h (deprecated_register_changed_hook): Remove prototype.
6686 * interps.c (clear_iterpreter_hooks): Remove reference to
6687 deprecated_register_changed_hook.
6688 * top.c (deprecated_register_changed_hook): Remove prototype.
6689 * valops.c (value_assign): Remove reference to
6690 deprecated_register_changed_hook.
6691 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6692 Add comment documenting the function.
6693 (tui_register_changed_observer): Define.
6694 (tui_install_hooks): Remove reference to
6695 deprecated_register_changed_hook. Set
6696 tui_register_changed_observer.
6697 (tui_remove_hooks): Remove reference to
6698 deprecated_register_changed_hook. Unset
6699 tui_register_changed_observer.
6700
6701 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6702
6703 PR compile/18484
6704 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6705
6706 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6707
6708 PR exp/18617
6709 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6710
6711 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6712
6713 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6714
6715 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6716
6717 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6718 Use safe_strerror() instead of strerror().
6719
6720 2015-07-07 Yao Qi <yao.qi@linaro.org>
6721
6722 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6723 * features/arm-with-m-fpa-layout.c: Regenerated.
6724 * features/arm-with-m-vfp-d16.xml: Likewise.
6725 * features/arm-with-m-vfp-d16.c: Regenerated.
6726 * features/arm-with-m.xml: Likewise.
6727 * features/arm-with-m.c: Regenerated.
6728 * features/arm-with-neon.xml: Likewise.
6729 * features/arm-with-neon.c: Regenerated.
6730 * features/arm-with-vfpv2.xml: Likewise.
6731 * features/arm-with-vfpv2.c: Regenerated.
6732 * features/arm-with-vfpv3.xml: Likewise.
6733 * features/arm-with-vfpv3.c: Regenerated.
6734
6735 2015-07-07 Yao Qi <yao.qi@linaro.org>
6736
6737 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6738 arm-linux-nat.c.
6739 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6740 elf/external.h.
6741 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6742 if target is 32-bit.
6743 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6744 if target is 32-bit.
6745 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6746 if target is 32-bit.
6747 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6748 if target is 32-bit.
6749 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6750 (aarch64_linux_read_description): Return the right target
6751 description.
6752 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6753 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6754 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6755 arm-linux-tdep.o.
6756
6757 2015-07-07 Yao Qi <yao.qi@linaro.org>
6758
6759 * aarch32-linux-nat.c: New file.
6760 * aarch32-linux-nat.h: New file.
6761 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6762 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6763 aarch32_gp_regcache_supply.
6764 (store_regs): Move code to aarch32-linux-nat.c. Call
6765 aarch32_gp_regcache_collect.
6766 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6767 aarch32_vfp_regcache_supply.
6768 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6769 aarch32_vfp_regcache_collect.
6770 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6771
6772 2015-07-07 Yao Qi <yao.qi@linaro.org>
6773
6774 * arm-linux-nat.c (store_fpregister): Remove.
6775 (store_register): Likewise.
6776 (fetch_fpregister): Likewise.
6777 (fetch_register): Likewise.
6778 (arm_linux_store_inferior_registers): Call store_regs and
6779 store_fpregs instead.
6780 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6781 fetch_regs instead.
6782
6783 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6784
6785 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6786 and focus commands.
6787
6788 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6789
6790 * NEWS: Create a new section for the next release branch.
6791 Rename the section of the current branch, now that it has
6792 been cut.
6793
6794 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6795
6796 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6797 * version.in: Bump version to 7.10.50.DATE-cvs.
6798
6799 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6800
6801 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6802 breakpoints in a special way.
6803 (remove_breakpoint): Likewise.
6804 (mark_breakpoints_out): Likewise.
6805
6806 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6807
6808 * doc/gdb.texinfo (TUI): Add comma after @xref.
6809
6810 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6813 instead of casting the structure type.
6814
6815 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6816
6817 * valops.c (search_struct_field): Remove OFFSET parameter.
6818 (value_cast_structs): Adjust calls to search_struct_field.
6819 (value_struct_elt): Same.
6820 (find_overload_match): Same.
6821
6822 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6823
6824 * value.c (value_fetch_lazy): Update comment, change return
6825 value to void.
6826 * value.h (value_fetch_lazy): Change return value to void.
6827
6828 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6829
6830 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6831 (tui_win_name): Make parameter and result const.
6832 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6833
6834 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6835
6836 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6837 use printf_unfiltered.
6838 (set_mpx_cmd): Add missing trailing space to command string
6839 literal.
6840 (_initialize_i386_tdep): Give the "mpx" prefix command its
6841 correct name.
6842
6843 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6844
6845 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6846 (enum rx_frame_type): New.
6847 (struct rx_prologue): Add new field `frame_type'.
6848 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6849 parameter in the prologue struct. Add code for recording
6850 locations of PC and PSW for fast interrupt and exception frames.
6851 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6852 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6853 (rx_frame_type): New function.
6854 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6855 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6856 `this_cache'.
6857 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6858 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6859 RX_FRAME_TYPE_FAST_INTERRUPT.
6860 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6861 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6862 (rx_frame_unwind): Use rx_frame_sniffer instead of
6863 default_frame_sniffer.
6864 (rx_frame_unwind): New unwinder.
6865 (rx_gdbarch_init): Register new unwinder.
6866
6867 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6868
6869 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6870 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6871 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6872 and RX_FPSW_REGNUM.
6873 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6874
6875 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6876
6877 Fix GCC false warning.
6878 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6879
6880 2015-07-02 Yao Qi <yao.qi@linaro.org>
6881
6882 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6883 typo in the debugging message.
6884
6885 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6886
6887 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6888 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6889 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6890 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6891 (btrace_maint_clear): New.
6892 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6893 (pt_print_packet, btrace_maint_decode_pt)
6894 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6895 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6896 (maint_btrace_packet_history_cmd)
6897 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6898 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6899 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6900 (maint_info_btrace_cmd, _initialize_btrace): New.
6901 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6902 (btrace_maint_packet_history, btrace_maint_info): New.
6903 (btrace_thread_info) <maint>: New.
6904 * NEWS: Announce it.
6905
6906 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6907
6908 * btrace.c (btrace_fetch): Append the new trace data.
6909 (btrace_clear): Clear the stored trace data.
6910 * btrace.h (btrace_thread_info) <data>: New.
6911 * common/btrace-common.h (btrace_data_clear)
6912 (btrace_data_append): New.
6913 * common/btrace-common.c (btrace_data_clear)
6914 (btrace_data_append): New.
6915
6916 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6917
6918 * nat/linux-btrace.c (linux_enable_bts): Check for
6919 PERF_ATTR_SIZE_VER5.
6920 Check for data_offset and data_size fields. Use them.
6921
6922 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6923
6924 * NEWS: Announce new commands "record btrace pt" and "record pt".
6925 Announce new options "set|show record btrace pt buffer-size".
6926 * btrace.c: Include "rsp-low.h".
6927 Include "inttypes.h".
6928 (btrace_add_pc): Add forward declaration.
6929 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6930 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6931 (btrace_compute_ftrace_pt): New.
6932 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6933 (check_xml_btrace_version): Update version check.
6934 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6935 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6936 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6937 (btrace_pt_children): New.
6938 (btrace_children): Add support for "pt".
6939 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6940 (btrace_conf_children): Add support for "pt".
6941 * btrace.h: Include "intel-pt.h".
6942 (btrace_pt_error): New.
6943 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6944 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6945 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6946 (struct btrace_config_pt): New.
6947 (struct btrace_config)<pt>: New.
6948 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6949 (struct btrace_data)<pt>: New.
6950 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6951 (pt): New.
6952 * features/btrace.dtd (btrace)<pt>: New.
6953 (pt, pt-config, cpu): New.
6954 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6955 (perf_event_pt_event_type, kernel_supports_pt)
6956 (linux_supports_pt): New.
6957 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6958 (linux_enable_bts): Free tinfo on error.
6959 (linux_enable_pt): New.
6960 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6961 (linux_disable_pt): New.
6962 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6963 (linux_fill_btrace_pt_config, linux_read_pt): New.
6964 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6965 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6966 (struct btrace_target_info)<pt>: New.
6967 * record-btrace.c (set_record_btrace_pt_cmdlist)
6968 (show_record_btrace_pt_cmdlist): New.
6969 (record_btrace_print_pt_conf): New.
6970 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6971 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6972 (cmd_record_btrace_pt_start): New.
6973 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6974 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6975 (_initialize_record_btrace): Add new commands.
6976 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6977 (remote_protocol_features): Add "Qbtrace:pt".
6978 Add "Qbtrace-conf:pt:size".
6979 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6980 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6981 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6982 (_initialize_remote): Add new commands.
6983
6984 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6985
6986 * configure.ac: check for libipt
6987 * configure: Regenerate.
6988 * config.in: Regenerate.
6989 * Makefile.in (LIBIPT): New.
6990 (CLIBS): Add $LIBIPT.
6991 * NEWS: document new configure options
6992
6993 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6994
6995 * compile/compile-object-load.c (compile_object_load): Replace debug
6996 message "lookup undefined ELF symbol" by 3 more specific messages.
6997
6998 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6999
7000 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7001 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7002 (rl78_gdbarch_init): Initialize rl78_psw_type.
7003
7004 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7005
7006 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7007 Update commentary. Always refresh the registers when frame
7008 information has changed.
7009 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7010 Change return type to int. Return 1 if frame information has
7011 changed, 0 otherwise.
7012 (tui_before_prompt): Update commentary.
7013 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7014 int.
7015
7016 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7017
7018 PR tui/13378
7019 * frame.c (select_frame): Remove reference to
7020 deprecated_selected_frame_level_changed_hook.
7021 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7022 declaration.
7023 * stack.c (deprecated_selected_frame_level_changed_hook):
7024 Likewise.
7025 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7026 Rename to ...
7027 (tui_refresh_frame_and_register_information): ... this. Bail
7028 out if there is no stack. Don't update register information
7029 unless registers_too_p is true.
7030 (tui_print_frame_info_listing_hook): Rename to ...
7031 (tui_dummy_print_frame_info_listing_hook): ... this.
7032 (tui_before_prompt): New function.
7033 (tui_normal_stop): New function.
7034 (tui_before_prompt_observer): New observer.
7035 (tui_normal_stop_observer): New observer.
7036 (tui_install_hooks): Set
7037 deprecated_print_frame_info_listing_hook to
7038 tui_dummy_print_frame_info_listing_hook. Register
7039 tui_before_prompt_observer to call tui_before_prompt and
7040 tui_normal_stop_observer to call tui_normal_stop. Remove
7041 reference to deprecated_selected_frame_level_changed_hook.
7042 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7043 and tui_normal_stop_observer. Remove reference to
7044 deprecated_selected_frame_level_changed_hook.
7045
7046 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7047
7048 PR tui/13378
7049 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7050 return an int instead of void. Return whether the locator
7051 window has changed.
7052 (tui_show_frame_info): If the locator info has not changed, then
7053 bail out early to avoid refreshing the windows.
7054
7055 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7056
7057 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7058 LOCATOR_WIN to tui_alloc_content.
7059
7060 2015-06-30 Yao Qi <yao.qi@linaro.org>
7061
7062 PR tdep/18605
7063 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7064 instructions.
7065
7066 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7067
7068 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7069 (rx_dwarf_reg_to_regnum): New function.
7070 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7071 unwinding.
7072
7073 2015-06-29 Pedro Alves <palves@redhat.com>
7074
7075 PR threads/18127
7076 * infcall.c (run_inferior_call): On infcall success, if the thread
7077 was marked stopped before, reset it back to stopped.
7078 * infrun.c (resume): Don't suppress the set_running calls when
7079 doing an infcall.
7080 (normal_stop): Only discard the finish_thread_state cleanup if the
7081 infcall succeeded.
7082
7083 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7084
7085 * MAINTAINERS (Write After Approval): Update my email address.
7086
7087 2015-06-26 Keith Seitz <keiths@redhat.com>
7088 Doug Evans <dje@google.com>
7089
7090 PR 16253
7091 * block.c (block_lookup_symbol): For non-function blocks,
7092 continue to search for a symbol with an exact domain match
7093 Otherwise, return any previously found "best domain" symbol.
7094 (block_lookup_symbol_primary): Likewise.
7095
7096 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7097
7098 * NEWS: Mention the new option "history remove-duplicates".
7099 * top.c (history_remove_duplicates): New static variable.
7100 (show_history_remove_duplicates): New static function.
7101 (gdb_add_history): Conditionally remove duplicate history
7102 entries.
7103 (init_main): Add "history remove-duplicates" option.
7104
7105 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7106
7107 * tui/tui-win.c (focus_completer): New static function.
7108 (_initialize_tui_win): Set the completion function of the
7109 "focus" command to focus_completer.
7110
7111 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7112
7113 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7114 and language_asm..
7115 * symtab.c (find_function_start_sal): Likewise.
7116
7117 2015-06-25 Gary Benson <gbenson@redhat.com>
7118
7119 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7120 it is the empty string after trailing slashes have been stripped.
7121
7122 2015-06-25 Gary Benson <gbenson@redhat.com>
7123
7124 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7125 * infrun.c (follow_exec): Likewise.
7126 * remote.c (remote_filesystem_is_local): Likewise.
7127 * solib.c (solib_find_1): Likewise.
7128
7129 2015-06-24 Keith Seitz <keiths@redhat.com>
7130
7131 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7132 return value from lrealpath.
7133
7134 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7135
7136 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7137
7138 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7139
7140 * remote-sim.c: Include gdb_bfd.h.
7141 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7142 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7143
7144 2015-06-24 Yao Qi <yao.qi@linaro.org>
7145
7146 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7147 set_gdbarch_get_siginfo_type.
7148 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7149 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7150 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7151 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7152 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7153 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7154 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7155 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7156 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7157 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7158
7159 2015-06-24 Gary Benson <gbenson@redhat.com>
7160
7161 * common/buffer.c (stdint.h): Do not include.
7162 * common/print-utils.c (stdint.h): Likewise.
7163 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7164 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7165 * ft32-tdep.c (gdb_assert.h): Likewise.
7166 * guile/scm-utils.c (stdint.h): Likewise.
7167 * i386-linux-tdep.c (stdint.h): Likewise.
7168 * i386-tdep.c (stdint.h): Likewise.
7169 * nat/linux-btrace.c (stdint.h): Likewise.
7170 * nat/linux-btrace.h (stdint.h): Likewise.
7171 * nat/linux-ptrace.c (stdint.h): Likewise.
7172 * nat/mips-linux-watch.h (stdint.h): Likewise.
7173 * ppc-linux-nat.c (stdint.h): Likewise.
7174 * python/python-internal.h (stdint.h): Likewise.
7175 * stub-termcap.c (stdlib.h): Likewise.
7176 * target/target.h (stdint.h): Likewise.
7177 * xtensa-linux-nat.c (stdint.h): Likewise.
7178
7179 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7180
7181 * top.c (init_history): Look at errno after calling strtol to
7182 properly map large GDBHISTSIZE values to infinity.
7183
7184 2015-06-23 Doug Evans <dje@google.com>
7185
7186 * inferior.h (struct inferior_suspend_state): Delete, unused.
7187 All references deleted.
7188
7189 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7190
7191 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7192 (microblaze_push_dummy_call): Likewise.
7193 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7194 and set_gdbarch_push_dummy_call.
7195
7196 2015-06-23 Yao Qi <yao.qi@linaro.org>
7197
7198 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7199 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7200 (amd64_linux_store_inferior_registers): Likewise.
7201 * arm-linux-nat.c (fetch_fpregister): Likewise.
7202 (fetch_fpregs, store_fpregister): Likewise.
7203 (store_fpregister, store_fpregs): Likewise.
7204 (fetch_register, fetch_regs): Likewise.
7205 (store_register, store_regs): Likewise.
7206 (fetch_vfp_regs, store_vfp_regs): Likewise.
7207 (arm_linux_read_description): Check have_ptrace_getregset is
7208 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7209 or TRIBOOL_FALSE.
7210 * i386-linux-nat.c (fetch_xstateregs): Check
7211 have_ptrace_getregset is not TRIBOOL_TRUE.
7212 (store_xstateregs): Likewise.
7213 * linux-nat.c (have_ptrace_getregset): Change its type to
7214 enum tribool.
7215 * linux-nat.h (tribool): New enum.
7216 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7217 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7218
7219 2015-06-19 Doug Evans <dje@google.com>
7220
7221 * NEWS: Mention Sun's version of stabs is no longer supported.
7222 * elfread.c (free_elfinfo): Delete. All uses updated.
7223 (elfstab_offset_sections): Delete. All uses updated.
7224 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7225 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7226 All uses updated.
7227 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7228 All callers updated.
7229
7230 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * common/rsp-low.c (needs_escaping): New.
7233 (remote_escape_output): Add unit_size parameter. Refactor to
7234 support multi-byte addressable units. Rename parameters.
7235 * common/rsp-low.h (remote_escape_output): Add unit_size
7236 parameter and rename others. Update doc.
7237 * remote.c (align_for_efficient_write): New.
7238 (remote_write_bytes_aux): Add unit_size parameter and use it.
7239 Rename some variables. Update doc.
7240 (remote_xfer_partial): Get unit size and use it.
7241 (remote_read_bytes_1): Add unit_size parameter and use it.
7242 Rename some variables. Update doc.
7243 (remote_write_bytes): Same.
7244 (remote_xfer_live_readonly_partial): Same.
7245 (remote_read_bytes): Same.
7246 (remote_flash_write): Update call to remote_write_bytes_aux.
7247 (remote_write_qxfer): Update call to remote_escape_output.
7248 (remote_search_memory): Same.
7249 (remote_hostio_pwrite): Same.
7250
7251 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7252
7253 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7254 locations as inserted.
7255 Update and expand comment about permanent locations.
7256 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7257 Move comment to add_location_to_breakpoint.
7258 (update_global_location_list): Don't error out if a permanent
7259 breakpoint is not marked inserted.
7260 Don't error out if a non-permanent breakpoint location is inserted on
7261 top of a permanent breakpoint.
7262
7263 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7264
7265 * breakpoint.c (make_breakpoint_permanent): Remove unused
7266 function.
7267 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7268
7269 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7270
7271 PR gdb/16999
7272 * NEWS: Mention new GDBHISTSIZE behavior.
7273 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7274 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7275
7276 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7277
7278 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7279 * top.c (init_history): Read from GDBHISTSIZE instead of
7280 HISTSIZE.
7281 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7282
7283 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7284
7285 * top.c (gdb_safe_append_history): Do not call
7286 history_truncate_file if the history is not stifled.
7287
7288 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7289
7290 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7291 * syscalls/s390x-linux.xml: Likewise.
7292
7293 2015-06-16 Michael Eager <eager@eagercon.com>
7294
7295 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7296
7297 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7298
7299 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7300 target_terminal_ours_for_output() before calling
7301 tui_show_frame_info(), and restore the original terminal
7302 settings afterwards.
7303
7304 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7305
7306 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7307
7308 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7309
7310 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7311 memory unit size.
7312 (mi_cmd_data_write_memory_bytes): Same.
7313
7314 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7315
7316 * corefile.c (write_memory): Update doc.
7317 * gdbcore.h (write_memory): Same.
7318
7319 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7320
7321 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7322 (dump_mapping_p): Use it for parameter filterflags.
7323 (linux_find_memory_regions_full): Use it for variable filterflags.
7324
7325 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7326 Jan Kratochvil <jan.kratochvil@redhat.com>
7327
7328 Merge multiple hex conversions.
7329 * monitor.c: Include rsp-low.h.
7330 (fromhex): Remove definition.
7331
7332 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7333 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 Move utility functions to common/.
7336 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7337 Move defs to common/common-utils.c.
7338 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7339 (skip_to_space_const): Move decls to common/common-utils.h.
7340 * common/common-defs.h: Move include of common-types.h before
7341 common-utils.h.
7342 * common/common-utils.c: Include host-defs.h and ctype.h.
7343 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7344 from utils.c.
7345 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7346 cli/cli-utils.c.
7347 * common/common-utils.h (strtoulst): Move decl from utils.h.
7348 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7349 Move from cli/cli-utils.h.
7350 * common/host-defs.h: Include limits.h.
7351 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7352 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7353 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7354 common/common-utils.h.
7355 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7356 (strtoulst): Move to common/common-utils.c.
7357 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7358
7359 2015-06-15 Yao Qi <yao.qi@linaro.org>
7360
7361 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7362
7363 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7364
7365 * build-id.c: Don't include elf-bfd.h.
7366 (build_id_bfd_get): Use bfd_build_id.
7367 (build_id_verify): Ditto.
7368 * build-id.h: Ditto.
7369 (find_separate_debug_file_by_buildid): Ditto.
7370 * python/py-objfile.c: Don't include elf-bfd.h.
7371 (objfpy_get_build_id) Use bfd_build_id.
7372 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7373 * coffread.c: Include build-id.h.
7374 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7375
7376 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7377
7378 * windows-nat.c (do_windows_fetch_inferior_registers)
7379 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7380 conditional with __CYGWIN__.
7381
7382 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7383
7384 * completer.c: Add arch-utils.h include.
7385 (enum reg_completer_targets): New enum.
7386 (reg_or_group_completer_1): New function containing old
7387 reg_or_group_completer, add and use new parameter to control what
7388 is completed on. Use get_current_arch rather than architecture of
7389 currently selected frame.
7390 (reg_or_group_completer): Call new reg_or_group_completer_1.
7391 (reggroup_completer): Call new reg_or_group_completer_1.
7392 * completer.h (reggroup_completer): Add declaration.
7393 * tui/tui-regs.c: Add 'completer.h' include.
7394 (tui_reg_next_command): Renamed to...
7395 (tui_reg_next): ...this. Adjust parameters and return rather than
7396 display new group.
7397 (tui_reg_prev_command): Renamed to...
7398 (tui_reg_prev): ...this. Adjust parameters and return rather than
7399 display new group.
7400 (tui_reg_float_command): Delete.
7401 (tui_reg_general_command): Delete.
7402 (tui_reg_system_command): Delete.
7403 (tui_reg_command): Rewrite to perform switching of register group.
7404 Add header comment.
7405 (tuireglist): Remove.
7406 (tui_reggroup_completer): New function.
7407 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7408 creation of 'tui reg' command.
7409 * NEWS: Add comment about 'tui reg' changes.
7410
7411 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * target.c (target_read): Consider addressable unit size when
7414 reading from a memory object.
7415 (read_memory_robust): Same.
7416 (read_whatever_is_readable): Same.
7417 (target_write_with_progress): Consider addressable unit size
7418 when writing to a memory object.
7419 * target.h (target_read): Update documentation.
7420 (target_write): Add documentation.
7421
7422 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7423
7424 * arch-utils.h (default_addressable_memory_unit_size): New.
7425 * arch-utils.c (default_addressable_memory_unit_size): New.
7426 * gdbarch.sh (addressable_memory_unit_size): New.
7427 * gdbarch.h: Re-generate.
7428 * gdbarch.c: Re-generate.
7429
7430 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * target.c (target_read): Rename variables and use
7433 TARGET_XFER_E_IO.
7434 (target_read_with_progress): Same.
7435 (read_memory_robust): Constify parameters and rename
7436 variables.
7437 (read_whatever_is_readable): Constify parameters,
7438 rename variables, adjust formatting.
7439 * target.h (read_memory_robust): Constify parameters.
7440
7441 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7442
7443 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7444 synthetic (non-AltiVec) vector types.
7445 (ppc64_sysv_abi_return_value): Likewise.
7446
7447 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7448
7449 PR breakpoints/16465
7450 * breakpoint.c (create_breakpoint): Save extra_string for
7451 pending breakpoints.
7452
7453 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7454
7455 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7456 and bt_mask to CORE_ADDR.
7457
7458 2015-06-11 Gary Benson <gbenson@redhat.com>
7459
7460 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7461 (mnsh_recv_message): Likewise.
7462
7463 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7464
7465 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7466 long long int and plongest instead of %ll.
7467
7468 2015-06-11 Gary Benson <gbenson@redhat.com>
7469
7470 * nat/linux-namespaces.c (gdb_wait.h): New include.
7471 (sys/wait.h): Do not include.
7472
7473 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7474
7475 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7476 end_sequence is true.
7477
7478 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7479
7480 Code cleanup.
7481 * solib-target.c (library_list_start_list): Use explicit NULL
7482 comparison.
7483
7484 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 * solib-target.c (library_list_start_list): Do not dereference
7487 variable version in its initialization. Make the VERSION check handle
7488 NULL.
7489 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7490
7491 2015-06-10 Gary Benson <gbenson@redhat.com>
7492
7493 * NEWS: Announce support for direct access of executable and
7494 shared library files when attaching to inferiors in containers
7495 on GNU/Linux systems.
7496
7497 2015-06-10 Gary Benson <gbenson@redhat.com>
7498
7499 * remote.c (struct remote_state) <fs_pid>: New field.
7500 (new_remote_state): Initialize the above.
7501 (PACKET_vFile_setfs): New enum value.
7502 (remote_hostio_set_filesystem): New function.
7503 (remote_hostio_open): Call the above.
7504 (remote_hostio_unlink): Likewise.
7505 (remote_hostio_readlink): Likewise.
7506 (_initialize_remote): Register new "set/show remote
7507 hostio-setfs-packet" command.
7508 * NEWS: Announce new vFile:setfs packet.
7509
7510 2015-06-10 Gary Benson <gbenson@redhat.com>
7511
7512 * linux-nat.c (nat/linux-namespaces.h): New include.
7513 (fileio.h): Likewise.
7514 (linux_nat_filesystem_is_local): New function.
7515 (linux_nat_fileio_pid_of): Likewise.
7516 (linux_nat_fileio_open): Likewise.
7517 (linux_nat_fileio_readlink): Likewise.
7518 (linux_nat_fileio_unlink): Likewise.
7519 (linux_nat_add_target): Initialize to_filesystem_is_local,
7520 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7521 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7522 commands.
7523 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7524
7525 2015-06-10 Gary Benson <gbenson@redhat.com>
7526
7527 * target.h (struct inferior): New forward declaration.
7528 (struct target_ops) <to_filesystem_is_local>: Update comment.
7529 (struct target_ops) <to_fileio_open>: New argument inf.
7530 Update comment. All implementations updated.
7531 (struct target_ops) <to_fileio_unlink>: Likewise.
7532 (struct target_ops) <to_fileio_readlink>: Likewise.
7533 (target_filesystem_is_local): Update comment.
7534 (target_fileio_open): New argument inf. Update comment.
7535 (target_fileio_unlink): Likewise.
7536 (target_fileio_readlink): Likewise.
7537 (target_fileio_read_alloc): Likewise.
7538 (target_fileio_read_stralloc): Likewise.
7539 * target.c (target_fileio_open): New argument inf.
7540 Pass inf to implementation. Update debug printing.
7541 (target_fileio_unlink): Likewise.
7542 (target_fileio_readlink): Likewise.
7543 (target_fileio_read_alloc_1): New argument inf. Pass inf
7544 to target_fileio_open.
7545 (target_fileio_read_alloc): New argument inf. Pass inf to
7546 target_fileio_read_alloc_1.
7547 (target_fileio_read_stralloc): Likewise.
7548 * gdb_bfd.c (inferior.h): New include.
7549 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7550 argument with new argument "inferior". Pass inferior to
7551 target_fileio_open.
7552 (gdb_bfd_open): Supply inferior argument to
7553 gdb_bfd_iovec_fileio_open.
7554 * linux-tdep.c (linux_info_proc): Supply inf argument to
7555 relevant target_fileio calls.
7556 (linux_find_memory_regions_full): Likewise.
7557 (linux_fill_prpsinfo): Likewise.
7558 * remote.c (remote_filesystem_is_local): Supply inf
7559 argument to remote_hostio_open.
7560 (remote_file_put): Likewise.
7561 (remote_file_get): Likewise.
7562 (remote_file_delete): Supply inf argument to
7563 remote_hostio_unlink.
7564
7565 2015-06-10 Gary Benson <gbenson@redhat.com>
7566
7567 * inf-child.c (inf_child_fileio_open): Replace comment.
7568 (inf_child_fileio_pwrite): Likewise.
7569 (inf_child_fileio_pread): Likewise.
7570 (inf_child_fileio_fstat): Insert blank line before comment.
7571 (inf_child_fileio_close): Replace comment.
7572 (inf_child_fileio_unlink): Likewise.
7573 (inf_child_fileio_readlink): Likewise.
7574 * remote.c (remote_hostio_open): Likewise.
7575 (remote_hostio_pread): Likewise.
7576 (remote_hostio_pwrite): Likewise.
7577 (remote_hostio_close): Likewise.
7578 (remote_hostio_unlink): Likewise.
7579 (remote_hostio_readlink): Likewise.
7580 (remote_hostio_fstat): Likewise.
7581 (remote_filesystem_is_local): Likewise.
7582 * target.c (target_fileio_open): Likewise.
7583 (target_fileio_pwrite): Likewise.
7584 (target_fileio_pread): Likewise.
7585 (target_fileio_fstat): Insert blank line before comment.
7586 (target_fileio_close): Replace comment.
7587 (target_fileio_unlink): Likewise.
7588 (target_fileio_readlink): Likewise.
7589 (target_fileio_read_alloc): Likewise.
7590 (target_fileio_read_stralloc): Likewise.
7591
7592 2015-06-10 Gary Benson <gbenson@redhat.com>
7593
7594 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7595 (check_pid_namespace_match): Use linux_ns_same rather than
7596 linux_proc_pid_get_ns to spot PID namespace mismatches.
7597 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7598 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7599
7600 2015-06-10 Gary Benson <gbenson@redhat.com>
7601
7602 * configure.ac (AC_CHECK_FUNCS): Add setns.
7603 * config.in: Regenerate.
7604 * configure: Likewise.
7605 * nat/linux-namespaces.h: New file.
7606 * nat/linux-namespaces.c: Likewise.
7607 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7608 (linux-namespaces.o): New rule.
7609 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7610 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7611 * config/arm/linux.mh (NATDEPFILES): Likewise.
7612 * config/i386/linux.mh (NATDEPFILES): Likewise.
7613 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7614 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7615 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7616 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7617 * config/mips/linux.mh (NATDEPFILES): Likewise.
7618 * config/pa/linux.mh (NATDEPFILES): Likewise.
7619 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7620 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7621 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7622 * config/s390/linux.mh (NATDEPFILES): Likewise.
7623 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7624 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7625 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7626 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7627
7628 2015-06-10 Gary Benson <gbenson@redhat.com>
7629
7630 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7631 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7632 (make_cleanup_close): Likewise.
7633 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7634 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7635 (make_cleanup_close): Likewise.
7636
7637 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7638
7639 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7640 from SuspendThread().
7641
7642 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7643
7644 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7645 from OutputDebugString.
7646
7647 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7648 Mircea Gherzan <mircea.gherzan@intel.com>
7649
7650 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7651 MPX_BT_MASK_32): New macros.
7652 (i386_mpx_set_bounds): New function that implements
7653 the command "set-mpx-bound".
7654 (i386_mpx_enabled): Helper function to test MPX availability.
7655 (i386_mpx_bd_base): Helper function to calculate the base directory
7656 address.
7657 (i386_mpx_get_bt_entry): Helper function to access a bound
7658 table entry.
7659 (i386_mpx_print_bounds): Effectively display bound information.
7660 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7661 "show mpx".
7662 (_initialize_i386_tdep):
7663 Add "bound" to the commands "show mpx" and "set mpx" commands.
7664 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7665 and "show mpx" commands.
7666 * NEWS: List new commands for MPX support.
7667
7668 2015-06-09 Gary Benson <gbenson@redhat.com>
7669
7670 * common/fileio.h (fileio_to_host_mode): New declaration.
7671 * common/fileio.c (fileio_to_host_mode): New Function.
7672 * inf-child.c (inf_child_fileio_open): Process mode argument
7673 with fileio_to_host_mode.
7674
7675 2015-06-09 Gary Benson <gbenson@redhat.com>
7676
7677 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7678 conditional.
7679
7680 2015-06-05 Gary Benson <gbenson@redhat.com>
7681
7682 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7683 * remote.c (remote_filesystem_is_local): ...here.
7684
7685 2015-06-04 Yao Qi <yao.qi@linaro.org>
7686
7687 * gdbarch.c: Regenerate it.
7688
7689 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7690
7691 * arch-utils.c (default_infcall_munmap): New.
7692 * arch-utils.h (default_infcall_munmap): New declaration.
7693 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7694 (munmap_list_free, munmap_listp_free_cleanup): New.
7695 (struct setup_sections_data): Add field munmap_list_headp.
7696 (setup_sections): Call munmap_list_add.
7697 (compile_object_load): New variable munmap_list_head, initialize
7698 setup_sections_data.munmap_list_headp, return munmap_list_head.
7699 * compile/compile-object-load.h (struct munmap_list): New declaration.
7700 (struct compile_module): Add field munmap_list_head.
7701 (munmap_list_free): New declaration.
7702 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7703 munmap_list_head.
7704 (do_module_cleanup): Call munmap_list_free.
7705 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7706 * gdbarch.c: Regenerate.
7707 * gdbarch.h: Regenerate.
7708 * gdbarch.sh (infcall_munmap): New.
7709 * linux-tdep.c (linux_infcall_munmap): New.
7710 (linux_init_abi): Install it.
7711
7712 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7713
7714 PR gdb/15564
7715 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7716
7717 2015-06-02 Yao Qi <yao.qi@linaro.org>
7718
7719 * i386-linux-nat.c: Include linux-nat.h.
7720
7721 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7722 Jan Kratochvil <jan.kratochvil@redhat.com>
7723
7724 PR symtab/18392
7725 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7726 assertion.
7727 * dwarf2loc.c (chain_candidate): Likewise.
7728
7729 2015-06-01 Yao Qi <yao.qi@linaro.org>
7730
7731 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7732 (store_vfp_regs): Use PTRACE_SETREGSET.
7733
7734 2015-06-01 Yao Qi <yao.qi@linaro.org>
7735
7736 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7737 (fetch_fpregs): Likewise.
7738 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7739 (store_fpregs): Likewise.
7740
7741 2015-06-01 Yao Qi <yao.qi@linaro.org>
7742
7743 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7744 (fetch_regs): Likewise.
7745 (store_regs): Use PTRACE_SETREGSET.
7746 (store_register): Likewise.
7747
7748 2015-06-01 Yao Qi <yao.qi@linaro.org>
7749
7750 * arm-linux-nat.c (arm_linux_read_description): Check whether
7751 kernel supports PTRACE_GETREGSET.
7752
7753 2015-06-01 Yao Qi <yao.qi@linaro.org>
7754
7755 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7756 * linux-nat.c: ... here.
7757 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7758 to ...
7759 * linux-nat.h: ... here.
7760
7761 2015-06-01 Yao Qi <yao.qi@linaro.org>
7762
7763 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7764 * i386-linux-nat.c: Likewise.
7765 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7766 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7767 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7768 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7769 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7770
7771 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7772
7773 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7774 compatible to what read_child and write_child return. This
7775 unbreaks that DJGPP build of GDB which was broken since v7.7.
7776
7777 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7778
7779 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7780
7781 2015-05-29 Roland McGrath <mcgrathr@google.com>
7782
7783 PR gdb/18464
7784 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7785 rather than internal_error for an unrecognized value.
7786
7787 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7788
7789 * xtensa-tdep.c (xtensa_pseudo_register_read)
7790 (xtensa_pseudo_register_write): Don't alias last pseudo register
7791 to a1.
7792
7793 2015-05-28 Don Breazeal <donb@codesourcery.com>
7794
7795 * infrun.c (follow_fork_inferior): Ensure the use of
7796 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7797 messages.
7798
7799 2015-05-28 Doug Evans <dje@google.com>
7800
7801 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7802
7803 2015-05-28 Yao Qi <yao.qi@linaro.org>
7804
7805 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7806 (arm_linux_fetch_inferior_registers): Use
7807 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7808 (arm_linux_store_inferior_registers): Likewise.
7809 (arm_linux_read_description): Don't set
7810 arm_linux_has_wmmx_registers.
7811 * arm-tdep.c (arm_gdbarch_init): Set
7812 tdep->have_wmmx_registers according target descriptions.
7813 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7814 field.
7815
7816 2015-05-28 Yao Qi <yao.qi@linaro.org>
7817
7818 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7819 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7820 instead of arm_linux_vfp_register_count.
7821 (store_vfp_regs): Likewise.
7822 (arm_linux_fetch_inferior_registers): Likewise.
7823 (arm_linux_store_inferior_registers): Likewise.
7824 (arm_linux_read_description): Don't set
7825 arm_linux_vfp_register_count.
7826 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7827 Adjust.
7828 * arm-tdep.c (arm_gdbarch_init): Add assert on
7829 vfp_register_count.
7830 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7831 field to vfp_register_count. All users updated.
7832
7833 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7834
7835 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7836 ELFOSABI_GNU binaries.
7837
7838 2015-05-27 Doug Evans <dje@google.com>
7839
7840 * dwarf2read.c (lnp_state_machine): New typedef.
7841 (lnp_reader_state): New typedef.
7842 (dwarf_record_line_1): Renamed from dwarf_record_line.
7843 All callers updated.
7844 (dwarf_record_line): New function.
7845 (init_lnp_state_machine): New function.
7846 (check_line_address): Replace p_record_line parameter with state.
7847 All callers updated.
7848 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7849 Update to record state in lnp_state_machine.
7850
7851 2015-05-27 Doug Evans <dje@google.com>
7852
7853 * dwarf2read.c (record_line_ftype): New typedef.
7854 (check_line_address): New function.
7855 (dwarf_decode_lines_1): Call it.
7856
7857 2015-05-27 Doug Evans <dje@google.com>
7858
7859 * NEWS: Mention "set debug dwarf-line".
7860 * dwarf2read.c (dwarf_line_debug): New static global.
7861 (add_include_dir): Add debug dwarf-line support.
7862 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7863 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7864
7865 2015-05-27 Doug Evans <dje@google.com>
7866
7867 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7868 All callers updated.
7869 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7870 * cp-support.h (cp_lookup_nested_symbol): Update.
7871
7872 2015-05-27 Doug Evans <dje@google.com>
7873
7874 PR symtab/18258
7875 * block.c (block_find_symbol): New function.
7876 (block_find_non_opaque_type): Ditto.
7877 (block_find_non_opaque_type_preferred): Ditto.
7878 * block.h (block_symbol_matcher_ftype): New typedef.
7879 (block_find_symbol): Declare.
7880 (block_find_non_opaque_type): Ditto.
7881 (block_find_non_opaque_type_preferred): Ditto.
7882 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7883 * psymtab.c (psym_lookup_symbol): Ditto.
7884 * symtab.c (basic_lookup_transparent_type_1): New function.
7885 (basic_lookup_transparent_type): Call it.
7886
7887 2015-05-27 Yao Qi <yao.qi@linaro.org>
7888
7889 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7890 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7891
7892 2015-05-27 Yao Qi <yao.qi@linaro.org>
7893
7894 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7895 before operator &&.
7896 (aarch64_record_load_store): Likewise.
7897
7898 2015-05-26 Doug Evans <dje@google.com>
7899
7900 PR c++/18141, c++/18417.
7901 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7902 a typedef.
7903
7904 2015-05-26 Doug Evans <dje@google.com>
7905
7906 * NEWS: Add entries for command renamings.
7907 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7908 All uses updated.
7909 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7910 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7911 All uses updated.
7912 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7913 All callers updated. Fix spelling of DWARF in help text.
7914 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7915 All uses updated.
7916 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7917 All uses updated.
7918 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7919 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7920 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7921 All uses updated.
7922 (show_dwarf_always_disassemble): Renamed from
7923 show_dwarf2_always_disassemble. All callers updated.
7924 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7925 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7926 "set/show dwarf max-cache-age". Rename
7927 "set/show dwarf2 always-disassemble" to
7928 "set/show dwarf always-disassemble". Rename
7929 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7930 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7931
7932 2015-05-26 Doug Evans <dje@google.com>
7933
7934 PR python/18438
7935 * python/py-lazy-string.c (stpy_convert_to_value): Use
7936 gdbpy_gdb_memory_error not PyExc_MemoryError.
7937 (gdbpy_create_lazy_string_object): Ditto.
7938
7939 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7942
7943 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * tui/tui-regs.c (tui_reg_prev_command): New function.
7946 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7947 * reggroups.c (reggroup_prev): New function.
7948 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7949
7950 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7951 Yao Qi <yao.qi@linaro.org>
7952
7953 * aarch64-linux-tdep.c: Include linux-record.h and
7954 record-full.h.
7955 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7956 (aarch64_syscall): New enum.
7957 (aarch64_canonicalize_syscall): New function.
7958 (aarch64_all_but_pc_registers_record): New function.
7959 (aarch64_linux_syscall_record): New function.
7960 (aarch64_linux_init_abi): Install AArch64 process record
7961 handler. Update to handle syscall recording.
7962 * aarch64-tdep.c: Include record.h and record-full.h.
7963 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7964 (struct aarch64_mem_r): Define.
7965 (aarch64_record_result): New enum.
7966 (struct insn_decode_record): Define.
7967 (insn_decode_record): New typedef.
7968 (aarch64_record_data_proc_reg): New function.
7969 (aarch64_record_data_proc_imm): New function.
7970 (aarch64_record_branch_except_sys): New function.
7971 (aarch64_record_load_store): New function.
7972 (aarch64_record_data_proc_simd_fp): New function.
7973 (aarch64_record_asimd_load_store): New function.
7974 (aarch64_record_decode_insn_handler): New function.
7975 (deallocate_reg_mem): New function.
7976 (aarch64_process_record): New function.
7977 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7978 New field.
7979 (aarch64_process_record): New extern declaration.
7980 * configure.tgt: Add linux-record.o to gdb_target_obs.
7981 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7982
7983 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7984
7985 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7986 targets.
7987
7988 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7989
7990 * amd64-tdep.c: Replace in_function_epilogue_p with
7991 stack_frame_destroyed_p throughout.
7992 * arch-utils.c: Ditto.
7993 * arch-utils.h: Ditto.
7994 * arm-tdep.c: Ditto.
7995 * breakpoint.c: Ditto.
7996 * gdbarch.sh: Ditto.
7997 * hppa-tdep.c: Ditto.
7998 * i386-tdep.c: Ditto.
7999 * mips-tdep.c: Ditto.
8000 * nios2-tdep.c: Ditto.
8001 * rs6000-tdep.c: Ditto.
8002 * s390-linux-tdep.c: Ditto.
8003 * score-tdep.c: Ditto.
8004 * sh-tdep.c: Ditto.
8005 * sparc-tdep.c: Ditto.
8006 * sparc-tdep.h: Ditto.
8007 * sparc64-tdep.c: Ditto.
8008 * spu-tdep.c: Ditto.
8009 * tic6x-tdep.c: Ditto.
8010 * tilegx-tdep.c: Ditto.
8011 * xstormy16-tdep.c: Ditto.
8012 * gdbarch.c, gdbarch.h: Re-generated.
8013
8014 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8015
8016 * NEWS: Mention 'tui enable' and 'tui disable'.
8017 * tui/tui.c (tui_enable_command): New function.
8018 (tui_disable_command): New function.
8019 (_initialize_tui): New function.
8020
8021 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8024
8025 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8028 buf_ptr is freed.
8029
8030 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8031
8032 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8033 into ...
8034 (tui_set_layout_for_display_command): ...here, before calling
8035 tui_set_layout. Only set the layout if gdb has not already
8036 entered the TUI_FAILURE state.
8037
8038 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * tui/tui-layout.c (layout_completer): New function.
8041 (_initialize_tui_layout): Set completer on layout command.
8042
8043 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8044
8045 * tui/tui-layout.c (tui_set_layout): Remove
8046 tui_register_display_type parameter. Remove all checking of this
8047 parameter, and reindent function. Update header comment.
8048 (tui_set_layout_for_display_command): Rename to...
8049 (tui_set_layout_by_name): ...this, and don't check for different
8050 register class types, don't pass a tui_register_display_type to
8051 tui_set_layout. Update header comment.
8052 (layout_names): Remove register set specific names.
8053 * tui/tui-layout.h (tui_set_layout): Remove
8054 tui_register_display_type parameter.
8055 * tui/tui.c (tui_rl_change_windows): Don't pass a
8056 tui_register_display_type to tui_set_layout.
8057 (tui_rl_delete_other_windows): Likewise.
8058 (tui_enable): Likewise.
8059 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8060 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8061 (TUI_GENERAL_REGS_NAME): Remove.
8062 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8063 (TUI_SPECIAL_REGS_NAME): Remove.
8064 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8065 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8066 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8067 (enum tui_register_display_type): Remove.
8068 (struct tui_layout_def): Remove regs_display_type and
8069 float_regs_display_type fields.
8070 (struct tui_data_info): Remove regs_display_type field.
8071 (tui_layout_command): Use new name for
8072 tui_set_layout_for_display_command.
8073 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8074 (tui_clear_win_detail): Don't initialise removed fields of
8075 win_info.
8076 * tui/tui-regs.c (tui_show_registers): Use new name for
8077 tui_set_layout_for_display_command.
8078 * tui/tui.h (tui_set_layout_for_display_command): Rename
8079 declaration to...
8080 (tui_set_layout_by_name): ...this.
8081 * printcmd.c (display_command): Remove tui related layout call,
8082 and reindent.
8083
8084 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8085
8086 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8087 (handle_inferior_event): New function.
8088
8089 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8090
8091 * ada-lang.c (to_fixed_array_type): Rename local variable
8092 typename into type_name.
8093
8094 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8095
8096 Fix ASAN crash for gdb.compile/compile.exp.
8097 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8098
8099 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8100
8101 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8102 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8103 * compile/compile-object-load.c (setup_sections, compile_object_load):
8104 Likewise.
8105 * compile/compile.c (compile_to_object): Likewise.
8106
8107 2015-05-16 Doug Evans <xdje42@gmail.com>
8108
8109 * NEWS: Mention support for unbuffered Guile memory ports.
8110 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8111 (ioscm_lseek_address): Improve overflow calculation.
8112 (gdbscm_memory_port_fill_input): Add assert.
8113 (gdbscm_memory_port_write): Handle unbuffered ports.
8114 Handle large writes identical to Guile's fport_write.
8115 (gdbscm_memory_port_seek): Fix seeking past end check.
8116 (gdbscm_memory_port_close): Handle closing unbuffered port.
8117 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8118 (ioscm_init_memory_port): Handle unbuffered ports.
8119 (ioscm_reinit_memory_port): Ditto.
8120 (ioscm_init_memory_port): Update size calculation.
8121 (gdbscm_open_memory): Support zero sized ports.
8122
8123 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8124
8125 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8126 variable compiler warnings.
8127
8128 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8131
8132 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8133 Phil Muldoon <pmuldoon@redhat.com>
8134
8135 * NEWS (Changes since GDB 7.9): Add compile print.
8136 * compile/compile-c-support.c (add_code_header, add_code_footer)
8137 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8138 COMPILE_I_PRINT_VALUE_SCOPE.
8139 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8140 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8141 New.
8142 * compile/compile-object-load.c: Include block.h.
8143 (get_out_value_type): New function.
8144 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8145 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8146 OUT_VALUE_TYPE.
8147 * compile/compile-object-load.h (struct compile_module): Add fields
8148 out_value_addr and out_value_type.
8149 * compile/compile-object-run.c: Include valprint.h and compile.h.
8150 (struct do_module_cleanup): Add fields out_value_addr and
8151 out_value_type.
8152 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8153 COMPILE_I_PRINT_VALUE_SCOPE.
8154 (compile_object_run): Propagate out_value_addr and out_value_type.
8155 Pass OUT_VALUE_ADDR.
8156 * compile/compile.c: Include valprint.h.
8157 (compile_print_value, compile_print_command): New functions.
8158 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8159 (_initialize_compile): Update compile code help text. Install
8160 compile_print_command.
8161 * compile/compile.h (compile_print_value): New prototype.
8162 * defs.h (enum compile_i_scope_types): Add
8163 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8164
8165 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8166
8167 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8168 Rely on its parameter count.
8169 (compile_object_load): Replace lookup_minimal_symbol_text by
8170 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8171 return value.
8172 * compile/compile-object-load.h (struct compile_module): Replace
8173 func_addr by func_sym.
8174 * compile/compile-object-run.c: Include block.h.
8175 (compile_object_run): Reset module variable after it is freed. Use
8176 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8177
8178 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8179
8180 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8181 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8182 (c_compute_program): Call generate_register_struct after typedefs.
8183 * compile/compile-loc2c.c (push, pushf_register_address)
8184 (pushf_register): Cast to GCC_UINTPTR.
8185 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8186 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8187 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8188 * compile/compile.c (_initialize_compile): Enable warnings for
8189 COMPILE_ARGS.
8190
8191 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8192
8193 * cli/cli-script.c (execute_control_command): Update
8194 eval_compile_command caller.
8195 * compile/compile-object-load.c (compile_object_load): Add parameters
8196 scope and scope_data. Set them.
8197 * compile/compile-object-load.h (struct compile_module): Add fields
8198 scope and scope_data.
8199 (compile_object_load): Add parameters scope and scope_data.
8200 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8201 scope and scope_data.
8202 (compile_object_run): Propagate the fields scope and scope_data.
8203 * compile/compile.c (compile_file_command, compile_code_command):
8204 Update eval_compile_command callers.
8205 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8206 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8207 * defs.h (struct command_line): Add field scope_data.
8208
8209 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8210
8211 * printcmd.c (struct format_data): Move it to valprint.h.
8212 (print_command_parse_format, print_value): New functions from ...
8213 (print_command_1): ... here. Call them.
8214 * valprint.h (struct format_data): Move it here from printcmd.c.
8215 (print_command_parse_format, print_value): New declarations.
8216
8217 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8218
8219 * compile/compile-object-load.c (compile_object_load): Add
8220 COMPILE_DEBUG message.
8221
8222 2015-05-15 Jerome Guitton <guitton@adacore.com>
8223
8224 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8225 index to get element instead of enum value.
8226 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8227 of index to compute length, but enum values to compute bounds.
8228 (ada_array_length): Use enum position of index instead of enum value.
8229 (pos_atr): Move position computation to...
8230 (ada_evaluate_subexp): Use enum values to compute bounds.
8231 * gdbtypes.c (discrete_position): ...this new function.
8232 * gdbtypes.h (discrete_position): New function declaration.
8233 * valprint.c (val_print_array_elements): Call discrete_position
8234 to handle array indexed by non-contiguous enumeration types.
8235
8236 2015-05-15 Jerome Guitton <guitton@adacore.com>
8237
8238 * ada-lang.c (find_parallel_type_by_descriptive_type):
8239 Go through typedefs during lookup.
8240 (to_fixed_array_type): Add support for non-bit packed arrays
8241 as variable-length fields.
8242
8243 2015-05-15 Pedro Alves <palves@redhat.com>
8244 Simon Marchi <simon.marchi@ericsson.com>
8245
8246 * event-loop.c (gdb_notifier) <next_file_handler,
8247 next_poll_fds_index>: New fields.
8248 (get_next_file_handler_to_handle_and_advance): New function.
8249 (delete_file_handler): If deleting the next file handler to
8250 handle, advance to the next file handler.
8251 (gdb_wait_for_event): Bail early if no event fired. Poll file
8252 handlers in round-robin fashion.
8253
8254 2015-05-15 Pedro Alves <palves@redhat.com>
8255
8256 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8257 'private' to 'priv'.
8258
8259 2015-05-15 Pedro Alves <palves@redhat.com>
8260
8261 * nat/linux-nat.h: Include "target/waitstatus.h".
8262
8263 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8264
8265 * python/py-unwind.c (struct reg_info): Move out of ...
8266 (struct cached_frame_info): ... this scope.
8267 (pending_frame_object_type, unwind_info_object_type): Make extern.
8268
8269 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8270
8271 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8272 accumSize is never negative.
8273
8274 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8275
8276 * tui/tui-command.c: Remove include of <ctype.h>.
8277 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8278
8279 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8280
8281 * dwarf2read.c (die_needs_namespace): Return 1 for
8282 DW_TAG_inlined_subroutine.
8283
8284 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8285
8286 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8287 (regcache_cpy_no_passthrough): Make it static, add function comment.
8288 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8289 (regcache_cpy_no_passthrough): Remove declaration.
8290
8291 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8292
8293 * gdbthread.h (struct thread_control_state): Update comment for
8294 proceed_to_finish.
8295 * infcall.c (run_inferior_call): Update comment about
8296 proceed_to_finish.
8297 * infcmd.c (get_return_value): Update comment about stop_registers.
8298 (finish_forward): Update comment about proceed_to_finish.
8299 * infrun.c (stop_registers): Remove.
8300 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8301 * infrun.h (stop_registers): Remove.
8302
8303 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8304
8305 * infcall.c (struct dummy_frame_context_saver)
8306 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8307 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8308 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8309 New.
8310 (call_function_by_hand_dummy): Move discard_cleanups of
8311 inf_status_cleanup before dummy_frame_push. Call
8312 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8313 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8314 * infcall.h (struct dummy_frame_context_saver)
8315 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8316 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8317 New declarations.
8318 * infcmd.c: Include infcall.h.
8319 (get_return_value): Add parameter ctx_saver, use it instead of
8320 stop_registers.
8321 (print_return_value): Add parameter ctx_saver, pass it.
8322 (struct finish_command_continuation_args): Add field ctx_saver.
8323 (finish_command_continuation): Update print_return_value caller.
8324 (finish_command_continuation_free_arg): Free also ctx_saver.
8325 (finish_forward): Call dummy_frame_context_saver_setup.
8326 * inferior.h (struct dummy_frame_context_saver): New declaration.
8327 (get_return_value): Add parameter ctx_saver.
8328 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8329 get_return_value caller.
8330
8331 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8332
8333 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8334 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8335 (remove_dummy_frame): Process dtor_list.
8336 (pop_dummy_frame): Process dtor_list.
8337 (register_dummy_frame_dtor): Maintain dtor_list.
8338 (find_dummy_frame_dtor): Handle dtor_list.
8339 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8340 Update comments.
8341
8342 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8343
8344 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8345 registers_valid.
8346 (compile_object_run): Update do_module_cleanup caller.
8347 * dummy-frame.c: Include infcall.h.
8348 (struct dummy_frame): Update dtor comment.
8349 (remove_dummy_frame): Call dtor.
8350 (pop_dummy_frame): Update dtor caller.
8351 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8352 registers_valid.
8353
8354 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8355
8356 GDB 7.9.1 released.
8357
8358 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8359
8360 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8361 Xmethods now being able to specify a result type to that new
8362 sectioin.
8363
8364 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8365
8366 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8367 first before resizing the window.
8368 * tui/tui.c (tui_enable): Likewise.
8369
8370 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8371
8372 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8373 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8374 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8375 dummy_dtor parameter.
8376 * infcall.h: Include dummy-frame.h.
8377 (call_function_by_hand_dummy_dtor_ftype): Remove.
8378 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8379 parameter.
8380
8381 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8382
8383 PR gdb/17820
8384 * top.c (history_size_setshow_var): Change type to signed.
8385 Initialize to -2. Update documentation.
8386 (set_readline_history_size): Define.
8387 (set_history_size_command): Use it. Remove logic for handling
8388 out-of-range sizes.
8389 (init_history): Use set_readline_history_size(). Test for a
8390 value of -2 instead of 0 when determining whether to set a
8391 default history size.
8392 (init_main): Decode the argument of the "size" command as a
8393 zuinteger_unlimited.
8394
8395 2015-05-12 Doug Evans <dje@google.com>
8396
8397 * dwarf2read.c (struct file_entry): Tweak comments.
8398 (get_debug_line_section): Tweak comments.
8399
8400 2015-05-12 Don Breazeal <donb@codesourcery.com>
8401
8402 * NEWS: Announce fork support in the RSP and support
8403 for fork debugging in extended mode.
8404
8405 2015-05-12 Don Breazeal <donb@codesourcery.com>
8406
8407 * remote.c (remote_insert_fork_catchpoint): New function.
8408 (remote_remove_fork_catchpoint): New function.
8409 (remote_insert_vfork_catchpoint): New function.
8410 (remote_remove_vfork_catchpoint): New function.
8411 (pending_fork_parent_callback): New function.
8412 (remove_new_fork_child): New function.
8413 (remote_update_thread_list): Call remote_notif_get_pending_events
8414 and remove_new_fork_child.
8415 (extended_remote_kill): Kill fork child when killing the
8416 parent before follow_fork completes.
8417 (init_extended_remote_ops): Initialize target vector with
8418 new fork catchpoint functions.
8419
8420 2015-05-12 Don Breazeal <donb@codesourcery.com>
8421
8422 * remote.c (remove_vfork_event_p): New function.
8423 (remote_follow_fork): Add vfork event type to event checking.
8424 (remote_parse_stop_reply): New stop reasons "vfork" and
8425 "vforkdone" for RSP 'T' Stop Reply Packet.
8426
8427 2015-05-12 Don Breazeal <donb@codesourcery.com>
8428
8429 * linux-nat.c (linux_nat_ptrace_options): New function.
8430 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8431 Call linux_nat_ptrace_options and use different argument to
8432 linux_enable_event_reporting.
8433 (_initialize_linux_nat): Delete call to
8434 linux_ptrace_set_additional_flags.
8435 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8436 supported_ptrace_options.
8437 (additional_flags): Delete variable.
8438 (linux_check_ptrace_features): Use supported_ptrace_options.
8439 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8440 Likewise, and remove additional_flags check.
8441 (linux_enable_event_reporting): Change 'attached' argument to
8442 'options'. Use supported_ptrace_options.
8443 (ptrace_supports_feature): Change comment. Use
8444 supported_ptrace_options.
8445 (linux_ptrace_set_additional_flags): Delete function.
8446 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8447 Delete function prototype.
8448 * remote.c (remote_fork_event_p): New function.
8449 (remote_detach_pid): New function.
8450 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8451 if doing detach-on-fork.
8452 (remote_follow_fork): New function.
8453 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8454 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8455 (init_extended_remote_ops): Initialize to_follow_fork.
8456
8457 2015-05-12 Don Breazeal <donb@codesourcery.com>
8458
8459 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8460 from static to extern.
8461 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8462 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8463 * PACKET_vfork_event_feature>: New enumeration constants.
8464 (remote_protocol_features): Add table entries for new packets.
8465 (remote_query_supported): Add new feature queries to qSupported
8466 packet.
8467
8468 2015-05-12 Gary Benson <gbenson@redhat.com>
8469
8470 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8471 for fake PIDs as well as real ones.
8472 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8473
8474 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8475
8476 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8477 * python/py-value.c (valpy_reference_value): New function.
8478 (valpy_const_value): Likewise.
8479 (value_object_methods): Add new methods.
8480 * value.c (make_cv_value): New function.
8481 * value.h (make_cv_value): Declare.
8482
8483 2015-05-08 Yao Qi <yao@codesourcery.com>
8484 Sandra Loosemore <sandra@codesourcery.com>
8485
8486 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8487 to 'lh->include_dirs' before accessing to it.
8488 (psymtab_include_file_name): Likewise.
8489 (dwarf_decode_lines_1): Likewise.
8490 (dwarf_decode_lines): Likewise.
8491 (file_file_name): Likewise.
8492
8493 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8494
8495 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8496 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8497 (nios2_linux_rt_sigreturn_init): Adjust base address of
8498 register save area.
8499
8500 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8501
8502 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8503 "trap 31" as the breakpoint instruction on all targets.
8504
8505 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8506
8507 * infcmd.c (print_return_value): Remove unused declaration.
8508
8509 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8510
8511 * dwarf2read.c (attr_to_dynamic_prop)
8512 <DW_AT_data_member_location>: Use read_type_die isntead of
8513 get_die_type.
8514
8515 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8516
8517 * ada-lang.c (ada_convert_actual): Add handling of formals
8518 passed inside an aligner type.
8519
8520 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8521
8522 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8523
8524 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8525
8526 PR python/18291
8527 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8528 Print xmethod matcher status.
8529
8530 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8531
8532 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8533 register in the regcache when treating the PSWM register, and vice
8534 versa.
8535
8536 2015-05-07 Gary Benson <gbenson@redhat.com>
8537
8538 * linux-thread-db.c (struct thread_db_info)
8539 <td_ta_map_id2thr_p>: Remove field.
8540 (try_thread_db_load_1): Remove initialization for the above.
8541
8542 2015-05-07 Gary Benson <gbenson@redhat.com>
8543
8544 * linux-thread-db.c (struct thread_db_info)
8545 <td_thr_validate_p>: Remove field.
8546 (try_thread_db_load_1): Remove initialization for the above.
8547
8548 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8549
8550 * compile/compile-object-load.c (compile_object_load): Support
8551 mst_text_gnu_ifunc.
8552
8553 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8554
8555 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8556 const. Use new variables for the const compatibility.
8557 (eval_compile_command): Make the cmd_string parameter const.
8558 * compile/compile.h (eval_compile_command): Make the cmd_string
8559 parameter const.
8560
8561 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8562
8563 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8564 comment.
8565 * top.c (deprecated_init_ui_hook): Delete.
8566 (gdb_init): Remove handling of deprecated_init_ui_hook.
8567 * interps.c (clear_interpreter_hooks): Remove handling of
8568 deprecated_init_ui_hook.
8569 * main.c (captured_main): Update comment.
8570
8571 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8572
8573 * solib.c (_initialize_solib): Add "info dll" alias creation.
8574 * windows-nat.c (set_windows_aliases): Delete.
8575 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8576 assignment.
8577 * NEWS: Add news entry about "info dll" now being available
8578 on all platforms.
8579
8580 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8581
8582 * ada-lang.c (value_assign_to_component): Reformat and improve
8583 documentation. Remove all trailing spaces.
8584
8585 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8586
8587 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8588 Stop counting inlined frames as soon as an out-of-line function
8589 is found.
8590
8591 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8592
8593 * dwarf2read.c (inherit_abstract_dies): Skip
8594 DW_TAG_GNU_call_site dies while inheriting children of an
8595 abstract DIE into a scope.
8596 (read_lexical_block_scope): Inherit abstract DIE's for
8597 lexical scopes.
8598
8599 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8600
8601 * ada-valprint.c (val_print_packed_array_elements): Delete
8602 variable "len". Add a type-length check when comparing two
8603 consecutive elements of the array. Use the element's actual
8604 length in call to value_contents_eq.
8605 * ada-lang.c (ada_value_primitive_packed_val): Always return
8606 a value whose type has been resolved.
8607
8608 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8609
8610 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8611 BIT_SIZE and LEN if the size of the resolved type is smaller
8612 than BIT_SIZE * HOST_CHAR_BIT.
8613
8614 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8615
8616 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8617 correct address in call to value_at. Adjust call to
8618 value_address accordingly.
8619
8620 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8621
8622 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8623 to print it.
8624
8625 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8626
8627 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8628 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8629 pinfo->valaddr.
8630 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8631 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8632 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8633 Add handling of addr_stack->valaddr.
8634 (resolve_dynamic_type): Add "valaddr" parameter.
8635 Set pinfo.valaddr field.
8636 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8637 resolve_dynamic_type.
8638 (ada_discrete_type_low_bound): Likewise.
8639 * findvar.c (default_read_var_value): Likewise.
8640 * value.c (value_from_contents_and_address): Likewise.
8641
8642 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8643
8644 * gdbtypes.c (resolve_dynamic_array): Use
8645 create_array_type_with_stride instead of create_array_type.
8646
8647 2015-04-30 DJ Delorie <dj@redhat.com>
8648
8649 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8650 rl78_decode_opcode
8651
8652 2015-04-29 Doug Evans <dje@google.com>
8653
8654 PR python/18285
8655 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8656 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8657 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8658 * extension-priv.h (struct extension_language_ops)
8659 <get_xmethod_result_type>: New member.
8660 * extension.c (get_xmethod_result_type): New function.
8661 * extension.h (get_xmethod_result_type): Declare.
8662 * python/py-xmethods.c (get_result_type_method_name): New static
8663 global.
8664 (py_get_result_type_method_name): Ditto.
8665 (gdbpy_get_xmethod_result_type): New function.
8666 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8667 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8668 * python/python.c (python_extension_ops): Add
8669 gdbpy_get_xmethod_result_type.
8670 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8671 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8672 xmethods.
8673 (value_x_unop): Ditto.
8674 * value.c (result_type_of_xmethod): New function.
8675 * value.h (result_type_of_xmethod): Declare.
8676
8677 2015-04-29 Gary Benson <gbenson@redhat.com>
8678
8679 * solib.c (solib_find_1): Allow fd argument to be NULL.
8680 (exec_file_find): Update comment.
8681 (solib_find): Likewise.
8682 * exec.c (exec_file_locate_attach): Use NULL as fd
8683 argument to exec_file_find to avoid having to close
8684 the opened file.
8685 * infrun.c (follow_exec): Likewise.
8686
8687 2015-04-28 Doug Evans <dje@google.com>
8688
8689 PR python/18299
8690 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8691 name or __name__ attributes. Handle gdb module as first argument.
8692
8693 2015-04-28 Doug Evans <dje@google.com>
8694
8695 PR python/18089
8696 * python/py-prettyprint.c (print_children): Verify result of children
8697 iterator. Provide better error message.
8698 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8699 * python/python.c (gdbpy_print_python_errors_p): New function.
8700
8701 2015-04-28 Doug Evans <dje@google.com>
8702
8703 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8704
8705 2015-04-28 Sasha Smundak <asmundak@google.com>
8706
8707 * NEWS: Mention gdb.Type.optimized_out method.
8708 * python/py-type.c (typy_optimized_out): New function.
8709
8710 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8711
8712 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8713
8714 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8715
8716 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8717 (initialize_utils): Move call of init_page_info() to ...
8718 * top.c (gdb_init): ... here.
8719
8720 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8721
8722 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8723 (tui_sigwinch_handler): Still update our idea of
8724 the terminal's width and height even when TUI is not active.
8725
8726 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8727
8728 * utils.h (set_screen_width_and_height): Declare.
8729 * utils.c (set_screen_width_and_height): Define.
8730 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8731
8732 2015-04-28 Gary Benson <gbenson@redhat.com>
8733
8734 * infrun.c (solist.h): New include.
8735 (follow_exec): Use exec_file_find to prefix execd_pathname
8736 with gdb_sysroot.
8737
8738 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8739
8740 * tui/tui-source.c (tui_set_source_content): Avoid calling
8741 strcpy() when offset is 0.
8742
8743 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8744
8745 PR gdb/18155
8746 * tui/tui-data.c (tui_free_window): Don't free the locator
8747 window when passed an SRC_WIN or a DISASSEM_WIN.
8748
8749 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8750
8751 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8752 (tui_win_content): Move declaration.
8753 (struct tui_gen_win_info): Give 'content' field the
8754 type tui_win_content.
8755 * tui/tui-data.c (init_content_element): Remove redundant and
8756 erroneous casts.
8757 (tui_add_content_elements): Remove erroneous cast.
8758 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8759 casts.
8760 (tui_get_begin_asm_address): Likewise.
8761 * tui/tui-regs.c (tui_show_registers): Likewise.
8762 (tui_show_register_group): Likewise.
8763 (tui_display_registers_from): Likewise.
8764 (tui_check_register_values): Likewise.
8765 * tui/tui-source.c (tui_set_source_content): Likewise.
8766 (tui_set_source_content_nil): Likewise.
8767 (tui_source_is_displayed): Likewise.
8768 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8769 (tui_set_locator_fullname): Likewise.
8770 (tui_set_locator_info): Likewise.
8771 (tui_show_frame_info): Likewise.
8772 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8773 (tui_show_source_line): Likewise.
8774 (tui_horizontal_source_scroll): Likewise.
8775 (tui_update_breakpoint_info): Likewise.
8776 (tui_set_exec_info_content): Likewise.
8777 (tui_show_exec_info_content): Likewise.
8778 (tui_alloc_source_buffer): Likewise.
8779 (tui_line_is_displayed): Likewise.
8780 (tui_addr_is_displayed): Likewise.
8781
8782 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8783
8784 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8785 event if PL_FLAG_EXEC is set.
8786 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8787 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8788 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8789 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8790 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8791
8792 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8793
8794 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8795 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8796 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8797 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8798 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8799 [PT_LWPINFO] (fbsd_wait): New function.
8800 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8801 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8802 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8803 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8804 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8805 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8806 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8807 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8808 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8809 "fbsd_wait".
8810 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8811 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8812 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8813 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8814 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8815 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8816 Set "to_post_attach" to "fbsd_post_attach".
8817
8818 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8819
8820 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8821 (fbsd_find_memory_regions): Mark static.
8822 (fbsd_nat_add_target): New function.
8823 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8824 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8825 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8826 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8827 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8828 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8829
8830 2015-04-27 Gary Benson <gbenson@redhat.com>
8831
8832 * objfiles.c (allocate_objfile): Do not attempt to expand name
8833 if name is a "target:" filename.
8834 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8835 to load auto-load scripts for objfiles with "target:" filenames.
8836
8837 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8838
8839 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8840 (enum s390_vector_abi_kind): New enum.
8841 (struct gdbarch_tdep)<vector_abi>: New field.
8842 (s390_effective_inner_type): Add parameter min_size. Stop
8843 unwrapping if the inner type is smaller than min_size.
8844 (s390_function_arg_float): Adjust call to
8845 s390_effective_inner_type.
8846 (s390_function_arg_vector): New function.
8847 (s390_function_arg_integer): Adjust comment.
8848 (struct s390_arg_state)<vr>: New field.
8849 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8850 arguments according to vector ABI when appropriate.
8851 (s390_push_dummy_call): Initialize the argument state's field
8852 'vr'. Adjust calls to s390_handle_arg.
8853 (s390_register_return_value): Handle vector return values.
8854 (s390_return_value): Apply the "register" return value convention
8855 to a vector when appropriate.
8856 (s390_gdbarch_init): Initialize tdep->vector_abi.
8857 * NEWS: Announce S390 vector ABI support.
8858
8859 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8860
8861 * s390-linux-tdep.c (s390_return_value_convention): Remove
8862 function. Inline its logic...
8863 (s390_return_value): ...here. Instead, move the handling of the
8864 "register" return value convention...
8865 (s390_register_return_value): ...here. New function.
8866
8867 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8868
8869 * s390-linux-tdep.c
8870 (is_float_singleton): Remove function. Move the "singleton" part
8871 of the logic...
8872 (s390_effective_inner_type): ...here. New function.
8873 (is_float_like): Remove function. Inline its logic...
8874 (s390_function_arg_float): ...here.
8875 (is_pointer_like, is_integer_like, is_struct_like): Remove
8876 functions. Inline their logic...
8877 (s390_function_arg_integer): ...here.
8878 (s390_function_arg_pass_by_reference): Remove function.
8879 (extend_simple_arg): Remove function.
8880 (alignment_of): Remove function.
8881 (struct s390_arg_state): New structure.
8882 (s390_handle_arg): New function.
8883 (s390_push_dummy_call): Move parameter placement logic to the new
8884 function s390_handle_arg. Call it for calculating the stack area
8885 sizes first, and again for actually writing the parameters.
8886
8887 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8888
8889 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8890 false if the argument is zero.
8891
8892 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8893
8894 * ada-lang.c (template_to_static_fixed_type): Return input type
8895 when it is already fixed. Cache the input type itself when not
8896 creating a static fixed copy. Make it explicit that we never
8897 molestate the input type.
8898 * gdbtypes.c (resolve_dynamic_struct): Reset the
8899 TYPE_TARGET_TYPE field for resolved copies.
8900
8901 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8902
8903 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8904 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8905 (template_to_static_fixed_type): Call ada_check_typedef only
8906 when necessary.
8907
8908 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * cli/cli-dump.c (srec_dump_command): Add internationalization
8911 mark ups.
8912 (ihex_dump_command): Likewise.
8913 (tekhex_dump_command): Likewise.
8914 (binary_dump_command): Likewise.
8915 (binary_append_command): Likewise.
8916
8917 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8918
8919 * cli/cli-dump.c (verilog_cmdlist): New variable.
8920 (dump_verilog_memory): New function.
8921 (dump_verilog_value): New function.
8922 (verilog_dump_command): New function.
8923 (_initialize_cli_dump): Add new commands to support verilog dump
8924 format.
8925 * NEWS: Add entry for "dump verilog".
8926
8927 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8928
8929 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8930 descriptive type when there is none.
8931
8932 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8933
8934 * tui/tui-win.c (tui_async_resize_screen): Call
8935 rl_resize_terminal().
8936
8937 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8938
8939 * windows-nat.c (handle_output_debug_string): Don't change
8940 current_event.dwThreadId.
8941 (get_windows_debug_event): Use thread_id, rather than relying on
8942 current_event.dwThreadId being changed.
8943
8944 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8945
8946 * windows-nat.c (windows_continue): Report an error if
8947 ContinueDebugEvent() fails.
8948
8949 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8950
8951 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8952
8953 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8954
8955 * windows-nat.c (get_windows_debug_event): Replace retval with
8956 thread_id throughout. Update stale comment.
8957
8958 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8959
8960 * windows-nat.c (get_windows_debug_event): Don't use ternary
8961 conditional operator.
8962
8963 2015-04-21 Pierre Muller <muller@sourceware.org>
8964
8965 PR pascal/17815
8966 p-exp.y (yylex): Reorganize code to return the matched pattern
8967 for a field of this.
8968
8969 2015-04-21 Gary Benson <gbenson@redhat.com>
8970
8971 * common/fileio.h (fileio_to_host_openflags): New declaration.
8972 * common/fileio.c (fcntl.h): New include.
8973 (fileio_to_host_openflags): New function, factored out from...
8974 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8975 Single use updated.
8976
8977 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8978
8979 * rl78-tdep.c (RL78_SP_ADDR): Define.
8980 (opc_reg_to_gdb_regnum): New static function.
8981 (rl78_analyze_prologue): Recognize instructions forming slightly
8982 more interesting prologues.
8983
8984 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8985
8986 Revert:
8987 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8988 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8989 TYPE_CODE_REF types so that they are not considered as dynamic
8990 depending on the referenced type.
8991 (resolve_dynamic_type_internal): Likewise.
8992
8993 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8994
8995 Revert:
8996 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8997 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8998 "top_level" parameter.
8999 (resolve_dynamic_type_internal): Remove the unused "top_level"
9000 parameter. Update call to is_dynamic_type_internal.
9001 (is_dynamic_type): Update call to is_dynamic_type_internal.
9002 (resolve_dynamic_range): Update call to
9003 resolve_dynamic_type_internal.
9004 (resolve_dynamic_union): Likewise.
9005 (resolve_dynamic_struct): Likewise.
9006 (resolve_dynamic_type): Likewise.
9007
9008 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9009
9010 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9011 xmalloc.
9012
9013 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9014
9015 * reply_mig_hack.awk: Robustify parsing.
9016
9017 * reply_mig_hack.awk: Don't bother to declare an intermediate
9018 function pointer variable.
9019
9020 2015-04-17 Doug Evans <dje@google.com>
9021
9022 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9023 to "exec_displacement" to avoid confusion with inner use of the name.
9024
9025 2015-04-17 Pedro Alves <palves@redhat.com>
9026
9027 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9028 if HW point of TYPE isn't supported.
9029
9030 2015-04-17 Yao Qi <yao.qi@linaro.org>
9031 Pedro Alves <palves@redhat.com>
9032
9033 * target.h (target_can_use_hardware_watchpoint): Update comments.
9034 Remove trailing ";".
9035
9036 2015-04-17 Gary Benson <gbenson@redhat.com>
9037
9038 * remote.c (remote_add_inferior): New argument try_open_exec.
9039 If nonzero, attempt to open the inferior's executable file as
9040 the main executable if no main executable is open already.
9041 All callers updated.
9042 * NEWS: Mention that GDB now supports automatic location and
9043 retrieval of executable + files from remote targets.
9044
9045 2015-04-17 Gary Benson <gbenson@redhat.com>
9046
9047 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9048 * remote.c (PACKET_qXfer_exec_file): Likewise.
9049 (remote_protocol_features): Register the
9050 "qXfer:exec-file:read" feature.
9051 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9052 (remote_pid_to_exec_file): New function.
9053 (init_remote_ops): Initialize to_pid_to_exec_file.
9054 (_initialize_remote): Register new "set/show remote
9055 pid-to-exec-file-packet" command.
9056 * NEWS: Announce new qXfer:exec-file:read packet.
9057
9058 2015-04-17 Gary Benson <gbenson@redhat.com>
9059
9060 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9061 New declaration.
9062 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9063 New function, factored out from...
9064 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9065
9066 2015-04-17 Gary Benson <gbenson@redhat.com>
9067
9068 * exec.c (solist.h): New include.
9069 (exec_file_locate_attach): Prefix absolute executable
9070 paths with gdb_sysroot if set.
9071 * NEWS: Mention that executable paths may be prepended
9072 with sysroot.
9073
9074 2015-04-17 Gary Benson <gbenson@redhat.com>
9075
9076 * solist.h (exec_file_find): New declaration.
9077 * solib.c (solib_find_1): New function, factored out from...
9078 (solib_find): ...here.
9079 (exec_file_find): New function.
9080
9081 2015-04-17 Gary Benson <gbenson@redhat.com>
9082
9083 * gdbcore.h (exec_file_locate_attach): New declaration.
9084 * exec.c (exec_file_locate_attach): New function, factored
9085 out from...
9086 * infcmd.c (attach_command_post_wait): ...here.
9087
9088 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9089
9090 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9091
9092 2015-04-16 Yao Qi <yao.qi@linaro.org>
9093
9094 * infrun.c (maybe_software_singlestep): Declare.
9095 (displaced_step_fixup): Call maybe_software_singlestep.
9096
9097 2015-04-15 Doug Evans <dje@google.com>
9098
9099 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9100
9101 2015-04-15 Doug Evans <dje@google.com>
9102
9103 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9104
9105 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9106
9107 * python/lib/gdb/command/unwinders.py: Add parentheses.
9108
9109 2015-04-15 Yao Qi <yao.qi@linaro.org>
9110
9111 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9112
9113 2015-04-15 Yao Qi <yao.qi@linaro.org>
9114
9115 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9116
9117 2015-04-15 Yao Qi <yao.qi@linaro.org>
9118
9119 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9120 dsc->insn_size instead of 4.
9121
9122 2015-04-14 Gary Benson <gbenson@redhat.com>
9123
9124 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9125 * minidebug.c (lzma_stat): Likewise.
9126 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9127 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9128
9129 2015-04-13 Stan Shebs <stanshebs@google.com>
9130
9131 * MAINTAINERS: Update my email address.
9132
9133 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9134
9135 * amd64-tdep.c (amd64_target_description): New function.
9136 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9137 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9138 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9139 x86 extended save area.
9140 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9141 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9142 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9143 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9144 "amd64fbsd_read_description".
9145 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9146 (amd64fbsd_supply_xstateregset): New function.
9147 (amd64fbsd_collect_xstateregset): New function.
9148 Add "amd64fbsd_xstateregset".
9149 (amd64fbsd_iterate_over_regset_sections): New function.
9150 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9151 "I386_FBSD_XSAVE_XCR0_OFFSET".
9152 Add "iterate_over_regset_sections" gdbarch method.
9153 Add "core_read_description" gdbarch method.
9154 * i386-tdep.c (i386_target_description): New function.
9155 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9156 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9157 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9158 x86 extended save area.
9159 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9160 * i386bsd-nat.h: Export i386bsd_xsave_len.
9161 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9162 (_initialize_i386fbsd_nat): Set "to_read_description" to
9163 "i386fbsd_read_description".
9164 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9165 (i386fbsd_core_read_description): New function.
9166 (i386fbsd_supply_xstateregset): New function.
9167 (i386fbsd_collect_xstateregset): New function.
9168 Add "i386fbsd_xstateregset".
9169 (i386fbsd_iterate_over_regset_sections): New function.
9170 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9171 "I386_FBSD_XSAVE_XCR0_OFFSET".
9172 Add "iterate_over_regset_sections" gdbarch method.
9173 Add "core_read_description" gdbarch method.
9174 * i386fbsd-tdep.h: New file.
9175
9176 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9177
9178 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9179 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9180 conditional.
9181 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9182 and lb.
9183 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9184 va.
9185 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9186 conditional.
9187 * defs.h (xdb_commands): Remove declaration.
9188 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9189 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9190 * infcmd.c (run_no_args_command, go_command): Remove.
9191 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9192 * infrun.c (xdb_handle_command): Remove.
9193 (_initialize_infrun): Remove xdb_commands for lz and z.
9194 * main.c (xdb_commands): Remove variable.
9195 (captured_main): Remove "xdb" from long_options.
9196 (print_gdb_help): Remove --xdb from help.
9197 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9198 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9199 * stack.c (backtrace_full_command, args_plus_locals_info)
9200 (current_frame_command): Remove.
9201 (_initialize_stack): Remove xdb_commands for t, T and l.
9202 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9203 * thread.c (_initialize_thread): Remove xdb_commands condition.
9204 * tui/tui-layout.c (tui_toggle_layout_command)
9205 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9206 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9207 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9208 (tui_scroll_regs_backward_command): Remove.
9209 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9210 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9211 (_initialize_tui_win): Remove xdb_commands for U and w.
9212 * utils.c (pagination_on_command, pagination_off_command): Remove.
9213 (initialize_utils): Remove xdb_commands for am and sm.
9214
9215 2015-04-10 Pedro Alves <palves@redhat.com>
9216
9217 * infrun.c (displaced_step_fixup): Switch to the event ptid
9218 earlier. If the thread stopped for a watchpoint and the
9219 target/arch has non-continuable watchpoints, cancel the displaced
9220 step.
9221 (resume): Don't start a displaced step if in-line step-over info
9222 is valid.
9223
9224 2015-04-10 Pedro Alves <palves@redhat.com>
9225
9226 * infrun.c (displaced_step_in_progress): New function.
9227 (do_target_resume): Advise target to report all signals if
9228 displaced stepping.
9229
9230 2015-04-10 Pedro Alves <palves@redhat.com>
9231
9232 PR gdb/18216
9233 * infrun.c (process_event_stop_test): Don't assume a step-resume
9234 is set if tp->stepped_breakpoint is true.
9235
9236 2015-04-10 Yao Qi <yao.qi@linaro.org>
9237
9238 * arm-tdep.c (install_alu_reg): Update comment.
9239 (thumb_copy_alu_reg): Remove local variable rn. Update
9240 debugging message. Use r2 instead of r1 in the modified
9241 instruction.
9242
9243 2015-04-10 Pedro Alves <palves@redhat.com>
9244
9245 PR gdb/13858
9246 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9247 linux_displaced_step_location as gdbarch_displaced_step_location
9248 hook.
9249 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9250 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9251 * linux-tdep.c (linux_displaced_step_location): New function,
9252 based on ppc_linux_displaced_step_location.
9253 * linux-tdep.h (linux_displaced_step_location): New declaration.
9254 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9255 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9256 Delete.
9257 (ppc_linux_init_abi): Install linux_displaced_step_location as
9258 gdbarch_displaced_step_location hook, even without Cell/B.E..
9259 (_initialize_ppc_linux_tdep): Don't install
9260 ppc_linux_inferior_created as inferior_created observer.
9261 * s390-linux-tdep.c (s390_gdbarch_init): Install
9262 linux_displaced_step_location as gdbarch_displaced_step_location
9263 hook.
9264
9265 2015-04-09 Gary Benson <gbenson@redhat.com>
9266
9267 * common/common-remote-fileio.h: Rename to...
9268 * common/fileio.h: ...this. Update all references.
9269 (remote_fileio_to_fio_error): Rename to...
9270 (host_to_fileio_error): ...this.
9271 (remote_fileio_to_be): Rename to...
9272 (host_to_bigendian): ...this. Update all callers.
9273 (remote_fileio_to_fio_uint): Rename to...
9274 (host_to_fileio_uint): ...this. Update all callers.
9275 (remote_fileio_to_fio_time): Rename to...
9276 (host_to_fileio_time): ...this. Update all callers.
9277 (remote_fileio_to_fio_stat): Rename to...
9278 (host_to_fileio_stat): ...this.
9279 Update all references.
9280 * common/common-remote-fileio.c: Rename to...
9281 * common/fileio.c: ...this. Update all references.
9282 (remote_fileio_to_fio_error): Rename to...
9283 (host_to_fileio_error): ...this. Update all callers.
9284 (remote_fileio_mode_to_target): Rename to...
9285 (fileio_mode_pack): ...this. Update all callers.
9286 (remote_fileio_to_fio_mode): Rename to...
9287 (host_to_fileio_mode): ...this. Update all callers.
9288 (remote_fileio_to_fio_ulong): Rename to...
9289 (host_to_fileio_ulong): ...this. Update all callers.
9290 (remote_fileio_to_fio_stat): Rename to...
9291 (host_to_fileio_stat): ...this. Update all callers.
9292
9293 2015-04-09 Andy Wingo <wingo@igalia.com>
9294
9295 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9296 (frame_functions): Bind gdbscm_frame_read_register to
9297 frame-read-register.
9298 * guile/lib/gdb.scm (frame-read-register): Export.
9299
9300 2015-04-09 Gary Benson <gbenson@redhat.com>
9301
9302 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9303 New declaration.
9304 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9305 New function, factored out the named functions below.
9306 * inf-child.c (gdb/fileio.h): Remove include.
9307 (common-remote-fileio.h): New include.
9308 (inf_child_errno_to_fileio_error): Remove function. Update
9309 all callers to use remote_fileio_to_fio_error.
9310 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9311
9312 2015-04-09 Andy Wingo <wingo@igalia.com>
9313
9314 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9315
9316 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9317
9318 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9319 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9320 * configure: Regenerated.
9321
9322 2015-04-09 Pedro Alves <palves@redhat.com>
9323
9324 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9325 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9326 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9327 * gnulib/import/Makefile.am: Update.
9328 * gnulib/import/Makefile.in: Update.
9329 * gnulib/import/m4/gnulib-cache.m4: Update.
9330 * gnulib/import/m4/gnulib-comp.m4: Update.
9331 * gnulib/import/m4/strtok_r.m4: New file.
9332 * gnulib/import/strtok_r.c: New file.
9333
9334 2015-04-09 Pedro Alves <palves@redhat.com>
9335
9336 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9337 "called too early to check prototype".
9338
9339 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 PR python/16699
9342 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9343 use a caching mechanism. Adjust comments and code to reflect
9344 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9345 (cmdpy_completer_handle_brkchars): Adjust call to
9346 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9347 (cmdpy_completer): Likewise.
9348
9349 2015-04-08 Yao Qi <yao.qi@linaro.org>
9350
9351 * spu-tdep.c (spu_gdbarch_init): Don't call
9352 set_gdbarch_cannot_step_breakpoint.
9353
9354 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9355
9356 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9357
9358 2015-04-07 Pedro Alves <palves@redhat.com>
9359
9360 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9361 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9362 (delete_exited_threads): New declaration.
9363 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9364 * linux-nat.c (linux_nat_update_thread_list): New function.
9365 (linux_nat_add_target): Install it.
9366 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9367 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9368 (delete_exited_threads): New function.
9369
9370 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9371
9372 * infrun.c (resume) <displaced stepping debug output>: Get the
9373 leader thread's regcache, not resume_ptid's.
9374
9375 2015-04-06 Doug Evans <xdje42@gmail.com>
9376
9377 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9378 VAR_DOMAIN.
9379 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9380 Include symbol domain in debugging output.
9381
9382 2015-04-06 Pedro Alves <palves@redhat.com>
9383 Bernd Edlinger <bernd.edlinger@hotmail.de>
9384
9385 * configure.ac: Remove the mingw32-specific stub-termcap.o
9386 fallback, and instead fallback to the stub termcap on all hosts.
9387 * configure: Regenerate.
9388 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9389 symbols.
9390
9391 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9392
9393 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9394 "top_level" parameter.
9395 (resolve_dynamic_type_internal): Remove the unused "top_level"
9396 parameter. Update call to is_dynamic_type_internal.
9397 (is_dynamic_type): Update call to is_dynamic_type_internal.
9398 (resolve_dynamic_range): Update call to
9399 resolve_dynamic_type_internal.
9400 (resolve_dynamic_union): Likewise.
9401 (resolve_dynamic_struct): Likewise.
9402 (resolve_dynamic_type): Likewise.
9403
9404 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9405
9406 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9407 TYPE_CODE_REF types so that they are not considered as dynamic
9408 depending on the referenced type.
9409 (resolve_dynamic_type_internal): Likewise.
9410
9411 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9412
9413 * Makefile.in (top_srcdir): New.
9414 * configure: Regenerated.
9415
9416 2015-04-02 Gary Benson <gbenson@redhat.com>
9417
9418 * NEWS: Announce the new default sysroot of "target:".
9419
9420 2015-04-02 Gary Benson <gbenson@redhat.com>
9421
9422 * main.c (captured_main): Set gdb_sysroot to "target:"
9423 if not otherwise set.
9424
9425 2015-04-02 Gary Benson <gbenson@redhat.com>
9426
9427 * exec.c (exec_file_attach): Support "target:" filenames.
9428
9429 2015-04-02 Gary Benson <gbenson@redhat.com>
9430
9431 * solib.c (solib_find): Strip "target:" prefix from sysroot
9432 if accessing local files.
9433
9434 2015-04-02 Gary Benson <gbenson@redhat.com>
9435
9436 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9437 checks and error messages.
9438
9439 2015-04-02 Gary Benson <gbenson@redhat.com>
9440
9441 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9442 (remote_filename_p): Remove declaration.
9443 (remote_bfd_open): Likewise.
9444 * remote.c (remote_bfd_iovec_open): Remove function.
9445 (remote_bfd_iovec_close): Likewise.
9446 (remote_bfd_iovec_pread): Likewise.
9447 (remote_bfd_iovec_stat): Likewise.
9448 (remote_filename_p): Likewise.
9449 (remote_bfd_open): Likewise.
9450 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9451 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9452 (gdb_bfd_open_maybe_remote): Remove function.
9453 (symfile_bfd_open): Replace remote filename check with
9454 target filename check.
9455 (reread_symbols): Use gdb_bfd_open.
9456 * build-id.c (gdbcore.h): New include.
9457 (build_id_to_debug_bfd): Use gdb_bfd_open.
9458 * infcmd.c (attach_command_post_wait): Remove remote filename
9459 check.
9460 * solib.c (solib_find): Replace remote-specific handling with
9461 target-specific handling. Update comments where necessary.
9462 (solib_bfd_open): Replace remote-specific handling with
9463 target-specific handling.
9464 (gdb_sysroot_changed): New function.
9465 (_initialize_solib): Call the above when gdb_sysroot changes.
9466 * windows-tdep.c (gdbcore.h): New include.
9467 (windows_xfer_shared_library): Use gdb_bfd_open.
9468
9469 2015-04-02 Gary Benson <gbenson@redhat.com>
9470
9471 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9472 (is_target_filename): New declaration.
9473 (gdb_bfd_has_target_filename): Likewise.
9474 (gdb_bfd_open): Update documentation comment.
9475 * gdb_bfd.c (target.h): New include.
9476 (gdb/fileio.h): Likewise.
9477 (is_target_filename): New function.
9478 (gdb_bfd_has_target_filename): Likewise.
9479 (fileio_errno_to_host): Likewise.
9480 (gdb_bfd_iovec_fileio_open): Likewise.
9481 (gdb_bfd_iovec_fileio_pread): Likewise.
9482 (gdb_bfd_iovec_fileio_close): Likewise.
9483 (gdb_bfd_iovec_fileio_fstat): Likewise.
9484 (gdb_bfd_open): Use target fileio to access paths prefixed
9485 with "target:" where necessary.
9486
9487 2015-04-02 Gary Benson <gbenson@redhat.com>
9488
9489 * target.h (struct target_ops) <to_filesystem_is_local>:
9490 New field.
9491 (target_filesystem_is_local): New macro.
9492 * target-delegates.c: Regenerate.
9493 * remote.c (remote_filesystem_is_local): New function.
9494 (init_remote_ops): Initialize to_filesystem_is_local.
9495
9496 2015-04-02 Gary Benson <gbenson@redhat.com>
9497
9498 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9499 (target_fileio_fstat): New declaration.
9500 * target.c (target_fileio_fstat): New function.
9501 * inf-child.c (inf_child_fileio_fstat): Likewise.
9502 (inf_child_target): Initialize to_fileio_fstat.
9503 * remote.c (init_remote_ops): Likewise.
9504
9505 2015-04-01 Sasha Smundak <asmundak@google.com>
9506
9507 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9508 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9509 (py-unwind.o): New recipe.
9510 * NEWS: mention Python frame unwinding.
9511 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9512 gdb/unwinder.py and gdb/command/unwinder.py
9513 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9514 list.
9515 (execute_unwinders): New function.
9516 * python/lib/gdb/command/unwinders.py: New file.
9517 * python/lib/gdb/unwinder.py: New file.
9518 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9519 (objfpy_dealloc): Decrement frame_unwinders reference count.
9520 (objfpy_initialize): Create frame_unwinders list.
9521 (objfpy_get_frame_unwinders): New function.
9522 (objfpy_set_frame_unwinders): Ditto.
9523 (objfile_getset): Add frame_unwinders attribute to Objfile.
9524 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9525 (pspy_dealloc): Decrement frame_unwinders reference count.
9526 (pspy_initialize): Create frame_unwinders list.
9527 (pspy_get_frame_unwinders): New function.
9528 (pspy_set_frame_unwinders): Ditto.
9529 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9530 * python/py-unwind.c: New file.
9531 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9532 (objpy_get_frame_unwinders): New prototype.
9533 (gdbpy_initialize_unwind): New prototype.
9534 * python/python.c (gdbpy_apply_type_printers): Call
9535 gdbpy_initialize_unwind.
9536
9537 2015-04-01 Pedro Alves <palves@redhat.com>
9538
9539 * infrun.c (resume): Check currently_stepping after clearing
9540 stepped_breakpoint, not before.
9541
9542 2015-04-01 Pedro Alves <palves@redhat.com>
9543
9544 * infrun.c (print_target_wait_results): Print all the ptid
9545 elements.
9546
9547 2015-04-01 Pedro Alves <palves@redhat.com>
9548
9549 * infrun.c (keep_going): Also discard cleanups if inserting
9550 breakpoints fails.
9551
9552 2015-04-01 Pedro Alves <palves@redhat.com>
9553
9554 * infrun.c (wait_for_inferior): Install the
9555 finish_thread_state_cleanup cleanup across the whole function, not
9556 just around handle_inferior_event.
9557
9558 2015-04-01 Pedro Alves <palves@redhat.com>
9559
9560 * infrun.c (resume) <step past permanent breakpoint>: Use
9561 do_target_resume.
9562
9563 2015-04-01 Pedro Alves <palves@redhat.com>
9564
9565 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9566
9567 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9568
9569 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9570
9571 2015-04-01 Pedro Alves <palves@redhat.com>
9572
9573 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9574 list if it was marked exited.
9575
9576 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9577
9578 * configure: Regenerated.
9579
9580 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9581 Jan Kratochvil <jan.kratochvil@redhat.com>
9582 Oleg Nesterov <oleg@redhat.com>
9583
9584 PR corefiles/16092
9585 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9586 New enum identifying the various options of the coredump_filter
9587 file.
9588 (struct smaps_vmflags): New struct.
9589 (use_coredump_filter): New variable.
9590 (decode_vmflags): New function.
9591 (mapping_is_anonymous_p): Likewise.
9592 (dump_mapping_p): Likewise.
9593 (linux_find_memory_regions_full): New variables
9594 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9595 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9596 parsing of its information. Implement memory mapping filtering
9597 based on its contents.
9598 (show_use_coredump_filter): New function.
9599 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9600 * NEWS: Mention the possibility of using the
9601 '/proc/PID/coredump_filter' file when generating a corefile.
9602 Mention new command 'set use-coredump-filter'.
9603
9604 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9605
9606 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9607 read_memory_unsigned_integer.
9608
9609 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9610
9611 * Makefile.in (ZLIB): New.
9612 (ZLIBINC): Likewise.
9613 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9614 (CLIBS): Add $(ZLIB).
9615 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9616 Add -lz to LIBS.
9617 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9618 * top.c (print_gdb_configuration): Remove --with-zlib and
9619 --without-zlib.
9620 * config.in: Regenerated.
9621 * configure: Likewise.
9622
9623 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9624
9625 * NEWS: Mention info os cpus support.
9626 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9627 (struct osdata_type): Add cpus entry, reorder the entries in
9628 alphabetical order.
9629
9630 2015-03-31 Matthias Klose <doko@ubuntu.com>
9631
9632 * compile/compile.c (compile_to_object): Allow triplets with or
9633 without vendor set.
9634
9635 2015-03-30 Doug Evans <dje@google.com>
9636
9637 PR c++/18141
9638 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9639 klass in VAR_DOMAIN.
9640
9641 2015-03-30 Gary Benson <gbenson@redhat.com>
9642
9643 * remote.c (remote_mourn_1): Remove function. Update all callers
9644 to use remote_mourn.
9645 (extended_remote_mourn_1): Remove function. Update all callers
9646 to use extended_remote_mourn.
9647 (extended_remote_attach_1): Remove function. Update all callers
9648 to use extended_remote_attach.
9649
9650 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9651
9652 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9653 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9654 (ALLDEPFILES): Add ft32-tdep.c.
9655 * configure.tgt: Add FT32 entry.
9656 * ft32-tdep.c: New file, FT32 target-dependent code.
9657 * ft32-tdep.h: New file, FT32 target-dependent code.
9658
9659 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9660
9661 Revert:
9662 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9663 Code cleanup.
9664 * printcmd.c (print_command_1): Move expr variable scope.
9665
9666 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9667
9668 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9669
9670 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9671
9672 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9673 sections.
9674
9675 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9676
9677 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9678 exception raised while parsing the probe arguments.
9679 Force parsing to be done using the C language parser.
9680 * expression.h (parse_expression_with_language): Declare.
9681 * parse.c (parse_expression_with_language): New function.
9682
9683 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9684
9685 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9686
9687 2015-03-26 Andy Wingo <wingo@igalia.com>
9688
9689 PR symtab/18148
9690 * dwarf2read.c (struct partial_die_info): Add has_const_value
9691 member.
9692 (add_partial_symbol): Don't punt on symbols that have const_value
9693 attributes.
9694 (read_partial_die): Detect DW_AT_const_value.
9695
9696 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9697
9698 Code cleanup.
9699 * printcmd.c (print_command_1): Move expr variable scope.
9700
9701 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9702
9703 Code cleanup.
9704 * printcmd.c (validate_format): Make the parameter cmdname const.
9705
9706 2015-03-26 Don Breazeal <donb@codesourcery.com>
9707
9708 * remote.c (_initialize_remote): Update comment.
9709
9710 2015-03-26 Pedro Alves <palves@redhat.com>
9711 Jon TURNEY <jon.turney@dronecode.org.uk>
9712
9713 * coffread.c (coff_symfile_read): When constructing the name of an
9714 import stub symbol from import symbol for amd64, only skip the
9715 char after _imp_ if the target is underscored (like i386) and the
9716 char is indeed the target's leading char.
9717
9718 2015-03-25 Pedro Alves <palves@redhat.com>
9719
9720 * target.h <to_async>: Replace 'callback' and 'context' parameters
9721 with boolean 'enable' parameter.
9722 (target_async): Replace CALLBACK and CONTEXT parameters with
9723 boolean ENABLE parameter.
9724 * inf-loop.c (inferior_event_handler): Adjust.
9725 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9726 (linux_nat_resume): Adjust.
9727 (async_client_callback, async_client_context): Delete.
9728 (handle_target_event): Call inferior_event_handler directly.
9729 (linux_nat_async): Replace 'callback' and 'context' parameters
9730 with boolean 'enable' parameter. Adjust. Remove references to
9731 async_client_callback and async_client_context.
9732 (linux_nat_close): Adjust.
9733 * record-btrace.c (record_btrace_async): Replace 'callback' and
9734 'context' parameters with boolean 'enable' parameter. Adjust.
9735 (record_btrace_resume): Adjust.
9736 * record-full.c (record_full_async): Replace 'callback' and
9737 'context' parameters with boolean 'enable' parameter. Adjust.
9738 (record_full_resume, record_full_core_resume): Adjust.
9739 * remote.c (struct remote_state) <async_client_callback,
9740 async_client_context>: Delete fields.
9741 (remote_start_remote, extended_remote_attach_1, remote_resume)
9742 (extended_remote_create_inferior): Adjust.
9743 (remote_async_serial_handler): Call inferior_event_handler
9744 directly.
9745 (remote_async): Replace 'callback' and 'context' parameters with
9746 boolean 'enable' parameter. Adjust.
9747 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9748 Adjust.
9749 * target-delegates.c: Regenerate.
9750
9751 2015-03-25 Gary Benson <gbenson@redhat.com>
9752 Pedro Alves <palves@redhat.com>
9753
9754 * target.c (fileio_ft_t): New typedef, define object vector.
9755 (fileio_fhandles): New static variable.
9756 (is_closed_fileio_fh): New macro.
9757 (lowest_closed_fd): New static variable.
9758 (acquire_fileio_fd): New function.
9759 (release_fileio_fd): Likewise.
9760 (fileio_fd_to_fh): New macro.
9761 (target_fileio_open): Wrap the file descriptor on success.
9762 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9763 (target_fileio_pread): Likewise.
9764 (target_fileio_close): Likewise.
9765
9766 2015-03-24 Pedro Alves <palves@redhat.com>
9767
9768 * thread.c (thread_apply_all_command): Take exited threads into
9769 account.
9770
9771 2015-03-24 Pedro Alves <palves@redhat.com>
9772
9773 * infrun.c (resume, proceed): Mention
9774 switch_back_to_stepped_thread, not switch_back_to_stepping.
9775
9776 2015-03-24 Pedro Alves <palves@redhat.com>
9777
9778 * infrun.c (user_visible_resume_ptid): Rewrite going from
9779 most-locked to unlocked instead of the opposite. Move comment ...
9780 * infrun.h (user_visible_resume_ptid): ... here.
9781
9782 2015-03-24 Pedro Alves <palves@redhat.com>
9783
9784 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9785 to resume the event lwp. Use the lwp's ptid instead of the passed
9786 in (maybe wildcard) ptid.
9787 (stop_wait_callback): Tweak debug log output.
9788 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9789 TRAP_TRACE.
9790 (linux_nat_filter_event): In debug output, distinguish a
9791 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9792 before trying to resume the lwp.
9793
9794 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9795
9796 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9797 pointer indirection.
9798 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9799 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9800
9801 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9802
9803 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9804 Renames DYN_ATTR_DATA_LOCATION.
9805 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9806 DYN_ATTR_DATA_LOCATION.
9807 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9808 instead of DYN_ATTR_DATA_LOCATION.
9809
9810 2015-03-24 Pedro Alves <palves@redhat.com>
9811
9812 * breakpoint.c (until_break_command): Adjust call to proceed.
9813 * gdbthread.h (struct thread_control_state) <stepping_command>:
9814 New field.
9815 * infcall.c (run_inferior_call): Adjust call to proceed.
9816 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9817 Adjust calls to proceed.
9818 (set_step_frame): Set the current thread's step_start_function
9819 here.
9820 (step_once): Adjust calls to proceed.
9821 (jump_command, signal_command, until_next_command)
9822 (finish_backward, finish_forward, proceed_after_attach_callback)
9823 (attach_command_post_wait): Adjust calls to proceed.
9824 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9825 (do_target_resume): New function, factored out from ...
9826 (resume): ... here. Remove 'step' parameter. Instead, check
9827 currently_stepping to determine whether the thread should be
9828 single-stepped.
9829 (proceed): Remove 'step' parameter and don't set the thread's
9830 step_start_function here. Adjust call to 'resume'.
9831 (handle_inferior_event): Adjust calls to 'resume'.
9832 (switch_back_to_stepped_thread): Use do_target_resume instead of
9833 'resume'.
9834 (keep_going): Adjust calls to 'resume'.
9835 * infrun.h (proceed): Remove 'step' parameter.
9836 (resume): Likewise.
9837 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9838 'resume'.
9839 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9840
9841 2015-03-24 Pedro Alves <palves@redhat.com>
9842
9843 * gdbthread.h (struct thread_control_state) <stepping_command>:
9844 New field.
9845 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9846 the thread's stepping_command field.
9847 * infrun.c (resume): Check the thread's stepping_command flag to
9848 determine which threads should be resumed. Rename 'entry_step'
9849 local to user_step.
9850 (clear_proceed_status_thread): Clear 'stepping_command'.
9851 (schedlock_applies): Change parameter type to struct thread_info
9852 pointer. Adjust.
9853 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9854 (switch_back_to_stepped_thread): Adjust calls to
9855 'schedlock_applies'.
9856 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9857
9858 2015-03-24 Pedro Alves <palves@redhat.com>
9859
9860 * infrun.c (step_start_function): Delete and ...
9861 * gdbthread.h (struct thread_control_state) <step_start_function>:
9862 ... now a field here.
9863 * infrun.c (clear_proceed_status_thread): Clear the thread's
9864 step_start_function.
9865 (proceed, process_event_stop_test, print_stop_event): Adjust.
9866
9867 2015-03-24 Pedro Alves <palves@redhat.com>
9868
9869 * infrun.c (proceed): No longer handle negative step.
9870
9871 2015-03-24 Gary Benson <gbenson@redhat.com>
9872
9873 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9874 (x86_linux_prepare_to_resume): Likewise.
9875 * x86-linux-nat.c (x86_linux_new_thread):
9876 Moved to nat/x86-linux.c.
9877 (x86_linux_prepare_to_resume): Likewise.
9878 * nat/x86-linux.c (x86_linux_new_thread): New function.
9879 (x86_linux_prepare_to_resume): Likewise.
9880
9881 2015-03-24 Gary Benson <gbenson@redhat.com>
9882
9883 * nat/x86-linux-dregs.h: New file.
9884 * nat/x86-linux-dregs.c: Likewise.
9885 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9886 (x86-linux-dregs.o): New rule.
9887 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9889 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9890 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9891 (x86_linux_dr_get): Likewise.
9892 (x86_linux_dr_set): Likewise.
9893 (x86_linux_dr_get_addr): Likewise.
9894 (x86_linux_dr_get_control): Likewise.
9895 (x86_linux_dr_get_status): Likewise.
9896 (update_debug_registers_callback): Likewise.
9897 (x86_linux_dr_set_control): Likewise.
9898 (x86_linux_dr_set_addr): Likewise.
9899 (x86_linux_update_debug_registers): Likewise.
9900
9901 2015-03-24 Gary Benson <gbenson@redhat.com>
9902
9903 * x86-linux-nat.c (x86_linux_update_debug_registers):
9904 New function, factored out from...
9905 (x86_linux_prepare_to_resume): ...this.
9906
9907 2015-03-24 Gary Benson <gbenson@redhat.com>
9908
9909 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9910 (x86_linux_dr_set): Likewise.
9911 (x86_linux_dr_get_addr): Likewise.
9912 (x86_linux_dr_get_control): Likewise.
9913 (x86_linux_dr_get_status): Likewise.
9914 (update_debug_registers_callback): Likewise.
9915 (x86_linux_dr_set_control): Likewise.
9916 (x86_linux_dr_set_addr): Likewise.
9917 (x86_linux_prepare_to_resume): Likewise.
9918 (x86_linux_new_thread): Likewise.
9919
9920 2015-03-24 Gary Benson <gbenson@redhat.com>
9921
9922 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9923 (x86_linux_new_thread): Rename argument.
9924
9925 2015-03-24 Gary Benson <gbenson@redhat.com>
9926
9927 * nat/x86-linux.h: New file.
9928 * nat/x86-linux.c: Likewise.
9929 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9930 (x86-linux.o): New rule.
9931 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9932 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9933 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9934 (lwp_set_arch_private_info): New declaration.
9935 (lwp_arch_private_info): Likewise.
9936 * linux-nat.c (lwp_set_arch_private_info): New function.
9937 (lwp_arch_private_info): Likewise.
9938 * x86-linux-nat.c: Include nat/x86-linux.h.
9939 (arch_lwp_info): Removed structure.
9940 (update_debug_registers_callback):
9941 Use lwp_set_debug_registers_changed.
9942 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9943 and lwp_set_debug_registers_changed.
9944 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9945
9946 2015-03-24 Gary Benson <gbenson@redhat.com>
9947
9948 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9949 (lwp_is_stopped): Likewise.
9950 (lwp_stop_reason): Likewise.
9951 * linux-nat.c (ptid_of_lwp): New function.
9952 (lwp_is_stopped): Likewise.
9953 (lwp_is_stopped_by_watchpoint): Likewise.
9954 * x86-linux-nat.c (update_debug_registers_callback):
9955 Use lwp_is_stopped.
9956 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9957 lwp_stop_reason.
9958
9959 2015-03-24 Gary Benson <gbenson@redhat.com>
9960
9961 * linux-nat.h (linux_stop_lwp): Move declaration to...
9962 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9963
9964 2015-03-24 Gary Benson <gbenson@redhat.com>
9965
9966 * linux-nat.h: Include nat/linux-nat.h.
9967 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9968 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9969 (iterate_over_lwps_ftype): New typedef.
9970 (iterate_over_lwps): New declaration.
9971 * linux-nat.h (iterate_over_lwps): Update comment. Use
9972 iterate_over_lwps_ftype. Update callback return value check.
9973
9974 2015-03-24 Gary Benson <gbenson@redhat.com>
9975
9976 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9977 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9978
9979 2015-03-24 Gary Benson <gbenson@redhat.com>
9980
9981 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9982 * linux-nat.c (current_lwp_ptid): New function.
9983 * x86-linux-nat.c: Include nat/linux-nat.h.
9984 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9985 (x86_linux_dr_get_control): Likewise.
9986 (x86_linux_dr_get_status): Likewise.
9987 (x86_linux_dr_set_control): Likewise.
9988 (x86_linux_dr_set_addr): Likewise.
9989
9990 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9991
9992 PR breakpoints/16466
9993 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9994
9995 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9996
9997 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9998 * ser-unix.c (hardwire_setparity): Likewise.
9999
10000 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10001
10002 * NEWS: Mention set/show serial parity command.
10003 * monitor.c (monitor_open): Call serial_setparity.
10004 * remote.c (remote_open_1): Likewise.
10005 * ser-base.c (ser_base_serparity): New function.
10006 * ser-base.h (ser_base_setparity): Add declaration.
10007 * ser-go32.c (dos_ops): Set "setparity" field.
10008 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10009 state.Parity.
10010 (ser_windows_setparity): New function.
10011 (hardwire_ops): Add ser_windows_setparity.
10012 (tty_ops): Add NULL for setparity field.
10013 (pipe_ops): Add ser_base_setparity.
10014 (tcp_ops): Likewise.
10015 * ser-pipe.c (pipe_ops): Likewise.
10016 * ser-tcp.c (tcp_ops): Likewise.
10017 * ser-unix.c (hardwire_setparity): Add declaration.
10018 (hardwire_raw): Don't reset PARENB flag.
10019 (hardwire_setparity): New function.
10020 (hardwire_ops): Add hardwire_setparity.
10021 * serial.c (serial_setparity): New function.
10022 (serial_parity): New global.
10023 (parity_none, parity_odd, parity_even, parity_enums, parity):
10024 New static globals.
10025 (set_parity): New function.
10026 (_initialize_serial): Add set/show serial parity commands.
10027 * serial.h (GDBPARITY_NONE): Define.
10028 (GDBPARITY_ODD): Define.
10029 (GDBPARITY_EVEN): Define.
10030 (serial_setparity) Add declaration.
10031 (struct serial_ops): Add setparity field.
10032 * target.h (serial_parity): Add declaration.
10033
10034 2015-03-23 Keith Seitz <keiths@redhat.com>
10035
10036 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10037
10038 2015-03-23 Keith Seitz <keiths@redhat.com>
10039
10040 * breakpoint.c (parse_breakpoint_sals): Use
10041 linespec_lexer_lex_keyword to ascertain if the user specified
10042 a NULL location.
10043 * linespec.c [IF_KEYWORD_INDEX]: Define.
10044 (linespec_lexer_lex_keyword): Export.
10045 (struct ls_parser) <keyword_ok>: Remove.
10046 A keyword is only a keyword if not followed by another keyword.
10047 (linespec_lexer_lex_one): Remove keyword_ok handling.
10048 Add comment explaining why the parsing stream is not advanced
10049 when a keyword is seen.
10050 (parse_linespec): Remove parser->keyword_ok.
10051 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10052
10053 2015-03-23 Keith Seitz <keiths@redhat.com>
10054
10055 PR gdb/18021
10056 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10057 if we find a static method with DW_AT_vtable_elem_location.
10058
10059 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10060
10061 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10062 before the second loop, to avoid undefined behavior. Reported by
10063 Anton Blanchard <anton@samba.org>.
10064
10065 2015-03-20 Keven Boell <keven.boell@intel.com>
10066
10067 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10068 data_location usage to linked list.
10069 (resolve_dynamic_type_internal): Adapt data_location to
10070 linked list.
10071 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10072 (copy_type_recursive, copy_type): Add copy of linked list.
10073 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10074 (struct dynamic_prop_list): New struct.
10075 * dwarf2read.c (set_die_type): Set data_location data.
10076
10077 2015-03-20 Pedro Alves <palves@redhat.com>
10078
10079 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10080 inner block and make it const.
10081 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10082
10083 2015-03-20 Pedro Alves <palves@redhat.com>
10084
10085 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10086 * breakpoint.h (set_breakpoint_condition): Update declaration.
10087
10088 2015-03-20 Pedro Alves <palves@redhat.com>
10089
10090 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10091
10092 2015-03-20 Pedro Alves <palves@redhat.com>
10093
10094 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10095
10096 2015-03-20 Pedro Alves <palves@redhat.com>
10097
10098 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10099
10100 2015-03-20 Pedro Alves <palves@redhat.com>
10101
10102 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10103 (nto_init_solib_absolute_prefix): Likewise.
10104
10105 2015-03-20 Pedro Alves <palves@redhat.com>
10106
10107 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10108 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10109
10110 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10111
10112 * config/djgpp/README: Remove gdb.hp.
10113
10114 2015-03-20 Yao Qi <yao.qi@linaro.org>
10115
10116 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10117 set_gdbarch_cannot_step_breakpoint.
10118
10119 2015-03-19 Pedro Alves <palves@redhat.com>
10120
10121 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10122 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10123 instead call perror_with_name.
10124 (check_ptrace_stopped_lwp_gone): New function.
10125 (linux_resume_one_lwp): Reimplement as wrapper around
10126 linux_resume_one_lwp_throw that swallows errors if the LWP is
10127 gone.
10128 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10129 swallows errors if the LWP is gone. Use
10130 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10131
10132 2015-03-19 Pedro Alves <palves@redhat.com>
10133
10134 * linux-nat.c (status_callback): Return early if the LWP has no
10135 status pending.
10136
10137 2015-03-19 Pedro Alves <palves@redhat.com>
10138
10139 * linux-nat.c (select_event_lwp_callback): Update comment to no
10140 longer mention SIGTRAP.
10141
10142 2015-03-18 Tristan Gingold <gingold@adacore.com>
10143
10144 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10145 redirection code to ...
10146 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10147 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10148
10149 2015-03-18 Gary Benson <gbenson@redhat.com>
10150
10151 (remote_protocol_features): Remove the "vFile:fstat" feature.
10152 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10153
10154 2015-03-11 Yao Qi <yao.qi@linaro.org>
10155
10156 PR tdep/18107
10157 * aarch64-linux-tdep.c: Include xml-syscall.h
10158 (aarch64_linux_get_syscall_number): New function.
10159 (aarch64_linux_init_abi): Call
10160 set_gdbarch_get_syscall_number.
10161 * syscalls/aarch64-linux.xml: New file.
10162
10163 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10164
10165 * ser-base.h (ser_base_setstopbits): Change second argument name
10166 from "rate" to "num".
10167
10168 2015-03-17 Gary Benson <gbenson@redhat.com>
10169 Luke Allardyce <lukeallardyce@gmail.com>
10170
10171 PR gdb/18131
10172 * common/common-remote-fileio.h (sys/stat.h): New include.
10173 (stuct stat): Remove forward declaration.
10174
10175 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10176
10177 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10178 before writing core register notes.
10179
10180 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10181 Pedro Alves <palves@redhat.com>
10182
10183 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10184 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10185 (tgoto): Wrap with extern "C".
10186
10187 2015-03-16 Pedro Alves <palves@redhat.com>
10188 Yuanhui Zhang <asmwarrior@gmail.com>
10189
10190 * stub-termcap.c (tputs): Change prototype.
10191
10192 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10193 Pedro Alves <palves@redhat.com>
10194
10195 * windows-nat.c (struct thread_info_struct): Rename to ...
10196 (struct windows_thread_info_struct): ... this.
10197 (thread_info): Rename to ...
10198 (windows_thread_info): ... this.
10199 All users updated.
10200
10201 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10202 Pedro Alves <palves@redhat.com>
10203
10204 * NEWS: New Removed targets and native configurations.
10205
10206 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10207
10208 Remove HPUX.
10209 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10210 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10211 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10212 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10213 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10214 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10215 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10216 hppa-hpux-tdep.c.
10217 * config/ia64/hpux.mh: Remove file.
10218 * config/pa/hpux.mh: Remove file.
10219 * configure: Rebuilt.
10220 * configure.ac (dlgetmodinfo, somread.o): Remove.
10221 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10222 (ia64-*-hpux*): Remove its float format exception.
10223 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10224 * hppa-hpux-nat.c: Remove file.
10225 * hppa-hpux-tdep.c: Remove file.
10226 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10227 Move them here from hppa-tdep.h
10228 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10229 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10230 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10231 Move them to hppa-tdep.c.
10232 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10233 declarations.
10234 * ia64-hpux-nat.c: Remove file.
10235 * ia64-hpux-tdep.c: Remove file.
10236 * ia64-hpux-tdep.h: Remove file.
10237 * inf-ttrace.c: Remove file.
10238 * inf-ttrace.h: Remove file.
10239 * solib-ia64-hpux.c: Remove file.
10240 * solib-ia64-hpux.h: Remove file.
10241 * solib-pa64.c: Remove file.
10242 * solib-pa64.h: Remove file.
10243 * solib-som.c: Remove file.
10244 * solib-som.h: Remove file.
10245 * somread.c: Remove file.
10246
10247 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10248
10249 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10250 * config.in: Regenerate.
10251 * configure: Regenerate.
10252 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10253 define.
10254 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10255 enumerate memory regions if present.
10256
10257 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10258
10259 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10260 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10261 expressions.
10262 (i386fbsd_sigtramp_p): Likewise.
10263
10264 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10265
10266 * MAINTAINERS (Write After Approval): Add John Baldwin.
10267
10268 2015-03-12 Gary Benson <gbenson@redhat.com>
10269
10270 * solib.c (_initialize_solib): Make "set/show sysroot" use
10271 add_setshow_optional_filename_cmd so it can be restored to
10272 empty after being set.
10273
10274 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10275
10276 * Makefile.in (SFILES): New source break-catch-syscall.c.
10277 (COMMON_OBS): New object break-catch-syscall.o.
10278 * break-catch-syscall.c: New file.
10279 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10280 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10281 (struct syscall_catchpoint): Likewise.
10282 (dtor_catch_syscall): Likewise.
10283 (catch_syscall_inferior_data): Likewise.
10284 (struct catch_syscall_inferior_data): Likewise.
10285 (get_catch_syscall_inferior_data): Likewise.
10286 (catch_syscall_inferior_data_cleanup): Likewise.
10287 (insert_catch_syscall): Likewise.
10288 (remove_catch_syscall): Likewise.
10289 (breakpoint_hit_catch_syscall): Likewise.
10290 (print_it_catch_syscall): Likewise.
10291 (print_one_catch_syscall): Likewise.
10292 (print_mention_catch_syscall): Likewise.
10293 (print_recreate_catch_syscall): Likewise.
10294 (catch_syscall_breakpoint_ops): Likewise.
10295 (syscall_catchpoint_p): Likewise.
10296 (create_syscall_event_catchpoint): Likewise.
10297 (catch_syscall_split_args): Likewise.
10298 (catch_syscall_command_1): Likewise.
10299 (is_syscall_catchpoint_enabled): Likewise.
10300 (catch_syscall_enabled): Likewise.
10301 (catching_syscall_number): Likewise.
10302 (catch_syscall_completer): Likewise.
10303 (clear_syscall_counts): Likewise.
10304 (initialize_breakpoint_ops): Move initialization of syscall
10305 catchpoints to break-catch-syscall.c.
10306 (_initialize_breakpoint): Move code related to syscall catchpoints
10307 to break-catch-syscall.c.
10308
10309 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10310
10311 * breakpoint.c (breakpoint_find_if): New function.
10312 * breakpoint.h (breakpoint_find_if): New prototype.
10313
10314 2015-03-11 Gary Benson <gbenson@redhat.com>
10315
10316 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10317 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10318 (remote_fileio_to_host_ulong): Likewise.
10319 (remote_fileio_to_host_mode): Likewise.
10320 (remote_fileio_to_host_time): Likewise.
10321 (remote_fileio_to_host_stat): Likewise.
10322 * remote.c (PACKET_vFile_fstat): New enum value.
10323 (remote_protocol_features): Register the "vFile:fstat" feature.
10324 (remote_hostio_fstat): New function.
10325 (remote_bfd_iovec_stat): Use the above.
10326 (_initialize_remote): Register new "set/show remote
10327 hostio-fstat-packet" command.
10328 * symfile.c (separate_debug_file_exists): Update comment.
10329 * NEWS: Announce new vFile:fstat packet.
10330
10331 2015-03-11 Gary Benson <gbenson@redhat.com>
10332
10333 * common/common-remote-fileio.h: New file.
10334 * common/common-remote-fileio.c: Likewise.
10335 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10336 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10337 (COMMON_OBS): Add common-remote-fileio.o.
10338 (common-remote-fileio.o): New rule.
10339 * remote-fileio.h (common-remote-fileio.h): New include.
10340 * remote-fileio.c (gdb/fileio.h): Do not include.
10341 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10342 (remote_fileio_to_fio_uint): Likewise.
10343 (remote_fileio_to_fio_time): Likewise.
10344 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10345 (remote_fileio_to_fio_mode): Likewise.
10346 (remote_fileio_to_fio_ulong): Likewise.
10347 (remote_fileio_to_fio_stat): Likewise.
10348
10349 2015-03-11 Andy Wingo <wingo@igalia.com>
10350
10351 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10352 we were checking the cached type, not the cached dynamic type.
10353
10354 2015-03-11 Andy Wingo <wingo@igalia.com>
10355
10356 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10357 other strings, as these are on the GC'd heap, and will be
10358 collected along with the smob.
10359
10360 2015-03-11 Andy Wingo <wingo@igalia.com>
10361
10362 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10363 (objfile_functions): Bind gdbscm_objfile_progspace to
10364 objfile-progspace.
10365 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10366
10367 2015-03-11 Andy Wingo <wingo@igalia.com>
10368
10369 * guile/guile.c (_initialize_guile): Disable automatic
10370 finalization, if Guile offers us that possibility.
10371 * guile/guile.c (call_initialize_gdb_module):
10372 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10373 finalizers in appropriate places.
10374 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10375 scm_set_automatic_finalization_enabled.
10376 * configure: Regenerated.
10377
10378 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10379
10380 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10381 SAL, if possible.
10382
10383 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10384
10385 * s390-linux-nat.c (struct arch_lwp_info): New.
10386 (s390_fix_watch_points): Rename to...
10387 (s390_prepare_to_resume): ...this. Skip the PER info update
10388 unless the watch points have changed.
10389 (s390_refresh_per_info, s390_new_thread): New functions.
10390 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10391 s390_fix_watch_points.
10392 (s390_remove_watchpoint): Likewise.
10393 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10394 Register s390_prepare_to_resume.
10395
10396 2015-03-09 Pedro Alves <palves@redhat.com>
10397
10398 Revert:
10399 2015-03-07 Pedro Alves <palves@redhat.com>
10400 * common/gdb_socket.h: New file.
10401 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10402 sys/socket.h.
10403 (net_open): Use union gdb_sockaddr_u.
10404
10405 2015-03-07 Pedro Alves <palves@redhat.com>
10406
10407 * configure.ac (build_warnings): Move -Wmissing-prototypes
10408 -Wdeclaration-after-statement -Wmissing-parameter-type
10409 -Wold-style-declaration -Wold-style-definition to the C-specific
10410 set.
10411 * configure: Regenerate.
10412
10413 2015-03-07 Pedro Alves <palves@redhat.com>
10414
10415 * common/gdb_socket.h: New file.
10416 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10417 sys/socket.h.
10418 (net_open): Use union gdb_sockaddr_u.
10419
10420 2015-03-07 Pedro Alves <palves@redhat.com>
10421
10422 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10423 (exceptions_state_mc_action_iter)
10424 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10425 Don't define.
10426 [__cplusplus] (try_scope_depth): New global.
10427 [__cplusplus] (exception_try_scope_entry)
10428 (exception_try_scope_exit, gdb_exception_sliced_copy)
10429 (exception_rethrow): New functions.
10430 (throw_exception): In C++ mode, throw
10431 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10432 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10433 (throw_it): In C++ mode, use try_scope_depth.
10434 * common/common-exceptions.h [!__cplusplus]
10435 (exceptions_state_mc_action_iter)
10436 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10437 Don't declare.
10438 [__cplusplus] (exception_try_scope_entry)
10439 (exception_try_scope_exit, exception_rethrow): Declare.
10440 [__cplusplus] (struct exception_try_scope): New struct.
10441 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10442 C++ exceptions.
10443 (struct gdb_exception_RETURN_MASK_ALL)
10444 (struct gdb_exception_RETURN_MASK_ERROR)
10445 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10446
10447 2015-03-07 Pedro Alves <palves@redhat.com>
10448
10449 * main.c (handle_command_errors): Remove volatile qualifier from
10450 parameter.
10451
10452 2015-03-07 Pedro Alves <palves@redhat.com>
10453
10454 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10455 TRY and CATCH.
10456 * gdbtypes.c (safe_parse_type): Remove empty line.
10457 (types_deeply_equal):
10458 * guile/scm-frame.c (gdbscm_frame_name):
10459 * linux-thread-db.c (find_new_threads_once):
10460 * python/py-breakpoint.c (bppy_get_commands):
10461 * record-btrace.c (record_btrace_insert_breakpoint)
10462 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10463 (record_btrace_start_replaying): Adjust to avoid code between TRY
10464 and CATCH.
10465
10466 2015-03-07 Pedro Alves <palves@redhat.com>
10467
10468 * common/common-exceptions.c (struct catcher) <exception>: No
10469 longer a pointer to volatile exception. Now an exception value.
10470 <mask>: Delete field.
10471 (exceptions_state_mc_init): Remove all parameters. Adjust.
10472 (exceptions_state_mc): No longer pop the catcher here.
10473 (exceptions_state_mc_catch): New function.
10474 (throw_exception): Adjust.
10475 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10476 all parameters.
10477 (exceptions_state_mc_catch): Declare.
10478 (TRY_CATCH): Rename to ...
10479 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10480 (CATCH, END_CATCH): New.
10481 All callers adjusted.
10482
10483 2015-03-07 Tom Tromey <tromey@redhat.com>
10484
10485 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10486
10487 2015-03-07 Pedro Alves <palves@redhat.com>
10488
10489 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10490 (amd64_epilogue_frame_cache): Normal exception handling code.
10491 * break-catch-throw.c (check_status_exception_catchpoint)
10492 (re_set_exception_catchpoint): Ditto.
10493 * cli/cli-interp.c (safe_execute_command):
10494 * cli/cli-script.c (script_from_file): Ditto.
10495 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10496 Ditto.
10497 * compile/compile-object-run.c (compile_object_run): Ditto.
10498 * cp-abi.c (baseclass_offset): Ditto.
10499 * cp-valprint.c (cp_print_value): Ditto.
10500 * exceptions.c (catch_exceptions_with_msg):
10501 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10502 * frame.c (get_frame_address_in_block_if_available): Ditto.
10503 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10504 (i386_sigtramp_frame_cache): Ditto.
10505 * infcmd.c (post_create_inferior): Ditto.
10506 * linespec.c (parse_linespec, find_linespec_symbols):
10507 * p-valprint.c (pascal_object_print_value): Ditto.
10508 * parse.c (parse_expression_for_completion): Ditto.
10509 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10510 * remote.c (remote_get_noisy_reply): Ditto.
10511 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10512 * solib-svr4.c (solib_svr4_r_map): Ditto.
10513
10514 2015-03-06 Gary Benson <gbenson@redhat.com>
10515
10516 * common/common-utils.h (startswith): New inline function.
10517 All places where this logic was used updated to use the above.
10518
10519 2015-03-05 Pedro Alves <palves@redhat.com>
10520
10521 PR gdb/18002
10522 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10523 after reading the breakpoint's shadow memory.
10524
10525 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10526
10527 * hppabsd-nat.c: Remove file.
10528 * hppaobsd-nat.c: New file.
10529 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10530 hppaobsd-nat.c.
10531 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10532 hppaobsd-nat.o.
10533
10534 2015-03-04 Pedro Alves <palves@redhat.com>
10535
10536 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10537 (target_decr_pc_after_break): Delete declaration.
10538 * target.c (default_target_decr_pc_after_break)
10539 (target_decr_pc_after_break): Delete.
10540 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10541 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10542 * linux-thread-db.c (check_event): Likewise.
10543 * infrun.c (adjust_pc_after_break): Likewise.
10544 * darwin-nat.c (cancel_breakpoint): Likewise.
10545 * aix-thread.c (aix_thread_wait): Likewise.
10546 * target-delegates.c: Regenerate.
10547
10548 2015-03-04 Pedro Alves <palves@redhat.com>
10549
10550 * linux-nat.c (save_sigtrap): Check for breakpoints before
10551 checking watchpoints.
10552 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10553 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10554 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10555 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10556 (linux_nat_stopped_by_sw_breakpoint)
10557 (linux_nat_supports_stopped_by_sw_breakpoint)
10558 (linux_nat_stopped_by_hw_breakpoint)
10559 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10560 (linux_nat_wait_1): Don't re-increment the PC if relying on
10561 SIGTRAP's siginfo->si_code.
10562 (linux_nat_add_target): Install new target methods.
10563 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10564 offset if the target already adjusted the PC.
10565 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10566 (GDB_ARCH_TRAP_BRKPT): New.
10567 (TRAP_HWBKPT): Define if not already defined.
10568
10569 2015-03-04 Pedro Alves <palves@redhat.com>
10570
10571 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10572 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10573 Delete field.
10574 <stop_reason>: New field.
10575 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10576 (packet_set_cmd_state): New function.
10577 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10578 features.
10579 (remote_query_supported): If not disabled with the corresponding
10580 "set remote foo-packet" command, report support for the swbreak
10581 and hwbreak features.
10582 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10583 field.
10584 <stop_reason>: New field.
10585 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10586 (remote_wait_as): Adjust.
10587 (remote_stopped_by_sw_breakpoint)
10588 (remote_supports_stopped_by_sw_breakpoint)
10589 (remote_stopped_by_hw_breakpoint)
10590 (remote_supports_stopped_by_hw_breakpoint): New functions.
10591 (remote_stopped_by_watchpoint): New function.
10592 (init_remote_ops): Install them.
10593 (_initialize_remote): Register new "set/show remote
10594 swbreak-feature-packet" and "set/show remote
10595 swbreak-feature-packet" commands.
10596
10597 2015-03-04 Pedro Alves <palves@redhat.com>
10598
10599 * btrace.h: Include target/waitstatus.h.
10600 (struct btrace_thread_info) <stop_reason>: New field.
10601 * record-btrace.c (record_btrace_step_thread): Use
10602 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10603 (record_btrace_decr_pc_after_break): Delete.
10604 (record_btrace_stopped_by_sw_breakpoint)
10605 (record_btrace_supports_stopped_by_sw_breakpoint)
10606 (record_btrace_stopped_by_hw_breakpoint)
10607 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10608 (init_record_btrace_ops): Install them.
10609 * record-full.c (record_full_hw_watchpoint): Delete and replace
10610 with ...
10611 (record_full_stop_reason): ... this throughout.
10612 (record_full_exec_insn): Adjust.
10613 (record_full_wait_1): Adjust. No longer re-increment the PC.
10614 (record_full_wait_1): Adjust. Use
10615 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10616 (record_full_stopped_by_watchpoint): Adjust.
10617 (record_full_stopped_by_sw_breakpoint)
10618 (record_full_supports_stopped_by_sw_breakpoint)
10619 (record_full_supports_stopped_by_sw_breakpoint)
10620 (record_full_stopped_by_hw_breakpoint)
10621 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10622 (init_record_full_ops, init_record_full_core_ops): Install them.
10623 * record.c (record_check_stopped_by_breakpoint): New function.
10624 * record.h: Include target/waitstatus.h.
10625 (record_check_stopped_by_breakpoint): New declaration.
10626
10627 2015-03-04 Pedro Alves <palves@redhat.com>
10628
10629 enum lwp_stop_reason -> enum target_stop_reason
10630 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10631 (linux_nat_stopped_by_watchpoint, status_callback)
10632 (linux_nat_wait_1): Adjust.
10633 * linux-nat.h (enum lwp_stop_reason): Delete.
10634 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10635 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10636 * target/waitstatus.h (enum target_stop_reason): New.
10637
10638 2015-03-04 Pedro Alves <palves@redhat.com>
10639
10640 * breakpoint.c (need_moribund_for_location_type): New function.
10641 (bpstat_stop_status): Don't skipping checking moribund locations
10642 of breakpoint types which the target tell caused a stop.
10643 (program_breakpoint_here_p): New function, factored out from ...
10644 (bp_loc_is_permanent): ... this.
10645 (update_global_location_list): Don't create a moribund location if
10646 the target supports reporting stops of the type of the removed
10647 breakpoint.
10648 * breakpoint.h (program_breakpoint_here_p): New declaration.
10649 * infrun.c (adjust_pc_after_break): Return early if the target has
10650 already adjusted the PC. Add comments.
10651 (handle_signal_stop): If nothing explains a signal, and the target
10652 tells us the stop was caused by a software breakpoint, check if
10653 there's a breakpoint instruction in the memory. If so, adjust the
10654 PC before presenting the stop to the user. Otherwise, ignore the
10655 trap. If nothing explains a signal, and the target tells us the
10656 stop was caused by a hardware breakpoint, ignore the trap.
10657 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10658 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10659 to_supports_stopped_by_hw_breakpoint>: New fields.
10660 (target_stopped_by_sw_breakpoint)
10661 (target_supports_stopped_by_sw_breakpoint)
10662 (target_stopped_by_hw_breakpoint)
10663 (target_supports_stopped_by_hw_breakpoint): Define.
10664 * target-delegates.c: Regenerate.
10665
10666 2015-03-04 Pedro Alves <palves@redhat.com>
10667
10668 * infrun.c (follow_fork_inferior): Use the whole of the
10669 inferior_ptid and pending_follow.related_pid ptids instead of
10670 building ptids from the process components. Adjust verbose output
10671 to use target_pid_to_str.
10672 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10673 inferior_ptid and pending_follow.related_pid ptids instead of
10674 building ptids from the process components.
10675
10676 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10677
10678 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10679 (inf_ptrace_insert_fork_catchpoint): New function.
10680 (inf_ptrace_remove_fork_catchpoint): New function.
10681 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10682
10683 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10684
10685 * s390-linux-tdep.c (s390_register_name): Return empty string
10686 instead of NULL for registers that shouldn't be visible.
10687
10688 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10689
10690 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10691 XML file for 64-bit targets.
10692
10693 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10694
10695 * target.h (find_default_create_inferior): Remove declaration.
10696 (find_default_attach): Likewise.
10697
10698 2015-03-03 Pedro Alves <palves@redhat.com>
10699
10700 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10701 Use ptid_get_pid to get the overall process id when resuming all
10702 threads.
10703
10704 2015-03-03 Pedro Alves <palves@redhat.com>
10705
10706 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10707 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10708 * inf-ptrace.c (get_ptrace_pid): New function.
10709 (inf_ptrace_resume): Use it.
10710 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10711 to the lower layer.
10712
10713 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10714
10715 * nat/linux-btrace.c: Include sys/utsname.h.
10716 (linux_determine_kernel_ptr_bits): New.
10717 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10718 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10719 ptr_bits.
10720
10721 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10722
10723 * btrace.c (ftrace_update_function): Treat return as tailcall for
10724 "_dl_runtime_resolve".
10725
10726 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10727
10728 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10729 * btrace.c (ftrace_debug): Do not print the line range.
10730 (ftrace_skip_file, ftrace_update_lines): Remove.
10731 (ftrace_new_function): Remove lbegin and lend initialization.
10732 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10733 * record-btrace.c (btrace_compute_src_line_range): New.
10734 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10735
10736 2015-03-02 Pedro Alves <palves@redhat.com>
10737
10738 * infrun.c (follow_exec): Delete all threads of the process except
10739 the event thread. Extended comments.
10740
10741 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10742
10743 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10744
10745 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10746
10747 * utils.h: Remove <stdbool.h> #include.
10748 (producer_is_gcc): Change return type to "int".
10749 * utils.c (producer_is_gcc): Change return type to int.
10750 Return 1 instead of true, and 0 instead of false.
10751 Adjust function documentation accordingly.
10752
10753 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10754
10755 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10756 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10757 present.
10758 (s390_linux_store_inferior_registers): Likewise.
10759 (s390_get_hwcap): Remove function. Embed its logic...
10760 (s390_read_description): ...here. Yield a target description with
10761 vector registers if applicable.
10762 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10763 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10764 "features/s390x-tevx-linux64.c".
10765 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10766 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10767 for "GNU/Linux-specific registers".
10768 (s390_dwarf_reg_r0l): New enum value.
10769 (s390_dwarf_reg_to_regnum): Support vector registers.
10770 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10771 of GPR lower halves.
10772 (regnum_is_vxr_full): New function.
10773 (s390_register_name): New function.
10774 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10775 f0-f15 and v0l-v15l.
10776 (s390_pseudo_register_type): Likewise.
10777 (s390_pseudo_register_read): Likewise.
10778 (s390_pseudo_register_write): Likewise.
10779 (s390_value_from_register): Account for the fact that values are
10780 placed left-justified in vector registers.
10781 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10782 the vector reggroup and omit them from the general reggroup.
10783 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10784 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10785 (s390_iterate_over_regset_sections): Add iterations for the two
10786 new vector regsets.
10787 (s390_core_read_description): Yield a target description with
10788 vector registers if applicable.
10789 (s390_gdbarch_init): Handle target descriptions with vector
10790 registers. Add "register_name" gdbarch method.
10791 (_initialize_s390_tdep): Call new tdesc initialization functions.
10792 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10793 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10794 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10795 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10796 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10797 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10798 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10799 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10800 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10801 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10802 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10803 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10804 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10805 (S390_NUM_REGS): Adjust value.
10806 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10807 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10808 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10809 * NEWS: Announce S/390 vector register support.
10810
10811 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10812
10813 * features/s390-tevx-linux64.xml: New file.
10814 * features/s390-vx-linux64.xml: New file.
10815 * features/s390-vx.xml: New file.
10816 * features/s390x-tevx-linux64.xml: New file.
10817 * features/s390x-vx-linux64.xml: New file.
10818 * features/Makefile (WHICH): Add s390-vx-linux64,
10819 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10820 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10821 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10822 macros.
10823 * features/s390-tevx-linux64.c: New generated file.
10824 * features/s390-vx-linux64.c: Likewise.
10825 * features/s390x-tevx-linux64.c: Likewise.
10826 * features/s390x-vx-linux64.c: Likewise.
10827 * regformats/s390-tevx-linux64.dat: Likewise.
10828 * regformats/s390-vx-linux64.dat: Likewise.
10829 * regformats/s390x-tevx-linux64.dat: Likewise.
10830 * regformats/s390x-vx-linux64.dat: Likewise.
10831
10832 2015-02-28 Doug Evans <xdje42@gmail.com>
10833
10834 * symtab.h (struct symtab) <next>: Fix comment.
10835
10836 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10837
10838 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10839 python_GdbMethods.
10840
10841 2015-02-27 Pedro Alves <palves@redhat.com>
10842
10843 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10844
10845 2015-02-27 Pedro Alves <palves@redhat.com>
10846
10847 * common/common-exceptions.h (exception_none): Declare.
10848 * common/common-exceptions.c (exception_none): Moved from
10849 exceptions.c.
10850 (exceptions_state_mc_init): Use exception_none.
10851 * exceptions.c (exception_none): Move to
10852 common/common-exceptions.c.
10853 * exceptions.h (exception_none): Move to
10854 common/common-exceptions.h.
10855
10856 2015-02-27 Pedro Alves <palves@redhat.com>
10857
10858 * main.c (catch_command_errors, catch_command_errors_const):
10859 Remove 'mask' argument. Adjust.
10860 (captured_main): Adjust callers.
10861
10862 2015-02-27 Pedro Alves <palves@redhat.com>
10863
10864 * python/python-internal.h: Include "extension-priv.h".
10865
10866 2015-02-27 Pedro Alves <palves@redhat.com>
10867
10868 * breakpoint.h (enum print_stop_action): Move further up in the
10869 file.
10870
10871 2015-02-27 Pedro Alves <palves@redhat.com>
10872
10873 * gdbarch.sh: Include regcache.h.
10874 * gdbarch.h: Regenerate.
10875
10876 2015-02-27 Pedro Alves <palves@redhat.com>
10877
10878 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10879 Remove duplicate const.
10880 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10881 duplicate const.
10882
10883 2015-02-27 Pedro Alves <palves@redhat.com>
10884
10885 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10886 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10887 * features/feature_to_c.sh: Tag the generated xml_builtin array
10888 with extern const in C++ mode.
10889
10890 2015-02-27 Tom Tromey <tromey@redhat.com>
10891
10892 * minidebug.c (struct lzma_stream): Rename to ...
10893 (struct gdb_lzma_stream): ... this.
10894 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10895
10896 2015-02-27 Pedro Alves <palves@redhat.com>
10897
10898 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10899 function.
10900 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10901 (mi_cmd_stack_list_variables): Use it.
10902
10903 2015-02-27 Pedro Alves <palves@redhat.com>
10904
10905 * x86-linux-nat.c (u_debugreg_offset): New function.
10906 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10907
10908 2015-02-27 Pedro Alves <palves@redhat.com>
10909
10910 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10911 declaration.
10912 Include break-common.h.
10913
10914 2015-02-27 Tom Tromey <tromey@redhat.com>
10915 Pedro Alves <palves@redhat.com>
10916
10917 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10918 local used to iterate over enums.
10919 * completer.c (signal_completer): Likewise.
10920 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10921 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10922 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10923 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10924 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10925 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10926 * tui-wingeneral.c (tui_refresh_all): Likewise.
10927
10928 2015-02-27 Pedro Alves <palves@redhat.com>
10929
10930 * target.h: Include "infrun.h".
10931
10932 2015-02-27 Pedro Alves <palves@redhat.com>
10933
10934 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10935
10936 2015-02-27 Pedro Alves <palves@redhat.com>
10937
10938 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10939 (IPA_SYM): Use it.
10940 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10941
10942 2015-02-27 Pedro Alves <palves@redhat.com>
10943
10944 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10945 cli_mld_erase_entire_line, and make it extern "C".
10946 * common/common-defs.h (EXTERN_C): New.
10947 * completer.c (_rl_completion_prefix_display_length)
10948 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10949 out of gdb_display_match_list_1.
10950 (_rl_qsort_string_compare): Move declaration out of
10951 gdb_display_match_list_1, and make it extern "C".
10952 * defs.h (re_comp): Use EXTERN_C.
10953 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10954 and make it extern "C".
10955 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10956 and make it extern "C".
10957 (main): Move declaration out of maintenance_set_profile_cmd.
10958 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10959 EXTERN_C.
10960
10961 2015-02-27 Pedro Alves <palves@redhat.com>
10962
10963 * python/python.c (GdbMethods): Rename to ...
10964 (python_GdbMethods): ... this and make extern.
10965 (GdbModuleDef): Rename to ...
10966 (python_GdbModuleDef): ... this and make extern.
10967
10968 2015-02-27 Pedro Alves <palves@redhat.com>
10969
10970 * record-btrace.c (set_record_btrace_cmdlist)
10971 (show_record_btrace_cmdlist): Remove redefinitions.
10972
10973 2015-02-27 Tom Tromey <tromey@redhat.com>
10974 Pedro Alves <palves@redhat.com>
10975
10976 * dwarf2-frame.c (enum cfa_how_kind, struct
10977 dwarf2_frame_state_reg_info): Move out of struct
10978 dwarf2_frame_state.
10979 * dwarf2read.c (struct tu_stats): Move out of struct
10980 dwarf2_per_objfile.
10981 (struct file_entry): Move out of struct line_header.
10982 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10983 typedef_field_list): Move out of struct field_info.
10984 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10985 Move out of struct dynamic_prop.
10986 (union type_owner, union field_location, struct field, struct
10987 range_bounds, union type_specific): Move out of struct main_type.
10988 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10989 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10990 (struct call_site_target, union call_site_parameter_u, struct
10991 call_site_parameter): Move out of struct call_site.
10992 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10993 m32c_prologue.
10994 (enum srcdest_kind): Move out of struct srcdest.
10995 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10996 * prologue-value.h (enum prologue_value_kind): Move out of struct
10997 prologue_value.
10998 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10999 gdbarch_tdep.
11000 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11001 out of struct field_info.
11002 * symfile.h (struct other_sections): Move out of struct
11003 section_addr_info.
11004 * symtab.c (struct symbol_cache_slot): Move out struct
11005 block_symbol_cache.
11006 * target-descriptions.c (enum tdesc_type_kind): Move out of
11007 typedef struct tdesc_type.
11008 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11009 struct tui_line_or_address.
11010 * value.c (enum internalvar_kind, union internalvar_data): Move
11011 out of struct internalvar.
11012 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11013 gdbarch_tdep.
11014
11015 2015-02-27 Tom Tromey <tromey@redhat.com>
11016 Pedro Alves <palves@redhat.com>
11017
11018 Rename symbols whose names are reserved C++ keywords throughout.
11019
11020 2015-02-27 Pedro Alves <palves@redhat.com>
11021
11022 * Makefile.in (COMPILER): New, get it from autoconf.
11023 (COMPILE.pre, CC_LD): Use COMPILER.
11024 (CXX): Get from autoconf instead.
11025 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11026 * acinclude.m4: Include build-with-cxx.m4.
11027 * build-with-cxx.m4: New file.
11028 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11029 Disable -Werror by default if building in C++ mode.
11030 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11031 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11032 Run supported-warning-flags tests with the C++ compiler.
11033 Save/restore CXXFLAGS too.
11034 * configure: Regenerate.
11035
11036 2015-02-27 Pedro Alves <palves@redhat.com>
11037
11038 * libiberty.m4: New file.
11039 * acinclude.m4: Include libiberty.m4.
11040 * configure.ac: Call libiberty_INIT.
11041 * config.in, configure: Regenerate.
11042
11043 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11044
11045 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11046 31-bit targets, but 64-bit targets as well.
11047 (s390_gnu_triplet_regexp): New function.
11048 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11049 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11050 method.
11051
11052 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11053
11054 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11055 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11056 from CONTEXT_DEBUGGER.
11057
11058 2015-02-26 Doug Evans <dje@google.com>
11059
11060 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11061 CHECK_TYPEDEF.
11062 (set_type_vptr_fieldno): Ditto.
11063 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11064 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11065
11066 2015-02-26 Pedro Alves <palves@redhat.com>
11067
11068 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11069 * complaints.c (vcomplaint): Pass argument FMT directly to
11070 printf-like functions instead of complaint->fmt.
11071 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11072 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11073 * compile/compile-loc2c.c (pushf, unary, binary): Add
11074 ATTRIBUTE_PRINTF.
11075 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11076 to pushf.
11077 (BINARY): Pass string literal as format string to 'binary'.
11078 * compile/compile-object-load.c (link_callbacks_einfo): Add
11079 ATTRIBUTE_PRINTF.
11080 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11081
11082 2015-02-26 Pedro Alves <palves@redhat.com>
11083
11084 * windows-termcap.c: Rename to ...
11085 * stub-termcap.c: ... this. Adjust header line.
11086 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11087 windows-termcap.c.
11088 * configure: Regenerate.
11089 * configure.ac: Refer to stub-termcap.o instead of
11090 windows-termcap.o.
11091 * gdb_curses.h: Mention stub-termcap.c instead of
11092 windows-termcap.c.
11093
11094 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11095
11096 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11097 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11098
11099 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11100
11101 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11102
11103 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11104
11105 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11106 bfd_canonicalize_symtab.
11107
11108 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11109
11110 * amd64fbsd-nat.c: Include sys/user.h.
11111 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11112 instead of KERN_PS_STRINGS to locate the signal trampoline.
11113 * i386fbsd-nat.c: Include sys/user.h.
11114 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11115 instead of KERN_PS_STRINGS to locate the signal trampoline.
11116 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11117 (amd64fbsd_sigtramp_p): New.
11118 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11119 longer set default values.
11120 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11121 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11122 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11123 (i386fbsd_freebsd4_sigtramp_start)
11124 (i386fbsd_freebsd4_sigtramp_middle)
11125 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11126 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11127 (i386fbsd_sigtramp_p): New.
11128 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11129 longer set default values.
11130 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11131
11132 2015-02-25 John Baldwin <jhb@freebsd.org>
11133
11134 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11135 get_frame_register instead of frame_unwind_register_unsigned.
11136
11137 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11138
11139 PR build/18033
11140 * compile/compile-c-support.c (c_compute_program): Change // comment.
11141 * compile/compile-object-load.c (setup_sections): Change // comment.
11142
11143 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11144
11145 PR build/18033:
11146 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11147
11148 2015-02-23 Pedro Alves <palves@redhat.com>
11149
11150 * remote.c (skip_to_semicolon): New function.
11151 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11152 special case the stop reasons that look like hex numbers
11153 upfront. Instead handle real register numbers after matching
11154 all the known stop reasons.
11155
11156 2015-02-21 Doug Evans <dje@google.com>
11157
11158 PR c++/17976, symtab/17821
11159 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11160 is_in_anonymous. All callers updated.
11161 (find_symbol_in_baseclass): Ditto.
11162 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11163 for symbols in an anonymous namespace.
11164 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11165 DW_AT_name directly.
11166 (dwarf2_name): Convert missing namespace name to
11167 CP_ANONYMOUS_NAMESPACE_STR.
11168
11169 2015-02-20 Pedro Alves <palves@redhat.com>
11170
11171 * linux-nat.c (linux_handle_extended_wait): Call
11172 thread_db_notice_clone whenever a new clone LWP is detected.
11173 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11174 functions.
11175 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11176 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11177 (linux_unstop_all_lwps): Declare.
11178 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11179 (thread_get_info_callback): Delete.
11180 (thread_from_lwp): Use td_thr_get_info and record_thread.
11181 (thread_db_attach_lwp): Delete.
11182 (thread_db_notice_clone): New function.
11183 (try_thread_db_load_1): If /proc is mounted and shows the
11184 process'es task list, walk over all LWPs and call thread_from_lwp
11185 instead of relying on td_ta_thr_iter.
11186 (attach_thread): Don't call check_thread_signals here. Split the
11187 tail part of the function (which adds the thread to the core GDB
11188 thread list) to ...
11189 (record_thread): ... this function. Call check_thread_signals
11190 here.
11191 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11192 call thread_from_lwp.
11193 (thread_db_update_thread_list): Rename to ...
11194 (thread_db_update_thread_list_org): ... this.
11195 (thread_db_update_thread_list): New function.
11196 (thread_db_find_thread_from_tid): Delete.
11197 (thread_db_get_ada_task_ptid): Simplify.
11198 * nat/linux-procfs.c: Include <sys/stat.h>.
11199 (linux_proc_task_list_dir_exists): New function.
11200 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11201
11202 2015-02-20 Pedro Alves <palves@redhat.com>
11203
11204 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11205 main LWP. Handle the case of waitpid returning 0 if we're already
11206 attached to the LWP. Don't set the LWP's last_resume_kind to
11207 resume_stop if we already knew about the LWP.
11208 (linux_nat_filter_event): Add debug logs.
11209
11210 2015-02-20 Pedro Alves <palves@redhat.com>
11211
11212 * target.h (forward_target_decr_pc_after_break): Delete
11213 declaration.
11214
11215 2015-02-20 Pedro Alves <palves@redhat.com>
11216
11217 PR threads/18006
11218 * linux-thread-db.c (thread_get_info_callback): Return early if
11219 the thread's lwp id is -1.
11220
11221 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11222
11223 GDB 7.9 released.
11224
11225 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11226
11227 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11228 (dtrace_get_probes) Change type of variable 'dof'.
11229
11230 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11231
11232 PR breakpoints/16812
11233 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11234 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11235 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11236
11237 2015-02-19 David Taylor <dtaylor@emc.com>
11238
11239 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11240
11241 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11242
11243 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11244 function.
11245 (tui_putc): Don't call tui_handle_resize_during_io.
11246 (tui_getc): Likewise.
11247 (tui_mld_getc): Likewise.
11248 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11249 (tui_sigwinch_token): New static variable.
11250 (tui_initialize_win): Adjust documentation. Set
11251 tui_sigwinch_token.
11252 (tui_async_resize_screen): New asynchronous callback.
11253 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11254 invoke tui_async_resize_screen.
11255
11256 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11257
11258 * configure: Regenerated.
11259 * configure.ac: Use GDB_AC_TRANSFORM.
11260 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11261 * acinclude.m4: sinclude transform.m4.
11262 * transform.m4: New file.
11263 (GDB_AC_TRANSFORM): New macro.
11264
11265 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11266
11267 * NEWS: Announce the support for DTrace SDT probes.
11268
11269 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11270
11271 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11272 (amd64_dtrace_parse_probe_argument): New function.
11273 (amd64_dtrace_probe_is_enabled): Likewise.
11274 (amd64_dtrace_enable_probe): Likewise.
11275 (amd64_dtrace_disable_probe): Likewise.
11276 (amd64_linux_init_abi): Register the
11277 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11278 `gdbarch_dtrace_disable_probe' and
11279 `gdbarch_dtrace_probe_is_enabled' hooks.
11280 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11281 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11282 (amd64_dtrace_enable_probe_sequence): Likewise.
11283 (amd64_dtrace_disable_probe_sequence): Likewise.
11284
11285 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11286
11287 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11288 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11289 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11290 handle ELF files.
11291 * Makefile.in (SFILES): dtrace-probe.c added.
11292 * configure: Regenerate.
11293 * dtrace-probe.c: New file.
11294 (SHT_SUNW_dof): New constant.
11295 (dtrace_probe_type): New enum.
11296 (dtrace_probe_arg): New struct.
11297 (dtrace_probe_arg_s): New typedef.
11298 (struct dtrace_probe_enabler): New struct.
11299 (dtrace_probe_enabler_s): New typedef.
11300 (dtrace_probe): New struct.
11301 (dtrace_probe_is_linespec): New function.
11302 (dtrace_dof_sect_type): New enum.
11303 (dtrace_dof_dofh_ident): Likewise.
11304 (dtrace_dof_encoding): Likewise.
11305 (DTRACE_DOF_ENCODE_LSB): Likewise.
11306 (DTRACE_DOF_ENCODE_MSB): Likewise.
11307 (dtrace_dof_hdr): New struct.
11308 (dtrace_dof_sect): Likewise.
11309 (dtrace_dof_provider): Likewise.
11310 (dtrace_dof_probe): Likewise.
11311 (DOF_UINT): New macro.
11312 (DTRACE_DOF_PTR): Likewise.
11313 (DTRACE_DOF_SECT): Likewise.
11314 (dtrace_process_dof_probe): New function.
11315 (dtrace_process_dof): Likewise.
11316 (dtrace_build_arg_exprs): Likewise.
11317 (dtrace_get_arg): Likewise.
11318 (dtrace_get_probes): Likewise.
11319 (dtrace_get_probe_argument_count): Likewise.
11320 (dtrace_can_evaluate_probe_arguments): Likewise.
11321 (dtrace_evaluate_probe_argument): Likewise.
11322 (dtrace_compile_to_ax): Likewise.
11323 (dtrace_probe_destroy): Likewise.
11324 (dtrace_gen_info_probes_table_header): Likewise.
11325 (dtrace_gen_info_probes_table_values): Likewise.
11326 (dtrace_probe_is_enabled): Likewise.
11327 (dtrace_probe_ops): New variable.
11328 (info_probes_dtrace_command): New function.
11329 (_initialize_dtrace_probe): Likewise.
11330 (dtrace_type_name): Likewise.
11331
11332 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11333
11334 * gdbarch.sh (dtrace_parse_probe_argument): New.
11335 (dtrace_probe_is_enabled): Likewise.
11336 (dtrace_enable_probe): Likewise.
11337 (dtrace_disable_probe): Likewise.
11338 * gdbarch.c: Regenerate.
11339 * gdbarch.h: Regenerate.
11340
11341 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11342
11343 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11344 stap_probe_ops for `enable_probe' and `disable_probe'.
11345 * probe.c (enable_probes_command): New function.
11346 (disable_probes_command): Likewise.
11347 (_initialize_probe): Define the cli commands `enable probe' and
11348 `disable probe'.
11349 (parse_probe_linespec): New function.
11350 (info_probes_for_ops): Use parse_probe_linespec.
11351 * probe.h (probe_ops): New hooks `enable_probe' and
11352 `disable_probe'.
11353
11354 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11355
11356 * probe.c (compute_probe_arg): Moved from stap-probe.c
11357 (compile_probe_arg): Likewise.
11358 (probe_funcs): Likewise.
11359 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11360 (compile_probe_arg): Likewise.
11361 (probe_funcs): Likewise.
11362
11363 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11364
11365 * probe.c (print_ui_out_not_applicables): New function.
11366 (exists_probe_with_pops): Likewise.
11367 (info_probes_for_ops): Do not include column headers for probe
11368 types for which no probe has been actually found on any object.
11369 Also invoke `print_ui_out_not_applicables' in order to match the
11370 column rows with the header when probes of several types are
11371 listed.
11372 Print the "Type" column.
11373 * probe.h (probe_ops): Added a new probe operation `type_name'.
11374 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11375 (stap_type_name): New function.
11376
11377 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11378
11379 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11380 (key_is_command_char): Delete.
11381
11382 2015-02-17 Pedro Alves <palves@redhat.com>
11383
11384 * tui/tui.c (tui_enable): Resize windows before anything
11385 might show a window.
11386
11387 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11388
11389 PR gdb/17984
11390 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11391 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11392 call.
11393 * aarch64-tdep.h (tdesc_aarch64): Declare.
11394
11395 2015-02-12 Mark Wielaard <mjw@redhat.com>
11396
11397 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11398
11399 2015-02-13 Doug Evans <dje@google.com>
11400
11401 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11402 anonymous_namespace to is_in_anonymous for consistency with the rest
11403 of the file.
11404 (cp_lookup_bare_symbol): Fix typo in comment.
11405 (cp_search_static_and_baseclasses): Ditto.
11406 (search_symbol_list): Use vertical space in comment better.
11407 (reset_directive_searched): Ditto. Fix typo.
11408 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11409
11410 2015-02-13 Yao Qi <yao.qi@arm.com>
11411
11412 * MAINTAINERS: Update my email address.
11413
11414 2015-02-12 Doug Evans <dje@google.com>
11415
11416 * symtab.c (completion_list_add_name): Fix memory leak.
11417
11418 2015-02-12 Doug Evans <dje@google.com>
11419
11420 * completer.c (complete_line): Remove incorrect comment.
11421
11422 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11423
11424 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11425 (py_print_frame): Use RETURN_MASK_ERROR.
11426
11427 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11428
11429 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11430 function comment. Wrap all function that can throw in cleanups.
11431 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11432 cleanups.
11433
11434 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11435
11436 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11437 Remove the error label.
11438
11439 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11440
11441 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11442 with goto first, indent the former else codepath left. Put variable
11443 'elided' to a new inner block.
11444
11445 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11446
11447 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11448
11449 2015-02-11 Pedro Alves <palves@redhat.com>
11450
11451 * xcoffread.c (within_function): Delete.
11452
11453 2015-02-11 Tom Tromey <tromey@redhat.com>
11454 Pedro Alves <palves@redhat.com>
11455
11456 * breakpoint.c (base_breakpoint_ops): Delete.
11457 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11458 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11459 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11460 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11461 * python/py-arch.c (arch_object_type): Make extern.
11462 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11463 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11464 * python/py-cmd.c (cmdpy_object_type): Make extern.
11465 * python/py-continueevent.c (continue_event_object_type)
11466 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11467 parameter. Update all callers.
11468 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11469 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11470 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11471 * python/py-function.c (fnpy_object_type): Make extern.
11472 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11473 * python/py-infevents.c (call_pre_event_object_type)
11474 (inferior_call_post_event_object_type).
11475 (memory_changed_event_object_type): Make extern.
11476 * python/py-infthread.c (thread_object_type): Make extern.
11477 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11478 * python/py-linetable.c (linetable_entry_object_type)
11479 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11480 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11481 (clear_objfiles_event_object_type): Make extern.
11482 * python/py-objfile.c (objfile_object_type): Make extern.
11483 * python/py-param.c (parmpy_object_type): Make extern.
11484 * python/py-progspace.c (pspace_object_type): Make extern.
11485 * python/py-signalevent.c (signal_event_object_type): Make extern.
11486 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11487 * python/py-type.c (type_object_type, field_object_type)
11488 (type_iterator_object_type): Make extern.
11489 * python/python.c (python_extension_script_ops)
11490 (python_extension_ops): Make extern.
11491 * stap-probe.c (stap_probe_ops): Make extern.
11492
11493 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11494
11495 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11496 because the event thread is not the current thread.
11497
11498 2015-02-11 Doug Evans <xdje42@gmail.com>
11499
11500 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11501 been initialized yet, return NULL.
11502
11503 2015-02-11 Doug Evans <dje@google.com>
11504
11505 * symfile.h (new_symfile_objfile): Delete.
11506 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11507 All callers updated.
11508
11509 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11510
11511 * tui/tui-io.c (tui_handle_resize_during_io): Call
11512 tui_update_gdb_sizes() after resizing the screen.
11513 * tui/tui.c (tui_enable): Resize the terminal before
11514 calling tui_update_gdb_sizes().
11515
11516 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11517
11518 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11519 line before printing a newline.
11520
11521 2015-02-11 Mark Wielaard <mjw@redhat.com>
11522
11523 * utils.c (producer_is_gcc): Return true or false.
11524
11525 2015-02-10 Mark Wielaard <mjw@redhat.com>
11526
11527 * utils.h (producer_is_gcc): Change return type to bool. Add major
11528 argument.
11529 * utils.c (producer_is_gcc): Likewise.
11530 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11531 * dwarf2read.c (check_producer): Likewise.
11532
11533 2015-02-10 Pedro Alves <palves@redhat.com>
11534
11535 * infrun.c (displaced_step_fixup): Switch to the event thread
11536 before calling gdbarch_displaced_step_fixup.
11537
11538 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11539
11540 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11541
11542 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11543
11544 * ada-varobj.c (ada_name_of_child): Constify parent.
11545 (ada_path_expr_of_child): Same.
11546 (ada_value_of_child): Same.
11547 (ada_type_of_child): Same.
11548 * c-varobj.c (c_is_path_expr_parent): Same.
11549 (c_describe_child): Same.
11550 (c_name_of_child): Same.
11551 (c_value_of_child): Same.
11552 (c_type_of_child): Same.
11553 (cplus_number_of_children): Same.
11554 (cplus_describe_child): Constify var.
11555 (cplus_name_of_child): Constify parent.
11556 (cplus_value_of_child): Same.
11557 (cplus_type_of_child): Same.
11558 * jv-varobj.c (java_name_of_child): Same.
11559 (java_value_of_child): Same.
11560 (java_type_of_child): Same.
11561 * varobj.c (value_of_child): Same.
11562 (varobj_default_is_path_expr_parent): Constify var, parent and return
11563 value.
11564 (varobj_get_path_expr): Constify var, modify path_expr through
11565 mutable_var.
11566 (install_new_value): Constify parent.
11567 (value_of_child): Constify parent.
11568 * varobj.h (struct varobj): Constify parent.
11569 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11570 type_of_child.
11571 (varobj_get_path_expr): Constify var.
11572 (varobj_get_path_expr_parent): Constify var and return value.
11573
11574 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11575
11576 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11577 (arm_prologue_this_id): Move PC and SP limit checks to
11578 arm_prologue_unwind_stop_reason.
11579 (arm_prologue_unwind) <stop_reason> : Set to
11580 arm_prologue_unwind_stop_reason.
11581
11582 2015-02-09 Mark Wielaard <mjw@redhat.com>
11583
11584 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11585 DW_LANG_Fortran08 as language_fortran.
11586
11587 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11588
11589 PR remote/17946
11590 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11591 of pointer against char.
11592
11593 2015-02-09 Mark Wielaard <mjw@redhat.com>
11594
11595 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11596 (c_type_print_modifier): Likewise.
11597 * dwarf2read.c (read_tag_atomic_type): New function.
11598 (read_type_die_1): Handle DW_TAG_atomic_type.
11599 * gdbtypes.c (make_atomic_type): New function.
11600 (recursive_dump_type): Handle TYPE_ATOMIC.
11601 * gdbtypes.h (enum type_flag_values): Renumber.
11602 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11603 (TYPE_ATOMIC): New macro.
11604 (make_atomic_type): Declare.
11605
11606 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11607
11608 * btrace.c (ftrace_find_call): Skip gaps.
11609 (ftrace_new_function): Initialize level.
11610 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11611 (ftrace_new_switch): Update
11612 level computation.
11613 (ftrace_new_gap): New.
11614 (ftrace_update_function): Create new function after gap.
11615 (btrace_compute_ftrace_bts): Create gap on error.
11616 (btrace_stitch_bts): Update parameters. Clear trace if it
11617 becomes empty.
11618 (btrace_stitch_trace): Update parameters. Update callers.
11619 (btrace_clear): Reset the number of gaps.
11620 (btrace_insn_get): Return NULL if the iterator points to a gap.
11621 (btrace_insn_number): Return zero if the iterator points to a gap.
11622 (btrace_insn_end): Allow gaps at the end.
11623 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11624 (btrace_find_insn_by_number): Assert that the found iterator does
11625 not point to a gap.
11626 (btrace_call_next, btrace_call_prev): Assert that the last function
11627 is not a gap.
11628 * btrace.h (btrace_bts_error): New.
11629 (btrace_function): Update comment.
11630 (btrace_function) <insn, insn_offset, number>: Update comment.
11631 (btrace_function) <errcode>: New.
11632 (btrace_thread_info) <ngaps>: New.
11633 (btrace_thread_info) <replay>: Update comment.
11634 (btrace_insn_get): Update comment.
11635 * record-btrace.c (btrace_ui_out_decode_error): New.
11636 (record_btrace_info): Print number of gaps.
11637 (btrace_insn_history, btrace_call_history): Call
11638 btrace_ui_out_decode_error for gaps.
11639 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11640
11641 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11642
11643 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11644 * nat/linux-btrace.c: (btrace_this_cpu): New.
11645 (cpu_supports_bts): Call btrace_this_cpu.
11646 (intel_supports_bts): Add cpu parameter.
11647
11648 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11649
11650 * btrace.h (btrace_insn_class): New.
11651 (btrace_insn) <size, iclass>: New.
11652 * btrace.c (ftrace_find_call): Update parameters. Update users.
11653 Use instruction classification.
11654 (ftrace_new_return): Update parameters. Update users.
11655 (ftrace_update_function): Update parameters. Update users. Use
11656 instruction classification.
11657 (ftrace_update_insns): Update parameters. Update users.
11658 (ftrace_classify_insn): New.
11659 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11660 TRY_CATCH around call to gdb_insn_length.
11661
11662 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11663
11664 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11665 Update parameters. Update users.
11666
11667 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11668
11669 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11670 (btrace_conf_bts_attributes): New.
11671 (btrace_conf_children): Add attributes.
11672 * common/btrace-common.h (btrace_config_bts): New.
11673 (btrace_config)<bts>: New.
11674 (btrace_config): Update comment.
11675 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11676 Use config.
11677 * features/btrace-conf.dtd: Increment version. Add size
11678 attribute to bts element.
11679 * record-btrace.c (set_record_btrace_bts_cmdlist,
11680 show_record_btrace_bts_cmdlist): New.
11681 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11682 record_btrace_print_conf, cmd_set_record_btrace_bts,
11683 cmd_show_record_btrace_bts): New.
11684 (record_btrace_info): Call record_btrace_print_conf.
11685 (_initialize_record_btrace): Add commands.
11686 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11687 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11688 (btrace_sync_conf): Synchronize bts size.
11689 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11690 * NEWS: Announce new commands and new packets.
11691
11692 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11693
11694 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11695 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11696 (x86_linux_btrace_conf): New.
11697 (x86_linux_create_target): Initialize to_btrace_conf.
11698 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11699 Check format. Split into this and ...
11700 (linux_enable_bts): ... this.
11701 (linux_btrace_conf): New.
11702 (perf_event_skip_record): Renamed into ...
11703 (perf_event_skip_bts_record): ... this. Updated users.
11704 (linux_disable_btrace): Split into this and ...
11705 (linux_disable_bts): ... this.
11706 (linux_read_btrace): Check format.
11707 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11708 (linux_btrace_conf): New.
11709 (btrace_target_info)<ptid>: Moved.
11710 (btrace_target_info)<conf>: New.
11711 (btrace_target_info): Split into this and ...
11712 (btrace_tinfo_bts): ... this. Updated users.
11713 * btrace.c (btrace_enable): Update parameters.
11714 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11715 (btrace_conf_children, btrace_conf_attributes)
11716 (btrace_conf_elements): New.
11717 * btrace.h (btrace_enable): Update parameters.
11718 (btrace_conf, parse_xml_btrace_conf): New.
11719 * common/btrace-common.h (btrace_config): New.
11720 * feature/btrace-conf.dtd: New.
11721 * record-btrace.c (record_btrace_conf): New.
11722 (record_btrace_cmdlist): New.
11723 (record_btrace_enable_warn, record_btrace_open): Pass
11724 &record_btrace_conf.
11725 (record_btrace_info): Print recording format.
11726 (cmd_record_btrace_bts_start): New.
11727 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11728 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11729 Add "record bts" alias command.
11730 * remote.c (remote_state)<btrace_config>: New.
11731 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11732 (remote_protocol_features): Add qXfer:btrace-conf:read.
11733 (remote_open_1): Call remote_btrace_reset.
11734 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11735 (btrace_target_info)<conf>: New.
11736 (btrace_sync_conf, btrace_read_config): New.
11737 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11738 btrace_read_conf.
11739 (remote_btrace_conf): New.
11740 (init_remote_ops): Initialize to_btrace_conf.
11741 (_initialize_remote): Add qXfer:btrace-conf packet.
11742 * target.c (target_enable_btrace): Update parameters.
11743 (target_btrace_conf): New.
11744 * target.h (target_enable_btrace): Update parameters.
11745 (target_btrace_conf): New.
11746 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11747 (target_ops)<to_enable_btrace>: Update parameters and comment.
11748 (target_ops)<to_btrace_conf>: New.
11749 * target-delegates: Regenerate.
11750 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11751 (target_debug_print_const_struct_btrace_target_info_p): New.
11752 * NEWS: Announce new command and new packet.
11753
11754 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11755
11756 * nat/linux-btrace.h (perf_event_buffer): New.
11757 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11758 <bts>: ... this.
11759 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11760 (perf_event_buffer_size, perf_event_buffer_begin)
11761 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11762 Updated users.
11763 (perf_event_new_data): New.
11764
11765 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11766
11767 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11768 * record-btrace.c (record_btrace_open): Remove call to
11769 target_supports_btrace.
11770 * remote.c (remote_supports_btrace): Update parameters.
11771 * target.c (target_supports_btrace): Update parameters.
11772 * target.h (to_supports_btrace, target_supports_btrace): Update
11773 parameters.
11774 * target-delegates.c: Regenerate.
11775 * target-debug.h (target_debug_print_enum_btrace_format): New.
11776 * nat/linux-btrace.c
11777 (kernel_supports_btrace): Rename into ...
11778 (kernel_supports_bts): ... this. Update users. Update warning text.
11779 (intel_supports_btrace): Rename into ...
11780 (intel_supports_bts): ... this. Update users.
11781 (cpu_supports_btrace): Rename into ...
11782 (cpu_supports_bts): ... this. Update users.
11783 (linux_supports_btrace): Update parameters. Split into this and ...
11784 (linux_supports_bts): ... this.
11785 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11786
11787 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11788
11789 * Makefile.in (SFILES): Add common/btrace-common.c.
11790 (COMMON_OBS): Add common/btrace-common.o.
11791 (btrace-common.o): Add build rules.
11792 * btrace.c (parse_xml_btrace): Update parameters.
11793 (parse_xml_btrace_block): Set format field.
11794 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11795 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11796 (btrace_compute_ftrace): Split into this and...
11797 (btrace_compute_ftrace_bts): ...this.
11798 (btrace_stitch_trace): Split into this and...
11799 (btrace_stitch_bts): ...this.
11800 * btrace.h (parse_xml_btrace): Update parameters.
11801 (make_cleanup_btrace_data): New.
11802 * common/btrace-common.c: New.
11803 * common/btrace-common.h: Include common-defs.h.
11804 (btrace_block_s): Update comment.
11805 (btrace_format): New.
11806 (btrace_format_string): New.
11807 (btrace_data_bts): New.
11808 (btrace_data): New.
11809 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11810 * remote.c (remote_read_btrace): Update parameters.
11811 * target.c (target_read_btrace): Update parameters.
11812 * target.h (target_read_btrace): Update parameters.
11813 (target_ops)<to_read_btrace>: Update parameters.
11814 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11815 * target-delegates.c: Regenerate.
11816 * target-debug (target_debug_print_struct_btrace_data_p): New.
11817 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11818 (linux_read_bts): ...this.
11819 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11820
11821 2015-02-06 Doug Evans <dje@google.com>
11822
11823 * remote-m32r-sdi.c: Include symfile.h.
11824
11825 2015-02-06 Doug Evans <dje@google.com>
11826
11827 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11828 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11829 to here.
11830
11831 2015-02-06 Pedro Alves <palves@redhat.com>
11832
11833 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11834
11835 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11836
11837 PR gdb/15678
11838 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11839 (enable_count_command): Check args for NULL value.
11840
11841 2015-02-05 Doug Evans <xdje42@gmail.com>
11842
11843 * guile/scm-frame.c: Fix spelling errors in a comment.
11844
11845 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11846
11847 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11848 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11849 return type.
11850
11851 2015-02-04 Pedro Alves <palves@redhat.com>
11852
11853 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11854 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11855 returns true.
11856 (resume_stopped_resumed_lwps): Don't check whether the thread is
11857 marked as executing.
11858 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11859
11860 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11861
11862 * regset.h (struct regset): Add flags field.
11863 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11864 * corelow.c (get_core_register_section): Add warning if the size
11865 exceeds the requested size and the regset does not have the
11866 REGSET_VARIABLE_SIZE flag set.
11867 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11868 flag.
11869 * armbsd-tdep.c (armbsd_gregset): Likewise.
11870 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11871 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11872 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11873 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11874
11875 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11876
11877 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11878 For ".reg-xstate", explicitly specify the requested section size
11879 via X86_XSTATE_SIZE instead of just 0 on input and
11880 X86_XSTATE_MAX_SIZE on output.
11881 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11882 Likewise.
11883
11884 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11885
11886 PR corefiles/17808:
11887 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11888 function type, particularly its SIZE parameter.
11889 * gdbarch.h: Regenerate.
11890 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11891 actual against required size using ">=" instead of "==".
11892 (amd64_collect_fpregset): Likewise.
11893 * i386-tdep.c (i386_supply_gregset): Likewise.
11894 (i386_collect_gregset): Likewise.
11895 (i386_supply_fpregset): Likewise.
11896 (i386_collect_fpregset): Likewise.
11897 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11898 (mips_fill_gregset_wrapper): Likewise.
11899 (mips_supply_fpregset_wrapper): Likewise.
11900 (mips_fill_fpregset_wrapper): Likewise.
11901 (mips64_supply_gregset_wrapper): Likewise.
11902 (mips64_fill_gregset_wrapper): Likewise.
11903 (mips64_supply_fpregset_wrapper): Likewise.
11904 (mips64_fill_fpregset_wrapper): Likewise.
11905 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11906 (am33_supply_fpregset_method): Likewise.
11907 (am33_collect_gregset_method): Likewise.
11908 (am33_collect_fpregset_method): Likewise.
11909
11910 2015-02-04 Doug Evans <dje@google.com>
11911 Pedro Alves <palves@redhat.com>
11912 Eli Zaretskii <eliz@gnu.org>
11913
11914 PR tui/17810
11915 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11916 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11917 * tui/tui-file.c: #include tui/tui-command.h.
11918 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11919 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11920 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11921
11922 2015-02-04 Pedro Alves <palves@redhat.com>
11923
11924 Fix build breakage.
11925 * event-loop.c (gdb_do_one_event): Add default switch case.
11926
11927 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11928
11929 Filter out inferior gcc option -fpreprocessed.
11930 * compile/compile.c (filter_args): New function.
11931 (get_args): Use it.
11932
11933 2015-02-03 Pedro Alves <palves@redhat.com>
11934
11935 * event-loop.c: Don't declare nor define a queue type for
11936 gdb_event_p.
11937 (event_queue): Delete.
11938 (create_event, create_file_event, gdb_event_xfree)
11939 (initialize_event_loop, process_event): Delete.
11940 (gdb_do_one_event): Return as soon as one event is handled.
11941 (handle_file_event): Change prototype. Used the passed in
11942 file_handler pointer and ready_mask instead of looping over all
11943 file handlers.
11944 (gdb_wait_for_event): Update the poll/select timeouts before
11945 blocking. Run event handlers directly instead of queueing events.
11946 Return as soon as one event is handled.
11947 (struct async_event_handler_data): Delete.
11948 (invoke_async_event_handler): Delete.
11949 (check_async_event_handlers): Change return type to int. Run
11950 event handlers directly instead of queueing events. Return as
11951 soon as one event is handled.
11952 (handle_timer_event): Delete.
11953 (update_wait_timeout): New function, factored out from
11954 poll_timers.
11955 (poll_timers): Reimplement.
11956 * event-loop.h (initialize_event_loop): Delete declaration.
11957 * top.c (gdb_init): Don't call initialize_event_loop.
11958
11959 2015-02-03 Pedro Alves <palves@redhat.com>
11960
11961 * event-loop.c (clear_async_event_handler): New function.
11962 * event-loop.h (clear_async_event_handler): New declaration.
11963 * record-btrace.c (record_btrace_async): New function.
11964 (init_record_btrace_ops): Install record_btrace_async.
11965 * record-full.c (record_full_async): New function.
11966 (record_full_resume): Don't mark the async event source here.
11967 (init_record_full_ops): Install record_full_async.
11968 (record_full_core_resume): Don't mark the async event source here.
11969 (init_record_full_core_ops): Install record_full_async.
11970 * remote.c (remote_async): Mark and clear the async stop reply
11971 queue event-loop token as appropriate.
11972
11973 2015-02-03 Pedro Alves <palves@redhat.com>
11974
11975 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11976 target_is_async_p instead of target_can_async.
11977 (linux_nat_wait): Use target_is_async_p instead of
11978 target_can_async. Don't enable async here.
11979 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11980 target_is_async_p instead of target_can_async.
11981
11982 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11983
11984 * varobj.h (lang_varobj_ops): Mention which return values need
11985 to be freed.
11986
11987 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11988
11989 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11990
11991 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11992
11993 PR gdb/17856:
11994 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11995 results found in the cache.
11996
11997 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11998
11999 PR gdb/17854:
12000 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12001 when allocating a new one.
12002
12003 2015-02-01 Tom Tromey <tom@tromey.com>
12004
12005 * MAINTAINERS: Remove myself.
12006
12007 2015-01-31 Doug Evans <xdje42@gmail.com>
12008
12009 * dwarf2read.c (process_structure_scope): Update setting of
12010 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12011 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12012 (set_type_vptr_fieldno): New function.
12013 (internal_type_vptr_basetype): New function.
12014 (set_type_vptr_basetype): New function.
12015 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12016 TYPE_VPTR_BASETYPE.
12017 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12018 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12019 (print_cplus_stuff): ... moved here.
12020 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12021 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12022 moved to ...
12023 (struct cplus_struct_type): ... here. All uses updated.
12024 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12025 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12026 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12027 * stabsread.c (read_tilde_fields): Update setting of
12028 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12029
12030 2015-01-31 Doug Evans <xdje42@gmail.com>
12031
12032 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12033 to self_p.
12034 (cp_print_class_member): Rename local domain to self_type.
12035 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12036 domain_type to self_type.
12037 (set_die_type) <need_gnat_info>: Handle
12038 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12039 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12040 TYPE_SPECIFIC_SELF_TYPE.
12041 * gdbtypes.c (internal_type_self_type): New function.
12042 (set_type_self_type): New function.
12043 (smash_to_memberptr_type): Rename parameter domain to self_type.
12044 Update setting of TYPE_SELF_TYPE.
12045 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12046 (smash_to_method_type): Rename parameter domain to self_type.
12047 Update setting of TYPE_SELF_TYPE.
12048 (check_stub_method): Call smash_to_method_type.
12049 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12050 (copy_type_recursive): Ditto.
12051 * gdbtypes.h (enum type_specific_kind): New value
12052 TYPE_SPECIFIC_SELF_TYPE.
12053 (struct main_type) <type_specific>: New member self_type.
12054 (struct cplus_struct_type) <fn_field.type>: Update comment.
12055 (TYPE_SELF_TYPE): Rewrite.
12056 (internal_type_self_type, set_type_self_type): Declare.
12057 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12058 self_type.
12059 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12060 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12061 TYPE_TARGET_TYPE.
12062 * stabsread.c (read_member_functions): Mark methods with
12063 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12064 TYPE_SELF_TYPE.
12065
12066 2015-01-31 Doug Evans <xdje42@gmail.com>
12067
12068 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12069 All uses updated.
12070
12071 2015-01-31 Doug Evans <xdje42@gmail.com>
12072
12073 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12074 or unions. Return zero if union.
12075 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12076 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12077 gnuv3_get_vtable.
12078 (compute_vtable_size): Assert only passed structs.
12079 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12080
12081 2015-01-31 Doug Evans <xdje42@gmail.com>
12082
12083 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12084 kinds.
12085
12086 2015-01-31 Gary Benson <gbenson@redhat.com>
12087 Doug Evans <dje@google.com>
12088
12089 PR cli/9007
12090 PR cli/11920
12091 PR cli/15548
12092 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12093 reached.
12094 * common/common-exceptions.h (enum errors)
12095 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12096 * completer.h (get_max_completions_reached_message): New declaration.
12097 (max_completions): Likewise.
12098 (completion_tracker_t): New typedef.
12099 (new_completion_tracker): New declaration.
12100 (make_cleanup_free_completion_tracker): Likewise.
12101 (maybe_add_completion_enum): New enum.
12102 (maybe_add_completion): New declaration.
12103 (throw_max_completions_reached_error): Likewise.
12104 * completer.c (max_completions): New global variable.
12105 (new_completion_tracker): New function.
12106 (free_completion_tracker): Likewise.
12107 (make_cleanup_free_completion_tracker): Likewise.
12108 (maybe_add_completions): Likewise.
12109 (throw_max_completions_reached_error): Likewise.
12110 (complete_line): Remove duplicates and limit result to max_completions
12111 entries.
12112 (get_max_completions_reached_message): New function.
12113 (gdb_display_match_list): Handle max_completions.
12114 (_initialize_completer): New declaration and function.
12115 * symtab.c: Include completer.h.
12116 (completion_tracker): New static variable.
12117 (completion_list_add_name): Call maybe_add_completion.
12118 (default_make_symbol_completion_list_break_on_1): Renamed from
12119 default_make_symbol_completion_list_break_on. Maintain
12120 completion_tracker across calls to completion_list_add_name.
12121 (default_make_symbol_completion_list_break_on): New function.
12122 * top.c (init_main): Set rl_completion_display_matches_hook.
12123 * tui/tui-io.c: Include completer.h.
12124 (tui_old_rl_display_matches_hook): New static global.
12125 (tui_rl_display_match_list): Notify user if max-completions reached.
12126 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12127 * NEWS (New Options): Mention set/show max-completions.
12128
12129 2015-01-31 Gary Benson <gbenson@redhat.com>
12130
12131 * symtab.c (struct add_name_data) <code>: New field.
12132 Updated comments.
12133 (add_symtab_completions): New function.
12134 (symtab_expansion_callback): Likewise.
12135 (default_make_symbol_completion_list_break_on): Set datum.code.
12136 Move minimal symbol scan before calling expand_symtabs_matching.
12137 Scan known primary symtabs for externs and statics before calling
12138 expand_symtabs_matching. Pass symtab_expansion_callback as
12139 expansion_notify argument to expand_symtabs_matching. Do not scan
12140 primary symtabs for externs and statics after calling
12141 expand_symtabs_matching.
12142
12143 2015-01-31 Gary Benson <gbenson@redhat.com>
12144
12145 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12146 (struct quick_symbol_functions) <expand_symtabs_matching>:
12147 New argument expansion_notify. All uses updated.
12148 (expand_symtabs_matching): New argument expansion_notify.
12149 All uses updated.
12150 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12151 Also print expansion notify.
12152 * symtab.c (expand_symtabs_matching_via_partial): Call
12153 expansion_notify whenever a partial symbol table is expanded.
12154 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12155 expansion_notify whenever a symbol table is instantiated.
12156
12157 2015-01-31 Doug Evans <xdje42@gmail.com>
12158
12159 * cli-out.c: #include completer.h, readline/readline.h.
12160 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12161 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12162 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12163 * cli-out.h (cli_display_match_list): Declare.
12164 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12165 (ELLIPSIS_LEN): Ditto.
12166 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12167 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12168 (gdb_fnprint, gdb_print_filename): Ditto.
12169 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12170 (gdb_display_match_list): Ditto.
12171 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12172 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12173 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12174 (match_list_displayer): New struct.
12175 (gdb_display_match_list): Declare.
12176 * top.c (init_main): Set rl_completion_display_matches_hook.
12177 * tui/tui-io.c: #include completer.h.
12178 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12179 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12180 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12181 (tui_mld_getc, tui_mld_read_key): Ditto.
12182 (tui_rl_display_match_list): Rewrite.
12183 (tui_handle_resize_during_io): New arg for_completion. All callers
12184 updated.
12185
12186 2015-01-31 Doug Evans <xdje42@gmail.com>
12187
12188 Add symbol lookup cache.
12189 * NEWS: Document new options and commands.
12190 * symtab.c (symbol_cache_key): New static global.
12191 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12192 (SYMBOL_LOOKUP_FAILED): New macro.
12193 (symbol_cache_slot_state): New enum.
12194 (block_symbol_cache): New struct.
12195 (symbol_cache): New struct.
12196 (new_symbol_cache_size, symbol_cache_size): New static globals.
12197 (hash_symbol_entry, eq_symbol_entry): New functions.
12198 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12199 (make_symbol_cache, free_symbol_cache): New functions.
12200 (get_symbol_cache, symbol_cache_cleanup): New function.
12201 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12202 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12203 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12204 (symbol_cache_flush, symbol_cache_dump): New functions.
12205 (maintenance_print_symbol_cache): New function.
12206 (maintenance_flush_symbol_cache): New function.
12207 (symbol_cache_stats): New function.
12208 (maintenance_print_symbol_cache_statistics): New function.
12209 (symtab_new_objfile_observer): New function.
12210 (symtab_free_objfile_observer): New function.
12211 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12212 (_initialize_symtab): Init symbol_cache_key. New parameter
12213 maint symbol-cache-size. New maint commands print symbol-cache,
12214 print symbol-cache-statistics, flush-symbol-cache.
12215 Install new_objfile, free_objfile observers.
12216
12217 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12218
12219 PR symtab/17855
12220 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12221 to end.
12222
12223 2015-01-31 Doug Evans <xdje42@gmail.com>
12224
12225 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12226 * auto-load.c: #include ctype.h.
12227 (struct auto_load_pspace_info): Replace member loaded_scripts with
12228 new members loaded_script_files, loaded_script_texts.
12229 (auto_load_pspace_data_cleanup): Update.
12230 (init_loaded_scripts_info): Update.
12231 (get_auto_load_pspace_data_for_loading): Update.
12232 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12233 updated.
12234 (maybe_add_script_text): New function.
12235 (clear_section_scripts): Update.
12236 (source_script_file, execute_script_contents): New functions.
12237 (source_section_scripts): Add support for
12238 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12239 (print_scripts): New function.
12240 (auto_load_info_scripts): Also print inlined scripts.
12241 (maybe_print_unsupported_script_warning): Renamed from
12242 unsupported_script_warning_print. All callers updated.
12243 (maybe_print_script_not_found_warning): Renamed from
12244 script_not_found_warning_print. All callers updated.
12245 * extension-priv.h (struct extension_language_script_ops): New member
12246 objfile_script_executor.
12247 * extension.c (ext_lang_objfile_script_executor): New function.
12248 * extension.h (objfile_script_executor_func): New typedef.
12249 (ext_lang_objfile_script_executor): Declare.
12250 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12251 * guile/guile.c (guile_extension_script_ops): Update.
12252 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12253 * python/python.c (python_extension_script_ops): Update.
12254 (gdbpy_execute_objfile_script): New function.
12255
12256 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12257
12258 * tui/tui-io.c (tui_expand_tabs): New function.
12259 (tui_puts, tui_redisplay_readline): Expand TABs into the
12260 appropriate number of spaces.
12261 * tui/tui-regs.c: Include tui-io.h.
12262 (tui_register_format): Call tui_expand_tabs to expand TABs into
12263 the appropriate number of spaces.
12264 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12265
12266 2015-01-30 Doug Evans <dje@google.com>
12267
12268 * NEWS: "info source" command now display producer string if present.
12269 * source.c (source_info): Print producer string if present.
12270
12271 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12272
12273 * varobj.c (varobj_delete): Fix comment.
12274
12275 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12276
12277 * varobj.c (create_child): Modify comment.
12278
12279 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12280
12281 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12282 parameter.
12283 (ada_name_of_variable): Same.
12284 (ada_path_expr_of_child): Same.
12285 (ada_value_of_variable): Same.
12286 (ada_value_is_changeable_p): Same.
12287 (ada_value_has_mutated): Same.
12288 * c-varobj.c (varobj_is_anonymous_child): Same.
12289 (c_is_path_expr_parent): Same.
12290 (c_number_of_children): Same.
12291 (c_name_of_variable): Same.
12292 (c_path_expr_of_child): Same.
12293 (get_type): Same.
12294 (c_value_of_variable): Same.
12295 (cplus_number_of_children): Same.
12296 (cplus_name_of_variable): Same.
12297 (cplus_path_expr_of_child): Same.
12298 (cplus_value_of_variable): Same.
12299 * jv-varobj.c (java_number_of_children): Same.
12300 (java_name_of_variable): Same.
12301 (java_path_expr_of_child): Same.
12302 (java_value_of_variable): Same.
12303 * varobj.c (number_of_children): Same.
12304 (name_of_variable): Same.
12305 (is_root_p): Same.
12306 (varobj_ensure_python_env): Same.
12307 (varobj_get_objname): Same.
12308 (varobj_get_expression): Same.
12309 (varobj_get_display_format): Same.
12310 (varobj_get_display_hint): Same.
12311 (varobj_has_more): Same.
12312 (varobj_get_thread_id): Same.
12313 (varobj_get_frozen): Same.
12314 (dynamic_varobj_has_child_method): Same.
12315 (varobj_get_gdb_type): Same.
12316 (is_path_expr_parent): Same.
12317 (varobj_default_is_path_expr_parent): Same.
12318 (varobj_get_language): Same.
12319 (varobj_get_attributes): Same.
12320 (varobj_is_dynamic_p): Same.
12321 (varobj_get_child_range): Same.
12322 (varobj_value_has_mutated): Same.
12323 (varobj_get_value_type): Same.
12324 (number_of_children): Same.
12325 (name_of_variable): Same.
12326 (check_scope): Same.
12327 (varobj_editable_p): Same.
12328 (varobj_value_is_changeable_p): Same.
12329 (varobj_floating_p): Same.
12330 (varobj_default_value_is_changeable_p): Same.
12331
12332 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12333
12334 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12335 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12336 child->path_expr.
12337 (cplus_path_expr_of_child): Same.
12338
12339 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12340
12341 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12342 result.
12343 (mi_cmd_var_info_expression): Same.
12344 * varobj.c (varobj_get_expression): Mention in the comment that
12345 the result must by freed by the caller.
12346
12347 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12348
12349 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12350 varobj_get_type.
12351 (varobj_update_one): Same.
12352 * varobj.c (update_type_if_necessary): Free curr_type_str and
12353 new_type_str.
12354 (varobj_get_type): Specify in comment that the result needs to be
12355 freed by the caller.
12356
12357 2015-01-29 Doug Evans <dje@google.com>
12358
12359 PR symtab/17890
12360 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12361
12362 2015-01-25 Mark Wielaard <mjw@redhat.com>
12363
12364 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12365 * utils.c (producer_is_gcc_ge_4): Likewise.
12366 (producer_is_gcc): New function.
12367 * utils.h (producer_is_gcc): New declaration.
12368
12369 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12370
12371 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12372 kind.
12373 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12374 parameter by "addr_stack" parameter.
12375 (resolve_dynamic_range): Replace "addr" parameter by
12376 "stack_addr" parameter. Update function documentation.
12377 Update code accordingly.
12378 (resolve_dynamic_array, resolve_dynamic_union)
12379 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12380 (resolve_dynamic_type): Update code, following the changes made
12381 to resolve_dynamic_type_internal's interface.
12382 * dwarf2loc.h (struct property_addr_info): New.
12383 (dwarf2_evaluate_property): Replace "address" parameter
12384 by "addr_stack" parameter. Adjust function documentation.
12385 (struct dwarf2_offset_baton): New.
12386 (struct dwarf2_property_baton): Update documentation of
12387 field "referenced_type" to be more general. New field
12388 "offset_info" in union data field.
12389 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12390 parameter by "addr_stack" parameter. Adjust code accordingly.
12391 Add support for PROP_ADDR_OFFSET properties.
12392 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12393 DW_AT_data_member_location attributes as well. Use case
12394 statements instead of if/else condition.
12395
12396 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12397
12398 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12399 Return zero if PARENT_VALUE is NULL and parent_type's
12400 range type is dynamic.
12401
12402 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12403
12404 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12405 nonzero if the type's subtype is dynamic.
12406 (resolve_dynamic_range): Also resolve the range's subtype.
12407
12408 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12409
12410 Pushed by Joel Brobecker <brobecker@adacore.com>.
12411 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12412
12413 2015-01-27 Doug Evans <dje@google.com>
12414
12415 * NEWS: Mention gdb.Objfile.username.
12416 * python/py-objfile.c (objfpy_get_username): New function.
12417 (objfile_getset): Add "username".
12418
12419 2015-01-24 Mark Wielaard <mjw@redhat.com>
12420
12421 * stack.c (return_command): Markup warning message with _.
12422
12423 2015-01-24 Doug Evans <xdje42@gmail.com>
12424
12425 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12426
12427 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12428
12429 Fix 100x slowdown regression on DWZ files.
12430 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12431 (struct line_header): Add offset and offset_in_dwz.
12432 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12433 (free_line_header_voidp): New declaration.
12434 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12435 functions.
12436 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12437 (handle_DW_AT_stmt_list): Use line_header_hash.
12438 (free_line_header_voidp): New function.
12439 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12440 (dwarf_decode_lines): New parameter decode_mapping, use it.
12441 (dwarf2_free_objfile): Free line_header_hash.
12442
12443 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12444
12445 PR gdb/17416
12446 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12447 value_ind.
12448
12449 2015-01-15 Mark Wielaard <mjw@redhat.com>
12450
12451 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12452 DW_AT_noreturn.
12453 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12454 calling_convention an 8 bit bit field.
12455 (TYPE_NO_RETURN): New macro.
12456 * infcmd.c (finish_command): Query if function does not return
12457 normally.
12458 * stack.c (return_command): Likewise.
12459
12460 2015-01-23 Pedro Alves <palves@redhat.com>
12461
12462 * linux-nat.c (linux_is_async_p): New macro.
12463 (linux_nat_is_async_p):
12464 (linux_nat_terminal_inferior): Check whether the target can async
12465 instead of whether it is already async.
12466 (linux_nat_terminal_ours): Don't check whether the target is
12467 async.
12468 (linux_async_pipe): Use linux_is_async_p.
12469
12470 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12471
12472 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12473 '-ascending'.
12474 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12475 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12476 Sort tp_array using tp_array_compar.
12477 (_initialize_thread): Extend thread_apply_all_command help.
12478
12479 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12480
12481 * corelow.c (core_open): Call also thread_command.
12482 * gdbthread.h (thread_command): New prototype moved from ...
12483 * thread.c (thread_command): ... here.
12484 (thread_command): Make it global.
12485
12486 2015-01-22 Pedro Alves <palves@redhat.com>
12487
12488 * configure.ac [*mingw32*]: Check $curses_found instead of
12489 $prefer_curses.
12490 * configure: Regenerate.
12491 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12492 HAVE_NCURSES_NCURSES_H checks.
12493
12494 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12495
12496 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12497 fails with the 1st arg NULL, try again with "unknown". Don't test
12498 the "cup" capability: it isn't supported by the Windows port of
12499 ncurses, but the Windows console driver is still capable of
12500 supporting TUI.
12501
12502 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12503
12504 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12505
12506 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12507
12508 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12509 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12510 reason that "make TAGS" is broken.
12511
12512 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12513
12514 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12515 and check additional store instructions.
12516
12517 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12518
12519 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12520
12521 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12522
12523 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12524 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12525 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12526 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12527 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12528 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12529 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12530 ppc_process_record_op19, ppc_process_record_op31,
12531 ppc_process_record_op59, ppc_process_record_op60,
12532 ppc_process_record_op63): Likewise.
12533
12534 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12535
12536 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12537 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12538 strerror.
12539
12540 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12541
12542 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12543 ppc_process_record_op31, ppc_process_record_op59,
12544 ppc_process_record_op60, ppc_process_record_op63,
12545 ppc_process_record): Fix -Wformat warning.
12546 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12547 Remove unused variables.
12548
12549 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12550
12551 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12552
12553 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12554
12555 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12556 CONFIG_OBS if not building with a curses library.
12557 * configure: Regenerate.
12558
12559 * windows-termcap.c: Include defs.h. Make the whole body empty if
12560 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12561 HAVE_NCURSES_NCURSES_H is defined.
12562
12563 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12564
12565 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12566 from end of line to start of next line.
12567
12568 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12569
12570 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12571 Scan PLT stub backward for reverse debugging.
12572 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12573
12574 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12575 Ulrich Weigand <uweigand@de.ibm.com>
12576
12577 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12578 gdb_target_obs.
12579 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12580 record.
12581 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12582 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12583 (ppc_linux_init_abi): Set process_record, process_record_signal.
12584 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12585 ppc_linux_record_tdep to gdbarch_tdep.
12586 (ppc_process_record): New declaration.
12587 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12588 ppc_process_record_op19, ppc_process_record_op31,
12589 ppc_process_record_op59, ppc_process_record_op60,
12590 ppc_process_record_op63, ppc_process_record): New functions.
12591
12592 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12593
12594 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12595 rs6000_in_function_epilogue_frame_p and add an argument
12596 for frame_info.
12597 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12598 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12599 New functions.
12600 (rs6000_epilogue_frame_unwind): New.
12601 (rs6000_gdbarch_init): Append epilogue unwinder.
12602
12603 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12604
12605 * nat/linux-personality.c: Replace "#ifndef
12606 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12607 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12608 systems.
12609
12610 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12611
12612 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12613 functions.
12614 (_initialize_tui_win) <border-kind, border-mode>:
12615 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12616 (tui_set_tab_width_command): Fix the commentary.
12617
12618 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12619
12620 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12621 Doc fix.
12622 (tui_set_tab_width_command): Delete and recreate the source and
12623 the disassembly windows, to show the effect of the changed tab
12624 size immediately.
12625
12626 * tui/tui-data.h (LINE_PREFIX): Make shorter
12627 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12628 "Thread NNNNN.XXXX" thread ID notation on Windows.
12629
12630 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12631
12632 Fix gcc-5 compilation.
12633 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12634
12635 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12636
12637 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12638 (linux-personality.o): New rule.
12639 * common/common-defs.h: Include <stdint.h>.
12640 * config/aarch64/linux.mh (NATDEPFILES): Include
12641 linux-personality.o.
12642 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12643 * config/arm/linux.mh (NATDEPFILES): Likewise.
12644 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12645 * config/i386/linux.mh (NATDEPFILES): Likewise.
12646 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12647 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12648 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12649 * config/mips/linux.mh (NATDEPFILES): Likewise.
12650 * config/pa/linux.mh (NATDEPFILES): Likewise.
12651 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12652 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12653 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12654 * config/s390/linux.mh (NATDEPFILES): Likewise.
12655 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12656 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12657 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12658 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12659 * defs.h: Remove #include <stdint.h> (moved to
12660 common/common-defs.h).
12661 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12662 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12663 nat/linux-personality.c).
12664 (linux_nat_create_inferior): Remove code to disable address space
12665 randomization (moved to nat/linux-personality.c). Create cleanup
12666 to disable address space randomization.
12667 * nat/linux-personality.c: New file.
12668 * nat/linux-personality.h: Likewise.
12669
12670 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12671
12672 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12673 common/posix-strerror.c.
12674 (posix-strerror.o): New rule.
12675 (mingw-strerror.o): Likewise.
12676 * common/common-utils.h (safe_strerror): Move prototype to here,
12677 from utils.h.
12678 * common/common.host: New file.
12679 * common/mingw-strerror.c: Likewise.
12680 * common/posix-strerror.c: Likewise.
12681 * configure: Regenerated.
12682 * configure.ac: Source common/common.host. Add variable
12683 common_host_obs to gdb_host_obs.
12684 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12685 gdb/common/posix-strerror.c when warning about the use of
12686 strerror.
12687 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12688 common/mingw-strerror.c.
12689 * posix-hdep.c (safe_strerror): Remove definition; move it to
12690 common/posix-hdep.c.
12691 * utils.h (safe_strerror): Remove prototype; move to
12692 common/common-utils.h.
12693
12694 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12695
12696 GDB 7.8.2 released.
12697
12698 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12699
12700 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12701 ___XA type if the array has already been fixed.
12702
12703 2015-01-14 Yao Qi <yao@codesourcery.com>
12704
12705 * Makefile.in (ppc-linux.o): New rule.
12706 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12707 * configure.ac: AC_CHECK_FUNCS(getauxval).
12708 * config.in: Re-generated.
12709 * configure: Re-generated.
12710 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12711 Declare.
12712 * nat/ppc-linux.c: New file.
12713 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12714 Call ppc64_64bit_inferior_p.
12715
12716 2015-01-14 Yao Qi <yao@codesourcery.com>
12717
12718 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12719 nat/ppc-linux.h.
12720 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12721 (PPC_FEATURE_HAS_DFP): Likewise.
12722 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12723 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12724 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12725 Include "nat/ppc-linux.h".
12726 * nat/ppc-linux.h: New file.
12727 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12728
12729 2015-01-14 Pedro Alves <palves@redhat.com>
12730
12731 PR gdb/17525
12732 * breakpoint.c: Include "interps.h".
12733 (bpstat_do_actions_1): Also check whether the interpreter is
12734 async.
12735
12736 2015-01-14 Pedro Alves <palves@redhat.com>
12737
12738 PR cli/17828
12739 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12740 reinstall if the interpreter is sync.
12741
12742 2015-01-13 Doug Evans <dje@google.com>
12743
12744 * objfiles.c (objfile_filename): New function.
12745 * objfiles.h (objfile_filename): Declare it.
12746 (objfile_name): Add function comment.
12747 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12748 bfd file name (which may be realpath'd), and the original name.
12749
12750 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12751
12752 * NEWS: Create a new section for the next release branch.
12753 Rename the section of the current branch, now that it has
12754 been cut.
12755
12756 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12757
12758 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12759 * version.in: Bump version to 7.9.50.DATE-cvs.
12760
12761 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12762
12763 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12764 Remove trailing new-line in argument of call to warning.
12765
12766 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12767
12768 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12769 new-line in argument of call to "warning".
12770
12771 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12772
12773 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12774 in static block, then try searching for primitive types.
12775
12776 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12777
12778 * top.h (gdb_add_history): Declare.
12779 * top.c (command_count): New variable.
12780 (gdb_add_history): New function.
12781 (gdb_safe_append_history): New static function.
12782 (quit_force): Call it.
12783 (command_line_input): Use gdb_add_history instead of
12784 add_history.
12785 * event-top.c (command_line_handler): Likewise.
12786
12787 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12788
12789 PR gdb/17046
12790 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12791 <setjmp.h> #include.
12792
12793 2015-01-11 Doug Evans <xdje42@gmail.com>
12794
12795 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12796
12797 2015-01-11 Doug Evans <xdje42@gmail.com>
12798
12799 PR gdb/15830
12800 * NEWS: The "maint demangle" command is renamed as "demangle".
12801 * demangle.c: #include cli/cli-utils.h, language.h.
12802 (demangle_command): New function.
12803 (_initialize_demangle): Add new command "demangle".
12804 * maint.c (maintenance_demangle): Stub out.
12805 (_initialize_maint_cmds): Update help text for "maint demangle",
12806 and mark as deprecated.
12807
12808 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12809
12810 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12811 inferior_thread is a function.
12812
12813 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12814
12815 * Makefile.in (.y.c): Don't munge yacc's #line
12816 directives.
12817
12818 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12819
12820 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12821 to prompt for input.
12822 * tui/tui-hooks.c (tui_query_hook): Remove.
12823 (tui_install_hooks): Don't set deprecated_query_hook.
12824 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12825 height calculation. Always update the command window's cur_line.
12826
12827 2015-01-09 Pedro Alves <palves@redhat.com>
12828
12829 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12830 function.
12831 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12832 declaration.
12833 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12834 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12835 stop_reason.
12836 (check_stopped_by_watchpoint): New function.
12837 (save_sigtrap): Reimplement.
12838 (linux_nat_stopped_by_watchpoint): Adjust.
12839 (linux_nat_lp_status_is_event): Delete.
12840 (stop_wait_callback): Only call save_sigtrap after storing the
12841 pending status.
12842 (status_callback): If the thread had been stopped for a breakpoint
12843 that has since been removed, discard the event and resume the LWP.
12844 (count_events_callback, select_event_lwp_callback): Use
12845 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12846 (cancel_breakpoint): Rename to ...
12847 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12848 stopped for a software breakpoint or hardware breakpoint.
12849 (select_event_lwp): Only give preference to the stepping LWP in
12850 all-stop mode. Adjust comments.
12851 (stop_and_resume_callback): Remove references to new_pending_p.
12852 (linux_nat_filter_event): Likewise. Leave exit events of the
12853 leader thread pending here. Handle signal short circuiting here.
12854 Only call save_sigtrap after storing the pending waitstatus.
12855 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12856 new_pending. Don't handle leaving events the caller is not
12857 interested in pending here, nor handle signal short-circuiting
12858 here. Also give equal priority to all LWPs that have had events
12859 in non-stop mode. If reporting a software breakpoint event,
12860 unadjust the LWP's PC.
12861 * linux-nat.h (enum lwp_stop_reason): New.
12862 (struct lwp_info) <stop_pc>: New field.
12863 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12864 (struct lwp_info) <stop_reason>: New field.
12865 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12866
12867 2015-01-09 Pedro Alves <palves@redhat.com>
12868
12869 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12870 Set the LWP's 'resumed' flag.
12871
12872 2015-01-09 Pedro Alves <palves@redhat.com>
12873
12874 * linux-nat.c (linux_resume_one_lwp): New function.
12875 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12876 (linux_nat_resume): Use lwp_status_pending_p and
12877 linux_resume_one_lwp.
12878 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12879 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12880 (status_callback, running_callback): Use lwp_status_pending_p.
12881 (lwp_status_pending_p): New function.
12882 (stop_and_resume_callback): Use lwp_status_pending_p.
12883 (linux_nat_filter_event): Use linux_resume_one_lwp.
12884 (linux_nat_wait_1): Always use status_callback to look for an LWP
12885 with a pending status. Use linux_resume_one_lwp.
12886 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12887 linux_resume_one_lwp.
12888
12889 2015-01-09 Pedro Alves <palves@redhat.com>
12890
12891 * breakpoint.c (bp_location_inserted_here_p): New function,
12892 factored out from ...
12893 (breakpoint_inserted_here_p): ... here. Use
12894 ALL_BP_LOCATIONS_AT_ADDR.
12895 (software_breakpoint_inserted_here_p): Use
12896 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12897
12898 2014-01-09 Pedro Alves <palves@redhat.com>
12899
12900 Skip enabling event reporting if the kernel supports
12901 PTRACE_EVENT_CLONE.
12902 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12903 (thread_db_use_events): New function.
12904 (try_thread_db_load_1): Check thread_db_use_events before enabling
12905 event reporting.
12906 (update_thread_state): New function.
12907 (attach_thread): Use it. Check thread_db_use_events before
12908 enabling event reporting.
12909 (thread_db_detach): Check thread_db_use_events before disabling
12910 event reporting.
12911 (find_new_threads_callback): Check thread_db_use_events before
12912 enabling event reporting. Update the thread's state if not using
12913 libthread_db events.
12914
12915 2015-01-09 Pedro Alves <palves@redhat.com>
12916
12917 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12918 about to wait for is > 0.
12919 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12920 the kernel thread ID is -1.
12921
12922 2015-01-09 Pedro Alves <palves@redhat.com>
12923
12924 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12925 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12926 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12927 ptrace option flags.
12928 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12929 field.
12930 * nat/linux-procfs.c: Include <dirent.h>.
12931 (linux_proc_get_int): New parameter "warn". Handle it.
12932 (linux_proc_get_tgid): Adjust.
12933 (linux_proc_get_tracerpid): Rename to ...
12934 (linux_proc_get_tracerpid_nowarn): ... this.
12935 (linux_proc_pid_get_state): New function, factored out from
12936 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12937 and handle it.
12938 (linux_proc_pid_is_gone): New function.
12939 (linux_proc_pid_is_stopped): Adjust.
12940 (linux_proc_pid_is_zombie_maybe_warn)
12941 (linux_proc_pid_is_zombie_nowarn): New functions.
12942 (linux_proc_pid_is_zombie): Use
12943 linux_proc_pid_is_zombie_maybe_warn.
12944 (linux_proc_attach_tgid_threads): New function.
12945 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12946 (linux_proc_get_tracerpid): Rename to ...
12947 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12948 (linux_proc_pid_is_gone): New declaration.
12949 (linux_proc_pid_is_zombie): Update comment.
12950 (linux_proc_pid_is_zombie_nowarn): New declaration.
12951 (linux_proc_attach_lwp_func): New typedef.
12952 (linux_proc_attach_tgid_threads): New declaration.
12953 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12954 use nowarn functions.
12955 (linux_ptrace_attach_fail_reason_string): Move here from
12956 gdbserver/linux-low.c and rename.
12957 (ptrace_supports_feature): If the current ptrace options are not
12958 known yet, check them now, instead of asserting.
12959 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12960 Declare.
12961
12962 2015-01-09 Pedro Alves <palves@redhat.com>
12963
12964 * linux-thread-db.c (thread_db_find_new_threads_silently)
12965 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12966 (find_new_threads_once): Print debug output on gdb_stdlog.
12967
12968 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12969 Pedro Alves <palves@redhat.com>
12970
12971 * compile/compile.c: Include "gdb_wait.h".
12972 (do_rmdir): Check return value, and free 'zap'.
12973
12974 2015-01-08 Pedro Alves <palves@redhat.com>
12975 Yao Qi <yao@codesourcery.com>
12976
12977 * dwarf2loc.c (indirect_pieced_value): Don't call
12978 gdb_sign_extend. Call extract_signed_integer instead.
12979 * utils.c (gdb_sign_extend): Remove.
12980 * utils.h (gdb_sign_extend): Remove declaration.
12981
12982 2015-01-07 Pierre Muller <muller@sourceware.org>
12983
12984 PR symtab/17811
12985 * stabsread.c (define_symbol): Set language for C++ special symbols.
12986
12987 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12988
12989 * inflow.c (initial_gdb_ttystate): Tweak comment.
12990
12991 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12992
12993 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12994 comment documenting function.
12995
12996 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12997
12998 * terminal.h (set_initial_gdb_ttystate): Declare.
12999 * inflow.c (initial_gdb_ttystate): New static variable.
13000 (set_initial_gdb_ttystate): New setter.
13001 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13002 instead of our current terminal state.
13003 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13004
13005 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13006
13007 * guile/scm-type.c (tyscm_array_1): Add comment.
13008 * python/py-type.c (typy_array_1): Add comment.
13009
13010 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13011
13012 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13013 error if N2 is equal to N1 - 1.
13014
13015 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13016
13017 * python/py-type.c (typy_array_1): Do not raise negative-length
13018 exception if N2 is equal to N1 - 1.
13019
13020 2015-01-03 Doug Evans <xdje42@gmail.com>
13021
13022 * c-exp.y: Whitespace cleanup.
13023 (classify_inner_name): Remove extra ;.
13024
13025 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13026
13027 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13028 offset signed.
13029
13030 2015-01-02 Doug Evans <dje@google.com>
13031
13032 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13033
13034 2015-01-02 Doug Evans <dje@google.com>
13035
13036 * symtab.h (struct symbol): Fix typo in comment.
13037
13038 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13039
13040 Update year range in copyright notice of all files.
13041
13042 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13043
13044 * top.c (print_gdb_version): Update copyright year to 2015.
13045
13046 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13047
13048 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13049
13050 For older changes see ChangeLog-2014.
13051 \f
13052 Local Variables:
13053 mode: change-log
13054 left-margin: 8
13055 fill-column: 74
13056 version-control: never
13057 coding: utf-8
13058 End:
This page took 0.30185 seconds and 4 git commands to generate.