ada-lang.h: Add cast in GROW_VECT
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * ada-lang.h (GROW_VECT): Add cast.
4
5 2015-10-26 Doug Evans <xdje42@gmail.com>
6
7 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
8
9 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
12 pointer.
13 (simple_search_memory): Cast return of memmem.
14
15 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
18
19 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
22 -1 on error.
23
24 2015-10-26 Doug Evans <dje@google.com>
25
26 PR symtab/17391
27 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
28 instead of gdbarch_dwarf2_reg_to_regnum.
29 (dwarf2_frame_cache): Ditto.
30 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
31 gdbarch_dwarf2_reg_to_regnum.
32 (get_reg_value): Ditto.
33 (dwarf2_fetch_cfa_info): Ditto.
34 (dwarf2_frame_prev_register): Ditto.
35 * dwarf2loc.c: #include "complaints.h".
36 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
37 instead of gdbarch_dwarf2_reg_to_regnum.
38 (dwarf_expr_get_reg_value): Ditto.
39 (read_pieced_value): Ditto.
40 (write_pieced_value): Ditto.
41 (dwarf2_evaluate_loc_desc_full): Ditto.
42 (dwarf_reg_to_regnum): New function.
43 (throw_bad_regnum_error): New function.
44 (dwarf_reg_to_regnum_or_error): Renamed from
45 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
46 All callers updated. Call throw_bad_regnum_error.
47 (locexpr_regname): Improve text of bad register number.
48 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
49 (dwarf_reg_to_regnum_or_error): Update prototype.
50 * dwarf2expr.c: #include "dwarf2loc.h".
51 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
52 gdbarch_dwarf2_reg_to_regnum.
53 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
54 * gdbarch.h: Regenerate.
55 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
56 register.
57 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
58 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
59 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
60 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
61 Remove warning for bad register.
62 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
63 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
64 i386_svr4_reg_to_regnum. Return -1 for bad registers.
65 (i386_svr4_reg_to_regnum): New function.
66 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
67 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
68 on bad registers, return -1.
69 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
70 Remove warning for bad register.
71 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
72 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
73 Remove warning for bad register. Return -1 for bad register.
74 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
75 for bad register, return -1.
76 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
77 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
78 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
79 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
80 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
81 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
82 for bad regs.
83 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
84 bad regs. Fix error result.
85 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
86 (reg_value_complaint): Update complaint text.
87 * mdebugread.c (reg_value_complaint): New function.
88 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
89
90 2015-10-26 Doug Evans <dje@google.com>
91
92 PR python/18938
93 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
94 All callers updated.
95
96 2015-10-26 Doug Evans <dje@google.com>
97
98 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
99 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
100 (maintenance_print_psymbols): Print address map.
101
102 2015-10-26 Doug Evans <dje@google.com>
103
104 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
105
106 2015-10-26 Doug Evans <dje@google.com>
107
108 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
109 gdbserver/linux-low.c.
110 (WSETSTOP): Simplify.
111
112 2015-10-26 Doug Evans <dje@google.com>
113
114 * linux-thread-db.c (find_new_threads_callback): Ditto.
115 (thread_db_pid_to_str): Ditto.
116
117 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
118
119 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
120 local char array to scm_mode_bits, use a cast instead.
121
122 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
123
124 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
125 result. Change type of element_block_ptr. Change allocation to
126 use XNEWVEC.
127
128 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
129
130 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
131 catch_errors call instead of NULL.
132
133 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
136 char pointer to scm_mode_bits.
137
138 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
141 cast.
142
143 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
146 "data" local variable and use it.
147
148 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
151 domain_enum cast.
152 (gdbscm_lookup_symbol): Likewise.
153
154 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
155
156 * d-exp.y: Remove an obsolete comment and propagate the block
157 information to the produced expression.
158
159 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
160
161 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
162 cast.
163 (tui_add_content_elements): Likewise.
164
165 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * cli/cli-setshow.c (do_set_command): Constify p.
168
169 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
172 (void *) cast with (gdb_byte *).
173
174 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * proc-service.c (ps_pdread): Add cast.
177
178 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
179
180 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
181 valbuf.
182
183 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
184
185 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
186 (ia64_push_dummy_call): Remove cast and change type of "to" to
187 array of gdb_byte.
188
189 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
192
193 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
194
195 * observer.h (observer_${event}_notification_stub): Add cast.
196
197 2015-10-23 Yao Qi <yao.qi@linaro.org>
198
199 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
200 dsd.insn_count to zero.
201
202 2015-10-22 Pedro Alves <palves@redhat.com>
203
204 * infrun.c (stop_after_trap): Delete.
205 (clear_proceed_status, handle_signal_stop, struct
206 infcall_control_state, save_infcall_control_state)
207 (restore_infcall_control_state): Remove references to
208 stop_after_trap.
209
210 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
211
212 * python/python.c (_initialize_python): Add cast.
213
214 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
215
216 * nto-tdep.c (nto_inferior_data): Add cast.
217
218 2015-10-22 Pedro Alves <palves@redhat.com>
219
220 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
221 windows_wait and windows_resume directly instead of
222 wait_for_inferior and resume.
223
224 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * xtensa-tdep.h (XTREG): Add casts.
227 (XTREG_END): Likewise.
228
229 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
232
233 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
236
237 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
240 buf to gdb_byte*.
241 (supply_32bit_reg): Add cast.
242 (mips64_fill_gregset): Likewise.
243
244 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
245
246 PR python/18073
247 * python/py-type.c (typy_get_composite): Allow returning a
248 function type.
249
250 2015-10-21 Keven Boell <keven.boell@intel.com>
251
252 * dwarf2read.c (set_die_type): Add read of
253 DW_AT_allocated and DW_AT_associated.
254 * f-typeprint.c: New include of typeprint.h
255 (f_print_type): Add check for allocated/associated
256 status of type.
257 (f_type_print_varspec_suffix): Add check for
258 * gdbtypes.c (create_array_type_with_stride):
259 Add check for valid data location of type in
260 case allocated or associated attributes are set.
261 Length of an array should be only calculated if
262 allocated or associated is resolved as true.
263 (is_dynamic_type_internal): Add check for allocated/
264 associated.
265 (resolve_dynamic_array): Evaluate allocated/associated
266 properties.
267 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
268 <DYN_PROP_ASSOCIATED>: New enums.
269 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
270 (type_not_allocated): New function.
271 (type_not_associated): New function.
272 * valarith.c (value_subscripted_rvalue): Add check for
273 allocated/associated.
274 * valprint.c: New include of typeprint.h.
275 (valprint_check_validity): Add check for allocated/associated.
276 (value_check_printable): Add check for allocated/
277 associated.
278 * typeprint.h (val_print_not_allocated): New function.
279 (val_print_not_associated): New function.
280 * typeprint.c (val_print_not_allocated): New function.
281 (val_print_not_associated): New function.
282
283 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
284
285 * Makefile.in: Add arm.c/o.
286 * arch/arm.c: New file.
287 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
288 (MAKE_THUMB_ADDR): Likewise.
289 (UNMAKE_THUMB_ADDR): Likewise.
290 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
291 (IS_THUMB_ADDR): Move to arm.h.
292 (MAKE_THUMB_ADDR): Likewise.
293 (UNMAKE_THUMB_ADDR): Likewise.
294 * configure.tgt: Add arm.o to all ARM configs.
295
296 2015-10-21 Yao Qi <yao.qi@linaro.org>
297
298 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
299 Remove argument exp_vCont_s.
300 * gdb.base/range-stepping.exp: Callers updated.
301 * gdb.trace/range-stepping.exp: Likewise.
302
303 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
304
305 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
306 (nto_sniff_abi_note_section): New function.
307 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
308 binary.
309
310 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
311
312 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
313 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
314 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
315 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
316 New functions.
317 (_initialize_nto_tdep): New forward declaration, new function.
318 * nto-tdep.h (struct nto_inferior_data): New struct.
319 (nto_inferior_data): New function declaration.
320
321 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
322
323 * findvar.c (address_from_register): Check REGNUM validity.
324
325 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
326
327 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
328 (init_procfs_targets): Wire new function.
329
330 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
331
332 * nto-procfs.c (sys/auxv.h): Include.
333 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
334 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
335 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
336
337 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
338
339 * nto-procfs.c (nto_procfs_path): Rename to...
340 (nodestr): ... this, and change type.
341 (nto_node): Use new variable and logic accordingly.
342 (procfs_open_1): Use new variable name. Use local buffer to construct
343 procfrs path.
344 (procfs_pidlist): Use NODESTR to construct procfs path.
345 (procfs_files_info): Use NODESTR to output meaningful text.
346 (do_attach): Construct procfs using NODESTR.
347 (procfs_create_inferior): Compare pointer to NULL.
348
349 2015-10-19 Josh Stone <jistone@redhat.com>
350
351 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
352 return state, even when not actively catching syscalls at all.
353 (linux_handle_extended_wait): Mark syscall_state like an entry.
354 (wait_lwp): Set syscall_state ignored for other traps.
355 (linux_nat_filter_event): Likewise.
356
357 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
358
359 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
360 when handling 'E', 'T', 'S', 'X' and 'W' packets.
361 Do not set rs->waiting_for_stop_reply back to 1.
362
363 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
364
365 * nto-procfs.c (common/filestuff.h): Include.
366 (procfs_can_use_hw_breakpoint): Fix enum name.
367 (procfs_open_1): Fix compiler warning.
368 (procfs_pidlist): Make static.
369 (procfs_meminfo): Make static, fix type name, add missing argument.
370 (procfs_store_registers): Make static.
371 (procfs_thread_info): Remove unused function.
372 (_initialize_procfs): Forward declare.
373
374 2015-10-16 Yao Qi <yao.qi@arm.com>
375
376 * MAINTAINERS: Update my email address.
377
378 2015-10-15 Yao Qi <yao.qi@linaro.org>
379
380 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
381 Call gdbarch_breakpoint_from_pc to instruction length.
382 (aarch64_linux_remove_hw_breakpoint): Likewise.
383 * common/common-regcache.h (regcache_register_size): Declare.
384 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
385 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
386 the process is 32bit, otherwise set alignment to 4.
387 (aarch64_handle_breakpoint): Update comments.
388 * regcache.c (regcache_register_size): New function.
389
390 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
391
392 * gdbarch.sh (core_regset_section): Remove.
393 * gdbarch.h: Regenerate.
394
395 2015-10-14 Yao Qi <yao.qi@linaro.org>
396
397 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
398 out of it.
399 (enum aarch64_memory_operand_type): New.
400
401 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
402
403 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
404
405 2015-10-13 Pedro Alves <palves@redhat.com>
406
407 * ada-lang.c (ada_enum_name): Constify local.
408 * ada-typeprint.c (print_range_bound): Constify locals.
409 * c-varobj.c (c_describe_child): Likewise.
410 * cli/cli-setshow.c (do_set_command): Likewise.
411 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
412 * dwarf2read.c (find_file_and_directory): Likewise.
413 (anonymous_struct_prefix, dwarf2_name): Likewise.
414 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
415 * go-lang.c (unpack_mangled_go_symbol): Likewise.
416 * jv-typeprint.c (java_type_print_base): Likewise.
417 * ser-tcp.c (net_open): Likewise.
418 * symfile.c (deduce_language_from_filename): Likewise.
419 * symtab.c (gdb_mangle_name): Likewise.
420 * tui/tui-io.c (tui_redisplay_readline): Likewise.
421
422 2015-10-13 Pedro Alves <palves@redhat.com>
423
424 * infrun.c (restore_execution_direction): New function.
425 (fetch_inferior_event): Use it instead of
426 make_cleanup_restore_integer.
427 (execution_direction): Change type to enum
428 exec_direction_kind.
429 * infrun.h (execution_direction): Likewise.
430
431 2015-10-13 Pedro Alves <palves@redhat.com>
432
433 * ada-lang.c (ada_value_primitive_packed_val): Constify
434 locals. Use value_contents_writeable. Remove casts.
435
436 2015-10-13 Pedro Alves <palves@redhat.com>
437
438 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
439 and alloca calls.
440
441 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
444 write_memory with write_memory_unsigned_integer.
445
446 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * solib-dsbt.c (cmp_name): Constify arguments.
449 * solib-frv.c (cmp_name): Likewise.
450 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
451 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
452 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
453 (gdb_bfd_lookup_symbol): Likewise.
454 * solib.h (gdb_bfd_lookup_symbol): Likewise.
455 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
456
457 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * stack.c (parse_frame_specification): Remove message parameter,
460 replace with fixed string in function body, update function
461 comment.
462 (frame_info): Remove message to parse_frame_specification.
463 (select_frame_command): Likewise.
464
465 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * stack.c (parse_frame_specification): Delete.
468 (parse_frame_specification_1): Rename to
469 parse_frame_specification.
470 (frame_info): Use parse_frame_specification.
471 (select_frame_command): Likewise.
472 (return_command): Use select_frame and print_stack_frame rather
473 than frame_command and select_frame_command.
474 (func_command): Use get_current_frame rather than
475 parse_frame_specification.
476
477 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * stack.c (func_command): Return early when there is no ARG
480 string.
481
482 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
483
484 * stack.c: Include safe-ctype.h not ctype.h.
485 (parse_frame_specification): Use ISSPACE not isspace.
486 (backtrace_command): Use TOLOWER not tolower.
487
488 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * mep-tdep.c (current_me_module): Add cast.
491 (mep_gdbarch_init): Likewise.
492
493 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
494
495 * m32c-tdep.c (m32c_move_reg_t): Replace with...
496 (m32c_write_reg_t): ...this and...
497 (m32c_read_reg_t): ...this.
498 (struct m32c_reg): Update types of read and write.
499 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
500 adjust definition.
501 (m32c_banked_read): Likewise.
502 (m32c_sb_read): Likewise.
503 (m32c_part_read): Likewise.
504 (m32c_cat_read): Likewise.
505 (m32c_r3r2r1r0_read): Likewise.
506 (m32c_raw_write): Change declaration type to m32c_write_reg_t
507 and adjust definition.
508 (m32c_banked_write): Likewise.
509 (m32c_sb_write): Likewise.
510 (m32c_part_write): Likewise.
511 (m32c_cat_write): Likewise.
512 (m32c_r3r2r1r0_write): Likewise.
513
514 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
515
516 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
517
518 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
521 gdb_sys_no_syscall instead of -1.
522
523 2015-10-12 Yao Qi <yao.qi@linaro.org>
524
525 * NEWS: Mention the change.
526
527 2015-10-12 Yao Qi <yao.qi@linaro.org>
528
529 * arch/aarch64-insn.c (emit_load_store): Rename to ...
530 (aarch64_emit_load_store): ... it. All callers updated.
531
532 2015-10-12 Yao Qi <yao.qi@linaro.org>
533
534 * arch/aarch64-insn.c (emit_insn): Rename to ...
535 (aarch64_emit_insn): ... it. All callers updated.
536
537 2015-10-12 Yao Qi <yao.qi@linaro.org>
538
539 * aarch64-linux-tdep.c: Include arch-utils.h.
540 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
541 set_gdbarch_displaced_step_copy_insn,
542 set_gdbarch_displaced_step_fixup,
543 set_gdbarch_displaced_step_free_closure,
544 set_gdbarch_displaced_step_location,
545 and set_gdbarch_displaced_step_hw_singlestep.
546 * aarch64-tdep.c (struct displaced_step_closure): New.
547 (struct aarch64_displaced_step_data): New.
548 (aarch64_displaced_step_b): New function.
549 (aarch64_displaced_step_b_cond): Likewise.
550 (aarch64_register): Likewise.
551 (aarch64_displaced_step_cb): Likewise.
552 (aarch64_displaced_step_tb): Likewise.
553 (aarch64_displaced_step_adr): Likewise.
554 (aarch64_displaced_step_ldr_literal): Likewise.
555 (aarch64_displaced_step_others): Likewise.
556 (aarch64_displaced_step_copy_insn): Likewise.
557 (aarch64_displaced_step_fixup): Likewise.
558 (aarch64_displaced_step_hw_singlestep): Likewise.
559 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
560 (aarch64_displaced_step_copy_insn): Declare.
561 (aarch64_displaced_step_fixup): Declare.
562 (aarch64_displaced_step_hw_singlestep): Declare.
563 * arch/aarch64-insn.c (emit_insn): Moved from
564 gdbserver/linux-aarch64-low.c.
565 (emit_load_store): Likewise.
566 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
567 gdbserver/linux-aarch64-low.c.
568 (struct aarch64_register): Likewise.
569 (struct aarch64_memory_operand): Likewise.
570 (ENCODE): Likewise.
571 (can_encode_int32): New macro.
572 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
573 (emit_tb, emit_nop): Likewise.
574 (emit_insn): Declare.
575 (emit_load_store): Declare.
576
577 2015-10-12 Yao Qi <yao.qi@linaro.org>
578
579 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
580 gdbserver/linux-aarch64-low.c.
581 (aarch64_relocate_instruction): Likewise.
582 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
583 (struct aarch64_insn_data): Moved from
584 gdbserver/linux-aarch64-low.c.
585 (struct aarch64_insn_visitor): Likewise.
586 (aarch64_relocate_instruction): Declare.
587
588 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
589
590 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
591 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
592 to the returned value.
593
594 2015-10-09 Joel Brobecker <brobecker@adacore.com>
595
596 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
597 is large enough for BIT_SIZE. Update function comment.
598
599 2015-10-09 Joel Brobecker <brobecker@adacore.com>
600
601 * ada-lang.c (ada_value_primitive_packed_val): Move
602 src_len variable to local block where used. Override
603 BIT_SIZE if bigger than size of resolved type.
604
605 2015-10-09 Joel Brobecker <brobecker@adacore.com>
606
607 * gdbtypes.h (is_scalar_type): Add extern declaration.
608 * gdbtypes.c (is_scalar_type): Make non-static.
609 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
610 to compute IS_SCALAR instead of doing it ourselves.
611
612 2015-10-09 Joel Brobecker <brobecker@adacore.com>
613
614 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
615 of case where TYPE is dynamic.
616
617 2015-10-09 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (ada_unpack_from_contents): New function,
620 extracted from ada_value_primitive_packed_val.
621 (ada_value_primitive_packed_val): Replace extracted out code
622 by call to ada_unpack_from_contents.
623
624 2015-10-09 Joel Brobecker <brobecker@adacore.com>
625
626 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
627 variable declarations.
628
629 2015-10-09 Joel Brobecker <brobecker@adacore.com>
630
631 * ada-lang.c (ada_value_primitive_packed_val): Change the type
632 of local variables src and unpacked to "gdb_type *" instead of
633 "unsigned char *".
634
635 2015-10-09 Joel Brobecker <brobecker@adacore.com>
636
637 * ada-lang.c (ada_value_primitive_packed_val): Make the name
638 of various local variables more explicit and consistent.
639 No real code change otherwise.
640
641 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
642
643 * i386-tdep.h (struct gdbarch_tdep): Change type of
644 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
645
646 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
647
648 * cris-tdep.c (struct instruction_environment): Change type of
649 byte_order to enum bfd_endian.
650
651 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
652
653 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
654 enum gdb_syscall casts.
655
656 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
657
658 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
659 * arm-tdep.c (struct stack_item): Likewise.
660 (push_stack_item): Add gdb_byte* cast.
661 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
662 (push_stack_item): Add gdb_byte* cast.
663 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
664 and add cast.
665 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
666 (push_stack_item): Add gdb_byte* cast.
667 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
668 add cast.
669 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
670 gdb_byte*.
671 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
672 gdb_byte* and remove unnecessary cast.
673 (h8300h_extract_return_value): Likewise.
674 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
675 (h8300h_store_return_value): Likewise.
676 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
677 gdb_byte* and remove unnecessary cast.
678 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
679 and add cast.
680 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
681 gdb_byte* and remove unnecessary cast.
682 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
683 valbuf.
684 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
685 (mep_pseudo_cr64_read): Likewise.
686 (mep_pseudo_csr_write): Likewise.
687 (mep_pseudo_cr32_write): Likewise.
688 (mep_pseudo_cr64_write): Likewise.
689 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
690 gdb_byte* and add cast.
691 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
692 gdb_byte* and remove unnecessary cast.
693 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
694 valbuf.
695 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
696 gdb_byte*.
697 * printcmd.c (void): Likewise.
698 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
699 gdb_byte* and add cast.
700 (infpy_write_memory): Likewise.
701 (infpy_search_memory): Likewise.
702 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
703 and add cast.
704 (regcache_raw_write_unsigned): Likewise.
705 (regcache_cooked_write_signed): Likewise.
706 (regcache_cooked_write_unsigned): Likewise.
707 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
708 gdb_byte*.
709
710 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
711
712 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
713 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
714
715 2015-10-09 Eli Zaretskii <eliz@gnu.org>
716
717 * stack.c (print_stack_frame):
718 * utils.c (printchar): Fix typos in commentary.
719
720 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
721
722 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
723 (PostfixExpression): Support `expr.sizeof' expressions.
724 (PrimaryExpression): Support `typeof(expr)' expressions.
725
726 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
727
728 * MAINTAINERS: Update my email address.
729
730 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
731
732 * record-btrace.c (record_btrace_resume): Fix void return.
733
734 2015-10-07 Yao Qi <yao.qi@linaro.org>
735
736 * aarch64-tdep.c: Include opcode/aarch64.h.
737 (submask): Move it above.
738 (bit): Likewise.
739 (bits): Likewise.
740 (aarch64_software_single_step): Call aarch64_decode_insn.
741 Decode instruction by aarch64_inst instead of using
742 aarch64_decode_bcond and decode_masked_match.
743
744 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
745
746 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
747 only when the file is binary.
748
749 2015-10-02 James Bowman <james.bowman@ftdichip.com>
750
751 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
752 subroutine handling.
753
754 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
755
756 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
757
758 2015-09-30 Doug Evans <dje@google.com>
759
760 * dwarf2read.c (setup_type_unit_groups): Add comment.
761
762 2015-09-30 Pedro Alves <palves@redhat.com>
763
764 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
765 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
766 (x86_linux_create_target): Don't install
767 x86_linux_always_non_stop_p.
768
769 2015-09-30 Don Breazeal <donb@codesourcery.com>
770
771 * remote.c (remote_parse_stop_reply): Call strprefix instead
772 of strncmp.
773
774 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
775
776 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
777 * gdbarch.h: Regenerate.
778 * i386-tdep.c (i386_gdbarch_init): Remove cast to
779 struct gdbarch_tdep_info *.
780 * mips-tdep.c (mips_gdbarch_init): Likewise.
781 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
782 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
783 * spu-multiarch.c (spu_gdbarch): Likewise.
784
785 2015-09-30 Kevin Buettner <kevinb@redhat.com>
786
787 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
788 record a NULL value.
789
790 2015-09-29 Kevin Buettner <kevinb@redhat.com>
791
792 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
793 and union arguments the same as pointer arguments when determining
794 size of argument.
795
796 2015-09-29 James Bowman <james.bowman@ftdichip.com>
797
798 * ft32-tdep.c: #include "opcode/ft32.h".
799 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
800 (ft32_analyze_prologue): Use FT32_* macros.
801
802 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
803
804 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
805 comment.
806
807 2015-09-28 Doug Evans <dje@google.com>
808
809 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
810
811 2015-09-28 Doug Evans <dje@google.com>
812
813 * common/filestuff.c (make_cleanup_close): Update comment.
814
815 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * btrace.c (parse_xml_btrace_block): Fix cast of
818 xml_find_attribute's return value.
819 * memory-map.c (memory_map_start_memory): Likewise.
820 * solib-svr4.c (library_list_start_library): Likewise.
821 * solib-target.c (library_list_start_segment): Likewise.
822 (library_list_start_section): Likewise.
823 * tracepoint.c (traceframe_info_start_memory): Likewise.
824
825 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
826
827 * d-namespace.c (d_lookup_symbol): New arg langdef.
828 All callers updated. Support looking up symbol as a primitive type.
829 (lookup_module_scope): New arg langdef. All callers updated.
830 Call d_lookup_symbol directly for simple bare symbols.
831
832 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
833
834 * macrocmd.c (print_macro_callback): Add cast(s).
835 * macrotab.c (macro_bcache_str): Likewise.
836 (new_macro_definition): Likewise.
837 * main.c (captured_main): Likewise.
838 * maint.c (print_bfd_section_info): Likewise.
839 * mdebugread.c (mdebug_build_psymtabs): Likewise.
840 (basic_type): Likewise.
841 * memattr.c (mem_region_cmp): Likewise.
842 * memory-map.c (memory_map_start_memory): Likewise.
843 (memory_map_end_memory): Likewise.
844 (memory_map_start_property): Likewise.
845 (memory_map_end_property): Likewise.
846 (clear_result): Likewise.
847 * memrange.c (compare_mem_ranges): Likewise.
848 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
849 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
850 * mi/mi-console.c (mi_console_file_delete): Likewise.
851 (mi_console_file_fputs): Likewise.
852 (mi_console_raw_packet): Likewise.
853 (mi_console_file_flush): Likewise.
854 (mi_console_set_raw): Likewise.
855 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
856 (mi_new_thread): Likewise.
857 (mi_thread_exit): Likewise.
858 (mi_record_changed): Likewise.
859 (mi_inferior_added): Likewise.
860 (mi_inferior_appeared): Likewise.
861 (mi_inferior_exit): Likewise.
862 (mi_inferior_removed): Likewise.
863 (mi_interp_data): Likewise.
864 (mi_on_normal_stop): Likewise.
865 (mi_traceframe_changed): Likewise.
866 (mi_tsv_created): Likewise.
867 (mi_tsv_deleted): Likewise.
868 (mi_tsv_modified): Likewise.
869 (mi_breakpoint_created): Likewise.
870 (mi_breakpoint_deleted): Likewise.
871 (mi_breakpoint_modified): Likewise.
872 (mi_output_running_pid): Likewise.
873 (mi_inferior_count): Likewise.
874 (mi_solib_loaded): Likewise.
875 (mi_solib_unloaded): Likewise.
876 (mi_command_param_changed): Likewise.
877 (mi_memory_changed): Likewise.
878 (report_initial_inferior): Likewise.
879 (mi_ui_out): Likewise.
880 (mi_set_logging): Likewise.
881 * mi/mi-main.c (collect_cores): Likewise.
882 (print_one_inferior): Likewise.
883 (free_vector_of_ints): Likewise.
884 (free_splay_tree): Likewise.
885 (mi_execute_command): Likewise.
886 * mi/mi-out.c (mi_table_body): Likewise.
887 (mi_table_end): Likewise.
888 (mi_table_header): Likewise.
889 (mi_begin): Likewise.
890 (mi_end): Likewise.
891 (mi_field_int): Likewise.
892 (mi_field_string): Likewise.
893 (mi_field_fmt): Likewise.
894 (mi_flush): Likewise.
895 (mi_redirect): Likewise.
896 (field_separator): Likewise.
897 (mi_open): Likewise.
898 (mi_close): Likewise.
899 (mi_out_buffered): Likewise.
900 (mi_out_rewind): Likewise.
901 (mi_out_put): Likewise.
902 (mi_version): Likewise.
903 (mi_out_data_dtor): Likewise.
904 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
905 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
906 * minidebug.c (lzma_open): Likewise.
907 (lzma_pread): Likewise.
908 (lzma_close): Likewise.
909 (lzma_stat): Likewise.
910 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
911 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
912 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
913 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
914 (mips_micro_frame_cache): Likewise.
915 (mips_insn32_frame_cache): Likewise.
916 (mips_stub_frame_cache): Likewise.
917 (gdb_print_insn_mips): Likewise.
918 (value_of_mips_user_reg): Likewise.
919 (mips_gdbarch_init): Likewise.
920 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
921 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
922 (mipsnbsd_supply_gregset): Likewise.
923 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
924 (am33_collect_gregset_method): Likewise.
925 (am33_collect_fpregset_method): Likewise.
926 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
927 * moxie-tdep.c (moxie_frame_cache): Likewise.
928 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
929 (msp430_analyze_frame_prologue): Likewise.
930 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
931 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
932 (nios2_collect_gregset): Likewise.
933 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
934 (nios2_stub_frame_cache): Likewise.
935 * objc-lang.c (find_methods): Likewise.
936 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
937 (get_objfile_pspace_data): Likewise.
938 (get_objfile_bfd_data): Likewise.
939 (objfile_bfd_data_free): Likewise.
940 (add_to_objfile_sections): Likewise.
941 (do_free_objfile_cleanup): Likewise.
942 (resume_section_map_updates_cleanup): Likewise.
943 * opencl-lang.c (builtin_opencl_type): Likewise.
944 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
945 * osdata.c (osdata_start_osdata): Likewise.
946 (osdata_start_item): Likewise.
947 (osdata_start_column): Likewise.
948 (osdata_end_column): Likewise.
949 (clear_parsing_data): Likewise.
950 (osdata_free_cleanup): Likewise.
951 * parse.c (type_stack_cleanup): Likewise.
952 (exp_uses_objfile_iter): Likewise.
953 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
954 (ppc_linux_collect_gregset): Likewise.
955 (ppu2spu_prev_arch): Likewise.
956 (ppu2spu_this_id): Likewise.
957 (ppu2spu_prev_register): Likewise.
958 (ppu2spu_unwind_register): Likewise.
959 (ppu2spu_sniffer): Likewise.
960 (ppu2spu_dealloc_cache): Likewise.
961 (ppc_linux_init_abi): Likewise.
962 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
963 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
964 * progspace.c (restore_program_space): Likewise.
965 * psymtab.c (find_pc_sect_psymtab): Likewise.
966 (compare_psymbols): Likewise.
967 (psymbol_bcache_full): Likewise.
968 (allocate_psymtab): Likewise.
969 (discard_psymtabs_upto): Likewise.
970 * python/py-block.c (set_block): Likewise.
971 (del_objfile_blocks): Likewise.
972 * python/py-breakpoint.c (build_bp_list): Likewise.
973 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
974 (build_inferior_list): Likewise.
975 (py_free_inferior): Likewise.
976 * python/py-objfile.c (py_free_objfile): Likewise.
977 (objfile_to_objfile_object): Likewise.
978 * python/py-prettyprint.c (py_restore_tstate): Likewise.
979 * python/py-progspace.c (py_free_pspace): Likewise.
980 (pspace_to_pspace_object): Likewise.
981 * python/py-symbol.c (set_symbol): Likewise.
982 (del_objfile_symbols): Likewise.
983 * python/py-symtab.c (set_sal): Likewise.
984 (set_symtab): Likewise.
985 (del_objfile_symtab): Likewise.
986 (del_objfile_sal): Likewise.
987 * python/py-type.c (save_objfile_types): Likewise.
988 (set_type): Likewise.
989 * python/py-unwind.c (pyuw_prev_register): Likewise.
990 (pyuw_on_new_gdbarch): Likewise.
991 * python/py-utils.c (py_decref): Likewise.
992 (py_xdecref): Likewise.
993 (gdb_py_generic_dict): Likewise.
994 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
995 (gdbpy_clone_xmethod_worker_data): Likewise.
996 (gdbpy_get_xmethod_arg_types): Likewise.
997 (gdbpy_get_xmethod_result_type): Likewise.
998 (gdbpy_invoke_xmethod): Likewise.
999 * python/python.c (gdbpy_apply_type_printers): Likewise.
1000 (gdbpy_free_type_printers): Likewise.
1001 * record-btrace.c (record_btrace_disable_callback): Likewise.
1002 (bfcache_hash): Likewise.
1003 (bfcache_eq): Likewise.
1004 (btrace_get_frame_function): Likewise.
1005 (record_btrace_frame_unwind_stop_reason): Likewise.
1006 (record_btrace_frame_this_id): Likewise.
1007 (record_btrace_frame_prev_register): Likewise.
1008 (record_btrace_frame_dealloc_cache): Likewise.
1009 * record-full.c (record_full_message_wrapper): Likewise.
1010 (record_full_save_cleanups): Likewise.
1011 * regcache.c (regcache_descr): Likewise.
1012 (do_regcache_xfree): Likewise.
1013 (do_regcache_invalidate): Likewise.
1014 (do_cooked_read): Likewise.
1015 (regcache_transfer_regset): Likewise.
1016 * reggroups.c (reggroup_add): Likewise.
1017 (reggroup_next): Likewise.
1018 (reggroup_prev): Likewise.
1019 * remote-fileio.c (do_remote_fileio_request): Likewise.
1020 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1021 (do_notif_event_xfree): Likewise.
1022 * remote.c (get_remote_arch_state): Likewise.
1023 (remote_pspace_data_cleanup): Likewise.
1024 (get_remote_exec_file): Likewise.
1025 (set_pspace_remote_exec_file): Likewise.
1026 (compare_pnums): Likewise.
1027 (clear_threads_listing_context): Likewise.
1028 (remote_newthread_step): Likewise.
1029 (start_thread): Likewise.
1030 (end_thread): Likewise.
1031 (remove_child_of_pending_fork): Likewise.
1032 (remove_stop_reply_for_inferior): Likewise.
1033 (remove_stop_reply_of_remote_state): Likewise.
1034 (remote_notif_remove_once_on_match): Likewise.
1035 (stop_reply_match_ptid_and_ws): Likewise.
1036 (kill_child_of_pending_fork): Likewise.
1037 (register_remote_g_packet_guess): Likewise.
1038 (remote_read_description_p): Likewise.
1039 (remote_read_description): Likewise.
1040 (free_actions_list_cleanup_wrapper): Likewise.
1041 (remote_async_serial_handler): Likewise.
1042 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1043 (rl78_analyze_frame_prologue): Likewise.
1044 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1045 (ppc_supply_fpregset): Likewise.
1046 (ppc_supply_vsxregset): Likewise.
1047 (ppc_supply_vrregset): Likewise.
1048 (ppc_collect_gregset): Likewise.
1049 (ppc_collect_fpregset): Likewise.
1050 (ppc_collect_vsxregset): Likewise.
1051 (ppc_collect_vrregset): Likewise.
1052 (e500_move_ev_register): Likewise.
1053 (do_regcache_raw_write): Likewise.
1054 (rs6000_frame_cache): Likewise.
1055 (rs6000_epilogue_frame_cache): Likewise.
1056 (rs6000_gdbarch_init): Likewise.
1057 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1058 (rx_analyze_frame_prologue): Likewise.
1059 (rx_frame_type): Likewise.
1060 (rx_frame_sniffer_common): Likewise.
1061 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1062 (s390_frame_unwind_cache): Likewise.
1063 (s390_stub_frame_unwind_cache): Likewise.
1064 (s390_sigtramp_frame_unwind_cache): Likewise.
1065 * score-tdep.c (score_make_prologue_cache): Likewise.
1066 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1067 (sentinel_frame_prev_arch): Likewise.
1068 * ser-base.c (fd_event): Likewise.
1069 (push_event): Likewise.
1070 (ser_base_write): Likewise.
1071 * ser-pipe.c (pipe_close): Likewise.
1072 * serial.c (serial_write): Likewise.
1073 * sh-tdep.c (sh_frame_cache): Likewise.
1074 (sh_stub_this_id): Likewise.
1075 * sh64-tdep.c (sh64_frame_cache): Likewise.
1076 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1077 (library_list_start_library): Likewise.
1078 (library_list_start_list): Likewise.
1079 (solib_aix_free_library_list): Likewise.
1080 * solib-darwin.c (get_darwin_info): Likewise.
1081 * solib-dsbt.c (get_dsbt_info): Likewise.
1082 * solib-spu.c (append_ocl_sos): Likewise.
1083 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1084 (get_svr4_info): Likewise.
1085 (library_list_start_library): Likewise.
1086 (svr4_library_list_start_list): Likewise.
1087 (hash_probe_and_action): Likewise.
1088 (equal_probe_and_action): Likewise.
1089 (svr4_update_solib_event_breakpoint): Likewise.
1090 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1091 (svr4_fetch_link_map_offsets): Likewise.
1092 (svr4_have_link_map_offsets): Likewise.
1093 * solib-target.c (library_list_start_segment): Likewise.
1094 (library_list_start_section): Likewise.
1095 (library_list_start_library): Likewise.
1096 (library_list_end_library): Likewise.
1097 (library_list_start_list): Likewise.
1098 (solib_target_free_library_list): Likewise.
1099 * solib.c (solib_ops): Likewise.
1100 (set_solib_ops): Likewise.
1101 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1102 * sparc-tdep.c (sparc_frame_cache): Likewise.
1103 (sparc32_frame_cache): Likewise.
1104 (sparc32_supply_gregset): Likewise.
1105 (sparc32_collect_gregset): Likewise.
1106 (sparc32_supply_fpregset): Likewise.
1107 (sparc32_collect_fpregset): Likewise.
1108 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1109 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1110 (sparc64_collect_gregset): Likewise.
1111 (sparc64_supply_fpregset): Likewise.
1112 (sparc64_collect_fpregset): Likewise.
1113 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1114 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1115 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1116 (sparc64obsd_trapframe_cache): Likewise.
1117 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1118 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1119 * spu-multiarch.c (spu_gdbarch): Likewise.
1120 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1121 (spu2ppu_prev_arch): Likewise.
1122 (spu2ppu_this_id): Likewise.
1123 (spu2ppu_prev_register): Likewise.
1124 (spu2ppu_dealloc_cache): Likewise.
1125 (spu_dis_asm_print_address): Likewise.
1126 (gdb_print_insn_spu): Likewise.
1127 (spu_get_overlay_table): Likewise.
1128 * stabsread.c (rs6000_builtin_type): Likewise.
1129 * stack.c (do_print_variable_and_value): Likewise.
1130 * stap-probe.c (get_stap_base_address_1): Likewise.
1131 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1132 (debug_qf_find_last_source_symtab): Likewise.
1133 (debug_qf_forget_cached_source_info): Likewise.
1134 (debug_qf_map_symtabs_matching_filename): Likewise.
1135 (debug_qf_lookup_symbol): Likewise.
1136 (debug_qf_print_stats): Likewise.
1137 (debug_qf_dump): Likewise.
1138 (debug_qf_relocate): Likewise.
1139 (debug_qf_expand_symtabs_for_function): Likewise.
1140 (debug_qf_expand_all_symtabs): Likewise.
1141 (debug_qf_expand_symtabs_with_fullname): Likewise.
1142 (debug_qf_map_matching_symbols): Likewise.
1143 (debug_qf_expand_symtabs_matching): Likewise.
1144 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1145 (debug_qf_map_symbol_filenames): Likewise.
1146 (debug_sym_get_probes): Likewise.
1147 (debug_sym_new_init): Likewise.
1148 (debug_sym_init): Likewise.
1149 (debug_sym_read): Likewise.
1150 (debug_sym_read_psymbols): Likewise.
1151 (debug_sym_finish): Likewise.
1152 (debug_sym_offsets): Likewise.
1153 (debug_sym_read_linetable): Likewise.
1154 (debug_sym_relocate): Likewise.
1155 (uninstall_symfile_debug_logging): Likewise.
1156 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1157 * symfile.c (place_section): Likewise.
1158 (add_section_size_callback): Likewise.
1159 (load_progress): Likewise.
1160 (load_section_callback): Likewise.
1161 (clear_memory_write_data): Likewise.
1162 (allocate_symtab): Likewise.
1163 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1164 * symtab.c (lookup_symtab_callback): Likewise.
1165 (hash_demangled_name_entry): Likewise.
1166 (eq_demangled_name_entry): Likewise.
1167 (get_symbol_cache): Likewise.
1168 (symbol_cache_cleanup): Likewise.
1169 (set_symbol_cache_size): Likewise.
1170 (symbol_cache_flush): Likewise.
1171 (maintenance_print_symbol_cache): Likewise.
1172 (maintenance_print_symbol_cache_statistics): Likewise.
1173 (delete_filename_seen_cache): Likewise.
1174 (output_partial_symbol_filename): Likewise.
1175 (search_symbols_file_matches): Likewise.
1176 (search_symbols_name_matches): Likewise.
1177 (do_free_completion_list): Likewise.
1178 (maybe_add_partial_symtab_filename): Likewise.
1179 (get_main_info): Likewise.
1180 (main_info_cleanup): Likewise.
1181 * target-dcache.c (target_dcache_cleanup): Likewise.
1182 (target_dcache_init_p): Likewise.
1183 (target_dcache_invalidate): Likewise.
1184 (target_dcache_get): Likewise.
1185 (target_dcache_get_or_init): Likewise.
1186 * target-descriptions.c (target_find_description): Likewise.
1187 (tdesc_find_type): Likewise.
1188 (tdesc_data_cleanup): Likewise.
1189 (tdesc_find_arch_register): Likewise.
1190 (tdesc_register_name): Likewise.
1191 (tdesc_register_type): Likewise.
1192 (tdesc_register_reggroup_p): Likewise.
1193 (set_tdesc_pseudo_register_name): Likewise.
1194 (set_tdesc_pseudo_register_type): Likewise.
1195 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1196 (tdesc_use_registers): Likewise.
1197 (free_target_description): Likewise.
1198 * target-memory.c (compare_block_starting_address): Likewise.
1199 (cleanup_request_data): Likewise.
1200 (cleanup_write_requests_vector): Likewise.
1201 * target.c (open_target): Likewise.
1202 (cleanup_restore_target_terminal): Likewise.
1203 (free_memory_read_result_vector): Likewise.
1204 * thread.c (disable_thread_stack_temporaries): Likewise.
1205 (finish_thread_state_cleanup): Likewise.
1206 (do_restore_current_thread_cleanup): Likewise.
1207 (restore_current_thread_cleanup_dtor): Likewise.
1208 (set_thread_refcount): Likewise.
1209 (tp_array_compar): Likewise.
1210 (do_captured_thread_select): Likewise.
1211 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1212 (tic6x_stub_this_id): Likewise.
1213 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1214 * top.c (do_restore_instream_cleanup): Likewise.
1215 (gdb_readline_wrapper_cleanup): Likewise.
1216 (kill_or_detach): Likewise.
1217 (print_inferior_quit_action): Likewise.
1218 * tracefile-tfile.c (match_blocktype): Likewise.
1219 (build_traceframe_info): Likewise.
1220 * tracefile.c (trace_file_writer_xfree): Likewise.
1221 * tracepoint.c (memrange_cmp): Likewise.
1222 (do_collect_symbol): Likewise.
1223 (do_clear_collection_list): Likewise.
1224 (do_restore_current_traceframe_cleanup): Likewise.
1225 (restore_current_traceframe_cleanup_dtor): Likewise.
1226 (free_current_marker): Likewise.
1227 (traceframe_info_start_memory): Likewise.
1228 (traceframe_info_start_tvar): Likewise.
1229 (free_result): Likewise.
1230 * tramp-frame.c (tramp_frame_cache): Likewise.
1231 * tui/tui-file.c (tui_file_delete): Likewise.
1232 (tui_fileopen): Likewise.
1233 (tui_sfileopen): Likewise.
1234 (tui_file_isatty): Likewise.
1235 (tui_file_rewind): Likewise.
1236 (tui_file_put): Likewise.
1237 (tui_file_fputs): Likewise.
1238 (tui_file_get_strbuf): Likewise.
1239 (tui_file_adjust_strbuf): Likewise.
1240 (tui_file_flush): Likewise.
1241 * tui/tui-layout.c (make_command_window): Likewise.
1242 (make_data_window): Likewise.
1243 (show_source_disasm_command): Likewise.
1244 (show_data): Likewise.
1245 (make_source_or_disasm_window): Likewise.
1246 (show_source_or_disasm_and_command): Likewise.
1247 * tui/tui-out.c (tui_field_int): Likewise.
1248 (tui_field_string): Likewise.
1249 (tui_field_fmt): Likewise.
1250 (tui_text): Likewise.
1251 * typeprint.c (hash_typedef_field): Likewise.
1252 (eq_typedef_field): Likewise.
1253 (do_free_typedef_hash): Likewise.
1254 (copy_typedef_hash_element): Likewise.
1255 (do_free_global_table): Likewise.
1256 (find_global_typedef): Likewise.
1257 (find_typedef_in_hash): Likewise.
1258 * ui-file.c (ui_file_write_for_put): Likewise.
1259 (do_ui_file_xstrdup): Likewise.
1260 (mem_file_delete): Likewise.
1261 (mem_file_rewind): Likewise.
1262 (mem_file_put): Likewise.
1263 (mem_file_write): Likewise.
1264 (stdio_file_delete): Likewise.
1265 (stdio_file_flush): Likewise.
1266 (stdio_file_read): Likewise.
1267 (stdio_file_write): Likewise.
1268 (stdio_file_write_async_safe): Likewise.
1269 (stdio_file_fputs): Likewise.
1270 (stdio_file_isatty): Likewise.
1271 (stdio_file_fseek): Likewise.
1272 (tee_file_delete): Likewise.
1273 (tee_file_flush): Likewise.
1274 (tee_file_write): Likewise.
1275 (tee_file_fputs): Likewise.
1276 (tee_file_isatty): Likewise.
1277 * ui-out.c (do_cleanup_table_end): Likewise.
1278 (do_cleanup_end): Likewise.
1279 * user-regs.c (user_reg_add): Likewise.
1280 (user_reg_map_name_to_regnum): Likewise.
1281 (usernum_to_user_reg): Likewise.
1282 (maintenance_print_user_registers): Likewise.
1283 * utils.c (do_bfd_close_cleanup): Likewise.
1284 (do_fclose_cleanup): Likewise.
1285 (do_obstack_free): Likewise.
1286 (do_ui_file_delete): Likewise.
1287 (do_ui_out_redirect_pop): Likewise.
1288 (do_free_section_addr_info): Likewise.
1289 (restore_integer): Likewise.
1290 (do_unpush_target): Likewise.
1291 (do_htab_delete_cleanup): Likewise.
1292 (do_restore_ui_file): Likewise.
1293 (do_value_free): Likewise.
1294 (do_free_so): Likewise.
1295 (free_current_contents): Likewise.
1296 (do_regfree_cleanup): Likewise.
1297 (core_addr_hash): Likewise.
1298 (core_addr_eq): Likewise.
1299 (do_free_char_ptr_vec): Likewise.
1300 * v850-tdep.c (v850_frame_cache): Likewise.
1301 * varobj.c (do_free_variable_cleanup): Likewise.
1302 * vax-tdep.c (vax_supply_gregset): Likewise.
1303 (vax_frame_cache): Likewise.
1304 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1305 * xml-support.c (gdb_xml_body_text): Likewise.
1306 (gdb_xml_values_cleanup): Likewise.
1307 (gdb_xml_start_element): Likewise.
1308 (gdb_xml_start_element_wrapper): Likewise.
1309 (gdb_xml_end_element): Likewise.
1310 (gdb_xml_end_element_wrapper): Likewise.
1311 (gdb_xml_cleanup): Likewise.
1312 (gdb_xml_fetch_external_entity): Likewise.
1313 (gdb_xml_parse_attr_enum): Likewise.
1314 (xinclude_start_include): Likewise.
1315 (xinclude_end_include): Likewise.
1316 (xml_xinclude_default): Likewise.
1317 (xml_xinclude_start_doctype): Likewise.
1318 (xml_xinclude_end_doctype): Likewise.
1319 (xml_xinclude_cleanup): Likewise.
1320 (xml_fetch_content_from_file): Likewise.
1321 * xml-syscall.c (free_syscalls_info): Likewise.
1322 (syscall_start_syscall): Likewise.
1323 * xml-tdesc.c (tdesc_end_arch): Likewise.
1324 (tdesc_end_osabi): Likewise.
1325 (tdesc_end_compatible): Likewise.
1326 (tdesc_start_target): Likewise.
1327 (tdesc_start_feature): Likewise.
1328 (tdesc_start_reg): Likewise.
1329 (tdesc_start_union): Likewise.
1330 (tdesc_start_struct): Likewise.
1331 (tdesc_start_flags): Likewise.
1332 (tdesc_start_field): Likewise.
1333 (tdesc_start_vector): Likewise.
1334 (fetch_available_features_from_target): Likewise.
1335 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1336 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1337 (xtensa_frame_cache): Likewise.
1338 (xtensa_frame_prev_register): Likewise.
1339 (xtensa_extract_return_value): Likewise.
1340
1341 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1342
1343 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1344 (aarch64_make_stub_cache): Likewise.
1345 (value_of_aarch64_user_reg): Likewise.
1346 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1347 (get_ada_inferior_data): Likewise.
1348 (get_ada_pspace_data): Likewise.
1349 (ada_pspace_data_cleanup): Likewise.
1350 (ada_complete_symbol_matcher): Likewise.
1351 (ada_exc_search_name_matches): Likewise.
1352 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1353 (get_ada_tasks_inferior_data): Likewise.
1354 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1355 (splay_obstack_alloc): Likewise.
1356 (splay_obstack_free): Likewise.
1357 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1358 (alpha_linux_collect_gregset): Likewise.
1359 (alpha_linux_supply_fpregset): Likewise.
1360 (alpha_linux_collect_fpregset): Likewise.
1361 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1362 * alpha-tdep.c (alpha_lds): Likewise.
1363 (alpha_sts): Likewise.
1364 (alpha_sigtramp_frame_unwind_cache): Likewise.
1365 (alpha_heuristic_frame_unwind_cache): Likewise.
1366 (alpha_supply_int_regs): Likewise.
1367 (alpha_fill_int_regs): Likewise.
1368 (alpha_supply_fp_regs): Likewise.
1369 (alpha_fill_fp_regs): Likewise.
1370 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1371 (alphanbsd_aout_supply_gregset): Likewise.
1372 (alphanbsd_supply_gregset): Likewise.
1373 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1374 (amd64_x32_linux_init_abi): Likewise.
1375 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1376 (amd64_collect_native_gregset): Likewise.
1377 * amd64-tdep.c (amd64_frame_cache): Likewise.
1378 (amd64_sigtramp_frame_cache): Likewise.
1379 (amd64_epilogue_frame_cache): Likewise.
1380 (amd64_supply_fxsave): Likewise.
1381 (amd64_supply_xsave): Likewise.
1382 (amd64_collect_fxsave): Likewise.
1383 (amd64_collect_xsave): Likewise.
1384 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1385 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1386 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1387 (arm_linux_collect_gregset): Likewise.
1388 (arm_linux_supply_nwfpe): Likewise.
1389 (arm_linux_collect_nwfpe): Likewise.
1390 (arm_linux_supply_vfp): Likewise.
1391 (arm_linux_collect_vfp): Likewise.
1392 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1393 (arm_prologue_unwind_stop_reason): Likewise.
1394 (arm_prologue_this_id): Likewise.
1395 (arm_prologue_prev_register): Likewise.
1396 (arm_exidx_data_free): Likewise.
1397 (arm_find_exidx_entry): Likewise.
1398 (arm_stub_this_id): Likewise.
1399 (arm_m_exception_this_id): Likewise.
1400 (arm_m_exception_prev_register): Likewise.
1401 (arm_normal_frame_base): Likewise.
1402 (gdb_print_insn_arm): Likewise.
1403 (arm_objfile_data_free): Likewise.
1404 (arm_record_special_symbol): Likewise.
1405 (value_of_arm_user_reg): Likewise.
1406 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1407 (armbsd_supply_gregset): Likewise.
1408 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1409 (get_auto_load_pspace_data): Likewise.
1410 (hash_loaded_script_entry): Likewise.
1411 (eq_loaded_script_entry): Likewise.
1412 (clear_section_scripts): Likewise.
1413 (collect_matching_scripts): Likewise.
1414 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1415 (get_auxv_inferior_data): Likewise.
1416 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1417 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1418 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1419 (target_bfd_xclose): Likewise.
1420 (target_bfd_get_section_table): Likewise.
1421 * bfin-tdep.c (bfin_frame_cache): Likewise.
1422 * block.c (find_block_in_blockvector): Likewise.
1423 (call_site_for_pc): Likewise.
1424 (block_find_non_opaque_type_preferred): Likewise.
1425 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1426 (signal_catchpoint_remove_location): Likewise.
1427 (signal_catchpoint_breakpoint_hit): Likewise.
1428 (signal_catchpoint_print_one): Likewise.
1429 (signal_catchpoint_print_mention): Likewise.
1430 (signal_catchpoint_print_recreate): Likewise.
1431 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1432 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1433 (bp_location_compare_addrs): Likewise.
1434 (get_first_locp_gte_addr): Likewise.
1435 (check_tracepoint_command): Likewise.
1436 (do_map_commands_command): Likewise.
1437 (get_breakpoint_objfile_data): Likewise.
1438 (free_breakpoint_probes): Likewise.
1439 (do_captured_breakpoint_query): Likewise.
1440 (compare_breakpoints): Likewise.
1441 (bp_location_compare): Likewise.
1442 (bpstat_remove_breakpoint_callback): Likewise.
1443 (do_delete_breakpoint_cleanup): Likewise.
1444 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1445 (bsd_uthread_set_collect_uthread): Likewise.
1446 (bsd_uthread_activate): Likewise.
1447 (bsd_uthread_fetch_registers): Likewise.
1448 (bsd_uthread_store_registers): Likewise.
1449 * btrace.c (check_xml_btrace_version): Likewise.
1450 (parse_xml_btrace_block): Likewise.
1451 (parse_xml_btrace_pt_config_cpu): Likewise.
1452 (parse_xml_btrace_pt_raw): Likewise.
1453 (parse_xml_btrace_pt): Likewise.
1454 (parse_xml_btrace_conf_bts): Likewise.
1455 (parse_xml_btrace_conf_pt): Likewise.
1456 (do_btrace_data_cleanup): Likewise.
1457 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1458 * charset.c (cleanup_iconv): Likewise.
1459 (do_cleanup_iterator): Likewise.
1460 * cli-out.c (cli_uiout_dtor): Likewise.
1461 (cli_table_begin): Likewise.
1462 (cli_table_body): Likewise.
1463 (cli_table_end): Likewise.
1464 (cli_table_header): Likewise.
1465 (cli_begin): Likewise.
1466 (cli_end): Likewise.
1467 (cli_field_int): Likewise.
1468 (cli_field_skip): Likewise.
1469 (cli_field_string): Likewise.
1470 (cli_field_fmt): Likewise.
1471 (cli_spaces): Likewise.
1472 (cli_text): Likewise.
1473 (cli_message): Likewise.
1474 (cli_wrap_hint): Likewise.
1475 (cli_flush): Likewise.
1476 (cli_redirect): Likewise.
1477 (out_field_fmt): Likewise.
1478 (field_separator): Likewise.
1479 (cli_out_set_stream): Likewise.
1480 * cli/cli-cmds.c (compare_symtabs): Likewise.
1481 * cli/cli-dump.c (call_dump_func): Likewise.
1482 (restore_section_callback): Likewise.
1483 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1484 (do_restore_user_call_depth): Likewise.
1485 (do_free_command_lines_cleanup): Likewise.
1486 * coff-pe-read.c (get_section_vmas): Likewise.
1487 (pe_as16): Likewise.
1488 (pe_as32): Likewise.
1489 * coffread.c (coff_symfile_read): Likewise.
1490 * common/agent.c (agent_look_up_symbols): Likewise.
1491 * common/filestuff.c (do_close_cleanup): Likewise.
1492 * common/format.c (free_format_pieces_cleanup): Likewise.
1493 * common/vec.c (vec_o_reserve): Likewise.
1494 * compile/compile-c-support.c (print_one_macro): Likewise.
1495 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1496 (eq_symbol_error): Likewise.
1497 (del_symbol_error): Likewise.
1498 (error_symbol_once): Likewise.
1499 (gcc_convert_symbol): Likewise.
1500 (gcc_symbol_address): Likewise.
1501 (hash_symname): Likewise.
1502 (eq_symname): Likewise.
1503 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1504 (eq_type_map_instance): Likewise.
1505 (insert_type): Likewise.
1506 (convert_type): Likewise.
1507 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1508 (setup_sections): Likewise.
1509 (link_hash_table_free): Likewise.
1510 (copy_sections): Likewise.
1511 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1512 * compile/compile.c (compile_print_value): Likewise.
1513 (do_rmdir): Likewise.
1514 (cleanup_compile_instance): Likewise.
1515 (cleanup_unlink_file): Likewise.
1516 * completer.c (free_completion_tracker): Likewise.
1517 * corelow.c (add_to_spuid_list): Likewise.
1518 * cp-namespace.c (reset_directive_searched): Likewise.
1519 * cp-support.c (reset_directive_searched): Likewise.
1520 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1521 (cris_frame_unwind_cache): Likewise.
1522 * d-lang.c (builtin_d_type): Likewise.
1523 * d-namespace.c (reset_directive_searched): Likewise.
1524 * dbxread.c (dbx_free_symfile_info): Likewise.
1525 (do_free_bincl_list_cleanup): Likewise.
1526 * disasm.c (hash_dis_line_entry): Likewise.
1527 (eq_dis_line_entry): Likewise.
1528 (dis_asm_print_address): Likewise.
1529 (fprintf_disasm): Likewise.
1530 (do_ui_file_delete): Likewise.
1531 * doublest.c (convert_floatformat_to_doublest): Likewise.
1532 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1533 (dummy_frame_prev_register): Likewise.
1534 (dummy_frame_this_id): Likewise.
1535 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1536 (cache_eq): Likewise.
1537 (cache_find): Likewise.
1538 (tailcall_frame_this_id): Likewise.
1539 (dwarf2_tailcall_prev_register_first): Likewise.
1540 (tailcall_frame_prev_register): Likewise.
1541 (tailcall_frame_dealloc_cache): Likewise.
1542 (tailcall_frame_prev_arch): Likewise.
1543 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1544 (dwarf2_frame_set_init_reg): Likewise.
1545 (dwarf2_frame_init_reg): Likewise.
1546 (dwarf2_frame_set_signal_frame_p): Likewise.
1547 (dwarf2_frame_signal_frame_p): Likewise.
1548 (dwarf2_frame_set_adjust_regnum): Likewise.
1549 (dwarf2_frame_adjust_regnum): Likewise.
1550 (clear_pointer_cleanup): Likewise.
1551 (dwarf2_frame_cache): Likewise.
1552 (find_cie): Likewise.
1553 (dwarf2_frame_find_fde): Likewise.
1554 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1555 (free_dwarf_expr_context_cleanup): Likewise.
1556 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1557 (locexpr_get_frame_base): Likewise.
1558 (loclist_find_frame_base_location): Likewise.
1559 (loclist_get_frame_base): Likewise.
1560 (dwarf_expr_dwarf_call): Likewise.
1561 (dwarf_expr_get_base_type): Likewise.
1562 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1563 (dwarf_expr_get_obj_addr): Likewise.
1564 (entry_data_value_coerce_ref): Likewise.
1565 (entry_data_value_copy_closure): Likewise.
1566 (entry_data_value_free_closure): Likewise.
1567 (get_frame_address_in_block_wrapper): Likewise.
1568 (dwarf2_evaluate_property): Likewise.
1569 (dwarf2_compile_property_to_c): Likewise.
1570 (needs_frame_read_addr_from_reg): Likewise.
1571 (needs_frame_get_reg_value): Likewise.
1572 (needs_frame_frame_base): Likewise.
1573 (needs_frame_frame_cfa): Likewise.
1574 (needs_frame_tls_address): Likewise.
1575 (needs_frame_dwarf_call): Likewise.
1576 (needs_dwarf_reg_entry_value): Likewise.
1577 (get_ax_pc): Likewise.
1578 (locexpr_read_variable): Likewise.
1579 (locexpr_read_variable_at_entry): Likewise.
1580 (locexpr_read_needs_frame): Likewise.
1581 (locexpr_describe_location): Likewise.
1582 (locexpr_tracepoint_var_ref): Likewise.
1583 (locexpr_generate_c_location): Likewise.
1584 (loclist_read_variable): Likewise.
1585 (loclist_read_variable_at_entry): Likewise.
1586 (loclist_describe_location): Likewise.
1587 (loclist_tracepoint_var_ref): Likewise.
1588 (loclist_generate_c_location): Likewise.
1589 * dwarf2read.c (line_header_hash_voidp): Likewise.
1590 (line_header_eq_voidp): Likewise.
1591 (dwarf2_has_info): Likewise.
1592 (dwarf2_get_section_info): Likewise.
1593 (locate_dwz_sections): Likewise.
1594 (hash_file_name_entry): Likewise.
1595 (eq_file_name_entry): Likewise.
1596 (delete_file_name_entry): Likewise.
1597 (dw2_setup): Likewise.
1598 (dw2_get_file_names_reader): Likewise.
1599 (dw2_find_pc_sect_compunit_symtab): Likewise.
1600 (hash_signatured_type): Likewise.
1601 (eq_signatured_type): Likewise.
1602 (add_signatured_type_cu_to_table): Likewise.
1603 (create_debug_types_hash_table): Likewise.
1604 (lookup_dwo_signatured_type): Likewise.
1605 (lookup_dwp_signatured_type): Likewise.
1606 (lookup_signatured_type): Likewise.
1607 (hash_type_unit_group): Likewise.
1608 (eq_type_unit_group): Likewise.
1609 (get_type_unit_group): Likewise.
1610 (process_psymtab_comp_unit_reader): Likewise.
1611 (sort_tu_by_abbrev_offset): Likewise.
1612 (process_skeletonless_type_unit): Likewise.
1613 (psymtabs_addrmap_cleanup): Likewise.
1614 (dwarf2_read_symtab): Likewise.
1615 (psymtab_to_symtab_1): Likewise.
1616 (die_hash): Likewise.
1617 (die_eq): Likewise.
1618 (load_full_comp_unit_reader): Likewise.
1619 (reset_die_in_process): Likewise.
1620 (free_cu_line_header): Likewise.
1621 (handle_DW_AT_stmt_list): Likewise.
1622 (hash_dwo_file): Likewise.
1623 (eq_dwo_file): Likewise.
1624 (hash_dwo_unit): Likewise.
1625 (eq_dwo_unit): Likewise.
1626 (create_dwo_cu_reader): Likewise.
1627 (create_dwo_unit_in_dwp_v1): Likewise.
1628 (create_dwo_unit_in_dwp_v2): Likewise.
1629 (lookup_dwo_unit_in_dwp): Likewise.
1630 (dwarf2_locate_dwo_sections): Likewise.
1631 (dwarf2_locate_common_dwp_sections): Likewise.
1632 (dwarf2_locate_v2_dwp_sections): Likewise.
1633 (hash_dwp_loaded_cutus): Likewise.
1634 (eq_dwp_loaded_cutus): Likewise.
1635 (lookup_dwo_cutu): Likewise.
1636 (abbrev_table_free_cleanup): Likewise.
1637 (dwarf2_free_abbrev_table): Likewise.
1638 (find_partial_die_in_comp_unit): Likewise.
1639 (free_line_header_voidp): Likewise.
1640 (follow_die_offset): Likewise.
1641 (follow_die_sig_1): Likewise.
1642 (free_heap_comp_unit): Likewise.
1643 (free_stack_comp_unit): Likewise.
1644 (dwarf2_free_objfile): Likewise.
1645 (per_cu_offset_and_type_hash): Likewise.
1646 (per_cu_offset_and_type_eq): Likewise.
1647 (get_die_type_at_offset): Likewise.
1648 (partial_die_hash): Likewise.
1649 (partial_die_eq): Likewise.
1650 (dwarf2_per_objfile_free): Likewise.
1651 (hash_strtab_entry): Likewise.
1652 (eq_strtab_entry): Likewise.
1653 (add_string): Likewise.
1654 (hash_symtab_entry): Likewise.
1655 (eq_symtab_entry): Likewise.
1656 (delete_symtab_entry): Likewise.
1657 (cleanup_mapped_symtab): Likewise.
1658 (add_indices_to_cpool): Likewise.
1659 (hash_psymtab_cu_index): Likewise.
1660 (eq_psymtab_cu_index): Likewise.
1661 (add_address_entry_worker): Likewise.
1662 (unlink_if_set): Likewise.
1663 (write_one_signatured_type): Likewise.
1664 (save_gdb_index_command): Likewise.
1665 * elfread.c (elf_symtab_read): Likewise.
1666 (elf_gnu_ifunc_cache_hash): Likewise.
1667 (elf_gnu_ifunc_cache_eq): Likewise.
1668 (elf_gnu_ifunc_record_cache): Likewise.
1669 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1670 (elf_get_probes): Likewise.
1671 (probe_key_free): Likewise.
1672 * f-lang.c (builtin_f_type): Likewise.
1673 * frame-base.c (frame_base_append_sniffer): Likewise.
1674 (frame_base_set_default): Likewise.
1675 (frame_base_find_by_frame): Likewise.
1676 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1677 (frame_unwind_append_unwinder): Likewise.
1678 (frame_unwind_find_by_frame): Likewise.
1679 * frame.c (frame_addr_hash): Likewise.
1680 (frame_addr_hash_eq): Likewise.
1681 (frame_stash_find): Likewise.
1682 (do_frame_register_read): Likewise.
1683 (unwind_to_current_frame): Likewise.
1684 (frame_cleanup_after_sniffer): Likewise.
1685 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1686 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1687 * ft32-tdep.c (ft32_frame_cache): Likewise.
1688 * gcore.c (do_bfd_delete_cleanup): Likewise.
1689 (gcore_create_callback): Likewise.
1690 * gdb_bfd.c (hash_bfd): Likewise.
1691 (eq_bfd): Likewise.
1692 (gdb_bfd_open): Likewise.
1693 (free_one_bfd_section): Likewise.
1694 (gdb_bfd_ref): Likewise.
1695 (gdb_bfd_unref): Likewise.
1696 (get_section_descriptor): Likewise.
1697 (gdb_bfd_map_section): Likewise.
1698 (gdb_bfd_crc): Likewise.
1699 (gdb_bfd_mark_parent): Likewise.
1700 (gdb_bfd_record_inclusion): Likewise.
1701 (gdb_bfd_requires_relocations): Likewise.
1702 (print_one_bfd): Likewise.
1703 * gdbtypes.c (type_pair_hash): Likewise.
1704 (type_pair_eq): Likewise.
1705 (builtin_type): Likewise.
1706 (objfile_type): Likewise.
1707 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1708 (vtable_address_point_offset): Likewise.
1709 (gnuv3_get_vtable): Likewise.
1710 (hash_value_and_voffset): Likewise.
1711 (eq_value_and_voffset): Likewise.
1712 (compare_value_and_voffset): Likewise.
1713 (compute_vtable_size): Likewise.
1714 (gnuv3_get_typeid_type): Likewise.
1715 * go-lang.c (builtin_go_type): Likewise.
1716 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1717 (bkscm_eq_block_smob): Likewise.
1718 (bkscm_objfile_block_map): Likewise.
1719 (bkscm_del_objfile_blocks): Likewise.
1720 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1721 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1722 (gdbscm_disasm_print_address): Likewise.
1723 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1724 (frscm_eq_frame_smob): Likewise.
1725 (frscm_inferior_frame_map): Likewise.
1726 (frscm_del_inferior_frames): Likewise.
1727 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1728 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1729 (ofscm_objfile_smob_from_objfile): Likewise.
1730 * guile/scm-ports.c (ioscm_write): Likewise.
1731 (ioscm_file_port_delete): Likewise.
1732 (ioscm_file_port_rewind): Likewise.
1733 (ioscm_file_port_put): Likewise.
1734 (ioscm_file_port_write): Likewise.
1735 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1736 (psscm_pspace_smob_from_pspace): Likewise.
1737 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1738 (scscm_recording_unwind_handler): Likewise.
1739 (gdbscm_with_catch): Likewise.
1740 (scscm_call_0_body): Likewise.
1741 (scscm_call_1_body): Likewise.
1742 (scscm_call_2_body): Likewise.
1743 (scscm_call_3_body): Likewise.
1744 (scscm_call_4_body): Likewise.
1745 (scscm_apply_1_body): Likewise.
1746 (scscm_eval_scheme_string): Likewise.
1747 (gdbscm_safe_eval_string): Likewise.
1748 (scscm_source_scheme_script): Likewise.
1749 (gdbscm_safe_source_script): Likewise.
1750 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1751 (gdbscm_call_scm_from_stringn): Likewise.
1752 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1753 (syscm_eq_symbol_smob): Likewise.
1754 (syscm_get_symbol_map): Likewise.
1755 (syscm_del_objfile_symbols): Likewise.
1756 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1757 (stscm_eq_symtab_smob): Likewise.
1758 (stscm_objfile_symtab_map): Likewise.
1759 (stscm_del_objfile_symtabs): Likewise.
1760 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1761 (tyscm_eq_type_smob): Likewise.
1762 (tyscm_type_map): Likewise.
1763 (tyscm_copy_type_recursive): Likewise.
1764 (save_objfile_types): Likewise.
1765 * guile/scm-utils.c (extract_arg): Likewise.
1766 * h8300-tdep.c (h8300_frame_cache): Likewise.
1767 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1768 * hppa-tdep.c (compare_unwind_entries): Likewise.
1769 (find_unwind_entry): Likewise.
1770 (hppa_frame_cache): Likewise.
1771 (hppa_stub_frame_unwind_cache): Likewise.
1772 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1773 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1774 (hppaobsd_supply_fpregset): Likewise.
1775 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1776 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1777 * i386-tdep.c (i386_frame_cache): Likewise.
1778 (i386_epilogue_frame_cache): Likewise.
1779 (i386_sigtramp_frame_cache): Likewise.
1780 (i386_supply_gregset): Likewise.
1781 (i386_collect_gregset): Likewise.
1782 (i386_gdbarch_init): Likewise.
1783 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1784 (i386obsd_trapframe_cache): Likewise.
1785 * i387-tdep.c (i387_supply_fsave): Likewise.
1786 (i387_collect_fsave): Likewise.
1787 (i387_supply_fxsave): Likewise.
1788 (i387_collect_fxsave): Likewise.
1789 (i387_supply_xsave): Likewise.
1790 (i387_collect_xsave): Likewise.
1791 * ia64-tdep.c (ia64_frame_cache): Likewise.
1792 (ia64_sigtramp_frame_cache): Likewise.
1793 * infcmd.c (attach_command_continuation): Likewise.
1794 (attach_command_continuation_free_args): Likewise.
1795 * inferior.c (restore_inferior): Likewise.
1796 (delete_thread_of_inferior): Likewise.
1797 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1798 (get_inflow_inferior_data): Likewise.
1799 (inflow_inferior_exit): Likewise.
1800 * infrun.c (displaced_step_clear_cleanup): Likewise.
1801 (restore_current_uiout_cleanup): Likewise.
1802 (release_stop_context_cleanup): Likewise.
1803 (do_restore_infcall_suspend_state_cleanup): Likewise.
1804 (do_restore_infcall_control_state_cleanup): Likewise.
1805 (restore_inferior_ptid): Likewise.
1806 * inline-frame.c (block_starting_point_at): Likewise.
1807 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1808 * jit.c (get_jit_objfile_data): Likewise.
1809 (get_jit_program_space_data): Likewise.
1810 (jit_object_close_impl): Likewise.
1811 (jit_find_objf_with_entry_addr): Likewise.
1812 (jit_breakpoint_deleted): Likewise.
1813 (jit_unwind_reg_set_impl): Likewise.
1814 (jit_unwind_reg_get_impl): Likewise.
1815 (jit_dealloc_cache): Likewise.
1816 (jit_frame_sniffer): Likewise.
1817 (jit_frame_prev_register): Likewise.
1818 (jit_prepend_unwinder): Likewise.
1819 (jit_inferior_exit_hook): Likewise.
1820 (free_objfile_data): Likewise.
1821 * jv-lang.c (jv_per_objfile_free): Likewise.
1822 (get_dynamics_objfile): Likewise.
1823 (get_java_class_symtab): Likewise.
1824 (builtin_java_type): Likewise.
1825 * language.c (language_string_char_type): Likewise.
1826 (language_bool_type): Likewise.
1827 (language_lookup_primitive_type): Likewise.
1828 (language_lookup_primitive_type_as_symbol): Likewise.
1829 * linespec.c (hash_address_entry): Likewise.
1830 (eq_address_entry): Likewise.
1831 (iterate_inline_only): Likewise.
1832 (iterate_name_matcher): Likewise.
1833 (decode_line_2_compare_items): Likewise.
1834 (collect_one_symbol): Likewise.
1835 (compare_symbols): Likewise.
1836 (compare_msymbols): Likewise.
1837 (add_symtabs_to_list): Likewise.
1838 (collect_symbols): Likewise.
1839 (compare_msyms): Likewise.
1840 (add_minsym): Likewise.
1841 (cleanup_linespec_result): Likewise.
1842 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1843 * linux-nat.c (delete_lwp_cleanup): Likewise.
1844 (count_events_callback): Likewise.
1845 (select_event_lwp_callback): Likewise.
1846 (resume_stopped_resumed_lwps): Likewise.
1847 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1848 (invalidate_linux_cache_inf): Likewise.
1849 (get_linux_inferior_data): Likewise.
1850 (linux_find_memory_regions_thunk): Likewise.
1851 (linux_make_mappings_callback): Likewise.
1852 (linux_corefile_thread_callback): Likewise.
1853 (find_mapping_size): Likewise.
1854 * linux-thread-db.c (find_new_threads_callback): Likewise.
1855 * lm32-tdep.c (lm32_frame_cache): Likewise.
1856 * m2-lang.c (builtin_m2_type): Likewise.
1857 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1858 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1859 (m32r_linux_supply_gregset): Likewise.
1860 (m32r_linux_collect_gregset): Likewise.
1861 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1862 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1863 * m68k-tdep.c (m68k_frame_cache): Likewise.
1864 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1865 (m68kbsd_supply_gregset): Likewise.
1866 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1867 * m88k-tdep.c (m88k_frame_cache): Likewise.
1868 (m88k_supply_gregset): Likewise.
1869
1870 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1871
1872 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1873 to allocation result assignment.
1874 * ada-exp.y (write_object_renaming): Likewise.
1875 (write_ambiguous_var): Likewise.
1876 (ada_nget_field_index): Likewise.
1877 (write_var_or_type): Likewise.
1878 * ada-lang.c (ada_decode_symbol): Likewise.
1879 (ada_value_assign): Likewise.
1880 (value_pointer): Likewise.
1881 (cache_symbol): Likewise.
1882 (add_nonlocal_symbols): Likewise.
1883 (ada_name_for_lookup): Likewise.
1884 (symbol_completion_add): Likewise.
1885 (ada_to_fixed_type_1): Likewise.
1886 (ada_get_next_arg): Likewise.
1887 (defns_collected): Likewise.
1888 * ada-lex.l (processId): Likewise.
1889 (processString): Likewise.
1890 * ada-tasks.c (read_known_tasks_array): Likewise.
1891 (read_known_tasks_list): Likewise.
1892 * ada-typeprint.c (decoded_type_name): Likewise.
1893 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1894 * amd64-tdep.c (amd64_push_arguments): Likewise.
1895 (amd64_displaced_step_copy_insn): Likewise.
1896 (amd64_classify_insn_at): Likewise.
1897 (amd64_relocate_instruction): Likewise.
1898 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1899 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1900 (initialize_current_architecture): Likewise.
1901 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1902 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1903 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1904 (arm_push_dummy_call): Likewise.
1905 (extend_buffer_earlier): Likewise.
1906 (arm_adjust_breakpoint_address): Likewise.
1907 (arm_skip_stub): Likewise.
1908 * auto-load.c (filename_is_in_pattern): Likewise.
1909 (maybe_add_script_file): Likewise.
1910 (maybe_add_script_text): Likewise.
1911 (auto_load_objfile_script_1): Likewise.
1912 * auxv.c (ld_so_xfer_auxv): Likewise.
1913 * ax-general.c (new_agent_expr): Likewise.
1914 (grow_expr): Likewise.
1915 (ax_reg_mask): Likewise.
1916 * bcache.c (bcache_full): Likewise.
1917 * breakpoint.c (program_breakpoint_here_p): Likewise.
1918 * btrace.c (parse_xml_raw): Likewise.
1919 * build-id.c (build_id_to_debug_bfd): Likewise.
1920 * buildsym.c (end_symtab_with_blockvector): Likewise.
1921 * c-exp.y (string_exp): Likewise.
1922 (qualified_name): Likewise.
1923 (write_destructor_name): Likewise.
1924 (operator_stoken): Likewise.
1925 (parse_number): Likewise.
1926 (scan_macro_expansion): Likewise.
1927 (yylex): Likewise.
1928 (c_print_token): Likewise.
1929 * c-lang.c (c_get_string): Likewise.
1930 (emit_numeric_character): Likewise.
1931 * charset.c (wchar_iterate): Likewise.
1932 * cli/cli-cmds.c (complete_command): Likewise.
1933 (make_command): Likewise.
1934 * cli/cli-dump.c (restore_section_callback): Likewise.
1935 (restore_binary_file): Likewise.
1936 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1937 * cli/cli-script.c (execute_control_command): Likewise.
1938 * cli/cli-setshow.c (do_set_command): Likewise.
1939 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1940 (read_pe_exported_syms): Likewise.
1941 * coffread.c (coff_read_struct_type): Likewise.
1942 (coff_read_enum_type): Likewise.
1943 * common/btrace-common.c (btrace_data_append): Likewise.
1944 * common/buffer.c (buffer_grow): Likewise.
1945 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1946 * common/format.c (parse_format_string): Likewise.
1947 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1948 * common/xml-utils.c (xml_escape_text): Likewise.
1949 * compile/compile-object-load.c (copy_sections): Likewise.
1950 (compile_object_load): Likewise.
1951 * compile/compile-object-run.c (compile_object_run): Likewise.
1952 * completer.c (filename_completer): Likewise.
1953 * corefile.c (read_memory_typed_address): Likewise.
1954 (write_memory_unsigned_integer): Likewise.
1955 (write_memory_signed_integer): Likewise.
1956 (complete_set_gnutarget): Likewise.
1957 * corelow.c (get_core_register_section): Likewise.
1958 * cp-name-parser.y (d_grab): Likewise.
1959 (allocate_info): Likewise.
1960 (cp_new_demangle_parse_info): Likewise.
1961 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1962 (cp_lookup_symbol_in_namespace): Likewise.
1963 (lookup_namespace_scope): Likewise.
1964 (find_symbol_in_baseclass): Likewise.
1965 (cp_lookup_nested_symbol): Likewise.
1966 (cp_lookup_transparent_type_loop): Likewise.
1967 * cp-support.c (copy_string_to_obstack): Likewise.
1968 (make_symbol_overload_list): Likewise.
1969 (make_symbol_overload_list_namespace): Likewise.
1970 (make_symbol_overload_list_adl_namespace): Likewise.
1971 (first_component_command): Likewise.
1972 * cp-valprint.c (cp_print_value): Likewise.
1973 * ctf.c (ctf_xfer_partial): Likewise.
1974 * d-exp.y (StringExp): Likewise.
1975 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1976 (lookup_module_scope): Likewise.
1977 (find_symbol_in_baseclass): Likewise.
1978 (d_lookup_nested_symbol): Likewise.
1979 * dbxread.c (find_stab_function_addr): Likewise.
1980 (read_dbx_symtab): Likewise.
1981 (dbx_end_psymtab): Likewise.
1982 (cp_set_block_scope): Likewise.
1983 * dcache.c (dcache_alloc): Likewise.
1984 * demangle.c (_initialize_demangler): Likewise.
1985 * dicos-tdep.c (dicos_load_module_p): Likewise.
1986 * dictionary.c (dict_create_hashed_expandable): Likewise.
1987 (dict_create_linear_expandable): Likewise.
1988 (expand_hashtable): Likewise.
1989 (add_symbol_linear_expandable): Likewise.
1990 * dwarf2-frame.c (add_cie): Likewise.
1991 (add_fde): Likewise.
1992 (dwarf2_build_frame_info): Likewise.
1993 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1994 (dwarf_expr_fetch_address): Likewise.
1995 (add_piece): Likewise.
1996 (execute_stack_op): Likewise.
1997 * dwarf2loc.c (chain_candidate): Likewise.
1998 (dwarf_entry_parameter_to_value): Likewise.
1999 (read_pieced_value): Likewise.
2000 (write_pieced_value): Likewise.
2001 * dwarf2read.c (dwarf2_read_section): Likewise.
2002 (add_type_unit): Likewise.
2003 (read_comp_units_from_section): Likewise.
2004 (fixup_go_packaging): Likewise.
2005 (dwarf2_compute_name): Likewise.
2006 (dwarf2_physname): Likewise.
2007 (create_dwo_unit_in_dwp_v1): Likewise.
2008 (create_dwo_unit_in_dwp_v2): Likewise.
2009 (read_func_scope): Likewise.
2010 (read_call_site_scope): Likewise.
2011 (dwarf2_attach_fields_to_type): Likewise.
2012 (process_structure_scope): Likewise.
2013 (mark_common_block_symbol_computed): Likewise.
2014 (read_common_block): Likewise.
2015 (abbrev_table_read_table): Likewise.
2016 (guess_partial_die_structure_name): Likewise.
2017 (fixup_partial_die): Likewise.
2018 (add_file_name): Likewise.
2019 (dwarf2_const_value_data): Likewise.
2020 (dwarf2_const_value_attr): Likewise.
2021 (build_error_marker_type): Likewise.
2022 (guess_full_die_structure_name): Likewise.
2023 (anonymous_struct_prefix): Likewise.
2024 (typename_concat): Likewise.
2025 (dwarf2_canonicalize_name): Likewise.
2026 (dwarf2_name): Likewise.
2027 (write_constant_as_bytes): Likewise.
2028 (dwarf2_fetch_constant_bytes): Likewise.
2029 (copy_string): Likewise.
2030 (parse_macro_definition): Likewise.
2031 * elfread.c (elf_symfile_segments): Likewise.
2032 (elf_rel_plt_read): Likewise.
2033 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2034 (elf_gnu_ifunc_resolve_by_got): Likewise.
2035 (elf_read_minimal_symbols): Likewise.
2036 (elf_gnu_ifunc_record_cache): Likewise.
2037 * event-top.c (top_level_prompt): Likewise.
2038 (command_line_handler): Likewise.
2039 * exec.c (resize_section_table): Likewise.
2040 * expprint.c (print_subexp_standard): Likewise.
2041 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2042 * findcmd.c (parse_find_args): Likewise.
2043 * findvar.c (address_from_register): Likewise.
2044 * frame.c (get_prev_frame_always): Likewise.
2045 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2046 (get_section_descriptor): Likewise.
2047 * gdb_obstack.c (obconcat): Likewise.
2048 (obstack_strdup): Likewise.
2049 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2050 (create_set_type): Likewise.
2051 (lookup_unsigned_typename): Likewise.
2052 (lookup_signed_typename): Likewise.
2053 (resolve_dynamic_union): Likewise.
2054 (resolve_dynamic_struct): Likewise.
2055 (add_dyn_prop): Likewise.
2056 (copy_dynamic_prop_list): Likewise.
2057 (arch_flags_type): Likewise.
2058 (append_composite_type_field_raw): Likewise.
2059 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2060 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2061 * go-exp.y (string_exp): Likewise.
2062 * go-lang.c (go_demangle): Likewise.
2063 * guile/guile.c (compute_scheme_string): Likewise.
2064 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2065 (gdbscm_canonicalize_command_name): Likewise.
2066 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2067 (ioscm_init_memory_port): Likewise.
2068 (ioscm_reinit_memory_port): Likewise.
2069 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2070 (gdbscm_gc_dup_argv): Likewise.
2071 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2072 * hppa-tdep.c (internalize_unwinds): Likewise.
2073 (read_unwind_info): Likewise.
2074 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2075 (windows_core_xfer_shared_libraries): Likewise.
2076 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2077 (i386_stap_parse_special_token_triplet): Likewise.
2078 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2079 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2080 * inf-child.c (inf_child_fileio_readlink): Likewise.
2081 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2082 (inf_ptrace_store_register): Likewise.
2083 * infrun.c (follow_exec): Likewise.
2084 (displaced_step_prepare_throw): Likewise.
2085 (save_stop_context): Likewise.
2086 (save_infcall_suspend_state): Likewise.
2087 * jit.c (jit_read_descriptor): Likewise.
2088 (jit_read_code_entry): Likewise.
2089 (jit_symtab_line_mapping_add_impl): Likewise.
2090 (finalize_symtab): Likewise.
2091 (jit_unwind_reg_get_impl): Likewise.
2092 * jv-exp.y (QualifiedName): Likewise.
2093 * jv-lang.c (get_java_utf8_name): Likewise.
2094 (type_from_class): Likewise.
2095 (java_demangle_type_signature): Likewise.
2096 (java_class_name_from_physname): Likewise.
2097 * jv-typeprint.c (java_type_print_base): Likewise.
2098 * jv-valprint.c (java_value_print): Likewise.
2099 * language.c (add_language): Likewise.
2100 * linespec.c (add_sal_to_sals_basic): Likewise.
2101 (add_sal_to_sals): Likewise.
2102 (decode_objc): Likewise.
2103 (find_linespec_symbols): Likewise.
2104 * linux-fork.c (fork_save_infrun_state): Likewise.
2105 * linux-nat.c (linux_nat_detach): Likewise.
2106 (linux_nat_fileio_readlink): Likewise.
2107 * linux-record.c (record_linux_sockaddr): Likewise.
2108 (record_linux_msghdr): Likewise.
2109 (Do): Likewise.
2110 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2111 (linux_collect_regset_section_cb): Likewise.
2112 (linux_get_siginfo_data): Likewise.
2113 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2114 (try_thread_db_load_from_dir): Likewise.
2115 (thread_db_load_search): Likewise.
2116 (info_auto_load_libthread_db): Likewise.
2117 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2118 (m32c_m16c_pointer_to_address): Likewise.
2119 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2120 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2121 * machoread.c (macho_check_dsym): Likewise.
2122 * macroexp.c (resize_buffer): Likewise.
2123 (gather_arguments): Likewise.
2124 (maybe_expand): Likewise.
2125 * macrotab.c (new_macro_key): Likewise.
2126 (new_source_file): Likewise.
2127 (new_macro_definition): Likewise.
2128 * mdebugread.c (parse_symbol): Likewise.
2129 (parse_type): Likewise.
2130 (parse_partial_symbols): Likewise.
2131 (psymtab_to_symtab_1): Likewise.
2132 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2133 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2134 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2135 (mi_cmd_data_read_memory_bytes): Likewise.
2136 (mi_cmd_data_write_memory_bytes): Likewise.
2137 (mi_cmd_trace_frame_collected): Likewise.
2138 * mi/mi-parse.c (mi_parse_argv): Likewise.
2139 (mi_parse): Likewise.
2140 * minidebug.c (lzma_open): Likewise.
2141 (lzma_pread): Likewise.
2142 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2143 (mips_print_fp_register): Likewise.
2144 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2145 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2146 * mt-tdep.c (mt_register_name): Likewise.
2147 (mt_registers_info): Likewise.
2148 (mt_push_dummy_call): Likewise.
2149 * namespace.c (add_using_directive): Likewise.
2150 * nat/linux-btrace.c (perf_event_read): Likewise.
2151 (linux_enable_bts): Likewise.
2152 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2153 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2154 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2155 (nto_parse_redirection): Likewise.
2156 * objc-lang.c (objc_demangle): Likewise.
2157 (find_methods): Likewise.
2158 * objfiles.c (get_objfile_bfd_data): Likewise.
2159 (set_objfile_main_name): Likewise.
2160 (allocate_objfile): Likewise.
2161 (objfile_relocate): Likewise.
2162 (update_section_map): Likewise.
2163 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2164 * p-exp.y (exp): Likewise.
2165 (yylex): Likewise.
2166 * p-valprint.c (pascal_object_print_value): Likewise.
2167 * parse.c (initialize_expout): Likewise.
2168 (mark_completion_tag): Likewise.
2169 (copy_name): Likewise.
2170 (parse_float): Likewise.
2171 (type_stack_reserve): Likewise.
2172 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2173 (ppu2spu_prev_register): Likewise.
2174 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2175 * printcmd.c (printf_wide_c_string): Likewise.
2176 (printf_pointer): Likewise.
2177 * probe.c (parse_probes): Likewise.
2178 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2179 (cmdpy_init): Likewise.
2180 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2181 * python/py-symtab.c (set_sal): Likewise.
2182 * python/py-unwind.c (pyuw_sniffer): Likewise.
2183 * python/python.c (python_interactive_command): Likewise.
2184 (compute_python_string): Likewise.
2185 * ravenscar-thread.c (get_running_thread_id): Likewise.
2186 * record-full.c (record_full_exec_insn): Likewise.
2187 (record_full_core_open_1): Likewise.
2188 * regcache.c (regcache_raw_read_signed): Likewise.
2189 (regcache_raw_read_unsigned): Likewise.
2190 (regcache_cooked_read_signed): Likewise.
2191 (regcache_cooked_read_unsigned): Likewise.
2192 * remote-fileio.c (remote_fileio_func_open): Likewise.
2193 (remote_fileio_func_rename): Likewise.
2194 (remote_fileio_func_unlink): Likewise.
2195 (remote_fileio_func_stat): Likewise.
2196 (remote_fileio_func_system): Likewise.
2197 * remote-mips.c (mips_xfer_memory): Likewise.
2198 (mips_load_srec): Likewise.
2199 (pmon_end_download): Likewise.
2200 * remote.c (new_remote_state): Likewise.
2201 (map_regcache_remote_table): Likewise.
2202 (remote_register_number_and_offset): Likewise.
2203 (init_remote_state): Likewise.
2204 (get_memory_packet_size): Likewise.
2205 (remote_pass_signals): Likewise.
2206 (remote_program_signals): Likewise.
2207 (remote_start_remote): Likewise.
2208 (remote_check_symbols): Likewise.
2209 (remote_query_supported): Likewise.
2210 (extended_remote_attach): Likewise.
2211 (process_g_packet): Likewise.
2212 (store_registers_using_G): Likewise.
2213 (putpkt_binary): Likewise.
2214 (read_frame): Likewise.
2215 (compare_sections_command): Likewise.
2216 (remote_hostio_pread): Likewise.
2217 (remote_hostio_readlink): Likewise.
2218 (remote_file_put): Likewise.
2219 (remote_file_get): Likewise.
2220 (remote_pid_to_exec_file): Likewise.
2221 (_initialize_remote): Likewise.
2222 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2223 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2224 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2225 (bfd_uses_spe_extensions): Likewise.
2226 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2227 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2228 * solib-dsbt.c (decode_loadmap): Likewise.
2229 (fetch_loadmap): Likewise.
2230 (scan_dyntag): Likewise.
2231 (enable_break): Likewise.
2232 (dsbt_relocate_main_executable): Likewise.
2233 * solib-frv.c (fetch_loadmap): Likewise.
2234 (enable_break2): Likewise.
2235 (frv_relocate_main_executable): Likewise.
2236 * solib-spu.c (spu_relocate_main_executable): Likewise.
2237 (spu_bfd_open): Likewise.
2238 * solib-svr4.c (lm_info_read): Likewise.
2239 (read_program_header): Likewise.
2240 (find_program_interpreter): Likewise.
2241 (scan_dyntag): Likewise.
2242 (elf_locate_base): Likewise.
2243 (open_symbol_file_object): Likewise.
2244 (read_program_headers_from_bfd): Likewise.
2245 (svr4_relocate_main_executable): Likewise.
2246 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2247 * solib.c (solib_find_1): Likewise.
2248 (exec_file_find): Likewise.
2249 (solib_find): Likewise.
2250 * source.c (openp): Likewise.
2251 (print_source_lines_base): Likewise.
2252 (forward_search_command): Likewise.
2253 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2254 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2255 (spu_get_overlay_table): Likewise.
2256 * stabsread.c (patch_block_stabs): Likewise.
2257 (define_symbol): Likewise.
2258 (again:): Likewise.
2259 (read_member_functions): Likewise.
2260 (read_one_struct_field): Likewise.
2261 (read_enum_type): Likewise.
2262 (common_block_start): Likewise.
2263 * stack.c (read_frame_arg): Likewise.
2264 (backtrace_command): Likewise.
2265 * stap-probe.c (stap_parse_register_operand): Likewise.
2266 * symfile.c (syms_from_objfile_1): Likewise.
2267 (find_separate_debug_file): Likewise.
2268 (load_command): Likewise.
2269 (load_progress): Likewise.
2270 (load_section_callback): Likewise.
2271 (reread_symbols): Likewise.
2272 (add_filename_language): Likewise.
2273 (allocate_compunit_symtab): Likewise.
2274 (read_target_long_array): Likewise.
2275 (simple_read_overlay_table): Likewise.
2276 * symtab.c (symbol_set_names): Likewise.
2277 (resize_symbol_cache): Likewise.
2278 (rbreak_command): Likewise.
2279 (completion_list_add_name): Likewise.
2280 (completion_list_objc_symbol): Likewise.
2281 (add_filename_to_list): Likewise.
2282 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2283 * target-memory.c (target_write_memory_blocks): Likewise.
2284 * target.c (target_read_string): Likewise.
2285 (read_whatever_is_readable): Likewise.
2286 (target_read_alloc_1): Likewise.
2287 (simple_search_memory): Likewise.
2288 (target_fileio_read_alloc_1): Likewise.
2289 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2290 * top.c (command_line_input): Likewise.
2291 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2292 * tracefile.c (tracefile_fetch_registers): Likewise.
2293 * tracepoint.c (add_memrange): Likewise.
2294 (init_collection_list): Likewise.
2295 (add_aexpr): Likewise.
2296 (trace_dump_actions): Likewise.
2297 (parse_trace_status): Likewise.
2298 (parse_tracepoint_definition): Likewise.
2299 (parse_tsv_definition): Likewise.
2300 (parse_static_tracepoint_marker_definition): Likewise.
2301 * tui/tui-file.c (tui_sfileopen): Likewise.
2302 (tui_file_adjust_strbuf): Likewise.
2303 * tui/tui-io.c (tui_expand_tabs): Likewise.
2304 * tui/tui-source.c (tui_set_source_content): Likewise.
2305 * typeprint.c (find_global_typedef): Likewise.
2306 * ui-file.c (do_ui_file_xstrdup): Likewise.
2307 (ui_file_obsavestring): Likewise.
2308 (mem_file_write): Likewise.
2309 * utils.c (make_hex_string): Likewise.
2310 (get_regcomp_error): Likewise.
2311 (puts_filtered_tabular): Likewise.
2312 (gdb_realpath_keepfile): Likewise.
2313 (ldirname): Likewise.
2314 (gdb_bfd_errmsg): Likewise.
2315 (substitute_path_component): Likewise.
2316 * valops.c (search_struct_method): Likewise.
2317 (find_oload_champ_namespace_loop): Likewise.
2318 * valprint.c (print_decimal_chars): Likewise.
2319 (read_string): Likewise.
2320 (generic_emit_char): Likewise.
2321 * varobj.c (varobj_delete): Likewise.
2322 (varobj_value_get_print_value): Likewise.
2323 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2324 * windows-tdep.c (display_one_tib): Likewise.
2325 * xcoffread.c (read_xcoff_symtab): Likewise.
2326 (process_xcoff_symbol): Likewise.
2327 (swap_sym): Likewise.
2328 (scan_xcoff_symtab): Likewise.
2329 (xcoff_initial_scan): Likewise.
2330 * xml-support.c (gdb_xml_end_element): Likewise.
2331 (xml_process_xincludes): Likewise.
2332 (xml_fetch_content_from_file): Likewise.
2333 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2334 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2335
2336 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2337
2338 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2339 instead of builtin_func_ptr.
2340 (ft32_pointer_to_address): New function.
2341 (ft32_address_class_type_flags): New function.
2342 (ft32_address_class_type_flags_to_name): New function.
2343 (ft32_address_class_name_to_type_flags): New function.
2344 (ft32_gdbarch_init): Set tdep->pc_type. Call
2345 set_gdbarch_pointer_to_address,
2346 set_gdbarch_address_class_type_flags
2347 set_gdbarch_address_class_name_to_type_flags,
2348 and set_gdbarch_address_class_type_flags_to_name.
2349 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2350
2351 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2352
2353 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2354 value is a reference, actually dereference it in order to get
2355 the underlying value.
2356
2357 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2358
2359 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2360
2361 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2362
2363 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2364 * linespec.c (linespec_lexer_lex_string): Same.
2365
2366 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2367
2368 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2369
2370 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2371
2372 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2373 variable. Call aarch64_decode_adr instead of
2374 aarch64_decode_adrp.
2375 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2376 (aarch64_decode_adr): New function declaration.
2377 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2378 (aarch64_decode_adr): New function, factored out from
2379 aarch64_decode_adrp to decode both adr and adrp instructions.
2380
2381 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2382
2383 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2384 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2385 (aarch64-insn.o): New rule.
2386 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2387 (aarch64*-*-linux*): Likewise.
2388 * arch/aarch64-insn.c: New file.
2389 * arch/aarch64-insn.h: New file.
2390 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2391 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2392 arch/aarch64-insn.h.
2393 (decode_add_sub_imm): Rename to ...
2394 (aarch64_decode_add_sub_imm): ... this.
2395 (decode_adrp): Rename to ...
2396 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2397 Declare in arch/aarch64-insn.h.
2398 (decode_b): Rename to ...
2399 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2400 Declare in arch/aarch64-insn.h.
2401 (decode_bcond): Rename to ...
2402 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2403 Declare in arch/aarch64-insn.h.
2404 (decode_br): Rename to ...
2405 (aarch64_decode_br): ... this.
2406 (decode_cb): Rename to ...
2407 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2408 Declare in arch/aarch64-insn.h.
2409 (decode_eret): Rename to ...
2410 (aarch64_decode_eret): ... this.
2411 (decode_movz): Rename to ...
2412 (aarch64_decode_movz): ... this.
2413 (decode_orr_shifted_register_x): Rename to ...
2414 (aarch64_decode_orr_shifted_register_x): ... this.
2415 (decode_ret): Rename to ...
2416 (aarch64_decode_ret): ... this.
2417 (decode_stp_offset): Rename to ...
2418 (aarch64_decode_stp_offset): ... this.
2419 (decode_stp_offset_wb): Rename to ...
2420 (aarch64_decode_stp_offset_wb): ... this.
2421 (decode_stur): Rename to ...
2422 (aarch64_decode_stur): ... this.
2423 (decode_tb): Rename to ...
2424 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2425 Declare in arch/aarch64-insn.h.
2426 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2427
2428 2015-09-20 Doug Evans <xdje42@gmail.com>
2429
2430 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2431
2432 2015-09-20 Doug Evans <xdje42@gmail.com>
2433
2434 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2435 variable name that collides with a parameter.
2436
2437 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2438
2439 * dwarf2loc.c (locexpr_get_frame_base): Renames
2440 block_op_get_frame_base.
2441 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2442 block_op_get_frame_base by reference to locexpr_get_frame_base.
2443 (loclist_get_frame_base): New function, near identical copy of
2444 locexpr_get_frame_base.
2445 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2446 block_op_get_frame_base by reference to loclist_get_frame_base.
2447
2448 2015-09-19 Doug Evans <xdje42@gmail.com>
2449
2450 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2451 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2452
2453 2015-09-18 Doug Evans <xdje42@gmail.com>
2454
2455 * linux-thread-db.c (record_thread): Return the created thread.
2456 (thread_from_lwp): Likewise.
2457 (thread_db_get_thread_local_address): Update.
2458
2459 2015-09-18 Doug Evans <xdje42@gmail.com>
2460
2461 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2462 move only member demangled_name up. All uses updated.
2463
2464 2015-09-18 Doug Evans <xdje42@gmail.com>
2465
2466 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2467 kind of minimal symbol in the error message.
2468 * objfiles.c (objfile_flavour_name): New function.
2469 * objfiles.h (objfile_flavour_name): Declare.
2470
2471 2015-09-18 Yao Qi <yao.qi@linaro.org>
2472
2473 * nat/aarch64-linux.c: Include elf/common.h,
2474 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2475 (aarch64_ps_get_thread_area): New function.
2476 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2477 (aarch64_ps_get_thread_area): Declare.
2478 * aarch64-linux-nat.c (ps_get_thread_area): Call
2479 aarch64_ps_get_thread_area.
2480
2481 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2482
2483 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2484
2485 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2486
2487 * NEWS: Announce new scheduler-locking mode.
2488 * infrun.c (schedlock_replay): New.
2489 (scheduler_enums): Add schedlock_replay.
2490 (scheduler_mode): Change default to schedlock_replay.
2491 (user_visible_resume_ptid): Handle schedlock_replay.
2492 (clear_proceed_status_thread): Stop replaying if resumed thread is
2493 not replaying.
2494 (schedlock_applies): Handle schedlock_replay.
2495 (_initialize_infrun): Document new scheduler-locking mode.
2496 * record-btrace.c (record_btrace_resume): Remove code to stop other
2497 threads when not replaying the resumed thread.
2498
2499 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2500
2501 * record-btrace.c ((record_btrace_will_replay): New.
2502 (init_record_btrace_ops): Initialize to_record_will_replay.
2503 * record-full.c ((record_full_will_replay): New.
2504 (init_record_full_ops): Initialize to_record_will_replay.
2505 * target-delegates.c: Regenerated.
2506 * target.c (target_record_will_replay): New.
2507 * target.h (struct target_ops) <to_record_will_replay>: New.
2508 (target_record_will_replay): New.
2509
2510 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2511
2512 * record-btrace.c (record_btrace_resume): Call
2513 target_record_stop_replaying.
2514 (record_btrace_stop_replaying_all): New.
2515 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2516 * record-full.c (record_full_stop_replaying): New.
2517 (init_record_full_ops ): Initialize to_record_stop_replaying.
2518 * target-delegates.c: Regenerated.
2519 * target.c (target_record_stop_replaying): New.
2520 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2521 (target_record_stop_replaying): New.
2522
2523 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2524
2525 * record-btrace.c (record_btrace_xfer_partial)
2526 (record_btrace_store_registers, record_btrace_prepare_to_store):
2527 Call record_btrace_is_replaying with inferior_ptid instead of
2528 minus_one_ptid.
2529 (record_btrace_store_registers): Change error message.
2530
2531 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2532
2533 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2534 Update users to pass minus_one_ptid.
2535 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2536 * record.c (cmd_record_delete): Pass inferior_ptid to
2537 target_record_is_replaying.
2538 * target-delegates.c: Regenerated.
2539 * target.c (target_record_is_replaying): Add ptid argument.
2540 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2541 argument.
2542 (target_record_is_replaying): Add ptid argument.
2543
2544 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2545
2546 * record-btrace.c (record_btrace_open): Remove non_stop check.
2547 * NEWS: Announce that record btrace supports non-stop mode.
2548
2549 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2550
2551 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2552 in the TARKET_WAITKIND_NO_HISTORY case.
2553
2554 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2555
2556 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2557 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2558
2559 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2560
2561 * record-btrace.c (get_thread_current_frame): New.
2562 (record_btrace_start_replaying): Call get_thread_current_frame.
2563
2564 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2565
2566 * record-btrace.c (record_btrace_resume_thread): A move request
2567 overwrites a previous move request.
2568 (record_btrace_find_resume_thread): Removed.
2569 (record_btrace_resume): Resume all requested threads.
2570
2571 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2572
2573 * record-btrace.c: Include vec.h.
2574 (record_btrace_find_thread_to_move): Removed.
2575 (btrace_step_no_resumed, btrace_step_again)
2576 (record_btrace_stop_replaying_at_end): New.
2577 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2578 (record_btrace_single_step_forward): Remove calls to
2579 record_btrace_stop_replaying.
2580 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2581 BTHR_RCONT. Keep threads at the end of their history moving.
2582 (record_btrace_wait): Call record_btrace_step_thread for all threads
2583 until one reports an event. Call record_btrace_stop_replaying_at_end
2584 for the eventing thread.
2585
2586 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2587
2588 * record-btrace.c (record_btrace_single_step_forward): Return
2589 NO_HISTORY if a step brings us to the end of the execution history.
2590
2591 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2592
2593 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2594 to ...
2595 (record_btrace_single_step_forward): ... here and
2596 (record_btrace_single_step_backward): ... here.
2597
2598 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2599
2600 * record-btrace.c (btrace_step_spurious)
2601 (record_btrace_single_step_forward)
2602 (record_btrace_single_step_backward): New.
2603 (record_btrace_step_thread): Call record_btrace_single_step_forward
2604 and record_btrace_single_step_backward.
2605
2606 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2607
2608 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2609 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2610
2611 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2612
2613 * record-btrace.c (btrace_thread_flag_to_str)
2614 (record_btrace_cancel_resume): New.
2615 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2616 (record_btrace_resume): Print execution direction.
2617 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2618 (record_btrace_wait): Call record_btrace_cancel_resume.
2619
2620 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2621
2622 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2623 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2624 (record_btrace_find_thread_to_move): Also accept threads that have
2625 BTHR_STOP set.
2626 (btrace_step_stopped_on_request, record_btrace_stop): New.
2627 (record_btrace_step_thread): Support BTHR_STOP.
2628 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2629 (init_record_btrace_ops): Initialize to_stop.
2630
2631 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2632
2633 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2634 target_is_non_stop_p ().
2635
2636 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2637
2638 * ada-typeprint.c (print_array_type): Do not describe arrays as
2639 packed when they embed dynamic elements.
2640
2641 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2642
2643 * symtab.h (address_class): Document that TLS variables
2644 are handled by LOC_UNRESOLVED.
2645 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2646 * printcmd.c (address_info): Don't relocate TLS variables.
2647
2648 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2649
2650 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2651 (decode_adrp): Likewise.
2652 (decode_b): Likewise.
2653 (decode_bcond): Likewise.
2654 (decode_br): Likewise.
2655 (decode_cb): Likewise.
2656 (decode_eret): Likewise.
2657 (decode_movz): Likewise.
2658 (decode_orr_shifted_register_x): Likewise.
2659 (decode_ret): Likewise.
2660 (decode_stp_offset): Likewise.
2661 (decode_stp_offset_wb): Likewise.
2662 (decode_stur): Likewise.
2663 (decode_tb): Likewise.
2664 (aarch64_analyze_prologue): Likewise.
2665 (pass_in_x): Likewise.
2666 (pass_in_v): Likewise.
2667 (pass_on_stack): Likewise.
2668 (aarch64_push_dummy_call): Likewise.
2669 (aarch64_extract_return_value): Likewise.
2670 (aarch64_store_return_value): Likewise.
2671 (aarch64_return_value): Likewise.
2672 (aarch64_record_asimd_load_store): Likewise.
2673 (aarch64_record_load_store): Likewise.
2674 (aarch64_record_data_proc_simd_fp): Likewise.
2675
2676 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2677
2678 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2679 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2680 (ppc64_skip_trampoline_code_1): ... here.
2681 (ppc64_skip_trampoline_code): New wrapper function.
2682 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2683
2684 2015-09-15 Yao Qi <yao.qi@linaro.org>
2685
2686 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2687 function.
2688 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2689 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2690 if target_can_do_single_step returns 1.
2691 * remote.c (struct vCont_action_support) <s, S>: New fields.
2692 (PACKET_vContSupported): New enum.
2693 (remote_protocol_features): New element for vContSupported.
2694 (remote_query_supported): Append "vContSupported+".
2695 (remote_vcont_probe): Remove support_s and support_S, use
2696 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2697 vCont packet if c and C actions are not supported.
2698 (remote_can_do_single_step): New function.
2699 (init_remote_ops): Install it to to_can_do_single_step.
2700 (_initialize_remote): Call add_packet_config_cmd.
2701 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2702 (target_can_do_single_step): New macro.
2703 * target-delegates.c: Re-generated.
2704
2705 2015-09-15 Yao Qi <yao.qi@linaro.org>
2706
2707 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2708 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2709 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2710 New function.
2711 (aarch64_siginfo_from_compat_siginfo): New function.
2712 * nat/aarch64-linux.h: Include signal.h.
2713 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2714 (compat_timer_t, compat_clock_t): Likewise.
2715 (struct compat_timeval): New.
2716 (union compat_sigval): New.
2717 (struct compat_siginfo): New.
2718 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2719 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2720 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2721 (cpt_si_band, cpt_si_fd): Likewise.
2722
2723 2015-09-14 Pedro Alves <palves@redhat.com>
2724
2725 * infrun.c (current_stop_id): New global.
2726 (get_stop_id, new_stop_id): New functions.
2727 (fetch_inferior_event): Handle normal_stop proceeding the target.
2728 (struct stop_context): New.
2729 (save_stop_context, release_stop_context_cleanup)
2730 (stop_context_changed): New functions.
2731 (normal_stop): Return true if the hook-stop changes the stop
2732 context.
2733 * infrun.h (get_stop_id): Declare.
2734 (normal_stop): Now returns int. Add documentation.
2735
2736 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2737
2738 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2739 comment. Handle packed arrays.
2740
2741 2015-09-14 Pedro Alves <palves@redhat.com>
2742
2743 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2744 mention of maint set/show target-non-stop.
2745
2746 2015-09-11 Don Breazeal <donb@codesourcery.com>
2747
2748 * NEWS: Announce new remote packets for the exec-events
2749 feature and the exec-events feature and associated commands.
2750
2751 2015-09-11 Don Breazeal <donb@codesourcery.com>
2752
2753 * remote.c (remote_exec_event_p): New function.
2754 (remote_insert_exec_catchpoint): New function.
2755 (remote_remove_exec_catchpoint): New function.
2756 (init_extended_remote_ops): Initialize extended_remote_ops
2757 members to_insert_exec_catchpoint and
2758 to_remove_exec_catchpoint.
2759
2760 2015-09-11 Don Breazeal <donb@codesourcery.com>
2761 Luis Machado <lgustavo@codesourcery.com>
2762
2763 * infrun.c (follow_exec): Use process-style ptid for
2764 exec message. Call add_inferior_with_spaces and
2765 target_follow_exec.
2766 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2767 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2768 * remote.c (remote_pspace_data): New static variable.
2769 (remote_pspace_data_cleanup): New function.
2770 (get_remote_exec_file): New function.
2771 (set_remote_exec_file_1): New function.
2772 (set_remote_exec_file): New function.
2773 (show_remote_exec_file): New function.
2774 (remote_exec_file): Delete static variable.
2775 (anonymous enum) <PACKET_exec_event_feature>: New
2776 enumeration constant.
2777 (remote_protocol_features): Add entry for exec-events feature.
2778 (remote_query_supported): Add client side of qSupported query
2779 for exec-events feature.
2780 (remote_follow_exec): New function.
2781 (remote_parse_stop_reply): Handle 'exec' stop reason.
2782 (extended_remote_run, extended_remote_create_inferior): Call
2783 get_remote_exec_file and set_remote_exec_file_1.
2784 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2785 member.
2786 (_initialize_remote): Call
2787 register_program_space_data_with_cleanup. Call
2788 add_packet_config_cmd for remote exec-events feature.
2789 Modify call to add_setshow_string_noescape_cmd for exec-file
2790 to use new functions set_remote_exec_file and
2791 show_remote_exec_file.
2792 * target-debug.h, target-delegates.c: Regenerated.
2793 * target.c (target_follow_exec): New function.
2794 * target.h (struct target_ops) <to_follow_exec>: New member.
2795 (target_follow_exec): Declare new function.
2796
2797 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2798
2799 * aarch64-tdep.c (decode_cb): Move up comment describing the
2800 encoding.
2801 (decode_tb): Fix a typo in comment above the function. Move up
2802 comment describing the encoding.
2803
2804 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2805
2806 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2807
2808 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2809
2810 PR gdb/18947
2811 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2812 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2813
2814 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2815
2816 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2817 operations.
2818
2819 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2820
2821 * ada-lang.c (ada_search_struct_field): Constify parameters
2822 and/or variables..
2823 (xget_renaming_scope): Likewise.
2824 (ada_is_redundant_range_encoding): Likewise.
2825 (scan_discrim_bound): Likewise.
2826 (to_fixed_range_type): Likewise.
2827
2828 2015-09-10 Yao Qi <yao.qi@linaro.org>
2829
2830 * breakpoint.c (download_tracepoint_locations): New local
2831 can_download_tracepoint. Check the result of
2832 target_can_download_tracepoint and save it in
2833 can_download_tracepoint if there are tracepoints to download.
2834 * linux-nat.h (enum tribool): Move it to ...
2835 * common/common-types.h: ... here.
2836
2837 2015-09-09 Pedro Alves <palves@redhat.com>
2838
2839 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2840 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2841
2842 2015-09-09 Pedro Alves <palves@redhat.com>
2843
2844 * continuations.c (add_continuation, restore_thread_cleanup)
2845 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2846 (do_all_continuations_thread, do_all_continuations)
2847 (discard_all_continuations_thread_callback)
2848 (discard_all_continuations_thread, discard_all_continuations)
2849 (add_intermediate_continuation)
2850 (do_all_intermediate_continuations_thread_callback)
2851 (do_all_intermediate_continuations_thread)
2852 (do_all_intermediate_continuations)
2853 (discard_all_intermediate_continuations_thread_callback)
2854 (discard_all_intermediate_continuations_thread)
2855 (discard_all_intermediate_continuations): Delete.
2856 * continuations.h (add_continuation, do_all_continuations)
2857 (do_all_continuations_thread, discard_all_continuations)
2858 (discard_all_continuations_thread, add_intermediate_continuation)
2859 (do_all_intermediate_continuations)
2860 (do_all_intermediate_continuations_thread)
2861 (discard_all_intermediate_continuations)
2862 (discard_all_intermediate_continuations_thread): Delete
2863 declarations.
2864 * event-top.c (stdin_event_handler): Delete references to
2865 continuations.
2866 * gdbthread.h (struct thread_info): Delete continuations and
2867 intermediate_continuations fields.
2868 * inf-loop.c (inferior_event_handler): Remove references to
2869 continuations.
2870 * infrun.c (infrun_thread_stop_requested_callback): Remove
2871 references to continuations.
2872 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2873 * thread.c: Don't include "continuations.h".
2874 (clear_thread_inferior_resources): Remove references to
2875 continuations.
2876
2877 2015-09-09 Pedro Alves <palves@redhat.com>
2878
2879 * infcall.c (struct dummy_frame_context_saver): Delete.
2880 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2881 (dummy_frame_context_saver_drop)
2882 (dummy_frame_context_saver_cleanup)
2883 (dummy_frame_context_saver_get_regs)
2884 (dummy_frame_context_saver_setup): Delete.
2885 * infcall.h (dummy_frame_context_saver_drop)
2886 (dummy_frame_context_saver_cleanup)
2887 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2888 Delete.
2889 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2890 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2891 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2892
2893 2015-09-09 Pedro Alves <palves@redhat.com>
2894
2895 * breakpoint.c: Include "thread-fsm.h".
2896 (struct until_break_command_continuation_args): Delete.
2897 (struct until_break_fsm): New.
2898 (until_break_fsm_ops): New global.
2899 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2900 (until_break_command_continuation): Delete.
2901 (until_break_fsm_clean_up): New function.
2902 (until_break_fsm_async_reply_reason): New function.
2903 (until_break_command): Adjust to create an until_break_fsm instead
2904 of a continuation.
2905 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2906 here.
2907 * infcmd.c (struct until_next_fsm): New.
2908 (until_next_fsm_ops): New global.
2909 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2910 (until_next_continuation): Delete.
2911 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2912 functions.
2913 (until_next_command): Adjust to create a new until_next_fsm
2914 instead of a continuation.
2915
2916 2015-09-09 Pedro Alves <palves@redhat.com>
2917
2918 * infcall.c: Include thread_fsm.h.
2919 (struct call_return_meta_info): New.
2920 (get_call_return_value): New function, factored out from
2921 call_function_by_hand_dummy.
2922 (struct call_thread_fsm): New.
2923 (call_thread_fsm_ops): New global.
2924 (new_call_thread_fsm, call_thread_fsm_should_stop)
2925 (call_thread_fsm_should_notify_stop): New functions.
2926 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2927 the thread.
2928 (call_function_by_hand_dummy): Create a new call_thread_fsm
2929 instance, associate it with the thread, and wait for the FSM to
2930 finish. If finished successfully, fetch the function's result
2931 value out of the FSM.
2932 * infrun.c (fetch_inferior_event): If the FSM says the stop
2933 shouldn't be notified, don't call normal_stop.
2934 (maybe_remove_breakpoints): New function, factored out from ...
2935 (normal_stop): ... here. Simplify.
2936 * infrun.h (maybe_remove_breakpoints): Declare.
2937 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2938 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2939 (thread_fsm_should_notify_stop): Declare.
2940
2941 2015-09-09 Pedro Alves <palves@redhat.com>
2942
2943 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2944 * breakpoint.c (handle_jit_event): Print debug output.
2945 (bpstat_what): Split event callback handling to ...
2946 (bpstat_run_callbacks): ... this new function.
2947 (momentary_bkpt_print_it): No longer handle bp_finish here.
2948 * breakpoint.h (bpstat_run_callbacks): Declare.
2949 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2950 <thread_fsm>: New field.
2951 (thread_cancel_execution_command): Declare.
2952 * infcmd.c: Include thread-fsm.h.
2953 (struct step_command_fsm): New.
2954 (step_command_fsm_ops): New global.
2955 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2956 (step_1): Adjust to use step_command_fsm_prepare and
2957 prepare_one_step.
2958 (struct step_1_continuation_args): Delete.
2959 (step_1_continuation): Delete.
2960 (step_command_fsm_should_stop): New function.
2961 (step_once): Delete.
2962 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2963 (prepare_one_step): New function, based on step_once.
2964 (until_next_command): Remove step_multi reference.
2965 (struct return_value_info): New.
2966 (print_return_value): Rename to ...
2967 (print_return_value_1): ... this. New struct return_value_info
2968 parameter. Adjust.
2969 (print_return_value): Reimplement as wrapper around
2970 print_return_value_1.
2971 (struct finish_command_fsm): New.
2972 (finish_command_continuation): Delete.
2973 (finish_command_fsm_ops): New global.
2974 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2975 functions.
2976 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2977 New.
2978 (finish_command_continuation_free_arg): Delete.
2979 (finish_command_fsm_async_reply_reason): New.
2980 (finish_backward, finish_forward): Change symbol parameter to a
2981 finish_command_fsm. Adjust.
2982 (finish_command): Create a finish_command_fsm. Adjust.
2983 * infrun.c: Include "thread-fsm.h".
2984 (clear_proceed_status_thread): Delete the thread's FSM.
2985 (infrun_thread_stop_requested_callback): Cancel the thread's
2986 execution command.
2987 (clean_up_just_stopped_threads_fsms): New function.
2988 (fetch_inferior_event): Handle the event_thread's should_stop
2989 method saying the command isn't done yet.
2990 (process_event_stop_test): Run breakpoint callbacks here.
2991 (print_stop_event): Rename to ...
2992 (print_stop_location): ... this.
2993 (restore_current_uiout_cleanup): New function.
2994 (print_stop_event): Reimplement.
2995 (normal_stop): No longer notify the end_stepping_range observers
2996 here handle "step N" nor "finish" here. No longer call
2997 print_stop_event here.
2998 * infrun.h (struct return_value_info): Forward declare.
2999 (print_return_value): Declare.
3000 (print_stop_event): Change prototype.
3001 * thread-fsm.c: New file.
3002 * thread-fsm.h: New file.
3003 * thread.c: Include "thread-fsm.h".
3004 (thread_cancel_execution_command): New function.
3005 (clear_thread_inferior_resources): Call it.
3006 * cli/cli-interp.c (cli_on_normal_stop): New function.
3007 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3008 observer.
3009 * mi/mi-interp.c: Include "thread-fsm.h".
3010 (restore_current_uiout_cleanup): Delete.
3011 (mi_on_normal_stop): If the thread has an FSM associated, and it
3012 finished, ask it for the async-reply-reason to print. Always call
3013 print_stop_event here, regardless of the top-level interpreter.
3014 Check bpstat_what to tell whether an asynchronous breakpoint hit
3015 triggered.
3016 * tui/tui-interp.c (tui_on_normal_stop): New function.
3017 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3018
3019 2015-09-09 Pedro Alves <palves@redhat.com>
3020
3021 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3022 check whether the target can async.
3023 * inf-loop.c (inferior_event_handler): Only call target_async if
3024 the target can async.
3025 * infcall.c: Include top.h and interps.h.
3026 (run_inferior_call): For the interpreter to sync mode while
3027 running the infcall. Call wait_sync_command_done instead of
3028 wait_for_inferior plus normal_stop.
3029 * infcmd.c (prepare_execution_command): Don't check whether the
3030 target can async when running in the foreground.
3031 (step_1): Delete synchronous case handling.
3032 (step_once): Always install a continuation, even in sync mode.
3033 (until_next_command, finish_forward): Don't check whether the
3034 target can async.
3035 (attach_command_post_wait, notice_new_inferior): Always install a
3036 continuation, even in sync mode.
3037 * infrun.c (mark_infrun_async_event_handler): New function.
3038 (proceed): In sync mode, mark infrun's event source instead of
3039 waiting for events here.
3040 (fetch_inferior_event): If the target can't async, do a blocking
3041 wait.
3042 (prepare_to_wait): In sync mode, mark infrun's event source.
3043 (infrun_async_inferior_event_handler): No longer bail out if the
3044 target can't async.
3045 * infrun.h (mark_infrun_async_event_handler): New declaration.
3046 * linux-nat.c (linux_nat_wait_1): Remove calls to
3047 set_sigint_trap/clear_sigint_trap.
3048 (linux_nat_terminal_inferior): No longer check whether the target
3049 can async.
3050 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3051 comment.
3052 (mi_execute_command_input_handler): No longer check whether the
3053 target is async. Update and simplify comment.
3054 * target.c (default_target_wait): New function.
3055 * target.h (struct target_ops) <to_wait>: Now defaults to
3056 default_target_wait.
3057 (default_target_wait): Declare.
3058 * top.c (wait_sync_command_done): New function, factored out from
3059 ...
3060 (maybe_wait_sync_command_done): ... this.
3061 * top.h (wait_sync_command_done): Declare.
3062 * target-delegates.c: Regenerate.
3063
3064 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3065
3066 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3067 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3068 Remove include of sys/utsname.h.
3069 (linux_determine_kernel_ptr_bits): Remove.
3070 (linux_determine_kernel_start): New.
3071 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3072 Update check.
3073 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3074 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3075 initialization.
3076 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3077 assignment.
3078
3079 2015-09-07 Pedro Alves <palves@redhat.com>
3080
3081 * guile/guile-internal.h (as_a_scm_t_subr): New.
3082 * guile/guile.c (misc_guile_functions): Use it.
3083 * guile/scm-arch.c (arch_functions): Use it.
3084 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3085 Use it.
3086 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3087 * guile/scm-cmd.c (command_functions): Use it.
3088 * guile/scm-disasm.c (disasm_functions): Use it.
3089 * guile/scm-exception.c (exception_functions)
3090 (private_exception_functions): Use it.
3091 * guile/scm-frame.c (frame_functions)
3092 * guile/scm-gsmob.c (gsmob_functions): Use it.
3093 * guile/scm-iterator.c (iterator_functions): Use it.
3094 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3095 * guile/scm-math.c (math_functions): Use it.
3096 * guile/scm-objfile.c (objfile_functions): Use it.
3097 * guile/scm-param.c (parameter_functions): Use it.
3098 * guile/scm-ports.c (port_functions, private_port_functions): Use
3099 it.
3100 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3101 * guile/scm-progspace.c (pspace_functions): Use it.
3102 * guile/scm-string.c (string_functions): Use it.
3103 * guile/scm-symbol.c (symbol_functions): Use it.
3104 * guile/scm-symtab.c (symtab_functions): Use it.
3105 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3106 it.
3107 * guile/scm-value.c (value_functions): Use it.
3108
3109 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3112 (tui_next_win): Likewise.
3113 (tui_prev_win): Likewise.
3114 (tui_partial_win_by_name): Likewise.
3115 (tui_init_generic_part): Likewise.
3116 (init_content_element): Likewise.
3117 (tui_del_window): Likewise.
3118 (tui_free_window): Likewise.
3119 (tui_del_data_windows): Likewise.
3120 (tui_free_data_content): Likewise.
3121 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3122 * tui/tui-regs.c (tui_show_register_group): Likewise.
3123 * tui/tui-win.c (tui_resize_all): Likewise.
3124 (tui_set_focus): Likewise.
3125 (tui_set_win_height): Likewise.
3126 (make_invisible_and_set_new_height): Likewise.
3127 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3128 * tui/tui-wingeneral.c (make_visible): Likewise.
3129
3130 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3133
3134 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3137 pointer.
3138 * dbxread.c (dbx_end_psymtab): Likewise.
3139 * gnu-nat.c (gnu_write_inferior): Likewise.
3140 * mdebugread.c (cross_ref): Likewise.
3141 * p-valprint.c (pascal_val_print): Likewise.
3142 * xcoffread.c (xcoff_end_psymtab): Likewise.
3143
3144 2015-09-04 Yao Qi <yao.qi@linaro.org>
3145
3146 * NEWS: Mention the aarch64 multi-arch debugging support.
3147
3148 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3149
3150 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3151 type instead of a TYPE_CODE_INT one for the string_char_type
3152 and the ada_primitive_type_char types.
3153
3154 2015-09-03 Yao Qi <yao.qi@linaro.org>
3155
3156 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3157 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3158 aarch64_linux_region_ok_for_watchpoint.
3159 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3160 New function.
3161 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3162 Declare it.
3163
3164 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3165
3166 * gdb_obstack.h (obstack_strdup): Declare.
3167 * gdb_obstack.c (obstack_strdup): Define.
3168 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3169 * gdbarch.c: Regenerate.
3170 * gdbarch.h: Regenerate.
3171 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3172
3173 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3174
3175 * gdbtypes.c (copy_type_recursive): Update documentation.
3176
3177 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3178
3179 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3180 as zero.
3181
3182 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3183
3184 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3185
3186 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3187
3188 * solib-svr4.c (solib_event_probe_action): Call
3189 get_probe_argument_count using TRY...CATCH.
3190 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3191
3192 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3193
3194 * probe.h (struct probe_ops) <get_probe_argument_count,
3195 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3196 the comment that the function can throw an exception.
3197 (get_probe_argument_count): Likewise.
3198 (evaluate_probe_argument): Likewise.
3199 * stap-probe.c (stap_get_opcode): Call error instead of
3200 internal_error.
3201 (stap_get_expected_argument_type): Likewise. Add argument
3202 'probe'. Improve error message by mentioning the probe's name.
3203 (stap_parse_probe_arguments): Adjust call to
3204 stap_get_expected_argument_type.
3205 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3206 not zero. Call internal_error if GDB requests an argument but the
3207 probe has no arguments.
3208
3209 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3210
3211 * ada-lang.c (ada_resolve_function): Do not ask the user what
3212 match to use when in completion mode.
3213
3214 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3217 cast of NULL.
3218
3219 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3220
3221 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3222 call_abi using XSHAL_ABI macro.
3223
3224 2015-08-29 Doug Evans <xdje42@gmail.com>
3225
3226 * symtab.h (struct symbol): Tweak comment.
3227
3228 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3229
3230 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3231 gdbarch obstack instead of on the heap. Update commentary
3232 accordingly.
3233
3234 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3235
3236 GDB 7.10 released.
3237
3238 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3239
3240 * NEWS: Update entry about non-8-bits addressable memory.
3241
3242 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3243
3244 Revert:
3245 2014-11-06 Doug Evans <xdje42@gmail.com>
3246 * solib.c (solib_global_lookup): Fetch arch from objfile,
3247 not target_gdbarch.
3248
3249 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3250
3251 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3252 attempt to relocate a TLS variable offset.
3253
3254 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3255
3256 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3257 registered yet. Set inferior_ptid while calling target_read_memory.
3258
3259 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3260
3261 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3262 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3263 * linux-nat.c (check_stopped_by_breakpoint): Use
3264 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3265
3266 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3267
3268 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3269 thread was not yet discovered, use thread_from_lwp instead of
3270 calling thread_db_find_new_threads_1.
3271
3272 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3273
3274 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3275 statements.
3276
3277 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3278
3279 * NEWS: Document support for non-8-bits addressable memory.
3280
3281 2015-08-27 Pedro Alves <palves@redhat.com>
3282
3283 * configure.ac: Remove AC_TYPE_SIGNAL call.
3284 * configure, config.in: Regenerate.
3285
3286 2015-08-27 Pedro Alves <palves@redhat.com>
3287
3288 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3289 * extension-priv.h: Include signal.h.
3290 (struct signal_handler) <handler>: Change type to sighandler_t.
3291 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3292 * inflow.c (sigint_ours, sigquit_ours): Change type to
3293 sighandler_t.
3294 (child_terminal_inferior): Remove casts.
3295 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3296 (osig): Change type to sighandler_t.
3297 * nto-procfs.c (ofunc): Change type to sighandler_t.
3298 (procfs_wait): Remove casts.
3299 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3300 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3301 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3302
3303 2015-08-27 Pedro Alves <palves@redhat.com>
3304
3305 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3306 * gnulib/aclocal.m4: Renegerate.
3307 * gnulib/config.in: Renegerate.
3308 * gnulib/configure: Renegerate.
3309 * gnulib/import/Makefile.am: Update.
3310 * gnulib/import/Makefile.in: Regenerate.
3311 * gnulib/import/m4/gnulib-cache.m4: Update.
3312 * gnulib/import/m4/gnulib-comp.m4: Update.
3313 * gnulib/import/m4/signal_h.m4: New file.
3314 * gnulib/import/signal.in.h: New file.
3315
3316 2015-08-27 Pedro Alves <palves@redhat.com>
3317
3318 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3319 (MIN_MEMORY_PACKET_SIZE): New.
3320 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3321 (get_memory_packet_size): Adjust. No longer limit the max packet
3322 size.
3323 (set_memory_packet_size): Adjust, and remove dead code.
3324 (remote_check_symbols): Use xmalloc and a cleanup instead of
3325 alloca.
3326 (remote_packet_size): No longer cap the packet size.
3327 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3328
3329 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3330
3331 * compile/compile.c (compile_to_object): Mention language in
3332 error message.
3333
3334 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3335
3336 * target.c (target_pre_inferior): Unset attach_flag.
3337
3338 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3339
3340 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3341 * gdbarch.c: Re-generate.
3342
3343 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3344
3345 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3346 function with the XNEW-family equivalent.
3347 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3348 * ada-exp.y (write_ambiguous_var): Likewise.
3349 * ada-lang.c (resolve_subexp): Likewise.
3350 (user_select_syms): Likewise.
3351 (assign_aggregate): Likewise.
3352 (ada_evaluate_subexp): Likewise.
3353 (cache_symbol): Likewise.
3354 * addrmap.c (allocate_key): Likewise.
3355 (addrmap_create_mutable): Likewise.
3356 * aix-thread.c (sync_threadlists): Likewise.
3357 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3358 (alpha_gdbarch_init): Likewise.
3359 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3360 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3361 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3362 * arm-tdep.c (push_stack_item): Likewise.
3363 (arm_displaced_step_copy_insn): Likewise.
3364 (arm_gdbarch_init): Likewise.
3365 (_initialize_arm_tdep): Likewise.
3366 * avr-tdep.c (push_stack_item): Likewise.
3367 * ax-general.c (new_agent_expr): Likewise.
3368 * block.c (block_initialize_namespace): Likewise.
3369 * breakpoint.c (alloc_counted_command_line): Likewise.
3370 (update_dprintf_command_list): Likewise.
3371 (parse_breakpoint_sals): Likewise.
3372 (decode_static_tracepoint_spec): Likewise.
3373 (until_break_command): Likewise.
3374 (clear_command): Likewise.
3375 (update_global_location_list): Likewise.
3376 (get_breakpoint_objfile_data) Likewise.
3377 * btrace.c (ftrace_new_function): Likewise.
3378 (btrace_set_insn_history): Likewise.
3379 (btrace_set_call_history): Likewise.
3380 * buildsym.c (add_symbol_to_list): Likewise.
3381 (record_pending_block): Likewise.
3382 (start_subfile): Likewise.
3383 (start_buildsym_compunit): Likewise.
3384 (push_subfile): Likewise.
3385 (end_symtab_get_static_block): Likewise.
3386 (buildsym_init): Likewise.
3387 * cli/cli-cmds.c (source_command): Likewise.
3388 * cli/cli-decode.c (add_cmd): Likewise.
3389 * cli/cli-script.c (build_command_line): Likewise.
3390 (setup_user_args): Likewise.
3391 (realloc_body_list): Likewise.
3392 (process_next_line): Likewise.
3393 (copy_command_lines): Likewise.
3394 * cli/cli-setshow.c (do_set_command): Likewise.
3395 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3396 * coffread.c (coff_locate_sections): Likewise.
3397 (coff_symtab_read): Likewise.
3398 (coff_read_struct_type): Likewise.
3399 * common/cleanups.c (make_my_cleanup2): Likewise.
3400 * common/common-exceptions.c (throw_it): Likewise.
3401 * common/filestuff.c (make_cleanup_close): Likewise.
3402 * common/format.c (parse_format_string): Likewise.
3403 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3404 * compile/compile-object-load.c (munmap_list_add): Likewise.
3405 (compile_object_load): Likewise.
3406 * compile/compile-object-run.c (compile_object_run): Likewise.
3407 * compile/compile.c (append_args): Likewise.
3408 * corefile.c (specify_exec_file_hook): Likewise.
3409 * cp-support.c (make_symbol_overload_list): Likewise.
3410 * cris-tdep.c (push_stack_item): Likewise.
3411 (cris_gdbarch_init): Likewise.
3412 * ctf.c (ctf_trace_file_writer_new): Likewise.
3413 * dbxread.c (init_header_files): Likewise.
3414 (add_new_header_file): Likewise.
3415 (init_bincl_list): Likewise.
3416 (dbx_end_psymtab): Likewise.
3417 (start_psymtab): Likewise.
3418 (dbx_end_psymtab): Likewise.
3419 * dcache.c (dcache_init): Likewise.
3420 * dictionary.c (dict_create_hashed): Likewise.
3421 (dict_create_hashed_expandable): Likewise.
3422 (dict_create_linear): Likewise.
3423 (dict_create_linear_expandable): Likewise.
3424 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3425 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3426 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3427 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3428 (decode_frame_entry_1): Likewise.
3429 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3430 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3431 * dwarf2read.c (dwarf2_has_info): Likewise.
3432 (create_signatured_type_table_from_index): Likewise.
3433 (dwarf2_read_index): Likewise.
3434 (dw2_get_file_names_reader): Likewise.
3435 (create_all_type_units): Likewise.
3436 (read_cutu_die_from_dwo): Likewise.
3437 (init_tu_and_read_dwo_dies): Likewise.
3438 (init_cutu_and_read_dies): Likewise.
3439 (create_all_comp_units): Likewise.
3440 (queue_comp_unit): Likewise.
3441 (inherit_abstract_dies): Likewise.
3442 (read_call_site_scope): Likewise.
3443 (dwarf2_add_field): Likewise.
3444 (dwarf2_add_typedef): Likewise.
3445 (dwarf2_add_member_fn): Likewise.
3446 (attr_to_dynamic_prop): Likewise.
3447 (abbrev_table_alloc_abbrev): Likewise.
3448 (abbrev_table_read_table): Likewise.
3449 (add_include_dir): Likewise.
3450 (add_file_name): Likewise.
3451 (dwarf_decode_line_header): Likewise.
3452 (dwarf2_const_value_attr): Likewise.
3453 (dwarf_alloc_block): Likewise.
3454 (parse_macro_definition): Likewise.
3455 (set_die_type): Likewise.
3456 (write_psymtabs_to_index): Likewise.
3457 (create_cus_from_index): Likewise.
3458 (dwarf2_create_include_psymtab): Likewise.
3459 (process_psymtab_comp_unit_reader): Likewise.
3460 (build_type_psymtab_dependencies): Likewise.
3461 (read_comp_units_from_section): Likewise.
3462 (compute_compunit_symtab_includes): Likewise.
3463 (create_dwo_unit_in_dwp_v1): Likewise.
3464 (create_dwo_unit_in_dwp_v2): Likewise.
3465 (read_func_scope): Likewise.
3466 (process_structure_scope): Likewise.
3467 (mark_common_block_symbol_computed): Likewise.
3468 (load_partial_dies): Likewise.
3469 (dwarf2_symbol_mark_computed): Likewise.
3470 * elfread.c (elf_symfile_segments): Likewise.
3471 (elf_read_minimal_symbols): Likewise.
3472 * environ.c (make_environ): Likewise.
3473 * eval.c (evaluate_subexp_standard): Likewise.
3474 * event-loop.c (create_file_handler): Likewise.
3475 (create_async_signal_handler): Likewise.
3476 (create_async_event_handler): Likewise.
3477 (create_timer): Likewise.
3478 * exec.c (build_section_table): Likewise.
3479 * fbsd-nat.c (fbsd_remember_child): Likewise.
3480 * fork-child.c (fork_inferior): Likewise.
3481 * frv-tdep.c (new_variant): Likewise.
3482 * gdbarch.sh (gdbarch_alloc): Likewise.
3483 (append_name): Likewise.
3484 * gdbtypes.c (rank_function): Likewise.
3485 (copy_type_recursive): Likewise.
3486 (add_dyn_prop): Likewise.
3487 * gnu-nat.c (make_proc): Likewise.
3488 (make_inf): Likewise.
3489 (gnu_write_inferior): Likewise.
3490 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3491 (build_std_type_info_type): Likewise.
3492 * guile/scm-param.c (compute_enum_list): Likewise.
3493 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3494 * guile/scm-value.c (gdbscm_value_call): Likewise.
3495 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3496 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3497 (read_unwind_info): Likewise.
3498 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3499 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3500 (call_function_by_hand_dummy): Likewise.
3501 * infcmd.c (step_once): Likewise.
3502 (finish_forward): Likewise.
3503 (attach_command): Likewise.
3504 (notice_new_inferior): Likewise.
3505 * inferior.c (add_inferior_silent): Likewise.
3506 * infrun.c (add_displaced_stepping_state): Likewise.
3507 (save_infcall_control_state): Likewise.
3508 (save_inferior_ptid): Likewise.
3509 (_initialize_infrun): Likewise.
3510 * jit.c (bfd_open_from_target_memory): Likewise.
3511 (jit_gdbarch_data_init): Likewise.
3512 * language.c (add_language): Likewise.
3513 * linespec.c (decode_line_2): Likewise.
3514 * linux-nat.c (add_to_pid_list): Likewise.
3515 (add_initial_lwp): Likewise.
3516 * linux-thread-db.c (add_thread_db_info): Likewise.
3517 (record_thread): Likewise.
3518 (info_auto_load_libthread_db): Likewise.
3519 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3521 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3522 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3523 * macrocmd.c (macro_define_command): Likewise.
3524 * macroexp.c (gather_arguments): Likewise.
3525 * macroscope.c (sal_macro_scope): Likewise.
3526 * macrotab.c (new_macro_table): Likewise.
3527 * mdebugread.c (push_parse_stack): Likewise.
3528 (parse_partial_symbols): Likewise.
3529 (parse_symbol): Likewise.
3530 (psymtab_to_symtab_1): Likewise.
3531 (new_block): Likewise.
3532 (new_psymtab): Likewise.
3533 (mdebug_build_psymtabs): Likewise.
3534 (add_pending): Likewise.
3535 (elfmdebug_build_psymtabs): Likewise.
3536 * mep-tdep.c (mep_gdbarch_init): Likewise.
3537 * mi/mi-main.c (mi_execute_command): Likewise.
3538 * mi/mi-parse.c (mi_parse_argv): Likewise.
3539 * minidebug.c (lzma_open): Likewise.
3540 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3541 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3542 * mips-tdep.c (mips_gdbarch_init): Likewise.
3543 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3544 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3545 * mt-tdep.c (mt_registers_info): Likewise.
3546 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3547 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3548 (linux_enable_pt): Likewise.
3549 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3550 (linux_xfer_osdata_processgroups): Likewise.
3551 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3552 * nto-procfs.c (procfs_meminfo): Likewise.
3553 * objc-lang.c (start_msglist): Likewise.
3554 (selectors_info): Likewise.
3555 (classes_info): Likewise.
3556 (find_methods): Likewise.
3557 * objfiles.c (allocate_objfile): Likewise.
3558 (update_section_map): Likewise.
3559 * osabi.c (gdbarch_register_osabi): Likewise.
3560 (gdbarch_register_osabi_sniffer): Likewise.
3561 * parse.c (start_arglist): Likewise.
3562 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3563 (hwdebug_insert_point): Likewise.
3564 * printcmd.c (display_command): Likewise.
3565 (ui_printf): Likewise.
3566 * procfs.c (create_procinfo): Likewise.
3567 (load_syscalls): Likewise.
3568 (proc_get_LDT_entry): Likewise.
3569 (proc_update_threads): Likewise.
3570 * prologue-value.c (make_pv_area): Likewise.
3571 (pv_area_store): Likewise.
3572 * psymtab.c (extend_psymbol_list): Likewise.
3573 (init_psymbol_list): Likewise.
3574 (allocate_psymtab): Likewise.
3575 * python/py-inferior.c (add_thread_object): Likewise.
3576 * python/py-param.c (compute_enum_values): Likewise.
3577 * python/py-value.c (valpy_call): Likewise.
3578 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3579 * python/python.c (ensure_python_env): Likewise.
3580 * record-btrace.c (record_btrace_start_replaying): Likewise.
3581 * record-full.c (record_full_reg_alloc): Likewise.
3582 (record_full_mem_alloc): Likewise.
3583 (record_full_end_alloc): Likewise.
3584 (record_full_core_xfer_partial): Likewise.
3585 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3586 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3587 * remote-notif.c (remote_notif_state_allocate): Likewise.
3588 * remote.c (demand_private_info): Likewise.
3589 (remote_notif_stop_alloc_reply): Likewise.
3590 (remote_enable_btrace): Likewise.
3591 * reverse.c (save_bookmark_command): Likewise.
3592 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3593 * rx-tdep.c (rx_gdbarch_init): Likewise.
3594 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3595 * ser-go32.c (dos_get_tty_state): Likewise.
3596 (dos_copy_tty_state): Likewise.
3597 * ser-mingw.c (ser_windows_open): Likewise.
3598 (ser_console_wait_handle): Likewise.
3599 (ser_console_get_tty_state): Likewise.
3600 (make_pipe_state): Likewise.
3601 (net_windows_open): Likewise.
3602 * ser-unix.c (hardwire_get_tty_state): Likewise.
3603 (hardwire_copy_tty_state): Likewise.
3604 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3605 * solib-dsbt.c (dsbt_current_sos): Likewise.
3606 (dsbt_relocate_main_executable): Likewise.
3607 * solib-frv.c (frv_current_sos): Likewise.
3608 (frv_relocate_main_executable): Likewise.
3609 * solib-spu.c (spu_bfd_fopen): Likewise.
3610 * solib-svr4.c (lm_info_read): Likewise.
3611 (svr4_copy_library_list): Likewise.
3612 (svr4_default_sos): Likewise.
3613 * source.c (find_source_lines): Likewise.
3614 (line_info): Likewise.
3615 (add_substitute_path_rule): Likewise.
3616 * spu-linux-nat.c (spu_bfd_open): Likewise.
3617 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3618 * stabsread.c (dbx_lookup_type): Likewise.
3619 (read_type): Likewise.
3620 (read_member_functions): Likewise.
3621 (read_struct_fields): Likewise.
3622 (read_baseclasses): Likewise.
3623 (read_args): Likewise.
3624 (_initialize_stabsread): Likewise.
3625 * stack.c (func_command): Likewise.
3626 * stap-probe.c (handle_stap_probe): Likewise.
3627 * symfile.c (addrs_section_sort): Likewise.
3628 (addr_info_make_relative): Likewise.
3629 (load_section_callback): Likewise.
3630 (add_symbol_file_command): Likewise.
3631 (init_filename_language_table): Likewise.
3632 * symtab.c (create_filename_seen_cache): Likewise.
3633 (sort_search_symbols_remove_dups): Likewise.
3634 (search_symbols): Likewise.
3635 * target.c (make_cleanup_restore_target_terminal): Likewise.
3636 * thread.c (new_thread): Likewise.
3637 (enable_thread_stack_temporaries): Likewise.
3638 (make_cleanup_restore_current_thread): Likewise.
3639 (thread_apply_all_command): Likewise.
3640 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3641 * top.c (gdb_readline_wrapper): Likewise.
3642 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3643 * tracepoint.c (trace_find_line_command): Likewise.
3644 (all_tracepoint_actions_and_cleanup): Likewise.
3645 (make_cleanup_restore_current_traceframe): Likewise.
3646 (get_uploaded_tp): Likewise.
3647 (get_uploaded_tsv): Likewise.
3648 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3649 (tui_alloc_win_info): Likewise.
3650 (tui_alloc_content): Likewise.
3651 (tui_add_content_elements): Likewise.
3652 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3653 (tui_set_disassem_content): Likewise.
3654 * ui-file.c (ui_file_new): Likewise.
3655 (stdio_file_new): Likewise.
3656 (tee_file_new): Likewise.
3657 * utils.c (make_cleanup_restore_integer): Likewise.
3658 (add_internal_problem_command): Likewise.
3659 * v850-tdep.c (v850_gdbarch_init): Likewise.
3660 * valops.c (find_oload_champ): Likewise.
3661 * value.c (allocate_value_lazy): Likewise.
3662 (record_latest_value): Likewise.
3663 (create_internalvar): Likewise.
3664 * varobj.c (install_variable): Likewise.
3665 (new_variable): Likewise.
3666 (new_root_variable): Likewise.
3667 (cppush): Likewise.
3668 (_initialize_varobj): Likewise.
3669 * windows-nat.c (windows_make_so): Likewise.
3670 * x86-nat.c (x86_add_process): Likewise.
3671 * xcoffread.c (arrange_linetable): Likewise.
3672 (allocate_include_entry): Likewise.
3673 (process_linenos): Likewise.
3674 (SYMBOL_DUP): Likewise.
3675 (xcoff_start_psymtab): Likewise.
3676 (xcoff_end_psymtab): Likewise.
3677 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3678 * xtensa-tdep.c (xtensa_register_type): Likewise.
3679 * gdbarch.c: Regenerate.
3680 * gdbarch.h: Regenerate.
3681
3682 2015-08-25 Don Breazeal <donb@codesourcery.com>
3683
3684 * infrun.c (follow_exec): Re-order operations for
3685 handling follow-exec-mode "new".
3686 (handle_inferior_event_1): Assign ecs->event_thread
3687 to the current thread.
3688 * remote.c (get_remote_arch_state): Add an assertion.
3689
3690 2015-08-26 Pedro Alves <palves@redhat.com>
3691
3692 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3693
3694 2015-08-25 Pedro Alves <palves@redhat.com>
3695
3696 PR gdb/18804
3697 * defs.h (maybe_quit): Declare.
3698 (QUIT): Now calls maybe_quit.
3699 * event-loop.c (clear_async_signal_handler)
3700 (async_signal_handler_is_marked): New functions.
3701 * event-loop.h (async_signal_handler_is_marked)
3702 (clear_async_signal_handler): New declarations.
3703 * remote.c (remote_check_pending_interrupt): New function.
3704 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3705 longer check whether the target is async. If waiting for a stop
3706 reply, and a Ctrl-C as been sent to the target, offer to
3707 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3708 Otherwise do not disconnect and throw a quit.
3709 (_initialize_remote): Install remote_check_pending_interrupt as
3710 to_check_pending_interrupt.
3711 * target.c (target_check_pending_interrupt): New function.
3712 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3713 field.
3714 (target_check_pending_interrupt): New declaration.
3715 * utils.c (maybe_quit): New function.
3716 * target-delegates.c: Regenerate.
3717
3718 2015-08-25 Yao Qi <yao.qi@linaro.org>
3719
3720 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3721 Rename local variable pid to tid, and get lwpid of lwp. Update
3722 debug output.
3723
3724 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3725
3726 * ada-lang.c (ada_read_var_value): Add a var_block argument
3727 and pass it to default_read_var_value.
3728 * block.c (block_static_link): New accessor.
3729 * block.h (block_static_link): Declare it.
3730 * buildsym.c (finish_block_internal): Add a static_link
3731 argument. If there is a static link, associate it to the new
3732 block.
3733 (finish_block): Add a static link argument and pass it to
3734 finish_block_internal.
3735 (end_symtab_get_static_block): Update calls to finish_block and
3736 to finish_block_internal.
3737 (end_symtab_with_blockvector): Update call to
3738 finish_block_internal.
3739 * buildsym.h: Forward-declare struct dynamic_prop.
3740 (struct context_stack): Add a static_link field.
3741 (finish_block): Add a static link argument.
3742 * c-exp.y: Remove an obsolete comment (evaluation of variables
3743 already start from the selected frame, and now they climb *up*
3744 the call stack) and propagate the block information to the
3745 produced expression.
3746 * d-exp.y: Likewise.
3747 * f-exp.y: Likewise.
3748 * go-exp.y: Likewise.
3749 * jv-exp.y: Likewise.
3750 * m2-exp.y: Likewise.
3751 * p-exp.y: Likewise.
3752 * coffread.c (coff_symtab_read): Update calls to finish_block.
3753 * dbxread.c (process_one_symbol): Likewise.
3754 * xcoffread.c (read_xcoff_symtab): Likewise.
3755 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3756 "sym" parameter to struct block_symbol, update its uses and pass
3757 its block to calls to read_var_value.
3758 (convert_symbol_sym): Update the calls to convert_one_symbol.
3759 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3760 call to read_var_value.
3761 * dwarf2loc.c (block_op_get_frame_base): New.
3762 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3763 get_frame_base method.
3764 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3765 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3766 instead of the selected frame in order to evaluate the
3767 expression.
3768 (dwarf2_evaluate_property): Add a frame argument. Update call
3769 to dwarf2_locexpr_baton_eval to provide a frame in available and
3770 to handle the absence of address stack.
3771 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3772 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3773 declaration.
3774 (read_func_scope): Record any available static link description.
3775 Update call to finish_block.
3776 (read_lexical_block_scope): Update call to finish_block.
3777 * findvar.c (follow_static_link): New.
3778 (get_hosting_frame): New.
3779 (default_read_var_value): Add a var_block argument. Use
3780 get_hosting_frame to handle non-local references.
3781 (read_var_value): Add a var_block argument and pass it to the
3782 LA_READ_VAR_VALUE method.
3783 * gdbtypes.c (resolve_dynamic_range): Update calls to
3784 dwarf2_evaluate_property.
3785 (resolve_dynamic_type_internal): Likewise.
3786 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3787 read_var_value, passing it the block coming from symbol lookup.
3788 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3789 read_var_value (TODO).
3790 * infcmd.c (finish_command_continuation): Update call to
3791 read_var_value, passing it the block coming from symbol lookup.
3792 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3793 * language.h (struct language_defn): Add a var_block argument to
3794 the LA_READ_VAR_VALUE method.
3795 * objfiles.c (struct static_link_htab_entry): New.
3796 (static_link_htab_entry_hash): New.
3797 (static_link_htab_entry_eq): New.
3798 (objfile_register_static_link): New.
3799 (objfile_lookup_static_link): New.
3800 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3801 * objfiles.h: Include hashtab.h.
3802 (struct objfile): Add a static_links field.
3803 (objfile_register_static_link): New.
3804 (objfile_lookup_static_link): New.
3805 * printcmd.c (print_variable_and_value): Update call to
3806 read_var_value.
3807 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3808 * python/py-frame.c (frapy_read_var): Update call to
3809 read_var_value, passing it the block coming from symbol lookup.
3810 * python/py-framefilter.c (extract_sym): Add a sym_block
3811 parameter and set the pointed value to NULL (TODO).
3812 (enumerate_args): Update call to extract_sym.
3813 (enumerate_locals): Update calls to extract_sym and to
3814 read_var_value.
3815 * python/py-symbol.c (sympy_value): Update call to
3816 read_var_value (TODO).
3817 * stack.c (read_frame_local): Update call to read_var_value.
3818 (read_frame_arg): Likewise.
3819 (return_command): Likewise.
3820 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3821 method.
3822 (struct symbol): Add a block field.
3823 (SYMBOL_BLOCK): New accessor.
3824 * valops.c (value_of_variable): Remove frame/block handling and
3825 pass the block argument to read_var_value, which does this job
3826 now.
3827 (value_struct_elt_for_reference): Update calls to
3828 read_var_value.
3829 (value_of_this): Pass the block found to read_var_value.
3830 * value.h (read_var_value): Add a var_block argument.
3831 (default_read_var_value): Likewise.
3832
3833 2015-08-25 Yao Qi <yao.qi@linaro.org>
3834
3835 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3836 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3837 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3838
3839 2015-08-25 Yao Qi <yao.qi@linaro.org>
3840
3841 * Makefile.in (aarch64-liunx.o): New rule.
3842 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3843 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3844 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3845 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3846 extern.
3847 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3848 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3849 * nat/aarch64-linux.c: New file.
3850 * nat/aarch64-linux.h: New file.
3851
3852 2015-08-25 Yao Qi <yao.qi@linaro.org>
3853
3854 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3855 lwp_arch_private_info and ptid_of_lwp.
3856
3857 2015-08-25 Yao Qi <yao.qi@linaro.org>
3858
3859 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3860 Move it to nat/aarch64-linux-hw-point.c.
3861 (debug_reg_change_callback): Likewise.
3862 (aarch64_notify_debug_reg_change): :Likewise.
3863 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3864 (aarch64_dr_update_callback_param): New.
3865 (debug_reg_change_callback): New function.
3866 (aarch64_notify_debug_reg_change): Likewise.
3867 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3868 Remove the declaration.
3869
3870 2015-08-25 Yao Qi <yao.qi@linaro.org>
3871
3872 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3873 Call current_lwp_ptid.
3874
3875 2015-08-25 Yao Qi <yao.qi@linaro.org>
3876
3877 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3878 debug_printf.
3879
3880 2015-08-25 Yao Qi <yao.qi@linaro.org>
3881
3882 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3883 ptid_get_pid rather than ptid_get_lwp.
3884
3885 2015-08-24 Pedro Alves <palves@redhat.com>
3886
3887 * NEWS (New commands): Mention set/show remote
3888 multiprocess-extensions-packet.
3889 * remote.c (remote_query_supported): Only tell the server to use
3890 the multiprocess extensions if the user hasn't force-disabled them
3891 with "set remote multiprocess-extensions-packet off".
3892
3893 2015-08-24 Pedro Alves <palves@redhat.com>
3894
3895 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3896 1029a8112290f6eee9d7878a391c49db42c999bd.
3897 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3898 Regenerate.
3899 * gnulib/import/Makefile.am: Update.
3900 * gnulib/import/Makefile.in: Update.
3901 * gnulib/import/alloca.in.h: Update.
3902 * gnulib/import/basename-lgpl.c: Update.
3903 * gnulib/import/canonicalize-lgpl.c: Update.
3904 * gnulib/import/config.charset: Update.
3905 * gnulib/import/dirent.in.h: Update.
3906 * gnulib/import/dirfd.c: Update.
3907 * gnulib/import/dirname-lgpl.c: Update.
3908 * gnulib/import/dirname.h: Update.
3909 * gnulib/import/dosname.h: Update.
3910 * gnulib/import/errno.in.h: Update.
3911 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3912 * gnulib/import/extra/snippet/c++defs.h: Update.
3913 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3914 * gnulib/import/extra/update-copyright: Update.
3915 * gnulib/import/float+.h: Update.
3916 * gnulib/import/float.c: Update.
3917 * gnulib/import/float.in.h: Update.
3918 * gnulib/import/fnmatch.c: Update.
3919 * gnulib/import/fnmatch.in.h: Update.
3920 * gnulib/import/fnmatch_loop.c: Update.
3921 * gnulib/import/fpucw.h: Update.
3922 * gnulib/import/frexp.c: Update.
3923 * gnulib/import/frexpl.c: Update.
3924 * gnulib/import/gettimeofday.c: Update.
3925 * gnulib/import/inttypes.in.h: Update.
3926 * gnulib/import/isnan.c: Update.
3927 * gnulib/import/isnand-nolibm.h: Update.
3928 * gnulib/import/isnand.c: Update.
3929 * gnulib/import/isnanl-nolibm.h: Update.
3930 * gnulib/import/isnanl.c: Update.
3931 * gnulib/import/itold.c: Update.
3932 * gnulib/import/localcharset.c: Update.
3933 * gnulib/import/localcharset.h: Update.
3934 * gnulib/import/lstat.c: Update.
3935 * gnulib/import/m4/00gnulib.m4: Update.
3936 * gnulib/import/m4/absolute-header.m4: Update.
3937 * gnulib/import/m4/alloca.m4: Update.
3938 * gnulib/import/m4/canonicalize.m4: Update.
3939 * gnulib/import/m4/codeset.m4: Update.
3940 * gnulib/import/m4/configmake.m4: Update.
3941 * gnulib/import/m4/dirent_h.m4: Update.
3942 * gnulib/import/m4/dirfd.m4: Update.
3943 * gnulib/import/m4/dirname.m4: Update.
3944 * gnulib/import/m4/double-slash-root.m4: Update.
3945 * gnulib/import/m4/eealloc.m4: Update.
3946 * gnulib/import/m4/errno_h.m4: Update.
3947 * gnulib/import/m4/exponentd.m4: Update.
3948 * gnulib/import/m4/exponentl.m4: Update.
3949 * gnulib/import/m4/extensions.m4: Update.
3950 * gnulib/import/m4/extern-inline.m4: Update.
3951 * gnulib/import/m4/fcntl-o.m4: Update.
3952 * gnulib/import/m4/float_h.m4: Update.
3953 * gnulib/import/m4/fnmatch.m4: Update.
3954 * gnulib/import/m4/fpieee.m4: Update.
3955 * gnulib/import/m4/frexp.m4: Update.
3956 * gnulib/import/m4/frexpl.m4: Update.
3957 * gnulib/import/m4/gettimeofday.m4: Update.
3958 * gnulib/import/m4/glibc21.m4: Update.
3959 * gnulib/import/m4/gnulib-cache.m4: Update.
3960 * gnulib/import/m4/gnulib-common.m4: Update.
3961 * gnulib/import/m4/gnulib-comp.m4: Update.
3962 * gnulib/import/m4/gnulib-tool.m4: Update.
3963 * gnulib/import/m4/include_next.m4: Update.
3964 * gnulib/import/m4/inttypes-pri.m4: Update.
3965 * gnulib/import/m4/inttypes.m4: Update.
3966 * gnulib/import/m4/isnand.m4: Update.
3967 * gnulib/import/m4/isnanl.m4: Update.
3968 * gnulib/import/m4/largefile.m4: Update.
3969 * gnulib/import/m4/localcharset.m4: Update.
3970 * gnulib/import/m4/locale-fr.m4: Update.
3971 * gnulib/import/m4/locale-ja.m4: Update.
3972 * gnulib/import/m4/locale-zh.m4: Update.
3973 * gnulib/import/m4/longlong.m4: Update.
3974 * gnulib/import/m4/lstat.m4: Update.
3975 * gnulib/import/m4/malloc.m4: Update.
3976 * gnulib/import/m4/malloca.m4: Update.
3977 * gnulib/import/m4/math_h.m4: Update.
3978 * gnulib/import/m4/mbrtowc.m4: Update.
3979 * gnulib/import/m4/mbsinit.m4: Update.
3980 * gnulib/import/m4/mbsrtowcs.m4: Update.
3981 * gnulib/import/m4/mbstate_t.m4: Update.
3982 * gnulib/import/m4/memchr.m4: Update.
3983 * gnulib/import/m4/memmem.m4: Update.
3984 * gnulib/import/m4/mmap-anon.m4: Update.
3985 * gnulib/import/m4/multiarch.m4: Update.
3986 * gnulib/import/m4/nocrash.m4: Update.
3987 * gnulib/import/m4/off_t.m4: Update.
3988 * gnulib/import/m4/pathmax.m4: Update.
3989 * gnulib/import/m4/readlink.m4: Update.
3990 * gnulib/import/m4/rename.m4: Update.
3991 * gnulib/import/m4/rmdir.m4: Update.
3992 * gnulib/import/m4/ssize_t.m4: Update.
3993 * gnulib/import/m4/stat.m4: Update.
3994 * gnulib/import/m4/stdbool.m4: Update.
3995 * gnulib/import/m4/stddef_h.m4: Update.
3996 * gnulib/import/m4/stdint.m4: Update.
3997 * gnulib/import/m4/stdio_h.m4: Update.
3998 * gnulib/import/m4/stdlib_h.m4: Update.
3999 * gnulib/import/m4/string_h.m4: Update.
4000 * gnulib/import/m4/strstr.m4: Update.
4001 * gnulib/import/m4/strtok_r.m4: Update.
4002 * gnulib/import/m4/sys_socket_h.m4: Update.
4003 * gnulib/import/m4/sys_stat_h.m4: Update.
4004 * gnulib/import/m4/sys_time_h.m4: Update.
4005 * gnulib/import/m4/sys_types_h.m4: Update.
4006 * gnulib/import/m4/time_h.m4: Update.
4007 * gnulib/import/m4/unistd_h.m4: Update.
4008 * gnulib/import/m4/warn-on-use.m4: Update.
4009 * gnulib/import/m4/wchar_h.m4: Update.
4010 * gnulib/import/m4/wchar_t.m4: Update.
4011 * gnulib/import/m4/wctype_h.m4: Update.
4012 * gnulib/import/m4/wint_t.m4: Update.
4013 * gnulib/import/malloc.c: Update.
4014 * gnulib/import/malloca.c: Update.
4015 * gnulib/import/malloca.h: Update.
4016 * gnulib/import/math.in.h: Update.
4017 * gnulib/import/mbrtowc.c: Update.
4018 * gnulib/import/mbsinit.c: Update.
4019 * gnulib/import/mbsrtowcs-impl.h: Update.
4020 * gnulib/import/mbsrtowcs-state.c: Update.
4021 * gnulib/import/mbsrtowcs.c: Update.
4022 * gnulib/import/memchr.c: Update.
4023 * gnulib/import/memmem.c: Update.
4024 * gnulib/import/pathmax.h: Update.
4025 * gnulib/import/readlink.c: Update.
4026 * gnulib/import/ref-add.sin: Update.
4027 * gnulib/import/ref-del.sin: Update.
4028 * gnulib/import/rename.c: Update.
4029 * gnulib/import/rmdir.c: Update.
4030 * gnulib/import/same-inode.h: Update.
4031 * gnulib/import/stat.c: Update.
4032 * gnulib/import/stdbool.in.h: Update.
4033 * gnulib/import/stddef.in.h: Update.
4034 * gnulib/import/stdint.in.h: Update.
4035 * gnulib/import/stdio.c: Update.
4036 * gnulib/import/stdio.in.h: Update.
4037 * gnulib/import/stdlib.in.h: Update.
4038 * gnulib/import/str-two-way.h: Update.
4039 * gnulib/import/streq.h: Update.
4040 * gnulib/import/string.in.h: Update.
4041 * gnulib/import/stripslash.c: Update.
4042 * gnulib/import/strnlen1.c: Update.
4043 * gnulib/import/strnlen1.h: Update.
4044 * gnulib/import/strstr.c: Update.
4045 * gnulib/import/strtok_r.c: Update.
4046 * gnulib/import/sys_stat.in.h: Update.
4047 * gnulib/import/sys_time.in.h: Update.
4048 * gnulib/import/sys_types.in.h: Update.
4049 * gnulib/import/time.in.h: Update.
4050 * gnulib/import/unistd.in.h: Update.
4051 * gnulib/import/verify.h: Update.
4052 * gnulib/import/wchar.in.h: Update.
4053 * gnulib/import/wctype.in.h: Update.
4054 * gnulib/import/gettimeofday.c: New file.
4055 * gnulib/import/m4/absolute-header.m4: New file.
4056 * gnulib/import/m4/gettimeofday.m4: New file.
4057 * gnulib/import/m4/sys_socket_h.m4: New file.
4058 * gnulib/import/m4/sys_time_h.m4: New file.
4059 * gnulib/import/stdio.c: Delete file.
4060 * gnulib/import/sys_time.in.h: New file.
4061
4062 2015-08-24 Pedro Alves <palves@redhat.com>
4063
4064 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4065 * common/gdb_sys_time.h: New file.
4066 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4067 * gdb_select.h: Likewise.
4068 * gdb_usleep.c: Likewise.
4069 * maint.c: Likewise.
4070 * mi/mi-main.c: Likewise.
4071 * mi/mi-parse.h: Likewise.
4072 * remote-fileio.c: Likewise.
4073 * remote-m32r-sdi.c: Likewise.
4074 * remote.c: Likewise.
4075 * ser-base.c: Likewise.
4076 * ser-pipe.c: Likewise.
4077 * ser-tcp.c: Likewise.
4078 * ser-unix.c: Likewise.
4079 * symfile.c: Likewise.
4080 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4081 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4082 * utils.c: Likewise.
4083
4084 2015-08-24 Pedro Alves <palves@redhat.com>
4085
4086 * NEWS: Mention removed support for the various ROM monitors.
4087 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4088 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4089 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4090 gdb_target_obs.
4091 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4092 gdb_target_obs.
4093 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4094 dsrec.o from gdb_target_obs.
4095 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4096 from gdb_target_obs.
4097 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4098 gdb_target_obs.
4099 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4100 dink32-rom.o from gdb_target_obs.
4101 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4102 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4103 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4104 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4105
4106 2015-08-21 Pedro Alves <palves@redhat.com>
4107
4108 * frame.c (null_frame_id): Explicitly zero-initialize.
4109
4110 2015-08-21 Tom Tromey <tromey@redhat.com>
4111
4112 * dwarf2read.c (struct dwarf2_section_info): Rename field
4113 'asection' to 'section'.
4114 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4115 (dwarf2_locate_sections, dwarf2_locate_sections)
4116 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4117 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4118 (dwarf2_locate_v2_dwp_sections): Adjust.
4119
4120 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4121
4122 * top.h (gdb_in_secondary_prompt_p): Declare.
4123 * top.c (gdb_secondary_prompt_depth): Define.
4124 (gdb_in_secondary_prompt_p): Define.
4125 (gdb_readline_wrapper_cleanup): Decrement
4126 gdb_secondary_prompt_depth.
4127 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4128 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4129 are in a secondary prompt.
4130
4131 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4132
4133 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4134 emit the newline.
4135
4136 2015-08-21 Gary Benson <gbenson@redhat.com>
4137
4138 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4139
4140 2015-08-21 Gary Benson <gbenson@redhat.com>
4141
4142 * target.h (struct target_ops) <to_fileio_open>: New argument
4143 warn_if_slow. Update comment. All implementations updated.
4144 (target_fileio_open_warn_if_slow): New declaration.
4145 * target.c (target_fileio_open): Renamed as...
4146 (target_fileio_open_1): ...this. New argument warn_if_slow.
4147 Pass warn_if_slow to implementation. Update debug printing.
4148 (target_fileio_open): New function.
4149 (target_fileio_open_warn_if_slow): Likewise.
4150 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4151 target_fileio_open_warn_if_slow.
4152
4153 2015-08-21 Gary Benson <gbenson@redhat.com>
4154
4155 * nat/linux-namespaces.c (linux_mntns_access_fs):
4156 Do not overwrite old_chain.
4157
4158 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4159
4160 * arch/xtensa.h: New file.
4161 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4162 (ps_get_thread_area): New function.
4163 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4164 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4165 * xtensa-tdep.c (osabi.h): New #include.
4166 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4167 xtensa-specific hooks.
4168 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4169 member and move the structure to arch/xtensa.h.
4170
4171 2015-08-21 Pedro Alves <palves@redhat.com>
4172
4173 * remote.c (struct readahead_cache): New.
4174 (struct remote_state) <readahead_cache>: New field.
4175 (remote_open_1): Invalidate the cache.
4176 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4177 functions.
4178 (remote_hostio_pwrite): Invalidate the readahead cache.
4179 (remote_hostio_pread): Rename to ...
4180 (remote_hostio_pread_vFile): ... this.
4181 (remote_hostio_pread_from_cache): New function.
4182 (remote_hostio_pread): Reimplement.
4183 (remote_hostio_close): Invalidate the readahead cache.
4184
4185 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4186
4187 PR build/18843
4188 * procfs.c: Include "filestuff.h".
4189
4190 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4191
4192 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4193 curch.
4194 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4195 cur_line or curch, instead call wmove().
4196 (init_win_info) [CMD_WIN]: Likewise.
4197 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4198 instead call getcury().
4199 (tui_redisplay_readline): Don't set cur_line or curch.
4200 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4201 getcury().
4202 (tui_cont_sig): Remove call to wmove.
4203 (tui_getc): Don't read cur_line or curch, instead call getcury()
4204 or getyx(). Don't set curch.
4205 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4206 set cur_line or curch. Always move cursor to (0,0).
4207
4208 2015-08-20 Pedro Alves <palves@redhat.com>
4209
4210 * infrun.c (print_target_wait_results): Make extern.
4211 * infrun.h (print_target_wait_results): Declare.
4212 * remote.c (set_stop_requested_callback): Delete.
4213 (process_initial_stop_replies): New function.
4214 (remote_start_remote): Use it.
4215 (stop_reply_queue_length): New function.
4216
4217 2015-08-20 Pedro Alves <palves@redhat.com>
4218
4219 * dwarf2read.c (process_full_comp_unit): To tell whether
4220 start_subfile managed to deduce a language, test for
4221 language_unknown instead of language_c.
4222
4223 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4224
4225 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4226 matches attributes.
4227
4228 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4229
4230 * dwarf2read.c (dwarf2_string_attr): New function.
4231 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4232 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4233 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4234 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4235 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4236
4237 2015-08-18 Doug Evans <dje@google.com>
4238 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4239
4240 PR mi/18833
4241 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4242 if MI-like.
4243 * mi/mi-out.c: #include "vec.h".
4244 (ui_filep): New type.
4245 (DEV_VEC_P (ui_filep)): New type.
4246 (struct ui_out_data) <buffer, original_buffer>: Delete.
4247 (struct ui_out_data) <streams>: New member.
4248 (mi_ui_out_impl): Add data_destroy field.
4249 (mi_field_string, mi_field_fmt): Update.
4250 (mi_flush, mi_redirect, field_separator): Update.
4251 (mi_open, mi_close): Update.
4252 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4253 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4254 (mi_out_new): Call mi_out_data_ctor.
4255
4256 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4257
4258 * remote.c (strprefix): New.
4259 (remote_parse_stop_reply): Use strprefix instead of strncmp
4260 to ensure exact match of keyword.
4261
4262 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4263
4264 * gdb_bfd.c (debug_bfd_cache): New variable.
4265 (show_bfd_cache_debug): New function.
4266 (gdb_bfd_open): Add debug logging.
4267 (gdb_bfd_ref): Likewise.
4268 (gdb_bfd_unref): Likewise.
4269 (_initialize_gdb_bfd): Add new set/show command.
4270 * NEWS: Mention new command.
4271
4272 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4273
4274 * gdb_bfd.c (bfd_sharing): New variable.
4275 (show_bfd_sharing): New function.
4276 (gdb_bfd_open): Check bfd_sharing variable.
4277 (_initialize_gdb_bfd): Add new set/show command.
4278 * NEWS: Mention new command.
4279
4280 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4283 field.
4284 (struct gdb_bfd_cache_search): Likewise.
4285 (eq_bfd): Compare the size, inode, and device id fields.
4286 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4287 (gdb_bfd_ref): Likewise.
4288 (gdb_bfd_unref): Likewise.
4289
4290 2015-08-18 Pedro Alves <palves@redhat.com>
4291
4292 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4293 target implements to_always_non_stop_p, call it.
4294 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4295 (x86_linux_create_target): Install it as to_always_non_stop_p
4296 method.
4297
4298 2015-08-17 Doug Evans <dje@google.com>
4299
4300 * ui-out.c (default_ui_out_impl): Add comment.
4301
4302 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4303
4304 * d-exp.y (type_aggregate_p): New function.
4305 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4306 (classify_inner_name): Likewise.
4307 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4308
4309 2015-08-15 Doug Evans <xdje42@gmail.com>
4310
4311 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4312 updated.
4313 (add_psymbol_to_list): Ditto.
4314
4315 2015-08-15 Doug Evans <xdje42@gmail.com>
4316
4317 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4318 updated. Call end_psymtab_common.
4319 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4320 end_psymtab_common.
4321 (build_type_psymtabs_reader): Ditto.
4322 * psympriv.h (sort_pst_symbols): Delete.
4323 (end_psymtab_common): Declare.
4324 * psymtab.c (sort_pst_symbols): Make static.
4325 (end_psymtab_common): New function.
4326 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4327
4328 2015-08-15 Doug Evans <xdje42@gmail.com>
4329
4330 * defs.h (LANGUAGE_BITS): Define.
4331 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4332 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4333 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4334 (minimal_symbol_type): Add nr_minsym_types.
4335 (MINSYM_TYPE_BITS): Define.
4336 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4337 (domain_enum_tag): Add NR_DOMAINS.
4338 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4339 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4340
4341 2015-08-15 Doug Evans <xdje42@gmail.com>
4342
4343 * objfiles.h: Whitespace cleanup.
4344 * psympriv.h: Whitespace cleanup.
4345 * psymtab.c: Whitespace/coding convention cleanup.
4346
4347 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4348
4349 * inferior.c (detach_inferior_command): Don't call
4350 any_thread_of_process when pid is 0.
4351 (kill_inferior_command): Likewise.
4352
4353 2015-08-14 Doug Evans <xdje42@gmail.com>
4354
4355 PR gdb/11833
4356 * NEWS: Document new /s modifier for the disassemble command.
4357 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4358 (_initialize_cli_cmds): Update online docs of disassemble command.
4359 * disasm.c: #include "source.h".
4360 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4361 All uses updated.
4362 (dis_line_entry): New struct.
4363 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4364 (allocate_dis_line_table): New functions.
4365 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4366 (dump_insns): New arg end_pc. All callers updated.
4367 (do_mixed_source_and_assembly_deprecated): Renamed from
4368 do_mixed_source_and_assembly. All callers updated.
4369 (do_mixed_source_and_assembly): New function.
4370 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4371 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4372 DISASSEMBLY_SOURCE. All uses updated.
4373 (DISASSEMBLY_SOURCE): New macro.
4374 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4375
4376 2015-08-14 Keith Seitz <keiths@redhat.com>
4377
4378 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4379 `typename' to `type_name' to avoid C++ reserved word.
4380
4381 2015-08-14 Keith Seitz <keiths@redhat.com>
4382
4383 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4384 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4385 silence ARI errors.
4386
4387 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4388
4389 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4390 xstrprintf instead of malloc and sprintf.
4391 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4392 (lex_one_token): Likewise.
4393
4394 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4395
4396 * solib-svr4.c (read_program_header): Add base_addr argument to
4397 report the runtime address of the segment.
4398 (find_program_interpreter): Update read_program_header call to pass
4399 a NULL pointer for the new argument.
4400 (scan_dyntag): Add ptr_addr argument to report the runtime address
4401 of the tag payload.
4402 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4403 read_program_header to get the base address of the dynamic segment.
4404 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4405 read_program_header.
4406 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4407
4408 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4409
4410 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4411
4412 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4413
4414 * d-exp.y (%union): Add voidval.
4415 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4416 name in the lexing stage.
4417 (PostfixExpression): Move symbol completion handling in grammar here
4418 from PrimaryExpression.
4419 (PrimaryExpression): Move routines to handle resolving identifier
4420 tokens in the grammar here from push_expression_name.
4421 (IdentifierExp): Remove the handling of alternating '.' and identifier
4422 tokens.
4423 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4424 (BasicType): Remove C-style typename rules.
4425 (d_type_from_name, d_module_from_name, push_variable)
4426 (push_fieldnames, push_type_name, push_module_name)
4427 (push_expression_name): Remove.
4428 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4429 (token_and_value): New type.
4430 (token_fifo, popping, name_obstack): New globals.
4431 (classify_name): New function.
4432 (classify_inner_name): Likewise.
4433 (yylex): Likewise.
4434 (d_parse): Initialize token_fifo, popping and name_obstack.
4435
4436 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4437
4438 * Makefile.in (SFILES): Add d-namespace.c.
4439 (COMMON_OBS): Add d-namespace.o.
4440 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4441 la_lookup_symbol_nonlocal callback function pointer.
4442 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4443 (d_lookup_nested_symbol): New declaration.
4444 * d-namespace.c: New file.
4445
4446 2015-08-13 Pedro Alves <palves@redhat.com>
4447
4448 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4449 cleanup after the decref cleanup, not before.
4450
4451 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4452
4453 * ada-lang.c: Include namespace.h
4454 (aux_add_nonlocal_symbols): Fix a function name in comment.
4455 (ada_add_block_renamings): New.
4456 (add_nonlocal_symbols): Add global renamings handling.
4457 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4458 to...
4459 (ada_add_all_symbols): ... this new function.
4460 (ada_add_block_symbols): Try to match the input name against the
4461 "using directives list", perform a recursive symbol lookup on
4462 the matched declarations.
4463 * block.h (struct block): Move the_namespace to top-level as
4464 namespace_info. Remove the language_specific field.
4465 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4466 * buildsym.h (using_directives): Rename into...
4467 (local_using_directives): ... this.
4468 (global_using_directives): New.
4469 (struct context_stack): Rename the using_directives field into
4470 local_using_directives.
4471 * buildsym.c (finish_block_internal): Deal with the proper
4472 using directives repository (local or global).
4473 (prepare_for_building): Reset local_using_directives. Assert
4474 that there is no pending global using directive.
4475 (reset_symtab_globals): Reset global_using_directives and
4476 local_using_directives.
4477 (end_symtab_get_static_block): Don't ignore symtabs that have
4478 only using directives.
4479 (push_context): Update references to local_using_directives.
4480 (buildsym_init): Do not reset using_directives.
4481 * cp-support.c: Include namespace.h.
4482 * cp-support.h (struct using_direct): Move to namespace.h.
4483 (cp_add_using_directives): Move to namespace.h.
4484 * cp-namespace.c: Include namespace.h
4485 (cp_add_using_directive): Move to namespace.c, rename it to
4486 add_using_directive, add a "using_directives" argument and use
4487 it as the pending using directives repository. All callers
4488 updated.
4489 * dwarf2read.c (using_directives): New.
4490 (read_import_statement): Call using_directives.
4491 (read_func_scope): Update references to local_using_directives.
4492 (read_lexical_block_scope): Likewise.
4493 (read_namespace): Update the heading comment, call
4494 using_directives.
4495 * namespace.h: New file.
4496 * namespace.c: New file.
4497 * Makefile.in (SFILES): Add namespace.c.
4498 (COMMON_OBS): Add namespace.o
4499
4500 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4501
4502 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4503 compute RETADDR.
4504
4505 2015-08-12 Keith Seitz <keiths@redhat.com>
4506
4507 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4508 reserved C++ keyword "explicit" to "explicit_loc".
4509 * breakpoint.c (create_overlay_event_breakpoint)
4510 (create_longjmp_master_breakpoint)
4511 (create_std_terminate_master_breakpoint)
4512 (create_exception_master_breakpoint, update_static_tracepoint):
4513 Rename reserved C++ keyword "explicit" to "explicit_loc".
4514 * completer.c (collect_explicit_location_matches)
4515 (explicit_location_completer): Rename reserved C++ keyword
4516 "explicit" to "explicit_loc".
4517 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4518 (canonicalize_linespec, create_sals_line_offset)
4519 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4520 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4521 "explicit" to "explicit_loc".
4522 * location.c (struct event_location) <explicit>: Rename to
4523 "explicit_loc".
4524 (initialize_explicit_location, new_explicit_location)
4525 (explicit_location_to_string_internal, explicit_location_to_linespec):
4526 Rename reserved C++ keyword "explicit" to "explicit_loc".
4527 * location.h (explicit_location_to_string)
4528 (explicit_location_to_linespec, initialize_explicit_location)
4529 (new_explicit_location): Rename reserved C++ keyword "explicit"
4530 to "explicit_loc".
4531 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4532 keyword "explicit" to "explicit_loc".
4533
4534 2015-08-12 Keith Seitz <keiths@redhat.com>
4535
4536 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4537 and only call decode_line_1 when it is non-NULL.
4538
4539 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4540
4541 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4542 location address is not meaningful.
4543 (breakpoint_address_is_meaningful): Update comment.
4544
4545 2015-08-11 Keith Seitz <keiths@redhat.com>
4546
4547 * NEWS: Mention explicit locations.
4548 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4549 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4550 (_initialize_breakpoint): Update documentation for
4551 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4552
4553 2015-08-11 Keith Seitz <keiths@redhat.com>
4554
4555 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4556 explicit locations, options "--source", "--function",
4557 "--label", and "--line".
4558
4559 2015-08-11 Keith Seitz <keiths@redhat.com>
4560
4561 * completer.c: Include location.h.
4562 (enum match_type): New enum.
4563 (location_completer): Rename to ...
4564 (linespec_completer): ... this.
4565 (collect_explicit_location_matches, backup_text_ptr)
4566 (explicit_location_completer): New functions.
4567 (location_completer): "New" function; handle linespec
4568 and explicit location completions.
4569 (complete_line_internal): Remove all location completer-specific
4570 handling.
4571 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4572 (find_toplevel_char): Export.
4573 (linespec_parse_line_offset): Export.
4574 Issue error if STRING is not numerical.
4575 (gdb_get_linespec_parser_quote_characters): New function.
4576 * linespec.h (linespec_parse_line_offset): Declare.
4577 (get_gdb_linespec_parser_quote_characters): Declare.
4578 (is_ada_operator): Declare.
4579 (find_toplevel_char): Declare.
4580 (linespec_lexer_lex_keyword): Declare.
4581 * location.c (explicit_to_event_location): New function.
4582 (explicit_location_lex_one): New function.
4583 (string_to_explicit_location): New function.
4584 (string_to_event_location): Handle explicit locations.
4585 * location.h (explicit_to_event_location): Declare.
4586 (string_to_explicit_location): Declare.
4587
4588 2015-08-11 Keith Seitz <keiths@redhat.com>
4589
4590 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4591 linespec into explicit location.
4592 * breakpoint.c (create_overlay_breakpoint)
4593 (create_longjmp_master_breakpoint)
4594 (create_std_terminate_master_breakpoint)
4595 (create_exception_master_breakpoint): Convert linespec into explicit
4596 location.
4597 (update_static_tracepoint): Convert linespec into explicit location.
4598 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4599 location.h.
4600 (struct linespec) <expression, expr_pc, source_filename>
4601 <function_name, label_name, line_offset>: Replace with ...
4602 <explicit>: ... this.
4603 <is_linespec>: New member.
4604 (PARSER_EXPLICIT): New accessor macro.
4605 (undefined_label_error): New function.
4606 (source_file_not_found_error): New function.
4607 (linespec_parse_basic): The parser result is now an explicit location.
4608 Use PARSER_EXPLICIT to access it.
4609 Use undefined_label_error.
4610 (canonicalize_linespec): Convert canonical linespec into explicit
4611 location.
4612 Move string representation of location to explicit_location_to_linespec
4613 and use it and explicit_location_to_string to save string
4614 representations of the canonical location.
4615 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4616 explicit location. Update all references.
4617 (convert_explicit_location_to_sals): New function.
4618 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4619 result's explicit location.
4620 (linespec_state_constructor): Initialize is_linespec.
4621 Use PARSER_EXPLICIT.
4622 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4623 result.
4624 (event_location_to_sals): For linespec locations, set is_linespec.
4625 Handle explicit locations.
4626 (decode_objc): 'ls' contains an explicit location now. Update all
4627 references.
4628 (symtabs_from_filename): Use source_file_not_found_error.
4629 * location.c (struct event_location.u) <explicit>: New member.
4630 (initialize_explicit_location): New function.
4631 (initialize_event_location): Initialize explicit locations.
4632 (new_explicit_location, get_explicit_location)
4633 (get_explicit_location_const): New functions.
4634 (explicit_to_string_internal): New function; most of contents moved
4635 from canonicalize_linespec.
4636 (explicit_location_to_string): New function.
4637 (explicit_location_to_linespec): New function.
4638 (copy_event_location, delete_event_location)
4639 (event_location_to_string_const, event_location_empty_p): Handle
4640 explicit locations.
4641 * location.h (enum offset_relative_sign, struct line_offset): Move
4642 here from linespec.h.
4643 (enum event_location_type): Add EXPLICIT_LOCATION.
4644 (struct explicit_location): New structure.
4645 (explicit_location_to_string): Declare.
4646 (explicit_location_to_linespec): Declare.
4647 (new_explicit_location, get_explicit_locationp
4648 (get_explicit_location_const, initialize_explicit_location): Declare.
4649
4650 2015-08-11 Keith Seitz <keiths@redhat.com>
4651
4652 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4653 linespec for stap probe to probe location.
4654 * breakpoint.c (create_longjmp_master_breakpoint)
4655 (create_exception_master_breakpoint): Likewise.
4656 (break_command_1): Remove local variable `arg_cp'.
4657 Check location type to set appropriate breakpoint ops methods.
4658 (trace_command): Likewise.
4659 * linespec.c (event_location_to_sals): Assert on probe locations.
4660 * location.c (EL_PROBE): Add macro definition.
4661 (new_probe_location, get_probe_location): New functions.
4662 (copy_event_location, delete_event_location, event_location_to_string)
4663 (string_to_event_location, event_location_empty_p): Handle probe
4664 locations.
4665 * location.h (enum event_location_type): Add PROBE_LOCATION.
4666 (new_probe_location, get_probe_location): Declare.
4667 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4668 Convert linespec into probe location.
4669
4670 2015-08-11 Keith Seitz <keiths@redhat.com>
4671
4672 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4673 Convert linespec to address location.
4674 * linespec.c (canonicalize_linespec): Do not handle address
4675 locations here.
4676 (convert_address_location_to_sals): New function; contents moved
4677 from ...
4678 (convert_linespc_to_sals): ... here.
4679 (parse_linespec): Remove address locations from linespec grammar.
4680 Remove handling of address locations.
4681 (linespec_lex_to_end): Remove handling of address linespecs.
4682 (event_location_to_sals): Handle ADDRESS_LOCATION.
4683 (linespec_expression_to_pc): Export.
4684 * linespec.h (linespec_expression_to_pc): Add declaration.
4685 * location.c (struct event_location.u) <address>: New member.
4686 (new_address_location, get_address_location): New functions.
4687 (copy_event_location, delete_event_location, event_location_to_string)
4688 (string_to_event_location, event_location_empty_p): Handle address
4689 locations.
4690 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4691 (new_address_location, get_address_location): Declare.
4692 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4693 to address location.
4694 * spu-tdep.c (spu_catch_start): Likewise.
4695
4696 2015-08-11 Keith Seitz <keiths@redhat.com>
4697
4698 * ax-gdb.c: Include location.h.
4699 (agent_command_1) Use linespec location instead of address
4700 string.
4701 * break-catch-throw.c: Include location.h.
4702 (re_set_exception_catchpoint): Use linespec locations instead
4703 of address strings.
4704 * breakpoint.c: Include location.h.
4705 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4706 (create_std_terminate_master_breakpoint)
4707 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4708 Use linespec location instead of address string.
4709 (print_breakpoint_location): Use locations and
4710 event_location_to_string.
4711 Print extra_string for pending locations for non-MI streams.
4712 (print_one_breakpoint_location): Use locations and
4713 event_location_to_string.
4714 (init_raw_breakpoint_without_location): Initialize b->location.
4715 (create_thread_event_breakpoint): Use linespec location instead of
4716 address string.
4717 (init_breakpoint_sal): Likewise.
4718 Only save extra_string if it is non-NULL and not the empty string.
4719 Use event_location_to_string instead of `addr_string'.
4720 Constify `p' and `endp'.
4721 Use skip_spaces_const/skip_space_const instead of non-const versions.
4722 Copy the location into the breakpoint.
4723 If LOCATION is NULL, save the breakpoint address as a linespec location
4724 instead of an address string.
4725 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4726 event_location. All uses updated.
4727 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4728 (parse_breakpoint_sals): Use locations instead of address strings.
4729 Remove check for empty linespec with conditional.
4730 Refactor.
4731 (decode_static_tracepoint_spec): Make argument const and update
4732 function.
4733 (create_breakpoint): Change `arg' to a struct event_location and
4734 rename.
4735 Remove `copy_arg' and `addr_start'.
4736 If EXTRA_STRING is empty, set it to NULL.
4737 Don't populate `canonical' for pending breakpoints.
4738 Pass `extra_string' to find_condition_and_thread.
4739 Clear `extra_string' if `rest' was NULL.
4740 Do not error with "garbage after location" if setting a dprintf
4741 breakpoint.
4742 Copy the location into the breakpoint instead of an address string.
4743 (break_command_1): Use string_to_event_location and pass this to
4744 create_breakpoint instead of an address string.
4745 Check against `arg_cp' for a probe linespec.
4746 (dprintf_command): Use string_to_event_location and pass this to
4747 create_breakpoint instead of an address string.
4748 Throw an exception if no format string was specified.
4749 (print_recreate_ranged_breakpoint): Use event_location_to_string
4750 instead of address strings.
4751 (break_range_command, until_break_command)
4752 (init_ada_exception_breakpoint): Use locations instead
4753 of address strings.
4754 (say_where): Print out extra_string for pending locations.
4755 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4756 the breakpoint.
4757 (base_breakpoint_create_sals_from_location): Use struct event_location
4758 instead of address string.
4759 Remove `addr_start' and `copy_arg' parameters.
4760 (base_breakpoint_decode_location): Use struct event_location instead of
4761 address string.
4762 (bkpt_re_set): Use locations instead of address strings.
4763 Use event_location_empty_p to check for unset location.
4764 (bkpt_print_recreate): Use event_location_to_string instead of
4765 an address string.
4766 Print out extra_string for pending locations.
4767 (bkpt_create_sals_from_location, bkpt_decode_location)
4768 (bkpt_probe_create_sals_from_location): Use struct event_location
4769 instead of address string.
4770 (bkpt_probe_decode_location): Use struct event_location instead of
4771 address string.
4772 (tracepoint_print_recreate): Use event_location_to_string to
4773 recreate the tracepoint.
4774 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4775 (tracepoint_probe_create_sals_from_location)
4776 (tracepoint_probe_decode_location): Use struct event_location
4777 instead of address string.
4778 (dprintf_print_recreate): Use event_location_to_string to recreate
4779 the dprintf.
4780 (dprintf_re_set): Remove check for valid/missing format string.
4781 (strace_marker_create_sals_from_location)
4782 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4783 (update_static_tracepoint): Use struct event_location instead of
4784 address string.
4785 (location_to_sals): Likewise.
4786 Pass `extra_string' to find_condition_and_thread.
4787 For newly resolved pending breakpoint locations, clear the location's
4788 string representation.
4789 Assert that the breakpoint's condition string is NULL when
4790 condition_not_parsed.
4791 (breakpoint_re_set_default, create_sals_from_location_default)
4792 (decode_location_default, trace_command, ftrace_command)
4793 (strace_command, create_tracepoint_from_upload): Use locations
4794 instead of address strings.
4795 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4796 Use struct event_location instead of address string.
4797 Update all uses.
4798 <decode_location>: Likewise.
4799 (struct breakpoint) <addr_string>: Change to struct event_location
4800 and rename `location'.
4801 <addr_string_range_end>: Change to struct event_location and rename
4802 `location_range_end'.
4803 (create_breakpoint): Use struct event_location instead of address
4804 string.
4805 * cli/cli-cmds.c: Include location.h.
4806 (edit_command, list_command): Use locations instead of address strings.
4807 * elfread.c: Include location.h.
4808 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4809 * guile/scm-breakpoint.c: Include location.h.
4810 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4811 (gdbscm_register_breakpoint): Use locations instead of address
4812 strings.
4813 * linespec.c: Include location.h.
4814 (struct ls_parser) <stream>: Change to const char *.
4815 (PARSER_STREAM): Update.
4816 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4817 keywords must be followed by whitespace.
4818 (canonicalize_linespec): Save a linespec location into `canonical'.
4819 Save a canonical linespec into `canonical'.
4820 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4821 All uses updated.
4822 Update function description.
4823 (linespec_parser_new): Initialize `parser'.
4824 Update initialization of parsing stream.
4825 (event_location_to_sals): New function.
4826 (decode_line_full): Change `argptr' to a struct event_location and
4827 rename it `location'.
4828 Use locations instead of address strings.
4829 Call event_location_to_sals instead of parse_linespec.
4830 (decode_line_1): Likewise.
4831 (decode_line_with_current_source, decode_line_with_last_displayed)
4832 Use locations instead of address strings.
4833 (decode_objc): Likewise.
4834 Change `argptr' to const char * and rename `arg'.
4835 (destroy_linespec_result): Delete the linespec result's location
4836 instead of freeing the address string.
4837 * linespec.h (struct linespec_result) <addr_string>: Change to
4838 struct event_location and rename to ...
4839 <location>: ... this.
4840 (decode_line_1, decode_line_full): Change `argptr' to struct
4841 event_location. All callers updated.
4842 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4843 (mi_cmd_break_insert_1): Use locations instead of address strings.
4844 Throw an error if there was "garbage" at the end of the specified
4845 linespec.
4846 * probe.c: Include location.h.
4847 (parse_probes): Change `argptr' to struct event_location.
4848 Use event locations instead of address strings.
4849 * probe.h (parse_probes): Change `argptr' to struct event_location.
4850 * python/py-breakpoint.c: Include location.h.
4851 (bppy_get_location): Constify local variable `str'.
4852 Use event_location_to_string.
4853 (bppy_init): Use locations instead of address strings.
4854 * python/py-finishbreakpoint.c: Include location.h.
4855 (bpfinishpy_init): Remove local variable `addr_str'.
4856 Use locations instead of address strings.
4857 * python/python.c: Include location.h.
4858 (gdbpy_decode_line): Use locations instead of address strings.
4859 * remote.c: Include location.h.
4860 (remote_download_tracepoint): Use locations instead of address
4861 strings.
4862 * spu-tdep.c: Include location.h.
4863 (spu_catch_start): Remove local variable `buf'.
4864 Use locations instead of address strings.
4865 * tracepoint.c: Include location.h.
4866 (scope_info): Use locations instead of address strings.
4867 (encode_source_string): Constify parameter `src'.
4868 * tracepoint.h (encode_source_string): Likewise.
4869
4870 2015-08-11 Keith Seitz <keiths@redhat.com>
4871
4872 * Makefile.in (SFILES): Add location.c.
4873 (HFILES_NO_SRCDIR): Add location.h.
4874 (COMMON_OBS): Add location.o.
4875 * linespec.c (linespec_lex_to_end): New function.
4876 * linespec.h (linespec_lex_to_end): Declare.
4877 * location.c: New file.
4878 * location.h: New file.
4879
4880 2015-08-11 Keith Seitz <keiths@redhat.com>
4881
4882 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4883 Renamed to create_sals_from_location.
4884 <decode_linespec>: Renamed to decode_location.
4885 Update all callers.
4886 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4887 (create_sals_from_location_default): ... this.
4888 (addr_string_to_sals): Renamed to ...
4889 (location_to_sals): ... this.
4890 (decode_linespec_default): Renamed to ...
4891 (decode_location_default): ... this.
4892 (base_breakpoint_create_sals_from_address): Renamed to ...
4893 (base_breakpoint_create_sals_from_location): ... this.
4894 (bkpt_create_sals_from_address): Renamed to ...
4895 (bkpt_create_sals_from_location): ... this.
4896 (bkpt_decode_linespec): Renamed to ...
4897 (bkpt_decode_location): ... this.
4898 (bkpt_probe_create_sals_from_address): Renamed to ...
4899 (bkpt_probe_create_sals_from_location): ... this.
4900 (tracepoint_create_sals_from_address): Renamed to ...
4901 (tracepoint_create_sals_from_location): ... this.
4902 (tracepoint_decode_linespec): Renamed to ...
4903 (tracepoint_decode_location): ... this.
4904 (tracepoint_probe_create_sals_from_address): Renamed to ...
4905 (tracepoint_probe_create_sals_from_location): ... this.
4906 (tracepoint_probe_decode_linespec): Renamed to ...
4907 (tracepoint_probe_decode_location): ... this.
4908 (strace_marker_create_sals_from_address): Renamed to ...
4909 (strace_marker_create_sals_from_location): ... this.
4910 (decode_linespec_default): Renamed to ...
4911 (decode_location_default): ... this.
4912
4913 2015-08-10 Doug Evans <dje@google.com>
4914 Keith Seitz <keiths@redhat.com>
4915
4916 PR gdb/17960
4917 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4918 make_file_symbol_completion_list and made static.
4919 (make_file_symbol_completion_list): New function.
4920
4921 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4922
4923 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4924 trailing new-line at end of warning message.
4925 (proceed): Add i18n marker to error messages.
4926
4927 2015-08-07 Pedro Alves <palves@redhat.com>
4928
4929 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4930
4931 2015-08-07 Pedro Alves <palves@redhat.com>
4932
4933 * s390-linux-tdep.c (is_non_branch_ril)
4934 (s390_displaced_step_copy_insn): New functions.
4935 (s390_displaced_step_fixup): Update comment.
4936 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4937 gdbarch_displaced_step_copy_insn hook.
4938
4939 2015-08-07 Pedro Alves <palves@redhat.com>
4940
4941 * infrun.c (displaced_step_prepare_throw): Return -1 if
4942 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4943 comment.
4944 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4945 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4946 in file.
4947 (ppc_displaced_step_copy_insn): New function.
4948 (ppc_displaced_step_fixup): Update comment.
4949 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4950 gdbarch_displaced_step_copy_insn hook.
4951 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4952 NULL return.
4953 * gdbarch.h: Regenerate.
4954
4955 2015-08-07 Pedro Alves <palves@redhat.com>
4956
4957 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4958 field.
4959 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4960 Return false if dispaced stepping failed before.
4961 (resume): Pass the current inferior to
4962 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4963 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4964 displaced_stepping_failed flag, and fall back to an in-line
4965 step-over.
4966
4967 2015-08-07 Pedro Alves <palves@redhat.com>
4968
4969 * darwin-nat.c (darwin_stop): Rename to ...
4970 (darwin_interrupt): ... this.
4971 (_initialize_darwin_inferior): Adjust.
4972 * gnu-nat.c (gnu_stop): Delete.
4973 (gnu_target): Don't install gnu_stop.
4974 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4975 (inf_ptrace_interrupt): ... this.
4976 (inf_ptrace_target): Adjust.
4977 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4978 target_stop.
4979 * linux-nat (linux_nat_stop): Rename to ...
4980 (linux_nat_interrupt): ... this.
4981 (linux_nat_stop): Reimplement.
4982 (linux_nat_add_target): Install linux_nat_interrupt.
4983 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4984 (nto_handle_sigint_twice): ... this.
4985 (nto_interrupt): Rename to ...
4986 (nto_handle_sigint): ... this. Call target_interrupt instead of
4987 target_stop.
4988 (procfs_wait): Adjust.
4989 (procfs_stop): Rename to ...
4990 (procfs_interrupt): ... this.
4991 (init_procfs_targets): Adjust.
4992 * procfs.c (procfs_stop): Rename to ...
4993 (procfs_interrupt): ... this.
4994 (procfs_target): Adjust.
4995 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4996 (m32r_interrupt): ... this.
4997 (init_m32r_ops): Adjust.
4998 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4999 (gdbsim_interrupt_inferior): ... this.
5000 (gdbsim_stop): Rename to ...
5001 (gdbsim_interrupt): ... this.
5002 (gdbsim_cntrl_c): Adjust.
5003 (init_gdbsim_ops): Adjust.
5004 * remote.c (sync_remote_interrupt): Adjust comments.
5005 (remote_stop_as): Rename to ...
5006 (remote_interrupt_as): ... this.
5007 (remote_stop): Adjust comment.
5008 (remote_interrupt): New function.
5009 (init_remote_ops): Install remote_interrupt.
5010 * target.c (target_interrupt): New function.
5011 * target.h (struct target_ops) <to_interrupt>: New field.
5012 (target_interrupt): New declaration.
5013 * windows-nat.c (windows_stop): Rename to ...
5014 (windows_interrupt): ... this.
5015 * target-delegates.c: Regenerate.
5016
5017 2015-08-07 Pedro Alves <palves@redhat.com>
5018
5019 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5020 threads" as alternative to "switching back to stepped thread".
5021
5022 2015-08-07 Pedro Alves <palves@redhat.com>
5023
5024 * NEWS: Mention "maint set/show target-non-stop".
5025 * breakpoint.c (update_global_location_list): Check
5026 target_is_non_stop_p instead of non_stop.
5027 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5028 * infrun.c (show_can_use_displaced_stepping)
5029 (can_use_displaced_stepping_p, start_step_over_inferior):
5030 Likewise.
5031 (internal_resume_ptid): New function.
5032 (resume): Use it.
5033 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5034 all-stop mode but the target is always in non-stop mode, start all
5035 the other threads that are implicitly resumed too.
5036 (for_each_just_stopped_thread, fetch_inferior_event)
5037 (adjust_pc_after_break, stop_all_threads): Check
5038 target_is_non_stop_p instead of non_stop.
5039 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5040 with the target always in non-stop mode.
5041 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5042 instead of non_stop.
5043 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5044 instead of non_stop.
5045 (keep_going_stepped_thread): Use internal_resume_ptid.
5046 (stop_waiting): If in all-stop mode, and the target is in non-stop
5047 mode, stop all threads.
5048 (keep_going_pass): Likewise, when starting a new in-line step-over
5049 sequence.
5050 * linux-nat.c (get_pending_status, select_event_lwp)
5051 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5052 target_is_non_stop_p instead of non_stop.
5053 (linux_nat_always_non_stop_p): New function.
5054 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5055 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5056 * target-delegates.c: Regenerate.
5057 * target.c (target_is_non_stop_p): New function.
5058 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5059 (maint_set_target_non_stop_command)
5060 (maint_show_target_non_stop_command): New functions.
5061 (_initilize_target): Install "maint set/show target-non-stop"
5062 commands.
5063 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5064 (target_non_stop_enabled): New declaration.
5065 (target_is_non_stop_p): New declaration.
5066
5067 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5068
5069 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5070 has a pending status, return true.
5071 * gdbthread.h: Include target/waitstatus.h.
5072 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5073 stop_pc>: New fields.
5074 (struct thread_info) <resumed>: New field.
5075 (set_resumed): Declare.
5076 * infrun.c: Include "event-loop.h".
5077 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5078 (infrun_async): New function.
5079 (clear_step_over_info): Add debug output.
5080 (displaced_step_in_progress_any_inferior): New function.
5081 (displaced_step_fixup): New returns int.
5082 (start_step_over): Handle in-line step-overs too. Assert the
5083 thread is marked resumed.
5084 (resume_cleanups): Clear the thread's resumed flag.
5085 (resume): Set the thread's resumed flag. Return early if the
5086 thread has a pending status. Allow stepping a breakpoint with no
5087 signal.
5088 (proceed): Adjust to check 'resumed' instead of 'executing'.
5089 (clear_proceed_status_thread): If the thread has a pending status,
5090 and that status is a finished step, discard the pending status.
5091 (clear_proceed_status): Don't clear step_over_info here.
5092 (random_pending_event_thread, do_target_wait): New functions.
5093 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5094 do_target_wait.
5095 (wait_one): New function.
5096 (THREAD_STOPPED_BY): New macro.
5097 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5098 (thread_stopped_by_hw_breakpoint): New functions.
5099 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5100 functions.
5101 (handle_inferior_event): Also call set_resumed(false) on all
5102 threads implicitly stopped by the event.
5103 (restart_threads, resumed_thread_with_pending_status): New
5104 functions.
5105 (finish_step_over): If we were doing an in-line step-over before,
5106 and no longer are after trying to start a new step-over, restart
5107 all threads. If we have multiple threads with pending events,
5108 save the current event and go through the event loop again.
5109 (handle_signal_stop): Return early if finish_step_over returns
5110 false.
5111 <random signal>: If we get a signal while stepping over a
5112 breakpoint in-line in non-stop mode, restart all threads. Clear
5113 step_over_info before delivering the signal.
5114 (keep_going_stepped_thread): Use internal_error instead of
5115 gdb_assert. Mark the thread as resumed.
5116 (keep_going_pass_signal): Assert the thread isn't already resumed.
5117 If some other thread is doing an in-line step-over, defer the
5118 resume. If we just started a new in-line step-over, stop all
5119 threads. Don't clear step_over_info.
5120 (infrun_async_inferior_event_handler): New function.
5121 (_initialize_infrun): Create async event handler with
5122 infrun_async_inferior_event_handler as callback.
5123 (infrun_async): New declaration.
5124 * target.c (target_async): New function.
5125 * target.h (target_async): Declare macro and readd as function
5126 declaration.
5127 * target/waitstatus.h (enum target_stop_reason)
5128 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5129 * thread.c (new_thread): Clear the new waitstatus field.
5130 (set_resumed): New function.
5131
5132 2015-08-07 Pedro Alves <palves@redhat.com>
5133
5134 * infrun.c (keep_going_stepped_thread): New function, factored out
5135 from ...
5136 (switch_back_to_stepped_thread): ... here.
5137
5138 2015-08-07 Pedro Alves <palves@redhat.com>
5139
5140 * infrun.c (currently_stepping): Extend intro comment.
5141 * target.h (target_resume): Extend intro comment.
5142
5143 2015-08-07 Pedro Alves <palves@redhat.com>
5144
5145 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5146 of inferior_ptid. If the stepped thread vanished, return 0
5147 instead of resuming here. Use reset_ecs. Print the prev_pc and
5148 the current stop_pc in log message. Clear trap_expected if the
5149 thread advanced. Don't pass currently_stepping to
5150 do_target_resume.
5151
5152 2015-08-07 Pedro Alves <palves@redhat.com>
5153
5154 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5155 * infrun.c (struct execution_control_state): Move higher up in the
5156 file.
5157 (reset_ecs): New function.
5158 (start_step_over): Now returns int. Rewrite to use
5159 keep_going_pass_signal instead of manually starting a displaced step.
5160 (resume): Don't call set_running here. If displaced stepping
5161 can't start now, clear trap_expected.
5162 (find_thread_needs_step_over): Delete function.
5163 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5164 If the current thread needs a step over, push it in the step-over
5165 chain. Don't set insert breakpoints nor call resume directly
5166 here. Instead rewrite to use start_step_over and
5167 keep_going_pass_signal.
5168 (finish_step_over): New function.
5169 (handle_signal_stop): Call finish_step_over instead of
5170 start_step_over.
5171 (switch_back_to_stepped_thread): If the event thread needs another
5172 step-over do that first. Use start_step_over.
5173 (keep_going_pass_signal): New function, factored out from ...
5174 (keep_going): ... here.
5175 (_initialize_infrun): Comment moved here.
5176 * thread.c (set_running_thread): New function.
5177 (set_running, finish_thread_state): Use set_running_thread.
5178
5179 2015-08-07 Pedro Alves <palves@redhat.com>
5180
5181 * gdbthread.h (struct thread_info) <step_over_prev,
5182 step_over_next>: New fields.
5183 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5184 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5185 declarations.
5186 * infrun.c (struct displaced_step_request): Delete.
5187 (struct displaced_step_inferior_state) <step_request_queue>:
5188 Delete field.
5189 (displaced_step_prepare): Assert that trap_expected is set. Use
5190 thread_step_over_chain_enqueue. Split starting a new displaced
5191 step to ...
5192 (start_step_over): ... this new function.
5193 (resume): Assert the thread isn't waiting for a step over already.
5194 (proceed): Assert the thread isn't waiting for a step over
5195 already.
5196 (infrun_thread_stop_requested): Adjust to remove threads from the
5197 embedded step-over chain.
5198 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5199 displaced_step_fixup.
5200 (handle_signal_stop): Call start_step_over after
5201 displaced_step_fixup.
5202 * infrun.h (step_over_queue_head): New declaration.
5203 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5204 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5205 (thread_step_over_chain_enqueue)
5206 (thread_step_over_chain_remove): New functions.
5207 (delete_thread_1): Remove thread from the step-over chain.
5208
5209 2015-08-07 Pedro Alves <palves@redhat.com>
5210
5211 * infrun.c (thread_still_needs_step_over): Rename to ...
5212 (thread_still_needs_step_over_bp): ... this.
5213 (enum step_over_what): New.
5214 (thread_still_needs_step_over): Reimplement.
5215
5216 2015-08-07 Pedro Alves <palves@redhat.com>
5217
5218 * remote.c (remote_wait_as): If not waiting for a stop reply,
5219 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5220 requested, don't block waiting forever.
5221
5222 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5223
5224 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5225 waitstatus pointers instead of an ecs. Adjust.
5226 (handle_inferior_event): Adjust caller.
5227
5228 2015-08-07 Pedro Alves <palves@redhat.com>
5229
5230 * infrun.c (handle_inferior_event): If we get
5231 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5232 mode, mark all threads of the exiting process as not-executing.
5233 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5234 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5235 exiting process, if inferior_ptid still points at a process.
5236 * thread.c (struct current_thread_cleanup) <next>: New field.
5237 (current_thread_cleanup_chain): New global.
5238 (restore_current_thread_ptid_changed): New function.
5239 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5240 current_thread_cleanup_chain list.
5241 (make_cleanup_restore_current_thread): Add the cleanup data to the
5242 current_thread_cleanup_chain list.
5243 (_initialize_thread): Install restore_current_thread_ptid_changed
5244 as thread_ptid_changed observer.
5245
5246 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5247
5248 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5249 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5250 smaller than expected.
5251
5252 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5253
5254 * stack.c (get_frame_language): Moved ...
5255 * frame.c (get_frame_language): ... to here.
5256 * language.h (get_frame_language): Declaration moved to frame.h.
5257 * frame.h: Add language.h include, for language enum.
5258 (get_frame_language): Declaration moved from language.h.
5259 * language.c: Add frame.h include.
5260 * top.c: Add frame.h include.
5261 * symtab.h (struct obj_section): Declare.
5262 (struct cmd_list_element): Declare.
5263
5264 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5265
5266 * language.c (show_language_command): Find selected frame before
5267 asking for the language of that frame.
5268 (set_language_command): Likewise.
5269 * language.h (get_frame_language): Add frame parameter.
5270 * stack.c (get_frame_language): Add frame parameter, assert
5271 parameter is not NULL, update comment and reindent.
5272 * top.c (check_frame_language_change): Pass the selected frame
5273 into get_frame_language.
5274
5275 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5276
5277 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5278 (pt_btrace_insn_flags): New.
5279 (ftrace_add_pt): Call pt_btrace_insn_flags.
5280 * btrace.h (btrace_insn_flag): New.
5281 (btrace_insn) <flags>: New.
5282 * record-btrace.c (btrace_insn_history): Print insn prefix.
5283 * NEWS: Announce it.
5284
5285 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5286
5287 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5288 * configure: Regenerate.
5289
5290 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5291
5292 * Makefile.in (LIBICONV): Define.
5293 (CLIBS): Add LIBICONV.
5294 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5295 * configure: Regenerate.
5296
5297 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5298 Pedro Alves <palves@redhat.com>
5299
5300 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5301 (arm_set_abi): Likewise.
5302 * ax-general.c (ax_print): Likewise.
5303 * c-exp.y (exp : string_exp): Likewise.
5304 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5305 (do_compile_dwarf_expr_to_c): Likewise.
5306 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5307 Likewise.
5308 * dwarf2expr.c (execute_stack_op): Likewise.
5309 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5310 (disassemble_dwarf_expression): Likewise.
5311 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5312 (read_array_order): Likewise.
5313 (abbrev_table_read_table): Likewise.
5314 (read_attribute_value): Likewise.
5315 (skip_unknown_opcode): Likewise.
5316 (dwarf_decode_macro_bytes): Likewise.
5317 (dwarf_decode_macros): Likewise.
5318 * eval.c (value_f90_subarray): Likewise.
5319 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5320 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5321 * infrun.c (handle_command): Likewise.
5322 * memory-map.c (memory_map_start_memory): Likewise.
5323 * osabi.c (set_osabi): Likewise.
5324 * parse.c (operator_length_standard): Likewise.
5325 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5326 single return point.
5327 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5328 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5329 (gdbpy_lookup_global_symbol): Likewise.
5330 * record-full.c (record_full_restore): Likewise.
5331 * regcache.c (regcache_register_status): Likewise.
5332 (regcache_raw_read): Likewise.
5333 (regcache_cooked_read): Likewise.
5334 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5335 * symtab.c (initialize_ordinary_address_classes): Likewise.
5336 * target-debug.h (target_debug_print_signals): Likewise.
5337 * utils.c (do_restore_current_language): Likewise.
5338
5339 2015-08-06 Clem Dickey <clemd@acm.org>
5340
5341 PR python/17136
5342 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5343
5344 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5345
5346 * complaints.c (enum complaint_series): Add newlines and remove
5347 out of date comment.
5348 (struct complaints) <series>: Change type to enum
5349 complaint_series and remove out of date comment.
5350 (symfile_complaint_hook): Use equivalent enum value
5351 ISOLATED_MESSAGE instead of 0.
5352
5353 2015-08-06 Pedro Alves <palves@redhat.com>
5354
5355 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5356 returned > 0.
5357
5358 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5359
5360 * common/agent.c (symbol_list) <required>: Remove.
5361
5362 2015-08-06 Pedro Alves <palves@redhat.com>
5363
5364 * target/waitstatus.h (enum target_stop_reason)
5365 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5366
5367 2015-08-05 Pedro Alves <palves@redhat.com>
5368 Joel Brobecker <brobecker@adacore.com>
5369
5370 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5371 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5372 case where BS->STOP is not set.
5373
5374 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5375
5376 * nat/gdb_thread_db.h: Add copyright header.
5377 Protect against multiple inclusion.
5378
5379 2015-08-05 Yao Qi <yao.qi@linaro.org>
5380
5381 * aarch64-linux-nat.c (get_thread_id): Remove.
5382 (debug_reg_change_callback): Call ptid_get_lwp instead of
5383 get_thread_id.
5384 (fetch_gregs_from_thread): Likewise.
5385 (store_gregs_to_thread): Likewise.
5386 (fetch_fpregs_from_thread): Likewise.
5387 (store_fpregs_to_thread): Likewise.
5388 (aarch64_linux_get_debug_reg_capacity): Likewise.
5389 * arm-linux-nat.c (get_thread_id): Remove.
5390 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5391 * xtensa-linux-nat.c (get_thread_id): Remove.
5392 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5393 * arm-linux-nat.c (get_thread_id): Remove.
5394 (GET_THREAD_ID): Remove.
5395 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5396 (store_fpregs, fetch_regs, store_regs): Likewise.
5397 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5398 (fetch_vfp_regs, store_vfp_regs): Likewise.
5399 (arm_linux_read_description): Likewise.
5400 (arm_linux_get_hwbp_cap): Likewise.
5401 * xtensa-linux-nat.c (get_thread_id): Remove.
5402 (GET_THREAD_ID): Remove.
5403 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5404 GET_THREAD_ID.
5405
5406 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5407
5408 * python/py-linetable.c: Fix case of Linetable to LineTable
5409 in docstrings and code comments.
5410 * python/py-symtab.c: Same.
5411
5412 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5415
5416 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5417
5418 PR gdb/18767
5419 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5420 use.
5421
5422 2015-08-04 Pedro Alves <palves@redhat.com>
5423
5424 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5425 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5426 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5427 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5428 (td_thr_validate_ftype, td_thr_get_info_ftype)
5429 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5430 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5431 New typedefs.
5432 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5433 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5434 local macros and use them instead of verbose_dlsym and dlsym
5435 calls.
5436
5437 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5438
5439 * nios2-tdep.h: Include opcode/nios2.h here.
5440 (NIOS2_CDX_OPCODE_SIZE): New.
5441 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5442 * nios2-tdep.c: Don't include opcode/nios2.h here.
5443 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5444 4-byte read fails.
5445 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5446 (nios2_match_addi, nios2_match_orhi): Likewise.
5447 (nios2_match_stw, nios2_match_ldw): Likewise.
5448 (nios2_match_rdctl): Likewise.
5449 (nios2_match_stwm, nios2_match_ldwm): New.
5450 (nios2_match_branch): Add cases for R2 encodings.
5451 (nios2_match_jmpi, nios2_match_calli): Likewise.
5452 (nios2_match_jmpr, nios2_match_callr): Likewise.
5453 (nios2_match_break, nios2_match_trap): Likewise.
5454 (nios2_in_epilogue_p): Add R2 support.
5455 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5456 prologues.
5457 (nios2_breakpoint_from_pc): Handle R2 instructions.
5458 (nios2_get_next_pc): Likewise. Adjust call to
5459 tdep->syscall_next_pc.
5460 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5461 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5462 instruction field macros instead of literal hex values.
5463 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5464 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5465 Use size field from OP instead of assuming all instructions
5466 are the same size.
5467 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5468
5469 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5470
5471 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5472 variable warning with some compilers.
5473
5474 2015-08-03 Yao Qi <yao.qi@linaro.org>
5475
5476 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5477 in comment. Replace "rw" with "type".
5478 (arm_linux_remove_watchpoint): Change type of "rw" to
5479 "enum target_hw_bp_type".
5480
5481 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5482
5483 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5484 lookup_symbol.
5485 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5486 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5487 * mt-tdep.c (mt_skip_prologue): Likewise.
5488 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5489
5490 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5491
5492 * ada-exp.y (write_object_renaming): Replace struct
5493 ada_symbol_info with struct block_symbol. Update field
5494 references accordingly.
5495 (block_lookup, select_possible_type_sym): Likewise.
5496 (find_primitive_type): Likewise. Also update call to
5497 ada_lookup_symbol to extract the symbol itself.
5498 (write_var_or_type, write_name_assoc): Likewise.
5499 * ada-lang.h (struct ada_symbol_info): Remove.
5500 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5501 struct block_symbol.
5502 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5503 (ada_lookup_symbol): Return struct block_symbol instead of a
5504 mere symbol.
5505 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5506 with struct block_symbol.
5507 (resolve_subexp, ada_resolve_function, sort_choices,
5508 user_select_syms, is_nonfunction, add_defn_to_vec,
5509 num_defns_collected, defns_collected,
5510 symbols_are_identical_enums, remove_extra_symbols,
5511 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5512 ada_lookup_symbol_list, ada_iterate_over_symbols,
5513 ada_lookup_encoded_symbol, get_var_value): Likewise.
5514 (ada_lookup_symbol): Return a block_symbol instead of a mere
5515 symbol. Replace struct ada_symbol_info with struct
5516 block_symbol.
5517 (ada_lookup_symbol_nonlocal): Likewise.
5518 (standard_lookup): Make block passing explicit through
5519 lookup_symbol_in_language.
5520 * ada-tasks.c (get_tcb_types_info): Update the calls to
5521 lookup_symbol_in_language to extract the mere symbol out of the
5522 returned value.
5523 (ada_tasks_inferior_data_sniffer): Likewise.
5524 * ax-gdb.c (gen_static_field): Likewise for the call to
5525 lookup_symbol.
5526 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5527 lookup functions.
5528 (gen_expr): Likewise.
5529 * c-exp.y: Likewise. Remove uses of block_found.
5530 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5531 (classify_name): Likewise. Rename the "sym" local variable to
5532 "bsym".
5533 * c-valprint.c (print_unpacked_pointer): Likewise.
5534 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5535 "sym" parameter from struct symbol * to struct block_symbol.
5536 Use it to remove uses of block_found. Deal with struct
5537 block_symbol from lookup functions.
5538 (gcc_convert_symbol): Likewise. Update the call to
5539 convert_symbol_sym.
5540 * compile/compile-object-load.c (compile_object_load): Deal with
5541 struct block_symbol from lookup functions.
5542 * cp-namespace.c (cp_lookup_nested_symbol_1,
5543 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5544 cp_search_static_and_baseclasses,
5545 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5546 cp_lookup_symbol_imports_or_template,
5547 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5548 lookup_namespace_scope, cp_lookup_nonlocal,
5549 find_symbol_in_baseclass): Return struct block_symbol instead of
5550 mere symbols and deal with struct block_symbol from lookup
5551 functions.
5552 * cp-support.c (inspect_type, replace_typedefs,
5553 cp_lookup_rtti_type): Deal with struct block_symbol from
5554 lookup functions.
5555 * cp-support.h (cp_lookup_symbol_nonlocal,
5556 cp_lookup_symbol_from_namespace,
5557 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5558 Return struct block_symbol instead of mere symbols.
5559 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5560 push_module_name):
5561 Deal with struct block_symbol from lookup functions. Remove
5562 uses of block_found.
5563 * eval.c (evaluate_subexp_standard): Update call to
5564 cp_lookup_symbol_namespace.
5565 * f-exp.y: Deal with struct block_symbol from lookup functions.
5566 Remove uses of block_found.
5567 (yylex): Likewise.
5568 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5569 lookup_enum, lookup_template_type, check_typedef): Deal with
5570 struct block_symbol from lookup functions.
5571 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5572 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5573 (gdbscm_lookup_global_symbol): Likewise.
5574 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5575 * go-exp.y: Likewise. Remove uses of block_found.
5576 (package_name_p, classify_packaged_name, classify_name):
5577 Likewise.
5578 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5579 * jv-exp.y (push_variable): Likewise.
5580 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5581 * language.c (language_bool_type): Likewise.
5582 * language.h (struct language_defn): Update
5583 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5584 than a mere symbol.
5585 * linespec.c (find_label_symbols): Deal with struct block_symbol
5586 from lookup functions.
5587 * m2-exp.y: Likewise. Remove uses of block_found.
5588 (yylex): Likewise.
5589 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5590 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5591 * p-exp.y: Likewise. Remove uses of block_found.
5592 (yylex): Likewise.
5593 * p-valprint.c (pascal_val_print): Likewise.
5594 * parse.c (write_dollar_variable): Likewise. Remove uses of
5595 block_found.
5596 * parser-defs.h (struct symtoken): Turn the SYM field into a
5597 struct block_symbol.
5598 * printcmd.c (address_info): Deal with struct block_symbol from
5599 lookup functions.
5600 * python/py-frame.c (frapy_read_var): Likewise.
5601 * python/py-symbol.c (gdbpy_lookup_symbol,
5602 gdbpy_lookup_global_symbol): Likewise.
5603 * skip.c (skip_function_command): Likewise.
5604 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5605 block_symbol instead of a mere symbol.
5606 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5607 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5608 * solib.c (solib_global_lookup): Likewise.
5609 * solist.h (solib_global_lookup): Likewise.
5610 (struct target_so_ops): Update lookup_lib_global_symbol to
5611 return a struct block_symbol rather than a mere symbol.
5612 * source.c (select_source_symtab): Deal with struct block_symbol
5613 from lookup functions.
5614 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5615 Likewise.
5616 * symfile.c (set_initial_language): Likewise.
5617 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5618 block_symbol.
5619 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5620 (struct symbol_cache_slot): Turn the FOUND field into a struct
5621 block_symbol.
5622 (block_found): Remove.
5623 (eq_symbol_entry): Update to deal with struct block_symbol in
5624 cache slots.
5625 (symbol_cache_lookup): Return a struct block_symbol rather than
5626 a mere symbol.
5627 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5628 appropriately the cache slots. Update callers.
5629 (symbol_cache_dump): Update cache slots handling to the type
5630 change.
5631 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5632 lookup_symbol_aux, lookup_local_symbol,
5633 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5634 lookup_symbol_in_objfile_symtabs,
5635 lookup_symbol_in_objfile_from_linkage_name,
5636 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5637 lookup_symbol_in_static_block, lookup_static_symbol,
5638 lookup_global_symbol):
5639 Return a struct block_symbol rather than a mere symbol. Deal
5640 with struct block_symbol from other lookup functions. Remove
5641 uses of block_found.
5642 (lookup_symbol_in_block): Remove uses of block_found.
5643 (struct global_sym_lookup_data): Turn the RESULT field into a
5644 struct block_symbol.
5645 (lookup_symbol_global_iterator_cb): Update references to the
5646 RESULT field.
5647 (search_symbols): Deal with struct block_symbol from lookup
5648 functions.
5649 * symtab.h (struct block_symbol): New structure.
5650 (block_found): Remove.
5651 (lookup_symbol_in_language, lookup_symbol,
5652 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5653 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5654 lookup_global_symbol_from_objfile): Return a struct block_symbol
5655 rather than just a mere symbol. Update comments to remove
5656 mentions of block_found.
5657 * valops.c (find_function_in_inferior,
5658 value_struct_elt_for_reference, value_maybe_namespace_elt,
5659 value_of_this): Deal with struct block_symbol from lookup
5660 functions.
5661 * value.c (value_static_field, value_fn_field): Likewise.
5662
5663 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5664
5665 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5666 instead of integer.
5667
5668 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5669 Pedro Alves <palves@redhat.com>
5670
5671 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5672 type or value instead of integer.
5673 (aarch64_linux_insert_watchpoint): Likewise.
5674 (aarch64_linux_remove_watchpoint): Likewise.
5675 * ada-lang.c (ada_op_print_tab): Likewise.
5676 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5677 (amd64_linux_syscall_record_common): Likewise.
5678 * arch-utils.c (target_byte_order_user): Likewise.
5679 (default_byte_order): Likewise.
5680 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5681 (arm_linux_get_hwbp_type): Likewise.
5682 (arm_linux_hw_watchpoint_initialize): Likewise.
5683 (arm_linux_insert_watchpoint): Likewise.
5684 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5685 (arm_linux_syscall_record): Likewise.
5686 * breakpoint.c (update_watchpoint): Likewise.
5687 (breakpoint_here_p): Likewise.
5688 (bpstat_print): Likewise.
5689 (enable_breakpoint_disp): Likewise.
5690 * c-lang.c (c_op_print_tab): Likewise.
5691 * cli/cli-decode.c (add_info_alias): Likewise.
5692 * d-lang.c (d_op_print_tab): Likewise.
5693 * eval.c (evaluate_subexp_standard): Likewise.
5694 * f-exp.y (dot_ops): Likewise.
5695 (f77_keywords): Likewise.
5696 * f-lang.c (f_op_print_tab): Likewise.
5697 * go-lang.c (go_op_print_tab): Likewise.
5698 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5699 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5700 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5701 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5702 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5703 (struct scm_from_stringn_data): Likewise.
5704 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5705 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5706 (ia64_linux_remove_watchpoint): Likewise.
5707 (ia64_linux_can_use_hw_breakpoint): Likewise.
5708 * infrun.c (print_stop_event): Likewise.
5709 * jv-lang.c (java_op_print_tab): Likewise.
5710 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5711 * linux-nat.h (struct lwp_info): Likewise.
5712 * linux-thread-db.c (enable_thread_event): Likewise.
5713 * m2-lang.c (m2_op_print_tab): Likewise.
5714 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5715 (mi_cmd_stack_list_variables): Likewise.
5716 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5717 * mi/mi-out.c (mi_table_begin): Likewise.
5718 (mi_table_header): Likewise.
5719 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5720 (mips_linux_insert_watchpoint): Likewise.
5721 (mips_linux_remove_watchpoint): Likewise.
5722 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5723 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5724 (mips_linux_watch_type_to_irw): Likewise.
5725 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5726 (procfs_insert_hw_watchpoint): Likewise.
5727 (procfs_remove_hw_watchpoint): Likewise.
5728 (procfs_hw_watchpoint): Likewise.
5729 (procfs_can_use_hw_breakpoint): Likewise.
5730 (procfs_remove_hw_watchpoint): Likewise.
5731 (procfs_insert_hw_watchpoint): Likewise.
5732 * p-lang.c (pascal_op_print_tab): Likewise.
5733 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5734 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5735 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5736 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5737 (procfs_insert_watchpoint): Likewise.
5738 (procfs_remove_watchpoint): Likewise.
5739 * psymtab.c (recursively_search_psymtabs): Likewise.
5740 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5741 (m32r_insert_watchpoint): Likewise.
5742 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5743 (mips_insert_watchpoint): Likewise.
5744 (mips_remove_watchpoint): Likewise.
5745 * remote.c (watchpoint_to_Z_packet): Likewise.
5746 (remote_insert_watchpoint): Likewise.
5747 (remote_remove_watchpoint): Likewise.
5748 (remote_check_watch_resources): Likewise.
5749 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5750 (s390_remove_watchpoint): Likewise.
5751 (s390_can_use_hw_breakpoint): Likewise.
5752 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5753 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5754 * target.h (struct target_ops): Likewise.
5755 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5756 * ui-out.c (struct ui_out_hdr): Likewise.
5757 (append_header_to_list): Likewise.
5758 (get_next_header): Likewise.
5759 (verify_field): Likewise.
5760 (ui_out_begin): Likewise.
5761 (ui_out_field_int): Likewise.
5762 (ui_out_field_fmt_int): Likewise.
5763 (ui_out_field_skip): Likewise.
5764 (ui_out_field_string): Likewise.
5765 (ui_out_field_fmt): Likewise.
5766 * varobj.c (new_variable): Likewise.
5767 * x86-nat.c (x86_insert_watchpoint): Likewise.
5768 (x86_remove_watchpoint): Likewise.
5769 (x86_can_use_hw_breakpoint): Likewise.
5770 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5771 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5772 previously anonymous enumeration type..
5773 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5774 value.
5775 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5776 (target_debug_print_enum_bptype): New.
5777 * target-delegates.c: Regenerate.
5778
5779 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5780
5781 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5782 already says and disallow non-stack memory writes in the prologue.
5783
5784 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5785
5786 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5787 reflect how current GCC emits stack overflow checks. Match
5788 both trap and break instructions for backward compatbility.
5789 Disallow other trap and break instructions in the prologue.
5790
5791 2015-07-30 Pedro Alves <palves@redhat.com>
5792
5793 PR threads/18600
5794 * linux-nat.c (wait_lwp): Report to the core when thread group
5795 leader exits.
5796
5797 2015-07-30 Pedro Alves <palves@redhat.com>
5798 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 PR threads/18600
5801 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5802 mark the new thread as resumed. Remove STOPPING parameter.
5803 (wait_lwp): Adjust call to linux_handle_extended_wait.
5804 (linux_nat_filter_event): Adjust call to
5805 linux_handle_extended_wait.
5806 (resume_stopped_resumed_lwps): Add debug output.
5807
5808 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5809
5810 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5811 isize argument.
5812 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5813 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5814 gdbarch_fast_tracepoint_valid_at.
5815 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5816 * gdbarch.h: Regenerate.
5817 * gdbarch.c: Regenerate.
5818 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5819 argument. Do not set it.
5820 * remote.c (remote_download_tracepoint): Adjust call to
5821 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5822 the instruction length.
5823
5824 2015-07-30 Yao Qi <yao.qi@linaro.org>
5825
5826 * arm-tdep.h (enum gdb_regnum): Move it to ...
5827 * arch/arm.h: ... here. New file.
5828 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5829
5830 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5831
5832 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5833 Change its type to int *.
5834 (decode_br): Rename link argument to is_blr. Change its type to
5835 int *.
5836 (decode_cb): Rename op argument to is_cbnz. Change its type to
5837 int *.
5838 (decode_tb): Rename op argument to is_tbnz. Change its type to
5839 int *. Set is_tbnz to either 1 or 0.
5840 (aarch64_analyze_prologue): Change type of is_link to int. Add
5841 new variables is_cbnz and is_tbnz. Adjust call to
5842 aarch64_decode_cb and aarch64_decode_tb.
5843
5844 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5845
5846 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5847 parameter.
5848 (mips_linux_new_thread): Likewise.
5849 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5850
5851 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5852
5853 * top.c: Include "tui/tui.h".
5854 (undo_terminal_modifications_before_exit): New static function.
5855 (quit_force): Use it.
5856
5857 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5858
5859 * target.c (terminal_state): Initialize to terminal_is_ours.
5860
5861 2015-07-29 Yao Qi <yao.qi@linaro.org>
5862
5863 PR record/18691
5864 * dcache.c (dcache_read_memory_partial): Call
5865 raw_memory_xfer_partial.
5866 * target.c (raw_memory_xfer_partial): Make it non-static.
5867 * target.h (raw_memory_xfer_partial): Declare.
5868
5869 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5870
5871 * c-valprint.c (c_val_print_array): Consider addressable memory
5872 unit size.
5873 (c_val_print_ptr): Likewise.
5874 (c_val_print_int): Likewise.
5875 * findvar.c (read_frame_register_value): Likewise.
5876 * valarith.c (find_size_for_pointer_math): Likewise.
5877 (value_ptrdiff): Likewise.
5878 (value_subscripted_rvalue): Likewise.
5879 * valops.c (read_value_memory): Likewise (and rename variables).
5880 (value_assign): Likewise.
5881 (value_repeat): Likewise.
5882 (value_array): Likewise.
5883 (value_slice): Likewise.
5884 * valprint.c (generic_val_print_ptr): Likewise.
5885 (generic_val_print_enum): Likewise.
5886 (generic_val_print_bool): Likewise.
5887 (generic_val_print_int): Likewise.
5888 (generic_val_print_char): Likewise.
5889 (generic_val_print_float): Likewise.
5890 (generic_val_print_decfloat): Likewise.
5891 (generic_val_print_complex): Likewise.
5892 (val_print_scalar_formatted): Likewise.
5893 (val_print_array_elements): Likewise.
5894 * value.c (set_value_parent): Likewise.
5895 (value_contents_copy_raw): Likewise.
5896 (set_internalvar_component): Likewise.
5897 (value_primitive_field): Likewise.
5898 (value_fetch_lazy): Likewise.
5899 * value.h (read_value_memory): Update comment.
5900
5901 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5902
5903 * value.c (get_value_arch): New function.
5904 * value.h (get_value_arch): New declaration.
5905
5906 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5907
5908 * value.c (struct value): Update comments.
5909
5910 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5911
5912 * gdbtypes.c (type_length_units): New function.
5913 * gdbtypes.h (type_length_units): New declaration.
5914 (struct type) <length>: Update comment.
5915
5916 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 * valprint.c (generic_val_print): Factor out complex
5919 printing code to ...
5920 (generic_val_print_complex): ... this new function.
5921
5922 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5923
5924 * valprint.c (generic_val_print): Factor out decfloat
5925 printing code to ...
5926 (generic_val_print_decfloat): ... this new function.
5927
5928 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5929
5930 * valprint.c (generic_val_print): Factor out float
5931 printing code to ...
5932 (generic_val_print_float): ... this new function.
5933
5934 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5935
5936 * valprint.c (generic_val_print): Factor out char
5937 printing code to ...
5938 (generic_val_print_char): ... this new function.
5939
5940 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5941
5942 * valprint.c (generic_val_print): Factor out integer
5943 printing code to ...
5944 (generic_val_print_int): ... this new function.
5945
5946 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5947
5948 * valprint.c (generic_val_print): Factor out bool
5949 printing code to ...
5950 (generic_val_print_bool): ... this new function.
5951
5952 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5953
5954 * valprint.c (generic_val_print): Factor out function/method
5955 printing code to ...
5956 (generic_val_print_func): ... this new function.
5957
5958 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5959
5960 * valprint.c (generic_val_print): Factor out flags
5961 printing code to ...
5962 (generic_val_print_flags): ... this new function.
5963
5964 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5965
5966 * valprint.c (generic_val_print): Factor out enum
5967 printing code to ...
5968 (generic_val_print_enum): ... this new function.
5969
5970 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5971
5972 * valprint.c (generic_val_print): Factor out reference
5973 printing code to ...
5974 (generic_val_print_ref): ... this new function.
5975
5976 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5977
5978 * valprint.c (generic_val_print): Factor out memberptr
5979 printing code to ...
5980 (generic_val_print_memberptr): ... this new function.
5981
5982 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5983
5984 * valprint.c (generic_val_print): Factor out pointer
5985 printing code to ...
5986 (generic_val_print_ptr): ... this new function.
5987
5988 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5989
5990 * valprint.c (generic_val_print): Factor out array
5991 printing code to ...
5992 (generic_val_print_array): ... this new function.
5993
5994 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5995
5996 * valprint.c (generic_val_print): Factor out
5997 print_unpacked_pointer code to ...
5998 (print_unpacked_pointer): ... this new function.
5999
6000 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6001
6002 * event-top.c (handle_sigterm): Don't inspect
6003 target_can_async_p. Always set the quit flag and always mark
6004 the async signal handler.
6005
6006 2015-07-27 Yao Qi <yao.qi@linaro.org>
6007
6008 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6009
6010 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6011
6012 * remote.c (read_ptid): Return null_ptid when no thread id
6013 is found.
6014 (remote_current_thread): Add log warning for malformed
6015 qC reply.
6016 (remote_start_remote): Add log warning when current thread
6017 not found.
6018
6019 2015-07-24 Pedro Alves <palves@redhat.com>
6020
6021 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6022 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6023 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6024
6025 2015-07-24 Pedro Alves <palves@redhat.com>
6026
6027 PR gdb/18717
6028 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6029 is resumed, and extend the debug log.
6030
6031 2015-07-24 Pedro Alves <palves@redhat.com>
6032
6033 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6034
6035 2015-07-24 Pedro Alves <palves@redhat.com>
6036
6037 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6038 sys/ptrace.h.
6039 * alpha-linux-nat.c: Likewise.
6040 * amd64-linux-nat.c: Likewise.
6041 * arm-linux-nat.c: Likewise.
6042 * hppa-linux-nat.c: Likewise.
6043 * i386-linux-nat.c: Likewise.
6044 * ia64-linux-nat.c: Likewise.
6045 * linux-fork.c: Likewise.
6046 * linux-nat.c: Likewise.
6047 * m32r-linux-nat.c: Likewise.
6048 * m68klinux-nat.c: Likewise.
6049 * mips-linux-nat.c: Likewise.
6050 * nat/linux-btrace.c: Likewise.
6051 * nat/linux-ptrace.c: Likewise.
6052 * nat/linux-ptrace.h
6053 * nat/mips-linux-watch.c: Likewise.
6054 * nat/x86-linux-dregs.c: Likewise.
6055 * ppc-linux-nat.c: Likewise.
6056 * s390-linux-nat.c: Likewise.
6057 * spu-linux-nat.c: Likewise.
6058 * tilegx-linux-nat.c: Likewise.
6059 * x86-linux-nat.c: Likewise.
6060 * xtensa-linux-nat.c: Likewise.
6061
6062 2015-07-24 Pedro Alves <palves@redhat.com>
6063
6064 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6065 __ptrace_request as first parameter type instead of int.
6066 (PTRACE_TYPE_ARG1): Define.
6067 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6068 that casts first argument to PTRACE_TYPE_ARG1.
6069 * config.in: Regenerate.
6070 * configure: Regenerate.
6071
6072 2015-07-24 Pedro Alves <palves@redhat.com>
6073
6074 * gdb_ptrace.h: Move ...
6075 * nat/gdb_ptrace.h: ... here.
6076 * inf-ptrace.c: Adjust.
6077
6078 2015-07-24 Pedro Alves <palves@redhat.com>
6079
6080 * acinclude.m4: Include ptrace.m4.
6081 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6082 * ptrace.m4: ... to this new file.
6083
6084 2015-07-23 Doug Evans <dje@google.com>
6085
6086 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6087 (load_cu): Handle dummy CUs.
6088 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6089 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6090
6091 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6092
6093 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6094 documentation to say that it returns a list rather than
6095 a FrozenSet.
6096 (linetable_object_methods): Update the docstring of the
6097 "source_line" entry.
6098
6099 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6100
6101 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6102 type to the recursive call instead of the original (maybe
6103 TYPE_CODE_TYPEDEF) type.
6104
6105 2015-07-23 Yao Qi <yao.qi@linaro.org>
6106
6107 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6108 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6109 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6110
6111 2015-07-21 Yao Qi <yao.qi@linaro.org>
6112
6113 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6114 Move it to nat/aarch64-linux-hw-point.c.
6115 (aarch64_linux_child_post_startup_inferior): Update.
6116 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6117 New function.
6118 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6119 Declare it.
6120
6121 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6122
6123 * common/btrace-common.c (btrace_data_append): Change case label.
6124
6125 2015-07-20 Yao Qi <yao.qi@linaro.org>
6126
6127 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6128 Re-indent the code.
6129 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6130 "unsigned long long".
6131
6132 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6133
6134 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6135 to be set for SEC_ALLOC sections too.
6136
6137 2015-07-17 Yao Qi <yao.qi@linaro.org>
6138
6139 * Makefile.in (HFILES_NO_SRCDIR): Add
6140 nat/aarch64-linux-hw-point.h.
6141 (aarch64-linux-hw-point.o): New rule.
6142 * nat/aarch64-linux-hw-point.h: New file.
6143 * nat/aarch64-linux-hw-point.c: New file.
6144 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6145 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6146 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6147 (AARCH64_HWP_ALIGNMENT): Likewise.
6148 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6149 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6150 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6151 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6152 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6153 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6154 (struct aarch64_debug_reg_state): Likewise.
6155 (struct arch_lwp_info): Likewise.
6156 (aarch64_linux_set_debug_regs): Likewise.
6157 (aarch64_notify_debug_reg_change): Remove static.
6158 (aarch64_align_watchpoint): Likewise.
6159 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6160 (aarch64_watchpoint_length): Likewise.
6161 (aarch64_point_encode_ctrl_reg): Likewise
6162 (aarch64_point_is_aligned): Likewise.
6163 (aarch64_dr_state_insert_one_point): Likewise.
6164 (aarch64_dr_state_remove_one_point): Likewise.
6165 (aarch64_handle_breakpoint): Likewise.
6166 (aarch64_handle_aligned_watchpoint): Likewise.
6167 (aarch64_handle_unaligned_watchpoint): Likewise.
6168 (aarch64_handle_watchpoint): Likewise.
6169 * config/aarch64/linux.mh (NAT_FILE): Add
6170 aarch64-linux-hw-point.o.
6171
6172 2015-07-17 Yao Qi <yao.qi@linaro.org>
6173
6174 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6175 state and don't call aarch64_get_debug_reg_state. All callers
6176 update.
6177 (aarch64_linux_insert_hw_breakpoint): Call
6178 aarch64_get_debug_reg_state earlier.
6179 (aarch64_linux_remove_hw_breakpoint): Likewise.
6180 (aarch64_handle_aligned_watchpoint): Add argument state and
6181 don't call aarch64_get_debug_reg_state. All callers update.
6182 (aarch64_handle_unaligned_watchpoint): Likewise.
6183 (aarch64_handle_watchpoint): Add argument state.
6184 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6185 earlier.
6186 (aarch64_linux_remove_watchpoint): Likewise.
6187
6188 2015-07-17 Yao Qi <yao.qi@linaro.org>
6189
6190 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6191 debug_printf.
6192 (aarch64_handle_unaligned_watchpoint): Likewise.
6193
6194 2015-07-17 Yao Qi <yao.qi@linaro.org>
6195
6196 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6197 argument type's type to 'enum target_hw_bp_type'.
6198 (aarch64_dr_state_remove_one_point): Likewise.
6199 (aarch64_handle_breakpoint): Likewise.
6200 (aarch64_linux_insert_hw_breakpoint): Likewise.
6201 (aarch64_linux_remove_hw_breakpoint): Likewise.
6202 (aarch64_handle_aligned_watchpoint): Likewise.
6203
6204 2015-07-17 Yao Qi <yao.qi@linaro.org>
6205
6206 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6207 ptid_get_pid instead of get_thread_id.
6208
6209 2015-07-17 Yao Qi <yao.qi@linaro.org>
6210
6211 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6212 (add_current_inferior_and_thread): Don't initialise ptid.
6213
6214 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6215
6216 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6217 unavailable if invalid.
6218
6219 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6220
6221 Revert the previous 6 commits:
6222 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6223 Move gdb_regex* to common/
6224 Prepare linux_find_memory_regions_full & co. for move
6225 Move linux_find_memory_regions_full & co.
6226 gdbserver build-id attribute generator
6227 Validate symbol file using build-id
6228
6229 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6230 Jan Kratochvil <jan.kratochvil@redhat.com>
6231
6232 Validate symbol file using build-id.
6233 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6234 and 'show validate-build-id'. Add build-id attribute.
6235 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6236 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6237 * solib-frv.c (_initialize_frv_solib): Ditto.
6238 * solib-spu.c (set_spu_solib_ops): Ditto.
6239 * solib-svr4.c: Include rsp-low.h.
6240 (NOTE_GNU_BUILD_ID_NAME): New define.
6241 (svr4_validate): New function.
6242 (svr4_copy_library_list): Duplicate field build_id.
6243 (library_list_start_library): Parse 'build-id' attribute.
6244 (svr4_library_attributes): Add 'build-id' attribute.
6245 (_initialize_svr4_solib): Assign validate value.
6246 * solib-target.c (solib.h): Include.
6247 (_initialize_solib_target): Assign validate value.
6248 * solib.c (validate_build_id, show_validate_build_id): New.
6249 (solib_map_sections): Use ops->validate.
6250 (clear_so): Free build_id.
6251 (default_solib_validate): New function.
6252 (_initialize_solib): Add "validate-build-id".
6253 * solib.h (default_solib_validate): New declaration.
6254 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6255 (target_so_ops): New field 'validate'.
6256
6257 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6258 Jan Kratochvil <jan.kratochvil@redhat.com>
6259
6260 gdbserver build-id attribute generator.
6261 * features/library-list-svr4.dtd (library-list-svr4): New
6262 'build-id' attribute.
6263
6264 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6265 Jan Kratochvil <jan.kratochvil@redhat.com>
6266
6267 Move linux_find_memory_regions_full & co.
6268 * linux-tdep.c (nat/linux-maps.h): Include.
6269 (gdb_regex.h): Remove the include.
6270 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6271 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6272 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6273 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6274 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6275 and target/target.h.
6276 (struct smaps_vmflags, read_mapping, decode_vmflags)
6277 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6278 (linux_find_memory_regions_full): Move from linux-tdep.c.
6279 * nat/linux-maps.h (read_mapping): New declaration.
6280 (linux_find_memory_region_ftype, enum filterflags): Moved from
6281 linux-tdep.c.
6282 (linux_find_memory_regions_full): New declaration.
6283 * target.c (target/target-utils.h): Include.
6284 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6285 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6286 definitions to target/target-utils.c.
6287 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6288 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6289 from target.c.
6290 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6291 (read_alloc): New declaration.
6292 (read_stralloc_func_ftype): New typedef.
6293 (read_stralloc): New declaration.
6294 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6295
6296 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6297 Jan Kratochvil <jan.kratochvil@redhat.com>
6298
6299 Prepare linux_find_memory_regions_full & co. for move.
6300 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6301 (linux_find_memory_regions_full): Change signature and prepare
6302 for moving to linux-maps.
6303 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6304 (linux_find_memory_regions_thunk): New.
6305 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6306 (linux_find_memory_regions_gdb): New.
6307 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6308 (linux_make_mappings_corefile_notes): Use
6309 linux_find_memory_regions_gdb.
6310 * target.c (read_alloc_pread_ftype): New typedef.
6311 (target_fileio_read_alloc_1_pread): New function.
6312 (read_alloc): Refactor from target_fileio_read_alloc_1.
6313 (read_stralloc_func_ftype): New typedef.
6314 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6315 (read_stralloc): Refactored from target_fileio_read_stralloc.
6316 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6317
6318 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6321 common/gdb_regex.h.
6322 (COMMON_OBS): Add gdb_regex.o.
6323 (gdb_regex.o): New.
6324 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6325 --without-included-regex and USE_INCLUDED_REGEX.
6326 * common/gdb_regex.c: New file from utils.c functions.
6327 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6328 file wrapping define name.
6329 * configure: Rebuilt.
6330 * configure.ac (gdb_use_included_regex, --without-included-regex)
6331 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6332 * gdb_regex.h: Move it to common/gdb_regex.h.
6333 * utils.c: Remove include gdb_regex.h.
6334 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6335 (compile_rx_or_error): Move them to common/gdb_regex.c.
6336
6337 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6338 Jan Kratochvil <jan.kratochvil@redhat.com>
6339
6340 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6341 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6342 common/target-utils.h.
6343 (COMMON_OBS): Add target-utils.o.
6344 (linux-maps.o, target-utils.o): New.
6345 * target/target-utils.c: New file.
6346 * target/target-utils.h: New file.
6347 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6348 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6349 * nat/linux-maps.c: New file.
6350 * nat/linux-maps.h: New file.
6351
6352 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6353 Pedro Alves <palves@redhat.com>
6354
6355 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6356 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6357 (perf_event_read_bts): Change the type of SIZE and READ.
6358 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6359 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6360 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6361 mmap page.
6362 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6363 buffer size to UINT_MAX.
6364 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6365 DATA_TAIL.
6366 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6367 <last_head>: Change type.
6368 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6369 * common/btrace-common.c (btrace_data_append): Change the type of
6370 SIZE.
6371 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6372 check.
6373
6374 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6375
6376 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6377 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6378 with check_typedef.
6379 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6380 (ada_array_length): Likewise.
6381 (find_parallel_type_by_descriptive_type): Likewise.
6382 (ada_check_typedef): Likewise.
6383 * arm-tdep.c (arm_return_in_memory): Likewise.
6384 * ax-gdb.c (gen_trace_static_fields): Likewise.
6385 (gen_struct_ref_recursive): Likewise.
6386 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6387 (variable: block COLONCOLON name): Likewise.
6388 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6389 * c-lang.c (classify_type): Likewise.
6390 * c-typeprint.c (c_print_type): Likewise.
6391 (c_print_typedef): Likewise.
6392 (c_type_print_base): Likewise.
6393 * c-valprint.c (c_val_print): Likewise.
6394 * compile/compile-c-types.c (convert_type): Likewise.
6395 * compile/compile-object-load.c (get_out_value_type): Likewise.
6396 * completer.c (add_struct_fields): Likewise.
6397 (expression_completer): Likewise.
6398 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6399 (cp_lookup_nested_symbol_1): Likewise.
6400 (cp_lookup_nested_symbol): Likewise.
6401 * cp-valprint.c (cp_print_value_fields): Likewise.
6402 (cp_print_static_field): Likewise.
6403 * d-valprint.c (d_val_print): Likewise.
6404 * eval.c (evaluate_subexp_standard): Likewise.
6405 (evaluate_subexp_for_sizeof): Likewise.
6406 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6407 * f-typeprint.c (f_type_print_base): Likewise.
6408 * f-valprint.c (f_val_print): Likewise.
6409 * gdbtypes.c (get_discrete_bounds): Likewise.
6410 (create_array_type_with_stride): Likewise.
6411 (type_name_no_tag_or_error): Likewise.
6412 (lookup_struct_elt_type): Likewise.
6413 (get_unsigned_type_max): Likewise.
6414 (internal_type_vptr_fieldno): Likewise.
6415 (set_type_vptr_fieldno): Likewise.
6416 (internal_type_vptr_basetype): Likewise.
6417 (set_type_vptr_basetype): Likewise.
6418 (get_vptr_fieldno): Likewise.
6419 (is_integral_type): Likewise.
6420 (is_scalar_type): Likewise.
6421 (is_scalar_type_recursive): Likewise.
6422 (distance_to_ancestor): Likewise.
6423 (is_unique_ancestor_worker): Likewise.
6424 (check_types_equal): Likewise.
6425 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6426
6427 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6428
6429 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6430 also test for language_d.
6431 (dwarf2_compute_name): Likewise.
6432 (read_func_scope): Likewise.
6433 (read_structure_type): Likewise.
6434 (new_symbol_full): Likewise.
6435 (determine_prefix): Likewise.
6436 (read_import_statement): Use dot as the separator for language_d.
6437 (typename_concat): Likewise, but don't prefix the D main function.
6438
6439 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6440
6441 * nat/linux-namespaces.c (setns): Rename from this ...
6442 (do_setns): ... to this. Support calling setns if it exists.
6443 (mnsh_handle_setns): Call do_setns.
6444
6445 2015-07-13 Yao Qi <yao.qi@linaro.org>
6446
6447 * exec.c (exec_file_attach): Add period at the end of error
6448 message.
6449
6450 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 * tui/tui-win.c (window_name_completer): New function.
6453 (focus_completer): Call window_name_completer. All old content
6454 moved into window_name_completer.
6455 (winheight_completer): New function.
6456 (_initialize_tui_win): Rename variable. Add completer to
6457 winheight command. Update doc string on winheight.
6458
6459 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6460
6461 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6462 all nios2 mach variants.
6463
6464 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6465
6466 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6467 of target_read_memory.
6468
6469 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6472 string copy.
6473 (parse_scrolling_args): Likewise.
6474
6475 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6476
6477 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6478 names in this function.
6479
6480 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6483 (CMD_NAME): Likewise.
6484 (DATA_NAME): Likewise.
6485 (DISASSEM_NAME): Likewise.
6486 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6487 (tui_set_win_height): Likewise.
6488 (parse_scrolling_args): Likewise.
6489
6490 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6491
6492 * record-btrace.c (record_btrace_goto_begin)
6493 (record_btrace_goto_end, record_btrace_goto): Move call to
6494 print_stack_frame ...
6495 (record_btrace_set_replay): ... here. Set stop_pc.
6496 * record-full.c (record_full_goto_entry): Set stop_pc.
6497
6498 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6499
6500 * NEWS: Mention support for tracepoints on aarch64-linux.
6501
6502 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6503
6504 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6505 function. Return 1.
6506 (the_low_target): Install it.
6507
6508 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6509
6510 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6511 * gdb.trace/collection.exp: Likewise.
6512 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6513 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6514 * gdb.trace/report.exp: Likewise.
6515 * gdb.trace/trace-break.exp: Likewise.
6516 * gdb.trace/unavailable.exp: Likewise.
6517 * gdb.trace/while-dyn.exp: Likewise.
6518
6519 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6520
6521 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6522 (aarch64_gen_return_address): New function.
6523 (aarch64_gdbarch_init): Hook it.
6524
6525 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6526
6527 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6528 swallow NOT_AVAILABLE_ERROR.
6529 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6530 available_p is not set.
6531 (aarch64_stub_frame_unwind_stop_reason): New function.
6532 (aarch64_stub_unwind): Install it.
6533
6534 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6535
6536 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6537 field.
6538 (aarch64_make_prologue_cache_1): New function, factored out from
6539 aarch64_make_prologue_cache. Do not allocate cache. Set
6540 available_p.
6541 (aarch64_make_prologue_cache): Reimplement wrapping
6542 aarch64_make_prologue_cache_1, and swallowing
6543 NOT_AVAILABLE_ERROR.
6544 (aarch64_prologue_frame_unwind_stop_reason): New function.
6545 Return UNWIND_UNAVAILABLE if available_p is not set.
6546 (aarch64_prologue_unwind): Install it.
6547 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6548 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6549 frame_id_build_unavailable_stack if available_p is not set.
6550
6551 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6552
6553 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6554 fields.
6555 (aarch64_scan_prologue): Set prev_pc.
6556 (aarch64_make_prologue_cache): Set func.
6557 (aarch64_make_stub_cache): Set prev_pc.
6558 (aarch64_prologue_this_id): Remove local variables id, pc and
6559 func. Read prev_pc and func from cache.
6560 (aarch64_stub_this_id): Read prev_pc from cache.
6561
6562 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6563
6564 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6565 argument this_cache. Remove unused local variables reg and
6566 unwound_fp. Return early if this_cache is already set. Set
6567 this_cache.
6568 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6569
6570 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6571
6572 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6573 New argument this_cache. Return early if this_cache is already
6574 set. Set this_cache.
6575 (aarch64_prologue_this_id): Update call to
6576 aarch64_make_prologue_cache.
6577 (aarch64_prologue_prev_register): Likewise.
6578 (aarch64_normal_frame_base): Likewise.
6579
6580 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6581
6582 * c-valprint.c (c_val_print): Factor out memberptr printing code
6583 from c_val_print to ...
6584 (c_val_print_memberptr): ... this new function.
6585
6586 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * c-valprint.c (c_val_print): Factor out int printing code to ...
6589 (c_val_print_int): ... this new function.
6590
6591 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6592
6593 * c-valprint.c (c_val_print): Factor out struct and union
6594 printing code to ...
6595 (c_val_print_struct): ... this new function ...
6596 (c_val_print_union): ... and this new function.
6597
6598 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6599
6600 * c-valprint.c (c_val_print): Factor out pointer printing code
6601 to ...
6602 (c_val_print_ptr): ... this new function.
6603
6604 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6605
6606 * c-valprint.c (c_valprint): Factor our array printing code from
6607 c_val_print to ...
6608 (c_val_print_array): ... this new function.
6609
6610 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6611
6612 * c-valprint.c (c_val_print): Factor out pointer printing code
6613 to ...
6614 (print_unpacked_pointer): ... this new function.
6615
6616 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6617
6618 * c-valprint.c (c_val_print): Remove an assignment to i and move
6619 its declaration.
6620
6621 2015-07-09 Yao Qi <yao.qi@linaro.org>
6622
6623 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6624 argument ptid. Update comments. Caller update.
6625
6626 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6627
6628 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6629 mnt packets.
6630
6631 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6632
6633 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6634
6635 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6636
6637 * progspace.c (delete_program_space): Add missing spaces.
6638
6639 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * inferior.c (delete_inferior_1): Rename to ...
6642 (delete_inferior): ..., remove 'silent' parameter, delete
6643 program space when unused and remove call to prune_program_spaces.
6644 Remove the old, unused, delete_inferior.
6645 (delete_inferior_silent): Remove.
6646 (prune_inferiors): Change call from delete_inferior_1 to
6647 delete_inferior and remove 'silent' parameter. Remove call to
6648 prune_program_spaces.
6649 (remove_inferior_command): Idem.
6650 * inferior.h (delete_inferior_1): Rename to...
6651 (delete_inferior): ..., remove 'silent' parameter and remove the
6652 original delete_inferior.
6653 (delete_inferior_silent): Remove.
6654 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6655 delete_inferior_1 to delete_inferior and remove 'silent'
6656 parameter.
6657 * progspace.c (prune_program_spaces): Remove.
6658 (pspace_empty_p): Rename to...
6659 (program_space_empty_p): ... and make non-static.
6660 (delete_program_space): New.
6661 * progspace.h (prune_program_spaces): Remove declaration.
6662 (program_space_empty_p): New declaration.
6663 (delete_program_space): New declaration.
6664 * monitor.c (monitor_close): Replace call to
6665 delete_thread_silent and delete_inferior_silent with
6666 discard_all_inferiors.
6667
6668 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6669
6670 * defs.h (deprecated_register_changed_hook): Remove prototype.
6671 * interps.c (clear_iterpreter_hooks): Remove reference to
6672 deprecated_register_changed_hook.
6673 * top.c (deprecated_register_changed_hook): Remove prototype.
6674 * valops.c (value_assign): Remove reference to
6675 deprecated_register_changed_hook.
6676 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6677 Add comment documenting the function.
6678 (tui_register_changed_observer): Define.
6679 (tui_install_hooks): Remove reference to
6680 deprecated_register_changed_hook. Set
6681 tui_register_changed_observer.
6682 (tui_remove_hooks): Remove reference to
6683 deprecated_register_changed_hook. Unset
6684 tui_register_changed_observer.
6685
6686 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6687
6688 PR compile/18484
6689 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6690
6691 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6692
6693 PR exp/18617
6694 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6695
6696 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6697
6698 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6699
6700 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6701
6702 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6703 Use safe_strerror() instead of strerror().
6704
6705 2015-07-07 Yao Qi <yao.qi@linaro.org>
6706
6707 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6708 * features/arm-with-m-fpa-layout.c: Regenerated.
6709 * features/arm-with-m-vfp-d16.xml: Likewise.
6710 * features/arm-with-m-vfp-d16.c: Regenerated.
6711 * features/arm-with-m.xml: Likewise.
6712 * features/arm-with-m.c: Regenerated.
6713 * features/arm-with-neon.xml: Likewise.
6714 * features/arm-with-neon.c: Regenerated.
6715 * features/arm-with-vfpv2.xml: Likewise.
6716 * features/arm-with-vfpv2.c: Regenerated.
6717 * features/arm-with-vfpv3.xml: Likewise.
6718 * features/arm-with-vfpv3.c: Regenerated.
6719
6720 2015-07-07 Yao Qi <yao.qi@linaro.org>
6721
6722 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6723 arm-linux-nat.c.
6724 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6725 elf/external.h.
6726 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6727 if target is 32-bit.
6728 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6729 if target is 32-bit.
6730 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6731 if target is 32-bit.
6732 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6733 if target is 32-bit.
6734 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6735 (aarch64_linux_read_description): Return the right target
6736 description.
6737 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6738 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6739 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6740 arm-linux-tdep.o.
6741
6742 2015-07-07 Yao Qi <yao.qi@linaro.org>
6743
6744 * aarch32-linux-nat.c: New file.
6745 * aarch32-linux-nat.h: New file.
6746 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6747 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6748 aarch32_gp_regcache_supply.
6749 (store_regs): Move code to aarch32-linux-nat.c. Call
6750 aarch32_gp_regcache_collect.
6751 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6752 aarch32_vfp_regcache_supply.
6753 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6754 aarch32_vfp_regcache_collect.
6755 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6756
6757 2015-07-07 Yao Qi <yao.qi@linaro.org>
6758
6759 * arm-linux-nat.c (store_fpregister): Remove.
6760 (store_register): Likewise.
6761 (fetch_fpregister): Likewise.
6762 (fetch_register): Likewise.
6763 (arm_linux_store_inferior_registers): Call store_regs and
6764 store_fpregs instead.
6765 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6766 fetch_regs instead.
6767
6768 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6771 and focus commands.
6772
6773 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6774
6775 * NEWS: Create a new section for the next release branch.
6776 Rename the section of the current branch, now that it has
6777 been cut.
6778
6779 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6780
6781 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6782 * version.in: Bump version to 7.10.50.DATE-cvs.
6783
6784 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6785
6786 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6787 breakpoints in a special way.
6788 (remove_breakpoint): Likewise.
6789 (mark_breakpoints_out): Likewise.
6790
6791 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6792
6793 * doc/gdb.texinfo (TUI): Add comma after @xref.
6794
6795 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6798 instead of casting the structure type.
6799
6800 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6801
6802 * valops.c (search_struct_field): Remove OFFSET parameter.
6803 (value_cast_structs): Adjust calls to search_struct_field.
6804 (value_struct_elt): Same.
6805 (find_overload_match): Same.
6806
6807 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6808
6809 * value.c (value_fetch_lazy): Update comment, change return
6810 value to void.
6811 * value.h (value_fetch_lazy): Change return value to void.
6812
6813 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6816 (tui_win_name): Make parameter and result const.
6817 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6818
6819 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6820
6821 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6822 use printf_unfiltered.
6823 (set_mpx_cmd): Add missing trailing space to command string
6824 literal.
6825 (_initialize_i386_tdep): Give the "mpx" prefix command its
6826 correct name.
6827
6828 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6829
6830 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6831 (enum rx_frame_type): New.
6832 (struct rx_prologue): Add new field `frame_type'.
6833 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6834 parameter in the prologue struct. Add code for recording
6835 locations of PC and PSW for fast interrupt and exception frames.
6836 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6837 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6838 (rx_frame_type): New function.
6839 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6840 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6841 `this_cache'.
6842 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6843 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6844 RX_FRAME_TYPE_FAST_INTERRUPT.
6845 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6846 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6847 (rx_frame_unwind): Use rx_frame_sniffer instead of
6848 default_frame_sniffer.
6849 (rx_frame_unwind): New unwinder.
6850 (rx_gdbarch_init): Register new unwinder.
6851
6852 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6853
6854 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6855 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6856 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6857 and RX_FPSW_REGNUM.
6858 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6859
6860 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 Fix GCC false warning.
6863 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6864
6865 2015-07-02 Yao Qi <yao.qi@linaro.org>
6866
6867 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6868 typo in the debugging message.
6869
6870 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6871
6872 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6873 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6874 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6875 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6876 (btrace_maint_clear): New.
6877 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6878 (pt_print_packet, btrace_maint_decode_pt)
6879 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6880 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6881 (maint_btrace_packet_history_cmd)
6882 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6883 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6884 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6885 (maint_info_btrace_cmd, _initialize_btrace): New.
6886 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6887 (btrace_maint_packet_history, btrace_maint_info): New.
6888 (btrace_thread_info) <maint>: New.
6889 * NEWS: Announce it.
6890
6891 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6892
6893 * btrace.c (btrace_fetch): Append the new trace data.
6894 (btrace_clear): Clear the stored trace data.
6895 * btrace.h (btrace_thread_info) <data>: New.
6896 * common/btrace-common.h (btrace_data_clear)
6897 (btrace_data_append): New.
6898 * common/btrace-common.c (btrace_data_clear)
6899 (btrace_data_append): New.
6900
6901 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6902
6903 * nat/linux-btrace.c (linux_enable_bts): Check for
6904 PERF_ATTR_SIZE_VER5.
6905 Check for data_offset and data_size fields. Use them.
6906
6907 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6908
6909 * NEWS: Announce new commands "record btrace pt" and "record pt".
6910 Announce new options "set|show record btrace pt buffer-size".
6911 * btrace.c: Include "rsp-low.h".
6912 Include "inttypes.h".
6913 (btrace_add_pc): Add forward declaration.
6914 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6915 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6916 (btrace_compute_ftrace_pt): New.
6917 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6918 (check_xml_btrace_version): Update version check.
6919 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6920 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6921 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6922 (btrace_pt_children): New.
6923 (btrace_children): Add support for "pt".
6924 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6925 (btrace_conf_children): Add support for "pt".
6926 * btrace.h: Include "intel-pt.h".
6927 (btrace_pt_error): New.
6928 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6929 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6930 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6931 (struct btrace_config_pt): New.
6932 (struct btrace_config)<pt>: New.
6933 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6934 (struct btrace_data)<pt>: New.
6935 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6936 (pt): New.
6937 * features/btrace.dtd (btrace)<pt>: New.
6938 (pt, pt-config, cpu): New.
6939 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6940 (perf_event_pt_event_type, kernel_supports_pt)
6941 (linux_supports_pt): New.
6942 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6943 (linux_enable_bts): Free tinfo on error.
6944 (linux_enable_pt): New.
6945 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6946 (linux_disable_pt): New.
6947 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6948 (linux_fill_btrace_pt_config, linux_read_pt): New.
6949 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6950 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6951 (struct btrace_target_info)<pt>: New.
6952 * record-btrace.c (set_record_btrace_pt_cmdlist)
6953 (show_record_btrace_pt_cmdlist): New.
6954 (record_btrace_print_pt_conf): New.
6955 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6956 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6957 (cmd_record_btrace_pt_start): New.
6958 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6959 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6960 (_initialize_record_btrace): Add new commands.
6961 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6962 (remote_protocol_features): Add "Qbtrace:pt".
6963 Add "Qbtrace-conf:pt:size".
6964 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6965 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6966 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6967 (_initialize_remote): Add new commands.
6968
6969 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6970
6971 * configure.ac: check for libipt
6972 * configure: Regenerate.
6973 * config.in: Regenerate.
6974 * Makefile.in (LIBIPT): New.
6975 (CLIBS): Add $LIBIPT.
6976 * NEWS: document new configure options
6977
6978 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6979
6980 * compile/compile-object-load.c (compile_object_load): Replace debug
6981 message "lookup undefined ELF symbol" by 3 more specific messages.
6982
6983 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6984
6985 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6986 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6987 (rl78_gdbarch_init): Initialize rl78_psw_type.
6988
6989 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6990
6991 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6992 Update commentary. Always refresh the registers when frame
6993 information has changed.
6994 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6995 Change return type to int. Return 1 if frame information has
6996 changed, 0 otherwise.
6997 (tui_before_prompt): Update commentary.
6998 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6999 int.
7000
7001 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7002
7003 PR tui/13378
7004 * frame.c (select_frame): Remove reference to
7005 deprecated_selected_frame_level_changed_hook.
7006 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7007 declaration.
7008 * stack.c (deprecated_selected_frame_level_changed_hook):
7009 Likewise.
7010 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7011 Rename to ...
7012 (tui_refresh_frame_and_register_information): ... this. Bail
7013 out if there is no stack. Don't update register information
7014 unless registers_too_p is true.
7015 (tui_print_frame_info_listing_hook): Rename to ...
7016 (tui_dummy_print_frame_info_listing_hook): ... this.
7017 (tui_before_prompt): New function.
7018 (tui_normal_stop): New function.
7019 (tui_before_prompt_observer): New observer.
7020 (tui_normal_stop_observer): New observer.
7021 (tui_install_hooks): Set
7022 deprecated_print_frame_info_listing_hook to
7023 tui_dummy_print_frame_info_listing_hook. Register
7024 tui_before_prompt_observer to call tui_before_prompt and
7025 tui_normal_stop_observer to call tui_normal_stop. Remove
7026 reference to deprecated_selected_frame_level_changed_hook.
7027 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7028 and tui_normal_stop_observer. Remove reference to
7029 deprecated_selected_frame_level_changed_hook.
7030
7031 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7032
7033 PR tui/13378
7034 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7035 return an int instead of void. Return whether the locator
7036 window has changed.
7037 (tui_show_frame_info): If the locator info has not changed, then
7038 bail out early to avoid refreshing the windows.
7039
7040 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7041
7042 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7043 LOCATOR_WIN to tui_alloc_content.
7044
7045 2015-06-30 Yao Qi <yao.qi@linaro.org>
7046
7047 PR tdep/18605
7048 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7049 instructions.
7050
7051 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7052
7053 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7054 (rx_dwarf_reg_to_regnum): New function.
7055 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7056 unwinding.
7057
7058 2015-06-29 Pedro Alves <palves@redhat.com>
7059
7060 PR threads/18127
7061 * infcall.c (run_inferior_call): On infcall success, if the thread
7062 was marked stopped before, reset it back to stopped.
7063 * infrun.c (resume): Don't suppress the set_running calls when
7064 doing an infcall.
7065 (normal_stop): Only discard the finish_thread_state cleanup if the
7066 infcall succeeded.
7067
7068 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7069
7070 * MAINTAINERS (Write After Approval): Update my email address.
7071
7072 2015-06-26 Keith Seitz <keiths@redhat.com>
7073 Doug Evans <dje@google.com>
7074
7075 PR 16253
7076 * block.c (block_lookup_symbol): For non-function blocks,
7077 continue to search for a symbol with an exact domain match
7078 Otherwise, return any previously found "best domain" symbol.
7079 (block_lookup_symbol_primary): Likewise.
7080
7081 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7082
7083 * NEWS: Mention the new option "history remove-duplicates".
7084 * top.c (history_remove_duplicates): New static variable.
7085 (show_history_remove_duplicates): New static function.
7086 (gdb_add_history): Conditionally remove duplicate history
7087 entries.
7088 (init_main): Add "history remove-duplicates" option.
7089
7090 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7091
7092 * tui/tui-win.c (focus_completer): New static function.
7093 (_initialize_tui_win): Set the completion function of the
7094 "focus" command to focus_completer.
7095
7096 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7099 and language_asm..
7100 * symtab.c (find_function_start_sal): Likewise.
7101
7102 2015-06-25 Gary Benson <gbenson@redhat.com>
7103
7104 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7105 it is the empty string after trailing slashes have been stripped.
7106
7107 2015-06-25 Gary Benson <gbenson@redhat.com>
7108
7109 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7110 * infrun.c (follow_exec): Likewise.
7111 * remote.c (remote_filesystem_is_local): Likewise.
7112 * solib.c (solib_find_1): Likewise.
7113
7114 2015-06-24 Keith Seitz <keiths@redhat.com>
7115
7116 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7117 return value from lrealpath.
7118
7119 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7120
7121 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7122
7123 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7124
7125 * remote-sim.c: Include gdb_bfd.h.
7126 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7127 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7128
7129 2015-06-24 Yao Qi <yao.qi@linaro.org>
7130
7131 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7132 set_gdbarch_get_siginfo_type.
7133 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7134 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7135 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7136 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7137 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7138 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7139 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7140 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7141 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7142 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7143
7144 2015-06-24 Gary Benson <gbenson@redhat.com>
7145
7146 * common/buffer.c (stdint.h): Do not include.
7147 * common/print-utils.c (stdint.h): Likewise.
7148 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7149 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7150 * ft32-tdep.c (gdb_assert.h): Likewise.
7151 * guile/scm-utils.c (stdint.h): Likewise.
7152 * i386-linux-tdep.c (stdint.h): Likewise.
7153 * i386-tdep.c (stdint.h): Likewise.
7154 * nat/linux-btrace.c (stdint.h): Likewise.
7155 * nat/linux-btrace.h (stdint.h): Likewise.
7156 * nat/linux-ptrace.c (stdint.h): Likewise.
7157 * nat/mips-linux-watch.h (stdint.h): Likewise.
7158 * ppc-linux-nat.c (stdint.h): Likewise.
7159 * python/python-internal.h (stdint.h): Likewise.
7160 * stub-termcap.c (stdlib.h): Likewise.
7161 * target/target.h (stdint.h): Likewise.
7162 * xtensa-linux-nat.c (stdint.h): Likewise.
7163
7164 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7165
7166 * top.c (init_history): Look at errno after calling strtol to
7167 properly map large GDBHISTSIZE values to infinity.
7168
7169 2015-06-23 Doug Evans <dje@google.com>
7170
7171 * inferior.h (struct inferior_suspend_state): Delete, unused.
7172 All references deleted.
7173
7174 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7175
7176 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7177 (microblaze_push_dummy_call): Likewise.
7178 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7179 and set_gdbarch_push_dummy_call.
7180
7181 2015-06-23 Yao Qi <yao.qi@linaro.org>
7182
7183 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7184 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7185 (amd64_linux_store_inferior_registers): Likewise.
7186 * arm-linux-nat.c (fetch_fpregister): Likewise.
7187 (fetch_fpregs, store_fpregister): Likewise.
7188 (store_fpregister, store_fpregs): Likewise.
7189 (fetch_register, fetch_regs): Likewise.
7190 (store_register, store_regs): Likewise.
7191 (fetch_vfp_regs, store_vfp_regs): Likewise.
7192 (arm_linux_read_description): Check have_ptrace_getregset is
7193 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7194 or TRIBOOL_FALSE.
7195 * i386-linux-nat.c (fetch_xstateregs): Check
7196 have_ptrace_getregset is not TRIBOOL_TRUE.
7197 (store_xstateregs): Likewise.
7198 * linux-nat.c (have_ptrace_getregset): Change its type to
7199 enum tribool.
7200 * linux-nat.h (tribool): New enum.
7201 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7202 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7203
7204 2015-06-19 Doug Evans <dje@google.com>
7205
7206 * NEWS: Mention Sun's version of stabs is no longer supported.
7207 * elfread.c (free_elfinfo): Delete. All uses updated.
7208 (elfstab_offset_sections): Delete. All uses updated.
7209 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7210 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7211 All uses updated.
7212 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7213 All callers updated.
7214
7215 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7216
7217 * common/rsp-low.c (needs_escaping): New.
7218 (remote_escape_output): Add unit_size parameter. Refactor to
7219 support multi-byte addressable units. Rename parameters.
7220 * common/rsp-low.h (remote_escape_output): Add unit_size
7221 parameter and rename others. Update doc.
7222 * remote.c (align_for_efficient_write): New.
7223 (remote_write_bytes_aux): Add unit_size parameter and use it.
7224 Rename some variables. Update doc.
7225 (remote_xfer_partial): Get unit size and use it.
7226 (remote_read_bytes_1): Add unit_size parameter and use it.
7227 Rename some variables. Update doc.
7228 (remote_write_bytes): Same.
7229 (remote_xfer_live_readonly_partial): Same.
7230 (remote_read_bytes): Same.
7231 (remote_flash_write): Update call to remote_write_bytes_aux.
7232 (remote_write_qxfer): Update call to remote_escape_output.
7233 (remote_search_memory): Same.
7234 (remote_hostio_pwrite): Same.
7235
7236 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7237
7238 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7239 locations as inserted.
7240 Update and expand comment about permanent locations.
7241 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7242 Move comment to add_location_to_breakpoint.
7243 (update_global_location_list): Don't error out if a permanent
7244 breakpoint is not marked inserted.
7245 Don't error out if a non-permanent breakpoint location is inserted on
7246 top of a permanent breakpoint.
7247
7248 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7249
7250 * breakpoint.c (make_breakpoint_permanent): Remove unused
7251 function.
7252 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7253
7254 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7255
7256 PR gdb/16999
7257 * NEWS: Mention new GDBHISTSIZE behavior.
7258 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7259 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7260
7261 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7262
7263 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7264 * top.c (init_history): Read from GDBHISTSIZE instead of
7265 HISTSIZE.
7266 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7267
7268 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7269
7270 * top.c (gdb_safe_append_history): Do not call
7271 history_truncate_file if the history is not stifled.
7272
7273 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7274
7275 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7276 * syscalls/s390x-linux.xml: Likewise.
7277
7278 2015-06-16 Michael Eager <eager@eagercon.com>
7279
7280 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7281
7282 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7283
7284 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7285 target_terminal_ours_for_output() before calling
7286 tui_show_frame_info(), and restore the original terminal
7287 settings afterwards.
7288
7289 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7290
7291 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7292
7293 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7294
7295 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7296 memory unit size.
7297 (mi_cmd_data_write_memory_bytes): Same.
7298
7299 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7300
7301 * corefile.c (write_memory): Update doc.
7302 * gdbcore.h (write_memory): Same.
7303
7304 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7307 (dump_mapping_p): Use it for parameter filterflags.
7308 (linux_find_memory_regions_full): Use it for variable filterflags.
7309
7310 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7311 Jan Kratochvil <jan.kratochvil@redhat.com>
7312
7313 Merge multiple hex conversions.
7314 * monitor.c: Include rsp-low.h.
7315 (fromhex): Remove definition.
7316
7317 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7318 Jan Kratochvil <jan.kratochvil@redhat.com>
7319
7320 Move utility functions to common/.
7321 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7322 Move defs to common/common-utils.c.
7323 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7324 (skip_to_space_const): Move decls to common/common-utils.h.
7325 * common/common-defs.h: Move include of common-types.h before
7326 common-utils.h.
7327 * common/common-utils.c: Include host-defs.h and ctype.h.
7328 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7329 from utils.c.
7330 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7331 cli/cli-utils.c.
7332 * common/common-utils.h (strtoulst): Move decl from utils.h.
7333 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7334 Move from cli/cli-utils.h.
7335 * common/host-defs.h: Include limits.h.
7336 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7337 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7338 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7339 common/common-utils.h.
7340 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7341 (strtoulst): Move to common/common-utils.c.
7342 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7343
7344 2015-06-15 Yao Qi <yao.qi@linaro.org>
7345
7346 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7347
7348 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7349
7350 * build-id.c: Don't include elf-bfd.h.
7351 (build_id_bfd_get): Use bfd_build_id.
7352 (build_id_verify): Ditto.
7353 * build-id.h: Ditto.
7354 (find_separate_debug_file_by_buildid): Ditto.
7355 * python/py-objfile.c: Don't include elf-bfd.h.
7356 (objfpy_get_build_id) Use bfd_build_id.
7357 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7358 * coffread.c: Include build-id.h.
7359 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7360
7361 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7362
7363 * windows-nat.c (do_windows_fetch_inferior_registers)
7364 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7365 conditional with __CYGWIN__.
7366
7367 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7368
7369 * completer.c: Add arch-utils.h include.
7370 (enum reg_completer_targets): New enum.
7371 (reg_or_group_completer_1): New function containing old
7372 reg_or_group_completer, add and use new parameter to control what
7373 is completed on. Use get_current_arch rather than architecture of
7374 currently selected frame.
7375 (reg_or_group_completer): Call new reg_or_group_completer_1.
7376 (reggroup_completer): Call new reg_or_group_completer_1.
7377 * completer.h (reggroup_completer): Add declaration.
7378 * tui/tui-regs.c: Add 'completer.h' include.
7379 (tui_reg_next_command): Renamed to...
7380 (tui_reg_next): ...this. Adjust parameters and return rather than
7381 display new group.
7382 (tui_reg_prev_command): Renamed to...
7383 (tui_reg_prev): ...this. Adjust parameters and return rather than
7384 display new group.
7385 (tui_reg_float_command): Delete.
7386 (tui_reg_general_command): Delete.
7387 (tui_reg_system_command): Delete.
7388 (tui_reg_command): Rewrite to perform switching of register group.
7389 Add header comment.
7390 (tuireglist): Remove.
7391 (tui_reggroup_completer): New function.
7392 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7393 creation of 'tui reg' command.
7394 * NEWS: Add comment about 'tui reg' changes.
7395
7396 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7397
7398 * target.c (target_read): Consider addressable unit size when
7399 reading from a memory object.
7400 (read_memory_robust): Same.
7401 (read_whatever_is_readable): Same.
7402 (target_write_with_progress): Consider addressable unit size
7403 when writing to a memory object.
7404 * target.h (target_read): Update documentation.
7405 (target_write): Add documentation.
7406
7407 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7408
7409 * arch-utils.h (default_addressable_memory_unit_size): New.
7410 * arch-utils.c (default_addressable_memory_unit_size): New.
7411 * gdbarch.sh (addressable_memory_unit_size): New.
7412 * gdbarch.h: Re-generate.
7413 * gdbarch.c: Re-generate.
7414
7415 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * target.c (target_read): Rename variables and use
7418 TARGET_XFER_E_IO.
7419 (target_read_with_progress): Same.
7420 (read_memory_robust): Constify parameters and rename
7421 variables.
7422 (read_whatever_is_readable): Constify parameters,
7423 rename variables, adjust formatting.
7424 * target.h (read_memory_robust): Constify parameters.
7425
7426 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7427
7428 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7429 synthetic (non-AltiVec) vector types.
7430 (ppc64_sysv_abi_return_value): Likewise.
7431
7432 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7433
7434 PR breakpoints/16465
7435 * breakpoint.c (create_breakpoint): Save extra_string for
7436 pending breakpoints.
7437
7438 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7439
7440 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7441 and bt_mask to CORE_ADDR.
7442
7443 2015-06-11 Gary Benson <gbenson@redhat.com>
7444
7445 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7446 (mnsh_recv_message): Likewise.
7447
7448 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7449
7450 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7451 long long int and plongest instead of %ll.
7452
7453 2015-06-11 Gary Benson <gbenson@redhat.com>
7454
7455 * nat/linux-namespaces.c (gdb_wait.h): New include.
7456 (sys/wait.h): Do not include.
7457
7458 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7459
7460 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7461 end_sequence is true.
7462
7463 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7464
7465 Code cleanup.
7466 * solib-target.c (library_list_start_list): Use explicit NULL
7467 comparison.
7468
7469 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7470
7471 * solib-target.c (library_list_start_list): Do not dereference
7472 variable version in its initialization. Make the VERSION check handle
7473 NULL.
7474 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7475
7476 2015-06-10 Gary Benson <gbenson@redhat.com>
7477
7478 * NEWS: Announce support for direct access of executable and
7479 shared library files when attaching to inferiors in containers
7480 on GNU/Linux systems.
7481
7482 2015-06-10 Gary Benson <gbenson@redhat.com>
7483
7484 * remote.c (struct remote_state) <fs_pid>: New field.
7485 (new_remote_state): Initialize the above.
7486 (PACKET_vFile_setfs): New enum value.
7487 (remote_hostio_set_filesystem): New function.
7488 (remote_hostio_open): Call the above.
7489 (remote_hostio_unlink): Likewise.
7490 (remote_hostio_readlink): Likewise.
7491 (_initialize_remote): Register new "set/show remote
7492 hostio-setfs-packet" command.
7493 * NEWS: Announce new vFile:setfs packet.
7494
7495 2015-06-10 Gary Benson <gbenson@redhat.com>
7496
7497 * linux-nat.c (nat/linux-namespaces.h): New include.
7498 (fileio.h): Likewise.
7499 (linux_nat_filesystem_is_local): New function.
7500 (linux_nat_fileio_pid_of): Likewise.
7501 (linux_nat_fileio_open): Likewise.
7502 (linux_nat_fileio_readlink): Likewise.
7503 (linux_nat_fileio_unlink): Likewise.
7504 (linux_nat_add_target): Initialize to_filesystem_is_local,
7505 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7506 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7507 commands.
7508 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7509
7510 2015-06-10 Gary Benson <gbenson@redhat.com>
7511
7512 * target.h (struct inferior): New forward declaration.
7513 (struct target_ops) <to_filesystem_is_local>: Update comment.
7514 (struct target_ops) <to_fileio_open>: New argument inf.
7515 Update comment. All implementations updated.
7516 (struct target_ops) <to_fileio_unlink>: Likewise.
7517 (struct target_ops) <to_fileio_readlink>: Likewise.
7518 (target_filesystem_is_local): Update comment.
7519 (target_fileio_open): New argument inf. Update comment.
7520 (target_fileio_unlink): Likewise.
7521 (target_fileio_readlink): Likewise.
7522 (target_fileio_read_alloc): Likewise.
7523 (target_fileio_read_stralloc): Likewise.
7524 * target.c (target_fileio_open): New argument inf.
7525 Pass inf to implementation. Update debug printing.
7526 (target_fileio_unlink): Likewise.
7527 (target_fileio_readlink): Likewise.
7528 (target_fileio_read_alloc_1): New argument inf. Pass inf
7529 to target_fileio_open.
7530 (target_fileio_read_alloc): New argument inf. Pass inf to
7531 target_fileio_read_alloc_1.
7532 (target_fileio_read_stralloc): Likewise.
7533 * gdb_bfd.c (inferior.h): New include.
7534 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7535 argument with new argument "inferior". Pass inferior to
7536 target_fileio_open.
7537 (gdb_bfd_open): Supply inferior argument to
7538 gdb_bfd_iovec_fileio_open.
7539 * linux-tdep.c (linux_info_proc): Supply inf argument to
7540 relevant target_fileio calls.
7541 (linux_find_memory_regions_full): Likewise.
7542 (linux_fill_prpsinfo): Likewise.
7543 * remote.c (remote_filesystem_is_local): Supply inf
7544 argument to remote_hostio_open.
7545 (remote_file_put): Likewise.
7546 (remote_file_get): Likewise.
7547 (remote_file_delete): Supply inf argument to
7548 remote_hostio_unlink.
7549
7550 2015-06-10 Gary Benson <gbenson@redhat.com>
7551
7552 * inf-child.c (inf_child_fileio_open): Replace comment.
7553 (inf_child_fileio_pwrite): Likewise.
7554 (inf_child_fileio_pread): Likewise.
7555 (inf_child_fileio_fstat): Insert blank line before comment.
7556 (inf_child_fileio_close): Replace comment.
7557 (inf_child_fileio_unlink): Likewise.
7558 (inf_child_fileio_readlink): Likewise.
7559 * remote.c (remote_hostio_open): Likewise.
7560 (remote_hostio_pread): Likewise.
7561 (remote_hostio_pwrite): Likewise.
7562 (remote_hostio_close): Likewise.
7563 (remote_hostio_unlink): Likewise.
7564 (remote_hostio_readlink): Likewise.
7565 (remote_hostio_fstat): Likewise.
7566 (remote_filesystem_is_local): Likewise.
7567 * target.c (target_fileio_open): Likewise.
7568 (target_fileio_pwrite): Likewise.
7569 (target_fileio_pread): Likewise.
7570 (target_fileio_fstat): Insert blank line before comment.
7571 (target_fileio_close): Replace comment.
7572 (target_fileio_unlink): Likewise.
7573 (target_fileio_readlink): Likewise.
7574 (target_fileio_read_alloc): Likewise.
7575 (target_fileio_read_stralloc): Likewise.
7576
7577 2015-06-10 Gary Benson <gbenson@redhat.com>
7578
7579 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7580 (check_pid_namespace_match): Use linux_ns_same rather than
7581 linux_proc_pid_get_ns to spot PID namespace mismatches.
7582 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7583 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7584
7585 2015-06-10 Gary Benson <gbenson@redhat.com>
7586
7587 * configure.ac (AC_CHECK_FUNCS): Add setns.
7588 * config.in: Regenerate.
7589 * configure: Likewise.
7590 * nat/linux-namespaces.h: New file.
7591 * nat/linux-namespaces.c: Likewise.
7592 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7593 (linux-namespaces.o): New rule.
7594 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7595 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7596 * config/arm/linux.mh (NATDEPFILES): Likewise.
7597 * config/i386/linux.mh (NATDEPFILES): Likewise.
7598 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7599 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7600 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7601 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7602 * config/mips/linux.mh (NATDEPFILES): Likewise.
7603 * config/pa/linux.mh (NATDEPFILES): Likewise.
7604 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7605 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7606 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7607 * config/s390/linux.mh (NATDEPFILES): Likewise.
7608 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7609 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7610 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7611 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7612
7613 2015-06-10 Gary Benson <gbenson@redhat.com>
7614
7615 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7616 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7617 (make_cleanup_close): Likewise.
7618 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7619 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7620 (make_cleanup_close): Likewise.
7621
7622 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7623
7624 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7625 from SuspendThread().
7626
7627 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7628
7629 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7630 from OutputDebugString.
7631
7632 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7633 Mircea Gherzan <mircea.gherzan@intel.com>
7634
7635 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7636 MPX_BT_MASK_32): New macros.
7637 (i386_mpx_set_bounds): New function that implements
7638 the command "set-mpx-bound".
7639 (i386_mpx_enabled): Helper function to test MPX availability.
7640 (i386_mpx_bd_base): Helper function to calculate the base directory
7641 address.
7642 (i386_mpx_get_bt_entry): Helper function to access a bound
7643 table entry.
7644 (i386_mpx_print_bounds): Effectively display bound information.
7645 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7646 "show mpx".
7647 (_initialize_i386_tdep):
7648 Add "bound" to the commands "show mpx" and "set mpx" commands.
7649 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7650 and "show mpx" commands.
7651 * NEWS: List new commands for MPX support.
7652
7653 2015-06-09 Gary Benson <gbenson@redhat.com>
7654
7655 * common/fileio.h (fileio_to_host_mode): New declaration.
7656 * common/fileio.c (fileio_to_host_mode): New Function.
7657 * inf-child.c (inf_child_fileio_open): Process mode argument
7658 with fileio_to_host_mode.
7659
7660 2015-06-09 Gary Benson <gbenson@redhat.com>
7661
7662 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7663 conditional.
7664
7665 2015-06-05 Gary Benson <gbenson@redhat.com>
7666
7667 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7668 * remote.c (remote_filesystem_is_local): ...here.
7669
7670 2015-06-04 Yao Qi <yao.qi@linaro.org>
7671
7672 * gdbarch.c: Regenerate it.
7673
7674 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7675
7676 * arch-utils.c (default_infcall_munmap): New.
7677 * arch-utils.h (default_infcall_munmap): New declaration.
7678 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7679 (munmap_list_free, munmap_listp_free_cleanup): New.
7680 (struct setup_sections_data): Add field munmap_list_headp.
7681 (setup_sections): Call munmap_list_add.
7682 (compile_object_load): New variable munmap_list_head, initialize
7683 setup_sections_data.munmap_list_headp, return munmap_list_head.
7684 * compile/compile-object-load.h (struct munmap_list): New declaration.
7685 (struct compile_module): Add field munmap_list_head.
7686 (munmap_list_free): New declaration.
7687 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7688 munmap_list_head.
7689 (do_module_cleanup): Call munmap_list_free.
7690 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7691 * gdbarch.c: Regenerate.
7692 * gdbarch.h: Regenerate.
7693 * gdbarch.sh (infcall_munmap): New.
7694 * linux-tdep.c (linux_infcall_munmap): New.
7695 (linux_init_abi): Install it.
7696
7697 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7698
7699 PR gdb/15564
7700 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7701
7702 2015-06-02 Yao Qi <yao.qi@linaro.org>
7703
7704 * i386-linux-nat.c: Include linux-nat.h.
7705
7706 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7707 Jan Kratochvil <jan.kratochvil@redhat.com>
7708
7709 PR symtab/18392
7710 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7711 assertion.
7712 * dwarf2loc.c (chain_candidate): Likewise.
7713
7714 2015-06-01 Yao Qi <yao.qi@linaro.org>
7715
7716 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7717 (store_vfp_regs): Use PTRACE_SETREGSET.
7718
7719 2015-06-01 Yao Qi <yao.qi@linaro.org>
7720
7721 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7722 (fetch_fpregs): Likewise.
7723 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7724 (store_fpregs): Likewise.
7725
7726 2015-06-01 Yao Qi <yao.qi@linaro.org>
7727
7728 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7729 (fetch_regs): Likewise.
7730 (store_regs): Use PTRACE_SETREGSET.
7731 (store_register): Likewise.
7732
7733 2015-06-01 Yao Qi <yao.qi@linaro.org>
7734
7735 * arm-linux-nat.c (arm_linux_read_description): Check whether
7736 kernel supports PTRACE_GETREGSET.
7737
7738 2015-06-01 Yao Qi <yao.qi@linaro.org>
7739
7740 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7741 * linux-nat.c: ... here.
7742 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7743 to ...
7744 * linux-nat.h: ... here.
7745
7746 2015-06-01 Yao Qi <yao.qi@linaro.org>
7747
7748 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7749 * i386-linux-nat.c: Likewise.
7750 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7751 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7752 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7753 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7754 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7755
7756 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7757
7758 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7759 compatible to what read_child and write_child return. This
7760 unbreaks that DJGPP build of GDB which was broken since v7.7.
7761
7762 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7763
7764 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7765
7766 2015-05-29 Roland McGrath <mcgrathr@google.com>
7767
7768 PR gdb/18464
7769 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7770 rather than internal_error for an unrecognized value.
7771
7772 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7773
7774 * xtensa-tdep.c (xtensa_pseudo_register_read)
7775 (xtensa_pseudo_register_write): Don't alias last pseudo register
7776 to a1.
7777
7778 2015-05-28 Don Breazeal <donb@codesourcery.com>
7779
7780 * infrun.c (follow_fork_inferior): Ensure the use of
7781 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7782 messages.
7783
7784 2015-05-28 Doug Evans <dje@google.com>
7785
7786 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7787
7788 2015-05-28 Yao Qi <yao.qi@linaro.org>
7789
7790 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7791 (arm_linux_fetch_inferior_registers): Use
7792 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7793 (arm_linux_store_inferior_registers): Likewise.
7794 (arm_linux_read_description): Don't set
7795 arm_linux_has_wmmx_registers.
7796 * arm-tdep.c (arm_gdbarch_init): Set
7797 tdep->have_wmmx_registers according target descriptions.
7798 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7799 field.
7800
7801 2015-05-28 Yao Qi <yao.qi@linaro.org>
7802
7803 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7804 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7805 instead of arm_linux_vfp_register_count.
7806 (store_vfp_regs): Likewise.
7807 (arm_linux_fetch_inferior_registers): Likewise.
7808 (arm_linux_store_inferior_registers): Likewise.
7809 (arm_linux_read_description): Don't set
7810 arm_linux_vfp_register_count.
7811 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7812 Adjust.
7813 * arm-tdep.c (arm_gdbarch_init): Add assert on
7814 vfp_register_count.
7815 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7816 field to vfp_register_count. All users updated.
7817
7818 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7819
7820 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7821 ELFOSABI_GNU binaries.
7822
7823 2015-05-27 Doug Evans <dje@google.com>
7824
7825 * dwarf2read.c (lnp_state_machine): New typedef.
7826 (lnp_reader_state): New typedef.
7827 (dwarf_record_line_1): Renamed from dwarf_record_line.
7828 All callers updated.
7829 (dwarf_record_line): New function.
7830 (init_lnp_state_machine): New function.
7831 (check_line_address): Replace p_record_line parameter with state.
7832 All callers updated.
7833 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7834 Update to record state in lnp_state_machine.
7835
7836 2015-05-27 Doug Evans <dje@google.com>
7837
7838 * dwarf2read.c (record_line_ftype): New typedef.
7839 (check_line_address): New function.
7840 (dwarf_decode_lines_1): Call it.
7841
7842 2015-05-27 Doug Evans <dje@google.com>
7843
7844 * NEWS: Mention "set debug dwarf-line".
7845 * dwarf2read.c (dwarf_line_debug): New static global.
7846 (add_include_dir): Add debug dwarf-line support.
7847 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7848 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7849
7850 2015-05-27 Doug Evans <dje@google.com>
7851
7852 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7853 All callers updated.
7854 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7855 * cp-support.h (cp_lookup_nested_symbol): Update.
7856
7857 2015-05-27 Doug Evans <dje@google.com>
7858
7859 PR symtab/18258
7860 * block.c (block_find_symbol): New function.
7861 (block_find_non_opaque_type): Ditto.
7862 (block_find_non_opaque_type_preferred): Ditto.
7863 * block.h (block_symbol_matcher_ftype): New typedef.
7864 (block_find_symbol): Declare.
7865 (block_find_non_opaque_type): Ditto.
7866 (block_find_non_opaque_type_preferred): Ditto.
7867 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7868 * psymtab.c (psym_lookup_symbol): Ditto.
7869 * symtab.c (basic_lookup_transparent_type_1): New function.
7870 (basic_lookup_transparent_type): Call it.
7871
7872 2015-05-27 Yao Qi <yao.qi@linaro.org>
7873
7874 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7875 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7876
7877 2015-05-27 Yao Qi <yao.qi@linaro.org>
7878
7879 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7880 before operator &&.
7881 (aarch64_record_load_store): Likewise.
7882
7883 2015-05-26 Doug Evans <dje@google.com>
7884
7885 PR c++/18141, c++/18417.
7886 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7887 a typedef.
7888
7889 2015-05-26 Doug Evans <dje@google.com>
7890
7891 * NEWS: Add entries for command renamings.
7892 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7893 All uses updated.
7894 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7895 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7896 All uses updated.
7897 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7898 All callers updated. Fix spelling of DWARF in help text.
7899 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7900 All uses updated.
7901 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7902 All uses updated.
7903 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7904 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7905 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7906 All uses updated.
7907 (show_dwarf_always_disassemble): Renamed from
7908 show_dwarf2_always_disassemble. All callers updated.
7909 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7910 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7911 "set/show dwarf max-cache-age". Rename
7912 "set/show dwarf2 always-disassemble" to
7913 "set/show dwarf always-disassemble". Rename
7914 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7915 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7916
7917 2015-05-26 Doug Evans <dje@google.com>
7918
7919 PR python/18438
7920 * python/py-lazy-string.c (stpy_convert_to_value): Use
7921 gdbpy_gdb_memory_error not PyExc_MemoryError.
7922 (gdbpy_create_lazy_string_object): Ditto.
7923
7924 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7927
7928 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7929
7930 * tui/tui-regs.c (tui_reg_prev_command): New function.
7931 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7932 * reggroups.c (reggroup_prev): New function.
7933 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7934
7935 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7936 Yao Qi <yao.qi@linaro.org>
7937
7938 * aarch64-linux-tdep.c: Include linux-record.h and
7939 record-full.h.
7940 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7941 (aarch64_syscall): New enum.
7942 (aarch64_canonicalize_syscall): New function.
7943 (aarch64_all_but_pc_registers_record): New function.
7944 (aarch64_linux_syscall_record): New function.
7945 (aarch64_linux_init_abi): Install AArch64 process record
7946 handler. Update to handle syscall recording.
7947 * aarch64-tdep.c: Include record.h and record-full.h.
7948 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7949 (struct aarch64_mem_r): Define.
7950 (aarch64_record_result): New enum.
7951 (struct insn_decode_record): Define.
7952 (insn_decode_record): New typedef.
7953 (aarch64_record_data_proc_reg): New function.
7954 (aarch64_record_data_proc_imm): New function.
7955 (aarch64_record_branch_except_sys): New function.
7956 (aarch64_record_load_store): New function.
7957 (aarch64_record_data_proc_simd_fp): New function.
7958 (aarch64_record_asimd_load_store): New function.
7959 (aarch64_record_decode_insn_handler): New function.
7960 (deallocate_reg_mem): New function.
7961 (aarch64_process_record): New function.
7962 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7963 New field.
7964 (aarch64_process_record): New extern declaration.
7965 * configure.tgt: Add linux-record.o to gdb_target_obs.
7966 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7967
7968 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7969
7970 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7971 targets.
7972
7973 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7974
7975 * amd64-tdep.c: Replace in_function_epilogue_p with
7976 stack_frame_destroyed_p throughout.
7977 * arch-utils.c: Ditto.
7978 * arch-utils.h: Ditto.
7979 * arm-tdep.c: Ditto.
7980 * breakpoint.c: Ditto.
7981 * gdbarch.sh: Ditto.
7982 * hppa-tdep.c: Ditto.
7983 * i386-tdep.c: Ditto.
7984 * mips-tdep.c: Ditto.
7985 * nios2-tdep.c: Ditto.
7986 * rs6000-tdep.c: Ditto.
7987 * s390-linux-tdep.c: Ditto.
7988 * score-tdep.c: Ditto.
7989 * sh-tdep.c: Ditto.
7990 * sparc-tdep.c: Ditto.
7991 * sparc-tdep.h: Ditto.
7992 * sparc64-tdep.c: Ditto.
7993 * spu-tdep.c: Ditto.
7994 * tic6x-tdep.c: Ditto.
7995 * tilegx-tdep.c: Ditto.
7996 * xstormy16-tdep.c: Ditto.
7997 * gdbarch.c, gdbarch.h: Re-generated.
7998
7999 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * NEWS: Mention 'tui enable' and 'tui disable'.
8002 * tui/tui.c (tui_enable_command): New function.
8003 (tui_disable_command): New function.
8004 (_initialize_tui): New function.
8005
8006 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8007
8008 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8009
8010 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8013 buf_ptr is freed.
8014
8015 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8018 into ...
8019 (tui_set_layout_for_display_command): ...here, before calling
8020 tui_set_layout. Only set the layout if gdb has not already
8021 entered the TUI_FAILURE state.
8022
8023 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * tui/tui-layout.c (layout_completer): New function.
8026 (_initialize_tui_layout): Set completer on layout command.
8027
8028 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * tui/tui-layout.c (tui_set_layout): Remove
8031 tui_register_display_type parameter. Remove all checking of this
8032 parameter, and reindent function. Update header comment.
8033 (tui_set_layout_for_display_command): Rename to...
8034 (tui_set_layout_by_name): ...this, and don't check for different
8035 register class types, don't pass a tui_register_display_type to
8036 tui_set_layout. Update header comment.
8037 (layout_names): Remove register set specific names.
8038 * tui/tui-layout.h (tui_set_layout): Remove
8039 tui_register_display_type parameter.
8040 * tui/tui.c (tui_rl_change_windows): Don't pass a
8041 tui_register_display_type to tui_set_layout.
8042 (tui_rl_delete_other_windows): Likewise.
8043 (tui_enable): Likewise.
8044 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8045 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8046 (TUI_GENERAL_REGS_NAME): Remove.
8047 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8048 (TUI_SPECIAL_REGS_NAME): Remove.
8049 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8050 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8051 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8052 (enum tui_register_display_type): Remove.
8053 (struct tui_layout_def): Remove regs_display_type and
8054 float_regs_display_type fields.
8055 (struct tui_data_info): Remove regs_display_type field.
8056 (tui_layout_command): Use new name for
8057 tui_set_layout_for_display_command.
8058 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8059 (tui_clear_win_detail): Don't initialise removed fields of
8060 win_info.
8061 * tui/tui-regs.c (tui_show_registers): Use new name for
8062 tui_set_layout_for_display_command.
8063 * tui/tui.h (tui_set_layout_for_display_command): Rename
8064 declaration to...
8065 (tui_set_layout_by_name): ...this.
8066 * printcmd.c (display_command): Remove tui related layout call,
8067 and reindent.
8068
8069 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8070
8071 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8072 (handle_inferior_event): New function.
8073
8074 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8075
8076 * ada-lang.c (to_fixed_array_type): Rename local variable
8077 typename into type_name.
8078
8079 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8080
8081 Fix ASAN crash for gdb.compile/compile.exp.
8082 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8083
8084 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8087 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8088 * compile/compile-object-load.c (setup_sections, compile_object_load):
8089 Likewise.
8090 * compile/compile.c (compile_to_object): Likewise.
8091
8092 2015-05-16 Doug Evans <xdje42@gmail.com>
8093
8094 * NEWS: Mention support for unbuffered Guile memory ports.
8095 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8096 (ioscm_lseek_address): Improve overflow calculation.
8097 (gdbscm_memory_port_fill_input): Add assert.
8098 (gdbscm_memory_port_write): Handle unbuffered ports.
8099 Handle large writes identical to Guile's fport_write.
8100 (gdbscm_memory_port_seek): Fix seeking past end check.
8101 (gdbscm_memory_port_close): Handle closing unbuffered port.
8102 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8103 (ioscm_init_memory_port): Handle unbuffered ports.
8104 (ioscm_reinit_memory_port): Ditto.
8105 (ioscm_init_memory_port): Update size calculation.
8106 (gdbscm_open_memory): Support zero sized ports.
8107
8108 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8109
8110 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8111 variable compiler warnings.
8112
8113 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8116
8117 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8118 Phil Muldoon <pmuldoon@redhat.com>
8119
8120 * NEWS (Changes since GDB 7.9): Add compile print.
8121 * compile/compile-c-support.c (add_code_header, add_code_footer)
8122 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8123 COMPILE_I_PRINT_VALUE_SCOPE.
8124 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8125 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8126 New.
8127 * compile/compile-object-load.c: Include block.h.
8128 (get_out_value_type): New function.
8129 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8130 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8131 OUT_VALUE_TYPE.
8132 * compile/compile-object-load.h (struct compile_module): Add fields
8133 out_value_addr and out_value_type.
8134 * compile/compile-object-run.c: Include valprint.h and compile.h.
8135 (struct do_module_cleanup): Add fields out_value_addr and
8136 out_value_type.
8137 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8138 COMPILE_I_PRINT_VALUE_SCOPE.
8139 (compile_object_run): Propagate out_value_addr and out_value_type.
8140 Pass OUT_VALUE_ADDR.
8141 * compile/compile.c: Include valprint.h.
8142 (compile_print_value, compile_print_command): New functions.
8143 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8144 (_initialize_compile): Update compile code help text. Install
8145 compile_print_command.
8146 * compile/compile.h (compile_print_value): New prototype.
8147 * defs.h (enum compile_i_scope_types): Add
8148 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8149
8150 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8151
8152 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8153 Rely on its parameter count.
8154 (compile_object_load): Replace lookup_minimal_symbol_text by
8155 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8156 return value.
8157 * compile/compile-object-load.h (struct compile_module): Replace
8158 func_addr by func_sym.
8159 * compile/compile-object-run.c: Include block.h.
8160 (compile_object_run): Reset module variable after it is freed. Use
8161 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8162
8163 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8164
8165 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8166 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8167 (c_compute_program): Call generate_register_struct after typedefs.
8168 * compile/compile-loc2c.c (push, pushf_register_address)
8169 (pushf_register): Cast to GCC_UINTPTR.
8170 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8171 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8172 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8173 * compile/compile.c (_initialize_compile): Enable warnings for
8174 COMPILE_ARGS.
8175
8176 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8177
8178 * cli/cli-script.c (execute_control_command): Update
8179 eval_compile_command caller.
8180 * compile/compile-object-load.c (compile_object_load): Add parameters
8181 scope and scope_data. Set them.
8182 * compile/compile-object-load.h (struct compile_module): Add fields
8183 scope and scope_data.
8184 (compile_object_load): Add parameters scope and scope_data.
8185 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8186 scope and scope_data.
8187 (compile_object_run): Propagate the fields scope and scope_data.
8188 * compile/compile.c (compile_file_command, compile_code_command):
8189 Update eval_compile_command callers.
8190 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8191 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8192 * defs.h (struct command_line): Add field scope_data.
8193
8194 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8195
8196 * printcmd.c (struct format_data): Move it to valprint.h.
8197 (print_command_parse_format, print_value): New functions from ...
8198 (print_command_1): ... here. Call them.
8199 * valprint.h (struct format_data): Move it here from printcmd.c.
8200 (print_command_parse_format, print_value): New declarations.
8201
8202 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8203
8204 * compile/compile-object-load.c (compile_object_load): Add
8205 COMPILE_DEBUG message.
8206
8207 2015-05-15 Jerome Guitton <guitton@adacore.com>
8208
8209 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8210 index to get element instead of enum value.
8211 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8212 of index to compute length, but enum values to compute bounds.
8213 (ada_array_length): Use enum position of index instead of enum value.
8214 (pos_atr): Move position computation to...
8215 (ada_evaluate_subexp): Use enum values to compute bounds.
8216 * gdbtypes.c (discrete_position): ...this new function.
8217 * gdbtypes.h (discrete_position): New function declaration.
8218 * valprint.c (val_print_array_elements): Call discrete_position
8219 to handle array indexed by non-contiguous enumeration types.
8220
8221 2015-05-15 Jerome Guitton <guitton@adacore.com>
8222
8223 * ada-lang.c (find_parallel_type_by_descriptive_type):
8224 Go through typedefs during lookup.
8225 (to_fixed_array_type): Add support for non-bit packed arrays
8226 as variable-length fields.
8227
8228 2015-05-15 Pedro Alves <palves@redhat.com>
8229 Simon Marchi <simon.marchi@ericsson.com>
8230
8231 * event-loop.c (gdb_notifier) <next_file_handler,
8232 next_poll_fds_index>: New fields.
8233 (get_next_file_handler_to_handle_and_advance): New function.
8234 (delete_file_handler): If deleting the next file handler to
8235 handle, advance to the next file handler.
8236 (gdb_wait_for_event): Bail early if no event fired. Poll file
8237 handlers in round-robin fashion.
8238
8239 2015-05-15 Pedro Alves <palves@redhat.com>
8240
8241 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8242 'private' to 'priv'.
8243
8244 2015-05-15 Pedro Alves <palves@redhat.com>
8245
8246 * nat/linux-nat.h: Include "target/waitstatus.h".
8247
8248 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8249
8250 * python/py-unwind.c (struct reg_info): Move out of ...
8251 (struct cached_frame_info): ... this scope.
8252 (pending_frame_object_type, unwind_info_object_type): Make extern.
8253
8254 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8255
8256 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8257 accumSize is never negative.
8258
8259 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8260
8261 * tui/tui-command.c: Remove include of <ctype.h>.
8262 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8263
8264 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8265
8266 * dwarf2read.c (die_needs_namespace): Return 1 for
8267 DW_TAG_inlined_subroutine.
8268
8269 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8270
8271 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8272 (regcache_cpy_no_passthrough): Make it static, add function comment.
8273 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8274 (regcache_cpy_no_passthrough): Remove declaration.
8275
8276 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8277
8278 * gdbthread.h (struct thread_control_state): Update comment for
8279 proceed_to_finish.
8280 * infcall.c (run_inferior_call): Update comment about
8281 proceed_to_finish.
8282 * infcmd.c (get_return_value): Update comment about stop_registers.
8283 (finish_forward): Update comment about proceed_to_finish.
8284 * infrun.c (stop_registers): Remove.
8285 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8286 * infrun.h (stop_registers): Remove.
8287
8288 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8289
8290 * infcall.c (struct dummy_frame_context_saver)
8291 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8292 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8293 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8294 New.
8295 (call_function_by_hand_dummy): Move discard_cleanups of
8296 inf_status_cleanup before dummy_frame_push. Call
8297 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8298 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8299 * infcall.h (struct dummy_frame_context_saver)
8300 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8301 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8302 New declarations.
8303 * infcmd.c: Include infcall.h.
8304 (get_return_value): Add parameter ctx_saver, use it instead of
8305 stop_registers.
8306 (print_return_value): Add parameter ctx_saver, pass it.
8307 (struct finish_command_continuation_args): Add field ctx_saver.
8308 (finish_command_continuation): Update print_return_value caller.
8309 (finish_command_continuation_free_arg): Free also ctx_saver.
8310 (finish_forward): Call dummy_frame_context_saver_setup.
8311 * inferior.h (struct dummy_frame_context_saver): New declaration.
8312 (get_return_value): Add parameter ctx_saver.
8313 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8314 get_return_value caller.
8315
8316 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8317
8318 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8319 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8320 (remove_dummy_frame): Process dtor_list.
8321 (pop_dummy_frame): Process dtor_list.
8322 (register_dummy_frame_dtor): Maintain dtor_list.
8323 (find_dummy_frame_dtor): Handle dtor_list.
8324 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8325 Update comments.
8326
8327 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8330 registers_valid.
8331 (compile_object_run): Update do_module_cleanup caller.
8332 * dummy-frame.c: Include infcall.h.
8333 (struct dummy_frame): Update dtor comment.
8334 (remove_dummy_frame): Call dtor.
8335 (pop_dummy_frame): Update dtor caller.
8336 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8337 registers_valid.
8338
8339 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8340
8341 GDB 7.9.1 released.
8342
8343 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8344
8345 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8346 Xmethods now being able to specify a result type to that new
8347 sectioin.
8348
8349 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8350
8351 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8352 first before resizing the window.
8353 * tui/tui.c (tui_enable): Likewise.
8354
8355 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8356
8357 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8358 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8359 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8360 dummy_dtor parameter.
8361 * infcall.h: Include dummy-frame.h.
8362 (call_function_by_hand_dummy_dtor_ftype): Remove.
8363 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8364 parameter.
8365
8366 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8367
8368 PR gdb/17820
8369 * top.c (history_size_setshow_var): Change type to signed.
8370 Initialize to -2. Update documentation.
8371 (set_readline_history_size): Define.
8372 (set_history_size_command): Use it. Remove logic for handling
8373 out-of-range sizes.
8374 (init_history): Use set_readline_history_size(). Test for a
8375 value of -2 instead of 0 when determining whether to set a
8376 default history size.
8377 (init_main): Decode the argument of the "size" command as a
8378 zuinteger_unlimited.
8379
8380 2015-05-12 Doug Evans <dje@google.com>
8381
8382 * dwarf2read.c (struct file_entry): Tweak comments.
8383 (get_debug_line_section): Tweak comments.
8384
8385 2015-05-12 Don Breazeal <donb@codesourcery.com>
8386
8387 * NEWS: Announce fork support in the RSP and support
8388 for fork debugging in extended mode.
8389
8390 2015-05-12 Don Breazeal <donb@codesourcery.com>
8391
8392 * remote.c (remote_insert_fork_catchpoint): New function.
8393 (remote_remove_fork_catchpoint): New function.
8394 (remote_insert_vfork_catchpoint): New function.
8395 (remote_remove_vfork_catchpoint): New function.
8396 (pending_fork_parent_callback): New function.
8397 (remove_new_fork_child): New function.
8398 (remote_update_thread_list): Call remote_notif_get_pending_events
8399 and remove_new_fork_child.
8400 (extended_remote_kill): Kill fork child when killing the
8401 parent before follow_fork completes.
8402 (init_extended_remote_ops): Initialize target vector with
8403 new fork catchpoint functions.
8404
8405 2015-05-12 Don Breazeal <donb@codesourcery.com>
8406
8407 * remote.c (remove_vfork_event_p): New function.
8408 (remote_follow_fork): Add vfork event type to event checking.
8409 (remote_parse_stop_reply): New stop reasons "vfork" and
8410 "vforkdone" for RSP 'T' Stop Reply Packet.
8411
8412 2015-05-12 Don Breazeal <donb@codesourcery.com>
8413
8414 * linux-nat.c (linux_nat_ptrace_options): New function.
8415 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8416 Call linux_nat_ptrace_options and use different argument to
8417 linux_enable_event_reporting.
8418 (_initialize_linux_nat): Delete call to
8419 linux_ptrace_set_additional_flags.
8420 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8421 supported_ptrace_options.
8422 (additional_flags): Delete variable.
8423 (linux_check_ptrace_features): Use supported_ptrace_options.
8424 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8425 Likewise, and remove additional_flags check.
8426 (linux_enable_event_reporting): Change 'attached' argument to
8427 'options'. Use supported_ptrace_options.
8428 (ptrace_supports_feature): Change comment. Use
8429 supported_ptrace_options.
8430 (linux_ptrace_set_additional_flags): Delete function.
8431 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8432 Delete function prototype.
8433 * remote.c (remote_fork_event_p): New function.
8434 (remote_detach_pid): New function.
8435 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8436 if doing detach-on-fork.
8437 (remote_follow_fork): New function.
8438 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8439 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8440 (init_extended_remote_ops): Initialize to_follow_fork.
8441
8442 2015-05-12 Don Breazeal <donb@codesourcery.com>
8443
8444 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8445 from static to extern.
8446 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8447 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8448 * PACKET_vfork_event_feature>: New enumeration constants.
8449 (remote_protocol_features): Add table entries for new packets.
8450 (remote_query_supported): Add new feature queries to qSupported
8451 packet.
8452
8453 2015-05-12 Gary Benson <gbenson@redhat.com>
8454
8455 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8456 for fake PIDs as well as real ones.
8457 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8458
8459 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8460
8461 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8462 * python/py-value.c (valpy_reference_value): New function.
8463 (valpy_const_value): Likewise.
8464 (value_object_methods): Add new methods.
8465 * value.c (make_cv_value): New function.
8466 * value.h (make_cv_value): Declare.
8467
8468 2015-05-08 Yao Qi <yao@codesourcery.com>
8469 Sandra Loosemore <sandra@codesourcery.com>
8470
8471 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8472 to 'lh->include_dirs' before accessing to it.
8473 (psymtab_include_file_name): Likewise.
8474 (dwarf_decode_lines_1): Likewise.
8475 (dwarf_decode_lines): Likewise.
8476 (file_file_name): Likewise.
8477
8478 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8479
8480 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8481 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8482 (nios2_linux_rt_sigreturn_init): Adjust base address of
8483 register save area.
8484
8485 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8486
8487 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8488 "trap 31" as the breakpoint instruction on all targets.
8489
8490 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8491
8492 * infcmd.c (print_return_value): Remove unused declaration.
8493
8494 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8495
8496 * dwarf2read.c (attr_to_dynamic_prop)
8497 <DW_AT_data_member_location>: Use read_type_die isntead of
8498 get_die_type.
8499
8500 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8501
8502 * ada-lang.c (ada_convert_actual): Add handling of formals
8503 passed inside an aligner type.
8504
8505 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8506
8507 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8508
8509 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8510
8511 PR python/18291
8512 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8513 Print xmethod matcher status.
8514
8515 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8516
8517 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8518 register in the regcache when treating the PSWM register, and vice
8519 versa.
8520
8521 2015-05-07 Gary Benson <gbenson@redhat.com>
8522
8523 * linux-thread-db.c (struct thread_db_info)
8524 <td_ta_map_id2thr_p>: Remove field.
8525 (try_thread_db_load_1): Remove initialization for the above.
8526
8527 2015-05-07 Gary Benson <gbenson@redhat.com>
8528
8529 * linux-thread-db.c (struct thread_db_info)
8530 <td_thr_validate_p>: Remove field.
8531 (try_thread_db_load_1): Remove initialization for the above.
8532
8533 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8534
8535 * compile/compile-object-load.c (compile_object_load): Support
8536 mst_text_gnu_ifunc.
8537
8538 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8539
8540 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8541 const. Use new variables for the const compatibility.
8542 (eval_compile_command): Make the cmd_string parameter const.
8543 * compile/compile.h (eval_compile_command): Make the cmd_string
8544 parameter const.
8545
8546 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8547
8548 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8549 comment.
8550 * top.c (deprecated_init_ui_hook): Delete.
8551 (gdb_init): Remove handling of deprecated_init_ui_hook.
8552 * interps.c (clear_interpreter_hooks): Remove handling of
8553 deprecated_init_ui_hook.
8554 * main.c (captured_main): Update comment.
8555
8556 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8557
8558 * solib.c (_initialize_solib): Add "info dll" alias creation.
8559 * windows-nat.c (set_windows_aliases): Delete.
8560 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8561 assignment.
8562 * NEWS: Add news entry about "info dll" now being available
8563 on all platforms.
8564
8565 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8566
8567 * ada-lang.c (value_assign_to_component): Reformat and improve
8568 documentation. Remove all trailing spaces.
8569
8570 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8571
8572 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8573 Stop counting inlined frames as soon as an out-of-line function
8574 is found.
8575
8576 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8577
8578 * dwarf2read.c (inherit_abstract_dies): Skip
8579 DW_TAG_GNU_call_site dies while inheriting children of an
8580 abstract DIE into a scope.
8581 (read_lexical_block_scope): Inherit abstract DIE's for
8582 lexical scopes.
8583
8584 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8585
8586 * ada-valprint.c (val_print_packed_array_elements): Delete
8587 variable "len". Add a type-length check when comparing two
8588 consecutive elements of the array. Use the element's actual
8589 length in call to value_contents_eq.
8590 * ada-lang.c (ada_value_primitive_packed_val): Always return
8591 a value whose type has been resolved.
8592
8593 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8594
8595 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8596 BIT_SIZE and LEN if the size of the resolved type is smaller
8597 than BIT_SIZE * HOST_CHAR_BIT.
8598
8599 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8600
8601 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8602 correct address in call to value_at. Adjust call to
8603 value_address accordingly.
8604
8605 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8606
8607 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8608 to print it.
8609
8610 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8611
8612 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8613 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8614 pinfo->valaddr.
8615 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8616 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8617 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8618 Add handling of addr_stack->valaddr.
8619 (resolve_dynamic_type): Add "valaddr" parameter.
8620 Set pinfo.valaddr field.
8621 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8622 resolve_dynamic_type.
8623 (ada_discrete_type_low_bound): Likewise.
8624 * findvar.c (default_read_var_value): Likewise.
8625 * value.c (value_from_contents_and_address): Likewise.
8626
8627 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8628
8629 * gdbtypes.c (resolve_dynamic_array): Use
8630 create_array_type_with_stride instead of create_array_type.
8631
8632 2015-04-30 DJ Delorie <dj@redhat.com>
8633
8634 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8635 rl78_decode_opcode
8636
8637 2015-04-29 Doug Evans <dje@google.com>
8638
8639 PR python/18285
8640 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8641 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8642 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8643 * extension-priv.h (struct extension_language_ops)
8644 <get_xmethod_result_type>: New member.
8645 * extension.c (get_xmethod_result_type): New function.
8646 * extension.h (get_xmethod_result_type): Declare.
8647 * python/py-xmethods.c (get_result_type_method_name): New static
8648 global.
8649 (py_get_result_type_method_name): Ditto.
8650 (gdbpy_get_xmethod_result_type): New function.
8651 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8652 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8653 * python/python.c (python_extension_ops): Add
8654 gdbpy_get_xmethod_result_type.
8655 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8656 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8657 xmethods.
8658 (value_x_unop): Ditto.
8659 * value.c (result_type_of_xmethod): New function.
8660 * value.h (result_type_of_xmethod): Declare.
8661
8662 2015-04-29 Gary Benson <gbenson@redhat.com>
8663
8664 * solib.c (solib_find_1): Allow fd argument to be NULL.
8665 (exec_file_find): Update comment.
8666 (solib_find): Likewise.
8667 * exec.c (exec_file_locate_attach): Use NULL as fd
8668 argument to exec_file_find to avoid having to close
8669 the opened file.
8670 * infrun.c (follow_exec): Likewise.
8671
8672 2015-04-28 Doug Evans <dje@google.com>
8673
8674 PR python/18299
8675 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8676 name or __name__ attributes. Handle gdb module as first argument.
8677
8678 2015-04-28 Doug Evans <dje@google.com>
8679
8680 PR python/18089
8681 * python/py-prettyprint.c (print_children): Verify result of children
8682 iterator. Provide better error message.
8683 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8684 * python/python.c (gdbpy_print_python_errors_p): New function.
8685
8686 2015-04-28 Doug Evans <dje@google.com>
8687
8688 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8689
8690 2015-04-28 Sasha Smundak <asmundak@google.com>
8691
8692 * NEWS: Mention gdb.Type.optimized_out method.
8693 * python/py-type.c (typy_optimized_out): New function.
8694
8695 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8696
8697 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8698
8699 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8700
8701 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8702 (initialize_utils): Move call of init_page_info() to ...
8703 * top.c (gdb_init): ... here.
8704
8705 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8706
8707 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8708 (tui_sigwinch_handler): Still update our idea of
8709 the terminal's width and height even when TUI is not active.
8710
8711 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8712
8713 * utils.h (set_screen_width_and_height): Declare.
8714 * utils.c (set_screen_width_and_height): Define.
8715 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8716
8717 2015-04-28 Gary Benson <gbenson@redhat.com>
8718
8719 * infrun.c (solist.h): New include.
8720 (follow_exec): Use exec_file_find to prefix execd_pathname
8721 with gdb_sysroot.
8722
8723 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8724
8725 * tui/tui-source.c (tui_set_source_content): Avoid calling
8726 strcpy() when offset is 0.
8727
8728 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8729
8730 PR gdb/18155
8731 * tui/tui-data.c (tui_free_window): Don't free the locator
8732 window when passed an SRC_WIN or a DISASSEM_WIN.
8733
8734 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8735
8736 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8737 (tui_win_content): Move declaration.
8738 (struct tui_gen_win_info): Give 'content' field the
8739 type tui_win_content.
8740 * tui/tui-data.c (init_content_element): Remove redundant and
8741 erroneous casts.
8742 (tui_add_content_elements): Remove erroneous cast.
8743 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8744 casts.
8745 (tui_get_begin_asm_address): Likewise.
8746 * tui/tui-regs.c (tui_show_registers): Likewise.
8747 (tui_show_register_group): Likewise.
8748 (tui_display_registers_from): Likewise.
8749 (tui_check_register_values): Likewise.
8750 * tui/tui-source.c (tui_set_source_content): Likewise.
8751 (tui_set_source_content_nil): Likewise.
8752 (tui_source_is_displayed): Likewise.
8753 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8754 (tui_set_locator_fullname): Likewise.
8755 (tui_set_locator_info): Likewise.
8756 (tui_show_frame_info): Likewise.
8757 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8758 (tui_show_source_line): Likewise.
8759 (tui_horizontal_source_scroll): Likewise.
8760 (tui_update_breakpoint_info): Likewise.
8761 (tui_set_exec_info_content): Likewise.
8762 (tui_show_exec_info_content): Likewise.
8763 (tui_alloc_source_buffer): Likewise.
8764 (tui_line_is_displayed): Likewise.
8765 (tui_addr_is_displayed): Likewise.
8766
8767 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8768
8769 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8770 event if PL_FLAG_EXEC is set.
8771 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8772 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8773 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8774 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8775 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8776
8777 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8778
8779 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8780 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8781 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8782 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8783 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8784 [PT_LWPINFO] (fbsd_wait): New function.
8785 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8786 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8787 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8788 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8789 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8790 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8791 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8792 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8793 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8794 "fbsd_wait".
8795 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8796 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8797 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8798 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8799 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8800 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8801 Set "to_post_attach" to "fbsd_post_attach".
8802
8803 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8804
8805 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8806 (fbsd_find_memory_regions): Mark static.
8807 (fbsd_nat_add_target): New function.
8808 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8809 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8810 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8811 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8812 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8813 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8814
8815 2015-04-27 Gary Benson <gbenson@redhat.com>
8816
8817 * objfiles.c (allocate_objfile): Do not attempt to expand name
8818 if name is a "target:" filename.
8819 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8820 to load auto-load scripts for objfiles with "target:" filenames.
8821
8822 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8823
8824 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8825 (enum s390_vector_abi_kind): New enum.
8826 (struct gdbarch_tdep)<vector_abi>: New field.
8827 (s390_effective_inner_type): Add parameter min_size. Stop
8828 unwrapping if the inner type is smaller than min_size.
8829 (s390_function_arg_float): Adjust call to
8830 s390_effective_inner_type.
8831 (s390_function_arg_vector): New function.
8832 (s390_function_arg_integer): Adjust comment.
8833 (struct s390_arg_state)<vr>: New field.
8834 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8835 arguments according to vector ABI when appropriate.
8836 (s390_push_dummy_call): Initialize the argument state's field
8837 'vr'. Adjust calls to s390_handle_arg.
8838 (s390_register_return_value): Handle vector return values.
8839 (s390_return_value): Apply the "register" return value convention
8840 to a vector when appropriate.
8841 (s390_gdbarch_init): Initialize tdep->vector_abi.
8842 * NEWS: Announce S390 vector ABI support.
8843
8844 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8845
8846 * s390-linux-tdep.c (s390_return_value_convention): Remove
8847 function. Inline its logic...
8848 (s390_return_value): ...here. Instead, move the handling of the
8849 "register" return value convention...
8850 (s390_register_return_value): ...here. New function.
8851
8852 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8853
8854 * s390-linux-tdep.c
8855 (is_float_singleton): Remove function. Move the "singleton" part
8856 of the logic...
8857 (s390_effective_inner_type): ...here. New function.
8858 (is_float_like): Remove function. Inline its logic...
8859 (s390_function_arg_float): ...here.
8860 (is_pointer_like, is_integer_like, is_struct_like): Remove
8861 functions. Inline their logic...
8862 (s390_function_arg_integer): ...here.
8863 (s390_function_arg_pass_by_reference): Remove function.
8864 (extend_simple_arg): Remove function.
8865 (alignment_of): Remove function.
8866 (struct s390_arg_state): New structure.
8867 (s390_handle_arg): New function.
8868 (s390_push_dummy_call): Move parameter placement logic to the new
8869 function s390_handle_arg. Call it for calculating the stack area
8870 sizes first, and again for actually writing the parameters.
8871
8872 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8873
8874 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8875 false if the argument is zero.
8876
8877 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8878
8879 * ada-lang.c (template_to_static_fixed_type): Return input type
8880 when it is already fixed. Cache the input type itself when not
8881 creating a static fixed copy. Make it explicit that we never
8882 molestate the input type.
8883 * gdbtypes.c (resolve_dynamic_struct): Reset the
8884 TYPE_TARGET_TYPE field for resolved copies.
8885
8886 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8887
8888 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8889 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8890 (template_to_static_fixed_type): Call ada_check_typedef only
8891 when necessary.
8892
8893 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8894
8895 * cli/cli-dump.c (srec_dump_command): Add internationalization
8896 mark ups.
8897 (ihex_dump_command): Likewise.
8898 (tekhex_dump_command): Likewise.
8899 (binary_dump_command): Likewise.
8900 (binary_append_command): Likewise.
8901
8902 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8903
8904 * cli/cli-dump.c (verilog_cmdlist): New variable.
8905 (dump_verilog_memory): New function.
8906 (dump_verilog_value): New function.
8907 (verilog_dump_command): New function.
8908 (_initialize_cli_dump): Add new commands to support verilog dump
8909 format.
8910 * NEWS: Add entry for "dump verilog".
8911
8912 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8913
8914 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8915 descriptive type when there is none.
8916
8917 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8918
8919 * tui/tui-win.c (tui_async_resize_screen): Call
8920 rl_resize_terminal().
8921
8922 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8923
8924 * windows-nat.c (handle_output_debug_string): Don't change
8925 current_event.dwThreadId.
8926 (get_windows_debug_event): Use thread_id, rather than relying on
8927 current_event.dwThreadId being changed.
8928
8929 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8930
8931 * windows-nat.c (windows_continue): Report an error if
8932 ContinueDebugEvent() fails.
8933
8934 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8935
8936 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8937
8938 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8939
8940 * windows-nat.c (get_windows_debug_event): Replace retval with
8941 thread_id throughout. Update stale comment.
8942
8943 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8944
8945 * windows-nat.c (get_windows_debug_event): Don't use ternary
8946 conditional operator.
8947
8948 2015-04-21 Pierre Muller <muller@sourceware.org>
8949
8950 PR pascal/17815
8951 p-exp.y (yylex): Reorganize code to return the matched pattern
8952 for a field of this.
8953
8954 2015-04-21 Gary Benson <gbenson@redhat.com>
8955
8956 * common/fileio.h (fileio_to_host_openflags): New declaration.
8957 * common/fileio.c (fcntl.h): New include.
8958 (fileio_to_host_openflags): New function, factored out from...
8959 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8960 Single use updated.
8961
8962 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8963
8964 * rl78-tdep.c (RL78_SP_ADDR): Define.
8965 (opc_reg_to_gdb_regnum): New static function.
8966 (rl78_analyze_prologue): Recognize instructions forming slightly
8967 more interesting prologues.
8968
8969 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8970
8971 Revert:
8972 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8973 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8974 TYPE_CODE_REF types so that they are not considered as dynamic
8975 depending on the referenced type.
8976 (resolve_dynamic_type_internal): Likewise.
8977
8978 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8979
8980 Revert:
8981 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8982 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8983 "top_level" parameter.
8984 (resolve_dynamic_type_internal): Remove the unused "top_level"
8985 parameter. Update call to is_dynamic_type_internal.
8986 (is_dynamic_type): Update call to is_dynamic_type_internal.
8987 (resolve_dynamic_range): Update call to
8988 resolve_dynamic_type_internal.
8989 (resolve_dynamic_union): Likewise.
8990 (resolve_dynamic_struct): Likewise.
8991 (resolve_dynamic_type): Likewise.
8992
8993 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8994
8995 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8996 xmalloc.
8997
8998 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8999
9000 * reply_mig_hack.awk: Robustify parsing.
9001
9002 * reply_mig_hack.awk: Don't bother to declare an intermediate
9003 function pointer variable.
9004
9005 2015-04-17 Doug Evans <dje@google.com>
9006
9007 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9008 to "exec_displacement" to avoid confusion with inner use of the name.
9009
9010 2015-04-17 Pedro Alves <palves@redhat.com>
9011
9012 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9013 if HW point of TYPE isn't supported.
9014
9015 2015-04-17 Yao Qi <yao.qi@linaro.org>
9016 Pedro Alves <palves@redhat.com>
9017
9018 * target.h (target_can_use_hardware_watchpoint): Update comments.
9019 Remove trailing ";".
9020
9021 2015-04-17 Gary Benson <gbenson@redhat.com>
9022
9023 * remote.c (remote_add_inferior): New argument try_open_exec.
9024 If nonzero, attempt to open the inferior's executable file as
9025 the main executable if no main executable is open already.
9026 All callers updated.
9027 * NEWS: Mention that GDB now supports automatic location and
9028 retrieval of executable + files from remote targets.
9029
9030 2015-04-17 Gary Benson <gbenson@redhat.com>
9031
9032 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9033 * remote.c (PACKET_qXfer_exec_file): Likewise.
9034 (remote_protocol_features): Register the
9035 "qXfer:exec-file:read" feature.
9036 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9037 (remote_pid_to_exec_file): New function.
9038 (init_remote_ops): Initialize to_pid_to_exec_file.
9039 (_initialize_remote): Register new "set/show remote
9040 pid-to-exec-file-packet" command.
9041 * NEWS: Announce new qXfer:exec-file:read packet.
9042
9043 2015-04-17 Gary Benson <gbenson@redhat.com>
9044
9045 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9046 New declaration.
9047 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9048 New function, factored out from...
9049 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9050
9051 2015-04-17 Gary Benson <gbenson@redhat.com>
9052
9053 * exec.c (solist.h): New include.
9054 (exec_file_locate_attach): Prefix absolute executable
9055 paths with gdb_sysroot if set.
9056 * NEWS: Mention that executable paths may be prepended
9057 with sysroot.
9058
9059 2015-04-17 Gary Benson <gbenson@redhat.com>
9060
9061 * solist.h (exec_file_find): New declaration.
9062 * solib.c (solib_find_1): New function, factored out from...
9063 (solib_find): ...here.
9064 (exec_file_find): New function.
9065
9066 2015-04-17 Gary Benson <gbenson@redhat.com>
9067
9068 * gdbcore.h (exec_file_locate_attach): New declaration.
9069 * exec.c (exec_file_locate_attach): New function, factored
9070 out from...
9071 * infcmd.c (attach_command_post_wait): ...here.
9072
9073 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9074
9075 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9076
9077 2015-04-16 Yao Qi <yao.qi@linaro.org>
9078
9079 * infrun.c (maybe_software_singlestep): Declare.
9080 (displaced_step_fixup): Call maybe_software_singlestep.
9081
9082 2015-04-15 Doug Evans <dje@google.com>
9083
9084 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9085
9086 2015-04-15 Doug Evans <dje@google.com>
9087
9088 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9089
9090 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9091
9092 * python/lib/gdb/command/unwinders.py: Add parentheses.
9093
9094 2015-04-15 Yao Qi <yao.qi@linaro.org>
9095
9096 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9097
9098 2015-04-15 Yao Qi <yao.qi@linaro.org>
9099
9100 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9101
9102 2015-04-15 Yao Qi <yao.qi@linaro.org>
9103
9104 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9105 dsc->insn_size instead of 4.
9106
9107 2015-04-14 Gary Benson <gbenson@redhat.com>
9108
9109 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9110 * minidebug.c (lzma_stat): Likewise.
9111 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9112 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9113
9114 2015-04-13 Stan Shebs <stanshebs@google.com>
9115
9116 * MAINTAINERS: Update my email address.
9117
9118 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9119
9120 * amd64-tdep.c (amd64_target_description): New function.
9121 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9122 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9123 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9124 x86 extended save area.
9125 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9126 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9127 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9128 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9129 "amd64fbsd_read_description".
9130 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9131 (amd64fbsd_supply_xstateregset): New function.
9132 (amd64fbsd_collect_xstateregset): New function.
9133 Add "amd64fbsd_xstateregset".
9134 (amd64fbsd_iterate_over_regset_sections): New function.
9135 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9136 "I386_FBSD_XSAVE_XCR0_OFFSET".
9137 Add "iterate_over_regset_sections" gdbarch method.
9138 Add "core_read_description" gdbarch method.
9139 * i386-tdep.c (i386_target_description): New function.
9140 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9141 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9142 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9143 x86 extended save area.
9144 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9145 * i386bsd-nat.h: Export i386bsd_xsave_len.
9146 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9147 (_initialize_i386fbsd_nat): Set "to_read_description" to
9148 "i386fbsd_read_description".
9149 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9150 (i386fbsd_core_read_description): New function.
9151 (i386fbsd_supply_xstateregset): New function.
9152 (i386fbsd_collect_xstateregset): New function.
9153 Add "i386fbsd_xstateregset".
9154 (i386fbsd_iterate_over_regset_sections): New function.
9155 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9156 "I386_FBSD_XSAVE_XCR0_OFFSET".
9157 Add "iterate_over_regset_sections" gdbarch method.
9158 Add "core_read_description" gdbarch method.
9159 * i386fbsd-tdep.h: New file.
9160
9161 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9162
9163 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9164 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9165 conditional.
9166 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9167 and lb.
9168 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9169 va.
9170 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9171 conditional.
9172 * defs.h (xdb_commands): Remove declaration.
9173 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9174 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9175 * infcmd.c (run_no_args_command, go_command): Remove.
9176 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9177 * infrun.c (xdb_handle_command): Remove.
9178 (_initialize_infrun): Remove xdb_commands for lz and z.
9179 * main.c (xdb_commands): Remove variable.
9180 (captured_main): Remove "xdb" from long_options.
9181 (print_gdb_help): Remove --xdb from help.
9182 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9183 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9184 * stack.c (backtrace_full_command, args_plus_locals_info)
9185 (current_frame_command): Remove.
9186 (_initialize_stack): Remove xdb_commands for t, T and l.
9187 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9188 * thread.c (_initialize_thread): Remove xdb_commands condition.
9189 * tui/tui-layout.c (tui_toggle_layout_command)
9190 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9191 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9192 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9193 (tui_scroll_regs_backward_command): Remove.
9194 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9195 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9196 (_initialize_tui_win): Remove xdb_commands for U and w.
9197 * utils.c (pagination_on_command, pagination_off_command): Remove.
9198 (initialize_utils): Remove xdb_commands for am and sm.
9199
9200 2015-04-10 Pedro Alves <palves@redhat.com>
9201
9202 * infrun.c (displaced_step_fixup): Switch to the event ptid
9203 earlier. If the thread stopped for a watchpoint and the
9204 target/arch has non-continuable watchpoints, cancel the displaced
9205 step.
9206 (resume): Don't start a displaced step if in-line step-over info
9207 is valid.
9208
9209 2015-04-10 Pedro Alves <palves@redhat.com>
9210
9211 * infrun.c (displaced_step_in_progress): New function.
9212 (do_target_resume): Advise target to report all signals if
9213 displaced stepping.
9214
9215 2015-04-10 Pedro Alves <palves@redhat.com>
9216
9217 PR gdb/18216
9218 * infrun.c (process_event_stop_test): Don't assume a step-resume
9219 is set if tp->stepped_breakpoint is true.
9220
9221 2015-04-10 Yao Qi <yao.qi@linaro.org>
9222
9223 * arm-tdep.c (install_alu_reg): Update comment.
9224 (thumb_copy_alu_reg): Remove local variable rn. Update
9225 debugging message. Use r2 instead of r1 in the modified
9226 instruction.
9227
9228 2015-04-10 Pedro Alves <palves@redhat.com>
9229
9230 PR gdb/13858
9231 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9232 linux_displaced_step_location as gdbarch_displaced_step_location
9233 hook.
9234 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9235 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9236 * linux-tdep.c (linux_displaced_step_location): New function,
9237 based on ppc_linux_displaced_step_location.
9238 * linux-tdep.h (linux_displaced_step_location): New declaration.
9239 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9240 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9241 Delete.
9242 (ppc_linux_init_abi): Install linux_displaced_step_location as
9243 gdbarch_displaced_step_location hook, even without Cell/B.E..
9244 (_initialize_ppc_linux_tdep): Don't install
9245 ppc_linux_inferior_created as inferior_created observer.
9246 * s390-linux-tdep.c (s390_gdbarch_init): Install
9247 linux_displaced_step_location as gdbarch_displaced_step_location
9248 hook.
9249
9250 2015-04-09 Gary Benson <gbenson@redhat.com>
9251
9252 * common/common-remote-fileio.h: Rename to...
9253 * common/fileio.h: ...this. Update all references.
9254 (remote_fileio_to_fio_error): Rename to...
9255 (host_to_fileio_error): ...this.
9256 (remote_fileio_to_be): Rename to...
9257 (host_to_bigendian): ...this. Update all callers.
9258 (remote_fileio_to_fio_uint): Rename to...
9259 (host_to_fileio_uint): ...this. Update all callers.
9260 (remote_fileio_to_fio_time): Rename to...
9261 (host_to_fileio_time): ...this. Update all callers.
9262 (remote_fileio_to_fio_stat): Rename to...
9263 (host_to_fileio_stat): ...this.
9264 Update all references.
9265 * common/common-remote-fileio.c: Rename to...
9266 * common/fileio.c: ...this. Update all references.
9267 (remote_fileio_to_fio_error): Rename to...
9268 (host_to_fileio_error): ...this. Update all callers.
9269 (remote_fileio_mode_to_target): Rename to...
9270 (fileio_mode_pack): ...this. Update all callers.
9271 (remote_fileio_to_fio_mode): Rename to...
9272 (host_to_fileio_mode): ...this. Update all callers.
9273 (remote_fileio_to_fio_ulong): Rename to...
9274 (host_to_fileio_ulong): ...this. Update all callers.
9275 (remote_fileio_to_fio_stat): Rename to...
9276 (host_to_fileio_stat): ...this. Update all callers.
9277
9278 2015-04-09 Andy Wingo <wingo@igalia.com>
9279
9280 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9281 (frame_functions): Bind gdbscm_frame_read_register to
9282 frame-read-register.
9283 * guile/lib/gdb.scm (frame-read-register): Export.
9284
9285 2015-04-09 Gary Benson <gbenson@redhat.com>
9286
9287 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9288 New declaration.
9289 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9290 New function, factored out the named functions below.
9291 * inf-child.c (gdb/fileio.h): Remove include.
9292 (common-remote-fileio.h): New include.
9293 (inf_child_errno_to_fileio_error): Remove function. Update
9294 all callers to use remote_fileio_to_fio_error.
9295 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9296
9297 2015-04-09 Andy Wingo <wingo@igalia.com>
9298
9299 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9300
9301 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9302
9303 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9304 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9305 * configure: Regenerated.
9306
9307 2015-04-09 Pedro Alves <palves@redhat.com>
9308
9309 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9310 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9311 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9312 * gnulib/import/Makefile.am: Update.
9313 * gnulib/import/Makefile.in: Update.
9314 * gnulib/import/m4/gnulib-cache.m4: Update.
9315 * gnulib/import/m4/gnulib-comp.m4: Update.
9316 * gnulib/import/m4/strtok_r.m4: New file.
9317 * gnulib/import/strtok_r.c: New file.
9318
9319 2015-04-09 Pedro Alves <palves@redhat.com>
9320
9321 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9322 "called too early to check prototype".
9323
9324 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9325
9326 PR python/16699
9327 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9328 use a caching mechanism. Adjust comments and code to reflect
9329 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9330 (cmdpy_completer_handle_brkchars): Adjust call to
9331 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9332 (cmdpy_completer): Likewise.
9333
9334 2015-04-08 Yao Qi <yao.qi@linaro.org>
9335
9336 * spu-tdep.c (spu_gdbarch_init): Don't call
9337 set_gdbarch_cannot_step_breakpoint.
9338
9339 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9342
9343 2015-04-07 Pedro Alves <palves@redhat.com>
9344
9345 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9346 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9347 (delete_exited_threads): New declaration.
9348 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9349 * linux-nat.c (linux_nat_update_thread_list): New function.
9350 (linux_nat_add_target): Install it.
9351 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9352 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9353 (delete_exited_threads): New function.
9354
9355 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9356
9357 * infrun.c (resume) <displaced stepping debug output>: Get the
9358 leader thread's regcache, not resume_ptid's.
9359
9360 2015-04-06 Doug Evans <xdje42@gmail.com>
9361
9362 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9363 VAR_DOMAIN.
9364 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9365 Include symbol domain in debugging output.
9366
9367 2015-04-06 Pedro Alves <palves@redhat.com>
9368 Bernd Edlinger <bernd.edlinger@hotmail.de>
9369
9370 * configure.ac: Remove the mingw32-specific stub-termcap.o
9371 fallback, and instead fallback to the stub termcap on all hosts.
9372 * configure: Regenerate.
9373 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9374 symbols.
9375
9376 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9377
9378 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9379 "top_level" parameter.
9380 (resolve_dynamic_type_internal): Remove the unused "top_level"
9381 parameter. Update call to is_dynamic_type_internal.
9382 (is_dynamic_type): Update call to is_dynamic_type_internal.
9383 (resolve_dynamic_range): Update call to
9384 resolve_dynamic_type_internal.
9385 (resolve_dynamic_union): Likewise.
9386 (resolve_dynamic_struct): Likewise.
9387 (resolve_dynamic_type): Likewise.
9388
9389 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9390
9391 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9392 TYPE_CODE_REF types so that they are not considered as dynamic
9393 depending on the referenced type.
9394 (resolve_dynamic_type_internal): Likewise.
9395
9396 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9397
9398 * Makefile.in (top_srcdir): New.
9399 * configure: Regenerated.
9400
9401 2015-04-02 Gary Benson <gbenson@redhat.com>
9402
9403 * NEWS: Announce the new default sysroot of "target:".
9404
9405 2015-04-02 Gary Benson <gbenson@redhat.com>
9406
9407 * main.c (captured_main): Set gdb_sysroot to "target:"
9408 if not otherwise set.
9409
9410 2015-04-02 Gary Benson <gbenson@redhat.com>
9411
9412 * exec.c (exec_file_attach): Support "target:" filenames.
9413
9414 2015-04-02 Gary Benson <gbenson@redhat.com>
9415
9416 * solib.c (solib_find): Strip "target:" prefix from sysroot
9417 if accessing local files.
9418
9419 2015-04-02 Gary Benson <gbenson@redhat.com>
9420
9421 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9422 checks and error messages.
9423
9424 2015-04-02 Gary Benson <gbenson@redhat.com>
9425
9426 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9427 (remote_filename_p): Remove declaration.
9428 (remote_bfd_open): Likewise.
9429 * remote.c (remote_bfd_iovec_open): Remove function.
9430 (remote_bfd_iovec_close): Likewise.
9431 (remote_bfd_iovec_pread): Likewise.
9432 (remote_bfd_iovec_stat): Likewise.
9433 (remote_filename_p): Likewise.
9434 (remote_bfd_open): Likewise.
9435 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9436 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9437 (gdb_bfd_open_maybe_remote): Remove function.
9438 (symfile_bfd_open): Replace remote filename check with
9439 target filename check.
9440 (reread_symbols): Use gdb_bfd_open.
9441 * build-id.c (gdbcore.h): New include.
9442 (build_id_to_debug_bfd): Use gdb_bfd_open.
9443 * infcmd.c (attach_command_post_wait): Remove remote filename
9444 check.
9445 * solib.c (solib_find): Replace remote-specific handling with
9446 target-specific handling. Update comments where necessary.
9447 (solib_bfd_open): Replace remote-specific handling with
9448 target-specific handling.
9449 (gdb_sysroot_changed): New function.
9450 (_initialize_solib): Call the above when gdb_sysroot changes.
9451 * windows-tdep.c (gdbcore.h): New include.
9452 (windows_xfer_shared_library): Use gdb_bfd_open.
9453
9454 2015-04-02 Gary Benson <gbenson@redhat.com>
9455
9456 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9457 (is_target_filename): New declaration.
9458 (gdb_bfd_has_target_filename): Likewise.
9459 (gdb_bfd_open): Update documentation comment.
9460 * gdb_bfd.c (target.h): New include.
9461 (gdb/fileio.h): Likewise.
9462 (is_target_filename): New function.
9463 (gdb_bfd_has_target_filename): Likewise.
9464 (fileio_errno_to_host): Likewise.
9465 (gdb_bfd_iovec_fileio_open): Likewise.
9466 (gdb_bfd_iovec_fileio_pread): Likewise.
9467 (gdb_bfd_iovec_fileio_close): Likewise.
9468 (gdb_bfd_iovec_fileio_fstat): Likewise.
9469 (gdb_bfd_open): Use target fileio to access paths prefixed
9470 with "target:" where necessary.
9471
9472 2015-04-02 Gary Benson <gbenson@redhat.com>
9473
9474 * target.h (struct target_ops) <to_filesystem_is_local>:
9475 New field.
9476 (target_filesystem_is_local): New macro.
9477 * target-delegates.c: Regenerate.
9478 * remote.c (remote_filesystem_is_local): New function.
9479 (init_remote_ops): Initialize to_filesystem_is_local.
9480
9481 2015-04-02 Gary Benson <gbenson@redhat.com>
9482
9483 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9484 (target_fileio_fstat): New declaration.
9485 * target.c (target_fileio_fstat): New function.
9486 * inf-child.c (inf_child_fileio_fstat): Likewise.
9487 (inf_child_target): Initialize to_fileio_fstat.
9488 * remote.c (init_remote_ops): Likewise.
9489
9490 2015-04-01 Sasha Smundak <asmundak@google.com>
9491
9492 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9493 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9494 (py-unwind.o): New recipe.
9495 * NEWS: mention Python frame unwinding.
9496 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9497 gdb/unwinder.py and gdb/command/unwinder.py
9498 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9499 list.
9500 (execute_unwinders): New function.
9501 * python/lib/gdb/command/unwinders.py: New file.
9502 * python/lib/gdb/unwinder.py: New file.
9503 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9504 (objfpy_dealloc): Decrement frame_unwinders reference count.
9505 (objfpy_initialize): Create frame_unwinders list.
9506 (objfpy_get_frame_unwinders): New function.
9507 (objfpy_set_frame_unwinders): Ditto.
9508 (objfile_getset): Add frame_unwinders attribute to Objfile.
9509 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9510 (pspy_dealloc): Decrement frame_unwinders reference count.
9511 (pspy_initialize): Create frame_unwinders list.
9512 (pspy_get_frame_unwinders): New function.
9513 (pspy_set_frame_unwinders): Ditto.
9514 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9515 * python/py-unwind.c: New file.
9516 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9517 (objpy_get_frame_unwinders): New prototype.
9518 (gdbpy_initialize_unwind): New prototype.
9519 * python/python.c (gdbpy_apply_type_printers): Call
9520 gdbpy_initialize_unwind.
9521
9522 2015-04-01 Pedro Alves <palves@redhat.com>
9523
9524 * infrun.c (resume): Check currently_stepping after clearing
9525 stepped_breakpoint, not before.
9526
9527 2015-04-01 Pedro Alves <palves@redhat.com>
9528
9529 * infrun.c (print_target_wait_results): Print all the ptid
9530 elements.
9531
9532 2015-04-01 Pedro Alves <palves@redhat.com>
9533
9534 * infrun.c (keep_going): Also discard cleanups if inserting
9535 breakpoints fails.
9536
9537 2015-04-01 Pedro Alves <palves@redhat.com>
9538
9539 * infrun.c (wait_for_inferior): Install the
9540 finish_thread_state_cleanup cleanup across the whole function, not
9541 just around handle_inferior_event.
9542
9543 2015-04-01 Pedro Alves <palves@redhat.com>
9544
9545 * infrun.c (resume) <step past permanent breakpoint>: Use
9546 do_target_resume.
9547
9548 2015-04-01 Pedro Alves <palves@redhat.com>
9549
9550 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9551
9552 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9553
9554 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9555
9556 2015-04-01 Pedro Alves <palves@redhat.com>
9557
9558 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9559 list if it was marked exited.
9560
9561 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9562
9563 * configure: Regenerated.
9564
9565 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9566 Jan Kratochvil <jan.kratochvil@redhat.com>
9567 Oleg Nesterov <oleg@redhat.com>
9568
9569 PR corefiles/16092
9570 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9571 New enum identifying the various options of the coredump_filter
9572 file.
9573 (struct smaps_vmflags): New struct.
9574 (use_coredump_filter): New variable.
9575 (decode_vmflags): New function.
9576 (mapping_is_anonymous_p): Likewise.
9577 (dump_mapping_p): Likewise.
9578 (linux_find_memory_regions_full): New variables
9579 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9580 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9581 parsing of its information. Implement memory mapping filtering
9582 based on its contents.
9583 (show_use_coredump_filter): New function.
9584 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9585 * NEWS: Mention the possibility of using the
9586 '/proc/PID/coredump_filter' file when generating a corefile.
9587 Mention new command 'set use-coredump-filter'.
9588
9589 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9590
9591 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9592 read_memory_unsigned_integer.
9593
9594 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9595
9596 * Makefile.in (ZLIB): New.
9597 (ZLIBINC): Likewise.
9598 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9599 (CLIBS): Add $(ZLIB).
9600 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9601 Add -lz to LIBS.
9602 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9603 * top.c (print_gdb_configuration): Remove --with-zlib and
9604 --without-zlib.
9605 * config.in: Regenerated.
9606 * configure: Likewise.
9607
9608 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609
9610 * NEWS: Mention info os cpus support.
9611 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9612 (struct osdata_type): Add cpus entry, reorder the entries in
9613 alphabetical order.
9614
9615 2015-03-31 Matthias Klose <doko@ubuntu.com>
9616
9617 * compile/compile.c (compile_to_object): Allow triplets with or
9618 without vendor set.
9619
9620 2015-03-30 Doug Evans <dje@google.com>
9621
9622 PR c++/18141
9623 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9624 klass in VAR_DOMAIN.
9625
9626 2015-03-30 Gary Benson <gbenson@redhat.com>
9627
9628 * remote.c (remote_mourn_1): Remove function. Update all callers
9629 to use remote_mourn.
9630 (extended_remote_mourn_1): Remove function. Update all callers
9631 to use extended_remote_mourn.
9632 (extended_remote_attach_1): Remove function. Update all callers
9633 to use extended_remote_attach.
9634
9635 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9636
9637 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9638 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9639 (ALLDEPFILES): Add ft32-tdep.c.
9640 * configure.tgt: Add FT32 entry.
9641 * ft32-tdep.c: New file, FT32 target-dependent code.
9642 * ft32-tdep.h: New file, FT32 target-dependent code.
9643
9644 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9645
9646 Revert:
9647 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9648 Code cleanup.
9649 * printcmd.c (print_command_1): Move expr variable scope.
9650
9651 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9652
9653 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9654
9655 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9656
9657 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9658 sections.
9659
9660 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9661
9662 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9663 exception raised while parsing the probe arguments.
9664 Force parsing to be done using the C language parser.
9665 * expression.h (parse_expression_with_language): Declare.
9666 * parse.c (parse_expression_with_language): New function.
9667
9668 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9669
9670 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9671
9672 2015-03-26 Andy Wingo <wingo@igalia.com>
9673
9674 PR symtab/18148
9675 * dwarf2read.c (struct partial_die_info): Add has_const_value
9676 member.
9677 (add_partial_symbol): Don't punt on symbols that have const_value
9678 attributes.
9679 (read_partial_die): Detect DW_AT_const_value.
9680
9681 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9682
9683 Code cleanup.
9684 * printcmd.c (print_command_1): Move expr variable scope.
9685
9686 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9687
9688 Code cleanup.
9689 * printcmd.c (validate_format): Make the parameter cmdname const.
9690
9691 2015-03-26 Don Breazeal <donb@codesourcery.com>
9692
9693 * remote.c (_initialize_remote): Update comment.
9694
9695 2015-03-26 Pedro Alves <palves@redhat.com>
9696 Jon TURNEY <jon.turney@dronecode.org.uk>
9697
9698 * coffread.c (coff_symfile_read): When constructing the name of an
9699 import stub symbol from import symbol for amd64, only skip the
9700 char after _imp_ if the target is underscored (like i386) and the
9701 char is indeed the target's leading char.
9702
9703 2015-03-25 Pedro Alves <palves@redhat.com>
9704
9705 * target.h <to_async>: Replace 'callback' and 'context' parameters
9706 with boolean 'enable' parameter.
9707 (target_async): Replace CALLBACK and CONTEXT parameters with
9708 boolean ENABLE parameter.
9709 * inf-loop.c (inferior_event_handler): Adjust.
9710 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9711 (linux_nat_resume): Adjust.
9712 (async_client_callback, async_client_context): Delete.
9713 (handle_target_event): Call inferior_event_handler directly.
9714 (linux_nat_async): Replace 'callback' and 'context' parameters
9715 with boolean 'enable' parameter. Adjust. Remove references to
9716 async_client_callback and async_client_context.
9717 (linux_nat_close): Adjust.
9718 * record-btrace.c (record_btrace_async): Replace 'callback' and
9719 'context' parameters with boolean 'enable' parameter. Adjust.
9720 (record_btrace_resume): Adjust.
9721 * record-full.c (record_full_async): Replace 'callback' and
9722 'context' parameters with boolean 'enable' parameter. Adjust.
9723 (record_full_resume, record_full_core_resume): Adjust.
9724 * remote.c (struct remote_state) <async_client_callback,
9725 async_client_context>: Delete fields.
9726 (remote_start_remote, extended_remote_attach_1, remote_resume)
9727 (extended_remote_create_inferior): Adjust.
9728 (remote_async_serial_handler): Call inferior_event_handler
9729 directly.
9730 (remote_async): Replace 'callback' and 'context' parameters with
9731 boolean 'enable' parameter. Adjust.
9732 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9733 Adjust.
9734 * target-delegates.c: Regenerate.
9735
9736 2015-03-25 Gary Benson <gbenson@redhat.com>
9737 Pedro Alves <palves@redhat.com>
9738
9739 * target.c (fileio_ft_t): New typedef, define object vector.
9740 (fileio_fhandles): New static variable.
9741 (is_closed_fileio_fh): New macro.
9742 (lowest_closed_fd): New static variable.
9743 (acquire_fileio_fd): New function.
9744 (release_fileio_fd): Likewise.
9745 (fileio_fd_to_fh): New macro.
9746 (target_fileio_open): Wrap the file descriptor on success.
9747 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9748 (target_fileio_pread): Likewise.
9749 (target_fileio_close): Likewise.
9750
9751 2015-03-24 Pedro Alves <palves@redhat.com>
9752
9753 * thread.c (thread_apply_all_command): Take exited threads into
9754 account.
9755
9756 2015-03-24 Pedro Alves <palves@redhat.com>
9757
9758 * infrun.c (resume, proceed): Mention
9759 switch_back_to_stepped_thread, not switch_back_to_stepping.
9760
9761 2015-03-24 Pedro Alves <palves@redhat.com>
9762
9763 * infrun.c (user_visible_resume_ptid): Rewrite going from
9764 most-locked to unlocked instead of the opposite. Move comment ...
9765 * infrun.h (user_visible_resume_ptid): ... here.
9766
9767 2015-03-24 Pedro Alves <palves@redhat.com>
9768
9769 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9770 to resume the event lwp. Use the lwp's ptid instead of the passed
9771 in (maybe wildcard) ptid.
9772 (stop_wait_callback): Tweak debug log output.
9773 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9774 TRAP_TRACE.
9775 (linux_nat_filter_event): In debug output, distinguish a
9776 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9777 before trying to resume the lwp.
9778
9779 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9780
9781 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9782 pointer indirection.
9783 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9784 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9785
9786 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9787
9788 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9789 Renames DYN_ATTR_DATA_LOCATION.
9790 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9791 DYN_ATTR_DATA_LOCATION.
9792 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9793 instead of DYN_ATTR_DATA_LOCATION.
9794
9795 2015-03-24 Pedro Alves <palves@redhat.com>
9796
9797 * breakpoint.c (until_break_command): Adjust call to proceed.
9798 * gdbthread.h (struct thread_control_state) <stepping_command>:
9799 New field.
9800 * infcall.c (run_inferior_call): Adjust call to proceed.
9801 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9802 Adjust calls to proceed.
9803 (set_step_frame): Set the current thread's step_start_function
9804 here.
9805 (step_once): Adjust calls to proceed.
9806 (jump_command, signal_command, until_next_command)
9807 (finish_backward, finish_forward, proceed_after_attach_callback)
9808 (attach_command_post_wait): Adjust calls to proceed.
9809 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9810 (do_target_resume): New function, factored out from ...
9811 (resume): ... here. Remove 'step' parameter. Instead, check
9812 currently_stepping to determine whether the thread should be
9813 single-stepped.
9814 (proceed): Remove 'step' parameter and don't set the thread's
9815 step_start_function here. Adjust call to 'resume'.
9816 (handle_inferior_event): Adjust calls to 'resume'.
9817 (switch_back_to_stepped_thread): Use do_target_resume instead of
9818 'resume'.
9819 (keep_going): Adjust calls to 'resume'.
9820 * infrun.h (proceed): Remove 'step' parameter.
9821 (resume): Likewise.
9822 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9823 'resume'.
9824 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9825
9826 2015-03-24 Pedro Alves <palves@redhat.com>
9827
9828 * gdbthread.h (struct thread_control_state) <stepping_command>:
9829 New field.
9830 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9831 the thread's stepping_command field.
9832 * infrun.c (resume): Check the thread's stepping_command flag to
9833 determine which threads should be resumed. Rename 'entry_step'
9834 local to user_step.
9835 (clear_proceed_status_thread): Clear 'stepping_command'.
9836 (schedlock_applies): Change parameter type to struct thread_info
9837 pointer. Adjust.
9838 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9839 (switch_back_to_stepped_thread): Adjust calls to
9840 'schedlock_applies'.
9841 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9842
9843 2015-03-24 Pedro Alves <palves@redhat.com>
9844
9845 * infrun.c (step_start_function): Delete and ...
9846 * gdbthread.h (struct thread_control_state) <step_start_function>:
9847 ... now a field here.
9848 * infrun.c (clear_proceed_status_thread): Clear the thread's
9849 step_start_function.
9850 (proceed, process_event_stop_test, print_stop_event): Adjust.
9851
9852 2015-03-24 Pedro Alves <palves@redhat.com>
9853
9854 * infrun.c (proceed): No longer handle negative step.
9855
9856 2015-03-24 Gary Benson <gbenson@redhat.com>
9857
9858 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9859 (x86_linux_prepare_to_resume): Likewise.
9860 * x86-linux-nat.c (x86_linux_new_thread):
9861 Moved to nat/x86-linux.c.
9862 (x86_linux_prepare_to_resume): Likewise.
9863 * nat/x86-linux.c (x86_linux_new_thread): New function.
9864 (x86_linux_prepare_to_resume): Likewise.
9865
9866 2015-03-24 Gary Benson <gbenson@redhat.com>
9867
9868 * nat/x86-linux-dregs.h: New file.
9869 * nat/x86-linux-dregs.c: Likewise.
9870 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9871 (x86-linux-dregs.o): New rule.
9872 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9873 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9874 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9875 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9876 (x86_linux_dr_get): Likewise.
9877 (x86_linux_dr_set): Likewise.
9878 (x86_linux_dr_get_addr): Likewise.
9879 (x86_linux_dr_get_control): Likewise.
9880 (x86_linux_dr_get_status): Likewise.
9881 (update_debug_registers_callback): Likewise.
9882 (x86_linux_dr_set_control): Likewise.
9883 (x86_linux_dr_set_addr): Likewise.
9884 (x86_linux_update_debug_registers): Likewise.
9885
9886 2015-03-24 Gary Benson <gbenson@redhat.com>
9887
9888 * x86-linux-nat.c (x86_linux_update_debug_registers):
9889 New function, factored out from...
9890 (x86_linux_prepare_to_resume): ...this.
9891
9892 2015-03-24 Gary Benson <gbenson@redhat.com>
9893
9894 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9895 (x86_linux_dr_set): Likewise.
9896 (x86_linux_dr_get_addr): Likewise.
9897 (x86_linux_dr_get_control): Likewise.
9898 (x86_linux_dr_get_status): Likewise.
9899 (update_debug_registers_callback): Likewise.
9900 (x86_linux_dr_set_control): Likewise.
9901 (x86_linux_dr_set_addr): Likewise.
9902 (x86_linux_prepare_to_resume): Likewise.
9903 (x86_linux_new_thread): Likewise.
9904
9905 2015-03-24 Gary Benson <gbenson@redhat.com>
9906
9907 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9908 (x86_linux_new_thread): Rename argument.
9909
9910 2015-03-24 Gary Benson <gbenson@redhat.com>
9911
9912 * nat/x86-linux.h: New file.
9913 * nat/x86-linux.c: Likewise.
9914 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9915 (x86-linux.o): New rule.
9916 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9917 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9918 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9919 (lwp_set_arch_private_info): New declaration.
9920 (lwp_arch_private_info): Likewise.
9921 * linux-nat.c (lwp_set_arch_private_info): New function.
9922 (lwp_arch_private_info): Likewise.
9923 * x86-linux-nat.c: Include nat/x86-linux.h.
9924 (arch_lwp_info): Removed structure.
9925 (update_debug_registers_callback):
9926 Use lwp_set_debug_registers_changed.
9927 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9928 and lwp_set_debug_registers_changed.
9929 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9930
9931 2015-03-24 Gary Benson <gbenson@redhat.com>
9932
9933 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9934 (lwp_is_stopped): Likewise.
9935 (lwp_stop_reason): Likewise.
9936 * linux-nat.c (ptid_of_lwp): New function.
9937 (lwp_is_stopped): Likewise.
9938 (lwp_is_stopped_by_watchpoint): Likewise.
9939 * x86-linux-nat.c (update_debug_registers_callback):
9940 Use lwp_is_stopped.
9941 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9942 lwp_stop_reason.
9943
9944 2015-03-24 Gary Benson <gbenson@redhat.com>
9945
9946 * linux-nat.h (linux_stop_lwp): Move declaration to...
9947 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9948
9949 2015-03-24 Gary Benson <gbenson@redhat.com>
9950
9951 * linux-nat.h: Include nat/linux-nat.h.
9952 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9953 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9954 (iterate_over_lwps_ftype): New typedef.
9955 (iterate_over_lwps): New declaration.
9956 * linux-nat.h (iterate_over_lwps): Update comment. Use
9957 iterate_over_lwps_ftype. Update callback return value check.
9958
9959 2015-03-24 Gary Benson <gbenson@redhat.com>
9960
9961 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9962 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9963
9964 2015-03-24 Gary Benson <gbenson@redhat.com>
9965
9966 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9967 * linux-nat.c (current_lwp_ptid): New function.
9968 * x86-linux-nat.c: Include nat/linux-nat.h.
9969 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9970 (x86_linux_dr_get_control): Likewise.
9971 (x86_linux_dr_get_status): Likewise.
9972 (x86_linux_dr_set_control): Likewise.
9973 (x86_linux_dr_set_addr): Likewise.
9974
9975 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9976
9977 PR breakpoints/16466
9978 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9979
9980 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9981
9982 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9983 * ser-unix.c (hardwire_setparity): Likewise.
9984
9985 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9986
9987 * NEWS: Mention set/show serial parity command.
9988 * monitor.c (monitor_open): Call serial_setparity.
9989 * remote.c (remote_open_1): Likewise.
9990 * ser-base.c (ser_base_serparity): New function.
9991 * ser-base.h (ser_base_setparity): Add declaration.
9992 * ser-go32.c (dos_ops): Set "setparity" field.
9993 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9994 state.Parity.
9995 (ser_windows_setparity): New function.
9996 (hardwire_ops): Add ser_windows_setparity.
9997 (tty_ops): Add NULL for setparity field.
9998 (pipe_ops): Add ser_base_setparity.
9999 (tcp_ops): Likewise.
10000 * ser-pipe.c (pipe_ops): Likewise.
10001 * ser-tcp.c (tcp_ops): Likewise.
10002 * ser-unix.c (hardwire_setparity): Add declaration.
10003 (hardwire_raw): Don't reset PARENB flag.
10004 (hardwire_setparity): New function.
10005 (hardwire_ops): Add hardwire_setparity.
10006 * serial.c (serial_setparity): New function.
10007 (serial_parity): New global.
10008 (parity_none, parity_odd, parity_even, parity_enums, parity):
10009 New static globals.
10010 (set_parity): New function.
10011 (_initialize_serial): Add set/show serial parity commands.
10012 * serial.h (GDBPARITY_NONE): Define.
10013 (GDBPARITY_ODD): Define.
10014 (GDBPARITY_EVEN): Define.
10015 (serial_setparity) Add declaration.
10016 (struct serial_ops): Add setparity field.
10017 * target.h (serial_parity): Add declaration.
10018
10019 2015-03-23 Keith Seitz <keiths@redhat.com>
10020
10021 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10022
10023 2015-03-23 Keith Seitz <keiths@redhat.com>
10024
10025 * breakpoint.c (parse_breakpoint_sals): Use
10026 linespec_lexer_lex_keyword to ascertain if the user specified
10027 a NULL location.
10028 * linespec.c [IF_KEYWORD_INDEX]: Define.
10029 (linespec_lexer_lex_keyword): Export.
10030 (struct ls_parser) <keyword_ok>: Remove.
10031 A keyword is only a keyword if not followed by another keyword.
10032 (linespec_lexer_lex_one): Remove keyword_ok handling.
10033 Add comment explaining why the parsing stream is not advanced
10034 when a keyword is seen.
10035 (parse_linespec): Remove parser->keyword_ok.
10036 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10037
10038 2015-03-23 Keith Seitz <keiths@redhat.com>
10039
10040 PR gdb/18021
10041 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10042 if we find a static method with DW_AT_vtable_elem_location.
10043
10044 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10045
10046 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10047 before the second loop, to avoid undefined behavior. Reported by
10048 Anton Blanchard <anton@samba.org>.
10049
10050 2015-03-20 Keven Boell <keven.boell@intel.com>
10051
10052 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10053 data_location usage to linked list.
10054 (resolve_dynamic_type_internal): Adapt data_location to
10055 linked list.
10056 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10057 (copy_type_recursive, copy_type): Add copy of linked list.
10058 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10059 (struct dynamic_prop_list): New struct.
10060 * dwarf2read.c (set_die_type): Set data_location data.
10061
10062 2015-03-20 Pedro Alves <palves@redhat.com>
10063
10064 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10065 inner block and make it const.
10066 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10067
10068 2015-03-20 Pedro Alves <palves@redhat.com>
10069
10070 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10071 * breakpoint.h (set_breakpoint_condition): Update declaration.
10072
10073 2015-03-20 Pedro Alves <palves@redhat.com>
10074
10075 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10076
10077 2015-03-20 Pedro Alves <palves@redhat.com>
10078
10079 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10080
10081 2015-03-20 Pedro Alves <palves@redhat.com>
10082
10083 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10084
10085 2015-03-20 Pedro Alves <palves@redhat.com>
10086
10087 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10088 (nto_init_solib_absolute_prefix): Likewise.
10089
10090 2015-03-20 Pedro Alves <palves@redhat.com>
10091
10092 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10093 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10094
10095 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 * config/djgpp/README: Remove gdb.hp.
10098
10099 2015-03-20 Yao Qi <yao.qi@linaro.org>
10100
10101 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10102 set_gdbarch_cannot_step_breakpoint.
10103
10104 2015-03-19 Pedro Alves <palves@redhat.com>
10105
10106 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10107 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10108 instead call perror_with_name.
10109 (check_ptrace_stopped_lwp_gone): New function.
10110 (linux_resume_one_lwp): Reimplement as wrapper around
10111 linux_resume_one_lwp_throw that swallows errors if the LWP is
10112 gone.
10113 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10114 swallows errors if the LWP is gone. Use
10115 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10116
10117 2015-03-19 Pedro Alves <palves@redhat.com>
10118
10119 * linux-nat.c (status_callback): Return early if the LWP has no
10120 status pending.
10121
10122 2015-03-19 Pedro Alves <palves@redhat.com>
10123
10124 * linux-nat.c (select_event_lwp_callback): Update comment to no
10125 longer mention SIGTRAP.
10126
10127 2015-03-18 Tristan Gingold <gingold@adacore.com>
10128
10129 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10130 redirection code to ...
10131 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10132 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10133
10134 2015-03-18 Gary Benson <gbenson@redhat.com>
10135
10136 (remote_protocol_features): Remove the "vFile:fstat" feature.
10137 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10138
10139 2015-03-11 Yao Qi <yao.qi@linaro.org>
10140
10141 PR tdep/18107
10142 * aarch64-linux-tdep.c: Include xml-syscall.h
10143 (aarch64_linux_get_syscall_number): New function.
10144 (aarch64_linux_init_abi): Call
10145 set_gdbarch_get_syscall_number.
10146 * syscalls/aarch64-linux.xml: New file.
10147
10148 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10149
10150 * ser-base.h (ser_base_setstopbits): Change second argument name
10151 from "rate" to "num".
10152
10153 2015-03-17 Gary Benson <gbenson@redhat.com>
10154 Luke Allardyce <lukeallardyce@gmail.com>
10155
10156 PR gdb/18131
10157 * common/common-remote-fileio.h (sys/stat.h): New include.
10158 (stuct stat): Remove forward declaration.
10159
10160 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10161
10162 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10163 before writing core register notes.
10164
10165 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10166 Pedro Alves <palves@redhat.com>
10167
10168 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10169 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10170 (tgoto): Wrap with extern "C".
10171
10172 2015-03-16 Pedro Alves <palves@redhat.com>
10173 Yuanhui Zhang <asmwarrior@gmail.com>
10174
10175 * stub-termcap.c (tputs): Change prototype.
10176
10177 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10178 Pedro Alves <palves@redhat.com>
10179
10180 * windows-nat.c (struct thread_info_struct): Rename to ...
10181 (struct windows_thread_info_struct): ... this.
10182 (thread_info): Rename to ...
10183 (windows_thread_info): ... this.
10184 All users updated.
10185
10186 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10187 Pedro Alves <palves@redhat.com>
10188
10189 * NEWS: New Removed targets and native configurations.
10190
10191 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10192
10193 Remove HPUX.
10194 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10195 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10196 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10197 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10198 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10199 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10200 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10201 hppa-hpux-tdep.c.
10202 * config/ia64/hpux.mh: Remove file.
10203 * config/pa/hpux.mh: Remove file.
10204 * configure: Rebuilt.
10205 * configure.ac (dlgetmodinfo, somread.o): Remove.
10206 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10207 (ia64-*-hpux*): Remove its float format exception.
10208 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10209 * hppa-hpux-nat.c: Remove file.
10210 * hppa-hpux-tdep.c: Remove file.
10211 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10212 Move them here from hppa-tdep.h
10213 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10214 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10215 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10216 Move them to hppa-tdep.c.
10217 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10218 declarations.
10219 * ia64-hpux-nat.c: Remove file.
10220 * ia64-hpux-tdep.c: Remove file.
10221 * ia64-hpux-tdep.h: Remove file.
10222 * inf-ttrace.c: Remove file.
10223 * inf-ttrace.h: Remove file.
10224 * solib-ia64-hpux.c: Remove file.
10225 * solib-ia64-hpux.h: Remove file.
10226 * solib-pa64.c: Remove file.
10227 * solib-pa64.h: Remove file.
10228 * solib-som.c: Remove file.
10229 * solib-som.h: Remove file.
10230 * somread.c: Remove file.
10231
10232 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10233
10234 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10235 * config.in: Regenerate.
10236 * configure: Regenerate.
10237 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10238 define.
10239 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10240 enumerate memory regions if present.
10241
10242 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10243
10244 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10245 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10246 expressions.
10247 (i386fbsd_sigtramp_p): Likewise.
10248
10249 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10250
10251 * MAINTAINERS (Write After Approval): Add John Baldwin.
10252
10253 2015-03-12 Gary Benson <gbenson@redhat.com>
10254
10255 * solib.c (_initialize_solib): Make "set/show sysroot" use
10256 add_setshow_optional_filename_cmd so it can be restored to
10257 empty after being set.
10258
10259 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10260
10261 * Makefile.in (SFILES): New source break-catch-syscall.c.
10262 (COMMON_OBS): New object break-catch-syscall.o.
10263 * break-catch-syscall.c: New file.
10264 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10265 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10266 (struct syscall_catchpoint): Likewise.
10267 (dtor_catch_syscall): Likewise.
10268 (catch_syscall_inferior_data): Likewise.
10269 (struct catch_syscall_inferior_data): Likewise.
10270 (get_catch_syscall_inferior_data): Likewise.
10271 (catch_syscall_inferior_data_cleanup): Likewise.
10272 (insert_catch_syscall): Likewise.
10273 (remove_catch_syscall): Likewise.
10274 (breakpoint_hit_catch_syscall): Likewise.
10275 (print_it_catch_syscall): Likewise.
10276 (print_one_catch_syscall): Likewise.
10277 (print_mention_catch_syscall): Likewise.
10278 (print_recreate_catch_syscall): Likewise.
10279 (catch_syscall_breakpoint_ops): Likewise.
10280 (syscall_catchpoint_p): Likewise.
10281 (create_syscall_event_catchpoint): Likewise.
10282 (catch_syscall_split_args): Likewise.
10283 (catch_syscall_command_1): Likewise.
10284 (is_syscall_catchpoint_enabled): Likewise.
10285 (catch_syscall_enabled): Likewise.
10286 (catching_syscall_number): Likewise.
10287 (catch_syscall_completer): Likewise.
10288 (clear_syscall_counts): Likewise.
10289 (initialize_breakpoint_ops): Move initialization of syscall
10290 catchpoints to break-catch-syscall.c.
10291 (_initialize_breakpoint): Move code related to syscall catchpoints
10292 to break-catch-syscall.c.
10293
10294 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10295
10296 * breakpoint.c (breakpoint_find_if): New function.
10297 * breakpoint.h (breakpoint_find_if): New prototype.
10298
10299 2015-03-11 Gary Benson <gbenson@redhat.com>
10300
10301 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10302 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10303 (remote_fileio_to_host_ulong): Likewise.
10304 (remote_fileio_to_host_mode): Likewise.
10305 (remote_fileio_to_host_time): Likewise.
10306 (remote_fileio_to_host_stat): Likewise.
10307 * remote.c (PACKET_vFile_fstat): New enum value.
10308 (remote_protocol_features): Register the "vFile:fstat" feature.
10309 (remote_hostio_fstat): New function.
10310 (remote_bfd_iovec_stat): Use the above.
10311 (_initialize_remote): Register new "set/show remote
10312 hostio-fstat-packet" command.
10313 * symfile.c (separate_debug_file_exists): Update comment.
10314 * NEWS: Announce new vFile:fstat packet.
10315
10316 2015-03-11 Gary Benson <gbenson@redhat.com>
10317
10318 * common/common-remote-fileio.h: New file.
10319 * common/common-remote-fileio.c: Likewise.
10320 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10321 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10322 (COMMON_OBS): Add common-remote-fileio.o.
10323 (common-remote-fileio.o): New rule.
10324 * remote-fileio.h (common-remote-fileio.h): New include.
10325 * remote-fileio.c (gdb/fileio.h): Do not include.
10326 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10327 (remote_fileio_to_fio_uint): Likewise.
10328 (remote_fileio_to_fio_time): Likewise.
10329 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10330 (remote_fileio_to_fio_mode): Likewise.
10331 (remote_fileio_to_fio_ulong): Likewise.
10332 (remote_fileio_to_fio_stat): Likewise.
10333
10334 2015-03-11 Andy Wingo <wingo@igalia.com>
10335
10336 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10337 we were checking the cached type, not the cached dynamic type.
10338
10339 2015-03-11 Andy Wingo <wingo@igalia.com>
10340
10341 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10342 other strings, as these are on the GC'd heap, and will be
10343 collected along with the smob.
10344
10345 2015-03-11 Andy Wingo <wingo@igalia.com>
10346
10347 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10348 (objfile_functions): Bind gdbscm_objfile_progspace to
10349 objfile-progspace.
10350 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10351
10352 2015-03-11 Andy Wingo <wingo@igalia.com>
10353
10354 * guile/guile.c (_initialize_guile): Disable automatic
10355 finalization, if Guile offers us that possibility.
10356 * guile/guile.c (call_initialize_gdb_module):
10357 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10358 finalizers in appropriate places.
10359 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10360 scm_set_automatic_finalization_enabled.
10361 * configure: Regenerated.
10362
10363 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10364
10365 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10366 SAL, if possible.
10367
10368 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10369
10370 * s390-linux-nat.c (struct arch_lwp_info): New.
10371 (s390_fix_watch_points): Rename to...
10372 (s390_prepare_to_resume): ...this. Skip the PER info update
10373 unless the watch points have changed.
10374 (s390_refresh_per_info, s390_new_thread): New functions.
10375 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10376 s390_fix_watch_points.
10377 (s390_remove_watchpoint): Likewise.
10378 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10379 Register s390_prepare_to_resume.
10380
10381 2015-03-09 Pedro Alves <palves@redhat.com>
10382
10383 Revert:
10384 2015-03-07 Pedro Alves <palves@redhat.com>
10385 * common/gdb_socket.h: New file.
10386 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10387 sys/socket.h.
10388 (net_open): Use union gdb_sockaddr_u.
10389
10390 2015-03-07 Pedro Alves <palves@redhat.com>
10391
10392 * configure.ac (build_warnings): Move -Wmissing-prototypes
10393 -Wdeclaration-after-statement -Wmissing-parameter-type
10394 -Wold-style-declaration -Wold-style-definition to the C-specific
10395 set.
10396 * configure: Regenerate.
10397
10398 2015-03-07 Pedro Alves <palves@redhat.com>
10399
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 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10408 (exceptions_state_mc_action_iter)
10409 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10410 Don't define.
10411 [__cplusplus] (try_scope_depth): New global.
10412 [__cplusplus] (exception_try_scope_entry)
10413 (exception_try_scope_exit, gdb_exception_sliced_copy)
10414 (exception_rethrow): New functions.
10415 (throw_exception): In C++ mode, throw
10416 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10417 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10418 (throw_it): In C++ mode, use try_scope_depth.
10419 * common/common-exceptions.h [!__cplusplus]
10420 (exceptions_state_mc_action_iter)
10421 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10422 Don't declare.
10423 [__cplusplus] (exception_try_scope_entry)
10424 (exception_try_scope_exit, exception_rethrow): Declare.
10425 [__cplusplus] (struct exception_try_scope): New struct.
10426 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10427 C++ exceptions.
10428 (struct gdb_exception_RETURN_MASK_ALL)
10429 (struct gdb_exception_RETURN_MASK_ERROR)
10430 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10431
10432 2015-03-07 Pedro Alves <palves@redhat.com>
10433
10434 * main.c (handle_command_errors): Remove volatile qualifier from
10435 parameter.
10436
10437 2015-03-07 Pedro Alves <palves@redhat.com>
10438
10439 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10440 TRY and CATCH.
10441 * gdbtypes.c (safe_parse_type): Remove empty line.
10442 (types_deeply_equal):
10443 * guile/scm-frame.c (gdbscm_frame_name):
10444 * linux-thread-db.c (find_new_threads_once):
10445 * python/py-breakpoint.c (bppy_get_commands):
10446 * record-btrace.c (record_btrace_insert_breakpoint)
10447 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10448 (record_btrace_start_replaying): Adjust to avoid code between TRY
10449 and CATCH.
10450
10451 2015-03-07 Pedro Alves <palves@redhat.com>
10452
10453 * common/common-exceptions.c (struct catcher) <exception>: No
10454 longer a pointer to volatile exception. Now an exception value.
10455 <mask>: Delete field.
10456 (exceptions_state_mc_init): Remove all parameters. Adjust.
10457 (exceptions_state_mc): No longer pop the catcher here.
10458 (exceptions_state_mc_catch): New function.
10459 (throw_exception): Adjust.
10460 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10461 all parameters.
10462 (exceptions_state_mc_catch): Declare.
10463 (TRY_CATCH): Rename to ...
10464 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10465 (CATCH, END_CATCH): New.
10466 All callers adjusted.
10467
10468 2015-03-07 Tom Tromey <tromey@redhat.com>
10469
10470 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10471
10472 2015-03-07 Pedro Alves <palves@redhat.com>
10473
10474 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10475 (amd64_epilogue_frame_cache): Normal exception handling code.
10476 * break-catch-throw.c (check_status_exception_catchpoint)
10477 (re_set_exception_catchpoint): Ditto.
10478 * cli/cli-interp.c (safe_execute_command):
10479 * cli/cli-script.c (script_from_file): Ditto.
10480 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10481 Ditto.
10482 * compile/compile-object-run.c (compile_object_run): Ditto.
10483 * cp-abi.c (baseclass_offset): Ditto.
10484 * cp-valprint.c (cp_print_value): Ditto.
10485 * exceptions.c (catch_exceptions_with_msg):
10486 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10487 * frame.c (get_frame_address_in_block_if_available): Ditto.
10488 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10489 (i386_sigtramp_frame_cache): Ditto.
10490 * infcmd.c (post_create_inferior): Ditto.
10491 * linespec.c (parse_linespec, find_linespec_symbols):
10492 * p-valprint.c (pascal_object_print_value): Ditto.
10493 * parse.c (parse_expression_for_completion): Ditto.
10494 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10495 * remote.c (remote_get_noisy_reply): Ditto.
10496 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10497 * solib-svr4.c (solib_svr4_r_map): Ditto.
10498
10499 2015-03-06 Gary Benson <gbenson@redhat.com>
10500
10501 * common/common-utils.h (startswith): New inline function.
10502 All places where this logic was used updated to use the above.
10503
10504 2015-03-05 Pedro Alves <palves@redhat.com>
10505
10506 PR gdb/18002
10507 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10508 after reading the breakpoint's shadow memory.
10509
10510 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10511
10512 * hppabsd-nat.c: Remove file.
10513 * hppaobsd-nat.c: New file.
10514 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10515 hppaobsd-nat.c.
10516 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10517 hppaobsd-nat.o.
10518
10519 2015-03-04 Pedro Alves <palves@redhat.com>
10520
10521 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10522 (target_decr_pc_after_break): Delete declaration.
10523 * target.c (default_target_decr_pc_after_break)
10524 (target_decr_pc_after_break): Delete.
10525 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10526 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10527 * linux-thread-db.c (check_event): Likewise.
10528 * infrun.c (adjust_pc_after_break): Likewise.
10529 * darwin-nat.c (cancel_breakpoint): Likewise.
10530 * aix-thread.c (aix_thread_wait): Likewise.
10531 * target-delegates.c: Regenerate.
10532
10533 2015-03-04 Pedro Alves <palves@redhat.com>
10534
10535 * linux-nat.c (save_sigtrap): Check for breakpoints before
10536 checking watchpoints.
10537 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10538 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10539 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10540 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10541 (linux_nat_stopped_by_sw_breakpoint)
10542 (linux_nat_supports_stopped_by_sw_breakpoint)
10543 (linux_nat_stopped_by_hw_breakpoint)
10544 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10545 (linux_nat_wait_1): Don't re-increment the PC if relying on
10546 SIGTRAP's siginfo->si_code.
10547 (linux_nat_add_target): Install new target methods.
10548 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10549 offset if the target already adjusted the PC.
10550 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10551 (GDB_ARCH_TRAP_BRKPT): New.
10552 (TRAP_HWBKPT): Define if not already defined.
10553
10554 2015-03-04 Pedro Alves <palves@redhat.com>
10555
10556 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10557 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10558 Delete field.
10559 <stop_reason>: New field.
10560 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10561 (packet_set_cmd_state): New function.
10562 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10563 features.
10564 (remote_query_supported): If not disabled with the corresponding
10565 "set remote foo-packet" command, report support for the swbreak
10566 and hwbreak features.
10567 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10568 field.
10569 <stop_reason>: New field.
10570 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10571 (remote_wait_as): Adjust.
10572 (remote_stopped_by_sw_breakpoint)
10573 (remote_supports_stopped_by_sw_breakpoint)
10574 (remote_stopped_by_hw_breakpoint)
10575 (remote_supports_stopped_by_hw_breakpoint): New functions.
10576 (remote_stopped_by_watchpoint): New function.
10577 (init_remote_ops): Install them.
10578 (_initialize_remote): Register new "set/show remote
10579 swbreak-feature-packet" and "set/show remote
10580 swbreak-feature-packet" commands.
10581
10582 2015-03-04 Pedro Alves <palves@redhat.com>
10583
10584 * btrace.h: Include target/waitstatus.h.
10585 (struct btrace_thread_info) <stop_reason>: New field.
10586 * record-btrace.c (record_btrace_step_thread): Use
10587 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10588 (record_btrace_decr_pc_after_break): Delete.
10589 (record_btrace_stopped_by_sw_breakpoint)
10590 (record_btrace_supports_stopped_by_sw_breakpoint)
10591 (record_btrace_stopped_by_hw_breakpoint)
10592 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10593 (init_record_btrace_ops): Install them.
10594 * record-full.c (record_full_hw_watchpoint): Delete and replace
10595 with ...
10596 (record_full_stop_reason): ... this throughout.
10597 (record_full_exec_insn): Adjust.
10598 (record_full_wait_1): Adjust. No longer re-increment the PC.
10599 (record_full_wait_1): Adjust. Use
10600 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10601 (record_full_stopped_by_watchpoint): Adjust.
10602 (record_full_stopped_by_sw_breakpoint)
10603 (record_full_supports_stopped_by_sw_breakpoint)
10604 (record_full_supports_stopped_by_sw_breakpoint)
10605 (record_full_stopped_by_hw_breakpoint)
10606 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10607 (init_record_full_ops, init_record_full_core_ops): Install them.
10608 * record.c (record_check_stopped_by_breakpoint): New function.
10609 * record.h: Include target/waitstatus.h.
10610 (record_check_stopped_by_breakpoint): New declaration.
10611
10612 2015-03-04 Pedro Alves <palves@redhat.com>
10613
10614 enum lwp_stop_reason -> enum target_stop_reason
10615 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10616 (linux_nat_stopped_by_watchpoint, status_callback)
10617 (linux_nat_wait_1): Adjust.
10618 * linux-nat.h (enum lwp_stop_reason): Delete.
10619 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10620 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10621 * target/waitstatus.h (enum target_stop_reason): New.
10622
10623 2015-03-04 Pedro Alves <palves@redhat.com>
10624
10625 * breakpoint.c (need_moribund_for_location_type): New function.
10626 (bpstat_stop_status): Don't skipping checking moribund locations
10627 of breakpoint types which the target tell caused a stop.
10628 (program_breakpoint_here_p): New function, factored out from ...
10629 (bp_loc_is_permanent): ... this.
10630 (update_global_location_list): Don't create a moribund location if
10631 the target supports reporting stops of the type of the removed
10632 breakpoint.
10633 * breakpoint.h (program_breakpoint_here_p): New declaration.
10634 * infrun.c (adjust_pc_after_break): Return early if the target has
10635 already adjusted the PC. Add comments.
10636 (handle_signal_stop): If nothing explains a signal, and the target
10637 tells us the stop was caused by a software breakpoint, check if
10638 there's a breakpoint instruction in the memory. If so, adjust the
10639 PC before presenting the stop to the user. Otherwise, ignore the
10640 trap. If nothing explains a signal, and the target tells us the
10641 stop was caused by a hardware breakpoint, ignore the trap.
10642 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10643 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10644 to_supports_stopped_by_hw_breakpoint>: New fields.
10645 (target_stopped_by_sw_breakpoint)
10646 (target_supports_stopped_by_sw_breakpoint)
10647 (target_stopped_by_hw_breakpoint)
10648 (target_supports_stopped_by_hw_breakpoint): Define.
10649 * target-delegates.c: Regenerate.
10650
10651 2015-03-04 Pedro Alves <palves@redhat.com>
10652
10653 * infrun.c (follow_fork_inferior): Use the whole of the
10654 inferior_ptid and pending_follow.related_pid ptids instead of
10655 building ptids from the process components. Adjust verbose output
10656 to use target_pid_to_str.
10657 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10658 inferior_ptid and pending_follow.related_pid ptids instead of
10659 building ptids from the process components.
10660
10661 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10662
10663 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10664 (inf_ptrace_insert_fork_catchpoint): New function.
10665 (inf_ptrace_remove_fork_catchpoint): New function.
10666 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10667
10668 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10669
10670 * s390-linux-tdep.c (s390_register_name): Return empty string
10671 instead of NULL for registers that shouldn't be visible.
10672
10673 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10674
10675 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10676 XML file for 64-bit targets.
10677
10678 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10679
10680 * target.h (find_default_create_inferior): Remove declaration.
10681 (find_default_attach): Likewise.
10682
10683 2015-03-03 Pedro Alves <palves@redhat.com>
10684
10685 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10686 Use ptid_get_pid to get the overall process id when resuming all
10687 threads.
10688
10689 2015-03-03 Pedro Alves <palves@redhat.com>
10690
10691 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10692 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10693 * inf-ptrace.c (get_ptrace_pid): New function.
10694 (inf_ptrace_resume): Use it.
10695 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10696 to the lower layer.
10697
10698 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10699
10700 * nat/linux-btrace.c: Include sys/utsname.h.
10701 (linux_determine_kernel_ptr_bits): New.
10702 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10703 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10704 ptr_bits.
10705
10706 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10707
10708 * btrace.c (ftrace_update_function): Treat return as tailcall for
10709 "_dl_runtime_resolve".
10710
10711 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10712
10713 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10714 * btrace.c (ftrace_debug): Do not print the line range.
10715 (ftrace_skip_file, ftrace_update_lines): Remove.
10716 (ftrace_new_function): Remove lbegin and lend initialization.
10717 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10718 * record-btrace.c (btrace_compute_src_line_range): New.
10719 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10720
10721 2015-03-02 Pedro Alves <palves@redhat.com>
10722
10723 * infrun.c (follow_exec): Delete all threads of the process except
10724 the event thread. Extended comments.
10725
10726 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10727
10728 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10729
10730 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10731
10732 * utils.h: Remove <stdbool.h> #include.
10733 (producer_is_gcc): Change return type to "int".
10734 * utils.c (producer_is_gcc): Change return type to int.
10735 Return 1 instead of true, and 0 instead of false.
10736 Adjust function documentation accordingly.
10737
10738 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10739
10740 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10741 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10742 present.
10743 (s390_linux_store_inferior_registers): Likewise.
10744 (s390_get_hwcap): Remove function. Embed its logic...
10745 (s390_read_description): ...here. Yield a target description with
10746 vector registers if applicable.
10747 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10748 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10749 "features/s390x-tevx-linux64.c".
10750 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10751 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10752 for "GNU/Linux-specific registers".
10753 (s390_dwarf_reg_r0l): New enum value.
10754 (s390_dwarf_reg_to_regnum): Support vector registers.
10755 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10756 of GPR lower halves.
10757 (regnum_is_vxr_full): New function.
10758 (s390_register_name): New function.
10759 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10760 f0-f15 and v0l-v15l.
10761 (s390_pseudo_register_type): Likewise.
10762 (s390_pseudo_register_read): Likewise.
10763 (s390_pseudo_register_write): Likewise.
10764 (s390_value_from_register): Account for the fact that values are
10765 placed left-justified in vector registers.
10766 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10767 the vector reggroup and omit them from the general reggroup.
10768 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10769 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10770 (s390_iterate_over_regset_sections): Add iterations for the two
10771 new vector regsets.
10772 (s390_core_read_description): Yield a target description with
10773 vector registers if applicable.
10774 (s390_gdbarch_init): Handle target descriptions with vector
10775 registers. Add "register_name" gdbarch method.
10776 (_initialize_s390_tdep): Call new tdesc initialization functions.
10777 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10778 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10779 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10780 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10781 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10782 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10783 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10784 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10785 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10786 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10787 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10788 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10789 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10790 (S390_NUM_REGS): Adjust value.
10791 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10792 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10793 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10794 * NEWS: Announce S/390 vector register support.
10795
10796 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10797
10798 * features/s390-tevx-linux64.xml: New file.
10799 * features/s390-vx-linux64.xml: New file.
10800 * features/s390-vx.xml: New file.
10801 * features/s390x-tevx-linux64.xml: New file.
10802 * features/s390x-vx-linux64.xml: New file.
10803 * features/Makefile (WHICH): Add s390-vx-linux64,
10804 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10805 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10806 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10807 macros.
10808 * features/s390-tevx-linux64.c: New generated file.
10809 * features/s390-vx-linux64.c: Likewise.
10810 * features/s390x-tevx-linux64.c: Likewise.
10811 * features/s390x-vx-linux64.c: Likewise.
10812 * regformats/s390-tevx-linux64.dat: Likewise.
10813 * regformats/s390-vx-linux64.dat: Likewise.
10814 * regformats/s390x-tevx-linux64.dat: Likewise.
10815 * regformats/s390x-vx-linux64.dat: Likewise.
10816
10817 2015-02-28 Doug Evans <xdje42@gmail.com>
10818
10819 * symtab.h (struct symtab) <next>: Fix comment.
10820
10821 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10822
10823 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10824 python_GdbMethods.
10825
10826 2015-02-27 Pedro Alves <palves@redhat.com>
10827
10828 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10829
10830 2015-02-27 Pedro Alves <palves@redhat.com>
10831
10832 * common/common-exceptions.h (exception_none): Declare.
10833 * common/common-exceptions.c (exception_none): Moved from
10834 exceptions.c.
10835 (exceptions_state_mc_init): Use exception_none.
10836 * exceptions.c (exception_none): Move to
10837 common/common-exceptions.c.
10838 * exceptions.h (exception_none): Move to
10839 common/common-exceptions.h.
10840
10841 2015-02-27 Pedro Alves <palves@redhat.com>
10842
10843 * main.c (catch_command_errors, catch_command_errors_const):
10844 Remove 'mask' argument. Adjust.
10845 (captured_main): Adjust callers.
10846
10847 2015-02-27 Pedro Alves <palves@redhat.com>
10848
10849 * python/python-internal.h: Include "extension-priv.h".
10850
10851 2015-02-27 Pedro Alves <palves@redhat.com>
10852
10853 * breakpoint.h (enum print_stop_action): Move further up in the
10854 file.
10855
10856 2015-02-27 Pedro Alves <palves@redhat.com>
10857
10858 * gdbarch.sh: Include regcache.h.
10859 * gdbarch.h: Regenerate.
10860
10861 2015-02-27 Pedro Alves <palves@redhat.com>
10862
10863 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10864 Remove duplicate const.
10865 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10866 duplicate const.
10867
10868 2015-02-27 Pedro Alves <palves@redhat.com>
10869
10870 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10871 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10872 * features/feature_to_c.sh: Tag the generated xml_builtin array
10873 with extern const in C++ mode.
10874
10875 2015-02-27 Tom Tromey <tromey@redhat.com>
10876
10877 * minidebug.c (struct lzma_stream): Rename to ...
10878 (struct gdb_lzma_stream): ... this.
10879 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10880
10881 2015-02-27 Pedro Alves <palves@redhat.com>
10882
10883 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10884 function.
10885 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10886 (mi_cmd_stack_list_variables): Use it.
10887
10888 2015-02-27 Pedro Alves <palves@redhat.com>
10889
10890 * x86-linux-nat.c (u_debugreg_offset): New function.
10891 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10892
10893 2015-02-27 Pedro Alves <palves@redhat.com>
10894
10895 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10896 declaration.
10897 Include break-common.h.
10898
10899 2015-02-27 Tom Tromey <tromey@redhat.com>
10900 Pedro Alves <palves@redhat.com>
10901
10902 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10903 local used to iterate over enums.
10904 * completer.c (signal_completer): Likewise.
10905 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10906 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10907 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10908 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10909 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10910 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10911 * tui-wingeneral.c (tui_refresh_all): Likewise.
10912
10913 2015-02-27 Pedro Alves <palves@redhat.com>
10914
10915 * target.h: Include "infrun.h".
10916
10917 2015-02-27 Pedro Alves <palves@redhat.com>
10918
10919 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10920
10921 2015-02-27 Pedro Alves <palves@redhat.com>
10922
10923 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10924 (IPA_SYM): Use it.
10925 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10926
10927 2015-02-27 Pedro Alves <palves@redhat.com>
10928
10929 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10930 cli_mld_erase_entire_line, and make it extern "C".
10931 * common/common-defs.h (EXTERN_C): New.
10932 * completer.c (_rl_completion_prefix_display_length)
10933 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10934 out of gdb_display_match_list_1.
10935 (_rl_qsort_string_compare): Move declaration out of
10936 gdb_display_match_list_1, and make it extern "C".
10937 * defs.h (re_comp): Use EXTERN_C.
10938 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10939 and make it extern "C".
10940 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10941 and make it extern "C".
10942 (main): Move declaration out of maintenance_set_profile_cmd.
10943 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10944 EXTERN_C.
10945
10946 2015-02-27 Pedro Alves <palves@redhat.com>
10947
10948 * python/python.c (GdbMethods): Rename to ...
10949 (python_GdbMethods): ... this and make extern.
10950 (GdbModuleDef): Rename to ...
10951 (python_GdbModuleDef): ... this and make extern.
10952
10953 2015-02-27 Pedro Alves <palves@redhat.com>
10954
10955 * record-btrace.c (set_record_btrace_cmdlist)
10956 (show_record_btrace_cmdlist): Remove redefinitions.
10957
10958 2015-02-27 Tom Tromey <tromey@redhat.com>
10959 Pedro Alves <palves@redhat.com>
10960
10961 * dwarf2-frame.c (enum cfa_how_kind, struct
10962 dwarf2_frame_state_reg_info): Move out of struct
10963 dwarf2_frame_state.
10964 * dwarf2read.c (struct tu_stats): Move out of struct
10965 dwarf2_per_objfile.
10966 (struct file_entry): Move out of struct line_header.
10967 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10968 typedef_field_list): Move out of struct field_info.
10969 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10970 Move out of struct dynamic_prop.
10971 (union type_owner, union field_location, struct field, struct
10972 range_bounds, union type_specific): Move out of struct main_type.
10973 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10974 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10975 (struct call_site_target, union call_site_parameter_u, struct
10976 call_site_parameter): Move out of struct call_site.
10977 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10978 m32c_prologue.
10979 (enum srcdest_kind): Move out of struct srcdest.
10980 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10981 * prologue-value.h (enum prologue_value_kind): Move out of struct
10982 prologue_value.
10983 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10984 gdbarch_tdep.
10985 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10986 out of struct field_info.
10987 * symfile.h (struct other_sections): Move out of struct
10988 section_addr_info.
10989 * symtab.c (struct symbol_cache_slot): Move out struct
10990 block_symbol_cache.
10991 * target-descriptions.c (enum tdesc_type_kind): Move out of
10992 typedef struct tdesc_type.
10993 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10994 struct tui_line_or_address.
10995 * value.c (enum internalvar_kind, union internalvar_data): Move
10996 out of struct internalvar.
10997 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10998 gdbarch_tdep.
10999
11000 2015-02-27 Tom Tromey <tromey@redhat.com>
11001 Pedro Alves <palves@redhat.com>
11002
11003 Rename symbols whose names are reserved C++ keywords throughout.
11004
11005 2015-02-27 Pedro Alves <palves@redhat.com>
11006
11007 * Makefile.in (COMPILER): New, get it from autoconf.
11008 (COMPILE.pre, CC_LD): Use COMPILER.
11009 (CXX): Get from autoconf instead.
11010 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11011 * acinclude.m4: Include build-with-cxx.m4.
11012 * build-with-cxx.m4: New file.
11013 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11014 Disable -Werror by default if building in C++ mode.
11015 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11016 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11017 Run supported-warning-flags tests with the C++ compiler.
11018 Save/restore CXXFLAGS too.
11019 * configure: Regenerate.
11020
11021 2015-02-27 Pedro Alves <palves@redhat.com>
11022
11023 * libiberty.m4: New file.
11024 * acinclude.m4: Include libiberty.m4.
11025 * configure.ac: Call libiberty_INIT.
11026 * config.in, configure: Regenerate.
11027
11028 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11029
11030 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11031 31-bit targets, but 64-bit targets as well.
11032 (s390_gnu_triplet_regexp): New function.
11033 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11034 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11035 method.
11036
11037 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11038
11039 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11040 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11041 from CONTEXT_DEBUGGER.
11042
11043 2015-02-26 Doug Evans <dje@google.com>
11044
11045 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11046 CHECK_TYPEDEF.
11047 (set_type_vptr_fieldno): Ditto.
11048 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11049 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11050
11051 2015-02-26 Pedro Alves <palves@redhat.com>
11052
11053 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11054 * complaints.c (vcomplaint): Pass argument FMT directly to
11055 printf-like functions instead of complaint->fmt.
11056 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11057 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11058 * compile/compile-loc2c.c (pushf, unary, binary): Add
11059 ATTRIBUTE_PRINTF.
11060 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11061 to pushf.
11062 (BINARY): Pass string literal as format string to 'binary'.
11063 * compile/compile-object-load.c (link_callbacks_einfo): Add
11064 ATTRIBUTE_PRINTF.
11065 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11066
11067 2015-02-26 Pedro Alves <palves@redhat.com>
11068
11069 * windows-termcap.c: Rename to ...
11070 * stub-termcap.c: ... this. Adjust header line.
11071 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11072 windows-termcap.c.
11073 * configure: Regenerate.
11074 * configure.ac: Refer to stub-termcap.o instead of
11075 windows-termcap.o.
11076 * gdb_curses.h: Mention stub-termcap.c instead of
11077 windows-termcap.c.
11078
11079 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11080
11081 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11082 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11083
11084 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11085
11086 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11087
11088 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11089
11090 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11091 bfd_canonicalize_symtab.
11092
11093 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11094
11095 * amd64fbsd-nat.c: Include sys/user.h.
11096 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11097 instead of KERN_PS_STRINGS to locate the signal trampoline.
11098 * i386fbsd-nat.c: Include sys/user.h.
11099 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11100 instead of KERN_PS_STRINGS to locate the signal trampoline.
11101 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11102 (amd64fbsd_sigtramp_p): New.
11103 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11104 longer set default values.
11105 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11106 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11107 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11108 (i386fbsd_freebsd4_sigtramp_start)
11109 (i386fbsd_freebsd4_sigtramp_middle)
11110 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11111 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11112 (i386fbsd_sigtramp_p): New.
11113 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11114 longer set default values.
11115 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11116
11117 2015-02-25 John Baldwin <jhb@freebsd.org>
11118
11119 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11120 get_frame_register instead of frame_unwind_register_unsigned.
11121
11122 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11123
11124 PR build/18033
11125 * compile/compile-c-support.c (c_compute_program): Change // comment.
11126 * compile/compile-object-load.c (setup_sections): Change // comment.
11127
11128 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11129
11130 PR build/18033:
11131 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11132
11133 2015-02-23 Pedro Alves <palves@redhat.com>
11134
11135 * remote.c (skip_to_semicolon): New function.
11136 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11137 special case the stop reasons that look like hex numbers
11138 upfront. Instead handle real register numbers after matching
11139 all the known stop reasons.
11140
11141 2015-02-21 Doug Evans <dje@google.com>
11142
11143 PR c++/17976, symtab/17821
11144 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11145 is_in_anonymous. All callers updated.
11146 (find_symbol_in_baseclass): Ditto.
11147 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11148 for symbols in an anonymous namespace.
11149 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11150 DW_AT_name directly.
11151 (dwarf2_name): Convert missing namespace name to
11152 CP_ANONYMOUS_NAMESPACE_STR.
11153
11154 2015-02-20 Pedro Alves <palves@redhat.com>
11155
11156 * linux-nat.c (linux_handle_extended_wait): Call
11157 thread_db_notice_clone whenever a new clone LWP is detected.
11158 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11159 functions.
11160 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11161 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11162 (linux_unstop_all_lwps): Declare.
11163 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11164 (thread_get_info_callback): Delete.
11165 (thread_from_lwp): Use td_thr_get_info and record_thread.
11166 (thread_db_attach_lwp): Delete.
11167 (thread_db_notice_clone): New function.
11168 (try_thread_db_load_1): If /proc is mounted and shows the
11169 process'es task list, walk over all LWPs and call thread_from_lwp
11170 instead of relying on td_ta_thr_iter.
11171 (attach_thread): Don't call check_thread_signals here. Split the
11172 tail part of the function (which adds the thread to the core GDB
11173 thread list) to ...
11174 (record_thread): ... this function. Call check_thread_signals
11175 here.
11176 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11177 call thread_from_lwp.
11178 (thread_db_update_thread_list): Rename to ...
11179 (thread_db_update_thread_list_org): ... this.
11180 (thread_db_update_thread_list): New function.
11181 (thread_db_find_thread_from_tid): Delete.
11182 (thread_db_get_ada_task_ptid): Simplify.
11183 * nat/linux-procfs.c: Include <sys/stat.h>.
11184 (linux_proc_task_list_dir_exists): New function.
11185 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11186
11187 2015-02-20 Pedro Alves <palves@redhat.com>
11188
11189 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11190 main LWP. Handle the case of waitpid returning 0 if we're already
11191 attached to the LWP. Don't set the LWP's last_resume_kind to
11192 resume_stop if we already knew about the LWP.
11193 (linux_nat_filter_event): Add debug logs.
11194
11195 2015-02-20 Pedro Alves <palves@redhat.com>
11196
11197 * target.h (forward_target_decr_pc_after_break): Delete
11198 declaration.
11199
11200 2015-02-20 Pedro Alves <palves@redhat.com>
11201
11202 PR threads/18006
11203 * linux-thread-db.c (thread_get_info_callback): Return early if
11204 the thread's lwp id is -1.
11205
11206 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11207
11208 GDB 7.9 released.
11209
11210 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11211
11212 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11213 (dtrace_get_probes) Change type of variable 'dof'.
11214
11215 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11216
11217 PR breakpoints/16812
11218 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11219 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11220 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11221
11222 2015-02-19 David Taylor <dtaylor@emc.com>
11223
11224 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11225
11226 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11227
11228 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11229 function.
11230 (tui_putc): Don't call tui_handle_resize_during_io.
11231 (tui_getc): Likewise.
11232 (tui_mld_getc): Likewise.
11233 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11234 (tui_sigwinch_token): New static variable.
11235 (tui_initialize_win): Adjust documentation. Set
11236 tui_sigwinch_token.
11237 (tui_async_resize_screen): New asynchronous callback.
11238 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11239 invoke tui_async_resize_screen.
11240
11241 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11242
11243 * configure: Regenerated.
11244 * configure.ac: Use GDB_AC_TRANSFORM.
11245 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11246 * acinclude.m4: sinclude transform.m4.
11247 * transform.m4: New file.
11248 (GDB_AC_TRANSFORM): New macro.
11249
11250 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11251
11252 * NEWS: Announce the support for DTrace SDT probes.
11253
11254 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11255
11256 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11257 (amd64_dtrace_parse_probe_argument): New function.
11258 (amd64_dtrace_probe_is_enabled): Likewise.
11259 (amd64_dtrace_enable_probe): Likewise.
11260 (amd64_dtrace_disable_probe): Likewise.
11261 (amd64_linux_init_abi): Register the
11262 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11263 `gdbarch_dtrace_disable_probe' and
11264 `gdbarch_dtrace_probe_is_enabled' hooks.
11265 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11266 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11267 (amd64_dtrace_enable_probe_sequence): Likewise.
11268 (amd64_dtrace_disable_probe_sequence): Likewise.
11269
11270 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11271
11272 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11273 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11274 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11275 handle ELF files.
11276 * Makefile.in (SFILES): dtrace-probe.c added.
11277 * configure: Regenerate.
11278 * dtrace-probe.c: New file.
11279 (SHT_SUNW_dof): New constant.
11280 (dtrace_probe_type): New enum.
11281 (dtrace_probe_arg): New struct.
11282 (dtrace_probe_arg_s): New typedef.
11283 (struct dtrace_probe_enabler): New struct.
11284 (dtrace_probe_enabler_s): New typedef.
11285 (dtrace_probe): New struct.
11286 (dtrace_probe_is_linespec): New function.
11287 (dtrace_dof_sect_type): New enum.
11288 (dtrace_dof_dofh_ident): Likewise.
11289 (dtrace_dof_encoding): Likewise.
11290 (DTRACE_DOF_ENCODE_LSB): Likewise.
11291 (DTRACE_DOF_ENCODE_MSB): Likewise.
11292 (dtrace_dof_hdr): New struct.
11293 (dtrace_dof_sect): Likewise.
11294 (dtrace_dof_provider): Likewise.
11295 (dtrace_dof_probe): Likewise.
11296 (DOF_UINT): New macro.
11297 (DTRACE_DOF_PTR): Likewise.
11298 (DTRACE_DOF_SECT): Likewise.
11299 (dtrace_process_dof_probe): New function.
11300 (dtrace_process_dof): Likewise.
11301 (dtrace_build_arg_exprs): Likewise.
11302 (dtrace_get_arg): Likewise.
11303 (dtrace_get_probes): Likewise.
11304 (dtrace_get_probe_argument_count): Likewise.
11305 (dtrace_can_evaluate_probe_arguments): Likewise.
11306 (dtrace_evaluate_probe_argument): Likewise.
11307 (dtrace_compile_to_ax): Likewise.
11308 (dtrace_probe_destroy): Likewise.
11309 (dtrace_gen_info_probes_table_header): Likewise.
11310 (dtrace_gen_info_probes_table_values): Likewise.
11311 (dtrace_probe_is_enabled): Likewise.
11312 (dtrace_probe_ops): New variable.
11313 (info_probes_dtrace_command): New function.
11314 (_initialize_dtrace_probe): Likewise.
11315 (dtrace_type_name): Likewise.
11316
11317 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11318
11319 * gdbarch.sh (dtrace_parse_probe_argument): New.
11320 (dtrace_probe_is_enabled): Likewise.
11321 (dtrace_enable_probe): Likewise.
11322 (dtrace_disable_probe): Likewise.
11323 * gdbarch.c: Regenerate.
11324 * gdbarch.h: Regenerate.
11325
11326 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11327
11328 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11329 stap_probe_ops for `enable_probe' and `disable_probe'.
11330 * probe.c (enable_probes_command): New function.
11331 (disable_probes_command): Likewise.
11332 (_initialize_probe): Define the cli commands `enable probe' and
11333 `disable probe'.
11334 (parse_probe_linespec): New function.
11335 (info_probes_for_ops): Use parse_probe_linespec.
11336 * probe.h (probe_ops): New hooks `enable_probe' and
11337 `disable_probe'.
11338
11339 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11340
11341 * probe.c (compute_probe_arg): Moved from stap-probe.c
11342 (compile_probe_arg): Likewise.
11343 (probe_funcs): Likewise.
11344 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11345 (compile_probe_arg): Likewise.
11346 (probe_funcs): Likewise.
11347
11348 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11349
11350 * probe.c (print_ui_out_not_applicables): New function.
11351 (exists_probe_with_pops): Likewise.
11352 (info_probes_for_ops): Do not include column headers for probe
11353 types for which no probe has been actually found on any object.
11354 Also invoke `print_ui_out_not_applicables' in order to match the
11355 column rows with the header when probes of several types are
11356 listed.
11357 Print the "Type" column.
11358 * probe.h (probe_ops): Added a new probe operation `type_name'.
11359 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11360 (stap_type_name): New function.
11361
11362 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11363
11364 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11365 (key_is_command_char): Delete.
11366
11367 2015-02-17 Pedro Alves <palves@redhat.com>
11368
11369 * tui/tui.c (tui_enable): Resize windows before anything
11370 might show a window.
11371
11372 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11373
11374 PR gdb/17984
11375 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11376 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11377 call.
11378 * aarch64-tdep.h (tdesc_aarch64): Declare.
11379
11380 2015-02-12 Mark Wielaard <mjw@redhat.com>
11381
11382 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11383
11384 2015-02-13 Doug Evans <dje@google.com>
11385
11386 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11387 anonymous_namespace to is_in_anonymous for consistency with the rest
11388 of the file.
11389 (cp_lookup_bare_symbol): Fix typo in comment.
11390 (cp_search_static_and_baseclasses): Ditto.
11391 (search_symbol_list): Use vertical space in comment better.
11392 (reset_directive_searched): Ditto. Fix typo.
11393 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11394
11395 2015-02-13 Yao Qi <yao.qi@arm.com>
11396
11397 * MAINTAINERS: Update my email address.
11398
11399 2015-02-12 Doug Evans <dje@google.com>
11400
11401 * symtab.c (completion_list_add_name): Fix memory leak.
11402
11403 2015-02-12 Doug Evans <dje@google.com>
11404
11405 * completer.c (complete_line): Remove incorrect comment.
11406
11407 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11408
11409 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11410 (py_print_frame): Use RETURN_MASK_ERROR.
11411
11412 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11415 function comment. Wrap all function that can throw in cleanups.
11416 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11417 cleanups.
11418
11419 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11420
11421 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11422 Remove the error label.
11423
11424 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11425
11426 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11427 with goto first, indent the former else codepath left. Put variable
11428 'elided' to a new inner block.
11429
11430 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11433
11434 2015-02-11 Pedro Alves <palves@redhat.com>
11435
11436 * xcoffread.c (within_function): Delete.
11437
11438 2015-02-11 Tom Tromey <tromey@redhat.com>
11439 Pedro Alves <palves@redhat.com>
11440
11441 * breakpoint.c (base_breakpoint_ops): Delete.
11442 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11443 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11444 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11445 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11446 * python/py-arch.c (arch_object_type): Make extern.
11447 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11448 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11449 * python/py-cmd.c (cmdpy_object_type): Make extern.
11450 * python/py-continueevent.c (continue_event_object_type)
11451 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11452 parameter. Update all callers.
11453 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11454 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11455 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11456 * python/py-function.c (fnpy_object_type): Make extern.
11457 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11458 * python/py-infevents.c (call_pre_event_object_type)
11459 (inferior_call_post_event_object_type).
11460 (memory_changed_event_object_type): Make extern.
11461 * python/py-infthread.c (thread_object_type): Make extern.
11462 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11463 * python/py-linetable.c (linetable_entry_object_type)
11464 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11465 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11466 (clear_objfiles_event_object_type): Make extern.
11467 * python/py-objfile.c (objfile_object_type): Make extern.
11468 * python/py-param.c (parmpy_object_type): Make extern.
11469 * python/py-progspace.c (pspace_object_type): Make extern.
11470 * python/py-signalevent.c (signal_event_object_type): Make extern.
11471 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11472 * python/py-type.c (type_object_type, field_object_type)
11473 (type_iterator_object_type): Make extern.
11474 * python/python.c (python_extension_script_ops)
11475 (python_extension_ops): Make extern.
11476 * stap-probe.c (stap_probe_ops): Make extern.
11477
11478 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11479
11480 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11481 because the event thread is not the current thread.
11482
11483 2015-02-11 Doug Evans <xdje42@gmail.com>
11484
11485 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11486 been initialized yet, return NULL.
11487
11488 2015-02-11 Doug Evans <dje@google.com>
11489
11490 * symfile.h (new_symfile_objfile): Delete.
11491 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11492 All callers updated.
11493
11494 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11495
11496 * tui/tui-io.c (tui_handle_resize_during_io): Call
11497 tui_update_gdb_sizes() after resizing the screen.
11498 * tui/tui.c (tui_enable): Resize the terminal before
11499 calling tui_update_gdb_sizes().
11500
11501 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11502
11503 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11504 line before printing a newline.
11505
11506 2015-02-11 Mark Wielaard <mjw@redhat.com>
11507
11508 * utils.c (producer_is_gcc): Return true or false.
11509
11510 2015-02-10 Mark Wielaard <mjw@redhat.com>
11511
11512 * utils.h (producer_is_gcc): Change return type to bool. Add major
11513 argument.
11514 * utils.c (producer_is_gcc): Likewise.
11515 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11516 * dwarf2read.c (check_producer): Likewise.
11517
11518 2015-02-10 Pedro Alves <palves@redhat.com>
11519
11520 * infrun.c (displaced_step_fixup): Switch to the event thread
11521 before calling gdbarch_displaced_step_fixup.
11522
11523 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11524
11525 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11526
11527 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11528
11529 * ada-varobj.c (ada_name_of_child): Constify parent.
11530 (ada_path_expr_of_child): Same.
11531 (ada_value_of_child): Same.
11532 (ada_type_of_child): Same.
11533 * c-varobj.c (c_is_path_expr_parent): Same.
11534 (c_describe_child): Same.
11535 (c_name_of_child): Same.
11536 (c_value_of_child): Same.
11537 (c_type_of_child): Same.
11538 (cplus_number_of_children): Same.
11539 (cplus_describe_child): Constify var.
11540 (cplus_name_of_child): Constify parent.
11541 (cplus_value_of_child): Same.
11542 (cplus_type_of_child): Same.
11543 * jv-varobj.c (java_name_of_child): Same.
11544 (java_value_of_child): Same.
11545 (java_type_of_child): Same.
11546 * varobj.c (value_of_child): Same.
11547 (varobj_default_is_path_expr_parent): Constify var, parent and return
11548 value.
11549 (varobj_get_path_expr): Constify var, modify path_expr through
11550 mutable_var.
11551 (install_new_value): Constify parent.
11552 (value_of_child): Constify parent.
11553 * varobj.h (struct varobj): Constify parent.
11554 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11555 type_of_child.
11556 (varobj_get_path_expr): Constify var.
11557 (varobj_get_path_expr_parent): Constify var and return value.
11558
11559 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11560
11561 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11562 (arm_prologue_this_id): Move PC and SP limit checks to
11563 arm_prologue_unwind_stop_reason.
11564 (arm_prologue_unwind) <stop_reason> : Set to
11565 arm_prologue_unwind_stop_reason.
11566
11567 2015-02-09 Mark Wielaard <mjw@redhat.com>
11568
11569 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11570 DW_LANG_Fortran08 as language_fortran.
11571
11572 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11573
11574 PR remote/17946
11575 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11576 of pointer against char.
11577
11578 2015-02-09 Mark Wielaard <mjw@redhat.com>
11579
11580 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11581 (c_type_print_modifier): Likewise.
11582 * dwarf2read.c (read_tag_atomic_type): New function.
11583 (read_type_die_1): Handle DW_TAG_atomic_type.
11584 * gdbtypes.c (make_atomic_type): New function.
11585 (recursive_dump_type): Handle TYPE_ATOMIC.
11586 * gdbtypes.h (enum type_flag_values): Renumber.
11587 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11588 (TYPE_ATOMIC): New macro.
11589 (make_atomic_type): Declare.
11590
11591 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11592
11593 * btrace.c (ftrace_find_call): Skip gaps.
11594 (ftrace_new_function): Initialize level.
11595 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11596 (ftrace_new_switch): Update
11597 level computation.
11598 (ftrace_new_gap): New.
11599 (ftrace_update_function): Create new function after gap.
11600 (btrace_compute_ftrace_bts): Create gap on error.
11601 (btrace_stitch_bts): Update parameters. Clear trace if it
11602 becomes empty.
11603 (btrace_stitch_trace): Update parameters. Update callers.
11604 (btrace_clear): Reset the number of gaps.
11605 (btrace_insn_get): Return NULL if the iterator points to a gap.
11606 (btrace_insn_number): Return zero if the iterator points to a gap.
11607 (btrace_insn_end): Allow gaps at the end.
11608 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11609 (btrace_find_insn_by_number): Assert that the found iterator does
11610 not point to a gap.
11611 (btrace_call_next, btrace_call_prev): Assert that the last function
11612 is not a gap.
11613 * btrace.h (btrace_bts_error): New.
11614 (btrace_function): Update comment.
11615 (btrace_function) <insn, insn_offset, number>: Update comment.
11616 (btrace_function) <errcode>: New.
11617 (btrace_thread_info) <ngaps>: New.
11618 (btrace_thread_info) <replay>: Update comment.
11619 (btrace_insn_get): Update comment.
11620 * record-btrace.c (btrace_ui_out_decode_error): New.
11621 (record_btrace_info): Print number of gaps.
11622 (btrace_insn_history, btrace_call_history): Call
11623 btrace_ui_out_decode_error for gaps.
11624 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11625
11626 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11627
11628 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11629 * nat/linux-btrace.c: (btrace_this_cpu): New.
11630 (cpu_supports_bts): Call btrace_this_cpu.
11631 (intel_supports_bts): Add cpu parameter.
11632
11633 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11634
11635 * btrace.h (btrace_insn_class): New.
11636 (btrace_insn) <size, iclass>: New.
11637 * btrace.c (ftrace_find_call): Update parameters. Update users.
11638 Use instruction classification.
11639 (ftrace_new_return): Update parameters. Update users.
11640 (ftrace_update_function): Update parameters. Update users. Use
11641 instruction classification.
11642 (ftrace_update_insns): Update parameters. Update users.
11643 (ftrace_classify_insn): New.
11644 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11645 TRY_CATCH around call to gdb_insn_length.
11646
11647 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11648
11649 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11650 Update parameters. Update users.
11651
11652 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11653
11654 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11655 (btrace_conf_bts_attributes): New.
11656 (btrace_conf_children): Add attributes.
11657 * common/btrace-common.h (btrace_config_bts): New.
11658 (btrace_config)<bts>: New.
11659 (btrace_config): Update comment.
11660 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11661 Use config.
11662 * features/btrace-conf.dtd: Increment version. Add size
11663 attribute to bts element.
11664 * record-btrace.c (set_record_btrace_bts_cmdlist,
11665 show_record_btrace_bts_cmdlist): New.
11666 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11667 record_btrace_print_conf, cmd_set_record_btrace_bts,
11668 cmd_show_record_btrace_bts): New.
11669 (record_btrace_info): Call record_btrace_print_conf.
11670 (_initialize_record_btrace): Add commands.
11671 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11672 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11673 (btrace_sync_conf): Synchronize bts size.
11674 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11675 * NEWS: Announce new commands and new packets.
11676
11677 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11678
11679 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11680 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11681 (x86_linux_btrace_conf): New.
11682 (x86_linux_create_target): Initialize to_btrace_conf.
11683 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11684 Check format. Split into this and ...
11685 (linux_enable_bts): ... this.
11686 (linux_btrace_conf): New.
11687 (perf_event_skip_record): Renamed into ...
11688 (perf_event_skip_bts_record): ... this. Updated users.
11689 (linux_disable_btrace): Split into this and ...
11690 (linux_disable_bts): ... this.
11691 (linux_read_btrace): Check format.
11692 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11693 (linux_btrace_conf): New.
11694 (btrace_target_info)<ptid>: Moved.
11695 (btrace_target_info)<conf>: New.
11696 (btrace_target_info): Split into this and ...
11697 (btrace_tinfo_bts): ... this. Updated users.
11698 * btrace.c (btrace_enable): Update parameters.
11699 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11700 (btrace_conf_children, btrace_conf_attributes)
11701 (btrace_conf_elements): New.
11702 * btrace.h (btrace_enable): Update parameters.
11703 (btrace_conf, parse_xml_btrace_conf): New.
11704 * common/btrace-common.h (btrace_config): New.
11705 * feature/btrace-conf.dtd: New.
11706 * record-btrace.c (record_btrace_conf): New.
11707 (record_btrace_cmdlist): New.
11708 (record_btrace_enable_warn, record_btrace_open): Pass
11709 &record_btrace_conf.
11710 (record_btrace_info): Print recording format.
11711 (cmd_record_btrace_bts_start): New.
11712 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11713 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11714 Add "record bts" alias command.
11715 * remote.c (remote_state)<btrace_config>: New.
11716 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11717 (remote_protocol_features): Add qXfer:btrace-conf:read.
11718 (remote_open_1): Call remote_btrace_reset.
11719 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11720 (btrace_target_info)<conf>: New.
11721 (btrace_sync_conf, btrace_read_config): New.
11722 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11723 btrace_read_conf.
11724 (remote_btrace_conf): New.
11725 (init_remote_ops): Initialize to_btrace_conf.
11726 (_initialize_remote): Add qXfer:btrace-conf packet.
11727 * target.c (target_enable_btrace): Update parameters.
11728 (target_btrace_conf): New.
11729 * target.h (target_enable_btrace): Update parameters.
11730 (target_btrace_conf): New.
11731 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11732 (target_ops)<to_enable_btrace>: Update parameters and comment.
11733 (target_ops)<to_btrace_conf>: New.
11734 * target-delegates: Regenerate.
11735 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11736 (target_debug_print_const_struct_btrace_target_info_p): New.
11737 * NEWS: Announce new command and new packet.
11738
11739 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11740
11741 * nat/linux-btrace.h (perf_event_buffer): New.
11742 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11743 <bts>: ... this.
11744 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11745 (perf_event_buffer_size, perf_event_buffer_begin)
11746 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11747 Updated users.
11748 (perf_event_new_data): New.
11749
11750 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11751
11752 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11753 * record-btrace.c (record_btrace_open): Remove call to
11754 target_supports_btrace.
11755 * remote.c (remote_supports_btrace): Update parameters.
11756 * target.c (target_supports_btrace): Update parameters.
11757 * target.h (to_supports_btrace, target_supports_btrace): Update
11758 parameters.
11759 * target-delegates.c: Regenerate.
11760 * target-debug.h (target_debug_print_enum_btrace_format): New.
11761 * nat/linux-btrace.c
11762 (kernel_supports_btrace): Rename into ...
11763 (kernel_supports_bts): ... this. Update users. Update warning text.
11764 (intel_supports_btrace): Rename into ...
11765 (intel_supports_bts): ... this. Update users.
11766 (cpu_supports_btrace): Rename into ...
11767 (cpu_supports_bts): ... this. Update users.
11768 (linux_supports_btrace): Update parameters. Split into this and ...
11769 (linux_supports_bts): ... this.
11770 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11771
11772 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11773
11774 * Makefile.in (SFILES): Add common/btrace-common.c.
11775 (COMMON_OBS): Add common/btrace-common.o.
11776 (btrace-common.o): Add build rules.
11777 * btrace.c (parse_xml_btrace): Update parameters.
11778 (parse_xml_btrace_block): Set format field.
11779 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11780 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11781 (btrace_compute_ftrace): Split into this and...
11782 (btrace_compute_ftrace_bts): ...this.
11783 (btrace_stitch_trace): Split into this and...
11784 (btrace_stitch_bts): ...this.
11785 * btrace.h (parse_xml_btrace): Update parameters.
11786 (make_cleanup_btrace_data): New.
11787 * common/btrace-common.c: New.
11788 * common/btrace-common.h: Include common-defs.h.
11789 (btrace_block_s): Update comment.
11790 (btrace_format): New.
11791 (btrace_format_string): New.
11792 (btrace_data_bts): New.
11793 (btrace_data): New.
11794 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11795 * remote.c (remote_read_btrace): Update parameters.
11796 * target.c (target_read_btrace): Update parameters.
11797 * target.h (target_read_btrace): Update parameters.
11798 (target_ops)<to_read_btrace>: Update parameters.
11799 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11800 * target-delegates.c: Regenerate.
11801 * target-debug (target_debug_print_struct_btrace_data_p): New.
11802 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11803 (linux_read_bts): ...this.
11804 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11805
11806 2015-02-06 Doug Evans <dje@google.com>
11807
11808 * remote-m32r-sdi.c: Include symfile.h.
11809
11810 2015-02-06 Doug Evans <dje@google.com>
11811
11812 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11813 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11814 to here.
11815
11816 2015-02-06 Pedro Alves <palves@redhat.com>
11817
11818 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11819
11820 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11821
11822 PR gdb/15678
11823 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11824 (enable_count_command): Check args for NULL value.
11825
11826 2015-02-05 Doug Evans <xdje42@gmail.com>
11827
11828 * guile/scm-frame.c: Fix spelling errors in a comment.
11829
11830 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11831
11832 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11833 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11834 return type.
11835
11836 2015-02-04 Pedro Alves <palves@redhat.com>
11837
11838 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11839 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11840 returns true.
11841 (resume_stopped_resumed_lwps): Don't check whether the thread is
11842 marked as executing.
11843 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11844
11845 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11846
11847 * regset.h (struct regset): Add flags field.
11848 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11849 * corelow.c (get_core_register_section): Add warning if the size
11850 exceeds the requested size and the regset does not have the
11851 REGSET_VARIABLE_SIZE flag set.
11852 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11853 flag.
11854 * armbsd-tdep.c (armbsd_gregset): Likewise.
11855 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11856 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11857 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11858 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11859
11860 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11861
11862 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11863 For ".reg-xstate", explicitly specify the requested section size
11864 via X86_XSTATE_SIZE instead of just 0 on input and
11865 X86_XSTATE_MAX_SIZE on output.
11866 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11867 Likewise.
11868
11869 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11870
11871 PR corefiles/17808:
11872 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11873 function type, particularly its SIZE parameter.
11874 * gdbarch.h: Regenerate.
11875 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11876 actual against required size using ">=" instead of "==".
11877 (amd64_collect_fpregset): Likewise.
11878 * i386-tdep.c (i386_supply_gregset): Likewise.
11879 (i386_collect_gregset): Likewise.
11880 (i386_supply_fpregset): Likewise.
11881 (i386_collect_fpregset): Likewise.
11882 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11883 (mips_fill_gregset_wrapper): Likewise.
11884 (mips_supply_fpregset_wrapper): Likewise.
11885 (mips_fill_fpregset_wrapper): Likewise.
11886 (mips64_supply_gregset_wrapper): Likewise.
11887 (mips64_fill_gregset_wrapper): Likewise.
11888 (mips64_supply_fpregset_wrapper): Likewise.
11889 (mips64_fill_fpregset_wrapper): Likewise.
11890 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11891 (am33_supply_fpregset_method): Likewise.
11892 (am33_collect_gregset_method): Likewise.
11893 (am33_collect_fpregset_method): Likewise.
11894
11895 2015-02-04 Doug Evans <dje@google.com>
11896 Pedro Alves <palves@redhat.com>
11897 Eli Zaretskii <eliz@gnu.org>
11898
11899 PR tui/17810
11900 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11901 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11902 * tui/tui-file.c: #include tui/tui-command.h.
11903 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11904 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11905 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11906
11907 2015-02-04 Pedro Alves <palves@redhat.com>
11908
11909 Fix build breakage.
11910 * event-loop.c (gdb_do_one_event): Add default switch case.
11911
11912 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11913
11914 Filter out inferior gcc option -fpreprocessed.
11915 * compile/compile.c (filter_args): New function.
11916 (get_args): Use it.
11917
11918 2015-02-03 Pedro Alves <palves@redhat.com>
11919
11920 * event-loop.c: Don't declare nor define a queue type for
11921 gdb_event_p.
11922 (event_queue): Delete.
11923 (create_event, create_file_event, gdb_event_xfree)
11924 (initialize_event_loop, process_event): Delete.
11925 (gdb_do_one_event): Return as soon as one event is handled.
11926 (handle_file_event): Change prototype. Used the passed in
11927 file_handler pointer and ready_mask instead of looping over all
11928 file handlers.
11929 (gdb_wait_for_event): Update the poll/select timeouts before
11930 blocking. Run event handlers directly instead of queueing events.
11931 Return as soon as one event is handled.
11932 (struct async_event_handler_data): Delete.
11933 (invoke_async_event_handler): Delete.
11934 (check_async_event_handlers): Change return type to int. Run
11935 event handlers directly instead of queueing events. Return as
11936 soon as one event is handled.
11937 (handle_timer_event): Delete.
11938 (update_wait_timeout): New function, factored out from
11939 poll_timers.
11940 (poll_timers): Reimplement.
11941 * event-loop.h (initialize_event_loop): Delete declaration.
11942 * top.c (gdb_init): Don't call initialize_event_loop.
11943
11944 2015-02-03 Pedro Alves <palves@redhat.com>
11945
11946 * event-loop.c (clear_async_event_handler): New function.
11947 * event-loop.h (clear_async_event_handler): New declaration.
11948 * record-btrace.c (record_btrace_async): New function.
11949 (init_record_btrace_ops): Install record_btrace_async.
11950 * record-full.c (record_full_async): New function.
11951 (record_full_resume): Don't mark the async event source here.
11952 (init_record_full_ops): Install record_full_async.
11953 (record_full_core_resume): Don't mark the async event source here.
11954 (init_record_full_core_ops): Install record_full_async.
11955 * remote.c (remote_async): Mark and clear the async stop reply
11956 queue event-loop token as appropriate.
11957
11958 2015-02-03 Pedro Alves <palves@redhat.com>
11959
11960 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11961 target_is_async_p instead of target_can_async.
11962 (linux_nat_wait): Use target_is_async_p instead of
11963 target_can_async. Don't enable async here.
11964 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11965 target_is_async_p instead of target_can_async.
11966
11967 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11968
11969 * varobj.h (lang_varobj_ops): Mention which return values need
11970 to be freed.
11971
11972 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11973
11974 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11975
11976 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11977
11978 PR gdb/17856:
11979 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11980 results found in the cache.
11981
11982 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11983
11984 PR gdb/17854:
11985 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11986 when allocating a new one.
11987
11988 2015-02-01 Tom Tromey <tom@tromey.com>
11989
11990 * MAINTAINERS: Remove myself.
11991
11992 2015-01-31 Doug Evans <xdje42@gmail.com>
11993
11994 * dwarf2read.c (process_structure_scope): Update setting of
11995 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11996 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11997 (set_type_vptr_fieldno): New function.
11998 (internal_type_vptr_basetype): New function.
11999 (set_type_vptr_basetype): New function.
12000 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12001 TYPE_VPTR_BASETYPE.
12002 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12003 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12004 (print_cplus_stuff): ... moved here.
12005 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12006 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12007 moved to ...
12008 (struct cplus_struct_type): ... here. All uses updated.
12009 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12010 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12011 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12012 * stabsread.c (read_tilde_fields): Update setting of
12013 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12014
12015 2015-01-31 Doug Evans <xdje42@gmail.com>
12016
12017 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12018 to self_p.
12019 (cp_print_class_member): Rename local domain to self_type.
12020 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12021 domain_type to self_type.
12022 (set_die_type) <need_gnat_info>: Handle
12023 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12024 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12025 TYPE_SPECIFIC_SELF_TYPE.
12026 * gdbtypes.c (internal_type_self_type): New function.
12027 (set_type_self_type): New function.
12028 (smash_to_memberptr_type): Rename parameter domain to self_type.
12029 Update setting of TYPE_SELF_TYPE.
12030 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12031 (smash_to_method_type): Rename parameter domain to self_type.
12032 Update setting of TYPE_SELF_TYPE.
12033 (check_stub_method): Call smash_to_method_type.
12034 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12035 (copy_type_recursive): Ditto.
12036 * gdbtypes.h (enum type_specific_kind): New value
12037 TYPE_SPECIFIC_SELF_TYPE.
12038 (struct main_type) <type_specific>: New member self_type.
12039 (struct cplus_struct_type) <fn_field.type>: Update comment.
12040 (TYPE_SELF_TYPE): Rewrite.
12041 (internal_type_self_type, set_type_self_type): Declare.
12042 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12043 self_type.
12044 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12045 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12046 TYPE_TARGET_TYPE.
12047 * stabsread.c (read_member_functions): Mark methods with
12048 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12049 TYPE_SELF_TYPE.
12050
12051 2015-01-31 Doug Evans <xdje42@gmail.com>
12052
12053 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12054 All uses updated.
12055
12056 2015-01-31 Doug Evans <xdje42@gmail.com>
12057
12058 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12059 or unions. Return zero if union.
12060 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12061 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12062 gnuv3_get_vtable.
12063 (compute_vtable_size): Assert only passed structs.
12064 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12065
12066 2015-01-31 Doug Evans <xdje42@gmail.com>
12067
12068 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12069 kinds.
12070
12071 2015-01-31 Gary Benson <gbenson@redhat.com>
12072 Doug Evans <dje@google.com>
12073
12074 PR cli/9007
12075 PR cli/11920
12076 PR cli/15548
12077 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12078 reached.
12079 * common/common-exceptions.h (enum errors)
12080 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12081 * completer.h (get_max_completions_reached_message): New declaration.
12082 (max_completions): Likewise.
12083 (completion_tracker_t): New typedef.
12084 (new_completion_tracker): New declaration.
12085 (make_cleanup_free_completion_tracker): Likewise.
12086 (maybe_add_completion_enum): New enum.
12087 (maybe_add_completion): New declaration.
12088 (throw_max_completions_reached_error): Likewise.
12089 * completer.c (max_completions): New global variable.
12090 (new_completion_tracker): New function.
12091 (free_completion_tracker): Likewise.
12092 (make_cleanup_free_completion_tracker): Likewise.
12093 (maybe_add_completions): Likewise.
12094 (throw_max_completions_reached_error): Likewise.
12095 (complete_line): Remove duplicates and limit result to max_completions
12096 entries.
12097 (get_max_completions_reached_message): New function.
12098 (gdb_display_match_list): Handle max_completions.
12099 (_initialize_completer): New declaration and function.
12100 * symtab.c: Include completer.h.
12101 (completion_tracker): New static variable.
12102 (completion_list_add_name): Call maybe_add_completion.
12103 (default_make_symbol_completion_list_break_on_1): Renamed from
12104 default_make_symbol_completion_list_break_on. Maintain
12105 completion_tracker across calls to completion_list_add_name.
12106 (default_make_symbol_completion_list_break_on): New function.
12107 * top.c (init_main): Set rl_completion_display_matches_hook.
12108 * tui/tui-io.c: Include completer.h.
12109 (tui_old_rl_display_matches_hook): New static global.
12110 (tui_rl_display_match_list): Notify user if max-completions reached.
12111 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12112 * NEWS (New Options): Mention set/show max-completions.
12113
12114 2015-01-31 Gary Benson <gbenson@redhat.com>
12115
12116 * symtab.c (struct add_name_data) <code>: New field.
12117 Updated comments.
12118 (add_symtab_completions): New function.
12119 (symtab_expansion_callback): Likewise.
12120 (default_make_symbol_completion_list_break_on): Set datum.code.
12121 Move minimal symbol scan before calling expand_symtabs_matching.
12122 Scan known primary symtabs for externs and statics before calling
12123 expand_symtabs_matching. Pass symtab_expansion_callback as
12124 expansion_notify argument to expand_symtabs_matching. Do not scan
12125 primary symtabs for externs and statics after calling
12126 expand_symtabs_matching.
12127
12128 2015-01-31 Gary Benson <gbenson@redhat.com>
12129
12130 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12131 (struct quick_symbol_functions) <expand_symtabs_matching>:
12132 New argument expansion_notify. All uses updated.
12133 (expand_symtabs_matching): New argument expansion_notify.
12134 All uses updated.
12135 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12136 Also print expansion notify.
12137 * symtab.c (expand_symtabs_matching_via_partial): Call
12138 expansion_notify whenever a partial symbol table is expanded.
12139 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12140 expansion_notify whenever a symbol table is instantiated.
12141
12142 2015-01-31 Doug Evans <xdje42@gmail.com>
12143
12144 * cli-out.c: #include completer.h, readline/readline.h.
12145 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12146 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12147 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12148 * cli-out.h (cli_display_match_list): Declare.
12149 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12150 (ELLIPSIS_LEN): Ditto.
12151 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12152 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12153 (gdb_fnprint, gdb_print_filename): Ditto.
12154 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12155 (gdb_display_match_list): Ditto.
12156 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12157 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12158 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12159 (match_list_displayer): New struct.
12160 (gdb_display_match_list): Declare.
12161 * top.c (init_main): Set rl_completion_display_matches_hook.
12162 * tui/tui-io.c: #include completer.h.
12163 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12164 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12165 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12166 (tui_mld_getc, tui_mld_read_key): Ditto.
12167 (tui_rl_display_match_list): Rewrite.
12168 (tui_handle_resize_during_io): New arg for_completion. All callers
12169 updated.
12170
12171 2015-01-31 Doug Evans <xdje42@gmail.com>
12172
12173 Add symbol lookup cache.
12174 * NEWS: Document new options and commands.
12175 * symtab.c (symbol_cache_key): New static global.
12176 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12177 (SYMBOL_LOOKUP_FAILED): New macro.
12178 (symbol_cache_slot_state): New enum.
12179 (block_symbol_cache): New struct.
12180 (symbol_cache): New struct.
12181 (new_symbol_cache_size, symbol_cache_size): New static globals.
12182 (hash_symbol_entry, eq_symbol_entry): New functions.
12183 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12184 (make_symbol_cache, free_symbol_cache): New functions.
12185 (get_symbol_cache, symbol_cache_cleanup): New function.
12186 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12187 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12188 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12189 (symbol_cache_flush, symbol_cache_dump): New functions.
12190 (maintenance_print_symbol_cache): New function.
12191 (maintenance_flush_symbol_cache): New function.
12192 (symbol_cache_stats): New function.
12193 (maintenance_print_symbol_cache_statistics): New function.
12194 (symtab_new_objfile_observer): New function.
12195 (symtab_free_objfile_observer): New function.
12196 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12197 (_initialize_symtab): Init symbol_cache_key. New parameter
12198 maint symbol-cache-size. New maint commands print symbol-cache,
12199 print symbol-cache-statistics, flush-symbol-cache.
12200 Install new_objfile, free_objfile observers.
12201
12202 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12203
12204 PR symtab/17855
12205 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12206 to end.
12207
12208 2015-01-31 Doug Evans <xdje42@gmail.com>
12209
12210 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12211 * auto-load.c: #include ctype.h.
12212 (struct auto_load_pspace_info): Replace member loaded_scripts with
12213 new members loaded_script_files, loaded_script_texts.
12214 (auto_load_pspace_data_cleanup): Update.
12215 (init_loaded_scripts_info): Update.
12216 (get_auto_load_pspace_data_for_loading): Update.
12217 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12218 updated.
12219 (maybe_add_script_text): New function.
12220 (clear_section_scripts): Update.
12221 (source_script_file, execute_script_contents): New functions.
12222 (source_section_scripts): Add support for
12223 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12224 (print_scripts): New function.
12225 (auto_load_info_scripts): Also print inlined scripts.
12226 (maybe_print_unsupported_script_warning): Renamed from
12227 unsupported_script_warning_print. All callers updated.
12228 (maybe_print_script_not_found_warning): Renamed from
12229 script_not_found_warning_print. All callers updated.
12230 * extension-priv.h (struct extension_language_script_ops): New member
12231 objfile_script_executor.
12232 * extension.c (ext_lang_objfile_script_executor): New function.
12233 * extension.h (objfile_script_executor_func): New typedef.
12234 (ext_lang_objfile_script_executor): Declare.
12235 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12236 * guile/guile.c (guile_extension_script_ops): Update.
12237 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12238 * python/python.c (python_extension_script_ops): Update.
12239 (gdbpy_execute_objfile_script): New function.
12240
12241 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12242
12243 * tui/tui-io.c (tui_expand_tabs): New function.
12244 (tui_puts, tui_redisplay_readline): Expand TABs into the
12245 appropriate number of spaces.
12246 * tui/tui-regs.c: Include tui-io.h.
12247 (tui_register_format): Call tui_expand_tabs to expand TABs into
12248 the appropriate number of spaces.
12249 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12250
12251 2015-01-30 Doug Evans <dje@google.com>
12252
12253 * NEWS: "info source" command now display producer string if present.
12254 * source.c (source_info): Print producer string if present.
12255
12256 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12257
12258 * varobj.c (varobj_delete): Fix comment.
12259
12260 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12261
12262 * varobj.c (create_child): Modify comment.
12263
12264 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12265
12266 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12267 parameter.
12268 (ada_name_of_variable): Same.
12269 (ada_path_expr_of_child): Same.
12270 (ada_value_of_variable): Same.
12271 (ada_value_is_changeable_p): Same.
12272 (ada_value_has_mutated): Same.
12273 * c-varobj.c (varobj_is_anonymous_child): Same.
12274 (c_is_path_expr_parent): Same.
12275 (c_number_of_children): Same.
12276 (c_name_of_variable): Same.
12277 (c_path_expr_of_child): Same.
12278 (get_type): Same.
12279 (c_value_of_variable): Same.
12280 (cplus_number_of_children): Same.
12281 (cplus_name_of_variable): Same.
12282 (cplus_path_expr_of_child): Same.
12283 (cplus_value_of_variable): Same.
12284 * jv-varobj.c (java_number_of_children): Same.
12285 (java_name_of_variable): Same.
12286 (java_path_expr_of_child): Same.
12287 (java_value_of_variable): Same.
12288 * varobj.c (number_of_children): Same.
12289 (name_of_variable): Same.
12290 (is_root_p): Same.
12291 (varobj_ensure_python_env): Same.
12292 (varobj_get_objname): Same.
12293 (varobj_get_expression): Same.
12294 (varobj_get_display_format): Same.
12295 (varobj_get_display_hint): Same.
12296 (varobj_has_more): Same.
12297 (varobj_get_thread_id): Same.
12298 (varobj_get_frozen): Same.
12299 (dynamic_varobj_has_child_method): Same.
12300 (varobj_get_gdb_type): Same.
12301 (is_path_expr_parent): Same.
12302 (varobj_default_is_path_expr_parent): Same.
12303 (varobj_get_language): Same.
12304 (varobj_get_attributes): Same.
12305 (varobj_is_dynamic_p): Same.
12306 (varobj_get_child_range): Same.
12307 (varobj_value_has_mutated): Same.
12308 (varobj_get_value_type): Same.
12309 (number_of_children): Same.
12310 (name_of_variable): Same.
12311 (check_scope): Same.
12312 (varobj_editable_p): Same.
12313 (varobj_value_is_changeable_p): Same.
12314 (varobj_floating_p): Same.
12315 (varobj_default_value_is_changeable_p): Same.
12316
12317 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12318
12319 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12320 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12321 child->path_expr.
12322 (cplus_path_expr_of_child): Same.
12323
12324 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12325
12326 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12327 result.
12328 (mi_cmd_var_info_expression): Same.
12329 * varobj.c (varobj_get_expression): Mention in the comment that
12330 the result must by freed by the caller.
12331
12332 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12333
12334 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12335 varobj_get_type.
12336 (varobj_update_one): Same.
12337 * varobj.c (update_type_if_necessary): Free curr_type_str and
12338 new_type_str.
12339 (varobj_get_type): Specify in comment that the result needs to be
12340 freed by the caller.
12341
12342 2015-01-29 Doug Evans <dje@google.com>
12343
12344 PR symtab/17890
12345 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12346
12347 2015-01-25 Mark Wielaard <mjw@redhat.com>
12348
12349 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12350 * utils.c (producer_is_gcc_ge_4): Likewise.
12351 (producer_is_gcc): New function.
12352 * utils.h (producer_is_gcc): New declaration.
12353
12354 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12355
12356 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12357 kind.
12358 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12359 parameter by "addr_stack" parameter.
12360 (resolve_dynamic_range): Replace "addr" parameter by
12361 "stack_addr" parameter. Update function documentation.
12362 Update code accordingly.
12363 (resolve_dynamic_array, resolve_dynamic_union)
12364 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12365 (resolve_dynamic_type): Update code, following the changes made
12366 to resolve_dynamic_type_internal's interface.
12367 * dwarf2loc.h (struct property_addr_info): New.
12368 (dwarf2_evaluate_property): Replace "address" parameter
12369 by "addr_stack" parameter. Adjust function documentation.
12370 (struct dwarf2_offset_baton): New.
12371 (struct dwarf2_property_baton): Update documentation of
12372 field "referenced_type" to be more general. New field
12373 "offset_info" in union data field.
12374 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12375 parameter by "addr_stack" parameter. Adjust code accordingly.
12376 Add support for PROP_ADDR_OFFSET properties.
12377 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12378 DW_AT_data_member_location attributes as well. Use case
12379 statements instead of if/else condition.
12380
12381 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12382
12383 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12384 Return zero if PARENT_VALUE is NULL and parent_type's
12385 range type is dynamic.
12386
12387 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12388
12389 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12390 nonzero if the type's subtype is dynamic.
12391 (resolve_dynamic_range): Also resolve the range's subtype.
12392
12393 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12394
12395 Pushed by Joel Brobecker <brobecker@adacore.com>.
12396 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12397
12398 2015-01-27 Doug Evans <dje@google.com>
12399
12400 * NEWS: Mention gdb.Objfile.username.
12401 * python/py-objfile.c (objfpy_get_username): New function.
12402 (objfile_getset): Add "username".
12403
12404 2015-01-24 Mark Wielaard <mjw@redhat.com>
12405
12406 * stack.c (return_command): Markup warning message with _.
12407
12408 2015-01-24 Doug Evans <xdje42@gmail.com>
12409
12410 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12411
12412 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12413
12414 Fix 100x slowdown regression on DWZ files.
12415 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12416 (struct line_header): Add offset and offset_in_dwz.
12417 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12418 (free_line_header_voidp): New declaration.
12419 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12420 functions.
12421 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12422 (handle_DW_AT_stmt_list): Use line_header_hash.
12423 (free_line_header_voidp): New function.
12424 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12425 (dwarf_decode_lines): New parameter decode_mapping, use it.
12426 (dwarf2_free_objfile): Free line_header_hash.
12427
12428 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12429
12430 PR gdb/17416
12431 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12432 value_ind.
12433
12434 2015-01-15 Mark Wielaard <mjw@redhat.com>
12435
12436 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12437 DW_AT_noreturn.
12438 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12439 calling_convention an 8 bit bit field.
12440 (TYPE_NO_RETURN): New macro.
12441 * infcmd.c (finish_command): Query if function does not return
12442 normally.
12443 * stack.c (return_command): Likewise.
12444
12445 2015-01-23 Pedro Alves <palves@redhat.com>
12446
12447 * linux-nat.c (linux_is_async_p): New macro.
12448 (linux_nat_is_async_p):
12449 (linux_nat_terminal_inferior): Check whether the target can async
12450 instead of whether it is already async.
12451 (linux_nat_terminal_ours): Don't check whether the target is
12452 async.
12453 (linux_async_pipe): Use linux_is_async_p.
12454
12455 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12456
12457 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12458 '-ascending'.
12459 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12460 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12461 Sort tp_array using tp_array_compar.
12462 (_initialize_thread): Extend thread_apply_all_command help.
12463
12464 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12465
12466 * corelow.c (core_open): Call also thread_command.
12467 * gdbthread.h (thread_command): New prototype moved from ...
12468 * thread.c (thread_command): ... here.
12469 (thread_command): Make it global.
12470
12471 2015-01-22 Pedro Alves <palves@redhat.com>
12472
12473 * configure.ac [*mingw32*]: Check $curses_found instead of
12474 $prefer_curses.
12475 * configure: Regenerate.
12476 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12477 HAVE_NCURSES_NCURSES_H checks.
12478
12479 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12480
12481 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12482 fails with the 1st arg NULL, try again with "unknown". Don't test
12483 the "cup" capability: it isn't supported by the Windows port of
12484 ncurses, but the Windows console driver is still capable of
12485 supporting TUI.
12486
12487 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12488
12489 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12490
12491 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12492
12493 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12494 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12495 reason that "make TAGS" is broken.
12496
12497 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12498
12499 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12500 and check additional store instructions.
12501
12502 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12503
12504 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12505
12506 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12507
12508 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12509 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12510 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12511 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12512 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12513 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12514 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12515 ppc_process_record_op19, ppc_process_record_op31,
12516 ppc_process_record_op59, ppc_process_record_op60,
12517 ppc_process_record_op63): Likewise.
12518
12519 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12520
12521 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12522 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12523 strerror.
12524
12525 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12526
12527 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12528 ppc_process_record_op31, ppc_process_record_op59,
12529 ppc_process_record_op60, ppc_process_record_op63,
12530 ppc_process_record): Fix -Wformat warning.
12531 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12532 Remove unused variables.
12533
12534 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12535
12536 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12537
12538 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12539
12540 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12541 CONFIG_OBS if not building with a curses library.
12542 * configure: Regenerate.
12543
12544 * windows-termcap.c: Include defs.h. Make the whole body empty if
12545 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12546 HAVE_NCURSES_NCURSES_H is defined.
12547
12548 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12549
12550 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12551 from end of line to start of next line.
12552
12553 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12554
12555 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12556 Scan PLT stub backward for reverse debugging.
12557 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12558
12559 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12560 Ulrich Weigand <uweigand@de.ibm.com>
12561
12562 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12563 gdb_target_obs.
12564 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12565 record.
12566 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12567 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12568 (ppc_linux_init_abi): Set process_record, process_record_signal.
12569 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12570 ppc_linux_record_tdep to gdbarch_tdep.
12571 (ppc_process_record): New declaration.
12572 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12573 ppc_process_record_op19, ppc_process_record_op31,
12574 ppc_process_record_op59, ppc_process_record_op60,
12575 ppc_process_record_op63, ppc_process_record): New functions.
12576
12577 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12578
12579 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12580 rs6000_in_function_epilogue_frame_p and add an argument
12581 for frame_info.
12582 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12583 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12584 New functions.
12585 (rs6000_epilogue_frame_unwind): New.
12586 (rs6000_gdbarch_init): Append epilogue unwinder.
12587
12588 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12589
12590 * nat/linux-personality.c: Replace "#ifndef
12591 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12592 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12593 systems.
12594
12595 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12596
12597 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12598 functions.
12599 (_initialize_tui_win) <border-kind, border-mode>:
12600 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12601 (tui_set_tab_width_command): Fix the commentary.
12602
12603 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12604
12605 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12606 Doc fix.
12607 (tui_set_tab_width_command): Delete and recreate the source and
12608 the disassembly windows, to show the effect of the changed tab
12609 size immediately.
12610
12611 * tui/tui-data.h (LINE_PREFIX): Make shorter
12612 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12613 "Thread NNNNN.XXXX" thread ID notation on Windows.
12614
12615 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12616
12617 Fix gcc-5 compilation.
12618 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12619
12620 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12621
12622 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12623 (linux-personality.o): New rule.
12624 * common/common-defs.h: Include <stdint.h>.
12625 * config/aarch64/linux.mh (NATDEPFILES): Include
12626 linux-personality.o.
12627 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12628 * config/arm/linux.mh (NATDEPFILES): Likewise.
12629 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12630 * config/i386/linux.mh (NATDEPFILES): Likewise.
12631 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12632 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12633 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12634 * config/mips/linux.mh (NATDEPFILES): Likewise.
12635 * config/pa/linux.mh (NATDEPFILES): Likewise.
12636 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12637 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12638 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12639 * config/s390/linux.mh (NATDEPFILES): Likewise.
12640 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12641 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12642 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12643 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12644 * defs.h: Remove #include <stdint.h> (moved to
12645 common/common-defs.h).
12646 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12647 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12648 nat/linux-personality.c).
12649 (linux_nat_create_inferior): Remove code to disable address space
12650 randomization (moved to nat/linux-personality.c). Create cleanup
12651 to disable address space randomization.
12652 * nat/linux-personality.c: New file.
12653 * nat/linux-personality.h: Likewise.
12654
12655 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12656
12657 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12658 common/posix-strerror.c.
12659 (posix-strerror.o): New rule.
12660 (mingw-strerror.o): Likewise.
12661 * common/common-utils.h (safe_strerror): Move prototype to here,
12662 from utils.h.
12663 * common/common.host: New file.
12664 * common/mingw-strerror.c: Likewise.
12665 * common/posix-strerror.c: Likewise.
12666 * configure: Regenerated.
12667 * configure.ac: Source common/common.host. Add variable
12668 common_host_obs to gdb_host_obs.
12669 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12670 gdb/common/posix-strerror.c when warning about the use of
12671 strerror.
12672 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12673 common/mingw-strerror.c.
12674 * posix-hdep.c (safe_strerror): Remove definition; move it to
12675 common/posix-hdep.c.
12676 * utils.h (safe_strerror): Remove prototype; move to
12677 common/common-utils.h.
12678
12679 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12680
12681 GDB 7.8.2 released.
12682
12683 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12684
12685 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12686 ___XA type if the array has already been fixed.
12687
12688 2015-01-14 Yao Qi <yao@codesourcery.com>
12689
12690 * Makefile.in (ppc-linux.o): New rule.
12691 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12692 * configure.ac: AC_CHECK_FUNCS(getauxval).
12693 * config.in: Re-generated.
12694 * configure: Re-generated.
12695 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12696 Declare.
12697 * nat/ppc-linux.c: New file.
12698 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12699 Call ppc64_64bit_inferior_p.
12700
12701 2015-01-14 Yao Qi <yao@codesourcery.com>
12702
12703 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12704 nat/ppc-linux.h.
12705 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12706 (PPC_FEATURE_HAS_DFP): Likewise.
12707 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12708 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12709 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12710 Include "nat/ppc-linux.h".
12711 * nat/ppc-linux.h: New file.
12712 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12713
12714 2015-01-14 Pedro Alves <palves@redhat.com>
12715
12716 PR gdb/17525
12717 * breakpoint.c: Include "interps.h".
12718 (bpstat_do_actions_1): Also check whether the interpreter is
12719 async.
12720
12721 2015-01-14 Pedro Alves <palves@redhat.com>
12722
12723 PR cli/17828
12724 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12725 reinstall if the interpreter is sync.
12726
12727 2015-01-13 Doug Evans <dje@google.com>
12728
12729 * objfiles.c (objfile_filename): New function.
12730 * objfiles.h (objfile_filename): Declare it.
12731 (objfile_name): Add function comment.
12732 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12733 bfd file name (which may be realpath'd), and the original name.
12734
12735 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12736
12737 * NEWS: Create a new section for the next release branch.
12738 Rename the section of the current branch, now that it has
12739 been cut.
12740
12741 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12742
12743 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12744 * version.in: Bump version to 7.9.50.DATE-cvs.
12745
12746 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12747
12748 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12749 Remove trailing new-line in argument of call to warning.
12750
12751 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12752
12753 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12754 new-line in argument of call to "warning".
12755
12756 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12757
12758 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12759 in static block, then try searching for primitive types.
12760
12761 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12762
12763 * top.h (gdb_add_history): Declare.
12764 * top.c (command_count): New variable.
12765 (gdb_add_history): New function.
12766 (gdb_safe_append_history): New static function.
12767 (quit_force): Call it.
12768 (command_line_input): Use gdb_add_history instead of
12769 add_history.
12770 * event-top.c (command_line_handler): Likewise.
12771
12772 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12773
12774 PR gdb/17046
12775 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12776 <setjmp.h> #include.
12777
12778 2015-01-11 Doug Evans <xdje42@gmail.com>
12779
12780 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12781
12782 2015-01-11 Doug Evans <xdje42@gmail.com>
12783
12784 PR gdb/15830
12785 * NEWS: The "maint demangle" command is renamed as "demangle".
12786 * demangle.c: #include cli/cli-utils.h, language.h.
12787 (demangle_command): New function.
12788 (_initialize_demangle): Add new command "demangle".
12789 * maint.c (maintenance_demangle): Stub out.
12790 (_initialize_maint_cmds): Update help text for "maint demangle",
12791 and mark as deprecated.
12792
12793 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12794
12795 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12796 inferior_thread is a function.
12797
12798 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12799
12800 * Makefile.in (.y.c): Don't munge yacc's #line
12801 directives.
12802
12803 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12804
12805 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12806 to prompt for input.
12807 * tui/tui-hooks.c (tui_query_hook): Remove.
12808 (tui_install_hooks): Don't set deprecated_query_hook.
12809 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12810 height calculation. Always update the command window's cur_line.
12811
12812 2015-01-09 Pedro Alves <palves@redhat.com>
12813
12814 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12815 function.
12816 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12817 declaration.
12818 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12819 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12820 stop_reason.
12821 (check_stopped_by_watchpoint): New function.
12822 (save_sigtrap): Reimplement.
12823 (linux_nat_stopped_by_watchpoint): Adjust.
12824 (linux_nat_lp_status_is_event): Delete.
12825 (stop_wait_callback): Only call save_sigtrap after storing the
12826 pending status.
12827 (status_callback): If the thread had been stopped for a breakpoint
12828 that has since been removed, discard the event and resume the LWP.
12829 (count_events_callback, select_event_lwp_callback): Use
12830 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12831 (cancel_breakpoint): Rename to ...
12832 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12833 stopped for a software breakpoint or hardware breakpoint.
12834 (select_event_lwp): Only give preference to the stepping LWP in
12835 all-stop mode. Adjust comments.
12836 (stop_and_resume_callback): Remove references to new_pending_p.
12837 (linux_nat_filter_event): Likewise. Leave exit events of the
12838 leader thread pending here. Handle signal short circuiting here.
12839 Only call save_sigtrap after storing the pending waitstatus.
12840 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12841 new_pending. Don't handle leaving events the caller is not
12842 interested in pending here, nor handle signal short-circuiting
12843 here. Also give equal priority to all LWPs that have had events
12844 in non-stop mode. If reporting a software breakpoint event,
12845 unadjust the LWP's PC.
12846 * linux-nat.h (enum lwp_stop_reason): New.
12847 (struct lwp_info) <stop_pc>: New field.
12848 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12849 (struct lwp_info) <stop_reason>: New field.
12850 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12851
12852 2015-01-09 Pedro Alves <palves@redhat.com>
12853
12854 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12855 Set the LWP's 'resumed' flag.
12856
12857 2015-01-09 Pedro Alves <palves@redhat.com>
12858
12859 * linux-nat.c (linux_resume_one_lwp): New function.
12860 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12861 (linux_nat_resume): Use lwp_status_pending_p and
12862 linux_resume_one_lwp.
12863 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12864 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12865 (status_callback, running_callback): Use lwp_status_pending_p.
12866 (lwp_status_pending_p): New function.
12867 (stop_and_resume_callback): Use lwp_status_pending_p.
12868 (linux_nat_filter_event): Use linux_resume_one_lwp.
12869 (linux_nat_wait_1): Always use status_callback to look for an LWP
12870 with a pending status. Use linux_resume_one_lwp.
12871 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12872 linux_resume_one_lwp.
12873
12874 2015-01-09 Pedro Alves <palves@redhat.com>
12875
12876 * breakpoint.c (bp_location_inserted_here_p): New function,
12877 factored out from ...
12878 (breakpoint_inserted_here_p): ... here. Use
12879 ALL_BP_LOCATIONS_AT_ADDR.
12880 (software_breakpoint_inserted_here_p): Use
12881 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12882
12883 2014-01-09 Pedro Alves <palves@redhat.com>
12884
12885 Skip enabling event reporting if the kernel supports
12886 PTRACE_EVENT_CLONE.
12887 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12888 (thread_db_use_events): New function.
12889 (try_thread_db_load_1): Check thread_db_use_events before enabling
12890 event reporting.
12891 (update_thread_state): New function.
12892 (attach_thread): Use it. Check thread_db_use_events before
12893 enabling event reporting.
12894 (thread_db_detach): Check thread_db_use_events before disabling
12895 event reporting.
12896 (find_new_threads_callback): Check thread_db_use_events before
12897 enabling event reporting. Update the thread's state if not using
12898 libthread_db events.
12899
12900 2015-01-09 Pedro Alves <palves@redhat.com>
12901
12902 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12903 about to wait for is > 0.
12904 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12905 the kernel thread ID is -1.
12906
12907 2015-01-09 Pedro Alves <palves@redhat.com>
12908
12909 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12910 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12911 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12912 ptrace option flags.
12913 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12914 field.
12915 * nat/linux-procfs.c: Include <dirent.h>.
12916 (linux_proc_get_int): New parameter "warn". Handle it.
12917 (linux_proc_get_tgid): Adjust.
12918 (linux_proc_get_tracerpid): Rename to ...
12919 (linux_proc_get_tracerpid_nowarn): ... this.
12920 (linux_proc_pid_get_state): New function, factored out from
12921 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12922 and handle it.
12923 (linux_proc_pid_is_gone): New function.
12924 (linux_proc_pid_is_stopped): Adjust.
12925 (linux_proc_pid_is_zombie_maybe_warn)
12926 (linux_proc_pid_is_zombie_nowarn): New functions.
12927 (linux_proc_pid_is_zombie): Use
12928 linux_proc_pid_is_zombie_maybe_warn.
12929 (linux_proc_attach_tgid_threads): New function.
12930 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12931 (linux_proc_get_tracerpid): Rename to ...
12932 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12933 (linux_proc_pid_is_gone): New declaration.
12934 (linux_proc_pid_is_zombie): Update comment.
12935 (linux_proc_pid_is_zombie_nowarn): New declaration.
12936 (linux_proc_attach_lwp_func): New typedef.
12937 (linux_proc_attach_tgid_threads): New declaration.
12938 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12939 use nowarn functions.
12940 (linux_ptrace_attach_fail_reason_string): Move here from
12941 gdbserver/linux-low.c and rename.
12942 (ptrace_supports_feature): If the current ptrace options are not
12943 known yet, check them now, instead of asserting.
12944 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12945 Declare.
12946
12947 2015-01-09 Pedro Alves <palves@redhat.com>
12948
12949 * linux-thread-db.c (thread_db_find_new_threads_silently)
12950 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12951 (find_new_threads_once): Print debug output on gdb_stdlog.
12952
12953 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12954 Pedro Alves <palves@redhat.com>
12955
12956 * compile/compile.c: Include "gdb_wait.h".
12957 (do_rmdir): Check return value, and free 'zap'.
12958
12959 2015-01-08 Pedro Alves <palves@redhat.com>
12960 Yao Qi <yao@codesourcery.com>
12961
12962 * dwarf2loc.c (indirect_pieced_value): Don't call
12963 gdb_sign_extend. Call extract_signed_integer instead.
12964 * utils.c (gdb_sign_extend): Remove.
12965 * utils.h (gdb_sign_extend): Remove declaration.
12966
12967 2015-01-07 Pierre Muller <muller@sourceware.org>
12968
12969 PR symtab/17811
12970 * stabsread.c (define_symbol): Set language for C++ special symbols.
12971
12972 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12973
12974 * inflow.c (initial_gdb_ttystate): Tweak comment.
12975
12976 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12977
12978 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12979 comment documenting function.
12980
12981 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12982
12983 * terminal.h (set_initial_gdb_ttystate): Declare.
12984 * inflow.c (initial_gdb_ttystate): New static variable.
12985 (set_initial_gdb_ttystate): New setter.
12986 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12987 instead of our current terminal state.
12988 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12989
12990 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12991
12992 * guile/scm-type.c (tyscm_array_1): Add comment.
12993 * python/py-type.c (typy_array_1): Add comment.
12994
12995 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12996
12997 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12998 error if N2 is equal to N1 - 1.
12999
13000 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13001
13002 * python/py-type.c (typy_array_1): Do not raise negative-length
13003 exception if N2 is equal to N1 - 1.
13004
13005 2015-01-03 Doug Evans <xdje42@gmail.com>
13006
13007 * c-exp.y: Whitespace cleanup.
13008 (classify_inner_name): Remove extra ;.
13009
13010 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13011
13012 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13013 offset signed.
13014
13015 2015-01-02 Doug Evans <dje@google.com>
13016
13017 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13018
13019 2015-01-02 Doug Evans <dje@google.com>
13020
13021 * symtab.h (struct symbol): Fix typo in comment.
13022
13023 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13024
13025 Update year range in copyright notice of all files.
13026
13027 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13028
13029 * top.c (print_gdb_version): Update copyright year to 2015.
13030
13031 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13032
13033 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13034
13035 For older changes see ChangeLog-2014.
13036 \f
13037 Local Variables:
13038 mode: change-log
13039 left-margin: 8
13040 fill-column: 74
13041 version-control: never
13042 coding: utf-8
13043 End:
This page took 0.293874 seconds and 5 git commands to generate.